var counterInfoText = 0;
var isInfoMoving = 0;

function ShowInfoText()
{
    if(isInfoMoving != 0)
	{
   	 var obj = document.getElementById("InfoTextWrapper");
    
   	 if(obj.style.bottom == "" ) { obj.style.bottom = "0%";}
   
  	  var speed = Math.sin((counterInfoText * Math.PI)/180)*20;
  
  	  obj.style.visibility = "visible";

  	  if((counterInfoText<125))
  	  {
   	      counterInfoText+=4;
  	   
  	       obj.style.bottom = (speed) + "%";
 	       setTimeout("ShowInfoText()", 20);
 	  }  
  	  else
  	  {
  	    isInfoMoving = 0;
  	  }
    }
}





function HideInfo()
{
isInfoMoving = 0;
 if(isInfoMoving == 0) 
 {

     Hovering = 0;
     counterInfoText*=-1;
     document.getElementById("InfoTextWrapper").style.bottom = "-10%";
 
 }
}


function ShowInfo()
{

 		Hovering = 1;
     if(isInfoMoving == 0)
	{
	   isInfoMoving = 1;
	   document.getElementById("InfoTextWrapper").style.bottom = "0%";
	   counterInfoText = 0;
	   ShowInfoText();
	}
}


var Hovering = 0;

