<!--
// ROOT
if  ( (self.location.href.indexOf('acquisitions/')!=-1) || (self.location.href.indexOf('highlight/')!=-1) || (self.location.href.indexOf('gardens/')!=-1) || (self.location.href.indexOf('gallery/')!=-1) || (self.location.href.indexOf('animals/')!=-1) || (self.location.href.indexOf('modern/')!=-1)  || (self.location.href.indexOf('interactive/')!=-1)){
	root='../../';
} else if ( (self.location.href.indexOf('visit/')!=-1) || (self.location.href.indexOf('industry/')!=-1) || (self.location.href.indexOf('exhibitions/')!=-1) || (self.location.href.indexOf('Pioneer/')!=-1) || (self.location.href.indexOf('museum/')!=-1) || (self.location.href.indexOf('contribute/')!=-1) || (self.location.href.indexOf('education/')!=-1) || (self.location.href.indexOf('globals/')!=-1)  ||
(self.location.href.indexOf('database/')!=-1) || (self.location.href.indexOf('admin/')!=-1)  ) {
	root='http://www.campsilos.org/excursions/hc/';		
} else {
	root='http://www.campsilos.org/excursions/hc/';
}

//---------------------------------------------------------------------------------------------------------
// dhtml lib

isNav=false;
isW3C=false;
isExp=false;
isOpera=false;
isNOT=false;
isMac=false;

// Detect browser and define pre/suf-fixes
browser=navigator.appName;
version=navigator.appVersion;
useragent=navigator.userAgent;
Vmajor=parseInt(navigator.appVersion);
Vminor=parseFloat(navigator.appVersion);

if (useragent.indexOf('Opera') != -1) {
	isOpera=true;
	pre='all';
	suff='.style';
}
else if (browser=="Netscape") {
	if (Vmajor==4)
	{
		isNav=true; pre='layers.'; suf='';
	}
	else if (Vmajor==5)	isW3C=true;
	else isNOT=true;
}
else if (browser=="Microsoft Internet Explorer") {
	if ( version.indexOf('MSIE 5.0; Macintosh;') != -1 )  {
		isExp=true;
		pre='all.';
		suf='.style';
	}
	// IE 4 to 5.5 return 4 as the version
	else if ( (Vmajor==4) ) {
		isExp=true;
		pre='all.';
		suf='.style';
	}
	else isNOT=true;
}

if (version.indexOf('Mac') != -1) isMac=true;

if (isNav && Vminor>4.08 ) {
 	document.captureEvents(Event.RESIZE);
 	window.onresize=resizeH;
}

function resizeH()
{
	window.location.reload();
	return true;
}

function Showlayer(which,how) {
	if (isNav || isExp) {
		eval ('document.'+pre+which+suf+'.visibility="'+how+'"');
		return;
	}
	else if (isW3C || isOpera) {
		obj=document.getElementById(which);
		obj.style.visibility=how;
	}
}

function Movelayer(which,x,y) {
	if (isExp)	{
		eval ('document.'+pre+which+suf+'.pixelLeft='+x);
		eval ('document.'+pre+which+suf+'.pixelTop='+y);
		return;
	}
	else if (isNav) {
		eval ('document.'+which+'.moveTo('+x+','+y+')');
		return;
	}
	else if (isW3C) {
		obj=document.getElementById(which);
		obj.style.left=x+'px';
		obj.style.top=y+'px';	
		return;
	}
	else if (isOpera) {
		obj=document.getElementById(which);
		obj.style.left=x;
		obj.style.top=y;	
	}
}

function getwindowWidth() {
	if (isExp) {
		return document.body.clientWidth;
	}
	else if (isNav || isW3C || isOpera) {
		return window.innerWidth;
	}
}

function getwindowHeight() {
	if (isExp) {
		return document.body.clientHeight;
	}
	else if (isNav || isW3C || isOpera) {
		return window.innerHeight;
	}
}

function pop(url,w,h) { // popup for contribution and registration forms

	window.open(url,"giftpop","resizable=1,toolbar=1,location=0,status=0,menubar=0,scrollbars=1,width=" + w + ",height=" + h + "");

	}
	
function popNoResize(url,w,h) { // popup for art interactive

	window.open(url,"giftpop","resizable=0,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,width=" + w + ",height=" + h + "");

	}

