// JavaScript Document

function clearDefault(el) {
  if (el.defaultValue==el.value) el.value = ""
  if (el.style) el.style.cssText = "font-size:11px; width:145px; font-family:Arial, Helvetica, sans-serif; margin-bottom:3px;"

}


//<![CDATA[

window.onload=function()
{
document.getElementById("d5").onclick = slideIt;
document.getElementById("d6").onclick = slideIn;
setDefaults();
}

function slideIt()
{

var slidingDiv = document.getElementById("d4");
var stopPosition = 0;
document.getElementById('d5').style.zIndex=200;
document.getElementById('d6').style.zIndex=300;

if (parseInt(slidingDiv.style.top) < stopPosition )
{
slidingDiv.style.top = parseInt(slidingDiv.style.top) + 10 + "px";
setTimeout(slideIt, 1);
}
}

function slideIn()
{

var slidingDiv = document.getElementById("d4");
var stopPosition = -190;
document.getElementById('d5').style.zIndex=300;
document.getElementById('d6').style.zIndex=200;

if (parseInt(slidingDiv.style.top) > stopPosition )
{
slidingDiv.style.top = parseInt(slidingDiv.style.top) - 10 + "px";
setTimeout(slideIn, 1);
}

}
//]]>

