PmV=[];Vbl=[];HdMx=-1;function cm_bwcheck(){this.ver=navigator.appVersion;this.agent=navigator.userAgent.toLowerCase();this.dom=document.getElementById?1:0;this.ns4=(!this.dom&&document.layers)?1:0;this.op=window.opera ;this.moz=(this.agent.indexOf("gecko")>-1||window.sidebar);this.ie=this.agent.indexOf("msie")>-1&&!this.op;if(this.op){this.op5=(this.agent.indexOf("opera 5")>-1||this.agent.indexOf("opera/5")>-1);this.op6=(this.agent.indexOf("opera 6")>-1||this.agent.indexOf("opera/6")>-1);this.op7=this.dom&&!this.op5&&!this.op6}else if(this.moz){this.ns6=1}else if(this.ie){this.ie4=!this.dom&&document.all;this.ie5=(this.agent.indexOf("msie 5")>-1);this.ie55=(this.ie5&&this.agent.indexOf("msie 5.5")>-1);this.ie6=this.dom&&!this.ie4&&!this.ie5&&!this.ie55};this.mac=(this.agent.indexOf("mac")>-1);this.bw=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.op5||this.op6||this.op7);this.usedom= this.ns6||this.op7;this.reuse=this.ie||this.op7||this.usedom;this.px=this.dom&&!this.op5?"px":"";return this};var bw=new cm_bwcheck();
function ckIf(cIF){if(cIF[0]){return(cIF[0])};return(cIF[1])};
function bColr(B){if(document.all){B.style.filter='alpha(opacity=40,finishopacity=100,style=1,startx=0,starty=0,finishx=120,finishy=270)'}else{B.style.opacity='.8'}};
function dColr(B){if(document.all){B.style.filter=''}else{B.style.opacity=''}};
function padTop(yI){if(aMs[0][17]&&yI){return(' STYLE=PADDING-TOP:'+ckIf([aMs[0][17],0])+'px')};return('')};
function prepMnus(){eXt=[];cnT=[];Wx=[];Px=[];HdM=-1;aa='';Mn=CmMnu;prexMnus()};
function preLnk(i,elm){if(checkLink(i)){window.open(checkIntranet(checkLink(i),i),checkTarget(i))};preOpenClose(i,elm)};
function preOMover(elm){elm[0].className=('clLevel'+elm[1]+'over')};
function preOMout(elm){elm[0].className=('clLevel'+elm[1]);};
function preSpace(i,I){if(CmMnu[i][0]==CmMnu[I][3]){return(2)};return(1)};
function checkIntranet(cI,i){if(CmMnu[i][9]&&cI){cI='check.asp?lnk='+cI.replace('\?','\&')};return(cI)};
function checkTarget(i){if(CmMnu[i][5]==3){return('_blank')}else if(CmMnu[i][5]==3){return('_self')}else{return('main')}};
function cTrsp(cTp){if(cTp!='transparent'){cTp='#'+cTp};return(cTp)};
function insOutset(mP){if(mP>-1){return('outset')}else{return('inset')}};
function minPlus(mP){if(mP&&mP<0){mP=(mP*-1)};return(mP)};
function sw2Menu(i,elm){if(bcheck('Tr'+Wx[Mn[i][0]][1][0])){RT=[];swClose(Wx[Mn[i][0]][1],0)}else{swOpen(i,elm)}};
function findPos(fP){
  if(bw.ns4){x=document.layers.layerMenu.pageX;y=document.layers.layerMenu.pageY}
  else{
    x=0;y=0;var el,temp;el=bw.ie4?document.all[fP]:document.getElementById(fP);
    if(el.offsetParent){temp=el;while(temp.offsetParent){temp=temp.offsetParent;x+=temp.offsetLeft;y+=temp.offsetTop}};
    x+=el.offsetLeft;y+=el.offsetTop
  };return [x+aMs[7],y+aMs[6]]};
