<!--
//Initialize Global Variables
nPicNum=0;

//Determine Browser Version
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
if ((bName=="Netscape" && bVer >=3)) 
	br = "n3";
else
{
	if(bName == "Microsoft Internet Explorer" && bVer >=4)
		br="ie4"
	else
		br = "n2";
}
	
//Random Number Generator
function rand(n)
{
	seed = (0x015a4e35 * seed) % 0x7fffffff;
	return(seed >> 16) % n;
}
var now = new Date()
var seed = now.getTime() % 0xfffffff
 
//Preload All Images               
if (document.images)
{
	//Load the button off images
	//Top Menu
	searchOff = new Image(); 
	searchOff.src = "images/btSearch.gif";
	contactOff = new Image(); 
	contactOff.src = "images/btContact.gif";
	partnersOff = new Image(); 
	partnersOff.src = "images/btPartners.gif";
	helpOff = new Image(); 
	helpOff.src = "images/btHelp.gif";
	sitemapOff = new Image(); 
	sitemapOff.src = "images/btSitemap.gif";

	//Left Menu
	institutions_ProcessOff = new Image(); 
	institutions_ProcessOff.src = "images/btInstitutions_Process.gif";
	eventsOff = new Image(); 
	eventsOff.src = "images/btEvents.gif";
	peopleOff = new Image(); 
	peopleOff.src = "images/btPeople.gif";

	//Load the button over images
	//Top Menu
	searchOver = new Image(156,30); 
	searchOver.src = "images/btSearch_Over.gif";
	contactOver = new Image(52,30); 
	contactOver.src = "images/btContact_Over.gif";
	partnersOver = new Image(43,30); 
	partnersOver.src = "images/btPartners_Over.gif";
	helpOver = new Image(61,30); 
	helpOver.src = "images/btHelp_Over.gif";
	sitemapOver = new Image(66,30); 
	sitemapOver.src = "images/btSitemap_Over.gif";

	//Left Menu
	institutions_ProcessOver = new Image(); 
	institutions_ProcessOver.src = "images/btInstitutions_Process_Over.gif";
	eventsOver = new Image(); 
	eventsOver.src = "images/btEvents_Over.gif";
	peopleOver = new Image(); 
	peopleOver.src = "images/btPeople_Over.gif";
}

//function that swaps pictures
function Switch(imgName,imgObjName) 
{
  if (document.images) 
  {
   document.images[imgName].src = eval(imgObjName + ".src");
  }
}

//Function to open new windows
function openWin(URL, Width, Height)
{
	var nHeight = Height + 180;
	var nWidth = Width + 150;

	aWindow=window.open(URL,"PopUp","width="+nWidth+",height="+nHeight+",resizable=yes,scrollbars=yes,left=10,top=10");
	
	aWindow.resizeTo(nWidth, nHeight + 20);
	
	aWindow.focus();
	if(aWindow.opener == null)
	{
		aWindow.opener = window;
		aWindow.opener.name = "opener";
	}

}

//Function for Dynamic Pop Ups
function DynaPop(szTitle,szImgSource,szDescription,nCopyrightNum,nWidth,nHeight)
{
	popTitle = szTitle;
	popSource = szImgSource;
	popDescription = szDescription;
	popCopyright = nCopyrightNum;
	popWidth=nWidth;
	popHeight=nHeight;

	if (popDescription == "description")
		popDescription = "";

	openWin("../PopUp_Dynamic2.html",nWidth,nHeight);
}

//Create Dynamic Picture Object constructor!
function dynamicPicture(imgSource, altText, popUpSource, width, height,nCopyRight,description)
{
	this.imgSource = imgSource;
	this.altText = altText;
	this.popUpSource = popUpSource;
	this.height = height;
	this.width = width;
	this.copyRight = nCopyRight;
	if(description == "description" || description == null)
		this.description = "";
	else
		this.description = description;
}

function WM_netscapeCssFix() {
  /*
    Source: Webmonkey Code Library
    (http://www.hotwired.com/webmonkey/javascript/code_library/)

    Author: Taylor
    Author Email: taylor@wired.com
    Author URL: http://www.taylor.org/
    */

  // This part was inspired by Matthew_Baird@wayfarer.com
  // It gets around another unfortunate bug whereby Netscape 
  // fires a resize event when the scrollbars pop up. This 
  // checks to make sure that the window's available size 
  // has actually changed.
  if (document.WM.WM_netscapeCssFix.initWindowWidth != window.innerWidth || document.WM.WM_netscapeCssFix.initWindowHeight != window.innerHeight) {
    document.location = document.location;
  }
}

function WM_netscapeCssFixCheckIn() {
  // This function checks to make sure the version of Netscape 
  // in use contains the bug; if so, it records the window's 
  // width and height and sets all resize events to be handled 
  // by the WM_netscapeCssFix() function.
  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
    if (typeof document.WM == 'undefined'){
      document.WM = new Object;
    }
    if (typeof document.WM.WM_scaleFont == 'undefined') {
      document.WM.WM_netscapeCssFix = new Object;
      document.WM.WM_netscapeCssFix.initWindowWidth = window.innerWidth;
      document.WM.WM_netscapeCssFix.initWindowHeight = window.innerHeight;
    }
    window.onresize = WM_netscapeCssFix;
  }
}

WM_netscapeCssFixCheckIn()

function reloadIt() {
  document.location = document.location;
}

function changeURL(winName, newURL) {
  win = window.open("", winName);
  win.location.href = newURL;
}



function pop_glossary(html_document) 
{
	var PopUp;
	//Fills variable PopUpString with parameters for popUpwindow 
	var PopUpString =
         "toolbar=no,location=no,directories=no,status=no," +
	 "left=100,top=100,width=600,height=450," +
         "menubar=no,scrollbars=yes,resizable=yes";
         	
	
	
	PopUp = window.open(html_document,"Glossary", PopUpString);
	PopUp.focus();
	
}
