function detail_constructeur(opt,layer,img,constructeur,photos,fiches) {
	if (opt=='show') {
		altern_def=layer.className;
		layer.className='altern3';
		if (img && layer.childNodes[0]) {
			layer.childNodes[0].style.position='relative';
			layer.childNodes[0].style.cursor='help';
			var nouveauSPAN = document.createElement("span");
			nouveauSPAN.setAttribute("id", "vignette");
			nouveauSPAN.style.position = 'absolute';
			nouveauSPAN.style.display = 'block';
			nouveauSPAN.style.padding = '2px';
			str = '<table class="noborder" style="width:182px" cellspacing="0"><tr><td colspan="2" class="noborder center"><h1>'+constructeur+'</h1></td></tr><tr><td class="noborder" style="width:50px"><img src="http://www.moto-museum.net/images/marques/'+img+'" alt="" /></td>';
			str += '<td class="noborder">';
			str += '<span class="texte3">'+fiches+'</span> fiche';
			if (fiches>1) str += 's';
			str += '<br /><span class="texte3">'+photos+'</span> photographie';
			if (photos>1) str += 's';
			str += '</td></tr></table>';
			nouveauSPAN.innerHTML = str;
			layer.childNodes[0].appendChild(nouveauSPAN);
		}
	}
	if (opt=='hide') {
		layer.className=altern_def;
		if (layer.childNodes[0]) {
			layer.childNodes[0].style.position='static';
			if (layer.childNodes[0].getElementsByTagName("span")[0]) {
				layer.childNodes[0].removeChild(layer.childNodes[0].getElementsByTagName("span")[0]);
			}
		}
	}
}

function detail_famille(opt,layer,constructeur,photos,fiches) {
	if (opt=='show') {
		if (layer.childNodes[0]) {
			layer.childNodes[0].style.position='relative';
			layer.childNodes[0].style.cursor='help';
			var nouveauSPAN = document.createElement("span");
			nouveauSPAN.setAttribute("id", "vignette");
			nouveauSPAN.style.position = 'absolute';
			nouveauSPAN.style.display = 'block';
			nouveauSPAN.style.padding = '2px';
			str = '<table class="noborder" style="width:182px" cellspacing="0"><tr><td class="noborder center"><h1>'+constructeur+'</h1></td></tr><tr>';
			str += '<td class="noborder">';
			str += '<span class="texte3">'+fiches+'</span> fiche';
			if (fiches>1) str += 's';
			str += '<br /><span class="texte3">'+photos+'</span> photographie';
			if (photos>1) str += 's';
			str += '</td></tr></table>';
			nouveauSPAN.innerHTML = str;
			layer.childNodes[0].appendChild(nouveauSPAN);
		}
	}
	if (opt=='hide') {
		if (layer.childNodes[0]) {
			layer.childNodes[0].style.position='static';
			if (layer.childNodes[0].getElementsByTagName("span")[0]) {
				layer.childNodes[0].removeChild(layer.childNodes[0].getElementsByTagName("span")[0]);
			}
		}
	}
}


function toggle_histoire(element) {
    node = element.parentNode.parentNode.childNodes[2];
    hnode = node.style.display;
    if (hnode=="none") {
        element.innerHTML = '<img src="http://www.moto-museum.net/interface/collapse.gif" alt="" /> Masquer';
        node.style.display = "block";
    } else {
        element.innerHTML = '<img src="http://www.moto-museum.net/interface/expand.gif" alt="" /> Voir la suite';
        node.style.display = "none";
    }
}