<!--

function popup(file) {
  window.open(file,"popup","height=500,width=640,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','location');
	    
	    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");
		tmp.className = 'backon';
		
		// If last image then hide 'next' button
		if (pp.value == np.value){
			tmp = document.getElementById("nextbutton");
			tmp.className = 'foreoff';
		}
		return pp.value;
}

function moveBackward(){
		pp = document.getElementById("photopointer");
		pp.value--;
		
		// If it's not already visible show the 'next' link
		tmp = document.getElementById("nextbutton");
		tmp.className = 'foreon';
		
		// If first image then hide 'previous' button
		if (pp.value == 1){
			tmp = document.getElementById("previousbutton");
			tmp.className = 'backoff';
		}
		
		return pp.value;
}

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'){
		pointer = moveForward();
	}
	else {
		pointer = moveBackward();
	}
	tmp     = document.getElementById("chPhoto");
	number = document.getElementById("numberofphotos");
	
	if (showing = document.getElementById("showing")){
		showing.value = "Showing "+pointer+" of "+number.value;
	}
	
	pointer--;
	tmp.src    = photofiles[pointer];
	tmp.width  = photowidths[pointer];
	tmp.height = photoheights[pointer];
	
	

}


//-->