$(document).ready(function() {

	$('#page #header .loginBox .link').click(function() {
		/*$(this).parent('.loginBox').addClass('active');*/
		$('#page #header .loginBox .loginForms .box').slideDown();
	});

	$('#page #header .loginBox .loginForms .box .close').click(function() {
		$(this).parent('div.box').slideUp(function() {
			/*$('#page #header .loginBox').removeClass('active');*/
		});
	});
	
	
	
	$('#page #header .wk .link').click(function() {
		if($('#page #header .wk .wkBox .box').length) {
			/*$(this).addClass('active');
			$(this).parent().children('#bskAmount').addClass('active');*/
			$('#page #header .wk .wkBox .box').slideDown();
		}
	});
	
	$('#page #header .wk .wkBox .box .close').click(function() {
		$('#page #header .wk .wkBox .box').slideUp(function() {
			/*$('#page #header .wk .link').removeClass('active');
			$('#page #header .wk #bskAmount').removeClass('active');*/
		});
	});
	
	$('#page #header .lastseenProduct .link').click(function() {
		if($('#page #header .lastseenProduct .seenProducts .box .scrollbox .innerbox .item').length) {
			/*$(this).addClass('active');*/
			$('#page #header .lastseenProduct .seenProducts .box').slideDown();
		}
	});
	
	$('#page #header .lastseenProduct .seenProducts .box .close').click(function() {
		$('#page #header .lastseenProduct .seenProducts .box').slideUp(function() {
			/*$('#page #header .lastseenProduct .link').removeClass('active');*/
		});
	});
	
});


function editSlideshow() {
	$('.anythingControls').hide();
	
	
	$('.contTopLeft').mouseenter(function() {
		$('.anythingControls').show();
		$('span.arrow').show();
	});
	
	$('.contTopLeft').mouseleave(function() {
		$('.anythingControls').hide();
		$('span.arrow').hide();
	});
}
