(function(){var v,w,k,E,q,y,h=true,j=false,t="string",i="function",N="object",F="ckx",z="pxtag",n="src";if(typeof window.pbxSL==="undefined")window.pbxSL=function(){function x(a){var b;try{b=a.offsetWidth}catch(c){b=document.all?document.documentElement.clientWidth:window.innerWidth}if(b===0&&a!==document.body)b=x(a.parentNode);return b}function A(a){var b=0;if(a)try{b+=a.offsetTop;b+=A(a.offsetParent)}catch(c){}return b}function o(a){var b,c;b=a.split(".");a=window;for(c=0;c<b.length;c++)if(typeof a[b[c]]===
N||typeof a[b[c]]===i)a=a[b[c]];else{a=null;break}return a}function B(a){var b="";if(a.charAt(0)!=="/")b=window.location.pathname.substr(0,window.location.pathname.lastIndexOf("/")+1);return/^http[s]{0,1}\:\/\//.test(a)?G(a):G(window.location.protocol+"//"+window.location.host+b+a)}function r(){var a,b,c,d,l;if(p.length>0)if(p[0].scripts.length>0){a=p[0].scripts[0];b=typeof a.test===t?o(a.test):typeof a.test===i?a.test():j;c=typeof a.exec===t?o(a.exec):typeof a.exec===i?a.exec:null;if(typeof a.load===
t){d=B(a.load);if(b||m[d]>=100){if(m[d]===100&&typeof c===i){c();m[d]=101}p[0].scripts.shift();r()}else if(m[d]){m[d]++;if(m[d]<10)b=window.setTimeout(r,150)}else{a=document.createElement("script");a.onload=function(){m[this[n]]=100;r()};if(document.all)a.onreadystatechange=function(){if(this.readyState==="complete"||this.readyState==="loaded"){m[this[n]]=100;r()}};a.setAttribute("type","text/javascript");a.setAttribute(z,F);b=window.setTimeout(function(){a.setAttribute(n,B(d));H.appendChild(a)},
5);m[d]=1}}else{if(typeof c===i)b||c();p[0].scripts.shift();r()}}else{c=p[0];l=typeof c.runCode===t?o(c.runCode):typeof c.runCode===i?c.runCode:null;if(c&&typeof l===i)if((b=new l(c.bootScriptNode,c.bootConfig))&&b.features&&b.selfNode){c=new O(b,l,c.bootConfig);if(b.features.orientationchange){u(window,"orientationchange",c.checkOrientationchange,h);u(window,"MozOrientation",c.checkOrientationchange,h)}if(typeof b.features.exposure===i){c.setExposure(h);u(window,"scroll",c.checkExposure,h);u(window,
"resize",c.checkExposure,h);c.checkExposure()}else typeof o("window.gadgets.window.adjustHeight")===i&&window.gadgets.window.adjustHeight();typeof b.features.listener===i&&I.push(c)}p.shift();r()}return h}function P(a){var b,c,d=B(a);a=document.getElementsByTagName("link");for(b=a.length;b-- >0;)if(a[b].rel==="stylesheet"&&a[b].href===d)b=-2;if(b===-1){c=document.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("type","text/css");c.setAttribute("href",d);b=window.setTimeout(function(){c.setAttribute("href",
d);H.appendChild(c)},5)}}function J(a,b){var c=0;if(typeof a===t)for(;c<I.length&&I[c].messageListener(a,b);)c++;K&&K(a,b)}function Q(a){J(a.data,null)}var p=[],H,m={},V=0,L,O,I=[],K=null,G=null,u;L=window.innerHeight?function(){return window.innerHeight}:function(){return document.documentElement.clientHeight};u=window.addEventListener?function(a,b,c,d){return a.addEventListener(b,c,d||false)}:function(a,b,c){if(a.parentNode){a["on"+b]=c;return null}else return a.attachEvent("on"+b,c)};O=function(a,
b,c){function d(){var g;if(!e.e){e.e=h;g=f.features.exposure();typeof o("window.gadgets.window.adjustHeight")===i&&window.gadgets.window.adjustHeight();if(g)f.selfNode=g}}function l(){var g;if(s!==-1&&!e.c){e.c=h;if(s!==-1){g=(document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop?document.documentElement.scrollTop:window.pageYOffset?window.pageYOffset:0)+L();s=A(f.selfNode);if(s<=g){s=-1;d()}}e.c=j}return h}function R(){var g;g=x(f.selfNode.parentNode);if(!e.r&&(!e.x||
e.e)){e.r=h;if(Math.abs(C-g)>15){C=g;if(typeof f.features.resize===i){if(g=f.features.resize())f.selfNode=g}else f=new S(f.selfNode,T);e.e=j;if(e.x){s=0;l()}}e.r=j}return h}function M(){e.x&&l();if((!e.x||e.e)&&f.features.resize)R();if(f.features.resize||e.x&&!e.e)U=window.setTimeout(M,80);return h}var f=a,S=b,C=x(a.selfNode.parentNode),s=A(a.selfNode),T=c,U,e={e:j,c:j,x:j,r:j,o:j};if(f.features.resize||f.features.exposure)U=window.setTimeout(M,80);return{setExposure:function(g){e.x=g},callExposure:d,
checkExposure:l,checkResize:R,checkSubTree:M,checkOrientationchange:function(){var g,D=x(f.selfNode.parentNode);if(!e.o){e.o=h;if(Math.abs(C-D)>15){C=D;if(typeof f.features.orientationchange===i)g=f.features.orientationchange();else f=new S(f.selfNode,T);if(g)f.selfNode=g;e.e=j;if(e.x){s=0;l()}}e.o=j}return h},messageListener:function(g,D){return typeof f.features.listener===i?f.features.listener(g,D):j}}};if(o("window.gadgets.rpc.call")===i){K=function(a,b){window.gadgets.rpc.call("","msg.pbxSL.pixelboxx.com",
null,a,b)};window.gadgets.rpc.register("msg.pbxSL.pixelboxx.com",J)}if(window.addEventListener)window.addEventListener("message",Q,h);else window.attachEvent&&window.attachEvent("onmessage",Q);G=typeof o("window.gadgets.io.getProxyUrl")===i?window.gadgets.io.getProxyUrl:function(a){return a};H=document.getElementsByTagName("head")[0];return{setBootLoader:function(a,b){var c,d={id:pbxSL.getInstance(),scripts:b.scripts,styles:b.styles,runCode:b.bootObject,bootConfig:b.bootConfig,bootScriptNode:a};if(d.runCode&&
a){if(typeof d.styles===t)P(d.styles);else for(c=d.styles.length;c-- >0;)P(d.styles[c]);p.push(d);return h}else return j},startBootLoading:r,passMessage:J,getContainerWidth:x,getContainerTop:A,getInnerHeight:L,bindEventHandler:u,getNamespaceObject:o,getEffectiveUrl:B,getInstance:function(){return V++}}}();v=q=null;y=document.body.getElementsByTagName("script");for(w=0;w<y.length&&!v;w++){k=y[w];E=k[n]?k[n].indexOf("://intermedia.pixelboxx.com/demo/boot/52CLb2BKmSr8_E7/hovergallery")||k[n].indexOf(pbxSL.getEffectiveUrl("://intermedia.pixelboxx.com/demo/boot/52CLb2BKmSr8_E7/hovergallery")):
-1;if(k[n]&&(w===0&&y.length===1||E>=0&&E<6))if(!k[z]||k[z]!==F){v=k;k[z]=F;k=k[n].split("#");if(k[1])q=pbxSL.getNamespaceObject(k[1])}}if(q===null)q={"scripts":[{"test":"window.jQuery","load":"http://intermedia.pixelboxx.com/demo/static/libs/jquery/jquery-1.4.2.min.js"},{"test":"window.skalib","load":"http://intermedia.pixelboxx.com/demo/static/libs/skalib.min.js"},{"test":"window.pbHoverGallery","load":"http://intermedia.pixelboxx.com/demo/static/hovergallery/pbHoverGallery.js"}],"styles":"http://intermedia.pixelboxx.com/demo/page/pbxBootLoaderSeq0/hovergallery.css","bootObject":"window.pbHoverGallery","bootConfig":{"contentContext":[{"iptc_caption":"A man alone in the darkness.","iptc_headline":"some guy","iptc_keywords":"alone, dark, grey, man","iptc_byline":"Kai Strieder","pbpix_width":1000,"pbpix_height":667,"id":"52CLb2BKmSr8_EvGbKRDaSJRN0jq_F_","name":"some-guy.jpg"},{"iptc_caption":"A blond girl in a red sweater.","iptc_headline":"some girl","iptc_keywords":"blond girl, red sweater, front view","iptc_byline":"Kai Strieder","pbpix_width":1000,"pbpix_height":667,"id":"52CLb2BKmSr8_EvGbKRDaSJH_Idum2o2","name":"some-girl.jpg"},{"iptc_caption":"A businessman with his briefcase.","iptc_headline":"businessman","iptc_keywords":"businessman, briefcase, gray suit, front view","iptc_byline":"Kai Strieder","pbpix_width":667,"pbpix_height":1000,"id":"52CLb2BKmSr8_EvVJfOHbIrG_ERtYSxum2o2","name":"business-man.jpg"},{"iptc_caption":"A brunette girl in a flower t-shirt.","iptc_headline":"another girl","iptc_keywords":"brunette, flower t-shirt, girl, front view","iptc_byline":"Kai Strieder","pbpix_width":1000,"pbpix_height":667,"id":"52CLb2BKmSr8_Ev3bIvQmFrEaSJH_Idum2o2","name":"another-girl.jpg"}],"urlprefix":"http://intermedia.pixelboxx.com/demo","cssprefix":"pbxBootLoaderSeq0","aspect_ratio_width":1,"aspect_ratio_height":1,"img_margin_px":2,"sortMode":"file"}};
if(v&&q&&typeof q===N)if(pbxSL.setBootLoader(v,q)){pbxSL.bindEventHandler(window,"load",pbxSL.startBootLoading,h);pbxSL.bindEventHandler(window,"DOMContentLoaded",pbxSL.startBootLoading,h);return h}else return j;else return j})();

