function pronos_input(id_input,prono,sport) {
			
			if ((id_input != '') && (prono != '')) {				
				document.getElementById('i1_'+id_input).checked=false;
				if (sport != 'basketball') document.getElementById('i2_'+id_input).checked=false;
				document.getElementById('i3_'+id_input).checked=false;				
				document.getElementById('i'+prono+'_'+id_input).checked=true;
			
				document.getElementById('a1_'+id_input).style.backgroundColor="#eff9d6";
				if (sport != 'basketball') document.getElementById('a2_'+id_input).style.backgroundColor="#eff9d6";
				document.getElementById('a3_'+id_input).style.backgroundColor="#eff9d6";			
				document.getElementById('a'+prono+'_'+id_input).style.backgroundColor="#3ae000";			
				
			}			
			return true;
}
function prono_input(id_input,prono) {
	return true;
}
function set_tribune_place() {
if (document.body.clientWidth > 1000)
	document.getElementById('block_tl').style.left = (document.documentElement.clientWidth-200)+'px';
}
function center_content() {
 if (document.body.clientWidth > 1000) {
			  var marginleft = document.documentElement.clientWidth;
			  marginleft = (marginleft - 380);
			  marginleft = ((marginleft-document.getElementById("content_pronos_texte").offsetWidth)/2);		 				
			  document.getElementById('center_content').style.marginLeft = marginleft+'px';

	}
}
$(function() {

	$('#info_pronos').draggable(
		{
			ghosting:	true,
			
					opacity:	0.4,				
					zIndex: 	1000,				
					easing: 'bounceout',
					stop: function() { enregpos_info_box();}
					
		}
	);
});


function recallhoverinput(id_input,prono){
			if ((id_input != '') && (prono != '')) {

				if ((document.getElementById('i'+prono+'_'+id_input).checked) == false)
					document.getElementById('a'+prono+'_'+id_input).style.backgroundColor="#ccd783";
			}
			return true;
}

function recalloutinput(id_input,prono){
			if ((id_input != '') && (prono != '')) {

				if ((document.getElementById('i'+prono+'_'+id_input).checked) == false)
					document.getElementById('a'+prono+'_'+id_input).style.backgroundColor="#eff9d6";
			}
			return true;
}


function blinkIt() {	
	if (navigator.appName!="Netscape") {		
		if (document.getElementsByTagName('blink').length > 1)	
		 {		
			if(typeof(cligno) == "undefined") cligno = 1;		
			for(i=0;i<document.getElementsByTagName('blink').length;i++) {
				
				s=document.getElementsByTagName('blink')[i];
				s.style.visibility=(cligno==1)?'visible':'hidden';			
			}
			if (cligno == 1) { cligno = 2; setTimeout('blinkIt()',500);}
			else if (cligno == 2){ cligno = 1; setTimeout('blinkIt()',1200);}
	   	}
	}
}


