function makevisible(cur,which){
strength=(which==0)? 1 : 0.2

if (cur.style.MozOpacity)
cur.style.MozOpacity=strength
else if (cur.filters)
cur.filters.alpha.opacity=strength*100
}

var bulletimg='<img id="bullet" style="position:absolute; left: -300px" src="img/fleche.gif">'

var bulletoffX=2
var bulletoffY=0

function caloffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function displaybullet(linkobj){
bulletobj.style.left=caloffset(linkobj, "left")-bulletobj.width-bulletoffX+"px"
bulletobj.style.top=caloffset(linkobj, "top")-bulletoffY+linkobj.offsetHeight/3+"px"
bulletobj.style.visibility="visible"
}

function modifylinks(){
bulletobj=document.all? document.all.bullet : document.getElementById("bullet")
for (i=0; i<document.links.length; i++){
if (document.links[i].className=="ddbullet"){
document.links[i].onmouseover=function(){displaybullet(this)}
document.links[i].onmouseout=function(){bulletobj.style.visibility="hidden"}
}
}
}

if (document.all || document.getElementById)
document.write(bulletimg)

if (window.addEventListener)
window.addEventListener("load", modifylinks, false)
else if (window.attachEvent)
window.attachEvent("onload", modifylinks)
else if (document.getElementById || document.all)
window.onload=modifylinks


var fenetre = null;

function choisirCouleur(formulaire, nom_champ) {

    if (fenetre && !fenetre.closed) fenetre.close();
    fenetre = window.open("couleurs.html?" + formulaire.name + "&" + nom_champ, "fenCouleurs", "width=400,height=270,resizable=1");
    if (!fenetre.opener) fenetre.opener = self;
}


function look(id)
{
var show = document.getElementById(id).style ;
show.display = show.display == 'inline' ? "none" : "inline" ;
}

function ejs_nodroit()
	{
	alert('Clic droit interdit');
	return(false);
	}

document.oncontextmenu = ejs_nodroit;

function look_menu_gauche(id)
{
var show = document.getElementById(id).style ;
show.display = show.display == 'inline-block' ? "none" : "inline-block" ;
}
