Mtimer=setTimeout("cis()",9999);
smc=-1;
MLoaded=0;

IE = (document.all) ? true : false;
NS=(navigator.userAgent.indexOf("Gecko")!=-1)?true:false
function selshow(){var aSels;if(IE){aSels = document.all.tags("SELECT");for (i=0; i<aSels.length; i++)aSels[i].style.visibility = "visible";}}
function selhide(){var aSels;if(IE){aSels = document.all.tags("SELECT");for (i=0; i<aSels.length; i++)aSels[i].style.visibility = "hidden";}}

mp=(NS)?"pointer":"hand";oatop=0;aleft=0;oaleft=1;osy=0;oww=-1;owh=-1;frs=0;fre=0;nsmatch=0;
var a,am,oa,im,om,flta;
hlarr=new Array();
hlcnt=0;hll=0;
Mname=new Array();
parr=new Array();
gmi=20;
nshif=0;
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;
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;bgt="";
if(NS)bgt="Color";
var cgm=0;
function getbobj(mtxt){if(document.getElementById){m=document.getElementById(mtxt)}else if(IE){m=IE[mtxt]}return m;}
function getbstyle(mtxt){m=getbobj(mtxt);{if(m)m=m.style;}return m;}
function spos(gm,t_,l_,h_,w_){px="px";{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(NS){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;
		}
	var gpa=new Array();
	gpa[0]=t_;
	gpa[1]=l_;
	gpa[2]=h_;
	gpa[3]=w_;
	return(gpa)
	}
function getMouseXY(e)
	{
	if(NS){MouseX=e.pageX;MouseY=e.pageY;}
	else{MouseX=event.clientX;MouseY=event.clientY}
	return true
	}
function parseLink(txt,what)
	{
		txt=txt+";";
		lt="";
		if(what=="link")
			{
				if(txt.indexOf("&quot;")>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="javascript:void(0)";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){
	tD=getbstyle(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]);
	{	
	arg=getbobj("el"+ti[1]);arg.style.backgroundColor=ti[2];
	arg.style.color=""+ti[3];
	}
	if(ti[0]==hll)
		{
			return
		}
		}
		hlcnt=0;hlarr=new Array()
		}

function closeallmenus(){ShM=0;om="";hll="";close_el();
	for(a=1;a<menus;a++){menu=eval("menu"+a);if(menu[17]&&MLoaded){SDiv(menu[17],1)}if (menu[7]!=1){SDiv("menu"+a,0)}else{am=""}}}

function rep_img(){if(timo){timo.src=o_img};}

function popdn()
	{
	arg=popdn.arguments;
	if(arg[0])
	{
		if(arg[3].substr(0,5)!="show-")
			{
				arg[0].style.backgroundColor=arg[4];
				arg[0].style.color=arg[5];
			}
	
		else
			{
			omv=0;hlarr[hlcnt]=arg[2]+"_"+arg[1]+"_"+arg[4]+"_"+arg[5];hlcnt++;
			}
		
	menu=eval(arg[2]);
		if(!menu[12])
			{
			if(IE) Mtimer=setTimeout("closeallmenus(); selshow()",timegap);
			else Mtimer=setTimeout("closeallmenus()",timegap);
			}
	}
	
	else{Mtimer=setTimeout("closeallmenus()",timegap);
	}
	}	

function dc(){if(nshl.indexOf("show-menu=")>-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;a<menus;a++){if(mn==Mname[a])mn=a}return mn;}
function getMenuItem(mn,item){for(a=1;a<mn;a++){menu=eval("menu"+a);item=item+((menu.length-ac)/5)}item--;return item}
function cis()
	{
	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]);
				{
				imo=getbobj(imar[a]);
				imop=gpos(imo);
				im=getbobj("el"+tim[2]);
				imp=gpos(im);
				if(menu[11])
					{
					imco=gpos(getbobj("hel"+tim[2]));
					imc=imco[1];
					}
				else 
					{
					imc=0
					}
				imT=imp[0]+(imp[2]/2)-(imop[2]/2);
				imL=imc+imp[3]-(imop[3]);
				if(menu[13]=="left")imL=imc;
				if(menu[13]=="center")imL=imc+(imp[3]/2);
				if(NS&&IE)
					{
					nsC=gpos(getbobj(tim[3]));
					imT=imT-nsC[0];
					imL=imL-nsC[1]
					}
				spos(imo,imT,imL,null,null);
				}
		}
	}
	
