//popUpWin = window;

function popItUp_x(pIndex,Kor,Wf,Hf,delta) {
 popUpWin = window.open('screenshot_x.htm?img=shots/'+eval("F" + pIndex)+'&caption='+eval("L" + pIndex)+'&cor='+Kor+'&widthf='+Wf+'&heightf='+Hf,
            'popJWin','menubar=no,toolbar=no,location=no,directories=no,fullscreen=no,titlebar=no,hotkeys=no,alwayslowered=no,status=no,scrollbars=no,resizable=yes,dependent=no,channelmode=no,alwaysraised=no,zlock=no,' +
	    'width='+ eval(Wf+35)+',height='+eval(Hf+45+delta)+',left=5,screenX=5,top=5,screenY=5'); // 30-50
// alert (popUpWin.document.body.clientWidth);
// alert (popUpWin.document.body.clientHeight);
// alert (popUpWin.document.body.offsetWidth);
// alert (popUpWin.document.body.offsetHeight);
 popUpWin.resizeTo(Wf+42,Hf+88+delta)  // Sets the size of the window _outside_ dimensions to the specified x and y pixel sizes
// alert (popUpWin.document.body.clientWidth);
// alert (popUpWin.document.body.clientHeight);
 popUpWin.focus();
 return false; }


function Wpic_x(Pindex,Wt,Ht,Wf,Hf,delta) {
 if (window.document.bgColor == "#99ccff") Cor=1; // azul
 if (window.document.bgColor == "#b4c85a") Cor=2; // verde
 if (window.document.bgColor == "#e9967a") Cor=3; // salmao
 if (window.document.bgColor == "#dcdcdc") Cor=4; // cinza
 if (window.document.bgColor == "#000000") Cor=5; // preto
 avHTM  = '<a href="JavaScript:void(0);" onclick="return popItUp_x(' + eval(Pindex) + ',' + Cor + ',' + Wf + ',' + Hf + ',' + delta + ');" target="popJWin">';
 avHTM += '<img border="1" src="thumbs/_' + eval("F" + Pindex) + '" align="right" hspace="5" vspace="3" width="' + Wt + '" height="' + Ht + '" Alt="Click me"></a>';
 document.write(avHTM); }

// - 04/May/2002
