var rand_int = Math.floor( Math.random() * 2 );

var currentSet, currentPic;

var rotater = new Array(3);

function loadPics( mySet, myPic ){
	currentSet = mySet;
	rotater[0] = "photos/rotate/"+ ( currentSet + 1 ) + "_1.jpg";
	rotater[1] = "photos/rotate/"+ ( currentSet + 1 ) + "_2.jpg";
	rotater[2] = "photos/rotate/"+ ( currentSet + 1 ) + "_3.jpg";
	currentPic = myPic;
	return rotater[currentPic];
}

function swapper(){
	switch( currentPic ){
		case 0:
			currentPic = 1;
			break;
		case 1:
			currentPic = 2;
			break;
		default:
			currentPic = 0;
	}
	document.slideShow.src = rotater[currentPic];
}
