//$.localScroll.hash();

//$.localScroll();

$(function() {
	$('.shoe-thumb,#logo,.shoe-slider-next,.shoe-slider-prev,.facebook').hover(function() {
		$(this).stop().animate({
			opacity: 0.5
		}, 'slow');
	},
	
	function() {
		$(this).stop().animate({
			opacity: 1.0
		}, 'slow');
	});
});

/*
$('.shoe-thumb').click(function(event) {
	event.preventDefault();

	currentElm = $(this);
	currentPar = $(this).parent();

	if($('.active').not(currentPar).children('.shoe-box,.shoe-spacer').is(':visible')) {
		$('.active').children('.shoe-box,.shoe-spacer').slideUp(800, function() {
			$.scrollTo(currentPar,800,{
				onAfter:function(){
					$(currentElm).siblings('.shoe-box,.shoe-spacer').slideDown(800);
				}
			});
		});
		
	} else {
		$.scrollTo(currentPar,800,{
			onAfter:function(){
				$(currentElm).siblings('.shoe-box,.shoe-spacer').slideToggle(800);
			}
		});
	};

	$('.active').removeClass('active');
	$(this).parent().addClass('active');
});
*/

$(window).load(function() {
    $(".shoe-img").jCarouselLite({
        btnNext: ".shoe-slider-next",
        btnPrev: ".shoe-slider-prev",
        speed: 400,
        circular: true,
        visible: 1
    });
});

$('#form-show').click(function(event) {
	event.preventDefault();

	$('#form-container').css({
		'width': $(document).width(),
		'height': $(document).height()
	});

	$('#form-container').show();

	$(window).scrollTo(0, 800);
});

$('#form-hide').click(function() {
	$('#form-container').hide();
});
