// Affichage et masquage en page d'accueil
$(document).ready(function() {
$("li.no").css("display","none");

$("div.last, div.middle, div.first").css("margin-top",50);

	$("div.first, div.middle, div.last").hover(function() {
		$(this).css("margin-top",0);
		$(this).find("li.no").css("display","inline");
	}, function() {
		$(this).css("margin-top",50);
		$(this).find("li.no").css("display","none");
	});

	$('.info_bulle').each(function()
    {
		 $(this).qtip({
			content: $(this).attr('tooltip'),
			position: {
			  corner: {
				 target: 'topMiddle',
				 tooltip: 'bottomMiddle' 
			  }
			},
			style: {
				border: {
				    width: 8,
					radius: 10,
					color: '#ff8905'
                },
				background: '#ff8905',
				color:'#FFF',
				padding:'2px 5px',
				textAlign: 'center',
                tip: true, 
                name: 'cream'
			},
			show: { effect: 'slide' },
			hide: { effect: 'none' }
		 }); 
	});

});

function EnvoiText()
{
	//var tab_texte = new Array();
	var tab_texte = "";
	var post_it = $("#post_it");				
	//var i = 0;
	post_it.find('li').each(function(){ tab_texte += $(this).text()+"]"; });				
	//post_it.find('li').each(function(){ tab_texte += $(this).text()+"|"; i++; });
	document.getElementById("post_it_swf").changetexte(post_it.find("h1").text(), tab_texte.slice(0,tab_texte.length-1), document.getElementById("lien_post_it").href);
}
			