<!--Tabs-->
function tabSwitch(new_tab, new_content) {
	
	document.getElementById('content_1').style.display = 'none';
	document.getElementById('content_2').style.display = 'none';
	document.getElementById('content_3').style.display = 'none';
	document.getElementById('content_4').style.display = 'none';
	document.getElementById('content_5').style.display = 'none';
	document.getElementById('content_6').style.display = 'none';	
	document.getElementById(new_content).style.display = 'block';	
	

	document.getElementById('tab_1').className = '';
	document.getElementById('tab_2').className = '';
	document.getElementById('tab_3').className = '';
	document.getElementById('tab_4').className = '';
	document.getElementById('tab_5').className = '';
	document.getElementById('tab_6').className = '';		
	document.getElementById(new_tab).className = 'active';		

}
function tabSwitch_2(active, number, tab_prefix, content_prefix) {
	
	for (var i=1; i < number+1; i++) {
	  document.getElementById(content_prefix+i).style.display = 'none';
	  document.getElementById(tab_prefix+i).className = '';
	}
	document.getElementById(content_prefix+active).style.display = 'block';
	document.getElementById(tab_prefix+active).className = 'active';	
	
}
<!--end Tabs-->

<!--SwitchingColor-->
$(document).ready(function(){  
						   
var affichage = $.cookie('switchingColor');
if (affichage == null) { var affichage = 'Brown';}
if (affichage == 'Brown') {
	$("body").css("background-color", "#F2EBDD"); 
	};
if (affichage == 'Yellow') { 
	$("body").css("background-color", "#FFEB99"); 
	};
if (affichage == 'Green') { 
	$("body").css("background-color", "#BED76E"); 
	};

	

    $("li.brown").click( function(){ $ 
    ("body").css("background-color", "#F2EBDD"); 
	$.cookie('switchingColor', 'Brown',{ expires: 99, path: '/' });
	return false;
    }); 
    $("li.yellow").click( function(){ $ 
    ("body").css("background-color", "#FFEB99"); 
	$.cookie('switchingColor', 'Yellow',{ expires: 99, path: '/' });
	return false;
    }); 
    $("li.green").click( function(){ $ 
    ("body").css("background-color", "#BED76E"); 
	$.cookie('switchingColor', 'Green',{ expires: 99, path: '/' });
	return false;
    }); 
});
<!--End SwitchingColor-->
//
//$(document).ready(function(){
//
//    $("#liste").toggle(function(){
//        $(this).addClass("swap");
//        $("ul.display").fadeOut("fast", function() {
//            $(this).fadeIn("fast").addClass("thumb_view");
//        });
//    }, function () {
//        $(this).removeClass("swap");
//        $("ul.display").fadeOut("fast", function() {
//            $(this).fadeIn("fast").removeClass("thumb_view");
//        });
//    });
//
//});






