/**********************************************************************************************
* ~License~ This portion should accompany the Script for Legal usage and Proper Credits
* author: Swashata
* email: admin@intechgrity.com
* ProjectPage: http://code.google.com/p/recent-filtered-posts-using-jquery-blogspot/
* Instruction at Blog: http://www.intechgrity.com/2009/08/jquery-recent-post-widget-for.html
* Copyright, 2009 inTechgrity
* Licensed under the GNU General Public License v3
***********************************************************************************************/
function RecentFilteredPost(k){var l=this;var g={BlogURL:"http://www.intechgrity.com",tag:[],maxPost:10,containerId:"",thumbH:32,thumbW:32,ulClass:"itg",aClass:"",onLoad:false,defImg:"http://i29.tinypic.com/2namq9h.png",imgEna:true,imgClass:"recent-image",aPermaTitle:"Permalink to"};g=$.extend({},g,k);if(!g.containerId){g.containerId="#recent-post";document.write('
')}var c=$(g.containerId);var j=c.html();var h=0;var i=function(z,q,t,B){var u=t;var p=B;var x=z.feed.entry;if(x){for(var r=0;r'+(g.imgEna?'
':"")+s+"";mainUl.append(q)};var e=function(){c.html("");$(''+j+"
").appendTo(c);mainUl=$('').appendTo(c);var n=(g.imgEna)?"/feeds/posts/default":"/feeds/posts/summary";if(g.tag.length==0){$.ajax({url:g.BlogURL+n,data:{"max-results":g.maxPost,alt:"json-in-script"},success:function(p,o){i(p,o,"recent",0)},dataType:"jsonp",cache:true})}else{for(var m=0;m