function ChangeUrl(formulaire)
	{
		location.href = formulaire.ListeUrl.options[formulaire.ListeUrl.selectedIndex].value;
		formulaire.ListeUrl.selectedIndex = '';
	}
	
function ChangeUrl2(formulaire)
	{
		location.href = formulaire.ListeUrl2.options[formulaire.ListeUrl2.selectedIndex].value;
		formulaire.ListeUrl2.selectedIndex = '';
	}
	
function ChangeUrl3(formulaire)
	{
		location.href = formulaire.ListeUrl3.options[formulaire.ListeUrl3.selectedIndex].value;
		formulaire.ListeUrl3.selectedIndex = '';
	}
	
function ChangePage(formulaire)
	{
		location.href = formulaire.ListePage.options[formulaire.ListePage.selectedIndex].value;
		formulaire.ListePage.selectedIndex = '';
	}


function makevisible(cur,which) {
 if(document.getElementById) {
  if (which==0) {
   if(document.all) { cur.filters.alpha.opacity=100 } else { cur.style.setProperty("-moz-opacity", 1, ""); }
  } else {
   if(document.all) { cur.filters.alpha.opacity=80 } else { cur.style.setProperty("-moz-opacity", .8, ""); }
  }
 }
}

function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'no';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';

  cookie_str = document.cookie;
  cookie_str.toString();

  pos_start  = cookie_str.indexOf(name);
  pos_end    = cookie_str.indexOf('=', pos_start);

  cookie_name = cookie_str.substring(pos_start, pos_end);

  pos_start  = cookie_str.indexOf(name);
  pos_start  = cookie_str.indexOf('=', pos_start);
  pos_end    = cookie_str.indexOf(';', pos_start);
  
  if (pos_end <= 0) pos_end = cookie_str.length;
  cookie_val = cookie_str.substring(pos_start + 1, pos_end);
  if (cookie_name == name && cookie_val  == "done")
    return;

  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}


function launchNRJ() {
	window.open("http://cache.yacast.fr/V4/nrj/nrj_launch_V3.html","NRJ","width=599,height=236,toolbar=no,menubar=no,resizable=no,location=no,directories=no,status=no,scrollbars=no,copyhistory=no");
}
function launchFUNRADIO() {
	window.open("http://radio.funradio.fr","FUNRADIO","width=720,height=390,toolbar=no,menubar=no,resizable=no,location=no,directories=no,status=no,scrollbars=no,copyhistory=no");
}
function launchCHERIEFM() {
	window.open("http://player.cheriefm.fr/V4/cheriefm/cheriefm_launch_V3.html","CHERIEFM","width=599,height=236,toolbar=no,menubar=no,resizable=no,location=no,directories=no,status=no,scrollbars=no,copyhistory=no");
}
function launchSKYROCK() {
	window.open("http://player.skyrock.com/V4/skyrock/skyrock_launch_V2.html?id=skyrock","SKYROCK","width=599,height=236,toolbar=no,menubar=no,resizable=no,location=no,directories=no,status=no,scrollbars=no,copyhistory=no");
}
function launchEUROPE2() {
	window.open("http://viphttp.yacast.net/V4/player_europe2/europe2_launch_V22.html","EUROPE2","width=599,height=236,toolbar=no,menubar=no,resizable=no,location=no,directories=no,status=no,scrollbars=no,copyhistory=no");
}
function launchFREQUENCE3() {
	window.open("http://www.frequence3.fr/d-ecoute-popup.html","FREQUENCE3","width=380,height=185,toolbar=no,menubar=no,resizable=no,location=no,directories=no,status=no,scrollbars=no,copyhistory=no");
}

function redirYacast(s) {
 var temp = s.options[s.selectedIndex].value;
  if(temp!=""){
   switch (temp) {

case 'launchCheriefm' : launchCHERIEFM(); break;
case 'launchFunradio' : launchFUNRADIO(); break;
case 'launchNrj' : launchNRJ(); break;
case 'launchSkyrock' : launchSKYROCK(); break;
case 'launchEurope2' : launchEUROPE2(); break;
case 'launchFrequence3' : launchFREQUENCE3(); break;
  default : break;
   }
   s.selectedIndex = '';
  }
}

