{"size": 1593, "ext": "js", "max_stars_repo_path": "vashstyle/js/main.js", "max_stars_repo_name": "EasyProg/EasyProg.github.io", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "vashstyle/js/main.js", "max_issues_repo_name": "EasyProg/EasyProg.github.io", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "vashstyle/js/main.js", "max_forks_repo_name": "EasyProg/EasyProg.github.io", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 29.5, "max_line_length": 82, "alphanum_fraction": 0.4846202134}
$(window).scroll(function(){
    var scrollPos = $(window).scrollTop();
    var blockPos = $('.menuHeader').offset().top;

    if (scrollPos>blockPos&&scrollPos>=800) {
        $('.menuHeader').css({position:"fixed",top:0});
    }
    else
       if (scrollPos<800) {
        $('.menuHeader').css({position:"absolute",bottom:0,top:'',height:'80px'});
                          }
});
$(document).ready(function() {
    Galleria.loadTheme('galleria/themes/classic/galleria.classic.min.js');
    Galleria.run('.galleria');
    $('.slider').bxSlider();
    $('.bxslider').bxSlider({captions:true});
    $(".lnk").on("click", "a", function (event) {
        event.preventDefault();
        var id = $(this).attr('href'),
        top = $(id).offset().top - 400;
        $('body,html').animate({scrollTop: top}, 1500);
    });
    $(".menuHeader").on("click", "a", function (event) {
        event.preventDefault();
        var id = $(this).attr('href'),
            top = $(id).offset().top - 400;
        $('body,html').animate({scrollTop: top}, 1500);
    });





    var images = ["header.jpg", "header2.jpg", "header3.jpg"];
    $(function () {
        var i = 0;
        //$("#dvImage").css("background-image", "url(images/" + images[i] + ")");
        setInterval(function () {
            i++;
            if (i == images.length) {
                i = 0;
            }
            $("#fgt").fadeOut("slow", function () {
                $(this).css("background-image", "url(./img/" + images[i] + ")");
                $(this).fadeIn("slow");
            });
        }, 4000);
    });
});



