text: var rpssocial;rpssocial={apiconfig:[],analytics:"g",setanalytics:function(o){rpssocial.analytics=o},addurlparam:function(o,e,t){var r=/\?.+$/;return r.test(o)?o+"&"+e+"="+t:o+"?"+e+"="+t},defaulturlparam:function(o){var e;return e=o,e=rpssocial.addurlparam(e,"utm_campaign","general"),e=rpssocial.addurlparam(e,"utm_source","site")},sites:{facebook:{buildurl:function(o){var e=rpssocial.defaulturlparam(o.url);return e=rpssocial.addurlparam(e,"utm_medium","facebook"),"http://www.facebook.com/share.php?u="+encodeURIComponent(e)+"&title="+encodeURIComponent(o.title)},popwidth:550,popheight:420,popscroll:"no",loadapi:function(o){!function(o,e){var t,r="facebook-jssdk",i=o.getElementsByTagName("script")[0];o.getElementById(r)||(t=o.createElement("script"),t.id=r,t.async=!0,t.src="//connect.facebook.net/en_US/all"+(e?"/debug":"")+".js",i.parentNode.insertBefore(t,i))}(document,!1),window.fbAsyncInit=function(){FB.init({appId:"1509711475952744",xfbml:!0,version:"v2.1"})}}},twitter:{buildurl:function(o){var e=rpssocial.defaulturlparam(o.url);return e=rpssocial.addurlparam(e,"utm_medium","twitter"),"http://twitter.com/intent/tweet?url="+encodeURIComponent(e)+"&text="+encodeURIComponent(o.title)},popwidth:550,popheight:460,popscroll:"no",loadapi:function(o){window.twttr=function(o,e,t){var r,i=window.twttr||{},n=o.getElementsByTagName(e)[0];return o.getElementById(t)?i:(r=o.createElement(e),r.id=t,r.src="//platform.twitter.com/widgets.js",n.parentNode.insertBefore(r,n),i._e=[],i.ready=function(o){i._e.push(o)},i)}(document,"script","twitter-wjs"),window.twttr.ready(function(e){e.events.bind("click",function(o){window.rpssocial.share.track({type:"click",site:"twitter"})}),"function"==typeof o&&o.apply()})}},googleplus:{buildurl:function(o){var e=rpssocial.defaulturlparam(o.url);return e=rpssocial.addurlparam(e,"utm_medium","googleplus"),"https://plus.google.com/share?url="+encodeURIComponent(e)+"&hl=en"},popwidth:600,popheight:600,popscroll:"yes",loadapi:function(o){jQuery.getScript("https://apis.google.com/js/plusone.js",function(){"function"==typeof o&&o.apply()})}},linkedin:{buildurl:function(o){var e=rpssocial.defaulturlparam(o.url);return e=rpssocial.addurlparam(e,"utm_medium","linkedin"),"http://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(rpssocial.addurlparam(o.url,"sr","share_linkedin"))+"&title="+encodeURIComponent(o.title)},popwidth:550,popheight:570,popscroll:"no",loadapi:function(o){jQuery.getScript("http://platform.linkedin.com/in.js",function(){"function"==typeof o&&o.apply()})}},email:{buildurl:function(o){return"mailto:?subject=[Raritan Photographic Society] "+o.title+"&body="+o.title+": "+rpssocial.addurlparam(o.url,"sr","email")},popwidth:1,popheight:1,popscroll:"no"},buffer:{buildurl:function(o){return"http://bufferapp.com/add?text="+encodeURIComponent(o.title)+"&url="+encodeURIComponent(rpssocial.addurlparam(o.url,"sr","buffer"))},popwidth:750,popheight:500,popscroll:"yes"},digg:{buildurl:function(o){return"http://www.digg.com/submit?phase=2&url="+encodeURIComponent(rpssocial.addurlparam(o.url,"sr","digg"))+"&title="+encodeURIComponent(o.title)},popwidth:970,popheight:500,popscroll:"yes"},stumbleupon:{buildurl:function(o){return"http://www.stumbleupon.com/submit?url="+encodeURIComponent(rpssocial.addurlparam(o.url,"sr","stumbleupon"))+"&title="+encodeURIComponent(o.title)},popwidth:750,popheight:500,popscroll:"yes"},delicious:{buildurl:function(o){return"http://del.icio.us/post?url="+encodeURIComponent(rpssocial.addurlparam(o.url,"sr","delicious"))+"&title="+encodeURIComponent(o.title)},popwidth:750,popheight:500,popscroll:"yes"},technorati:{buildurl:function(o){return"http://technorati.com/faves?add="+encodeURIComponent(rpssocial.addurlparam(o.url,"sr","technorati"))+"&title="+encodeURIComponent(o.title)},popwidth:750,popheight:500,popscroll:"yes"},posterous:{buildurl:function(o){return"http://posterous.com/share?linkto="+encodeURIComponent(rpssocial.addurlparam(o.url,"sr","posterous"))},popwidth:1020,popheight:650,popscroll:"yes"},tumblr:{buildurl:function(o){return"http://www.tumblr.com/share?v=3&u="+encodeURIComponent(rpssocial.addurlparam(o.url,"sr","tumblr"))+"&t="+encodeURIComponent(o.title)},popwidth:750,popheight:500,popscroll:"yes"},reddit:{buildurl:function(o){return"http://www.reddit.com/submit?url="+encodeURIComponent(rpssocial.addurlparam(o.url,"sr","reddit"))+"&title="+encodeURIComponent(o.title)},popwidth:750,popheight:500,popscroll:"yes"},googlebookmarks:{buildurl:function(o){return"http://www.google.com/bookmarks/mark?op=edit&bkmk="+encodeURIComponent(rpssocial.addurlparam(o.url,"sr","googlebookmarks"))+"&title="+encodeURIComponent(o.title)},popwidth:750,popheight:500,popscroll:"yes"},newsvine:{buildurl:function(o){return"http://www.newsvine.com/_tools/seed&save?u="+encodeURIComponent(rpssocial.addurlparam(o.url,"sr","newsvine"))+"&h="+encodeURIComponent(o.title)},popwidth:1020,popheight:500},"ping.fm":{buildurl:function(o){return"http://ping.fm/ref/?link="+encodeURIComponent(rpssocial.addurlparam(o.url,"sr","ping.fm"))+"&title="+encodeURIComponent(o.title)},popwidth:750,popheight:500,popscroll:"yes"},evernote:{buildurl:function(o){return"http://www.evernote.com/clip.action?url="+encodeURIComponent(rpssocial.addurlparam(o.url,"sr","evernote"))+"&title="+encodeURIComponent(o.title)},popwidth:980,popheight:500,popscroll:"yes"},friendfeed:{buildurl:function(o){return"http://www.friendfeed.com/share?url="+encodeURIComponent(rpssocial.addurlparam(o.url,"sr","friendfeed"))+"&title="+encodeURIComponent(o.title)},popwidth:750,popheight:500,popscroll:"yes"}},share:{},setapiconfig:function(o){rpssocial.apiconfig=o},init:function(){var o,e,t=rpssocial.apiconfig;for(o=0;o<t.length;o++)e=t[o],"function"==typeof e.success?rpssocial.sites[e.site].loadapi(e.success):rpssocial.sites[e.site].loadapi()},facebook:function(o){var e=rpssocial.defaulturlparam(o.url);e=rpssocial.addurlparam(e,"utm_medium","facebook"),FB.ui({method:"share",href:e},function(o){o&&!o.error_code?console.log("OK: "+JSON.stringify(o)):console.log("Not OK: "+JSON.stringify(o))})}},rpssocial.share={data:{bars:{}},addconfig:function(o){rpssocial.share.data.bars[o.id]=o},setconfig:function(o){var e;for(e=0;e<o.length;e++)rpssocial.share.addconfig(o[e])},updatesingleurl:function(o,e,t){var r=rpssocial.share.data.bars[o];r.url=e,r.title=t,rpssocial.share.data.bars[o]=r},click:function(o,e){var t,r;window.console&&console.log("clicked "+e+" in: "+o),r=rpssocial.share.data.bars[o],t=rpssocial.sites[e],"facebook"===e?rpssocial.facebook(r):rpssocial.share.popup(t.buildurl(r),e,t.popwidth,t.popheight,t.popscroll)},popup:function(o,e,t,r,i){var n=t||800,l=r||500,p=Math.floor(((screen.availWidth||1024)-n)/2),a=Math.floor(((screen.availHeight||700)-l)/2);return window.open(o,"rps_pop_"+e,"width="+t+",height="+r+",left="+p+",top="+a+",resizable=yes,scrollbars="+i)},track:function(o){window.console&&console.log(o);try{"o"===rpssocial.analytics?jsmd&&("click"===o.type?jsmd.trackMetrics("social-click",{clickObj:{socialType:o.site+"_click"}}):"success"===o.type&&jsmd.trackMetrics("social-click",{clickObj:{socialType:o.site+"_post"}})):"b"===rpssocial.analytics?"function"==typeof bangoSocial&&bangoSocial({socialMedia:o.site}):"g"===rpssocial.analytics&&"function"==typeof __gaTracker&&"ck"===o.type&&__gaTracker("send",{hitType:"social",socialNetwork:o.site,socialAction:"share",socialTarget:window.location.href})}catch(o){window.console&&console.log("error thrown while registering click tracking. Message - "+o.message)}}},function(o,e,t){o(t).ready(function(){"use strict";o(".social-button").hover(function(){o(".share-icon").addClass("active")},function(){o(".share-icon").removeClass("active")}),rpssocial.init()})}(window.jQuery,window,document);