function clearText(thefield){	if (thefield.defaultValue==thefield.value)	thefield.value = ""}function resetText(thefield, textValue){	if (thefield.value=="")	thefield.value = textValue}$().ready(function() {   		$("#login").toggle(		  function () {			$('#loginform').slideDown("fast");			$("#login img").attr("src", "/index_files/images/client-login-active.jpg");		  },		  function () {			$('#loginform').slideUp("fast");			$("#login img").attr("src", "/index_files/images/client-login.jpg");		  }		     );          $("#login").click(     	function() {     		_gaq.push(['_trackEvent', 'login_div', 'clicked']);     	}     );	 	 $("#nav li a").click(function() {        		$('ul.subnav').not($(this).parent().find("ul.subnav")).slideUp();   		 var pos = $(this).position();         $(this).parent().find("ul.subnav").css({ "left": pos.left + "px", "top": (pos.top + 37) + "px" });		 $(this).parent().find("ul.subnav").slideToggle();            $(this).parent().find("ul.subnav").hover(function() {}, function(){				$(this).parent().find("ul.subnav").slideUp();           });  		 }).hover(function() {               $(this).addClass("subhover");          }, function(){              $(this).removeClass("subhover");		     });          $("#nav").mouseleave( function () {     	$('ul.subnav').slideUp();     });         $(function() {        $('#masthead').cycle({        fx: 'fade',        speed: 600,        timeout: 5000     });    });    });
