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>Last year\'s yield was decreased 50% on the red varieties. <i>This year the harvest was virtually left undamaged due to the BirdGard unit</i>. I was very pleased with the BirdGard and would not hesitate to recommend it to other grape growers.</p><div class="source">&#8212; Rutgers Cooperative Extension</div>',

	'<p><i>The BirdGard unit\'s performance was very impressive and we are pleased with the results</i>. The test (vineyard) was part of a 3.8-acre block stripped of its crop over a two-day period by birds last year. While the vineyard is far from its potential, we did harvest 1.5 tons of grapes this year. I believe that the yield would have been much less if not for the BirdGard. The alarm does a good job of scaring birds and it also does a good job of attracting predators.</p><div class="source">&#8212; Cornell University</div>',

	'<p>The three (BirdGard units) we used together are extremely effective for bird control and our neighbors appreciate the lower sound levels.</p><div class="source">&#8212; Bob Gabriel<br />Oregon Blueberry Farms and Nursery<br />Silverton, OR</div>',

	'<p>The species controlled was the common robin. The check in this instance was 14 years of annual loss. <i>This year I experienced zero losses. It resulted in an additional six to eight tons of harvest on five acres of (blue)berries</i>.</p><div class="source">&#8212;  Clemson University Cooperative Extension Service</div>'
];

hotspot_closetag=''

var hotspot_fwidth=210 //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