//---------------------------------------------------------------------------------------------------------
// menu
Menus=new Array(
	{x:98,y:61,w:100,h:76,name:'Visit',bgcolor:'#000000'},
	{x:195,y:61,w:100,h:76,name:'Pioneer',bgcolor:'#000000'},
	{x:311,y:61,w:100,h:76,name:'Exhibitions',bgcolor:'#000000'},
	{x:400,y:61,w:100,h:76,name:'industry',bgcolor:'#000000'}		
);
sectionN=0;
currentMenu=0;
currentSelection=-1;
currentSection=-1;
currentPage=-1;
positioned=0;
highlightcode='';
artworkcode='';
if (self.location.href.indexOf('visit/')!=-1) { currentSection='Visit'; sectionN=0; }

if (self.location.href.indexOf('Pioneer/')!=-1) { currentSection='Pioneer'; sectionN=2; }

if (self.location.href.indexOf('exhibitions/')!=-1) { currentSection='Exhibitions'; sectionN=3;}
if (self.location.href.indexOf('industry/')!=-1) { currentSection='industry'; sectionN=4;}

if (currentSection!=-1) theColor=Menus[sectionN].bgcolor;
else theColor='#666666';

if (currentSection!=-1) {
		highlightcode='<DIV ID="HighBar"><table width="595" cellspacing="0" cellpadding="0" border="0"><tr><td bgcolor="'+Menus[sectionN].bgcolor+'"><img src="'+root+'images/ghost.gif" width="1" height="3" alt="" border="0"></td></tr></table></DIV>'+"\n";
		highlightcode+='<DIV ID="HighBlock"><table width="'+Menus[sectionN].w+'" cellspacing="0" cellpadding="0" border="0"><tr><td bgcolor="'+Menus[sectionN].bgcolor+'"><img src="'+root+'images/ghost.gif" width="1" height="5" alt="" border="0"></td></tr></table></DIV>'+"\n";
}
	

// positions just the dropdown menu on rollover
function positionMenus() {
	for(i=0; i<Menus.length; i++) {
		ax=Menus[i].x+1;
		Movelayer(Menus[i].name+'Gray',ax,Menus[i].y+28);
		Movelayer(Menus[i].name+'Black',ax,Menus[i].y+28);
		Movelayer(Menus[i].name+'Top',Menus[i].x,Menus[i].y);
		Movelayer(Menus[i].name+'Menu',ax,Menus[i].y+28);
	}
	if (currentSection!=-1) {
		Showlayer(currentSection+'Top','visible');
		Movelayer('HighBlock',Menus[sectionN].x,99);
	}
	positioned=1;
}	

function menuOpen(which) {
	if (positioned==0) return;
	if (currentMenu==which) return;
	menuClose();
	currentMenu=which;
	currentSelection=0;
	Showlayer(currentMenu+'Black','hidden');
	Showlayer(currentMenu+'Gray','visible');
	Showlayer(currentMenu+'Menu','visible');			
	Showlayer(currentMenu+'Top','visible');			
}
	
function menuClose() {
	if (currentMenu) {
		Showlayer(currentMenu+'Black','hidden');
		Showlayer(currentMenu+'Gray','hidden');
		Showlayer(currentMenu+'Menu','hidden');			
		if (currentMenu != currentSection) Showlayer(currentMenu+'Top','hidden');			
	}
	currentMenu='';
}

function menuHighlight(menu,which) {
	if (Menus[menu].x2!=null) ax=Menus[menu].x2;
	else ax=Menus[menu].x;

	Movelayer(Menus[menu].name+'Black',ax,Menus[menu].y+which*17+30);
	Showlayer(Menus[menu].name+'Black','visible');
	currentSelection=which;
}	

function menuOff() {
	currentSelection=-1;
	setTimeout('checkMenu()',1400);
}
	
function checkMenu() {
	if (currentSelection==-1) {
		menuClose();
	}
}




//---------------------------------------------------------------------------------------------------------
// document.writeln portion

// HIGHTLIGHT
document.writeln(highlightcode);

