/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Jay M. Rumsey, OD | http://www.nova.edu/~rumsey */

var num=0;

imgArray = [
	['img/projects/1cast.png','1Cast', 'case.html'],
	['img/projects/pni.png','PNI','case_pni.html'],
	['img/projects/metranome.png','Metranome','case_metranome.html'],
	['img/projects/climate.png','ClimateMinder','case_climate.html'],
	['img/projects/callwave.png','Callwave','case_callwave.html'],
	['img/projects/collabria.png','Collabria','case_collabria.html'],
	['img/projects/image.png','ImageRights','case_image.html']
]

function slideshow(slide_num) {
	document.getElementById('slide').src=imgArray[slide_num][0];
	document.getElementById('slide').alt=imgArray[slide_num][1];
	document.getElementById('slide-link').href=imgArray[slide_num][2];
}

function slideshowUp() {
	num++;
	num = num % imgArray.length;
	slideshow(num);
}

function slideshowBack() {
	num--;
	if (num < 0) {num=imgArray.length-1;}
	num = num % imgArray.length;
	slideshow(num);
}