function compteARebours(idc,anneeEv,moisEv,jourEv,heureEv,minEv,secEv,anneeAc,moisAc,jourAc,heureAc,minAc,secAc,count_timer) {	
	//initialisations des variables
	//secEv = 0;
	msecEv = 0;
	msecAc = 0;
	
	count_timer++;
	
	Maintenant = new Date(anneeAc,moisAc-1,jourAc,heureAc,minAc,secAc,msecAc);
	TempMaintenant = Maintenant.getTime() + Math.floor(count_timer * 1000);
	
	Future = new Date(anneeEv,moisEv-1,jourEv,heureEv,minEv,secEv,msecEv);
	
	TempFuture = Future.getTime();

	
	DiffSec = Math.floor((TempFuture-TempMaintenant)/1000);
	DiffMin = Math.floor(DiffSec/60);
	Diffheure = Math.floor(DiffMin/60);
	DiffJour = Math.floor(Diffheure/24);
	
	//fin initialisations
	
	//gestion des unités par 60 et 24
	
	while (DiffMin>=60)
			{
			DiffMin = DiffMin-60;
			}
	while (Diffheure>=24)
			{
			Diffheure = Diffheure-24;
			}
	while (DiffSec>=60)
			{
			DiffSec = DiffSec-60;
			}
	
	// fin gestion des unités
	
	//gestion des affichages
	if (DiffJour <= 0) {
		DiffJour = '';
		echoJ = '';		
	}
	else {		
		if (DiffJour == 1) echoJ = 'J - ';
		else echoJ = 'J - ';
	}
		
	if ((Diffheure <= 0) && (DiffJour <= 0)) {
		Diffheure = '';
		echoH ='';
	}
	
	else {				
		if (Diffheure <= 1) echoH = ':';
		else echoH = ':';				
	}
	
	if ((Diffheure < 10) && (Diffheure > 0)) {
		Diffheure = '0'+Diffheure;
	}
	else if ((Diffheure == 0) && (DiffJour > 0)) {
		Diffheure = '00';
	}
	
	if ((DiffMin <= 0) && (Diffheure <= 0) && (DiffJour <= 0)) {
		DiffMin = '';
		echoM = '';
	}
	
	else {				
		if (DiffMin <= 1) echoM = ":";
		else echoM = ":";				
	}
	if (DiffMin < 10 ) {
		DiffMin = '0'+DiffMin;
	}
	if ((DiffSec <= 0) && (DiffMin <= 0) && (Diffheure <= 0) && (DiffJour <= 0)) {
		Diffsec = '';
		echoS = '';
	}
	
	else {				
		if (DiffSec <= 1) echoS = "''";
		else echoS = "''";				
	}
	echoS = '';
	if (DiffSec < 10 ) {
		DiffSec = '0'+DiffSec;
	}
	//fin gestion des affichages
	
	msg = DiffJour + echoJ + Diffheure + echoH + DiffMin + echoM + DiffSec + echoS; //message final
	
	if (DiffSec >= 0) { //si la date est pas encore dépasser, affichage dans le tag avec l'id var idc et relance de la fonction toutes les secondes


		replaceHtml(idc,msg);
		document.getElementById(idc).style.fontSize		 = "9px";
		document.getElementById(idc).style.color 		 = "#3d8dcd";	
		document.getElementById(idc).style.fontStyle     = "normal";
		document.getElementById(idc).style.letterSpacing = "0px";	
		setTimeout("compteARebours('"+idc+"',"+anneeEv+","+moisEv+","+jourEv+","+heureEv+","+minEv+","+secEv+","+anneeAc+","+moisAc+","+jourAc+","+heureAc+","+minAc+","+secAc+","+count_timer+")",1000);
		
		
	}
	//else document.location.reload();
}


function replaceHtml(el, html) {
        var oldEl = (typeof el === "string" ? document.getElementById(el) : el);
        var newEl = document.createElement(oldEl.nodeName); 
        newEl.id = oldEl.id;
        newEl.className = oldEl.className;      
        newEl.innerHTML = html;
        oldEl.parentNode.replaceChild(newEl, oldEl); 
		return newEl;
};

function test_valid()
{
if (typeof(winlivetiming) == 'object')
winlivetiming.focus();
} 
 
function toggle_display(elmt) {
	if (getObject(elmt).style.display=="none") {

      show(elmt);

    }

    else {

      hide(elmt);

    }

} 
//------------------------------


