function pageScripts(){
var ESP = {  src: DNN_skinPath + 'ESP.swf' };
sIFR.activate(ESP);
sIFR.replace(ESP, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'ESP.swf', 
  css: [ '.sIFR-root {color:#cd1d00; font-size:30px; }'  ]
});
}

jQuery(document).ready(function(){
jQuery('.acc h4').click(function() {
		jQuery(this).toggleClass('active').next().toggle("fast");
		return false;
	}).next().hide();									
jQuery('#navigation').accordion({
		active: false,
		header: '.menuTitle',
		animation:{height:"show"},
		event: 'click',
		autoheight:false,
		navigation:true,
		showSpeed:1200,
		hideSpeed:1400
	});

	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	
	/*Preload the menu backgrounds*/
	menuImage = new Image(); 
	menuImage.src = DNN_skinPath + "images/home_hover.png";
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/officeinfo_hover.png";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/newpatients_hover.png";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/patientinfo_hover.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/treatment_hover.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/fun_hover.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/contactus_hover.png";
	
	jQuery("#sub85").text("");
	jQuery("#sub86").text("");
	jQuery("#sub87").text("");
	jQuery("#sub88").text("");
	jQuery("#sub89").text("");
	jQuery("#sub85").attr("visible", "false");
	jQuery("#sub86").attr("visible", "false");
	jQuery("#sub87").attr("visible", "false");
	jQuery("#sub88").attr("visible", "false");
	jQuery("#sub89").attr("visible", "false");
	
	
// flash features	
	if (jQuery("#featureorthognathic").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/orthognathic.swf", "slideshow", "190", "205", "6", "#000000"); 
		sshow.addParam("wmode", "transparent"); 
		sshow.write("featureorthognathic");
	}
	if (jQuery("#orthodontist").length){
  		var sshow = new SWFObject("http://tools.televoxsites.com/features/beOrtho.swf", "slideshow", "500", "373", "6", "#000000");    		        sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt"); 
        sshow.addParam("wmode", "transparent"); 
        sshow.write("orthodontist");
	} 
		jQuery('#rpeClick').click(function() {
  		var sshow = new SWFObject("http://tools.televoxsites.com/features/rpa2.swf", "slideshow", "450", "350", "6", "#000000");
	    sshow.addParam("wmode", "transparent");
	    sshow.addParam("quality", "high");
		sshow.write("RPEflash");		
	});
		
/*		if (jQuery("#HomeVideo").length){
		var so = new SWFObject("/portals/0/JacobusVideos/FlashMediaPlayer2.swf", "features", "625", "315", "9", "#000000");		
		so.addParam("wmode", "transparent");
		so.addParam("quality", "high");
		so.write("HomeVideo"); 
	}	*/
 
});



