//Set Scroller Properties
sTC = "#FFFFFF"   //title text color
sHTC = "#006699"   //title hilite text color
sCC = "#0099CC"   //content text color
sHCC = "#ff3300"   //content hilite text color
sBG = "#000000"   //scroller background color
sTF = "Verdana,Arial,Helvetica"   //title font
sCF = "MS Sans Serif,arial,helvetica"   //content font
sTFS = "9pt"   //title font size
sCFS = "8pt"   //content font size
sW = "180"   //content width
sH = "140"   //content height
sT = 4   //scroller top
sS = 35   //scroller speed
//Set Scroller Variables
var h = new Array();
var w=sW-16;
var objb=null;
var t=0;
var ht=0;
var on=false;
function createItems(){
    n='<div id="block" style="position:absolute;background:'+sBG+';left:0;top:0;">';
    for(i=0;i< title.length;i++){
        n=n+'<div id=c'+i+' onmouseover="mOver('+i+')" onmouseout ="mOut('+i+')" onclick="mClick('+i+')" style="position:absolute;visibility:hidden;width:'+w+'; background:'+sBG+'; color:'+sCC+'; left:0; top:0; font-family:'+sCF+'; font-size:'+sCFS+'; font-style: normal; font-weight: normal; text-decoration: none; margin:0px; overflow-x:hidden; line-height: 12pt; text-align:left;padding:0px; cursor:pointer;"><div id="t'+i+'" style="position:relative;background:'+sBG+'; color:'+sTC+'; width:'+w+'; font-family:'+sTF+'; font-size:'+sTFS+'; font-style: normal; font-weight: bold; text-decoration: none; line-height: 14pt; text-align:left;padding:0px;">'+title[i]+'<br></div>'+text[i]+'</div>';
    }
    n=n+"</div>";
    s=document.getElementById('scroller');
    s.innerHTML=n;
    setTimeout('setItems()',500);
}
function setItems(){
    for(i=0;i< title.length;i++){
        h[i]=document.getElementById('c'+i).offsetHeight;
    }
    t=sT;
    for(i=0;i< title.length;i++){
        objc=document.getElementById('c'+i);
        objc.style.visibility="visible";
        objc.style.top=t+"px";
        t=t+h[i]+10;
    }
    objb=document.getElementById('block');
    objb.style.left=8+"px";
    objb.style.height=t+"px";
    objb.style.width=w+"px";
    ht=sH;
    scrollItems();
}
function mOver(id){
    on=true;
    if((link[id].length)>2){
        document.getElementById('c'+id).style.color=sHCC;
        document.getElementById('t'+id).style.color=sHTC;
        window.status=link[id];
	}
}
function mOut(id){
    on=false;
    document.getElementById('c'+id).style.color=sCC;
    document.getElementById('t'+id).style.color=sTC;
    window.status="";
}
function mClick(id){
    if(link[id].substring(0,11)=="javascript:"){
        eval(link[id]);
    }
    else{
        if(link[id].length>3){
            if((target[id].indexOf("_parent")>-1)){
                eval('parent.window.location="'+link[id]+'"');
            }
            else if((target[id].indexOf("_top")>-1)){
                eval('top.window.location="'+link[id]+'"');
            }
            else{
                window.open(link[id],target[id]);
            }
        }
    }
}
function scrollItems(){
    if(on==false){
        ht--;
        if(ht<(-1*t)){
            ht=140;
        }
        objb.style.top=ht+"px";
    }
    setTimeout('scrollItems()',sS);
}
window.onload=createItems;