// MAIN BANNER	
document.writeln("\n"+'<div id="MenuMain"><table cellspacing="0" cellpadding="0" border="0" align="center" width="595"><tr valign="bottom"><td width="595"><img src="'+root+'images/tabs.gif" width="577" height="89" align="left" alt="" border="0" usemap="#mainmap"></td></tr></table><map name="mainmap"><area alt="CampSilos Excursions"  coords="0,0,360,54" href="http://www.campsilos.org/excursions/index.htm" onMouseOver="menuOff()" shape="RECT">'+"\n"+'<area href="'+root+'one/s1.htm" onMouseOver="javascript:menuClose()" coords="0,74,98,99" shape="RECT">'+"\n"+'<area alt="Archaeology" href="'+root+'one/s1.htm" onMouseOver="menuOpen(\'Visit\')" coords="0,56,100,101" shape="RECT">'+"\n"+'<area alt="Industrialization" href="'+root+'four/s1.htm" onMouseOver="menuOpen(\'industry\')" coords="307,57,419,112" shape="RECT">'+"\n"+'<area alt="Farming" href="'+root+'three/s1.htm" onMouseOver="menuOpen(\'Exhibitions\')" coords="219,56,300,118" shape="RECT">'+"\n"+'<area alt="Pioneer Women" href="'+root+'two/s1.htm" onMouseOver="menuOpen(\'Pioneer\')" coords="103,56,213,86" shape="RECT">'+"\n"+'<area alt="Search" href="'+root+'search.htm" onMouseOver="menuOff()" coords="424,57,492,97" shape="RECT">'+"\n"+'<area alt="Home" href="'+root+'index.htm" onMouseOver="menuOff()" coords="496,56,581,94" shape="RECT">'+"\n"+'<area alt="The History Center" href="http://www.historycenter.org" coords="381,39,528,13,532,30,383,53" shape="poly"></map></div>'+"\n");

// ARCH
document.writeln('<div id="VisitGray" class="menuItem" ><img src="'+root+'images/ghost.gif" width="140" height="106" alt="" border="0"></div>'+"\n"+'<div id="VisitBlack" class="menuItem"><img src="'+root+'images/ghost.gif" width="100" height="16" alt="" border="0"></div>'+"\n"+'<div id="VisitTop" class="menuItem" ><A HREF="'+root+'one/s1.htm" onMouseOver="menuOpen(\'Visit\')"><img src="'+root+'images/ghost.gif" width="100" height="28" alt="" border="0"></A></div>'+"\n"+'<div id="VisitMenu" class="menuItem"><img src="'+root+'images/farming_drop.gif" width="100" height="76" alt="" border="0" usemap="#archMap"></div>'+"\n"+'<map name="archMap">'+"\n"+'<area alt="Be a Curator!" href="'+root+'one/s1.htm" onMouseOver="menuHighlight(0,0)" onMouseOut="menuOff()" coords="0,5,140,21" shape="rect">'+"\n"+'<area alt="Research List" href="'+root+'one/s1b.htm" onMouseOver="menuHighlight(0,1)" onMouseOut="menuOff()" coords="0,22,140,38" shape="rect">'+"\n"+'<area alt="For Teachers" href="'+root+'one/t1.htm" onMouseOver="menuHighlight(0,2)" onMouseOut="menuOff()" coords="0,39,140,55" shape="rect">'+"\n"+'<area alt="Media Center" href="'+root+'one/mc1.htm" onMouseOver="menuHighlight(0,3)" onMouseOut="menuOff()" coords="0,56,140,72" shape="rect"></map>'+"\n");





// Pioneer Women
document.writeln('<div id="PioneerGray" class="menuItem"><img src="'+root+'images/ghost.gif" width="140" height="106" alt="" border="0"></div>'+"\n"+'<div id="PioneerBlack" class="menuItem"><img src="'+root+'images/ghost.gif" width="100" height="16" alt="" border="0"></div>'+"\n"+'<div id="PioneerTop" class="menuItem"><A HREF="'+root+'two/s1.htm" onMouseOver="menuOpen(\'Pioneer\')"><img src="'+root+'images/ghost.gif" width="100" height="28" alt="" border="0"></A></div>'+"\n"+'<div id="PioneerMenu" class="menuItem"><img src="'+root+'images/farming_drop.gif" width="100" height="76" alt="" border="0" usemap="#pioneerMap"></div>'+"\n"+'<map name="pioneerMap">'+"\n"+'<area alt="Be a Curator!" href="'+root+'two/s1.htm" onMouseOver="menuHighlight(2,0)" onMouseOut="menuOff()" coords="0,5,140,21" shape="rect">'+"\n"+'<area alt="Research List" href="'+root+'two/s1b.htm" onMouseOver="menuHighlight(2,1)" onMouseOut="menuOff()" coords="0,22,140,38" shape="rect">'+"\n"+'<area alt="For Teachers" href="'+root+'two/t1.htm" onMouseOver="menuHighlight(2,2)" onMouseOut="menuOff()" coords="0,39,140,55" shape="rect">'+"\n"+'<area alt="Media Center" href="'+root+'two/mc1.htm" onMouseOver="menuHighlight(2,3)" onMouseOut="menuOff()" coords="0,56,140,72" shape="rect"></map>'+"\n");

