/**
 * jQuery plugin: Lazy Image Loader
 * version: 3.0
 * Author: Vivek Pohre,Shon Thomas
 * Website: (http://www.vivekpohre.com)
 */

function lzload(){var w=window,adv=30,vph,tmpLD,nowView,collImg,imgTop,scrTop,ci;function getVPH(){if(typeof(vph=w.innerHeight?w.innerHeight:$(w).innerHeight())!="Number"){vph=document.documentElement.clientHeight;}};getVPH();imgTop=0;collImg=$("#content img").filter(':[longdesc]');collImg.each(function(){imgTop=$(this).offset().top;$(this).attr("top",imgTop);});$(w).bind("scroll",function(){loadImgs()}).bind("resize",function(){getVPH();loadImgs()});$.loadImgs=loadImgs=function(imgSet){ci=(imgSet)?imgSet.show():collImg;scrTop=$(w).scrollTop();nowView=(scrTop+vph+adv);ci.filter(':[longdesc]').filter(':visible').each(function(i){if($(this).attr("top")<nowView){tmpLD=$(this).attr("longdesc");if(typeof tmpLD!='undefined'){$(this).attr("src",tmpLD)[0].removeAttribute("longdesc",0);}}});ci=collImg;};loadImgs();$("#content img").error(function(){$(this).attr("src","http://o.aolcdn.com/shopping.aol.com/img/notavailable.gif");});}