
agent = navigator.userAgent;
	browserVer = 2;
	ext=".asx";
	if (agent.substring(0,7) == "Mozilla")
	{
	    if (parseInt(agent.substring(8,9)) >= 3) {browserVer = 1;}
	}
	
	if (browserVer == 1) {

	cursoron = new Image(16,16);
	cursoron.src = "/imgs/cursor.gif";
	cursoroff = new Image(16,16);
	cursoroff.src = "/imgs/tr.gif";

	}
	
	function hiLite(quel,remp){
		if (browserVer == 1){document.images[quel].src= "http://www.sport24.com/imgs/"+ remp + ".gif";}
	}

	function OpenWin(url, w, h){
	  var szParams = "toolbar=no,,width=" + w + ",height=" + h + ",scrollbars=no,resize=no"
	  win = window.open(url,"_new", szParams);
	}

	function OpenNamedWin(url, namee, w, h){
	  var szParams = "toolbar=no,,width=" + w + ",height=" + h + ",scrollbars=yes,resize=yes,status=yes"
	  nam=namee;
	  win = window.open(url,nam, szParams);
	  win.focus();
	}
	
	function OpenWinScroll(url, w, h){
	  var szParams = "toolbar=no,,width=" + w + ",height=" + h + ",scrollbars=yes,resize=no"
	  win = window.open(url,"_new", szParams);
	}
	
// audio	
	
			<!-- Cookies-->
	
	function getCookieVal (offset) {
  		var endstr = document.cookie.indexOf (";", offset);
  		if (endstr == -1)endstr = document.cookie.length;
  		return unescape(document.cookie.substring(offset, endstr));
	}
	
	function FixCookieDate (date) {
  		var base = new Date(0);
  		var skew = base.getTime();
  		if (skew > 0) date.setTime (date.getTime() - skew);
		}
	
	function GetCookie (name) {
  		var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0;
  		while (i < clen) {
   	 		var j = i + alen;
    		if (document.cookie.substring(i, j) == arg)
      		return getCookieVal (j);
    		i = document.cookie.indexOf(" ", i) + 1;
    		if (i == 0) break; 
  		}
  		return null;
	}
	
	function SetCookie (name,value,expires,path,domain,secure) {
  		document.cookie = name + "=" + escape (value) +	((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") +    ((secure) ? "; secure" : ""); }

		
	function DeleteCookie (name,path,domain) {
  		if (GetCookie(name)) {
		   	document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
	  	}
	}	
	<!-- fin cookies-->
	
	function sel(wich){
		if (wich==1){
			document.images["play1"].src="/imgs/_winm1.gif";
			document.images["play2"].src="/imgs/_real0.gif";
			ext=".asx";
			SetCookie ("mediaplayer","1",null,"/");
		}
		if (wich==2){	
			document.images["play1"].src="/imgs/_winm0.gif";
			document.images["play2"].src="/imgs/_real1.gif";
			ext=".ram";
			SetCookie ("mediaplayer","2",null,"/");
		}
	}
	function play(id,xx){
		basurl="http://www.sport24.com/articleimg/audio/x_publi/";
		myxx=xx;
		if (myxx==0){this.location=basurl+id+ext;}
		if (myxx==1){this.location=basurl+id+".asx";}
		if (myxx==2){this.location=basurl+id+".ram";}

	}		
	
	
// ******************** popup poster *************		 	
	picto="";
	function AffImage(pictureposter,legende){
		picto = pictureposter;
		wi=400;
		hi=400;
		titre="Poster";
		legendetex=legende;
		stats="toolbar=no,location=no,directories=no,status=no,menubar=no," ;
		stats += "resizable=yes,width=" + wi + ",height="+hi ;
		imgwin = window.open ("",titre,stats);
		window.setTimeout("makepage(picto,legendetex)",100) ;
	}
	function makepage(pic,legendetexx){
	legendetexxx=legendetexx;
	if (legendetexxx=="") espace=0;
	else espace=85;
		imgwin.document.clear();
		imgwin.document.write("<head><title>Poster</title>");
		imgwin.document.write("<s"+"cript language='Java"+"Script'>function resizeme(){picheight=document.images['posterpic'].height;picwidth=document.images['posterpic'].width;this.window.resizeTo(picwidth+40,picheight+60+"+espace+");}<"+"/s"+"cript>");
		imgwin.document.write("</head><body bgcolor='Black' text='White' onload='window.setTimeout(\"resizeme();\",100);'><center><table><tr><td>");
		imgwin.document.write("<img name='posterpic' align='absmiddle' src='"+pic+"' border='0' alt=''>");
		imgwin.document.write("</td></tr><tr><td><center><font face='Verdana,Geneva,Arial,Helvetica,sans-serif' size=2>"+legendetexxx+"</font></center></td></tr></table></center></body>");
		imgwin.document.close();
		imgwin.focus();
	}

