
var foo = null; // object
var go = null; // object


function moveup_P() {
var stop = "80%";
var start = "10%";

if(document.getElementById('bottom').style.bottom == stop)
	{
	toggleSlide('pricebar');
	return;}

foo = document.getElementById('bottom');

if(go != "1"){
foo.style.bottom = start; // set its initial position to 0px
go = "1";
}

if(foo.style.bottom > stop){
  foo.style.bottom = parseInt(foo.style.bottom)-1+'%';
  }else{
   foo.style.bottom = parseInt(foo.style.bottom)+1+'%';
  }
          
setTimeout(moveup_P,20); // call doMove in 20msec   
}

function moveup_C() {
var stop = "80%";
var start = "10%";

if(document.getElementById('bottom').style.bottom == stop)
	{
	toggleSlide('contact');
	return;}

foo = document.getElementById('bottom');

if(go != "1"){
foo.style.bottom = start; // set its initial position to 0px
go = "1";
}

if(foo.style.bottom > stop){
  foo.style.bottom = parseInt(foo.style.bottom)-1+'%';
  }else{
   foo.style.bottom = parseInt(foo.style.bottom)+1+'%';
  }
          
setTimeout(moveup_C,20); // call doMove in 20msec   
}

function movedown() {

var stop = "10%";
var start = "80%";

if(document.getElementById('bottom').style.bottom == stop)
	{return;}

foo = document.getElementById('bottom');

if(go != "1"){
foo.style.bottom = start; // set its initial position to 0px
go = "1";
}

if(foo.style.bottom > stop){
  foo.style.bottom = parseInt(foo.style.bottom)-1+'%';
  }else{
   foo.style.bottom = parseInt(foo.style.bottom)+1+'%';
  }
          
setTimeout(movedown,20); // call doMove in 20msec   
}








