Event.observe(window, "load", function() {  

	$("mundogay-enlaces-select").onclick = function(element) {
	  	$("mundogay-enlaces-panel").show();
	  	$("mundogay-martin-panel").hide();
	  	$("mundogay-enlaces-tab").addClassName("selected");
	  	$("mundogay-martin-tab").removeClassName("selected");
	  	return false;
	};
  
	$("mundogay-martin-select").onclick = function(element) {
	 	$("mundogay-enlaces-panel").hide();
		$("mundogay-martin-panel").show();
		$("mundogay-enlaces-tab").removeClassName("selected"); 
		$("mundogay-martin-tab").addClassName("selected");
		return false;
	};
	
	$("mundointerior-raffaellaInterior-select").onclick = function(element) {
	  	$("mundointerior-raffaellaInterior-panel").show();
	  	$("mundointerior-dove-panel").hide();
	  	$("mundointerior-raffaellaInterior-tab").addClassName("selected");
	  	$("mundointerior-dove-tab").removeClassName("selected");
	  	return false;
	};
  
	$("mundointerior-dove-select").onclick = function(element) {
		$("mundointerior-raffaellaInterior-panel").hide();
		$("mundointerior-dove-panel").show();
		$("mundointerior-raffaellaInterior-tab").removeClassName("selected"); 
		$("mundointerior-dove-tab").addClassName("selected");
		return false;
	};
	
	$$(".menu-top").each(function(element) {
		element.onclick = function() {
			Effect.ScrollTo("top-anchor");
			return false;
		}
	});

	$$(".menu-cocktails").each(function(element) {
		element.onclick = function() {
			Effect.ScrollTo("cocktails-anchor");
			return false;
		}
	});
	
	$$(".menu-eventos").each(function(element) {
		element.onclick = function() {
			Effect.ScrollTo("eventos-anchor");
			return false;
		}
	});
	
	$$(".menu-mundogay").each(function(element) {
		element.onclick = function() {
			Effect.ScrollTo("mundogay-anchor");
			return false;
		}
	});
	
	$$(".menu-mundointerior").each(function(element) {
		element.onclick = function() {
			Effect.ScrollTo("mundointerior-anchor");
			return false;
		}
	});

	$$(".menu-lagata").each(function(element) {
		element.onclick = function() {
			Effect.ScrollTo("lagata-anchor");
			return false;
		}
	});
	
	$$(".contacto-link").each(function(element) {
		element.onclick = function(event) {
			Effect.ScrollTo("contacto-anchor");
			return false;
		}
	});

	var box = new RumbleUI.Box({ width: 575, height: 452 });	
		
	$("noche-miercoles").onclick = box.show.bind(box, $("profile-miercoles").innerHTML);
	$("noche-jueves").onclick = box.show.bind(box, $("profile-jueves").innerHTML);
	$("noche-viernes").onclick = box.show.bind(box, $("profile-viernes").innerHTML);
	$("noche-sabado").onclick = box.show.bind(box, $("profile-sabado").innerHTML);
	$("noche-domingo").onclick = box.show.bind(box, $("profile-domingo").innerHTML);
	$("noche-osos").onclick = box.show.bind(box, $("profile-osos").innerHTML);
	$("cocktail-mes").onclick = box.show.bind(box, $("profile-cocktail").innerHTML);
	$("cocktail-curso").onclick = box.show.bind(box, $("profile-curso").innerHTML);
	$("interior-libros").onclick = box.show.bind(box, $("profile-libros").innerHTML);
	$("interior-venus").onclick = box.show.bind(box, $("profile-venus").innerHTML);
	$("interior-escalera").onclick = box.show.bind(box, $("profile-escalera").innerHTML);
	$("interior-articulos").onclick = box.show.bind(box, $("profile-articulos").innerHTML);

	new RumbleUI.InnerSwap($("eventos-noches"));
	new RumbleUI.InnerSwap($("tipos-cocktails"));
});


 
