/*
Milonic DHTML Website Navigation Menu - Version 3.4.03
Written by Andy Woolley - Copyright 2002 (c) Milonic Solutions Limited. All Rights Reserved.
Please visit http://www.milonic.co.uk/menu or e-mail menu3@milonic.com for more information.
The Free use of this menu is only available to Non-Profit, Educational & Personal web sites.
Commercial and Corporate licenses are available for use on all other web sites & Intranets.
All Copyright notices MUST remain in place at ALL times and, please keep us informed of your
intentions to use the menu and send us your URL.
*/
Mtimer=setTimeout("rep_img()",99999);_d=document;smc=-1;MLoaded=0;ST=0;mspu=0;pu=0;
ns4=(_d.layers)?true:false
ns6=(navigator.userAgent.indexOf("Gecko")!=-1)?true:false
mac=(navigator.appVersion.indexOf("Mac")!=-1)?true:false
mac45=(navigator.appVersion.indexOf("MSIE 4.5")!=-1)?true:false
if(ns6||ns4)mac=false
loadWait=0;
opera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false
ns61=(parseInt(navigator.productSub)>=20010726)?true:false
ie4=(!_d.getElementById&&_d.all)?true:false;ta=0;
konq=(navigator.userAgent.indexOf("Konqueror")!=-1)?true:false
mp=(ns6)?"pointer":"hand";oatop=0;aleft=0;oaleft=1;osy=0;oww=-1;owh=-1;frs=0;fre=0;nsmatch=0;okpgms=0;
var kel,a,am,oa,im,om,flta;hlarr=new Array();hlcnt=0;hll=0;Mname=new Array();parr=new Array();SwapIM=new Array();keyar=new Array();keyarC=0;keynum=0;MenuHasFocus=1;
ParentMenu=0;pf=0;gmi=20;ns6hif=0;timo=0;el=0;nshl=0;var omv=0;df=1;im=0;ofrac=0;omnu=0;kmnu=0;ac=22;m=1;sy=1;ShM=0;ww=0;wh=0;var imar=new Array();mr=",";
while(eval("window.menu"+m)){mr+="menu"+m+",";tmenu=eval("menu"+m);Mname[m]=tmenu[0].toLowerCase();m++}
mr=mr+" ";mr=mr.split("\,");menus=mr.length-1;var cgm=0;
function gmobj(mtxt){if(_d.getElementById){m=_d.getElementById(mtxt)}else if(_d.all){m=_d.all[mtxt]}else if(_d.layers){m=_d.layers[mtxt]}return m;}
function gmstyle(mtxt){m=gmobj(mtxt);if(!ns4){if(m)m=m.style;}return m;}
function spos(gm,t_,l_,h_,w_){px="px";if(ns4){px="";gms=gm;if(w_!=null)gms.clip.width=w_;if(h_!=null)gms.clip.height=h_;}else if(opera){px="";gms=gm.style;if(w_!=null)gms.pixelWidth=w_;if(h_!=null)gms.pixelHeight=h_}else{gms=gm.style;if(w_!=null)gms.width=w_+px;if(h_!=null)gms.height=h_+px;}if(t_!=null)gms.top=t_+px;if(l_!=null)gms.left=l_+px}
function gpos(gm){if(ns4){t_=gm.top;l_=gm.left;h_=gm.clip.height;w_=gm.clip.width;}else if(opera){t_=gm.style.pixelTop;l_=gm.style.pixelLeft;h_=gm.style.pixelHeight;w_=gm.style.pixelWidth;}else if(ns6){t_=gm.offsetTop;l_=gm.offsetLeft;h_=gm.offsetHeight;w_=gm.offsetWidth}else{if(mac){topM=gm.offsetParent.topMargin;if(!topM)topM=0;leftM=gm.offsetParent.leftMargin;if(!leftM)leftM=0;t_=parseInt(topM)+gm.offsetTop;l_=parseInt(leftM)+gm.offsetLeft;}else{t_=gm.offsetTop;l_=gm.offsetLeft;}h_=gm.offsetHeight;w_=gm.offsetWidth;}if(konq){w_=parseInt(gm.style.width);h_=parseInt(gm.style.height);}var gpa=new Array();gpa[0]=t_;gpa[1]=l_;gpa[2]=h_;gpa[3]=w_;return(gpa)}
function getMouseXY(e){if(ns4||ns6){MouseX=e.pageX;MouseY=e.pageY;}else{MouseX=event.clientX;MouseY=event.clientY}if(!opera&&_d.all){MouseX=MouseX+_d.body.scrollLeft;MouseY=MouseY+_d.body.scrollTop;if(_d.compatMode=="CSS1Compat")MouseY=MouseY+sy};return true;}
function parseLink(txt,what){txt=txt+";";lt="";if(what=="link"){if(txt.indexOf(""")>0){lt=txt}else{sp=txt.indexOf(" ");lt=txt.substr(0,sp);}}else{sp=txt.indexOf(what)+what.length+1;if(sp>what.length+1){lt=txt.substr(sp,999);lt=lt.substr(0,lt.indexOf(";"))}}return lt}
function cHexColor(_c){if(_c.length==6){_c=_c.toUpperCase();x=0;while(x<6){hsh="#";if(_c.charCodeAt(x)>70){hsh="";x=6}x++}_c=hsh+_c}return _c}
function stch(ms){window.status=ms;return true}
function SDiv(nm,sh){if(ns4&&nm.indexOf(".")>0)tD=eval(nm); else tD=gmstyle(nm);if(tD)if(sh)tD.visibility="visible";else tD.visibility="hidden"}
function close_el(){for(xa=hlarr.length-1;xa>=0;xa--){ti=hlarr[xa].split("_");tmenu=eval(ti[0]);if(ns4){shl(ti[0],ti[1],'hide');}else{arg=gmobj("el"+ti[1]);arg.style.background=ti[2];arg.style.color=""+ti[3];}if(ti[0]==hll){if(ns4)shl(ti[0],hel,'show');return}}hlcnt=0;hlarr=new Array()}
function closeallmenus(){ShM=0;om="";hll="";close_el();if(pf&&pf.MLoaded)pf.closeallmenus();if(ParentMenu){ParentMenu.close_el()}if(ns4){omv.visibility="hide"}for(a=1;a-1)return;tr=ltarg.split("=");if(tr[1])parent.frames[tr[1]].location.href=nshl;else location.href=nshl;}
function getMenuByName(mn){mn=mn.toLowerCase();for(a=1;a0)lfL=menu[ac-1+(tc*5)];lf=lf+typ[3]+lfL;hsep=gmobj("hsep"+y);if(y0)ttop=MouseY+2; else ttop=gp[0];if((ttop+gp[2])>(wh+sy)){ttop=wh-gp[2]+sy;if(!mpos&&mpos>0){spos(mn,ttop,null,null,null);}}if(mpos){spos(mn,ttop,MouseX+2,null,null);}flta=0;if((_d.all&&_d.getElementById)&&!mac){ap=gmobj(mtxt);getflta(ap);}sm(mtxt);am=mn}
function shl(lyr,el,s){clearTimeout(Mtimer);mt=_d.layers[lyr].document.layers.eval("el"+el);omv.visibility="hide";menu=eval(lyr);mt.visibility=s;omv=mt}
function popi(v1,lyr,el)
{
kel=el;subfound=0;nv1=v1;
for(a=1;a=0){tvar=container[1];if(!tvar)tvar=0;gp[0]=gp[0]-np[2]-tel[2]}
if(tel[1]+gp[1]+np[3]>ww+sx){gp[1]=ww-np[3]-tel[1]+sx;}
mtop=gp[0]+gp[2];
mleft=tel[1]+gp[1];
if(container[15])mleft=mleft-np[3]+tel[3]+(container[4]*2)
m1=menu[1];
if(m1){m1=m1+"";if(m1.indexOf("offset=")==0){os=m1.substr(7,99);mtop=(parseInt(os)+mtop);}else{if(m1)mtop=parseInt(m1);}}
m2=menu[2];
if(m2){m2=m2+"";
if(m2.indexOf("offset=")==0){os=menu[2].substr(7,99);mleft=(parseInt(os)+mleft);}else{if(m2)mleft=m2;}
}
if(menu[5])setpos();else spos(mi,mtop,mleft-1,null,null);
}
else
{
if(!ns61&&ns6)tel[0]=tel[0]-gp[0];
nt=tel[0]+gp[0]+suboffset_top;
nl=gp[1]+tel[3]-suboffset_left;
onl=nl
if((gp[1]+gp[3]+np[3])>=ww||menu[15]){nl=gp[1]-np[3]+suboffset_left}
if(nl<0)nl=onl
if(nt+np[2]>wh+sy){nt=wh-np[2]+sy;}
if(menu[1]>=0)nt=menu[1]
if(menu[2]>=0)nl=menu[2]
if(menu[5])setpos();else spos(mi,nt,nl,null,null);
}
om+=","+v1;
if(ShM==1){sm(v1);if(!ns4)mi.style.visibility="visible"}
// Scroll Code **********
if(menu[19])
{
gp=gpos(gmobj(v1));
gpc=gpos(gmobj("S"+v1))
tt=0;
if((gp[0]+gpc[2])>wh+sy)
{
spos(gmobj("S"+v1),null,null,(wh+sy)-gp[0]-10-2);
spos(gmobj(v1),null,null,(wh+sy)-gp[0]-10);
}
else
{
}
}
// Scroll Code **********
}
else
{
frt=v1.indexOf(" ")
lt=parseLink(v1, "sourceframe");
if(lt)pf=parent[lt];
if(frt>0&&v1.indexOf("show-menu=")>-1)
{
if(lt)
{
v1=v1.substring(10,frt);
if(pf.MLoaded)
{
close_el()
pf.mn=pf.gmobj("menu"+pf.getMenuByName(v1));
menu=eval(lyr);
gp=gpos(gmobj(lyr));
h3="";
if(container[11])h3="h";
if(ns4){mp=gpos(_d.layers[lyr].document.layers.eval("el"+el))}else{mp=gpos(gmobj(h3+"el"+el))}
if(menu[11])
{
fTop=pf.sy;
fLeft=gp[1]+mp[1]+Frames_Left_Offset;
}
else
{
fTop=pf.sy+gp[0]+mp[0]+Frames_Top_Offset;
fLeft=100
}
pf.spos(pf.mn,fTop,fLeft-100,null,null);
pf.popup(v1);
pf.ParentMenu=self
}
}
}
else if(frt>0)
{
if(lt)
{
if(pf)
{
v1=v1.substring(10,frt);
if(pf.MLoaded)pf.closeallmenus();
}
}
}
}
ta=om.split(",")
strt=0;
for(a=0;afrs&&a=0 && tt<(gp[2]-gp[0]))
{
mi.style.clip = "rect("+tt+"px "+mip[3]+"px "+(tt+gp[2]-7)+"px 0px)"
ns6c=0
if((ns6&&!ns61)||mac)ns6c=1
spos(mi,-tt,null,tt+gp[2])
ST = setTimeout("scroll("+val+",'"+mnu+"')",30);
}
else
{
tt=tt+val
clearTimeout(ST)
}
clearTimeout(Mtimer);
}
// Scroll Code **********
function hl()
{
arg=hl.arguments;imgact="";hlnk=arg[1];if(!menu[8]&&menu[15])menu[8]="right";am=" "+a;am=am.length-1;subimg="";arg[0]+="";if(ns6){dwd=arg[2][9]*2}else{dwd=0};if(ns4){if(el==0){st="