//sIFR implementation
function pageScripts() {
var BenguaitBook = {src: DNN_skinPath + 'BenguaitBook.swf' };
sIFR.activate(BenguaitBook);
sIFR.replace(BenguaitBook, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'BenguaitBook.swf', 
  css: [ '.sIFR-root {color:#694229; font-size:30px;}'  ] 
});
}

//Menu implementation	   
jQuery(document).ready(function(){
	jQuery("#navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse", 
		delay:2000,
		animation:{height:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
	});
	
	jQuery(".Level1").append("<li><img src='/Portals/_default/Skins/haneyorthodontics.com/images/submenubg_bot.png' class='subbtm'></li>");	

    /*Preload the menu backgrounds*/
	menuImage = new Image(); 
	menuImage.src = DNN_skinPath + "images/fs_on.jpg";
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_on.jpg";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/oo_on.jpg";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/pi_on.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/pl_on.jpg";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/tt_on.jpg";	
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/cs_on.jpg";	


	
// flash features
if (jQuery("#DentalDevelopement").length){
var so = new SWFObject("http://tools.televoxsites.com/features/dentaldevelopment.swf", "features", "450", "400", "9", "#FF6600");
so.addParam("wmode", "transparent");
so.addParam("quality", "high");
so.write("DentalDevelopement"); 
} 


if (jQuery("#featurecolor").length){
var so = new SWFObject("/features/loader.swf", "features", "500", "325", "9", "#FF6600"); so.addVariable("config", "/features/config.xml"); so.addVariable("feature", "planner"); so.addParam("wmode", "transparent"); so.addParam("quality", "high"); so.write("featurecolor");
} 	
		
});
