$(function() {
		   		   
// Add hover class to all <li> tags
  $("li").hover(function() {
    $(this).addClass("hover");					   
  },function() {
    $(this).removeClass("hover");
  });

  $("ul#featItems li").click(function() {
    var gotoLink = $(this).find("a").attr("href");
	window.location.href=gotoLink;
  });
  
  $(".threeTabs #rowOne h2:first").css("margin-left","38px");
  
  $(".threeTabs #rowOne h2").hover(function() {
	$(this).addClass("hover");										
  },function() {
	$(this).removeClass("hover");
  });
  
  $(".threeTabs #rowOne h2").click(function() {
    $("h2").removeClass("current");
	$(".content").addClass("hidden");
	$(this).addClass("current").next(".content").removeClass("hidden");
  });
  
  $("#buttonRight, #buttonLeft").hover(function() {
    $(this).addClass("hover");								
  }, function() {
    $(this).removeClass("hover");	
  });
  
  $("#buttonRight").addClass("hidden");
  
  $("#buttonLeft").click(function() {
    $("#bd").animate({backgroundPosition: '-50px 0px',duration:12000});
	$("#rowOne").animate({left:'-880px',top:'0px'});
	$(this).addClass("hidden");
	$("#buttonRight").removeClass("hidden");
  });
  
  $("#buttonRight").click(function() {
    $("#bd").animate({backgroundPosition: '0px 0px',duration:12000});
	$("#rowOne").animate({left:'0px',top:'0px'});
	$(this).addClass("hidden");
	$("#buttonLeft").removeClass("hidden");
  });
  
  /*
  $("#slideshow li").cycle({
    fx: 'fade',
    speed: 2000,
    timeout: 6000
  }); */
  
  $("#slider").easySlider({
		auto: true,
		continuous: true,
		speed: 1000,
		pause: 4000,
		prevText: '',
		nextText: ''
});


// Close jQuery	   
});