﻿// JavaScript Document
var ie = document.all&&!window.opera?1:0;
var dom = document.getElementById?1:0;
var ns4 = document.layers?1:0;
function init() {
if(!(ie||dom||ns4)) {
return;
}
else if(ie) {
box = document.all.dropbox.style;
boxwidth = document.all.dropbox.offsetWidth;
}
else if(dom) {
box = document.getElementById("dropbox").style;
boxwidth = document.getElementById("dropbox").offsetWidth;
}
else if(ns4) {
box = document.dropbox;
boxwidth = box.clip.width;
}
scroll_left=(ie)?document.body.scrollLeft:window.pageXOffset;
//scroll_left+="70";
box.left = (scroll_left - (boxwidth))+"px";
box.width = ((screen.width)-470)+"px"
speed = 1;
dropIn();
}
function dropIn() {
 speed+=6; 
 if(parseInt(box.left) < scroll_left ) {
  box.left = parseInt(box.left) + speed +"px";
  in_timer = setTimeout("dropIn()", 50);
 } 
 else {
  clearTimeout(in_timer);
 }
}
function dropOut() {
box.display = "none"
/*
 if(parseInt(box.left) > (-1)*boxwidth) {

  box.left = (parseInt(box.left) - 40)+"px";
  out_timer = setTimeout("dropOut()", 50);
 }
 else {
  clearTimeout(out_timer);
 }
*/
}
setTimeout("init()", 2000);
// width:730px;
//-->
