/*
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=11000 //set delay between message change (in miliseconds)
var fcontent=new Array()
//begintag='<font face="Arial" size=2>' //set opening tag, such as font declarations
begintag="";
i = 0;
fcontent[i]="<p class=style7>You have gone repeatedly above and beyond in providing a level of service that was quite unexpected. You have responded to every inquiry promptly and professionally and have added a human dimension to this whole process that is often overlooked in the course of modern business. I am very impressed, thankful, and felt that such quality deserves recognition and it is in this light I pass on my thoughts.<BR><b>Anthony M., Riyadh, Saudi Arabia</b></p>"
i = i + 1;
fcontent[i]="<p class=style7>I’m fairly dumbfounded by how kind the insurance company has been to us. I’ve read so many horror stories about insurance companies but they have exemplified fair play. I would also like to take this opportunity to thank you personally. You are really incredible, taking off what could have been a huge burden off our shoulders. Thanks and thanks again.<BR><b>Gadi K., Kullu, India</b></p>"
i = i + 1;
fcontent[i]="<p class=style7>A hats off to the team for a very efficient handling of the whole process. Have lived and worked abroad off and on for a lot of years, and things don’t usually work like that. Bravo to Mr. Perez for putting together a good group of people.<BR><b>Robert H., Paris, France</b></p>"
i = i + 1;
fcontent[i]="<p class=style7>We are so impressed with your prompt and professional response to my inquiry, as well as by your courtesy and obvious competence. Everyone has been telling us how difficult it is going to be to find an insurance plan for our needs…obviously they have not found YOU! Thank you again for your assistance and interest.<BR><b>Babette B., Paris, France</b></p>"
i = i + 1;
fcontent[i]="<p class=style7>Thanks so much for all of your help. I have worked with several agents over my lifetime but must say that you are the best, most efficient, helpful and knowledgeable. I will recommend you to anyone I run across in a similar situation needing insurance going out of the country!<BR><b>Anne E., Paris, France</b></p>"
i = i + 1;
closetag = "";
//closetag='</font>'

var fwidth='538px' //set scroller width
var fheight='80px' //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
	}   
}
function ShowScrollingLayer(){
	if (ie4||DOM2)
		document.write('<div id="fscroller" class="didYou" style="border:1px solid #999999;width:'+fwidth+';height:'+fheight+';padding:2px;overflow: auto;" ></div>')
	else
		document.write('<ilayer id="fscrollerns" width=' + fwidth + '; height=' + fheight + '; class="didYou"><layer id="fscrollerns_sub" scroll="true" width=' + fwidth + '; height=' + fheight+'; left=0 top=0></layer></ilayer>')
	window.onload=changecontent
	//<ilayer id="fscrollerns" width=&{fwidth}; height=&{fheight};><layer id="fscrollerns_sub" width=&{fwidth}; height=&{fheight}; left=0 top=0></layer></ilayer>
}
