home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2002 August / INTERNET94.ISO / pc / software / windows / building / webmenu_studio / wmstud01.cab / _01B968CA4B4244CCB5D79FDF0FE70746 < prev    next >
Encoding:
Text File  |  2002-03-14  |  16.5 KB  |  11 lines

  1.  
  2. <!--
  3. /////////////////////////////////////////////////
  4. // Coalesys WebMenu Studio NN6 DHTML script
  5. // COPYRIGHT 2000-2002 Coalesys, Inc.
  6. /////////////////////////////////////////////////
  7. var cswmTI="";var cswmClkd=-1;var cswmPI=new Array();var cswmPL=new Array();var cswmPT=new Array();var cswmPW=0;var cswmPH=0;var cswmSPnt="";var cswmDir="";var cswmMB=0;var cswmSI="";var cswmSE=new Object();var cswmSEL=0;var cswmSET=0;var cswmSEH=0;var cswmSEW=0;var cswmBW=0;var cswmBH=0;var cswmAR=0;var cswmAB=0;var cswmSLA=0;var cswmSTA=0;var cswmExIS="./images/Popup.gif";var cswmExdIS="./images/Popup.gif";var cswmCTH=0;var cswmXOff=0;var cswmYOff=0;var cswmFP=0;function cswmT(ms){if(ms!="off"){if(cswmCTH==0){cswmTI=setTimeout("cswmHP(0);cswmClkd=-1",ms);}}else{clearTimeout(cswmTI);}}function cswmShow(id,srcid,relpos,offsetX,offsetY,fixedpos){clearTimeout(cswmTI);if(cswmClkd!=id){cswmHP(0);cswmSI=srcid;cswmSPnt=relpos;cswmClkd=id;cswmDir="right";if(document.getElementById("cswmPopup"+id)){if(offsetX)cswmXOff=offsetX;if(offsetY)cswmYOff=offsetY;if(fixedpos)cswmFP=fixedpos;cswmSP(id);}}}function cswmHide(){cswmTI=setTimeout("cswmHP(0);cswmClkd=-1;",350);}function cswmHiI(id,bgco){if(document.getElementById("cswmIcoOn"+id)){document.getElementById("cswmIcoOn"+id).style.display="inline";document.getElementById("cswmIco"+id).style.display="none";}document.getElementById("cswmItem"+id).style.color="#000000";document.getElementById("cswmExpand"+id).style.color="#000000";if(bgco!=null){document.getElementById("cswmItem"+id).style.backgroundColor=bgco;document.getElementById("cswmExpand"+id).style.backgroundColor=bgco;}else{document.getElementById("cswmItem"+id).style.backgroundColor="#B6BDD2";document.getElementById("cswmExpand"+id).style.backgroundColor="#B6BDD2";}if(document.getElementById("cswmExpandIc"+id)){document.getElementById("cswmExpandIc"+id).src=cswmExdIS;}}function cswmDiI(id,bgco){if(document.getElementById("cswmIcoOn"+id)){document.getElementById("cswmIco"+id).style.display="inline";document.getElementById("cswmIcoOn"+id).style.display="none";}document.getElementById("cswmItem"+id).style.color="#000000";document.getElementById("cswmExpand"+id).style.color="#000000";if(bgco!=null){document.getElementById("cswmItem"+id).style.backgroundColor=bgco;document.getElementById("cswmExpand"+id).style.backgroundColor=bgco;}else{document.getElementById("cswmItem"+id).style.backgroundColor="";document.getElementById("cswmExpand"+id).style.backgroundColor="";}if(document.getElementById("cswmExpandIc"+id)){document.getElementById("cswmExpandIc"+id).src=cswmExIS;}}function cswmSP(id,itemid){if(!itemid){if(cswmFP){cswmSEL=cswmXOff;cswmSET=cswmYOff;cswmSEH=1;cswmSEW=1;cswmFP=0;}else{cswmSE=new Object(document.getElementById(cswmSI));cswmSEL=new Number(cswmSE.offsetLeft+cswmXOff+document.getElementsByTagName("body").item(0).offsetLeft);cswmSET=new Number(cswmSE.offsetTop+cswmYOff+document.getElementsByTagName("body").item(0).offsetTop);cswmSEH=cswmSE.height;cswmSEW=cswmSE.width;}document.getElementById("cswmPopup"+id).style.display="inline";cswmPW=document.getElementById("cswmPopup"+id).offsetWidth;cswmPH=document.getElementById("cswmPopup"+id).offsetHeight;cswmBW=document.width;cswmBH=window.innerHeight-15;cswmSLA=window.pageXOffset;cswmSTA=window.pageYOffset;switch(cswmSPnt){case "above":cswmPL[cswmPL.length]=cswmSEL;cswmPT[cswmPT.length]=cswmSET-cswmPH;cswmCA();cswmCR();break;case "below":cswmPL[cswmPL.length]=cswmSEL;cswmPT[cswmPT.length]=cswmSET+cswmSEH;cswmCB();cswmCR();break;case "right":cswmPL[cswmPL.length]=cswmSEL+cswmSEW;cswmPT[cswmPT.length]=cswmSET;cswmCR();cswmCB();break;case "left":cswmPL[cswmPL.length]=cswmSEL-cswmPW;cswmPT[cswmPT.length]=cswmSET;cswmCL();cswmCB();cswmDir="left";break;}cswmXOff=0;cswmYOff=0;document.getElementById("cswmPopup"+id).style.left=cswmPL[cswmPL.length-1];document.getElementById("cswmPopup"+id).style.top=cswmPT[cswmPT.length-1];cswmPI[cswmPI.length]=id;}else{cswmPL[cswmPL.length]=document.getElementById("cswmPopup"+cswmPI[cswmPI.length-1]).offsetWidth+cswmPL[cswmPL.length-1]-4;cswmPT[cswmPT.length]=document.getElementById("cswmItem"+itemid).offsetTop;if(parseFloat(navigator.vendorSub)>=6.1){cswmPT[cswmPT.length-1]+=document.getElementById("cswmItem"+itemid).offsetParent.offsetTop;}document.getElementById("cswmPopup"+id).style.display="inline";cswmPW=document.getElementById("cswmPopup"+id).offsetWidth;cswmPH=document.getElementById("cswmPopup"+id).offsetHeight;var cswmPrW=document.getElementById("cswmPopup"+cswmPI[cswmPI.length-1]).offsetWidth;cswmAR=cswmBW-cswmPL[cswmPL.length-1]+cswmSLA;cswmAB=cswmBH-cswmPT[cswmPT.length - 1]+cswmSTA;if(cswmPL[cswmPL.length-2]==cswmSLA){cswmDir="right";}if((cswmAR<cswmPW)||(cswmDir=="left")){cswmMB=(cswmPL[cswmPL.length-1]-cswmPW-cswmPrW)+8;if((cswmMB>=0)&&(cswmMB>cswmSLA)){cswmDir="left";}else{cswmMB=cswmSLA;}cswmPL[cswmPL.length-1]=cswmMB;}if(cswmAB<cswmPH){cswmMB=cswmPT[cswmPT.length-1]-(cswmPH-cswmAB);if(cswmMB<0){cswmMB=cswmSTA;}cswmPT[cswmPT.length-1]=cswmMB;}document.getElementById("cswmPopup"+id).style.left=cswmPL[cswmPL.length-1];document.getElementById("cswmPopup"+id).style.top=cswmPT[cswmPT.length-1];cswmPI[cswmPI.length]=id;}}function cswmHP(level){var count=level;for(count=level;count<cswmPI.length;count++){document.getElementById("cswmPopup"+cswmPI[count]).style.display="none";}if(level==0&&cswmPI.length>0){}cswmPI.length=level;cswmPL.length=level;cswmPT.length=level;}function cswmCR(){cswmAR=(cswmBW+cswmSLA)-cswmPL[cswmPL.length-1];if(cswmAR<cswmPW){if(cswmSPnt=="below"||cswmSPnt=="above"){cswmMB=cswmPL[cswmPL.length-1]-(cswmPW-cswmAR);if(cswmMB<0||cswmMB<cswmSLA){cswmMB=cswmSLA;}cswmPL[cswmPL.length-1]=cswmMB;}else{cswmMB=cswmSEL-cswmPW;if(cswmMB>=0){cswmPL[cswmPL.length-1]=cswmMB;}}}}function cswmCL(){if(cswmPL[cswmPL.length-1]<(cswmSLA)){cswmPL[cswmPL.length-1]=cswmSEL+cswmSEW;cswmCR();}}function cswmCB(){cswmAB=(cswmBH+cswmSTA)-cswmPT[cswmPT.length-1];if(cswmAB<cswmPH){if(cswmSPnt=="below"){cswmMB=cswmPT[cswmPT.length-1]-cswmPH-cswmSEH;if(cswmMB>=0){cswmPT[cswmPT.length-1]=cswmMB;}}else{cswmMB=cswmPT[cswmPT.length-1]-(cswmPH-cswmAB);if(cswmMB<0||cswmMB<cswmSTA){cswmMB=cswmSTA;}cswmPT[cswmPT.length-1]=cswmMB;}}}function cswmCA(){if(cswmPT[cswmPT.length-1]<(cswmSTA)){cswmPT[cswmPT.length-1]=cswmSET+cswmSEH;cswmCB();}}function cswmShowInFrame(MenuID,x,y){x+=window.pageXOffset;y+=window.pageYOffset;cswmShow(MenuID,'','below',x,y,1);}function cswmHideSelectBox(){}function cswmRefresh(){}
  8. //-->
  9.  
  10. document.write("\r\n<!-- Coalesys WebMenu Studio -->\r\n<!-- WebMenu HTML Structure COPYRIGHT 2000-2002 Coalesys, Inc. -->\r\n<div id=\"cswmPopupFile\" class=\"cswmPopupBox\"><table background=\"./images/background.gif\" border=0 cellpadding=0 cellspacing=0><tr><td><div style=\"border-style:solid; border-width: 1px; border-color:#666666 #666666 #666666 #666666\"><div style=\"border-style:solid; border-width: 1px; border-color:#F9F8F7 #F9F8F7 #F9F8F7 #F9F8F7\"><table border=0 cellpadding=0 cellspacing=0><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_0\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'File_0\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItemFile_0\" class=\"cswmItem\"><span style=\"padding-right:12\"><img align=\"absmiddle\" id=\"cswmIcoFile_0\" src=\"./images/blank.gif\" alt=\"\" border=0 height=16 width=16></span>New</td><td bgcolor=\"\" id=\"cswmExpandFile_0\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr><tr><td onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_1\'); cswmHP(1); cswmSP(0, \'File_1\')\" onmouseout=\"cswmT(350); cswmDiI(\'File_1\')\" onClick=\"location.href=\'default.htm\'\" nowrap bgcolor=\"\" id=\"cswmItemFile_1\" class=\"cswmItem\"><span style=\"padding-right:12\"><img align=\"absmiddle\" id=\"cswmIcoFile_1\" src=\"./images/blank.gif\" alt=\"\" border=0 height=16 width=16></span>Open</td><td bgcolor=\"\" id=\"cswmExpandFile_1\" class=\"cswmExpand\" style=\"padding-right:5\" onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_1\'); cswmHP(1); cswmSP(0, \'File_1\')\" onmouseout=\"cswmT(350); cswmDiI(\'File_1\')\" onClick=\"location.href=\'default.htm\'\"><img id=\"cswmExpandIcFile_1\" src=\"./images/Popup.gif\" width=10 height=10 alt=\"\" border=0></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_2\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'File_2\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItemFile_2\" class=\"cswmItem\"><span style=\"padding-right:12\"><img align=\"absmiddle\" id=\"cswmIcoFile_2\" src=\"./images/blank.gif\" alt=\"\" border=0 height=16 width=16></span>Close</td><td bgcolor=\"\" id=\"cswmExpandFile_2\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr><tr onmouseover=\"cswmT(\'off\')\" onmouseout=\"cswmT(350)\"><td align=\"Left\" bgcolor=\"#a5a6a6\" colspan=2 height=1><img border=0 alt=\"\" src=\"./images/divider.gif\"></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_4\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'File_4\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItemFile_4\" class=\"cswmItem\"><span style=\"padding-right:12\"><img align=\"absmiddle\" id=\"cswmIcoFile_4\" src=\"./images/icon1.gif\" alt=\"\" border=0 height=16 width=16></span>Add New Item...</td><td bgcolor=\"\" id=\"cswmExpandFile_4\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_5\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'File_5\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItemFile_5\" class=\"cswmItem\"><span style=\"padding-right:12\"><img align=\"absmiddle\" id=\"cswmIcoFile_5\" src=\"./images/icon2.gif\" alt=\"\" border=0 height=16 width=16></span>Add Existing Item...</td><td bgcolor=\"\" id=\"cswmExpandFile_5\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_6\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'File_6\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItemFile_6\" class=\"cswmItem\"><span style=\"padding-right:12\"><img align=\"absmiddle\" id=\"cswmIcoFile_6\" src=\"./images/blank.gif\" alt=\"\" border=0 height=16 width=16></span>Add Project</td><td bgcolor=\"\" id=\"cswmExpandFile_6\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr><tr onmouseover=\"cswmT(\'off\')\" onmouseout=\"cswmT(350)\"><td align=\"Left\" bgcolor=\"#a5a6a6\" colspan=2 height=1><img border=0 alt=\"\" src=\"./images/divider.gif\"></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHP(1)\" onmouseout=\"cswmT(350)\"><td nowrap bgcolor=\"\" id=\"cswmItemFile_8\" class=\"cswmItem\"><span style=\"padding-right:12\"><img align=\"absmiddle\" id=\"cswmIcoFile_8\" src=\"./images/icon7.gif\" alt=\"\" border=0 height=16 width=16></span><span class=\"cswmDisabled\">Page Setup...</span></td><td bgcolor=\"\" id=\"cswmExpandFile_8\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'File_9\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'File_9\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItemFile_9\" class=\"cswmItem\"><span style=\"padding-right:12\"><img align=\"absmiddle\" id=\"cswmIcoFile_9\" src=\"./images/blank.gif\" alt=\"\" border=0 height=16 width=16></span>Print...</td><td bgcolor=\"\" id=\"cswmExpandFile_9\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr></table></div></div></td></tr></table></div><div id=\"cswmPopup0\" class=\"cswmPopupBox\"><table background=\"./images/background.gif\" border=0 cellpadding=0 cellspacing=0><tr><td><div style=\"border-style:solid; border-width: 1px; border-color:#666666 #666666 #666666 #666666\"><div style=\"border-style:solid; border-width: 1px; border-color:#F9F8F7 #F9F8F7 #F9F8F7 #F9F8F7\"><table border=0 cellpadding=0 cellspacing=0><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'0_0\'); cswmHP(2)\" onmouseout=\"cswmT(350); cswmDiI(\'0_0\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItem0_0\" class=\"cswmItem\"><span style=\"padding-right:12\"><img align=\"absmiddle\" id=\"cswmIco0_0\" src=\"./images/icon3.gif\" alt=\"\" border=0 height=16 width=16></span>Project...</td><td bgcolor=\"\" id=\"cswmExpand0_0\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'0_1\'); cswmHP(2)\" onmouseout=\"cswmT(350); cswmDiI(\'0_1\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItem0_1\" class=\"cswmItem\"><span style=\"padding-right:12\"><img align=\"absmiddle\" id=\"cswmIco0_1\" src=\"./images/icon4.gif\" alt=\"\" border=0 height=16 width=16></span>Project From Web...</td><td bgcolor=\"\" id=\"cswmExpand0_1\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'0_2\'); cswmHP(2)\" onmouseout=\"cswmT(350); cswmDiI(\'0_2\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItem0_2\" class=\"cswmItem\"><span style=\"padding-right:12\"><img align=\"absmiddle\" id=\"cswmIco0_2\" src=\"./images/icon5.gif\" alt=\"\" border=0 height=16 width=16></span>File</td><td bgcolor=\"\" id=\"cswmExpand0_2\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'0_3\'); cswmHP(2)\" onmouseout=\"cswmT(350); cswmDiI(\'0_3\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItem0_3\" class=\"cswmItem\"><span style=\"padding-right:12\"><img align=\"absmiddle\" id=\"cswmIco0_3\" src=\"./images/icon6.gif\" alt=\"\" border=0 height=16 width=16></span>File From Web...</td><td bgcolor=\"\" id=\"cswmExpand0_3\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr></table></div></div></td></tr></table></div><div id=\"cswmPopupEdit\" class=\"cswmPopupBox\"><table background=\"./images/background.gif\" border=0 cellpadding=0 cellspacing=0><tr><td><div style=\"border-style:solid; border-width: 1px; border-color:#666666 #666666 #666666 #666666\"><div style=\"border-style:solid; border-width: 1px; border-color:#F9F8F7 #F9F8F7 #F9F8F7 #F9F8F7\"><table border=0 cellpadding=0 cellspacing=0><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'Edit_0\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'Edit_0\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItemEdit_0\" class=\"cswmItem\"><span style=\"padding-right:12\"><img align=\"absmiddle\" id=\"cswmIcoEdit_0\" src=\"./images/icon12.gif\" alt=\"\" border=0 height=16 width=16></span>Cut</td><td bgcolor=\"\" id=\"cswmExpandEdit_0\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'Edit_1\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'Edit_1\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItemEdit_1\" class=\"cswmItem\"><span style=\"padding-right:12\"><img align=\"absmiddle\" id=\"cswmIcoEdit_1\" src=\"./images/icon9.gif\" alt=\"\" border=0 height=16 width=16></span>Copy</td><td bgcolor=\"\" id=\"cswmExpandEdit_1\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHP(1)\" onmouseout=\"cswmT(350)\"><td nowrap bgcolor=\"\" id=\"cswmItemEdit_2\" class=\"cswmItem\"><span style=\"padding-right:12\"><img align=\"absmiddle\" id=\"cswmIcoEdit_2\" src=\"./images/icon11.gif\" alt=\"\" border=0 height=16 width=16></span><span class=\"cswmDisabled\">Paste</span></td><td bgcolor=\"\" id=\"cswmExpandEdit_2\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr><tr onmouseover=\"cswmT(\'off\'); cswmHiI(\'Edit_3\'); cswmHP(1)\" onmouseout=\"cswmT(350); cswmDiI(\'Edit_3\')\" onClick=\"location.href=\'default.htm\'\"><td nowrap bgcolor=\"\" id=\"cswmItemEdit_3\" class=\"cswmItem\"><span style=\"padding-right:12\"><img align=\"absmiddle\" id=\"cswmIcoEdit_3\" src=\"./images/icon10.gif\" alt=\"\" border=0 height=16 width=16></span>Delete</td><td bgcolor=\"\" id=\"cswmExpandEdit_3\" class=\"cswmExpand\"><img src=\"./images/clearpixel.gif\" width=1 height=1 alt=\"\" border=0></td></tr></table></div></div></td></tr></table></div>\r\n<!-- End WebMenu HTML -->\r\n\r\n");
  11.