/* correctifs_mac */
if( navigator.appVersion.indexOf( "Macintosh" ) > -1 ) {
	if(navigator.userAgent.indexOf("Firefox")!=-1){
		document.write( "<style type='text/css'>" );
		document.write( "#copyright {width: 59em !important; }" );
		document.write( "#bottom_nav {width: 34.2em !important; }" );
		document.write( "#content-droite li.titre-menu-droite span.foncee {padding: 1px 15px 2px 8px;}" );
		document.write( "#content-droite li.titre-menu-droite span.claire {padding: 1px 15px 2px 8px;}" );
		document.write( "#content-droite li.titre-menu-droite {width: 157px; padding-right: 0px;}" );
		document.write( ".index_sujet {font-size: 1.3em; padding: 5px 0 5px; font-weight: lighter }" );
		document.write( "</style>" );
	}
	if(navigator.userAgent.indexOf("Safari")!=-1){
		document.write( "<style type='text/css'>" );
		document.write( "#copyright {width: 61.5em; }" );
		document.write( "#bottom_nav {width: 31.6em; }" );
		document.write( "</style>" );
	}
	
}

//
function roll( t, n, imgAChanger ) {
	var adr = t.getAttribute( 'src' ).substring( 0, t.getAttribute( 'src' ).lastIndexOf( '/' ) + 1 );
	t.setAttribute( 'src', adr + imgAChanger );
}

//
function manage_c_dyn( boolean_, variable ) {
	if( boolean_ == 0 ) {
		document.getElementById('desc_doc_' + variable).style.display = 'none';
		document.getElementById('button_' + variable).setAttribute('href','javascript:manage_c_dyn(1,' + variable + ');');
		document.getElementById('button_' + variable).className = 'bt';
	} else {
		document.getElementById('desc_doc_' + variable).style.display = 'block';
		document.getElementById('button_' + variable).setAttribute('href','javascript:manage_c_dyn(0,' + variable + ');');
		document.getElementById('button_' + variable).className = 'bt_on';
	}
}

// GESTION MENUS COLONNE GAUCHE
var _m_on = 0;
function menu_gauche( variable ) {
	_mgauche( variable );
	_mgauche_on( variable );
	_m_on = variable;
}

function _mgauche( variable ) {
	if( _m_on != 0 ) {
		document.getElementById('ssmenu_' + _m_on).style.display = "none";
	}
	document.getElementById('ssmenu_' + variable).style.display = "block";
}

function _mgauche_on( variable ) {
	if( _m_on != 0 ) {
		var noeud_element_ = document.getElementById('l' + _m_on);
		var txt_ = noeud_element_.getElementsByTagName('em')[0].firstChild.nodeValue;
		noeud_element_.innerHTML = '<a class="link1" href="javascript:menu_gauche(' + _m_on + ')">' + txt_ + '</a>';
	}
	var noeud_element = document.getElementById('l' + variable);
	var txt = noeud_element.getElementsByTagName('a')[0].firstChild.nodeValue;
 	noeud_element.innerHTML = '<em class="link1_on">' + txt + '</em>';
}
// FIN GESTION MENUS COLONNE GAUCHE

//
var c_radio_dyn_on = 0;
var c_radio_dyn_ss_on = 0;

function manage_radio_dyn( variable ) {
	if( c_radio_dyn_on != 0 ) {
		document.getElementById('c_radio_' + c_radio_dyn_on).style.display = 'none';
		if( document.getElementById('m_souhait_' + variable + '_1').checked == true) { document.getElementById('m_souhait_' + variable + '_1').checked = false; }
		if( document.getElementById('m_souhait_' + variable + '_2').checked == true) { document.getElementById('m_souhait_' + variable + '_2').checked = false; }
		if( document.getElementById('m_souhait_' + variable + '_3').checked == true) { document.getElementById('m_souhait_' + variable + '_3').checked = false; }
	}
	document.getElementById('c_radio_' + variable).style.display = 'block';
	c_radio_dyn_on = variable;
}