function montre(id) {
	var t;
	for (var i = 1; i<=9; i++) {
		if (t = document.getElementById('smenu'+i)) {
			t.style.display='none';
		}
	}
	if (t = document.getElementById(id)) {
		t.style.display='block';
	}
};

function debug(msg) {
	if (window.console) {
		window.console.log(msg);
	} else if (jQuery.browser.msie) {
		window.alert(msg);
	}
}


$(document).ready(function() {
	$.fn.toggleNext = function() {
		
		return this.each(function() {
			
			// Button and body...
			var $this = $(this);
			var $next = $($this.next('.bd'));
			
			//debug("Doing stuff: ");
			
			// Close it if it ought to be
			if ($next.is('.open')) {} else { $next.hide(); }
			
			// Click handler...
			$this.bind('click', function() {
				if ($next.is('.open')) {
					$next.slideUp();
				} else {
					$next.slideDown();
				}
				$next.toggleClass('open');
				return false;
			 });
			
		});
		/* */
	};

	$('html').addClass('active');
	$('div.article .hd').toggleNext();
});