// gallery 01 - home
start = 0;

var guide = {
	
	makeSlideShows: function() {
		
		new SimpleImageSlideShow({		
		  startIndex: start,   
		  imgUrls: ['img/photo/01/full/img-01.jpg','img/photo/01/full/img-02.jpg','img/photo/01/full/img-03.jpg','img/photo/01/full/img-04.jpg'],
		  imgTexts:['Villa Leonor Apartments and Hostel, Santa Teresa','The bonde sails across the arcos de Lapa on its way to Santa Teresa and the Villa','Dawn rises over Rio de Janeiro. View from the Villa','The nearby square Largo das Neves features regularly in films (e.g. Incredible Hulk) and Brazilian telenovelas'],
		  container: 'screenShotImgs',
		  currentIndexContainer: 'imgNow',
		  maxContainer: 'imgMax',
		  nextLink: 'nextImg',
		  prevLink: 'prevImg'
		  
		});
	},
	init: function(){
		this.makeSlideShows();
	},
	startImage: function() {
		alert('from startimage');   // ac debug
		
	}
	
};

window.onDomReady(function(){
	guide.init();
});

//window.onDomReady(guide.init.bind(guide));

function changeimage(which) {
	//alert('as');
	start = which-1;  // accounts for array
	guide.init();
}

function actest(which) {
	document.getElementById('caption').innerHTML = which;  // this is function to change text - tt works
}