if((aMs[9]==5||aMs[9]==6||(aMs[12]&&bcheck('topFr')))&&aMs[2]!=2){tFrame='topFr';Algn='bottom';rOws=1;}
else if(bcheck('mnuFr')||aMs[2]==2){
	rOws=0;
	tFrame='mnuFr';Algn='right';
	if(aMs[9]==3||aMs[9]==7){Algn='left'}
}else{
	rOws=0;
	tFrame='menu';Algn='bottom';
};
meNuType=aMs[10];
if(bcheck(tFrame)){pos=findPos(tFrame)}else{pos=[aMs[7],aMs[6]]};
mNuBrder=aMs[0][11];
function checkStat(lnk){
	k='';
	if(aMs[14]){
		if(lnk.indexOf('cm_ebz.asp')>-1){}
		else if(lnk.indexOf('_main.htm')>-1){
			k=lnk.substr(lnk.indexOf(webid+'_'));
			k=(k.substr(0,k.indexOf('_main.htm')));
			k=(k.substr(k.indexOf('_')+1));
		}	
	};
	if(k&&!isNaN(k)){X=document.formStat;X.pagid.value=k;X.action='include/stat.asp';X.submit()};
};
function preCkUL(T,W){
	if(aMs[3]&&T){return('<DIV STYLE=FLOAT:right;MARGIN-TOP:4px;POSITION:relative;>'+PmV[0][W]+'</DIV>')};
	return('')
};
function prexMnus(){
	for(i=0;i<Mn.length;i++){Wx[Mn[i][0]]=[i];if(Mn[i][3]){Mn[i][1]=Mn[i][3]};if(Mn[i][0]==Mn[i][1]){Px.push(Mn[i][0])}};
	for(i=0;i<Mn.length;i++){if(Mn[i][1]>0&&Wx[Mn[i][1]]&&Mn[i][0]!=Mn[i][1]){if(!Wx[Mn[i][1]][1]){Wx[Mn[i][1]][1]=[]};Wx[Mn[i][1]][1].push(Mn[i][0])}};
	for(i=0;i<aMs[11].length;i++){if(Px[i]){Wx[Px[i]][2]=aMs[11][i]}};for(i=0;i<CmCnt.length;i++){cnT[CmCnt[i]]=1}
};
function preMenu(){
	prepMnus();for(i=0;i<Px.length;i++){aa+='<TR ID=Tr'+Px[i]+'><TD'+padTop(i)+'>'+swMnu(Wx[Px[i]],0)+'</TD></TR>'};
	document.write('<TABLE CLASS=clBar CELLPADDING=0 CELLSPACING='+aMs[0][11]+' ID=mNuTbl STYLE=z-index:10000;POSITION:absolute;TOP:'+pos[1]+';LEFT:'+pos[0]+';>'+aa+'</TABLE>')
};
function swMnu(sW,sX,pX){
	return('<DIV ID=tdM'+Mn[sW[0]][0]+' onClick=preLnk('+sW[0]+',this) onMouseOver=preOMover([this,'+sX+']) onMouseOut=preOMout([this,'+sX+']) CLASS=clLevel'+sX+GnrValCk(pX,' STYLE="WIDTH:100%;HEIGHT:100%;PADDING-LEFT:'+pX+'px;"')+'>'
				+preCkUL(sW[1],sX)+Mn[sW[0]][4]
			+'</DIV>')
};
swClose=function(TT,tt){
	for(RT[tt]=0;RT[tt]<TT.length;RT[tt]++){
		if(bcheck('Tr'+TT[RT[tt]])){bcheck('mNuTbl').deleteRow(bcheck('Tr'+TT[RT[tt]]).rowIndex)};
		if(Wx[TT[RT[tt]]][1]){swClose(Wx[TT[RT[tt]]][1],(tt+1))}
	}
};
function swOpen(i,elm){
	N=Wx[Mn[i][0]][1];
	for(y=0;y<N.length;y++){
		X=bcheck('mNuTbl').insertRow(elm.parentNode.parentNode.rowIndex+y+1);
		X.id=('Tr'+N[y]);z=X.insertCell(0);z.id=('tdM'+N[y]);z.innerHTML=swMnu(Wx[N[y]],1,(10*preSpace(i,Wx[N[y]][0])))
	}
};
function preOpenClose(i,elm){
	if(Vbl[0]){dColr(Vbl[0])};
	bColr(elm);Vbl[0]=elm;
	if(Wx[Mn[i][0]][1]){sw2Menu(i,elm)}
};
function checkLink(i){
	/*if(Mn[i][8]==1){return('cm_forum.asp?c='+webid+'&cid='+cid+'&fid='+Mn[i][0]+'&uid='+Mn[i][0]+'&f=1')}
	else*/ 
	if(Mn[i][8]==2){return('javascript:c_h('+Mn[i][0]+','+webid+',16777165)')}
//	else if(Mn[i][8]==3){return('cm_msgbrd.asp?c='+webid+'&uid='+Mn[i][0]+'&cid='+cid+'&vid='+vid)}
	else if(Mn[i][8]==4){return('cm_ebz.asp?c='+webid+'&vid='+vid)}
	else if(Mn[i][6]&&Mn[i][6]!='http://'&&Mn[i][6]!='http:/'){return(Mn[i][6])}
	else if(cnT[Mn[i][0]]&&aMs[13]){return('cm.asp?x=2&vid='+vid+'&mpid='+Mn[i][0]+hrf_var)}
	else if(cnT[Mn[i][0]]){return(webid+'_'+Mn[i][0]+gnCmCh(vid,'','','_'+vid)+'_main.htm')}
	else{return('')}
};
function createFoldOut(){
	if(aMs[2]!=1){writeStyles()};
	if(aMs[2]==2){preMenu()}
	else if(aMs[2]==4){createCool("oCMenu")}
};
function writeStyles(){
	PmV[0]=[];PmV[0][0]=createArrow(aMs[0][1],'',aMs[0][13]);PmV[0][1]=createArrow(aMs[1][1],1,aMs[1][13]);
	PmV[1]=[];
	PmV[1][0]=[];PmV[1][0][0]=GnrValCk(aMs[0][7],'font-weight:bold;')
				+GnrValCk(aMs[0][8],'font-style:italic;')
				+GnrValCk(aMs[0][9],'text-decoration:underline;')
				+GnrValCk(aMs[0][16],'BORDER:'+minPlus(aMs[0][16])+'px '+insOutset(aMs[0][16])+';')
				+caseFn(aMs[0][14],[[2,'text-align:center;'],[3,'text-align:right;']]);
	PmV[1][0][1]=gnCmCh(aMs[0][11],1,'#'+aMs[0][12],'transparent;');
	PmV[1][1]=[];PmV[1][1][0]=GnrValCk(aMs[0][3],'background-image:url('+aMs[0][3]+');');
							 PmV[1][1][1]=GnrValCk(aMs[0][4],'background-image:url('+aMs[0][4]+');');
							 PmV[1][1][2]=gnCmCh(aMs[1][11],1,'#'+aMs[1][12],'transparent');
	PmV[1][2]=GnrValCk(aMs[1][7],'font-weight:bold;')
				+GnrValCk(aMs[1][8],'font-style:italic;')
				+GnrValCk(aMs[1][9],'text-decoration:underline;')
				+GnrValCk(aMs[1][16],'BORDER:'+minPlus(aMs[1][16])+'px '+insOutset(aMs[1][16])+';')
				+caseFn(aMs[1][14],[[2,'text-align:center;'],[3,'text-align:right;']]);
	if(aMs[2]==2){
		if(document.all){PmV[1][0][1]+='WIDTH:'+aMs[0][2]+'px;'}
		else{
			PmV[1][0][0]+='WIDTH:'+(aMs[0][2]-(5+(minPlus(aMs[0][16])*2)))+'px;overflow:hidden;'
									 +'HEIGHT:'+(aMs[0][13]-(5+(minPlus(aMs[0][16])*2)))+'px;';
			PmV[1][2]+='WIDTH:'+(aMs[0][2]-(5+(minPlus(aMs[0][16])*2)))+'px;overflow:hidden;'
		}
	};
	PmV[1][3]=[];PmV[1][3][0]=GnrValCk(aMs[1][3],'background-image:url('+aMs[1][3]+')');
							 PmV[1][3][1]=GnrValCk(aMs[1][4],'background-image:url('+aMs[1][4]+')');
	PmV[1][4]=mSNs('filter:alpha(opacity=40)','opacity:0.40');
	PmV[1][5]=mSNs('filter:alpha(opacity=15)','opacity:0.15');
	PmV[1][6]=mSNs('hand','pointer');
	PmV[1][7]=gnCmCh(aMs[2],4,'position:absolute;','');
	PmV[1][10]=gnCmCh(aMs[2],4,'width:10;height:10;visibility:hidden;','');
	PmV[1][8]=gnCmCh(aMs[2],2,'HEIGHT:'+aMs[0][13]+'px;WIDTH:'+aMs[0][2]+'px;','');
	PmV[1][9]=gnCmCh(aMs[2],2,'HEIGHT:'+aMs[1][13]+'px;WIDTH:'+aMs[0][2]+'px;','');
	bckC=gnCmCh(document.layers,true,'layer-background-color','background-color');
	document.write('<STYLE>'
		+'.clCMAbs{position:absolute;visibility:hidden;left:0;top:0}\n'
		+'.clBar{'+PmV[1][7]+PmV[1][10]+bckC+':'+PmV[1][0][1]+'}\n'
		+'.clLevel0,.clLevel0over{'+PmV[1][7]+PmV[1][8]+'padding-left:'+gnCmCh(!aMs[0][19],true,2,aMs[0][19])+'px;padding-top:'+gnCmCh(!aMs[0][18],true,2,aMs[0][18])+'px;padding-right:2px;padding-bottom:2px;line-height:90%;font-family:'+aMs[0][0]+',tahoma,arial,helvetica;font-size:'+aMs[0][1]+'px;'+PmV[1][0][0]+'}\n'
		+'.clLevel0{'+bckC+':'+cTrsp(aMs[0][5])+';color:'+cTrsp(aMs[0][10])+';'+PmV[1][1][0]+'}\n'
		+'.clLevel0over{'+bckC+':'+cTrsp(aMs[0][6])+';color:'+cTrsp(aMs[0][15])+';cursor:'+PmV[1][6]+';'+PmV[1][1][1]+'}\n'
		+'.clLevel0border{'+PmV[1][7]+'visibility:hidden;'+bckC+':'+PmV[1][0][1]+'}\n'
		+'.clLevel1,.clLevel1over{'+PmV[1][7]+PmV[1][9]+'padding-left:'+gnCmCh(!aMs[1][19],true,2,aMs[1][19])+'px;padding-top:'+gnCmCh(!aMs[1][18],true,2,aMs[1][18])+'px;padding-right:2px;padding-bottom:2px;font-family:'+aMs[1][0]+',tahoma,arial,helvetica;font-size:'+aMs[1][1]+'px;'+PmV[1][2]+'}\n'
		+'.clLevel1{'+bckC+':'+cTrsp(aMs[1][5])+';color:'+cTrsp(aMs[1][10])+';'+PmV[1][3][0]+'}\n'
		+'.clLevel1over{'+bckC+':'+cTrsp(aMs[1][6])+';color:'+cTrsp(aMs[1][15])+';cursor:'+PmV[1][6]+';'+PmV[1][3][1]+'}\n'
		+'.clLevel1border{'+PmV[1][7]+'visibility:hidden;'+bckC+':'+PmV[1][1][2]+'}\n'
		+'.Arw{position:relative;float:left;margin:0;line-height:1px}\n'
		+'.Art2,.ArtC2{color:'+cTrsp(aMs[0][10])+';font-weight:bold;font-size:'+aMs[0][1]+'px;padding:0;POSITION:relative;BOTTOM:2px}\n'
		+'.ArtC2{color:'+cTrsp(aMs[1][10])+';font-size:'+aMs[1][1]+'px;}\n'
		+'.Arw2,.Arw3{'+bckC+':'+cTrsp(aMs[0][10])+'}\n'
		+'.Arw2{'+PmV[1][4]+'}\n'
		+'.Arw3{'+PmV[1][5]+';WIDTH:1px;HEIGHT:1px;}\n'
		+'.ArwC2,.ArwC3{'+bckC+':'+cTrsp(aMs[1][10])+'}\n'
		+'.ArwC2{'+PmV[1][4]+'}\n'
		+'.ArwC3{'+PmV[1][5]+';WIDTH:1px;HEIGHT:1px}\n'
		+'</STYLE>');
};
createFoldOut()