//sIFR implementation
function pageScripts() {
var Fontname = {src: DNN_skinPath + 'KozukaGothicProEL.swf' };
sIFR.activate(Fontname);
sIFR.replace(Fontname, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'KozukaGothicProEL.swf', 
  css: [ '.sIFR-root {color:#7c8bfc; font-size:36px; font-weight:bold;}'  ]
});
}

/*Menu implementation*/
jQuery(document).ready(function(){
	/*Menu Implementation*/
	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 () {}
	});
	
	/*removes the border around links*/	
	jQuery("a").focus(function(){
	this.blur();
	});
	
	/*Preload hover images*/
	menuImage = new Image(); 
	menuImage.src = DNN_skinPath + "images/fun_hover.jpg";
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_hover.jpg";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/officeinfo_hover.jpg";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/patientinfo_hover.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/treatment_hover.jpg";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/topMouseover.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/bottomMouseover.png";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/bottomMouseover_treatment.png";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/subbg_treatment.png";
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/subbg_funstuff.png";	
	
	if (jQuery("#orthsurgy").length){
		var so = new SWFObject("http://tools.televoxsites.com/features/orthognathic.swf", "features", "190", "205", "9", "#FF6600");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("orthsurgy"); 
	}
	
	if (jQuery("#tmjtmd").length){
		var so = new SWFObject("http://tools.televoxsites.com/features/jaws.swf", "features", "190", "206", "9", "#FF6600");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("tmjtmd"); 
	}	
});
