/*
for(i=0;i<=5;i++){
	boton=document.getElementById('b'+(i+1));
	boton.innerHTML=botones[i][0];
	boton.setAttribute("href", botones[i][1]);
	
}
*/
function sig(){
if(ultimo<cant_items)
	buttom(1)
}
	
function ant(){
if(primero>0)
	buttom(-1)
}

function buttom(valor){
cont=1;
primero += valor
ultimo += valor
//alert((primero+cant_bot)+"<"+cant_items)
	if(primero>=0 && ultimo<=cant_items){
		for(i=primero;i<ultimo;i++){
			boton=document.getElementById('b'+cont)
			boton.innerHTML=botones[i][0]
			boton.href=botones[i][1]
			cont++
		}
	}
}

