//sIFR implementation
function pageScripts(){
var ShelleyAllegroScript = {  src: DNN_skinPath + '/flash/gradegothic.swf' };
sIFR.activate(ShelleyAllegroScript);
sIFR.replace(ShelleyAllegroScript, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  '/flash/gradegothic.swf', 
  css: [ '.sIFR-root {color:#08163c; font-size:34px;}'  ]
});
}

//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

//about the office

var PathHomeo = DNN_skinPath + "images/about.jpg";

jQuery(
"#Navigation57").append("<a href='#' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt= 'about the office' /></a>");

jQuery(
"#Navigation57").find("img").mouseover(function () {

var PathHomeON = DNN_skinPath + "images/about_hover.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

jQuery(
"#Navigation57").find("img").mouseout(function () {

var PathHomeON = DNN_skinPath + "images/about.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

//End
//patientinfo
	var PathHome = DNN_skinPath + "images/patient.jpg";
	jQuery("#Navigation58").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='patientinfo' /></a>");

	jQuery("#Navigation58").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patient_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation58").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patient.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End

	//kids
	var PathHome = DNN_skinPath + "images/kids.jpg";
	jQuery("#Navigation59").append("<a href='#' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='kids' /></a>");

	jQuery("#Navigation59").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/kids_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation59").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/kids.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	//contact
	var PathHome = DNN_skinPath + "images/contact.jpg";
	jQuery("#Navigation60").append("<a href='/LinkClick.aspx?link=60&tabid=36' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='contact' /></a>");

	jQuery("#Navigation60").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/contact_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation60").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/contact.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});



	
	//patientLogin
	var PathHome = DNN_skinPath + "images/patientLogin.jpg";
	jQuery("#Navigation84").append("<a href='https://dental1.mytlink.net//TLINKDENTAL/Patient/Login.aspx?tpract=540273' title='' target='_blank'><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='patientLogin' /></a>");

	jQuery("#Navigation84").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patientLogin_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation84").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patientLogin.jpg";
				jQuery(this).attr({ src:PathHomeON });


});




});
