function changeImage(inOption)
{
    if (inOption=="")
	inOption = 1;

    for (i = 1; i < 4; i++) 
	document.getElementById("photoBox" + i).style.display = "none";

    document.getElementById("photoBox" + inOption).style.display = "block";
}
    
function showSection(inOption) 
{
    if (inOption=="")
	inOption = 1;
    
    for (i = 1; i < 3; i++) 
	document.getElementById("destination" + i).style.display = "none";
    
    document.getElementById("destination" + inOption).style.display = "block";
}

function showSectionMain(inOption)
{
    if (inOption=="")
    	inOption = 0;
    for (i = 0; i < 4; i++) 
    {
	if (document.getElementById("menu" + i) != null)
	    document.getElementById("menu" + i).style.display = "none";
    }
    
    document.getElementById("menu" + inOption).style.display = "block";
    var str = location.href;
    str = str.replace("#hotelPage", "");
    var index = str.indexOf("&tabSelection=");
    if (index > 0)
    {
	var substr = str.substring(index);
	index = substr.indexOf('&', 1);
	if (index > 0)
	    substr = substr.substring(0, index);	
	str = str.replace(substr, "&tabSelection=" + inOption);
    }
    else
    {
	str = str + "&tabSelection=" + inOption;
    }
    location.href = str + "#hotelPage";
}

