jQuery(document).ready(function($){if($('.blogpost .get_social').length>0&&!($.browser.msie&&parseInt($.browser.version)<7)){var entrycY=parseInt($('.blogpost .entry-content').offset().top)-20;var getSocial=$('.blogpost .get_social');var pulltoX=getSocial.css('margin-left');$(window).data('scrollBound',false);function positionShareScroll(){var scrollY=$(window).scrollTop();var fixedShare=getSocial.css('position')=='fixed';if(scrollY>entrycY&&!fixedShare){getSocial.stop().css({position:'fixed',left:'50%',top:20,marginLeft:-566});}else if(scrollY<entrycY&&fixedShare){getSocial.css({position:'relative',left:0,top:0,marginLeft:pulltoX});}}
$(window).resize(function(){var windowW=$(window).width();var pulledOutside=getSocial.css('margin-left')==pulltoX;if(windowW>=1137){if(!$(window).data('scrollBound')){if(!pulledOutside){getSocial.animate({marginLeft:pulltoX});$('.small_social').hide();$('.big_social').show();getSocial.css('border-width','1px');getSocial.width('auto');getSocial.css({marginRight:7,marginTop:0});}
$(window).data('scrollBound',true).bind('scroll.positionShare',function(){positionShareScroll()});positionShareScroll();}}else{if(pulledOutside||$(window).data('scrollBound')){getSocial.css({position:'relative',left:0,top:0}).animate({marginLeft:0});$('.big_social').hide();$('.small_social').show();getSocial.css({marginTop:-4,marginBottom:4});getSocial.css('border-width',0);var content_width=$('.blogpost').width();if(content_width=='undefined')content_width=628;if(getSocial.attr('_width')){getSocial.width(getSocial.attr('_width'));var block_width=getSocial.attr('_width');}else{getSocial.attr('_width',getSocial.width());var block_width=getSocial.width();}
getSocial.width(content_width);var add_padding=((content_width-block_width)/(getSocial.find('.smallbutton').length*1.5))-30;getSocial.find('.smallbutton').css({paddingLeft:add_padding,paddingRight:add_padding});$(window).data('scrollBound',false).unbind('scroll.positionShare');}}});$(window).resize();}
initExternalLinks();initTagLinks();});function initExternalLinks(){jQuery('a[rel*=external]').each(function(){jQuery(this).attr('target','_blank');});}
function initTagLinks(){jQuery('.get_social a, .get_social iframe').not('#li_email').each(function(){var lot_cat=jQuery(this).parents('.get_social').attr('class');lot_cat=lot_cat.replace('get_social ','');jQuery(this).click(function(){LOTCC.bcpw("int",lot_cat);})});}
