function clearSearch()
	{
		document.getElementById('searchField').value = '';
	}
function addSearchTxt()
	{
		var srchFld = document.getElementById('searchField').value;
		
		 if (srchFld == '')
				{
					document.getElementById('searchField').value = 'Site search...';
				}
	}
function dashboard(){
	$(".dashText span").hide();
	$(".dashText span#dashtext1").show();
	$(".dashUl li").hover(function(){
		$(".dashText span").hide();
		$(".dashText span#dashtext" + $(this).attr('id')).show();
		},function(){});
}
function categoryUpdater(){
	$(".subcat").hide();
	$("#2").show();
	$("#DirectoryCategory").change(function(){
		$(".subcat").hide();
		$("#" + $("#DirectoryCategory").val()).show();
	});
}
function goToListing(){
	if ( $("select#" + $("#DirectoryCategory").val() + " option:selected").val() !=0 ){
		document.location.href = "/2-" + $("select#" + $("#DirectoryCategory").val() + " option:selected").val() + "/directory/listing";
	}
}
$(document).ready(function(){
	dashboard();
	categoryUpdater();
});
