$(document).ready(function() {
    $("<div id='bg'><img src='http://img.skitch.com/20091021-quwtwdwkm11f4aripajswrrmhr.png' /></div>").prependTo("#global");
	$("<p class='sec-title'>Dernière note publiée / <span>Latest note</span>").prependTo(".articles");
	$("<p class='sec-title'>Publiées précédemment / <span>Published previously</span></p>").prependTo("#article2");
	$("#bg img").css({
		position: 'fixed',
		height: '100%'
	});
	$("#legals").css({
		position: 'absolute',
		bottom: '-12000px'
//		visibility: 'hidden !important'
//		display: 'none !important'
	});
//	$(function(){
//		positionFooter(); 
//		function positionFooter(){
//			$("#cl_1_1").css({position: "absolute",top:($(window).scrollTop()+$(window).height()-$("#cl_1_1").height())+"px"})	
//		}

//		$(window)
//			.scroll(positionFooter)
//			.resize(positionFooter)
//	});
	$("<h4 class='trigger'><a href='#'>Menu</a></h4>").prependTo("#cl_1_1");
	$("#cl_1_1").css({
		opacity: 0.75
	});
	$("#cl_1_1 .column_content").hide();
	$(".trigger").click(function(){
		e = $("#cl_1_1").css("opacity");
		if (e==1) {
			$("#cl_1_1").animate({
				opacity: 1,
			},400);
		}
		else {
			$("#cl_1_1").animate({
				opacity: 0.75,
			}, 400);
		}
		$("#cl_1_1 .column_content").slideToggle("slow");
	});
});