function blogger_showrecentposts(ReplacementFor_STXLOCALVAR_K){try{for(var ReplacementFor_STXLOCALVAR_C=0;ReplacementFor_STXLOCALVAR_C<5;ReplacementFor_STXLOCALVAR_C++){var ReplacementFor_STXLOCALVAR_I=ReplacementFor_STXLOCALVAR_K.feed.entry[ReplacementFor_STXLOCALVAR_C];var ReplacementFor_STXLOCALVAR_A=ReplacementFor_STXLOCALVAR_I.title.$t;var ReplacementFor_STXLOCALVAR_E;if(ReplacementFor_STXLOCALVAR_C==ReplacementFor_STXLOCALVAR_K.feed.entry.length){break;}for(var ReplacementFor_STXLOCALVAR_B=0;ReplacementFor_STXLOCALVAR_B<ReplacementFor_STXLOCALVAR_I.link.length;ReplacementFor_STXLOCALVAR_B++){if(ReplacementFor_STXLOCALVAR_I.link[ReplacementFor_STXLOCALVAR_B].rel=="alternate"){ReplacementFor_STXLOCALVAR_E=ReplacementFor_STXLOCALVAR_I.link[ReplacementFor_STXLOCALVAR_B].href;break;}}var ReplacementFor_STXLOCALVAR_G=ReplacementFor_STXLOCALVAR_I.published.$t.substring(0,10);var ReplacementFor_STXLOCALVAR_D=ReplacementFor_STXLOCALVAR_I.author[0].name.$t;if("content" in ReplacementFor_STXLOCALVAR_I){var ReplacementFor_STXLOCALVAR_H=ReplacementFor_STXLOCALVAR_I.content.$t;}else{if("summary" in ReplacementFor_STXLOCALVAR_I){var ReplacementFor_STXLOCALVAR_H=ReplacementFor_STXLOCALVAR_I.summary.$t;}else{var ReplacementFor_STXLOCALVAR_H="";}}var ReplacementFor_STXLOCALVAR_J=/<\S[^>]*>/g;ReplacementFor_STXLOCALVAR_H=ReplacementFor_STXLOCALVAR_H.replace(ReplacementFor_STXLOCALVAR_J,"");if(ReplacementFor_STXLOCALVAR_H.length>70){ReplacementFor_STXLOCALVAR_H=ReplacementFor_STXLOCALVAR_H.substring(0,70);ReplacementFor_STXLOCALVAR_H=ReplacementFor_STXLOCALVAR_H+"...";}document.write("<p>");document.write('<a href="'+ReplacementFor_STXLOCALVAR_E+'">'+ReplacementFor_STXLOCALVAR_A+"</a><br>");document.write(ReplacementFor_STXLOCALVAR_H+"<br>");document.write(ReplacementFor_STXLOCALVAR_D+", "+ReplacementFor_STXLOCALVAR_G+"</p>");}}catch(ReplacementFor_STXLOCALVAR_F){}}function flickr_public(ReplacementFor_STXLOCALVAR_C,ReplacementFor_STXLOCALVAR_B){try{var ReplacementFor_STXLOCALVAR_E=new Date();var ReplacementFor_STXLOCALVAR_A=ReplacementFor_STXLOCALVAR_E.getMilliseconds();document.write('<div id="flickr_public_'+ReplacementFor_STXLOCALVAR_A+'"></div>');document.write('<script type="text/javascript">');document.write("$(document).ready(function(){");document.write("var max = "+ReplacementFor_STXLOCALVAR_B+"-1;");document.write("var imgUrl;");document.write('$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags='+escape(ReplacementFor_STXLOCALVAR_C)+'&lang=en-us&format=json&jsoncallback=?", function(data){');document.write("$.each(data.items, function(i, item){");document.write('imgUrl=item.media.m.replace("_m.","_s.");');document.write('$("<img/>").attr("src", imgUrl).attr("title", item.title).attr("style","margin:5px;border:none;").appendTo("#flickr_public_'+ReplacementFor_STXLOCALVAR_A+'").wrap("<a href=\'" + item.link + "\'></a>");');document.write("if (i==max) return false;");document.write("});");document.write("});");document.write("});");document.write("<\/script>");}catch(ReplacementFor_STXLOCALVAR_D){}}function flickr_user(ReplacementFor_STXLOCALVAR_E,ReplacementFor_STXLOCALVAR_B){try{var ReplacementFor_STXLOCALVAR_D=new Date();var ReplacementFor_STXLOCALVAR_A=ReplacementFor_STXLOCALVAR_D.getMilliseconds();document.write('<div id="flickr_user_'+ReplacementFor_STXLOCALVAR_A+'"></div>');document.write('<script type="text/javascript">');document.write("$(document).ready(function(){");document.write("var max = "+ReplacementFor_STXLOCALVAR_B+"-1;");document.write("var imgUrl;");document.write('$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?id='+escape(ReplacementFor_STXLOCALVAR_E)+'&lang=en-us&format=json&jsoncallback=?", function(data){');document.write("$.each(data.items, function(i, item){");document.write('imgUrl=item.media.m.replace("_m.","_s.");');document.write('$("<img/>").attr("src", imgUrl).attr("title", item.title).attr("style","margin:5px;border:none;width:100px;").appendTo("#flickr_user_'+ReplacementFor_STXLOCALVAR_A+'").wrap("<a href=\'" + item.link + "\'></a>");');document.write("if (i==max) return false;");document.write("});");document.write("});");document.write("});");document.write("<\/script>");}catch(ReplacementFor_STXLOCALVAR_C){}}function twitter_public(ReplacementFor_STXLOCALVAR_A){try{document.write('<div id="twitter_public"></div>');document.write('<script type="text/javascript">');document.write("$(document).ready(function(){");document.write("var max = "+ReplacementFor_STXLOCALVAR_A+"-1;");document.write("$.getJSON('http://www.twitter.com/statuses/public_timeline.json?count=5&callback=?', function(data){");document.write("$.each(data, function(index, item){");document.write("$(\"#twitter_public\").append('<div style=\"padding:5px\">' + item.text.doLinks() + '<br />' + '<a href=\"http://www.twitter.com/'+item.user.screen_name+'/statuses/'+item.id+'\">'+relative_time(item.created_at) + '</a></div>');");document.write("if (index==max) return false;");document.write("});");document.write("});");document.write("});");document.write("<\/script>");}catch(ReplacementFor_STXLOCALVAR_B){}}function twitter_user(ReplacementFor_STXLOCALVAR_E,ReplacementFor_STXLOCALVAR_B){try{var ReplacementFor_STXLOCALVAR_D=new Date();var ReplacementFor_STXLOCALVAR_A=ReplacementFor_STXLOCALVAR_D.getMilliseconds();document.write('<div id="twitter_user_'+ReplacementFor_STXLOCALVAR_A+'"></div>');document.write('<script type="text/javascript">');document.write("$(document).ready(function(){");document.write("var max = "+ReplacementFor_STXLOCALVAR_B+"-1;");document.write("$.getJSON('http://www.twitter.com/status/user_timeline/"+escape(ReplacementFor_STXLOCALVAR_E)+".json?count=5&callback=?', function(data){");document.write("$.each(data, function(index, item){");document.write('$("#twitter_user_'+ReplacementFor_STXLOCALVAR_A+"\").append('<div style=\"padding:5px\">' + item.text.doLinks() + '<br />' + '<a href=\"http://www.twitter.com/'+item.user.screen_name+'/statuses/'+item.id+'\">'+relative_time(item.created_at) + '</a></div>');");document.write("if (index==max) return false;");document.write("});");document.write("});");document.write("});");document.write("<\/script>");}catch(ReplacementFor_STXLOCALVAR_C){}}function relative_time(ReplacementFor_STXLOCALVAR_C){var ReplacementFor_STXLOCALVAR_B=ReplacementFor_STXLOCALVAR_C.split(" ");ReplacementFor_STXLOCALVAR_C=ReplacementFor_STXLOCALVAR_B[1]+" "+ReplacementFor_STXLOCALVAR_B[2]+", "+ReplacementFor_STXLOCALVAR_B[5]+" "+ReplacementFor_STXLOCALVAR_B[3];var ReplacementFor_STXLOCALVAR_A=Date.parse(ReplacementFor_STXLOCALVAR_C);var ReplacementFor_STXLOCALVAR_E=(arguments.length>1)?arguments[1]:new Date();var ReplacementFor_STXLOCALVAR_F=parseInt((ReplacementFor_STXLOCALVAR_E.getTime()-ReplacementFor_STXLOCALVAR_A)/1000);ReplacementFor_STXLOCALVAR_F=ReplacementFor_STXLOCALVAR_F+(ReplacementFor_STXLOCALVAR_E.getTimezoneOffset()*60);var ReplacementFor_STXLOCALVAR_D="";if(ReplacementFor_STXLOCALVAR_F<60){ReplacementFor_STXLOCALVAR_D="a minute ago";}else{if(ReplacementFor_STXLOCALVAR_F<120){ReplacementFor_STXLOCALVAR_D="couple of minutes ago";}else{if(ReplacementFor_STXLOCALVAR_F<(45*60)){ReplacementFor_STXLOCALVAR_D=(parseInt(ReplacementFor_STXLOCALVAR_F/60)).toString()+" minutes ago";}else{if(ReplacementFor_STXLOCALVAR_F<(90*60)){ReplacementFor_STXLOCALVAR_D="an hour ago";}else{if(ReplacementFor_STXLOCALVAR_F<(24*60*60)){ReplacementFor_STXLOCALVAR_D=""+(parseInt(ReplacementFor_STXLOCALVAR_F/3600)).toString()+" hours ago";}else{if(ReplacementFor_STXLOCALVAR_F<(48*60*60)){ReplacementFor_STXLOCALVAR_D="1 day ago";}else{ReplacementFor_STXLOCALVAR_D=(parseInt(ReplacementFor_STXLOCALVAR_F/86400)).toString()+" days ago";}}}}}}return ReplacementFor_STXLOCALVAR_D;}String.prototype.doLinks=function(){return this.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/,function(ReplacementFor_STXLOCALVAR_A){return ReplacementFor_STXLOCALVAR_A.link(ReplacementFor_STXLOCALVAR_A);});};

