// JavaScript Document




// EN LOCAL, IL FAUT MODIFIER LE CHEMIN DES IMAGES


var myListener = new Object();

/**
 * Initialisation
 */
myListener.onInit = function()
{
	firstplay() ;
};
/**
 * onComplete event
 */
myListener.onFinished = function()
{
/*	getFlashObject().SetVariable("method:stop", "");
	var url = "/img/GT2F_Fin2.jpg";
	var depth = "1";
	var verticalAlign = "0";
	var horizontalAlign = "0";
	
	getFlashObject().SetVariable("method:loadMovieOnTop", url+"|"+depth+"|"+verticalAlign+"|"+horizontalAlign);	
	window.setTimeout("location=('index.php?langue=FR');",3000);
*/
	window.location.href="index.php?langue=FR" ;

};
/**
 * onComplete event
 */
myListener.onClick = function()
{
	window.location.href="index.php?langue=FR" ;
};
/**
 * Update
 */ 
myListener.onUpdate = function()
{                   
/**
		var isPlaying = (this.isPlaying == "true");
		document.getElementById("playerplay").style.display = (isPlaying)?"none":"block";
		document.getElementById("playerpause").style.display = (isPlaying)?"block":"none";                     
 */ 
 }; 


function redirige()
{
	window.location.href="index.php?langue=FR" ;
}

function getFlashObject()
{
	return document.getElementById("myFlash");
}
function play()
{
	unloadImageAuto();
	if (myListener.position == 0) {
		getFlashObject().SetVariable("method:setUrl", "anim_logo_gt2f.flv");
	}
	getFlashObject().SetVariable("method:play", "");
}
function firstplay()
{
	getFlashObject().SetVariable("method:setUrl", "anim_logo_gt2f.flv");
	getFlashObject().SetVariable("method:play", "");
}
function pause()
{
	getFlashObject().SetVariable("method:pause", "");
}
function stop()
{
	getFlashObject().SetVariable("method:stop", "");
}
function loadImage()
{
	var url = "/img/GT2F_Fin2.png";
	var depth = "1";
	var verticalAlign = "0";
	var horizontalAlign = "0";
	
	getFlashObject().SetVariable("method:loadMovieOnTop", url+"|"+depth+"|"+verticalAlign+"|"+horizontalAlign);
}
function unloadImage()
{
	var depth = document.getElementById("inputUnloadDepth").value;
	getFlashObject().SetVariable("method:unloadMovieOnTop", depth);
}
function unloadImageAuto()
{
	var depth = "1";
	getFlashObject().SetVariable("method:unloadMovieOnTop", depth);
}