//sIFR implementation
function pageScripts(){
var ShelleyAllegroScript = {  src: DNN_skinPath + '/flash/avant.swf' };
sIFR.activate(ShelleyAllegroScript);
sIFR.replace(ShelleyAllegroScript, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  '/flash/avant.swf', 
  css: [ '.sIFR-root {color:#0e3165; font-size:30px;}'  ]
});
}

//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});
	});

	
	var PathHome = DNN_skinPath + "images/home.jpg";
	jQuery("#navigation55").append("<a href='/LinkClick.aspx?link=36' title=''><img id='HomeImg1' 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 PathHome1 = DNN_skinPath + "images/OfficeInfo.jpg";
	jQuery("#navigation57").append("<a href='#' title=''><img id='HomeImg2' src='"+PathHome1+"' style='position:absolute' alt='officeinfo' /></a>");

	jQuery("#navigation57").find("img").mouseover(function () {
				var PathHome1ON = DNN_skinPath + "images/OfficeInfo_hover.jpg";
				jQuery(this).attr({ src:PathHome1ON });

	});
	jQuery("#navigation57").find("img").mouseout(function () {
				var PathHome2ON = DNN_skinPath + "images/OfficeInfo.jpg";
				jQuery(this).attr({ src:PathHome2ON });
	});
	//End
	//patientinfo Info
	var PathHome = DNN_skinPath + "images/patientInfo.jpg";
	jQuery("#navigation66").append("<a href='#' title=''><img id='HomeImg3' 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='HomeImg4' 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='HomeImg5' 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 });
	});


	
	
 //Patient Login
	var PathHome5 = DNN_skinPath + "images/patientLogin.jpg";
	//jQuery("#navigation").append("<a href='#' title=''><img id='navigation156' src='"+PathHome5+"' alt='patientLogin' /></a>");

	 jQuery("#navigation156").find("img").mouseover(function () {
				var PathHome5ON = DNN_skinPath + "images/patientLogin_hover.jpg";
				jQuery(this).attr({ src:PathHome5ON });

	});
	jQuery("#navigation156").find("img").mouseout(function () {
				var PathHome5ON = DNN_skinPath + "images/patientLogin.jpg";
				jQuery(this).attr({ src:PathHome5ON });
	});



	
});



