﻿jQuery(function () {    function a() {        c.each(function () {            typeof $(this).attr("imgsrc") != "undefined" && $(this).offset().top < $(document).scrollTop() + $(window).height() && $(this).attr("src", $(this).attr("imgsrc")).removeAttr("imgsrc")        })    }    var c = $(".pic");    $(window).scroll(function () {        a()    });    a()});
