function cambiar_noticia(sentido, act){
if(act == 1){
clearInterval(idtempnot);
if(typeof(idrettempnot) != "undefined") { clearTimeout(idrettempnot); }
idrettempnot = setTimeout("temporizador_noticias()", retardoretempnot);
}
if(sentido == 1){
if(Imagenes.X >= Imagenes.N){ Imagenes.X = 1; }else{ Imagenes.X++; }
var img_ant = (Imagenes.X)-1;
if (Imagenes.X == 1) img_ant = 3;
}else{
if(Imagenes.X <= 1){ Imagenes.X = Imagenes.N; }else{ Imagenes.X--; }
var img_ant = (Imagenes.X)+1;
if (Imagenes.X == 3) img_ant = 1;
}
//alert(Imagenes.X);
capafoto = document.getElementById('foto');
capafoto.src = Imagenes.RNfoto[ Imagenes.X ];
//capavolanta = document.getElementById('RNvolanta');
//capavolanta.href = Imagenes.RNenlace[ Imagenes.X ];
//capavolanta.innerHTML = Imagenes.RNvolanta[ Imagenes.X ];
//capatitulo = document.getElementById('RNtitulo');
//capatitulo.href = Imagenes.RNenlace[ Imagenes.X ];
//capatitulo.innerHTML = Imagenes.RNtitulo[ Imagenes.X ];
capahreffoto = document.getElementById('url');
capahreffoto.href = Imagenes.RNenlace[ Imagenes.X ];

var thisid = 'noticia_li_'+Imagenes.X;
var previd = 'noticia_li_'+img_ant;
var thistriangid = 'noticia_triangulo_'+Imagenes.X;
var prevtriengid = 'noticia_triangulo_'+img_ant; 

document.getElementById(previd).className = '';
document.getElementById(thisid).className = 'selected';
document.getElementById(prevtriengid).className = 'triangulo_off';
document.getElementById(thistriangid).className = 'triangulo_on';

}

function temporizador_noticias(){
idtempnot = setInterval("cambiar_noticia(1,0)",retardotempnot);
return idtempnot;
}

function VecImagenes(){
n=1;
RNenlace=new Array();
//RNvolanta=new Array();
//RNtitulo=new Array();
RNfoto=new Array();

RNenlace[1]='noticias/?modulo=ver&idioma=es&item_id=1949&contenido_id=48380';
RNfoto[1]='http://www.desarrollosdg.com.ar/educativos/expresion/imagenes/mundo_en_construccion.jpg';
RNenlace[2]='noticias/?modulo=ver&idioma=es&item_id=1949&contenido_id=48247';
RNfoto[2]='http://www.desarrollosdg.com.ar/incluso/imagenes/logo_incluso.gif';
RNenlace[3]='noticias/?modulo=ver&idioma=es&item_id=18256&contenido_id=48211';
RNfoto[3]='http://www.desarrollosdg.com.ar/educativos/expresion/imagenes/mafalda-strip.gif';

this.RNenlace = RNenlace;
//this.RNvolanta = RNvolanta;
//this.RNtitulo = RNtitulo;
this.RNfoto = RNfoto;
this.N=4-1;
this.X=1;
}

function detener_noticia(){
clearInterval(idtempnot);
}
