//UDMv3.4.1 // filter for undefined arrays for (var f=0;f0){bW=documentWIDTH;} // find the nav width and horizontal space var eS=0; var nS=0; for (var j=0;j'); Mrows[i]=splitT.length; Nrows[i]=Mrows[i]; } function cFun(a,b) { return b-a; } Mrows.sort(cFun); nH=nH*Mrows[0]; var aH=nH+(bSIZE*2); // find the subnav item height var snH=sfSIZE+5+svPADDING; if (sfSIZE<13) { snH+=(13-sfSIZE); } var asH=snH+(sbSIZE*2); for(i=0;i0){stAdjust=abR+(2*bSIZE);} if(rL<0){rL=0;} if(stretchMENU){aL=0;} } var subLEFT=rL; if(ralign){subLEFT-=abR;} if(lalign){subLEFT+=abR;} // how many main nav items var ntl=0; for (var intl=0;intl0){oR[3][sob]=d.getElementById('gridblocker'+sob);} if(d.getElementById('gridLblocker'+sob)){oR[12][sob]=d.getElementById('gridLblocker'+sob);} if(shCOLOR!=""){oR[4][sob]=d.getElementById('shadow'+sob);} for (var sobr=5;sobr<17;sobr++){oR[sobr][sob]=new Array;} for (var soj=0;soj0){ oR[6][sob][soj]=d.getElementById('subroll'+sob+'-'+soj); if(shCOLOR!=""){oR[7][sob][soj]=d.getElementById('childshadow'+sob+'-'+soj);} if((chhOFFSET+cP[sob][soj][4])>0){oR[8][sob][soj]=d.getElementById('childgrid'+sob+'-'+soj);} oR[9][sob][soj]=d.getElementById('childnav'+sob+'-'+soj); oR[10][sob][soj]=d.getElementById('childlinks'+sob+'-'+soj); oR[11][sob][soj]=new Array; oR[15][sob][soj]=new Array; oR[16][sob][soj]=new Array; for (var scj=0;scj-1){ if(rTimer!=0){clearTimeout(rTimer); rTimer=0; rCount=0;} if(typeof oR[0][pId] !="undefined"){miH(oR[0][pId]);} if(typeof oR[3][pId] !="undefined"){miH(oR[3][pId]);} if(typeof oR[12][pId] !="undefined"){miH(oR[12][pId]);} if(typeof oR[1][pId] !="undefined"){miH(oR[1][pId]);} if(typeof oR[2][pId] !="undefined"){miH(oR[2][pId]);} if(typeof oR[4][pId] !="undefined"){miH(oR[4][pId]);} if(pCId>-1){ if(typeof oR[5][pId][pCId]!="undefined"){miH(oR[5][pId][pCId]);} if(cP[pId][pCId]){ if(cP[pId][pCId].length>0){ for (cjc=0;cjc0){miV(oR[4][n]);} } if(typeof oR[1][n]!="undefined"){miV(oR[1][n]);} if(typeof oR[2][n]!="undefined"){miV(oR[2][n]);} if(typeof oR[3][n]!="undefined"){miV(oR[3][n]);} if(typeof oR[12][n]!="undefined"){miV(oR[12][n]);} if(pCId>-1){ miH(oR[5][n][pCId]); } } if(typeof obGrid!="undefined"){if(typeof gridTrue=="undefined") {miV(obGrid);}else{aCM(n);}} pId=n; } // clear child menus function cCM(snum,cnum){ if(pCId>-1){ if(typeof oR[5][snum][pCId]!="undefined"){miH(oR[5][snum][pCId]);} if(cP[snum][pCId].length>0&&cI[snum][pCId].length>0){ if(typeof oR[9][snum][pCId]!="undefined"){miH(oR[9][snum][pCId]);} if(typeof oR[10][snum][pCId]!="undefined"){miH(oR[10][snum][pCId]);} if(typeof oR[7][snum][pCId]!="undefined"){miH(oR[7][snum][pCId]);} if(typeof oR[8][snum][pCId]!="undefined"){miH(oR[8][snum][pCId]);} } pCId=-1; } } // actually open menu function actuallyOpenChild(snum,cnum){ miV(oR[7][snum][cnum]); miV(oR[9][snum][cnum]); miV(oR[10][snum][cnum]); if((chhOFFSET+cP[snum][cnum][4])>0){ miV(oR[8][snum][cnum]); } } // rollover and find child menu var snum; var cnum; function oCM(snum,cnum){ var ntS=snum; var ntC=cnum; if(sI[snum][cnum][4]){miV(oR[5][snum][cnum]);} if(cP[snum][cnum].length>0&&cI[snum][cnum].length>0){ actuallyOpenChild(ntS,ntC); } pCId=cnum; } // td click handlers var linkClicked=false; function goToUrl(cUrl,cTarg){ if(cellCLICK||(cellCLICK==mu)){ if(linkClicked==true){return false;} if(cTarg=="_self"){self.document.location=cUrl; return true;} else if(cTarg=="_top"){top.document.location=cUrl; return true;} else if(cTarg=="_parent"){parent.document.location=cUrl; return true;} else if(cTarg=="_blank"){var newwin=open(cUrl); return true;} else {if(top[cTarg]){top[cTarg].document.location=cUrl;} else {document.location=cUrl;} return true;} } else { return false; } } //alert("assemble main nav"); var mnDisplay=''; if(remoteTRIGGERING) { mnDisplay='display:none'; } var T=''; var S=''; var spbk=''; if(bCOLOR!=""){ spbk=' background:'+bCOLOR+'\; ' if(useIMG[1]){spbk=' background-image:url('+ bh + bCOLOR+')\; ';} } // nav stretching and event capturing layer var stbSize=bSIZE; if(stretchMENU||showBORDERS){ S+=''; var stretchLayer=''; if(stretchMENU){stretchLayer=bks[0];} //compensation for cell/stretch layer discrepancy here aH-=bSIZE; S+='
 
