/*DHTML Menu version 3.2.5
* written by Andy Woolley
* Copyright 2001 Andy Woolley. All Rights Reserved.
* vist:- http://www.milonic.com/menu or email:- menu3@milonic.com
*/

timer=setTimeout("sis()",9999);_d=document;smc=-1;
ns4=(_d.layers)?true:false
ns6=(navigator.userAgent.indexOf("Gecko")!=-1)?true:false
mac=(navigator.appVersion.indexOf("Mac")!=-1)?true:false
if(ns6)mac=false
opera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false
ns61=(parseInt(navigator.productSub)>=20010726)?true:false
ie4=(!_d.getElementById&&_d.all)?true:false;
konq=(navigator.userAgent.indexOf("Konqueror")!=-1)?true:false
mp=(ns6)?"pointer":"hand";atop=5;oatop=0;aleft=0;oaleft=1
var a,am,oa,im,om,flta;hlarr=new Array();hlcnt=0;hll=0;Mname=new Array()
timo=0;el=0;nshl=0;var omv=0;df=1;im=0;ofrac=0;omnu=0;ac=22;m=1;sy=1;ShM=0;OpSRes=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;bgt="";if(!opera)bgt="Color";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.eval(mtxt)}return m;}
function gmstyle(mtxt){m=gmobj(mtxt);if(!ns4){m=m.style;}return m;}
function spos(gm,t_,l_,h_,w_){px="px";if(ns4){px="";gms=gm;if(w_)gms.clip.width=w_;if(h_)gms.clip.height=h_;}else if(opera){px="";gms=gm.style;if(w_)gms.pixelWidth=w_;if(h_)gms.pixelHeight=h_}else{gms=gm.style;if(w_)gms.width=w_+px;if(h_)gms.height=h_+px;}if(t_)gms.top=t_+px;if(l_)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{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 close_el(){for(xa=hlarr.length-1;xa>=0;xa--){ti=hlarr[xa].split("-");tmenu=eval("menu"+ti[0]);if(ns4){shl(ti[0]-1,ti[1],'hide');}else{arg=gmobj("el"+ti[1]);arg.style.backgroundColor="#"+tmenu[6][1];if(opera)arg.style.background="#"+tmenu[6][1];arg.style.color="#"+tmenu[6][0];}if("menu"+ti[0]==hll){if(ns4)shl(ti[0]-1,hel,'show');return}}hlcnt=0;hlarr=new Array()}
function closeallmenus(){ShM=0;om=0;if(ns4){omv.visibility="hide"}for(a=1;a<menus;a++){menu=eval("menu"+a);mi=gmstyle("menu"+a);if (menu[7]!=1){mi.visibility='hidden'}else{am=""}}hll="";close_el();}
function rep_img(){if(timo){timo.src=o_img};}
function popdn(){arg=popdn.arguments;if(arg[0]){menu=eval(arg[2]);mnum=arg[2].substr(4,4);if(arg[3].substr(0,5)!="show-"){if(!ns4){if(arg[1]==smc&&menu[6][14]){menu[6][0]=menu[6][14];menu[6][1]=menu[6][15];}arg[0].style.backgroundColor="#"+menu[6][1];if(opera)arg[0].style.background="#"+menu[6][1];arg[0].style.color="#"+menu[6][0]}if(arg[1]==smc&&menu[6][14]){menu[6][0]=ofc;menu[6][1]=obc;}}else{if(ns4)omv=0;hlarr[hlcnt]=mnum+"-"+arg[1];hlcnt++;}}if(!menu[12])timer=setTimeout("closeallmenus()",timegap)}
function dc(){_d.cookie=sel;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;a<menus;a++){if(mn==Mname[a])mn=a}return mn;}
function sis(){for(a=1;a<imar.length;a++){tim=imar[a].split("_");if(tim[4]){tim[3]=tim[3]+"_"+tim[4]}menu=eval(window.tim[3]);if(ns4){mtl=_d.layers.eval(tim[3]).document.layers.eval("el"+tim[2]);ht=(mtl.clip.height/2);wd=mtl.clip.width-mtl.clip.left-8;eln="";for(x=0;x<2;x++){mtl=_d.layers.eval(tim[3]).document.layers.eval(eln+"el"+tim[2]).document.layers.eval(imar[a]);mtl.left=wd;if(menu[14]=="left")mtl.left=10;mtl.top=ht-(mtl.clip.height/2)-1;eln="m";}}else{imo=gmobj(imar[a]);im=gmobj("el"+tim[2]);imo.style.left=im.offsetWidth-8+"px";if(menu[13]=="left")imo.style.left=8;cr=0;if(ns6&&!ns61){mn=gmobj(tim[3]);cr=mn.offsetTop+"px"}if(mac)cr=4;imo.style.top=im.offsetTop+(im.offsetHeight/2)-(imo.offsetHeight/2)-parseInt(cr)+"px"}if(opera){imo.style.top=im.offsetTop+(im.style.pixelHeight/2)-4;if(menu[13]=="left"){}else{imo.style.left=im.style.pixelWidth-8}}}}
function fixb(mnu)
{
	menu=eval(mnu);
	m42=menu[4]*2
	mn=gmobj(mnu);
	if(ns4){if(menu[11])mn.clip.width=mn.clip.width+menu[4];return}
	mp=gpos(mn);
	el+=((menu.length-ac)/5);
	if(ns4){ml=_d.layers.eval(mnu).document.layers.eval("el"+(el-1))}else{ml=gmobj("el"+(el-1))}
	mlp=gpos(ml);
	tw=null;
	th=null;
	
	if(menu[11])
	{
		ic=(menu.length-ac)/5;
		lf=0;
		for (y=el-ic;y<el;y++)
		{
			ty=gmobj("el"+y);
			typ=gpos(ty);
			thy=gmobj("hel"+y);
			thyp=gpos(thy);
			
			if(mac&&_d.all)
			{
				if(menu[3])
				{
					thy.style.width=menu[3]+"px";
				}
				else
				{
					thy.style.width=1+"px";
					ty.style.width=thy.offsetWidth+menu[6][9]+"px";
				}
				typ[3]=thy.offsetWidth
			}
			
			if(opera)
			{
				ty.style.top=menu[4];
				if(lf==0)lf=menu[4]
				typ[2]=typ[2]+(menu[4]*2)
			}
			spos(thy,0,lf,null,null);
			lf=lf+typ[3]+1;
		}		
		tw=lf-1
		th=typ[2]
		if(_d.compatMode=="CSS1Compat"){}else{if(mac){if(!_d.doctype)th=th+(menu[4]*2)}else if(_d.all&&!opera){tw=tw+(menu[4]*2);th=th+(menu[4]*2)}}
		if(opera)tw=tw+(menu[4])
	}
	else
	{
		if(_d.all)tw=mlp[3]
		if(ns6)tw=mp[3]-(menu[4]*4)
		if(opera)tw=mp[3]+(menu[6][9]*2)-(menu[4]*2)
		if(mac)
		{
			th=mlp[0]+mlp[2]-3;
			if(!_d.doctype)th=th+(menu[4]*2)
		}
	}
	spos(mn,null,null,th,tw);
}

function sm(v1){if(flta){ap=gmobj(v1);if(ap.filters[0]) ap.filters[0].Apply()}else{if(menu[9]){ts=menu[9].substr(0,4);if (ts.toUpperCase()=="FADE"){}}}mi.visibility='visible';if(flta){if(ap.filters[0])ap.filters[0].Play()}}
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}return true}
function popup(mn,mpos){if(isNaN(mn)){for(a=1;a<menus;a++){if(mn==Mname[a])mn=a}}setpos();omv.visibility='hide';clearTimeout(timer);closeallmenus();mtxt='menu'+mn;mi=gmstyle(mtxt);if(mpos){mn=gmobj(mtxt);spos(mn,MouseY+5,MouseX+5,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(timer);mt=_d.layers[lyr].document.layers.eval("el"+el);omv.visibility="hide";menu=eval(lyr);if(menu[14]!="form")mt.visibility=s;omv=mt;}
function popi(v1,lyr,el)
{
	subfound=0;
	for(a=1;a<menus;a++)
	{
		if(v1.substring(10,99)==Mname[a])
		{
			v1="show-menu"+a;
			subfound=1;
			a=999
		}
	}
	sel="smenu="+el+"#";
	if(!om)om=lyr;
	clearTimeout(timer);
	if(ns4)
	{
		timo=_d.layers.eval(lyr).document.layers.eval("el"+el).document.images[0]
	}
	else
	{
		timo=gmobj("im"+el)
	}
	o_img="";
	if (timo)
	{
		o_img=timo.src;
		ima=o_img.split(".");
		enD=ima.length;
		if(ima[enD-2].indexOf("_over")==-1)ima[enD-2]=ima[enD-2]+"_over";
		nsrc="";
		for(eD=0;eD<enD;eD++)
		{
			nsrc=nsrc+ima[eD]+"."
		}
		nsrc=nsrc.substring(0,nsrc.length-1);
		ta=om.split(",");
		NI1=new Image;
		NI1.src=nsrc;
		if(NI1.width>0)timo.src=nsrc;
	}
	container=eval(lyr);
	if(subfound)
	{
		v1=v1.substring(5,20);
		menu=eval(v1);
		omnu=v1;		
		mi=gmobj(v1);
		gp=gpos(gmobj(lyr));
		h3="";
		if(container[11])h3="h";
		if(ns4){tel=gpos(_d.layers.eval(lyr).document.layers.eval("el"+el))}else{tel=gpos(gmobj(h3+"el"+el))}
		np=gpos(mi);
		if(container[11])
		{
			if(!ns61&&ns6){gp[1]=-1;gp[0]--}
			if(ns4||mac)gp[1]--;
			if(mac)gp[0]--;
			if(container[5].indexOf("bottom")>=0)
			{
				tvar=container[1]
				if(!tvar)tvar=0;
				gp[0]=gp[0]-np[2]-tel[2]
			}
			if(tel[1]+gp[1]+np[3]>ww){gp[1]=ww-np[3]-tel[1];if(!_d.all)gp[1]=gp[1]-14}
			mtop=gp[0]+gp[2]-1;
			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;}}
			spos(mi,mtop,mleft,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;
			if((gp[1]+gp[3]+np[3])>=ww){nl=gp[1]-np[3]+suboffset_left}
			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]
			spos(mi,nt,nl,null,null);
		}
		om+=","+v1;
		if(ShM==1)
		{
			sm(v1);			
			if(!ns4)mi.style.visibility="visible";
			ShM=0;
		}
	}

	ta=om.split(",")
	strt=0;
	
	for(a=0;a<ta.length;a++)
	{
		if (ta[a]==v1)strt=0;
		if (strt)
		{
			if(ta[a])
			{
				hll=lyr;
				hel=el;
				close_el(el);
				mi=gmstyle(ta[a]);
				mi.visibility='hidden';
			}
		ta[a]=""
		}
		if(ta[a]==lyr)strt=1;
	}
	mmenu=eval(lyr)
	if(mmenu[7]&&lyr!=ta[0])
	{
		closeallmenus();
		if(v1==ta[ta.length-1])
		{
			if (ns4)shl(lyr,el,'show');
			mi=gmstyle(v1);
			mi.visibility='visible';
		}
		ta=[v1];
	}
	om=""
	disp=0
	for(a=0;a<ta.length;a++)
	{
		if(ta[a]==lyr)frs=a
		if(ta[a]==v1)fre=a
		if (disp||(a>frs&&a<fre))
		{
			if (ta[a]&&ta[a]!=v1)
			{
				mi=gmstyle(ta[a]);
				mi.visibility='hidden';
				close_el(el);
				if(ns4)shl(lyr,el,'hide');
			}
		}
		else
		{
			if(ta[a])om+=ta[a]+",";
		}
		if (v1==ta[a])disp=1
	}	
}
function stch(ms){window.status=ms; return true}
function hl()
{		
	arg=hl.arguments;
	hlnk=arg[1];if(arg[7]+""=="undefined"){arg[7]=hlnk}
	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="<style type=\"text/css\">A.m{text-decoration:none;}</style>";_d.write(st);oatop=atop;}else{mtl=_d.layers.eval(omnu).document.layers.eval("el"+(el-1));if (oatop==atop){atop+=mtl.clip.height}else{atop=menu[4];}oatop=atop}if (menu[11]){atop=menu[4];if (oaleft==aleft){aleft+=mtl.clip.width+menu[4]}else{aleft=menu[4];oaleft=aleft}oaleft=aleft}else{aleft=menu[4];}}
	pd="popdn(this," + el + ", '" + arg[5] + "', '"+arg[1]+"');"
	if(arg[0].indexOf("<img")>=0){ipos=arg[0].indexOf("<img");arg[0]=arg[0].substr(0,ipos+4)+" id=im"+el+" "+ arg[0].substr(ipos+5,900)}
	
	if (hlnk.substring(0,5)=="show-"){if(arg[7]==hlnk) if(arg[6])arg[7]=arg[6];else arg[7]="";hlnk="#";if (arg[6]+" "!="undefined ")hlnk=arg[6];}
	if (arg[1].substring(0,5)=="show-" && (!menu[11]||menu[6][16])){im++;ims="im"+im+"_"+a+"_"+el+"_"+arg[5];ti=arg[2][10];
	if(menu[6][16]&&menu[11])ti=menu[6][16];
	if(ns4){sti="<img border=0 src="+ti+">";if(!arg[2][10]||arg[2][10]=="a"){arg[2][10]="a";sti=""}subimg="<layer id="+ims+">"+sti+"</layer>";}else{subimg="<img id="+ims+" border=0 style=\"position:absolute;\" src="+ti+">"};if(!arg[2][10])subimg="<div id="+ims+"></div>";imar[im]=ims;}
	ltarg=" ";
	
	
	if(smc==el&&arg[2][14]){ofc=arg[2][0];obc=arg[2][1];arg[2][0]=arg[2][14];arg[2][1]=arg[2][15]}
	
	if(hlnk.indexOf(" "))
	{
		
	lpos=hlnk.toLowerCase(hlnk).indexOf(" target=");
	if(lpos>0){lta=hlnk.split(" ");ltarg=lta[1];hlnk=lta[0]}
			
	}
	
	
	
	pI="popi('"+arg[1]+"','"+arg[5]+"',"+el+");"
	smO="ShM=1;"
	smC=""
	if(menu[16]==1)
	{
		smO="";
		hlnk="javascript:ShM=1;"+pI
	}
	if(ns4){
		rsp=""
		tdwd=" width="+menu[3]
		if(!menu[8]||menu[8]=="left")tdwd=""		
		if (menu[8]=="right") rsp="<td height=-1></td>"
		ls="<table cellpadding="+(arg[2][9]/2)+" cellspacing=0><tr><td height=-1 align="+menu[8]+tdwd+"><a href=\""+hlnk+"\" "+ltarg+" onclick=\"_d.cookie=sel;\" style='color:#"
		le=";text-decoration:none;font-size:"+arg[2][5]+"px;font-weight:"+arg[2][7]+";font-family:"+arg[2][8]+"' onmouseover=\";return stch('"+arg[7]+"');\">"+arg[0]+"</a>"+subimg+"</td>"+rsp+"</tr></table></layer>"
		lv=" left="+aleft+" width="+(menu[3]-(menu[4]*2))+" top="+atop		
		mt="<layer id=mel"+el+lv+" bgColor="+arg[2][1]+" onmouseover=\""+smO+"shl('"+arg[5]+"',"+el+",'show');popi('"+arg[1]+"','"+arg[5]+"',"+el+"); window.status='"+arg[7]+"';\">"+ls+arg[2][0]+le
		mt+="<layer id=el"+el+lv+" bgColor="+arg[2][3]+" onmouseover=\"ltarg='"+ltarg+"'; nshl='"+hlnk+"'; this.captureEvents(Event.CLICK); this.onClick=dc;\" onmouseout=\"window.status='';"+pd+"\" visibility=hidden >"+ls+arg[2][2]+le
	}else{
		mt="";
		if (menu[11]){bgc=hlp[4];if(hlp[11])bgc=hlp[12];mt+="<div id=hel"+el+" style=\"background-color:#"+bgc+";width:"+(menu[3]-menu[4])+"px;position:absolute;top:0;left:"+dlft+";\">";dlft=dlft+menu[3]-(menu[4]*2)+menu[4]}
		if(!menu[8])menu[8]="left"
		rsp=0;if (menu[8]=="right") rsp=7;		
		if(menu[14]!="form") {mt+="<a href=\""+hlnk+"\" "+ltarg+" style='text-decoration:none;'>"}
		dw=(menu[3]-(2*menu[4]+dwd))
		if(dw+" "=="NaN "){dw=""}else{dw="width:"+dw+"px"}
		if(!menu[3]&&ie4)dw="width:1px";
		if(!menu[3]&&opera){dw="position:absolute;";menu[8]="left"}
		mt+="<div align="+menu[8]+" id=el"+el+" style=\""+dw+";padding-left:"+arg[2][9]+"px;padding-right:"+(arg[2][9]+rsp)+"px;padding-top:"+arg[2][9]+"px;padding-bottom:"+arg[2][9]+"px;font-weight:"+arg[2][7]+";font-style:"+arg[2][6]+";font-family:"+arg[2][8]+";font-size:"+arg[2][5]+"px;color:#"+arg[2][0]+";background-color:#"+arg[2][1]+";\""
		mt+=" onMouseOver=\""+smO+"this.style.cursor='"+mp+"';this.style.background"+bgt+"='#"+arg[2][3]+"';this.style.color='#"+arg[2][2]+"';"+pI+";return stch('"+arg[7]+"');\""		
		mt+=" onclick=_d.cookie=sel onMouseOut=\"rep_img(); "+pd+";return stch('');\">"
		mt+=arg[0]+subimg+"</div>";mt+="</a>";if (menu[11]){mt+="</div>"}
	}
	_d.write(mt)
	if(smc==el&&arg[2][14]){arg[2][0]=ofc;arg[2][1]=obc;}el++
}

