//UDMv3.6 for (var f=0;f0){ for(j=0;j0){ if(cP[i][j][6]!=""){ ock[i][j][3]=cP[i][j][6]; ocks[i][j][3]='background-color:'+cP[i][j][6]+'\;'; } if(cP[i][j][7]!=""){ock[i][j][5]=cP[i][j][7];} if(cP[i][j][8]!=""){ocks[i][j][4]='background-color:'+cP[i][j][8]+'\;';} if(cP[i][j][9]!=""){ocks[i][j][6]='background-color:'+cP[i][j][9]+'\;';} ock[i][j][7]=saLINK; ock[i][j][8]=saHOVER; if(cP[i][j][10]!=""){ock[i][j][7]=cP[i][j][10];} if(cP[i][j][11]!=""){ock[i][j][8]=cP[i][j][11];} } } } } function doNothing(){} var bWidth=window.innerWidth; var bHeight=window.innerHeight; var sbaa=14; if(!konqi){ if(ns7){sbaa=15;} if(mac&&mz7){sbaa=16;} if(mz7&&agt.indexOf("rc1")!=-1){sbaa=19;} if((mz7&&win&&(agt.indexOf("windows nt 5.1")!=-1))||mac||ns6){if(document.width<=(innerWidth-30)){bWidth-=sbaa;}} else if(mz7&&win&&(agt.indexOf("windows nt 5.0")!=-1)){if(document.width<=(innerWidth-16)){bWidth-=16;}} else if(win){if(document.width<=(innerWidth-17)){bWidth-=17;}} if(lin){if(document.width<=(innerWidth-17)){bWidth-=17;}} if(menuALIGN=="free"){bWidth-=sbaa;} } if(konqi&&remoteTRIGGERING){bWidth-=16;} if(documentWIDTH>0){bWidth=documentWIDTH;} var navH=fSIZE+5+vPADDING; if (fSIZE<13){navH+=(13-fSIZE);} var origH=navH; var Mrows=new Array;var Nrows=new Array; for(var i=0;i'); Mrows[i]=splitT.length; Nrows[i]=Mrows[i]; } function cFun(a,b){return b-a;} Mrows.sort(cFun); navH=navH*Mrows[0]; var thisNavH=new Array; for(i=0;i-1){ for(i=0;i0){openSubMenu(mNum);} if(typeof gridTrue=="undefined"){showGrid();} return currentID; } function partialMainCell(mNum){ clearTimeout(cTimer); closeOkay=false; mainRollover(mNum); if(sI[mNum].length>0){ if(previousID[1]>-1){clearCell(document.getElementById("subcell-"+mNum+"-"+previousID[1]));} } } var sn,stj,shAry,chAry,swPad,shPad,nodeHtml,mDiff,wAdj,tfObj; var kPressed=false; var shopac='-moz-opacity:'+(shOPACITY/100); if(!win){shopac='';} var stt,textScale,applyWidth,applyWidthII; function openSubMenu(mid){ sNode=document.createElement("div"); document.getElementById("manch").appendChild(sNode); sn=''; applyWidth='width:auto;min-width:'+sP[mid][0]+'px\;white-space:nowrap\;'; if(konqi){applyWidth='width:'+sP[mid][0]+'px\;';} sn+='
'; shAry=new Array; chAry=new Array; for(i=0;i'); var Trows=splitT.length; if (Trows>1){shAry[i]=(subNavH*Trows)-(svPADDING*(Trows-1));} titleText=""; if(altDISPLAY=="title"){titleText=sI[mid][i][3];} textScale='width:auto;min-width:'+(sP[mid][0]-(2*sbSIZE))+'px\;height:auto;min-'; if(!allowForSCALING){textScale='width:'+(sP[mid][0]-(2*sbSIZE))+'px\;';} sn+=''; sn+=''; } sn+='
'+sI[mid][i][1]+'
'; sTop=parseInt(ncj.style.top)+thisNavH[mid]; if(vOFFSET<0){sTop+=vOFFSET;}if(sP[mid][3]<0){sTop+=sP[mid][3];} if(shType=="string"){sTop-=(shSIZE*2);} stMargin=bSIZE; if(vOFFSET>0){stMargin+=vOFFSET;} if(sP[mid][3]>0){stMargin+=sP[mid][3];} stMargin+=shSIZE; sLeft=parseInt(ncj.style.left); if(shType=="string"){sLeft-=(shSIZE*2);} swPad=sbSIZE;shPad=0; if(shType=="string"){ swPad=(2*shSIZE)+sbSIZE; shPad=(2*shSIZE); } slMargin=0; srMargin=0; if(sP[mid][1]=="left"){ wAdj=false; if((parseInt(ncj.style.top)+thisNavH[mid])>sTop&&(sLeft<(hOFFSET+sP[mid][4]+mI[mid][2]))){wAdj=true; sLeft+=mI[mid][2];} if(hOFFSET>0){slMargin+=hOFFSET;} if(sP[mid][4]>0){slMargin+=sP[mid][4];} if(hOFFSET<0){sLeft+=hOFFSET;} if(sP[mid][4]<0){sLeft+=sP[mid][4];} if(wAdj){ if(slMargin>mI[mid][2]){slMargin-=mI[mid][2];} else{sLeft-=(mI[mid][2]-slMargin); slMargin=0;} } } if(sP[mid][1]=="right"){ mSize=0; if(hOFFSET>0){srMargin+=hOFFSET; mSize+=srMargin;} if(sP[mid][4]>0){srMargin+=sP[mid][4]; mSize+=srMargin;} if(hOFFSET<0){sLeft-=hOFFSET;} if(sP[mid][4]<0){sLeft-=sP[mid][4];} sLeft-=(sP[mid][0]-mI[mid][2]+mSize); } slMargin+=shSIZE; applyWidth='width:auto;min-width:'+(sP[mid][0]+slMargin)+'px\;white-space:nowrap\;'; if(konqi){applyWidth='width:'+(sP[mid][0]+slMargin)+'px\;';} applyWidthII='width:auto;min-width:'+(sP[mid][0]+swPad-sbSIZE)+'px\;white-space:nowrap\;'; if(konqi){applyWidthII='width:'+(sP[mid][0]+swPad-sbSIZE)+'px\;';} sNode.parentNode.innerHTML=''; clearTimeout(cTimer); closeOkay=false; for(i=0;i-1){ pj=document.getElementById('subcell-'+previousID[0]+'-'+previousID[1]); if(sP[previousID[0]][6]!=""){ pj.style.backgroundColor=ok[previousID[0]][3]; pj.style.backgroundImage='url('+bnk+')'; } else{ if(ui[5]){ if(ui[3]){pj.style.backgroundImage='url('+bk[3].src+')';} else{pj.style.backgroundImage='url('+bnk+')';} } else{ if(ui[3]){pj.style.backgroundImage='url('+bk[3].src+')';} else{pj.style.backgroundColor=bk[3];} } } pj.firstChild.firstChild.style.color=ok[previousID[0]][7]; } } function subRollover(rmNum,rsNum){ if(sI[rmNum][rsNum][4]){ if(sP[rmNum][7]!=""){ scj.style.backgroundImage='url('+bnk+')'; scj.style.backgroundColor=ok[rmNum][5]; } else{ if(ui[5]){ scj.style.backgroundImage='url('+bk[5].src+')'; } else{ scj.style.backgroundImage='url('+bnk+')'; scj.style.backgroundColor=bk[5]; } } } scj.firstChild.firstChild.style.color=ok[rmNum][8]; if(altDISPLAY=="status"){ writeStatus(sI[rmNum][rsNum][3]); } else{ tInfo=sI[rmNum][rsNum][0]; if(tInfo=="#"){tInfo="";} writeStatus(tInfo); } } var cn,ctj; function subCell(mNum,sNum){ clearTimeout(cTimer); closeOkay=false; clearSubRollover(); currentID=[mNum,sNum,-1]; previousID=currentID; focusID=currentID; scj=document.getElementById('subcell-'+mNum+'-'+sNum); subRollover(mNum,sNum); openChildMenu(mNum,sNum); showGrid(); } function partialSubCell(mNum,sNum){ clearTimeout(cTimer); closeOkay=false; clearSubRollover(); subRollover(mNum,sNum); if(cI[mNum][sNum].length>0){ if(previousID[2]>-1){clearCell(document.getElementById("childcell-"+mNum+"-"+sNum+"-"+previousID[2]));} } } var ctt; var evcy,evoh,evst,mctPos; function openChildMenu(mid,cid){ clearChildMenus(); if(cI[mid][cid].length<=0){return false;} cNode=document.createElement("div"); document.getElementById("canch").appendChild(cNode); cn=''; applyWidth='width:auto;min-width:'+cP[mid][cid][0]+'px\;white-space:nowrap;'; if(konqi){applyWidth='width:'+cP[mid][cid][0]+'px\;';} cn+='
'; chAry[mid]=new Array; for(i=0;i'); var Trows=splitT.length; if (Trows>1){chAry[mid][i]=(subNavH*Trows)-(svPADDING*(Trows-1));} titleText=""; if(altDISPLAY=="title"){titleText=cI[mid][cid][i][3];} textScale='width:auto;min-width:'+(cP[mid][cid][0]-(sbSIZE*2))+'px\;height:auto;min-'; if(!allowForSCALING){textScale='width:'+(cP[mid][cid][0]-(sbSIZE*2))+'px\;';} cn+=''; cn+=''; } cn+='
'+cI[mid][cid][i][1]+'
'; cLeft=sLeft+slMargin-shSIZE; clMargin=0; crMargin=0; if(cP[mid][cid][1]=="left"){ if(chhOFFSET>0){clMargin+=chhOFFSET;} if(cP[mid][cid][4]>0){clMargin+=cP[mid][cid][4];} if(chhOFFSET<0){cLeft+=chhOFFSET;} if(cP[mid][cid][4]<0){cLeft+=cP[mid][cid][4];} cLeft+=sP[mid][0]; } if(cP[mid][cid][1]=="right"){ mSize=0; if(chhOFFSET>0){crMargin+=chhOFFSET; mSize+=crMargin;} if(cP[mid][cid][4]>0){crMargin+=cP[mid][cid][4]; mSize+=crMargin;} if(chhOFFSET<0){cLeft-=chhOFFSET;} if(cP[mid][cid][4]<0){cLeft-=cP[mid][cid][4];} cLeft-=cP[mid][cid][0]+mSize; } clMargin+=shSIZE; cTop=sTop+stMargin-shSIZE; for(i=0;i0){ctMargin+=chvOFFSET;} if(cP[mid][cid][3]>0){ctMargin+=cP[mid][cid][3];} ctMargin+=shSIZE; applyWidth='width:auto;min-width:'+(cP[mid][cid][0]+clMargin)+'px\;white-space:nowrap;'; if(konqi){applyWidth='width:'+(cP[mid][cid][0]+clMargin)+'px\;';} applyWidthII='width:auto;min-width:'+(cP[mid][cid][0]+swPad-sbSIZE)+'px\;white-space:nowrap;'; if(konqi){applyWidthII='width:'+(cP[mid][cid][0]+swPad-sbSIZE)+'px\;';} cNode.parentNode.innerHTML='
'+cn+'
'; for(i=0;i(bHeight+evst)){ mctPos=evcy-((evcy+evoh)-(bHeight+evst)); cnj.style.top=(mctPos)+"px"; } } cnj.style.visibility="visible"; return cnj; } var cident,normalClear; function clearCell(ccj){ normalClear=true; ccj.firstChild.firstChild.style.color=saLINK; if(ccj.id.indexOf("subcell-")!=-1){ cident=ccj.id.replace("subcell-",""); cident=parseInt(cident); if(sP[cident][6]!=""){ ccj.style.backgroundColor=ok[cident][3]; ccj.style.backgroundImage='url('+bnk+')'; normalClear=false; } if(sP[cident][10]!=""){ ccj.firstChild.firstChild.style.color=ok[cident][7]; } } if(ccj.id.indexOf("childcell-")!=-1){ cident=ccj.id.replace("childcell-",""); cident=cident.split("-"); if(cP[cident[0]][cident[1]][6]!=""){ ccj.style.backgroundColor=ock[cident[0]][cident[1]][3]; ccj.style.backgroundImage='url('+bnk+')'; normalClear=false; } if(cP[cident[0]][cident[1]][10]!=""){ ccj.firstChild.firstChild.style.color=ock[cident[0]][cident[1]][7]; } } if(normalClear){ if(ui[5]){ if(ui[3]){ccj.style.backgroundImage='url('+bk[3].src+')';} else{ccj.style.backgroundImage='url('+bnk+')';} } else{ if(ui[3]){ccj.style.backgroundImage='url('+bk[3].src+')';} else{ccj.style.backgroundColor=bk[3];} } } } function childCell(mNum,sNum,cNum){ clearTimeout(cTimer); closeOkay=false; if(!keepSubLIT){ scj.firstChild.firstChild.style.color=ok[mNum][7]; if(sP[mNum][6]!=""){ scj.style.backgroundColor=ok[mNum][3]; scj.style.backgroundImage='url('+bnk+')'; } else{ if(ui[5]){ if(ui[3]){scj.style.backgroundImage='url('+bk[3].src+')';} else{scj.style.backgroundImage='url('+bnk+')';} } else{ if(ui[3]){scj.style.backgroundImage='url('+bk[3].src+')';} else{scj.style.backgroundColor=bk[3];} } } } if(previousID[2]>-1){ pj=document.getElementById('childcell-'+previousID[0]+'-'+previousID[1]+'-'+previousID[2]); pj.firstChild.firstChild.style.color=ock[previousID[0]][previousID[1]][7]; if(cP[previousID[0]][previousID[1]][6]!=""){ pj.style.backgroundColor=ock[previousID[0]][previousID[1]][3]; pj.style.backgroundImage='url('+bnk+')'; } else{ if(ui[5]){ if(ui[3]){pj.style.backgroundImage='url('+bk[3].src+')';} else{pj.style.backgroundImage='url('+bnk+')';} } else{ if(ui[3]){pj.style.backgroundImage='url('+bk[3].src+')';} else{pj.style.backgroundColor=bk[3];} } } } currentID=[mNum,sNum,cNum]; previousID=currentID; focusID=currentID; ccj=document.getElementById('childcell-'+mNum+'-'+sNum+'-'+cNum); if(cI[mNum][sNum][cNum][4]){ if(cP[mNum][sNum][7]!=""){ ccj.style.backgroundImage='url('+bnk+')'; ccj.style.backgroundColor=ock[mNum][sNum][5]; } else{ if(ui[5]){ ccj.style.backgroundImage='url('+bk[5].src+')'; } else{ ccj.style.backgroundImage='url('+bnk+')'; ccj.style.backgroundColor=bk[5]; } } } ccj.firstChild.firstChild.style.color=ock[mNum][sNum][8]; if(altDISPLAY=="status"){ writeStatus(cI[mNum][sNum][cNum][3]); } else{ tInfo=cI[mNum][sNum][cNum][0]; if(tInfo=="#"){tInfo="";} writeStatus(tInfo); } showGrid(); } var mn=''; mn+='
'; var gopac=""; if(redGRID){gopac="background-color:red";} var grw=bWidth; if(gridWIDTH>0){grw=gridWIDTH;} var grh=bHeight; if(gridHEIGHT>0){grh=gridHEIGHT;} mn+='
 
