$(document).ready(function(){

	$("#tour").flash({   
		swf: 'http://shorthillssc.com/wordpress/wp-content/themes/surgerycenter/flash/slideshow.swf',
		width: 515,
		height: 459
	});

	$("#flash.home").flash({   
		swf: 'http://shorthillssc.com/wordpress/wp-content/themes/surgerycenter/flash/slide-home.swf',
		width: 980,
		height: 332
	});

	$("#flash.inside1").flash({   
		swf: 'http://shorthillssc.com/wordpress/wp-content/themes/surgerycenter/flash/slide-inside1.swf',
		width: 980,
		height: 144
	});

	$("#flash.inside2").flash({   
		swf: 'http://shorthillssc.com/wordpress/wp-content/themes/surgerycenter/flash/slide-inside2.swf',
		width: 980,
		height: 144
	});

	$("#flash.inside3").flash({   
		swf: 'http://shorthillssc.com/wordpress/wp-content/themes/surgerycenter/flash/slide-inside3.swf',
		width: 980,
		height: 144
	});

	$.localScroll();

	$(document).pngFix();

	$(".mainNav").superfish({
		hoverClass	: "sfHover",
		pathClass	: "overideThisToUse",
		delay		: 0,
		animation	: { opacity:"show" },
		speed : "fast",
		autoArrows : false,	
		oldJquery	: false, /* set to true if using jQuery version below 1.2 */
		disableHI	: false, /* set to true to disable hoverIntent detection */
		onInit		: function(){},
		onBeforeShow	: function(){
			//$(this).parent("li").parent("ul").css({left:0, top: -10}, 100, "linear");
		},
		onShow		: function(){
		},
		onHide		: function(){
			//$(this).parent("li").parent("ul").animate({left:0, top: 0}, 100, "linear");
		}
	});
	
	$("#main .post:last").addClass("lastItem");
	
	$(".backToTop a").prepend("&uarr; ");

});
