
var uuuu;
var m;
var droped;
//****************************************
//****************************************
function getElementLeft(Elem) {

	    var elem = document.getElementById(Elem);
		var xPos = elem.offsetLeft;
		var tempEl = elem.offsetParent;
  		while (tempEl != null) {
  			xPos += tempEl.offsetLeft;
	  		tempEl = tempEl.offsetParent;
  		}
		return xPos;
	
}

//****************************************
//****************************************



function getElementTop(Elem) {

		if(document.getElementById) {	
			var elem = document.getElementById(Elem);
		} else if (document.all) {
			var elem = document.all[Elem];
		}
		yPos = elem.offsetTop;
		tempEl = elem.offsetParent;
		while (tempEl != null) {
  			yPos += tempEl.offsetTop;
	  		tempEl = tempEl.offsetParent;
  		}
		return yPos;
	
}

//****************************************************
//-***************************************************



function showdivmen(thediv)
{
      uuuu=document.getElementById(thediv);
      if(m=='undefined') {m=10; droped=0;}
     // uuuu.style.display = "block"; 
      /*-----------------------------*/
   /*     uuuu.style.filter="alpha(opacity=10)";
      uuuu.style.MozOpacity="0.1";
       uuuu.style.khtmlopacity="0.1";
       uuuu.style.opacity="0.1";
      /*-----------------------------*/
      
      //alert(droped);
     
     if(droped==0)
       {
         uuuu.style.display = "block";
         m=10; 
         animatee();
       }
     else 
       {
         m=80; animateREV();
       } 
     
     
}
//****************************************************
//-***************************************************



 function animatee(){  
       
       //
       if(m<81)
       { 
           //alert(m);     
          uuuu.style.filter="alpha(opacity="+m+")";
          uuuu.style.MozOpacity=m/100;
          uuuu.style.khtmlopacity=m/100;
          uuuu.style.opacity=m/100;
          m=m+10;
          uuuu.style.height=m+"px";
          
          window.setTimeout("animatee()",50); 
        }
       else
          { 
           droped = 1;
           m=80;
           uuuu.style.filter="alpha(opacity=60)";
           uuuu.style.MozOpacity=0.6;
           uuuu.style.khtmlopacity=0.6;
           uuuu.style.opacity=0.6;
           
          uuuu.style.height="100px"
        return;
        }
 }
//************************************************************

//************************************************************
//****************************************************
//-***************************************************



 function animateREV(){  
      
       if(m>10)
       { 
          uuuu.style.filter="alpha(opacity="+m+")";
          uuuu.style.MozOpacity=m/100;
          uuuu.style.khtmlopacity=m/100;
          uuuu.style.opacity=m/100;

          uuuu.style.height=m+"px";
          
          m=m-10;
          window.setTimeout("animateREV()",50);
        }
        else
         {
           droped = 0;
           m=10;
           uuuu.style.filter="alpha(opacity=10)";
           uuuu.style.MozOpacity=0.1;
           uuuu.style.khtmlopacity=0.1;
           uuuu.style.opacity=0.1;
           
           uuuu.style.display="none";
        return;
        }
 }
//************************************************************

//************************************************************








