// JavaScript Document

$(document).ready(function () {


			$("#menu_superior li:not(.actual)").hover(
			  function () {
				 
				 
				$(this).css("background-color","#050505");
				
				
			  },
			  function () {
				  
				
				$(this).css("background-color","");
			
			  }
			);
			
			
			
			$("#menu_lateral li:not(.actual)").hover(
			  function () {
				 
				 
				$(this).css("background-color","#d1d5d9");
				
				
			  },
			  function () {
				  
				
				$(this).css("background-color","");
			
			  }
			);



});


function ReproductorRadio(reproductor)
{
	
	switch(reproductor)
	{
		
		case 'mediaplayer':
		
				
				popRadio(350,300,'radiomayab',true,'/radio_mediaplayer.html');
			
		
		break;
		case 'realplayer':
		
				popRadio(350,300,'radiomayab',true,'/radio_realplayer.html');
		
		break;
		case 'quicktime':
		
		
				popRadio(350,300,'radiomayab',true,'/radio_quicktime.html');
		
		
		break;
		
		
		
		}
	
	
	
	}
	
function popRadio(nancho,nalto,winName,isscroll,theURL)
{ 
 
  var features;
  
  if(isscroll)
  features= "scrollbars=yes";
  else
  features= "scrollbars=no";
  
  features=features+",width="+nancho+",height="+nalto;
  var _W=window.open(theURL,winName,features); 
	_W.focus(); 
    _W.moveTo(30,30);	
	
	}
	
	
function checkEPE(form)
{
	document.getElementById('imgEE').innerHTML='<img src="/images/cargando.gif" />';
	xajax_chkEPE(xajax.getFormValues(form));
	return false;
	}
	
function checkFrmCom(form){
	document.getElementById('imgfrmCom').innerHTML='<img src="/images/cargando.gif" />';
	xajax_chkFormCom(xajax.getFormValues(form));
	return false;
	
	}
	
	
	

function letraMenos()
{
	
	if(document.getElementById('tt').value>3)
	{	
		document.getElementById('tt').value--;
		document.getElementById('ver_noticia').className='textoVerNoticia'+document.getElementById('tt').value;
	}
	
	}
function letraMas(){
	
	if(document.getElementById('tt').value<9)
	{	
		document.getElementById('tt').value++;
		document.getElementById('ver_noticia').className='textoVerNoticia'+document.getElementById('tt').value;
	}
	
	}
function letraNormal(){ document.getElementById('ver_noticia').className='textoVerNoticia5'; document.getElementById('tt').value=5 }