// NAVIGATION ANIMATIONS

$(function() {
			$('ul#navigation li a').hover(function(){
				$(this).find('strong').animate({top:'-40px'},{queue:false,duration:500});
				$(this).find('i').css({display:'block'});
			}, function(){
				$(this).find('strong').animate({top:'-140px'},{queue:false,duration:500});
				$(this).find('i').css({display:'none'});
			});
		});


// BACKGROUND POSITION 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#whole_site_container, div#complete_entire_whole_site_container, div#entire_whole_site_container, div#footer_container").css({'background-position:':'400px 0px', 'width' : '1000px' });
	  }
	else
	  {
  			//alert("RESIZED-LARGE");
			$j("div#whole_site_container, div#complete_entire_whole_site_container, div#entire_whole_site_container, div#footer_container").css({'background-position:':'center top', 'width' : '100%'});
		}
	  
	}	 


// SITE POPUPS	

$(document).ready(function() {

	// SITE POPUP LISTENER

	$('a').click(function() {
		this.blur();
	});

	// HOMEPAGE QUICK SIGNUP FORMS

	$("a#signup_links_travel_nurses").mouseover(function () {
	  $("div#travel_nurses_popup_form_container").fadeIn("slow");
	  $("div#locum_tenens_popup_form_container").fadeOut("slow");
	});

	$("a#signup_links_travel_locum_tenens").mouseover(function () {
	  $("div#travel_nurses_popup_form_container").fadeOut("slow");
	  $("div#locum_tenens_popup_form_container").fadeIn("slow");
	});

	$("ul#navigation, a#healthcare_map, ul#logo_links, div#header, h2#career_checkup_heading").mouseover(function () {
	  $("div#travel_nurses_popup_form_container").fadeOut("slow");
	  $("div#locum_tenens_popup_form_container").fadeOut("slow");
	});

	// JOB SEARCH OPTIONS

	$("a#job_search_trigger").mouseover(function () {
	  $("div#job_search_options").fadeIn("slow");
	});

	$("div#header, ul.job_list, div#sub_navigation").mouseover(function () {
	  $("div#job_search_options").fadeOut("slow");
	});

});

