 $(document).ready(function() {
// set opacity to nill on page load
$("ul#navigation li a span").css("opacity","0");

// FADING NAV
	$(function() {
		// on mouse over
		$("ul#navigation li a span").hover(function () {
			// animate opacity to full
			$(this).stop().animate({
				opacity: 1
			}, "slow");
		},
		// on mouse out
		function () {
			// animate opacity to nill
			$(this).stop().animate({
				opacity: 0
			}, "slow");
		});
	});
});

// RESIZE FIX
$(document).ready(resizeWindow);
$(window).bind("resize", resizeWindow);
	function resizeWindow( e ) {
	var $j = jQuery; 
	var body_width = $j('body').width()
	if (body_width <= 1000)
	  {
	  		$j("div#entire_whole_site_container, div#site_container, div#footer_container").css({'background-position:':'100px 0px', 'width' : '1000px' });
	  }
	else
	  {
  			//alert("RESIZED-LARGE");
			$j("div#entire_whole_site_container, div#site_container, div#footer_container").css({'background-position:':'center top', 'width' : '100%'});
		}
	  
	}	 
	
// Footer Toogle 	
$(document).ready(function() {
	
	// SD
	
	$("#san_diego_link").hover(function() {
		$("#san_diego_info").toggle();
	},function() {
		$("#san_diego_info").toggle();
	});	
	
	// SC
	
	$("#sacramento_link").hover(function() {
		$("#sacramento_info").toggle();
	},function() {
		$("#sacramento_info").toggle();
	});	

	// SF
	
	$("#san_francisco_link").hover(function() {
		$("#san_francisco_info").toggle();
	},function() {
		$("#san_francisco_info").toggle();
	});	
	
	// ST
	
	$("#seattle_link").hover(function() {
		$("#seattle_info").toggle();
	},function() {
		$("#seattle_info").toggle();
	});	

	// AUSTIN
	
	$("#austin_link").hover(function() {
		$("#austin_info").toggle();
	},function() {
		$("#austin_info").toggle();
	});	
	
	$("#new_york_link").hover(function() {
		$("#new_york_info").toggle();
	},function() {
		$("#new_york_info").toggle();
	});	
	
	
	$(".linkedIn_sn,#body_text, #footer_container, #header, #contact_link").mouseover(function () {
	  $("div#twitter_popup").fadeOut("slow");
	});

});