function getHTTPObject(ide)
{
  var xmlhttp = false;


  /* Compilation conditionnelle d'IE */
  /*@cc_on
  @if (@_jscript_version >= 5)
     try
     {
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
     }
     catch (e)
     {
        try
        {
           xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch (E)
        {
           xmlhttp = false;
        }
     }
  @else
     xmlhttp = false;
  @end @*/

  /* on essaie de créer l'objet si ce n'est pas déjà fait */
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined')
  {
     try
     {
        xmlhttp = new XMLHttpRequest();
     }
     catch (e)
     {
        xmlhttp = false;
     }
  }

  if (xmlhttp)
  {
     /* on définit ce qui doit se passer quand la page répondra */
     xmlhttp.onreadystatechange=function()
     {
        if (xmlhttp.readyState == 4) /* 4 : état "complete" */
        {
           if (xmlhttp.status == 200) /* 200 : code HTTP pour OK */
           {
              /*
              Traitement de la réponse.
              Ici on affiche la réponse dans une boîte de dialogue.
              */
			  			 
			
              if (affiche==ide) document.getElementById('place'+ide).innerHTML = (xmlhttp.responseText);
			  
			  if (affiche_pseudo==ide) {document.getElementById('pseudo_src').innerHTML = (xmlhttp.responseText); }
			  
			  if (affiche_description==ide) document.forms.ajout.descriptionsite.value= (xmlhttp.responseText);
			  if (affiche_description==ide) document.forms.ajout.descriptionsite.value= (xmlhttp.responseText);
			  //if (ide=='ok') document.getElementById('verif').innerHTML = (xmlhttp.responseText);
			  if (refresh_page == ide) {
				  if (xmlhttp.responseText == 'rafraichir') document.location = 'http://www.pronos.fr/inc/vote.php?action=vote';
			  }
			  
			  if (ide == 6) {
			
			window.location=('forum-'+document.getElementById('nav_forum').options[document.getElementById('nav_forum').selectedIndex].value+'-'+xmlhttp.responseText+'.html')
			}
		
			
           }
        }
     }
  }
  return xmlhttp;
}
 
function hideChamp (ide,idm) {
  affiche=false;
  document.getElementById('place'+ide+''+idm).innerHTML ="";
 
 
 }

function ajax_display_menu(id_dis)
 {
	id_placement_match 		= false;
	affiche					= false;	
	affiche_pseudo			= false;
	affiche_description		= false;
	refresh_page = false;	
	
    sendData('GET','http://www.pronos.fr/ajax_redirection.php','xmlhttp=1&'+'id_display='+id_dis,'ok'); 
 
 }
 
 function ajax_display_stats_player(id_s,id_c,id_u)
 {
	id_u = typeof(id_u) != 'undefined' ? id_u : 0;
	id_placement_match 		= false;
	affiche					= 69;	
	affiche_pseudo			= false;
	affiche_description		= false;
	refresh_page = false;
		
    sendData('GET','http://www.pronos.fr/ajax_redirection.php','xmlhttp=1&'+'ids='+id_s+'&idc='+id_c+'&iducourant='+id_u,69); 
 
 }
 
 
 
function infoEquipe(ide,idm)
 {
	id_placement_match 		= ide+''+idm;
	affiche					= id_placement_match;	
	affiche_pseudo			= false;
	affiche_description		= false;
	refresh_page = false;
	
	
    sendData('GET','http://www.pronos.fr/ajax_redirection.php','xmlhttp=1&'+'ide='+ide+'&idm='+idm,id_placement_match); 
 
 }
 
