var swidth=200	//slider's width
var sheight=150	//slider's height
var sspeed=2	//slider's speed

//Add News Messages as next array element
var newsArray=new Array()
newsArray[0]='<div align="center" class="news_date"><b>[February 2010]</b><p> <a href="news.htm#ndw"  target="_parent" class="news">New DRIS Projects - ARS bags 2 new projects under DRIS stream. .. </a></p></div>'
newsArray[1]='<div align="center" class="news_date"><b>[January 2010]</b><p> <a href="news.htm#anniversary"  target="_parent" class="news">ARS SE Celebrates 9 years - ARS SE turns 9 years on 15th January 2010 .. </a></p></div>'
newsArray[2]='<div align="center" class="news_date"><b>[October 2009]</b><p> <a href="news.htm#ftt"  target="_parent" class="news">New Travel Time Projects -ARS got 4 new contracts for travel time projects in Europe .. </a></p></div>'
newsArray[3]='<div align="center" class="news_date"><b>[October 2009]</b><p> <a href="news.htm#bravissimo"  target="_parent" class="news">Computable award for NDW -NDW Project won the Computable award in. It is the highest award for IT projects in The Netherlands .. </a></p></div>'
newsArray[4]='<div align="center" class="news_date"><b>[September 2009]</b><p> <a href="news.htm#bravissimo"  target="_parent" class="news">ARS SE is re-Certified at CMMI Level 3 - ARS SE has been recertified at CMMI Level 3 by Kris Puthucode, Lead Assessor from SQC .. </a></p></div>'
newsArray[5]='<div align="center" class="news_date"><b>[June 2009]</b><p> <a href="news.htm#bravissimo"  target="_parent" class="news">NDW Phase 1 accepted - Client has accepted the phase 1 of NDW .. </a></p></div>'
newsArray[6]='<div align="center" class="news_date"><b>[December 2008]</b><p> <a href="news.htm#bravissimo"  target="_parent" class="news">NDW Contract - On December 12th 2008, ARA signed the contract with the National Data Warehouse for Traffic Information .. </a></p></div>'
//newsArray[1]='<div align="center" class="news_date"><b>[Dec 2006]</b><p> <a href="news.htm#veolia"  target="_parent" class="news"> ARS has won the subcontract for the supply of the Dynamic Bus Stop Display technology tendered by Veolia .. </a></p></div>'
//newsArray[2]='<div align="center" class="news_date"><b>[Dec 2006]</b><p> <a href="news.htm#prav"  target="_parent" class="news"> ARS has completed the electronic surveying to determine the optimum count of vehicles carrying hazardous substances .. </a></p></div>'
//newsArray[3]='<div align="center" class="news_date"><b>[Oct 2006]</b><p> <a href="news.htm#pnb"  target="_parent" class="news"> PNB Telpunten brings automation to the real time processing, visualization and data delivery from 5 major counting/classification points .. </a></p></div>'
//newsArray[4]='<div align="center" class="news_date"><b>[Sep 2006]</b><p> <a href="news.htm#melinda"  target="_parent" class="news"> Through its web site, the Dutch government informs the public about (scheduled) road works .. </a></p></div>'
//newsArray[5]='<div align="center" class="news_date"><b>[August 2006]</b><p> <a href="news.htm#cmmi"  target="_parent" class="news"> ARS Software Engineering joins the ranks of 300 organizations worldwide to have achieved CMMI Level 3 .. </a></p></div>'
//newsArray[6]='<div align="center" class="news_date"><b>[July 2006]</b><p> <a href="news.htm#metro"  target="_parent" class="news"> Metro wins a prestigious national award for technology innovation that uses a system developed by MVA Consultancy .. </a></p></div>'

if (newsArray.length>1)
	i=1
else
	i=0
function start(){
		
		//GetScrRes()// checks screen resolution
		
	if (document.all){
		IEslider.style.top=sheight
		IEScroller(IEslider)
	}
	else if (document.getElementById&&!document.all){
		document.getElementById('NavSlider').style.top=sheight
		NavScroller(document.getElementById('NavSlider'))
	}
}

function GetScrRes(){
	var ScrRes = window.screen.width + "X" + window.screen.height;
	if(ScrRes == "800X600")
	{
		document.getElementById("NewsLayer").style.left = 30;
		document.getElementById("NewsLayer").style.top  = 350;
	}
	
}


// Specify the scrolling speed in milliseconds for IE
function IEScroller(whichdiv){
	IEdiv=eval(whichdiv)
	if (IEdiv.style.pixelTop>0&&IEdiv.style.pixelTop<=sspeed){
		IEdiv.style.pixelTop=0
		setTimeout("IEScroller(IEdiv)",50)
	}
	if (IEdiv.style.pixelTop>=sheight*-1){
		IEdiv.style.pixelTop-=sspeed
		setTimeout("IEScroller(IEdiv)",50)
	}
	else{
		IEdiv.style.pixelTop=sheight
		IEdiv.innerHTML=newsArray[i]
	if (i==newsArray.length-1)
		i=0
	else
		i++
	}
}
// Specify the scrolling speed in milliseconds for Nav
function NavScroller(whichdiv){
	Navdiv=eval(whichdiv)
	if (parseInt(Navdiv.style.top)>0&&parseInt(Navdiv.style.top)<=sspeed){
		Navdiv.style.top=0
		setTimeout("NavScroller(Navdiv)",50)
	}
	if (parseInt(Navdiv.style.top)>=sheight*-1){
		Navdiv.style.top=parseInt(Navdiv.style.top)-sspeed
		setTimeout("NavScroller(Navdiv)",50)
	}
	else{
		Navdiv.style.top=sheight
		Navdiv.innerHTML=newsArray[i]
	if (i==newsArray.length-1)
		i=0
	else
		i++
	}
}
