/* Scripts pour International Link */
$(".login-btn").click(function () {
	if ($(".login-box").is(":hidden")) {
		$(".login-box").slideDown("slow");
		$(".login-btn").addClass("selected");
	} 
	else {
		$(".login-box").slideUp();
		$(".login-btn").removeClass("selected");
	}
	
});


$(document).ready(function() {

	$(".partner-category").click(function() {
		var me = $(this);
		var next = me.next('.partner-list-content').children();
		if ($(next).is(":hidden")) {
			$(next).slideDown();
		}
		else {
			$(next).slideUp();
		}
	});



$(".sous-menu ul:empty").hide();
	if ($(".sous-menu ul").is(":hidden")) {
		$(".sous-menu").hide();	
	}
	$(".sous-menu:empty").hide();
	
	
	$(".switch-btn").click(function(){
		if ($(this).next().next(".contenu").children(".more").is(":hidden")) {
			$(".contenu").children(".more").slideUp();
			$("li").removeClass("active");
			$(this).next().next(".contenu").children(".more").slideDown();
			$(this).parent().addClass("active");
			$(this).addClass("active");
		}
		else {
			$(this).next().next(".contenu").children(".more").slideUp();
			$(this).parent().removeClass("active");
			$(this).removeClass("active");
		}
	});
/*
	$(".switch-btn-career").click(function(){
		if ($(this +" .more").is(":hidden")) {
			alert('hidden');
			$(".contenu").children(".more").slideUp();
		}
		else {
			$(this).next().next(".contenu").children(".more").slideUp();
			//$(this).parent().removeClass("active");
			//$(this).removeClass("active");
		}
	});
*/

	$("div.partner-list-content:contains('empty')").prev().hide();
	$("div.partner-list-content:contains('empty')").hide();

	$(".stand2").hide();
	$("#nbTables_0").click(function () {
		$(".stand2").hide();
	});
	$("#nbTables_1").click(function () {
		$(".stand2").show();
	});

	$(".event").hide();
	$("#options_4").change(function () {
		if($('#options_4').is(':checked')){
			$(".event").show();
		}
		else {
			$(".event").hide();
		}
	});

	$("#extra_chair").hide();
	$("#extra_chair").appendTo($('#options_2').parent());
	$("#options_2").change(function () {
		if($('#options_2').is(':checked')){
			$("#extra_chair").show();
		}
		else {
			$("#extra_chair").hide();
		}
	});
	$("#extra_table").hide();
	$("#extra_table").appendTo($('#options_3').parent());
	$("#options_3").change(function () {
		if($('#options_3').is(':checked')){
			$("#extra_table").show();
		}
		else {
			$("#extra_table").hide();
		}
	});
	

});