function infoEquipe_rugby(ider,idmr)
 {
	id_placement_matchr 	= ider+''+idmr;
	affiche					= id_placement_matchr;	
	affiche_pseudo 			= false;
	affiche_description		= false;
	
	refresh_page = false;
	sendData('GET','http://www.pronos.fr/ajax_redirection.php','xmlhttp=1&'+'ider='+ider+'&idmr='+idmr,id_placement_matchr); 
 
 }
 
 function infoEquipe_basketball(ideb,idmb)
 {
	
	
	id_placement_matchr 	= ideb+''+idmb;
	affiche					= id_placement_matchr;	
	affiche_pseudo 			= false;
	affiche_description		= false;
	
	
	refresh_page = false;
	sendData('GET','http://www.pronos.fr/ajax_redirection.php','xmlhttp=1&'+'ideb='+ideb+'&idmb='+idmb,id_placement_matchr); 
 
 }
 
 function verif()
 {
	affiche = false;
	affiche_pseudo = false;
	affiche_description = false;
	refresh_page = false;
	
    sendData('GET','http://www.pronos.fr/ajax_redirection.php','xmlhttp=1&'+'verif=ok','ok'); 
 
 }
 
  function verif__()
 {
	affiche = false;
	affiche_pseudo = false;
	affiche_description = false;
	refresh_page = false;
	
    sendData('GET','http://www.pronos.fr/ajax_redirection.php','xmlhttp=1&'+'verif=okk','ok'); 
 
 }
 
 function sortie_partenaire(idp)
 {	
	affiche = false;
	affiche_pseudo = false;
	affiche_description = false;
	refresh_page = false;
	
    sendData('GET','http://www.pronos.fr/ajax_redirection.php','xmlhttp=1&'+'idp='+idp,idp); 
 
 }
 
  function src_pseudo(pseudo)
 {	
 	
 	affiche = false;
 	affiche_pseudo = pseudo;
	affiche_description = false;
	refresh_page = false;
	
    sendData('GET','http://www.pronos.fr/ajax_redirection.php','xmlhttp=1&'+'pseudo='+pseudo,pseudo); 
	document.getElementById('pseudo_src').style.visibility = "visible";	
	
 
 }
 
   function src_team(team)
 {	
 	
 	affiche = false;
 	affiche_pseudo = team;
	affiche_description = false;
	refresh_page = false;
	
    sendData('GET','http://www.pronos.fr/ajax_redirection.php','xmlhttp=1&'+'team='+team,team); 
	document.getElementById('pseudo_src').style.visibility = "visible";	
	
 
 }
 
 function check_description(url_site) {

	affiche = false;
	affiche_pseudo = false;
	
 	affiche_description = url_site;
    sendData('GET','http://www.pronos.fr/ajax_redirection.php','xmlhttp=1&'+'urlcheck='+url_site,url_site); 
 

}

function verif_indice(idq,idu) {
	affiche = false;
	affiche_pseudo = false;
 	affiche_description = false;
	
	refresh_page = idu;
	sendData('GET','http://www.pronos.fr/ajax_redirection.php','xmlhttp=1&'+'idq='+idq+'&'+'idu='+idu,idu);
	
	
}
function enregpos_marquee(pos) {
	affiche = false;
	affiche_pseudo = false;
	affiche_description = false;
	refresh_page = false;
	
    sendData('GET','http://www.pronos.fr/ajax_redirection.php','xmlhttp=1&'+'enreg_pos='+pos,'ok');
}

function enregpos_marquee_2(pos) {
	affiche = false;
	affiche_pseudo = false;
	affiche_description = false;
	refresh_page = false;
	
    sendData('GET','http://www.pronos.fr/ajax_redirection.php','xmlhttp=1&'+'enreg_pos='+pos,'ok');
}

function enregpos_info_box() {
	affiche = false;
	affiche_pseudo = false;
	affiche_description = false;
	refresh_page = false;		
    sendData('GET','http://www.pronos.fr/ajax_redirection.php','xmlhttp=1&'+'ix='+document.getElementById('info_pronos').style.left+'&iy='+document.getElementById('info_pronos').style.top,'ok');
}

function reinit_info_box() {
	affiche = false;
	affiche_pseudo = false;
	affiche_description = false;
	refresh_page = false;	
	
    sendData('GET','http://www.pronos.fr/ajax_redirection.php','xmlhttp=1&'+'ix=200px'+'&iy=0px','ok');
	document.getElementById('info_pronos').style.top = '0px'
	document.getElementById('info_pronos').style.left = '200px'
}

function pun_url_js(url) {
	
	affiche = false;
	affiche_pseudo = false;
	affiche_description = false;
	refresh_page = false;
	
	
    sendData("GET", "http://www.pronos.fr/ajax_redirection.php?pun_url="+url,'',6); 

		
	
}



 /**
  * Envoie des données à l'aide d'XmlHttpRequest?
  * @param string methode d'envoi ['GET'|'POST']
  * @param string url
  * @param string données à envoyer sous la forme var1=value1&var2=value2...
  */
 function sendData(method, url, data,ide)
 {
	
    var xmlhttp = getHTTPObject(ide);
	
    if (!xmlhttp)
    {
		
        return false;
    }

    if(method == "GET")
     {
	 
     if(data == 'null')
     {
            xmlhttp.open("GET", url, true); //ouverture asynchrone			
			
     }
     else
     {
			
            xmlhttp.open("GET", url+"?"+data, true);
			
     }
        xmlhttp.send(null);
     }
     else if(method == "POST")
     {
        xmlhttp.open("POST", url, true); //ouverture asynchrone
        xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
     xmlhttp.send(data);
     }
    return true;
 }
 
 function OpenNamedWin(url, namee, w, h){
	larg=(screen.width/2);
	haut=(screen.height/2);	
	toppop=haut-(haut/2);
	leftpop=larg-(larg/2);
	var szParams = "toolbar=no,width=" + w + ",height=" + h + ",top=" + toppop + ",left=" +leftpop + ",scrollbars=yes,resize=yes,status=yes";	 
	 nam=namee;
	 win = window.open(url,nam, szParams);
	 win.focus();
 }

 
