/* Copyright (C) YOOtheme GmbH, http://www.gnu.org/licenses/gpl.html GNU/GPL */ (function(e){var f={},a,c=!1,b=document.documentElement,c=b.firstElementChild||b.firstChild,d=document.createElement("div");d.style.cssText="position:absolute;top:-100em;width:1.1px";b.insertBefore(d,c);c=0!==(d.getBoundingClientRect().width||1)%1;b.removeChild(d);c||(b=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase()))&&(c=8==parseInt(b[1],10)||9==parseInt(b[1],10));a=c;e.fn.socialButtons=function(a){a=e.extend({wrapper:'
'},a);if(!a.twitter&&!a.plusone&& !a.facebook)return this;a.twitter&&!f.twitter&&(f.twitter=e.getScript("http://platform.twitter.com/widgets.js"));a.plusone&&!f.plusone&&(f.plusone=e.getScript("http://apis.google.com/js/plusone.js"));if(!window.FB&&a.facebook&&!f.facebook){e("body").append('
');var b,c=document.getElementsByTagName("script")[0];document.getElementById("facebook-jssdk")||(b=document.createElement("script"),b.id="facebook-jssdk",b.src="http://connect.facebook.net/en_US/all.js#xfbml=1",c.parentNode.insertBefore(b, c));f.facebook=!0}return this.each(function(){var b=e(this).data("permalink"),c=e(a.wrapper).appendTo(this);a.twitter&&c.append('
');a.plusone&&c.append('
');a.facebook&&c.append('
')})}; var g={};e.matchHeight=function(a,b,c){var d=e(window),f=a&&g[a];if(!f){var f=g[a]={id:a,elements:b,deepest:c,match:function(){var a=this.revert(),b=0;e(this.elements).each(function(){b=Math.max(b,e(this).outerHeight())}).each(function(c){var d="outerHeight";"border-box"==a[c].css("box-sizing")&&(d="height");var g=e(this);c=a[c];d=c.height()+(b-g[d]());c.css("min-height",d+"px")})},revert:function(){var a=[],b=this.deepest;e(this.elements).each(function(){var c=b?e(this).find(b+":first"):e(this); a.push(c.css("min-height",""))});return a},remove:function(){d.unbind("debouncedresize orientationchange",j);this.revert();delete g[this.id]}},j=function(){f.match()};d.bind("debouncedresize orientationchange",j)}return f};e.matchWidth=function(b,c,d){var f=e(window),k=b&&g[b];if(!k){if(a)return g[b]={match:function(){},revert:function(){},remove:function(){}},g[b];var k=g[b]={id:b,elements:c,selector:d,match:function(){this.revert();e(this.elements).each(function(){var a=e(this),b=a.width(),c=a.children(d), f=0;c.each(function(a){a(a/=d/2)?b/2*a*a+c:-b/2*(--a*(a-2)-1)+c},easeInCubic:function(f,a,c,b,d){return b*(a/=d)*a*a+c},easeOutCubic:function(f,a,c,b,d){return b*((a=a/d-1)*a*a+1)+c},easeInOutCubic:function(f,a,c,b,d){return 1> (a/=d/2)?b/2*a*a*a+c:b/2*((a-=2)*a*a+2)+c},easeInQuart:function(f,a,c,b,d){return b*(a/=d)*a*a*a+c},easeOutQuart:function(f,a,c,b,d){return-b*((a=a/d-1)*a*a*a-1)+c},easeInOutQuart:function(f,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a*a+c:-b/2*((a-=2)*a*a*a-2)+c},easeInQuint:function(f,a,c,b,d){return b*(a/=d)*a*a*a*a+c},easeOutQuint:function(f,a,c,b,d){return b*((a=a/d-1)*a*a*a*a+1)+c},easeInOutQuint:function(f,a,c,b,d){return 1>(a/=d/2)?b/2*a*a*a*a*a+c:b/2*((a-=2)*a*a*a*a+2)+c},easeInSine:function(f,a, c,b,d){return-b*Math.cos(a/d*(Math.PI/2))+b+c},easeOutSine:function(f,a,c,b,d){return b*Math.sin(a/d*(Math.PI/2))+c},easeInOutSine:function(f,a,c,b,d){return-b/2*(Math.cos(Math.PI*a/d)-1)+c},easeInExpo:function(f,a,c,b,d){return 0==a?c:b*Math.pow(2,10*(a/d-1))+c},easeOutExpo:function(f,a,c,b,d){return a==d?c+b:b*(-Math.pow(2,-10*a/d)+1)+c},easeInOutExpo:function(f,a,c,b,d){return 0==a?c:a==d?c+b:1>(a/=d/2)?b/2*Math.pow(2,10*(a-1))+c:b/2*(-Math.pow(2,-10*--a)+2)+c},easeInCirc:function(f,a,c,b,d){return-b* (Math.sqrt(1-(a/=d)*a)-1)+c},easeOutCirc:function(f,a,c,b,d){return b*Math.sqrt(1-(a=a/d-1)*a)+c},easeInOutCirc:function(f,a,c,b,d){return 1>(a/=d/2)?-b/2*(Math.sqrt(1-a*a)-1)+c:b/2*(Math.sqrt(1-(a-=2)*a)+1)+c},easeInElastic:function(f,a,c,b,d){f=1.70158;var g=0,e=b;if(0==a)return c;if(1==(a/=d))return c+b;g||(g=0.3*d);ea?-0.5*h*Math.pow(2,10*(a-=1))*Math.sin((a*d-f)*2*Math.PI/e)+c:0.5*h*Math.pow(2,-10*(a-=1))*Math.sin((a*d-f)*2*Math.PI/e)+b+c},easeInBack:function(e, a,c,b,d,g){void 0==g&&(g=1.70158);return b*(a/=d)*a*((g+1)*a-g)+c},easeOutBack:function(e,a,c,b,d,g){void 0==g&&(g=1.70158);return b*((a=a/d-1)*a*((g+1)*a+g)+1)+c},easeInOutBack:function(e,a,c,b,d,g){void 0==g&&(g=1.70158);return 1>(a/=d/2)?b/2*a*a*(((g*=1.525)+1)*a-g)+c:b/2*((a-=2)*a*(((g*=1.525)+1)*a+g)+2)+c},easeInBounce:function(f,a,c,b,d){return b-e.easing.easeOutBounce(f,d-a,0,b,d)+c},easeOutBounce:function(e,a,c,b,d){return(a/=d)<1/2.75?b*7.5625*a*a+c:a<2/2.75?b*(7.5625*(a-=1.5/2.75)*a+0.75)+ c:a<2.5/2.75?b*(7.5625*(a-=2.25/2.75)*a+0.9375)+c:b*(7.5625*(a-=2.625/2.75)*a+0.984375)+c},easeInOutBounce:function(f,a,c,b,d){return a").attr(e.extend(f(c[0]),{type:"text"}))}b.removeAttr("name").data("placeholder-password",!0).bind("focus.placeholder",a);c.data("placeholder-textinput",b).before(b)}c=c.hide().prev().show()}c.addClass("placeholder").val(c.attr("placeholder"))}else c.removeClass("placeholder")}var b="placeholder"in document.createElement("input"),d="placeholder"in document.createElement("textarea");e.fn.placeholder=b&&d?function(){return this}:function(){return this.filter((b?"textarea":":input")+"[placeholder]").bind("focus.placeholder", a).bind("blur.placeholder",c).trigger("blur.placeholder").end()};e(function(){e("form").bind("submit.placeholder",function(){var b=e(".placeholder",this).each(a);setTimeout(function(){b.each(c)},10)})});e(window).bind("unload.placeholder",function(){e(".placeholder").val("")})})(jQuery); (function(e){if(!e.event.special.debouncedresize){var f=e.event,a,c;a=f.special.debouncedresize={setup:function(){e(this).on("resize",a.handler)},teardown:function(){e(this).off("resize",a.handler)},handler:function(b,d){var e=this,h=arguments,l=function(){b.type="debouncedresize";f.dispatch.apply(e,h)};c&&clearTimeout(c);d?l():c=setTimeout(l,a.threshold)},threshold:150}}})(jQuery);