// JavaScript Document

<!--

gallery01_01 = new Image();
gallery01_01.src = "images/02-backcountry-estate/01-backcountry-estate.jpg";

gallery01_02 = new Image();
gallery01_02.src = "images/02-backcountry-estate/02-backcountry-estate.jpg";

gallery01_03 = new Image();
gallery01_03.src = "images/02-backcountry-estate/03-backcountry-estate.jpg";

gallery01_04 = new Image();
gallery01_04.src = "images/02-backcountry-estate/04-backcountry-estate.jpg";

gallery01_05 = new Image();
gallery01_05.src = "images/02-backcountry-estate/05-backcountry-estate.jpg";

gallery01_06 = new Image();
gallery01_06.src = "images/02-backcountry-estate/06-backcountry-estate.jpg";

gallery01_07 = new Image();
gallery01_07.src = "images/02-backcountry-estate/07-backcountry-estate.jpg";

gallery01_08 = new Image();
gallery01_08.src = "images/02-backcountry-estate/08-backcountry-estate.jpg";

gallery01_09 = new Image();
gallery01_09.src = "images/02-backcountry-estate/09-backcountry-estate.jpg";

gallery01_10 = new Image();
gallery01_10.src = "images/02-backcountry-estate/10-backcountry-estate.jpg";

gallery01_11 = new Image();
gallery01_11.src = "images/02-backcountry-estate/11-backcountry-estate.jpg";

gallery01_12 = new Image();
gallery01_12.src = "images/02-backcountry-estate/12-backcountry-estate.jpg";

gallery01_13 = new Image();
gallery01_13.src = "images/02-backcountry-estate/13-backcountry-estate.jpg";

gallery01_14 = new Image();
gallery01_14.src = "images/02-backcountry-estate/14-backcountry-estate.jpg";

gallery01_15 = new Image();
gallery01_15.src = "images/02-backcountry-estate/15-backcountry-estate.jpg";

gallery01_16 = new Image();
gallery01_16.src = "images/02-backcountry-estate/16-backcountry-estate.jpg";

gallery01_17 = new Image();
gallery01_17.src = "images/02-backcountry-estate/17-backcountry-estate.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 = 17;


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;
	}
	if (galleryCountCurrent == 10) {
		document['gallery'].src = gallery01_10.src;
	}
	if (galleryCountCurrent == 11) {
		document['gallery'].src = gallery01_11.src;
	}
	if (galleryCountCurrent == 12) {
		document['gallery'].src = gallery01_12.src;
	}
	if (galleryCountCurrent == 13) {
		document['gallery'].src = gallery01_13.src;
	}
	if (galleryCountCurrent == 14) {
		document['gallery'].src = gallery01_14.src;
	}
	if (galleryCountCurrent == 15) {
		document['gallery'].src = gallery01_15.src;
	}
	if (galleryCountCurrent == 16) {
		document['gallery'].src = gallery01_16.src;
		document['nextbutton'].src = next_button.src;
	}
	if (galleryCountCurrent == 17) {
		document['gallery'].src = gallery01_17.src;
		document['nextbutton'].src = spacer.src;	
	}
}


//-->

