function stopSong(){ document.getElementById("lecteurZ").style.display="none"; }
function playSong(){ document.getElementById("lecteurZ").style.display="block"; }
function displayLinks(id) {
	$("#linkk .links").slideUp();
	$("#linkk #"+id).slideDown();
}
$(document).ready(function(){
	init(document);
});
function init(obj)
{
	$("a.change_content",$(obj)).click(function(){
		if($(this).attr("player") == "off")
		{
			$("#lecteurZ").hide();
		}
		else
		{
			$("#lecteurZ").show();
		}
		$.ajax({
			dataType:"html",
			url:$(this).attr("href"),
			success:function(data){
				$("#content",document).html($("#content",data).html());
				init($("#content"));
			}
		});
		return false;
	});
	$("a.newsletter",$(obj)).click(function(){
		$("#newsletterZ").show();
	})
	$(".popup").click(function(){
		
		$(".dialog_modal").dialog('open',{title:"coucou"});
		$(".dialog_modal a").blur();
		return false;
	});
	$('a.lightbox').lightBox(); 
}
