// JavaScript Document

                                    /***********************************************
                                    * 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 = 6000; //set delay between message change (in miliseconds)
                                    var maxsteps=30; // 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 class="int_testimonial">'; //set opening tag, such as font declarations
                                   
								   fcontent[0]="<p class='int_testimonial'><img src='/images/quote.png' title='NuBody of Dallas Testimonials' width='32' height='22' align='left' id='img_quote' />What a great and comfortable experience it was just having a chat with Sherry. She really put me at ease and made me comfortable. Thanks for the experience and I can't wait to come back for another treatment!</p><p class='testimonial_nm'>Eric Marc - 105.3 FREE FM<br />Dallas, TX</p>";
                                   
								   fcontent[1]="<p class='int_testimonial'><img src='/images/quote.png' title='NuBody of Dallas Testimonials' width='32' height='22' align='left' id='img_quote' />NuBody of Dallas is a dream come true! I had my underarms and upper lip done there, and I couldn\'t be happier. I was in & out of the room within 3 min., and the pain is minimal. It feels like a rubber band being snapped, and the new lasers cool the skin as they zap the hair. Sherry and her staff work wonders on people, and I can't wait to go back for my bikini line!</p><p class='testimonial_nm'>Sybil Summers - 105.3 FREE FM<br />Arlington, TX</p>";
									
									fcontent[2]="<p class='int_testimonial'><img src='/images/quote.png' title='NuBody of Dallas Testimonials' width='32' height='22' align='left' id='img_quote' />I have gone to 2 other laser hair removal centers and, felt that I was being pressured to sign a contract and they wanted a lot of money up front, even before the treatment were done.  I luckily went to NuBody of Dallas and immediately felt comfortable, no high pressure sales, and I was impressed with the information I received.  I didn\'t hesitate to start my treatments that same day.  I have had 3 treatments and almost all of the hair is gone. I am very happy with NuBody of Dallas.</p><p class='testimonial_nm'>Ronald Allen<br />Dallas, TX</p>";
                                   
								   fcontent[3]="<p class='int_testimonial'><img src='/images/quote.png' title='NuBody of Dallas Testimonials' width='32' height='22' align='left' id='img_quote' />Before I started laser hair removal treatments at NuBody of Dallas, I was embarrassed to take my shirt off in front of people. I actually overheard my son's friend say, 'your Dad has so much hair he looks like a gorilla', and that really embarrassed my son, so I just kept my shirt on until... NuBody of Dallas. Although I have just started my treatments, I saw a nice reduction after the very first treatment.</p><p class='testimonial_nm'>Edward Reynolds<br />Terrell, TX</p>";
                                    
									fcontent[4]="<p class='int_testimonial'><img src='/images/quote.png' title='NuBody of Dallas Testimonials' width='32' height='22' align='left' id='img_quote' />My husband insisted that I have the 'Kelly Special' at NuBody of Dallas, and I am thrilled, because there is no more red razor bumps  class='int_testimonial'in the bikini area and under arms. So, when it's time to take the kids to the pool, I don't have worry about shaving or the red razor bumps... we just go.  I am addicted to the smoothness, it's like I never had hair there... it's so smooth... my legs are next... and my husband loves it!</p><p class='testimonial_nm'>Rhonda McMillan<br />Ft. Worth, TX</p>";
									
									fcontent[5]="<p class='int_testimonial'><img src='/images/quote.png' title='NuBody of Dallas Testimonials' width='32' height='22' align='left' id='img_quote' />Laser hair removal has been a God-send for me. Two years ago, I initially came in for unwanted facial hair. Since then, I have had my underarms, legs, and bikini area treated with remarkable results! My confidence and self-esteem have increased ten-fold. I finally feel attractive! Thanks a million Sherry @ NuBody!</p><p class='testimonial_nm'>Beth Wasser<br />Dallas, TX</p>";
                                   
								   fcontent[6]="<p class='int_testimonial'><img src='/images/quote.png' title='NuBody of Dallas Testimonials' width='32' height='22' align='left' id='img_quote' />Three years ago I was listening to a radio station and heard an ad for laser hair removal. I had just started having problems with unwanted hair in places that I had never had. To be honest, I was so embarrassed! I made an appointment and after just 5 trearments - I was back to being confident and not having to worry about if people could see my unwanted hair! Thank you so much NuBody of Dallas!</p><p class='testimonial_nm'>Andi<br />Southlake, TX</p>";
                                    
									fcontent[7]="<p class='int_testimonial'><img src='/images/quote.png' title='NuBody of Dallas Testimonials' width='32' height='22' align='left' id='img_quote' />I just <u>love</u> this program. I have told everyone - raised my arm 'See no shaving for now 5 years.' It's the BEST - I want to do everything legs etc...</p><p class='testimonial_nm'>Laura<br />Dallas, TX</p>";
									
									fcontent[8]="<p class='int_testimonial'><img src='/images/quote.png' title='NuBody of Dallas Testimonials' width='32' height='22' align='left' id='img_quote' />I had always heard about laser hair removal, but one reason I was so apprehensive about doing it was because I heard it was so painful. After learning about and being treated with the Candela Laser I am so glad I went through with it. I highly recommend NuBody of Dallas!</p><p class='testimonial_nm'>Bryan Peck<br />Dallas, TX</p>";
									closetag='</div>';
                                    
                                    var fwidth='240px'; //set scroller width
                                    var fheight='155px'; //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 ;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
