// JavaScript Document


// This function changes things about the search bar on teh front page. The srch_broken variable makes it so the search field only
// clears once.
srch_broken = false;//the search bar has never had focus

function email_chk(str){
	swytch = true;
	
	if(str.match("@")==null || str.match(".")==null){
		swytch = false;
	}
	
	if(str.length < 5){
		swytch = false;	
	}
	return swytch;
}



function change_search(method){//takes boolean value (true for focused)
	var srch = document.getElementById("template_search_box");//set var
	if(method){//if focused, set appropriate values
		srch.style.color = "#003366";
		srch.style.fontStyle = "normal";
		if (!srch_broken){//if the search bar has never had focus
			srch.value = "";
			srch_broken = true;//the search bar has had focus.
		}
	}
	else{//otherwise, reset them
		srch.style.color = "#ccc";
		srch.style.fontStyle = "italic";
	}
}

function onLoad(){
	MM_CheckFlashVersion('8,0,0,0','Content on this page requires a newer version of Adobe Flash Player. Do you want to download it now?');

}

