$(document).ready(function() {

	$('div.carousel ul > li ').hover(
            function () {
					$(this).find('a > p').animate({'bottom':'-50px'},300, 'easeInOutBack');
            },
            function () {
					$(this).find('a > p').animate({'bottom':'-10px'},350, 'easeOutBack');
            }
	);

	$('div.nav div.bg_pin').animate({'opacity': 0.8}, 1);
		$('div.nav div.bg_pin').hover(
				function () {
						$(this).animate({'opacity': 1}, 300);
				},
				function () {
						$(this).animate({'opacity': 0.8}, 300);
				}
	);

		$("div.show_in").show();

			$("div.children, div.box, ul.top_children").hide();
			
			$('.nav .bg_pin').click(function(){
				content = $(this).parent().children('.box');
				$(this).parent().parent().find('.bg_pin').removeClass('open');
				$(this).parent().parent().find('.box').slideUp(500); 
				if(!content.is(":visible")){
					
					$(this).addClass('open');
					content.slideDown(500);
					
					
				} else {
					$(this).removeClass('open');
					content.slideUp(500);
				}
		});
		
	$(".show_in").show();
			

	$('#tabs').smartTab({autoProgress: true});
	   
	$(function() { $(".carousel").jCarouselLite({ btnNext: ".next", btnPrev: ".prev" }); });
	
	
});


$(function() {$('a.light').lightBox();});


