$(function(){if(typeof bpslidein_custom_css=='undefined'||!bpslidein_custom_css)$('head').append('');$('#bpslidein').show();var bpslidein_gone_in=false;var bp_scroll_lock=false;$(window).scroll(function(){if(bp_scroll_lock)return;if(bpslidein_gone_in==false)$('#bpslidein .expand').hide();if(document.getElementById("bpslidein_place_holder")){var distanceTop=$('#bpslidein_place_holder').offset().top-$(window).height();} else {var distanceTop = $(document).height() - $(window).height();}if($(window).scrollTop()>=distanceTop){if(bpslidein_gone_in==false){$('#bpslidein').animate({'right':'0px','bottom':'0px'},300)}else $('#bpslidein').animate({'bottom':'-80px','right':'0px'},300)}else $('#bpslidein').stop(true).animate({'right':'-430px','bottom':'0px'},300)});$('#bpslidein .help').bind('click', function () {try{location.href='http://gj37765.blogspot.com/2012/01/add-recommended-post-slide-out-at.html?utm_source=blog&utm_medium=gadget&utm_campaign=bp_slideout';}catch(err){}});$('#bpslidein .close').bind('click',function(){bp_scroll_lock=true;$('#bpslidein').stop(true).animate({'bottom':'-80px'},300);bp_scroll_lock=false;bpslidein_gone_in=true;$('#bpslidein .expand').show();$('#bpslidein .close').hide()});$('#bpslidein .expand').bind('click',function(){$('#bpslidein .expand').hide();$('#bpslidein').stop(true).animate({'bottom':'0px'},300);bpslidein_gone_in=false;$('#bpslidein .close').show()})});var bpslideinprocessJson=function(json,status){if(json.feed.entry)var randomNum=Math.ceil(Math.random()*json.feed.openSearch$totalResults.$t);$.ajax({url:'/feeds/posts/summary',data:{'max-results':'2','alt':'json-in-script','start-index':randomNum},success:bpslideinprocessRecommendation,dataType:'jsonp',cache:true})};$.ajax({url:'/feeds/posts/summary',data:{'max-results':'1','alt':'json-in-script'},success:bpslideinprocessJson,dataType:'jsonp',cache:true});var bpslideinprocessRecommendation=function(json,status){try{if(json.feed.entry){for(var i=0;i')}catch(error){}var link=$('');link.attr('title',title);link.text(title);link.attr('href',url);$('#bpslidein_title').empty();link.appendTo($('#bpslidein_title'));return}}}}catch(error){$('#bpslidein_title').html('

Sorry! Some error occurred while fetching the Blog Feed.

')}};