//sIFR implementation
function pageScripts(){
var perpetua = {  src: DNN_skinPath + 'flash/times_sifr.swf'};
//alert(DNN_skinPath + 'flash/times.swf');
sIFR.activate(perpetua);
sIFR.replace(perpetua, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'flash/sifrhead.swf', 
  css: [ '.sIFR-root {color:#004b85;font-size:bold;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});
	
	});

//About out Practice
	var PathHome = DNN_skinPath + "images/practise.gif";
	

jQuery("#Navigation57").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='About out Practice' /></a>");
	
	jQuery("#Navigation57").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/practise_on.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation57").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/practise.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//For New Patients
	var PathHomeo = DNN_skinPath + "images/patients.gif";
	jQuery("#Navigation66").append("<a href='#' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='For New Patients' /></a>");
	
	jQuery("#Navigation66").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patients_on.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation66").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patients.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//About Orthodontics 
	var PathHomeo = DNN_skinPath + "images/orthodontics.gif";
	jQuery("#Navigation79").append("<a href='#' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='About Orthodontics' /></a>");
	
	jQuery("#Navigation79").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/orthodontics_on.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation79").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/orthodontics.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//Fun Stuff
	var PathHomeo = DNN_skinPath + "images/funstuff.gif";
	jQuery("#Navigation93").append("<a href='#' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='Fun Stuff' /></a>");
	
	jQuery("#Navigation93").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/funstuff_on.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation93").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/funstuff.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//Contact Us 
	var PathHomeo = DNN_skinPath + "images/contact.gif";
	jQuery("#Navigation65").append("<a href='/LinkClick.aspx?link=65' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='Contact Us' /></a>");
	
	jQuery("#Navigation65").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/contact_on.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation65").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/contact.gif";
				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";



}