/*
Fading Scroller- By DynamicDrive.com
For full source code, 100's more DHTML scripts, and TOS,
visit http://www.dynamicdrive.com
*/

var delay=3500 //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]="FPL is proud to have participated in two of the four largest construction projects in Los Angeles County in 2010 according to Los Angeles Business Journal: #2) Metro&#8217;s I-405 Sepulveda Pass Widening and #4) L.A. LIVE Hotel and Residences. <br><br>See the list <a href=2010ConstructionProjects50Largest.pdf>here</a>."
fcontent[1]="FPL participates in American Public Works Association's (APWA) Project of the Year (City of Camarillo's Upland Road).<br><br><a href='http://www.vcstar.com/news/2011/mar/27/camarillo-wins-award-for-upland-road-project/?print=1'>Read more.</a>"
fcontent[2]="FPL provides traffic engineering services for Metro's $1-billion-plus I-405 Sepulveda Pass Widening in Los Angeles.<br><br>Keep up to date on project details <a href='http://www.facebook.com/405project'>here</a>."
fcontent[3]="FPL is proud to be the Engineer-of-Record for L.A. LIVE, home of Staples Center. <br><br>See the latest events <a href='http://www.facebook.com/mylalive'>here</a>."
fcontent[4]="FPL is committed to the revitalization of local communities, including the <a href='http://www.facebook.com/pages/Jordan-Downs-Redevelopment/198349202340'>Jordan Downs Redevelopment Project</a> in Watts."
fcontent[5]="FPL's LEEDİ AP professionals provide sustainable design services for Pasadena Unified School District's Blair Middle School, to be certified LEED Silver. <br><br><a href='http://brighamyen.com/2010/05/24/blair-middle-school-rising/'>Read more.</a>"
closetag='</font>'

var fwidth=150 //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=3500

//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
