
var scrollerdelay='4000' //delay between msg scrolls. 3000=3 seconds.
var scrollerwidth=screen.width-230
var scrollerheight='20px'
var scrollerbgcolor='#BAD2FE'
//set below to '' if you don't wish to use a background image
var scrollerbackground='scrollerback.gif'

//configure the below variable to change the contents of the scroller
var messages=new Array()
fillMessages();

//---------------------------------------- NEWS COMES HERE --------------------------------------------//
function fillMessages(){

messages[1 ]="<span class='TickerColor'>DAWN Group of Newspapers</span>"
messages[2 ]="<a class='TickerColor' href=./welcome.htm#14>Karachi tense as blast toll rises to 57</a>"                    
messages[3 ]="<a class='TickerColor' href=./welcome.htm#31>Pakistan's top nuclear command concerned over India-US deal</a>"
messages[4 ]="<a class='TickerColor' href=./welcome.htm#14>Funeral of 3 Sunni Tehrik Leaders on Thursday</a>"
messages[5 ]="<a class='TickerColor' href=./welcome.htm#27>Death toll in Nishtar Park blast rises to 58 - Minister</a>"
messages[6 ]="<a class='TickerColor' href=./welcome.htm#34>Pakistan, Yemen to cooperate in eradicating terrorism, sources of financing</a>"
messages[7 ]="<a class='TickerColor' href=./welcome.htm#33>Eight killed in east Sudan clash - army</a>"
messages[8 ]="<a class='TickerColor' href=./welcome.htm#30>Six insurgents killed in Afghanistan</a>"
messages[9 ]="<a class='TickerColor' href=./welcome.htm#29>Prosecution rests in Moussaoui death penalty trial</a>"
messages[10]="<a class='TickerColor' href=./welcome.htm#28>Sanctions against Iran definitely an option: White House</a>"
messages[11]="<a class='TickerColor' href=./welcome.htm#26>French deputies vote to replace contested job contract</a>"
messages[12]="<a class='TickerColor' href=./welcome.htm#24>Thirteen killed, 50 wounded in Sri Lanka market blast</a>"
messages[13]="<a class='TickerColor' href=./welcome.htm#23>British PM's wife visits Pakistan quake zone</a>"
messages[14]="<a class='TickerColor' href=./welcome.htm#22>Pakistan achieves excellence in defence production, says Abdullah Saleh</a>"
messages[15]="<a class='TickerColor' href=./welcome.htm#21>Pakistan beats Canada in opening world-cup qualify match</a>"
messages[16]="<a class='TickerColor' href=./welcome.htm#19>Roadside bomb kills four people in Baghdad</a>"
messages[17]="<a class='TickerColor' href=./welcome.htm#18>Bomb explodes near market in Iraq town</a>"
messages[18]="<a class='TickerColor' href=./welcome.htm#17>Iran nuclear claim 'step in the wrong direction': Russia</a>"
messages[19]="<a class='TickerColor' href=./welcome.htm#16>Indian army kills five alleged militants, civilian in Occupied Kashmir</a>"
messages[20]="<a class='TickerColor' href=./welcome.htm#15>Saddam trial adjourned after brief session</a>"
messages[21]="<a class='TickerColor' href=./welcome.htm#12>Four US soldiers killed in Iraq</a>"
messages[22]="<a class='TickerColor' href=./welcome.htm#11>At least 29 protesting journalists arrested in Nepal</a>"
messages[23]="<a class='TickerColor' href=./welcome.htm#10>Spanish judge charges 29 for March 11 train bombs</a>"
messages[24]="<a class='TickerColor' href=./welcome.htm#9>Yemeni President leaves home after two-day visit to Pakistan</a>"
messages[25]="<a class='TickerColor' href=./welcome.htm#8>U.N. agencies limit Hamas government contacts</a>"
messages[26]="<a class='TickerColor' href=./welcome.htm#7>Sri Lanka police say Tiger ambush kills two officers</a>"
messages[27]="<a class='TickerColor' href=./welcome.htm#6>Bus plunge kills 12 in central China</a>"
messages[28]="<a class='TickerColor' href=./welcome.htm#5>Afghan bomb blast kills policeman, wounds two</a>"
messages[29]="<a class='TickerColor' href=./welcome.htm#4>US shelved evidence discounting Iraq's WMD-paper</a>"
messages[30]="<a class='TickerColor' href=./welcome.htm#14a>At least 46 killed, over 100 injured as bomb explodes in Karachi park congregation</a>"
messages[31]="<a class='TickerColor' href=./welcome.htm#18a>Several top Sunni Tahreeq leaders Martyred</a>"
messages[32]="<a class='TickerColor' href=./welcome.htm#17a>Emergency declared in all government hospitals</a>"
messages[33]="<a class='TickerColor' href=./welcome.htm#19a>Governor announces three-day official mourning</a>"
messages[34]="<a class='TickerColor' href=./welcome.htm#20a>Nishtar Park explosion by Suicide bomber</a>"
messages[35]="<a class='TickerColor' href=./welcome.htm#28a>President Musharraf, PM Aziz condemn blast in Karachi</a>"
messages[36]="<a class='TickerColor' href=./welcome.htm#21a>Iran announces it has enriched uranium for the first time</a>"
messages[37]="<a class='TickerColor' href=./welcome.htm#23a>Iran president calls for acceleration of nuclear programme</a>"
messages[38]="<a class='TickerColor' href=./welcome.htm#27a>Yemeni President meets Prime Minister</a>"
messages[39]="<a class='TickerColor' href=./welcome.htm#26a>Three British soldiers injured in suspected Afghanistan bomb attack</a>"
messages[40]="<a class='TickerColor' href=./welcome.htm#25a>Five killed, 13 wounded in Baghdad car bomb attack</a>"
messages[41]="<a class='TickerColor' href=./welcome.htm#24a>Pakistani and French forces hold exercises</a>"
messages[42]="<a class='TickerColor' href=./welcome.htm#22a>Italian Mafia 'boss of bosses' arrested</a>"
messages[43]="<a class='TickerColor' href=./welcome.htm#11a>Iraqi PM defiant as Shiites fail to agree</a>"
messages[44]="<a class='TickerColor' href=./welcome.htm#10a>Raid on Afghan drugs bazaar: three police hurt</a>"
messages[45]="<a class='TickerColor' href=./welcome.htm#9a>S.Lanka rebels kill 12 sailors, wound 8 -navy</a>"
messages[46]="<a class='TickerColor' href=./welcome.htm#8a>Israel declares end to Sharon reign</a>"
messages[47]="<a class='TickerColor' href=./welcome.htm#5a>Rocket explodes in Afghan school; six children killed, 14 others wounded</a>"
messages[48]="<a class='TickerColor' href=./welcome.htm#4a>Indian officials arrive in Pakistan for talks on border security, drug control</a>"
messages[49]="<a class='TickerColor' href=./welcome.htm#3a>Police fire on pro-democracy protesters in Nepal, two wounded</a>"
messages[47]="<a class='TickerColor' href=./welcome.htm#1a>Prodi claims victory in Italy vote</a>"

//---------------------------------------- NEWS COMES HERE --------------------------------------------//
}

