   // Cuando cargue el documento 
   $(document).ready(function(){  
     // Cuando el enlace sea clickeado
     $("a.tab").click(function () {  
	// Apaga el Activo
	$(".activo").removeClass("activo");  
	// Cambia Activo  
	$(this).addClass("activo");  
	// Despliega, escondiendo 
	$(".contenido").hide('slow');  
	// Muestra el contenido, obteniendo del atributo title del enlace (p.e. contenido_1), y muestra con show el contenido
	var muestra = $(this).attr("title");  
	$("#"+muestra).show('slow');  
    });  
   });  

function program_onclick() {
alert("Nos encontramos trabajando para brinderle la mejor programacion.");
}

function load_onclick() {
document.getElementById("myFrame2").src="tematicas.html";
document.getElementById("myFrame2").style.width="650px";
document.getElementById("myFrame2").style.height="400px";
document.getElementById("myFrame2").style.display = "block";
}

function publicidad_onclick(pagina,color){
document.getElementById("myFrame").src=pagina;
document.getElementById("myFrame").style.width="385px";
document.getElementById("myFrame").style.height="520px";
document.getElementById("myFrame").style.display = "block";
document.getElementById("tab_contenedor").style.background="#" + color;
}

function clasicos_onclick() {
publicidad_onclick("/reproductor/clasicos.html", "999999");
}

function nola_onclick() {
publicidad_onclick("/reproductor/nuevaola.html", "097793");
}

function acusticos_onclick() {
publicidad_onclick("/reproductor/acusticos.html", "D4A86B");
}

function parrandas_onclick() {
publicidad_onclick("/reproductor/parrandas.html", "FFCC33");
}

function emisora_onclick() {

if (BrowserDetect.browser == "Explorer")
{
mozi_onclick();
}
else{
mozi_onclick();
}}

function mozi_onclick() {
document.getElementById("myFrame").src="firefox.html";
document.getElementById("myFrame").style.width="328px";
document.getElementById("myFrame").style.height="23px";
document.getElementById("myFrame").style.display = "block";
document.body.style.backgroundImage='none';
document.getElementById("tab_contenedor").style.background='#097793';
}

function otron_onclick() {
document.getElementById("myFrame").src="otronavegador.html";
document.getElementById("myFrame").style.width="342px";
document.getElementById("myFrame").style.height="90px";
document.getElementById("myFrame").style.display = "block";
document.body.style.backgroundImage='none';
document.getElementById("tab_contenedor").style.background='#097793';
}


var BrowserDetect = {
	init: function () {
		this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
		this.version = this.searchVersion(navigator.userAgent)
			|| this.searchVersion(navigator.appVersion)
			|| "an unknown version";
		this.OS = this.searchString(this.dataOS) || "an unknown OS";
	},
	searchString: function (data) {
		for (var i=0;
		i<data.length;i++)	{
			var dataString = data[i].string;
			var dataProp = data[i].prop;
			this.versionSearchString = data[i].versionSearch || data[i].identity;
			if (dataString) {
				if (dataString.indexOf(data[i].subString) != -1)
					return data[i].identity;
			}
			else if (dataProp)
				return data[i].identity;
		}
	},
	searchVersion: function (dataString) {
		var index = dataString.indexOf(this.versionSearchString);
		if (index == -1) return;
		return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
	},
	dataBrowser: [
		{
			string: navigator.userAgent,
			subString: "Chrome",
			identity: "Chrome"
		},
		{ 	string: navigator.userAgent,
			subString: "OmniWeb",
			versionSearch: "OmniWeb/",
			identity: "OmniWeb"
		},
		{
			string: navigator.vendor,
			subString: "Apple",
			identity: "Safari",
			versionSearch: "Version"
		},
		{
			prop: window.opera,
			identity: "Opera"
		},
		{
			string: navigator.vendor,
			subString: "iCab",
			identity: "iCab"
		},
		{
			string: navigator.vendor,
			subString: "KDE",
			identity: "Konqueror"
		},
		{
			string: navigator.userAgent,
			subString: "Firefox",
			identity: "Firefox"
		},
		{
			string: navigator.vendor,
			subString: "Camino",
			identity: "Camino"
		},
		{		// for newer Netscapes (6+)
			string: navigator.userAgent,
			subString: "Netscape",
			identity: "Netscape"
		},
		{
			string: navigator.userAgent,
			subString: "MSIE",
			identity: "Explorer",
			versionSearch: "MSIE"
		},
		{
			string: navigator.userAgent,
			subString: "Gecko",
			identity: "Mozilla",
			versionSearch: "rv"
		},
		{ 		// for older Netscapes (4-)
			string: navigator.userAgent,
			subString: "Mozilla",
			identity: "Netscape",
			versionSearch: "Mozilla"
		}
	],
	dataOS : [
		{
			string: navigator.platform,
			subString: "Win",
			identity: "Windows"
		},
		{
			string: navigator.platform,
			subString: "Mac",
			identity: "Mac"
		},
		{
			   string: navigator.userAgent,
			   subString: "iPhone",
			   identity: "iPhone/iPod"
	    },
		{
			string: navigator.platform,
			subString: "Linux",
			identity: "Linux"
		}
	]

};
BrowserDetect.init();

dataBrowser: [
	{
		prop: window.opera,
		identity: "Opera" // note: no comma
	},
	{
		string: navigator.userAgent,
		subString: "MSIE",
		identity: "Explorer",
		versionSearch: "MSIE" // note: no comma
	} // note: no comma
];




			$(document).ready(function() {
				
				$('#menu-jquery li a').hover(
				
					function() {
						
						$(this).css('padding', '5px 15px')
								 .animate({'paddingLeft'	: '25px', 
											 'paddingRight'	: '25px', 
											 'backgroundColor':'rgba(0,0,0,0.5)'}, 
											 'fast');
					}, 
					
					function() {
						
						$(this).css('padding', '5px 25px')
								 .animate({'paddingLeft'	: '15px', 
								 			'paddingRight'		: '15px', 
								 			'backgroundColor' :'rgba(0,0,0,0.2)'}, 
								 			'fast');
				
				}).mousedown(function() {
			
					$(this).animate({'backgroundColor': 'rgba(0,0,0,0.1)'}, 'fast');

				}).mouseup(function() {
				
					$(this).animate({'backgroundColor': 'rgba(0,0,0,0.5)'}, 'fast');
				});				
			});
