
            
                                    /***********************************************
                                    * 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 = 8000; //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(0,0,0); // 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-family: Arial;font-size: .9em;font-style: normal; font-weight: none; color:002f71; line-height: 14px; margin:0 10px 0 0;">'; //set opening tag, such as font declarations
                                    fcontent[0]="<p>Rockpoint Vending provides outstanding customer service and stays on top of the details so you can stay focused on your core business.</p>";
                                    
									fcontent[1]="<p>Rockpoint Vending has a wide selection of snacks and drinks to keep our employees satisfied.  The service we receive is exceptional!<span  class=testimonial_from>- Laronda Fuller, Office Administration Manager, Hudson Advisors</span></p>";
									
									fcontent[2]="<p>We here at Sewell are all about customer service and it is a pleasure to do business with a company that shares the same philosophy. I will always recommend Rockpoint Vending to anyone with vending needs.<span  class=testimonial_from>- Kevin Krott, Manager, Sewell Collision Center</span></p>";
									
									fcontent[3]="<p>Rockpoint Vending listens to your suggestions and responds incredibly quickly to your evolving product and brand preferences. We'll even come up with creative offerings you hadn't even considered that your employees will love!</p>";
									
									
									fcontent[4]="<p>Rockpoint Vending can offer your employees the option to use credit and debit cards to purchase their snacks and drinks- meaning no more searching for dollar bills and change.</p>";
									
                                    fcontent[5]="<p>As a service provider ourselves, we appreciate that Rockpoint Vending is committed to its customers and provides quality products and service at a reasonable price.<span  class=testimonial_from>- Jim Lees, EHS Coordinator, GE Energy Services</span></p>";
									
									
                                    
                                   
									closetag='</div>';
                                    
                                    var fwidth='244px'; //set scroller width
                                    var fheight=''; //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
                        
