// JavaScript Document
var marqueewidth=136
var marqueeheight=111
var marqueespeed=1
//Pause marquee onMousever (0=no. 1=yes)?
var pauseit=1


//ticker content
var marqueecontent='<a href="http://www.ethernitynet.com/news.htm" class=ticker>Ethernity Networks is awarded a key wire speed protocols interworking patent (15.12.09)</a><br><br><a href="http://www.ethernitynet.com/ENET1731OAMCo-Processor.htm" class=ticker>Ethernity Networks announces availability of its new 100Gbps ENET1731 Carrier Grade Ethernet OAM Co-Processor ( 9.9.09)</a><br><br><a href="http://www.ethernitynet.com/RADChoosesENET3000CarrierEthernet.htm" class=ticker>RAD Chooses Ethernity\'s ENET3000 Access Flow Processor  (27.3.08)</a><br><br><a href="http://www.ethernitynet.com/POLOLTrelease.htm" class=ticker>Ethernity Networks releases the First ENET4000 solution dedicated for PON OLT line cards (13.2.08)</a>'

marqueespeed=(document.all)? marqueespeed : Math.max(1, marqueespeed-1) //slow speed down by 1 for NS
var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
var actualheight=''
var cross_marquee, ns_marquee

function populate(){
	if (iedom){
		cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
		cross_marquee.style.top=marqueeheight+8
		cross_marquee.innerHTML=marqueecontent
		actualheight=cross_marquee.offsetHeight
	}
	else if (document.layers){
		ns_marquee=document.ns_marquee.document.ns_marquee2
		ns_marquee.top=marqueeheight+8
		ns_marquee.document.write(marqueecontent)
		ns_marquee.document.close()
		actualheight=ns_marquee.document.height
	}
	lefttime=setInterval("scrollmarquee()",60)
}

function scrollmarquee(){
	if (iedom){
		if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
			cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed
		else
			cross_marquee.style.top=marqueeheight+8
	}
	else if (document.layers){
		if (ns_marquee.top>(actualheight*(-1)+8))
			ns_marquee.top-=copyspeed
		else
			ns_marquee.top=marqueeheight+8
	}
}