/*! jquery.photocols - v1.0.3 - 2014-07-23 */
!function(a){a.fn.photocols=function(b){element=this,b=a.extend({},{bgcolor:"#000",width:"auto",colswidth:200,itemheight:300,height:600,gap:5,titleSize:16,subtitleSize:14,opacity:.3,overlayColor:"#000",stopOnHover:!0,data:{}},b);var c,d,e=function(){a("#pc-all").css("top",a("#pc-all").position().top+1),b.stopOnHover&&a(".pc-col-active .pc-item").each(function(){a(this).css("top",a(this).position().top-1)}),a(".pc-item").each(function(){a("#pc-all").position().top+a(this).position().top>b.height&&a(this).css("top",a(this).position().top-(b.itemheight+b.gap)*c)}),d=setTimeout(function(){clearInterval(d),e()},50)},f=function(){clearInterval(d),element.children().remove();var e=Math.floor(element.width()/b.colswidth),f=Math.floor(element.width()/e)-b.gap;c=Math.ceil(b.height/b.itemheight)+1;var h=0,i=a('
');element.append(i);for(var j=0;e>j;j++){var k=Math.round(element.width()/e),l=Math.floor(Math.random()*b.itemheight),m=a('');i.append(m);for(var n=0;c>n;n++){var o=b.data[h++%b.data.length],p=a(''+o.title+''+o.subtitle+"
");p.attr("href",o.url),p.css("background-image","url("+o.img+")"),p.css("width",f),p.css("left",k*j+b.gap/2),p.css("top",l+(b.itemheight+b.gap)*n),m.append(p)}}g()},g=function(){element.css("width","auto"==b.width?"100%":b.width),element.css("height",b.height),element.css("background-color",b.bgcolor),element.css("overflow","hidden"),element.css("position","relative");var c=a('');c.css("position","absolute"),c.css("z-index","100"),c.css("width","100%"),c.css("left",0),c.css("height",b.height),c.css("box-shadow","inset 0 10px 10px -10px #000, inset 0 -10px 10px -10px #000"),c.css("pointer-events","none"),element.append(c),h(),a(".pc-item").hover(function(c){"mouseenter"===c.type?(a(this).find(".pc-item-overlay").css({opacity:0}),a(this).find(".pc-item-mask").css({opacity:1,transition:"opacity 0.2s 0.2s linear"}),a(this).parent(".pc-col").addClass("pc-col-active")):(a(this).find(".pc-item-overlay").css({opacity:b.opacity}),a(this).find(".pc-item-mask").css({opacity:0,transition:"opacity 0.2s linear"}),a(this).parent(".pc-col").removeClass("pc-col-active"))}),e()},h=function(){a(".pc-item").css({overflow:"hidden",position:"absolute","background-position":"50% 50%","background-size":"cover",height:b.itemheight}),a(".pc-item-title").css({"text-transformation":"none","font-size":b.titleSize,"font-weight":"bold",transition:"bottom 0.3s ease-in-out",position:"absolute",top:56,left:15,color:"#fff"}),a(".pc-item-subtitle").css({"text-transformation":"none","font-size":b.subtitleSize,"font-weight":"normal",transition:"bottom 0.3s ease-in-out",position:"absolute",top:80,left:15,color:"#fff"}),a(".pc-item-overlay").css({transition:"opacity 0.3s ease-in-out",position:"absolute",opacity:b.opacity,top:0,bottom:0,left:0,right:0,"background-color":b.overlayColor}),a(".pc-item-mask").css({transition:"opacity 0.2s 0.2s linear",position:"absolute",opacity:0,bottom:0,left:0,right:0,height:120,width:"100%","background-color":"rgba(0,0,0,0.6)",background:"-webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(50%,rgba(0,0,0,0.61)), color-stop(100%,rgba(0,0,0,0.61)))",background:"-webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,0.61) 50%,rgba(0,0,0,0.61) 100%)",background:"linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,0.61) 50%,rgba(0,0,0,0.61) 100%)"})};return a(window).resize(f),f(),element}}(jQuery);