// JavaScript Document
function run_flash(url,width,height, wmode)
{
	/*
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="home" align="middle">\n');
	document.write('<param name="movie" value="'+url+'">\n');
	document.write('<embed src="'+url+'" width="'+width+'" height="'+height+'" type="application/x-shockwave-flash">\n');
	document.write('</embed>\n');
	document.write('</object>\n');
*/
	document.write('<object type=\"application/x-shockwave-flash\" data=\"'+url+'" width="'+width+'" height="'+height+'">');
	document.write('<param name="movie" value="'+url+'" />');
	document.write('<param name="wmode" value="'+wmode+'" />');
	document.write('</object>');

}
function run_Videoflash(streamname,width,height) {
	document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"'+width+'\" height=\"'+height+'\" id=\"FLVPlayer\">');
	document.write('  <param name=\"movie\" value=\"FLVPlayer_Progressive.swf\" />');
	document.write('  <param name=\"salign\" value=\"lt\" />');
	document.write('  <param name=\"quality\" value=\"high\" />');
	document.write('  <param name=\"scale\" value=\"noscale\" />');
	document.write('  <param name=\"FlashVars\" value=\"&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName='+streamname+'&autoPlay=true&autoRewind=false\" />');
	document.write('  <embed src=\"FLVPlayer_Progressive.swf\" flashvars=\"&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName='+streamname+'&autoPlay=true&autoRewind=false\" quality=\"high\" scale=\"noscale\" width=\"'+width+'\" height=\"'+height+'\" salign=\"LT\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />');
	document.write('</object>');
	
}


/*
	Fonction qui coche toutes les radio d'une zone
*/
function check_all(node_)
{
	for(var i=0; i<node_.childNodes.length; i++) {
		if(node_.childNodes[i].nodeName=="INPUT") {
			node_.childNodes[i].checked=true;
		} else {
			//sinon, on fouille plus bas
			check_all(node_.childNodes[i]);
		}
	}
}

/*
	Fonction qui décoche toutes les radio d'une zone
*/
function uncheck_all(node_)
{
	for(var i=0; i<node_.childNodes.length; i++) {
		if(node_.childNodes[i].nodeName=="INPUT") {
			node_.childNodes[i].checked=false;
		} else {
			//sinon, on fouille plus bas
			uncheck_all(node_.childNodes[i]);
		}
	}
}

function GetId(id)
				{
				return document.getElementById(id);
				}
				var i=false; // La variable i nous dit si la bulle est visible ou non
				
				function move(e) {
				  if(i) {  // Si la bulle est visible, on calcul en temps reel sa position ideale
				    if (navigator.appName!="Microsoft Internet Explorer") { // Si on est pas sous IE
				    GetId("curseur").style.left=e.pageX + 5+"px";
				    GetId("curseur").style.top=e.pageY + 10+"px";
				    }
				    else { // Modif proposé par TeDeum, merci à lui
				    if(document.documentElement.clientWidth>0) {
				        GetId("curseur").style.left=20+event.x+document.documentElement.scrollLeft+"px";
				        GetId("curseur").style.top=10+event.y+document.documentElement.scrollTop+"px";
				    }
				    else {
				        GetId("curseur").style.left=20+event.x+document.body.scrollLeft+"px";
				        GetId("curseur").style.top=10+event.y+document.body.scrollTop+"px";
				    }
				    }
				  }
				}
				
				function montre(text) {
				  if(i==false) {
				  GetId("curseur").style.visibility="visible"; // Si il est cacher (la verif n'est qu'une securité) on le rend visible.
				  GetId("curseur").innerHTML = text; // Cette fonction est a améliorer, il parait qu'elle n'est pas valide (mais elle marche)
				  i=true;
				  }
				}
				function cache() {
				if(i==true) {
				GetId("curseur").style.visibility="hidden"; // Si la bulle etais visible on la cache
				i=false;
				}
}
