$(function(){ $('#recslide').show(); var recslide_gone_in=false; var bts_scroll_lock=false; $(window).scroll(function() { if(bts_scroll_lock)return; if(recslide_gone_in==false)$('#recslide .expand').hide(); if(document.getElementById("recslide_place_holder")){ var distanceTop=$('#recslide_place_holder').offset().top-$(window).height(); } else { var distanceTop = $(document).height() - $(window).height(); } if($(window).scrollTop()>=distanceTop) { if(recslide_gone_in==false) { $('#recslide').animate({'right':'0px','bottom':'0px'},300) } else $('#recslide').animate({'bottom':'-80px','right':'0px'},300) } else $('#recslide').stop(true).animate({'right':'-430px','bottom':'0px'},300)}); $('#recslide .help').bind('click', function () { try{ location.href='http://www.techsmate.com/2012/02/about.html'; } catch(err){}}); $('#recslide .close').bind('click',function() {bts_scroll_lock=true;$('#recslide').stop(true).animate({'bottom':'-80px'},300);bts_scroll_lock=false;recslide_gone_in=true;$('#recslide .expand').show();$('#recslide .close').hide()});$('#recslide .expand').bind('click',function(){$('#recslide .expand').hide();$('#recslide').stop(true).animate({'bottom':'0px'},300);recslide_gone_in=false;$('#recslide .close').show()})}); var recslideprocessJson=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:recslideprocessRecommendation,dataType:'jsonp',cache:true})};$.ajax({url:'/feeds/posts/summary',data:{'max-results':'1','alt':'json-in-script'},success:recslideprocessJson,dataType:'jsonp',cache:true}); var recslideprocessRecommendation=function(json,status){ try{ if(json.feed.entry){ for(var i=0;i')} catch(errr){} var link=$(''); link.attr('title',title);link.text(title);link.attr('href',url); $('#recslide_title').empty(); link.appendTo($('#recslide_title')); $('#share_box').empty(); $('#share_box').html(); return }}}} catch(error){$('#recslide_title').html('

Sorry! Some error occurred while fetching the Blog Feed.

')} };