var hotspot_delay=12000 //set delay between message change (in miliseconds)
var hotspot_fcontent=new Array()
hotspot_begintag='' //set opening tag, such as font declarations
hotspot_fcontent = [
	'<p>We have been using VeriPay since July 2004. It works in numerous ways for credit control. Basically it ensures we are aware of any circumstances regarding our security.</p><div class="source">&#8212; Jane Geerlings<br />Manager<br />Fusion Finance Ltd <br />(in Receivership)</div>',
	'<p>This product has proved to be a winner for debt collection. The loans have been performing very well with only two borrowers out of eighty causing us to instigate repossession procedures.</p><div class="source">&#8212; Trent Walton<br />Finance Manager<br />National Finance 2000 Ltd.</div>',
	'<p>The system has released our debtor controllers from ringing the borrower when arrears have developed. The borrower now rings us.</p><div class="source">&#8212; Trent Walton<br />Finance Manager<br />National Finance 2000 Ltd.</div>',
	'<p>Loans covered with VeriPay now constitute more than 95% of our ledger. We have observed that the system has been effective in enforcing payments and our recovery rate has increased with its assistance.</p><div class="source">&#8212;  Harry Singh<br />General Manager<br />Auto Leasing & Finance Ltd.</div>'
];

hotspot_closetag=''

var hotspot_fwidth=180 //set scroller width
var hotspot_fheight=25 //set scroller height

///No need to edit below this line/////////////////

var hotspot_ie4=document.all&&!document.getElementById
var hotspot_ns4=document.layers
var hotspot_DOM2=document.getElementById
var hotspot_fader_delay=0
var hotspot_index=Math.floor(Math.random()*hotspot_fcontent.length);

if (hotspot_DOM2)
    hotspot_hotspot_fader_delay=2000

//function to change content
function hotspot_changecontent()
{
    if (hotspot_index>=hotspot_fcontent.length)
        hotspot_index=0

    if (hotspot_DOM2)
    {
        document.getElementById("hotspot_fscroller").style.color="rgb(0,0,0)"
        document.getElementById("hotspot_fscroller").innerHTML=
            hotspot_begintag
            //+ "Index: " + hotspot_index + "<br>"
            //+ "Length: " + hotspot_fcontent.length + "<br>"
            + hotspot_fcontent[hotspot_index]
            + hotspot_closetag
        ;
        hotspot_colorfade()
    }
    else if (hotspot_ie4)
        document.all.hotspot_fscroller.innerHTML=hotspot_begintag+hotspot_fcontent[hotspot_index]+hotspot_closetag
    else if (hotspot_ns4)
    {
        document.fscrollerns.document.fscrollerns_sub.document.write(hotspot_begintag+hotspot_fcontent[hotspot_index]+hotspot_closetag)
        document.fscrollerns.document.fscrollerns_sub.document.close()
    }

    /* hotspot_index=Math.floor(Math.random()*hotspot_fcontent.length);*/
    hotspot_index += 1;
    setTimeout("hotspot_changecontent()",hotspot_delay+hotspot_fader_delay)
}

// hotspot_colorfade() partially by Marcio Galli for Netscape Communications.
////////////
// Modified by Dynamicdrive.com

hotspot_frame=20;
hotspot_hex=255 // Initial color value.

function hotspot_colorfade()
{
    // 20 frames fading process
    if(hotspot_frame>0)
    {
        hotspot_hex-=12; // increase color value
        document.getElementById("hotspot_fscroller").style.color="rgb("+0+","+0+","+0+")"; // Set color value.
        hotspot_frame--;
        setTimeout("hotspot_colorfade()",hotspot_fader_delay);
    }
    else
    {
        document.getElementById("hotspot_fscroller").style.color="rgb(0,0,0)"; // Set End Colour Value
        hotspot_frame=20;
        hotspot_hex=128
    }
}

//if (hotspot_ie4||hotspot_DOM2)
//    document.write('<div id="hotspot_fscroller" style="width:'+hotspot_fwidth+';height:'+hotspot_fheight+';"></div>')

//window.onload=hotspot_changecontent
