
$(function(){
	//Pour la gestion des png sous ie 6
	//$(document).pngFix();
	
	$("#blocVideoHomeAll").css("height",$("#video1").outerHeight() + 30);
	$("#derniereNewsAll").css("height", $("#derniereNews1").outerHeight() + 40);
	
});

function showCalque(context){
	/*Fait apparaître un caque avec le message correspondant en fonction de context*/
	$(this).preventDefault;
	//alert($('body').height());
	$('#overlay').css('height', $('body').height());
	$('#overlay').show();
	window.scroll(0,0);
	
	//on recupère le contenu à afficher
	$.post(
		'myLightBoxContent.php',
		{context:context},
		function(data){
		
			$('#overlayContent').html(data);
			
			/*
			var marge = ($(document).width() - w)/2;
			marge = marge + 'px';
			if(w != ''){
				var width  = w + 'px'
				
				$('#overlayContent').css({'width':width, 'left':marge});
			}
			*/
			
			$('#overlayContent').show();
			
		}
	);
}

function hideCalque(context){
	$('#overlay').hide();
	$('#overlayContent').html();
	$('#overlayContent').hide();
}


