// scripts by Smeat, with bits stolen from everyone on earth


var w = 0;
var h = 0;
var t = 0;
var l = 0;


// function "popper" adds resizability
function popper(url,name,w,h,t,l) 
	{
	window.open(url,name,'width=' + w + ',height=' + h + ',scrollbars=yes,menubar=no,toolbar=no,status=no,resizable=yes,top=20,left=20');
	}
	

// function "p00p" is s00pr l33t
var p0p=null;
function p00p(url,name,w,h)
	{
	hh = (h - 7);
	ww = (w - 5);

	p0p=window.open("",name,'width=' + w + ',height=' + h + ',scrollbars=no,menubar=no,toolbar=no,status=no,top=20,left=20');

	p0p.document.open();
	p0p.document.write('\n'
		+ '<html>\n'
		+ '<head>\n'
		+ '<title>Phenotype\'s Zoids Site</title>'
		+ '\n\n'
		+ '<style type="text/css">\n'
		+ 'a       { text-decoration: none; color:#000000 }\n'
		+ '.name   { font: 10px Verdana, Geneva, Arial; font-weight:bold; padding: 4px 6px 4px 6px; border: 2px solid #000000; background: #FFFFFF; }\n'
		+ 'h1      { font-family: Geneva, Arial; color: #CCCCBB; font-size: 30px; font-weight: bold }\n'
		+ 'p       { font-family: Geneva, Arial; color: #CCCCBB; font-size: 12px; font-weight: bold }\n'
		+ 'b       { font-weight: bold }\n'
		+ '.lyr0   { position:absolute; width: 100%; height: 30%; top: 33%; left: 0px; z-index:0; text-align: center }\n'
		+ '.lyr1   { position:absolute; width: ' + w + '; height: ' + h + '; top: 0px; left: 0px; z-index:1 }\n'
		+ '.lyr2   { position:absolute; width: ' + w + '; height: ' + h + '; top: 0px; left: 0px; z-index:2; filter: alpha(opacity=75); opacity: 0.75; -moz-opacity: 0.75 }\n'
		+ '</style>'
		+ '\n\n'
		+ '</head>'
		+ '\n\n'
		+ '<body onClick="self.close()" bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"');
	p0p.document.write('>\n\n'
		+ '<div class="lyr0">\n'
		+ '	<h1>Loading...</h1>\n'
		+ '	<p>Click image to close window</p>\n'
		+ '</div>'
		+ '\n\n'
		+ '<div class="lyr1"><img src="' + url + '" width="' + w + '" height="' + h + '" border="0"></div>\n\n');
	p0p.document.write('<div class="lyr2" title="Click image to close window">\n'
		+ '<table width="' + ww + '" height="' + hh + '" border="0" cellpadding="5" cellspacing="0">\n'
		+ '<tr>\n'
		+ '<td align="right" valign="bottom"><span class="name">' + name + '</span></td>\n'
		+ '</td></tr></table>\n'
		+ '</div>\n\n\n\n');
	p0p.document.write('</body>\n</html>');
	p0p.document.close();
	}

