// JavaScript Document

var delay = 10000; //set delay between message change (in miliseconds)
var maxsteps=30; // 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(50,63,71); // end color (red, green, blue)

var fcontent=new Array();
begintag=''; //set opening tag, such as font declarations
fcontent[0]="<p><em><em>&quot;Thanks for this awesome website Jeff.  It really helped me a lot!</em>&quot;</p><br/><p>Puja Ramkumar, New Zealand</p>";
fcontent[1]="<p><em>&quot;Jeff, you really have a wonderful knack for engaging creativity and imagination with your Web site, drawing lessons, and how-to articles. You're a truly fun person to know!</em>&quot;</p><br/><p>Chris Dunmire<br/>Creativity-Portal.com</p>";
fcontent[2]="<p><em>&quot;Hey Jeff.  I just wanted to say what an amazing cartoonist you are.  I'm studying graphic design in Essex, England and you really helped me with my character project.  Thank you so much!</em>&quot;</p><br/><p>Jess, Essex England</p>";
fcontent[3]="<p><em>&quot;This site is great!!  Thank you soooooooooo much!</em>&quot;</p><br/><p>Izzy Aughterson, United Kingdom</p>";
fcontent[4]="<p><em>&quot;Thanks so much for starting this website. It has helped me so much with cards, homework and just doodling. You are AMAZING!!!</em>&quot;</p><br/><p>Livvy</p>";
fcontent[5]="<p><em>&quot;Jeff.  Great tutorials for drawing cartoons.  Undoubtedly awesome.  You are not only genius and creative at the drawing end but also, a master storyteller.  The tutorial for drawing Sonic proves it!  <br/><br/>Actually, I am a flash game developer and looking for ideas for my upcoming game project which is a platform game.  Your tutorials helped me to create a new character for my game.  Thank you very much for everything!</em>&quot; </p><br/><p>Menoj Sahu, India</p>";
fcontent[6]="<p><em>&quot;Jeff.  The lessons on your site are very helpful.  They're awesome!</em>&quot; </p><br/><p>Christina, United States</p>";
fcontent[7]="<p><em>&quot;Hi Jeff.  I'm 22 and work with first-graders at an international school.  I was so happy when I found your website because I have been able to have fun with them and all your art.  Thanks Again!</em>&quot; </p><br/><p>Maxine Boxter, Zimbabwe</p>";
fcontent[8]="<p><em>&quot;Just to say, thank you so much for all of your drawing tips and step-by-step guides - they have helped me sooo much!</em>&quot; </p><br/><p>Lucy</p>";
fcontent[9]="<p><em>&quot;Jeff, I admire the style of art you bring to the world. One can create characters without being overly complicated, and still demonstrate the necessities of perspective, foreshortening and flow, without being intimidating.<br/><br/>You were both nurturing and understanding when I ventured into my drawing lifestyle in the early months. I have seen advancement, and as I'm sure you will agree, it comes down to practice and persistence. Your work is a testament that anyone can learn to draw.</em>&quot; </p><br/><p>FurryBlueNaki<br/>FurriesRock.com/fbn</p>";
fcontent[10]="<p><em>&quot;My son John has recently started sending his drawings in to your web site.  I have been helping him for months to find a site like yours & he loves it.<br/><br/>  I think its brillant and would like to thank you for the encourgement and support you give.</em>&quot; </p><br/><p>Love Sharon Campbell</p>";
fcontent[11]="<p><em>&quot;I love to use your site for drawing, I was hopeless now I can draw anything!!!!!!!!!!!</em>&quot; </p><br/><p>Teresa</p>";
fcontent[12]="<p><em>&quot;Hi Jeff, you are surpassing yourself. I love the calla lily and the rose, actually all flowers, but especially these two. Your lessons are clear and cool. Keep up the wonderful work!</em>&quot; </p><br/><p>Love and chocolate,<br/>Marina<br/>Suficartoons.com</p>";
fcontent[13]="<p><em>&quot;I've been visiting your website over a year. it is a really amazing web-site.  easy to learn and very unique.  i love your drawing style.  keep up the good work!</em>&quot; </p><br/><p>Su Young</p>";
fcontent[14]="<p><em>&quot;Jeff, I love your website.  Especially the dragon pages!  And I think you are really nice.</em>&quot; </p><br/><p>Emily</p>";
fcontent[15]="<p><em>&quot;Your website helped me SOOO much!  Thanks a lot.  You have true talent.  At first, I wasn't confident enough to enter a drawing contest but I practiced using the lessons on your website.  I ended up winning the contest and as prizes, received a new bike and skateboard!!  Thank you so much.  I couldn't have done it without you!  ( :</em>&quot;</p><br/><p>Victoria, United States</p>";
fcontent[16]="<p><em>&quot;Your site is amazing i print out a guide each time i go on my computer.</em>&quot;</p><br/><p>Declan</p>";
fcontent[17]="<p><em>&quot;I extremely love your style of drawing, to me, it is very 'unique' if you may, I mean unique in a good way.  the lessons are very good too, very detailed, I see many additions to your site helps the fun of drawing be spread among many people, young and old. All in all, this site has not only contributed to art itself, but has inspired many people to draw.</em>&quot;</p><br/><p>Jason</p>";
fcontent[18]="<p><em>&quot;Thank you Jeff for giving me the confidence to at least try! I found out that I CAN do it on my own! Your site is fabulous - thank you so much!</em>&quot;</p><br/><p>Chantell</p>";
fcontent[19]="<p><em>&quot;Jeff,I just started visiting your awesome website a couple days ago, and it is my favorite by far! My family and friends already compliment me on what I draw. I can simply draw things now that I really used to struggle with. I like to draw people, characters, and superheros. My brother loved how I drew wolverine so much that I made him a copy, too. I am sooooooooooo glad you created this fantastic website!</em>&quot;</p><br/><p>Taylor Glenn, United States</p>";
fcontent[20]="<p><em>&quot;Jeff your creativity is amazing.Your web site is helping me a lot.You encourage people a lot and you are so helpful.Thank you sooo much!!</em>&quot;</p><br/><p>Ritvick Mehra, India</p>";
fcontent[21]="<p><em>&quot;Hi Jeff... what's up... do u know what?   You are great, amazing and so generous.  Thanks for all these cool stuff, I wish u all the best, keep going. Good luck.</em>&quot;</p><br/><p>Oliver</p>";
fcontent[22]="<p><em>&quot;Hi Jeff!  I just wanted to say, what a TERRIFIC site you have!!!  My son (who is 8 years old) has been drawing stick figures since he could hold a crayon.  He loves to draw and we both found your website to be so straight forward and easy to follow!  You're techniques have fueled his passion for drawing and I know that he will continue to use your tips and will regularly use your website to help him fuel his imagination through art.  THANK YOU for offering such an incredible site with such great tips at no cost.  You have made it possible for my son to continue to grow as young artist (we simply cannot afford art classes).  Thank you, thank you, THANK YOU!!!  What a blessing this site has become for us.<br/>Many thanks,</em>&quot;</p><br/><p>Kelly</p>";
fcontent[23]="<p><em>&quot;You are my role model! Ive waited ages for a sight like this because before, I couldn't draw to save my life. You must be a great drawer. THANK YOU!!! :)</em>&quot;</p><br/><p>Jordan Low, United Kingdom</p>";
fcontent[24]="<p><em>&quot;YOU ARE AWESOME! Your guides helped me in a lot of projects and whenever I am bored I just go to your SUBLIME website. Keep it up!</em>&quot;</p><br/><p>Derek Cheung</p>";
fcontent[25]="<p><em>&quot;this site totally RULES!!! thank u sooo much for doing something for us like this for people who cant draw thanks again!!</em>&quot;</p><br/><p>Jenna</p>";
fcontent[26]="<p><em>&quot;Id like to extend my sincere gratitude for allowing someone like me to learn how to draw creatively. This site provides much guidance on ways to truly make it your own!</em>&quot;</p><br/><p>Jordan</p>";
fcontent[27]="<p><em>&quot;I just wanted to say thank you. I just found this site s while ago, and it makes me really happy to see a place where you can submit art and get a really good opinion on it. Your tips were also super helpful for me. Thanks again!</em>&quot;</p><br/><p>Ashley</p>";
fcontent[28]="<p><em>&quot;I asked Jeeves for how to draw cartoons and your site came up. Drawing has never been one of my talents but when I see funny cartoons I always wish I could draw something like it. I have just done People steps 1,2 & 3 and can now draw a character very close to your final image. Your site is great and thank you for giving these step by step classes. I will be back for more tips as well as recommending it to others.  Thanks again!</em>&quot;</p><br/><p>Rose</p>";
fcontent[29]="<p><em>&quot;I really like your website.Its so useful and the drawings are so easy to do and they come out great no matter what so i just wanted to say well done for putting together a great website! ^_^</em>&quot;</p><br/><p>Julie</p>";
closetag='';

var fwidth='150px'; //set scroller width
var fheight='440px'; //set scroller height

var fadelinks=0;  //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=Math.floor(Math.random()*fcontent.length);


/*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="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

