
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[00]="<span class='TickerColor'>DAWN Group of Newspapers</span>"
messages[01]="<a class='TickerColor' href=./welcome.htm#92>Plane with Bhutto's coffin leaves Islamabad: ministry</a>"
messages[02]="<a class='TickerColor' href=./welcome.htm#91>Benazir's body to be laid to rest next to her father's grave</a>"
messages[03]="<a class='TickerColor' href=./welcome.htm#90>Benazir Bhutto's husband arrives in Islamabad</a>"
messages[04]="<a class='TickerColor' href=./welcome.htm#89>US presidential hopefuls on Bhutto assassination</a>"
messages[05]="<a class='TickerColor' href=./welcome.htm#88>Bush has spoken with Pakistan's Musharraf -W.House</a>"
messages[06]="<a class='TickerColor' href=./welcome.htm#87>Pakistan's Sharif says to boycott January election</a>"
messages[07]="<a class='TickerColor' href=./welcome.htm#86>Commonwealth says Bhutto death ”dark day for Pakistan”</a>"
messages[08]="<a class='TickerColor' href=./welcome.htm#85>Bhutto's coffin leaves hospital to airport</a>"
messages[09]="<a class='TickerColor' href=./welcome.htm#84>Bangladesh condemns Bhutto killing as 'unpardonable crime'</a>"
messages[10]="<a class='TickerColor' href=./welcome.htm#83>Putin condemns 'barbarous' Bhutto assassination</a>"
messages[11]="<a class='TickerColor' href=./welcome.htm#82>Fazal condoles Benazir's death</a>"
messages[12]="<a class='TickerColor' href=./welcome.htm#81>Five dead, dozens of vehicles and properties burnt in Karachi violence</a>"
messages[13]="<a class='TickerColor' href=./welcome.htm#80>Musharraf says terrorists killed Benazir, urges unity</a>"
messages[14]="<a class='TickerColor' href=./welcome.htm#79>UN's Ban condemns Bhutto killing, council meets</a>"
messages[15]="<a class='TickerColor' href=./welcome.htm#78>Road collision kills 25 in Central African Republic</a>"
messages[16]="<a class='TickerColor' href=./welcome.htm#77>Benazir supporters take anger to the streets</a>"
messages[17]="<a class='TickerColor' href=./welcome.htm#76>Cricket-SAfrica 122-5 v West Indies (408), first test</a>"
messages[18]="<a class='TickerColor' href=./welcome.htm#75>Israeli president shocked by Bhutto killing</a>"
messages[19]="<a class='TickerColor' href=./welcome.htm#74>At least four dead in rioting after Bhutto death: police</a>"
messages[20]="<a class='TickerColor' href=./welcome.htm#73>MQM chief grieved on Benazir's assassination</a>"
messages[21]="<a class='TickerColor' href=./welcome.htm#71>Musharraf announces 3-day mourning</a>"
messages[22]="<a class='TickerColor' href=./welcome.htm#70>Police confirm Benazir was shot before bombing</a>"
messages[23]="<a class='TickerColor' href=./welcome.htm#69>Benazir funeral plans on Zardari’s return</a>"
messages[24]="<a class='TickerColor' href=./welcome.htm#68>Court, banks ablaze in caretaker PM's hometown</a>"
messages[25]="<a class='TickerColor' href=./welcome.htm#67>World leaders warn Bhutto killing must not destabilise Pakistan</a>"
messages[26]="<a class='TickerColor' href=./welcome.htm#66>Caretaker PM Soomro says country will unearth 'conspiracy'</a>"
messages[27]="<a class='TickerColor' href=./welcome.htm#65>Bush condemns 'cowardly' Benazir assassination</a>"
messages[28]="<a class='TickerColor' href=./welcome.htm#64>Sindh mourns death of Benazir</a>"
messages[29]="<a class='TickerColor' href=./welcome.htm#63>China condemns Benazir killing</a>"
messages[30]="<a class='TickerColor' href=./welcome.htm#62>Benazir killing an act of 'immense brutality': Hamid Karzai</a>"
messages[31]="<a class='TickerColor' href=./welcome.htm#61>Ten vehicles, a bank torched in Hala town</a>"
messages[32]="<a class='TickerColor' href=./welcome.htm#60>Musharraf condemns the killing of Benazir Bhutto, urges calm</a>"
messages[33]="<a class='TickerColor' href=./welcome.htm#59>EU condemns Benazir killing as strike 'against Pakistan'</a>"
messages[34]="<a class='TickerColor' href=./welcome.htm#58>Four Bugti tribesmen killed</a>"
messages[35]="<a class='TickerColor' href=./welcome.htm#57>Italian PM condemns 'fanaticism' of Benazir killing</a>"
messages[36]="<a class='TickerColor' href=./welcome.htm#56>Benazir’s death: Musharraf convenes emergency meeting</a>"
messages[37]="<a class='TickerColor' href=./welcome.htm#55>US condemns attack on Benazir</a>"
messages[38]="<a class='TickerColor' href=./welcome.htm#54>India calls Bhutto death terrible blow to democracy</a>"
messages[39]="<a class='TickerColor' href=./welcome.htm#53>Sharif vows to fight Bhutto's 'war'</a>"
messages[40]="<a class='TickerColor' href=./welcome.htm#52>Asif Zardari, children on way to Pakistan</a>"
messages[41]="<a class='TickerColor' href=./welcome.htm#51>Pakistan police tear gas protest after Bhutto killed</a>"
messages[42]="<a class='TickerColor' href=./welcome.htm#50>France condemns Bhutto killing</a>"
messages[43]="<a class='TickerColor' href=./welcome.htm#49>Benazir Bhutto killed in gun, bomb attack</a>"
messages[44]="<a class='TickerColor' href=./welcome.htm#48>Gold, bonds rise after Bhutto death</a>"
messages[45]="<a class='TickerColor' href=./welcome.htm#47>Benazir Bhutto dead in Pakistan attack: interior ministry</a>"
messages[46]="<a class='TickerColor' href=./welcome.htm#46>Benazir’s fatal injuries</a>"
messages[47]="<a class='TickerColor' href=./welcome.htm#45>US condemns attack on Benazir Bhutto: State Department</a>"
messages[48]="<a class='TickerColor' href=./welcome.htm#44>US condemns attack on Benazir Bhutto: State Department</a>"
messages[49]="<a class='TickerColor' href=./welcome.htm#43>Bhutto dies in suicide blast, about 20 killed</a>"
messages[50]="<a class='TickerColor' href=./welcome.htm#42>Benazir’s death may trigger terror: Russian diplomat</a>"
messages[51]="<a class='TickerColor' href=./welcome.htm#41>Benazir Bhutto killed in gun, bomb attack</a>"
messages[52]="<a class='TickerColor' href=./welcome.htm#40>Benazir Bhutto dies</a>"
messages[53]="<a class='TickerColor' href=./welcome.htm#39>Benazir seriously injured in election meeting bomb blast</a>"
messages[54]="<a class='TickerColor' href=./welcome.htm#38>Karzai lays floral wreath at Pakistan Monument</a>"
messages[55]="<a class='TickerColor' href=./welcome.htm#37>Suicide bombing at Benazir rally: Interior Ministry</a>"
messages[56]="<a class='TickerColor' href=./welcome.htm#36>Neelum-Jhelum dam project to be completed in 93 months</a>"
messages[57]="<a class='TickerColor' href=./welcome.htm#35>Renewed violence between Hindus and Christians breaks out in eastern India</a>"
messages[58]="<a class='TickerColor' href=./welcome.htm#34>Revolution must to keep country's solidarity intact: Nawaz</a>"
messages[59]="<a class='TickerColor' href=./welcome.htm#33>About 20 killed in blast after Benazir rally</a>"
messages[60]="<a class='TickerColor' href=./welcome.htm#32>Israel captures Islamic Jihad members in West Bank</a>"
messages[61]="<a class='TickerColor' href=./welcome.htm#31>US forces kill 11 militants in Kut</a>"
messages[62]="<a class='TickerColor' href=./welcome.htm#29>Turkish troops attack PKK rebels near Iraqi border</a>"
messages[63]="<a class='TickerColor' href=./welcome.htm#28>Four dead, several hurt in Pakistan election violence</a>"
messages[64]="<a class='TickerColor' href=./welcome.htm#22>President Karzai urges Pakistani business community to invest in Afghanistan</a>"
messages[65]="<a class='TickerColor' href=./welcome.htm#21>Pakistani sectarian clashes kill about 40 tribesmen</a>"
messages[66]="<a class='TickerColor' href=./welcome.htm#27>Security tight as Benazir holds rally in Rawalpindi</a>"
messages[67]="<a class='TickerColor' href=./welcome.htm#26>Ambassador Durrani confident on US aid as bill is signed</a>"
messages[68]="<a class='TickerColor' href=./welcome.htm#24>More than 130 feared dead after Indonesian rains</a>"
messages[69]="<a class='TickerColor' href=./welcome.htm#12>Expelled EU, UN diplomats leave Afghanistan</a>"
messages[70]="<a class='TickerColor' href=./welcome.htm#20>Commandos called in to free Sri Lanka minister held by reporters</a>"
messages[71]="<a class='TickerColor' href=./welcome.htm#19>Four members of a family die as bomb explodes in Pakistan</a>"
messages[72]="<a class='TickerColor' href=./welcome.htm#18>Australia 32-0 &(343) v India (196), first test - close</a>"
messages[73]="<a class='TickerColor' href=./welcome.htm#14>Kenyans pick new president in tense vote</a>"
messages[74]="<a class='TickerColor' href=./welcome.htm#13>India all out for 196 in reply to Australia's 343</a>"
messages[75]="<a class='TickerColor' href=./welcome.htm#11>Sri Lanka says fighter jets destroy Sea Tiger base</a>"
messages[76]="<a class='TickerColor' href=./welcome.htm#8>Two US soldiers killed in Iraq: military</a>"
messages[77]="<a class='TickerColor' href=./welcome.htm#7>Boat capsizes off Cuba with 28 aboard, few survive: relative</a>"
messages[78]="<a class='TickerColor' href=./welcome.htm#5>Earthquake rattles central Turkey</a>"
messages[79]="<a class='TickerColor' href=./welcome.htm#4>Strong earthquake strikes Alaska</a>"
messages[80]="<a class='TickerColor' href=./welcome.htm#3>Six members of family slain in northwest US killings</a>"
messages[81]="<a class='TickerColor' href=./welcome.htm#kse1>At the close of trading the KSE-100 index was at 14772.08 , down 42.77 , points</a>"
messages[82]="<a class='TickerColor' href=./welcome.htm#kse2>The Pakistani Rupee was traded at Rs 61.15, to the US Dollar in the open market</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
	}

