//sIFR implementation
function pageScripts(){
var ShelleyAllegroScript = {  src: DNN_skinPath + '/flash/trade.swf' };
sIFR.activate(ShelleyAllegroScript);
sIFR.replace(ShelleyAllegroScript, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  '/flash/trade.swf', 
  css: [ '.sIFR-root {color:#ffffff; 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(
"#Navigation40").append("<a href='/LinkClick.aspx?link=36&tabid=36' title=''></a>");

jQuery(
"#Navigation40").find("img").mouseover(function () {

var PathHomeON = DNN_skinPath + "images/home_hover.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

jQuery(
"#Navigation40").find("img").mouseout(function () {

var PathHomeON = DNN_skinPath + "images/home.jpg";

jQuery(
this).attr({ src:PathHomeON });

});



//End

//officeinfo

var PathHomeo = DNN_skinPath + "images/officeinfo.jpg";

jQuery(
"#Navigation63").append("<a href='#' title=''></a>");

jQuery(
"#Navigation63").find("img").mouseover(function () {

var PathHomeON = DNN_skinPath + "images/officeinfo_hover.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

jQuery(
"#Navigation63").find("img").mouseout(function () {

var PathHomeON = DNN_skinPath + "images/officeinfo.jpg";

jQuery(
this).attr({ src:PathHomeON });

});

//End
//patientinfo
	var PathHome = DNN_skinPath + "images/patientinfo.jpg";
	jQuery("#Navigation64").append("<a href='#' title=''></a>");

	jQuery("#Navigation64").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/patientinfo_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation64").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/patientinfo.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End

	//treatment
	var PathHome = DNN_skinPath + "images/treatmentinfo.jpg";
	jQuery("#Navigation65").append("<a href='#' title=''></a>");

	jQuery("#Navigation65").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/treatmentinfo_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation65").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/treatmentinfo.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});
	//End


	//funstuff
	var PathHome = DNN_skinPath + "images/funstuff.jpg";
	jQuery("#Navigation66").append("<a href='#' title=''></a>");

	jQuery("#Navigation66").find("img").mouseover(function () {
				var PathHomeON = DNN_skinPath + "images/funstuff_hover.jpg";
				jQuery(this).attr({ src:PathHomeON });

	});
	jQuery("#Navigation66").find("img").mouseout(function () {
				var PathHomeON = DNN_skinPath + "images/funstuff.jpg";
				jQuery(this).attr({ src:PathHomeON });
	});


	
// flash features
	if (jQuery("#featureoral").length){	
var so = new SWFObject("/features/loader.swf", "features", "500", "325", "9", "#FF6600"); so.addVariable("config", "/features/config.xml"); so.addVariable("feature", "hygiene-dental"); so.addParam("wmode", "transparent"); so.addParam("quality", "high"); so.write("featureoral");
}


if(jQuery("#featuregum").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/gums.swf", "slideshow", "320", "200", "6", "#000000");
	sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
	sshow.addParam("wmode", "transparent");
	sshow.write("featuregum");
}



if(jQuery("#featurecrown").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/crown.swf", "slideshow", "287", "300", "6", "#000000");
	sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
	sshow.addParam("wmode", "transparent");
	sshow.write("featurecrown");
}


if(jQuery("#featurerootcanal").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/rootcanal.swf", "slideshow", "350", "260", "6", "#000000");
	sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
	sshow.addParam("wmode", "transparent");
	sshow.write("featurerootcanal");
}


if(jQuery("#featurewisdom").length){
var sshow = new SWFObject("http://tools.televoxsites.com/features/wisdom.swf", "slideshow", "190", "205", "6", "#000000");
	sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
	sshow.addParam("wmode", "transparent");
	sshow.write("featurewisdom");
}


if(jQuery("#featureimplants").length){
var so = new SWFObject("http://tools.televoxsites.com/features/implant.swf", "feature", "200", "193", "6", "ffffff");
so.addParam("wmode", "transparent");
so.write("featureimplants");
}



});