function fixb(mnu)
{
	menu=eval(mnu);
	ic=(menu.length-ac)/5;
	menu[21][2]=1;
	m42=menu[4]*2;
	mn=getbobj(mnu);
	mp=gpos(mn);
	el=menu[21][1];{ml=getbobj("el"+(el-1))}
	mlp=gpos(ml);
	tw=null;
	th=null;
	if(menu[11])
	{
		lf=0;
		tc=0;
		for(y=el-ic;y<el;y++)
			{
				tc++;
				ty=getbobj("el"+y);
				typ=gpos(ty);
				thy=getbobj("hel"+y);
				thyp=gpos(thy);
				spos(thy,0,lf,typ[2],typ[3]);
				lfL=0;
				if(menu[ac-1+(tc*5)]>0)lfL=menu[ac-1+(tc*5)];
				lf=lf+typ[3]+lfL;
			}
			tw=lf-lfL;
			th=typ[2];
				{
				if(IE)
					{
						tw=tw+(m42);
						th=th+(m42);
					}
				}
				
				}
					
				else
				{
					if(NS)tw=mp[3]-(menu[4]*4);
				}
			spos(mn,null,null,th,tw);
				if(NS)th=th+m42;
				if(menu[14]>-1)
					{
					spos(getbobj("menuback"+mnu),null,null,th+(menu[14]*2),null)
					}
}
			
function sm(v1)
{
	menu=eval(v1);
	if(NS||menu[11])if(!menu[7]&&!menu[21][2])fixb(v1);
	ap=getbobj(v1);
	if(flta)if(ap.filters[0])ap.filters[0].Apply();
	gmi++;
	aps=ap.style;
	aps.zIndex=gmi;
	aps.visibility='visible';
	if(flta)if(ap.filters[0])ap.filters[0].Play();
	if(menu[17])SDiv(menu[17],0)
}

function popup(mn,mpos)
{
if(isNaN(mn))
	{
	for(a=1;a<menus;a++)
		{
		if(mn==Mname[a])mn=a
		}
	}
setpos();
omv.visibility='hide';
clearTimeout(Mtimer);
closeallmenus();
mtxt='menu'+mn;mi=getbstyle(mtxt);
	if(mpos)
		{
		document.onmousemove=getMouseXY;mn=getbobj(mtxt);
		ttop=MouseY+2;
		gp=gpos(mn);
		if((ttop+gp[2])>wh+sy)ttop=wh-gp[2]+sy;
		spos(mn,ttop,MouseX+2,null,null);
		}
flta=0;
	if(IE&&document.getElementById)
		{
		ap=getbobj(mtxt);
		getflta(ap);
		}
sm(mtxt);
am=mn;
}

function shl(lyr,el,s)
	{
		clearTimeout(Mtimer);
		mt=document.layers[lyr].document.layers.eval("el"+el);
		omv.visibility="hide";
		menu=eval(lyr);
		mt.visibility=s;omv=mt}

