function pageScripts(){
var Muli = {  src: DNN_skinPath + 'Muli.swf' };
sIFR.activate(Muli);
sIFR.replace(Muli, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'Muli.swf', 
  css: [ '.sIFR-root {color:#336699; font-size:32px;}'  ]
});
}

function pageScripts1(){
var OvertheRainbow = {  src: DNN_skinPath + 'OvertheRainbow.swf' };
sIFR.activate(OvertheRainbow);
sIFR.replace(OvertheRainbow, {
  selector: 'h5', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'OvertheRainbow.swf', 
  css: [ '.sIFR-root {color:#000000; font-size:16px; font-weight:normal;}'  ]
});
}

function pageScripts2(){
var Overtherainbowbold = {  src: DNN_skinPath + 'Overtherainbowbold.swf' };
sIFR.activate(Overtherainbowbold);
sIFR.replace(Overtherainbowbold, {
  selector: 'h6', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'Overtherainbowbold.swf', 
  css: [ '.sIFR-root {color:#000000; font-size:16px; font-weight:bold;}'  ]
});
}
///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 () {}
});
	
//FAQ

jQuery('.acc h4').click(function() {
 jQuery(this).toggleClass('active').next().toggle("fast");
 return false;
 }).next().hide(); 

/* remove box from links */
jQuery("a").focus(function(){
		this.blur();
});		
		
/*Preload the menu backgrounds*/

menuImage1 = new Image(); 
menuImage1src = DNN_skinPath + "images/aboutus_on.jpg";
menuImage2 = new Image(); 
menuImage2.src = DNN_skinPath + "images/braces101_on.jpg";	
menuImage3 = new Image(); 
menuImage3.src = DNN_skinPath + "images/contact_on.jpg";
menuImage4 = new Image(); 
menuImage4.src = DNN_skinPath + "images/games_on.jpg";
menuImage5 = new Image(); 
menuImage5.src = DNN_skinPath + "images/orthodontics_on.jpg";
menuImage6 = new Image(); 
menuImage6.src = DNN_skinPath + "images/referrals_on.jpg";
menuImage7 = new Image(); 
menuImage7.src = DNN_skinPath + "images/testimonials_on.jpg";

	if (jQuery("#slider").length) {
		jQuery("#slider").easySlider({
			auto: true, 
			continuous: true
		});
	}
	
	if (jQuery('.lightbox').length) {
		jQuery(".lightbox").lightbox();
	}


if (jQuery("#featuretypes").length){
		var so = new SWFObject("/features/loader.swf", "features", "500", "310", "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("#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("#featureparts").length){
	var so = new SWFObject("/features/loader.swf", "features", "500", "315", "9", "#FF6600");
	so.addVariable("config", "/features/config.xml");
	so.addVariable("feature", "parts");
	so.addParam("wmode", "transparent");
	so.addParam("quality", "high");
	so.write("featureparts"); 
}

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");
}
});
