/*
Fading Scroller- By DynamicDrive.com
For full source code, 100's more DHTML scripts, and TOS,
visit http://www.dynamicdrive.com
*/

var delay=10000 //set delay between message change (in miliseconds)
var fcontent=new Array()
begintag='<font face="verdana" size=2>' //set opening tag, such as font declarations
fcontent[0]="Red meat isn't bad for you. Fuzzy green meat is. "
fcontent[1]="A diplomat is a person who can tell you to go to hell in such a way that you actually look forward to the trip."
fcontent[2]="After all is said and done, more is said than done."
fcontent[3]="Youth and skill are no match for experience and treachery. "
fcontent[4]="An expert is a person who has made all the mistakes which can be made in a very narrow field. "
fcontent[5]="Never argue with a fool, people might not be able to tell you apart! "
fcontent[6]="All my life I said I wanted to be someone...I can see now that I should have been more specific. "
fcontent[7]="There are three kinds of people in the world, those who can count, and those who can't. "
fcontent[8]="It is a good thing to follow the first law of holes; if you are in one stop digging. "
fcontent[9]="My opinions may have changed, but not the fact that I am right. "
fcontent[10]="Artificial Intelligence:  Making computers behave like they do in the movies."
fcontent[11]="If you can't beat your computer at chess, try kickboxing. "
fcontent[12]="I am not a vegetarian because I love animals; I am a vegetarian because I hate plants. "
fcontent[13]="Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the galaxy lies a small, unregarded yellow sun. Orbiting this at a distance of roughly 92 million miles is an utterly insignificant little blue-green planet whose ape-descended life forms are so amazingly primitive that they still think digital watches are a really neat idea. "
fcontent[14]="I want to die peacefully, in my sleep, like my grandfather. Not screaming, terrified, like his passengers. "
fcontent[15]="10 out of 5 doctors think it's OK to be schizofrenic.  "
fcontent[16]="To be, or what? - Sylvester Stallone"
fcontent[17]="Does anyone REALLY read these stupid quotes? "
fcontent[18]="Time is the best teacher; unfortunately, it kills all its students. "
fcontent[19]="If you don't know your rights you don't have any. "

closetag='</font>'

var fwidth=160 //set scroller width
var fheight=150 //set scroller height

///No need to edit below this line/////////////////

var ie4=document.all&&!document.getElementById
var ns4=document.layers
var DOM2=document.getElementById
var faderdelay=0
var index=0

if (DOM2)
faderdelay=2000

//function to change content
function changecontent(){
if (index>=fcontent.length)
index=0
if (DOM2){
document.getElementById("fscroller").style.color="rgb(255,255,255)"
document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
colorfade()
}
else if (ie4)
document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag
else if (ns4){
document.fscrollerns.document.fscrollerns_sub.document.write(begintag+fcontent[index]+closetag)
document.fscrollerns.document.fscrollerns_sub.document.close()
}

index++
setTimeout("changecontent()",delay+faderdelay)
}

// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

frame=20;
hex=255  // Initial color value.

function colorfade() {	         	
// 20 frames fading process
if(frame>0) {	
hex-=12; // increase color value
document.getElementById("fscroller").style.color="rgb("+hex+","+hex+","+hex+")"; // Set color value.
frame--;
setTimeout("colorfade()",20);	
}
else{
document.getElementById("fscroller").style.color="rgb(0,0,0)";
frame=20;
hex=255
}   
}

if (ie4||DOM2)
document.write('<div id="fscroller" style="border:0px solid black;width:'+fwidth+';height:'+fheight+';padding:2px"></div>')

window.onload=changecontent
