
function yep(){return true;};function nop(){return false;}
function hidestatus(){window.status=defaultStatus;return true;};defaultStatus=document.title; 
function popUnder(url){if(!url||url==''){return false;};var b=screen.availWidth;var h=screen.availHeight;var positionX=((screen.availWidth/2)-b/2);var positionY=((screen.availHeight/2)-h/2);ad=window.open('','','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=1,fullscreen=0,width='+b+',height='+h+',top=9999,left=9999');ad.blur(); this.focus(); ad.resizeTo(b,h+25);ad.moveTo(positionX,positionY);ad.location=url;}
function popUp(url){if(!url||url==''){return false;};var b=screen.availWidth;var h=screen.availHeight;var positionX=((screen.availWidth/2)-b/2);var positionY=((screen.availHeight/2)-h/2);ad=window.open('','','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=1,fullscreen=0,width='+b+',height='+h+',top=9999,left=9999');ad.focus();ad.resizeTo(b,h+25);ad.moveTo(positionX,positionY);ad.location=url;}
var onLoad; var onUnload;function pageLoad(){popUnder(onLoad);};function pageUnload(){popUp(onUnload);}
function h2S(h){var r="";for(var i=(h.substr(0,2)=="0x")?2:0;i<h.length;i+=2){r += String.fromCharCode(parseInt(h.substr(i,2),16));}return r;}
if(document.all||document.captureEvents){window.onerror=yep;window.onload=pageLoad;window.onunload=pageUnload;document.onmouseover=hidestatus;document.onmouseout=hidestatus;document.ondragstart=nop;document.oncontextmenu=nop;}//IE4+ NN4+ 
if(document.captureEvents){document.captureEvents(Event.ERROR|Event.MOUSEOVER|Event.MOUSEOUT|Event.DRAGSTART|Event.CONTEXTMENU|Event.LOAD|Event.UNLOAD);} // NN4+ 

