function toggle(obj,aux)
{
	var object = document.getElementById(obj);
	if(aux!='none'){
		if ( object.style.display != 'none' ) {
			altura = parseInt(object.style.height);
			fechars(obj,altura);
		}
		else {
			altura = parseInt(object.style.height);
			object.style.display = '';
			object.style.height = '0px';
			object.style.overflowY = 'hidden';
			abrirs(obj,altura);
		}
	}else {
		altura = parseInt(object.style.height);
		fechars(obj,altura);
	}
}

function abrirs(obj,altura)
{	 
	object = document.getElementById(obj);
	object.style.height = (parseInt(object.style.height)+20)+"px";
	if(parseInt(object.style.height)<parseInt(altura)){
		t=setTimeout(String("abrirs("+obj+","+altura+")"),1);
	}
}

function fechars(obj,altura)
{	 
	object = document.getElementById(obj);
	object.style.height = (parseInt(object.style.height)-20)+"px";
	if(parseInt(object.style.height)>0){
		t=setTimeout(String("fechars("+obj+","+altura+")"),1);
	}else{
		object.style.display = 'none';
		object.style.height = altura+"px";
	}
}


function center()
 {
	 var object = document.getElementById("pageo");
  object.style.position= "absolute";
  object.style.left = "50%";
  object.style.top= "-40%";
  object.style.marginLeft = "-" + parseInt(object.offsetWidth / 2) + "px";
  t=setTimeout('walkcentertopdown()',600);
 }
 
 function walkcentertopdown()
 {
	 var object = document.getElementById("pageo");
  percent = parseFloat(object.style.top);
  percent=percent+1;
  object.style.top= percent+"%";
  if(percent<10)
  	t=setTimeout('walkcentertopdown()',5);
  else
    walkcentertopup();
 }
 
 function walkcentertopup()
 {
	 var object = document.getElementById("pageo");
  percent = parseFloat(object.style.top);
  percent=percent-1;
  object.style.top= percent+"%";
  if(percent>5)
  	t=setTimeout('walkcentertopup()',30);
 }