function popi(v1,lyr,el)
{ 
	if (IE)	selhide();
	
	subfound=0;
	nv1=v1
	for(a=1;a<menus;a++)
	{
		if(v1.substring(10,99)==Mname[a])
		{
			v1="show-menu"+a;
			subfound=1;
			a=999
		}
	}
	sel="smenu="+el+"javascript:void(0)";
	if(!om)om=lyr;
	clearTimeout(Mtimer);
	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(IE||document.getElementById){if(NI1.complete)timo.src=nsrc}else{if(NI1.width>0)timo.src=nsrc}
	}

	container=eval(lyr);
	if(subfound)
	{
		v1=v1.substring(5,99);
		menu=eval(v1);
		omnu=v1;		
		mi=getbobj(v1);
		gp=gpos(getbobj(lyr));
		h3="";
		if(container[11])h3="h";
		tel=gpos(getbobj(h3+"el"+el));
		np=gpos(mi);
		if(container[11])
		{
			if(!container[5])container[5]="";
			if(IE)gp[1]=gp[1]+container[4];
			if(NS){gp[1]=gp[1]+container[4];
			gp[0]=gp[0]-container[4];}
			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+sx)
				{
					gp[1]=ww-np[3]-tel[1]+sx;
				}
// xxxxxxxx Position of Children xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx //				
			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-1,null,null);
		}
		
//xxxx Modify here for Children and Grand children location/////////////////////////////////////////////		
		else
		{		
			if(IE&&NS)tel[0]=tel[0]-gp[0];
			nt=tel[0]+gp[0]+suboffset_top;
			nl=gp[1]+tel[3]-suboffset_left+1; //Child Left IE
			if((gp[1]+gp[3]+np[3])>=ww)
				{
					if(IE)nl=gp[1]-np[3]+suboffset_left+9; //Grandchild Left IE
					if(NS)nl=gp[1]-np[3]+suboffset_left+4; //Grandchild Left NS
				}
					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);
			mi.style.visibility="visible";
		}
	}
	else
	{
		frt=v1.indexOf(" ")
		if(frt>0&&v1.indexOf("show-menu=")>-1)
		{
			lt=parseLink(v1, "target");
			if(lt)
			{
				v1=v1.substring(10,frt);
				pf=parent[lt];
				pf.mn=pf.getbobj("menu"+pf.getMenuByName(v1));
				menu=eval(lyr);
				gp=gpos(getbobj(lyr));
				h3="";
				if(container[11])h3="h";
				mp=gpos(getbobj(h3+"el"+el));
				if(menu[11])
				{					
					fTop=pf.sy;
					fLeft=gp[1]+mp[1]+Frames_Top_Offset;
				}
			else
				{
					fTop=pf.sy+gp[0]+mp[0];
					fLeft=100
				}
				pf.spos(pf.mn,fTop,fLeft-100,null,null);
				pf.popup(v1);
				closeallmenus();
			}
		}
		else if(frt>0)
		{
			lt=parseLink(v1, "target");
			if(lt)
			{
				v1=v1.substring(10,frt);
				close_el(v1)
				pf=parent[lt];
				if(pf)pf.closeallmenus();
			}
		}
		
	}
	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);
				tmnu=eval(ta[a])
				if(tmnu[17]&&!menu[17])SDiv(tmnu[17],1)
				SDiv(ta[a],0)
			}
		ta[a]=""
		}
		if(ta[a]==lyr)strt=1;
	}
	mmenu=eval(lyr)
	if(mmenu[7]&&lyr!=ta[0])
	{
		closeallmenus();
		if(v1==ta[ta.length-1])
		{
			tmnu=eval(v1);
			if(tmnu[17])SDiv(tmnu[17],0)
			SDiv(v1,1)
		}
		if(nv1.indexOf("target=")>0)
		{
		}
		else
		{
			popi(nv1,lyr,el);
			return
		}
	}
	om=""
	mdisp=0
	for(a=0;a<ta.length;a++)
	{
		if(ta[a]==lyr)frs=a
		if(ta[a]==v1)fre=a
		if (mdisp||(a>frs&&a<fre))
		{
			if (ta[a]&&ta[a]!=v1)
			{
				SDiv(ta[a],0)
				close_el(el);
			}
		}
		else
		{
			if(ta[a])om+=ta[a]+",";
		}
		if (v1==ta[a])mdisp=1
	}	
}


