jQuery(function () {
    jQuery("#thumbs").flickr({
        api_key: '36df3c03f1c06b9baa7928baefb4c7a2',
        type: 'search',
        user_id: '39778419@N03',
        thumb_size: 'm',
        per_page: 6,
        callback: liteboxCallback
    })
});
function liteboxCallback() {
        $('#thumbs a').lightBox();
}
jQuery(document).ready(function () {
    jQuery('span[class*=timeago]').timeago()
});
$(document).ready(function () {
    $('a[href*=#]').click(function () {
        if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
            var $target = $(this.hash);
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) + ']');
            if ($target.length) {
                var targetOffset = $target.offset().top;
                $('html,body').animate({
                    scrollTop: targetOffset
                },
                1000);
                return false
            }
        }
    })
});