///////Do not edit pass this line///////////////////////

var ie=document.all
var dom=document.getElementById


function move(whichdiv){
	tdiv=eval(whichdiv)
	if (parseInt(tdiv.style.top)>0&&parseInt(tdiv.style.top)<=5){
		tdiv.style.top=0+"px"
		setTimeout("move(tdiv)",scrollerdelay)
		setTimeout("move2(second2_obj)",scrollerdelay)
		return
	}
	if (parseInt(tdiv.style.top)>=tdiv.offsetHeight*-1){
		tdiv.style.top=parseInt(tdiv.style.top)-5+"px"
		setTimeout("move(tdiv)",50)
	}
	else
	{
		tdiv.style.top=parseInt(scrollerheight)+"px"
		tdiv.innerHTML=messages[i]
		if (i==messages.length-1)
			i=0
		else
			i++
	}
}

function move2(whichdiv){
	tdiv2=eval(whichdiv)
	if (parseInt(tdiv2.style.top)>0&&parseInt(tdiv2.style.top)<=5){
		tdiv2.style.top=0+"px"
		setTimeout("move2(tdiv2)",scrollerdelay)
		setTimeout("move(first2_obj)",scrollerdelay)
		return
	}
	if (parseInt(tdiv2.style.top)>=tdiv2.offsetHeight*-1){
		tdiv2.style.top=parseInt(tdiv2.style.top)-5+"px"
		setTimeout("move2(second2_obj)",50)
	}
	else{
		tdiv2.style.top=parseInt(scrollerheight)+"px"
		tdiv2.innerHTML=messages[i]
	if (i==messages.length-1)
		i=0
	else
		i++
	}
}

function startscroll(){
	first2_obj=ie? first2 : document.getElementById("first2")
	second2_obj=ie? second2 : document.getElementById("second2")
	move(first2_obj)
	second2_obj.style.top=scrollerheight
	second2_obj.style.visibility='visible'
}

function CreateTicker(){
	if (messages.length>2)
		i=2
	else
		i=0
		
	if (ie||dom){
		document.writeln('<div id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden;background-color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+')">')
		document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0px;top:0px">')
		document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:1px;">')
		document.write(messages[0])
		document.writeln('</div>')
		document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0px;top:0px;visibility:hidden">')
		document.write(messages[dyndetermine=(messages.length==1)? 0 : 1])
		document.writeln('</div>')
		document.writeln('</div>')
		document.writeln('</div>')
	}


	if (window.addEventListener)
		window.addEventListener("load", startscroll, false)
	else if (window.attachEvent)
		window.attachEvent("onload", startscroll)
	else if (ie||dom)
		window.onload=startscroll
	}

