function pageScripts(){
var TwCenMT = {  src: DNN_skinPath + 'TwCenMT.swf' };
sIFR.activate(TwCenMT);
sIFR.replace(TwCenMT, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'TwCenMT.swf', 
  css: [ '.sIFR-root {font-size:36px;color:#4f0e02;text-transform:uppercase;}'  ] 
});
}
///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});
	});

    jQuery(".Level1").append("<li><img src='/Portals/_default/Skins/stemarieorthodontics.com/images/submenu_bottom.png' class='subbtm'></li>");
	jQuery("#s63").append("<li><img src='/Portals/_default/Skins/stemarieorthodontics.com/images/submenu_bottom_about.png' class='subbtm1'></li>");

	 
		/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});	
	
	
		/*Preload the menu backgrounds*/
	menuImage1 = new Image(); 
	menuImage1src = DNN_skinPath + "images/home_h.png";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/about_h.png";	
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/pingo_h.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/treat_h.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/fun_h.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/contact_h.png";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/map_h.jpg";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/super_h.jpg";	
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/submenu_bottom.png";
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/dforms_h.jpg";	
	
	
	
	// flash features
	if (jQuery("#featurebefore").length){
		var so = new SWFObject("/features/loader.swf", "features", "500", "300", "9", "#FF6600");
		so.addVariable("config", "/features/config.xml");
		so.addVariable("feature", "beforeafter");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featurebefore"); 
	}	

	if (jQuery("#featureemer").length){
  		var so = new SWFObject("/features/loader.swf", "features", "500", "273", "9", "#FF6600");
  		so.addVariable("config", "/features/config.xml");
  		so.addVariable("feature", "emergencies");
  		so.addParam("wmode", "transparent");
  		so.addParam("quality", "high");
  		so.write("featureemer");
	}

	if (jQuery("#featurecommon").length){
		var so = new SWFObject("/features/loader.swf", "features", "500", "273", "9", "#FF6600");
		so.addVariable("config", "/features/config.xml");
		so.addVariable("feature", "problems");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featurecommon"); 
	}

	if (jQuery("#featuretypes").length){
		var so = new SWFObject("/features/loader.swf", "features", "500", "273", "9", "#FF6600");
		so.addVariable("config", "/features/config.xml");
		so.addVariable("xmlfile", "/features/types.xml");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featuretypes");
	}

	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");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featureoral"); 
	}
	
	if (jQuery("#featurecolor").length){
		var so = new SWFObject("/features/loader.swf", "features", "500", "375", "9", "#FF6600");
		so.addVariable("config", "/features/config.xml");
		so.addVariable("feature", "planner");
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("featurecolor");
	}	 
	

});
