
function loadNavigation(guid) {
    
}

$(document).ready(function() {
    $('.PrevButton').animate({ opacity: 0 }, 0);
    $('.NextButton').animate({ opacity: 0 }, 0);
    $('.NextButton').animate({ opacity: 1 }, 100);

    /*$('.PrevButton').hover(function() {
    if ($('#MainPhoto ul li.active').prev().length != 0) {
    $('.PrevButton').animate({ opacity: 1 }, 100);
    } else { $('.PrevButton').css('cursor', 'default'); }
    }, function() {
    $('.PrevButton').animate({ opacity: 0 }, 300);
    });

    $('.NextButton').hover(function() {
    if ($('#MainPhoto ul li.active').next().length != 0) {
    $('.NextButton').animate({ opacity: 1 }, 100);
    } else { $('.NextButton').css('cursor', 'default'); }
    }, function() {
    $('.NextButton').animate({ opacity: 0 }, 300);
    });*/

    $('.NextButton').click(function() {
        $('#MainPhoto ul li.active').next().hide().addClass('nextactive').fadeIn("slow", function() {
            $('#MainPhoto ul li.active').removeClass();
            $('#MainPhoto ul li.nextactive').removeClass().addClass('active');
        });
        $('.PrevButton').animate({ opacity: 1 }, 0);
        $('.PrevButton').css('cursor', 'pointer');
        if ($('#MainPhoto ul li.active').next().next().length == 0) {
            $('.NextButton').animate({ opacity: 0 }, 100);
            $('.NextButton').css('cursor', 'default');
        }
    });

    $('.PrevButton').click(function() {
        $('#MainPhoto ul li.active').prev().hide().addClass('nextactive').fadeIn("slow", function() {
            $('#MainPhoto ul li.active').removeClass();
            $('#MainPhoto ul li.nextactive').removeClass().addClass('active');
        });
        $('.NextButton').animate({ opacity: 1 }, 0);
        $('.NextButton').css('cursor', 'pointer');
        if ($('#MainPhoto ul li.active').prev().prev().length == 0) {
            $('.PrevButton').animate({ opacity: 0 }, 100);
            $('.PrevButton').css('cursor', 'default');
        }
    });

});