jQuery(document).ready(function()  {
    $("#galContenedor #carousel01eragin").jCarouselLite({
        btnNext: "#galContenedor .button-next02",
        btnPrev: "#galContenedor .button-prev02",
        visible: 1,
        scroll: 1,
        circular:1,
        afterEnd: function(a) {
        document.getElementById("pie_foto").innerHTML=a[0].getAttribute("title");
        }
    });
});

jQuery(document).ready(function()  {
    $("#galeriaLanak #cont").jCarouselLite({
        btnNext: "#galeriaLanak .button-next03",
        btnPrev: "#galeriaLanak .button-prev03",
        visible: 7,
        scroll: 1,
        circular:circularprinc
    });
});

jQuery(document).ready(function()  {
    $("#carousel02").jCarouselLite({
        btnNext: "#car2 .button-prev01",
        btnPrev: "#car2 .button-next01",
        visible: 6,
        scroll: 1,
        circular:circular1
    });
});

jQuery(document).ready(function()  {
    $("#carousel03").jCarouselLite({
        btnNext: "#car3 .button-prev01",
        btnPrev: "#car3 .button-next01",
        visible: 6,
        scroll: 1,
        circular:circular2
    });
});

jQuery(document).ready(function()  {
    $("#lanakdes #carousel01").jCarouselLite({
        btnNext: "#lanakdes .button-prev01",
        btnPrev: "#lanakdes .button-next01",
        visible: 3,
        scroll: 1,
        circular:1
    });
});

jQuery(document).ready(function()  {
    $("#lanaklast .carousel02").jCarouselLite({
        btnNext: "#lanaklast .button-next02",
        btnPrev: "#lanaklast .button-prev02",
        visible: 6,
        scroll: 1,
        circular:1
    });
});

jQuery(document).ready(function()  {
    $("#carousel02eragin .foto").jCarouselLite({
        btnNext: "#carousel02eragin .button-next",
        btnPrev: "#carousel02eragin .button-prev",
        visible: 1,
        scroll: 1,
        circular:1,
    });
});

jQuery(document).ready(function()  {
    $("#carouselVideo .carousell").jCarouselLite({
        btnNext: "#carouselVideo .button-next02",
        btnPrev: "#carouselVideo .button-prev02",
        visible: 3,
        scroll: 1,
        circular:1,
        afterEnd: function(a) {
    		a[2].setAttribute("class","img03");
    		a[1].setAttribute("class","img02");
    		a[1].setAttribute("style","");
    		a[0].setAttribute("class","img01");
    		
    		titulo = a[1].getAttribute("title");
    		texto  = a[1].getAttribute("text");
    		
    		document.getElementById("tituloVideo").innerHTML=titulo;
    		document.getElementById("textoVideo").innerHTML=texto;
    		
        }
    });
});
