//sIFR implementation
function pageScripts(){
var perpetua = {  src: DNN_skinPath + 'perpetua.swf' };
sIFR.activate(perpetua);
sIFR.replace(perpetua, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'perpetua.swf', 
  css: [ '.sIFR-root {color:#e5d8ae; 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
	//Office Info
	var PathHomeo = DNN_skinPath + "images/officeinfo.jpg";
	jQuery("#Navigation57").append("<a href='#' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='OfficeInfo' /></a>");
	
	jQuery("#Navigation57").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/officeinfo_on.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
	//Patient Info
	var PathHomeo = DNN_skinPath + "images/patientinfo.jpg";
	jQuery("#Navigation58").append("<a href='#' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='PatientInfo' /></a>");
	
	jQuery("#Navigation58").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patientinfo_on.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
	//Treatment Info
	var PathHomeo = DNN_skinPath + "images/treatment.jpg";
	jQuery("#Navigation59").append("<a href='#' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='Treatment' /></a>");
	
	jQuery("#Navigation59").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/treatment_on.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation59").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/treatment.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//Misli Info
	var PathHomeo = DNN_skinPath + "images/misc.jpg";
	jQuery("#Navigation60").append("<a href='#' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='Miscellaneous ' /></a>");
	
	jQuery("#Navigation60").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/misc_on.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation60").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/misc.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//Appoinment Info
	var PathHomeo = DNN_skinPath + "images/appointment.jpg";
	jQuery("#Navigation90").append("<a href='/Appointment Request/tabid/90/Default.aspx' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='Appointment Request' /></a>");
	
	jQuery("#Navigation90").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/appointment_on.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation90").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/appointment.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//ContactUs
	var PathHomeo = DNN_skinPath + "images/contact.jpg";
	jQuery("#Navigation92").append("<a href='/Contact Us/tabid/92/Default.aspx' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='Contact Us' /></a>");
	
	jQuery("#Navigation92").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/contact_on.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation92").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/contact.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";



}