function NW(adres) {
	window.open(adres);
}

function Popup(adres, w, h) {
	window.open(adres, "", "toolbar=no, width=" + w + ",height=" + h);
}

function Goto(obj) {
	var URL = obj.options[obj.selectedIndex].value;
	window.location.href = URL;
}

function reservation(num) {
	var number = parseInt(num);
	for (i = 1; i <= number; i++) {
		document.getElementById('infoguest_' + i + '_1').style.display = '';
		document.getElementById('infoguest_' + i + '_2').style.display = '';
		document.getElementById('infoguest_' + i + '_3').style.display = '';
		document.getElementById('infoguest_' + i + '_4').style.display = '';
		document.getElementById('infoguest_' + i + '_5').style.display = '';
	}
	for (i = (number + 1); i <= 8; i++) {
		document.getElementById('infoguest_' + i + '_1').style.display = 'none';
		document.getElementById('infoguest_' + i + '_2').style.display = 'none';
		document.getElementById('infoguest_' + i + '_3').style.display = 'none';
		document.getElementById('infoguest_' + i + '_4').style.display = 'none';
		document.getElementById('infoguest_' + i + '_5').style.display = 'none';
	}
}

var slideShowSpeed = 5000;

// do not edit anything below this line
function runSlideShow() {
	if (document.all) {
		document.images.SlideShow1.style.filter="blendTrans(duration=2)";
		document.images.SlideShow2.style.filter="blendTrans(duration=2)";
//		document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
		document.images.SlideShow1.filters.blendTrans.Apply();
		document.images.SlideShow2.filters.blendTrans.Apply();
	}
	document.images.SlideShow1.src = preLoad1[j1].src;
	document.images.SlideShow2.src = preLoad2[j2].src;
	if (document.all) {
		document.images.SlideShow1.filters.blendTrans.Play();
		document.images.SlideShow2.filters.blendTrans.Play();
	}
	j1 = j1 + 1;
	j2 = j2 + 1;
	if (j1 > (p1 - 1))
		j1 = 0;
	if (j2 > (p2 - 1))
		j2 = 0;
	t = setTimeout('runSlideShow()', slideShowSpeed);
}