function hl()
{	
	arg=hl.arguments;
	hlnk=arg[1];
	am=" "+a;am=am.length-1;subimg="";arg[0]+=""
	if(NS){dwd=arg[2][9]*2}else{dwd=0}		
	if(hlnk.substring(0,5)=="show-"){arg[1]=arg[1].toLowerCase();if(arg[7]==hlnk) if(arg[6])arg[7]=arg[6];else arg[7]="";hlnk="javascript:void(0)";if (arg[6]+" "!="undefined ")hlnk=arg[6];}
	pI="popi('"+arg[1]+"','"+arg[5]+"',"+el+");"
	if(arg[1].substring(0,5)=="show-"&&(!menu[11]||menu[6][16])&&(menu[11]||menu[6][10])){im++;ims="im"+im+"_"+a+"_"+el+"_"+arg[5];ti=arg[2][10];if(menu[6][16]&&menu[11])ti=menu[6][16];
		subimg="<img id="+ims+" style=\"position:absolute;\" onmouseover=\"getbobj('el"+el+"').onmouseover();\" onmouseout=\"getbobj('el"+el+"').onmouseout();\" border=0 src="+ti+">";
		imar[im]=ims;}omp=mp;ofc=arg[2][0];ofb=arg[2][1];onc=arg[2][2];onb=arg[2][3];ltarg=" ";lOnfunc="";lOffunc="";ltype="";lalign=menu[8];if(!lalign)lalign="left"
	if(hlnk.indexOf(" ")>0)
	{
		_al=parseLink(hlnk,"align");if(_al)lalign=_al;
		ltarg=parseLink(hlnk,"target");
		if(ltarg)ltarg=" target="+ltarg
		lOnfunc=parseLink(hlnk,"onfunction")+";";
		lOffunc=parseLink(hlnk,"offfunction")+";";
		ltype=parseLink(hlnk,"type");
		tofc=parseLink(hlnk,"offfontcolor");if(tofc)(ofc=cHexColor(tofc))
		tofb=parseLink(hlnk,"offbackcolor");if(tofb)(ofb=cHexColor(tofb))
		tonc=parseLink(hlnk,"onfontcolor");if(tonc)(onc=cHexColor(tonc))
		tonb=parseLink(hlnk,"onbackcolor");if(tonb)(onb=cHexColor(tonb))
		hlnk=parseLink(hlnk,"link");
	}
	
	//if(!ofb&&mac)
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////	
	//ofb="transparent";
	if(arg[7]+""=="undefined"){arg[7]=hlnk}
	if(ltype=="form"){onc=ofc;onb=ofb;mp="default"}
	if(ltype=="header"&&arg[2][17]){ofc=arg[2][17];ofb=arg[2][18];onc=arg[2][17];onb=arg[2][18];mp="default"}
	smO="ShM=1;";smC="";
	if(menu[16]==1){smO="";hlnk="javascript:ShM=1;"+pI}
	if(hlp[14])if(location.href.indexOf(hlnk)>=0&&(hlnk.substr(-1,1)!="/")){smc=el}
	if(hlnk!="javascript:void(0)"&&smc==el&&arg[2][14]){ofc=arg[2][14];ofb=arg[2][15];}
	if(ltype=="form"||hlnk=="javascript:void(0)"||ltype=="header"){mp="default";hlnk=" ";}
	else{hlnk="<a href=\""+hlnk+"\" "+ltarg + " style='text-decoration:none;'>";}
	pd="popdn(this," + el + ", '" + arg[5] + "', '"+arg[1]+"', '"+ofb+"', '"+ofc+"');"
	if(arg[0].indexOf("<img")>=0)
	{
		if(menu[11]&&NS)nshif=1
		ipos=arg[0].indexOf("<img");
		arg[0]=arg[0].substr(0,ipos+4)+" onclick=\"getbobj('el"+el+"').click()\" id=im"+el+" "+ arg[0].substr(ipos+5,900);
	}
	if(!isNaN(arg[2][5]))arg[2][5]+="px";
		mt="";
		if(menu[11])
			{
				bgc=hlp[4];
				if(hlp[11])bgc=hlp[12];
				mt+="<div id=hel"+el+" style=\"background-color:'"+ofb+"';width:"+(menu[3]-menu[4])+"px;position:absolute;top:0;left:"+dlft+";\">";dlft=dlft+menu[3]-(menu[4]*2)+menu[4]
			}
	rsp=0;if (lalign=="right") rsp=7;		
	mt+=hlnk
	dw=(menu[3]-(2*menu[4]+dwd))
		if(dw+" "=="NaN ")
			{
				dw=""
			}
		else
			{
				dw="width:"+dw+"px"
			}
		//if(!document.getElementById&&IE)dw="width:1px";
		if(isNaN(arg[2][9]))
			{
			padd=arg[2][9]
			}
		else
			{
			psp=arg[2][9]+"px "
			padd=psp+psp+psp+psp
			}
	if(menu[11]&&menu[3]>0)dw="position:absolute;width:"+menu[3]+"px"
	mt+="<div valign=top align="+lalign+" id=el"+el+" style=\""+dw+";padding:"+padd+";font-weight:"+arg[2][7]+";font-style:"+arg[2][6]+";font-family:"+arg[2][8]+";font-size:"+arg[2][5]+";color:"+ofc+";background-color:"+ofb+";\""
//--Mouseover background for Netscape-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------	
	if(NS){
	mt+=" onMouseOver=\"this.style.background"+bgt+"='#ccccff';style.color='"+onc+"';this.style.cursor='"+mp+"';"+smO+"; "+pI+";"+lOnfunc+";return stch('"+arg[7]+"');\"";
	}
	if(IE){
	mt+=" onMouseOver=\"this.style.background"+bgt+"='"+onb+"';style.color='"+onc+"';this.style.cursor='"+mp+"';"+smO+"; "+pI+";"+lOnfunc+";return stch('"+arg[7]+"');\"";
	}
	if(NS){	
	mt+=" onMouseOut=\"rep_img(); "+pd+";"+lOffunc+"; return stch('');\">"
	}
	if(IE){	
	mt+=" onMouseOut=\"rep_img(); "+pd+";"+lOffunc+"; return stch('');\">"
	}	
	mt+=arg[0]+"</div>";
	mt+="</a>";
			if (menu[11])
				{
					mt+="</div>"
				}
	mt+=subimg		
	mp=omp
	document.write(mt);el++;
}


