/* Author: 

*/


var options =
// horizontal Dock with images expanding downwards in the vertical axis...
        {align: 'top'
        // set the maximum minor axis (vertical) image dimension to 48px
        , size: 22
        // add labels..
        , labels: true
    };
    $(document).ready(function () {

        $(".work").ytplaylist({ addThumbs: false, autoPlay: true, holderId: 'workVideosContainer', playerWidth: 445, playerHeight: 250 });

        var cur_url = "doug";
        if (window.location.href.indexOf("#") != -1) {
            cur_url = window.location.href.substr(window.location.href.indexOf("#") + 1);
        }

        $(".dots a, .photos a").click(function () {
            aboutPhotosChange($(this).attr("href"));
            $(".dots a, .photos a").removeClass("current");
            if ($(this).closest('ul').attr("class") == "photos") {
                $('.dots a[href=' + $(this).attr('href') + ']').addClass("current");
            }
            else {
                $(this).addClass("current");
            }
            return false;
        });



    });

function showBio(in_item) {
    $(".bioItem").each(function () {
        $(this).hide();
    });


    $(in_item).fadeIn(1000, function () {
        $(this).css({ filter: '' });
    });
}

function showAgency(in_item) {
    $(".aboutPhotos").each(function () {
        $(this).hide();
    });


    $(in_item).fadeIn(1000, function () {
        $(this).css({ filter: '' });
    });
}

function goToByScroll(id) {
    $('html,body').animate({ scrollTop: $("#" + id).offset().top }, 'slow');
}

function aboutPhotosChange(id) {
    $(".aboutPhotos .photos li").hide();
    $(".aboutPhotos .photos li#" + id).fadeIn("medium");
}
