|
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 : |
/***************************************************************
* 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,trgtlay,hilay,hilaych,pcsl,mousex,mousey,ecX,ecY,wox,woy,popmXp,popmYp,wlw,wlh,slimb,slimr,popswotimer,poprestimer,popdescrtimer,popnmem,poplmem,popnwin,popMain,popdst,clrnum,ldbxn,pHLi,popXURLV;
var submenu = new Array();
var pmpimg = new Array();
submenu[0] = "popMain";
var posub = new Array();
var popamem = -1;
var poplevel = 0;
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 popdsploff(s,e){
onsubop = false;
ptid = (e) ? ((e.target.parentNode) ? e.target.parentNode.id : "") : "";
if (ptid.indexOf(cf4)==0){
psnum = ptid.replace(cf4,"");
psnum = psnum.replace("arrow","");
if (pmact[psnum]>6)
onsubop = true;
}
if (!onsubop)
popsubctrl(0,s,0);
if (s==0)
popdst = 0;
}
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;
document.getElementById(posub[x-p3][0]).style.color = pmclr[clrnum][3];
document.getElementById(posub[x-p3][0]+"d").style.visibility = "visible";
document.getElementById(posub[x-p3][0]+"h").style.visibility = "hidden";
document.images[cf4+posub[x-p3][1]+"arrow"].src = popaimg[clrnum].src;
posub[x-p3][0] = -1;
}
}
}
function checkresize(){
if (wlw != window.innerWidth || wlh != window.innerHeight)
setpopnpos();
poprestimer = setTimeout('checkresize()',500);
}
function setpopnpos(){
popdsploff(1);
popsmf();
if (popdst==1){
popMain.style.left = mpx;
ecX = mpx;
popMain.style.top = mpy;
ecY = mpy;
popMain.style.visibility = "visible";
}
}
function popredraw(){
if (popMain.style.visibility.toLowerCase() == "visible" && !dactiv){
pYvl = (ecY-popMain.style.pixelTop+window.pageYOffset)/10;
popYstep = (pYvl>0) ? Math.ceil(pYvl) : Math.floor(pYvl);
pXvl = (ecX-popMain.style.pixelLeft+ 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.pixelTop = document.getElementById(submenu[x]).style.pixelTop+popYstep;
if (submenu[x]!=-1 && popascrolltype!=2)
document.getElementById(submenu[x]).style.pixelLeft = document.getElementById(submenu[x]).style.pixelLeft+popXstep;
if (x==0){
mpx = document.getElementById(submenu[x]).style.pixelLeft;
mpy = document.getElementById(submenu[x]).style.pixelTop;
wox = window.pageXOffset;
woy = window.pageYOffset;
}
}
}
poptimer = window.setTimeout('popredraw()',50);
}
function popdragstart(e){
dactiv = true;
popmXp = popMain.style.pixelLeft;
popmYp = popMain.style.pixelTop;
mousex = e.clientX-popmXp;
mousey = e.clientY-popmYp;
popsubctrl(0,1,0);
}
function popmove(e){
if (dactiv){
pmw = popMain.style.pixelWidth;
pmh = popMain.style.pixelHeight;
pmlp = e.clientX-mousex;
pmtp = e.clientY-mousey;
if (popsnapenabled){
popsmf();
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){
pixelLeft = pmlp;
pixelTop = pmtp;
}
mpx = pmlp;
mpy = pmtp;
ecX = pmlp-wox;
ecY = pmtp-woy;
}
}
function popdragend(){
if (dactiv){
dactiv = false;
if (Math.abs(popmXp-popMain.style.pixelLeft)<2 && Math.abs(popmYp-popMain.style.pixelTop)<2)
popmidown(0)
}
}
function popmidown(e){
if (e != 0){
if (pmact[pcsl]<7)
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]] || "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;
}
}
function popmion(id){
if (window.print && pHLi && pHLi!="")
popmioff(pHLi,1)
pcsl = id.substring(8,id.length);
clearTimeout(popswotimer);
hilay = document.getElementById(id);
clrnum = popclrindx[hilay.parentNode.id.replace(Pmpat,"")] || 0;
trgtlay = hilay.parentNode;
while (!trgtlay.id.match("pop") || trgtlay.id.match("aini") && trgtlay.parentNode)
trgtlay = trgtlay.parentNode;
hilaych = document.getElementById(id+"h");
hilaych.style.pixelWidth = hilay.parentNode.style.pixelWidth-hilay.style.pixelLeft-((pmclr[clrnum][15]!=2) ? 2 : 0);
if (pmact[pcsl] != 8){
pHLi = hilay.id;
hilay.style.color = pmclr[clrnum][2];
hilaych.style.visibility = "visible";
document.getElementById(id+"d").style.visibility = "hidden";
if (pmsbtxt[pcsl])
window.status = unescape(pmsbtxt[pcsl]);
if (pmoimg[pcsl])
document.getElementById(cf4+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);
if (pmact[pcsl] == 9)
popmion2(0);
}
else
if (window.print){
if (pHLi!="")
setTimeout('popmion(hilay.id)',74)
pHLi = "";
}
}
function popsmf(){
wox = window.pageXOffset;
woy = window.pageYOffset;
wlw = window.innerWidth;
wlh = window.innerHeight;
slimb = wlh+woy;
slimr = wlw+wox;
}
function popmion2(pcv){
if (document.getElementById(pmiurl[pcsl]).style.visibility.toLowerCase() == "visible" && !(popnmem != pcsl && poplmem == poplevel))
return;
document.images[cf4+pcsl+"arrow"].src = popoimg[clrnum].src;
popamem = pcsl;
popnmem = pcsl;
poplmem = poplevel;
popsmf();
submenu[(poplevel+1)] = pmiurl[pcsl];
posub[poplevel] = new Array(hilay.id,pcsl,poplevel);
document.getElementById(pmiurl[pcsl]).style.zIndex = trgtlay.style.zIndex+1;
wdp = document.getElementById(pmiurl[pcsl]).style.pixelWidth;
hgp = document.getElementById(pmiurl[pcsl]).style.pixelHeight;
smpx = trgtlay.style.pixelLeft+trgtlay.style.pixelWidth-6;
smpy = trgtlay.style.pixelTop+hilay.offsetTop;
if (smpx+wdp >= slimr)
smpx = trgtlay.style.pixelLeft+hilay.offsetLeft-wdp+6;
if (smpy+hgp >= slimb)
smpy = smpy-hgp+hilaych.style.pixelHeight;
if (smpx<wox)
smpx = trgtlay.style.pixelLeft+6;
if (smpy<woy)
smpy = woy;
with(document.getElementById(pmiurl[pcsl]).style){
top = smpy;
left = smpx;
visibility = "visible";
}
}
function popmioff(id,p){
if (pmsbtxt[pcsl])
window.status = "";
if (popautoswitch){
clearTimeout(popswotimer);
if (p!=1)
popswotimer = window.setTimeout('popdsploff(1)',popsotimermsec);
}
deletehilay = true;
for (x=0; x<posub.length; x++)
if (posub[x][0] == id){
deletehilay = false;
popamem = -1;
break;
}
if (deletehilay){
clrnum = popclrindx[document.getElementById(id+"d").parentNode.parentNode.id.replace(Pmpat,"")] || 0;
hilay.style.color = pmclr[clrnum][3];
document.getElementById(id+"d").style.visibility = "visible";
document.getElementById(id+"h").style.visibility = "hidden";
}
}
function popcacnelso(){
clearTimeout(popswotimer);
}
//Pop-Up 4.7 Menu file (Opera)
var poptimer;
var popautoswitch = false;
var popsnapenabled = true;
var popimgenabled = false;
var popascrolltype = 3;
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 pmmwds = new Array('91');
var pmcfnt = ";font-family:Arial,Arial,Times New Roman,Verdana;font-size:12px;font-weight:bold;font-style:normal";
cf0 = '<Div Id="';
cf1 = '</Div>';
cf2 = pmcfnt+'" onmouseover="popmion(this.id)" onmouseout="popmioff(this.id)" onmousedown="popmidown()"';
cf3 = '" style="position:absolute;left:0px;top:0px;padding:'+((window.print) ? 0 : 1)+'px 0px '+((window.print) ? 1 : 0)+'px 5px;';
cf4 = 'menuItem';
cf5 = 'menuSeparator';
cfB = "";
cfI = 0;
ccf0 = new Array();
ccf1 = new Array();
ccf2 = new Array();
ccf3 = new Array();
ccf4 = 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="position: absolute;visibility: hidden;border: solid 1px';
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;left:0;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] = '" onmouseover="popcacnelso()" style="position:absolute;border-bottom: 1px solid '+pmclr[popclrindx[x]][11];
if (pmclr[popclrindx[x]][15]!=2)
ccf3[x]+= ';height:0;border-top: 1px solid '+pmclr[popclrindx[x]][10]+';left:';
if (pmclr[popclrindx[x]][15]==0)
ccf3[x] += '3px';
else
if (pmclr[popclrindx[x]][15]==1)
ccf3[x] += '0px';
else
ccf3[x] += ';height:1;left:0px';
ccf4[x] = 'SRC="'+popaimg[x].src+'" BORDER="0">';
}
var pmimsa = new Array('popMain',ccf0[0]+';width:98px;height:198px"','','','popMaini',ccf1[0]+ccf2[0]+';width:96px;height:196px"','','','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;'+((window.print) ? 'padding-bottom: 3px' : 'padding-top: 3px')+';height:14px" onmousedown="popdragstart(event);event.cancelBubble = true"'+pmhl,'',pmht+cf1,cf4+'0',ccf1[0]+';top:0'+cf2,'Motor',cf1,cf4+'1',ccf1[0]+';top:15'+cf2,'Dyno sheets',cf1,cf4+'2',ccf1[0]+';top:30'+cf2,'Brakes',cf1,cf4+'3',ccf1[0]+';top:45'+cf2,'Exhaust',cf1,cf4+'4',ccf1[0]+';top:60'+cf2,'Transmission',cf1,cf4+'5',ccf1[0]+';top:75'+cf2,'Interior',cf1,cf4+'6',ccf1[0]+';top:90'+cf2,'Fuel Cell',cf1,cf4+'7',ccf1[0]+';top:105'+cf2,'Drag Race',cf1,cf4+'8',ccf1[0]+';top:120'+cf2,'Road Race ',cf1,cf4+'9',ccf1[0]+';top:135'+cf2,'Standing Mile',cf1,cf4+'10',ccf1[0]+';top:150'+cf2,'Parts for sale',cf1,cf4+'11',ccf1[0]+';top:165'+cf2,'Links',cf1+cf1+cf1);
pmhcde='<Div Id="odummy" style="position:absolute;left:0;top:0;width:'+window.innerWidth+';height:'+window.innerHeight+'"> </Div>'
pmlvl = 0;
tmppat = new RegExp('Id="'+cf4+'\\dimg');
for (x=0; x<pmimsa.length; x+=4){
if (pmimsa[x].match("submaini"))
pmlvl++
if (pmimsa[x].match(cf4))
pmhcde+=cf0+pmimsa[x]+pmimsa[(x+1)]+'>'+cf0+pmimsa[x]+'d'+cf3+';width:'+pmmwds[pmlvl]+'">'+((pmimsa[(x+2)].match(cfB) && pmimsa[(x+2)].match('Id="'+cf4)) ? pmimsa[(x+2)].replace(tmppat,"") : pmimsa[(x+2)])+cf1+cf0+pmimsa[x]+'h'+cf3+';visibility:hidden;background-color:'+pmclr[popclrindx[pmlvl]][1]+'">'+pmimsa[(x+2)]+cf1+pmimsa[(x+3)];
else
pmhcde+=cf0+pmimsa[x]+pmimsa[(x+1)]+'>'+pmimsa[(x+3)];
}
document.write(pmhcde);
document.getElementById("odummy").style.visibility = "hidden";
function popmcreate(){
popMain = document.getElementById("popMain");
popMain.style.zIndex = 1000;
popsmf();
poprestimer = setTimeout('checkresize()',500);
document.onmousemove = popmove;
document.onmouseup = popdragend;
document.onmousedown = setpopdsploff;
with(popMain.style){
top = mpy;
left = mpx;
visibility = "visible";
}
popdst = 1;
ecY = popMain.style.pixelTop;
ecX = popMain.style.pixelLeft;
poptimer = setTimeout('popredraw()',50);
}
function setpopdsploff(e){
popdsploff(1,e);
}
popmcreate();