function dmenu(mnu){

	menu=eval(mnu);	
	menu[21]=new Array()
	if(menu[7]){parr[parr.length]=mnu.substr(4,3);}
	atop=menu[4];
	if(!atop)atop=0;
	hlp=menu[6];
	if(!menu[4])menu[4]=0;
	eq=":";
	for(z=0;z<19;z++)
	{
		if(z==5)z=12;
		if(z==16)z++;
		if(hlp[z]&&hlp[z].charAt(0)!="#")hlp[z]=cHexColor(hlp[z]);
	}	
	if(menu[14]>-1){
	//if(doccument.layers)document.write("<layer id=menuback"+mnu+" top="+(menu[1]-menu[14])+" height=21 width=100% left=0 bgcolor="+hlp[1]+"></layer>");
	//else	
	document.write("<div id=menuback"+mnu+" style=\"position:absolute;top:"+(menu[1]-menu[14])+"px;width:100%;height:2px;background-color:"+hlp[1]+"\">&nbsp;</div>")
	}
	if(el)nsc=3;else nsc=2;nsw=0;if(menu[8]=="right"&&NS)nsw=7;
	if (menu[3]<1)menu[3]="undefined";
	iefilter="";
	if(IE&&menu[9])
			{
				iefilter=" filter:";
				flt=menu[9].split("\;");
				for(fx=0;fx<flt.length;fx++)
				{
					iefilter+=" progid:DXImageTransform.Microsoft."+flt[fx]
				}
			}
		if(!hlp[4]&&IE)hlp[4]="transparent"
		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]+";"
			}
