
var compte = 0;
var maxx = 0;
var act = "";
var ob=Object;


var act=racine+"img/espaceur.gif"

function onOffImg( onoff, monImage,monTitre,nb){
	zoomMedia(monImage)
	
}
function tempOnOff(a){
	var delay = 1;
	if(a=="plus"){
		if(compte<maxx){
			setTimeout("tempOnOff('"+a+"')", delay);
			varheight(20);
		}
		else{
			ob.style.height='auto';
		}
	}
	else{
		if(a=="moins"){
			if(compte>0){
				setTimeout("tempOnOff('"+a+"')", delay);
				varheight(-40);
			}
			else{
				ob.style.height='0px';
				ob.style.display='none';
				GetE('zoom').src=racine+"img/espaceur.gif";
			}
		}
	}
}
function varheight(val){
	compte=compte+val;
	ob.style.height=compte+"px";
}
function positionnerLayer(couche, nb){

   if (ns) {
    var pos = document.anchors['position'+ nb];
    with (document.getElementById(couche).style) {
      top = getTop(pos)+"px";
      
      display = 'block';
    }
  }
  else if (ie) {
    var pos = document.all['position'+ nb];
    with (document.getElementById(couche).style) {
      posTop = getTop(pos);
     
      display = 'block';
    }
  }
}
function getLeft(l){
  if (l.offsetParent) return (l.offsetLeft + getLeft(l.offsetParent));
  else return (l.offsetLeft);
}
function getTop(l){
  if (l.offsetParent) return (l.offsetTop + getTop(l.offsetParent));
  else return (l.offsetTop);
}

