var tickercontent=new Array()
tickercontent[0]='<a href="gallery/photogallery.html">AIS-Stanton Technologies Signing Ceremony</a><br />Advanced Info Service PLC and Stanton Technologies held a signing ceremony recently at AIS headquarters in Bangkok... <br /> <br /> <a href="gallery/photogallery.html">Click to see images</a>'
tickercontent[1]='<a href="gallery">Stanton, China Firms Team Up</a><br /><b>Starbiz, Friday 14th March 2008 - Beijing :</b> Stanton Technologies Sdn Bhd, enroute to a listing on the Dubai Financial Exchange, has sealed an agreement with two China state-owned agencies, giving it IPTV solutions and content access to more than half a billion mobile users.'
tickercontent[2]='<a href="gallery">Mideast Investor See Potential in Stanton</a><br /><b>Starbiz, Friday 10th March 2008 :</b> Sheikh Sultan Al-Qasimi, the chairman and CEO of UAE\'s Gurl Holdings LLC, has great confidence in Penang based Stanton Technologies Sdn Bhd.'
tickercontent[3]='<a href="gallery">DiGi Brings Bollywood to Users</a><br /><b>Starbiz, Tuesday 26th February 2008 :</b> Mobile phone operator DiGi.com Bhd is launching Bollywood video contents for it\'s D\'podCast subscribers next month in a move to boost its mobile data revenue.'
tickercontent[4]='<a href="gallery">DiGi\'s D\'podcast to Offer Bollywood Content</a><br /><b>Starbiz, Tuesday 26th February 2008 - SHAH ALAM :</b> DiGi Telecommunications Sdn Bhd will offer the latest entertainment and news content from Bollywood to subscribers of its mobile podcasts - D\'podCast - from March.'

var tickercontent2=new Array()
tickercontent2[0]='<a href="http://www.news.com">News.com: Technology and business reports</a>'
tickercontent2[1]='<a href="http://www.cnn.com">CNN: Headline and breaking news 24/7</a>'
tickercontent2[2]='<a href="http://news.bbc.co.uk">BBC News: UK and international news</a>'

function domticker(content, divId, divClass, delay, fadeornot){
this.content=content
this.tickerid=divId //ID of master ticker div. Message is contained inside first child of ticker div
this.delay=delay //Delay between msg change, in miliseconds.
this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over ticker (and pause it if it is)
this.pointer=1
this.opacitystring=(typeof fadeornot!="undefined")? "width: 100%; filter:progid:DXImageTransform.Microsoft.alpha(opacity=100); -moz-opacity: 1" : ""
if (this.opacitystring!="") this.delay+=500 //add 1/2 sec to account for fade effect, if enabled
this.opacitysetting=0.2 //Opacity value when reset. Internal use.
document.write('<div id="domticker" class="'+divClass+'"><div style="'+this.opacitystring+';border:none">'+content[0]+'<br /></div></div>')
var instanceOfTicker=this
setTimeout(function(){instanceOfTicker.initialize()}, delay)
}

domticker.prototype.initialize=function(){
var instanceOfTicker=this
this.contentdiv=document.getElementById(this.tickerid).firstChild //div of inner content that holds the messages
document.getElementById(this.tickerid).onmouseover=function(){instanceOfTicker.mouseoverBol=1}
document.getElementById(this.tickerid).onmouseout=function(){instanceOfTicker.mouseoverBol=0}
this.rotatemsg()
}

domticker.prototype.rotatemsg=function(){
var instanceOfTicker=this
if (this.mouseoverBol==1) //if mouse is currently over ticker, do nothing (pause it)
setTimeout(function(){instanceOfTicker.rotatemsg()}, 100)
else{
this.fadetransition("reset") //FADE EFFECT- RESET OPACITY
this.contentdiv.innerHTML=this.content[this.pointer]
this.fadetimer1=setInterval(function(){instanceOfTicker.fadetransition('up', 'fadetimer1')}, 100) //FADE EFFECT- PLAY IT
this.pointer=(this.pointer<this.content.length-1)? this.pointer+1 : 0
setTimeout(function(){instanceOfTicker.rotatemsg()}, this.delay) //update container
}
}

domticker.prototype.fadetransition=function(fadetype, timerid){
var contentdiv=this.contentdiv
if (fadetype=="reset")
this.opacitysetting=0.2
if (contentdiv.filters && contentdiv.filters[0]){
if (typeof contentdiv.filters[0].opacity=="number") //IE6+
contentdiv.filters[0].opacity=this.opacitysetting*100
else //IE 5.5
contentdiv.style.filter="alpha(opacity="+this.opacitysetting*100+")"
}
else if (typeof contentdiv.style.MozOpacity!="undefined" && this.opacitystring!=""){
contentdiv.style.MozOpacity=this.opacitysetting
}
else
this.opacitysetting=1
if (fadetype=="up")
this.opacitysetting+=0.2
if (fadetype=="up" && this.opacitysetting>=1)
clearInterval(this[timerid])
}
