function discat(cat){$('#menu > span.morinfos').slideUp(500);$('#subcat'+cat).slideDown(900)}$(function(){$("dd.dterm[style*='489903.gif']").closest("dl.icon").addClass("t-uniq");$("#profile_field_2_-20").focus(function(){$(this).val(($(this).val()?$(this).val()+"\n":"")+new Date().getDate()+"/"+(new Date().getMonth()+1)+"/"+(new Date().getFullYear()-2000)+" ([b]"+$("#i_icon_mini_logout").attr("alt").replace(/^.*?\[ (.*) \]$/,"$1")+"[/b])"+" : ").unbind("focus")})});$(function(){$(".vote").each(function(){$(this).find(".vote-button:first a").html('<img src="http://illiweb.com/fa/optimisation_fdf/common/buttonok.png" alt="Voter" title="Voter pour ce message" />').click(function(){$.get($(this).attr("href"));$(this).parent().html('<img src="http://illiweb.com/fa/optimisation_fdf/common/buttonok_off.png"  alt="Vote enregistré" title="Vote enregistré" />');return!1});$(this).closest(".postbody").find("ul.profile-icons").append("<li />").find("li:last").append($(this).find(".vote-button:first a")).append($(this).find(".vote-bar").length?' <div class="vote-count" title="Nombre d\'évaluations positives">'+$(this).find(".vote-bar").attr("title").replace(/^.*\(([0-9]*) .*?\)$/,"$1"):"")+'</div>';$(this).remove()});$('.st-rang').closest('.post').addClass('st-answer');if($("code").filter(function(){var a=$(this).text(),b=a.indexOf("["),c=a.indexOf("]"),d=a.indexOf("[/"),e=a.indexOf("<"),f=a.indexOf('"'),g=a.indexOf("'"),h=a.indexOf("/");return 5000>a.length&&(-1==b||-1==c||-1==d||b>c||c>d||-1!=e&&e<b||-1!=f&&f<b||-1!=g&&g<b||-1!=h&&h<b)}).each(function(){$(this).wrapInner('<pre class="prettyprint'+(-1==$(this).text().indexOf("<")&&/[\s\S]+{[\s\S]+:[\s\S]+}/.test($(this).text())?" lang-css":"")+' linenums" />')}).length){var s=document.createElement("script");s.type="text/javascript";s.async=!0;s.src="http://forum.forumactif.com/12076.js";document.getElementsByTagName("head")[0].appendChild(s)};if(document.location.pathname=="/abuse"){$('.report .button2').click(function(){return!!confirm('Attention : ce formulaire n\'est pas destiné à signaler un forum sur lequel vous rencontrez un problème. \nMerci de lire l\'encadré rouge. Êtes-vous sûr(e) de vouloir valider l\'envoi ?')})}});function selectCode(a){var e=a.parentNode.parentNode.getElementsByTagName('CODE')[0];if(window.getSelection){var s=window.getSelection();if(s.setBaseAndExtent){s.setBaseAndExtent(e,0,e,e.innerText.length-1)}else{if(window.opera&&e.innerHTML.substring(e.innerHTML.length-4)=='<BR>'){e.innerHTML=e.innerHTML+' '}var r=document.createRange();r.selectNodeContents(e);s.removeAllRanges();s.addRange(r)}}else if(document.getSelection){var s=document.getSelection();var r=document.createRange();r.selectNodeContents(e);s.removeAllRanges();s.addRange(r)}else if(document.selection){var r=document.body.createTextRange();r.moveToElementText(e);r.select()}}jQuery(document).ready(function(){jQuery("dl.codebox dt").not("dl.spoiler > dt, dl.hidecode > dt").html('Code: <a href="#" onclick="selectCode(this); return false;"><span style="margin-left: 40px;">Sélectionner le contenu</span></a>')});function theRotator(){$('div.rotator ul li').css({opacity:0.0});$('div.rotator ul li:first').css({opacity:1.0});setInterval('rotate()',6000)}function rotate(){var current=($('div.rotator ul li.show')?$('div.rotator ul li.show'):$('div.rotator ul li:first'));if(current.length==0)current=$('div.rotator ul li:first');var next=((current.next().length)?((current.next().hasClass('show'))?$('div.rotator ul li:first'):current.next()):$('div.rotator ul li:first'));next.css({opacity:0.0}).addClass('show').animate({opacity:1.0},1000);current.animate({opacity:0.0},1000).removeClass('show')};$(document).ready(function(){theRotator();$('div.rotator').fadeIn(1000);$('div.rotator ul li').fadeIn(1000)});
