var speed=6000

var news=new Array()
news[0]="<a href='#' onClick='LoadContent(\"hkwxgp.list\"); return false;'>Hong Kong Weather Widget v1.05 for Android phone, compatible with 1.5 or up....</a> <font size=1 color=#cccccc>17 Jul 2010</font>"
news[1]="<a href='#' onClick='LoadContent(\"hkwxv3.list\"); return false;'>Hong Kong Weather Plugin v3.13 for Windows phone, compatible with 6.5....</a> <font size=1 color=#cccccc>24 Jul 2010</font>"
news[2]="<a href='#' onClick='LoadContent(\"ip_cr.list\"); return false;'>Chick N' Run for iPhone, cute freeware game...</a> <font size=1 color=#cccccc>14 Jan 2010</font>"
news[3]="<a href='#' onClick='LoadContent(\"pc3mag.list\"); return false;'>PC3 Magazine RSS reader for iPhone &amp; iPod Touch...</a> <font size=1 color=#cccccc>11 Jan 2010</font>"
news[4]="<a href='#' onClick='LoadContent(\"pc3corp.list\"); return false;'>PC3 Corporate RSS reader for iPhone &amp; iPod Touch...</a> <font size=1 color=#cccccc>11 Jan 2010</font>"
news[5]="<a href='#' onClick='LoadContent(\"m8.list\"); return false;'>M8 v1.09 software keyboard for Windows phone, single hand typing...</a> <font size=1 color=#cccccc>22 Dec 2009</font>"
//expand or shorten this list of messages as desired

var fadescheme=1 //set 0 to fade bgcolor from (white to black), 1 for (black to white)
var hex=(fadescheme==0)? 255 : 0
var startcolor=(fadescheme==0)? "rgb(255,255,255)" : "rgb(0,0,0)"
var endcolor=(fadescheme==0)? "rgb(0,0,0)" : "rgb(255,255,255)"
var frame=20;

var ie=document.all
var ns6=document.getElementById
var ns4=document.layers

i=0
tickerobject=ie? subtickertape: ns6? document.getElementById("subtickertape") : document.tickertape.document

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",450)
}

function bgcolorfade() {	         	
// 20 frames fading process
if(frame>0) {	
hex=(fadescheme==0)? hex-12 : hex+12 // increase or decrease color value depd on fadescheme
tickerobject.style.backgroundColor="rgb("+hex+","+hex+","+hex+")"; // Set color value.
frame--;
setTimeout("bgcolorfade()",20);	
}
else{
tickerobject.style.backgroundColor=endcolor;
frame=20;
hex=(fadescheme==0)? 255 : 0
}   
}

function updatecontent(){
if (ie||ns6)
bgcolorfade()
if (ns4){
tickerobject.subtickertape.document.write('<span class="subtickertapefont">'+news[i]+'</span>')
tickerobject.subtickertape.document.close()
}
else 
tickerobject.innerHTML=news[i]

if (i<news.length-1)
i++
else
i=0
setTimeout("updatecontent()",speed)
}
