var IntervalID1; var InLoad1; function doMenuFunction(menuFunction){ InLoad1=false; tmp = "loadMenu('"+ menuFunction +"')"; IntervalID1 = window.setInterval(tmp,20); } function loadMenu(menuFunction) { if (InLoad1) return; InLoad1 = true; try { // Check the frames necessary for execution if (top.menu.document.readyState!="complete"){ InLoad1 = false; return; } // All frames are loaded, so clear interval & execute code window.clearInterval( IntervalID1 ); // Do the stuff eval(menuFunction); //doMenuFunction(menuFunction); } catch(e) {}; InLoad1 = false; } var isActive = true; function addSgm(sgmName, sgmURL) { newSgm = new sgm(sgmName, sgmURL, null, null, null); sgms[sgms.length] = newSgm return newSgm } function getSgmRef(s) { for (i=0; i