var arrayToShow = new Array("depliant0","depliant1","depliant2");
function slide(elementId)
{
   callBackOthers(elementId);
   var element = document.getElementById(elementId);
   if(element.up == null || element.down)
   {
      animate(elementId, 460, 0, 278, 146, 250, null);
      element.up = true;
      element.down = false;

   }
   else
   {
	  animate(elementId, 162, 0, 278, 146, 250, null);
      element.down = true;
      element.up = false;
   }
}


function callBackOthers(elementId)
{
   for(var i=0; i<arrayToShow.length; i++) {
	   if(arrayToShow[i] == elementId)
	   		continue;
	   var temp = document.getElementById(arrayToShow[i]);
	   if(!temp) continue;
	   if(temp.up = true) {
	    	animate(arrayToShow[i], 162, 0, 278, 146, 250, null);
      		temp.down = true;
      		temp.up = false;
	   }
   }	
}
