<!--

	/* This function should be used for all image rollover effects */

	function changeImage(imageName,newImageSource) {
		if (document.images) {
			document.images[imageName].src = newImageSource;
		}
	}
	
	/* This function is used when you want to have browsers that do not 
	have flash player installed write an image file instead */
	
	function writeFlashOrImage(FlashName,ImageName,Width,Height,Alt,FlashVersion) {
		// first, write the opening object tag
	
		strObjectTag = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
		strObjectTag = strObjectTag + ' width="' + Width + '" height="' + Height + '" ';
		strObjectTag = strObjectTag + 'codebase="http://active.macromedia.com/flash5/cabs/swflash.cab#version=';
		strObjectTag = strObjectTag + FlashVersion + '">';
		strMovieParam = '<param name="movie" value="' + FlashName + '">';
		document.write(strObjectTag);
		document.write(strMovieParam);
		document.write('<param name=\"play\" value=\"true\">');
		document.write('<param name=\"loop\" value=\"true\">');
		document.write('<param name=\"quality\" value=\"high\">');
	
		// if the Flash Plug-in is installed and a browser than user plug-ins is the browser, write an embed tag
		plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
			strImageTag = '<image src="' + ImageName + '" width="' + Width + '" height="' + Height + '" ';
			strImageTag = strImageTag + ' border="0" alt="' + Alt + '">';
		if ( plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 4 )
			{
			strEmbedTag = '<embed src="' + FlashName + '" width="' + Width + '" height="' + Height + '" ';
			strEmbedTag = strEmbedTag + 'play="true" loop="true" quality="high" ';
			strEmbedTag = strEmbedTag + 'pluginspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">';
			document.write(strEmbedTag);
			document.write('</embed>');
			}
		// otherwise, then write an image tag.
		else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
			document.write(strImageTag);
			}
		
		//finally, write the closing object tag
		document.write('</object>');
	}
	
	/* Use this function to open new windows in a browser */
	
	function openNewWindow(URL,windowName,optionList) {
		/* Opens a new window based on following parameters
			URL: A full URL to the site or file you wish to open
			windowName: The name of the Window that JS assigns when creating
			optionList: (Optional)--list of options for the pop-up window
		*/
		optionListValue = optionList;
		// Assign a Default Set of Parameters if the optionList does not exist
		if ((optionListValue == '') || (optionList == null)) {
			optionListValue = 'scrollbars,location,menubar,toolbar,resizable,status,locationbar';
		}
		winOpener = window.open(URL,windowName,optionListValue);
		winOpener.focus();
	}
	
	function loadTopFrame(URL) {
		top.document.location = URL
	}

	function popupWindow(URL,windowName,optionList) {
		/* Opens a new window based on following parameters
			URL: A full URL to the site or file you wish to open
			windowName: The name of the Window that JS assigns when creating
			optionList: (Optional)--list of options for the pop-up window
		*/
		optionListValue = optionList;
		// Assign a Default Set of Parameters if the optionList does not exist
		if ((optionListValue == '') || (optionList == null)) {
			optionListValue = 'height=400,width=500,scrollbars=no,location=no,menubar=no,toolbar=no,resizable=no,status=no,locationbar=no';
		}
		winOpener = window.open(URL,windowName,optionListValue);
		winOpener.focus();
	}
	
	function loadTopFrame(URL) {
		top.document.location = URL
	}
	
	/* 
		Global Values for Default Spotlight and News Tabs
		They must match the DIV that is made visible and displayed
	*/
	
	var contentID = "FirstContentTab";
	
	/*
		These functions are used on the home page to simulate the use of 
		tabbed entries.  The home page contains DIV tags to seperate 
		content in psuedo-pages.  By clicking a link that calls this 
		Javascript, it will hide an area and display another area.
	*/
	
	function switchContent(newDivID,reDirect) {
	// Looks for an ID
	// If the browser supports the DOM
	if (document.getElementById) {	
		// And If the Div being called does not match the current display...
		if (contentID != newDivID) {
			var thisDiv = document.getElementById(newDivID);
			// Make the new div visible
			thisDiv.style.display = "block";
			thisDiv.style.visibility = "visible";
			// Hide the old div
			var oldDiv = document.getElementById(contentID);
			oldDiv.style.visibility = "hidden";
			oldDiv.style.display = "none";
			// Set the global variable current Div to the new DIV
			contentID = newDivID;
			}
		}
	else
		// otherwise, relocation to a new page
		{ location.href = reDirect; }
	}
		
//-->
