var delay=10000
var maxsteps=13
var stepdelay=200
var startcolor=new Array(118,99,82)
var endcolor=new Array(255,255,255)
var j
var x=new Array()
var fcontent=new Array()
fcontent[0]=""
fcontent[1]=""
fcontent[2]=""
begintag='<div style="font: italic 18px Arial; padding: 5px;">'
closetag='</div>'
if(document.getElementById('ctl00_ContentPlaceHolder1_hidQuote').value !=null&&document.getElementById('ctl00_ContentPlaceHolder1_hidQuote').value !='undefined'){
if(document.getElementById('ctl00_ContentPlaceHolder1_hidQuote').value !=""){
x=document.getElementById('ctl00_ContentPlaceHolder1_hidQuote').value.split('^')
begintag='<div style="font: italic 18px Arial; padding: 5px;">'
x[0].replace('&lt;','<')
for(var i=0;i<x.length;i++){
fcontent[i]=x[i]}
closetag='</div>'}}
var fadelinks=1
var ie4=document.all&&!document.getElementById
var DOM2=document.getElementById
var faderdelay=0
var index=0
function changecontent(){
if(document.getElementById('calendar_top').style.display==""){
document.getElementById("fscroller").innerHTML=""}
else{
if(index>=fcontent.length)
index=0
if(j==null || j==undefined)j=0
if(DOM2){
document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
if(index==0){
if(fcontent[j]!=null || fcontent[j]!=undefined){
begintag='<div style="font: italic 18px Arial; text-align:left; margin-left:auto; margin-right:auto; margin-top:70px; padding: 5px; width:90%;">'
document.getElementById("fscroller").innerHTML=begintag+fcontent[j]+closetag}}
if(index==1){
if(fcontent[j]!=null || fcontent[j]!=undefined){
begintag='<div style="font: italic 18px Arial; text-align:left; margin-right:auto; margin-left:35px; margin-top:190px; padding: 5px; width:60%;">'
document.getElementById("fscroller").innerHTML=begintag+fcontent[j]+closetag}}
if(index==2){
if(fcontent[j]!=null || fcontent[j]!=undefined){
begintag='<div style="font: italic 18px Arial; text-align:left;  margin-right:15px; margin-left:auto; margin-top:135px; padding: 5px; width:80%;">'
document.getElementById("fscroller").innerHTML=begintag+fcontent[j]+closetag}}
if(fadelinks)
linkcolorchange(1)
colorfade(1,15)}
else if(ie4)
document.all.fscroller.innerHTML=begintag+fcontent[j]+closetag
if(index>=2 || j==x.length-1){
index=0}
else
index++
if(j<(x.length-1))
j++
else
j=0}}
var fadecounter
function colorfadedecrease(step){
if(step<=maxsteps){
document.getElementById("fscroller").style.color=getstepcolor1(step)
if(fadelinks)
linkcolorchange(step)
step--
fadecounter=setTimeout("colorfadedecrease("+step+")",stepdelay)
}else{
clearTimeout(fadecounter)
document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
setTimeout("changecontent()",delay)}}
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)}}
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)}}
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){
if(index==0){
var fwidth='90%'
var fheight='100%'
document.write('<div id="fscroller" style="width:'+fwidth+';height:'+fheight+'"></div>')}}
if(window.addEventListener){
window.setTimeout("document.getElementById('calendar_top').style.display='none';",6000)
window.setTimeout("document.getElementById('calendar_bottum').style.display='none';",6000)
window.setTimeout("changecontent()",6000)
window.addEventListener("load",changecontent,false)}
else if(window.attachEvent){
window.setTimeout("document.getElementById('calendar_top').style.display='none';",6000)
window.setTimeout("document.getElementById('calendar_bottum').style.display='none';",6000)
window.setTimeout("changecontent()",6000)
window.attachEvent("onload",changecontent)}
else if(document.getElementById){
window.setTimeout("document.getElementById('calendar_top').style.display='none';",6000)
window.setTimeout("document.getElementById('calendar_bottum').style.display='none';",6000)
window.setTimeout("changecontent()",6000)
window.onload=changecontent}

