var photos = [];
var text = [];
var photosBig = [];
var colours = [];
var fabrics = [];
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("photoLink").href = photosBig[photoNum];
		document.getElementById("photoLink").title = text[photoNum];
		document.getElementById("picColours").innerHTML = colours[photoNum];
		document.getElementById("picFabrics").innerHTML = fabrics[photoNum];
	} else {
		photoNum = photos.length-1;
		document.images.photoslider.src = photos[photoNum];	
		document.getElementById("picDesc").innerHTML = text[photoNum];
		document.getElementById("photoLink").href = photosBig[photoNum];
		document.getElementById("photoLink").title = text[photoNum];
		document.getElementById("picColours").innerHTML = colours[photoNum];
		document.getElementById("picFabrics").innerHTML = fabrics[photoNum];
	}
}

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

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

photos[0] = "/images/10fall/collection/1288_thumb.jpg";
photos[1] = "/images/10fall/collection/1328_thumb.jpg";
photos[2] = "/images/10fall/collection/1357_thumb.jpg";
photos[3] = "/images/10fall/collection/1398_thumb.jpg";
photos[4] = "/images/10fall/collection/1406_thumb.jpg";
photos[5] = "/images/10fall/collection/1428_thumb.jpg";
photos[6] = "/images/10fall/collection/1478_thumb.jpg";
photos[7] = "/images/10fall/collection/1506_thumb.jpg";
photos[8] = "/images/10fall/collection/1528_thumb.jpg";
photos[9] = "/images/10fall/collection/1599_thumb.jpg";
photos[10] = "/images/10fall/collection/1614_thumb.jpg";
photos[11] = "/images/10fall/collection/1667_thumb.jpg";
photos[12] = "/images/10fall/collection/1688_thumb.jpg";
photos[13] = "/images/10fall/collection/1717_thumb.jpg";
photos[14] = "/images/10fall/collection/1742_thumb.jpg";

photosBig[0] = "/images/10fall/collection/1288.jpg";
photosBig[1] = "/images/10fall/collection/1328.jpg";
photosBig[2] = "/images/10fall/collection/1357.jpg";
photosBig[3] = "/images/10fall/collection/1398.jpg";
photosBig[4] = "/images/10fall/collection/1406.jpg";
photosBig[5] = "/images/10fall/collection/1428.jpg";
photosBig[6] = "/images/10fall/collection/1478.jpg";
photosBig[7] = "/images/10fall/collection/1506.jpg";
photosBig[8] = "/images/10fall/collection/1528.jpg";
photosBig[9] = "/images/10fall/collection/1599.jpg";
photosBig[10] = "/images/10fall/collection/1614.jpg";
photosBig[11] = "/images/10fall/collection/1667.jpg";
photosBig[12] = "/images/10fall/collection/1688.jpg";
photosBig[13] = "/images/10fall/collection/1717.jpg";
photosBig[14] = "/images/10fall/collection/1742.jpg";

text[0] = "Love story blazer";
text[1] = "Annie Hall blouse";
text[2] = "Solaris blouse";
text[3] = "Last Tango dress";
text[4] = "Network skirt";
text[5] = "The Deer Hunter dress";
text[6] = "Goodbye girl dress";
text[7] = "Klute dress";
text[8] = "The influence dress";
text[9] = "Taxi shorts";
text[10] = "Kramer turtleneck";
text[11] = "Paper Moon vest";
text[12] = "The Rose skirt";
text[13] = "Manhattan coat";
text[14] = "Hedda parka";

colours[0] = "umber/charcoal";
colours[1] = "greys/sienna";
colours[2] = "pewter/black";
colours[3] = "navy/black";
colours[4] = "umber/charcoal";
colours[5] = "greys/sienna";
colours[6] = "black/blues/floral";
colours[7] = "black/magenta/mushroom";
colours[8] = "umber/charcoal";
colours[9] = "umber/charcoal";
colours[10] = "black/magenta/mushroom";
colours[11] = "umber/charcoal";
colours[12] = "navy/black";
colours[13] = "navy/pewter";
colours[14] = "navy/pewter";

fabrics[0] = "";
fabrics[1] = "";
fabrics[2] = "";
fabrics[3] = "";
fabrics[4] = "";
fabrics[5] = "";
fabrics[6] = "";
fabrics[7] = "";
fabrics[8] = "";
fabrics[9] = "";
fabrics[10] = "";
fabrics[11] = "";
fabrics[12] = "";
fabrics[13] = "";
fabrics[14] = "";