function dmenu(mnu){
	menu=eval(mnu);atop=menu[4];hlp=menu[6];if(!menu[4])menu[4]=0;
	if(menu[14]=="form")hlp[14]="";
	if(hlp[14]&&el==0){tc=_d.cookie;tp=tc.indexOf("smenu=");smc=tc.substr(tp+6,10);smc=smc.substr(0,smc.indexOf("#"));if(!smc)smc=-1}
	if(el)ns6c=3;else ns6c=2;ns6w=0;if(menu[8]=="right"&&ns6)ns6w=7;
	if (menu[3]<1)menu[3]="undefined"
	if(ns4)
	{
		thw=menu[3]
		if(menu[11]){ic=(menu.length-ac)/5;thw=(menu[3]*ic)-(menu[4]*ic)+menu[4]}
		bgc=hlp[4]
		if (hlp[11]){bgc=hlp[13]}
		mt="<layer z-index=90 visibility=hidden bgcolor=#"+bgc+" id="+mnu+" top="+menu[1]+" left="+menu[2]+" width="+thw+">"
		if (hlp[11]){mt+="<layer bgcolor=#"+hlp[12]+" top=0 left=0 height=2 width=100%></layer>"}mt+="<layer id="+mnu+"3d bgcolor=#"+hlp[12]+" top=0 left=0 height=1 width=2></layer>"}
	else
	{
		iedf="";if(!opera&&!mac&&_d.all&&menu[9])
		{
			iedf=" filter:";flt=menu[9].split("\;");for(fx=0;fx<flt.length;fx++){iedf+=" progid:DXImageTransform.Microsoft."+flt[fx]}}
		if (hlp[11]){brd = "border:solid "+menu[4]+"px; border-left-color:#"+hlp[12]+";border-top-color:#"+hlp[12]+";border-bottom-color:#"+hlp[13]+";border-right-color:#"+hlp[13]+";"}else{brd = "border:solid "+menu[4]+"px; border-left-color:#"+hlp[4]+";border-top-color:#"+hlp[4]+";border-bottom-color:#"+hlp[4]+";border-right-color:#"+hlp[4]+";"}
		mt="<div id="+mnu+" style=\""+iedf+";z-index:90;visibility:hidden;"+brd+"position:absolute;background-Color:#"+hlp[4]+";width:"+(menu[3]+ns6w)+"px;left:"+menu[2]+"px;top:"+menu[1]+"px;\">"
	}
	_d.write(mt)
	x=0;
	dlft=0
	aleft=0;
	for(b=ac;b<menu.length;b++)
	{
		b=b+4
		if(menu[b-3]==""){menu[b-3]="#"}
		menu[b-3] = menu[b-3].replace(/\"/gi, "&quot;")
		if(!menu[b])menu[b]=0
		hl(menu[b-4], menu[b-3], hlp, 100, 100, mnu, menu[b-2], menu[b-1])
		txt="";
		if(ns4)
		{
			if (!menu[11])
			{
				if (menu[b]&&b<menu.length-1)
				{
					mt=_d.layers[mnu].document.layers.eval("el"+(el-1))
					_d.lay
					x=atop+mt.clip.height
					if (!hlp[11]) x++
					txt="<layer top="+(x-2)+" left="+menu[4]+" height=1 bgcolor=#"+bgc+" width="+mt.clip.width+"></layer>"
					if (hlp[11]) {txt+="<layer top="+(x-1)+" left="+menu[4]+" height=1 bgcolor=#"+hlp[12]+" width="+mt.clip.width+"></layer>"}
				}
			}
		} 
		else	
		{
			bw=menu[b];	bc=hlp[4];bl="";oc="";if(opera){bl="left:0;";oc="_d.getElementById('el"+el+"').style.background='#"+hlp[1]+"';_d.getElementById('el"+el+"').style.color='#"+hlp[0]+"'";if(opera&&bw==0){bw=1;bc=hlp[1];bl+="width:"+menu[3]-menu[4]+"px"}else{ocv=3;if(menu[4]==1)ocv=4;bl+="width:"+(menu[3]+ocv-menu[4])+"px"}}
			if(b+1==menu.length)bw=0;
			if(bw>0)
			{
				if (!menu[11])
				{
					dwid=(menu[3]-(menu[4]*2))
					if(_d.all&&_d.compatMode=="CSS1Compat")dwid=(menu[3]+(menu[4]*3))

					if (hlp[11]&&bw==1)
					{
						txt="<div onmouseout=\""+oc+"\" onmouseover=\"clearTimeout(timer)\" style=\"position:relative\">"
						txt+="<div style=\"border-top:1px solid #"+hlp[13]+"; background-color:#"+hlp[12]+"; width:"+dwid+"px;position:absolute;clip:rect(0 100% 2 0);height:1;"+bl+"\">"
						txt+="</div></div>"
					}
					else
					{
						txt="<div style=\"position:relative;\">"
						txt+="<div onmouseout=\"popdn();"+oc+"\" onmouseover=\"clearTimeout(timer)\" style=\"background-color:#"+bc+";width:"+dwid+"px;position:absolute;"
						txt+="clip:rect(0 100% "+bw+"px 0);height:"+bw+"px;"+bl+"\">"
						txt+="</div>"
						txt+="</div>"
					}
				}
			}
		}
		_d.write(txt);
		omnu=mnu;
		mt=""
	}
	oatop=-1;
	if (ns4){mt="</layer>"}else{mt+="</div></div>"}
	_d.write(mt)
	if (ns4)
	{
		ml=gmobj(mnu)
		ml.clip.height += menu[4]
		ml3d=_d.layers[mnu].document.layers.eval(mnu+"3d")
		if (hlp[11])ml3d.clip.height=ml.clip.height
	}
}

function checs(e)
{
	if(_d.all){sy=_d.body.scrollTop}else{sy=self.pageYOffset}
	if(opera){sy=pageYOffset}else if(_d.all&&sy==0&&!ie4)sy=_d.documentElement.scrollTop
	ScrollF=0;
	for(a=1;a<menus;a++)
	{
		menu=eval("menu"+a);
		if(menu[10]>0)
		{
			ScrollF=1
			if (df!=0||osy!=sy)
			{				
				mi=gmobj("menu"+a);	tm=gpos(mi);mit=tm[0];if(isNaN(menu[1]))menu[1]=0;
				df=parseInt(menu[1])+sy-mit;
				nt=df/followspeed;
				of1=nt.toString();
				ofr=of1.split("\.");
				if(ofr[1]+" "=="undefined ")ofr[1]=0;
				ofrac=ofrac+parseInt(ofr[1]);
				if(ofrac>10)
				{
					ofrac=ofrac-10;
					if(df>=0){nt++}else{nt--}
				}
				spos(mi,mit+nt,null,null,null)
			}
			osy=sy
		}
	}
	if(opera&&OpSRes){oow=window.innerWidth;ooh=window.innerHeight;if(oow!=ww||ooh!=wh){ww=oow;wh=ooh;location.reload();}}
	if(ns4)_d.captureEvents(Event.MOUSEMOVE)
	_d.onmousemove=getMouseXY;
	if(ScrollF||opera)pu=setTimeout('checs()',followrate)
}

function setpos()
{
	if(ns6){ww=_d.body.offsetWidth;if(!ww)ww=self.innerWidth-15;ww--;wh=self.innerHeight}
	if(_d.all&&!opera){if(_d.compatMode=="CSS1Compat"){ww=document.documentElement.clientWidth;wh= document.documentElement.clientHeight}else{ww=_d.body.clientWidth;wh=_d.body.clientHeight}}	
	else if(opera){ww=window.innerWidth;wh=window.innerHeight;}else{ww=self.innerWidth-16;wh=self.innerHeight-17;}
	for (a=1;a<menus;a++)
	{
		menu=eval("menu"+a);
		if(!menu[5])menu[5]="";
		if (menu[5].indexOf("left")!=-1||menu[5].indexOf("center")!=-1||menu[5].indexOf("right")!=-1)
		{			
			mn=gmobj("menu"+a);
			mnp=gpos(mn)
			mnw=mnp[3]
			nlp=((ww-mnw)/2);
			if(menu[5].indexOf("right")!=-1)nlp=ww-mnw;
			if(menu[5].indexOf("left")!=-1)nlp=1;
			ts=menu[2]+"";
			if(ts.indexOf("offset=")==0)
			{
				os=ts.substr(7,99);
				nlp=nlp+parseInt(os)
			}
			spos(mn,null,nlp,null,null)
		}
		if (menu[5].indexOf("top")!=-1||menu[5].indexOf("bottom")!=-1||menu[5].indexOf("middle")!=-1)
		{
			mn=gmobj("menu"+a);
			mnp=gpos(mn)
			mnh=mnp[2]
			if(opera)mnh=mn.style.pixelHeight;
			nlp=wh-mnh;
			if(menu[5].indexOf("middle")!=-1)nlp=((wh-mnh)/2)
			if(menu[5].indexOf("top")!=-1)nlp=1
			ts=menu[1]+""
			if(ts.indexOf("offset=")==0)
			{
				os=ts.substr(7,99);
				mnp=gpos(mn);
				nlp=nlp+parseInt(os)
			}
			if(menu[10]){menu[1]=nlp;nlp=nlp+sy}			
			spos(mn,nlp,null,null,null)
		}
	}
}
function coc(){menu=eval(omnu);if(menu[14]!="form")closeallmenus()}
function mORS(){if(ns4){if(window.innerWidth-16==ww&&window.innerHeight-17==wh)return;window.history.go(0)}else{if(Oresize)Oresize();setpos();}}
function mOL(){if(!ns61&ns6)Minit();sis();setpos();if(opera)OpSRes=1;if(Oload)Oload();}
function Minit()
{
	el=0;osy=-1;df=-1;
	if ((_d.all&&_d.getElementById)&&!mac) document.write("<script>function getflta(ap){try{if(ap.filters){flta=1}}catch(e){}}</script>");	
	for(x=1;x<menus;x++){menu=eval("menu"+x);if(menu[7]==1)popup(x)}
	for(a=1;a<menus;a++){fixb("menu"+a)}
	window.onresize=mORS;
	if(ns4)_d.onmousedown=coc;else _d.onclick=coc
	frs=0
	fre=0
	checs();
	sis();setpos();
}
for(a=1;a<menus;a++){dmenu("menu"+a)}
Oload=window.onload;Oresize=window.onresize;
if(!ns61&ns6){window.onload=mOL}else{Minit();mOL;window.onload=mOL}
if(mac&&_d.all){_d.write("<div style=\"position:absolute;top:0;left:0\">")}

