
var fondos=4;

function next_img_5()
{
	obj=document.getElementById('contenido_seccion5');
	var fondo;
	if(obj.currentStyle) {
		
		/****************************************
		
		IE Opera
		
		****************************************/
		
		fondo=obj.currentStyle.backgroundImage;
	}
	else {
	
		/****************************************
		
		Firefox needs the full css code to work
		
		****************************************/
		
		fondo=getComputedStyle(obj,'').getPropertyValue('background-image');
	}
	
	var numero=fondo.split('.jpg');
	numero=numero[0].split('seccion5_');
	numero=numero[1];
	
	//incremento
	numero++;
	
	numero=numero%(fondos+1);
	
	if(numero==0) numero++;
	
	//poner el nuevo fondo
	obj.style.backgroundImage='url(jpg/fondo_seccion5_'+numero+'.jpg)';
}

function prev_img_5()
{
	obj=document.getElementById('contenido_seccion5');
	var fondo;
	if(obj.currentStyle) {
		
		/****************************************
		
		IE Opera
		
		****************************************/
		
		fondo=obj.currentStyle.backgroundImage;
	}
	else {
	
		/****************************************
		
		Firefox needs the full css code to work
		
		****************************************/
		
		fondo=getComputedStyle(obj,'').getPropertyValue('background-image');
	}
	
	var numero=fondo.split('.jpg');
	numero=numero[0].split('seccion5_');
	numero=numero[1];
	
	//decremento
	numero--;
	
	numero=numero%(fondos+1);
	
	if(numero==0) numero=fondos;
	
	//poner el nuevo fondo
	obj.style.backgroundImage='url(jpg/fondo_seccion5_'+numero+'.jpg)';
}
