// remap jQuery to $
(function($){})(window.jQuery);


/* trigger when page is ready */
$(document).ready(function (){

	// your functions go here
	// Option set as a global variable
var slider = $('#slider1').bxSlider({
		auto: true,
      	controls: false,
		speed: 1000,
		pause: 8000
    });
  
    $('#prev').click(function(){
  	  slider.goToPreviousSlide();
  	  return false;
    });
  
    $('#next').click(function(){
  	  slider.goToNextSlide();
  	  return false;
    });
	
	$('a img').animate({
			"opacity": 1
	});
	
	$('a img').hover(function(){
  	  $(this).stop().animate({ "opacity": .8 });
	}, function () {
		$(this).stop().animate({ "opacity": 1 });
    });
	
	$(".header_hover").css("opacity","0");
	$(".header_hover").css("display","block");
		$(".home-link").hover(function() {
			$(".header_hover").stop().animate({opacity:1}, 2000);
			}, function() {
			$(".header_hover").stop().animate({opacity:0}, 1000);
});

});

/* optional triggers

$(window).load(function() {
	
});

$(window).resize(function() {
	
});

*/

