// JavaScript Document
// Show/Hide functions for non-pointer layer/objects
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false

function show(id) {
	if(id == 'hotels')
	{
		window.location.href="index.html";
	} 
	if(id == 'bandbs')
	{
		window.location.href="bandb.html";
	} 
	if(id == 'sc1')
	{
		window.location.href="sc1.html";
	} 
	if(id == 'sc2')
	{
		window.location.href="sc2.html";
	} 
	if(id == 'backpack')
	{
		window.location.href="backpacker.html";
	} 

	if(id == 'camping')
	{
		window.location.href="camping.html";
	} 

	if(id == 'caravan')
	{
		window.location.href="caravan.html";
	} 

}

function hide(id) {
	if (ns4) document.layers[id].visibility = "hide"
	else if (ie4) document.all[id].style.visibility = "hidden"
}

function setSearchFocus()
{
   document.searchform.btnsearch.focus();
}

function toggleSearchFields(showfields)
{
	var searchdiv = document.getElementById('searchfields');
	var showbtn = document.getElementById('btnShowAll');

	if(showfields == 'y')
	{
		searchdiv.style.display = 'block';
		showbtn.style.display = 'none';
	}
	else
	{
		searchdiv.style.display = 'none';
		showbtn.style.display = 'block';
	}
}

function setRefined()
{
	var showalln = document.getElementById('showalln');
	if(showalln.checked == true)
	{
		toggleSearchFields('y');
	}
	else
	{
		toggleSearchFields('n');
	}
}
