function nextWorkItem() {
	
	// Get the photo number
	currentWork = $("#workNumber").val();
	
	if (currentWork == 7) {
		nextWork = 1;
	} // end of if
	else {
		nextWork = parseInt(currentWork) + 1;
	} // end of else
	
	$(".campaignNavItem").removeClass('on');
	$("#campaignNavItem" + nextWork).addClass('on');
	
	$("#workNumber").val(nextWork);
	
	$("#work"+currentWork).animate({'left':'-565px'}, 750);
	$("#work"+nextWork).css({'left':'565px', 'display':''});
	$("#work"+nextWork).animate({'left':'0px'}, 750);
	
}

function goToWorkItem(workNumber) {
	// Get the current photo
	currentWork = $("#workNumber").val();
	
	$(".campaignNavItem").removeClass('on');
	$("#campaignNavItem" + workNumber).addClass('on');
	
	$("#workNumber").val(workNumber);
	
	if (currentWork > workNumber) {
		$("#work"+currentWork).animate({'left':'565px'}, 750);
		$("#work"+workNumber).css({'left':'-565px', 'display':''});
		$("#work"+workNumber).animate({'left':'0px'}, 750);
	} // end of if
	else {
		$("#work"+currentWork).animate({'left':'-565px'}, 750);
		$("#work"+workNumber).css({'left':'565px', 'display':''});
		$("#work"+workNumber).animate({'left':'0px'}, 750);
	} // end of else
	
} // end of goToWorkItem function
