/*************************************************************** * Pop-Up Version 4.7 Pro * © 1998-2004 * Anoxy Software * All Rights Reserved * You are not allowed to modify anything in this Script **************************************************************** * To get your own copy visit: http://www.anoxy.com ****************************************************************/ var slimb,slimr,trgtlay,hilay,pcsl,mousex,mousey,wlw,wlh,wox,woy,ecX,ecY,pdb,spdb,popmXp,popmYp,pwdp,phgp,clobj,mdelaytimer,popanimtimer,popswitchtimer,popswotimer,popnpostimer,popmacrestimer,popdescrtimer,popnmem,popcmem,poplmem,popnwin,pmaclm,pmactm,clrnum,ieMacver,popXURLV; var submenu = new Array(); var pmpimg = new Array(); submenu[0] = "popMain"; var posub = new Array(); var popamem = popmacrsz = -1; var poplevel = 0; var cc = scc = 4; var dactiv = false; var ismac = (navigator.appVersion.indexOf("Macintosh")==-1) ? false : true; var Pmpat = /\D/g; if (ismac){ ieMacver = navigator.userAgent.split(";"); ieMacver = eval(ieMacver[1].replace("MSIE ","")); } var pmha = ""; var pmhl = ""; var pmht = String.fromCharCode(38,110,98,115,112,59,38,110,98,115,112,59); var pmsf = String.fromCharCode(78,36,79,79,83,85,80,71,77,0,79,52,72,72); function popsanim(lobj,cr,cw,lp){ clobj = lobj; popsmcX = Math.floor(document.all[lobj].offsetWidth*(4-scc)/4); popsmX = Math.floor(document.all[lobj].offsetWidth*scc/4); if (scc>=0){ scc--; document.all[lobj].style.clip = "rect(0 "+(Math.abs(cr-1)*popsmcX+cw)+" "+document.all[lobj].offsetHeight+" "+(cr*popsmX)+")"; if (scc<3) document.all[lobj].style.left = (cr==1) ? (lp-popsmX) : (lp+popsmX); popanimtimer = setTimeout('popsanim(this.clobj,'+cr+','+cw+','+lp+')',25); } else scc = 4; } function popdsploff(s){ onsubop = false; if (event) if (event.srcElement) if (event.srcElement.id.indexOf("menuItem")==0){ psnum = event.srcElement.id.replace("menuItem",""); psnum = psnum.replace("arrow",""); if (pmact[psnum]>6) onsubop = true; } if (!onsubop){ if (hilay && popfilterenabled) if (hilay.filters.length>0) hilay.filters[0].Stop(); popsubctrl(0,s,0); } else if (popanimenabled && pmact[psnum] == 9){ clearTimeout(mdelaytimer); popmion2(1); } } function popsubctrl(p1,p2,p3){ for (x=p1; x=p2) if (submenu[x] != -1){ if (pmact[pcsl] == 9 && pmiurl[pcsl] == submenu[x] && submenu[(x-1)] != -1 && p3==1 && posub[(x-1)][1]==pcsl) break; else{ document.all[submenu[x]].style.visibility = "hidden"; if (x>0) submenu[x] = -1; } } if (x-p30) ? Math.ceil(pYvl) : Math.floor(pYvl); pXvl = (ecX-popMain.style.pixelLeft+ spdb.scrollLeft)/10; popXstep = (pXvl>0) ? Math.ceil(pXvl) : Math.floor(pXvl); if (popYstep!=0 || popXstep!=0){ clearTimeout(popmacrestimer); for (x=0; x1) document.all[submenu[x]].style.pixelTop += popYstep; if (submenu[x]!=-1 && popascrolltype!=2) document.all[submenu[x]].style.pixelLeft += popXstep; } if (ismac && ieMacver<5.1) popmacrestimer = setTimeout('window.resizeBy(0,popmacrsz);popmacrsz = -popmacrsz',800); } } } function setpopnpos(){ if (!ismac || ieMacver>=5.1){ window.clearTimeout(popnpostimer) popnpostimer = window.setTimeout('setpopnpos2()',200); } else popsmf(); } function setpopnpos2(){ popsmf(); if (popMain.offsetTop+phgp>slimb || popMain.offsetLeft+pwdp>slimr){ popdsploff(1); if (popMain.offsetTop+phgp>slimb) popMain.style.top = (slimb-phgp>woy) ? slimb - phgp : woy; ecY = popMain.style.pixelTop-woy; if (popMain.offsetLeft+pwdp>slimr) popMain.style.left = (slimr-pwdp>wox) ? slimr - pwdp : wox; ecX = popMain.style.pixelLeft-wox; } } function popmidown(e,k){ if (e != 0){ if (event.button==1){ pmclkitm = k; if (pmact[pcsl]<7) setTimeout("popmidown2(pmclkitm)",150); } } else if(pmha!=""){ if (pmha.indexOf("javascript:") == 0) setTimeout("eval(pmha.substring(11,pmha.length))",150); else setTimeout("location.href=pmha",150); if (popfixedenabled==0) popdsploff(0); } } function popmidown2(e){ popXURLV = popXURLV || ""; switch (eval(pmact[pcsl])){ case 1: location.href = pmiurl[pcsl]+popXURLV; break; case 2: if (!popnwin || popnwin.closed) popnwin = window.open(pmiurl[pcsl]+popXURLV,null,popwinprops); else popnwin.location.href = pmiurl[pcsl]+popXURLV; break; case 3: tgfr = top.frames[pmitfm[pcsl]] || parent.frames[pmitfm[pcsl]] || document.frames[pmitfm[pcsl]] || "0"; if (tgfr!=0) tgfr.location.href = pmiurl[pcsl]+popXURLV; break; case 4: location.hash = pmiurl[pcsl]; break; case 5: setTimeout('eval(pmiurl[pcsl])',100) break; case 6: top.location.href = pmiurl[pcsl]+popXURLV; break; } popmioff(e,0) } function popmion(e){ if (cc==4){ pechk = popechk(); if (pechk==0){ pcsl = e.substring(8,e.length); clearTimeout(popswotimer); if (pmact[pcsl] != 8){ clearTimeout(popswitchtimer); trgtlay = document.all[e]; while (!trgtlay.id.match("pop") || trgtlay.id.match("aini") && trgtlay.parentElement) trgtlay = trgtlay.parentElement; clrnum = popclrindx[trgtlay.id.replace(Pmpat,"")] || 0; for (x=0; x0) hilay.filters[0].Stop(); hilay = document.all[e]; if (popfilterenabled){ hilay.style.filter = filtertype1; if (hilay.filters.length==0) hilay.style.filter = filtertype2; if (hilay.filters.length>0) hilay.filters[0].Apply(); } hilay.style.color = pmclr[clrnum][2]; if (popfilterenabled && hilay.filters.length>0) hilay.filters[0].Play(filtertime); hilay.style.backgroundColor = pmclr[clrnum][1]; if (pmsbtxt[pcsl]) window.status = unescape(pmsbtxt[pcsl]); if (pmoimg[pcsl]){ if (!pmpimg[pcsl] || pmpimg[pcsl]==-1) pmpimg[pcsl] = document.images[cf5+pcsl+"img"].src; document.images[cf5+pcsl+"img"].src = pmoimg[pcsl].src; } popsubctrl(poplevel+1,poplevel+1,1); if (pmact[pcsl] == 9) popmion2(0); } } } } function popsmf(){ wox = spdb.scrollLeft; woy = spdb.scrollTop; wlw = pdb.clientWidth; wlh = pdb.clientHeight; slimb = wlh+woy; slimr = wlw+wox; } function popmion2(pcv){ if (document.all[pmiurl[pcsl]].style.visibility == "visible" && document.all[pmiurl[pcsl]].style.clip != "rect(0px 0px 0px 0px)" && !(popnmem != pcsl && poplmem == poplevel)) return; document.images["menuItem"+pcsl+"arrow"].src = popoimg[clrnum].src; popamem = pcsl; popnmem = pcsl; poplmem = poplevel; popcorX = false; popsmf(); submenu[(poplevel+1)] = pmiurl[pcsl]; posub[poplevel] = new Array(hilay.id,pcsl,poplevel); document.all[pmiurl[pcsl]].style.zIndex = trgtlay.style.zIndex+1; wdp = document.all[pmiurl[pcsl]].offsetWidth; hgp = document.all[pmiurl[pcsl]].offsetHeight; smpx = trgtlay.offsetLeft+trgtlay.offsetWidth+pmaclm-6; smpy = trgtlay.offsetTop+hilay.offsetTop+pmactm; if (smpx+wdp >= slimr){ smpx = trgtlay.offsetLeft+(trgtlay.offsetWidth - hilay.offsetWidth)-wdp+2+pmaclm; popcorX = true; } if (smpy+hgp >= slimb) smpy = smpy-hgp+hilay.offsetHeight; if (smpx