// cand se face load la document
$(function() {
	$("a.show-details, a.hide-details").click(function() {
		$("ul").find(".website-details-text").hide('normal');
		if($(this).hasClass("show-details")) {
			$(this).removeClass("show-details");
			$(this).addClass("hide-details");
			$(this).parent().parent().parent().next().show("slow");
		}
		else {
			$(this).removeClass("hide-details");
			$(this).addClass("show-details");
			$(this).parent().parent().parent().next().hide("slow");
		}
		return false;
	});
	
	$('#tab-menu a').click(function() {
		var curChildIndex = $(this).parent().prevAll().length + 1;
		$(this).parent().parent().find('.tab-selected').removeClass('tab-selected');
		$(this).addClass('tab-selected');
		$(this).children('span').addClass('tab-selected');
		$(this).parent().parent().parent().next('#tab-contents').children('.current').hide("slide",{direction: "left"},200,function() {
			$(this).removeClass('current');
			$(this).parent().children('div:nth-child('+curChildIndex+')').show("slide",{direction: "right"},500,function() {
				$(this).addClass('current');
			});
		});
		return false;								
	});

});