/***********************************************
* Fading Scroller- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

var delay = 10000; //set delay between message change (in miliseconds)
var maxsteps=50; // number of steps to take to change from start color to endcolor
var stepdelay=40; // time in miliseconds of a single step
//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect
var startcolor= new Array(255,255,255); // start color (red, green, blue)
var endcolor=new Array(0,0,0); // end color (red, green, blue)

var fcontent=new Array();
begintag='<div style="font: normal 11px verdana; padding:7px 0px;">'; //set opening tag, such as font declarations
fcontent[0]='"Mike, You are the best! I can\'t express how much I appreciate you and your colleagues\' professionalism, tenacity and knowledge. Management Recruiters of Cedar Rapids is fortunate to have you and I am fortunate to have found such a tremendous resource. Please thank Cindy and all of your team. If I can ever be of assistance please remember to call on me. Wishing you all continued success."<br />- <em><strong>Angela H., Life Brokerage Manager</strong></em>';
fcontent[1]='"I thought I was satisfied with my former employer but Mike Brown called me several times and finally I interviewed with him. He called me every so often during the next six months and finally the \"stars lined up\" and I gave him the go-ahead to give my name to several companies.<br>The thing that impressed me the most was that prior to each interview with a company officer Mike called me and discussed the interview and told me what he knew about the person doing the interviewing. I\'m positive that this prep gave me an edge over candidates who did not have the advantage of his knowledge, insight and relationship with the company. He also encouraged me to interview for a position I would not have otherwise considered...and I\'m really glad he did.<br>I also took advantage of the fantastic information from the web site - especially the behavioral questionnaire information. Again, it really gave me an edge over candidates who weren\'t prepared for this kind of question in today\'s interviews.<br>Thank you! Thank you! Thank you! I have recommended Management Recruiters of Cedar Rapids to many other people and will continue to do so."<br />- <em><strong>Cathy C.</strong></em>';
fcontent[2]='"I have been working with Mike Brown to obtain a position and we have been successful! I wanted to let you know how wonderful it has been to work with someone as personable, skilled and professional as Mike. It\'s been a pleasure!"<br />- <em><strong>Laura S.</strong></em>';
fcontent[3]='"I\'m writing to you to share some feedback regarding Mike Brown.  Mike and I have been working together on an opportunity since approximately February of 2003, and it has been a pleasure from day one. He was exceptional in his dealings with me and he kept me very well informed. Mike educated and coached me on the client\'s needs, and at the same time was sensitive to my needs as well.  Mike went above and beyond the norm, taking the time to get to know me as the person behind the resume.  I can honestly say that Mike was the absolute best recruiter I have ever worked with.  I would not hesitate to work with him again or recommend him to my colleagues. He is truly a great asset to MRI. Thank you."<br />- <em><strong>Christine Z.</strong></em>';
fcontent[4]='"Mike, as a candidate your professionalism, dedication and constant communication have been very impressive to me."<br />- <em><strong>Mark W</strong></em>';
fcontent[5]='"After several month of unsuccessfully finding quality candidates, we hired Mike Brown.  The next week I had three great resumes and was scheduling interviews. Management Recruiters of Cedar Rapids was so responsive and added such value in finding the right match for our position.  I am very pleased with the person we did hire with MRI\'s help!"<br />- <em><strong>Connie O., Manager, Life Product Promotions</strong></em>';
fcontent[6]='"Thanks Mike I enjoyed our conversation as well and am extremely excited with the position possibility. I must commend both you and Management Recruiters of Cedar Rapids on your professionalism, it\'s no wonder that your office ranks in the top 5%, and I trust that you wouldn\'t mind that I recommend your firm to others."<br />- <em><strong>John S.</strong></em>';
fcontent[7]='"Mike did an amazing job of staying on top of job prospects for me and guiding me through the process.  He made himself available to me and worked hard to make sure I was ready for each interview.  I have worked with other recruiters, but I knew Mike was eager to help me find the right opportunity.  The new opportunity that Mike helped me with has provided me with more flexibility, responsibility and more compensation."<br />- <em><strong>John S.</strong></em>';
fcontent[8]='"Congratulations on the placement!  FYI, you are the first recruiting service to ever consummate a deal with a candidate for me."<br />- <em><strong>Divisional Vice President<br />Top 10 Insurance Carrier</strong></em>';
fcontent[9]='"I have worked with Mike Brown for approximately one year, and he has done incredible things for our company. We know many recruiters, but everyone involved in the hiring process at our firm  from Human Resources up to the Senior Vice President of Sales is aware that Mike is the person who consistently sends us quality candidates as he is the only recruiter with a profound understanding of both our business as well as our culture.The candidates he sends us are always very appropriate and well prepared for their interviews.<br /><br />On a personal note, Mike is always professional, and pleasant to deal with and I have found him to be highly ethical.  I am extremely busy, as we all are, and it is so nice dealing with someone who respects my time and knows how to manage our needs as well as the candidate\'s expectations. Quite a balancing act. "<br />- <em><strong>Senior Staffing Consultant<br />Top 10 Insurance Carrier</strong></em>';
fcontent[10]='"Just wanted to thank you for putting me in touch with our new wholesaler. As you know, he is on his way to Boston right now for new hire training.  How about that...one-for-one!! Thanks a lot.  I look forward to working with you more in the future."<br />- <strong><em>Divisional Sales Manager</em></strong>';
fcontent[11]='"Mike,I want to thank you so much for all your help during my interview process. You were so supportive and willing to make sure the match was right.  It is a rare individual that would take the extra coaching time you gave me and still be gracious about the decision I had to make.  While I am certainly regretting it now, I have to believe that everything happens for a reason and the timing was just not right at that time.  You are a true professional and I appreciate the time and expertise you gave me."';
fcontent[12]='"I\'ve had the pleasure of networking with Mike Brown for over 2 years.  I find him VERY energetic, "on his game", motivated and a great person to deal with."<br />- <em><strong>Annuity Wholesaler</strong></em>';
fcontent[13]='"I have had the pleasure of working with Mike Brown at MR of Cedar Rapids, regarding my recent placement with a large insurance company.  Both Mike and the entire staff at MR of Cedar Rapids not only made my job change a very smooth and timely experience, but was very instrumental in a very important phase of a major career change for me.  Their help and professional guidance made the changes both positive for me professionally, but also very pleasant.  Thanks to MR of Cedar Rapids, I have an exciting new job and a new step in my career."<br />- <em><strong>Annuity Wholesaler</strong></em>';
fcontent[14]='"Mike Brown did a fantastic job and really made me feel like he was on top of the process. Excellent follow up.  Wanted to make sure I was very happy with my new position and will continue the follow up as he has in the past.  I will suggest his service to all I meet that would help out Mike as well!!"<br />- <em><strong>Annuity Wholesaler</strong></em>';
closetag='</div>';

fcontent[15]='"Outstanding representation. Mike Brown did a fantastic job and really made me feel like he was on top of the process. Excellent follow up. Wanted to make sure I was very happy with my new position and will continue the follow up as he has in the past. I will suggest his services to all I meet that would help out Mike as well!"<br />- <em><strong>External Annuity Wholesaler</strong></em>';
closetag='</div>';

var fwidth='400px'; //set scroller width

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 ie4=document.all&&!document.getElementById;
var DOM2=document.getElementById;
var faderdelay=0;
var index=0;


function getIndex() {
	var range = fcontent.length;
	var ph = Math.floor(Math.random() * range);
	return ph;
}

/*Rafael Raposo edited function*/
//function to change content
function changecontent(){
	
  index=getIndex();

  if (DOM2){
    document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
    document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
    if (fadelinks)
      linkcolorchange(1);
      colorfade(1);
  }
  else if (ie4) {
    document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;
  }

  /*
  if (index>=fcontent.length)
    index=0
  if (DOM2){
    document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
    document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
    if (fadelinks)
      linkcolorchange(1);
      colorfade(1);
  }
  else if (ie4) {
    document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;
  }
  index++*/
}

// colorfade() partially by Marcio Galli for Netscape Communications.  ////////////
// Modified by Dynamicdrive.com

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);
  }
}

/*Rafael Raposo edited function*/
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("colorfadeout(maxsteps)", delay);
	
  }   
}

var fadecounter2;
function colorfadeout(step) {
  if(step>=0) {	
    document.getElementById("fscroller").style.color=getstepcolor(step);
    if (fadelinks)
      linkcolorchange(step);
    step--;
    fadecounter2=setTimeout("colorfadeout("+step+")",stepdelay);
  }else{
    clearTimeout(fadecounter2);
    document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";
	changecontent();
    //setTimeout("changecontent()", delay);
  }   
}

/*Rafael Raposo's new function*/
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] + ")");
}

function fadeText() {
	if (ie4||DOM2)
	  document.write('<div id="fscroller"></div>');

	if (window.addEventListener)
	window.addEventListener("load", changecontent, false)
	else if (window.attachEvent)
	window.attachEvent("onload", changecontent)
	else if (document.getElementById)
	window.onload=changecontent
}