//	jQuery
var $jQ = jQuery.noConflict();


$jQ(document).ready(function() {
//	$jQ(".calendar-table td[colspan]").addClass("colspan");
	$jQ(".calendar-table td.columPrevious a").html('<img src="img/layout/calendar/link_prev.gif" alt="" />');
	$jQ(".calendar-table td.columNext a").html('<img src="img/layout/calendar/link_next.gif" alt="" />');
	
	$bFold = false;
	$jQ("body").addClass("jsOn");
	$jQ(".jsOn #plansite ul").removeClass("treeview");
	
	// FAQ
	$jQ("#FAQ").prepend('<p id="Toggle"><a href="javascript:;">Tout afficher / masquer</a></p>');
	$jQ(".faq dd").hide(0).removeClass("on");
	$jQ(".faq dt").click(function() {
		if($jQ(this).next().is("dd")) {
			if($jQ(this).next().hasClass("on")) {
				$jQ(this).next().slideUp("fast");
			} else {
				$jQ(this).next().slideDown("fast");
			}
			$jQ(this).toggleClass("on");
			$jQ(this).next().toggleClass("on");
		}
	});
	
	// afficher / déplier tout
	$jQ("#FAQ #Toggle a").click(function() {
		$jQ(".faq dt").each(function(counter) {
			if($bFold) {
				if($jQ(this).next().is("dd")) {
					$jQ(this).next().removeClass("on").slideUp("fast");
				}
				$jQ(this).removeClass("on");
			} else {
				
				if($jQ(this).next().is("dd")) {
					$jQ(this).next().addClass("on").slideDown("fast");
				}
				$jQ(this).addClass("on");
			}
		});
		
		$bFold = ($bFold == true ? false : true);
	});
});