// JavaScript Document
//VIDEOS
function rv(id)
{
	xajax_reVo(id);
	}

function veEn(id){
	
	xajax_veEn(id);
	
	}
function chEn(obj)
{
	
	xajax_vEnc(xajax.getFormValues(obj));
	
	return false;
	
	}

function pvyt(obj)
{
	
	document.getElementById('previewvideo').innerHTML=obj.title;
	
	}
function pvyto()
{
	
	document.getElementById('previewvideo').innerHTML='';
	
	}
	
	function mvyt(id,myi,t)
	{
		
		
		
		for(i=1;i<=t;i++)
		{
			
			if(myi==i)
			document.getElementById('indi_'+i).className='indi';
			else
			document.getElementById('indi_'+i).className='indiout';
			
			
			}
			
			
			xajax_mvyt(id);
		
	}
	
	
function mvytli(id)
	{
		
			
			xajax_mvyt(id,480);
		
	}
	
	//___________
	

function checkCont(form)
{
	document.getElementById('imgCon').innerHTML='<img src="'+WEB+'images/cargando.gif" />';
	xajax_conCk(xajax.getFormValues(form));
	return false;
	
	}

function checkEE(form)
{
	document.getElementById('imgEE').innerHTML='<img src="'+WEB+'images/cargando.gif" />';
	xajax_mEECk(xajax.getFormValues(form));
	return false;
	}
	
	
function mEE(id)
{
	
	document.getElementById('EE').innerHTML='<img src="'+WEB+'images/cargando.gif" />';
	xajax_mEE(id);
	
	}

function mo(obj){
			obj.className='mo';
			
	}
function mu(obj){
			obj.className='';
	}
	
function mos(obj){
			obj.className='mo';
			
	}
function mus(obj){
			obj.className='submenu';
	}
	
function checkFrmCom(form)
{

	document.getElementById('imgfrmCom').innerHTML='<img src="'+WEB+'images/cargando.gif" />';
	xajax_frmCom(xajax.getFormValues(form));
	
	
	return false;
	}
	
	
	
function ReproductorRadio(reproductor)
{
	
	switch(reproductor)
	{
		
		case 'mediaplayer':
		
				
				popRadio(350,200,'radioopinion',true,'/radio_mediaplayer.html');
			
		
		break;
		case 'realplayer':
		
				popRadio(350,200,'radioopinion',true,'/radio_realplayer.html');
		
		break;
		case 'quicktime':
		
		
				popRadio(350,200,'radioopinion',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 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 }
