//sIFR implementation
function pageScripts() {
var ITCBauhaus = {  src: DNN_skinPath + 'ITCBauhaus.swf' };
sIFR.activate(ITCBauhaus);
sIFR.replace(ITCBauhaus, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'ITCBauhaus.swf', 
  css: [ '.sIFR-root {color:#ffffff;font-size:48px;}'  ]
});
}

/*Menu implementation*/
jQuery(document).ready(function(){
	jQuery("#Navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:800,
		animation:{height:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
	});
	
	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();		
		});
		
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/contactus_hover.png";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/home_hover.png";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/links_hover.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/meet_hover.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/meetstaff_hover.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/officeinfo_hover.png";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/pgallery_hover.png";
	menuImage8= new Image(); 
	menuImage8.src = DNN_skinPath + "images/plogin_hover.png";
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/treatment_hover.png";
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/whatsnew_hover.png";
	menuImage11 = new Image(); 
	menuImage11.src = DNN_skinPath + "images/whatsnew2.jpg";	
	
	jQuery("#sub93>a>img").addClass('whatsnew');
	jQuery("#sub93>a").append("<img src='/Portals/_default/Skins/mtsortho.com/images/whatsnew2.jpg' style='display:none;' class='whatsnew' />");
	//do stupid flashing thing
	startup();
	
});




function flash() {
	jQuery('.whatsnew').toggle();	
}

function kill() {
	clearInterval(myInterval);	
	setInterval("continueIt()", 5000);
}

function startup() {
	myInterval = setInterval("flash()", 500);
	setTimeout("kill()", 5000);
}

function continueIt() {
	setTimeout("flash()",500);
	setTimeout("flash()",1000);
}
