//sIFR implementation
function pageScripts() {
var TrebuchetMS = {  src: DNN_skinPath + 'TrebuchetMS.swf' };
sIFR.activate(TrebuchetMS);
sIFR.replace(TrebuchetMS, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'TrebuchetMS.swf', 
  css: [ '.sIFR-root {color:#0079c2; font-size:30px; letter-spacing:-1;}'  ]
});
}

//Menu implementation
jQuery(document).ready(function(){
jQuery('#navigation').accordion({
		active: false,
		header: '.menuTitle',
		animation:{height:"show"},
		event: 'click',
		autoheight:false,
		navigation:true,
		showSpeed:1200,
		hideSpeed:1400
	});
	
	 jQuery.noConflict();
	 jQuery('.acc h4').click(function() {
	 jQuery(this).toggleClass('active').next().toggle("fast");
	 return false;
	 }).next().hide(); 
	
	jQuery("#navigation li ul:empty").remove();
	jQuery("a").focus(function(){
	this.blur();
	});

	/*Preload the menu backgrounds*/	
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_hover.png";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/ouroffice_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/funstuff_hover.png";
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/patientlogin_hover.png";
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/map_hover.png";
	menuImage8 = new Image(); 
	menuImage8.src = DNN_skinPath + "images/patientform_hover.png";
	menuImage9 = new Image(); 
	menuImage9.src = DNN_skinPath + "images/meetdr_hover.png";
});






