function Swap(){
	this.show = show;
	this.index = 0;
	this.id = null;
	this.photoAray = null;
}
function photoSwap(name,image) {
	if (document.images) document.images[name].src =  image;
}							
function show(d) {
	if(d >= this.photoArray.length) d = 0;
	else if(d < 0) d = this.photoArray.length-1;
	// Swap the old box
	photoSwap('screen'+this.id+'pick'+this.index,'imgs/0.gif')
	photoSwap('screen'+this.id+'pick'+this.index,'imgs/projects/off.gif')			
	this.index=d;
	// Swap the screen caps
	photoSwap('screen'+this.id,'imgs/projects/0.gif')
	photoSwap('screen'+this.id,'imgs/projects/'+this.id+'/'+this.photoArray[this.index])
	// Swap the boxes
	photoSwap('screen'+this.id+'pick'+d,'imgs/0.gif')
	photoSwap('screen'+this.id+'pick'+d,'imgs/projects/on.gif')

}
