//sIFR implementation
function pageScripts(){
var ShelleyAllegroScript = {  src: DNN_skinPath + '/flash/springUP.swf' };
sIFR.activate(ShelleyAllegroScript);
sIFR.replace(ShelleyAllegroScript, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  '/flash/springUP.swf', 
  css: [ '.sIFR-root {color:#8ce372; 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});
	
	});

//Home

var PathHome = DNN_skinPath + "images/home.jpg";

jQuery(
"#Navigation36").append("<a href='/LinkClick.aspx?link=36&tabid=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

//officeinfo

var PathHomeo = DNN_skinPath + "images/ouroffice.jpg";

jQuery(
"#Navigation81").append("<a href='#' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='Ouroffice' /></a>");

jQuery(
"#Navigation81").find("img").mouseover(function () {

var PathHomeON = DNN_skinPath + "images/ouroffice_hover.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

jQuery(
"#Navigation81").find("img").mouseout(function () {

var PathHomeON = DNN_skinPath + "images/ouroffice.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

//End
//patientinfo
	var PathHome = DNN_skinPath + "images/patientinfo.jpg";
	jQuery("#Navigation88").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='Patientinfo' /></a>");

	jQuery("#Navigation88").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patientinfo_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation88").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patientinfo.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//Treat ment
	var PathHome = DNN_skinPath + "images/treatment.jpg";
	jQuery("#Navigation94").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='Treatment' /></a>");

	jQuery("#Navigation94").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/treatment_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation94").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/treatment.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//Misc
	var PathHome = DNN_skinPath + "images/misc.jpg";
	jQuery("#Navigation101").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='Misc' /></a>");

	jQuery("#Navigation101").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/misc_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation101").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/misc.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});



	
	//patientLogin
	var PathHome = DNN_skinPath + "images/patientLogin.jpg";
	jQuery("#Navigation107").append("<a href='https://www.mytlink.net/TlinkDotNet/Patient/login.aspx?tpract=527332' target='_blank' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='PatientLogin' /></a>");

	jQuery("#Navigation107").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patientLogin_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation107").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patientLogin.jpg";
				jQuery(this).attr({ src:PathHomeON });


});




});