//sIFR implementation
function pageScripts() {
var fontname = {  src: DNN_skinPath + 'MrsEavesSmallCaps.swf' };
sIFR.activate(fontname);
sIFR.replace(fontname, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'MrsEavesSmallCaps.swf',  
  css: [ '.sIFR-root {color:#fffce7;font-size:35px;font-weight:bold;}'  ]  
});
}

//Menu implementation
jQuery(document).ready(function(){
	jQuery('#MainMenu').accordion({ 
		active: false,
		header: '.menuTitle',
		animation:{height:"show"},
		event: 'click',
		autoheight:false,
		navigation:true,
		showSpeed: 100,
		hideSpeed: 100
	});
	
	/* THIS REMOVE THE LINE FROM THE EMPTY <UL> ELEMENTS (NOTE: be sure there is NO space between the <ul></ul> elements) */
	jQuery("#MainMenu li ul:empty").remove();
	
	/* remove box from links */
 	jQuery("a").focus(function(){
  		this.blur();
	});
 
    jQuery("#MainMenu li div span a").hover(
		function(){
	     jQuery('.ach',this).css({'display':'inline'});
	},
		function(){
	     jQuery('.ach',this).css({'display':'none'});
	});
     
	jQuery("#dnn_ctr_ManageTabs_tblPage td.SubHead").attr('width','100');
	
	/*Preload the menu backgrounds*/
	menuImage = new Image(); 
	menuImage.src = DNN_skinPath + "images/aboutus_hover.png";
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/contactus_hover.png";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/emergencyinfo_hover.png";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/home_hover.png";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/logn_hover.png";
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/orthodontics_hover.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/patientedu_hover.png";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/subbg_hover.jpg";
	
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/Events_hover.jpg";
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/map_hover.jpg";
	menuImage10 = new Image(); 
	menuImage10.src = DNN_skinPath + "images/pform_hover.jpg";	
	

	// flash features
	if (jQuery("#orthosurg").length){
		var sshow = new SWFObject("http://tools.televoxsites.com/features/orthognathic.swf", "slideshow", "190", "205", "6", "#000000");
		sshow.addVariable("colorslocation", location.host+DNN_skinPath+"colors.txt");
		sshow.addParam("wmode", "transparent");
		sshow.write("orthosurg");
	}
});
