<!--

// add visibility for every drop down item
	function setVisibilityStart() {
	//if (document.layers == false) {
			setVisibility('nr2_1a','hidden');
			setVisibility('nr2_2','hidden');
			setVisibility('nr2_3a','hidden');
			setVisibility('nr2_3c','hidden');
			setVisibility('nr2_5','hidden');
			setVisibility('nr3_4','hidden');
			setVisibility('nr3_0','hidden');
			setVisibility('nr3_8','hidden');
			setVisibility('nr3_1','hidden');
			setVisibility('nr3_1a','hidden');
			setVisibility('nr3_1b','hidden');
			setVisibility('nr3_1c','hidden');
			setVisibility('nr3_2c','hidden');
			setVisibility('nr3_11','hidden');
			setVisibility('nr3_7','hidden');
		//}
	}
	
// add visibility for dolphin navigation item
	function setVisibilityDolphin() {
		setVisibility('dolphin_0','hidden');
		setVisibility('dolphin_1','hidden');
		setVisibility('dolphin_2','hidden');
		setVisibility('dolphin_3','hidden');
		setVisibility('dolphin_4','hidden');
		setVisibility('dolphin_5','hidden');
	}
	
//reloads if layers/Netscape 4
	
	if (document.layers) {
		origWidth = innerWidth;
		origHeight = innerHeight;
	}

	function reloadPage() {
		if (innerWidth != origWidth || innerHeight != origHeight)
		location.reload();
	}

	if (document.layers) onresize = reloadPage;
				
// nav script starts

	function setVisibility(objectID,state) {
		var dom = findDOM(objectID,1);
				dom.visibility = state;
	}

	function toggleVisibility(objectID) {
		var dom = findDOM(objectID,1);
		state = dom.visibility;
		if (state == 'hidden' || state == 'hide' )
			dom.visibility = 'visible';
		else {
			if (state == 'visible' || state=='show')
				dom.visibility = 'hidden'; 
			else dom.visibility = 'visible';
		}
	}


	var oldDomSMenu = null;

	function findLivePageWidth() {
		if (window.innerWidth != null)
			return window.innerWidth;
		if (document.body.clientWidth != null)
			return document.body.clientWidth;
		return (null);
	}

	function findLivePageHeight() {
		if (window.innerHeight != null)
			return window.innerHeight;
		if (document.body.clientHeight != null)
			return document.body.clientHeight;
		return (null);
	}
	
	function popUp(evt,objectID,topPixels){
		if (isDHTML) { // Makes sure this is a DHTML browser
			var livePageWidth = findLivePageWidth();
			var livePageHeight = findLivePageHeight();
			
			domStyle = findDOM(objectID,1);
			dom = findDOM(objectID,0);
			state = domStyle.visibility;
		
			if (dom.offsetWidth) elemWidth = dom.offsetWidth;
			else { if (dom.clip.width)	elemWidth = dom.clip.width; }
		
			if (dom.offsetHeight) elemHeight = dom.offsetHeight;
			else { if (dom.clip.height)	elemHeight = dom.clip.height; }
		
			if (oldDomSMenu) { oldDomSMenu.visibility = "hidden"; }
		
			if (state == "visible" || state == "show")  { domStyle.visibility = "hidden"; }
		
			else {
				if (evt.pageY) { //Calculates the position for Navigator 4 
					//topVal = evt.pageY + 4;
					topVal = topPixels;
					leftVal = evt.pageX - 60; 
				}
				else { 
					if (evt.y) { // Calculates the position for IE4
						//topVal = evt.y + 4 + document.body.scrollTop;
						topVal = topPixels;
						leftVal = evt.x - 60 + document.body.scrollLeft;
					}
				}
			/*If the element goes off the page to the left, this moves it back */
				if(leftVal < 2) { leftVal = 2; }
				else { 
					if ((leftVal + elemWidth) > livePageWidth) { leftVal = leftVal - 2 - (leftVal + elemWidth - livePageWidth) ; }
				}
			/*If the element goes off the page down, this moves it back */
				if(topVal < 2) { topVal = 2; }
				else { 
					if ((topVal + elemHeight) > livePageHeight) { topVal = topVal - 2 - (topVal + elemHeight - livePageHeight) ; }
				}
			
				domStyle.top = topVal; // Positions the element from the top
				domStyle.left = leftVal; // Positions the element from the left
				domStyle.visibility = "visible"; // Makes the element visible
			
				////// Sets the menu in use, to be able to make it hidden
				oldDomSMenu = domStyle; 
			}
		} 
		////// jumps to the site map page for non DHTML-browsers
		else { 
		
			alert("You have a non DHTML-browser and will not be able to access all the pages on this site!");
			parent.location = "index.shtml";
	
		}
	}
	

// -->
