var flashMovie
function initFlash(){
	so = new SWFObject("homeAds0915.swf", "flashAds", "581", "273", "8", "#ffffff");
	so.addParam("wmode", "transparent");
	so.write("flashObj");
	flashMovie = document.getElementById("flashAds");
} 

var promoArray = new Array();
promoArray[0] = '<a href="/print/Business-Cards.html" class="promoLink"><strong>15% OFF<br/>Business Cards</strong></a>';
promoArray[1] = '<a href="/print/Envelopes.html" class="promoLink"><strong>15% OFF<br/>Envelopes</strong></a>';
promoArray[2] = '<a href="/print/Letterhead.html" class="promoLink"><strong>15% OFF<br/>Letterhead</strong></a>';
promoArray[3] = '<a href="/print/Labels.html" class="promoLink"><strong>15% OFF<br/>Labels & Stickers</strong></a>';
promoArray[4] = '<a href="/print/Pocket-Folders.html" class="promoLink"><strong>15% OFF<br/>Pocket Folders</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] = 'Your team caught a mistake that I made on sizes, took the time to call and explain the logic of the fix. That\'s customer service. Thanks';
reviewArray[1] = 'I love how this system is setup for proofing my work. I give this website an A++++!';
reviewArray[2] = 'Everyone in your team - from the sales to pre-press, was very patient and helpful. Developing online proofs is a great idea.';
reviewArray[3] = 'Super fast, easy to use! I have worked with 4 other online printers, and none have been anywhere close to the quality and good customer service that I have received from you folks!';
reviewArray[4] = 'Very Fast and easy! I use your site for all of my printing needs! This is my 3rd order this month from your site!';

authorArray[0] = 'Lori B.';
authorArray[1] = 'Angel P.';
authorArray[2] = 'Wil F.';
authorArray[3] = 'Laura M.';
authorArray[4] = 'Meghan F.';

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];
}

