// subPage functions -- kf 4/6/02 -- rev 

  function preloadHeaderImageOvers() {
    if (document.images) {
      About_over = newImage("../AISimages/HeaderTV_over.gif");
      top_over = newImage("../AISimages/top-1_over.gif");
      //alert('end of SubHdr-Overs preload');
    }
  }

  function preloadHeaderMaps() {
    if (document.images) {
      HM_About = newImage("../AISimages/HeaderMapAbout.gif");
      HM_Products = newImage("../AISimages/HeaderMapProducts.gif");
      HM_Players = newImage("../AISimages/HeaderMapPlayers.gif");
      HM_Techniques = newImage("../AISimages/HeaderMapTechniques.gif");
      HM_Comments = newImage("../AISimages/HeaderMapComments.gif");
      HM_Contacts = newImage("../AISimages/HeaderMapContacts.gif");
      //alert('end of HeaderMap preload');
    }
  }

	function subPageHeaderMap(nestDepth)
	{
	if (arguments.length != 1) { alert("Called with insuficient arguments ("+arguments.length+")") }
	
	rootDirLoc = "";
	parentDir = "../";
	
	// add the proper Nest Depth
	for (i = 0; i < nestDepth; i++) {rootDirLoc += parentDir; }  // alert ("["+rootDirLoc+"]");

	// load & display Legal map
	var newContent = "<MAP NAME=\"HeaderMap\" ><AREA SHAPE=\"poly\" ALT=\" Technology and Technique... \" COORDS=\"29,44, 118,44, 118,51, 143,51, 143,65, 29,66\" HREF=\"" + rootDirLoc + "Technique/index.html\">"
		newContent += "<AREA SHAPE=\"rect\" ALT=\" People and Projecys... \" COORDS=\"124,67,202,94\" HREF=\"" + rootDirLoc + "Players/index.html\">"
		newContent += "<AREA SHAPE=\"rect\" ALT=\" Who we are... \" COORDS=\"6,67,111,94\" HREF=\"" + rootDirLoc + "About/index.html\">"
		newContent += "<AREA SHAPE=\"rect\" ALT=\" Tell us what you think... \" COORDS=\"144,46,232,66\" HREF=\"" + rootDirLoc + "Contact/comments.html\">"
		newContent += "<AREA SHAPE=\"rect\" ALT=\" Where we are... \" COORDS=\"122,19,211,45\" HREF=\"" + rootDirLoc + "Contact/index.html\">"
		newContent += "<AREA SHAPE=\"rect\" ALT=\" What we do... \" COORDS=\"10,16,98,42\" HREF=\"" + rootDirLoc + "Products/index.html\"></MAP>"

	document.write(newContent)
	document.close()
	}

function goToTop(nestDepth)
	{
	if (arguments.length != 1) { alert("insuficient args ("+arguments.length+")") }
	
	imageDirName = "AISimages/";
	imageDirLoc = "";
	parentDir = "../";
	
	for (i = 0; i < nestDepth; i++) {imageDirLoc += parentDir; }
	rootDirLoc = imageDirLoc;
	imageDirLoc += imageDirName; // alert ("["+imageDirLoc+"]");

	var newContent = "<A HREF=\"#top\" ONMOUSEOVER=\"changeImages('toTop', '" + imageDirLoc + "top-1_over.gif'); return true;\""
		newContent +=	"ONMOUSEOUT=\"changeImages('toTop', '" + imageDirLoc + "top-1.gif'); return true;\">"
		newContent +=	"<img name=\"toTop\" src=\"" + imageDirLoc + "top-1.gif\" width=\"40\" height=\"33\" alt=\"\" border=\"0\">"
	
	document.write(newContent)
	document.close()
	}
