
<!--

/***********************************************
* Fading Scroller- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var delay = 10000; //set delay between message change (in miliseconds)
var maxsteps=7; // number of steps to take to change from start color to endcolor
var stepdelay=40; // 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,0); // end color (red, green, blue)

var fcontent=new Array();
begintag='<div style="font: bold 12px verdana, arial, sans-serif; padding-left:5px;line-height: 18px;color:#333333;">'; //set opening tag, such as font declarations
fcontent[0]="It was a work of great genuis brother. How could I ever repay you? Words will never be enough to express my gratitude for helping me realize my dream by avaraging $245.66 daily with Google Adsense. Let nature caper! <br><br>www.ubconcept.com ";
fcontent[1]="I trust your wealth of experience and sincerity in this, Sir. Thanks for your good work. Today is my first time of ever seeing over $100 as Todays Earning in my Google Adsense account. You are really doing a nice job<br><br>www.reel360concept.com. ";
fcontent[2]="You are indeed a professional. As you are out to better peoples life and to alleviate peoples hardship, you will be the joy of many generations and nations that do not know you will come and bow for you in Jesus Name. Amen. keep up the good work and more power to your elbow. The Top is your place. Thanks and One Love.<br><br>www.bab-tconcept.com ";
fcontent[3]="This month, Grace will make a way for you. Mercy will single you out for the best. Favour will be your inheritance in the sight of God and you will experience divine visit. Wishing you a happy July, 2008 and thanks for helping me to earn over $5,000 monthly with Google Adsense Program<br><br>www.dollarsforum.com ";
fcontent[4]="I was averaging $0.47 per day when I started Adsense. But with your professional advice on phone on how I can maximize my earnings using your massive traffic technique, the difference is CLEAR. I now average $15,000 months after months.<br><br>www.yourpaypalaccount.com";
fcontent[5]="Thanks for your Google Adsense Website Secret System I purchased sometimes ago. I now avarage over $24,000 in two months. May the Lord continue to empower you to fulfilling your heaven ordained destiny. keep up the good work Prof. God bless you. One Love.<br><br>www.naijafootballfans.com ";
fcontent[6]="Just yesterday I earn $4326.27 with my Adsense from a site stats of 2327 unique visitors. You are a true bros just cannot thank you enough, some friends trully are more than brothers and you are one. Take care and meet you at the top<br><br>http://yourjobzone.blogspot.com";
fcontent[7]="It was like a dream when I saw $79 as Todays Earning in my Adsense account, just few hours of launching my site online.<br><br>www.baszippy.net ";
fcontent[8]="Prof. If I continuously say thank you a million times it is not enough, because you have given me more than I deserve. Just to say thank you. I am grateful to you.<br><br>www.bab-tconcept.com ";

closetag='</div>';

var fwidth='250px'; //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

//-->




