jQuery(document).ready(function()  {
    $("#selectorMes #items").jCarouselLite({
        visible: 1,
        scroll: 1,
        circular:0,
        btnNext: "#selectorMes .next",
        btnPrev: "#selectorMes .prev",
        afterEnd: function(a) {
    		loadCalendar(document.selcal.disponibilidad.value,a[0].className);
    		fechaDisponibilidadCal=a[0].className;
    		/*prevSelected = document.getElementById("selslide");
    		if(prevSelected){
    			prevSelected.removeAttribute("class");
    			prevSelected.removeAttribute("id");
    		}
    		id = a[0].className;
    		active = document.getElementById(id);
    		active.firstChild.className='activo';
    		active.firstChild.setAttribute("id","selslide");*/
        }
        
    });
});

jQuery(document).ready(function()  {
    $(".caru").jCarouselLite({
        btnNext: ".caru .next",
        btnPrev: ".caru .prev",
        visible: 1,
        scroll: 1,
        circular: 1
    });
});

jQuery(document).ready(function()  {
    $("#galMini #galeria .items").jCarouselLite({
        btnNext: "#galMini .next",
        btnPrev: "#galMini .prev",
        visible: 6,
        scroll: 1,
        circular: 1
    });
});

jQuery(document).ready(function()  {
    $("#slideshowInicio .contenedor .items").jCarouselLite({
        visible: 1,
        scroll: 1,
        circular:1,
        auto: 2000,
        speed: 1200,
        btnGo: btn,
        afterEnd: function(a) {
    		prevSelected = document.getElementById("selslide");
    		if(prevSelected){
    			prevSelected.removeAttribute("class");
    			prevSelected.removeAttribute("id");
    		}
    		id = a[0].className;
    		active = document.getElementById(id);
    		active.firstChild.className='activo';
    		active.firstChild.setAttribute("id","selslide");
        }
        
    });
});

jQuery(document).ready(function()  {
    $("#slgal .contenedor .items").jCarouselLite({
        visible: 1,
        scroll: 1,
        circular:0,
        auto: 2000,
        speed: 1200,
        btnGo: btn,
        afterEnd: function(a) {
        prevSelected = document.getElementById("selslide");
        if(prevSelected){
          prevSelected.removeAttribute("class");
          prevSelected.removeAttribute("id");
        }
        id = a[0].className;
        active = document.getElementById(id);
        active.firstChild.className='activo';
        active.firstChild.setAttribute("id","selslide");
        }      
    });
});

