var delay = 5000; //set delay between message change (in miliseconds)
var maxsteps=50; // number of steps to take to change from start color to endcolor
var stepdelay=30; // time in miliseconds of a single step
//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect
var startcolor= new Array(255,255,255); // start color (red, green, blue)
var endcolor=new Array(0,0,85); // end color (red, green, blue)

var fcontent=new Array();
begintag='<div align=CENTER style="font-family: Arial; padding: 25px;">'; //set opening tag, such as font declarations
fcontent[0]='Early in the season when weeds are short and stringy, a jig tipped with a leech, crawler or minnow can be easily worked through the weed bed.';
fcontent[1]='The most effective method for catching cold water fish below river dams in late winter-early spring is using a jig, minnow and stinger hook.';
fcontent[2]='In spring, feeder creeks are often a little warmer than the main river, attracting baitfish, in turn attracting walleyes.';
fcontent[3]='One of the biggest mistakes anglers make when cold-water vertical jigging is ripping their lures too rapidly.';
fcontent[4]='Make sure your jig doesn&#39;t go below suspended walleye. One trick is to mark the fish level and put a slip bobber knot on the line and adjust it for the amount of line needed under the rod tip to reach the fish.';
fcontent[5]='When jigging with spoons, matching the forage base is key. When the forage is short and wide, such as shad, small bluegills or crappies, I&#39;ll use the Bait Rigs Deep Willow in three quarter ounce size.';
fcontent[6]='Matching the forage base is key when jigging with spoons. Where the forage is long and thin, such as minnows, perch and other fingerling baitfish, I&#39;ll use the Mann-o-Lure in half and one ounce sizes.';
fcontent[7]='Vertical jigging suspended fish works best with spoons, snapping them up five feet or so, then allowing them to flutter back to the fish.';
fcontent[8]='When casting with slip bobbers near branches and tree trunks, tie a slip bobber knot above and below the bobber so that when the inevitable snags occur, you&#39;ll only have to re-tie the jig and you&#39;ll save a few bobbers.';
fcontent[9]='If the walleyes are located right at the bottom, a vertical presentation with a stand-up jig will catch the most fish. Before you buy one, stand it up on the counter and make sure it&#39;s not too easy to knock over--it won&#39;t catch any fish lying on its side.';
fcontent[10]='When fish are deep, they are usually in a neutral or negative feeding mood. This calls for a vertical jigging presentation at their exact depth.';
fcontent[11]='To catch weed fish, hang a jig below a slip bobber and work it slowly through the tall weeds. The jig should be suspended between 6&#39; to a foot off the bottom.';
fcontent[12]='Don&#39;t allow the jig to be dragged along the bottom under the fish. That&#39;s a poor presentation because walleyes feed at or above the level they&#39;re on.';
fcontent[13]='It takes practice to tell the difference between a walleye bite and a weed, but follow this simple rule of thumb: If you&#39;re not sure, set the hook! You&#39;ll catch a lot more walleyes that way.';
fcontent[14]='When fishing big rivers, expect to locate walleyes on the bottom edges of rip-rap, alongside and below bridge abutments, bridge shadelines and places where smaller creeks flow into the system.';
fcontent[15]='As a rule, big rivers means big jigs because the fish tend to hold in areas where surface current is fast, but bottom current is slow.';
fcontent[16]='While the other fish in the river rip-rap will wipe out your live bait supply, they will usually ignore a plastic tail. On the other hand, the aggressive walleyes will be triggered by the jigging action of a shad or twister tail.';
fcontent[17]='The best rule is NEVER anchor the boat from the transom when river fishing. Ever changing river currents can force the transom of an anchored boat under water. Many anglers have lost boats, equipment and even lives while anchoring in this fashion.';
fcontent[18]='Anchoring isn&#39;t recommended when fishing close to any dam on any size river. Current undertows can pull the boat against the dam, filling it with water instantly.';
fcontent[19]='The speed of the jig drop is critical. Sometimes a faster drop on the jig will get more strikes than a slow drop. Experiment.';
fcontent[20]='To compensate for light bites on large baits, add a stinger hook.'
fcontent[21]='When fishing small rivers, look for slack water where heavy current is knocked down. These eddies are fish magnets.';
fcontent[22]='With practice, you can duplicate the &#39;flutter-swim&#39; of a dying minnow with a jig. This action can account for more strikes than the common &#39;cast-and-pull&#39; retrieve that most anglers use.';
fcontent[23]='If you need to fish a heavier jig (1/4, 3/8 or even 1/2 oz.) due to big waves, windy conditions or deep water, bulk up the presentation with a larger piece of plastic or bait to improve the buoyancy.';
fcontent[24]='Bulk up a light jig (1/16 or 1/8 oz.) with a small piece of plastic worm or tail. If live bait is called for, add a half-crawler, a leech or a minnow to the jig and plastic combination. This makes the jig incredibly buoyant, allowing for a much slower drop.';
fcontent[25]='Concentration and awareness are key when jigging because the bite can come on any cast, at any time--when the jig first hits the water, halfway back on the retrieve, or right at the boat.';
closetag='</div>';

var fwidth='100%'; //set scroller width
var fheight='200px'; //set scroller height

var fadelinks=1;  //should links inside scroller content also fade like text? 0 for no, 1 for yes.

///No need to edit below this line/////////////////


var ie4=document.all&&!document.getElementById;
var DOM2=document.getElementById;
var faderdelay=0;
var index=0;


/*Rafael Raposo edited function*/
//function to change content
function changecontent(){
  if (index>=fcontent.length)
    index=0
  if (DOM2){
    document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
    document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
    if (fadelinks)
      linkcolorchange(1);
    colorfade(1, 15);
  }
  else if (ie4)
    document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;
  index++
}

// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

function linkcolorchange(step){
  var obj=document.getElementById("fscroller").getElementsByTagName("A");
  if (obj.length>0){
    for (i=0;i<obj.length;i++)
      obj[i].style.color=getstepcolor(step);
  }
}

/*Rafael Raposo edited function*/
var fadecounter;
function colorfade(step) {
  if(step<=maxsteps) {	
    document.getElementById("fscroller").style.color=getstepcolor(step);
    if (fadelinks)
      linkcolorchange(step);
    step++;
    fadecounter=setTimeout("colorfade("+step+")",stepdelay);
  }else{
    clearTimeout(fadecounter);
    document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";
    setTimeout("changecontent()", delay);
	
  }   
}

/*Rafael Raposo's new function*/
function getstepcolor(step) {
  var diff
  var newcolor=new Array(3);
  for(var i=0;i<3;i++) {
    diff = (startcolor[i]-endcolor[i]);
    if(diff > 0) {
      newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step);
    } else {
      newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step);
    }
  }
  return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")");
}

if (ie4||DOM2)
  document.write('<div id="fscroller" style="border:0px solid black;width:'+fwidth+';height:'+fheight+'"></div>');

if (window.addEventListener)
window.addEventListener("load", changecontent, false)
else if (window.attachEvent)
window.attachEvent("onload", changecontent)
else if (document.getElementById)
window.onload=changecontent