function clearToolEtc(){sh_exxp2();if(bcheck('misc_iframe').style.display==('')){close_iframe()}};
function close_iframe(){with(bcheck('misc_iframe')){src=('About:blank');style.display='none'}};
function sigma(){xa=window.open('timemonitor/cm_timereg_adm.asp?mor=1&x=6'+hrf_var,'a');xa.focus(this)};
function maillog(){open_iframe([['x',12]],[610,600])};
function sortOut(PMa,Pam){Tlx='<DIV STYLE="WIDTH:'+mSNs(21,24)+';HEIGHT:14;OVERFLOW:hidden;FLOAT:left;">'+ifPxx(PMa)+'</DIV>'+ifSubs(PMa[4],Pam)+'<FONT STYLE=HEIGHT:14px;overflow:hidden;>'+PMa[1]+'</FONT>';return(Tlx)};
function ifPxx(Ix){if(Ix[2]==0||!isNaN(Ix[2])){Ix='<IMG STYLE="POSITION:absolute;TOP:-'+mSNs(Ix[2],(Ix[2]-1))+'px" SRC=images/newMenu.gif>'}else{Ix='&nbsp;'};return(Ix)};
function ifSubs(iS,Pam){if(iS){if(iS.length>0||Pam){iS='<DIV STYLE=FLOAT:right>&raquo;&nbsp;'+mSNs('','&nbsp;')+'</DIV>'}else{iS=''}}else{iS=''};return(iS)};
function miscM(mM){return('<DIV STYLE="FLOAT:right;">&raquo;</DIV>&nbsp;'+mM)};
function funky(ua,T,X){
	Mw=[[554,['97%','95%']],[17,[500,400]],[15,[550,550]],[43,[mSNs('99%','96%'),750]]];
	open_iframe([['mu',ua],['x',Mw[T][0]],['pTitle',Mnus[X][1]]],Mw[T][1])
};
function g_func(a){jInV.push(['x',a]);create_uploadform(jInV,a)};
function clSizFu(cF){jInV.push(['wlang',web_language]);g_func(cF)}
function create_uploadform(a,b){create_tform();p.target=("_top");createInput(a,p);p.submit()};
function j_google(){create_miniupdate([['x',59]])};
function remove_quote(ehtml){ehtml=escape(ehtml);ehtml=ehtml.replace(/%22/g,"¤#HTML¤");ehtml=unescape(ehtml);return(ehtml)};
function g_func2(a,b,elm,c,Act){a=[['x',a]];if(c){for(i=0;i<c.length;i++){a.push([c[i][0],c[i][1]])}};setMiscPos(b,elm);create_miniupdate(a,'misc_iframe',Act)};
function wOpen(wO){if(wO==0){a=[['x',1]];create_miniupdate(a,'vP','u/'+webid+'/cm.asp')}else{sV=server_var+'u/'+webid;Wo=['',sV+'/'+'default.asp?p='+webid,'www.webline.dk/pdf/manual.pdf',sV+'/cm_ebiz.asp?c='+webid+'&f=1&cid='+countryid+'&uid='+ebiz_setup[0]];vP=window.open('http://'+Wo[wO],'Wn'+wO);vP.focus()}};
oCMenu=new makeCM("oCMenu");oCMenu.pxBetween=30;oCMenu.fromLeft=0;oCMenu.fromTop=0;oCMenu.rows=0;oCMenu.menuPlacement=0;oCMenu.offlineRoot="";
oCMenu.onlineRoot="";checkscroll=0;oCMenu.checkselect=1;oCMenu.resizeCheck=1;oCMenu.wait=1000;oCMenu.fillImg="images/space.gif";
oCMenu.zIndex=0;oCMenu.useBar=1;oCMenu.barWidth="menu";
oCMenu.barHeight="menu";oCMenu.barClass="clBar";oCMenu.barX="menu";oCMenu.barY="menu";oCMenu.barBorderX=0;oCMenu.barBorderY=0;
oCMenu.barBorderClass="";oCMenu.level[0]=new cm_makeLevel();oCMenu.level[0].width=mSNs(17,15);oCMenu.level[0].height=56;
oCMenu.level[0].regClass="clLevel0";oCMenu.level[0].overClass="clLevel0over";oCMenu.level[0].borderX=0;oCMenu.level[0].borderY=0;
oCMenu.level[0].borderClass="clLevel0border";oCMenu.level[0].offsetX=0;oCMenu.level[0].offsetY=2;oCMenu.level[0].rows=0;oCMenu.level[0].align="right";
oCMenu.level[1]=new cm_makeLevel();oCMenu.level[1].width=oCMenu.level[0].width-2;oCMenu.level[1].height=mSNs(18,17);oCMenu.level[1].width=140;
oCMenu.level[1].regClass="clLevel1";oCMenu.level[1].overClass="clLevel1over";oCMenu.level[1].align="left";oCMenu.level[1].offsetX=-40;
oCMenu.level[1].offsetY=7;oCMenu.level[1].borderClass="clLevel1border";oCMenu.level[1].borderX=0;oCMenu.level[1].borderY=0;
oCMenu.level[1].rows=0;oCMenu.level[1].align="right";
oCMenu.level[2]=new cm_makeLevel();oCMenu.level[3]=new cm_makeLevel();oCMenu.level[3].width=155;
oCMenu.makeMenu('top0','','<FONT STYLE="WIDTH:100%;HEIGHT:100%;LINE-HEIGHT:9px;PADDING-TOP:5px;" onMouseOver=clearToolEtc()>'+hztx('Menu')+'</FONT>','#','');
pma=[[1,'Web '+textvar[3].toLowerCase(),0,'g_func(1)',[],30,'',1],
	[2,textvar[49],226,'g_func(2)',[[62,'Web '+textvar[10].toLowerCase(),350,'g_func(62)','',28]],40,'',2],
	[33,textvar[313],371,'g_func(33)',[],37,'',33],
	[11,textvar[201],16,'g_func('+gnCmCh(ebiz_setup.length,0,13,11)+')',[
		[11,textvar[224],158,'g_func('+gnCmCh(ebiz_setup.length,0,13,11)+')','','',[224,223],11],
		[28,textvar[282],143,'g_func('+gnCmCh(ebiz_setup.length,0,13,28)+')','','',[[251,309],282,205,206],28],
		[14,textvar[201]+' '+textvar[10].toLowerCase(),205,'g_func('+gnCmCh(ebiz_setup.length,0,13,14)+')','','',[[251,14],317,275,274,[218,231],[218,29],78],14],
		[13,textvar[201]+' '+textvar[3].toLowerCase(),173,'g_func(13)','','',[3,453,[10,453],445,283,288,268,[282,29],152,233,327],13],
		[23,textvar[220],189,'clSizFu('+gnCmCh(ebiz_setup.length,0,13,23)+')','','',[374,148,289,295],23],
		[24,textvar[201]+' '+textvar[296].toLowerCase(),126,'g_func('+gnCmCh(ebiz_setup.length,0,13,24)+')','',43,'',24],
		[30,textvar[201]+' '+textvar[262].toLowerCase(),111,'g_func('+gnCmCh(ebiz_setup.length,0,13,30)+')','','','',30],
		[31,textvar[201]+' '+textvar[278].toLowerCase(),96,'g_func('+gnCmCh(ebiz_setup.length,0,13,31)+')','','','',31],
		['preview_shop',textvar[201]+' '+textvar[79].toLowerCase(),241,'wOpen(3)','',15],
		['googlebot',textvar[452],386,'j_google()','',39]
		]],
	['miscellanous',textvar[194],419,'',[]],
	[44,textvar[296],64,'g_func(44)',[],43,'',44],
	['sigma',textvar[122],320,'sigma()',[],'',''],
	[9,textvar[191],335,'g_func(9)',[],'',[193],'',9],
	[18,'Web '+textvar[278],272,'g_func(18)',[],44,'',18],
	[6,textvar[158],33,'g_func(6)',[],42,'',6],
	[5,textvar[156],256,'uplweb()',[],36],
	['preview',textvar[454]+' '+textvar[79].toLowerCase(),81,'wOpen(0)',[['openWeb',textvar[454]+' '+textvar[375].toLowerCase(),49,'wOpen(1)','',15]],15],
	['manual','Manual&nbsp;&nbsp;<FONT STYLE=FONT-WEIGHT:normal;FONT-SIZE:10>(PDF 3 MB)</FONT>',288,'wOpen(2)',[]],
	['maillog','Mail log',304,'maillog()',[],41],
	['logout',textvar[43],401,'g_func(10)',[]]];
