slideshowarray = new Array("RZslideshow.html","indiaslideshow.html", "mexicoslideshow.html","nepalslideshow.html",
							"rhodesslideshow.html")

function firstImage(){
document.mainimage.src = "../image/"+imgList[0]
}
function nextImage(){
	if (currentImage==imgList.length-1) {
	currentImage = -1
	}
	currentImage++
	document.mainimage.src = "../image/"+imgList[currentImage]
}
function autonextImage(){
	if (autoplay) {
		nextImage()
		}
}

function prevImage(){
	if (currentImage==0) {
	currentImage = imgList.length
	}
	currentImage--
	document.mainimage.src = "../image/"+imgList[currentImage]
}
function gallerySource(){
	var str = imgList[currentImage]
	l = str.length
	myFile = str.substring(0,l - 3)
	document.location.href = "../source/"+myFile+"html"
}
function autoShow(){
 	autoplay = !autoplay
 	if (autoplay) {
 		setInterval("autonextImage()",10000)
 		
		}
	else {
		setInterval("")
		}
}
function RZURLPopup(formName, popupName, target) {
	var form  = document.forms[formName];
	var popup = form.elements[popupName];
		window.open(URLPOPUPrelativeFix+popup.options[popup.selectedIndex].value, target);
		popup.selectedIndex = 0;
}

function RZpopupslideshow(name) {
	var form  = document.forms[name];
	var popup = form.elements[name];
	popupWin("Web_Gallery/slideshows/"+slideshowarray[popup.selectedIndex-2],'Dia/Slides')
}
function popupWin(popupURL, popupTitle)
{
        // Yeni pencere aİlİyor
          var popup =window.open(popupURL,"PopupWin",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=800,height=700');
        if( navigator.appName.substring(0,8) == "Netscape" )
        {
                popup.location = popupURL;
        }
}