
/*
var onloadftc=null;
window.onload = function(){
	document.getElementById("fournisseur").onclick = fournisseur;
	if(document.getElementById("notesbaspage"))document.getElementById("notesbaspage").onclick = notesbaspage;
	if(onloadftc) eval(onloadftc+'()');
};
*/


if (!parent.iWin) {
	var ct = document.getElementById("content")?document.getElementById("content"):false;
	
	// fournisseur
	function frnsr(){
		var em=frn.lastChild;
		var c = em.className;
		em.className = c!="ok"?"ok":"";
		return false
	};
	var frn = document.getElementById("fournisseur");
	frn.firstChild.onclick = frnsr;
	
	// notes bas page
	function nbp(e){
		var e = !e ? event.srcElement : e.target;
		var c = document.getElementById("notes").className;
		if(c=="ok"&&e.tagName=="A"&&e.href.indexOf("#notes")==-1) return true;
		document.getElementById("notes").className = c!="ok"?"ok":"";
		return false
	};
	
	// 
	if(ct&&ct.childNodes.length>1&& ct.lastChild.previousSibling.tagName=='DIV'&&ct.lastChild.previousSibling.innerHTML.indexOf('>Notes<')>0){
		
		function nts(){
			var d = ct.lastChild.style.display;
			ct.lastChild.style.display= d=="none"?"block":"none";
			return false
		}
		
		var nt=ct.lastChild.previousSibling;
		var n=nt.getElementsByTagName('strong')[0];
		n.className="notes";
		n.onclick=nts;
		ct.lastChild.style.display="none";
	}

	//if ( ct.lastChild.previousSibling && .innerHTML );
}



