/* 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:'<div class="socialbuttons clearfix" />'},a);if(!a.twitter&&
!a.plusone&&!a.facebook)return this;a.twitter&&!g.twitter&&(g.twitter=e.getScript("//platform.twitter.com/widgets.js"));a.plusone&&!g.plusone&&(g.plusone=e.getScript("//apis.google.com/js/plusone.js"));!window.FB&&(a.facebook&&!g.facebook)&&(e("body").append('<div id="fb-root"></div>'),function(a,c,b){var e=a.getElementsByTagName(c)[0];a.getElementById(b)||(a=a.createElement(c),a.id=b,a.src="//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('<div><a href="http://twitter.com/share" class="twitter-share-button" data-url="'+b+'" data-count="none">Tweet</a></div>');a.plusone&&f.append('<div><div class="g-plusone" data-size="medium" data-annotation="none" data-href="'+b+'"></div></div>');a.facebook&&f.append('<div><div class="fb-like" data-href="'+b+'" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false"></div></div>')})};
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<f.length-1?(g+=c,c):b.width()-g})})};e.fn.smoothScroller=function(a){a=e.extend({duration:1E3,transition:"easeOutExpo"},a);return this.each(function(){e(this).bind("click",function(){var b=this.hash,f=e(this.hash).offset().top;if(window.location.href.replace(window.location.hash,"")+b==this)return e("html:not(:animated),body:not(:animated)").animate({scrollTop:f},
a.duration,a.transition,function(){window.location.hash=b.replace("#","")}),!1})})}})(jQuery);
(function(e){e.easing.jswing=e.easing.swing;e.extend(e.easing,{def:"easeOutQuad",swing:function(g,a,b,c,d){return e.easing[e.easing.def](g,a,b,c,d)},easeInQuad:function(g,a,b,c,d){return c*(a/=d)*a+b},easeOutQuad:function(g,a,b,c,d){return-c*(a/=d)*(a-2)+b},easeInOutQuad:function(g,a,b,c,d){return 1>(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);e<Math.abs(c)?(e=c,g=f/4):g=f/(2*Math.PI)*Math.asin(c/e);return-(e*Math.pow(2,10*(a-=1))*Math.sin((a*d-g)*2*Math.PI/f))+b},easeOutElastic: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);e<Math.abs(c)?(e=c,g=f/4):g=f/(2*Math.PI)*Math.asin(c/e);return e*Math.pow(2,-10*a)*Math.sin((a*d-g)*2*Math.PI/f)+c+b},easeInOutElastic:function(e,a,b,c,d){var e=1.70158,f=0,i=c;if(0==a)return b;if(2==(a/=d/2))return b+c;f||(f=d*0.3*1.5);i<Math.abs(c)?(i=c,e=f/4):e=f/(2*Math.PI)*Math.asin(c/i);return 1>a?-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<d/2?0.5*e.easing.easeInBounce(g,2*a,0,c,d)+b:0.5*e.easing.easeOutBounce(g,2*a-d,0,c,d)+0.5*c+b}})})(jQuery);
(function(e){function g(a){var b={},c=/^jQuery\d+$/;e.each(a.attributes,function(a,d){d.specified&&!c.test(d.name)&&(b[d.name]=d.value)});return b}function a(){var a=e(this);a.val()===a.attr("placeholder")&&a.hasClass("placeholder")&&(a.data("placeholder-password")?a.hide().next().show().focus():a.val("").removeClass("placeholder"))}function b(){var b,c=e(this);if(""===c.val()||c.val()===c.attr("placeholder")){if(c.is(":password")){if(!c.data("placeholder-textinput")){try{b=c.clone().attr({type:"text"})}catch(d){b=
e("<input>").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);
