//--- ROLLOVER / ROLLOUT
function Roll(nameimg,val){
	var tmp = document.getElementById(nameimg);
	if( undefined!=tmp )tmp.src=val;
}
//--- FENETRE (classement)
function popen(id){
   hauteur = 600;
   largeur = 900;
   var top=(screen.height-hauteur)/2;
   var gch=(screen.width-largeur)/2;
   new_win = window.open('classement-smbg/'+id+'.html', 'win', 'toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, menubar=no, width='+largeur+', height='+hauteur+', top='+top+', left='+gch+'');
   new_win.focus();
   return;
}
function popen2(id, largeur){
   hauteur = 600;
   var top=(screen.height-hauteur)/2;
   var gch=(screen.width-largeur)/2;
   new_win = window.open('classement-smbg/'+id+'.html', 'win', 'toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, menubar=no, width='+largeur+', height='+hauteur+', top='+top+', left='+gch+'');
   new_win.focus();
   return;
}
//--- FENETRE (general)
function popup(nom,hauteur,largeur){
   var top=(screen.height-hauteur)/2;
   var gch=(screen.width-largeur)/2;
   new_win = window.open(''+nom+'', 'win', 'toolbar=no, location=no, directories=no, status=no, scrollbars=no, resizable=no, menubar=no, width='+largeur+', height='+hauteur+', top='+top+', left='+gch+'');
   new_win.focus();
   return;
}
//--- FENETRE (general)
function popup2(nom,hauteur,largeur){
   var top=(screen.height-hauteur)/2;
   var gch=(screen.width-largeur)/2;
   new_win = window.open(''+nom+'', 'win', 'toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=no, menubar=no, width='+largeur+', height='+hauteur+', top='+top+', left='+gch+'');
   new_win.focus();
   return;
}
function popupprint(nom,hauteur,largeur){
   var top=(screen.height-hauteur)/2;
   var gch=(screen.width-largeur)/2;
   new_win = window.open(''+nom+'', 'win', 'toolbar=no, location=no, directories=no, status=no, scrollbars=yes, resizable=no, menubar=yes, width='+largeur+', height='+hauteur+', top='+top+', left='+gch+'');
   new_win.focus();
   return;
}

//--- REDIRECTION VERS UNE PAGE
function Redirect(lien,num){
window.location.href=lien+'?cat='+num;
}
function Show(div){
	document.getElementById(div).style.display="";
}
function Give(id){
	document.getElementById('cache').innerHTML=id;
}
function Hide(div){
	for(i=1; i<=6; i++){
	document.getElementById('ss'+i).style.display="none";
	}
	document.getElementById('ss'+div).style.display="";
}

function affiche_div(div,val,cat){
var tab = new Array('detail_1_1','detail_1_2','detail_1_3','detail_1_4','detail_1_5','detail_2_1','detail_2_2','detail_2_3','detail_2_4','detail_2_5','detail_2_6','detail_2_7','detail_2_8','detail_3_1','detail_3_2','detail_3_3','detail_3_4','detail_3_5','detail_3_6','detail_4_1','detail_4_2','detail_4_3','detail_4_4','detail_4_5','detail_4_6','detail_4_7','detail_5_1','detail_5_2','detail_5_3','detail_5_4','detail_5_5','detail_5_6','detail_5_7','detail_5_8','detail_5_9','detail_6_1','detail_6_2','detail_6_3','detail_6_4','detail_6_5','detail_6_6','detail_6_7','detail_6_8','detail_6_9');
//alert(tab.length);
	for(i=0; i< tab.length; i++){
	document.getElementById(tab[i]).style.display="none";
	}
	document.getElementById('detail_'+div+'_'+val).style.display="";
}