// Various bits that have been removed from every page and consolidated into one file

function makeRemote(){
remote = window.open("","remotewin","width=615,height=430,scrollbars=no");
remote.location.href = "/pops/sitemap.htm";
if (remote.opener == null) remote.opener = window;
}


function makeRemoteSitemap(){
remote = window.open("","remotewin","width=500,height=600,scrollbars=yes,resizable=yes");
remote.location.href = "/pops/sitemap.htm";
if (remote.opener == null) remote.opener = window;
}

function openWindow(windowname) {
    var newWindow = window.open(windowname,"pop","scrollbars=no,status=no,menubar=no,toolbar=no,resizeable=no,scrollbars=no,HEIGHT=533,WIDTH=400");
}

function popup(windowname) {
    var newWindow = window.open(windowname,"pop","scrollbars=no,status=no,menubar=no,toolbar=no,resizeable=no,scrollbars=no,HEIGHT=349,WIDTH=573");
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

// images for the mouse-over state
homeon = new Image();
homeon.src="/images/dhtml/banner-home.gif";

// now the images for the mouse-off state, in this case though the mouse-over/off images remain the same
homeoff = new Image();
homeoff.src="/images/dhtml/banner-home.gif";

// images to replace the holder
homeholder = new Image();
homeholder.src = "/images/rotor-brown.gif"

// now for the rest 
blank = new Image();
blank.src = "/images/dhtml/banner-blank.gif";
holder = new Image();
holder.src = "/images/dhtml/banner-blank.gif"

function on(source) {

document[source].src = eval(source + "on.src");

document["holder"].src = eval(source + "holder.src");
}

function off(source) {
document[source].src = eval(source + "off.src");

document["holder"].src = blank.src
}

 function window1()
  {
  myWindow = window.open("/pops/popmapsco.htm","window1","resizable=yes,toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=695,height=395");
  }

  function window2()
  {
  myWindow = window.open("/pops/popmapayr.htm","window1","resizable=no,toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=695,height=512");
  }
