
function getRefToDiv(divID) {
    if( document.getElementById ) { //DOM; IE5, NS6, Mozilla, Opera
        return document.getElementById(divID); }
    else if( document.all ) { //Proprietary DOM; IE4
        return document.all[divID]; }
    else if( document[divID] ) { //Netscape alternative
        return document[divID]; }
    else if( document.layers ) { //Netscape layers
        return document.layers[divID]; }
    return false;
}

/* Changer image j/b */
function ci(id,show) {
	refi = document.getElementById('i' + id);
	refl = document.getElementById('l' + id);

	if(show==1) {coul='j';coul2='#ECBD0F';}
	else {coul='b';coul2='#022FB0';}
	refi.src = 'images/l/' + id + coul + '.gif';
	refl.style.color = coul2;
}

/* Cacher/Afficher Div */
function sh(id) {
	refd = getRefToDiv('div' + id);

	if(refd.style.visibility == 'visible') { show1 = 'hidden'; show2 = 'absolute'; coul = 'b'; vtop='0px';}
	else  { show1 = 'visible'; show2 = 'static';  coul = 'j';  vtop='auto';}
	refd.style.visibility = show1;
	refd.style.position = show2;
	refd.style.top = vtop;
}
