// -----------------------------------------------------------

var isNS4 = (document.layers) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera")!=-1);
var isMSIE  = (navigator.userAgent.indexOf("MSIE")!=-1);

var x,y,winW,winH,Y,Z = 0,P = 0;

function printwin(){

 Y = window.open(document.URL+"&opt=print","prn","width=612,height=636,screenX=0,left=20,screenY=10,top=16,toolbar=no,location=no,status=no,resizable=no,scrollbars=no");
 Y.focus();
}

function popclose(){
    if (Z != 0)
     Z.close();
 Z = 0;
}


function openpopup(N){

 D = '/pub/popup.php?pn=' + N;
 W = screen.width / 2;
 F = 60;
 //  if (Z != 0) popclose();
 Z = window.open(D,"obj","width=8,height=8,screenX=0,left="+W+
 ",screenY=0,top="+F+",toolbar=no,location=no," +
 "status=no,resizable=no,scrollbars=no");
   if (Z != 0)
     Z.focus();
 setTimeout("popclose()",150000);
}



 if (isMSIE){
  document.write('<script src="../lib/msie.js" type="text/javascript"></script>');
  // what a dirty, dirty hack. ;-) so..ok for the internet exploder.
 }
 else {
   function hover(a,b,c,d){ return; } 
 }

