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