
<!-- HIDING FROM OLD BROWSERS

//MAIN FUNCTIONS
function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function openWin() {
 var popWin = window.open("","popWin","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=500,height=300");
}

//---------------------------------------- WINDOW LAUNCHER----------------------------------
function genericwin(theurl,thename,thewidth,theheight,special,left,top,scrollToggle,resizeToggle) {
	if (special==1) { var left=(screen.width-thewidth)/2; var top=(screen.height-theheight)/2;}
	var popWin=window.open(theurl,thename,'left='+left+',top='+top+',width='+thewidth+',height='+theheight+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+scrollToggle+',resizable='+resizeToggle+'');
}

//Menu
var rolled=0;
var sectionNum=0;
function menuOver(num) {
	//If there is a previous menu item, then turn it off
	if(rolled!=0) {
		MM_swapImage("menuTab"+rolled,"","img/menuTab_black.gif");
		MM_showHideLayers("subMenu"+rolled,"","hide");
		MM_showHideLayers("menuItemRoll"+rolled,"","hide");
	}
	//Turn on the tab, the black text overlay, submenu
	MM_swapImage("menuTab"+num,"","img/menuTab_yellow.gif");
	MM_showHideLayers("subMenu"+num,"","show");
	MM_showHideLayers("menuItemRoll"+num,"","show");
	//Hide all hiders
	for(i=1;i<=9;i++) {
		MM_showHideLayers("menuHider"+i,"","hide");
	}
	//Show all of the hiders except this one
	for(i=1;i<=9;i++) {
		if(i!=num) {
			MM_showHideLayers("menuHider"+i,"","show");
		}
	}
	//Set this number as in
	rolled=num;
} 

function menuOut() {
	//Turn on the tab, the black text overlay, submenu and background
	MM_swapImage("menuTab"+rolled,"","img/menuTab_black.gif");
	MM_showHideLayers("subMenu"+rolled,"","hide");
	MM_showHideLayers("menuItemRoll"+rolled,"","hide");
	//Hide all the hiders
	for(i=1;i<=9;i++) {
		MM_showHideLayers("menuHider"+i,"","hide");
	}
	//Set the in number to 0
	rolled=0;
} 
function submenuOver(num) {
	if(num!=sectionNum) {
		//Turn the indicator off
		MM_swapImage("indicator"+num,"","img/black.gif");
	}
}
function submenuOut(num) {
	if(num!=sectionNum) {
		//Image back
		MM_swapImgRestore();
	}
}
function submenuClick(num,linkName,linkType) {
	if(num!=sectionNum) {
		//Set a value for whether we switch over sub sections indicators at the end of this function
		subSwitch=false;
		//Based on link type
		if(linkType=="0") {
			//A normal straight page link (so subswitch should be true)
			subSwitch=true;
			//Now switch the page over
			window.top.frames['main'].location=linkName;
		}
		if(linkType=="1") {
			//Window open
			subSwitch=false;
			//Now switch the page over
			//window.open(linkName, 'mb', 'width=770, height=434, scrollbars=yes, resizable=yes');
			window.open(linkName);
		}
		//Check if we already have a subsection selected and that we are supposed to perfrom subswitch
		if(subSwitch == true) {
			if(sectionNum != 0) {
				//Switch any old image off
				MM_swapImage("indicator"+sectionNum,"","img/indicator.gif");
			}
			//Set this section as in
			sectionNum=num;
		}
	}
}
//-->