// Farming
document.writeln('<div id="ExhibitionsGray" class="menuItem"><img src="'+root+'images/ghost.gif" width="140" height="106" alt="" border="0"></div>'+"\n"+'<div id="ExhibitionsBlack" class="menuItem"><img src="'+root+'images/ghost.gif" width="100" height="16" alt="" border="0"></div>'+"\n"+'<div id="ExhibitionsTop" class="menuItem"><A HREF="'+root+'three/s1.htm" onMouseOver="menuOpen(\'Exhibitions\')"><img src="'+root+'images/ghost.gif" width="100" height="28" alt="" border="0"></A></div>'+"\n"+'<div id="ExhibitionsMenu" class="menuItem"><img src="'+root+'images/farming_drop.gif" width="100" height="76" alt="" border="0" usemap="#FarmingMap"></div>'+"\n"+'<map name="FarmingMap">'+"\n"+'<area alt="Be a Curator!" href="'+root+'three/s1.htm" onMouseOver="menuHighlight(3,0)" onMouseOut="menuOff()" coords="0,5,140,21" shape="rect">'+"\n"+'<area alt="Research List" href="'+root+'three/s1b.htm" onMouseOver="menuHighlight(3,1)" onMouseOut="menuOff()" coords="0,22,140,38" shape="rect">'+"\n"+'<area alt="For Teachers" href="'+root+'three/t1.htm" onMouseOver="menuHighlight(3,2)" onMouseOut="menuOff()" coords="0,39,140,55" shape="rect">'+"\n"+'<area alt="Media Center" href="'+root+'three/mc1.htm" onMouseOver="menuHighlight(2,3)" onMouseOut="menuOff()" coords="0,56,140,72" shape="rect"></map>'+"\n");

// INDUSTRY
document.writeln('<div id="industryGray" class="menuItem"><img src="'+root+'images/ghost.gif" width="140" height="106" alt="" border="0"></div>'+"\n"+'<div id="industryBlack" class="menuItem"><img src="'+root+'images/ghost.gif" width="100" height="16" alt="" border="0"></div>'+"\n"+'<div id="industryTop" class="menuItem"><A HREF="'+root+'four/s1.htm" onMouseOver="menuOpen(\'industry\')"><img src="'+root+'images/ghost.gif" width="100" height="20" alt="" border="0"></A></div>'+"\n"+'<div id="industryMenu" class="menuItem"><img src="'+root+'images/farming_drop.gif" width="100" height="76" alt="" border="0" usemap="#industryMap"></div>'+"\n"+'<map name="industryMap">'+"\n"+'<area alt="Be a Curator!" href="'+root+'four/s1.htm" onMouseOver="menuHighlight(2,0)" onMouseOut="menuOff()" coords="0,5,140,21" shape="rect">'+"\n"+'<area alt="Research List" href="'+root+'four/s1b.htm" onMouseOver="menuHighlight(2,1)" onMouseOut="menuOff()" coords="0,22,140,38" shape="rect">'+"\n"+'<area alt="For Teachers" href="'+root+'four/t1.htm" onMouseOver="menuHighlight(2,2)" onMouseOut="menuOff()" coords="0,39,140,55" shape="rect">'+"\n"+'<area alt="Media Center" href="'+root+'four/mc1.htm" onMouseOver="menuHighlight(2,3)" onMouseOut="menuOff()" coords="0,56,140,72" shape="rect"></map>'+"\n");
