<!--
function linkOver(el){
    if(el.style){
        el.style.background='#ffffff';
        el.style.cursor='hand';
    }
}
function linkOut(el){
    if(el.style){
        el.style.background='#cc0033';
        el.style.cursor='default';
    }
}
function linkClick(url){
    window.parent.location.href=url;
}
var Number=4 //Set the number of popups here.
var current=null,timer1=null,timer2=null,time=200 //Don't change these.
function browserCheck(){
    this.agent=navigator.userAgent.toLowerCase();
    this.opera=(this.agent.indexOf('opera')>-1);
    this.ie4=(document.all && !document.getElementById);
    this.ie5=(document.all && document.getElementById && !this.opera);
    this.ie55=(this.ie5 && this.agent.indexOf("msie 5.5")>-1);
    this.ns4=(document.layers && !document.getElementById);
    this.ns6=(!document.all && document.getElementById && !this.opera);
    this.mac=(this.agent.indexOf('mac')>-1 && this.ie4); // For excluding IE4 macs only
    this.ok=(this.ie4 || this.ie5 || this.ns4 || this.ns6 || this.opera);
}
bc=new browserCheck()
if(bc.ie4) time= 700; //Odd workaround for explorer 4...
if(bc.ns4){ //NS4 resize fix.
    scrX= innerWidth; scrY= innerHeight;
    onresize= function(){if(scrX!= innerWidth || scrY!= innerHeight){history.go(0)} };
}
//The object constructor
function makeMenu(obj,nest){
    nest=(!nest)?'':'document.'+nest+'.';
    this.el=bc.ie4?document.all[obj]:bc.ns4?eval(nest+'document.'+obj):document.getElementById(obj);
    this.css=bc.ns4?this.el:this.el.style;
    this.x=(bc.ns4||bc.opera)?this.css.left:this.el.offsetLeft;
    this.y=(bc.ns4||bc.opera)?this.css.top:this.el.offsetTop;
    this.width=(bc.ie4||bc.ie5||bc.ns6)?this.el.offsetWidth:bc.ns4?this.el.clip.width:bc.opera?this.css.pixelWidth:0;
    this.height=(bc.ie4||bc.ie5||bc.ns6)?this.el.offsetHeight:bc.ns4?this.el.clip.height:bc.opera?this.css.pixelHeight:0;
    this.moveTo=b_moveTo;
    this.hideIt=b_hideIt;
    this.showIt=b_showIt;
}
//object constructor methods
function b_moveTo(x,y){this.x=x; this.y=y; this.css.left=x; this.css.top=y}
function b_hideIt(){this.css.visibility='hidden'}
function b_showIt(){this.css.visibility='visible'}

function show(num){
    clearTimeout(timer1);
    clearTimeout(timer2);
    if(current!=num)hideCurrent();
    Sub[num].showIt();
    current=num;
    if(bc.ns4) setTimeout('clearTimeout(timer2)',time/2); //In NS4, sometimes the events have to be corrected a little extra.
}
function hide(){ timer1=setTimeout('hideCurrent()',time); };
function hideCurrent(){
    if(current!=null){
        Sub[current].hideIt();
        currentOff=current+1;
        eval("imgOff('img0"+currentOff+"')");
    }
}

//Page initiator - makes the objects etc.
function initMenu(){
    Sub=new Array();
    for(var i=0; i<Number; i++){
        Sub[i]=new makeMenu('divSub'+i);
        Sub[i].el.onmouseover=function(){ clearTimeout(timer1); clearTimeout(timer2); }
        Sub[i].el.onmouseout=function(){ timer2=setTimeout('hideCurrent()',time); };
    }
}
if(bc.ok) initMenu();
//-->
