//sIFR implementation
function pageScripts(){
var perpetua = {  src: DNN_skinPath + 'flash/CenturyGothic.swf'};
//alert(DNN_skinPath + 'flash/times.swf');
sIFR.activate(perpetua);
sIFR.replace(perpetua, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'flash/CenturyGothic.swf', 
  css: [ '.sIFR-root {color:#000000;font-size:28px;}']
});
}

//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.gif";
jQuery("#Navigation36").append("<a href='/LinkClick.aspx?link=36&tabid=36' title=''><img id='HomeImg' src='"+PathHome+"' style='position:absolute' alt='About out Practice' /></a>");
	
	jQuery("#Navigation36").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/home_hover.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation36").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/home.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
	
	//patientlogin
	var PathHomeo = DNN_skinPath + "images/patientlogin.gif";
	jQuery("#Navigation88").append("<a href='https://dental1.mytlink.net/TLINKDENTAL/Patient/Login.aspx?tpract=124404' title='' target='_blank'><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='patient login' /></a>");
	
	jQuery("#Navigation88").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patientlogin_hover.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation88").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patientlogin.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
	//officeinfo
	var PathHomeo = DNN_skinPath + "images/officeinfo.gif";
	jQuery("#Navigation57").append("<a href='#' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='Office Info' /></a>");
	
	jQuery("#Navigation57").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/officeinfo_hover.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation57").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/officeinfo.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
	//patientinfo
	var PathHomeo = DNN_skinPath + "images/patientinfo.gif";
	jQuery("#Navigation67").append("<a href='#' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='Patient Info' /></a>");
	
	jQuery("#Navigation67").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patientinfo_hover.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation67").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patientinfo.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
	//treatment
	var PathHomeo = DNN_skinPath + "images/treatment.gif";
	jQuery("#Navigation79").append("<a href='#' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='treatment' /></a>");
	
	jQuery("#Navigation79").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/treatment_hover.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation79").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/treatment.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
	
	//funstuff
	var PathHomeo = DNN_skinPath + "images/funstuff.gif";
	jQuery("#Navigation83").append("<a href='#' title=''><img id='HomeImg' src='"+PathHomeo+"' style='position:absolute' alt='Fun Stuff' /></a>");
	
	jQuery("#Navigation83").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/funstuff_hover.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	jQuery("#Navigation83").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/funstuff.gif";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End
	
});


