var panels = new Array('panel1', 'panel2', 'panel3', 'panel4', 'panel5');

function showPanel(tab, panelName)
{
	var panelToShow = document.getElementById(panelName);

	for(i = 0; i< panels.length; i++)
	{
		// Get the current panel
		var curPanel = document.getElementById(panels[i]);

		// If it exists, hide it
		if (curPanel != null)
			curPanel.style.display = 'none';
	}

	// This line works around a display bug in Gecko-based browsers
	panelToShow.style.display = 'inline';

	// Show the panel
	panelToShow.style.display = 'block';

	return false;
}

var paneles = new Array('paneles4', 'paneles5');

function showPaneles(tab, panelesName)
{
	var panelesToShow = document.getElementById(panelesName);

	for(i = 0; i< paneles.length; i++)
	{
		// Get the current panel
		var curPaneles = document.getElementById(paneles[i]);

		// If it exists, hide it
		if (curPaneles != null)
			curPaneles.style.display = 'none';
	}

	// This line works around a display bug in Gecko-based browsers
	panelesToShow.style.display = 'inline';

	// Show the panel
	panelesToShow.style.display = 'block';

	return false;
}

	function Favoritos(){
	var is_4up = parseInt(navigator.appVersion);
	var is_mac   = navigator.userAgent.toLowerCase().indexOf("mac")!=-1;
	var is_ie   = navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
	var thePage = location.href;
	if (thePage.lastIndexOf('#')!=-1)
		thePage = thePage.substring(0,thePage.lastIndexOf('#'));
	if (is_ie && is_4up && !is_mac)
		window.external.AddFavorite(thePage,document.title);
	else if (is_ie || document.images)
		booker_hp = window.open(thePage,'booker_','menubar,width=325,height=100,left=140,top=60');
	//booker_hp.focus();
	}