/* This sets the width of the slider and the panels to the width of the window */

$(document).ready(function() {

	var sliderwidth = $("#coda-slider-1").width();
    $("#coda-slider-1 .panel").width(sliderwidth);
	$('div.footer').width(sliderwidth);
	var minheight = $(document).height() - $('#headerouter').height();
	if (minheight <= 494) {
		minheight = 494;
	}
	$('div.coda-slider').height(minheight);
	//$('div.coda-slider .panel').height($(document).height() - $('#headerouter').height()-30);
	
	/* Handle resizing if the window changes as we have 100% widths, not specific widths needed for coda-slider */
	$(window).resize(function(){
		//Widths
		var sliderwidth = $("#coda-slider-1").width();
	   $("#coda-slider-1 .panel").width(sliderwidth);
		$('div.footer').width(sliderwidth);
		//Heights
		//30 is a FF (Fudge Factor)
		$('div.coda-slider').height(minheight);
		//$('div.coda-slider .panel').height($(document).height() - $('#headerouter').height() -30);
	});
	
	//Homepage speech bubbles
	$('.home .home-nav li').bind("mouseenter", (function () {
      $("div", this).fadeIn("fast");
    }));

	$('.home .home-nav li').bind("mouseleave", (function () {
	   $("div", this).fadeOut("fast");
	}));
	 
	 $('.map').mouseover(function(){
	  $(this).animate({ 
        left: "230"
     }, 100 );
    });
	 
	 $('.map').mouseout(function(){
	  $(this).animate({ 
        left: "250"
     }, 100 );
    });
	 
});






