//	-------------------------------------//	This function catches all outbound//	links and opens them in new window//	-------------------------------------jQuery(function($){	$("a").click( function(event)	{		if ( $(this).attr("href") && $(this).attr("href").substr( 0,4 ) == "http" && ( $(this).attr("href").search("gavinnewsom.com") == -1 ) )		{			$(this).attr("target", "_blank");		}	});		$("form#top_form").submit( function(evt)	{		var emailreg	= /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;				var zipreg		= /^\d{5}$/;				var msg			= '';			if ( emailreg.test( $("form#top_form input#email").val() ) === false )		{			msg	=	msg + "Please provide a valid email address.\n";		}			if ( zipreg.test( $("form#top_form input#zip").val() ) === false )		{			msg	=	msg + "Please provide a valid zip code.";		}				if ( msg != '' )		{			alert( msg );			return false;		}	});		// $('#nav ul li').each(function(i,n) {	// 	var exist = $.trim(this.className.replace(/nav/,''));	// 	$(n).mouseover(function() {	// 		$(this).addClass(exist+'_hover').removeClass(exist);	// 	});	// 	$(n).mouseout(function() {	// 		$(this).removeClass(exist+'_hover').addClass(exist);	// 	});	// });});