﻿function FP_swapImg() {//v1.0
 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
 n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
 elm.$src=elm.src; elm.src=args[n+1]; } }
}

function FP_preloadImgs() {//v1.0
 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
 for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}

function FP_getObjectByID(id,o) {//v1.0
 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
 else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
 if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
 for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
 f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
 for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
 return null;
}

function FP_swapImgRestore() {//v1.0
 var doc=document,i; if(doc.$imgSwaps) { for(i=0;i<doc.$imgSwaps.length;i++) {
  var elm=doc.$imgSwaps[i]; if(elm) { elm.src=elm.$src; elm.$src=null; } } 
  doc.$imgSwaps=null; }
}

function FP_changePropRestore() {//v1.0
 var d=document,x; if(d.$cpe) { for(i=0; i<d.$cpe.length; i++) { x=d.$cpe[i];
 if(x.v=="") x.v=""; eval("x."+x.n+"=String(x.v)"); } d.$cpe=null; }
}

function FP_changeProp() {//v1.0
 var args=arguments,d=document,i,j,id=args[0],o=FP_getObjectByID(id),s,ao,v,x;
 d.$cpe=new Array(); if(o) for(i=2; i<args.length; i+=2) { v=args[i+1]; s="o"; 
 ao=args[i].split("."); for(j=0; j<ao.length; j++) { s+="."+ao[j]; if(null==eval(s)) { 
  s=null; break; } } x=new Object; x.o=o; x.n=new Array(); x.v=new Array();
 x.n[x.n.length]=s; eval("x.v[x.v.length]="+s); d.$cpe[d.$cpe.length]=x;
 if(s) eval(s+"=v"); }
}

// Initialisation code to run at Page Load
window.onload = function() {
//	Preload the images that will be called by the event handlers
	FP_preloadImgs('images/sam.gif','images/bans.gif','images/bc.gif','images/bd.gif','images/jug.gif','images/elhs.gif','images/moth.gif','images/seal.gif','images/jet.gif','images/lnc.gif','images/cc.gif','images/thhol.gif','images/thn.gif','images/zyl.gif','images/dlr.gif');
// Create event handlers for the Links
	var x=document.getElementById('tSchool');
	if (x) {
	x.onmouseover=function () {FP_swapImg(1,1,/*id*/'star',/*url*/'images/sam.gif'); FP_changeProp(/*id*/'box1',1,'style.visibility','visible')};
	x.onmouseout =function () {FP_swapImgRestore(); FP_changePropRestore();}; 
	}
	var x=document.getElementById('tBans');
	if (x) {
	x.onmouseover=function () {FP_swapImg(1,1,/*id*/'star',/*url*/'images/bans.gif'); FP_changeProp(/*id*/'box2',1,'style.visibility','visible')};
	x.onmouseout =function () {FP_swapImgRestore(); FP_changePropRestore();}; 
	}
	var x=document.getElementById('tBc');
	if (x) {
	x.onmouseover=function () {FP_swapImg(1,1,/*id*/'star',/*url*/'images/bc.gif'); FP_changeProp(/*id*/'box3',1,'style.visibility','visible')};
	x.onmouseout =function () {FP_swapImgRestore(); FP_changePropRestore();}; 
	}
	var x=document.getElementById('tBd');
	if (x) {
	x.onmouseover=function () {FP_swapImg(1,1,/*id*/'star',/*url*/'images/bd.gif'); FP_changeProp(/*id*/'box4',1,'style.visibility','visible')};
	x.onmouseout =function () {FP_swapImgRestore(); FP_changePropRestore();}; 
	}
	var x=document.getElementById('tJug');
	if (x) {
	x.onmouseover=function () {FP_swapImg(1,1,/*id*/'star',/*url*/'images/jug.gif'); FP_changeProp(/*id*/'box5',1,'style.visibility','visible')};
	x.onmouseout =function () {FP_swapImgRestore(); FP_changePropRestore();}; 
	}
	var x=document.getElementById('tElhs');
	if (x) {
	x.onmouseover=function () {FP_swapImg(1,1,/*id*/'star',/*url*/'images/elhs.gif'); FP_changeProp(/*id*/'box6',1,'style.visibility','visible')};
	x.onmouseout =function () {FP_swapImgRestore(); FP_changePropRestore();}; 
	}
	var x=document.getElementById('tMoth');
	if (x) {
	x.onmouseover=function () {FP_swapImg(1,1,/*id*/'star',/*url*/'images/moth.gif'); FP_changeProp(/*id*/'box7',1,'style.visibility','visible')};
	x.onmouseout =function () {FP_swapImgRestore(); FP_changePropRestore();}; 
	}
	var x=document.getElementById('tSeal');
	if (x) {
	x.onmouseover=function () {FP_swapImg(1,1,/*id*/'star',/*url*/'images/seal.gif'); FP_changeProp(/*id*/'box8',1,'style.visibility','visible')};
	x.onmouseout =function () {FP_swapImgRestore(); FP_changePropRestore();}; 
	}
	var x=document.getElementById('tJet');
	if (x) {
	x.onmouseover=function () {FP_swapImg(1,1,/*id*/'star',/*url*/'images/jet.gif'); FP_changeProp(/*id*/'box9',1,'style.visibility','visible')};
	x.onmouseout =function () {FP_swapImgRestore(); FP_changePropRestore();}; 
	}
	var x=document.getElementById('tLnc');
	if (x) {
	x.onmouseover=function () {FP_swapImg(1,1,/*id*/'star',/*url*/'images/lnc.gif'); FP_changeProp(/*id*/'box10',1,'style.visibility','visible')};
	x.onmouseout =function () {FP_swapImgRestore(); FP_changePropRestore();}; 
	}
	var x=document.getElementById('tCc');
	if (x) {
	x.onmouseover=function () {FP_swapImg(1,1,/*id*/'star',/*url*/'images/cc.gif'); FP_changeProp(/*id*/'box11',1,'style.visibility','visible')};
	x.onmouseout =function () {FP_swapImgRestore(); FP_changePropRestore();}; 
	}
	var x=document.getElementById('tThhol');
	if (x) {
	x.onmouseover=function () {FP_swapImg(1,1,/*id*/'star',/*url*/'images/thhol.gif'); FP_changeProp(/*id*/'box12',1,'style.visibility','visible')};
	x.onmouseout =function () {FP_swapImgRestore(); FP_changePropRestore();}; 
	}
	var x=document.getElementById('tThn');
	if (x) {
	x.onmouseover=function () {FP_swapImg(1,1,/*id*/'star',/*url*/'images/thn.gif'); FP_changeProp(/*id*/'box13',1,'style.visibility','visible')};
	x.onmouseout =function () {FP_swapImgRestore(); FP_changePropRestore();}; 
	}
	var x=document.getElementById('tZyl');
	if (x) {
	x.onmouseover=function () {FP_swapImg(1,1,/*id*/'star',/*url*/'images/zyl.gif'); FP_changeProp(/*id*/'box14',1,'style.visibility','visible')};
	x.onmouseout =function () {FP_swapImgRestore(); FP_changePropRestore();}; 
	}
	var x=document.getElementById('tDlr');
	if (x) {
	x.onmouseover=function () {FP_swapImg(1,1,/*id*/'star',/*url*/'images/dlr.gif'); FP_changeProp(/*id*/'box15',1,'style.visibility','visible')};
	x.onmouseout =function () {FP_swapImgRestore(); FP_changePropRestore();}; 
	}
}