/////////--- Background of Coolbar and popup for Netscape ----///////////////////////////
		if(IE)
			{
			mt="<div id="+mnu+" style=\""+iefilter+";z-index:19;visibility:hidden;"+brd+"position:absolute;background-Color:#ffffff;width:"+(menu[3]+nsw)+"px;left:"+menu[2]+"px;top:"+menu[1]+"px;\" onmouseover='selhide();'>";
			}
		else
			{
			mt="<div id="+mnu+" style=\"z-index:19;visibility:hidden;"+brd+"position:absolute;background-Color:#ffffff;width:"+(menu[3]+nsw)+"px;left:"+menu[2]+"px;top:"+menu[1]+"px;\">";
			}
	document.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-2])menu[b-2]=menu[b-2].replace(/\"/gi, "&quot;")
		hl(menu[b-4], menu[b-3],hlp,100,100,mnu,menu[b-2],menu[b-1],menu[b-5])
		txt="";
		
		sbgc=parseLink(menu[b-3],"separatorcolor");
		if(!sbgc)sbgc=parseLink(menu[b-2],"separatorcolor");		
			mbw=menu[b];
			bc=hlp[4];
			bl="";
			oc="";
			if(b+1==menu.length)mbw=0;
			if(mbw>0)
			{
				if (!menu[11])
				{
					dwid=(menu[3]-(menu[4]*2))
					if(IE)dwid=menu[3]+(menu[6][9]*2)-(menu[4]*2)
					if (hlp[11]&&mbw==1)
					{
						txt="<div onmouseout=\""+oc+"\" onmouseover=\"clearTimeout(Mtimer)\" style=\"position:relative\">"
						txt+="<div style=\"border-top:1px solid "+hlp[13]+"; border-top:1px solid "+hlp[13]+"; background-color:"+hlp[12]+"; width:"+dwid+"px;position:absolute;clip:rect(0 100% 2px 0);"+bl+"\">"
						txt+="</div>\n</div>"
					}
					else
					{	
						if(!sbgc)sbgc=bc;
						txt="<div style=\"position:relative;\">";
						txt+="<div onmouseout=\"popdn();"+oc+"\" onmouseover=\"clearTimeout(Mtimer)\" style=\"background-color:"+sbgc+";width:"+dwid+"px;position:absolute;"
						//txt+="clip:rect(0 100% "+mbw+"px 0);height:"+mbw+"px;"+bl+"\">"
						txt+="</div>"
						txt+="</div>"
					}
				}
			}
		document.write(txt);
		omnu=mnu;
		mt=""
	}
	oatop=-1;
	mt+="</div>\n</div>";
	document.write(mt);
	menu[21][1]=el
}
function checs(e){stopchec=1;for(a=1;a<menus;a++){menu=eval("menu"+a);if(menu[10]>0){stopchec=0;if (df!=0||osy!=sy){mi=getbobj("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)}else{clearTimeout(pu);return;}osy=sy}}if(stopchec){osy=sy;return}pu=setTimeout('checs()',followrate);}
function PlaceMenu(mn){if(NS)pos="relative";else pos="absolute";mnt="<div id=\""+mn+"DIV\" style=\"width:1;height:1;position:"+pos+"\"></div>";menu=eval("menu"+getMenuByName(mn));menu[21][0]=mn+"DIV";document.write(mnt)}
function setpos()
{
	for(a=1;a<menus;a++)
	{
		menu=eval("menu"+a);
		if(menu[21][0])
		{
			gm=getbobj(menu[21][0]);
			gp=gpos(gm);ntp=gp[0];nlp=gp[1];
			mn=getbobj("menu"+a);mnp=gpos(mn);if(ntp==0)ntp=null;if(nlp==0)nlp=null;spos(mn,ntp,nlp,null,null);}
else{if(!menu[5])menu[5]="";if (menu[5].indexOf("left")!=-1||menu[5].indexOf("center")!=-1||menu[5].indexOf("right")!=-1){mn=getbobj("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=getbobj("menu"+a);mnp=gpos(mn);mnh=mnp[2];
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 MScan()
{
	sy=self.pageYOffset;
	sx=self.pageXOffset;
	if(IE)
	{
		sy=document.body.scrollTop;sx=document.body.scrollLeft;
		if(document.getElementById)sy=document.documentElement.scrollTop;
			ww=document.body.clientWidth;wh=document.body.clientHeight
	}

	else
	{
			ww=document.body.offsetWidth;if(!ww)ww=self.innerWidth-15;ww--;wh=self.innerHeight;
	}
		if(MLoaded>1&&oww>0&&(owh!=wh||oww!=ww))
			{
				if(nsmatch)location.reload()
			}
		if(MLoaded==1&&owh==wh&&oww==ww)nsmatch=1;
		if(sy!=osy)checs();
		if(MLoaded==1||(owh!=wh||oww!=ww)){setpos();cis();
		MLoaded=2;
			}
		if(MLoaded)
			{
				oww=ww;owh=wh;
			}
	mspu=setTimeout('MScan()',250)
	}
function RunCbar(){
	el=0;df=-1;
	if (IE&&document.getElementById) document.write("<script>function getflta(ap){try{if(ap.filters){flta=1}}catch(e){}}</script>");	
	for(x=0;x<parr.length;x++){popup(parr[x]);fixb("menu"+parr[x])}
	MScan();
}
for(a=1;a<menus;a++){dmenu("menu"+a)
}
Oload=window.onload;
function LoadCbar()
	{
		if(IE&&NS||nshif)
			{
				RunCbar()
			}
		MLoaded=1;
		if(Oload)Oload();
		MScan()
	}
	
	if(nshif)
		{
			window.onload=LoadCbar;
		}
	else
		{
			RunCbar();window.onload=LoadCbar;
		}

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_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_findObj(n, d) { //v3.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); return x;
}

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];}
}

var ie=(document.all);
var ns6=(document.getElementById && !ie);

function popPic(img){
	if(!ie && !ns6) return;
	if(ie) adDiv=eval('document.all.popPicDiv.style');
	else if(ns6) adDiv=eval('document.getElementById("popPicDiv").style');
        if (ie||ns6)
        adDiv.visibility="visible";
        else
        adDiv.visibility ="show";
 
		if (img==1)
		{document.images["showPicture"].src=img1.src;
		document.getElementById("showText").innerHTML=arrText[0];
		}
		else if(img==2)
		{document.images["showPicture"].src=img2.src;
		document.getElementById("showText").innerHTML=arrText[1];
		}
		else if(img==3)
		{document.images["showPicture"].src=img3.src;
		document.getElementById("showText").innerHTML=arrText[2];
		}
		else if(img==4)
		{document.images["showPicture"].src=img4.src;
		document.getElementById("showText").innerHTML=arrText[3];
		}
		else if(img==5)
		{document.images["showPicture"].src=img5.src;
		document.getElementById("showText").innerHTML=arrText[4];
		}
		else
		{document.images["showPicture"].src=img6.src;
		document.getElementById("showText").innerHTML=arrText[5];
		}

	showDiv();
}
function showDiv()
{
		if (ns6)
		{
		adDiv.left=(window.innerWidth/2) - (document.getElementById("popPicDiv").offsetWidth/2);
		adDiv.top=(window.innerHeight/2) - (document.getElementById("popPicDiv").offsetHeight/2);
		} 

		else if (ie)
//		DivWidth dynamic changed depend on imageWidth = popPicDiv.offsetWidth;
//		DivHeight dynamic changed depend on imageHeight = popPicDiv.offsetHeight;
		{
		adDiv.left=(document.body.clientWidth/2) - (popPicDiv.offsetWidth/2);
		adDiv.top=(document.body.clientHeight/2) - (popPicDiv.offsetHeight/2);
		}	
}
function closeDiv(){
if (ie||ns6)
adDiv.visibility="hidden";
else
adDiv.visibility ="hide";
}