'; S+='
'; } // event capturing layer var GRw=bW;if(gridWIDTH>0){GRw=gridWIDTH;} var GRh=bHe;if(gridHEIGHT>0){GRh=gridHEIGHT;} var GRbc="";if(redGRID){GRbc="background-color:red";} T+=''; // open frame if(!free){ T+=''; } // link color behaviour if(aHOVER==""){aHOVER=aLINK;} var cSt=new Array; var cTd=new Array; var space=new Array; // alt text arrays var aTxt=new Array; var sTxt=new Array; var cTxt=new Array; var altNull=''; // write alt text to status bar function writeStatus(sTxt){window.status=sTxt; return true;} // links cSt=new Array; var linkHover=''; for (i=0;i
'; } var op6a=1; var op6b=-1; T+=''; if(free){T+='
'+mI[i][1]+'
';} } } // close frame if(!free){T+='';} // rollovers var layLeft=rL+bSIZE; for (i=0;i
'+mI[i][1]+'
'; if(!free){layLeft+=(mI[i][2]+bSIZE);} } // assemble submenus var M=''; var C=''; var SUBaL=0; var chTop=new Array; var Xrows=new Array; var XCrows=new Array; for (var c=0;c0){M+='
';} // grid block layer for horizontal offset var gblw=acL-mI[c][2]-SUBaL; var gbposL=(SUBaL+mI[c][2]+(2*bSIZE)); if(sP[c][1]=="right"){ gblw=mI[c][7]+bSIZE+aL-sP[c][0]-acL; gbposL=(mI[c][7]+bSIZE+aL-gblw); } for (i=0;i'); Trows=splitT.length; if (Trows>1) { Xrows[c]+=(Trows-1); } }} // grid blocker for offset var shb=0;if(shy){shb=(2*shSIZE);} if(gblw>0){M+='
';} var subParent; // container cells M+=''; for (i=0;i'); Trows=splitT.length; if (Trows>1) { thisH=(snH*Trows); } M+=''; } } M+=''; M+='
 
