<!--

/***********************************************
* 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=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(45,75,113); // end color (red, green, blue)

var fcontent=new Array();
begintag='<div style="text-align: left; font: normal 11px verdana,Arial; font-style: italic;  margin-bottom: 0px; padding: 5px;">'; //set opening tag, such as font declarations

fcontent[0]="<IMG SRC=\"images/quote01.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\">Forget gold. Margie Dana and her Print Buyers International team treat their sponsors like platinum. This is our fourth year exhibiting, and our most successful to date. Despite the (understandably) suppressed attendance, the quality of our interaction with marketers and print buyers looking for new ideas at the show was sky-high, and, more important, unrushed and genuine. In a word: Printastico! See you in 2010, if not before...<IMG SRC=\"images/quote02.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\"><P CLASS=\"quotename\">Ali Westcott, Director of Marketing & Communications, Concord Litho (sponsor)</P>";
fcontent[1]="<IMG SRC=\"images/quote01.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\">Thanks for continuing to hold these conferences. I know it takes a lot out of you and your team, but if we didn't have these conferences, we'd have...nothing. No networking, no opportunities for learning. We can't do it without you.<IMG SRC=\"images/quote02.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\"><P CLASS=\"quotename\">Jill Alex Connolly, Analog Devices</P>";
fcontent[2]="<IMG SRC=\"images/quote01.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\">I really like the educational sessions. I also like meeting all the people who are doing the same thing as me in other companies because I'm the only one doing print buying in my company. It's always helpful to hear how other people have dealt with some of the same issues I have.<IMG SRC=\"images/quote02.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\"><P CLASS=\"quotename\">Maria Cipicchio, Dana Farber</P>";
fcontent[3]="<IMG SRC=\"images/quote01.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\">…This is just a short note to say thanks and \"great job!\" No kidding, the best show we have been to in a long time, as it focuses on exactly what we need, to reach out to print buyers.<IMG SRC=\"images/quote02.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\"><P CLASS=\"quotename\">Jim Madigan, Battlefield Graphics</P>";
fcontent[4]="<IMG SRC=\"images/quote01.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\">The conference was professional, relevant, timely for the state of the industry, educational and fun all at the same time! Great Job!<IMG SRC=\"images/quote02.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\"><P CLASS=\"quotename\">Christine Erna, CJE Consulting</P>";
fcontent[5]="<IMG SRC=\"images/quote01.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\">Good pace this year. Enough time to attend sessions and get around. Keep up the good work! And we get a lot out of your Monday emails.<IMG SRC=\"images/quote02.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\"><P CLASS=\"quotename\">Sue Roberts, John Hancock Life</P>";
fcontent[6]="<IMG SRC=\"images/quote01.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\">I must say that I return to my office, my company and my job with a renewed sense of purpose. I'm so very glad I went to the conference this year. Every keynote, every session brought with it amazing information.<IMG SRC=\"images/quote02.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\"><P CLASS=\"quotename\">Arlene Ouellette, Brookstone</P>";
fcontent[7]="<IMG SRC=\"images/quote01.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\">Thanks again for a terrific conference. My brain's been buzzing with inspiration and ideas to pursue!<IMG SRC=\"images/quote02.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\"><P CLASS=\"quotename\">Donna McElligott, Howard Printing Inc</P>";
fcontent[8]="<IMG SRC=\"images/quote01.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\">Another fabulous meeting, very different from past events. Emphasis on the buyers learning new skills in print and other media. Scary to hear spoken, but it's what I've actually been doing for a long time in my own career.<IMG SRC=\"images/quote02.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\"><P CLASS=\"quotename\">Diane Dragoff, United Way of Massachusetts Bay</P>";
fcontent[9]="<IMG SRC=\"images/quote01.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\">The group of speakers was excellent. I liked the variety and breadth.<IMG SRC=\"images/quote02.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\"><P CLASS=\"quotename\">Mark Gaff, Four Colour Print Group (sponsor)</P>";
fcontent[10]="<IMG SRC=\"images/quote01.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\">Great show - hats off to your entire group. The best show we've exhibited at this year. Level of service to sponsors/attendees alike was terrific.<IMG SRC=\"images/quote02.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\"><P CLASS=\"quotename\">Susan Heitcamp, Messenger Press (sponsor)</P>";
fcontent[11]="<IMG SRC=\"images/quote01.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\">This conference gave everybody an opportunity to get engaged and it was one of the best conferences in 2009. Keep it in the existing format. This way communication and exchange of ideas is easier.<IMG SRC=\"images/quote02.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\"><P CLASS=\"quotename\">Stan Njmr, Presstek</P>";
//fcontent[12]="<IMG SRC=\"images/quote01.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\"><IMG SRC=\"images/quote02.gif\" ALIGN=\"ABSMIDDLE\" WIDTH=\"27\" HEIGHT=\"14\" BORDER=\"0\"><P CLASS=\"quotename\"></P>";

closetag='</div>';

var fwidth='500px'; //set scroller width
var fheight='50px'; //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
//-->