/*
* DC jQuery Social Share Buttons
* Copyright (c) 2011 Design Chemical
* http://www.designchemical.com/blog/index.php/premium-jquery-plugins/jquery-social-share-buttons-plugin/
* Version 2.2 (5-08-2012)
*
* Includes jQuery Easing v1.3
* http://gsgd.co.uk/sandbox/jquery/easing/
* Copyright (c) 2008 George McGinley Smith
* jQuery Easing released under the BSD License.
*/
// t: current time, b: begInnIng value, c: change In value, d: duration
jQuery.easing["jswing"]=jQuery.easing["swing"];
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*(--t*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/
2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,
t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return t==0?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return t==d?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},
easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*0.3;if(a');var $a=$("#"+id);var $c=$("."+o.classContent,$a);var url=o.url;var erl=encodeURI(url);var h_c=$c.outerHeight(true);var h_f=$a.outerHeight();var socialshare={init:function(){socialshare.loading();if(o.floater){socialshare.floater();
$(window).scroll(function(){socialshare.floater()})}if(o.autoClose)socialshare.autoClose();else $a.addClass("active");socialshare.print();$(".pinItButton").click(function(e){socialshare.pinit();e.preventDefault()});socialshare.tabClick()},loading:function(){var css=o.floater==true?"absolute":"fixed";$a.css({position:css,zIndex:1E4});if(o.location=="top")$a.css({top:o.offsetLocation});else $a.css({bottom:o.offsetLocation});if(o.location=="bottom")$a.addClass(o.location);if(o.center>0)o.offsetAlign=
"50%";if(o.align=="left"){$a.css({left:o.offsetAlign});if(o.center>0)$a.css({marginLeft:-o.center+"px"})}else{$a.css({right:o.offsetAlign});if(o.center>0)$a.css({marginRight:-o.center+"px"})}var ba=o.buttons.split(",");$.each(ba,function(index,value){socialshare.buttons(value);if(value=="linkedin")$.getScript("http://platform.linkedin.com/in.js?async=true",function(){IN.init()})});if(o.autoClose)$a.hide();if(o.loadOpen)socialshare.open()},open:function(){$("."+o.classWrapper).css({zIndex:1E4});$a.css({zIndex:2});
if(o.location=="bottom")$a.animate({marginTop:"-"+h_c+"px"},o.speed).slideDown(o.speed);else $a.slideDown(o.speed);$a.addClass("active")},close:function(){$a.slideUp(o.speed,function(){$a.removeClass("active")})},floater:function(){var scroll=$(document).scrollTop();var x=o.location=="bottom"?$(window).height()-h_f:0;var moveTo=o.offsetLocation+scroll+x;$a.stop().animate({top:moveTo},o.speedFloat,o.easing)},tabClick:function(){$("."+o.classOpen).click(function(e){if($a.not("active"))socialshare.open();
e.preventDefault()});$("."+o.classClose).click(function(e){if($a.hasClass("active"))socialshare.close();e.preventDefault()});$("."+o.classToggle).click(function(e){if($a.hasClass("active"))socialshare.close();else socialshare.open();e.preventDefault()})},autoClose:function(){$("body").mouseup(function(e){if($a.hasClass("active"))if(!$(e.target).parents("."+o.classWrapper,$a).length)socialshare.close()})},print:function(){$(".link-print").click(function(){window.print();return false})},email:function(){var domain=
"//",name="/";var email=o.email.replace(domain,".").replace(name,"@");email=email.split("").reverse().join("");var mailto="mailto:"+email;return mailto},pinit:function(){var e=document.createElement("script");e.setAttribute("type","text/javascript");e.setAttribute("charset","UTF-8");e.setAttribute("src","http://assets.pinterest.com/js/pinmarklet.js?r="+Math.random()*99999999);document.body.appendChild(e)},buttons:function(type){var b='
';var btn=
"none";switch(type){case "twitter":if(o.size=="vertical")btn="vertical";else if(o.size=="horizontal")btn="horizontal";b+='