/***********************************************
* 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 = 5000; //set delay between message change (in miliseconds)
var maxsteps=50; // number of steps to take to change from start color to endcolor
var stepdelay=1; // 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(5,115,185); // end color (red, green, blue)

var fcontent=new Array();
begintag='<div style="font: normal 11px Arial; padding: 5px; color:#0573B9;">'; //set opening tag, such as font declarations
fcontent[0]="Your service worked perfectly and I got a lot of good offers. I've already signed a deed of lease, so I'm not looking anymore. Soili<br /><b>Soili<br />Washington, DC</b>";
fcontent[1]="Thanks very much for your service. Prior to finding your site we weren't having any luck finding what we wanted and were running out of time. You provided an answer for us in less than 24 hours. You definitely have won a repeat customer.<br /><b>David Hirschman <br />Retiree<br />Charlotte, NC</b> ";
fcontent[2]="I really appreciate everything IHS did to help me locate housing. You made it really easy, and I couldnt have done it so quickly without you. Thanks again for all your assistance. We will definitely refer other folks to you when they have a need.<br /><b>Karen Stewart<br />HostMySite.com<br />Newark, Del.</b>";
fcontent[3]="Interim Housing Solution was a major benefit. I am on a very tight schedule for this transfer and I H S cut down my research time for interim housing. Thank You!! PS:Anyone that does not use your service is making a serious mistake!!!!<br /><b>G. Ousley<br />Dept. of Veterans Affairs<br />Durham, NC</b>";
fcontent[4]="Thanks so much for all your help. The information IHS presented was wonderful. I am assembling a packet with all the info you provided for our job candidate. We will keep you in mind to help with any future relocations.<br /><b>Tia Smith<br />Digene Corporation<br />Bethesda, Md.</b>";
fcontent[5]="Thank you Jeff! Appreciate your awesome help! Looks like we are going to push forward with a Pentagon Row property! Thank you again! Your service rocks and I will definitely recommend your group to anyone asking! Thanks again,<br /><b>E Motly<br />Department of Defense<br />Arlington, VA</b>";
fcontent[6]="Thank you so much for your help. I was able to get an apartment yesterday through your company's references. I got the best overall proposal from Shamrock Corporate Apartments - Coral Gables and I moved in this morning. thank you !!!<br /><b>L W<br />Miami, Florida</b>";
fcontent[7]="Thanks much - the service was very friendly and helpful - it works just as advertised. I will use you again...<br /><b>R.B.<br />VA Military Institute<br />Washington, DC</b>";
fcontent[8]="Thank you so much for assisting me in finding me and my family short-term leasing.. It was nice to be able to send to you my needs and within hours not days you were able to help me out. Thanks again, Tom M. Houston, Texas<br /><b>Tom M<br />Tarket<br />Houston, TX</b>";
fcontent[9]="It's nice to deal with your company because you contact all the temporary housing providers in an area for me at one time.<br /><b>G Kimber<br />Dept of Veterans Affairs<br />Nashville, TN</b>";
fcontent[10]="Thanks. Your service is great. It is very convenient to deal with and your service has been admirable.<br /><b>E. Saxe<br />Relocation<br />Washington DC</b>";
fcontent[11]="It was great working with your company, we found exactly what we were looking for and better yet in a very short period of time. Thank you for all your help and I'll keep your information on file in case we need your service again<br /><b>C. Flamurtari<br />DiGiorgio Associates Inc.<br />Boston, MA</b>";
fcontent[12]="Thanks for the referrals. I had numerous responses with many options and feel good about my decision.<br /><b>Susanne L.<br />Denver CO</b>";
fcontent[13]="Hi Jeff: Thank you for your assistance in providing housing for myself and my daughter. This was a huge concern and you resolved my problem in less than 24 hours. I will contact you again when we relocate to Virginia after Jan 1st, 2007<br /><b>V Drummer<br />Softech<br />Princeton, NJ</b>";
fcontent[14]="Excellent service, with a great response time. I started getting prospective apartments within a few hours. Since I was looking for an immediate solution, this speed helped and I closed the deal literally within 2 business days<br /><b>A Naseer<br />NCR<br />Atlanta, GA</b>";
fcontent[15]="Thank you so much with your assistance in this process it has made my housing quest so much easier working with your organization. I have recommended your services to a couple of independant realestate agents I encountered on this housing hunt. Thanks for everything, Tracy <br /><b>Tracy H<br />Studio U<br />Newark, NJ</b>";
fcontent[16]="greatly appreciate the assistance in finding temporary housing during my career transition. I was able to find housing in the area we are looking at purchasing a home. This service was very beneficial and I would recommend you to anyone needing temporary housing solutions<br /><b>L Scott<br />CACI<br />Woodbridge, VA</b>";
fcontent[17]="Thankyou very much for your service, it was fantastic.<br /><b>E Tahtooth<br />Card Academy<br />Las Vegas, Nevada</b>";
fcontent[18]="Boy! What a great service. I have received several calls with a variety of options/locations. Thanks!<br /><b>Allen D</b>";
fcontent[19]="Thank you very much for your assistance. Your service helped us immensely in reviewing all our options and finding a location that we wanted at a competitive rate. We will recommend you to others!<br /><b>N Roman</b>";
fcontent[20]="Thank you so much for the help. I was able to secure a place so quickly without the hassle of contacting twenty different people. I am sure I will use your services again! I can't wait to stay at the Metropolitan at Pentagon Row, it sounds fabulous!<br /><b>C Gray<br />State Dept<br />Washington, DC - Northern Virginia</b>";
fcontent[21]="I was really surprised and delighted at the number of almost instant responses with gorgeous properties. I even received phone calls from some very professional, courteous and helpful people. Thank you for the wonderful service you provide!<br /><b>AW<br />US Army<br />DC/Northern VA</b>";
fcontent[22]="Dear Barbara, Your service is excellent. I received six or so responses in a very timely manner. There are a range of quotes, good for me.<br /><b>Susan G<br />New York City</b>";
fcontent[23]="I appreciate how easy this process was. Clearwater Cay Club is just 1 minute from the office where I will be working. Thanks so much<br /><b>J Davis<br />Oncology<br />Clearwater Beach, Florida</b>";
fcontent[24]="Your service was OUTSTANDING!!! I will most assuredly keep you in mind for all corp housing searches in my future.<br /><b>N. McDargh<br />Securitas Security Services<br />Fort Lauderdale, FL</b>";
fcontent[25]="Thank you so much for your help with our housing search. You have a great service -- I wish I hadn't wasted so much time looking on my own, when you all found us something within a few hours. <br /><b>Catherine<br />State Department<br />Arlington VA</b>";
fcontent[26]="Niccole has been fantastic to work with. I also want to comment that I am very glad I found the Interim Housing Solutions Service website. You saved me a lot of time with my search for a local corporate apartment. I was amazed at the number of responses I received as well as the quick response time.<br /><b>C Gregory<br />NTSA<br />Washington, DC - Northern Virginia</b>";
fcontent[27]="Thanks for your help. You make this whole process of finding a place for our super’s to stay much easier than it was before I knew you<br /><b>D Garza<br />Venture<br />Raleigh, NC</b>";
fcontent[28]="I have gone with Executive Digz and selected his Skyline Uptown condo. The primary drivers were his reasonable price for the location as well as his willingness to work with me on the terms of the contract. Thanks for all of your help in setting up the contact list.<br /><b>K Dawson<br />PWC<br />Charlotte, NC</b>";
fcontent[29]="Jeff, thank you for your work on our behalf. Your quick response to my initial request and the follow up that you've done is very reassuring and impressive. I wish other service related companies were half as helpful as you have been.<br /><b>C Timmons<br />St, Petersburgh, Fl</b>";
fcontent[30]="We did enjoy our stay in Ohio, thank you. Not only do I appreciate your help and plan to use your services again in the near future, but I've also recommended you to many of my co-workers. Thanks again. Best regards, Brandon<br /><b>Brandon</b>";
fcontent[31]="Your service was very helpful. I was contacted by many different companies which gave me multiple good options to choose from. I will certainly recommend you if I have any friends in need of this service.<br /><b>Chris G<br />Navy<br />Northern Va</b>";
fcontent[32]="Hi Barbara-- Thanks so much for your assistance--Through your service, I had several options within 24 hours, and moved into one of them six days after contacting you. Thanks and best regards,<br /><b>Brooke<br />Maverick Empire<br />Cambridge MA</b>";
fcontent[33]="Hi Barbara: Thanks for calling. This was much easier than trying to call many different places for housing. The responses were almost too many in fact, though I’m not complaining.<br /><b>Nichole<br />ILS<br />DC</b>";
fcontent[34]="Jeff, Thank you very much for your help! I have located an apartment thanks to your help. I ultimately found an apartment through your services. I am very pleased so far and appreciate your help! You thought of companies and options that I never could have found on my own. Thank you!<br /><b>M Fields<br />State Dept<br />Washingon, DC</b>";
fcontent[35]="Thanks for your email. I am still getting some quotes in, but I think I’m getting close to finalizing. I will absolutely let you know who I pick when it’s official. By the way, your help has saved me SO MUCH time! I love your service and will let everyone know about it.<br /><b>C Hanson<br />University of Kentucky<br />Wasington, DC</b>";
fcontent[36]="Your service has been great!! I am discussing the options provided by the different areas with my client and will provide you an update soon. I will refer your service to other Claims Representatives in my office as it takes care of a lot of headaches for us when looking for places for our clients. You have been great!!<br /><b>D Suarez<br />Insurance Adjuster/Claims Representative<br />Miami, Florida</b>";
fcontent[37]="We were very impressed with the speed and number of responses we received. We are currently reviewing our options, but it seems we should definitely be able to find something suitable. We will definitely be bookmarking Interim Housing Solutions to use again in the future.<br /><b>P Coate<br />Relo<br />Houston, TX</b>";
fcontent[38]="Thank You for all your help with our rental needs. I want to let you know how easy you and your team have made it for us with regard to locating a rental. I wasnt certain on how to proceed, but one e mail to your office and the ball was rolling and it has been extremely smooth from there.<br /><b>Dina Trafton<br />Diagnostic Research<br />Los Angeles, CA</b>";
fcontent[39]="You have a grerat service. The response from your network was phenominal via e-mail and phone.<br /><b>M Hacker<br />US Navy<br />Norfolk, VA</b>";
fcontent[40]="Your service was incredibly helpful and i wasnt getting anywhere before I used IHS. Thank You for your help.<br /><b>C B<br />Boston Red Sox<br />Fort Myers, Florida</b>";
fcontent[41]="This is a great service! We have decided to go with Elite Corporate Housing. We should be completing the paperwork today.<br /><b>S Paul<br />Morristown, NJ</b>";
fcontent[42]="I have decided to go with Suite Solutions. What a wonderful experience I have had working with Ken Gough. If you have a reference link on your site, I would like to add my positive comments. I also appreciate how effective and efficient registering with your company has been. Thank you for your attention and professionalism.<br /><b>Terry P<br />US Postal Service<br />Arlington, VA</b>";
fcontent[43]="Jeff, thank you for your help. This has been such a great service for us, especially since we are in Ireland and unable to do the “leg work” ourselves.<br /><b>S Kelly<br />Charlotte, North Carolina</b>";
fcontent[44]="Thank you so much for providing this wonderful service. Its been a lot of work sorting through all of the places, and talking to everyone, etc., but I wouldnt have come across 99 of whats out there without your assistance.<br /><b>V Uziel<br />Private<br />Washington, DC</b>";


closetag='</div>';

var fwidth='180px'; //set scroller width
var fheight='180px'; //set scroller height

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;


/*Rafael Raposo edited function*/
//function to change content
function changecontent(){
  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, 15);
  }
  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("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] + ")");
}

if (ie4||DOM2)
  document.write('<div id="fscroller" style="border:0px solid black;width:'+fwidth+';height:'+fheight+'"></div>');

if (window.addEventListener)
window.addEventListener("load", changecontent, false)
else if (window.attachEvent)
window.attachEvent("onload", changecontent)
else if (document.getElementById)
window.onload=changecontent