function checkSubuserRights(){
	AwUsr[7]=0;
	if(alOw!=1){
		AwUsr[0]=0;AwUsr[2]=0;aJ=[10,'',9,3,5,1];
		for(i=0;i<aJ.length;i++){if(aJ[i]&&alOw.substring((1+i),(2+i))!='1'){AwUsr[aJ[i]]=0}};
		if(mSr.length>0){vble[22]=[];for(i=0;i<mSr.length;i++){vble[22][mSr[i]]=1}}
	}
};
function pxMnus(){
	Wx=[];Px=[];Tn=[];hSt=[];vRs=[];vNm=[];Vbl[11]=12;Mnu.sort(sortNumber);
	for(i=0;i<Mnu.length;i++){
		Wx[Mnu[i][0]]=[i];
		if((Mnu[i][0]==Mnu[i][2]||!Mnu[i][2])&&Mnu[i][4]==1){Px.push(i)};
		if(Mnu[i][4]>1){Tn.push(i)};
	};
	for(i=0;i<Mnu.length;i++){
		if(Mnu[i][2]>0&&Wx[Mnu[i][2]]&&Mnu[i][0]!=Mnu[i][2]){
			if(!Wx[Mnu[i][2]][1]){Wx[Mnu[i][2]][1]=[]};
			Wx[Mnu[i][2]][1].push(Mnu[i][0])
		}
	};
};
function updFunks(){
	HbX=[1,3,5,6,2]
	for(i=0;i<pFk.length;i++){
		for(y=0;y<pFk[i].length;y++){
			if(Wx[pFk[i][y]]){
				Mnu[Wx[pFk[i][y]][0]][3]=HbX[i]
			}
		}
	};
};
function ckFnkMnu(){
	Hb=[[1,195,432,0,'forums'],[3,199,447,1,'msgbrd'],[5,239,462,2,'allnewslist'],[6,367,482,3,'gallylist']];Mnu=Mnus;pxMnus();updFunks()
	for(i=0;i<Mnu.length;i++){
		if(!alOw||alOw==1||vble[22][Mnu[i][0]]){
			for(y=0;y<4;y++){
				if(Mnu[i][3]==Hb[y][0]){
					if(!pma[4][4][y]){pma[4][4][y]=([Hb[y][4],textvar[Hb[y][1]],Hb[y][2],'',[]])};
					pma[4][4][y][4].push(['sub_'+Hb[y][4]+'_'+i,Mnu[i][1]+' ('+Mnu[i][0]+')',Hb[y][2],'funky('+Mnu[i][0]+','+Hb[y][3]+','+i+')'])
				}
			}
		}
	};
};
function create_menu(){
	if(alOw){checkSubuserRights()};
	ckFnkMnu();
	jInpV();if(jInV[0][1]==1){jInpV2()};
	for(i=0;i<pma.length;i++){
		if(pma[i][1]&&(pma[i][1]!=textvar[74]||webid)&&(AwUsr[i]||i==1)){
			if(pma[i][0]!='miscellanous'||(pma[4][4].length>0)){
				oCMenu.makeMenu('nsub'+pma[i][0],'top0',sortOut(pma[i]),'','',0,0,'','','','','','','',pma[i][3])
			};
			if(pma[i][4].length>0){
				for(y=0;y<pma[i][4].length;y++){
					if(pma[i][4][y]&&(i!=1||AwUsr[i])&&(pma[i][0]!=11||ebiz_setup.length>0||pma[i][4][y][0]==13)&&(AwUsr[i][y]||ChValid(AwUsr[i][y]+'','0123456789'))){
						oCMenu.makeMenu('nsub_sub'+pma[i][4][y][0],'nsub'+pma[i][0],sortOut(pma[i][4][y]),'','',0,0,'','','','','','','',pma[i][4][y][3]);
						if(pma[i][4][y][4]){
							for(u=0;u<pma[i][4][y][4].length;u++){
								oCMenu.makeMenu('nsub_sub_sub'+pma[i][4][y][4][u][0],'nsub_sub'+pma[i][4][y][0],sortOut(pma[i][4][y][4][u]),'','',0,0,'','','','','','','',pma[i][4][y][4][u][3]);
							}
						}
					}
				}
			}
		}
	};
	oCMenu.construct()
};
function write_inputvar(x){
	mnp=('<INPUT TYPE=hidden NAME=x VALUE="'+x+'">');
	for(mq=0;mq<jInV.length;mq++){mnp=mnp+'<INPUT TYPE=hidden NAME='+jInV[mq][0]+' VALUE="'+jInV[mq][1]+'">'};
	return(mnp)
};
function jInpV(){
	aXo=gHs();Ao='';for(Ty=0;Ty<aXo.length;Ty++){if(aXo[Ty][0]==jInV[0][1]){Ao=aXo[Ty][1];break}};
	if(Ao){
		pma.push([99,textvar[289]+' '+textvar[375],767,'',[],'','',30]);
		for(i=0;i<Ao.length;i++){pma[pma.length-1][4].push([(100+i+'x'),Ao[i][0],767,'goNewWeb('+Ao[i][1]+')',[],'','',30])}
	};
	if(VW[0]){for(i=0;i<VW[0].length;i++){pma.push(VW[0][i])}};
	if(jInV[4][1]){for(i=0;i<AwStats.length;i++){if(AwStats[i][0]==jInV[4][1]){pma[8][4].push([995,'AwStats '+textvar[278],272,'jAwStats('+i+')',[],44,'',18]);break}}}
};
function jAwStats(i){A=window.open('http://awstats.comansy.dk/awstats.pl?config='+AwStats[i][1]);A.focus()};
function goNewWeb(a){jInV[4][1]=a;g_func(2)};
ServerPath='u/'+jInV[4][1]+'/'+jInV[4][1]+'/';if(jInV[4][1]){create_menu()};
