// MENU DESPLEGABLE
$(document).ready(function()
{
	//$("dd:not(:first)").hide();
	$("#bloqueIZQ dd").hide();
	$("#bloqueIZQ dt a").click(function(){							 
		$("#bloqueIZQ dd:visible").slideUp("slow");
		var asm = $("#bloqueIZQ dt a.submenu").get();
		var asa = $("#bloqueIZQ dt a.submenuACT").get();
		//alert(this.className)
		if (this.className == "submenu"){
			$(asa).removeClass("submenuACT");
			$(asa).addClass("submenu");
			this.className="submenuACT";
			$(this).parent().next().slideDown("slow");	
		}
		else if (this.className == "submenuACT"){
			this.className="submenu";
		}
		else if (this.className == ""){
			$(asa).removeClass("submenuACT");
			$(asa).addClass("submenu");
		}
		//$(this).toggleClass('submenuACT');	
		return false;
	});
	
});

// CARGAR URL
function cargar(url)
{
	document.location.href = url;
}

function openrockola() {
	window.open('http://beta.rockolafm.net/mapfre/player.html','','width=336,height=490');
}

function seeBG(estado){
		document.getElementById('bloqueIZQ').style.visibility = estado;
		document.getElementById('bloqueCTR').style.visibility = estado;
		document.getElementById('bloqueDER').style.visibility = estado;
		var isMSIE = /*@cc_on!@*/false; 
		if (isMSIE)
		{
			if (estado == "visible") {
				document.getElementById('pie').style.display = "block";
			}
			else {
				document.getElementById('pie').style.display = "none";
			}
		}
		else {
			document.getElementById('pie').style.visibility = estado;
		}
	}

