var ParcoImg = new Image();
ParcoImg.src = 'images/testimonials/parco.gif';
var USCImg = new Image();
USCImg.src = 'images/testimonials/usc.gif';

function makeNews(c,l,s, f,i){
	this.copy = c;
	this.link = l;
	this.sign = s;
	this.follow = f;
	this.img = i;
	this.write = writeNews;
}

function writeNews(){
	var str = '';
	str += '<ul style="padding:10px 0px 0px 0px; margin:0px" class="testimonialcontent"><p style="padding-top:5px;margin-top:4px;">'+ this.copy ;
	str += '<img border="0" align="left" src="' + this.img.src + '">';
	str += '<br/>' + this.sign + '<br/>';
        str +=  '<small><a rel="nofollow" href="' + this.link + '" target="_blank">' + this.follow + '</a></small></p></ul>';
	return str;
}

var newsArray = new Array();
newsArray[0] = new makeNews("&quot;I am grateful for the prompt service I can count on from USADATA. They have really helped my company grow and make an impact in the marketplace. The leads are terrific and I am looking forward to a great continuing relationship.&quot;<br/>", 'http://parco.kpsearch.com', '<small>John Parisi<br>Parco Home Improvement</small>' , 'parco.kpsearch.com',ParcoImg).write();

newsArray[1] = new makeNews("&quot;I have been using USADATA for 11 months now, during this time I have bought several mailing list that has helped our company grow.  With the economic downturn we were not sure of what to expect from our bought list from USADATA but each time it has paid off to buy the list.  We are constantly gaining new customers. With our type of business you have to target several different groups of professional&rsquo;s, Beth makes it so easy, I give her the criteria that I am looking for and in a matter of minutes I have the numbers per profession sitting in front of me.  I can then email upper management with the numbers and we can decide if we want to target all or choose a few. I have even requested list by radius of city to enable me to target that one area.  USADATA is the only company that I will use, the excellent customer service that Beth gives and the amount of new accounts that we have established from these mailing list.&quot;<br/>",'http://www.unitedsupplyco.com', '<small>Terri Parker<br/>United Supply Company</small>', 'www.unitedsupplyco.com',USCImg).write();

var nIndex = 0;
var timerID = null;
function rotateNews(){
	var len = newsArray.length;
	if(nIndex >= len)
		nIndex = 0;
	document.getElementById('stories').innerHTML = newsArray[nIndex];
	nIndex++;
	timerID = setTimeout('rotateNews()',10000);
}
function pauseNews() {
	if (timerID != null) {
		clearTimeout(timerID);
		timerID = null;
	}
}

function playNews() {
	if (timerID == null) {
		timerID = setTimeout('rotateNews()', 10000);
	}
}

