2 lines
32 KiB
JavaScript
2 lines
32 KiB
JavaScript
//UDMv3.6
|
|
for (var f=0;f<mI.length;f++){if(typeof sP[f]=="undefined"){sP[f]=[mI[f][2],mI[f][3],mI[f][3],0,0,"","","","","","",""];}if(typeof cP[f]=="undefined"){cP[f]=new Array;}if(typeof sI[f]=="undefined"){sI[f]=new Array;}if(typeof cI[f]=="undefined"){cI[f]=new Array;}for (var sf=0;sf<sI[f].length;sf++){if(typeof cP[f][sf]=="undefined"){cP[f][sf]=new Array;}if(typeof cI[f][sf]=="undefined"){cI[f][sf]=new Array;}}}if(absTOP<0){absTOP=0;}if(absLEFT<0){absLEFT=0;}if(vPADDING<0){vPADDING=0;}if(svPADDING<0){svPADDING=0;}if(aHOVER==""){aHOVER=aLINK;}if(saHOVER==""){saHOVER=saLINK;}if(aCURSOR=="pointer"){aCURSOR="hand";}if(remoteTRIGGERING){staticMENU=false;}var dog=d.getElementById;var tempImg;var bnk="";var bnki='background-image:url('+bnk+')\;';var bk=[mCOLOR,bCOLOR,rCOLOR,smCOLOR,sbCOLOR,srCOLOR,shCOLOR];var bks=new Array;var ui=[false,false,false,false,false,false];if(bk[2]==""){bk[2]=mCOLOR;}if(bk[5]==""){bk[5]=bk[3];}for (var b=0;b<bk.length;b++){if(bk[b]==""){bk[b]="";}if((bk[b].indexOf('.gif') != -1)||(bk[b].indexOf('.jpg') != -1)){ui[b]=true;tempImg=bk[b];bk[b]=new Image;bk[b].src=baseHREF+tempImg;bks[b]='background-image:url('+bk[b].src+')\;';}else{if(bk[b]==""){bks[b]='background-color:transparent\;'; }else{bks[b]='background-color:'+bk[b]+'\;'; }}}if(ui[2]&&!ui[0]){bks[0]+=bnki;}if(ui[0]&&!ui[2]){bks[2]+=bnki;}if(ui[5]&&!ui[3]){bks[3]+=bnki;}if(ui[3]&&!ui[5]){bks[5]+=bnki;}var ok=new Array;var oks=new Array;var ock=new Array;var ocks=new Array;for(i=0;i<mI.length;i++){ok[i]=[bk[0],bk[1],bk[2],bk[3],bk[4],bk[5],bk[6]];oks[i]=[bks[0],bks[1],bks[2],bks[3],bks[4],bks[5],bks[6]];if(mI[i][9]!=""){ok[i][0]=mI[i][9];oks[i][0]='background-color:'+mI[i][9]+'\;';}if(mI[i][10]!=""){ok[i][2]=mI[i][10];oks[i][2]='background-color:'+mI[i][10]+'\;';}ok[i][9]=aLINK;ok[i][10]=aHOVER;if(mI[i][11]!=""){ok[i][9]=mI[i][11];}if(mI[i][12]!=""){ok[i][10]=mI[i][12];}if(sP[i][6]!=""){ok[i][3]=sP[i][6];oks[i][3]='background-color:'+sP[i][6]+'\;';}if(sP[i][7]!=""){ok[i][5]=sP[i][7];}if(sP[i][8]!=""){oks[i][4]='background-color:'+sP[i][8]+'\;';}if(sP[i][9]!=""){oks[i][6]='background-color:'+sP[i][9]+'\;';}ok[i][7]=saLINK;ok[i][8]=saHOVER;if(sP[i][10]!=""){ok[i][7]=sP[i][10];}if(sP[i][11]!=""){ok[i][8]=sP[i][11];}ock[i]=new Array;ocks[i]=new Array;if(sI[i].length>0){for(j=0;j<sI[i].length;j++){ock[i][j]=[bk[0],bk[1],bk[2],bk[3],bk[4],bk[5],bk[6]];ocks[i][j]=[bks[0],bks[1],bks[2],bks[3],bks[4],bks[5],bks[6]];if(cI[i][j].length>0){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];}}}}}var bHeight=d.body.clientHeight;if(com){bHeight=d.documentElement.clientHeight;}function doNothing(){}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<mI.length;i++){var thisT=mI[i][1];var splitT=thisT.split('<br>');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<mI.length;i++){if(menuALIGN=="free"){thisNavH[i]=origH*Nrows[i];}else{thisNavH[i]=navH;}}var subNavH=sfSIZE+5+svPADDING;if (sfSIZE<13){subNavH+=(13-sfSIZE);}var nWidth=d.body.clientWidth;var bWidth=nWidth;if(com){bWidth=d.documentElement.clientWidth;}if(documentWIDTH>0){bWidth=documentWIDTH;}var endSpace=0;var navSpace=0;for (var j=0;j<mI.length;j++){if(mI[j][2]==""){mI[j][2]=10;}if(mI[j][1]==""){mI[j][1]=' ';}navSpace+=mI[j][2]+bSIZE;}navSpace+=bSIZE;endSpace=bWidth-navSpace;var remLeft=absLEFT;var ra=false;if(menuALIGN=="right"){ra=true;absLEFT=endSpace-absLEFT;}var ca=false;if(menuALIGN=="center"){ca=true;absLEFT=endSpace / 2;}var la=false;if(menuALIGN=="left"){la=true;}shy=0;if(typeof shSIZE == "number"){if(shSIZE<0){shSIZE=0;}shy-=shSIZE;shType="number";}if(typeof shSIZE == "string"){shSIZE=parseInt(shSIZE);shy+=shSIZE;shType="string";}var tInfo,titleText,master,nav,grid,pj,nObj,ncj,sObj,snj,scj,cObj,cnj,ccj,sNode,temSNode,temCNode,shj,sLeft,slMargin,srMargin,sTop,stMargin,mSize,mNumOf,cNode,cshObj,cLeft,clMargin,crMargin,cTop,ctMargin,cmSize,cNumOf;var grs;function showGrid(){grs=grid.style.visibility;if(grs=="hidden"){grid.style.visibility="visible";if(hideSELECT){hideSelects();}}}function hideGrid(){grs=grid.style.visibility;if(grs=="visible"){grid.style.visibility="hidden";if(hideSELECT){showSelects();}}}function writeStatus(sTxt){window.status=sTxt;return true;}function clearChildMenus(){cNumOf=cObj.childNodes.length;for(i=0;i<cNumOf;i++){cObj.removeChild(cObj.childNodes[i]);}currentID=[currentID[0],-1,-1];}var currentID=[-1,-1,-1];var previousID=[-1,-1,-1];var focusID=[-1,-1,-1];var cTimer,ncfObj;var closeOkay=false;var fid=0;var moveMT=false;function clearSubMenus(){if(currentID[0]>-1){if(mainRel&&menuALIGN!="free"){mcfObj.style.zIndex=zORDER+20;}else if(mainRel&&menuALIGN=="free"){for(i=0;i<mI.length;i++){ncfObj=dog("maincellframe-"+i);ncfObj.style.zIndex=zORDER+20;}}else{for(i=0;i<mI.length;i++){ncj=dog("maincell-"+i);ncj.style.zIndex=zORDER+3;}}ncj=dog("maincell-"+currentID[0]);if(typeof ncj != "undefined"){if(mI[currentID[0]][9]!=""){ncj.style.backgroundImage='url('+bnk+')';ncj.style.backgroundColor=ok[currentID[0]][0];}else{if(ui[2]){if(ui[0]){ncj.style.backgroundImage='url('+bk[0].src+')';}else{ncj.style.backgroundImage='url('+bnk+')';}}else{if(ui[0]){ncj.style.backgroundImage='url('+bk[0].src+')';}else{ncj.style.backgroundColor=bk[0];}}}ncj.firstChild.firstChild.firstChild.firstChild.firstChild.style.color=ok[currentID[0]][9];}mNumOf=sObj.childNodes.length;for(i=0;i<mNumOf;i++){sObj.removeChild(sObj.childNodes[i]);}clearChildMenus();}writeStatus('');currentID=[-1,-1,-1];focusID=[-1,-1,-1];hideGrid();clearTimeout(cTimer);closeOkay=false;moveMT=false;}function gridClearMenus(){if(closeOkay){clearTimeout(cTimer);clearSubMenus();}else{closeOkay=true;cTimer=setTimeout("gridClearMenus()",closeTIMER);}}var wins=new Array;var wNum=0;function goToUrl(cUrl,cTarg){if(cUrl=="~"||cUrl=="#"){return false;}if(cUrl.indexOf("mailto:")!=-1){d.location=cUrl;}else if(cUrl!=""){if(cTarg=="_self"){self.d.location=cUrl;}else if(cTarg=="_top"){top.d.location=cUrl;}else if(cTarg=="_parent"){parent.d.location=cUrl;}else if(cTarg=="_blank"){wins[wNum]=open(cUrl,"","status=yes,scrollbars=yes,scrolling=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes");wNum++;}else{if(typeof top[cTarg]!="undefined"){top[cTarg].d.location=cUrl}else{d.location=cUrl;}}}}var mtoLeft,mtoTop,mcfObj;function mainRollover(rmNum){if(mainRel){mcfObj=dog("maincellframe");mcfObj.style.zIndex=zORDER+20;}else{for(i=0;i<mI.length;i++){ncj=dog("maincell-"+i);ncj.style.zIndex=zORDER+20;}}ncj=dog("maincell-"+rmNum);if(mI[rmNum][10]!=""){ncj.style.backgroundImage='url('+bnk+')';ncj.style.backgroundColor=ok[rmNum][2];}else{if(ui[2]){ncj.style.backgroundImage='url('+bk[2].src+')';}else{ncj.style.backgroundImage='url('+bnk+')';ncj.style.backgroundColor=bk[2];}}ncj.firstChild.firstChild.firstChild.firstChild.firstChild.style.color=ok[rmNum][10];if(altDISPLAY=="status"){writeStatus(mI[rmNum][5]);}else{tInfo=mI[rmNum][0];if(tInfo=="#"){tInfo="";}writeStatus(tInfo);}}var kcc=-1;var sPlay=false;var cPlay=false;function mainCell(mNum,gridTrue){if(typeof mI[mNum]=="undefined"){return false;}currentID=previousID;clearSubMenus();currentID=[mNum,-1,-1];previousID=currentID;focusID=currentID;mainRollover(mNum);if(sI[mNum].length>0){openSubMenu(mNum);}if(typeof gridTrue=="undefined"){showGrid();}}function partialMainCell(mNum){clearTimeout(cTimer);closeOkay=false;mainRollover(mNum);showGrid();if(sI[mNum].length>0){if(previousID[1]>-1){clearCell(dog("subcell-"+mNum+"-"+previousID[1]));}}}var sn,stj,shAry,chAry,swPad,shPad,nodeHtml,mDiff,wAdj,tfj,relMenu,applyWidth;var kPressed=false;function openSubMenu(mid){sNode=d.createElement("div");dog("manch").appendChild(sNode);sn='<table id="subtable-'+mid+'" cellpadding=0 cellspacing='+sbSIZE+' border=0 style="filter:alpha(opacity=100)\;position:relative\;white-space:nowrap\;left:'+shy+'px\;top:'+shy+'px\;'+oks[mid][4]+'">';shAry=new Array;chAry=new Array;for(i=0;i<sI[mid].length;i++){clcu='';if(cellCLICK&&sI[mid][i][0]!=""&&sI[mid][i][0]!="#"&&sI[mid][i][0]!="~"){clcu=' cursor:'+aCURSOR+'\;';}cllu=' cursor:default\;';if(sI[mid][i][0]!=""&&sI[mid][i][0]!="#"&&sI[mid][i][0]!="~"){cllu=' cursor:'+aCURSOR+'\;';}shAry[i]=subNavH;var thisT=sI[mid][i][1];var splitT=thisT.split('<br>');var Trows=splitT.length;if (Trows>1){shAry[i]=(subNavH*Trows)-(svPADDING*(Trows-1));}titleText=""; if(altDISPLAY=="title"){titleText=sI[mid][i][3];}applyWidth='width:'+sP[mid][0]+'px\;';if(subRel){applyWidth='';}sn+='<tr><td style="'+clcu+'\;white-space:nowrap\;" align='+sP[mid][2]+' nowrap><div title="'+titleText+'" class=SUBmTD onfocus="subCell('+mid+','+i+')" onmouseover="temCNode=d.getElementById(\'childmenu-'+mid+'-'+i+'\')\;if(temCNode==null){subCell('+mid+','+i+')}else{partialSubCell('+mid+','+i+')}" onclick="if(cellCLICK){goToUrl(sI['+mid+']['+i+'][0],sI['+mid+']['+i+'][2])}" id="subcell-'+mid+'-'+i+'" style="'+oks[mid][3]+''+applyWidth+'height:'+shAry[i]+'px\;white-space:nowrap\;"><div id="subtext-'+mid+'-'+i+'" onmouseout="event.cancelBubble=true" style="'+cllu+'position:relative\;white-space:nowrap\;font:'+srSize+' '+sfFONT+'\;font-weight:'+sfWEIGHT+'\;color:'+ok[mid][7]+'" onclick="if(!cellCLICK){goToUrl(sI['+mid+']['+i+'][0],sI['+mid+']['+i+'][2])}">'+sI[mid][i][1]+'</div></div></td></tr>';}sn+='</table>';if(mainRel){sTop=ncj.offsetParent.offsetTop+thisNavH[mid];}else if(mainRel&&menuALIGN=="free"){sTop=ncj.offsetParent.offsetParent.offsetTop+ncj.offsetParent.offsetTop+thisNavH[mid];}else{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;if(mainRel){sLeft=ncj.offsetParent.offsetParent.offsetLeft+ncj.offsetParent.offsetLeft;}else{sLeft=parseInt(ncj.style.left);}if(shType=="string"){sLeft-=(shSIZE*2);}swPad=0;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(mainRel&&menuALIGN!="free"){if(slMargin>ncj.offsetWidth){slMargin-=ncj.offsetWidth;}else{sLeft-=(ncj.offsetWidth-slMargin); slMargin=0;}}else{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];}if(mainRel){sLeft-=(sP[mid][0]-ncj.offsetWidth+mSize);}else{sLeft-=(sP[mid][0]-mI[mid][2]+mSize);}sLeft-=2*sbSIZE;}slMargin+=shSIZE;applyWidth='width:'+(sP[mid][0]+sbSIZE+swPad)+'px\;';if(subRel){applyWidth='';}sNode.outerHTML='<table cellpadding=0 cellspacing=0 border=0 onmouseover="showGrid()" id="submenu-'+mid+'" style="'+sP[mid][5]+'\;visibility:hidden\;position:absolute\;left:'+sLeft+'px\;top:'+sTop+'px\;"><tr><td><div id="subshadow-'+mid+'" style="filter:alpha(opacity='+shOPACITY+')\;margin-top:'+stMargin+'px\;margin-left:'+slMargin+'px\;margin-right:'+srMargin+'px\;'+oks[mid][6]+'z-index:'+(zORDER+41)+'\;'+applyWidth+'height:1px\;">'+sn+'</div></td></tr></table>';for(i=0;i<sI[mid].length;i++){stj=dog('subtext-'+mid+'-'+i);stj.style.top=(shAry[i]/2)-(stj.offsetHeight/2)+svtOFFSET;if(sP[mid][2]=="left"){stj.style.left=stINDENT;}if(sP[mid][2]=="right"){stj.style.left=0-stINDENT;}}shj=dog('subshadow-'+mid);shj.style.height=dog('subtable-'+mid).offsetHeight+shPad;snj=dog('submenu-'+mid);if(subRel){relMenu=dog("subcell-"+mid+"-0");if(relMenu.offsetWidth<sP[mid][0]){relMenu.style.width=sP[mid][0];}if(shType=="string"){shj.style.width=(dog('subtable-'+mid).offsetWidth+(shy*2))+"px";}}if(typeof snj.filters !="unknown" && typeof snj.filters[0] !="undefined"){snj.filters[0].Apply();}snj.style.visibility="visible";if(typeof snj.filters !="unknown" && typeof snj.filters[0] !="undefined"){snj.filters[0].Play();}if(kPressed&&kcc!=-1&&kcc.indexOf("*")==-1){if(sI[mid][fid]&&sI[mid][fid][0]=="~"){fid++;}tfj=dog("subcell-"+mid+"-"+fid);if(tfj==null){fid=0;if(sI[mid][fid]&&sI[mid][fid][0]=="~"){fid++;}tfj=dog("subcell-"+mid+"-"+fid);}tfj.focus();focusID=[mid,fid,-1];fid++;}}var ncoNum;function clearSubRollover(rmNum,rsNum){if(!keepLIT){ncoNum=ncj.id.replace("maincell-","");ncj.firstChild.firstChild.firstChild.firstChild.firstChild.style.color=ok[ncoNum][9];if(mI[ncoNum][9]!=""){ncj.style.backgroundImage='url('+bnk+')';ncj.style.backgroundColor=ok[ncoNum][0];}else{if(ui[2]){if(ui[0]){ncj.style.backgroundImage='url('+bk[0].src+')';}else{ncj.style.backgroundImage='url('+bnk+')';}}else{if(ui[0]){ncj.style.backgroundImage='url('+bk[0].src+')';}else{ncj.style.backgroundColor=bk[0];}}}}if(previousID[1]>-1){pj=dog('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.style.color=ok[previousID[0]][7];}}function subRollover(rmNum,rsNum){if(sI[rmNum][rsNum][0]!="~"){if(typeof sI[rmNum][rsNum][4]!="undefined"){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.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,ctObj;function subCell(mNum,sNum){clearTimeout(cTimer);closeOkay=false;clearSubRollover();currentID=[mNum,sNum,-1];previousID=currentID;focusID=currentID;scj=dog('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(dog("childcell-"+mNum+"-"+sNum+"-"+previousID[2]));}}}var evcy,evoh,evst,mctPos,relCellObj;function openChildMenu(mid,cid){clearChildMenus();if(cI[mid][cid].length<=0){return false;}cNode=d.createElement("div");dog("canch").appendChild(cNode);cn='';cn+='<table id="childtable-'+mid+'-'+cid+'" cellpadding=0 cellspacing='+sbSIZE+' border=0 style="filter:alpha(opacity=100)\;position:relative\;left:'+shy+'px\;top:'+shy+'px\;'+ocks[mid][cid][4]+'">';chAry[mid]=new Array;for(i=0;i<cI[mid][cid].length;i++){cn+='<tr>';clcu='';if(cellCLICK&&cI[mid][cid][i][0]!=""&&cI[mid][cid][i][0]!="#"&&cI[mid][cid][i][0]!="~"){clcu=' cursor:'+aCURSOR+'\;';}cllu=' cursor:default\;';if(cI[mid][cid][i][0]!=""&&cI[mid][cid][i][0]!="#"&&cI[mid][cid][i][0]!="~"){cllu=' cursor:'+aCURSOR+'\;';}chAry[mid][i]=subNavH;var thisT=cI[mid][cid][i][1];var splitT=thisT.split('<br>');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];}applyWidth='width:'+cP[mid][cid][0]+'px\;';if(subRel){applyWidth='';}cn+='<td style="'+clcu+'\;white-space:nowrap\;" align='+cP[mid][cid][2]+' nowrap><div title="'+titleText+'" class=SUBmTD onfocus="childCell('+mid+','+cid+','+i+')" onblur="clearCell(this)" onmouseover="childCell('+mid+','+cid+','+i+')" onclick="if(cellCLICK){goToUrl(cI['+mid+']['+cid+']['+i+'][0],cI['+mid+']['+cid+']['+i+'][2])}" id="childcell-'+mid+'-'+cid+'-'+i+'" style="'+ocks[mid][cid][3]+''+applyWidth+'height:'+chAry[mid][i]+'px\;white-space:nowrap\;"><div onmouseout="event.cancelBubble=true" id="childtext-'+mid+'-'+cid+'-'+i+'" style="'+cllu+'position:relative\;font:'+srSize+' '+sfFONT+'\;font-weight:'+sfWEIGHT+'\;color:'+ock[mid][cid][7]+'\;white-space:nowrap\;" onclick="if(!cellCLICK){goToUrl(cI['+mid+']['+cid+']['+i+'][0],cI['+mid+']['+cid+']['+i+'][2])}">'+cI[mid][cid][i][1]+'</div></div></td>';cn+='</tr>';}cn+='</table>';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]+(2*sbSIZE);}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]+(2*sbSIZE)+mSize;}clMargin+=shSIZE;cTop=sTop+stMargin-shSIZE;for(i=0;i<cid;i++){cTop+=shAry[i]+sbSIZE;}if(chvOFFSET<0){cTop+=chvOFFSET;}if(cP[mid][cid][3]<0){cTop+=cP[mid][cid][3];}ctMargin=sbSIZE;if(chvOFFSET>0){ctMargin+=chvOFFSET;}if(cP[mid][cid][3]>0){ctMargin+=cP[mid][cid][3];}ctMargin+=shSIZE;applyWidth='width:'+(cP[mid][cid][0]+sbSIZE+swPad)+'px\;';if(subRel){applyWidth='';}cNode.outerHTML='<div onmouseover="showGrid()" id="childmenu-'+mid+'-'+cid+'" style="'+cP[mid][cid][5]+'\;visibility:hidden\;position:absolute\;left:'+cLeft+'px\;top:'+cTop+'px\;"><div id="childshadow-'+mid+'-'+cid+'" style="filter:alpha(opacity='+shOPACITY+')\;margin-top:'+ctMargin+'px\;margin-left:'+clMargin+'px\;margin-right:'+crMargin+'px\;'+ocks[mid][cid][6]+'z-index:'+(zORDER+61)+'\;'+applyWidth+'height:1px\;">'+cn+'</div></div>';for(i=0;i<cI[mid][cid].length;i++){ctObj=dog('childtext-'+mid+'-'+cid+'-'+i);ctObj.style.top=(chAry[mid][i]/2)-(ctObj.offsetHeight/2)+svtOFFSET;if(cP[mid][cid][2]=="left"){ctObj.style.left=stINDENT;}if(cP[mid][cid][2]=="right"){ctObj.style.left=0-stINDENT;}}cshObj=dog('childshadow-'+mid+'-'+cid);cshObj.style.height=dog('childtable-'+mid+'-'+cid).offsetHeight+shPad;cnj=dog('childmenu-'+mid+'-'+cid);if(subRel){relMenu=dog("childcell-"+mid+"-"+cid+"-0");if(relMenu.offsetWidth<cP[mid][cid][0]){relMenu.style.width=cP[mid][cid][0];}if(shType=="string"){cshObj.style.width=(dog('childtable-'+mid+'-'+cid).offsetWidth+(shy*2))+"px";}}if(remoteTRIGGERING){evcy=event.clientY;evoh=cnj.offsetHeight;evst=d.body.scrollTop;if(com){evst=d.documentElement.scrollTop;}if((evcy+evoh)>bHeight){mctPos=event.clientY-((evcy+evoh)-bHeight);cnj.style.top=(mctPos+evst)+"px";}}if(typeof cnj.filters !="unknown" && typeof cnj.filters[0] !="undefined"){cnj.filters[0].Apply();}cnj.style.visibility="visible";if(typeof cnj.filters !="unknown" && typeof cnj.filters[0] !="undefined"){cnj.filters[0].Play();}}var cident,normalClear;function clearCell(ccj){normalClear=true;ccj.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.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.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.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=dog('childcell-'+previousID[0]+'-'+previousID[1]+'-'+previousID[2]);pj.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=dog('childcell-'+mNum+'-'+sNum+'-'+cNum);if(cI[mNum][sNum][cNum][0]!="~"){if(typeof cI[mNum][sNum][cNum][4]!="undefined"){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.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+='<div id="master" style="position:absolute\;left:0px\;top:0px\;z-index:'+zORDER+'">';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+='<table cellpadding=0 cellspacing=0 border=0 id="udm-grid" onmouseover="gridClearMenus()" style="cursor:default\;'+gopac+'\;visibility:hidden\;position:absolute\;top:0px\;left:0px\;z-index:'+(zORDER+10)+'\;width:'+grw+'px\;height:'+grh+'px\;"><tr><td> </td></tr></table>';mn+='<div id="manch" style="position:absolute\;top:0px\;left:0px\;z-index:'+(zORDER+40)+'\;"></div>';mn+='<div id="canch" style="position:absolute\;top:0px\;left:0px\;z-index:'+(zORDER+60)+'\;"></div>';var mbc=bks[1];var mcbc=bks[0];var clcu,cllu,mtObj,mcLeft,strCol;var mnDisplay='';if(remoteTRIGGERING){mnDisplay='display:none';}if(menuALIGN!="free"){strCol=bks[0];if(showBORDERS){strCol=bks[1];}if(stretchMENU||showBORDERS){mn+='<div id="underb" style="'+mnDisplay+'\;cursor:default\;'+strCol+'visibility:visible\;position:absolute\;z-index:'+zORDER+'\;left:0px\;top:'+absTOP+'px\;width:'+bWidth+'px\;height:'+(navH+(2*bSIZE))+'px\;">';if(stretchMENU&&showBORDERS){mn+='<table cellpadding=0 cellspacing='+bSIZE+' border=0 style="width:'+bWidth+'px\;height:'+(navH+(2*bSIZE))+'px"><tr><td style="'+bks[0]+'cursor:default"> </td></tr></table>';}mn+='</div>';}var addColor=bks[1];if(mainRel){addColor='';}if(mainRel){mn+='<div id="udm-navbar" style="display:none"></div>';}else{mn+='<div id="udm-navbar" style="'+mnDisplay+'\;'+addColor+'\;position:absolute\;z-index:'+(zORDER+2)+'\;left:'+absLEFT+'px\;top:'+absTOP+'\;width:'+navSpace+'px\;height:'+(navH+(2*bSIZE))+'px\;" class=mTD></div>';}mcLeft=absLEFT+bSIZE;if(mainRel){mn+='<table id="maincellframe" cellpadding=0 cellspacing='+bSIZE+' border=0 style="'+bks[1]+'\;position:absolute\;z-index:'+(zORDER+2)+'\;left:'+absLEFT+'px\;top:'+absTOP+'\;height:'+(navH+(2*bSIZE))+'px"><tr>';}for(i=0;i<mI.length;i++){clcu='';if(cellCLICK&&mI[i][0]!=""&&mI[i][0]!="#"&&mI[i][0]!="~"){clcu=' cursor:'+aCURSOR+'\;';}cllu=' cursor:default\;';if(mI[i][0]!=""&&mI[i][0]!="#"&&mI[i][0]!="~"){cllu=' cursor:'+aCURSOR+'\;';}titleText=""; if(altDISPLAY=="title"){titleText=mI[i][5];}if(mainRel){mn+='<td nowrap><div title="'+titleText+'" onfocus="mainCell('+i+')" onmouseover="temSNode=d.getElementById(\'submenu-'+i+'\')\;if(temSNode==null){mainCell('+i+')}else{partialMainCell('+i+')}" onmouseout="if(event.clientX<5||event.clientY<5){gridClearMenus()}" onclick="goToUrl(mI['+i+'][0],mI['+i+'][4],['+i+'])" id="maincell-'+i+'" style="'+mnDisplay+'\;z-index:'+(zORDER+3)+'\;visibility:hidden\;'+clcu+oks[i][0]+'height:'+thisNavH[i]+'\px"><table cellpadding=0 cellspacing=0 border=0 style="height:'+thisNavH[i]+'\px" onmouseout="event.cancelBubble=true" id="maintext-'+i+'" style="'+cllu+'position:relative"><tr><td class=mTD style="color:'+ok[i][9]+'" align='+mI[i][3]+' nowrap><span onclick="if(!cellCLICK){goToUrl(mI['+i+'][0],mI['+i+'][4])}" style="font-size:'+mrSize+'">'+mI[i][1]+'</span></td></tr></table></div></td>';}else{mn+='<div title="'+titleText+'" onfocus="mainCell('+i+')" onmouseover="temSNode=d.getElementById(\'submenu-'+i+'\')\;if(temSNode==null){mainCell('+i+')}else{partialMainCell('+i+')}" onmouseout="if(event.clientX<5||event.clientY<5){gridClearMenus()}" onclick="goToUrl(mI['+i+'][0],mI['+i+'][4],['+i+'])" id="maincell-'+i+'" style="'+mnDisplay+'\;z-index:'+(zORDER+3)+'\;visibility:hidden\;position:absolute\;top:'+(absTOP+bSIZE)+'px\;left:'+mcLeft+'px\;'+clcu+oks[i][0]+'width:'+mI[i][2]+'px\;height:'+thisNavH[i]+'\px"><table cellpadding=0 cellspacing=0 border=0 style="width:'+mI[i][2]+'px\;height:'+thisNavH[i]+'\px" onmouseout="event.cancelBubble=true" id="maintext-'+i+'" style="'+cllu+'position:relative"><tr><td class=mTD style="color:'+ok[i][9]+'" align='+mI[i][3]+'><span onclick="if(!cellCLICK){goToUrl(mI['+i+'][0],mI['+i+'][4])}">'+mI[i][1]+'</span></td></tr></table></div>';}mcLeft+=bSIZE+mI[i][2];}mn+='</tr></table>';}if(menuALIGN=="free"){for(i=0;i<mI.length;i++){clcu='';if(cellCLICK&&mI[i][0]!=""&&mI[i][0]!="#"&&mI[i][0]!="~"){clcu=' cursor:'+aCURSOR+'\;';}cllu=' cursor:default\;';if(mI[i][0]!=""&&mI[i][0]!="#"&&mI[i][0]!="~"){cllu=' cursor:'+aCURSOR+'\;';}mn+='<div style="'+mnDisplay+'\;'+bks[1]+'z-index:'+(zORDER+2)+'\;position:absolute\;left:'+(absLEFT+mI[i][7])+'px\;top:'+(absTOP+mI[i][6])+'px\;width:'+(mI[i][2]+(2*bSIZE))+'px\;height:'+(thisNavH[i]+(2*bSIZE))+'\px"></div>'; titleText=""; if(altDISPLAY=="title"){titleText=mI[i][5];}mn+='<div title="'+titleText+'" onfocus="mainCell('+i+')" onmouseover="temSNode=d.getElementById(\'submenu-'+i+'\')\;if(temSNode==null){mainCell('+i+')}else{partialMainCell('+i+')}" onmouseout="if(event.clientX<5||event.clientY<5){gridClearMenus()}" onclick="if(cellCLICK){goToUrl(mI['+i+'][0],mI['+i+'][4])}" id="maincell-'+i+'" style="'+mnDisplay+'\;z-index:'+(zORDER+3)+'\;position:absolute\;left:'+(absLEFT+mI[i][7]+bSIZE)+'px\;top:'+(absTOP+mI[i][6]+bSIZE)+'px\;visibility:hidden\;'+clcu+oks[i][0]+'width:'+mI[i][2]+'px\;height:'+thisNavH[i]+'\px"><table cellpadding=0 cellspacing=0 border=0 style="width:'+mI[i][2]+'px\;height:'+thisNavH[i]+'\px" onmouseout="event.cancelBubble=true" id="maintext-'+i+'" style="'+cllu+'position:relative"><tr><td class=mTD style="color:'+ok[i][9]+'" align='+mI[i][3]+'><span onclick="if(!cellCLICK){goToUrl(mI['+i+'][0],mI['+i+'][4])}" style="font-size:'+mrSize+'">'+mI[i][1]+'</span></td></tr></table></div>';mcLeft+=bSIZE+mI[i][2];}}mn+='</div>';d.write(mn);if(!remoteTRIGGERING){for(i=0;i<mI.length;i++){mtObj=dog("maintext-"+i);if(mtObj){mtObj.style.top=(thisNavH[i]/2)-(mtObj.offsetHeight/2)+vtOFFSET;if(mI[i][3]=="left"){mtObj.style.left=tINDENT;}if(mI[i][3]=="right"){mtObj.style.left=0-tINDENT;}dog("maincell-"+i).style.visibility="visible";}}}master=dog("master");nav=dog("udm-navbar");if(menuALIGN!="free"){nav.style.top=absTOP+"px";}grid=dog("udm-grid");sObj=dog("manch");cObj=dog("canch");var mrelObj=dog("maincellframe");function adjustNavPos(whichWay){if(whichWay=="right"){mrelObj.style.left=((bWidth-mrelObj.offsetWidth-remLeft))+"px";}if(whichWay=="center"){mrelObj.style.left=((bWidth-mrelObj.offsetWidth)/2)+"px";}}if(mainRel){if(menuALIGN=="right"){if(com){adjustNavPos('right');}else{setInterval("adjustNavPos('right')",100);}}if(menuALIGN=="center"){if(com){adjustNavPos('center');}else{setInterval("adjustNavPos('center')",100);}}}function clickToClose(){clearSubMenus();if(hideSELECT){showSelects();}}d.onclick=clickToClose;var sTimer;var staticTop=absTOP;function makeStatic(){staticTop=absTOP+d.body.scrollTop;if(com){staticTop=absTOP+d.documentElement.scrollTop;}master.style.top=staticTop;sTimer=setTimeout("makeStatic()",0);}function loadFunction(){genericOnloadFunction();if(staticMENU){makeStatic();}}window.onload=loadFunction;var kLets=['*l','*u','*r','*d','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'];var kCodes=new Array;var ii=0;var kc=0;var allowKey=false;for (i=37;i<41;i++){kCodes[ii]=i;ii++;}for (i=97;i<123;i++){kCodes[ii]=i;ii++;}var currentTop,currentLeft,moving,pkcc,childFocus,clickObj,tempCI;var subFocus=null;function keyListen(DnEvents){kPressed=true;kcc=-1;kc=event.keyCode;if(kc==13){if(focusID[2]>-1){dog("childcell-"+focusID[0]+"-"+focusID[1]+"-"+focusID[2]).click();}else if(focusID[1]>-1){dog("subcell-"+focusID[0]+"-"+focusID[1]).click();}}var eka=event.altKey;var eks=event.shiftKey;var ekc=event.ctrlKey;if(eka||eks||ekc||remoteTRIGGERING){return false;}var html=event.srcElement.outerHTML;regexp1=/^<input/i;regexp2=/^<textarea/i;if(regexp1.test(html)||regexp2.test(html)){return false;}if (kc>=65&&kc<=90){kc+=32;}for (i=0;i<kLets.length;i++){if (kCodes[i]==kc){kcc=kLets[i];}}if(kcc==-1){return false;}if (kcc=="c"){clearTimeout(cTimer);closeOkay=true;clearSubMenus();pkcc=kcc;}else if(kcc.indexOf("*")==-1){for(i=0;i<mI.length;i++){if(kcc==mI[i][8]){dog("maincell-"+i).focus();focusID=[i,-1,-1];if(pkcc!=kcc){fid=0;}pkcc=kcc;break;}}}else if(kcc.indexOf("*")!=-1&&focusID[0]>-1){if(kcc=="*l"||kcc=="*r"){focusID[2]++;if(focusID[2]>(cI[focusID[0]][focusID[1]].length-1)){focusID[2]=0;}tempCI=cI[focusID[0]][focusID[1]][focusID[2]][0];if(tempCI&&tempCI=="~"){focusID[2]++;}childFocus=dog("childcell-"+focusID[0]+"-"+focusID[1]+"-"+focusID[2]);if(childFocus){childFocus.focus();}}}}function kpf(){kPressed=false;kcc=-1;focusID=[-1,-1,-1];fid=0;}d.onmousemove=kpf;d.onkeyup=keyListen;function resizeFunction() {bHeight=d.body.clientHeight;if(com){bHeight=d.documentElement.clientHeight;}nWidth=d.body.clientWidth;bWidth=nWidth;if(com){bWidth=d.documentElement.clientWidth;}if(documentWIDTH>0){bWidth=documentWIDTH;}if(allowRESIZE==true) { window.location.reload(); }}window.onresize=resizeFunction;var selectSearch=true;var selectArray=new Array;var frm=d.forms;var typeStr,elm;function hideSelects(){if (selectSearch==true){for (i=0;i<frm.length;i++){for (j=0;j<frm[i].elements.length; j++){elm=d.forms[i].elements;typeStr=elm[j].type.toString();if(typeStr.substring(0,6)=="select"){selectArray[selectArray.length]=elm[j];}}}selectSearch=false;}if (selectArray.length>0){for (z=0;z<selectArray.length; z++){if(typeof selectArray[z].style!="undefined"){selectArray[z].style.visibility='hidden';}}}}var z;function showSelects(){if (selectArray.length>0){for (z=0;z<selectArray.length;z++){if(typeof selectArray[z].style!="undefined"){selectArray[z].style.visibility='visible';}}}}var mtPos,mtProps,scaroTop;function activateMenu(mmNum){if(typeof sP[mmNum]=="undefined"||!remoteTRIGGERING){return false;}vOFFSET=0;hOFFSET=0;sP[mmNum][3]=0;sP[mmNum][4]=0;mainCell(mmNum,false);if(ie&&hideSELECT){hideSelects();}mtPos=[event.clientX+32,event.clientY];scaroTop=d.body.scrollTop;if(com){scaroTop=d.documentElement.scrollTop;}for(i=0;i<sI[mmNum].length;i++){cP[mmNum][i][1]="left";}mtProps=[snj.offsetWidth,snj.offsetHeight];if(mtPos[0]>(bWidth/2)){mtPos[0]=event.clientX-32-mtProps[0];for(i=0;i<sI[mmNum].length;i++){cP[mmNum][i][1]="right";}}if((mtPos[1]+mtProps[1])>bHeight){mtPos[1]=(event.clientY)-((mtPos[1]+mtProps[1])-bHeight);}hOFFSET=mtPos[0];vOFFSET=mtPos[1];snj.style.left=hOFFSET+"px";snj.style.top=(vOFFSET+scaroTop)+"px";ncj.style.left=(hOFFSET)+"px";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";} |