<!--
var tickertapewidth=976
var tickertapeheight=27
var tickertapebgcolor="#ffffff"
var pauseit=1 //Pause tickertape onMousever (0=no. 1=yes)?
var tickertapespeed=1
var timeout=10

if (typeof(arrTicker)=="undefined") var arrTicker=new Array();

var arrTicker1=new Array();
var arrTicker2=new Array();
if (arrTicker.length>0) {
	var no=arrTicker.length
	var limit=0;
	if (no%2==0) limit=parseInt(no/2)
	else limit=parseInt(no/2)+1
	var j=0;
	for (var i=0; i<limit; i++) {
		arrTicker1[j]=arrTicker[i]
		j++
	}
	j=0;
	for (var i=limit; i<arrTicker.length; i++) {
		arrTicker2[j]=arrTicker[i]
		j++
	}
}

var ff=(navigator.userAgent.indexOf("Firefox")>-1) ? 1:0
var ns6=(navigator.appName.toLowerCase().indexOf("netscape")>-1 && document.getElementById)?1:0;

var tickertapecontent1=''
if (arrTicker1.length>0) {
	tickertapecontent1+='<table width="' + tickertapewidth + '" height="' + tickertapeheight + '" cellspacing="0" cellpadding="0" border="0"><tr>'
	for (var i=0; i<arrTicker1.length; i++) {
		tickertapecontent1+='<td width="147" valign="middle" nowrap class="tickerLN">&nbsp;&nbsp; Latest News &nbsp;&nbsp;</td>'
		tickertapecontent1+='<td width="593" valign="middle" nowrap class="tickertext">&nbsp;&nbsp; ' + arrTicker1[i] + '</td>'
		tickertapecontent1+='<td width="20" valign="middle" nowrap><img src="images/spacer.gif" width="20" height="1" border="0" alt="" /></td>'
	}
	tickertapecontent1+='</tr></table>'
}

var tickertapecontent2=''
if (arrTicker2.length>0) {
	tickertapecontent2+='<table width="' + tickertapewidth + '" height="' + tickertapeheight + '" cellspacing="0" cellpadding="0" border="0"><tr>'
	for (var i=0; i<arrTicker2.length; i++) {
		tickertapecontent2+='<td width="147" valign="middle" nowrap class="tickerLN">&nbsp;&nbsp; Latest News &nbsp;&nbsp;</td>'
		tickertapecontent2+='<td width="593" valign="middle" nowrap class="tickertext">&nbsp;&nbsp; ' + arrTicker2[i] + '</td>'
		tickertapecontent2+='<td width="20" valign="middle" nowrap><img src="images/spacer.gif" width="20" height="1" border="0" alt="" /></td>'
	}
	tickertapecontent2+='</tr></table>'
}


var copyspeed=tickertapespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualwidth=''
var actualwidth2=''
var cross_tickertape, cross_tickertape2

//window.onload=InitTickerTape



function WriteTickerTape(){
	var str=''
	str+='<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+tickertapecontent1+'</span>'
	str+='<table border="0" cellspacing="0" cellpadding="0"><tr><td>'
	str+='<div style="position:relative;width:'+tickertapewidth+';height:'+tickertapeheight+';overflow:hidden; border-top:1px solid #5E3388; border-bottom:1px solid #5E3388; ">'
	str+='<div style="position:absolute;width:'+tickertapewidth+';height:'+tickertapeheight+';background-color:'+tickertapebgcolor+'" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=tickertapespeed">'
	str+='<div id="divTape" style="position:absolute;left:0px;top:0px"></div>'
	str+='<div id="divTape2" style="position:absolute;left:0px;top:0px"></div>'
	str+='</div></div>'
	str+='</td></tr></table>'
	document.write(str)
}

function InitTickerTape(){
	cross_tickertape=document.getElementById ? document.getElementById("divTape") : document.all.divTape
	cross_tickertape.innerHTML=tickertapecontent1
	actualwidth=parseInt(cross_tickertape.offsetWidth)
	
	cross_tickertape2=document.getElementById ? document.getElementById("divTape2") : document.all.divTape2
	cross_tickertape2.innerHTML=tickertapecontent2
	actualwidth2=parseInt(cross_tickertape2.offsetWidth)
	//alert(actualwidth2)
	
	cross_tickertape.style.left="0px"
	cross_tickertape2.style.left=(parseInt(cross_tickertape.style.left) + parseInt(actualwidth))+"px"
	
	setTimeout("StartTickerTape()",3000)
}

function StartTickerTape(){
	lefttime=setInterval("ScrollTickerTape()",timeout)
}
function ScrollTickerTape(){
	if (parseInt(cross_tickertape.style.left)>(actualwidth*(-1))) {
		cross_tickertape.style.left=parseInt(cross_tickertape.style.left)-copyspeed+"px"
	} else {
		cross_tickertape.style.left=parseInt(parseInt(cross_tickertape2.style.left) + parseInt(actualwidth2))+"px"
	}
	
	if (parseInt(cross_tickertape2.style.left)>(actualwidth2*(-1))) {
		cross_tickertape2.style.left=parseInt(cross_tickertape2.style.left)-copyspeed+"px"
	} else {
		cross_tickertape2.style.left=parseInt(parseInt(cross_tickertape.style.left) + parseInt(actualwidth)) +"px"
	}
}

//-->
