function mueve_proveedores() {
	position++;

	if ( position > position_max ) {
		position = 0;
	}
			
	document.getElementById( "proveedores" ).style.backgroundPosition = "-" + position + "px center";
	
	parpadea_tienda();
}

function parpadea_tienda() {
	$("#menutienda a").fadeTo("slow", 0.75);
	$("#menutienda a").fadeTo("slow", 1);
}

function init() {
	position = 0;
	position_max = 5123;
	position = Math.floor ( Math.random() * (position_max+1) )		
	document.getElementById( "proveedores" ).style.backgroundPosition = "-" + position + "px center";
	timer = setInterval ( "mueve_proveedores()", 20 );
}

window.onload = init;
