//<script type="text/javascript">
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>When it comes time to plan show budgets for my clients in the high tech industry, VPO is one of my first calls. Not only are the services they offer very budget-friendly, but over the years it has also saved my clients money by reducing the number of materials they have to print and ship. The editors I work with also appreciate that there is one less media kit to take back from the show, and those that can't make it, appreciate that they don't have to wait until after the show to get up to speed on the latest announcements.<b>" 
fcontent[1]="<b>The report VPO provides allows us to efficiently show our clients exactly which editors viewed our materials and enables our office to plan our follow up strategy. Since the day they opened their doors, VPO has balanced service and growth with integrity. That continues to make VPO something I can confidently recommend to my clients.</b><br><br><FONT color=\"#868686\">Tracy Laidlaw, Beyond Words</FONT>"
fcontent[2]="<b>With VPO's post-event reports, we finally have a concrete way of knowing which media are interested in our clients after attending a major tradeshow. No more blasting an entire press list, hoping we hit the right media. With VPO's reports, we can follow up with key media immediately after the show.</b><br><br><FONT color=\"#868686\">Leigh Grimm and Steven Rosenbaum, SIR Marketing</FONT>"
fcontent[3]="<b>We've found that there are short-term and long-term benefits in our use of VPO at tradeshows especially with major product announcements. More importantly we are able to instantly reach members of the press and industry analysts nationally and internationally who didn't attend the tradeshow. The instant global reach -- and coverage -- is what we find most valuable when we go beyond the basic on-line Press Kit with VPO.</b><br><br><FONT color=\"#868686\">Andy Marken, President, Marken Communications</FONT>"
fcontent[4]="<b>&quot;The combination of VPO and VNews made my tradeshow PR efforts 10X more effective,&quot; said Kim Stowe, President of Stowe Consulting, Inc., a high-tech PR and marketing communications firm in Silicon Valley. &quot;By clicking through the instant reports, I was able to book additional media meetings onsite at the event.&quot;<br>This is the tool I've been waiting for -- editors feel well taken care of, and my clients get tangible evidence of the PR effort.</b><br><br><FONT color=\"#868686\">Kim Stowe, Stowe Consulting.</FONT>"
fcontent[5]="<b>Increasingly, reporters and industry analysts at trade shows tell us they prefer to carry as little paper as possible, asking us to email them information about our company. VPO makes it possible, in a costeffective manner, for us to reach key stakeholders with timely information in the format they want. That helps build the relationships we need to succeed in the media marketplace.</b><br><br><FONT color=\"#868686\">Steve Friedberg, Principal, MMI Communications</FONT>"
fcontent[6]="<b>Great service. I was very impressed with the level of professionalism demonstrated by your employees and the efficiency of your organization. We will use the VPO whenever it is available for future events.</b><br><br><FONT color=\"#868686\">Jennifer Williamson, CCS/PR, Inc. Public Relations Agency for Eastman Kodak</FONT>"
closetag='</div>';

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

var fwidth='600px'; //set scroller width
var fheight='100px'; //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:'+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

