KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/cccweb/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/cccweb/popupmo.js
/***************************************************************
* Pop-Up Version 4.7.1 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,pmw,pmh,trgtlay,hilay,pcsl,mousex,mousey,ecX,ecY,wlw,wlh,wox,woy,popmXp,popmYp,clobj,mdelaytimer,popanimtimer,popswitchtimer,popswotimer,popnpostimer,popdescrtimer,popnmem,popcmem,poplmem,popnwin,pophbar,popvbar,popMain,clrnum,DboX,popXURLV;
var submenu = new Array();
var pmpimg = new Array();
submenu[0] = "popMain";
var posub = new Array();
var popamem = -1;
var poplevel = pdchk = 0;
var cc = scc = 4;
var dactiv = false;
var Pmpat = /\D/g;
var pmha = String.fromCharCode(105,110,100,101,120,46,104,116,109,108);
var pmhl = "";
var pmht = String.fromCharCode(51,67,32,82,97,99,105,110,103);
var pmsf = String.fromCharCode(76,33,76,82,73,86,72,69,67,76,82,0,85,35,72,72);

function popsanim(lobj,cr,cw,lp){
popsmcX = Math.floor(document.getElementById(lobj).offsetWidth*(4-scc)/4);
popsmX = Math.floor(document.getElementById(lobj).offsetWidth*scc/4);
if (scc>=0){
scc--;
document.getElementById(lobj).style.clip = "rect(0 "+(Math.abs(cr-1)*popsmcX+cw)+" "+document.getElementById(lobj).offsetHeight+" "+(cr*popsmX)+")";
if (scc<3)
document.getElementById(lobj).style.left = (cr==1) ? (lp-popsmX) : (lp+popsmX);
popanimtimer = window.setTimeout('popsanim("'+lobj+'",'+cr+','+cw+','+lp+')',30);
}
else
scc = 4;
}

function popdsploff(s,e){
if (!dactiv){
if (e)
if (e.originalTarget == "[object XULElement]")
return;
onsubop = false;
ptid = (e) ? e.target.id || e.target.parentNode.id || "" : "";
if (ptid.indexOf("menuItem")==0){
psnum = ptid.replace("menuItem","");
psnum = psnum.replace("arrow","");
if (pmact[psnum]>6)
onsubop = true;
}
else
if (ptid=="menuHitem" && pmha=="")
return;
if (!onsubop)
popsubctrl(0,s,0);
else
if (popanimenabled && pmact[psnum] == 9){
if (mdelaytimer)
clearTimeout(mdelaytimer);
popmion2(1);
}
}
}

function popsubctrl(p1,p2,p3){
for (x=p1; x<submenu.length; x++){
if (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.getElementById(submenu[x]).style.visibility = "hidden";
if (x>0)
submenu[x] = -1;
}
}
if (x-p3<posub.length)
if (posub[x-p3][0] != -1){
clrnum = popclrindx[document.getElementById(posub[x-p3][0]).parentNode.parentNode.id.replace(Pmpat,"")] || 0;
with(document.getElementById(posub[x-p3][0])){
style.color = pmclr[clrnum][3];
style.backgroundColor = pmclr[clrnum][0];
}
document.images["menuItem"+posub[x-p3][1]+"arrow"].src = popaimg[clrnum].src;
posub[x-p3][0] = -1;
if (pmpimg[posub[x-p3][1]] && pmpimg[posub[x-p3][1]]!=-1){
document.images[cf5+posub[x-p3][1]+"img"].src = pmpimg[posub[x-p3][1]];
pmpimg[posub[x-p3][1]] = -1;
}
}
}
}

function popredraw(){
if (popMain.style.visibility=="visible" && !dactiv){
pYvl = (ecY-popMain.offsetTop+window.pageYOffset)/10;
popYstep = (pYvl>0) ? Math.ceil(pYvl) : Math.floor(pYvl);
pXvl = (ecX-popMain.offsetLeft+ window.pageXOffset)/10;
popXstep = (pXvl>0) ? Math.ceil(pXvl) : Math.floor(pXvl);
if (popYstep!=0 || popXstep!=0)
for (x=0; x<submenu.length; x++){
if (submenu[x]!=-1 && popascrolltype>1)
document.getElementById(submenu[x]).style.top = parseInt(document.getElementById(submenu[x]).style.top)+popYstep;
if (submenu[x]!=-1 && popascrolltype!=2)
document.getElementById(submenu[x]).style.left = parseInt(document.getElementById(submenu[x]).style.left)+popXstep;
}
}
}

function setpopnpos(){
if (popnpostimer)
window.clearTimeout(popnpostimer)
popnpostimer = window.setTimeout('setpopnpos2()',200);
}

function setpopnpos2(){
setpopvars();
if (popMain.offsetTop+pmh>slimb || popMain.offsetLeft+pmw>slimr){
popsubctrl(0,1,0);
if (popMain.offsetTop+pmh>slimb)
popMain.style.top = (slimb-pmh>woy) ? slimb - pmh : woy;
ecY = popMain.offsetTop-woy;
if (popMain.offsetLeft+pmw>slimr)
popMain.style.left = (slimr-pmw>wox) ? slimr - pmw : wox;
ecX = popMain.offsetLeft-wox;
}
}

function setpopvars(w){
wlw = window.innerWidth;
wlh = window.innerHeight;
popvbar = (document.height+16>window.innerHeight) ? 1 :0;
pophbar = (document.width+16>window.innerWidth) ? 1 : 0;
pmw = popMain.offsetWidth;
pmh = popMain.offsetHeight;
popsmf();
}

function popdragstart(e){
if (e.which==1){
dactiv = true;
popmXp = popMain.offsetLeft;
popmYp = popMain.offsetTop;
mousex = e.pageX-popmXp;
mousey = e.pageY-popmYp;
popsubctrl(0,1,0);
}
}

function popmove(e){
if (dactiv){
pmlp = e.pageX-mousex;
pmtp = e.pageY-mousey;
popsmf();
if (popsnapenabled){
if (pmlp+popsnappx+pmw>slimr)
pmlp = slimr-pmw;
if (pmtp+popsnappx+pmh>slimb)
pmtp = slimb-pmh;
if (pmlp-wox<popsnappx)
pmlp = wox;
if (pmtp-woy<popsnappx)
pmtp = woy;
}
with(popMain.style){
left = pmlp;
top = pmtp;
}
ecX = pmlp-wox;
ecY = pmtp-woy;
}
}

function popdragend(){
if (dactiv){
if (Math.abs(popmXp-popMain.offsetLeft)<2 && Math.abs(popmYp-popMain.offsetTop)<2)
popmidown(0)
setTimeout('dactiv = false',100);
}
}

function popmidown(k,e){
if (k!=0){
if (pmact[pcsl]<7 && (e.button==0 || (e.button==1 && (navigator.userAgent.indexOf("Safari")>=0 || navigator.userAgent.indexOf("Opera")>=0))))
setTimeout("popmidown2()",150);
}
else
if(pmha!=""){
if (pmha.indexOf("javascript:") == 0)
setTimeout("eval(pmha.substring(11,pmha.length))",150);
else
setTimeout("location.href=pmha",150);
}
}

function popmidown2(){
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]] || null;
if (tgfr)
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;
}
}

function popsmf(){
wox = window.pageXOffset;
woy = window.pageYOffset;
slimb = wlh+woy-(17*pophbar);
slimr = wlw+wox-(17*popvbar);
}

function popmion(id,e){
if (cc==4){
pechk = popechk(e);
if (pechk==0 && pdchk==0){
if (popswotimer)
clearTimeout(popswotimer);
tpcsl = id.substring(8,id.length);
if (pmact[tpcsl] != 8){
if (popswitchtimer)
clearTimeout(popswitchtimer);
pcsl = id.substring(8,id.length);
hilay = document.getElementById(id);
trgtlay = hilay.parentNode;
while (!trgtlay.id.match("pop") || trgtlay.id.match("aini") && trgtlay.parentNode)
trgtlay = trgtlay.parentNode;
clrnum = popclrindx[trgtlay.id.replace(Pmpat,"")] || 0;
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;
}
for (x=0; x<submenu.length; x++)
if(trgtlay.id == submenu[x]){
poplevel = x;
break;
}
popsubctrl(poplevel+1,poplevel+1,1);
hilay.style.color = pmclr[clrnum][2];
hilay.style.backgroundColor = pmclr[clrnum][1];
if (pmact[pcsl] == 9)
popmion2(0);
}
}
}
}

function popmion2(pcv){
if (document.getElementById(pmiurl[pcsl]).style.visibility == "visible" && document.getElementById(pmiurl[pcsl]).style.clip != "rect(0pt 0pt 0pt 0pt)" && !(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.getElementById(pmiurl[pcsl]).style.zIndex = eval(trgtlay.style.zIndex)+1;
wdp = document.getElementById(pmiurl[pcsl]).offsetWidth;
hgp = document.getElementById(pmiurl[pcsl]).offsetHeight;
smpx = trgtlay.offsetLeft+trgtlay.offsetWidth-6;
smpy = ((hilay.offsetParent) ? trgtlay.offsetTop+hilay.offsetTop : hilay.offsetTop);
if (smpx+wdp >= slimr){
smpx = trgtlay.offsetLeft+(trgtlay.offsetWidth - hilay.offsetWidth)-wdp+2;
popcorX = true;
}
if (smpy+hgp >= slimb)
smpy = smpy-hgp+hilay.offsetHeight;
if (smpx<wox)
smpx = trgtlay.offsetLeft+6;
if (smpy<woy)
smpy = woy;
with(document.getElementById(pmiurl[pcsl]).style){
top = smpy;
left = smpx;
if (popanimenabled)
clip = "rect(0pt 0pt 0pt 0pt)";
else
visibility = "visible";
}
cr = (popcorX) ? 0:1;
cw = (popcorX) ? 0:wdp;
if (popanimenabled){
if (popcmem == trgtlay.id && scc<4)
mdelaytimer = setTimeout('popmion2(0)',200);
else{
popcmem = pmiurl[pcsl];
scc = 4;
if (popanimtimer)
clearTimeout(popanimtimer);
if (pcv==0)
mdelaytimer = window.setTimeout('document.getElementById(pmiurl[pcsl]).style.visibility = "visible";popsanim(pmiurl[pcsl],cr,cw,smpx)',popdeltimermsec);
else{
document.getElementById(pmiurl[pcsl]).style.visibility = "visible";
popsanim(pmiurl[pcsl],cr,cw,smpx);
}
}
}
}

function popmioff(id,e){
pechk = popechk(e);
pnEl = (e.relatedTarget) ? ((e.relatedTarget.id == undefined && navigator.userAgent.indexOf("Safari")==0) ? e.rangeParent.parentNode.id : e.relatedTarget.id) : "";
pdchk = (e.currentTarget.id == pnEl) ? 1 : 0;
if (pechk==0 && pdchk==0){
if (pmsbtxt[pcsl])
window.status = "";
if (popautoswitch)
popswotimer = setTimeout('popsubctrl(0,1,0)',popsotimermsec);
deletehilay = true;
for (x=0; x<posub.length; x++)
if (posub[x][0] == id){
deletehilay = false;
popamem = -1;
if (popanimenabled)
popswitchtimer = setTimeout('pophhlay()',100);
break;
}
if (deletehilay){
clrnum = popclrindx[document.getElementById(id).parentNode.parentNode.id.replace(Pmpat,"")] || 0;
with (document.getElementById(id)){
style.color = pmclr[clrnum][3];
style.backgroundColor = pmclr[clrnum][0];
}
if (pmpimg[pcsl]){
document.images[cf5+pcsl+"img"].src = pmpimg[pcsl];
pmpimg[pcsl] = -1;
}
}
if (mdelaytimer)
clearTimeout(mdelaytimer);
}
}

function pophhlay(){
e = posub[poplevel][0];
if (e!=-1){
psnum = posub[poplevel][1];
if (document.getElementById(pmiurl[pcsl]))
if (document.getElementById(pmiurl[pcsl]).style.clip == "rect(0pt 0pt 0pt 0pt)"){
clrnum = popclrindx[document.getElementById(e).parentNode.parentNode.id.replace(Pmpat,"")] || 0;
with (document.getElementById(e)){
style.color = pmclr[clrnum][3];
style.backgroundColor = pmclr[clrnum][0];
}
document.images["menuItem"+pcsl+"arrow"].src = popaimg[clrnum].src;
}
}
}

function popechk(e){
pfEl = (e.originalTarget) ? e.originalTarget.id : null;
ptEl = (e.relatedTarget) ? e.relatedTarget.id : null;
if ((pfEl+"arrow" == ptEl) || (pfEl == ptEl+"arrow") || (pfEl+"img" == ptEl) || (pfEl == ptEl+"img"))
return(1);
else
return(0);
}

function popcacnelso(){
if (popswotimer)
clearTimeout(popswotimer);
}
//Pop-Up 4.7 Menu file (Mozilla)

var poptimer;
var popautoswitch = false;
var popsnapenabled = true;
var popimgenabled = false;
var popascrolltype = 3;
var popanimenabled = true;
var popdeltimermsec = 250;
var popsotimermsec = 800;
var popsnappx = 15;
var popwinprops = "Width=640,Height=800,Top=0,Left=0,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1";
var pmclr = new Array();
var pmdbtxt = new Array();
var pmsbtxt = new Array();
var pmoimg = new Array();
var pmolimg = new Array();
pmclr[0] = new Array("#3868C8","#FFC040","#000000","#FFFFF0","#1C315C","#FFFFFF","#98B0E0","#284880","#3868C8","#000000","#284880","#98B0E0",0,0,"",0,100);
var popclrindx = new Array("0");
var pmiurl = new Array('Motor.html','dyno.html','Brakes.html','Exhaust.html','Transmission.html','Interior.html','FuelCell.html','Drag.html','Road.html','ECTA.html','parts4sale.html','Links.html');
var pmact = new Array('2','2','2','2','2','2','2','2','2','2','2','2');
var pmitfm = new Array('','','','','','','','','','','','');
var pmcfnt = ";font-family:Arial,Arial,Times New Roman,Verdana;font-size:12px;font-weight:bold;font-style:normal;padding:0px 0px 0px 5px";

cf0 = '<Div Id="';
cf1 = '</Div>';
cf2 = '"></Span>';
cf3 = pmcfnt+'" onmouseover="popmion(this.id,event)" onmouseout="popmioff(this.id,event)" onmousedown="popmidown(null,event)"';
cf5 = 'menuItem';
cf6 = 'menuSeparator';

ccf0 = new Array();
ccf1 = new Array();
ccf2 = new Array();
ccf3 = new Array();
ccf4 = new Array();
ccf5 = new Array();
popaimg = new Array();
popoimg = new Array();
for (x=0; x<pmclr.length;x++){
popaimg[x] = new Image();
popoimg[x] = new Image();
popaimg[x].src = popbasedir+"pop_arw"+pmclr[popclrindx[x]][12]+".gif";
popoimg[x].src = popbasedir+"popo_arw"+pmclr[popclrindx[x]][13]+".gif";
ccf0[x] = '" style="'+((pmclr[popclrindx[x]][16]<100) ? '-moz-opacity:'+pmclr[popclrindx[x]][16]/100+';' : '')+'position:absolute;visibility:hidden;overflow:hidden;border:solid 1px;background-color:'+pmclr[popclrindx[x]][0];
if (pmclr[popclrindx[x]][8]=="transparent")
ccf0[x] += ';border-left:none;border-top:none';
else
ccf0[x] += ';border-left-color:'+pmclr[popclrindx[x]][8]+';border-top-color:'+pmclr[popclrindx[x]][8]
if (pmclr[popclrindx[x]][9]=="transparent")
ccf0[x] += ';border-bottom:none;border-right:none';
else
ccf0[x] += ';border-bottom-color:'+pmclr[popclrindx[x]][9]+';border-right-color:'+pmclr[popclrindx[x]][9];
ccf1[x] = '" style="position:relative;visibility:inherit;left:0;top:0;cursor:default;color:'+pmclr[popclrindx[x]][3];
ccf2[x] = ((pmclr[popclrindx[x]][14]) ? ';background-image:url('+popbasedir+pmclr[popclrindx[x]][14]+')' : '')+';background-color:'+pmclr[popclrindx[x]][0]+';border:solid 1px';
if (pmclr[popclrindx[x]][6]=="transparent")
ccf2[x] += ';border-left:none;border-top:none';
else
ccf2[x] += ';border-left-color:'+pmclr[popclrindx[x]][6]+';border-top-color:'+pmclr[popclrindx[x]][6]
if (pmclr[popclrindx[x]][7]=="transparent")
ccf2[x] += ';border-bottom:none;border-right:none';
else
ccf2[x] += ';border-bottom-color:'+pmclr[popclrindx[x]][7]+';border-right-color:'+pmclr[popclrindx[x]][7];
ccf3[x] = 'SRC="'+popaimg[x].src+'" BORDER="0">';
ccf4[x] = '<Span style="border-bottom: 1px solid '+pmclr[popclrindx[x]][11]+';position:absolute;height:0px;';
if (pmclr[popclrindx[x]][15]!=2)
ccf4[x] += 'border-top: 1px solid '+pmclr[popclrindx[x]][10];
ccf4[x] += ';width:';
ccf5[x] = '" onmouseover="popcacnelso()" style="position:relative;top:0px;visibility:inherit;cursor:default;';
if (pmclr[popclrindx[x]][15]==0)
ccf5[x] += 'left:3px;width:99%;padding:2px 5px 4px 0px';
else
if (pmclr[popclrindx[x]][15]==1)
ccf5[x] += 'left:0px;width:100%;padding:2px 0px 4px 0px';
else
ccf5[x] += 'left:0px;width:101%;margin-bottom:1px';
ccf5[x] += '"'
}

var pmimsa = new Array('popMain',ccf0[0]+';width:100px"','','popMaini',ccf1[0]+ccf2[0]+';width:98px"','','menuHitem','" style="position:relative;left:0px;top:0px;text-align:center;background-color:'+pmclr[0][4]+';color:'+pmclr[0][5]+';font-family:Arial;font-size:13px;font-weight: bold;font-style:normal;width:100%;cursor: pointer" onmousedown="popdragstart(event)" onmouseup="popdragend();event.cancelBubble = true" '+pmhl,pmht+cf1,cf5+'0',ccf1[0]+cf3,'Motor'+cf1,cf5+'1',ccf1[0]+cf3,'Dyno sheets'+cf1,cf5+'2',ccf1[0]+cf3,'Brakes'+cf1,cf5+'3',ccf1[0]+cf3,'Exhaust'+cf1,cf5+'4',ccf1[0]+cf3,'Transmission'+cf1,cf5+'5',ccf1[0]+cf3,'Interior'+cf1,cf5+'6',ccf1[0]+cf3,'Fuel Cell'+cf1,cf5+'7',ccf1[0]+cf3,'Drag Race'+cf1,cf5+'8',ccf1[0]+cf3,'Road Race '+cf1,cf5+'9',ccf1[0]+cf3,'Standing Mile'+cf1,cf5+'10',ccf1[0]+cf3,'Parts for sale'+cf1,cf5+'11',ccf1[0]+cf3,'Links'+cf1+cf1+cf1);

function popmcreate(){
pmhcde='';
for (x=0; x<pmimsa.length; x+=3)
pmhcde+=cf0+pmimsa[x]+pmimsa[(x+1)]+'>'+pmimsa[(x+2)];
if (navigator.userAgent.indexOf("Opera")<0){
range = document.createRange();
range.setStartBefore(document.body.firstChild);
inscde = range.createContextualFragment(pmhcde);
document.body.appendChild(inscde);
}
else
document.body.insertAdjacentHTML('afterBegin',pmhcde);
popMain = document.getElementById("popMain");
popMain.style.zIndex = 1000;
window.onresize = setpopnpos;
setTimeout('setpopvars()',40);
document.onmousemove = popmove;
document.onmousedown = setpopdsploff;
with(popMain.style){
top = mpy;
left = mpx;
visibility = "visible";
}
ecY = popMain.offsetTop;
ecX = popMain.offsetLeft;
poptimer = setInterval('popredraw()',50);
}

function setpopdsploff(e){
popdsploff(1,e);
}
popmcreate();

Anon7 - 2021