//sIFR implementation
function pageScripts(){
var ShelleyAllegroScript = {  src: DNN_skinPath + '/flash/Trajan.swf' };
sIFR.activate(ShelleyAllegroScript);
sIFR.replace(ShelleyAllegroScript, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  '/flash/Trajan.swf', 
  css: [ '.sIFR-root {color:#0f5cac;text-transform:uppercase; font-size:22px;}'  ]
});
}
//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();
//Home
	var PathHome = DNN_skinPath + "images/home.jpg";
	jQuery("#Navigation55").append("<a href='/LinkClick.aspx?link=55' title=''><img id='HomeImg' 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 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("#Navigation66").append("<a href='#' title=''><img id='HomeImg' 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 Info
	var PathHome = DNN_skinPath + "images/treatment.jpg";
	jQuery("#Navigation79").append("<a href='#' title=''><img id='HomeImg' 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
		//Contact
	var PathHome = DNN_skinPath + "images/contactUs.jpg";
	jQuery("#Navigation65").append("<a href='/LinkClick.aspx?link=65' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='ContactUs' /></a>");

	jQuery("#Navigation65").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/contactUs_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation65").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/contactUs.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//fun stuff
	var PathHome = DNN_skinPath + "images/funStuff.jpg";
	jQuery("#Navigation93").append("<a href='#' title=''><img id='HomeImg' 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 });
	});
	//End
	
//PatientLogin
	var PathHome = DNN_skinPath + "images/patientLogin.jpg";
	jQuery("#Navigation154").append("<a href='https://www.mytlink.net/TLink/Patient/Login.asp?tpract=213446' target='_blank' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='PatientLogin' /></a>");

	jQuery("#Navigation154").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patientLogin_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation154").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patientLogin.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
	
});
//preload images 
function PreloadImg(){

       menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/home.jpg";
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_on.jpg";
		
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/officeinfo.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/officeinfo_on.jpg";

	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/patientinfo.jpg";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/patientinfo_on.jpg";
	
	
	
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/treatment.jpg";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/treatment_on.jpg";



	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/contact.jpg";
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/contact_on.jpg";

	menuImage11 = new Image(); 
	menuImage11.src = DNN_skinPath + "images/patientinfo.jpg";
	menuImage12 = new Image(); 
	menuImage12.src = DNN_skinPath + "imagespatientinfo_on.jpg";

}



