//sIFR implementation
function pageScripts() {
var MarkerFeltThin = {src: DNN_skinPath + 'MarkerFeltThin.swf' };
sIFR.activate(MarkerFeltThin);
sIFR.replace(MarkerFeltThin, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'MarkerFeltThin.swf', 
  css: [ '.sIFR-root {color:#f6950d; font-size:30px; font-weight:normal;}'  ]
});
}

//Menu implementation	   
jQuery(document).ready(function(){
	jQuery("#navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse", 
		delay:1200,
		animation:{height:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
	}).find(">li:has(ul)").mouseover(function () {
		jQuery("li", this).bgIframe({opacity:true});
	}).find("a").focus(function () {
		jQuery("ul", jQuery("#navigation > ul >li:has(ul)")).bgIframe({opacity:true});
	});
	
	/* remove box from links */
	jQuery("a").focus(function(){
	this.blur();
	});
	
    /*Preload the menu backgrounds*/
	menuImage = new Image(); 
	menuImage.src = DNN_skinPath + "images/fun_on.png";
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_on.png";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/officeinfo_on.png";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/patientinfo_on.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/treatment_on.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/bestbay_hover.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/drRini_hover.png";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/newpatient_hover.png";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/drtami_hover.png";
	
	// flash features
		if (jQuery("#dentaldevelopment").length){
  		var sshow = new SWFObject("http://tools.televoxsites.com/features/dentaldevelopment.swf", "slideshow", "450", "400", "6", "#000000"); 
		sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt"); 
		sshow.addParam("wmode", "transparent"); 
		sshow.write("dentaldevelopment");
	}
});
