// Navy 271 JavaScript library

// attributes of popup window are global so we can settimeout() them.
var popWin,dLinkWin;
var popTitle;
var popData;
var popBG="#333333";
var popCSS="../navy_content.css";

var isNav=false, isIE=false, isOther=false;
var Vers;
var coll = "";
var styleObj = "";


function underconstruction(which)
{
var str;
str =  "Under Construction!\n" + which + " is not available for this demonstration.";
alert(str); //"Under Construction");
}


function makeNewWindow(what,wid,hyt)
{
//alert("going to try to open a window now");
//popWin = window.open(what,"popwin","height=" + height + ",width=" + width + ",left=" +  xpos + ",top=" + ypos + "scrollbars,menubar=\"yes\",titlebar=\"yes\",toolbar=\"yes\"");
// don't write to a window that isn't there yet

if ((screen.width == 800) && (screen.height==600))
  {
  popWin = window.open(what,'popwin','width=' + screen.availWidth + ',height=' + screen.availHeight + ',resizable,status,scrollbars,menubar,location,titlebar,toolbar');
  //popWin.moveTo(0,0); 
  popWin.moveTo(0,-4);   
  popWin.resizeTo(800,screen.availHeight+4);
  }
else
  {
  popWin = window.open(what,'popwin','width=' + wid + ',height=' + hyt + ',resizable,status,scrollbars,menubar,location,titlebar,toolbar');
  }
popWin.focus();

return;
}


function dlink(which)
{

//alert("dlinkWin:" + dLinkWin);

//dLinkWin = window.open(which,'dlink','width=796,height=433,resizable,status,scrollbars,menubar,location,titlebar,toolbar');

if ((screen.width == 800) && (screen.height==600))
  {
  dLinkWin = window.open(which,'dlink','width=' + screen.availWidth + ',height=' + screen.availHeight + ',resizable,status,scrollbars,menubar,location,titlebar,toolbar');
  //popWin.moveTo(0,0); 
  dLinkWin.moveTo(0,-4);   
  dLinkWin.resizeTo(800,screen.availHeight+4);
  }
else
  {
  dLinkWin = window.open(which,'dlink','width=' + 796 + ',height=' + 433 + ',resizable,status,scrollbars,menubar,location,titlebar,toolbar');
  dLinkWin.moveTo(0,0); 
  }
dLinkWin.focus();

return;
}

function hider(howmany)
{
	for (i = 1; i <= (howmany); ++i)
		{
		//alert(i)
		MM_showHideLayers('RolloverText' + i ,'','hide');
		}	
return;
}