// ACORDEON accesos rapidos
	$(document).ready(function(){
		$(".accordion1 h3:first").addClass("active");
		//$(".accordion1 ul:not(:first)").hide();
		$(".accordion1 ul").hide();
		
		$(".accordion1 h3").click(function(){
			$(this).next("ul").slideToggle("slow")
			    .siblings("ul:visible").slideUp("slow");
			$(this).toggleClass("active");
			$(this).siblings("h3").removeClass("active");

            //
			$(".accordion2 h3").next(".content_buscador").slideToggle("slow")
			    .siblings(".content_buscador:visible").slideUp("slow");
			$(".accordion2 h3").toggleClass("active");
			$(".accordion2 h3").siblings("h3").removeClass("active");

		});
	});
	
	// ACORDEON buscador autos
	$(document).ready(function(){
	
		$(".accordion2 h3:first").addClass("active");
		//$(".accordion2 .content_buscador:not(:first)").hide();
		$(".accordion2 .content_buscador").hide();
		
		$(".accordion2 h3").click(function(){
			$(this).next(".content_buscador").slideToggle("slow")
			    .siblings(".content_buscador:visible").slideUp("slow");
			$(this).toggleClass("active");
			$(this).siblings("h3").removeClass("active");


			//
			$(".accordion1 h3").next("ul").slideToggle("slow")
			    .siblings("ul:visible").slideUp("slow");
			$(".accordion1 h3").toggleClass("active");
			$(".accordion1 h3").siblings("h3").removeClass("active");
        });
	
	});
	// ACORDEON calcular cuota
	$(document).ready(function(){
	
		$(".accordion3 h3:first").addClass("active");
		$(".accordion3 ul:not(:first)").hide();
		
		$(".accordion3 h3").click(function(){
			$(this).next("ul").slideToggle("slow")
			.siblings("ul:visible").slideUp("slow");
			$(this).toggleClass("active");
			$(this).siblings("h3").removeClass("active");
		});
	
	});
	
	// ACORDEON preguntas frecuentes
	$(document).ready(function(){
	
		$(".accordion_preguntas h3:first").addClass("active");
		$(".accordion_preguntas p:not(:first)").hide();
		
		$(".accordion_preguntas h3").click(function(){
			$(this).next("p").slideToggle("slow")
			.siblings("p:visible").slideUp("slow");
			$(this).toggleClass("active");
			$(this).siblings("h3").removeClass("active");
		});
	
	});
	
	
	//SLIDER
	$(function(){
			$('#slides').slides({
				preload: true,
				preloadImage: '/Img/slider/loading.gif',
				play: 5000,
				pause: 2500,
				hoverPause: true,
				animationStart: function(current){
					$('.caption').animate({
						bottom:-35
					},100);
					if (window.console && console.log) {
						// example return of current slide number
						console.log('animationStart on slide: ', current);
					};
				},
				animationComplete: function(current){
					$('.caption').animate({
						bottom:0
					},200);
					if (window.console && console.log) {
						// example return of current slide number
						console.log('animationComplete on slide: ', current);
					};
				},
				slidesLoaded: function() {
					$('.caption').animate({
						bottom:0
					},200);
				}
			});
		});