function player(p){
       var width=300;
       var height=245;
       var top=(screen.height-height)/2;
       var left=(screen.width-width)/2;
       window.open('http://www.espritrankil.fr/radio/Radio.php?stream='+p,
              "Radio_EspritTrankil",
              "toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, copyhistory=yes, width="+width+", height="+height+", left="+left+", top="+top);
}

	


function press_touche() {

	nb = document.pseudo_src_form.pseudo.value.length;
	
	if (nb >0) {
		pseudo=document.pseudo_src_form.pseudo.value;
		src_pseudo(pseudo);
		
	}
	else {
		document.getElementById('pseudo_src').style.visibility = "hidden";
		
	}
}

function press_touche_team() {

	nb = document.pseudo_src_form.pseudo.value.length;
	
	if (nb >0) {
		team=document.pseudo_src_form.pseudo.value;
		src_team(team);
		
	}
	else {
		document.getElementById('pseudo_src').style.visibility = "hidden";
		
	}
}




function js_display_menu(id_display) {	
	
	
	
	if (document.getElementById(id_display).style.display != 'none') {		
		
		
			
			$("#"+id_display).hide('drop','',1500,'');
			setTimeout("timer_display('"+id_display+"')",2000);
					
		
	}
	else {

		document.getElementById(id_display).style.display = 'block';		
		$("#"+id_display).show('drop','',1500,'');
	
		
	}
	ajax_display_menu(id_display);
	return false;
	
}
function timer_display(id_display) {	
		
		
		document.getElementById(id_display).style.display = 'none';		
		
}
function moove_marquee(id_object) {

	Pas_marquee 		= Pas_marquee;
	vitesse_marquee		= 30;	
	object_marquee		= document.getElementById(id_object);	
	width_marquee 		= object_marquee.clientWidth;
	
	countnb_marquee		= countnb_marquee+1;	
	object_marquee.style.left 	= Pas_marquee+"px";
	
	timermarquee 		= setTimeout("moove_marquee('"+id_object+"');", vitesse_marquee);
	
	if (sens_marquee == 'right') Pas_marquee 				= Pas_marquee + 2;
	else Pas_marquee 				= Pas_marquee - 2;	
	
	if (Pas_marquee<-width_marquee) {		
		Pas_marquee = screen.availWidth;
		enregpos_marquee(object_marquee.style.left);
		
	}
	if (Pas_marquee >= (screen.availWidth-(vitesse_marquee*2))) {		
		Pas_marquee = screen.availWidth-(vitesse_marquee*2);		
	}	
	
	if ((countnb_marquee % 170) == 0) enregpos_marquee(object_marquee.style.left);
		
	
}

function movemouse(e)
{

  if (isdrag)
  {
 var X = tx - x;
 var Y = ty - y;
//alert(X+' '+Y); 
dobj.style.left = nn6 ? e.clientX + X : event.clientX + X;
dobj.style.top  = nn6 ? e.clientY + Y : event.clientY + Y;
   
return false;
  }
 
}
function livetiming() {
	OpenNamedWin('http://www.pronos.fr/PronosDirect/temps_en_direct_formule1_live_timing.html?popup','LiveTiming',720,560);
}
function selectmouse(e)
{
  
  var fobj       = nn6 ? e.target : event.srcElement;
  var topelement = nn6 ? "HTML" : "BODY";

  while (fobj.tagName != topelement && fobj.className != "nfo_box_moove" )
  {
    fobj = nn6 ? fobj.parentNode : fobj.parentElement;
  }

  if (fobj.className=="nfo_box_moove" )
  {
    isdrag = true;
	
// objet à déplacer 
    dobj = fobj;
// espacement gauche de l'objet 
    tx = parseInt(dobj.style.left+0);
// espacement droit de l'objet 
    ty = parseInt(dobj.style.top+0);
// position x de la souris 
    x = nn6 ? e.clientX : event.clientX;
// position y de la souris 
    y = nn6 ? e.clientY : event.clientY;
	
	
    document.onmousemove=movemouse;

    return false;
  }
}

