/* var flashMovie
function initFlash(){
	so = new SWFObject("http://flash.uprinting.com/homeAdsNov.swf", "flashAds", "581", "273", "8", "#ffffff");
	so.addParam("wmode", "transparent");	
	so.addParam("allowScriptAccess", "always");
   	so.write("flashObj");
		flashMovie = document.getElementById("flashAds");
}*/
var promoArray = new Array();
promoArray[0] = '<a href="/canvas-feedback.html" rel="nofollow" class="promoLink"><strong>FREE 16x20"<br/>Canvas Print</strong></a>';
//promoArray[1] = '<a href="/print/Brochures.html" class="promoLink"><strong>20% OFF<br/>Brochures</strong></a>';
var promoId = 0;
function nextPromo(moveType) {
	if (moveType=='+') {
		if (promoId<promoArray.length-1) {
			promoId = promoId+1;
		} else {
			promoId = 0;
		}
	} else if (moveType=='-') {
		if (promoId>0) {
			promoId = promoId-1;
		} else {
			promoId = promoArray.length-1;
		}
	}
	document.getElementById('promoFeed').innerHTML = promoArray[promoId];
}

var reviewArray = new Array();
var authorArray = new Array();
reviewArray[0] = 'I can honestly say I have always been satisfied with UPrinting. UPrinting is the secret that makes my company look good.';
reviewArray[1] = 'I will continue to use UPrinting and recommend them to others. Thank you for the great variety, low prices, and friendly service!';
reviewArray[2] = 'I will be using UPrinting’s services permanently. Keep up the good work! I would recommend you to everyone.';
reviewArray[3] = 'I am a perfectionist and difficult to please. UPrinting has succeeded in going beyond my expectations time and time again.';
reviewArray[4] = 'I just received my brochures and flyers. They look awesome! Using UPrinting saved me over $100 and the turnaround time was quick. Thank you so much!';
reviewArray[5] = 'Excellent service, extremely nice and patient reps, and good quality cards. Karlo especially stuck with me through many design phases. Will recommend you to everyone.';
reviewArray[6] = 'Easy-to-use site, and I definitely like that you use soy based inks and have the option for recycled paper.';
reviewArray[7] = 'Your design team Philip and Karlo were so helpful and creative and they work so efficiently. Impressive!';
reviewArray[8] = 'As always, super easy! Awesome for control freaks who need to do it all themselves. Great Prices too! Thanks again!';
reviewArray[9] = 'Thank you guys for being patient with me and sending me notes on the poor quality of the original proofs instead of just printing them.';
reviewArray[10] = 'Jonah at your Live Chat desk was SO helpful!  He was great to work with, and I couldn\'t have done it without him.';
reviewArray[11] = 'BEST company I\'ve worked with in a long time! I LOVE UPrinting!!';
reviewArray[12] = 'I had missed a typo on some business cards and you were able to edit the change and get me going FAST. You guys ROCK! Thanks!!!';
reviewArray[13] = 'I don\'t know what I would do without Joanne and Rainier! You are blessed with your staff. Thank you!';
reviewArray[14] = 'Out of all the services I have used, this has been the best.  Not only are the prices low, but the services are done professionally. Thank you very much.';

authorArray[0] = 'Denise D.';
authorArray[1] = 'Tara R.';
authorArray[2] = 'Chris H.';
authorArray[3] = 'Teresa W.';
authorArray[4] = 'Jane P.';
authorArray[5] = 'Millie R.';
authorArray[6] = 'Chris M.';
authorArray[7] = 'Louise D.';
authorArray[8] = 'Dawn B.';
authorArray[9] = 'Jumana W.';
authorArray[10] = 'Loretta L.';
authorArray[11] = 'Candace C.';
authorArray[12] = 'Jeffrey W.';
authorArray[13] = 'Donald W.';
authorArray[14] = 'Kenneth D.';
var reviewId = 0;
function nextReview() {	
	if (reviewId<reviewArray.length-1) {
		reviewId = reviewId+1;
	} else {
		reviewId = 0;
	}
	document.getElementById('sampleReview').innerHTML = reviewArray[reviewId];
	document.getElementById('sampleAuthor').innerHTML = authorArray[reviewId];
}
function scrollReview(){
	nextPromo('+');
	nextReview();
	setTimeout("scrollReview()",10000);
}
function prevReview() {	
	if (reviewId>0) {
		reviewId = reviewId-1;
	} else {
		reviewId = reviewArray.length-1;
	}
	document.getElementById('sampleReview').innerHTML = reviewArray[reviewId];
	document.getElementById('sampleAuthor').innerHTML = authorArray[reviewId];
}

