function pop_up(html_document) 
{
	var PopUpString =
         "toolbar=no,location=no,directories=no,status=no," +
         "menubar=no,scrollbars=no,resizeable=no," +
          "width=540,height=420,left=40,top=40";
	
	var new_html_document = window.open(html_document, "", PopUpString);
	//PopUp = window.open(new_html_document, "??", PopUpString);

}

//Pops up construction photos window
function popup(html_document) 
{
	var PopUpString =
         "toolbar=no,location=no,directories=no,status=no," +
         "menubar=no,scrollbars=no,resizeable=no," +
          "width=540,height=460,left=40,top=40";
	
	var new_html_document = window.open(html_document, "", PopUpString);
	//PopUp = window.open(new_html_document, "??", PopUpString);

}

//Pops up photos window
function popup_photopage(html_document) 
{
	var PopUpString =
         "toolbar=no,location=no,directories=no,status=no," +
         "menubar=no,scrollbars=no,resizeable=no," +
          "width=707,height=408,left=40,top=40";
	
	var new_html_document = window.open(html_document, "", PopUpString);
	//PopUp = window.open(new_html_document, "??", PopUpString);

}

//Pops up photos window
function popup_map(html_document) 
{
	var PopUpString =
         "toolbar=no,location=no,directories=no,status=no," +
         "menubar=no,scrollbars=no,resizeable=no," +
          "width=500,height=480,left=40,top=40";
	
	var new_html_document = window.open(html_document, "", PopUpString);
	
	//PopUp = window.open(new_html_document, "black", PopUpString);

}


//function that swaps pictures
function Switch(imgName,imgObjName)
{
  if (document.images)
  {
   document.images[imgName].src = eval(imgObjName + ".src");
  }
}

//Changes the div-html 
function switchHTML(nIndex)
{
	if ((navigator.appName=="Netscape" && parseInt(navigator.appVersion) <=4)) 
	{

	}
	else
	{
		document.getElementById("switchImage").innerHTML = aInnerHTML[nIndex];
	}
}

//Pops up construction photos window
function popup_tour(html_document) 
{
	var PopUpString =
         "toolbar=no,location=no,directories=no,status=no," +
         "menubar=no,scrollbars=no,resizeable=no," +
          "width=760,height=610,left=0,top=0";
	
	var new_html_document = window.open(html_document, "", PopUpString);
	//PopUp = window.open(new_html_document, "??", PopUpString);

}

//Function to open new windows
function openWin(URL, Width, Height)
{

aWindow=window.open(URL,"PopUp","width="+Width+",height="+Height+",resizable=no,scrollbars=no,left=40,top=40");
	
	aWindow.resizeTo(Width, Height);
	
	aWindow.focus();
	if(aWindow.opener == null)
	{
		aWindow.opener = window;
		aWindow.opener.name = "opener";
	}

}

//Function for photo-gallery pop-ups
function gallery_popup(level,szImgSource)
{
	popSource = szImgSource;

	width=670;
	height=500;


	level==	openWin("gallery_popup.htm",width,height);

}

//Function for regular photo pop-ups (Landscape)
function photo_popup(level,szImgSource)
{
	popSource = szImgSource;

	width=530;
	height=410;

	level==	openWin("photo_popup.htm",width,height);

}

//Function for regular photo pop-ups (Portrait)
function photo_popup2(level,szImgSource)
{
	popSource = szImgSource;

	width=365;
	height=575;

	level==	openWin("photo_popup2.htm",width,height);

}

//Function for Course Photo Switches
aInnerHTML = new Array();
aInnerHTML['001'] = '<a onmouseDown="Switch(\'image\',\'image002\');switchHTML(\'002\');" href="#.">&lt;switch image&gt;</a>';
aInnerHTML['002'] = '<a onmouseDown="Switch(\'image\',\'image001\');switchHTML(\'001\');" href="#.">&lt;switch image&gt;</a>';