var st; /* Timeout */
function findObj(n,c) { 
var i,x,d=c?c.document:document; if(!(x=d[n])&&d.all) x=d.all[n];
if(!x && d.getElementById) x=d.getElementById(n);
return x;
}
function getBounds(obj){
var tempObj=obj;
obj.X=0; obj.Y=0; obj.W=obj.offsetWidth; obj.H=obj.offsetHeight;
 while(tempObj.tagName!='BODY'){
 obj.X+=tempObj.offsetLeft; obj.Y+=tempObj.offsetTop;
  if(!tempObj.offsetParent) break;
 tempObj=tempObj.offsetParent;
 }
//return obj.bounds=bounds
}
function placeMenuAmateur(bouton){ /* place le div */
	var ajouter = 103; 
	getBounds(bouton);
	var o = findObj('ssMenuAmateur');
	o.style.left=bouton.X+ajouter;
}
/*
	var oClip = o.style.clip.toString();
	var aClip = oClip.match(/\d{1,4}?px/g);
	var bottomClip = parseInt(aClip[2])
	alert(bottomClip)
*/
st=0;st2=0;
function menuAmateur(nb,retard){ /* Cette fonction fait apparaitre/disparaitre le div */
clearTimeout(st);
clearTimeout(st2);
	var temps=retard?100:10;
if(!retard){
	var o = findObj('ssMenuAmateur');
	var bok = true;
	var cury = parseInt(o.style.top);
	cury-= nb;
	if(cury<=112){cury = 112;bok = false;}
	if(cury>=132){cury = 132;bok = false;}
	o.style.top = cury;
	o.style.clip = "rect(0px 323px " + (132-cury) + "px 0px)";
	if(bok)st=setTimeout('menuAmateur('+nb+')',temps);
}else{
st=setTimeout('menuAmateur('+nb+')',temps);// alert('ii');
}
}
/* on ecrit le div et on le place */
document.write("<div id='ssMenuAmateur' style='position: absolute; left: 0px; top: 132px; clip: rect(0px 323px 0px 0px);' onMouseOver=\"menuAmateur(3)\" onMouseOut=\"st2=setTimeout('menuAmateur(-3,100)',10)\"><map name='ssMenu'><area href='../boxeolympique/index.php' shape='polygon' coords='0,16,5,0,101,0,96,16'><area href='../boxeeducative/index.php' shape='polygon' coords='97,16,102,0,237,0,233,16'><area href='../boxefeminine/index.php' shape='polygon' coords='234,16,239,0,322,0,322,16'></map><img border='0' src='../../images/common/bt_ss_amateur.gif' width='323' height='20' usemap='#ssMenu'></div>");

<!-- Disable
function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
//document.onselectstart=new Function ("return false")
document.oncontextmenu=new Function ("return false")
//if NS6
if (window.sidebar){
//document.onmousedown=disableselect
document.onclick=reEnable
}
//-->
