/**
 * @title       Travel guide details scripts Touring Nature 
 */
$(document).ready(function(){
                           
    /**
     * @section         adressCarousel
     */
    box.dom('div.carousel').each(function(i, elm) {
        if (this.id == "addressCarousel") {
            box.ui('carousel').create({ 
                element: elm, 
                horizontal: true, 
                display: 3,
                duration: 600,
                paginate:true
            });
        }
        if (this.id == "picturesAdded") {
            box.ui('carousel').create({
                element: elm, 
                horizontal: true, 
                display: 3,
                duration: 600,
                paginate: true
            })
        }
    });
    
    $("#picturesTabs .header a").click(function(){
        $("#picturesTabs .header h2").removeClass('on');
        $("#picturesTabs .containerHighlightInner > div").removeClass('on');
        $(this).parent().addClass('on');
        $("#picturesTabs .containerHighlightInner " + $(this).attr("href")).addClass('on');
        return false;
    });
    
    toggleComments();
   
});
