<!-- // 
var gWinPopup = null;
	
// Bookmarker Radio Classique
function addToFavorites() {
	if (window.sidebar)
		window.sidebar.addPersistentPanel("Radioclassique",window.location.href,"");
	else if (window.external)
			window.external.AddFavorite(window.location.href, "Radioclassique");
		 else
		 	alert("Votre navigateur ne supporte pas cette fonctionnalit?.");
		 	
	return false;
}

function ctFormat(val) {
	var str = "";
	
	if (val < 10)
		return "0" + val;
	else
		return "" + val;
}

function clockTime(clockId) {
	var d = new Date();
	
	var jour = d.getDate();
    var mois = d.getMonth() + 1;
    var annee = d.getYear();
    var heures = d.getHours();
    var minutes = d.getMinutes();
    
    if (annee < 2000) annee = annee + 1900;
    
    var str = ctFormat(jour) + "/" + ctFormat(mois) + "/" + annee + " " + ctFormat(heures) + ":" + ctFormat(minutes);
	
	document.getElementById(clockId).innerHTML = str;
	
	setTimeout("clockTime('" + clockId + "')", 10000);
}


/* test menu nico */
function hover(obj){
     ul = obj.getElementsByTagName('ul');
     if(ul.length > 0)
     {
          style = ul[0].style;
          style.display = 'block';
     }
}
function unhover(obj){
     ul = obj.getElementsByTagName('ul');
     if(ul.length > 0){
          style = ul[0].style;
          style.display = 'none';
     }
}
function setHover(){
	        
     if(/MSIE/.test(navigator.userAgent))
     {
          li = document.getElementById('nav').getElementsByTagName('li');

          for(var i=0; i < li.length; i++)
          {
		  	   li[i].onmouseover = function(){hover(this)};
               li[i].onmouseout = function(){unhover(this)};
          }
     }
}

function winOpen(url, width, height) {
	var bCenter = false;
	var left = 0, top = 0;
	
	if (winOpen.arguments.length == 4)
		bCenter = winOpen.arguments[3];
	
	if (bCenter) {
   		left = (screen.width / 2) - (width / 2);
   		top = (screen.height / 2) - (height / 2);
	}
	
	gWin = window.open(url, "_popupRC_", "left="+left+",top="+top+",width="+width+",height="+height+",menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no");
	
	if (gWin)
		gWin.focus();
	
	return gWin;
}

function winReOpen(url, width, height) {
	var bCenter = false;
	
	if (winOpen.arguments.length == 4)
		bCenter = winOpen.arguments[3];
	
	if (gWinPopup && !gWinPopup.closed) {
		gWinPopup.close();
		gWinPopup = null;
	}
	
	gWinPopup = winOpen(url, width, height, bCenter);
}


function winOpenVideo(url, width, height) {
	var bCenter = false;
	var left = 0, top = 0;
	
	if (winOpenVideo.arguments.length == 4)
		bCenter = winOpenVideo.arguments[3];
	
	if (bCenter) {
   		left = (screen.width / 2) - (width / 2);
   		top = (screen.height / 2) - (height / 2);
	}
	
	gWinVideo = window.open(url, "_popupRCVideo_", "left="+left+",top="+top+",width="+width+",height="+height+",menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no");
	
	if (gWinVideo)
		gWinVideo.focus();
	
	return gWinVideo;
}

function virginSearch(form)
{
	var url = "http://virginmega-classique.vm-wl.com/default.aspx?RefererId=97&BannerId=1&";
	
	switch (form.affSel.options[form.affSel.selectedIndex].value)
	{
		case '1' :
			form.action = url + "RechArtiste=" + escape(form.affMC.value);
			break;
		case '2' :
			form.action = url + "RechAlbum=" + escape(form.affMC.value);
			break;
		case '3' :
			form.action = url + "RechTitre=" + escape(form.affMC.value);
			break;
	}
	
	form.submit();
}

window.onload = function() {
	clockTime("rcTime");
	setHover();
}

// -->
