var Util = {};

Util.print = function()
{
	if(window.print)
	{
		window.print();
	}
}

Util.init = function()
{
	var impColl = Element.getElementsBySelector(document,'li.imprime');
	
	for(var i=0; i<impColl.length; i++)
	{
		Event.observe(impColl[i],'click',Util.print);
	}
}

var VideoPlayer = {};

function playVideo()
{
	VideoPlayer.play(arguments[0]);
}

VideoPlayer.play = function(arg)
{
	if(VideoPlayer.target)
	{
		VideoPlayer.target.SetVariable('videoId',arg);
      //  $('linkDetail').href = "etape_detail.php?idVideo="+arg;
	}
}

VideoPlayer.init = function()
{
	VideoPlayer.target = document.getElementById('main');
}

Event.observe(window,'load',VideoPlayer.init);
Event.observe(window,'load',Util.init);

 function fenetreCent(url,nom,largeur,hauteur,options) {
 var haut=(screen.height-hauteur)/2;
 var Gauche=(screen.width-largeur)/2;
fencent=window.open(url,nom,"top="+haut+",left="+Gauche+",width="+largeur+",height="+hauteur+","+options);
 }
