$(document).ready(function(){
// ! BEGIN - - - - - - - - - - - -



$("#feature > a:gt(0)").hide();

setInterval(function() {
  $('#feature > a:first')
    .fadeOut(1000)
    .next()
    .fadeIn(1000)
    .end()
    .appendTo('#feature');
},  5000);

 
$("#xxfeature").slides({				
	preload: true,
    preloadImage: '/img/loading.gif',
    play: 5000,
    pause: 2500,
    hoverPause: true
});

$(window).load(function() {
    $('.nivoSlider').nivoSlider({
    
    directionNav: false,
    pauseTime: 5000,
    effect: 'fade',
    controlNav: false,
    pauseOnHover: false
    
    });
});

$("#loginlink").click(function(){

	$("#login").fadeIn(300);

});

$(".x").click(function(){

	$("#login").fadeOut(200);

});

$(".product").hover(

	function(){

		$(this).find("form").animate({bottom: "0"},300);

		$(this).find("img").animate({opacity: ".8"},300)
		
	},
		
	function(){

		$(this).find("form").animate({bottom: "-180px"},300);

		$(this).find("img").animate({opacity: "1"},300)
		
	}
); 

$(".lessonthumb").hover(

	function(){

		$(this).find(".thumbsup").stop().show().animate({paddingBottom: 65, opacity: 1},300)
		
	},
		
	function(){

		$(this).find(".thumbsup").stop().animate({paddingBottom: 0, opacity: 0},300).fadeOut(300);
		
	}
);           

// ! END - - - - - - - - - - - -
});
