function moveDiv()
{

//  var l = getElementStyle(id, "left", "left");
  if(document.getElementById("slide").style.top < 400)
  {
	  runMove();
  }
}

function runMove(id)
{
	document.getElementById("slide").style.top = parseInt(getElementStyle("slide", "top", "top")) + 5 + "px";
	if(parseInt(getElementStyle("slide", "top", "top")) < 400)
	{
		return setTimeout(function(){runMove(id)}, 10);
	}
}

function retractDiv(idname)
{
  if(idname == 1)
  {
		id = "mt";  
  }
  else if(idname == 2)
  {
		id = "mtd";
  }
  else if(idname == 3)
  {
		id = "winpopd";  
  }
  else if(idname == 4)
  {
		id = "winpop";  
  }
  
  
  document.getElementById(id).style.left = parseInt(getElementStyle(id, "left", "left")) - 5 + "px";
  if (parseInt(getElementStyle(id, "left", "left")) > 20) 
  {
   	return setTimeout(function(){retractDiv(id)}, 8);
  } 

}

function getElementStyle(elemID, IEStyleProp, CSSStyleProp) {
    var elem = document.getElementById(elemID);
    if (elem.currentStyle) { 
        return elem.currentStyle[IEStyleProp];
    } else if (window.getComputedStyle) {
        var compStyle = window.getComputedStyle(elem, "");
        return compStyle.getPropertyValue(CSSStyleProp);
    }
    return "";
}

function getStyleObject(objectId) {
    // cross-browser function to get an object's style object given its
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
}