
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#14>Turkish planes strike northern Iraq</a>"
messages[02]="<a class='TickerColor' href=./welcome.htm#13>Two Sudanese men beaten in Germany</a>"
messages[03]="<a class='TickerColor' href=./welcome.htm#12>Suicide bomber kills nine in Mingora: police</a>"
messages[04]="<a class='TickerColor' href=./welcome.htm#11>Two 220kvpower towers bombed in Balochistan</a>"
messages[05]="<a class='TickerColor' href=./welcome.htm#10>Three Canadian soldiers injured in Afghanistan</a>"
messages[06]="<a class='TickerColor' href=./welcome.htm#08>Israel okays short-range missile defence shield</a>"
messages[07]="<a class='TickerColor' href=./welcome.htm#07>Riots erupt in Indian occupied Kashmir</a>"
messages[08]="<a class='TickerColor' href=./welcome.htm#06>Julien Gracq, writer who rejected France's highest literary award, dies at 97</a>"
messages[09]="<a class='TickerColor' href=./welcome.htm#05>Nawaz for end military rule in politics</a>"
messages[10]="<a class='TickerColor' href=./welcome.htm#04>Russian trucks form 100-km queues in Finland</a>"
messages[11]="<a class='TickerColor' href=./welcome.htm#03>Al-Qaeda confirms death of top operative in Iraq</a>"
messages[12]="<a class='TickerColor' href=./welcome.htm#02>About two dozen killed in Afghan violence: authorities</a>"
messages[13]="<a class='TickerColor' href=./welcome.htm#87>Two Afghans questioned in Pakistan blast</a>"
messages[14]="<a class='TickerColor' href=./welcome.htm#99>Pakistan to continue war on terror: minister</a>"
messages[15]="<a class='TickerColor' href=./welcome.htm#86>Benazir claims PPP will form government</a>"
messages[16]="<a class='TickerColor' href=./welcome.htm#83>Government paying Rs 13 bln per month subsidy to check POL prices</a>"
messages[17]="<a class='TickerColor' href=./welcome.htm#82>Benazir still hopeful of seat adjustment</a>"
messages[18]="<a class='TickerColor' href=./welcome.htm#90>Pakistan's economy continues to perform well : IMF</a>"
messages[19]="<a class='TickerColor' href=./welcome.htm#01>Five hurt as workers of PPP, SUP clash</a>"            
messages[20]="<a class='TickerColor' href=./welcome.htm#97>13 killed in Afghanistan unrest: police, army</a>"
messages[21]="<a class='TickerColor' href=./welcome.htm#96>Saudi Arabia arrests 28 for planning 'criminal acts'</a>"
messages[22]="<a class='TickerColor' href=./welcome.htm#95>Rare statues go missing from Bangladesh airport</a>"
messages[23]="<a class='TickerColor' href=./welcome.htm#94>Fighting kills five in Mogadishu</a>"
messages[24]="<a class='TickerColor' href=./welcome.htm#92>Bahrain hit by protests</a>"
messages[25]="<a class='TickerColor' href=./welcome.htm#91>Five dead in US snow storm</a>"
messages[26]="<a class='TickerColor' href=./welcome.htm#89>Iraqi Sunni tribal militias will not become a separate army: minister</a>"
messages[27]="<a class='TickerColor' href=./welcome.htm#88>Israel plans 740 new homes on occupied land</a>"
messages[28]="<a class='TickerColor' href=./welcome.htm#85>Haniyeh aide: Hamas ready for truce if Israel stops military strikes, opens crossings</a>"
messages[29]="<a class='TickerColor' href=./welcome.htm#79>India's Congress concedes defeat in key state vote</a>"
messages[30]="<a class='TickerColor' href=./welcome.htm#78>Policeman killed in Chechen capital</a>"
messages[31]="<a class='TickerColor' href=./welcome.htm#77>Turkey stages new air attack on Kurd rebels in Iraq</a>"
messages[32]="<a class='TickerColor' href=./welcome.htm#76>Voting starts in Uzbekistan election</a>"
messages[33]="<a class='TickerColor' href=./welcome.htm#75>Polls open in Thailand's first post-coup election</a>"
messages[34]="<a class='TickerColor' href=./welcome.htm#74>At least 22 Myanmar people killed in boat accident: Thai police</a>"
messages[35]="<a class='TickerColor' href=./welcome.htm#72>Italian PM in Afghanistan</a>"
messages[36]="<a class='TickerColor' href=./welcome.htm#71>Six die in fire on French Caribbean island</a>"
messages[37]="<a class='TickerColor' href=./welcome.htm#70>Senegal, Morocco withdraw envoys in diplomatic spat</a>"
messages[38]="<a class='TickerColor' href=./welcome.htm#69>Three Afghan anti-drugs forces killed: police</a>"
messages[39]="<a class='TickerColor' href=./welcome.htm#68>French, Australian leaders pledge commitment to Afghanistan</a>"
messages[40]="<a class='TickerColor' href=./welcome.htm#67>Indian police cane girls protesting teacher's killing</a>"
messages[41]="<a class='TickerColor' href=./welcome.htm#66>Iran bus crash kills seven university students</a>"
messages[42]="<a class='TickerColor' href=./welcome.htm#65>Ground crew strike hits Orly airport</a>"
messages[43]="<a class='TickerColor' href=./welcome.htm#64>16 Egyptians drown after bus falls off of Nile ferry</a>"
messages[44]="<a class='TickerColor' href=./welcome.htm#63>Australian PM visits Afghanistan</a>"
messages[45]="<a class='TickerColor' href=./welcome.htm#62>Suicide bomber kills four in west Baghdad</a>"
messages[46]="<a class='TickerColor' href=./welcome.htm#61>French president leaves Afghanistan</a>"
messages[47]="<a class='TickerColor' href=./welcome.htm#60>Former British PM Blair converts to Catholicism</a>"
messages[48]="<a class='TickerColor' href=./welcome.htm#59>Koreas agree to allow passengers on cross-border train service</a>"
messages[49]="<a class='TickerColor' href=./welcome.htm#57>800-year-old merchant ship raised from China Sea</a>"
messages[50]="<a class='TickerColor' href=./welcome.htm#56>Key Tiger rebel front line taken: Sri Lanka defence ministry</a>"
messages[51]="<a class='TickerColor' href=./welcome.htm#55>Pakistan celebrates three Eid in 2007</a>"
messages[52]="<a class='TickerColor' href=./welcome.htm#54>Four killed in Japan chemical plant fire: police</a>"
messages[53]="<a class='TickerColor' href=./welcome.htm#53>Eight rebels, soldier killed as Sri Lankan troops capture northern rebel post</a>"
messages[54]="<a class='TickerColor' href=./welcome.htm#52>One US soldier killed, 11 hurt in Iraq road bombs</a>"
messages[55]="<a class='TickerColor' href=./welcome.htm#51>Two militants arrested for India court blasts: police</a>"
messages[56]="<a class='TickerColor' href=./welcome.htm#50>Sri Lanka and England draw third test</a>"
messages[57]="<a class='TickerColor' href=./welcome.htm#49>Quake of 6.4 magnitude hits eastern Indonesia</a>"
messages[58]="<a class='TickerColor' href=./welcome.htm#48>Pakistan arrests suspect in Charsadda mosque suicide bombing</a>"
messages[59]="<a class='TickerColor' href=./welcome.htm#47>Gates says al-Qaeda targeting Pakistani government and people</a>"
messages[60]="<a class='TickerColor' href=./welcome.htm#46>China produces new bullet train that runs 300 km per hour</a>"
messages[61]="<a class='TickerColor' href=./welcome.htm#45>Pakistan bomber loaded with ball bearings: hospital</a>"
messages[62]="<a class='TickerColor' href=./welcome.htm#44>Pakistani police seek clues to Charsadda suicide bomber's identity</a>"
messages[63]="<a class='TickerColor' href=./welcome.htm#42>15 dead in Tajikistan avalanche	</a>"
messages[64]="<a class='TickerColor' href=./welcome.htm#40>India hopes to start work on IPI gas pipeline by March</a>"
messages[65]="<a class='TickerColor' href=./welcome.htm#39>Kashmiris reaffirm commitment to continue struggle</a>"
messages[66]="<a class='TickerColor' href=./welcome.htm#38>China's first home-grown regional jet rolls off production line</a>"
messages[67]="<a class='TickerColor' href=./welcome.htm#37>Rice notes Musharraf steps, free poll to help in Pakistan's advance as moderate democratic country</a>"
messages[68]="<a class='TickerColor' href=./welcome.htm#36>Muslim pilgrims sadly say farewell as Haj winds down in Saudi Arabia</a>"
messages[69]="<a class='TickerColor' href=./welcome.htm#35>Maoists kill 12 policemen in central India</a>"
messages[70]="<a class='TickerColor' href=./welcome.htm#33>US troops could soon begin partial Iraq pullout: Gates</a>"
messages[71]="<a class='TickerColor' href=./welcome.htm#32>Saudis bust Islamist ring planning attack during Haj</a>"
messages[72]="<a class='TickerColor' href=./welcome.htm#31>US opposes Taiwan referendum to UN as 'provocative'</a>"
messages[73]="<a class='TickerColor' href=./welcome.htm#30>US envoy urges Iran to own up to nuclear weapons programme</a>"
messages[74]="<a class='TickerColor' href=./welcome.htm#29>Sharif has accepted Benazir’s domination: Chaudhry Shujaat</a>"
messages[75]="<a class='TickerColor' href=./welcome.htm#28>18 dead, 43 hurt in Sierra Leone gas explosion</a>"
messages[76]="<a class='TickerColor' href=./welcome.htm#27>West Bank demonstration; five protestors beaten, one briefly detained</a>"
messages[77]="<a class='TickerColor' href=./welcome.htm#26>Presidential envoy killed in Senegal's restive south</a>"
messages[78]="<a class='TickerColor' href=./welcome.htm#25>Four killed in Karachi’s Lyari</a>"
messages[79]="<a class='TickerColor' href=./welcome.htm#24>Suicide car bomb kills five at Iraq police station</a>"
messages[80]="<a class='TickerColor' href=./welcome.htm#23>Attack on bunker kills two Tamil rebels in northern Sri Lanka</a>"
messages[81]="<a class='TickerColor' href=./welcome.htm#22>Two killed in Japanese chemical plant fire</a>"
messages[82]="<a class='TickerColor' href=./welcome.htm#21>Gas pipeline blown up in Dera Bugti</a>"
messages[83]="<a class='TickerColor' href=./welcome.htm#20>Prisoner killed, three injured in Khuzdar jail</a>"
messages[84]="<a class='TickerColor' href=./welcome.htm#19>Three militants shot dead in Thai south</a>"
messages[85]="<a class='TickerColor' href=./welcome.htm#18>Eight dead, 24 hurt in Egypt bus crash</a>"
messages[86]="<a class='TickerColor' href=./welcome.htm#15>Musharraf condemns 'distorted thinking' of militants</a>"
messages[87]="<a class='TickerColor' href=./welcome.htm#17>Belgium arrests 14 in militant jail break plot</a>"
messages[88]="<a class='TickerColor' href=./welcome.htm#16>Musharraf condemns 'distorted thinking' of militants</a>"
messages[89]="<a class='TickerColor' href=./welcome.htm#14>Cricket: Play abandoned in England-Sri Lanka Test</a>"
messages[90]="<a class='TickerColor' href=./welcome.htm#13>Police rearrest Pakistani opposition lawyer Aitzaz Ahsan on way to Islamabad</a>"
messages[91]="<a class='TickerColor' href=./welcome.htm#12>Accidental blast kills 2 children, wounds 1 in Afghanistan</a>"
messages[92]="<a class='TickerColor' href=./welcome.htm#11>Saudi police on alert as pilgrims rush to finish rite</a>"
messages[93]="<a class='TickerColor' href=./welcome.htm#10>Russia would veto UN backing for Kosovo independence: Lavrov</a>"
messages[94]="<a class='TickerColor' href=./welcome.htm#8>54 killed in suicide attack at Sherpao mosque, Aftab Sherpao escaped unhurt, younger son slightly injured</a>"
messages[95]="<a class='TickerColor' href=./welcome.htm#9>Eid festivities spoiled by Charsadda bomb blast; Musharraf prays for peace</a>"
messages[96]="<a class='TickerColor' href=./welcome.htm#7>Pakistani rights lawyer urges US to examine Musharraf's role in fighting terrorism</a>"
messages[97]="<a class='TickerColor' href=./welcome.htm#5>US military judge denies bin Laden's driver POW status</a>"
messages[98]="<a class='TickerColor' href=./welcome.htm#3>Aftershocks rock New Zealand city after major quake</a>"
messages[99]="<a class='TickerColor' href=./welcome.htm#1>Palestinian militant shot dead near Gaza border</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
	}

