//sIFR implementation
function pageScripts(){
var perpetua = {  src: DNN_skinPath + 'expressInstall.swf' };
sIFR.activate(perpetua);
sIFR.replace(perpetua, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'expressInstall.swf', 
  css: [ '.sIFR-root {color:#000033; font-size:36px;}'  ]
});
}

//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});
	
	});

////Home
//	var PathHome = DNN_skinPath + "images/home.jpg";
//	jQuery("#Navigation36").append("<a href='/Home/tabid/36/Default.aspx' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='Home' /></a>");
//	
//	jQuery("#Navigation36").find("img").mouseover(function () {
//				var PathHomeON = DNN_skinPath + "images/home_on.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
	//Our Office
	var PathHomeo = DNN_skinPath + "images/Btn_Our_Office.jpg";
	jQuery("#Navigation57").append("<a href='#' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='Our Office' /></a>");
	
	jQuery("#Navigation57").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/Btn_Our_Offic_ehover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation57").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/Btn_Our_Office.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End

	//Orthodontics
	var PathHomeo = DNN_skinPath + "images/Btn_Orthodonics.jpg";
	jQuery("#Navigation79").append("<a href='#' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='Orthodontics' /></a>");
	
	jQuery("#Navigation79").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/Btn_Orthodonics_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation79").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/Btn_Orthodonics.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End


	//Patient Info
	var PathHomeo = DNN_skinPath + "images/Btn_Patient.jpg";
	jQuery("#Navigation66").append("<a href='#' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='Patient' /></a>");
	
	jQuery("#Navigation66").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/Btn_Patient_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation66").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/Btn_Patient.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//Smile Gallery
	var PathHomeo = DNN_skinPath + "images/Btn_Smile-Gallery.jpg";
	jQuery("#Navigation154").append("<a href='/LinkClick.aspx?link=154' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='Smile Gallery' /></a>");
	
	jQuery("#Navigation154").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/Btn_Smile-Gallery_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation154").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/Btn_Smile-Gallery.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//Fun Zone
	var PathHomeo = DNN_skinPath + "images/Btn_Fun-Zone.jpg";
	jQuery("#Navigation93").append("<a href='#' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='Fun Zone' /></a>");
	
	jQuery("#Navigation93").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/Btn_Fun-Zone_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation93").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/Btn_Fun-Zone.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
});

//preload images for patient login
//function PreloadImg(){

// Ploginpic= new Image(100,25); 
 // Ploginpic.src=DNN_skinPath + "images/patientLogin.jpg";
// Ploginpic2= new Image(100,25); 
 // Ploginpic2.src=DNN_skinPath + "images/patientLogin_over.jpg";



//}
