$(document).ready(function() {// Deroule contenu 
	$('.deroule h2').click(function() {
					var id = $(this).attr('id');
					if ($(this).attr('class') == 'open') {
						$(this).removeClass('open');
						$('div[id=div'+id+']').slideUp();
					} else {
						$(this).addClass('open');
						$('div[id=div'+id+']').slideDown();
					}
				});
	/*
	$.post('/courses/menu.php', function(data) {
			if (data) {
				$('div[id=pronosmenu]').html(data);
				 $('.menu_hv_div').each(function() {
		is_first = true;
		$(this).css('z-index', '100');
		$(this).find('ul').each(function() {
			$(this).css('z-index', '100');
			if (is_first) {
				is_first = false;
			} else {
				getWidth = $(this).parent().parent().parent().width();
				if (navigator.appName == 'Microsoft Internet Explorer' && parseFloat(navigator.appVersion) == 4) getWidth -= 205;
				$(this).css('margin-left', getWidth + 'px');
			}
		});
	});*/
	

});

function show_prono(id) {
	window.open('/courses/prono.php?id='+id, 'prono', config='height=500, width=513, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, directories=no, status=no');
	return false;
}