$(document).ready(function(){
	$("#s01b_1a_bota").click(function () {
		$("#centro").load("02_pachucas.html");
		$(this).children().css('background','url("imgs/01bot_a2.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botb").children().css('background','url("imgs/01bot_b1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botc").children().css('background','url("imgs/01bot_c1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botd").children().css('background','url("imgs/01bot_d1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_bote").children().css('background','url("imgs/01bot_e1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botf").children().css('background','url("imgs/01bot_f1.jpg") no-repeat scroll center center transparent');
	});	
	$("#s01b_1a_botb").click(function () {
		$("#centro").load("03_fotos.php");
		$(this).children().css('background','url("imgs/01bot_b2.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_bota").children().css('background','url("imgs/01bot_a1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botc").children().css('background','url("imgs/01bot_c1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botd").children().css('background','url("imgs/01bot_d1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_bote").children().css('background','url("imgs/01bot_e1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botf").children().css('background','url("imgs/01bot_f1.jpg") no-repeat scroll center center transparent');
	});	
	$("#s01b_1a_botc").click(function () {
		$("#centro").load("04_videos.php");  
		$(this).children().css('background','url("imgs/01bot_c2.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_bota").children().css('background','url("imgs/01bot_a1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botb").children().css('background','url("imgs/01bot_b1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botd").children().css('background','url("imgs/01bot_d1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_bote").children().css('background','url("imgs/01bot_e1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botf").children().css('background','url("imgs/01bot_f1.jpg") no-repeat scroll center center transparent');
	});
	$("#s01b_1a_botd").click(function () {
		$("#centro").load("05_letras.html");
		$(this).children().css('background','url("imgs/01bot_d2.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_bota").children().css('background','url("imgs/01bot_a1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botb").children().css('background','url("imgs/01bot_b1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botc").children().css('background','url("imgs/01bot_c1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_bote").children().css('background','url("imgs/01bot_e1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botf").children().css('background','url("imgs/01bot_f1.jpg") no-repeat scroll center center transparent');
	});	
	$("#s01b_1a_bote").click(function () {
		$("#centro").load("06_discos.html");  
		$(this).children().css('background','url("imgs/01bot_e2.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_bota").children().css('background','url("imgs/01bot_a1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botb").children().css('background','url("imgs/01bot_b1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botc").children().css('background','url("imgs/01bot_c1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botd").children().css('background','url("imgs/01bot_d1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botf").children().css('background','url("imgs/01bot_f1.jpg") no-repeat scroll center center transparent');
	});
	$("#s01b_1a_botf").click(function () {
		$("#centro").load("07_contacto.php");
		$(this).children().css('background','url("imgs/01bot_f2.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_bota").children().css('background','url("imgs/01bot_a1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botb").children().css('background','url("imgs/01bot_b1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botc").children().css('background','url("imgs/01bot_c1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_botd").children().css('background','url("imgs/01bot_d1.jpg") no-repeat scroll center center transparent');
		$("#s01b_1a_bote").children().css('background','url("imgs/01bot_e1.jpg") no-repeat scroll center center transparent');
	});	
	$("#s01a_1").click(function () {
		$("#centro").load("inicio.php");
	});
});
function vervideos(){
	$("#centro").load("04_videos.php"); 
}
function veralbums(){
	$("#centro").load("03_fotos.php"); 
}
function mostrarfoto(){
	$("#centro").load("03_fotos_in.php");  
}
function mostrarvideo(video){
	$("#centro").load("04_videos_in.php?video="+video+"");
}
function mostraralbum(album){
	$("#centro").load("03_fotos_in.php?album="+album+"");
}
function pasarpagvideo(pag){
	$("#centro").load("04_videos.php?pag="+pag+"");
}
function pasarpagalbum(pag){
	$("#centro").load("03_fotos.php?pag="+pag+"");
}
function pasarfoto(album,foto){
	$("#centro").load("03_fotos_in.php?album="+album+"&foto="+foto+"");
}

var totalID = 0;
function total(cant){
	totalID = cant;
}
var pagLocalActual = 1;
function siguiente(cual){
	if(cual > totalID){
		pagLocalActual = 1;
	}else{
		pagLocalActual += 1;
	}
	document.getElementById("col"+(cual-1)).style.display="none";
	document.getElementById("col"+pagLocalActual).style.display="block";
}
function anterior(cual){
	if(cual == 0){
		pagLocalActual = totalID;
	}else{
		pagLocalActual -= 1;
	}
	document.getElementById("col"+(cual+1)).style.display="none";
	document.getElementById("col"+pagLocalActual).style.display="block";
}

function rolloverr(let){
		$(this).children().css('background','url("imgs/01bot_a2.jpg") no-repeat scroll center center transparent');
	}
