/* JavaScriptCompressor 0.8 [www.devpro.it], thanks to Dean Edwards for idea [dean.edwards.name] */
var cs_prive=window.location.pathname.match(
/\/ecrire\/$/)!=null;jQuery.fn.cs_todo=function(){return this.not(
'.cs_done'
).addClass(
'cs_done'
);};var cs_verif_email=0;var cs_verif_nom=1;var cs_verif_deux=0;var sommaire_sel=
'div.cs_sommaire_titre_avec_fond, div.cs_sommaire_titre_sans_fond'
;
function cs_sommaire_init(){jQuery(sommaire_sel,this)
.cs_todo()
.click(function(){jQuery(this).toggleClass(
'cs_sommaire_replie'
)
.next().toggleClass(
'cs_sommaire_invisible'
)
return false;});}
function cs_sommaire_cookie(){if(typeof jQuery.cookie!=
'function'
) return;var replie=jQuery.cookie(
'cs_sommaire'
);jQuery.cookie(
'cs_sommaire'
,null);if (Number(replie))
jQuery(sommaire_sel).eq(0).addClass(
'cs_sommaire_replie'
)
.next().toggleClass(
'cs_sommaire_invisible'
);jQuery(window).bind(
'unload'
,function(){jQuery.cookie(
'cs_sommaire'
,Number(jQuery(sommaire_sel).eq(0).is(
'.cs_sommaire_replie'
)));});}
var gloss_el=null;var gloss_dt=null;var gloss_dd=null;var gloss_dl=null;
function glossaire_init(){if(jQuery(
'span.gl_js'
,this).length){if(!jQuery(
'#glossOverDiv'
).length){jQuery(
'body'
).append(
'<div id="glossOverDiv" style="position:absolute; display:none; visibility: hidden;"><span class="gl_dl"><span class="gl_dt">TITRE</span><span class="gl_dd">Definition</span></span></div>'
);gloss_el=document.getElementById(
'glossOverDiv'
);gloss_dl=gloss_el.firstChild;gloss_dt=gloss_dl.firstChild;gloss_dd=gloss_dl.lastChild;}
jQuery(
'span.gl_mot'
,this).cs_todo().hover(function(e){$this=jQuery(this);
if(this.firstChild.className==
"spip_surligne"
){this.className=
"gl_mot spip_surligne"
;this.innerHTML=this.firstChild.innerHTML;}
gloss_dt.innerHTML=$this.parent().children(
'.gl_js'
)[0].title;
gloss_dd.innerHTML=$this.parent().children(
'.gl_jst'
)[0].title;
reg=$this.css(
'font-size'
).match(
/^\d\d?(?:\.\d+)?px/);if(reg) gloss_el.style.fontSize=reg[0];jQuery(gloss_el)
.css(
'top'
,e.pageY.toString()+
"px"
)
.css(
'left'
,e.pageX.toString()+
"px"
)
.css(
'font-family'
,jQuery(this).css(
'font-family'
));gloss_el.style.display=
'block'
;gloss_el.style.visibility=
'visible'
;if(typeof jQuery.fn.offset==
"function"
){
if(1){
var $glossOverDiv=jQuery(
'#glossOverDiv'
);var $gloss_dl=jQuery(gloss_dl);positionBy=
'auto'
;
ombre=0;
decalX=2;
width=180;
height=
'auto'
;
var glossHeight,wHeight;var linkHeight=this.offsetHeight;var defHeight=isNaN(parseInt(height,10))?
'auto'
:(
/\D/g).test(height)?height:height+
'px'
;var sTop,linkTop,posY,mouseY,baseLine;sTop=jQuery(document).scrollTop();
var glossWidth=width+ombre;var linkWidth=this.offsetWidth;var linkLeft,posX,mouseX,winWidth;winWidth=jQuery(window).width();
linkTop=posY=$this.offset().top;linkLeft=$this.offset().left;mouseX=e.pageX;mouseY=e.pageY;
$glossOverDiv.css({margin:
'0px'
});$gloss_dl.css({margin:
'0px'
});
posX=Math.max(linkLeft-(glossWidth-linkWidth)/2,0);if (positionBy==
'dessous'
||positionBy==
'dessus'
){
$glossOverDiv.css({left:posX+
'px'
});} else {
posX2=(linkWidth>linkLeft&&linkLeft>glossWidth)||(linkLeft+linkWidth+glossWidth+decalX>winWidth)?linkLeft-glossWidth-decalX:linkWidth+linkLeft+decalX;
if (positionBy==
'mouse'
||linkWidth+glossWidth>winWidth){posX=Math.max(mouseX-(glossWidth-linkWidth)
/2,0); // glossaire au centre de la souris
}
var pY=e.pageY;$glossOverDiv.css({left:(posX>0&&positionBy !=
'dessus'
)?posX:(mouseX+(glossWidth
/2) > winWidth) ? winWidth/2-glossWidth
/2 : Math.max(mouseX - (glossWidth/2),0)});}
wHeight=jQuery(window).height();$glossOverDiv.css({overflow:defHeight==
'auto'
?
'visible'
:
'auto'
,height:defHeight});glossHeight=defHeight==
'auto'
?Math.max($gloss_dl.outerHeight(),$gloss_dl.height()):parseInt(defHeight,10);glossHeight+=ombre;tipY=posY;baseLine=sTop+wHeight;if (positionBy==
'dessous'
) tipY=posY+linkHeight+2;
else if (positionBy==
'dessus'
) tipY=posY-glossHeight-2;
else if (posX<mouseX&&Math.max(posX,0)+glossWidth>mouseX){
if (posY+glossHeight>baseLine&&mouseY-sTop>glossHeight){tipY=posY-glossHeight-2;} else {tipY=posY+linkHeight+2;}} else if (posY+glossHeight>baseLine){tipY=(glossHeight>=wHeight)?sTop:baseLine-glossHeight;} else if ($this.css(
'display'
)==
'block'
||positionBy==
'mouse'
){tipY=pY;} else {tipY=posY
;}
$glossOverDiv.css({top:tipY+
'px'
});}
}
gloss_el.style.visibility=
'visible'
;},function(e){gloss_el.style.display=
'none'
;gloss_el.style.visibility=
'hidden'
;});
if(typeof jQuery.fn.offset==
"function"
){
jQuery(
'a.cs_glossaire'
).focus(function(){legl_mot=this.firstChild;gloss_dt.innerHTML=jQuery(this).children(
'.gl_js'
)[0].title;
gloss_dd.innerHTML=jQuery(this).children(
'.gl_jst'
)[0].title;
reg=jQuery(this.firstChild).css(
'font-size'
).match(
/^\d\d?(?:\.\d+)?px/);if(reg) gloss_el.style.fontSize=reg[0];var result=jQuery(this).offset({scroll:false});jQuery(gloss_el)
.css(
'top'
,result.top+
"px"
)
.css(
'left'
,result.left+
"px"
)
.css(
'font-family'
,jQuery(this.firstChild).css(
'font-family'
));gloss_el.style.display=
'block'
;gloss_el.style.visibility=
'visible'
;});jQuery(
'a.cs_glossaire'
).blur(function(){gloss_el.style.display=
'none'
;gloss_el.style.visibility=
'hidden'
;});}
}}
function lancerlien(a,b){x=
'ma'
+
'ilto'
+
':'
+a+
'@'
+b;return x;}
function soft_scroller_init(){if(typeof jQuery.localScroll==
"function"
) jQuery.localScroll({hash:true});}
jQuery.fn.blocs_toggle_slide_dist=function(selector){this.toggleClass(
'blocs_slide'
);if(typeof jQuery.fn.blocs_toggle_slide==
'function'
)
return this.blocs_toggle_slide();return this.is(
".blocs_slide"
)?this.slideUp(blocs_slide):this.slideDown(blocs_slide);};jQuery.fn.blocs_set_title=function(selector){var title=this.parent().find(
'.blocs_title:last'
).text();if(!title) title=blocs_title_def;title=title.split(blocs_title_sep);this.children(
'a'
).attr(
'title'
,title[jQuery(this).is(
'.blocs_replie'
)?0:1]);return this;};
jQuery.fn.blocs_toggle=function(){if (!this.length) return this;
var cible=this.is(
'.cs_blocs'
)?this.children(
'.blocs_titre'
).eq(0):this;
cible.toggleClass(
'blocs_replie'
).blocs_set_title();var dest=this[0].id.match(
'^cs_bloc_id_'
)?jQuery(
'div.'
+this[0].id):cible.next();if(blocs_slide===
'aucun'
){dest.toggleClass(
'blocs_invisible'
);
if (dest.is(
'div.blocs_resume'
)) dest.next().toggleClass(
'blocs_invisible'
);} else {dest.blocs_toggle_slide_dist();
if (dest.is(
'div.blocs_resume'
)) dest.next().blocs_toggle_slide_dist();}
var lien=cible.children();var url=lien.attr(
"href"
);if(url !=
'javascript:;'
){
lien.attr(
"href"
,
'javascript:;'
);
cible.parent().children(
".blocs_destination"
)
.load(url);}
return this;};
jQuery.fn.blocs_replie_tout=function(){if(blocs_replier_tout){
var cible=this.is(
'.cs_blocs'
)?this:this.parents(
'div.cs_blocs'
);
var lignee=cible.children(
'.blocs_titre'
);jQuery(
'.blocs_titre'
).not(
'.blocs_replie'
).not(lignee).blocs_toggle();}
return this;}
var blocs_clic_ajax=null;
function blocs_init(){
jQuery(
'.blocs_titre'
,this).cs_todo()
.click(function(){jQuery(this).blocs_replie_tout().blocs_toggle();
return false;})
.each(function(){jQuery(this).blocs_set_title();});
jQuery(
'.blocs_destination a.replier_bloc'
,this).cs_todo()
.click(function(){s=jQuery(this).parents(
'.cs_blocs:first'
);
if(typeof jQuery.fn.scrollTo==
"function"
) jQuery(
'body'
).scrollTo(s,500,{margin:true,
onAfter:function(){s.blocs_replie_tout().blocs_toggle();}});else s.blocs_replie_tout().blocs_toggle();
return false;});
jQuery(
'.spip_note['
+cs_sel_jQuery+
'name^=nb], .spip_note['
+cs_sel_jQuery+
'id^=nb]'
).each(function(i){jQuery(this).click(function(e){var href=this.href.substring(this.href.lastIndexOf(
"#"
));href=jQuery(href).parents(
'.cs_blocs'
).eq(0).children(
'.blocs_titre'
).eq(0);
old_blocs_slide=blocs_slide;if(blocs_slide!=
'aucun'
) blocs_slide=-1;if(href.is(
'.blocs_replie'
)) href.click();blocs_slide=old_blocs_slide;return true;});});
}
document.write(
'<style type="text/css">div.blocs_invisible{display:none;}</style>'
);
function cs_blocs_cookie(){if(typeof jQuery.cookie!=
'function'
) return;var blocs_cookie_name=
'blocs'
+window.location.pathname+window.location.search
blocs_cookie_name=blocs_cookie_name.replace(
/[ ;,=]/,
'_'
);var deplies=jQuery.cookie(blocs_cookie_name);jQuery.cookie(blocs_cookie_name,null);if(deplies)
jQuery(deplies).blocs_replie_tout().blocs_toggle();jQuery(window).bind(
'unload'
,function(){jQuery.cookie(blocs_cookie_name,blocs_deplies());});}
function blocs_deplies(){var deplies=
''
;jQuery(
'.cs_blocs'
).each(function(){var numero=
/cs_bloc\d+/.exec(this.className);if(numero==null) return;replie=jQuery(this).children(
'.blocs_titre'
).eq(0).is(
'.blocs_replie'
);if(!replie) deplies+=(deplies.length?
', '
:
''
)+
'div.'
+numero[0];});return deplies.length?deplies:null;}
function blocs_get_pagination(url){tab=url.match(
/#pagination([0-9]+)/);if (tab==null) return false;return tab[1];}
var blocs_pagination=blocs_get_pagination(window.location.hash);
var blocs_replier_tout=0;var blocs_millisec=100;var blocs_slide=
'aucun'
;var blocs_title_sep=
/\|\|/g;var blocs_title_def=
'Déplier||Replier'
;
function cs_auteur_forum(){
var sel=jQuery(
'fieldset.previsu'
,this);if(!sel.length) return;
var form=sel.parents(
'form'
).eq(0);if(!form.length) return;
var auteur=jQuery(
'#session_nom'
,this);if(!auteur.length) auteur=jQuery(
'#auteur'
,this);
var email=jQuery(
'#session_email'
,this);if(!email.length) email=jQuery(
'#email_auteur'
,this);if(auteur.length||email.length)
form.cs_todo().bind(
'submit'
,function(event){var alert_nom=auteur.length&&!auteur.val().length;var alert_email=email.length&&!email.val().length;var alert_deux=cs_verif_deux&&alert_nom&&alert_email;if(!cs_verif_deux){alert_nom=alert_nom&&cs_verif_nom;alert_email=alert_email&&cs_verif_email;} else if(!alert_deux)
alert_nom=alert_email=false;auteur.css(
'background-color'
,
''
).css(
'border'
,
''
);email.css(
'background-color'
,
''
).css(
'border'
,
''
);if(alert_email){email.focus();email.css(
'background-color'
,
'#FCC'
).css(
'border'
,
'solid #C30'
);}
if(alert_nom){auteur.focus();auteur.css(
'background-color'
,
'#FCC'
).css(
'border'
,
'solid #C30'
);}
if(alert_deux){alert(
"Merci de spécifier votre nom ou votre email !"
);return false;}
if(alert_nom){alert(
"Merci de spécifier votre nom !"
);return false;}
if(alert_email){alert(
"Merci de spécifier votre email !"
);return false;}
return true;});}
if (window.jQuery) jQuery.fn.jc_ajouter_parent=function(color,padding,margin){color=((typeof color==
'undefined'
)||(color==
''
))?
''
:(
' background-color:'
+color+
';'
);if ((typeof padding==
'undefined'
)||(padding==
''
)) padding=
'4px'
;if ((typeof margin==
'undefined'
)||(margin==
''
)) margin=
'4px 0'
;return this.wrap(
'<div class="jc_parent" style="padding:'
+padding+
';'
+color+
' margin:'
+margin+
';"><\/div>'
);};var cs_init=function(){cs_auteur_forum.apply(this);cs_sommaire_init.apply(this);glossaire_init.apply(this);jQuery(
'span.spancrypt'
,this).attr(
'class'
,
'cryptOK'
).html(
'&#6'
+
'4;'
);jQuery(
"a["
+cs_sel_jQuery+
"title*='..']"
,this).each(function (){this.title=this.title.replace(
/\.\..t\.\./,
'[@]'
);});soft_scroller_init.apply(this);if(typeof jcorner_init==
"function"
) jcorner_init.apply(this);jclock_init.apply(this);blocs_init.apply(this);}
if(typeof onAjaxLoad==
'function'
) onAjaxLoad(cs_init);if(window.jQuery){var cs_sel_jQuery=typeof jQuery(document).selector==
'undefined'
?
'@'
:
''
;var cs_CookiePlugin=
"plugins/jquery_192/javascript/jquery.cookie.js"
;jQuery(document).ready(function(){if(jQuery(
"div.cs_sommaire"
).length){
jQuery(
"div.decoupe_haut"
).css(
"display"
,
"none"
);
if(cs_CookiePlugin) jQuery.getScript(cs_CookiePlugin,cs_sommaire_cookie);}
cs_init.apply(document);});}
