// JavaScript Document
var ie = document.all&&!window.opera?1:0;
var dom = document.getElementById?1:0;
var ns4 = document.layers?1:0;
var StartLeft;
function init() {
if(!(ie||dom||ns4)) {
return;
}
else if(ie) {
box = document.all.dropbox.style;
boxwidth = document.all.dropbox.offsetWidth;
pagewidth=document.body.offsetWidth;
}
else if(dom) {
box = document.getElementById("dropbox").style;
boxwidth = document.getElementById("dropbox").offsetWidth;
pagewidth=window.innerWidth;
}
else if(ns4) {
box = document.dropbox;
boxwidth = box.clip.width;
pagewidth=document.width;
}

scroll_left=(ie)?document.body.scrollLeft:window.pageXOffset;
box.left = (scroll_left - (boxwidth))+"px";
StartLeft = scroll_left;
box.width = "340px"
speed = 1;
dropIn();
}

function dropIn() {
speed+=1; 

if(parseInt(box.left)-StartLeft+(parseInt(box.width)/2) < pagewidth/2-20 ) {
  box.left = parseInt(box.left) + speed +"px";
  //box.top = parseInt(box.top) + 20 +"px";
  in_timer = setTimeout("dropIn()", 50);
 } 
 else {
  clearTimeout(in_timer);
 }
}

function dropOut() {
	box.display = "none";
}
setTimeout("init()", 2000);
