//sIFR implementation
function pageScripts(){
var ShelleyAllegroScript = {  src: DNN_skinPath + '/flash/Arial.swf' };
sIFR.activate(ShelleyAllegroScript);
sIFR.replace(ShelleyAllegroScript, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  '/flash/Arial.swf', 
  css: [ '.sIFR-root {color:#840002; 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});
	});

	//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("#navigation36").append("<a href='/LinkClick.aspx?link=36' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='Home' /></a>");
	
	jQuery("#navigation36").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/home_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#navigation36").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='#' 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 Info
	var PathHome = DNN_skinPath + "images/patientInfo.jpg";
	jQuery("#navigation58").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='patientinfo' /></a>");

	jQuery("#navigation58").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patientInfo_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation58").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patientInfo.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//GeneralDentistry
	var PathHome = DNN_skinPath + "images/generalDentistry.jpg";
	jQuery("#navigation59").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='GeneralDentistry' /></a>");

	jQuery("#navigation59").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/generalDentistry_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation59").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/generalDentistry.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//Restorative Dentistry
	var PathHome = DNN_skinPath + "images/restorativeDentistry.jpg";
	jQuery("#navigation130").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='Restorative Dentistry' /></a>");

	jQuery("#navigation130").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/restorativeDentistry_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation130").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/restorativeDentistry.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});

/*
	//CEREC
	var PathHome = DNN_skinPath + "images/cerec.jpg";
	jQuery("#navigation142").append("<a href='/LinkClick.aspx?link=142'  title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='CEREC' /></a>");

	jQuery("#navigation142").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/cerec_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation142").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/cerec.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
*/
	//Cosmetic Dentistry
	var PathHome = DNN_skinPath + "images/cd.jpg";
	jQuery("#navigation133").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='Cosmetic Dentistry' /></a>");

	jQuery("#navigation133").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/cd_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation133").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/cd.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	
	//Contactus
	var PathHome = DNN_skinPath + "images/cu.jpg";
	jQuery("#navigation92").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='Contactus' /></a>");

	jQuery("#navigation92").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/cu_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation92").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/cu.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	
	//DoctorsNotes
	var PathHome = DNN_skinPath + "images/dn.jpg";
	jQuery("#navigation139").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='DoctorsNotes' /></a>");

	jQuery("#navigation139").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/dn_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#navigation139").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/dn.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	

	
});



