// 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/EthernetMACpatent.htm" class=ticker> Ethernity Networks is awarded a key Patent on Ethernet MAC (14.04.11)</a><br><br><a href="http://www.ethernitynet.com/Multicastpatent.htm" class=ticker> Ethernity Networks is awarded a key IPTV & Internet TV multicast patent(28.02.11)</a><br><br><a href="http://www.ethernitynet.com/PWE3CES.htm" class=ticker> Ethernity Networks combined pseudo wire TDMoP, SAToP and CESoPSN solution into its Field Programmable Carrier Ethernet switch offering (13.12.10)</a><br><br><a href="http://www.ethernitynet.com/news.htm" class=ticker> Ethernity Networks EFM bonding solution has been qualified by major European carrier (15.05.10)</a><br><br><a href="http://www.ethernitynet.com/interworkingpatent.htm" class=ticker>Ethernity Networks is awarded a key wire speed protocols interworking patent (15.12.09)</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
	}
}

