<!--Hide from old browsers
iArray=new Array
("images/index/top06.jpg","images/index/top08.jpg","images/index/top13.jpg","images/index/top18.jpg","images/index/top17.jpg","images/index/top-b05.jpg","images/index/top-c09.jpg","images/index/top04.jpg");ri=Math.floor(iArray.length*Math.random());ri='<IMG SRC="./'+iArray[ri]+'" BORDER="0" + width="679" + height="168" + alt="Welcome to Newport News Public Schools">';<!--
function synchTab(frameName){var elList,i;if(frameName==null)
return;elList=document.getElementsByTagName("A");for(i=0;i<elList.length;i++)
if(elList[i].target==frameName){if(elList[i].href==window.frames[frameName].location.href){elList[i].className+=" activeTab";elList[i].blur();}
else
removeName(elList[i],"activeTab");}}
function removeName(el,name){var i,curList,newList;if(el.className==null)
return;newList=new Array();curList=el.className.split(" ");for(i=0;i<curList.length;i++)
if(curList[i]!=name)
newList.push(curList[i]);el.className=newList.join(" ");}
var delayb4scroll=4000
var marqueespeed=1
var pauseit=1
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)?copyspeed:0
var actualheight=''
var ontop="cross_marquee";function scrollmarquees()
{cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
cross_marquee2.style.top=parseInt(cross_marquee2.style.top)-copyspeed+"px"
if(parseInt(cross_marquee.style.top)==(differenceheight*(-1)-5))
{cross_marquee2.style.top=parseInt(marqueeheight)+8+"px"
cross_marquee2.style.display="inline"
ontop="cross_marquee2";}
if(parseInt(cross_marquee2.style.top)==(differenceheight*(-1)-5))
{cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
cross_marquee.style.display="inline"
ontop="cross_marquee";}
if(parseInt(cross_marquee.style.top)<=(actualheight*(-1)+8))
{cross_marquee.style.display="none"}
if(parseInt(cross_marquee2.style.top)<=(actualheight*(-1)+8))
{cross_marquee2.style.display="none"}}
function initializemarquee(){cross_marquee=document.getElementById("vmarquee")
cross_marquee2=document.getElementById("vmarquee2")
cross_marquee.style.top=0
cross_marquee2.style.top=0
marqueeheight=document.getElementById("marqueecontainer").offsetHeight
actualheight=cross_marquee.offsetHeight
actualheight2=cross_marquee2.offsetHeight
differenceheight=actualheight-marqueeheight
if(window.opera||navigator.userAgent.indexOf("Netscape/7")!=-1){cross_marquee.style.height=marqueeheight+"px"
cross_marquee.style.overflow="scroll"
return}
if(actualheight>marqueeheight)
setTimeout('lefttime=setInterval("scrollmarquees()",35)',delayb4scroll)}
if(window.addEventListener)
window.addEventListener("load",initializemarquee,false)
else if(window.attachEvent)
window.attachEvent("onload",initializemarquee)
else if(document.getElementById)
window.onload=initializemarquee
