function thumbnailLoad(){var w=window,adv=30,vph,tmpLD,nowView,collImg,imgTop,scrTop,ci;function getVPH(){if(typeof(vph=w.innerHeight?w.innerHeight:jQuery(w).innerHeight())!="Number"){vph=document.documentElement.clientHeight}}getVPH();imgTop=0;collImg=jQuery("#video-thumbnail-area img").filter(":[data-src]");collImg.each(function(){imgTop=jQuery(this).offset().top;jQuery(this).attr("top",imgTop)});jQuery(w).bind("scroll",function(){loadImgs()}).bind("resize",function(){getVPH();loadImgs()});jQuery.loadImgs=loadImgs=function(imgSet){ci=(imgSet)?imgSet.show():collImg;scrTop=jQuery(w).scrollTop();nowView=(scrTop+vph+adv);ci.filter(":[data-src]").filter(":visible").each(function(i){if(jQuery(this).attr("top")<nowView){tmpLD=jQuery(this).attr("data-src");if(typeof tmpLD!="undefined"){jQuery(this).attr("src",tmpLD)[0].removeAttribute("data-src",0)}}});ci=collImg};loadImgs();jQuery("#video-thumbnail-area img").error(function(){jQuery(this).attr("src","/shared/images/transparent.gif")})};
