var delay = 16000; //set delay between message change (in miliseconds)
var maxsteps=80; // number of steps to take to change from start color to endcolor
var stepdelay=30; // time in miliseconds of a single step

//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect
//var endcolor=new Array(66,66,66); // end color (red, green, blue)
//var startcolor= new Array(255,255,255); // start color (red, green, blue)
//var endcolor=new Array(66,66,210); // end color (red, green, blue)
var startcolor= new Array(255,218,185); // start color (red, green, blue)
var endcolor=new Array(129,69,5); // end color (red, green, blue)

var fcontent=new Array();
begintag='<div style="font: normal 11px Arial; padding: 0px; line-height: 18px">'; //set opening tag, such as font declarations
fcontent[0]="<b>JVC has significantly benefited from VPO's vNews service.  Prior to vNews our team was spending far too much time bogged down with PR administration.  vNews has lifted this burden from us while also improving our process.  We have benefited from broader media distribution, detailed measurement capabilities, while reducing our cost.  I strongly recommend VPO's vNews service.</b><br><br><FONT color=\"#868686\">Terry Shea, General Manager, Communications JVC America</FONT>"
fcontent[1]="<b>Measuring the success of PR campaigns at trade shows is always a challenging task, but using VPO at IPEX helped us to do this. Proactive distribution of information to the event media is very important to us, but so is the report of the journalists that reviewed the information. I am happy recommend VPO's online Press Kit service</b><br><br><FONT color=\"#868686\">Mike Pickin Konica Minolta Business Solutions (UK) Limited</FONT>"
fcontent[2]="<b>After implementing vNews on a monthly basis, we noticed our media mentions increased by over 60 percent. It's a great interactive tool for getting our news to the media worldwide seamlessly, quickly, and easily.</b><br><br><FONT color=\"#868686\">Chalise E. Zolezzi , Current Analysis</FONT>"
fcontent[3]="<b>We've saved ourselves from several long nights and extra shipping costs by using VPO's online Press Kit services for our tradeshows. No more late nights stuffing kits and then rushing them to Fedex. Now, it's a simple one-click solution. We e-mail our documents to VPO, and they take care of the rest.</b><br><br><FONT color=\"#868686\">Tami Sartor, Sababa Toys, ToyFair 2005</FONT>"
fcontent[4]="<b>As the host of Computer Outlook Radio Talk Show, VPO is one of the main ingredients for our success. It's the only outlet out there that keeps me abreast of the industry and covers the trade shows that are of interest to our show and our listeners. In my opinion, being in the high-tech industry and not using VPO is just not a good idea.</b><br><br><FONT color=\"#868686\">John Iasiuolo, Host of Computer Outlook Radio Talk Show</FONT>"
fcontent[5]="<b>Virtual Press Office is a great concept that really lives up to its billing. For major shows, there's no better way to get releases in the hands of so many members of the trade press. And no better way to measure PR results.</b><br><br><FONT color=\"#868686\"> Dan Ditzler, Newton Associates</FONT>"
fcontent[6]="<b>When it comes to reaching tradeshow press, the Virtual Press Office tops my list of media outreach tools. The service is an affordable, efficient and cost-effective means for reaching not only attending press, but members of the media who opt to not attend, but want to know what's new and exciting. Highly recommend!</b><br><br><FONT color=\"#868686\">Aleta Walther, Director, Marketing & Communications, Applied Magic, Inc.</FONT>"
fcontent[7]="<b>I have been using VPO for a few years now and have found it very useful. You see first hand who downloads your materials from trade shows and that information goes directly to our PR firm. I bring very few press packets to shows since most members of the press do not want to lug Press Kits around with them plus it cuts down on costs for us since we are not wasting brochures, review reprints, etc. not to mention  man time for stuffing a folder with literature.</b><br><br><FONT color=\"#868686\">The VPO team is fantastic - I always get a response ASAP and if I need to update my materials, they do so expeditiously. They are very professional, very personable and I give VPO two thumbs up all around.<br><b> Jennifer L. Torode, Marketing Manager, Sophos</FONT>"
fcontent[8]="<b>The Virtual Press Office has been a valuable promotional service to SSH in its ability to reach key editors and analysts at top-tier trade shows.</b><br><br><FONT color=\"#868686\">Byron Rashed, Marketing Communications Manager for SSH Communications Security</FONT>"
fcontent[9]="<b>Working with Virtual Press Office extended global coverage for Learnframe. Within days of posting our company profile on the Virtual Press Office site we received inquires from over 23 countries. Their service is invaluable.</b><br><br><FONT color=\"#868686\">Mike Memmott Sr., CEO, Learnframe</FONT>"
fcontent[10]="<b>I've been in this business for many years and been involved with many tradeshows. Not having to think about hand carrying or shipping out vast amounts of Press Kits to a show is a wonderful experience. Not only does our company's materials not get wasted, but journalists can now do much of their work pre-show, not have to worry about carrying home lots of junk they won't use and can have easy access to the information long after the show is over. This service has certainly changed one very important aspect of tradeshows.</b><br><br><FONT color=\"#868686\">Anne Marie Clark, Publ ic Relations Manager, Brooktrout Technology, Inc</FONT>"
fcontent[11]="<b>I am consistently pleased with VPO's professionalism and service, and will always use VPO at any trade show. The database is served in a timely, complete and easy to access format.</b><br><br><FONT color=\"#868686\">Cynthia Lohr, Director of Corporate Communications, Alexa Internet</FONT>"
fcontent[12]="<b>I think the Virtual Press Office is a great idea and have saved more than $500 using this service only once!</b><br><br><FONT color=\"#868686\">Brittanie Balloch, Cognos</FONT>"
fcontent[13]="<b>Good Service. Allows for the last minute press releases to be posted the day of the show.</b><br><br><FONT color=\"#868686\">Lisa Zoks, Reed Technology & Information Services</FONT>"
fcontent[14]="<b>Since I signed my client up with VPO, I have noticed excellent pick up from tier one media contacts. The online press kit is proving a great resource for media worldwide and the advisory they distributed helped to highlight the details about my client's demo and booth. Both my client and I are very happy with the outstanding service we have received and I would definitely recommend using VPO's services.</b><br><br><FONT color=\"#868686\">Lauri Julian  SYMWAVE Inc. PR Agency, MediaConnectPR</FONT>"
closetag='</div>';

//var fwidth='600px'; //set scroller width
//var fheight='150px'; //set scroller height

var fwidth='600px'; //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="padding: 0;  height:100"></div>');

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

