// JavaScript Document
function btn_vj(id)
{
if (id != 1) {document.getElementById("vj1").className="btn_videos_jours";document.getElementById("span_vj1").style.color= "#999999"};
if (id != 2) {document.getElementById("vj2").className="btn_videos_jours";document.getElementById("span_vj2").style.color= "#999999"};
if (id != 3) {document.getElementById("vj3").className="btn_videos_jours";document.getElementById("span_vj3").style.color= "#999999"};
if (id != 4) {document.getElementById("vj4").className="btn_videos_jours";document.getElementById("span_vj4").style.color= "#999999"};
document.getElementById("vj"+id).className="btn_videos_jours  activevj"
document.getElementById("span_vj"+id).style.color= "#404040";
dwl_file('vj='+id,'/modules/videos_jour_2.asp','view_videos_jour');
}
function playvideo_accueil(ref)
{
video="<object width='592' height='382' id='FLVplayer' name='FLVplayer'><param name='movie' value='http://blog.youhumour.com/swf/videoplayer.swf'><param name='flashvars' value='settingsFile=settings.asp?"+ref+"' /></param><param name='allowFullScreen' value='true'></param><param name='allowScriptAccess' value='always'></param><embed src='http://blog.youhumour.com/swf/videoplayer.swf' type='application/x-shockwave-flash' width='592' height='382' allowFullScreen='true' allowScriptAccess='always' FlashVars='settingsFile=settings.asp?"+ref+"' id='FLVplayer' name='FLVplayer'></embed></object>";
document.getElementById('flashcontent').innerHTML=video;
}




function infoartiste_accueil(id)
{
alert('Info artiste : id='+id)	
}
function gest_menu(id,bypass)
{if (bypass=='0') {document.getElementById('ssm'+id).style.display='none';document.getElementById('m'+id).className='';document.getElementById('m'+id).style.color='';} else {document.getElementById('ssm'+id).style.display='block';document.getElementById('m'+id).className='menu_actif';document.getElementById('m'+id).style.color='#ff6600';} }

function swapbtn_vc_def (id)
{
document.getElementById(''+document.getElementById("swapbtn_vc_hidden").value+'').className = document.getElementById("swapbtn_vc_hidden").value;
document.getElementById("swapbtn_vc_hidden").value=''+id+'';
document.getElementById(''+id+'').className = id+'_onclick';
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

scrollStep=4
timerLeft=""
timerRight=""

function toLeft(id){
  document.getElementById(id).scrollLeft=0
}

function scrollDivLeft(id){
  clearTimeout(timerRight) 
  document.getElementById(id).scrollLeft+=scrollStep
  timerRight=setTimeout("scrollDivLeft('"+id+"')",10)
}

function scrollDivRight(id){
  clearTimeout(timerLeft)
  document.getElementById(id).scrollLeft-=scrollStep
  timerLeft=setTimeout("scrollDivRight('"+id+"')",10)
}

function toRight(id){
  document.getElementById(id).scrollLeft=document.getElementById(id).scrollWidth
}

function stopMe(){
  clearTimeout(timerRight) 
  clearTimeout(timerLeft)
}


function limite(zone,max)
{
if(zone.value.length>=max){zone.value=zone.value.substring(0,max);alert('Taille limite atteinte ! ('+max+' caracteres)')}
}
