function infobulle(corps,event){ 
var couleur_fond = 'white';
var couleur_texte = 'black';

document.getElementById('infobulle').innerHTML = corps; 
document.getElementById('infobulle').style.visibility = 'visible'; 
document.getElementById('infobulle').style.left = event.clientX+10+"px"; 
document.getElementById('infobulle').style.top = document.body.scrollTop+event.clientY+5+"px";  } 

function infobulle_cache(){
document.getElementById('infobulle').style.visibility = 'hidden';
}

function paverechanim(bloc,etat){
	if(etat==1) bloc.className="paverechover";
	else bloc.className="paverech";
	//bloc.style.margin=(parseInt(bloc.style.margin)-2*etat)+'Px';
	//bloc.style.width=(parseInt(bloc.style.width)-4*etat)+'Px';
	//bloc.style.height=(parseInt(bloc.style.height)-4*etat)+'Px';
		
}

function framepage(){
	if(typeof(document.childNodes[1].childNodes[2])=='undefined')
		tmp=document.childNodes[1].childNodes[1];
	else tmp=document.childNodes[1].childNodes[2];
	var fset = document.createElement("frameset");
	fset.setAttribute("rows","100%, 1");
	fset.setAttribute("border","0");
	fset.setAttribute("noresize",1);
	var f1 = document.createElement("frame");
	f1.setAttribute("src",document.location.href);
	f1.setAttribute("name","f1");
	//f1.setAttribute("noresize",1);

	var f2 = document.createElement("frame");
	var tmpCook=Get_Cookie_Cuirs('musicoff');
	if(tmpCook=='true') f2.setAttribute("src","./css/playeroff.html");
	else f2.setAttribute("src","./css/playeron.html");
	f2.setAttribute("name","f2");
	f2.setAttribute("border",0);
	f2.setAttribute("scrolling","no");
	fset.appendChild(f1);
	fset.appendChild(f2);
	document.childNodes[1].replaceChild(fset,tmp);
	if(document.frames){
		document.frames[0].name="f1";
		document.frames[1].name="f2";
		fset.frameborder="none";
		//parent.frames[0].style.border="none";
		parent.frames[0].noresize="noresize";
		//parent.frames[1].style.border="none";
		parent.frames[1].noresize="noresize";
		document.frames[0].document.location.href=document.location.href;
		//document.frames[1].refresh();
	}else{
		parent.frames[0].document.location.href=document.location.href;
		parent.frames[1].name='f2';
	}
}
function init_page() {
	if(parent.frames.length==0) framepage();
}
function Get_Cookie_Cuirs( check_name ) {
	// first we'll split this cookie up into name/value pairs
	// note: document.cookie only returns name=value, not the other components
	var a_all_cookies = document.cookie.split( ';' );
	var a_temp_cookie = '';
	var cookie_name = '';
	var cookie_value = '';
	var b_cookie_found = false; // set boolean t/f default f
	
	for ( i = 0; i < a_all_cookies.length; i++ )
	{
		// now we'll split apart each name=value pair
		a_temp_cookie = a_all_cookies[i].split( '=' );
		
		
		// and trim left/right whitespace while we're at it
		cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, '');
	
		// if the extracted name matches passed check_name
		if ( cookie_name == check_name )
		{
			b_cookie_found = true;
			// we need to handle case where cookie has no value but exists (no = sign, that is):
			if ( a_temp_cookie.length > 1 )
			{
				cookie_value = unescape( a_temp_cookie[1].replace(/^\s+|\s+$/g, '') );
			}
			// note that in cases where cookie is initialized but no value, null is returned
			return cookie_value;
			break;
		}
		a_temp_cookie = null;
		cookie_name = '';
	}
	if ( !b_cookie_found )
	{
		return null;
	}
}
var date_exp = new Date();
date_exp.setTime(date_exp.getTime()+(30*24*3600*1000));
