var hotspot_delay=6000 //set delay between message change (in miliseconds)
var hotspot_fcontent=new Array()
hotspot_begintag='' //set opening tag, such as font declarations
hotspot_fcontent = [
	'<strong>Experience is a hard teacher because she gives the test first, the lesson afterwards.<br /><br /><div class="source">&#8212; <i>Vernon Saunders Law</i></strong></div>',

	'<strong>You can easily judge the character of others by how they treat those who can do nothing for them or to them.<br /><br /><div class="source">&#8212; <i>Malcolm Forbes</i></strong></div>',

	'<strong>The universe is full of magical things, patiently waiting for our wits to grow sharper.<br /><br /><div class="source">&#8212; <i>Eden Phillpotts</i></strong></div>',

	'<strong>The greatest revolution of my life is the discovery that individuals can change the outer aspects of their lives by changing the inner attitudes of their minds.<br /><div class="source">&#8212; <i>William James</i></strong></div>',

	'<strong>Once you get people laughing, they’re listening and you can tell them almost anything.<br /><br /><div class="source">&#8212; <i>Herb Gardner</i></strong></div>',

	'<strong>If you cannot find the truth right where you are, where else do you expect to find it?<br /><br /><div class="source">&#8212; <i>Dogen</i></strong></div>',

	'<strong>If you don’t know where you’re going, any road will take you there.<br /><br /><div class="source">&#8212; <i>Lewis Caroll</i></strong></div>',

	'<strong>There is no limit to what you can accomplish if you know the direction you are going and you are willing to make the effort.<br /><br /><div class="source">&#8212; <i>Brian Tracy</i></strong></div>',

	'<strong>It has been my observation that most people get ahead during the time that others waste.<br /><br /><div class="source">&#8212; <i>Henry Ford</i></strong></div>'
];

hotspot_closetag=''

var hotspot_fwidth=450 //set scroller width
var hotspot_fheight=60 //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
