
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#30>Pakistan arrests 27 Taliban fighters at hospital: police</a>"
messages[02]="<a class='TickerColor' href=./welcome.htm#41>New suspect held over UK planes bomb plot: police</a>"
messages[03]="<a class='TickerColor' href=./welcome.htm#40>Pakistan arrests suspected \"suicide trainer\"</a>"
messages[04]="<a class='TickerColor' href=./welcome.htm#39>Seven people swept awax by overnight flashflood in Kohistan</a>"
messages[05]="<a class='TickerColor' href=./welcome.htm#38>Kashmiris across LoC observe Indian Independence day as 'Black Day'</a>"
messages[06]="<a class='TickerColor' href=./welcome.htm#37>Akhtar out but Hafeez in line for England finale</a>"
messages[07]="<a class='TickerColor' href=./welcome.htm#36>Aid groups hunt for those trapped by Lebanon war</a>"
messages[08]="<a class='TickerColor' href=./welcome.htm#35>Pakistan may extradite Briton detained over London terror plot to the UK</a>"
messages[09]="<a class='TickerColor' href=./welcome.htm#34>Indian military gunfire wounds 2 civilians in Azad Kashmir, army says</a>"
messages[10]="<a class='TickerColor' href=./welcome.htm#33>South Africa to await ICC's security evaluation after blast in Sri Lanka</a>"
messages[11]="<a class='TickerColor' href=./welcome.htm#32>Iran's Ahmadinejad rejects UN nuclear resolution</a>"
messages[12]="<a class='TickerColor' href=./welcome.htm#31>At least 17 killed in Iraq violence</a>"
messages[13]="<a class='TickerColor' href=./welcome.htm#29>Pakistan pursuing intellectual property rights laws: PM</a>"
messages[14]="<a class='TickerColor' href=./welcome.htm#28>Damaged railway track to be operational Wednesday</a>"
messages[15]="<a class='TickerColor' href=./welcome.htm#27>Three including two kids, woman killed, 13 wounded in road accident</a>"
messages[16]="<a class='TickerColor' href=./welcome.htm#26>Israel could quit Lebanon in 7-10-days -army chief</a>"
messages[17]="<a class='TickerColor' href=./welcome.htm#24>Militants kill 6 police in western Afghanistan; al-Qaida suspect slain in east</a>"
messages[18]="<a class='TickerColor' href=./welcome.htm#23>Syrian leader calls America's Mideast plan an \"illusion\" after Hezbollah victory against Israel</a>"
messages[19]="<a class='TickerColor' href=./welcome.htm#22>Pakistan says no charity link to bomb plot</a>"
messages[20]="<a class='TickerColor' href=./welcome.htm#21>Arms deal made Pakistan envoy target for Sri Lanka rebels</a>"
messages[21]="<a class='TickerColor' href=./welcome.htm#19>Bangladesh detains four for plot against leaders</a>"
messages[22]="<a class='TickerColor' href=./welcome.htm#16>Israel begins thinning out forces in Lebanon</a>"
messages[23]="<a class='TickerColor' href=./welcome.htm#13>Cricket-Tri-series opener in Sri Lanka called off after bomb blast</a>"
messages[24]="<a class='TickerColor' href=./welcome.htm#11>Japanese tanker in Indian Ocean spills 4,500 tons of crude oil</a>"
messages[25]="<a class='TickerColor' href=./welcome.htm#10>Indian PM urges Pakistan to fulfil terror pledge</a>"
messages[26]="<a class='TickerColor' href=./welcome.htm#4>Twelve Palestinians injured in Israeli raid in Gaza</a>"
messages[27]="<a class='TickerColor' href=./welcome.htm#3>Dozen rockets fired against Israeli troops in Lebanon: army</a>"
messages[28]="<a class='TickerColor' href=./welcome.htm#2>Hezbollah says none of its fighters killed after ceasefire</a>"
messages[29]="<a class='TickerColor' href=./welcome.htm#1>Death toll from Typhoon Saomai rises to 295</a>"
messages[30]="<a class='TickerColor' href=./welcome.htm#a9>Guns fall silent in south Lebanon</a>"
messages[31]="<a class='TickerColor' href=./welcome.htm#a17>Pakistan ambassador escapes Sri Lanka blast</a>"
messages[32]="<a class='TickerColor' href=./welcome.htm#a7>Sri Lanka rebels say orphanage bombed, 43 girls dead</a>"
messages[33]="<a class='TickerColor' href=./welcome.htm#a37>President hosts reception in honour of armed forces officers</a>"
messages[34]="<a class='TickerColor' href=./welcome.htm#a23>Pakistan marks Independence Day under tight security</a>"
messages[35]="<a class='TickerColor' href=./welcome.htm#a44>Indian nuclear scientists speak out against nuclear deal with U.S.</a>"
messages[36]="<a class='TickerColor' href=./welcome.htm#a43>Sri Lanka says suicide bomber triggered blast near Pakistani diplomat's convoy</a>"
messages[37]="<a class='TickerColor' href=./welcome.htm#a42>French commander of U.N. peacekeeping force in Lebanon seeks reinforcements quickly</a>"
messages[38]="<a class='TickerColor' href=./welcome.htm#a41>Afghan violence leaves at least 18 dead; 4 NATO troops wounded in Kabul blast</a>"
messages[39]="<a class='TickerColor' href=./welcome.htm#a40>Defiant Olmert vows to hunt down Hezbollah</a>"
messages[40]="<a class='TickerColor' href=./welcome.htm#a39>At least 125 killed in southwest Ethiopian floods</a>"
messages[41]="<a class='TickerColor' href=./welcome.htm#a38>Three killed in India's Assam after military operations halted</a>"
messages[42]="<a class='TickerColor' href=./welcome.htm#a36>PM launches Rawalpindi-Karachi non-stop Burraq Express</a>"
messages[43]="<a class='TickerColor' href=./welcome.htm#a35>23-points Islamabad Declaration of IJC to be mile-stone for future of Pakistan: Chief Justice</a>"
messages[44]="<a class='TickerColor' href=./welcome.htm#a34>Fragile Lebanon ceasefire takes hold</a>"
messages[45]="<a class='TickerColor' href=./welcome.htm#a33>Colombo blast casts shadow over Sri Lanka tri-series</a>"
messages[46]="<a class='TickerColor' href=./welcome.htm#a32>Israel says nine soldiers killed in Lebanon Sunday</a>"
messages[47]="<a class='TickerColor' href=./welcome.htm#a31>Confusion over cause of deadly Baghdad blast that killed 57</a>"
messages[48]="<a class='TickerColor' href=./welcome.htm#a30>Nigeria formally hands over Bakassi to Cameroon</a>"
messages[49]="<a class='TickerColor' href=./welcome.htm#a29>Soldier killed, 7 hurt in occupied  Kashmir</a>"
messages[50]="<a class='TickerColor' href=./welcome.htm#a28>Sweden to host Lebanon aid conference August 31</a>"
messages[51]="<a class='TickerColor' href=./welcome.htm#a27>Pakistan reiterates support to the Kashmiris</a>"
messages[52]="<a class='TickerColor' href=./welcome.htm#a26>22 killed when truck collides with bus in southern Iran</a>"
messages[53]="<a class='TickerColor' href=./welcome.htm#a25>Israel, Lebanon army meet with UN force over pullout</a>"
messages[54]="<a class='TickerColor' href=./welcome.htm#a24>Two Hezbollah fighters killed in Lebanon: Israel</a>"
messages[55]="<a class='TickerColor' href=./welcome.htm#a20>One killed, six injured after cluster bomb explodes in Lebanon</a>"
messages[56]="<a class='TickerColor' href=./welcome.htm#a18>Bicycle bomb kills one, injures four in Pakistan</a>"
messages[57]="<a class='TickerColor' href=./welcome.htm#a16>President, PM attend ceremony to mark Independence Day celebrations</a>"
messages[58]="<a class='TickerColor' href=./welcome.htm#a15>Four Australian soldiers injured in Baghdad rocket attack</a>"
messages[59]="<a class='TickerColor' href=./welcome.htm#a14>Three killed as three car bombs rock Baghdad</a>"
messages[60]="<a class='TickerColor' href=./welcome.htm#a13>Thousands of displaced head back to Lebanon</a>"
messages[61]="<a class='TickerColor' href=./welcome.htm#a12>Israeli strike kills three Palestinian civilians in Gaza</a>"
messages[62]="<a class='TickerColor' href=./welcome.htm#a10>Israel to maintain Lebanon blockade</a>"
messages[63]="<a class='TickerColor' href=./welcome.htm#a5>Five Philippines soldiers dead, 22 others injured in bus crash</a>"
messages[64]="<a class='TickerColor' href=./welcome.htm#a4>Solana wants quick UN troop deployment to Lebanon</a>"
messages[65]="<a class='TickerColor' href=./welcome.htm#a3>US cuts threat level for UK-US flights to orange</a>"
messages[66]="<a class='TickerColor' href=./welcome.htm#a2>At least nine killed in Israeli raids in Lebanon</a>"
messages[67]="<a class='TickerColor' href=./welcome.htm#a1>Israeli shells south Lebanon as fighting due to end</a>"
messages[68]="<a class='TickerColor' href=./welcome.htm#kse1>At close of trading, the KSE-100 index was at 10316.90, down 89.50 points</a>"
messages[69]="<a class='TickerColor' href=./welcome.htm#kse2>The Pakistani Rupee was traded at Rs 60.57 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
	}

