function flashBandeau()
{

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="899" height="187">');
document.write('<param name="movie" value="images/bandeau.swf">');
document.write('<param name="quality" value="high">');
document.write('<embed src="images/bandeau.swf" width="899" height="187" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>');
}

function flashIntro()
{

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="899" height="570">');
document.write('<param name="movie" value="images/intro.swf">');
document.write('<param name="quality" value="high">');
document.write('<embed src="images/intro.swf" width="899" height="570" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>');
}

function popUpCgv(cgv) {

window.open(cgv,'PopUpCgv','resizable=no, location=no, width=326, height=600, menubar=no, statusbar=no, status=no, scrollbars=yes, toolbar=no, location=no, directories=no');
}

function resizeCgv()
{
	self.resizeTo(332,600);
}

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 - 260+"px";
    GetId("curseur").style.top=e.pageY - 250+"px";
    }
    else { // Modif proposÃ© par TeDeum, merci Ã  lui
    if(document.documentElement.clientWidth>0) {
	GetId("curseur").style.left=-260+event.x+document.documentElement.scrollLeft+"px";
	GetId("curseur").style.top=-250+event.y+document.documentElement.scrollTop+"px";
    } else {
	GetId("curseur").style.left=-260+event.x+document.body.scrollLeft+"px";
	GetId("curseur").style.top=-250+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;
}
}
