window.document.titre = "BTS Assurance - Formation Assurance - ESA Assurances";
window.document.lien = "http://www.esaassurance.com";
var titre = window.document.titre;
var lien = window.document.lien;




function OpenBox()
{		
		var box = document.getElementById('share');				
		box.style.display = 'block';
}
function CloseBox()
{
		var box = document.getElementById('share');
		box.style.display = 'none';
}
function OpenAccueilBox()
{		
		var box = document.getElementById('accueilShare');				
		box.style.display = 'block';
}
function CloseAccueilBox()
{
		var box = document.getElementById('accueilShare');
		box.style.display = 'none';
}

function CloseShadowBox()
{
	setTimeout("Shadowbox.close()",3000);
}
function LienMySpace()
{		
		var adresse = "http://www.myspace.com/Modules/PostTo/Pages/?t="
									+titre
									+"&u="
									+lien;	
		
		window.open(adresse);

}
function LienFacebook()
{
		
		var adresse = "http://www.facebook.com/sharer.php?u="
									+lien
									+"&t="
									+titre;	
		
		window.open(adresse);
}
function LienDigg()
{

		var adresse = "http://digg.com/submit?Phase=2&url="
									+lien
									+"&title="
									+titre
									+"&topic=videos_educational";
									
		window.open(adresse);
}
function LienTwitter()
{				
		
		titre = encodeURIComponent(titre);
		lien = encodeURIComponent(lien);
		
		var adresse = "http://twitter.com/home?status="
									+titre
									+"%20"
									+lien;
									
		window.open(adresse);
}

/*// A REFAIRE

function LienMail()
{
	
		Shadowbox.open({
				content:    "/share-mail.htm",
				player:     "iframe",
				title:      "",
				height:     550,
				width:      600
		});

}*/
