jQuery(document).ready(function(){jQuery("a.dl").each(function(){if(jQuery(this).find('img[class*="btn_dl"]').size()>0){}else{jQuery(this).append('<img class="btn_dl" src="/wp-content/themes/efh/img/dl.gif"/>')}});jQuery("a.url").each(function(){if(jQuery(this).find('img[class*="btn_url"]').size()>0){}else{jQuery(this).append('<img class="btn_url" src="/wp-content/themes/efh/img/url.gif"/>')}});jQuery("a.lien_illus").each(function(){img_w=jQuery(this).find("img.illus").width();img_h=jQuery(this).find("img.illus").height();jQuery(this).find("span").css({position:"absolute",left:function(){return img_w+5+"px"}});span_h=jQuery(this).find("span").outerHeight();delta_h=img_h-span_h;if(delta_h>=0){jQuery(this).height(img_h);jQuery(this).find("span").css({top:function(){return Math.ceil(delta_h/2)+"px"}})}else{if(delta_h<0){delta_h=Math.abs(delta_h);jQuery(this).height(span_h);jQuery(this).css({"margin-top":function(){return Math.ceil(delta_h/2)+"px"}});jQuery(this).find("img.illus").css({"margin-top":function(){return Math.ceil(delta_h/2)+"px"}})}}delete span_h;delete img_h;delete img_w});jQuery('#main_content a[name^="chap_"]:not(":first")').each(function(){jQuery(this).addClass("ancre_chap");jQuery(this).after('<a class="top_page" href="#">Haut de page <strong>&uArr;</strong></a>');jQuery(this).next("a.top_page").andSelf().wrapAll('<div class="nav_page">&nbsp;</div>')});jQuery("h3, h4").each(function(){if(jQuery(this).hasClass("rouge")){jQuery(this).parent("div").find("a.url, a.dl, blockquote a").each(function(){jQuery(this).addClass("rouge")})}else{if(jQuery(this).hasClass("orange")){jQuery(this).parent("div").find("a.url, a.dl, blockquote a").each(function(){jQuery(this).addClass("orange")})}else{if(jQuery(this).hasClass("vert")){jQuery(this).parent("div").find("a.url, a.dl, blockquote a").each(function(){jQuery(this).addClass("vert")})}else{if(jQuery(this).hasClass("turquoise")){jQuery(this).parent("div").find("a.url, a.dl, blockquote a").each(function(){jQuery(this).addClass("turquoise")})}}}}})});
