/* Correction des couleur png pour IE */
function IE_CorrectAlpha_PNG(){
	for(i=0; i<document.images.length; i++){
		img    = document.images[i];
		imgExt  = img.src.substring(img.src.length-3, img.src.length);
		imgExt  = imgExt.toUpperCase();
		if (imgExt == "PNG"){
			imgID    = (img.id) ? "id='" + img.id + "' " : "";
			imgClass= (img.className) ? "class='" + img.className + "' " : "";
			imgTitle= (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' ";
			imgStyle= "display:inline-block;" + img.style.cssText;
			if (img.align == "left") { imgStyle = "float:left;"  + imgStyle; } else if (img.align == "right"){ imgStyle = "float:right;" + imgStyle; }
			if (img.parentElement.href)   { imgStyle = "cursor:hand;" + imgStyle; }       
			strNewHTML    = '<span '+imgID+imgClass+imgTitle+' style="width:'+img.width+'px; height:'+img.height+'px;'+imgStyle+';'+'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+img.src+'\', sizingMethod=\'scale\');"></span>';
			img.outerHTML = strNewHTML;
			i = i-1;
		}
	}
}
     var userAgent=navigator.userAgent;
     if (userAgent.indexOf('MSIE') != -1) {
          window.attachEvent("onload", IE_CorrectAlpha_PNG);
     }


/* java pour le classement en popup */
function popupcentree(page,largeur,hauteur,options) {
	var top=(screen.height-hauteur)/2; 
	var left=(screen.width-largeur)/2;
	window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
	} 

/* java pour le liens ajouter aux favoris */
function favoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' )
	{ window.sidebar.addPanel("FUNYO-SPORTPROTO","http://www.funyo-sportproto.com",""); }
else { window.external.AddFavorite("http://www.funyo-sportproto.com","FUNYO-SPORTPROTO"); } 
} 
/* java pour le menu deroulant page reglement */
function menuderoulant(selection){window.location=selection.options[selection.selectedIndex].value;}

/* java evenement */
$(document).ready(function(){
            $("#liste_even").newsTicker();   
} )
