//id is id of element to move, in quotes, 
//dir is direction ~ 'left' or 'right' in quotes, 
//amt is number of pixels from left to move to (negative numbers will work too),no quotes on numbers! 
//tog1 and tog2 each are an id of elements to toggle display properties of 
function moveDiv(id,ibleft,ibtop) { 
  //window.clearInterval(the_interval); 
  var elem = getElement(id), currentPos, ready, newPos;
  var elem2 = getElement("infoball");
  for (i=1;i<=9;i++) {
  	var elemother = "middlebot" + i;
  	if (elemother != id) {
  		var elemotherelem = getElement(elemother);
  		if (document.layers) { 
          elemotherelem.style.left = -2000; 
        } else { 
          elemotherelem.style.left = -2000 + "px"; 
        }  }
  }
  if (elem) { 
    //the_interval = window.setInterval(function () { 
      currentPos = parseInt(elem.style.left);
     if (document.layers) { 
          elem.style.left = 330; 
        } else { 
          elem.style.left = 330 + "px"; 
        }  } 
   if (elem2) {
  	 if (document.layers) {
  	 		elem2.style.left = ibleft;
  	 		elem2.style.top = ibtop;
  	 } else {
  	 		elem2.style.left = ibleft + "px";
  	 		elem2.style.top = ibtop + "px";
  	 }  }	
  return false; 
} 
function moveResa(onoff) {
	var elem =getElement("resaform");
	if (document.layers) {
		if (onoff != "on") {
		  elem.style.left = -2000;
		} else {
          elem.style.left = 245;
		}
        } else {
        if (onoff != "on") {
		  elem.style.left = -2000 + "px";
		} else {
          elem.style.left = 245 + "px"; 
        }  } 
}
function getElement(id) { 
  if (document.getElementById) { 
    return document.getElementById(id); 
  } else if (document.all) { 
    return document.all[id]; 
  } else if (document.layers) { 
    return document.layers[id]; 
  } else { 
    return false; 
  } 
}

