  function zoom(from){
    var startedCopy = false;
    var stopTurning = false;
    var slimArray = Array();
    var cptArray = 0;
    var cptPhoto = 0;
    while(!stopTurning){
      keyFind =  imageList[cptPhoto] ;
      if (from.src.search(keyFind)>=0){
        if(!startedCopy){
          startedCopy = true;
        }
        else{
          startedCopy = false;
          stopTurning = true;
        }
      }
      if(startedCopy){
        if (isset('textList')){
          tmpArray = Array(bigPath + imageList[cptPhoto],textList[cptPhoto]);
        }
        else{
          tmpArray = Array(bigPath + imageList[cptPhoto]);
        }
        slimArray[cptArray++] = tmpArray;
      }
      cptPhoto++;
      if(cptPhoto>=nbPhoto){
        if(startedCopy){
          cptPhoto=0;
        }
        else{
          stopTurning = true;
        }
      }
    }
    if(slimArray.length>0){
      jQuery.slimbox(slimArray,0, {loop: true,counterText: "",overlayOpacity:0.2});
    }
    else{
      alert('Pas de zoom!');
    }
  }

  function isset(tVar)
{
	try
	{
		var tmp = eval(tVar);
	}
	catch (e)
	{
		return false;
	}
	return true;
}





