var scFr=(self.PopupMenu&&self.PopupMenu.list.length)?self:(parent.PopupMenu?parent:top);
function popEvt(str,each){
    if(!scFr||!scFr.PopupMenu)return;
    var PML=scFr.PopupMenu.list,mN;
    for(var obj in PML){
        var evStr='var objName="'+obj+'",PML=self.scFr.PopupMenu.list,pm=PML[objName];';
        if(each)for(mN in PML[obj].menu){var mD=PML[obj].menu[mN][0];
        if((!mD.par&&scFr==self)||(mD.par&&mD.par.substring(mD.par.lastIndexOf('.')+1)==self.name)){var doCmd=evStr+'var mN="'+mN+'";'+str;eval(doCmd)}}else{eval(evStr+str)}}};var scrFn,popOL=window.onload,popUL=window.onunload,popOR=window.onresize,popOS=window.onscroll,nsWinW=window.innerWidth,nsWinH=window.innerHeight,nsPX=window.pageXOffset,nsPY=window.pageYOffset;document.popOC=document.onclick;if(scFr.PopupMenu){if(!self.page)var isNS4=scFr.isNS4,page={};if(scFr!=self)for(var f in scFr.page)page[f]=scFr.page[f];page.win=self;popEvt('self[objName]=pm',0);if(!isNS4)popEvt('pm.update(true,mN)',1);window.onload=function(){if(popOL)popOL();if(isNS4){popEvt('pm.update(false,mN)',1);setInterval(scrFn,50)}if(!scFr.isOp)window.onunload=new Function('if(popUL)popUL();popEvt("for(var i=0;i<pm.menu[mN].length;i++)pm.menu[mN][i].lyr=null",1)')};if(popOS||(''+popOS!='undefined'))window.onscroll=function(){if(popOS)popOS();popEvt('pm.position(mN)',1)};else{scrFn='if(nsPX!=pageXOffset||nsPY!=pageYOffset){nsPX=pageXOffset;nsPY=pageYOffset;popEvt("pm.position(mN)",1)}';if(!isNS4)setInterval(scrFn,50)}function resizeBugCheck(){if(nsWinW!=innerWidth||nsWinH!=innerHeight)location.reload()};if(scFr.isOp&&!document.documentElement&&!self.opFix)self.opFix=setInterval('resizeBugCheck()',500);window.onresize=function(){if(popOR)popOR();if(isNS4)resizeBugCheck();popEvt('pm.position(mN)',1)};if(isNS4)document.captureEvents(Event.CLICK);document.onclick=function(evt){popEvt('if(isNS4&&pm.overI)pm.click(pm.overM,pm.overI);if(!pm.overI&&pm.hideDocClick)pm.over("root",0)',0);return document.popOC?document.popOC(evt):(isNS4?document.routeEvent(evt):self.uNdEfInEd)}}