/*
Fading Scroller- By DynamicDrive.com
For full source code, and usage terms, visit http://www.dynamicdrive.com
This notice MUST stay intact for use
*/

var delay=4500 //set delay between message change (in miliseconds)
var fcontent=new Array()
begintag='<font face="verdana" size=1>' //set opening tag, such as font declarations
fcontent[0]="<br> 'You have to have a dream so you can get up in the morning'.<br><br>-Billy Wilder"
fcontent[1]="<br> 'In the end, everything is a gag'.<br><br>-Charlie Chaplin"
fcontent[2]="<br> 'Drama is life with the dull bits cut out'.<br><br>-Alfred Hitchcock"
fcontent[3]="<br> 'You exist only in what you do'.<br><br>-Federico Fellini"
fcontent[4]="<br> 'To be or not to be. That's not really a question'.<br><br>-Jean-Luc Godard"
fcontent[5]="<br> 'I am free of all prejudices. I hate everyone equally'.<br><br>-W. C. Fields"
fcontent[6]="<br> 'Age is something that doesn't matter, unless you are a cheese'.<br><br>-Luis Bunuel"
fcontent[7]=" 'A story should have a beginning, a middle, and an end... but not necessarily in that order'.<br><br>-Jean-Luc Godard"
fcontent[8]=" 'Interest can produce learning on a scale compared to fear as a nuclear explosion to a firecracker'.<br><br>-Stanley Kubrick"
fcontent[9]="<br> 'There is no terror in the bang, only in the anticipation of it'.<br><br>-Alfred Hitchcock"
fcontent[10]="<br> 'For me, the cinema is not a slice of life, but a piece of cake'.<br><br>-Alfred Hitchcock"
fcontent[11]="<br> 'Cinema is a matter of what's in the frame and what's out'.<br><br>-Martin Scorsese"
fcontent[12]=" 'Man is a rational animal who always loses his temper when called upon to act in accordance with the dictates of reason'.<br><br>-Orson Welles"
fcontent[13]="<br> 'The great nations have always acted like gangsters, and the small nations like prostitutes'.<br><br>-Stanley Kubrick"
fcontent[14]="<br> 'In a mad world only the mad are sane'.<br><br>-Akira Kurosawa"
fcontent[15]="<br> 'To play it safe is not to play'.<br><br>-Robert Altman"
fcontent[16]="<br> 'Shoot a few scenes out of focus. I want to win the foreign film award'.<br><br>-Billy Wilder"
fcontent[17]=" 'The most ordinary word, when put into place, suddenly acquires brilliance. That is the brilliance with which your images must shine'.<br>-Robert Bresson"
fcontent[18]=" 'I'm astounded by people who want to 'know' the universe when it's hard enough to find your way around chinatown'.<br>-Woody Allen"
fcontent[19]="<br> 'I thank God I was raised Catholic, so sex will always be dirty'.<br><br>-John Waters"
fcontent[20]="<br> 'I write scripts to serve as skeletons awaiting the flesh and sinew of images'.<br><br>-Ingmar Bergman"
fcontent[21]="<br> 'Censorship is advertising paid by the government'.<br><br>-Federico Fellini"
fcontent[22]="'I have ten commandments. The first nine are, thou shalt not bore. The tenth is, thou shalt have right of final cut'.<br>-Billy Wilder"
fcontent[23]="<br> 'Cinema is the most beautiful fraud in the world'.<br><br>-Jean-Luc Godard"
fcontent[24]="<br> 'Marriage isn't a word... it's a sentence!'.<br><br>-King Vidor"
fcontent[25]="<br> 'Trust your own instinct. Your mistakes might as well be your own, instead of someone else's'.<br><br>-Billy Wilder"
fcontent[26]=" 'I was born when you kissed me. I died when you left me. I lived a few weeks while you loved me'.<br><br>-Humphrey Bogart"
fcontent[27]="<br> 'An actor's a guy who, if you ain't talking about him, ain't listening'.<br><br>-Marlon Brando"
fcontent[28]="<br> 'There are mysteries, secret zones in each individual'.<br><br>-Krzysztof Kieslowski"


closetag='</font>'

var fwidth='146px' //set scroller width
var fheight='95px' //set scroller height

var fadescheme=0 //set 0 to fade text color from (white to black), 1 for (black to white)
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 hex=(fadescheme==0)? 255 : 0
var startcolor=(fadescheme==0)? "rgb(255,255,255)" : "rgb(0,0,0)"
var endcolor=(fadescheme==0)? "rgb(0,0,0)" : "rgb(255,255,255)"

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=startcolor
document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
linksobj=document.getElementById("fscroller").getElementsByTagName("A")
if (fadelinks)
linkcolorchange(linksobj)
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;

function linkcolorchange(obj){
if (obj.length>0){
for (i=0;i<obj.length;i++)
obj[i].style.color="rgb("+hex+","+hex+","+hex+")"
}
}

function colorfade() {	         	
// 20 frames fading process
if(frame>0) {	
hex=(fadescheme==0)? hex-12 : hex+12 // increase or decrease color value depd on fadescheme
document.getElementById("fscroller").style.color="rgb("+hex+","+hex+","+hex+")"; // Set color value.
if (fadelinks)
linkcolorchange(linksobj)
frame--;
setTimeout("colorfade()",20);	
}

else{
document.getElementById("fscroller").style.color=endcolor;
frame=20;
hex=(fadescheme==0)? 255 : 0
}   
}

if (ie4||DOM2)
document.write('<div id="fscroller" style="border:1px solid black;width:'+fwidth+';height:'+fheight+';padding:2px"></div>')

window.onload=changecontent