(function(h){h.pixelentity=h.pixelentity||{version:"1.0.0"};h.pixelentity.kenburnsImg={conf:{zoom:"random",align:"random",pan:"random",duration:"15",paused:false}};var i={width:0,height:0,"margin-left":0,"margin-top":0};var k=["top","center","bottom"];var d=["left","center","right"];var b=false;var j=false;var e=false;var f=h.browser.msie&&h.browser.version>8;if(h.browser.msie){b=true;e=h.browser.msie}if(!b&&!!document.createElement("canvas").getContext){j=true}var a=navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad)/);if(a){b=true;j=false}function c(r,n,l,q,p,o,m){if(j){if(n){n.drawImage(r[0],o,m,l*p,q*p)}}else{if(b){if(r){r.transform(p,o,m)}}else{i.width=l*p;i.height=q*p;i["margin-left"]=o;i["margin-top"]=m;if(r){r.css(i)}}}}function g(D,z){var F=this;var E=D;if(j){D.hide()}var O,s,A,L,o,M,P,G,H,q,N,B,y,C=500,p=0,x,l;var m,I,K;var J=false;function n(){var t;if(p>0){P=G;H=q;o=M}else{t=h.pixelentity.Geom.getScaler(m=="out"?"fill":"none",K.w,K.h,A,L,O,s);P=t.offset.w;H=t.offset.h;o=t.ratio}t=h.pixelentity.Geom.getScaler(m=="in"?"fill":"none",I.w,I.h,A,L,O,s);G=t.offset.w;q=t.offset.h;M=t.ratio;N=0;B=0;C=parseFloat(z.duration)*33;y=f?20:0;p++}function r(){return k[parseInt(Math.random()*2+0.5)]+","+d[parseInt(Math.random()*2+0.5)]}function v(){m=z.zoom=="random"?(Math.random()>0.5?"out":"in"):z.zoom;if(a){m="none"}K=h.pixelentity.Geom.splitProps(z.align=="random"?r():z.align);I=h.pixelentity.Geom.splitProps(z.pan=="random"?r():z.pan)}function u(){if(J){return}var t=y/C;var R=o+(M-o)*t;var Q=P+(G-P)*t;var w=H+(q-H)*t;c(E,x,O,s,R,Q,w);y++;if((y+(f?20:0))>C){F.pause()}}h.extend(F,{init:function(w){O=D.width()||D[0].width;s=D.height()||D[0].height;var t=D.parent();while(t&&!t.width()){t=t.parent()}A=t?t.width():800;L=t?t.height():600;E.css("image-rendering","optimizeQuality").css("-ms-interpolation-mode","bicubic");if(e){E.parent().css("background-color","black")}F.start()},start:function(){p=0;v();n();J=false;if(j){if(!x){l=h('<canvas width="'+A+'" height="'+L+'"></canvas>');x=l[0];E.hide().after(l);x=x.getContext("2d");x.fillStyle="rgb(255,255,255)"}}if(z.paused){u();J=true}h.pixelentity.ticker.bind("tick",u)},stop:function(){h.pixelentity.ticker.unbind("tick",u)},reset:function(){J=true;p=0;v();n();J=false},getTarget:function(){if(l){return l}return E},pause:function(){J=true},resume:function(){J=false},destroy:function(){F.paused=true;F.stop();F=undefined;E.data("peKenburnsImg",undefined)}});if(D.width()==0&&D[0].width==0){D.one("load",F.init)}else{F.init()}}h.fn.peKenburnsImg=function(l){var m=this.data("peKenburnsImg");if(m){m.start();return m}l=h.extend(true,{},h.pixelentity.kenburnsImg.conf,l);this.each(function(){m=new g(h(this),l);h(this).data("peKenburnsImg",m)});return l.api?m:this}})(jQuery);(function(c){c.pixelentity=c.pixelentity||{version:"1.0.0"};c.pixelentity.kenburnsSlider={conf:{externalFont:false}};function b(e,i,h,d){var f=(1<<24)|(parseInt(i)<<16)|(parseInt(h)<<8)|parseInt(d);return"#"+f.toString(16).substr(1)}function a(V,aA){var aG=this;var ag=V.addClass("peKenBurns").removeClass("peNoJs");var ak=false;if(ag.is("img")){var x=false;if(V.parent().is("a")){x=true}var a1='<img src="'+V.attr("src")+'" data-src="'+(V.attr("data-src")||"")+'"/>';var i=c('<div class="peKenBurns" data-autopause="none" data-controls="disabled" data-shadow="'+(V.attr("data-shadow")||"disabled")+'" data-logo="disabled"><div class="peKb_slides" ><div class="peKb_active" data-delay="'+(V.attr("data-delay")||"3")+'" data-duration="'+(V.attr("data-duration")||"10")+'">'+a1+(V.attr("alt")?"<h1>"+V.attr("alt")+"</h1>":"")+'</div><div data-delay="'+(V.attr("data-delay")||"3")+'" data-duration="'+(V.attr("data-duration")||"15")+'">'+a1+"</div></div></div>");V.replaceWith(i);ag=V=i;V.data("peKenburnsSlider",this);if(x){V.css("cursor","pointer")}ak=true}else{V.css({"background-color":"transparent","-moz-border-radius":"0px","-webkit-border-radius":"0px","border-radius":"0px",padding:"0px"})}var am=c.pixelentity&&c.pixelentity.kenburnsImg&&(V.attr("data-mode")!="swipe");var D=false;var aP=true;(function(){var h=V.attr("data-autopause");if(h){D=h.match(/controls/)!=undefined;aP=h.match(/image/)!=undefined}})();var al=c('<div class="peKb_spinner"></div>');var a6=c('<div class="peKb_videooverlay"></div>');var ah="";if(V.attr("data-captions")!="disabled"){ah=c('<div class="peKb_caption"></div>')}var s=false;if(V.attr("data-thumb")!="disabled"){s=c('<div class="peKb_Thumb"><div>/div>');var l=s.find("div");var R=s.find("img");var aq=false}var ay=c('<div class="peKb_timer"><div class="peKb_overlay"></div></div>');var a0;var az;var K;var aS;var aN=800;var M=0;var p;var aa;var ba=-1;var aF;var a4=[];var aX=false;var au=false;var S=V.width();var Y=V.height();var aR=!(c.browser.msie&&c.browser.version>=7&&c.browser.version<9);var r=false;var a5=0;var aY=-1;var U=false;var n=false;var a3=false;var aO=false;var B=0;var J=false;var e=false;var aM=false;var Z=!(V.attr("data-shadow")=="disabled");var X=!(V.attr("data-controls")=="disabled");var j=(V.attr("data-logo")=="enabled");var ap=navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad)/);if(j){V.css("overflow","visible")}if(ak&&Z){Y-=36}if(!ak&&Z&&!X){Y-=50}var H=V.find("div.peKb_slides");if(H.length==0){V.wrapInner('<div class="peKb_slides"></div>');H=V.find("div.peKb_slides")}var aW=parseInt(H.css("padding-left").replace(/px/,""))||0;var z="";if(X){z+='<div class="peKb_controls"><div class="peKb_holder"><div class="peKb_mainPanel"><div class="peKb_iebg"><ul class="peKb_slideBtns"><li><a href="#" class="peKb_currentSlide">1</a></li></ul><div class="peKb_arrows"><a class="peKb_prev" href="#">p</a><a class="peKb_next" href="#">n</a></div><span class="peKb_iebgRight"></span></div></div><div class="peKb_videoClose"><a href="#">close</a></div></div></div>'}if(j){z+='<div class="peKb_logoLabel"><a href="'+(V.attr("data-logo-link")||"#")+'" target="'+(V.attr("data-logo-target")||"_self")+'" >logo</a></div>'}if(Z){z+='<div class="peKb_shadow"><div class="peKb_left"></div><div class="peKb_middle"></div><div class="peKb_right"></div></div>'}var f=z?c(z):false;var C=0;if(f){if(c.browser.msie){var u="";if(c.browser.version>=7&&c.browser.version<8){u="ie7"}else{if(c.browser.version>=8&&c.browser.version<9){u="ie8"}}if(u){V.wrap('<div class="'+u+'"></div>')}}H.after(f);if(aW!=15){f.filter(".peKb_controls").css("margin-top",-(aW+1))}if(Z){var aJ=f.filter(".peKb_shadow").css("z-index","0");H.before(aJ)}}if(X){H.before(ay.hide());aS=ay.css("color").replace(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/g,b);var P=ay.find(".peKb_overlay");K=P.width();if(document.createElement("canvas").getContext){a0=c('<canvas width="'+K+'" height="'+K+'"></canvas>');P.after(a0);a0=a0[0].getContext("2d")}else{az=c('<div class="peKb_sprite"></div>');ay.find(".peKb_overlay").after(az)}f.find(".peKb_prev, .peKb_next").click(W).end();C=f.height();var A=f.find("ul.peKb_slideBtns").empty();var aC=f.find(".peKb_videoClose");var G=f.find(".peKb_mainPanel");var ae=(c.browser.msie&&c.browser.version>=8&&c.browser.version<9)?"top":"margin-top";aC.find("a").click(q).end().css(ae,-C)}var aZ=S-2*aW;var a7=Y-2*aW-C;if(Z){var d=V.find(".peKb_shadow");d.width(S).find(".peKb_middle").width(S-d.find(".peKb_left").width()-d.find(".peKb_right").width())}V.append(s);if(s){var af=V.offset();af.top=af.top+a7+aW-s.height()+13;s.data("top",af.top);s.offset(af);s.hide()}flashEnabled=c.flash.available;var I={width:aZ,height:a7,left:0,overflow:"hidden",visible:true,display:"block",opacity:0};var N="next";var ai=H.width(aZ).height(a7).find(" > div");var ac=c('<div class="peKb_frame"></div>').width(aZ).height(a7);V.find("div.peKb_slides").append(al).append(a6).append(ah).bind("mouseenter",ax).bind("mouseleave",ax).end();var O=0;var aL=0;if(ah){O=parseInt(ah.css("margin-bottom").replace(/px/));aL=parseInt(ah.css("margin-left").replace(/px/))}if(!am){H.wrapInner('<div class="peKb_slides"></div>');var aw=H.find("> div");aw.width(aZ).height(a7).css({position:"absolute","border-width":0,"border-radius":0,"background-image":"none","background-color":ac.css("background-color"),"z-index":1,top:aW,left:aW,padding:"0px",margin:"0px"}).show();if(ah){ah.width(aZ).height(a7)}}else{ai.css("margin-left",aW);if(ah){ah.width(aZ).height(a7).css("margin-top",aW).css("margin-left",aW)}}H.prepend(ac);var F=ac.css("background-color").replace(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/g,b);function at(bf,be,bh){bh=bf?bh:"fade";aN=bh=="swipe"?700:1000;p=be;function bd(){aV();if(bf){bf.fadeOut(0);bf.find("img:eq(0)").css("margin-left",0)}}if(bf){var bb=bf.find("img:eq(0)").data("peKenburnsImg");if(bb){bb.stop()}}if(be.find("a.video").length>0){a6.empty().removeClass("peKb_noBack").fadeIn(0);if(!flashEnabled){var bg=c("<a>");bg.attr("href",be.find("a.video").attr("href")).attr("target","_blank");bg.width(a6.width()).height(a6.height()).css("position","absolute").show();a6.empty().append(bg)}else{if(be.find("a.video").hasClass("autostart")){if(r){setTimeout(function(){a6.triggerHandler("click")},500)}else{a6.triggerHandler("click")}}}}else{if(be.find("a").length>0){a6.fadeIn(0);var bg=c("<a>");c.each(be.find("a").data("events"),function(bi,bj){c.each(bj,function(bk,bl){bg.bind(bi,bl.handler)})});bg.attr("href",be.find("a").attr("href")).attr("target",be.find("a").attr("target"));bg.width(a6.width()).height(a6.height()).css("position","absolute").show();a6.empty().addClass("peKb_noBack").append(bg)}else{a6.empty().removeClass("peKb_noBack").fadeOut(0)}}switch(bh){case"fade":if(bf){bf.css(I).css("opacity",1).fadeTo(aN,0)}be.css(I).css("opacity",0).fadeTo(aN,1,aV);break;case"whitefade":be.css(I).css("opacity",0);bf.css(I).css("opacity",1).fadeTo(aN/2,0,"easeOutQuad",function(){be.fadeTo(aN/2,1,"easeInQuad",aV)});break;case"flyBy":if(N=="next"){if(bf){bf.css(I).css("opacity",1)}be.css(I).css("left",50);if(bf){bf.animate({left:-100,opacity:0},aN,"easeOutCubic")}be.animate({left:0,opacity:1},aN,"easeOutCubic",aV)}else{if(bf){bf.css(I).css("opacity",1)}be.css(I).css("left",-50);if(bf){bf.animate({left:100,opacity:0},aN,"easeOutCubic")}be.animate({left:0,opacity:1},aN,"easeOutCubic",aV)}break;case"swipe":var w;var h=100;be.css(I);if(bf){bf.css(I).css("opacity",1)}w=(N=="next")?be.find("img:eq(0)"):bf?bf.find("img:eq(0)"):null;function bc(bi,bk){var bj=Math.round(bi*aZ);var bl=Math.round(h*(1-bi));be.css("left",-bl).width(bj+h);if(w){w.css("margin-left",-bj)}if(bf){bf.css("opacity",0.5+0.5*(1-bi)).css("left",bj+h-bl).width(aZ-bj)}}function t(bi,bk){var bj=Math.round(bi*aZ);var bl=Math.round(h*(1-bi));be.css("left",aZ-bj+bl).width(bj);if(w){w.css("margin-left",bj-aZ)}if(bf){bf.css("opacity",0.5+0.5*(1-bi)).css("left",bl-h).width(aZ-bj+h)}}be.animate({opacity:1},{duration:aN,easing:"easeOutCubic",complete:bd,step:N=="next"?t:bc});break}}function E(h){aX=false;aU(parseInt(h.target.id),true)}function aV(){aX=false}function aE(w,t){var h=a4[w].resource;if(!h){return true}var bb=c(h).attr("src")?"":c(h).attr("data-src");if(bb){c(h).attr("src",bb)}if(!h.complete){if(t){c(h).one("load",t)}}return h.complete}function aB(){if(!a3&&aa&&!au){ay.show().offset(aa.offset())}}function ar(){au=false;aB()}function ad(h){if(A){aa=A.find("a").removeClass("peKb_currentSlide").eq(h).addClass("peKb_currentSlide");ab(0);aB()}}function y(h){if(!J){return}var w=a4[h].caption;var bb;var t;if(w){bb=w.find(".peKb_real");t=w.find(".peKb_background");bb.css("margin-left",10).css("opacity",0).width(0).show();t.css("margin-left",100).css("opacity",0).width(0).show();bb.stop(true).delay(ak?500:500).animate({"margin-left":0,opacity:1,width:t.data("width")},1000,"easeOutCubic");t.stop(true).delay(ak?0:200).animate({"margin-left":0,opacity:0.5,width:t.data("width")},1000,"easeOutCubic")}if(aF){bb=aF.find(".peKb_real");t=aF.find(".peKb_background");bb.stop(true).fadeTo(ak?0:500,0);t.stop(true).fadeTo(ak?0:500,0)}aF=w}function aU(h,bb){if(ba!=h&&!aX){aX=true;if(!bb&&!aE(h,E)){al.fadeIn(500);return}q();aE(a2(h,"next"));if(!ak){ad(h);y(h)}M=ba=h;al.fadeOut(100);var be=ai.filter(".active").removeClass("active");var bd=ai.eq(h).addClass("active");var bc=bd.attr("data-transition")||"swipe";var t;if(am){t=bd.find("img");if(t){bc="fade"}}var w=bd.attr("data-delay");if(w){a5=aY=parseFloat(w)*20}else{a5=aY=-1;ab(360)}bd.show().fadeOut(0);if(t){t=t.peKenburnsImg({zoom:bd.attr("data-zoom"),align:bd.attr("data-align"),pan:bd.attr("data-pan"),duration:bd.attr("data-duration"),paused:ak,api:true});if(ak&&n){t.resume()}}at(be[0]?be:null,bd,bc);if(aO){aO=false;B=setTimeout(T,1000)}}}function ab(w){if(!A){return}if(a0){var t=K-1;var h=K/2;var bb=h+1;a0.clearRect(0,0,K,K);if(w>0){a0.beginPath();a0.moveTo(h,bb);a0.arc(h,bb,t/2,(270/360)*2*Math.PI,((w+270)/360)*2*Math.PI,false);a0.lineTo(h,bb);a0.closePath();a0.fillStyle=aS;a0.fill()}}else{az.css("background-position-y","-"+Math.round(12-(12*(w/360)))*K+"px")}}function aI(){if(U||aY<0){return}ab(360*(a5-aY)/a5);if(aY==0){aU(a2(M,"next"))}aY--}function a2(w,h){var t=w;t+=(h=="prev"?-1:1);t%=a4.length;if(t<0){t+=a4.length}return t}function W(h){N=c(h.currentTarget).hasClass("peKb_next")?"next":"prev";aU(a2(M,N));return false}function k(t){var h=parseInt(t.currentTarget.id);N=h>=M?"next":"prev";aU(h);return false}function aD(){var bb;var t;if(e){clearTimeout(e)}for(var bc=0;bc<a4.length;bc++){bb=a4[bc].caption;if(bb){bb.width(aZ);t=false;var be=bb.find(".peKb_real");var w=bb.find(".peKb_background");if(bb==aF){be.stop().css("margin-left",0).css("opacity",1);w.stop().css("margin-left",0).css("opacity",0.5);t=true}var h;var bd;if(ak){h=aZ-2*O}else{be.width("auto");w.width("auto");h=be.outerWidth()}bd=be.outerHeight();w.width(h).height(bd).data("width",h);bb.width(h).height(bd);bb.css("margin-left",(aZ-w.width())/2);bb.css("margin-top",(a7-w.height()-O));if(!t){be.fadeOut(0);w.fadeOut(0)}}}J=true}function aT(t,bc){var bd=c(bc).attr("id",t);var bb=bd.find(" > h1").detach();if(ah&&bb.length>0){bb.wrap('<div class="peKb_real" />');bb=bb.parent();bb.wrap('<div class="peKb_holder" />');bb=bb.parent();bb.append('<div class="peKb_background" />');ah.append(bb);bb.find(".peKb_real").fadeOut(0);bb.find(".peKb_background").fadeOut(0)}else{bb=false}var h=bd.find("img").attr({id:t})[0];var w=bd.attr("data-thumb");a4[t]={caption:bb,resource:h,thumb:w};if(A){A.append('<li><a href="#" '+(t==0?'class="peKb_currentSlide"':"")+' id="'+t+'">1</a></li>')}}function m(){al.empty();r=false;if(!n){U=false}}function o(h){var t={};t[ae]=(h?0:-C);aC.stop().animate(t,300,"easeOutCubic")}function aj(h,t){if(!G){return}a3=!h;if(!h){aQ(false)}t=t==null?300:t;G.stop();if(r){o(h)}ay.hide();au=true;G.animate({"margin-top":(h?0:-C)},{duration:t,easing:"easeOutCubic",complete:ar})}function g(){o(true)}function aH(){o(false)}function a9(h){aj(true,h)}function T(h){aj(false,h)}function q(){if(r){al.css("background-color","none");al.fadeOut(500,m);a6.fadeIn(0);aH();var h=ai.filter(".active").find("img:eq(0)").data("peKenburnsImg");if(h){h.resume()}}return false}function a8(t){var h=c(t.currentTarget);if(h.hasClass("video")){v(h[0].href,h.hasClass("hd"),h.hasClass("autoplay"),h.hasClass("loop"));return false}return true}function v(t,be,w,h){if(r){return false}var bf,bd;if(bf=t.match(/http:\/\/www.youtube.com\/watch\?v=(\w+)/)){bd="youtube"}else{if(bf=t.match(/http:\/\/vimeo.com\/(\w+)/)){bd="vimeo"}}if(bd){q();r=true;U=true;var bc=ai.filter(".active").find("img:eq(0)").data("peKenburnsImg");if(bc){bc.pause()}al.css("background-color",F);al.fadeIn(500);a6.fadeOut(0);g();var bb=al.vid({type:bd,videoId:bf[1],hd:be,autoPlay:w,loop:h,bgcolor:F})}}function aK(){var h=p.find("a.video");if(h.length>0){h.trigger("click")}}function av(){aq=false;s.hide()}function aQ(h,t){if(!aM||!s){return}if(h){s.stop(true);if(aR){s.fadeTo(500,1,"easeOutQuad")}else{s.show()}}else{if(parseInt(t)>0){s.delay(t)}else{s.stop(true)}if(aR){s.fadeTo(300,0,"easeOutQuad",av)}else{s.queue(av)}}}function ao(h){l.html(R);if(V.attr("data-thumb")!="fixed"){R.peKenburnsImg({zoom:"in",align:"top,center",pan:"center,center",duration:"10"})}l.stop(true).fadeTo(0,0).fadeTo(300,1,"easeInQuad")}function L(h){if(aa){aa.triggerHandler(h.type)}}function Q(bc){var h=bc.currentTarget.id;switch(bc.type){case"mouseenter":var w=a4[h].thumb;if(!w){return}aM=true;aQ(true);var t=c(bc.currentTarget).width();var bb=c(bc.currentTarget).offset();bb.top=s.data("top");bb.left=bb.left-(s.width()-t)/2;if(aq!=w){if(R.data("peKenburnsImg")){R.data("peKenburnsImg").destroy()}R=c("<img>");l.html("");R.load(ao);R.attr("src",w)}s.offset(bb);aq=w;break;case"mouseleave":aQ(false,200);break}}function ax(h){aO=false;if(B){clearTimeout(B)}if(h.currentTarget==V[0]){switch(h.type){case"mouseenter":if(D){U=true}a9();break;case"mouseleave":if(!r&&D){U=false}T();break}}else{switch(h.type){case"mouseenter":if(ak){U=false;an().resume();y(0)}else{if(aP){U=true}}n=true;break;case"mouseleave":if(ak){U=true;an().pause();y(1)}else{if(!r&&aP){U=false}}n=false;break}}}function an(){var h;if(p){h=p.find("img:eq(0)");if(h){h=h.data("peKenburnsImg")}}return h||false}c.extend(aG,{init:function(bb){if(c.browser.msie&&c.browser.version>8){ai.find("img").each(function(){var bc=c(this);if(!bc.attr("data-src")){bc.attr("data-src",bc.attr("src"));bc.removeAttr("src")}}).end()}al.width(aZ).height(a7);a6.width(aZ).height(a7);ai.width(aZ).height(a7).show().fadeOut(0).removeClass("active").find("img[src*='blank.png']").removeAttr("src").end().find("a").click(a8).end().each(aT).end();if(X&&G){G.css("margin-left",(S-G.width())/2)}if(aA.externalFont){e=setTimeout(aD,10000)}else{aD()}if(A){var h=A.find("a");h.click(k);if(s){h.bind("mouseenter",Q).bind("mouseleave",Q);ay.bind("mouseenter",L).bind("mouseleave",L)}}if(flashEnabled){a6.hide().click(aK)}var w=true;var t=V.attr("data-controls");if(ap){t=(t=="over"||t=="hideOnFirst")?"always":t}switch(t){case"over":T(0);break;case"hideOnFirst":aO=true;break;case"disabled":T(0);default:w=false;break}if(w){V.bind("mouseenter",ax).bind("mouseleave",ax)}U=true;setInterval(aI,50);aG.start()},start:function(){U=ak;aU(0)},fontsLoaded:function(){aD();y(M)},pauseTimer:function(){U=true},resumeTimer:function(){U=false},pause:function(){var h=an();h&&h.pause();aG.pauseTimer()},resume:function(){var h=an();h&&h.resume();aG.resumeTimer()},prev:function(){aG.resumeTimer();aU(a2(M,"prev"))},next:function(){aG.resumeTimer();aU(a2(M,"next"))},show:function(h){aG.resumeTimer();h=parseInt(h)-1;if(h>=0&&h<a4.length){aU(h)}},length:function(){return(a4&&a4.length)||0}});if(V.width()==0&&V[0].width==0){V.one("load",aG.init)}else{aG.init()}}c.fn.peKenburnsSlider=function(d){var e=this.data("peKenburnsSlider");if(e){e.start();return e}d=c.extend(true,{},c.pixelentity.kenburnsSlider.conf,d);this.each(function(){e=new a(c(this),d);c(this).data("peKenburnsSlider",e)});return d.api?e:this}})(jQuery);(function(f){var h="0px 0px";var l="bilinear";var g=/progid:DXImageTransform\.Microsoft\.Matrix\(.*?\)/;var d=document.createElement("modernizr"),e=d.style;function k(){var m={transformProperty:"",MozTransform:"-moz-",WebkitTransform:"-webkit-",OTransform:"-o-",msTransform:"-ms-"};for(var n in m){if(typeof e[n]!="undefined"){return m[n]}}return null}function i(){var n=["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"];for(var m in n){if(e[n[m]]!==undefined){return true}}}var a=k(),b=a!==null?a+"transform":false,j=a!==null?a+"transform-origin":false;f.support.csstransforms=i();if(a=="-ms-"){b="msTransform";j="msTransformOrigin"}function c(s,r,p,m){if(f.support.csstransforms){var t=(p!=undefined)?"translate("+p+"px,"+m+"px) ":"";f(s).css(j,h).css(b,t+"scale("+r+")")}else{if(f.browser.msie){var q=s.style;var o='progid:DXImageTransform.Microsoft.Matrix(FilterType="'+l+'",M11='+r+",M12=0,M21=0,M22="+r+",Dx="+p+",Dy="+m+")";var n=q.filter||f.curCSS(s,"filter")||"";q.filter=g.test(n)?n.replace(g,o):n?n+" "+o:o}}}f.fn.transform=function(o,n,m){this.each(function(){c(this,o,n,m)});return this}})(jQuery);if(!jQuery.easing.easeInQuad){jQuery.extend(jQuery.easing,{easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}})};(function($){$.pixelentity=$.pixelentity||{version:"1.0.0"};$.pixelentity.Geom={getScaler:function(scaleMode,halign,valign,w,h,tw,th){var info={};var rw=w/tw;var rh=h/th;var r;if(typeof scaleMode=="string"){switch(scaleMode){case"fill":case"fillmax":r=rw>rh?rw:rh;if(scaleMode=="fill"){r=Math.min(1,r)}break;case"fit":case"fitmax":r=rw<rh?rw:rh;if(scaleMode=="fit"){r=Math.min(1,r)}break;case"none":r=1;break}}else{r=scaleMode}info.ratio=r;info.diff={};info.offset={};info.align={w:halign,h:valign};with(info){diff.w=offset.w=w-tw*r;diff.h=offset.h=h-th*r;switch(halign){case"center":offset.w=diff.w/2;break;case"left":offset.w=0}switch(valign){case"center":offset.h=diff.h/2;break;case"top":offset.h=0}}return info},splitProps:function(comma,numeric){var token=comma.split(/,/);return numeric?{h:parseFloat(token[0]),w:parseFloat(token[1])}:{h:token[0],w:token[1]}}}})(jQuery);(function(f){f.pixelentity=f.pixelentity||{version:"1.0.0"};var g=f.pixelentity.ticker=f("<div>");function a(){return(new Date).getTime()}var e=a();var d,c;function b(){var h=a();if(h-e>=30){g.triggerHandler("tick");e=h}}setInterval(b,16);setInterval(b,30)})(jQuery);(function(a){a.fn.vid=function(){var b={type:"youtube",videoId:"4wGR4-SeuJ0",autoPlay:false,loop:false,hq:true,chromeless:false,resize:true,bgcolor:"#000000"};if(arguments[0]){a.extend(b,arguments[0])}this.each(function(){var f=a(this);var d="";var c={};switch(b.type){case"youtube":d+="youtube.com/"+(b.chromeless?"apiplayer":"v/"+b.videoId)+"?enablejsapi=1&version=3&autoplay="+(b.autoPlay?"1":"0")+"&loop="+(b.loop?"1":"0")+(b.hq?"&hd=1":"");break;case"vimeo":d+="vimeo.com/moogaloop.swf?clip_id="+b.videoId+"&autoplay="+(b.autoPlay?"1":"0")+"&js_api=1"+(b.hq?"":"&hd_off=1")+"&loop="+(b.loop?"1":"0");break;case"dailymotion":d+="dailymotion.com/swf/"+b.videoId+"?enablejsapi=1&autoplay="+(b.autoPlay?"1":"0");break;case"1click2fame":d+="1click2fame.com/flash/Player.swf?videoID="+b.videoId+"&autoPlay="+b.autoPlay;break}f.flash({swf:"http://"+d,height:f.height(),width:f.width(),bgcolor:b.bgcolor,flashvars:c});if(b.resize){a(this).parent().resize(function(){var e=[a("object",f),a("embed",f)];a(e).each(function(){a(this).attr("height",f.height());a(this).attr("width",f.width())})})}});return this}})(jQuery);(function(g,h,m){var f="object",b=true;function l(o,n){var e=(o[0]||0)-(n[0]||0);return e>0||(!e&&o.length>0&&l(o.slice(1),n.slice(1)))}function c(o){if(typeof o!=f){return o}var e=[],p="";for(var n in o){if(typeof o[n]==f){p=c(o[n])}else{p=[n,(b)?encodeURI(o[n]):o[n]].join("=")}e.push(p)}return e.join("&")}function d(o){var e=[];for(var n in o){if(o[n]){e.push([n,'="',o[n],'"'].join(""))}}return e.join(" ")}function k(o){var e=[];for(var n in o){e.push(['<param name="',n,'" value="',c(o[n]),'" />'].join(""))}return e.join("")}try{var j=m.description||(function(){return(new m("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}())}catch(i){j="Unavailable"}var a=j.match(/\d+/g)||[0];g[h]={available:a[0]>0,activeX:m&&!m.name,version:{original:j,array:a,string:a.join("."),major:parseInt(a[0],10)||0,minor:parseInt(a[1],10)||0,release:parseInt(a[2],10)||0},hasVersion:function(n){var e=(/string|number/.test(typeof n))?n.toString().split("."):(/object/.test(typeof n))?[n.major,n.minor]:n||[0,0];return l(a,e)},encodeParams:true,expressInstall:"expressInstall.swf",expressInstallIsActive:false,create:function(o){var e=this;if(!o.swf||e.expressInstallIsActive||(!e.available&&!o.hasVersionFail)){return false}if(!e.hasVersion(o.hasVersion||1)){e.expressInstallIsActive=true;if(typeof o.hasVersionFail=="function"){if(!o.hasVersionFail.apply(o)){return false}}o={swf:o.expressInstall||e.expressInstall,height:137,width:214,flashvars:{MMredirectURL:location.href,MMplayerType:(e.activeX)?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}}attrs={data:o.swf,type:"application/x-shockwave-flash",id:o.id||"flash_"+Math.floor(Math.random()*999999999),width:o.width||320,height:o.height||240,style:o.style||""};b=typeof o.useEncode!=="undefined"?o.useEncode:e.encodeParams;o.movie=o.swf;o.wmode=o.wmode||"opaque";o.bgcolor=o.bgcolor||"#FFFFFF";delete o.fallback;delete o.hasVersion;delete o.hasVersionFail;delete o.height;delete o.id;delete o.swf;delete o.useEncode;delete o.width;var n=document.createElement("div");n.innerHTML=["<object ",d(attrs),">",k(o),"</object>"].join("");return n.firstChild}};g.fn[h]=function(e){var n=this.find(f).andSelf().filter(f);if(/string|object/.test(typeof e)){this.each(function(){var p=g(this),o;e=(typeof e==f)?e:{swf:e};e.fallback=this;o=g[h].create(e);if(o){p.children().remove();p.html(o)}})}if(typeof e=="function"){n.each(function(){var o=this,p="jsInteractionTimeoutMs";o[p]=o[p]||0;if(o[p]<660){if(o.clientWidth||o.clientHeight){e.call(o)}else{setTimeout(function(){g(o)[h](e)},o[p]+66)}}})}return n}}(jQuery,"flash",navigator.plugins["Shockwave Flash"]||window.ActiveXObject));
