window.onload = initAll;

var currImg = 0;
var captionText = new Array(
		"<b><i><big>portfolio examples are from a year-long campaign</b></i></big><br><br>PageSage&trade; is the premier DVD brand in the $27B craft and hobby industry.  With over 500,000 readers, <i>Mary Engelbreit's Home Companion&trade;</i> magazine was the largest national craft magazine.",
		"<b><i><big>repetition builds successful marketing</b></i></big><br><br>This graphic works as the front cover of the PageSage catalog AND as a full page ad.",
		"<b><i><big>multiple page layouts have greater impact</b></i></big><br><br>This ad begins on a right facing page and continues to the first column of the following page.  The ad features Carol Duvall, hostess of HGTV's top show for 14 years, on her first DVD.",
		"<b><i><big>repeat key branding elements</b></i></big></i></big><br><br>PageSage branding (the art mannequin) is used throughout the creative materials...from the logo to individual mannequins embellished by PageSage artists.<br><br>Mannequins embellished by different artists are featured throughout the advertising campaign.", 
		"<b><i><big>combine creative with an editorial style</b></i></big><br><br>In this campaign the two ads are in different sections of the magazine.<br><br>The full page ad reads as a traditional advertisement.  The 1/3 page ad reads like an editorial interview.",
		"<b><i><big>branding is your visual spokesperson</b></i></big><br><br>Here Art Mann speaks directly to the reader.  The articulated wooden art mannequin is a recognizable basic art supply.  You know immediately that art is the subject on PageSage DVDs.",
		"<b><i><big>pick the perfect visuals</b></i></big><br><br>The first ad in the series introduced craft DVDs with a fresh eye-catching approach.<br><br>PageSage DVDs showcase innovative features and content, putting the viewer in control in new ways.<br><br>Numerous graphics communicate film and video.  The director's chair depicts the full message: videos that play the way you want them to."	
)

function initAll() {
	document.getElementById("prevLinkAd").onclick = processPreviousAd;
	document.getElementById("nextLinkAd").onclick = processNextAd;
	document.getElementById("imgText").innerHTML = captionText[0];
}

function processPreviousAd() {
	newSlide(-1);
}

function processNextAd() {
	newSlide(1);
}

function newSlide(direction) {
	var imgCt = captionText.length;
	
	currImg = currImg + direction;
	if (currImg < 0) {
		currImg = imgCt-1;
	}
	if (currImg == imgCt) {
		currImg = 0;
	}
	
	document.getElementById("ads_slideshow").src= "print_portfolio/print_ads/ad_images/slideImg" + currImg + ".jpg";
	document.getElementById("imgText").innerHTML = captionText[currImg];
}
