/* -------------------------------------------------- */
/*                                         Begin code */
/* -------------------------------------------------- */

IE = 1
NS = 2
var Browser = 0

/* -------------------------------------------------- */
/*  CheckBrowser()                                    */
/*                                                    */
/* -------------------------------------------------- */
function CheckBrowser()
{
  if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ))
    Browser = NS;
  else if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) > 4 ))
    Browser = IE;
  else
    Browser = 0;
}


/* -------------------------------------------------- */
/*  FullScreen(Url, Title)                            */
/*                                                    */
/* -------------------------------------------------- */
function FullScreen(Url, Title)
{
//    window.open(Url, Title, "fullscreen=yes,scrollbars=yes");
  CheckBrowser();
  if (Browser == IE)
    window.open(Url, Title, "theatremode=yes,scrollbars=yes");
  else
    window.open(Url, Title, "left=0,top=0,width=" + top.screen.width + ",height=" + top.screen.height + ",scrollbars=yes");
}


/* -------------------------------------------------- */
/*  ResizeWindow(Width, height)                       */
/*                                                    */
/* -------------------------------------------------- */
function ResizeWindow(Width, height)
{
  window.parent.moveTo(0,0)

  CheckBrowser();
  if (Browser == NS)
  {
    Width = Width - 15;
    height = height - 160;
  }
  window.parent.resizeTo(Width ,height)
}


/* -------------------------------------------------- */
/*                                           End code */
/* -------------------------------------------------- */

