jQuery(document).ready(function($){
	
	// superfish menu
	$("#menu > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:900,
		animation:{height:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
	});	
		
	$("#menu a[href=#]").click(function() { return false });
	
	//open external links in new window
	 $("a[href^='http']:not([href*='mi-skin.com'])").each(function() {
		$(this).attr("target", "_blank");
	});
			
	// for pdfs
	$("a[href$='.pdf']").attr("target","_blank");
  

	//remove title from hover on menu	
	$('#menu a').each(function(){
		$(this).attr('title','');
	});
	
	//rollover
	$(".btn").rollover("_hover");
	

//  flash photos
	$('.exterior .header-photos').flashembed({ src: skinpath+'flash/pic-ani01.swf', wmode:'transparent'});
	




});

function runsifr() {
	var helvetica = {  src: skinpath + 'flash/GlyphaLight.swf' };
	sIFR.activate(helvetica);
	sIFR.replace(helvetica, {
  		selector: 'h1.pagetitles', 
  		wmode: 'transparent', 
  		src:  skinpath +  'flash/GlyphaLight.swf', 
  		css: [ '.sIFR-root {color:#106081; font-size:46px; text-align:center; }'  ]
	});
}
