<!-- hide script from old browsers

	// Preload onclick background images for search bars
	if (document.images)
	{
	  var img1= new Image(286,36); 
	  img1.src="/images/search_bgbox_on.jpg";
	  var img2= new Image(242,36); 
	  img2.src="/images/pickcity_bgbox_on.jpg"; 
	  var img3= new Image(247,36); 
	  img3.src="/images/pickcuisine_bgbox_on.jpg"; 
	}

	
	function ClearBox () {
	if (document.search.search.value == "Search") {
		document.search.search.value = "";
		document.search.search.focus();
		document.getElementById("search_box").style.backgroundImage = "url(/images/search_bgbox_on.jpg)";
		//document.getElementById("searchbyname").style.backgroundImage = "url(/images/search_bggrad_on.jpg)";
		}
	else
		document.getElementById("search_box").style.backgroundImage = "url(/images/search_bgbox_on.jpg)";	
	}
	
	function FillBox ()
	{
	if (document.search.search.value == "")
		{
		document.search.search.value = "Search";
		document.getElementById("search_box").style.backgroundImage = "url(/images/search_bgbox.jpg)";
		//document.getElementById("searchbyname").style.backgroundImage = "url(/images/search_bggrad.jpg)";
		}
	}
	
	function onTown ()
	{
		document.getElementById("pickcity").style.backgroundImage = "url(/images/pickcity_bgbox_on.jpg)";
		//document.getElementById("findbytown").style.backgroundImage = "url(/images/find_bggrad_on.jpg)";
	}
	
	function offTown ()
	{
		document.getElementById("pickcity").style.backgroundImage = "url(/images/pickcity_bgbox.jpg)";
		//document.getElementById("findbytown").style.backgroundImage = "url(/images/find_bggrad.jpg)";

	}
	
	function onCuisine ()
	{
		document.getElementById("pickcuisine").style.backgroundImage = "url(/images/pickcuisine_bgbox_on.jpg)";
		//document.getElementById("findbytown").style.backgroundImage = "url(/images/find_bggrad_on.jpg)";
	}
	
	function offCuisine ()
	{
		document.getElementById("pickcuisine").style.backgroundImage = "url(/images/pickcuisine_bgbox.jpg)";
		//document.getElementById("findbytown").style.backgroundImage = "url(/images/find_bggrad.jpg)";

	}

	
	function tableHighlight (objectId)
	{
		document.getElementById(objectId).style.backgroundColor = "#96C0EB";
		document.getElementById(objectId).style.borderStyle = "solid solid solid solid";
	}
	
	
	function tableRemoveHighlight (objectId)
	{
		document.getElementById(objectId).style.backgroundColor = "#F1F1E2";
		document.getElementById(objectId).style.borderStyle = "solid solid solid solid";
	}

	function showhide_search()
	{
		if (document.getElementById)
		{
			// compliant browsers
			var style2 = document.getElementById("searchbyname").style;
			style2.display = style2.display? "":"none";
			var style2 = document.getElementById("findbytown").style;
			style2.display = style2.display? "":"none";
			var style2 = document.getElementById("or_image").style;
			style2.display = style2.display? "":"none";
		}
		else if (document.all)
		{
			// MSIE 5
			var style2 = document.all[whichLayer].style;
			style2.display = style2.display? "":"none";
		}
		else if (document.layers)
		{
		// netscape 4
		var style2 = document.layers[whichLayer].style;
		style2.display = style2.display? "":"none";
		}
	}

	function showDiv(element)
	{
		if (document.getElementById)
		{
			// compliant browsers
			var style2 = document.getElementById(element).style;
			style2.display = style2.display? "":"block";
		}
		else if (document.all)
		{
			// MSIE 5
			var style2 = document.all[element].style;
			style2.display = style2.display? "":"none";
		}
		else if (document.layers)
		{
		// netscape 4
		var style2 = document.layers[element].style;
		style2.display = style2.display? "":"none";
		}
	}

	function validate_form (div_id)
	{
		
		if (document.getElementById(div_id).value == "")
			{
			document.getElementById(div_id + '_container').className = "contact_field_error";
			}
		else 
			document.getElementById(div_id + '_container').className = "contact_field_ok";
	}
	
	
// end hiding script from old browsers -->
