/gi;function a(c){o.getScript("http://"+c+"http://.disqus.com/blogger_index.js")}function n(){if(j.loading){return}j.loading=true;if(!j.olderPostsLink){j.loadMoreDiv.hide();return}j.loadMoreDiv.find("a").addClass("process");o("#main-wrapper .textlast").hide();o("#main-wrapper .xitem1").append('Loading...');o.get(j.olderPostsLink,"html").done(function(d){var f=o("").append(d.replace(p,""));var e=f.find("a.blog-pager-older-link");if(e){j.olderPostsLink=e.attr("href")}else{j.olderPostsLink="";j.loadMoreDiv.hide()}var c=f.find(j.postContainerSelector).children(".date-outer");c.find(".post-summary").each(function(){var y,z,x,D,g,C,A,B,h,i="";z=o(this).parent(".post-body");x=z.children("textarea").val();h=x.replace(/<(.*?)>/g,"").replace(/[\n\r]+/g," ");D=o("").append(x.replace(p,""));g=D.find("img");iframex=D.find("iframe");parens=o(this).parents(".post");A=parens.find(".post-title.entry-title a").attr("href");titlex=parens.find(".post-title.entry-title a").text();if(g.length===0&&iframex.length===0){y=''}else{if(g.length===0&&iframex.length>0){C=iframex[0].src;if(C.indexOf("youtube.com")!=-1||C.indexOf("youtu.be")!=-1){B=C.match(/(\?v=|\&v=|\/\d\/|\/embed\/|\/v\/|\.be\/)([a-zA-Z0-9\-\_]+)/);y=''}else{y=''}}else{y=''}}i=y+'
"+h.substring(0,j.summaryLength)+"…
";o(this).html(i)});o(j.postContainerSelector).append(c);datenya(o);viewMode({viewmodedefault:j.viewmodedefault,cookielist:j.cookielist,cookiegrid:j.cookiegrid});if(window._gaq){window._gaq.push(["_trackPageview",j.olderPostsLink])}if(window.gapi&&window.gapi.plusone&&window.gapi.plusone.go){window.gapi.plusone.go()}if(window.disqus_shortname){a(window.disqus_shortname)}if(window.FB&&window.FB.XFBML&&window.FB.XFBML.parse){window.FB.XFBML.parse()}j.loadMoreDiv.find("a").removeClass("process");o("#main-wrapper .xitem1 .load").remove();o("#main-wrapper .textlast").show();j.loading=false})}function k(){if(_WidgetManager._GetAllData().blog.pageType=="item"){return}j.olderPostsLink=o("a.blog-pager-older-link").attr("href");if(!j.olderPostsLink){return}var c=o('
');j.loadMoreDiv.append(c);j.loadMoreDiv.insertBefore(o("#blog-pager"));o("#blog-pager").hide()}m.ready(k)})(jQuery)}; //PageNavi by MKR function pageNavi(a){(function(e){var i={postperpage:6,numshowpage:3,previous:"«",next:"»",LatestText:"Latest Post"};i=e.extend({},i,a);var g="/";var d=location.href;var k;var l;var j;var f;var m=function(r){var t="";nomerkiri=parseInt(i.numshowpage/2);if(nomerkiri==i.numshowpage-nomerkiri){i.numshowpage=nomerkiri*2+1}mulai=j-nomerkiri;if(mulai<1){mulai=1}maksimal=parseInt(r/i.postperpage)+1;if(maksimal-1==r/i.postperpage){maksimal=maksimal-1}akhir=mulai+i.numshowpage-1;if(akhir>maksimal){akhir=maksimal}var n=parseInt(j)-1;if(j>1){if(j==2){if(l=="page"){t+=''+i.previous+""}else{t+=''+i.previous+""}}}if(mulai>1){if(l=="page"){t+='1'}else{t+='1'}}if(mulai>2){t+=' ... '}for(var u=mulai;u<=akhir;u++){if(j==u){t+=''+u+"";if(j>1){var q=e(".menu-xitem .textlast").html();if(q.length===1){e(".menu-xitem .textlast").append(i.LatestText)}e(".menu-xitem .xitem1").append(" : Page "+u+"")}}else{if(u==1){if(l=="page"){t+='1'}else{t+=''+u+""}else{t+=''+u+""}}}}if(akhir'+maksimal+""}else{t+=''+maksimal+""}}var s=parseInt(j)+1;if(j'+i.next+""}else{t+=''+i.next+""}}var v=document.getElementsByName("pageArea");var w=document.getElementById("blog-pager");for(var o=0;o0){t=""}if(w){w.innerHTML=t}jQuery("#blog-pager").css("display","block");jQuery("#blog-pager a.xpagex, #blog-pager a.xlabelx").click(function(){var p=jQuery(this).attr("alt");jsonstart=(p-1)*i.postperpage;k=p;if(l=="page"){e.get(g+"feeds/posts/summary?start-index="+jsonstart+"&max-results=1&alt=json-in-script",h,"jsonp")}else{e.get(g+"feeds/posts/summary/-/"+f+"?start-index="+jsonstart+"&max-results=1&alt=json-in-script",h,"jsonp")}return false})};var b=function(n){var p=n.feed;var o=parseInt(p.openSearch$totalResults.$t,10);m(o)};var c=function(){var n=d;if(n.indexOf("/search/label/")!=-1){if(n.indexOf("?updated-max")!=-1){f=n.substring(n.indexOf("/search/label/")+14,n.indexOf("?updated-max"))}else{if(n.indexOf("?&max")!=-1){f=n.substring(n.indexOf("/search/label/")+14,n.indexOf("?&max"))}else{f=n.substr(n.lastIndexOf("/"))}}}if(n.indexOf("?q=")==-1&&n.indexOf(".html")==-1){if(n.indexOf("/search/label/")==-1){l="page";if(d.indexOf("#PageNo=")!=-1){j=d.substring(d.indexOf("#PageNo=")+8,d.length)}else{j=1}e.get(g+"feeds/posts/summary?max-results=1&alt=json-in-script",b,"jsonp")}else{l="label";if(n.indexOf("&max-results=")==-1){i.postperpage=20}if(d.indexOf("#PageNo=")!=-1){j=d.substring(d.indexOf("#PageNo=")+8,d.length)}else{j=1}e.get(g+"feeds/posts/summary/-/"+f+"?max-results=1&alt=json-in-script",b,"jsonp")}}};c();var h=function(o){post=o.feed.entry[0];var n=post.published.$t.substring(0,19)+post.published.$t.substring(23,29);var q=encodeURIComponent(n);if(l=="page"){var p="/search?updated-max="+q+"&max-results="+i.postperpage+"#PageNo="+k}else{var p="/search/label/"+f+"?updated-max="+q+"&max-results="+i.postperpage+"#PageNo="+k}location.href=p}})(jQuery)}; // Ajax JSON Search box by Taufik url http://ift.tt/1agc3Nt modif by MKR: function searchxx(a){(function(d){var f={blogURL:"",srcBlank:"http://ift.tt/1hfN1Co",findText:"Search results for keyword",NotfindText:"No result!",Showthumb:true,LoadingText:"Searching...",scrthumbSize:50,summaryLength:100};f=d.extend({},f,a);var b=d("#ajax-search-form"),e=b.find(":text");b.append('
');var c=d("#search-result");b.on("submit",function(){var g=e.val();c.show().html('
'+f.LoadingText+"
");d.get((f.blogURL===""?window.location.protocol+"//"+window.location.host:f.blogURL)+"/feeds/posts/default?alt=json-in-script&q="+g+"&max-results=9999",function(w){var v=w.feed.entry,r,q,u,s,h,k,m="";if(v!==undefined){m="
"+f.findText+" ""+g+""
";m+='×
- ';for(var o=0;o"+g+"");for(var n=0,t=v[o].link.length;n)<[^<]*)*<\/script>/gi;h=d("").append(r.replace(p,""));k=h.find("img");if("media$thumbnail" in v[o]){q=v[o].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+f.scrthumbSize+"-c")}else{if(k.length!=0){q=k[0].src}else{q=f.srcBlank}}}r=r.replace(/<\S[^>]*>/g,"");if(r.length>f.summaryLength){r=r.substring(0,f.summaryLength)+"..."}r=r.replace(l,""+g+"");m+='
- '+(f.Showthumb===true?'':"")+""+u+""+(f.summaryLength>0?"
"+r+"
":"")+""}m+="
');var c=d("#search-result");b.on("submit",function(){var g=e.val();c.show().html('
"+f.findText+" ""+g+""
- ';for(var o=0;o"+g+"");for(var n=0,t=v[o].link.length;n)<[^<]*)*<\/script>/gi;h=d("").append(r.replace(p,""));k=h.find("img");if("media$thumbnail" in v[o]){q=v[o].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+f.scrthumbSize+"-c")}else{if(k.length!=0){q=k[0].src}else{q=f.srcBlank}}}r=r.replace(/<\S[^>]*>/g,"");if(r.length>f.summaryLength){r=r.substring(0,f.summaryLength)+"..."}r=r.replace(l,""+g+"");m+='
- '+(f.Showthumb===true?'':"")+""+u+""+(f.summaryLength>0?"
"+r+"
":"")+""}m+="
');f.containerSelector="#related_posts"}var c=function(x,p){k++;if(x.feed.entry){for(var q=0;q
)<[^<]*)*<\/script>/gi;l=e("").append(n.replace(r,""));m=l.find("img");if("media$thumbnail" in v){w=v.media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+f.rlt_thumb+"-c")}else{if(m.length!=0){w=m[0].src}else{w=f.rlpBlank}}n=n.replace(/<\S[^>]*>/g,"");if(n.length>f.rlt_summary){n=n.substring(0,f.rlt_summary)}u=v.title.$t;if(location.href.toLowerCase()!=s.toLowerCase()){i(s,u,w,n)}}}if(k>=f.tags.length){g.attr("class","");e("#related-posts-loadingtext",b).remove();if(f.maxPosts>0){e("li:gt("+(f.maxPosts-1)+")",g).remove()}}};var i=function(q,t,v,m){var r=e("li",g);for(var p=0,l=r.length;p=0;o--){var n=e("a",r.eq(o));if(j(n)>s){if(p-o>1){r.eq(o).after(r.eq(p))}return}}if(p>0){r.eq(0).before(r.eq(p))}return}}g.append('
")};var j=function(l){var m=parseInt(l.attr("score"));return m>0?m:1};var h=function(l,m){l.attr("score",m);if(f.relevantTip){l.attr("title",f.relevantTip.replace("\d",m))}if(f.postScoreClass){l.attr("class",f.postScoreClass+m)}};var d=function(){if(f.containerSelector!="#related_posts"){var l=e(f.containerSelector);if(l.length!=1){return}b=e('
').appendTo(l)}else{b=e(f.containerSelector)}if(!f.tags){f.tags=[];e('a[rel="tag"]:lt('+f.maxTags+")").each(function(){var o=e.trim(e(this).text().replace(/\n/g,""));if(e.inArray(o,f.tags)==-1){f.tags[f.tags.length]=o}})}if(f.tags.length==0&&!f.recentTitle){return}if(f.tags.length==0){e("
"+f.recentTitle+"
").appendTo(b)}else{if(f.relatedTitle){e("
"+f.relatedTitle+"
").appendTo(b)}}if(f.loadingText){e('
'+f.loadingText+"
").appendTo(b)}g=e("").appendTo(b);if(f.tags.length==0){e.get((f.blogURL===""?window.location.protocol+"//"+window.location.host:f.blogURL)+"/feeds/posts/default?max-results="+f.maxPostsPerTag+"&orderby=published&alt=json-in-script",c,"jsonp")}else{for(var n=0,m=f.tags.length;n
- ";ntotal=0;for(var z=0;z=d.options.numComments){break}var h=e[z];for(var v=0,A=h.link.length;v':"");var s=p.lastIndexOf("/")+1,u=p.lastIndexOf("."),H=p.split("-").join(" ").substring(s,u)+"...";G=h.published.$t.substring(0,10);var r=G.substring(0,4),w=G.substring(5,7),D=G.substring(8,10),x=d.options.MonthNames[parseInt(w,10)-1],q=h.published.$t.substring(11,16),j=q.substring(0,2),y=q.substring(2,5);if(j<12){t="AM"}else{t="PM"}if(j===0){j=12}if(j>12){j=j-12}f+=' ";n=("content" in h)?h.content.$t:("summary" in h)?h.summary.$t:"";var g=n.replace(/(<([^>]+)>)/gi,"");if(g!==""&&g.length>d.options.characters){g=g.substring(0,d.options.characters);g+="..."}else{g=g}f+=(d.options.characters>0?"
"+g+"
":"");f+=" - "}}f+="
";d.$el.html(f).removeClass(d.options.loadingClass)}else{d.$el.html("No result!").removeClass(d.options.loadingClass)}},"jsonp")};d.init()};a.RecentComments.defaultOptions={blogURL:"",numComments:4,characters:100,avatarSize:50,loadingClass:"loadingxx",Showimage:true,defaultAvatar:"http://ift.tt/1afqgwl",MonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],maxfeeds:50,adminBlog:""};a.fn.RecentComments=function(b){return this.each(function(){(new a.RecentComments(this,b))})}})(jQuery); //Ajax JSON Recent Post (Random or by Tag (3 Post Type)) by MKR (function(a){a.RecentPostbyTag=function(c,b){var d=this;d.$el=a(c);d.init=function(){d.options=a.extend({},a.RecentPostbyTag.defaultOptions,b);d.$el.html('
').addClass(d.options.loadingClass);var f=function(h){var m=h.length,l,k;if(m===0){return false}while(--m){l=Math.floor(Math.random()*(m+1));k=h[m];h[m]=h[l];h[l]=k}return h};var g=function(D){var G,n,F,t,J,v,I,u,s,y,H,A,E,o="",k=(d.options.Random===true?f(D.feed.entry):D.feed.entry);if(k!==undefined){for(var B=0,r=k.length;B
)<[^<]*)*<\/script>/gi;v=a("").append(F.replace(h,""));I=v.find("img");if("media$thumbnail" in k[B]){u=k[B].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/"+d.options.ImageSize);if(k[B]===k[0]&&d.options.postType!=="s"){u=k[B].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/"+d.options.FirstImageSize)}else{if(k[B].media$thumbnail.url.indexOf("img.youtube.com")!=-1){u=k[B].media$thumbnail.url.replace("default","0")}}}else{if(I.length!=0){u=I[0].src}else{u=d.options.pBlank}}F=F.replace(/<\S[^>]*>/g,"");if(F.length>d.options.Summarylength){F=F.substring(0,d.options.Summarylength)+"..."}n=k[B].title.$t;E=k[B].published.$t.substring(0,10);s=E.substring(0,4);y=E.substring(5,7);H=E.substring(8,10);A=d.options.MonthNames[parseInt(y,10)-1];o+='
'+c.titleText+'
'+g+"
");b(c.Container+" #newstick").simplyScroll()}else{b(c.Container).html("No result!").removeClass("loading")}},"jsonp")})(jQuery)}; //Ajax Auto Featured Post (Slideshow) by MKR (function(a){a.AutofeaturedPost=function(c,b){var d=this;d.$el=a(c);d.init=function(){d.options=a.extend({},a.AutofeaturedPost.defaultOptions,b);d.$el.html('
').addClass(d.options.loadingClass);var f=function(h){var m=h.length,l,k;if(m===0){return false}while(--m){l=Math.floor(Math.random()*(m+1));k=h[m];h[m]=h[l];h[l]=k}return h};var g=function(x){var s,m,t,o,w,n="",k="",u=(d.options.RandompostActive===true?f(x.feed.entry):x.feed.entry);for(var q=0,l=u.length;q
)<[^<]*)*<\/script>/gi;newdowm=a("").append(t.replace(r,""));imgb=newdowm.find("img");if("media$thumbnail" in u[q]){w=u[q].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+d.options.ImageSize);if(u[q].media$thumbnail.url.indexOf("img.youtube.com")!=-1){w=u[q].media$thumbnail.url.replace("default","0")}}else{if(imgb.length!=0){w=imgb[0].src}else{w=d.options.pBlank}}t=t.replace(/<\S[^>]*>/g,"");if(t.length>d.options.Summarylength){t=t.substring(0,d.options.Summarylength)+"..."}m=u[q].title.$t;n+='
',width_label:"90%",opacity_elements:1});var h=function(){d.$el.find(".container_skitter").removeAttr("style")};a(window).resize(h);d.$el.removeClass(d.options.loadingClass)};var e=function(i,h){return Math.floor(Math.random()*(h-i+1))+i};if(d.options.RandompostActive===true){a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results=0&orderby=published&alt=json-in-script",function(h){var i=(d.options.MaxPost>h.feed.openSearch$totalResults.$t)?1:e(1,(h.feed.openSearch$totalResults.$t-d.options.MaxPost));a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results="+d.options.MaxPost+"&orderby=published&start-index="+i+"&alt=json-in-script",g,"jsonp")},"jsonp")}else{a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results="+d.options.MaxPost+"&orderby=published&alt=json-in-script",g,"jsonp")}};d.init()};a.AutofeaturedPost.defaultOptions={blogURL:"",MaxPost:5,ImageSize:650,Summarylength:100,RandompostActive:false,loadingClass:"loadingxx",pBlank:"http://ift.tt/1hfN01j",tagName:"Wags"};a.fn.AutofeaturedPost=function(b){return this.each(function(){(new a.AutofeaturedPost(this,b))})}})(jQuery); //Manual Featured Post (Slideshow) work with Blogger Image Widget by MKR function manualfeaturedPost(c){var a=c("#manualslidenya1");var d=a.children(".Image");if(d.length>0){a.append('
')}d.each(function(){var f=c(this);var i=f.find("h2").text();var h=f.find(".widget-content img").attr("src");var g=f.find(".widget-content a").attr("href");var e=f.find(".caption").text();c("
").appendTo("#manualslidenya1 ul.featpost");c(this).remove()});if(d.length){c("#manualslidenya1 .box_skitter_home.maxxiz-theme").skitter({label:true,numbers:true,auto_play:true,numbers_align:"center",dots:true,preview:true,structure:'prevnext
',width_label:"90%",opacity_elements:1});var b=function(){a.find(".container_skitter").removeAttr("style")};c(window).resize(b)}}; //]]>
/gi;function a(c){o.getScript("http://"+c+"http://.disqus.com/blogger_index.js")}function n(){if(j.loading){return}j.loading=true;if(!j.olderPostsLink){j.loadMoreDiv.hide();return}j.loadMoreDiv.find("a").addClass("process");o("#main-wrapper .textlast").hide();o("#main-wrapper .xitem1").append('Loading...');o.get(j.olderPostsLink,"html").done(function(d){var f=o("").append(d.replace(p,""));var e=f.find("a.blog-pager-older-link");if(e){j.olderPostsLink=e.attr("href")}else{j.olderPostsLink="";j.loadMoreDiv.hide()}var c=f.find(j.postContainerSelector).children(".date-outer");c.find(".post-summary").each(function(){var y,z,x,D,g,C,A,B,h,i="";z=o(this).parent(".post-body");x=z.children("textarea").val();h=x.replace(/<(.*?)>/g,"").replace(/[\n\r]+/g," ");D=o("").append(x.replace(p,""));g=D.find("img");iframex=D.find("iframe");parens=o(this).parents(".post");A=parens.find(".post-title.entry-title a").attr("href");titlex=parens.find(".post-title.entry-title a").text();if(g.length===0&&iframex.length===0){y=''}else{if(g.length===0&&iframex.length>0){C=iframex[0].src;if(C.indexOf("youtube.com")!=-1||C.indexOf("youtu.be")!=-1){B=C.match(/(\?v=|\&v=|\/\d\/|\/embed\/|\/v\/|\.be\/)([a-zA-Z0-9\-\_]+)/);y=''}else{y=''}}else{y=''}}i=y+'
"+h.substring(0,j.summaryLength)+"…
";o(this).html(i)});o(j.postContainerSelector).append(c);datenya(o);viewMode({viewmodedefault:j.viewmodedefault,cookielist:j.cookielist,cookiegrid:j.cookiegrid});if(window._gaq){window._gaq.push(["_trackPageview",j.olderPostsLink])}if(window.gapi&&window.gapi.plusone&&window.gapi.plusone.go){window.gapi.plusone.go()}if(window.disqus_shortname){a(window.disqus_shortname)}if(window.FB&&window.FB.XFBML&&window.FB.XFBML.parse){window.FB.XFBML.parse()}j.loadMoreDiv.find("a").removeClass("process");o("#main-wrapper .xitem1 .load").remove();o("#main-wrapper .textlast").show();j.loading=false})}function k(){if(_WidgetManager._GetAllData().blog.pageType=="item"){return}j.olderPostsLink=o("a.blog-pager-older-link").attr("href");if(!j.olderPostsLink){return}var c=o('
');j.loadMoreDiv.append(c);j.loadMoreDiv.insertBefore(o("#blog-pager"));o("#blog-pager").hide()}m.ready(k)})(jQuery)}; //PageNavi by MKR function pageNavi(a){(function(e){var i={postperpage:6,numshowpage:3,previous:"«",next:"»",LatestText:"Latest Post"};i=e.extend({},i,a);var g="/";var d=location.href;var k;var l;var j;var f;var m=function(r){var t="";nomerkiri=parseInt(i.numshowpage/2);if(nomerkiri==i.numshowpage-nomerkiri){i.numshowpage=nomerkiri*2+1}mulai=j-nomerkiri;if(mulai<1){mulai=1}maksimal=parseInt(r/i.postperpage)+1;if(maksimal-1==r/i.postperpage){maksimal=maksimal-1}akhir=mulai+i.numshowpage-1;if(akhir>maksimal){akhir=maksimal}var n=parseInt(j)-1;if(j>1){if(j==2){if(l=="page"){t+=''+i.previous+""}else{t+=''+i.previous+""}}}if(mulai>1){if(l=="page"){t+='1'}else{t+='1'}}if(mulai>2){t+=' ... '}for(var u=mulai;u<=akhir;u++){if(j==u){t+=''+u+"";if(j>1){var q=e(".menu-xitem .textlast").html();if(q.length===1){e(".menu-xitem .textlast").append(i.LatestText)}e(".menu-xitem .xitem1").append(" : Page "+u+"")}}else{if(u==1){if(l=="page"){t+='1'}else{t+=''+u+""}else{t+=''+u+""}}}}if(akhir'+maksimal+""}else{t+=''+maksimal+""}}var s=parseInt(j)+1;if(j'+i.next+""}else{t+=''+i.next+""}}var v=document.getElementsByName("pageArea");var w=document.getElementById("blog-pager");for(var o=0;o0){t=""}if(w){w.innerHTML=t}jQuery("#blog-pager").css("display","block");jQuery("#blog-pager a.xpagex, #blog-pager a.xlabelx").click(function(){var p=jQuery(this).attr("alt");jsonstart=(p-1)*i.postperpage;k=p;if(l=="page"){e.get(g+"feeds/posts/summary?start-index="+jsonstart+"&max-results=1&alt=json-in-script",h,"jsonp")}else{e.get(g+"feeds/posts/summary/-/"+f+"?start-index="+jsonstart+"&max-results=1&alt=json-in-script",h,"jsonp")}return false})};var b=function(n){var p=n.feed;var o=parseInt(p.openSearch$totalResults.$t,10);m(o)};var c=function(){var n=d;if(n.indexOf("/search/label/")!=-1){if(n.indexOf("?updated-max")!=-1){f=n.substring(n.indexOf("/search/label/")+14,n.indexOf("?updated-max"))}else{if(n.indexOf("?&max")!=-1){f=n.substring(n.indexOf("/search/label/")+14,n.indexOf("?&max"))}else{f=n.substr(n.lastIndexOf("/"))}}}if(n.indexOf("?q=")==-1&&n.indexOf(".html")==-1){if(n.indexOf("/search/label/")==-1){l="page";if(d.indexOf("#PageNo=")!=-1){j=d.substring(d.indexOf("#PageNo=")+8,d.length)}else{j=1}e.get(g+"feeds/posts/summary?max-results=1&alt=json-in-script",b,"jsonp")}else{l="label";if(n.indexOf("&max-results=")==-1){i.postperpage=20}if(d.indexOf("#PageNo=")!=-1){j=d.substring(d.indexOf("#PageNo=")+8,d.length)}else{j=1}e.get(g+"feeds/posts/summary/-/"+f+"?max-results=1&alt=json-in-script",b,"jsonp")}}};c();var h=function(o){post=o.feed.entry[0];var n=post.published.$t.substring(0,19)+post.published.$t.substring(23,29);var q=encodeURIComponent(n);if(l=="page"){var p="/search?updated-max="+q+"&max-results="+i.postperpage+"#PageNo="+k}else{var p="/search/label/"+f+"?updated-max="+q+"&max-results="+i.postperpage+"#PageNo="+k}location.href=p}})(jQuery)}; // Ajax JSON Search box by Taufik url http://ift.tt/1agc3Nt modif by MKR: function searchxx(a){(function(d){var f={blogURL:"",srcBlank:"http://ift.tt/1hfN1Co",findText:"Search results for keyword",NotfindText:"No result!",Showthumb:true,LoadingText:"Searching...",scrthumbSize:50,summaryLength:100};f=d.extend({},f,a);var b=d("#ajax-search-form"),e=b.find(":text");b.append('
');var c=d("#search-result");b.on("submit",function(){var g=e.val();c.show().html('
'+f.LoadingText+"
");d.get((f.blogURL===""?window.location.protocol+"//"+window.location.host:f.blogURL)+"/feeds/posts/default?alt=json-in-script&q="+g+"&max-results=9999",function(w){var v=w.feed.entry,r,q,u,s,h,k,m="";if(v!==undefined){m="
"+f.findText+" ""+g+""
";m+='×
- ';for(var o=0;o"+g+"");for(var n=0,t=v[o].link.length;n)<[^<]*)*<\/script>/gi;h=d("").append(r.replace(p,""));k=h.find("img");if("media$thumbnail" in v[o]){q=v[o].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+f.scrthumbSize+"-c")}else{if(k.length!=0){q=k[0].src}else{q=f.srcBlank}}}r=r.replace(/<\S[^>]*>/g,"");if(r.length>f.summaryLength){r=r.substring(0,f.summaryLength)+"..."}r=r.replace(l,""+g+"");m+='
- '+(f.Showthumb===true?'':"")+""+u+""+(f.summaryLength>0?"
"+r+"
":"")+""}m+="
');var c=d("#search-result");b.on("submit",function(){var g=e.val();c.show().html('
"+f.findText+" ""+g+""
- ';for(var o=0;o"+g+"");for(var n=0,t=v[o].link.length;n)<[^<]*)*<\/script>/gi;h=d("").append(r.replace(p,""));k=h.find("img");if("media$thumbnail" in v[o]){q=v[o].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+f.scrthumbSize+"-c")}else{if(k.length!=0){q=k[0].src}else{q=f.srcBlank}}}r=r.replace(/<\S[^>]*>/g,"");if(r.length>f.summaryLength){r=r.substring(0,f.summaryLength)+"..."}r=r.replace(l,""+g+"");m+='
- '+(f.Showthumb===true?'':"")+""+u+""+(f.summaryLength>0?"
"+r+"
":"")+""}m+="
');f.containerSelector="#related_posts"}var c=function(x,p){k++;if(x.feed.entry){for(var q=0;q
)<[^<]*)*<\/script>/gi;l=e("").append(n.replace(r,""));m=l.find("img");if("media$thumbnail" in v){w=v.media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+f.rlt_thumb+"-c")}else{if(m.length!=0){w=m[0].src}else{w=f.rlpBlank}}n=n.replace(/<\S[^>]*>/g,"");if(n.length>f.rlt_summary){n=n.substring(0,f.rlt_summary)}u=v.title.$t;if(location.href.toLowerCase()!=s.toLowerCase()){i(s,u,w,n)}}}if(k>=f.tags.length){g.attr("class","");e("#related-posts-loadingtext",b).remove();if(f.maxPosts>0){e("li:gt("+(f.maxPosts-1)+")",g).remove()}}};var i=function(q,t,v,m){var r=e("li",g);for(var p=0,l=r.length;p=0;o--){var n=e("a",r.eq(o));if(j(n)>s){if(p-o>1){r.eq(o).after(r.eq(p))}return}}if(p>0){r.eq(0).before(r.eq(p))}return}}g.append('
")};var j=function(l){var m=parseInt(l.attr("score"));return m>0?m:1};var h=function(l,m){l.attr("score",m);if(f.relevantTip){l.attr("title",f.relevantTip.replace("\d",m))}if(f.postScoreClass){l.attr("class",f.postScoreClass+m)}};var d=function(){if(f.containerSelector!="#related_posts"){var l=e(f.containerSelector);if(l.length!=1){return}b=e('
').appendTo(l)}else{b=e(f.containerSelector)}if(!f.tags){f.tags=[];e('a[rel="tag"]:lt('+f.maxTags+")").each(function(){var o=e.trim(e(this).text().replace(/\n/g,""));if(e.inArray(o,f.tags)==-1){f.tags[f.tags.length]=o}})}if(f.tags.length==0&&!f.recentTitle){return}if(f.tags.length==0){e("
"+f.recentTitle+"
").appendTo(b)}else{if(f.relatedTitle){e("
"+f.relatedTitle+"
").appendTo(b)}}if(f.loadingText){e('
'+f.loadingText+"
").appendTo(b)}g=e("").appendTo(b);if(f.tags.length==0){e.get((f.blogURL===""?window.location.protocol+"//"+window.location.host:f.blogURL)+"/feeds/posts/default?max-results="+f.maxPostsPerTag+"&orderby=published&alt=json-in-script",c,"jsonp")}else{for(var n=0,m=f.tags.length;n
- ";ntotal=0;for(var z=0;z=d.options.numComments){break}var h=e[z];for(var v=0,A=h.link.length;v':"");var s=p.lastIndexOf("/")+1,u=p.lastIndexOf("."),H=p.split("-").join(" ").substring(s,u)+"...";G=h.published.$t.substring(0,10);var r=G.substring(0,4),w=G.substring(5,7),D=G.substring(8,10),x=d.options.MonthNames[parseInt(w,10)-1],q=h.published.$t.substring(11,16),j=q.substring(0,2),y=q.substring(2,5);if(j<12){t="AM"}else{t="PM"}if(j===0){j=12}if(j>12){j=j-12}f+=' ";n=("content" in h)?h.content.$t:("summary" in h)?h.summary.$t:"";var g=n.replace(/(<([^>]+)>)/gi,"");if(g!==""&&g.length>d.options.characters){g=g.substring(0,d.options.characters);g+="..."}else{g=g}f+=(d.options.characters>0?"
"+g+"
":"");f+=" - "}}f+="
";d.$el.html(f).removeClass(d.options.loadingClass)}else{d.$el.html("No result!").removeClass(d.options.loadingClass)}},"jsonp")};d.init()};a.RecentComments.defaultOptions={blogURL:"",numComments:4,characters:100,avatarSize:50,loadingClass:"loadingxx",Showimage:true,defaultAvatar:"http://ift.tt/1afqgwl",MonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],maxfeeds:50,adminBlog:""};a.fn.RecentComments=function(b){return this.each(function(){(new a.RecentComments(this,b))})}})(jQuery); //Ajax JSON Recent Post (Random or by Tag (3 Post Type)) by MKR (function(a){a.RecentPostbyTag=function(c,b){var d=this;d.$el=a(c);d.init=function(){d.options=a.extend({},a.RecentPostbyTag.defaultOptions,b);d.$el.html('
').addClass(d.options.loadingClass);var f=function(h){var m=h.length,l,k;if(m===0){return false}while(--m){l=Math.floor(Math.random()*(m+1));k=h[m];h[m]=h[l];h[l]=k}return h};var g=function(D){var G,n,F,t,J,v,I,u,s,y,H,A,E,o="",k=(d.options.Random===true?f(D.feed.entry):D.feed.entry);if(k!==undefined){for(var B=0,r=k.length;B
)<[^<]*)*<\/script>/gi;v=a("").append(F.replace(h,""));I=v.find("img");if("media$thumbnail" in k[B]){u=k[B].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/"+d.options.ImageSize);if(k[B]===k[0]&&d.options.postType!=="s"){u=k[B].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/"+d.options.FirstImageSize)}else{if(k[B].media$thumbnail.url.indexOf("img.youtube.com")!=-1){u=k[B].media$thumbnail.url.replace("default","0")}}}else{if(I.length!=0){u=I[0].src}else{u=d.options.pBlank}}F=F.replace(/<\S[^>]*>/g,"");if(F.length>d.options.Summarylength){F=F.substring(0,d.options.Summarylength)+"..."}n=k[B].title.$t;E=k[B].published.$t.substring(0,10);s=E.substring(0,4);y=E.substring(5,7);H=E.substring(8,10);A=d.options.MonthNames[parseInt(y,10)-1];o+='
'+(d.options.ShowDate===true&&k[B]===k[0]||d.options.ShowDate===true&&d.options.postType==="s"?'
'+H+""+A+""+s+"":d.options.ShowDate===true?'
'+A+" "+H+", "+s+"":"")+(d.options.ShowComment===true?'
":"")+"
"+F+"
"}a("ul",d.$el).append(o);if(d.options.postType==="s"){var q=a(c).parents(".widget");var K=q.children("h2");if(d.options.tagName!=false){K.wrapInner('
')}var m;var p;if(d.$el.width()
").removeClass(d.options.loadingClass)}}d.$el.removeClass(d.options.loadingClass)}else{d.$el.html("No result! Or Error Loading Feed")}};var e=function(i,h){return Math.floor(Math.random()*(h-i+1))+i};if(d.options.Random===true){a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results=0&orderby=published&alt=json-in-script",function(h){var i=(d.options.MaxPost>h.feed.openSearch$totalResults.$t)?1:e(1,(h.feed.openSearch$totalResults.$t-d.options.MaxPost));a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results="+d.options.MaxPost+"&orderby=published&start-index="+i+"&alt=json-in-script",g,"jsonp")},"jsonp")}else{a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results="+d.options.MaxPost+"&orderby=published&alt=json-in-script",g,"jsonp")}};d.init()};a.RecentPostbyTag.defaultOptions={blogURL:"",MaxPost:4,FirstImageSize:"s220-p",ImageSize:"s80-p",ShowDesc:false,ShowDate:true,ShowComment:true,Random:false,Summarylength:100,Slidespeed:4,MoreText:"View All About",MoreNumPost:6,postType:"v",loadingClass:"loadingxx",pBlank:"http://ift.tt/1hfN01j",MonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tagName:false};a.fn.RecentPostbyTag=function(b){return this.each(function(){(new a.RecentPostbyTag(this,b))})}})(jQuery); //Ajax NewsTicker by MKR function NewsTicker(a){(function(b){var c={blogURL:"",MaxPost:8,titleText:"Latest News",Container:"#newsticker",MonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tagName:false};c=b.extend({},c,a);b.get((c.blogURL===""?window.location.protocol+"//"+window.location.host:c.blogURL)+"/feeds/posts/summary"+(c.tagName===false?"":"/-/"+c.tagName)+"?max-results="+c.MaxPost+"&orderby=published&alt=json-in-script",function(t){var v,f,l,o,w,p,h,e,s,u,n,g="",d=t.feed.entry;if(d!==undefined){for(var r=0,k=d.length;r<12){n="AM"}else{n="PM"}if(e===0){e=12}if(e>12){e=e-12}g+='
'+c.titleText+'
'+g+"
");b(c.Container+" #newstick").simplyScroll()}else{b(c.Container).html("No result!").removeClass("loading")}},"jsonp")})(jQuery)}; //Ajax Auto Featured Post (Slideshow) by MKR (function(a){a.AutofeaturedPost=function(c,b){var d=this;d.$el=a(c);d.init=function(){d.options=a.extend({},a.AutofeaturedPost.defaultOptions,b);d.$el.html('
').addClass(d.options.loadingClass);var f=function(h){var m=h.length,l,k;if(m===0){return false}while(--m){l=Math.floor(Math.random()*(m+1));k=h[m];h[m]=h[l];h[l]=k}return h};var g=function(x){var s,m,t,o,w,n="",k="",u=(d.options.RandompostActive===true?f(x.feed.entry):x.feed.entry);for(var q=0,l=u.length;q
)<[^<]*)*<\/script>/gi;newdowm=a("").append(t.replace(r,""));imgb=newdowm.find("img");if("media$thumbnail" in u[q]){w=u[q].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+d.options.ImageSize);if(u[q].media$thumbnail.url.indexOf("img.youtube.com")!=-1){w=u[q].media$thumbnail.url.replace("default","0")}}else{if(imgb.length!=0){w=imgb[0].src}else{w=d.options.pBlank}}t=t.replace(/<\S[^>]*>/g,"");if(t.length>d.options.Summarylength){t=t.substring(0,d.options.Summarylength)+"..."}m=u[q].title.$t;n+='
"}d.$el.find("ul.featpost").append(n);d.$el.find(".box_skitter_home.maxxiz-theme").skitter({label:true,numbers:true,auto_play:true,numbers_align:"center",dots:true,preview:true,structure:'
prevnext',width_label:"90%",opacity_elements:1});var h=function(){d.$el.find(".container_skitter").removeAttr("style")};a(window).resize(h);d.$el.removeClass(d.options.loadingClass)};var e=function(i,h){return Math.floor(Math.random()*(h-i+1))+i};if(d.options.RandompostActive===true){a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results=0&orderby=published&alt=json-in-script",function(h){var i=(d.options.MaxPost>h.feed.openSearch$totalResults.$t)?1:e(1,(h.feed.openSearch$totalResults.$t-d.options.MaxPost));a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results="+d.options.MaxPost+"&orderby=published&start-index="+i+"&alt=json-in-script",g,"jsonp")},"jsonp")}else{a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results="+d.options.MaxPost+"&orderby=published&alt=json-in-script",g,"jsonp")}};d.init()};a.AutofeaturedPost.defaultOptions={blogURL:"",MaxPost:5,ImageSize:650,Summarylength:100,RandompostActive:false,loadingClass:"loadingxx",pBlank:"http://ift.tt/1hfN01j",tagName:"Wags"};a.fn.AutofeaturedPost=function(b){return this.each(function(){(new a.AutofeaturedPost(this,b))})}})(jQuery); //Manual Featured Post (Slideshow) work with Blogger Image Widget by MKR function manualfeaturedPost(c){var a=c("#manualslidenya1");var d=a.children(".Image");if(d.length>0){a.append('
')}d.each(function(){var f=c(this);var i=f.find("h2").text();var h=f.find(".widget-content img").attr("src");var g=f.find(".widget-content a").attr("href");var e=f.find(".caption").text();c("
").appendTo("#manualslidenya1 ul.featpost");c(this).remove()});if(d.length){c("#manualslidenya1 .box_skitter_home.maxxiz-theme").skitter({label:true,numbers:true,auto_play:true,numbers_align:"center",dots:true,preview:true,structure:'prevnext
',width_label:"90%",opacity_elements:1});var b=function(){a.find(".container_skitter").removeAttr("style")};c(window).resize(b)}}; //]]>
Kunjungi Sumber Artikel di: http://ift.tt/1fkWbvp Bolatainment
0 comments:
Post a Comment