	color_the_plan = '#5c8dd2';
	color_commercials = '#d60326';
	color_sales = '#2e53a3';
	color_rentals = '#a55499';
	color_tourism_social = '#699b22';
	color_component_content = '#ff8f04';

	function hide_all_tabs() {
		document.getElementById("the_history").style.display='none';
		document.getElementById("events").style.display='none';
		document.getElementById("sales").style.display='none';
		document.getElementById("rentals").style.display='none';
		document.getElementById("tourism_social").style.display='none';
		document.getElementById("component_content").style.display='none';
		}

	function background_color(color) {
		document.getElementById("bg_layout").style.background=color;
		}

	function show_the_history() {
		hide_all_tabs();
		background_color(color_the_plan);
		document.getElementById("the_history").style.display='';
		}

	function show_events() {
		hide_all_tabs();
		background_color(color_commercials);
		document.getElementById("events").style.display='';
		}	

	function show_sales() {
		hide_all_tabs();
		background_color(color_sales);
		document.getElementById("sales").style.display='';
		}

	function show_rentals() {
		hide_all_tabs();
		background_color(color_rentals);
		document.getElementById("rentals").style.display='';
		}

	function show_tourism_social() {
		hide_all_tabs();
		background_color(color_tourism_social);
		document.getElementById("tourism_social").style.display='';
		}

	function show_component_content() {
		hide_all_tabs();
		background_color(color_component_content);
		document.getElementById("component_content").style.display='';
		}

	function background_glass(color) {
		var glass = getObj('glass'); //document.getElementById('glass');
		glass.style.background = eval(color);
		glass.style.height = document.body.scrollHeight + 'px';
		glass.style.width =  '100%';
		glass.style.display =  "block";
		}

	function background_glass_off() {
		var glass = getObj('glass'); //document.getElementById('glass');
		glass.style.display =  "none";
		}


	function getObj(name)
		{
		  if (document.getElementById)
		  {
			this.obj = document.getElementById(name);
			this.style = document.getElementById(name).style;
		  }
		  else if (document.all)
		  {
			this.obj = document.all[name];
			this.style = document.all[name].style;
		  }
		  else if (document.layers)
		  {
			this.obj = document.layers[name];
			this.style = document.layers[name];
		  }
		}