'; mn+='
'; mn+='
'; var mbc=bks[1]; var mcbc=bks[0]; var clcu,cllu,mtObj,mcLeft,strCol; var ofh='overflow:hidden'; if(konqi){ofh='';} var mnDisplay=''; if(remoteTRIGGERING){mnDisplay='display:none';} if(menuALIGN!="free"){ strCol=bks[0]; if(showBORDERS){strCol=bks[1];} if(stretchMENU||showBORDERS){ mn+='
'; if(stretchMENU&&showBORDERS){mn+='
 
';} mn+='
'; } mn+='
'; mcLeft=absLEFT+bSIZE; for(i=0;i
'+mI[i][1]+'
'; mcLeft+=bSIZE+mI[i][2]; } } if(menuALIGN=="free"){ for(i=0;i'; titleText=""; if(altDISPLAY=="title"){titleText=mI[i][5];} mn+='
'+mI[i][1]+'
'; mcLeft+=bSIZE+mI[i][2]; } } mn+=''; document.write(mn); function clickToClose(){ clearSubMenus(); } document.onclick=clickToClose; var mtt; var allready=false; function loadFunction(){ if(remoteTRIGGERING){document.addEventListener("mousemove", menuListen, false);} if(!remoteTRIGGERING){ for(i=0;i(bWidth/2)){ mtPos[0]=ecX-64-mtProps[0]; for(i=0;i(bHeight+scaroTop)){ mtPos[1]=(ecY)-((mtPos[1]+mtProps[1])-(bHeight+scaroTop)); } } else{ if((mtPos[1]+mtProps[1])>bHeight){ mtPos[1]=(ecY)-((mtPos[1]+mtProps[1])-bHeight); } } hOFFSET=mtPos[0]; vOFFSET=mtPos[1]; snj.style.left=hOFFSET+"px"; if(konqi){snj.style.top=(vOFFSET)+"px";} else{snj.style.top=(vOFFSET+scaroTop)+"px";} ncj.style.left=(hOFFSET)+"px"; if(konqi){ncj.style.top=((vOFFSET)-thisNavH[mmNum]-bSIZE)+"px";} else{ncj.style.top=((vOFFSET+scaroTop)-thisNavH[mmNum]-bSIZE)+"px";} sLeft=parseInt(ncj.style.left); if(shType=="string"){sLeft-=(shSIZE*2);} sTop=parseInt(ncj.style.top)+thisNavH[mmNum]; grid.style.top=scaroTop+"px"; remoteShow(snj); doListen=true; return true; } var showTimer; var showCount=0; var showPassObj; function remoteShow(showObj){ showPassObj=showObj; if(showCount==1){ clearTimeout(showTimer); showCount=0; showObj.style.visibility="visible"; } else{ showCount=1; showTimer=setTimeout("remoteShow(showPassObj)",40); } }