<!--

function popup(file) {
  window.open(file,"popup","height=435,width=635,menubar=no,location=no,scrollbars=auto,status=no,resize=yes");
}

function showSection(s) {
	
	tmp = document.getElementsByTagName('table');
    for (i=0;i<tmp.length;i++)
    {
        if (tmp[i].className == 'on') tmp[i].className = 'off';
        if (tmp[i].id == s) tmp[i].className = 'on';
    }
	
    if (document.images){
	    domainname = document.domain;
	    document[s].src =  '/images/nav/'+s+'1.gif';
	    buttons = new Array('desc','details','tours','photos');
	    
	    for (i=0;i<buttons.length;i++)
        {
	        if (buttons[i]!=s){
		    	document[buttons[i]].src = '/images/nav/'+buttons[i]+'.gif';
			}
	    }
	}
}

function moveForward(){
		pp = document.getElementById("photopointer");
		pp.value++;
		
		np = document.getElementById("numberofphotos");		
		
		// If it's not already visible show the 'previous' link
		tmp = document.getElementById("previousbutton");
		if (tmp.className == 'backoff') tmp.className = 'backon';
		
		// If last image then hide 'next' button
		if (pp.value == np.value){
			tmp = document.getElementById("nextbutton");
			if (tmp.className == 'foreon') tmp.className = 'foreoff';
		}
}

function moveBackward(){
		pp = document.getElementById("photopointer");
		pp.value--;

		// If it's not already visible show the 'next' link
		tmp = document.getElementById("nextbutton");
		if (tmp.className == 'foreoff') tmp.className = 'foreon';
		
		// If last image then hide 'previous' button
		if (pp.value == 1){
			tmp = document.getElementById("previousbutton");
			if (tmp.className == 'backon') tmp.className = 'backoff';
		}	
}

function changePhoto(way){
	
	strFiles     = document.getElementById("photofiles");
	strFiles	 = strFiles.value;
	strWidths    = document.getElementById("widths");
	strWidths	 = strWidths.value;
	strHeights   = document.getElementById("heights");
	strHeights   = strHeights.value;

    var photofiles   = new Array();
    var photowidths  = new Array();
    var photoheights = new Array();
    
	photofiles   = strFiles.split(/,/);
	photowidths  = strWidths.split(/,/);
	photoheights = strHeights.split(/,/);
		
	if (way=='forward'){
		moveForward();	
	}
	else {
		moveBackward();
	}
	
	tmp     = document.getElementById("chPhoto");
	pointer = document.getElementById("photopointer");
	pointer = pointer.value;
	pointer--;
	tmp.src    = photofiles[pointer];
	tmp.width  = photowidths[pointer];
	tmp.height = photoheights[pointer];
	

}


//-->