function sequence_opacity(imageobject, opacity,pas_op,mode) {
	
	window.clearTimeout(timerop);
	 imageobject_ = document.getElementById(imageobject);
	 
	if (mode == 'up') {
		if (pas_op <= opacity) {
			pas_op = pas_op + 5;
			
			if (navigator.appName.indexOf("Netscape")!=-1
  &&parseInt(navigator.appVersion)>=5)
			imageobject_.style.MozOpacity=pas_op/100
			else if (navigator.appName.indexOf("Microsoft")!= -1 
  &&parseInt(navigator.appVersion)>=4)
			imageobject_.style.filter = "alpha(opacity = "+pas_op+")";
			
			timerop = setTimeout("sequence_opacity('info_pronos',"+opacity+","+pas_op+",'up');",70);
		}
	}
	else if (mode == 'down') {
		if (pas_op > opacity) {
			
			pas_op = pas_op - 5;
			if (navigator.appName.indexOf("Netscape")!=-1
  &&parseInt(navigator.appVersion)>=5)
			
			imageobject_.style.MozOpacity=pas_op/100
			else if (navigator.appName.indexOf("Microsoft")!= -1 
  &&parseInt(navigator.appVersion)>=4)
			imageobject_.style.filter = "alpha(opacity = "+pas_op+")";
			
			timerop = setTimeout("sequence_opacity('info_pronos',"+opacity+","+pas_op+",'down');",70);
		}
	
	}
}



function lightup(imageobject, opacity,mode){
imageobject_ = document.getElementById(imageobject);
	if (mode == 'up') {
		pas_op = 20;
		
		if (navigator.appName.indexOf("Netscape")!=-1
  &&parseInt(navigator.appVersion)>=5)
			
			imageobject_.style.MozOpacity=50/100
			else if (navigator.appName.indexOf("Microsoft")!= -1 
  &&parseInt(navigator.appVersion)>=4)
			imageobject_.style.filter = "alpha(opacity = 50+)";
			
			
	}
	else {
		pas_op = 100;
		if (navigator.appName.indexOf("Netscape")!=-1
  &&parseInt(navigator.appVersion)>=5)
			
			imageobject_.style.MozOpacity=100/100
			else if (navigator.appName.indexOf("Microsoft")!= -1 
  &&parseInt(navigator.appVersion)>=4)
			imageobject_.style.filter = "alpha(opacity = 100)";
			
	}
	
	
	
			
			
	timerop = setTimeout("sequence_opacity('info_pronos',"+opacity+","+pas_op+",'"+mode+"');",0);
  

	
}

