function pageScripts(){
var avianregular = {  src: DNN_skinPath + 'avianregular.swf' };
sIFR.activate(avianregular);
sIFR.replace(avianregular, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'avianregular.swf', 
  css: [ '.sIFR-root {color:#360446;font-size:30px;}'  ]
});
}

/*Menu implementation*/
jQuery(document).ready(function(){
	var win=null;
	
	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 () {}
	});
	
	jQuery("a").focus(function(){
	this.blur();
	});
	
	jQuery(".Level1").append("<li><img src='/Portals/_default/Skins/islandbraces/images/menubottom.png' align='bottom' class='subbottom'/></li>");		


/* FQA page */
jQuery('.acc h4').click(function() {
		jQuery(this).toggleClass('active').next().toggle("fast");
		return false;
	}).next().hide();	


	
	/*Preload the menu backgrounds*/

	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/home_hover.png";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/aboutus_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";
});






function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
