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/11fall/collection/marnie_dress_t.jpg";
photos[1] = "/images/11fall/collection/northwest_parka_t.jpg";
photos[2] = "/images/11fall/collection/rebecca_blouse_t.jpg";
photos[3] = "/images/11fall/collection/spellbound_dress_t.jpg";
photos[4] = "/images/11fall/collection/steps_blazer_t.jpg";
photos[5] = "/images/11fall/collection/strangers_blouse_t.jpg";
photos[6] = "/images/11fall/collection/suspicious_shift_t.jpg";
photos[7] = "/images/11fall/collection/thief_blouse_t.jpg";
photos[8] = "/images/11fall/collection/topaz_skirt_t.jpg";
photos[9] = "/images/11fall/collection/vertigo_skirt_t.jpg";
photos[10] = "/images/11fall/collection/window_dress_t.jpg";

photosBig[0] = "/images/11fall/collection/marnie_dress.jpg";
photosBig[1] = "/images/11fall/collection/northwest_parka.jpg";
photosBig[2] = "/images/11fall/collection/rebecca_blouse.jpg";
photosBig[3] = "/images/11fall/collection/spellbound_dress.jpg";
photosBig[4] = "/images/11fall/collection/steps_blazer.jpg";
photosBig[5] = "/images/11fall/collection/strangers_blouse.jpg";
photosBig[6] = "/images/11fall/collection/suspicious_shift.jpg";
photosBig[7] = "/images/11fall/collection/thief_blouse.jpg";
photosBig[8] = "/images/11fall/collection/topaz_skirt.jpg";
photosBig[9] = "/images/11fall/collection/vertigo_skirt.jpg";
photosBig[10] = "/images/11fall/collection/window_dress.jpg";

text[0] = "Marnie dress";
text[1] = "Northwest parka";
text[2] = "Rebecca blouse";
text[3] = "Spellbound dress";
text[4] = "Steps blazer";
text[5] = "Strangers blouse";
text[6] = "Suspicious shift";
text[7] = "Thief blouse";
text[8] = "Topaz blouse";
text[9] = "Vertigo skirt";
text[10] = "Window dress";

colours[0] = "";
colours[1] = "";
colours[2] = "";
colours[3] = "";
colours[4] = "";
colours[5] = "";
colours[6] = "";
colours[7] = "";
colours[8] = "";
colours[9] = "";
colours[10] = "";

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