function switch_mode_top3 (){

	current_mode = document.getElementById('foot_ind_mode').style.display;
	
	if ((current_mode == '')) {
	
		document.getElementById('foot_ind_mode').style.display = 'none';
		document.getElementById('rugby_ind_mode').style.display = 'none';
		document.getElementById('f1_ind_mode').style.display = 'none';
		
		document.getElementById('top3_rugby').style.display = 'none';
		document.getElementById('top3_foot').style.display = 'none';
		document.getElementById('top3_f1').style.display = 'none';
		
		document.getElementById('foot_groupe_mode').style.display = '';
		document.getElementById('rugby_groupe_mode').style.display = '';
		document.getElementById('f1_groupe_mode').style.display = '';
		
		document.getElementById('top3_rugby_groupe').style.display = '';
		document.getElementById('top3_foot_groupe').style.display = '';
		document.getElementById('top3_f1_groupe').style.display = '';
		
		document.getElementById('switcher_mode').src = 'http://images.pronos.fr/picto_ind.png';
	}
	
	else {
	
		document.getElementById('foot_ind_mode').style.display = '';
		document.getElementById('rugby_ind_mode').style.display = '';
		document.getElementById('f1_ind_mode').style.display = '';
		
		document.getElementById('top3_rugby').style.display = '';
		document.getElementById('top3_foot').style.display = '';
		document.getElementById('top3_f1').style.display = '';
		
		document.getElementById('foot_groupe_mode').style.display = 'none';
		document.getElementById('rugby_groupe_mode').style.display = 'none';
		document.getElementById('f1_groupe_mode').style.display = 'none';
		
		document.getElementById('top3_rugby_groupe').style.display = 'none';
		document.getElementById('top3_foot_groupe').style.display = 'none';
		document.getElementById('top3_f1_groupe').style.display = 'none';
				
		document.getElementById('switcher_mode').src = 'http://images.pronos.fr/picto_groupe.png';
	
	
	}
}

function strstr( haystack, needle, bool ) {
	
    var pos = 0;
 
    pos = haystack.indexOf( needle );
    if( pos == -1 ){
        return false;
    } else{
        if( bool ){
            return haystack.substr( 0, pos );
        } else{
            return haystack.slice( pos );
        }
    }
}

function move_marquee_texte(pos) {
	
		if (pos >= 3) {
			document.getElementById('div_marquee').style.paddingTop = pos+"px" ;			
			setTimeout("move_marquee_texte("+(pos-0.2)+")",10)
			
		}
	
	}
	function replace_marquee_texte() {	
		replaceHtml('div_marquee',marquee_scroll_message[cnt_msg]);	
		document.getElementById('div_marquee').style.marginLeft  = Math.round(document.documentElement.clientWidth/7)+"px";	
		
		if (cnt_msg > -10) {
		
			move_marquee_texte(20)
		
		
		}
		cnt_msg ++;
		if (cnt_msg > nb_total) cnt_msg = 0;
			setTimeout("replace_marquee_texte()",6000);
		if (cnt_msg % 2 == 0) 
			enregpos_marquee_2(cnt_msg);
	
}
	
function add_flag(competition) {

	url_image_flag = 'http://images.pronos.fr/logos/equipes/';
	width_flag = '';
	if (strstr(competition,'France') != false) {	
		if ((strstr(competition,'Ligue 1') == false) && (strstr(competition,'Ligue 2') == false) && (strstr(competition,'Coupe') == false)) width_flag = 'width="30px"'	
		competition = competition.replace('France','<img align="absmiddle" src="'+url_image_flag+'7982_france.png" '+width_flag+' border="0" /> France');
	}
	if (strstr(competition,'Angleterre') != false) {		
		if (strstr(competition,'Premiereship') == false) width_flag = 'width="30px"'		
		competition = competition.replace('Angleterre','<img align="absmiddle" src="'+url_image_flag+'733_angletere.png" '+width_flag+' border="0" /> Angleterre');
	}
	if (strstr(competition,'Espagne') != false) {		
		if (strstr(competition,'Primera Division') == false) width_flag = 'width="30px"'	
		competition = competition.replace('Espagne','<img align="absmiddle" src="'+url_image_flag+'5108_Espagne.png" '+width_flag+' border="0" /> Espagne');
	}
	if (strstr(competition,'Allemagne') != false) {		
		if (strstr(competition,'1. Bundesliga') == false) width_flag = 'width="30px"'	
		competition = competition.replace('Allemagne','<img align="absmiddle" src="'+url_image_flag+'648_allemagne.png" '+width_flag+' border="0" /> Allemagne');
	}
	if (strstr(competition,'Italie') != false) {		
		if (strstr(competition,'Série A') == false) width_flag = 'width="30px"'		
		competition = competition.replace('Italie','<img align="absmiddle" src="'+url_image_flag+'8631_italie.png" '+width_flag+' border="0" /> Italie');
	}

	return competition;
}



