// JavaScript Document
function verify(form){
		if (form.searchQuery.value != ""){			
				return true
			} else {
				alert("Please enter keyword(s) to search on.")
			}
		return false
	}
	
	function closeSplash(){
		document.getElementById('splashDiv').style.width = '0px';
		document.getElementById('splashDiv').style.height = '0px';
		document.getElementById('splashDiv').style.visibility = 'hidden';
		//document.getElementById('mainCol').style.width = '1024px';
		document.getElementById('main').style.visibility = 'visible';
	}
	function splash_DoFSCommand(command, args){
		if(command != false){
		document.getElementById('splashDiv').style.width = '0px';
		document.getElementById('splashDiv').style.height = '0px';
		document.getElementById('splashDiv').style.visibility = 'hidden';
		//document.getElementById('mainCol').style.width = '1024px';
		document.getElementById('main').style.visibility = 'visible';
		}
		//alert('fscommand called');
	}
	function getCookie(c_name){
		if (document.cookie.length>0){
		  c_start=document.cookie.indexOf(c_name + "=");
		  if (c_start!=-1){
			c_start=c_start + c_name.length+1;
			c_end=document.cookie.indexOf(";",c_start);
			if (c_end==-1) c_end=document.cookie.length;
			return unescape(document.cookie.substring(c_start,c_end));
			}
		  }
		return null
	}
	function showSplash(){
		//closeSplash();  // for local testing only
		var cookieVal = getCookie('splash');
		//alert('cookieVal='+cookieVal);
		if(!cookieVal){
			// The following eval is a solution to Zone Alarm's privacy proxy that I painfully resolved.  Zone Alarm was changing 'document.cookie = value' to 'document.ignore = value'
			eval("document"+"."+"cookie = 'splash=true'");
		}
		else{
			closeSplash();
		}
	}
	function testVersion(){
		var requiredVersion = 8;
		var version = com.deconcept.FlashObjectUtil.getPlayerVersion();
		var getPlayer = '<a href="http://www.macromedia.com/go/getflashplayer" target="_blank">Please download Flash '+requiredVersion+'</a>';
	}
	function callError(id){
		if(version['major'] != requiredVersion){
			document.getElementById(id).innerHTML = "You have Flash player "+version['major'] +"."+version['minor'] +"."+ version['rev'] +" installed."+
				"\n<p>Version"+requiredVersion+", or higher, is required.</p><p>"+getPlayer+"</p>";
       		}
	}