$(function(){
	var h;
	
	$.tools.tabs.addEffect("move", function(tabIndex, done) {
		// store original width of a pane into memory

		if (!h) { h = this.getPanes().eq(0).height(); }
		var c = this.getCurrentTab().parents('.highlight').find('.panel-container');
		

		c.animate({top: tabIndex * h * -1}, function() {
			done.call();
		});
		
	});
	
	$('.professionals .tabs ul').tabs('.professionals .panel', {current: 'active', tabs: 'li'});
	$('.facilities .tabs ul').tabs('.facilities .panel', {current: 'active', tabs: 'li'});
	
	$('input[placeholder], textarea[placeholder]').placeholder();
	$('.squared-i').squaredi();
});

