HtmlToText
) /gi;function b(j){d.getscript("http://"+j+".disqus.com/blogger_index.js")}function e(){if(i.loading){return}i.loading=true;if(!i.olderpostslink){i.loadmorediv.hide();return}i.loadmorediv.find("a").addclass("process");d("#main-wrapper .textlast").hide();d("#main-wrapper .xitem1").append(' loading... ');d.get(i.olderpostslink,"html").done(function(l){var j=d(" ").append(l.replace(c,""));var k=j.find("a.blog-pager-older-link");if(k){i.olderpostslink=k.attr("href")}else{i.olderpostslink="";i.loadmorediv.hide()}var m=j.find(i.postcontainerselector).children(".date-outer");m.find(".post-summary").each(function(){var n,w,o,s,r,v,q,p="";w=d(this).parent(".post-body");o=w.children("textarea").val();q=o.replace(/ /g,"").replace(/[\n\r]+/g," ");s=d(" ").append(o.replace(c,""));r=s.find("img");iframex=s.find("iframe");parens=d(this).parents(".post");v=parens.find(".post-title.entry-title a").attr("href");titlex=parens.find(".post-title.entry-title a").text();if(r.length===0&&iframex.length===0){n=' '}else{if(r.length===0&&iframex.length 0){var t=iframex[0].src;var u=t.match(/(\?v=|\&v=|\/\d\/|\/embed\/|\/v\/|\.be\/)([a-za-z0-9\-\_]+)/);n=' '}else{n=' '}}p=n+' '+titlex+" "+q.substring(0,i.summarylength)+"… ";d(this).html(p)});d(i.postcontainerselector).append(m);datenya(d);viewmode({viewmodedefault:i.viewmodedefault,cookielist:i.cookielist,cookiegrid:i.cookiegrid});if(window._gaq){window._gaq.push(["_trackpageview",i.olderpostslink])}if(window.gapi&&window.gapi.plusone&&window.gapi.plusone.go){window.gapi.plusone.go()}if(window.disqus_shortname){b(window.disqus_shortname)}if(window.fb&&window.fb.xfbml&&window.fb.xfbml.parse){window.fb.xfbml.parse()}i.loadmorediv.find("a").removeclass("process");d("#main-wrapper .xitem1 .load").remove();d("#main-wrapper .textlast").show();i.loading=false})}function h(){if(_widgetmanager._getalldata().blog.pagetype=="item"){return}i.olderpostslink=d("a.blog-pager-older-link").attr("href");if(!i.olderpostslink){return}var j=d(' '+i.moretext+" ");j.click(e);i.loadmorediv=d(' ');i.loadmorediv.append(j);i.loadmorediv.insertbefore(d("#blog-pager"));d("#blog-pager").hide()}f.ready(h)})(jquery)}; //menu call function menunav(b){b("#mobilenav").click(function(){b("#menunav").slidetoggle();b(this).toggleclass("active");return false});b(".sf-menu ul").each(function(){var d=b(this).parent("li");d.append(" ")});function a(){var d=b(window).width();if(d 979){b("#menunav").css("display","block");b("#menunav").superfish({animation:{height:"show"},animationout:{height:"hide"}});b(".sf-menu i").css("display","none")}else{if(d 12){f=f-12}k+=' '+f+""+e+" "+g+' '+h+" "}d.$el.html(' '+k+" ").removeclass("loading");a("#newstick").ticker({speed:d.options.speed,direction:d.options.direction,titletext:d.options.titletext,displaytype:d.options.displaytype})}else{d.$el.html(" no result! ").removeclass("loading")}},"jsonp")};d.init()};a.newsticker.defaultoptions={blogurl:"",maxpost:4,speed:0.1,direction:"ltr",titletext:"latest",displaytype:"reveal",monthnames:["jan","fev","mar","avr","mai","juin","juil","aout","sep","oct","nov","dec"]};a.fn.newsticker=function(b){return this.each(function(){(new a.newsticker(this,b))})}})(jquery); //scroll top by mkr (function(a){a(window).scroll(function(){if(a(this).scrolltop() 280){a("#top").removeattr("href");a("#top").fadein()}else{a("#top").fadeout()}});a(function(){a("#top").click(function(){a("html, body").animate({scrolltop:0},"slow");return false})})})(jquery); //ajax json related post by mkr function relatedpostswidget(a){(function(e){var f={blogurl:"",maxposts:6,maxtags:5,maxpostspertag:5,containerselector:"#related_posts",tags:null,loadingtext:"",loadingclass:"loadingxx",relevanttip:"",rlt_summary:100,relatedtitle:"vous aimerez aussi",readmoretext:"[...]",rlpblank:"http://1.bp.blogspot.com/-htg7vy9viaa/tp0krmudowi/aaaaaaaabau/e7xkfterqsu/s1600/grey.gif",rlt_thumb:70,recenttitle:"recent posts",postscoreclass:"",onload:false};f=e.extend({},f,a);var k=0,b=null,g=null;if(!f.containerselector){document.write(' ');f.containerselector="#related_posts"}var c=function(x,p){k++;if(x.feed.entry){for(var q=0;q /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(/ ]* /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(' '+t+" "+m+' '+f.readmoretext+" ")};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 ').addclass(d.options.loadingclass);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",function(b){var e,h,d,r,h,t,g,s,q,w,f,y,c,n="",f=b.feed.entry;if(f!==undefined){for(var z=0,p=f.length;z /gi;t=a(" ").append(d.replace(e,""));g=t.find("img");if("media$thumbnail" in f[z]){s=f[z].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/"+d.options.imagesize);if(f[z]===f[0]&&d.options.posttype!=="s"){s=f[z].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/"+d.options.firstimagesize)}else{if(f[z].media$thumbnail.url.indexof("img.youtube.com")!=-1){s=f[z].media$thumbnail.url.replace("default","0")}}}else{if(g.length!=0){s=g[0].src}else{s=d.options.pblank}}d=d.replace(/ ]* /g,"");if(d.length d.options.summarylength){d=d.substring(0,d.options.summarylength)+"..."}h=f[z].title.$t;c=f[z].published.$t.substring(0,10);q=c.substring(0,4);w=c.substring(5,7);f=c.substring(8,10);y=d.options.monthnames[parseint(w,10)-1];n+=' '+h+' '+(d.options.showdate===true?' '+y+" "+f+", "+q+" ":"")+(d.options.showcomment===true?' '+h+" ":"")+" "+d+" "}a("ul",d.$el).append(n);if(d.options.posttype==="s"){var o=a(c).parents(".widget");var i=o.children("h2");if(d.options.tagname!=false){i.wrapinner(' ')}var m,g;var k=d.$el.width();if(a(window).width() li",animationloop:true,itemwidth:m,minitems:1,move:g,mousewheel:true,maxitems:4});d.$el.removeclass(d.options.loadingclass)}else{if(d.options.tagname!=false){d.$el.append(' plus ').removeclass(d.options.loadingclass)}}d.$el.removeclass(d.options.loadingclass)}else{d.$el.html(" no result! or error loading feed ")}},"jsonp")};d.init()};a.recentpostbytag.defaultoptions={blogurl:"",maxpost:4,firstimagesize:"s220-p",imagesize:"s80-p",showdesc:false,showdate:true,showcomment:true,summarylength:100,posttype:"v",loadingclass:"loadingxx",pblank:"http://1.bp.blogspot.com/-htg7vy9viaa/tp0krmudowi/aaaaaaaabau/e7xkfterqsu/s72-c/grey.gif",monthnames:["jan","fev","mar","