var slideIntervalId = null; function startSlide(id, left) { clearInterval(slideIntervalId); slideIntervalId = setInterval("slide('" + id + "', " + left + ");", 1); } function slide(id, left) { var element = document.getElementById(id); var nextSize; if(parseInt(element.style.bottom) == left) { clearInterval(slideIntervalId); return; } else if(parseInt(element.style.bottom) > left) { nextSize = parseInt(element.style.bottom) - 3; } else { nextSize = parseInt(element.style.bottom) + 3; } element.style.bottom = nextSize + "px"; } var enlargeId = null; function startEnlarge() { clearInterval(enlargeId); enlargeId = setInterval("enlargeit(\"slider\",550,210);", 1); } function enlargeit(id, width, height) { var element = document.getElementById(id); var nextwidth; var nextheight; if(parseInt(element.style.width) < width) { nextwidth = parseInt(element.style.width) + 15; element.style.width = nextwidth + "px"; //parseInt(element.style.left) - 15; } if(parseInt(element.style.height) < height) { nextheight = parseInt(element.style.height) + 1; //parseInt(element.style.bottom) - 1; element.style.height = nextheight + "px"; } if((parseInt(element.style.height) >= height) && (parseInt(element.style.width) >= width)) { clearInterval(enlargeId); element.innerHTML = '