	function getSearchByVal() {
		searchVal = document.getElementById('searchBy').value;
		return searchVal
	}
	
	
	
	function showContentDiv(divid, content, hidediv) {
		id = document.getElementById(divid);
		id.style.visibility = 'visible';
		id.style.zIndex = 3;
		
		if(content) {
			id.innerHTML = content;
		}
		
		if(hidediv) {
			document.getElementById(hidediv).style.visibility = 'hidden';
		}
	}
	/*********************************************/	
	function ieDisplay(objid,way){
	// Div show/hide (way: 0=hide; 1=show);
		var obj = document.getElementById(objid);
		obj.style.display = (way)?'inline':'none';
	}
	/** easySwap(location,id)
	* Will not switch out to "over" state if the item is currently selected
	* Allows bottom menu to mimic top menu
	* location = src of image to swap in
	* id = id of image
	*/
	function easySwap(location,id) {
		if(TempImg != id) {	
			imageTempOn = new Image();
			imageTempOn.src = location;
			document.images['' + id  + ''].src= imageTempOn.src;
		}
	}
	/** hardSwap(location,id)
	* Ignores TempImg catch and just swaps images
	* location = src of image to swap in
	* id = id of image
	*/	
	function hardSwap(location,id) {	
		imageTempOn = new Image();
		imageTempOn.src = location;
		document.images['' + id  + ''].src= imageTempOn.src;
	}
	/** subNavSwap(location,id)
	* Ignores TempImg catch and swaps images based on TempSection
	* location = src of image to swap in
	* id = id of image
	*/	
	function subNavSwap(location,id) {	
		if( TempSubSection == id) {
		
		}else if(TempSection == id) {
		
		}else {	
			imageTempOn = new Image();
			imageTempOn.src = location;
			document.images['' + id  + ''].src= imageTempOn.src;
		}
	}
	/*********************************************/	
	function swapFlash(id, file, extra) {
		if(id != TempImg) {
			file = 'media/' + file + '.swf';
			if(is.ie){
				var mov = window.document.getElementById(id+'obj');
			}else{
				document.getElementById('fixMozilla').innerHTML = '<embed src="' + file + '" menu="false" quality="high"  id="flashbannerobj" name="flashbannerobj"   wmode="transparent" width="' + flashWidth + '" height="' + flashHeight + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
				return true;
			}
			try { 
			   mov.LoadMovie(0,file);
			   mov.play();
			}catch(er) {
				alert('Error: ' + er +' : '+er.description );     
				//alert("Flash Version 8 is Required!");
			}
		}
		if(extra) {
			TempImg = file;
		}
	}
	/*********************************************/
	function setNav(area) {
		if(area== '') { area='home';}
		run = "parent.changeArea('" + area + "');";
		eval(run);
	}
	/*********************************************/
	function altHeight() {
		alert('1');
		// Call altHeight() at the bottom of your IFRAME
		height = document.getElementById('getHeight').scrollHeight;	// Resize the iframe to this height
		// target the parent iframe and eval() your new height, otherwise you will get "undefined"
		// resizeIframe() is in the parent iframe and simply resets the height
		run = "window.parent.resizeIframe('" + height + "', 'content');";
		alert('2');
		eval(run);
		alert('3');
	}
	/*********************************************/		
	// DEPRECIATED use altHeight instead
	function jgetHeight() {	
		// Call jgetHeight() in the body onload
		// If you call jgetHeight in an image it seemes to kill all <img>s
		height = document.getElementById('getHeight').scrollHeight;	// Resize the iframe to this height
		// target the parent iframe and eval() your new height, otherwise you will get "undefined"
		// resizeIframe() is in the parent iframe and simply resets the height
		run1 = 'window.parent.location = ("javascript:resizeIframe';
		run2 = "('" + height + "', 'content')"; 
		run3 = ";";
		run4 = '");'	
		
		eval(run1 + run2 + run3 + run4 );
		
	}
	/*********************************************/
	function resizeIframe(height, id) {
		//if(height < 5) { height = 5; }
		document.getElementById(id).style.height = height;
		document.getElementById(id).focus();
	}
	/*********************************************/	
	function setClassName(objId, className) {
    	document.getElementById(objId).className = className;
	}
	/*********************************************/	
	function printImage( popupURL){
		return window.open( popupURL, 'pop', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0' );
	}

	function fixImage(id) {
		if(is.ie) {
			try { 
				document.getElementById(id).src = 'images/spacer.gif';
			}catch(er){
				alert('Error: ' + er +' : '+er.description );  
			}
		}
	}
	
	