// Si NRJ on un problème avec le code que j'ai récupérer chez eux qu'il me contacte : mica.2727 (arobase) hotmail.fr
function openRadio(url, type, webradio_width, webradio_height) { 
	return popUp(url,900,750,0); 
}

function popUp(url,largeur,hauteur,scrolling) { 
	window.open(url,'popup','width=' + largeur + ',height=' + hauteur + ',left='+(Math.round((screen.width-largeur)/2))+',top='+(Math.round((screen.height-hauteur)/2))+',scrollbars='+scrolling); 
}

function ChangeBlue(id,num) {
	if(num == 0) {
		document.getElementById("BLeft" + id).style.backgroundImage = "url(tpl/TCF_FINAL/img/menu/b_left_blue.png)";
		document.getElementById("BCent" + id).style.backgroundImage = "url(tpl/TCF_FINAL/img/menu/b_center_blue.png)";
		document.getElementById("BRigh" + id).style.backgroundImage = "url(tpl/TCF_FINAL/img/menu/b_right_blue.png)";
	} else if(num == 1) {
		document.getElementById("BLeft" + id).style.backgroundImage = "url(tpl/TCF_FINAL/img/menu/b_left.png)";
		document.getElementById("BCent" + id).style.backgroundImage = "url(tpl/TCF_FINAL/img/menu/b_center.png)";
		document.getElementById("BRigh" + id).style.backgroundImage = "url(tpl/TCF_FINAL/img/menu/b_right.png)";
	}
}

function setCookie(c_name,value,exdays)
{
	var exdate=new Date();
	exdate.setDate(exdate.getDate() + exdays);
	var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
	document.cookie=c_name + "=" + c_value;
}

function getCookie(c_name)
{
	var i,x,y,ARRcookies=document.cookie.split(";");
	for (i=0;i<ARRcookies.length;i++)
	{
	  x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
	  y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
	  x=x.replace(/^\s+|\s+$/g,"");
	  if (x==c_name)
		{
			return parseInt(unescape(y));
		}
	}
}

function closeInfoweb() {
	if(getCookie('colspres')) {
		document.getElementById('infoweb').style.display = "none";
	} else {
		document.getElementById('infoweb').style.display = "block";
	}
}