'; // link color behaviour if(saHOVER==""){saHOVER=saLINK;} // links M+=''; var scSt=new Array; var scTd=new Array; for (i=0;i'); Trows=splitT.length; if (Trows>1) { thisH=(snH*Trows); } chTop[c][i+1]=chTop[c][i]+thisH+sbSIZE; M+=''; // correct for positioning discrepancy mzSubAbsTop += sbSIZE; } M+=''; M+='
'+ sI[c][i][1]+'
'; // rollovers for (i=0;i'); Trows=splitT.length; if (Trows>1) { thisH=(snH*Trows); } M+=''; M+='
'+ sI[c][i][1]+'
'; M+='
'; } // drop shadow shb=0;if(shy){shb=(2*shSIZE);} if(shCOLOR!=""){M+='';} //clear child rollovers backup var cupObj; function clearChildRoll(bucM,bucS,bucObj){ for(cj=0;cj0&&cI[c][sq].length>0){ XCrows[c][sq]=0; // specify edge alignment var chL,cgL; if(cP[c][sq][1]=="right"){ chL=acL-cP[c][sq][0]-chhOFFSET-cP[c][sq][4]; cgL=chL+cP[c][sq][0]; } else { chL=acL + sP[c][0]+chhOFFSET+cP[c][sq][4]; cgL=(chL-(chhOFFSET+cP[c][sq][4])); } for (var cj=0;cj'); Trows=splitT.length; if (Trows>1) { XCrows[c][sq]+=(Trows-1); } } // grid block layer for offset if((chhOFFSET+cP[c][sq][4])>0){ C+=''; } // container cells C+=''; for (cj=0;cj'); Trows=splitT.length; if (Trows>1) { thisH=(snH*Trows); } C+=''; } C+=''; C+='
 
'; // text alignment and indentation var cspace=' left:0px\;'; if(cP[c][sq][2]=="left"){cspace=' left:'+stINDENT+'px\;';} if(cP[c][sq][2]=="right"){cspace=' left:-'+stINDENT+'px\;';} // links C+=''; mzSubAbsTop=sbSIZE; for (cj=0;cj'); Trows=splitT.length; if (Trows>1) { thisH=(snH*Trows); } var ccAl='cursor:'+aCURSOR; var ccTd='cursor:default';if(cellCLICK==true){ccTd='cursor:'+aCURSOR;} if(!cI[c][sq][cj][4]){ccAl='cursor:default';ccTd='cursor:default';} if(cI[c][sq][cj][0]=="#"){cI[c][sq][cj][0]="javascript:doNothing()";} C+=''; // correct for positioning discrepancy mzSubAbsTop += sbSIZE; } C+=''; C+='
'+ cI[c][sq][cj][1]+'
'; } var thisCHT = chTop[c][sq]+chvOFFSET+sbSIZE; if(cP[c][sq].length>0) { thisCHT+=cP[c][sq][3];} // rollovers for (cj=0;cj'); Trows=splitT.length; if (Trows>1) { thisH=(snH*Trows); } ccAl='cursor:'+aCURSOR; ccTd='cursor:default';if(cellCLICK==true){ccTd='cursor:'+aCURSOR;} if(!cI[c][sq][cj][4]){ccAl='cursor:default';ccTd='cursor:default';} C+='
'+ cI[c][sq][cj][1]+'
'; thisCHT+=(thisH+sbSIZE); } // drop shadow if((typeof XCrows[c][sq]!="undefined")&&shCOLOR!=""){C+='';} } } // resize/reload routine // based on a function by Michael Wallner - http://www.wallner-software.com/ var oldBW=window.innerWidth; var oldBH=window.innerHeight; var fws; function findWindowSize() { var newBW=window.innerWidth; var newBH=window.innerHeight; if (newBW==oldBW&&newBH==oldBH){ fws = setTimeout("findWindowSize()",100); } else { clearTimeout(fws); if(window.innerWidth>(nS+absLEFT)) { window.location.reload(); } else { fws = setTimeout("findWindowSize()",100); } } } function windowStart() { storeObjects(); if(allowRESIZE==true){findWindowSize();} } // draw stretch layer if(!free){d.write(S);} // draw main nav d.write(T); // draw submenus d.write(M); // draw child menus d.write(C); window.onload=windowStart; document.onclick=aCM; //move menu function activateMenu(mmNum) { if(typeof sP[mmNum]=="undefined"||!remoteTRIGGERING) { return false; } if(typeof oR[1][mmNum]!="undefined"&&oR[1][mmNum].style.visibility=="hidden") { oM(mmNum,false); } }