var main = null;
function popupSite(mylink, windowname)
  {
  if (! window.focus)return true;
  var href;
  if (typeof(mylink) == 'string')
     href=mylink;
  else
     href=mylink.href;
  var winl = (screen.width - 500) / 2;
  var wint = (screen.height - 400) / 2;
  //winprops = "top=0,left=0,resizable=yes"+ ",width=" + screen.width + ",height=" + screen.height;
  winprops = 'height=450,width=600,top='+wint+',left='+winl+',scrollbars=yes,resizable'
  window.open(href, windowname, winprops);
  //return false;
  }

function popupGallery(mylink, windowname)
  {
  if (! window.focus)return true;
  var href;
  if (typeof(mylink) == 'string')
     href=mylink;
  else
     href=mylink.href;
  var winl = (screen.width - 800) / 2;
  var wint = (screen.height - 650) / 2;
    
  winprops = 'height=650,width=800,top='+wint+',left='+winl+',scrollbars=yes,resizable'
  window.open(href, windowname, winprops);
  return false;
  }

function popupSite2 (mylink)
{
        recordURL = escape (mylink);
        mylink = window.open(mylink,100*(new Date).getMinutes()+(new Date).getSeconds(),'menubar,toolbar,location,status,scrollbars,resizable');
}		  

  //-->

function popupHelp(mylink, windowname)
  {
  if (! window.focus)return true;
  var href;
  if (typeof(mylink) == 'string')
     href=mylink;
  else
     href=mylink.href;
  var winl = (screen.width - 350) ;
  var wint = (screen.height - 550) / 2;
  
  winprops = 'height=550,width=350,top='+wint+',left='+winl+',scrollbars=yes,resizable'
  window.open(href, windowname, winprops);
  return false;
  }
  //-->

  function popup(mylink, windowname)
  {
  if (! window.focus)return true;
  var href;
  if (typeof(mylink) == 'string')
     href=mylink;
  else
     href=mylink.href;
var winl = (screen.width - 500) / 2;
var wint = (screen.height - 400) / 2;
winprops = 'height=400,width=500,top='+wint+',left='+winl+',scrollbars=yes'
window.open(href, windowname, winprops);

  return false;
  }
  //-->

function popup2(mylink, windowname)
  {
  if (! window.focus)return true;
  var href;
  if (typeof(mylink) == 'string')
     href=mylink;
  else
     href=mylink.href;
  var winl = (screen.width - 600) / 2;
  var wint = (screen.height - 600) / 2;
  var winh = screen.height - 200;
  winprops = 'height='+winh+',width=650,top='+wint+',left='+winl+',scrollbars=yes,resizable'
  window.open(href, windowname, winprops);
  return false;
  }
//-->
function launch(newURL, newName, newFeatures, orgName) {
            var remote = open(newURL, newName, newFeatures);
            if (remote.opener == null)
              remote.opener = window;
            remote.opener.name = orgName;
            return remote;
          }


function popupMainMenu(mylink, windowname)
  {
  if (! window.focus)return true;
  var href;
  if (typeof(mylink) == 'string')
     href=mylink;
  else
     href=mylink.href;

var winl = screen.width - 10 ;
var winh = screen.height - 10 ;

winprops = 'height='+winh+',width='+winl+',top=1,left=1,scrollbars=yes,resizable=yes'
main = window.open(href, windowname, winprops);
return false;
  }
  //-->



function closemetimer() {
closetime = 10;
setTimeout("window.close();", closetime*1000);
}

function closeit() {

window.close();
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function fullScreenMM() {
main = window.open('mainmenu.htm', 'mainmenu', 'fullscreen=yes, scrollbars=auto');
}

function launchSysReq()
{
var winl = (screen.width - 500) / 2;
var wint = (screen.height - 400) / 2;
winprops = 'height=410,width=500,top='+wint+',left='+winl+',scrollbars=yes';


//my2Remote = launch("home-files/systemreq.htm","systemreq",winprops,"myWindow");
}


function launchUpcoming() {
var winl = (screen.width - 300) ;
var wint = (screen.height - 300) / 2;
winprops = 'height=400,width=249,top='+wint+',left='+winl+',scrollbars=yes'

            myRemote = launch("eo/wn.htm",
                              "_blank",
                              winprops,
                              "myWindow");
          }
		  
function showRemote() {
self.name = "main"; // names current window as "main"

var windowprops = "toolbar=0,location=0,directories=0,status=0, " +
"menubar=0,scrollbars=0,resizable=0,width=150,height=200";

OpenWindow = window.open("un2.html", "remote", windowprops); // opens remote control
}
// End -->


