var Wide    = screen.width;
var High    = screen.height;
var version=/ \d+.\d+/
var nscape  = 0;
var Bversion = navigator.appVersion.match(version) 
var MSIE7 = " 7.0";
var adx  = 0;
var ady  = 0;
var ost  = 0;
var osl  = 0;
var adl  = 0;
var adt  = 0;
var dif  = 0;
var xpd  = 0;
var agt  = navigator.userAgent.toLowerCase();
var is_winxp  = ((agt.indexOf("windows nt 5.1") != -1) || (agt.indexOf("windows xp")   != -1));
function Init() {

if (is_winxp) {xpd = 24; 
   if (document.all) {
     if (Bversion == MSIE7) {xpd = 24}
                     }
              }

        isNS4 = (document.layers)                          ? true : false;
        isNS6 = (!document.all && document.getElementById) ? true : false;
        isIE4 = (document.all && !document.getElementById) ? true : false;
        isIE5 = (document.all && document.getElementById)  ? true : false;
        isIE6 = (document.all && document.getElementById)  ? true : false;
ost  = (High-600);
osl  = (Wide-800);
adt  = (High-600)/2;
adl  = (Wide-800)/2;

ost  = ost-xpd;
adt  = adt-xpd;
adx  = (adt/2);
dif  = (adx/2);

if (isNS4){nscape = 1} if (isNS6){nscape = 1} 
if (isNS4 || isIE4) {
   if (isNS4){doc_height = self.innerHeight;           doc_width = self.innerWidth;}
   if (isIE4){doc_height = document.body.clientHeight; doc_width = document.body.clientWidth;}
   if (isIE4){elm = "document.all";    sty = ".style";}
   else      {elm = "document.layers"; sty = "";}
      }
else  {elm = "document.getElementById"; sty = ".style"; doc_height = document.body.clientHeight; doc_width = document.body.clientWidth;}
}
///////////////////////////////////////////////////////////

var scr = 0;
var fsc = 0;
var tlb = 1;
var name = "";
  function newindow(url,scroll,full,tool,close,status) {scr = 0; fsc = 0; tlb = 1; 
     if (scroll) {scr = 1;}
     if (full)   {fsc = 1;} //// no longer used ////
     if (tool)   {tlb = 0;}
     window.open(url,name,'fullscreen=' + fsc + 'height=High,width=Wide,toolbar=' + tlb + ',location=0,directories=0,left=0,top=0,status=1,titlebar=0,menubar=0,scrollbars=' + scr + ',resizable=1');
if (close) {window.close()}
     return false;
}
  function theirwindow(url){
     window.open(url,name,'height=High,width=Wide,toolbar=1,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1');
     return false;}