	function init_page() {
		var puce = document.createElement("img");
		$(puce).attr("src", "img/puce.png");
		$("P.titre").before(puce);
		$(puce).addClass("puce");
		
		$("*:not(a) > IMG").filter("[src*=document]").thickboxify();
		$("TABLE.lexique TD:nth-child(1)").addClass("shaded");
		$("TABLE.lexique TD:nth-child(3)").addClass("shaded");
		$("TABLE.lexique TD:nth-child(5)").addClass("shaded");
		$("[youtube]").each( function(i) {
			$(this).css("cursor", "pointer");
			$(this).click( function(e) { display_youtube_video($(this).attr("youtube")); });
		});
		
		var screen_height = get_clientHeight() - 2;
		var white_height = $("DIV.wbg").innerHeight() * 1;
		if(white_height < screen_height) $("DIV.wbg").css("height", screen_height);
	}
	
	function load_smenu(id) {
		var reponse = send_ajax_request("POST", false, "ajax.php?class=Front_end&fonction=get_menu", "id="+id);
		if(reponse.substr(0, 2) == "[{") {
			$("DIV.smenu").children().remove();
			menu = eval("("+reponse+")");
			var html = "";
			for(i in menu) var html = "<li><a href=\""+menu[i].href+"\">"+menu[i].title+(i != (menu.length - 1)?" |":"")+"</a></li>"+html;
			$("DIV.smenu").html("<ul>"+html+"</ul>");
		}
		else alert("ERREUR : Une erreur est survenue lors du chargement du sous-menu.\n\n"+reponse);
	};
	
	function display_youtube_video(id) {
		var blocker = document.createElement("div");
		$(blocker).addClass("page_blocker");
		$(blocker).css("top", get_scrollTop());
		$(document.body).css("overflow", "hidden");
		$(document.body).append(blocker);
		var html = "<div class=\"close_popup\">Fermer X</div><object width=\"480\" height=\"385\"><param name=\"movie\" value=\"http://www.youtube.com/v/"+id+"&amp;hl=en_US&amp;fs=1\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/"+id+"&amp;hl=en_US&amp;fs=1\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"480\" height=\"385\"></embed></object>";
		var scr = document.createElement("div");
		$(scr).addClass("viewer_screen");
		$(scr).html(html);
		$(blocker).append(scr);
		$("DIV.close_popup", scr).click(function(e) { $(blocker).remove(); $(document.body).css("overflow", "visible");});
}
