var photos = new Array();
var text = new Array();
var photosBig = new Array();
var colours = new Array();
var photoNum = 0;

function backward(){
	if (photoNum > 0){
		window.status='';
		photoNum--;
		document.images.photoslider.src = photos[photoNum];	
		document.getElementById("picDesc").innerHTML = text[photoNum];		
		document.getElementById("picColours").innerHTML = colours[photoNum];
	} else {
		photoNum = photos.length-1;
		document.images.photoslider.src = photos[photoNum];	
		document.getElementById("picDesc").innerHTML = text[photoNum];		
		document.getElementById("picColours").innerHTML = colours[photoNum];
	}
}

function forward(){
	if (photoNum < photos.length-1) {
		photoNum++;
		document.images.photoslider.src = photos[photoNum];		
		document.getElementById("picDesc").innerHTML = text[photoNum];		
		document.getElementById("picColours").innerHTML = colours[photoNum];
	}
	else {
		photoNum = 0;
		document.images.photoslider.src = photos[photoNum];		
		document.getElementById("picDesc").innerHTML = text[photoNum];		
		document.getElementById("picColours").innerHTML = colours[photoNum];
	}
}

function init() {	
	document.images.photoslider.src = photos[photoNum];	
	document.getElementById("picDesc").innerHTML = text[photoNum];	
	document.getElementById("picColours").innerHTML = colours[photoNum];
}

photos[0] = "/images/05fall/401.jpg";
photos[1] = "/images/05fall/402.jpg";
photos[2] = "/images/05fall/403.jpg";
photos[3] = "/images/05fall/404.jpg";
photos[4] = "/images/05fall/405.jpg";
photos[5] = "/images/05fall/406.jpg";
photos[6] = "/images/05fall/407.jpg";
photos[7] = "/images/05fall/408.jpg";
photos[8] = "/images/05fall/409_410.jpg";
photos[9] = "/images/05fall/411.jpg";
photos[10] = "/images/05fall/412.jpg";
photos[11] = "/images/05fall/413.jpg";
photos[12] = "/images/05fall/414_415.jpg";
photos[13] = "/images/05fall/416.jpg";

text[0] = "Cotton Velvet Hooded Jacket (401)";
text[1] = "Belted Dress (402)";
text[2] = "Corduroy Narrow Fit Pants (403)";
text[3] = "Tulip Skirt (404)";
text[4] = "Belted Tunic Blouse (405)";
text[5] = "V-Neck Pocket Top (406)";
text[6] = "Hip-Length, V-Neck Top (407)";
text[7] = "Gathered Peekaboo Top (408)";
text[8] = "Pleated Fan Collar Blazer and Gored Skirt (409 & 410)";
text[9] = "Empire Waist Cap-Sleeve Top (411)";
text[10] = "Empire Waist Cap-Sleeve Dress (412)";
text[11] = "Cardigan (413)";
text[12] = "Tie-Front Bolero and Full Skirt (414 & 415)";
text[13] = "Three-Quarter Length Coat (416)";

colours[0] = "Navy, Black, Sand, Cranberry ";
colours[1] = "Navy Blue Stretch Corduroy, Brown Stretch Corduroy, Black Stretch Corduroy";
colours[2] = "Brown Stretch Corduroy, Black Stretch Corduroy, Navy Blue Stretch Corduroy ";
colours[3] = "Navy Blue Stretch Corduroy, Brown Stretch Corduroy, Black Stretch Corduroy";
colours[4] = "Euro Stripe, Tuxedo Stripe";
colours[5] = "Black, Heather Blue";
colours[6] = "Green/Black Stripe, Red/Black Stripe, Solid Red, Solid Black";
colours[7] = "Green/Black Stripe, Red/Black Stripe, Solid Red, Solid Black";
colours[8] = "Sparkly Beige, Tweedy Black ";
colours[9] = "Brown with Chartreuse Band, Black with Power Blue Band";
colours[10] = "Brown with Chartreuse Band, Black with Power Blue Band";
colours[11] = "Black, Gold";
colours[12] = "Black, Wine";
colours[13] = "Black, Teal";

