general1 = new Image();
general1.src= "store_files/osh_int_lnk_01a.gif";
general2 = new Image();
general2.src= "store_files/osh_int_lnk_01b.gif";

collections1 = new Image();
collections1.src= "store_files/osh_int_lnk_02a.gif";
collections2 = new Image();
collections2.src= "store_files/osh_int_lnk_02b.gif";

exhibits1 = new Image();
exhibits1.src= "store_files/osh_int_lnk_03a.gif";
exhibits2 = new Image();
exhibits2.src= "store_files/osh_int_lnk_03b.gif";

programs1 = new Image();
programs1.src= "store_files/osh_int_lnk_04a.gif";
programs2 = new Image();
programs2.src= "store_files/osh_int_lnk_04b.gif";

home1 = new Image();
home1.src= "store_files/osh_int_lnk_05a.gif";
home2 = new Image();
home2.src= "store_files/osh_int_lnk_05b.gif";
		
function hiLite(name, source) {
  var bn = navigator.appName;
  var vn = navigator.appVersion;

  if ((bn!="Microsoft Internet Explorer") || (vn.substring(0,3)!="2.0")) {
    document.images[name].src = eval(source + ".src");
  }
}

//pop up larger versions of content photos
function largerImg(img, width, height, title) {
	window.open('largerImage.asp?img=' + img + '&title=' + title + '','largerimage','height=' + height + ',width=' + width + ',toolbar=no,status=no,scrollbars=yes,resizable=yes');
}

//pop up detail window for civil war battle flags exhibit
function flagPop(group, flagImg) {
	window.open('flagDetail.asp?g=' + group + '&img=' + flagImg + '','flagDetail','height=580,width=600,toolbar=no,status=no,scrollbars=yes,resizable=yes');
}

//pop up detail window for self-guided tour images
function imgPop(section, img) {
	window.open('/educational_programs/impromptu_tours/self-guided-tours/largeImg.asp?s=' + section + '&img=' + img + '','imgDetail','height=515,width=600,toolbar=no,status=no,scrollbars=yes,resizable=yes');
}

//drop down nav
function load1(form) {
	var url = form.nav.options[form.nav.selectedIndex].value;
	if (url != '') location.href = url;
	return false;
}

//show/hide div within a group
function showHideDiv(divID) {
	//hide all other plus/minus images
	allImgs = document.all.tags("img");
	for(i=0; i<allImgs.length; i++) {
			if (allImgs[i].name.indexOf("form") != -1 && allImgs[i].id != "imgform" + divID) {
			allImgs[i].src = "/images/false.gif";
		}
	}
	//hide all other divs
	allDivs = document.all.tags("div");
	for (i=0; i<allDivs.length; i++) {
		if (allDivs[i].id.indexOf("form") != -1 && allDivs[i].id != "divform" + divID) {
			allDivs[i].style.display = "none";			
		} 
	}
	
	//get reference to active div & image	
	activeDiv = document.getElementById("divform" + divID);	
	activeImg = document.getElementById("imgform" + divID);
	
	if (activeDiv.style.display == "block") {	
		activeImg.src = "/images/false.gif";   
		activeDiv.style.display = "none";		
	}
	else {
		activeImg.src = "/images/true.gif";
		activeDiv.style.display = "block";
	}
}

function openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features); }



  function ppPop() {
      theURL = '/exhibits/permanent/pillars-of-power/default.asp'
      var w = (screen.width < 1024) ? (screen.width - 10) : 790;
      var h = (screen.height < 768) ? (screen.height - 30) : 590;
      //var winleft = (screen.width < 1024) ? 0:((screen.width - w)/2);
      var winleft = (screen.width - w) / 2;
      var winUp = (screen.height < 768) ? 0 : 10;
      winProp = 'height=' + h + ',width=' + w + ',left=' + winleft + ',top=' + winUp + ',scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no';
      Win = window.open(theURL, 'pillars', winProp)
      if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }

  }

  function htPop() {
      theURL = '/exhibits/virtual/hard_times/default.asp'
      var w = (screen.width < 1024) ? (screen.width - 10) : 790;
      var h = (screen.height < 768) ? (screen.height - 30) : 590;
      //var winleft = (screen.width < 1024) ? 0:((screen.width - w)/2);
      var winleft = (screen.width - w) / 2;
      var winUp = (screen.height < 768) ? 0 : 10;
      winProp = 'height=' + h + ',width=' + w + ',left=' + winleft + ',top=' + winUp + ',scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no';
      Win = window.open(theURL, 'hardtimes', winProp)
      if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }

  }

  function jbPop() {
      theURL = '/exhibits/archive/john-barleycorn/default.asp'
      var w = (screen.width < 1024) ? (screen.width - 10) : 900;
      var h = (screen.height < 768) ? (screen.height - 30) : 670;
      var winleft = (screen.width < 1024) ? 0 : ((screen.width - w) / 2);
      var winUp = (screen.height < 768) ? 0 : 10;
      winProp = 'height=' + h + ',width=' + w + ',left=' + winleft + ',top=' + winUp + ',scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no';
      Win = window.open(theURL, 'jb', winProp)
      if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }

  }

  function edPop() {
      theURL = '/ernie_deane/default.asp'
      var w = (screen.width < 1024) ? (screen.width - 10) : 900;
      var h = (screen.height < 768) ? (screen.height - 30) : 670;
      var winleft = (screen.width < 1024) ? 0 : ((screen.width - w) / 2);
      var winUp = (screen.height < 768) ? 0 : 10;
      winProp = 'height=' + h + ',width=' + w + ',left=' + winleft + ',top=' + winUp + ',scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no';
      Win = window.open(theURL, 'jb', winProp)
      if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }

  }