// JavaScript Document

<!--

gallery01_01 = new Image();
gallery01_01.src = "images/08-nomads/01-nomads.jpg";

gallery01_02 = new Image();
gallery01_02.src = "images/08-nomads/02-nomads-christmas.jpg";

gallery01_03 = new Image();
gallery01_03.src = "images/08-nomads/03-nomads-den.jpg";

gallery01_04 = new Image();
gallery01_04.src = "images/08-nomads/04-nomads-living.jpg";

gallery01_05 = new Image();
gallery01_05.src = "images/08-nomads/05-nomads-christmas.jpg";

gallery01_06 = new Image();
gallery01_06.src = "images/08-nomads/06-nomads-living.jpg";

gallery01_07 = new Image();
gallery01_07.src = "images/08-nomads/07-nomads-mantle.jpg";

gallery01_08 = new Image();
gallery01_08.src = "images/08-nomads/08-nomads-study.jpg";

gallery01_09 = new Image();
gallery01_09.src = "images/08-nomads/09-nomads-closet.jpg";

gallery01_10 = new Image();
gallery01_10.src = "images/08-nomads/10-nomads-bedside.jpg";

back_button = new Image();
back_button.src = "../images/interface/back.jpg";
spacer = new Image();
spacer.src = "../images/interface/spacer-d8dfda.gif";
next_button = new Image();
next_button.src = "../images/interface/next.jpg";


var galleryCountCurrent = 1;
var galleryCountTotal = 10;


function gallerySwap(crement) {

	galleryCountCurrent = galleryCountCurrent + crement;
	
	
	if (galleryCountCurrent < 1) {
		galleryCountCurrent = 1;
	}
	if (galleryCountCurrent > galleryCountTotal) {
		galleryCountCurrent = galleryCountTotal;
	}
	
	
	if (galleryCountCurrent == 1) {
		document['gallery'].src = gallery01_01.src;	
		document['backbutton'].src = spacer.src;		
	}
	if (galleryCountCurrent == 2) {
		document['gallery'].src = gallery01_02.src;
		document['backbutton'].src = back_button.src;
	}
	if (galleryCountCurrent == 3) {
		document['gallery'].src = gallery01_03.src;
	}
	if (galleryCountCurrent == 4) {
		document['gallery'].src = gallery01_04.src;
	}
	if (galleryCountCurrent == 5) {
		document['gallery'].src = gallery01_05.src;
	}
	if (galleryCountCurrent == 6) {
		document['gallery'].src = gallery01_06.src;
	}
	if (galleryCountCurrent == 7) {
		document['gallery'].src = gallery01_07.src;
	}
	if (galleryCountCurrent == 8) {
		document['gallery'].src = gallery01_08.src;
	}
	if (galleryCountCurrent == 9) {
		document['gallery'].src = gallery01_09.src;
		document['nextbutton'].src = next_button.src;
	}
	if (galleryCountCurrent == 10) {
		document['gallery'].src = gallery01_10.src;
		document['nextbutton'].src = spacer.src;	
	}
}


//-->

