//sIFR implementation
function pageScripts() {
var OptimaLTstd= {  src: DNN_skinPath + 'OptimaLTstd.swf' };
sIFR.activate(OptimaLTstd);
sIFR.replace(OptimaLTstd, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'OptimaLTstd.swf', 
  css: [ '.sIFR-root {color:#ffffff;font-size:38px;}'  ]
});
}

///Menu implementation
jQuery(document).ready(function(){
								
 jQuery.noConflict();	
jQuery('.acc h3').click(function() {
		jQuery(this).toggleClass('active').next().toggle("fast");
		return false;
	}).next().hide();	

	jQuery('#Navigation').accordion({
		active: false,
		header: '.menuTitle',
		event: 'click',
		autoheight:false,
		navigation:true,
		showSpeed:1200,
		hideSpeed:1400
	});
	
	 jQuery("#Navigation li .submenu").append("<li><img src='/Portals/_default/Skins/goodnightortho.com/images/submenu_bottom.png' align='bottom' class='subbottom' /></li>");
	 
	 
	/* remove box from links */
 jQuery("a").focus(function(){
  this.blur();
 });
 
	
	
	/*Preload the menu backgrounds*/
	menuImage = new Image(); 
	menuImage.src = DNN_skinPath + "images/home_hover.jpg";
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/plogin_hover.jpg";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/mos_hover.jpg";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/off_hover.jpg";
	menuImage4 = new Image(); 
	menuImage4.src = DNN_skinPath + "images/pat_hover.jpg";	
	menuImage5 = new Image(); 
	menuImage5.src = DNN_skinPath + "images/tret_hover.jpg";	
	menuImage6 = new Image(); 
	menuImage6.src = DNN_skinPath + "images/fun_hover.jpg";	
	menuImage7 = new Image(); 
	menuImage7.src = DNN_skinPath + "images/cus_hover.jpg";	

});
