﻿/// <reference name="MicrosoftAjax.js" />
/// <reference path="jquery-vsdoc.js" />

$().ready(function() {
    initializeTabs();

    $(".seeMoreFromGallery").click(function() {
        $(document).scrollTo($(".picture-gallery"), 1000);
    });
});

function initializeTabs() {
    $("#tabs li").each(function() {
        $(this).click(function() {
            $("#tabs li").each(function() { $(this).removeClass("active"); });
            $(this).addClass("active");

            var selectedTabIndex = $(this).attr("index");
            $(".tabs .content").each(function() { $(this).css("display", "none"); });
            $(".tabs .content[index='" + selectedTabIndex + "']").css("display", "block");
        });
    });
}

