//sIFR implementation
function pageScripts(){
var ShelleyAllegroScript = {  src: DNN_skinPath + '/flash/itc-avant-grade-gothic-bt.swf' };
sIFR.activate(ShelleyAllegroScript);
sIFR.replace(ShelleyAllegroScript, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  '/flash/itc-avant-grade-gothic-bt.swf', 
  css: [ '.sIFR-root {color:#570b0d; font-size:43px;}'  ]
});
}

//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 () {}
	}).find(">li:has(ul)").mouseover(function () {
		jQuery("ul", this).bgIframe({opacity:true});
	}).find("a").focus(function () {
		jQuery("ul", jQuery("#navigation > ul >li:has(ul)")).bgIframe({opacity:true});
	});

	//jQuery(".LinkIcon").rollover();
	/*
	 menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/Home.jpg";
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/Home_hover.jpg";
		
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/officeInfo.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/officeInfo_hover.jpg";

	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/patientInfo.jpg";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/patientInfo_hover.jpg";
	*/
//Home
	var PathHome = DNN_skinPath + "images/home.jpg";
		jQuery("#navigation55").append("<a href='/LinkClick.aspx?link=36' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='Home' /></a>");
	
	jQuery("#navigation55").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/home_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#navigation55").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/home.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End

	//Office Info
	var PathHome = DNN_skinPath + "images/officeinfo.jpg";
	jQuery("#navigation57").append("<a href='/LinkClick.aspx?link=137' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='officeinfo' /></a>");

	jQuery("#navigation57").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/officeinfo_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation57").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/officeinfo.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//patientinfo
	var PathHome = DNN_skinPath + "images/patientinfo.jpg";
	jQuery("#navigation66").append("<a href='' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='patientinfo' /></a>");

	jQuery("#navigation66").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patientinfo_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation66").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patientinfo.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//treatment
	var PathHome = DNN_skinPath + "images/treatment.jpg";
	jQuery("#navigation79").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='treatment' /></a>");

	jQuery("#navigation79").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/treatment_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation79").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/treatment.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//funstuff
	var PathHome = DNN_skinPath + "images/funstuff.jpg";
jQuery("#navigation93").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='funstuff' /></a>");

	jQuery("#navigation93").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/funstuff_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation93").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/funstuff.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});


	//contact
	var PathHome = DNN_skinPath + "images/contact.jpg";
	jQuery("#navigation65").append("<a href='/LinkClick.aspx?link=65'  title=''></a>");

	jQuery("#navigation65").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/contact_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation65").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/contact.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});

	//patientlogin
	

	jQuery("#navigation162").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patientlogin_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation162").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patientlogin.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	

	

	
});



