var moving = false; var toswitch; var toswitch2; var scrlDir; var scrlSpeed = 3; ns = (document.layers) ? true:false ie = (document.all) ? true:false function init() { if (ns) block = document.newsDiv.document.textDiv if (ie) block = document.all['textDiv'].style block.ypos = parseInt(block.top) showDiv("headersDiv") } function scrollUp(arg) { if (arg) { scrlDir = "down" } if ((block.ypos < 0) && (scrlDir == "down")) { block.ypos += scrlSpeed; block.top = block.ypos; setTimeout("scrollUp()",10) } } function scrollDown(arg) { if (arg) { scrlDir = "up" } divH = (ns) ? block.document.height:document.all["textDiv"].offsetHeight divBottom = block.ypos+divH if ((divBottom > 180) && (scrlDir == "up")) { block.ypos -= scrlSpeed; block.top = block.ypos; setTimeout("scrollDown()",10) } } function stop() { scrlDir = false; } function getreadytorumble(which,which2) { if (!moving) { if (which2) { block.ypos = 0; block.top = block.ypos; } if (ns) myline = document[which + "lineDiv"] if (ie) myline = document.all[which + "lineDiv"].style myline.ypos = parseInt(myline.top) toswitch = which + "Div"; if (which2) toswitch2 = which2; else if (!which2) toswitch2 = false; moving = true; if (myline.ypos < 100) { slideDown() } if (myline.ypos > 100) { slideUp('1') } } } function slideDown() { if (myline.ypos < 283) { myline.ypos += 7; myline.top = myline.ypos; if (myline.ypos > 283) { myline.ypos = 283; myline.top = myline.ypos; } setTimeout("slideDown()",10) } else { showDiv(toswitch) if (toswitch2) { showDiv(toswitch2) } moving = false; } } function slideUp(arg) { if (arg) { hideDiv(toswitch) if (toswitch2) { hideDiv(toswitch2) } } if (myline.ypos > 67) { myline.ypos -= 7; myline.top = myline.ypos; if (myline.ypos < 67) { myline.ypos = 67; myline.top = myline.ypos; } setTimeout("slideUp()",10) } else { moving = false; } } function showDiv(name) { if (ns) document[name].visibility = "show"; if (ie) document.all[name].style.visibility = "visible"; } function hideDiv(name) { if (ns) document[name].visibility = "hide"; if (ie) document.all[name].style.visibility = "hidden"; } function launchWin(doc,name,w,h) { settings = "toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizeable=0,width=" + w + ",height=" + h; window.open(doc,name,settings); }