var cs_prive=window.location.pathname.match(/\/ecrire\/$/)!=null;
jQuery.fn.cs_todo=function(){return this.not('.cs_done').addClass('cs_done');};
function lancerlien(a,b){ x='ma'+'ilto'+':'+a+'@'+b; return x; }
function soft_scroller_init() { if(typeof jQuery.localScroll=="function") jQuery.localScroll({hash: 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() {
	/* optimisation : 'IF(1)' */ if(!cs_prive) jQuery("a.spip_out,a.spip_url,a.spip_glossaire",this).attr("target", "_blank"); 
	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);
}
if(typeof onAjaxLoad=='function') onAjaxLoad(cs_init);
if(window.jQuery) {
var cs_sel_jQuery=typeof jQuery(document).selector=='undefined'?'@':'';
var cs_CookiePlugin="prive/javascript/jquery.cookie.js";
jQuery(document).ready(function(){
	cs_init.apply(document);
});
}
