	function getUrlVars()
	{
		var vars = [], hash;
		var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');

		for(var i = 0; i < hashes.length; i++)
		{
			hash = hashes[i].split('=');
			vars.push(hash[0]);
			vars[hash[0]] = hash[1];
		}
		return vars;
	}
	function addslashes(str) {
		str=str.replace(/\\/g,'\\\\');
		str=str.replace(/\'/g,'\\\'');
		str=str.replace(/\"/g,'\\"');
		str=str.replace(/\0/g,'\\0');
		return str;
	}
	function stripslashes(str) {
		str=str.replace(/\\'/g,'\'');
		str=str.replace(/\\"/g,'"');
		str=str.replace(/\\0/g,'\0');
		str=str.replace(/\\\\/g,'\\');
		return str;
	}
	function linkvideo(base,id){
		var link = base + "videos/?id=" + id + "&rd=" + parseInt (Math.random () * 99999999);
		location.href = link;
	}
	function linkvideo3(base,id){
		titulo = escape($("#jtitle").val());
		descrip = escape($("#jdescrip").val());
		var link = base + "videos/?idg=" + id + "&tt=" + titulo + "&cp=" + descrip;
		location.href = link;
	}
	function linkgaleria(base,id,campo,campo2){
		var titulo = escape($(campo).val());
		var descrip = escape($(campo2).val());
		var link = base + "fotos/?idg=" + id + "&tt=" + titulo + "&cp=" + descrip;
		location.href = link;
	}
	function mandaFoto(id,titulo,descrip){
		var link = "http://www2.esmas.com/ritmoson-latino/fotos/?idg=" + id + "&tt=" + titulo + "&cp=" + descrip;
		location.href = link;
	}
	function mandaVideo(id,titulo,descrip){
		var link = "http://www2.esmas.com/ritmoson-latino/videos/?idg=" + id + "&tt=" + titulo + "&cp=" + descrip;
		location.href = link;
	}
	function paginacion(adjacents,totalPages,limit,page,url){
		targetpage = url + "?page=";
		if(page) {
			start = (page - 1) * limit;}		//first item to display on this page
		else{
			start = 0;		}						//if no page var is given, set start to 0
		
		/* Setup page vars for display. */
		if (page == 0) {page = 1;		}			//if no page var is given, default to 1.
		prev = page - 1;							//previous page is page - 1
		next = page + 1;							//next page is page + 1
		lastpage = totalPages;
		lpm1 = lastpage - 1;						//last page minus 1
		
		pagination = "";
		if(lastpage > 1)
		{	
			//pages	
			if (lastpage < 7 + (adjacents * 2))	//not enough pages to bother breaking it up
			{	
				for (counter = 1; counter <= lastpage; counter++)
				{
					if (counter == page){
						pagination+= "<div id=\"numeros\">[" + counter + "]</div> ";
					}else{
						pagination+= "<div onclick=\"location.href='" + targetpage + counter + "'\" id=\"numeros\">" + counter +"</div> ";
					}
				}
			}else {
				if(lastpage > 5 + (adjacents * 2))	//enough pages to hide some
				{
					//close to beginning; only hide later pages
					if(page < 1 + (adjacents * 2))		
					{
						for (counter = 1; counter < 4 + (adjacents * 2); counter++)
						{
							if (counter == page){
								pagination+= "<div id=\"numeros\">[" + counter + "]</div> ";
							}else{
								pagination+= "<div onclick=\"location.href='" + targetpage + counter + "'\" id=\"numeros\">" + counter +"</div> ";
							}
						}
						pagination+= "<div id=\"numeros\">...</div> ";
						pagination+= "<div onclick=\"location.href='" + targetpage + lastpage + "'\" id=\"numeros\">" + lastpage + "</div> ";
					}else{
						if(lastpage - (adjacents * 2) > page && page > (adjacents * 2)){
							pagination+= "<div onclick=\"location.href='"+targetpage+"1'\" id=\"numeros\">1</div> ";
							pagination+= "<div id=\"numeros\">...</div> ";
							for (counter = page - adjacents; counter <= page + adjacents; counter++)
							{
								if (counter == page){
									pagination+= "<div id=\"numeros\">[" + counter + "]</div> ";
								}else{
									pagination+= "<div onclick=\"location.href='" + targetpage + counter + "'\" id=\"numeros\">" + counter +"</div> ";
									}
							}
							pagination+= "<div id=\"numeros\">...</div> ";
							pagination+= "<div onclick=\"location.href='" + targetpage + lastpage + "'\" id=\"numeros\">" + lastpage + "</div> ";		
						}
						//close to end; only hide early pages
						else
						{
							pagination+= "<div onclick=\"location.href='" + targetpage + "1'\" id=\"numeros\">1</div> ";
							pagination+= "<div id=\"numeros\">...</div> ";
							for (counter = lastpage - (2 + (adjacents * 2)); counter <= lastpage; counter++)
							{
								if (counter == page){
									pagination+= "<div id=\"numeros\">[" + counter + "]</div> ";
								}else{
									pagination+= "<div onclick=\"location.href='" + targetpage + counter + "'\" id=\"numeros\">" + counter +"</div> ";
									}
							}
						}
					}
				}
			}
		}
		$('.numeracion').append(pagination);
	}
function changeSize(number,number) 
    {
     if (document.all)
	    { 
            element = document.all['contenidos-texto']; 
        } 
     else
	    { 
            element = document.getElementById('contenidos-texto'); 
        } 
     var startSize = 12; 
     var rateSize = 3; 
     var numRate = 5; 
     var startSizeLine = 15; 
     var rateSizeLine = 3; 
     var numRateLine = 5; 
     var strActual = element.style.fontSize; 
     var strLineActual = element.style.lineHeight; 
     var intActual = parseInt(strActual.substring(0, strActual.indexOf("px"))); 
     var intLineActual = parseInt(strLineActual.substring(0, strLineActual.indexOf("px")));
     intActual += number; intLineActual += number; 	
     if (intActual < (startSize + ( (numRate + 1) * rateSize) ) && intActual > startSize-1)
	     { 
           element.style.fontSize = intActual + "px"; 
         } 
     if (intLineActual < (startSizeLine + ( (numRateLine + 1) * rateSizeLine) ) && intLineActual > startSizeLine-1)
	    { 
            element.style.lineHeight = intLineActual + "px"; 
        } 
    } 
	function enviaText() 
	{ 
		document.envia.submit();
	}

	function imprimeText() 
	{ 
		window.print();
	}
	function fechahead(fecha){
		var fec = fecha.split(" ");
		var datos = fec[0].split("-");
		var mes = "";
		if (datos[1]==1){mes="Ene";}
		if (datos[1]==2){mes="Feb";}
		if (datos[1]==3){mes="Mzo";}
		if (datos[1]==4){mes="Abr";}
		if (datos[1]==5){mes="May";}
		if (datos[1]==6){mes="Jun";}
		if (datos[1]==7){mes="Jul";}
		if (datos[1]==8){mes="Ago";}
		if (datos[1]==9){mes="Sep";}
		if (datos[1]==10){mes="Oct";}
		if (datos[1]==11){mes="Nov";}
		if (datos[1]==12){mes="Dic";}
		var nfecha = mes + " " + datos[2]+ ", " + datos[0];
		$('#fecha-slide').html(nfecha);
	}
	function fechahead2(fecha,campo){
		var fec = fecha.split(" ");
		var datos = fec[0].split("-");
		var mes = "";
		if (datos[1]==1){mes="Ene";}
		if (datos[1]==2){mes="Feb";}
		if (datos[1]==3){mes="Mzo";}
		if (datos[1]==4){mes="Abr";}
		if (datos[1]==5){mes="May";}
		if (datos[1]==6){mes="Jun";}
		if (datos[1]==7){mes="Jul";}
		if (datos[1]==8){mes="Ago";}
		if (datos[1]==9){mes="Sep";}
		if (datos[1]==10){mes="Oct";}
		if (datos[1]==11){mes="Nov";}
		if (datos[1]==12){mes="Dic";}
		var nfecha = mes + " " + datos[2]+ ", " + datos[0];
		$(campo).html(nfecha);
	}
	function muestra_solicita_vid(){
		var elDiv = document.getElementById('slide_solicita_video'); 
		elDiv.style.display='block';
		oculta_solicita_sb();
    }
    function oculta_solicita_vid(){
         var elDiv = document.getElementById('slide_solicita_video');
         elDiv.style.display='none';   
    }
	function muestra_solicita_sb(){
		var elDiv = document.getElementById('slide_solicita_video_sb'); 
		elDiv.style.display='block';
		oculta_solicita_vid();
    }
    function oculta_solicita_sb(){
         var elDiv = document.getElementById('slide_solicita_video_sb');
         elDiv.style.display='none';   
    }
    function oculta_cont(){
         var elDiv = document.getElementById('contacto');
         elDiv.style.display='none';
    }
	function muestraconttop(){
		var elDiv = document.getElementById('contacto'); 
		elDiv.style.display='block';
		elDiv.style.top='20px';
		elDiv.style.left='20px';
		document.getElementById('tab1').style.display='block';
		document.getElementById('tab2').style.display='none';
		document.getElementById('tab3').style.display='none';
		document.getElementById('tab4').style.display='none';
		var elli = document.getElementById('btn_correo');
		elli.className = "btn-correo-active";
        document.getElementById('top').scrollIntoView(true);
    }
	function opencontli1(){
		document.getElementById('tab1').style.display='block';
		document.getElementById('tab2').style.display='none';
		document.getElementById('tab3').style.display='none';
		document.getElementById('tab4').style.display='none';
		document.getElementById('btn_correo').className = "btn-correo-active";
		document.getElementById('btn_ritmoson').className = "btn-ritmoson";
		document.getElementById('btn_usr').className = "btn-usr";
		document.getElementById('btn_www').className = "btn-www";
	}
	function opencontli2(){
		document.getElementById('tab1').style.display='none';
		document.getElementById('tab2').style.display='block';
		document.getElementById('tab3').style.display='none';
		document.getElementById('tab4').style.display='none';
		document.getElementById('btn_correo').className = "btn-correo";
		document.getElementById('btn_ritmoson').className = "btn-ritmoson-active";
		document.getElementById('btn_usr').className = "btn-usr";
		document.getElementById('btn_www').className = "btn-www";
	}
	function opencontli3(){
		document.getElementById('tab1').style.display='none';
		document.getElementById('tab2').style.display='none';
		document.getElementById('tab3').style.display='block';
		document.getElementById('tab4').style.display='none';
		document.getElementById('btn_correo').className = "btn-correo";
		document.getElementById('btn_ritmoson').className = "btn-ritmoson";
		document.getElementById('btn_usr').className = "btn-usr-active";
		document.getElementById('btn_www').className = "btn-www";
	}
	function opencontli4(){
		document.getElementById('tab1').style.display='none';
		document.getElementById('tab2').style.display='none';
		document.getElementById('tab3').style.display='none';
		document.getElementById('tab4').style.display='block';
		document.getElementById('btn_correo').className = "btn-correo";
		document.getElementById('btn_ritmoson').className = "btn-ritmoson";
		document.getElementById('btn_usr').className = "btn-usr";
		document.getElementById('btn_www').className = "btn-www-active";
	}
	function returnto(url){
		var datos = url.split("/");
		var cdatos = datos.length;
		var ndatos = cdatos - 2;
		var returl = "";
		for (a = 0; a<=ndatos; a++){
			returl = returl + datos[a] + "/";
		}
		location.href = returl;
	}
	function returntopage(url,page){
		var datos = url.split("/");
		var cdatos = datos.length;
		var ndatos = cdatos - 2;
		var returl = "";
		for (a = 0; a<=ndatos; a++){
			returl = returl + datos[a] + "/";
		}
		if (page == "undefined"){
			history.back();
		}else{
			if(page==1){
				returl = returl;
			} else {
				returl = returl + "?page=" + page;
			}
			location.href = returl;
		}
	}
	function openpromo(){
		$('#slide-promos').slideToggle("slow");
		$("#ptab2").removeClass("ptab2-active").addClass("ptab2-inactive");
		$("#ptab3").removeClass("ptab3-active").addClass("ptab3-inactive");
		$("#ptab1").addClass("ptab1-active").removeClass("ptab1-inactive");
		$("#bg-slide-1").show();
		$("#bg-slide-2").hide();
		$("#bg-slide-3").hide();
	}
	function rotatwits(){
		var camponew = ".twitt_" + ini;
		$(camponew).show("slide", { direction: "up" }, 1000);
		var old = ini-1;
		if(old < 0){
			var campoold = ".twitt_19";
			$(campoold).css("display","none");
		}else{
			var campoold = ".twitt_" + old;
			$(campoold).css("display","none");
		}

		ini=ini+1;
		if(ini>=20){
			ini=0;
		}
	}
	function cambio_ret(text){
		var txt = text;
		txt = txt.replace(/<1>/g,',');
		txt = txt.replace(/<2>/g,' ');
		txt = txt.replace(/<3>/g,'á');
		txt = txt.replace(/<4>/g,'é');
		txt = txt.replace(/<5>/g,'í');
		txt = txt.replace(/<6>/g,'ó');
		txt = txt.replace(/<7>/g,'ú');
		txt = txt.replace(/<8>/g,'Á');
		txt = txt.replace(/<9>/g,'É');
		txt = txt.replace(/<10>/g,'Í');
		txt = txt.replace(/<11>/g,'Ó');
		txt = txt.replace(/<12>/g,'Ú');
		txt = txt.replace(/<13>/g,'Ñ');
		txt = txt.replace(/<14>/g,'ñ');
		txt = txt.replace(/<15>/g,'¿');
		txt = txt.replace(/<16>/g,'?');
		txt = txt.replace(/<17>/g,' ');
		txt = txt.replace(/<18>/g,' ');
		txt = txt.replace(/<19>/g,'&');
		return txt;
	}
	function stopscroll(){
		clearInterval(temporizador);
	}
	function movedown(){
		temporizador = setInterval("movescrolldw()",100);
	}
	function movescrolldw(){
		document.getElementById('bloque-horarios').scrollTop = document.getElementById('bloque-horarios').scrollTop + 20;
	}
	function movetop(){
		temporizador = setInterval("movescrollup()",100);
	}
	function movescrollup(){
		document.getElementById('bloque-horarios').scrollTop = document.getElementById('bloque-horarios').scrollTop - 20;
	}
	function moveleft(){
		temporizador = setInterval("movescrolllf()",90);
	}
	function movescrolllf(){
		document.getElementById('reel').scrollLeft = document.getElementById('reel').scrollLeft + 25;
	}
	function moveright(){
		temporizador = setInterval("movescrollrg()",90);
	}
	function movescrollrg(){
		document.getElementById('reel').scrollLeft = document.getElementById('reel').scrollLeft - 25;
	}
	function sendSerch(){
		var buscar = escape($("#buscar").val());
		var link = "http://www2.esmas.com/ritmoson-latino/search/?buscar=" + buscar;
		location.href = link;
	}
	function submitenter(myfield,e){
		var keycode;
		if (window.event) keycode = window.event.keyCode;
		else if (e) keycode = e.which;
		else return true;

		if (keycode == 13)
		   {
		   sendSerch();
		   return false;
		   }
		else{
		   return true;}
	}

	
$(document).ready(function(){
	$(".btn_cerrar").css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/gif/btn-cerrar.gif)");

  	$("#contenedor-video").mouseover(function(evento){
		$("#play_shadow_d").removeClass('play_shadow');
		$("#play_shadow_d").addClass('play_shadow_hover');
	});
	$("#contenedor-video").mouseout(function(evento){
		$("#play_shadow_d").removeClass('play_shadow_hover');
		$("#play_shadow_d").addClass('play_shadow');
	});

	$("#kwick_1").mouseover(function(evento){
		$(this).css("width","118px");
	});
	$("#kwick_1").mouseout(function(evento){
		$(this).css("width","51px");
	});
	$("#kwick_2").mouseover(function(evento){
		$(this).css("width","118px");
	});
	$("#kwick_2").mouseout(function(evento){
		$(this).css("width","51px");
	});
	$("#kwick_3").mouseover(function(evento){
		$(this).css("width","118px");
	});
	$("#kwick_3").mouseout(function(evento){
		$(this).css("width","51px");
	});
	$("#kwick_4").mouseover(function(evento){
		$(this).css("width","118px");
	});
	$("#kwick_4").mouseout(function(evento){
		$(this).css("width","51px");
	});
	$("#kwick_5").mouseover(function(evento){
		$(this).css("width","118px");
	});
	$("#kwick_5").mouseout(function(evento){
		$(this).css("width","51px");
	});
	$("#kwick_6").mouseover(function(evento){
		$(this).css("width","118px");
	});
	$("#kwick_6").mouseout(function(evento){
		$(this).css("width","51px");
	});
	$("#kwick_7").mouseover(function(evento){
		$(this).css("width","118px");
	});
	$("#kwick_7").mouseout(function(evento){
		$(this).css("width","51px");
	});
	$("#kwick_8").mouseover(function(evento){
		$(this).css("width","118px");
	});
	$("#kwick_8").mouseout(function(evento){
		$(this).css("width","51px");
	});

	$("#ico-facebook").mouseover(function(evento){
		$(this).css("top","37px");
	});
	$("#ico-facebook").mouseout(function(evento){
		$(this).css("top","30px");
	});
	$("#ico-twitter").mouseover(function(evento){
		$(this).css("top","37px");
	});
	$("#ico-twitter").mouseout(function(evento){
		$(this).css("top","30px");
	});

	$("#ico-home-pp").mouseover(function(evento){
		$(this).css("top","-3px");
	});
	$("#ico-home-pp").mouseout(function(evento){
		$(this).css("top","8px");
	});
	$("#ico-contacyo-pp").mouseover(function(evento){
		$(this).css("top","-3px");
	});
	$("#ico-contacyo-pp").mouseout(function(evento){
		$(this).css("top","8px");
	});
	$("#ico-facebook-pp").mouseover(function(evento){
		$(this).css("top","-3px");
	});
	$("#ico-facebook-pp").mouseout(function(evento){
		$(this).css("top","8px");
	});
	$("#ico-twitter-pp").mouseover(function(evento){
		$(this).css("top","-3px");
	});
	$("#ico-twitter-pp").mouseout(function(evento){
		$(this).css("top","8px");
	});
	$("#ico-orgullo-latino-pp").mouseover(function(evento){
		$(this).css("top","-3px");
	});
	$("#ico-orgullo-latino-pp").mouseout(function(evento){
		$(this).css("top","8px");
	});

	$(".btn-correo").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-cnt-correo-hover.jpg)");
		$(this).css("cursor","pointer");
	});
	$(".btn-correo").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-cnt-correo.jpg)");
		$(this).css("cursor","");
	});

	$(".btn-ritmoson").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-cnt-ritmoson-hover.jpg)");
		$(this).css("cursor","pointer");
	});
	$(".btn-ritmoson").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-cnt-ritmoson.jpg)");
		$(this).css("cursor","");
	});

	$(".btn-usr").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-cnt-usr-hover.jpg)");
		$(this).css("cursor","pointer");
	});
	$(".btn-usr").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-cnt-usr.jpg)");
		$(this).css("cursor","");
	});

	$(".btn-www").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-cnt-www-hover.jpg)");
		$(this).css("cursor","pointer");
	});
	$(".btn-www").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-cnt-www.jpg)");
		$(this).css("cursor","");
	});
	$(".btn_cerrar").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/gif/btn-cerrar-hover.gif)");
		$(this).css("cursor","pointer");
	});
	$(".btn_cerrar").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/gif/btn-cerrar.gif)");
		$(this).css("cursor","pointer");
	});
	$(".btn_enviar").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-enviar-promociones-hover.jpg)");
		$(this).css("cursor","pointer");
	});
	$(".btn_enviar").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-enviar-promociones.jpg)");
		$(this).css("cursor","pointer");
	});
	$(".btn_ir").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/gif/ico-ir-buscador-hover.gif)");
		$(this).css("cursor","pointer");
	});
	$(".btn_ir").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/gif/ico-ir-buscador.gif)");
		$(this).css("cursor","pointer");
	});
	$("#btn-participar").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-participar-hover.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#btn-participar").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-participar.jpg)");
		$(this).css("cursor","pointer");
	});
	$('.btn-participar2').click(function(){
		$('#slide-promos').slideToggle("slow");
		$("#ptab2").removeClass("ptab2-active").addClass("ptab2-inactive");
		$("#ptab3").removeClass("ptab3-active").addClass("ptab3-inactive");
		$("#ptab1").addClass("ptab1-active").removeClass("ptab1-inactive");
		$("#bg-slide-1").show();
		$("#bg-slide-2").hide();
		$("#bg-slide-3").hide();
	});
	$('.slide-promos-cerrar').click(function(){
		$('#super-banner').css("display","block");
		$('#slide-promos').slideUp("slow");
	});
	$('#ptab1').click(function(){
		$("#ptab2").removeClass("ptab2-active").addClass("ptab2-inactive");
		$("#ptab3").removeClass("ptab3-active").addClass("ptab3-inactive");
		$("#ptab1").addClass("ptab1-active").removeClass("ptab1-inactive");
		$("#bg-slide-1").show();
		$("#bg-slide-2").hide();
		$("#bg-slide-3").hide();
	});
	$('#ptab2').click(function(){
		$("#ptab1").removeClass("ptab1-active").addClass("ptab1-inactive");
		$("#ptab3").removeClass("ptab3-active").addClass("ptab3-inactive");
		$("#ptab2").addClass("ptab2-active").removeClass("ptab2-inactive");
		$("#bg-slide-2").show();
		$("#bg-slide-1").hide();
		$("#bg-slide-3").hide();
	});
	$('#ptab3').click(function(){
		$("#ptab2").removeClass("ptab2-active").addClass("ptab2-inactive");
		$("#ptab1").removeClass("ptab1-active").addClass("ptab1-inactive");
		$("#ptab3").addClass("ptab3-active").removeClass("ptab3-inactive");
		$("#bg-slide-3").show();
		$("#bg-slide-2").hide();
		$("#bg-slide-1").hide();
	});
	$("#ico_acuario").mouseover(function(evento){
		$("#tooltip_astral_1").removeClass('tooltip_hide');
		$("#tooltip_astral_1").addClass('tooltip_show');
	});
	$("#ico_acuario").mouseout(function(evento){
		$("#tooltip_astral_1").removeClass('tooltip_show');
		$("#tooltip_astral_1").addClass('tooltip_hide');
	});

	$("#ico_aries").mouseover(function(evento){
		$("#tooltip_astral_2").removeClass('tooltip_hide');
		$("#tooltip_astral_2").addClass('tooltip_show');
	});
	$("#ico_aries").mouseout(function(evento){
		$("#tooltip_astral_2").removeClass('tooltip_show');
		$("#tooltip_astral_2").addClass('tooltip_hide');
	});

	$("#ico_cancer").mouseover(function(evento){
		$("#tooltip_astral_3").removeClass('tooltip_hide');
		$("#tooltip_astral_3").addClass('tooltip_show');
	});
	$("#ico_cancer").mouseout(function(evento){
		$("#tooltip_astral_3").removeClass('tooltip_show');
		$("#tooltip_astral_3").addClass('tooltip_hide');
	});

	$("#ico_capricornio").mouseover(function(evento){
		$("#tooltip_astral_4").removeClass('tooltip_hide');
		$("#tooltip_astral_4").addClass('tooltip_show');
	});
	$("#ico_capricornio").mouseout(function(evento){
		$("#tooltip_astral_4").removeClass('tooltip_show');
		$("#tooltip_astral_4").addClass('tooltip_hide');
	});

	$("#ico_geminis").mouseover(function(evento){
		$("#tooltip_astral_5").removeClass('tooltip_hide');
		$("#tooltip_astral_5").addClass('tooltip_show');
	});
	$("#ico_geminis").mouseout(function(evento){
		$("#tooltip_astral_5").removeClass('tooltip_show');
		$("#tooltip_astral_5").addClass('tooltip_hide');
	});

	$("#ico_leo").mouseover(function(evento){
		$("#tooltip_astral_6").removeClass('tooltip_hide');
		$("#tooltip_astral_6").addClass('tooltip_show');
	});
	$("#ico_leo").mouseout(function(evento){
		$("#tooltip_astral_6").removeClass('tooltip_show');
		$("#tooltip_astral_6").addClass('tooltip_hide');
	});

	$("#ico_piscis").mouseover(function(evento){
		$("#tooltip_astral_7").removeClass('tooltip_hide');
		$("#tooltip_astral_7").addClass('tooltip_show');
	});
	$("#ico_piscis").mouseout(function(evento){
		$("#tooltip_astral_7").removeClass('tooltip_show');
		$("#tooltip_astral_7").addClass('tooltip_hide');
	});

	$("#ico_sagitario").mouseover(function(evento){
		$("#tooltip_astral_8").removeClass('tooltip_hide');
		$("#tooltip_astral_8").addClass('tooltip_show');
	});
	$("#ico_sagitario").mouseout(function(evento){
		$("#tooltip_astral_8").removeClass('tooltip_show');
		$("#tooltip_astral_8").addClass('tooltip_hide');
	});

	$("#ico_libra").mouseover(function(evento){
		$("#tooltip_astral_9").removeClass('tooltip_hide');
		$("#tooltip_astral_9").addClass('tooltip_show');
	});
	$("#ico_libra").mouseout(function(evento){
		$("#tooltip_astral_9").removeClass('tooltip_show');
		$("#tooltip_astral_9").addClass('tooltip_hide');
	});

	$("#ico_escorpion").mouseover(function(evento){
		$("#tooltip_astral_10").removeClass('tooltip_hide');
		$("#tooltip_astral_10").addClass('tooltip_show');
	});
	$("#ico_escorpion").mouseout(function(evento){
		$("#tooltip_astral_10").removeClass('tooltip_show');
		$("#tooltip_astral_10").addClass('tooltip_hide');
	});

	$("#ico_tauro").mouseover(function(evento){
		$("#tooltip_astral_11").removeClass('tooltip_hide');
		$("#tooltip_astral_11").addClass('tooltip_show');
	});
	$("#ico_tauro").mouseout(function(evento){
		$("#tooltip_astral_11").removeClass('tooltip_show');
		$("#tooltip_astral_11").addClass('tooltip_hide');
	});

	$("#ico_virgo").mouseover(function(evento){
		$("#tooltip_astral_12").removeClass('tooltip_hide');
		$("#tooltip_astral_12").addClass('tooltip_show');
	});
	$("#ico_virgo").mouseout(function(evento){
		$("#tooltip_astral_12").removeClass('tooltip_show');
		$("#tooltip_astral_12").addClass('tooltip_hide');
	});

	$("#icn-aA-2").click(function(){
    var currentFontSize = $('#contenidos-texto p').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum+1;
	if (newFontSize < 23) {
    $('#contenidos-texto p').css('font-size', newFontSize);
	$('#font_indicator').fadeIn('slow');
	$('.slider_handle').css('left', newFontSize*19.75 - 193);
	$('#font_indicator b').text(Math.round(newFontSize ));
	$('#font_indicator').fadeOut('slow');
	}
	else{
	$('#font_indicator').fadeIn('slow');
	$('#font_indicator b').text("22 es lo maximo");
	$('#font_indicator').fadeOut('slow');
	}
    return false;
  });
  $("#icn-aA").click(function(){
    var currentFontSize = $('#contenidos-texto p').css('font-size');
    var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum-1;
	if (newFontSize > 9) {
    $('#contenidos-texto p').css('font-size', newFontSize);
	$('#font_indicator').fadeIn('slow');
	$('.slider_handle').css('left', newFontSize*19.75 - 193);
	$('#font_indicator b').text(Math.round(newFontSize ));
	$('#font_indicator').fadeOut('slow');
	}
	else{
	$('#font_indicator').fadeIn('slow');
	$('#font_indicator b').text("10 es lo minimo.");
	$('#font_indicator').fadeOut('slow');
	}
	return false;
  });
	$("#seccion-ritmoastral").show();
	$("#seccion-primeros").hide();
	$("#seccion-encuesta").hide();
	$("#pestana3").click(function(evento){
		$("#seccion-ritmoastral").show();
		$("#seccion-primeros").hide();
		$("#seccion-encuesta").hide();
	});
	$("#pestana2").click(function(evento){
	});
	$("#pestana1").click(function(evento){
		$("#seccion-encuesta").show();
		$("#seccion-primeros").hide();
		$("#seccion-ritmoastral").hide();
	});
  $("#tablas-encuesta-1").click(function(){
	$("#tablas-encuesta-1").addClass("tablas-encuesta-active");
	$("#tablas-encuesta-2").removeClass("tablas-encuesta-active");
	$("#tablas-encuesta-3").removeClass("tablas-encuesta-active");
  });
  $("#tablas-encuesta-2").click(function(){
	$("#tablas-encuesta-2").addClass("tablas-encuesta-active");
	$("#tablas-encuesta-1").removeClass("tablas-encuesta-active");
	$("#tablas-encuesta-3").removeClass("tablas-encuesta-active");
  });
  $("#tablas-encuesta-3").click(function(){
	$("#tablas-encuesta-3").addClass("tablas-encuesta-active");
	$("#tablas-encuesta-2").removeClass("tablas-encuesta-active");
	$("#tablas-encuesta-1").removeClass("tablas-encuesta-active");
  });
	$("#desc-noticia").mouseover(function(evento){
		$(this).css("text-decoration","underline");
	});
	$("#desc-noticia").mouseout(function(evento){
		$(this).css("text-decoration","none");
	});
	$("#btn-mas-noticias").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-mas-noticias-hover.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#btn-mas-noticias").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-mas-noticias.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#btn-mas-videos-front").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-ver-mas-videos-hover.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#btn-mas-videos-front").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-ver-mas-videos.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#btn-mas-galerias").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-mas-galerias-hover.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#btn-mas-galerias").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-mas-galerias.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#pestana1").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-encuesta-hover.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#pestana1").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-encuesta.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#pestana2").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-primeros10-hover.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#pestana2").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-primeros10.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#pestana3").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-ritmoastral-hover.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#pestana3").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/btn-ritmoastral.jpg)");
		$(this).css("cursor","pointer");
	});
	$(".tablas-encuesta").mouseover(function(evento){
		$(this).css("width","270px");
	});
	$(".tablas-encuesta").mouseout(function(evento){
		$(this).css("width","275px");
	});
	$("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);

	$("#img-thumb-video").mouseover(function(evento){
		$(this).css("cursor","pointer");
	});
	$("#img-thumb-galeria").mouseover(function(evento){
		$(this).css("cursor","pointer");
	});
	$("#img-art-signo").mouseover(function(evento){
		$(this).css("cursor","pointer");
	});
	$("#tit-videos-front").mouseover(function(evento){
		$(this).css("cursor","pointer");
	});
	$("#buscar").focus(function(evento){
		$(this).attr("value","");
	});

	$("#mnu-noticias").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/mnu-busqueda-noticias-hover.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#mnu-noticias").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/mnu-busqueda-noticias.jpg)");
		$(this).css("cursor","pointer");
	});
	
	$("#mnu-fotos").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/mnu-busqueda-fotos-hover.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#mnu-fotos").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/mnu-busqueda-fotos.jpg)");
		$(this).css("cursor","pointer");
	});
	
	$("#mnu-videos").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/mnu-busqueda-videos-hover.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#mnu-videos").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/mnu-busqueda-videos.jpg)");
		$(this).css("cursor","pointer");
	});
	
	$("#mnu-movil").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/mnu-busqueda-movil-hover.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#mnu-movil").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/mnu-busqueda-movil.jpg)");
		$(this).css("cursor","pointer");
	});
	
	$("#mnu-musica").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/mnu-busqueda-musica-hover.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#mnu-musica").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/mnu-busqueda-musica.jpg)");
		$(this).css("cursor","pointer");
	});
	
	$("#mnu-comunidades").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/mnu-busqueda-comunidades-hover.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#mnu-comunidades").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/mnu-busqueda-comunidades.jpg)");
		$(this).css("cursor","pointer");
	});
	
	$("#mnu-blogs").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/mnu-busqueda-blogs-hover.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#mnu-blogs").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/mnu-busqueda-blogs.jpg)");
		$(this).css("cursor","pointer");
	});
	
	$("#mnu-internet").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/mnu-busqueda-hover_internet.jpg)");
		$(this).css("cursor","pointer");
	});
	$("#mnu-internet").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/jpg/mnu-busqueda-internet.jpg)");
		$(this).css("cursor","pointer");
	});
	
	$("#seccion-encuesta li").mouseover(function(evento){
		$(this).css("width","270px");
		$("#seccion-encuesta li.opinionTitle").css("width","290px");
	});
	$("#seccion-encuesta li").mouseout(function(evento){
		$(this).css("width","275px");
		$("#seccion-encuesta li.opinionTitle").css("width","290px");
	});
	$("#seccion-encuesta li").mouseover(function(evento){
		$(this).css("width","270px");
		$("#seccion-encuesta li.opinionTitle").css("width","290px");
	});
	$("#seccion-encuesta li").mouseout(function(evento){
		$(this).css("width","275px");
		$("#seccion-encuesta li.opinionTitle").css("width","290px");
	});
	$("input[@name='RespuestaId']").change(function(){
		if ($("input[@name='RespuestaId']:checked").val() == '1'){
			// Code for handling value '1'
			$('.opinionUL li:nth-child(2)').css("background","#ff0740");
			$('.opinionUL li:nth-child(3)').css("background","#7e7e7e");
			$('.opinionUL li:nth-child(4)').css("background","#7e7e7e");
		}else{ 
			if ($("input[@name='RespuestaId']:checked").val() == '2'){
			// Code for handling value '2'
				$('.opinionUL li:nth-child(3)').css("background","#ff0740");
				$('.opinionUL li:nth-child(2)').css("background","#7e7e7e");
				$('.opinionUL li:nth-child(4)').css("background","#7e7e7e");
			}else{
			// Code for handling '3'
				$('.opinionUL li:nth-child(4)').css("background","#ff0740");
				$('.opinionUL li:nth-child(3)').css("background","#7e7e7e");
				$('.opinionUL li:nth-child(2)').css("background","#7e7e7e");
			}
		}
	});
  $(".opinionUL li:nth-child(2)").click(function(){
	$("input[@name='RespuestaId']:nth(0)").attr("checked","checked");
	$('.opinionUL li:nth-child(2)').css("background","#ff0740");
	$('.opinionUL li:nth-child(3)').css("background","#7e7e7e");
	$('.opinionUL li:nth-child(4)').css("background","#7e7e7e");
  });
  $(".opinionUL li:nth-child(3)").click(function(){
	$("input[@name='RespuestaId']:nth(1)").attr("checked","checked");
	$('.opinionUL li:nth-child(3)').css("background","#ff0740");
	$('.opinionUL li:nth-child(2)').css("background","#7e7e7e");
	$('.opinionUL li:nth-child(4)').css("background","#7e7e7e");
  });
  $(".opinionUL li:nth-child(4)").click(function(){
	$("input[@name='RespuestaId']:nth(2)").attr("checked","checked");
	$('.opinionUL li:nth-child(4)').css("background","#ff0740");
	$('.opinionUL li:nth-child(3)').css("background","#7e7e7e");
	$('.opinionUL li:nth-child(2)').css("background","#7e7e7e");
  });
	$("#pagina-anterior").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/png/btn-pag-anterior-hover.png)");
		$(this).css("cursor","pointer");
	});
	$("#pagina-anterior").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/png/btn-pag-anterior.png)");
		$(this).css("cursor","pointer");
	});

	$("#pagina-siguiente").mouseover(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/png/btn-pag-siguiente-hover.png)");
		$(this).css("cursor","pointer");
	});
	$("#pagina-siguiente").mouseout(function(evento){
		$(this).css("background-image","url(http://i2.esmas.com/ritmoson-latino/img/png/btn-pag-siguiente.png)");
		$(this).css("cursor","pointer");
	});

	$(".numeros").mouseover(function(evento){
		$(this).css("color","#FD0640");
		$(this).css("cursor","pointer");
	});
	$(".numeros").mouseout(function(evento){
		$(this).css("color","#949494");
		$(this).css("cursor","pointer");
	});
	
	$(".hdrVideoPlayer").mouseover(function(evento){
		$("#play_shadow_d").removeClass('play_shadow');
		$("#play_shadow_d").addClass('play_shadow_hover');
	});
	$(".hdrVideoPlayer").mouseout(function(evento){
		$("#play_shadow_d").removeClass('play_shadow_hover');
		$("#play_shadow_d").addClass('play_shadow');
	});
	
	$("#btn-aries").mouseover(function(evento){
		$("#tooltip_astral_2").removeClass('tooltip_hide');
		$("#tooltip_astral_2").addClass('tooltip_show');
	});
	$("#btn-aries").mouseout(function(evento){
		$("#tooltip_astral_2").removeClass('tooltip_show');
		$("#tooltip_astral_2").addClass('tooltip_hide');
	});

	$("#btn-acuario").mouseover(function(evento){
		$("#tooltip_astral_1").removeClass('tooltip_hide');
		$("#tooltip_astral_1").addClass('tooltip_show');
	});
	$("#btn-acuario").mouseout(function(evento){
		$("#tooltip_astral_1").removeClass('tooltip_show');
		$("#tooltip_astral_1").addClass('tooltip_hide');
	});

	$("#btn-cancer").mouseover(function(evento){
		$("#tooltip_astral_3").removeClass('tooltip_hide');
		$("#tooltip_astral_3").addClass('tooltip_show');
	});
	$("#btn-cancer").mouseout(function(evento){
		$("#tooltip_astral_3").removeClass('tooltip_show');
		$("#tooltip_astral_3").addClass('tooltip_hide');
	});

	$("#btn-capricornio").mouseover(function(evento){
		$("#tooltip_astral_4").removeClass('tooltip_hide');
		$("#tooltip_astral_4").addClass('tooltip_show');
	});
	$("#btn-capricornio").mouseout(function(evento){
		$("#tooltip_astral_4").removeClass('tooltip_show');
		$("#tooltip_astral_4").addClass('tooltip_hide');
	});

	$("#btn-geminis").mouseover(function(evento){
		$("#tooltip_astral_5").removeClass('tooltip_hide');
		$("#tooltip_astral_5").addClass('tooltip_show');
	});
	$("#btn-geminis").mouseout(function(evento){
		$("#tooltip_astral_5").removeClass('tooltip_show');
		$("#tooltip_astral_5").addClass('tooltip_hide');
	});

	$("#btn-leo").mouseover(function(evento){
		$("#tooltip_astral_6").removeClass('tooltip_hide');
		$("#tooltip_astral_6").addClass('tooltip_show');
	});
	$("#btn-leo").mouseout(function(evento){
		$("#tooltip_astral_6").removeClass('tooltip_show');
		$("#tooltip_astral_6").addClass('tooltip_hide');
	});

	$("#btn-piscis").mouseover(function(evento){
		$("#tooltip_astral_7").removeClass('tooltip_hide');
		$("#tooltip_astral_7").addClass('tooltip_show');
	});
	$("#btn-piscis").mouseout(function(evento){
		$("#tooltip_astral_7").removeClass('tooltip_show');
		$("#tooltip_astral_7").addClass('tooltip_hide');
	});

	$("#btn-sagitario").mouseover(function(evento){
		$("#tooltip_astral_8").removeClass('tooltip_hide');
		$("#tooltip_astral_8").addClass('tooltip_show');
	});
	$("#btn-sagitario").mouseout(function(evento){
		$("#tooltip_astral_8").removeClass('tooltip_show');
		$("#tooltip_astral_8").addClass('tooltip_hide');
	});

	$("#btn-libra").mouseover(function(evento){
		$("#tooltip_astral_9").removeClass('tooltip_hide');
		$("#tooltip_astral_9").addClass('tooltip_show');
	});
	$("#btn-libra").mouseout(function(evento){
		$("#tooltip_astral_9").removeClass('tooltip_show');
		$("#tooltip_astral_9").addClass('tooltip_hide');
	});

	$("#btn-escorpio").mouseover(function(evento){
		$("#tooltip_astral_10").removeClass('tooltip_hide');
		$("#tooltip_astral_10").addClass('tooltip_show');
	});
	$("#btn-escorpio").mouseout(function(evento){
		$("#tooltip_astral_10").removeClass('tooltip_show');
		$("#tooltip_astral_10").addClass('tooltip_hide');
	});

	$("#btn-tauro").mouseover(function(evento){
		$("#tooltip_astral_11").removeClass('tooltip_hide');
		$("#tooltip_astral_11").addClass('tooltip_show');
	});
	$("#btn-tauro").mouseout(function(evento){
		$("#tooltip_astral_11").removeClass('tooltip_show');
		$("#tooltip_astral_11").addClass('tooltip_hide');
	});

	$("#btn-virgo").mouseover(function(evento){
		$("#tooltip_astral_12").removeClass('tooltip_hide');
		$("#tooltip_astral_12").addClass('tooltip_show');
	});
	$("#btn-virgo").mouseout(function(evento){
		$("#tooltip_astral_12").removeClass('tooltip_show');
		$("#tooltip_astral_12").addClass('tooltip_hide');
	});
	
});

