/* Stop IE flicker */
if (jQuery.browser.msie == true) document.execCommand('BackgroundImageCache', false, true);
ChiliBook.recipeFolder     = "";
ChiliBook.stylesheetFolder = ""

jQuery.fn.antispam = function() {
  return this.each(function(){
	var email = jQuery(this).text().toLowerCase().replace(/\sdot/g,'.').replace(/\sat/g,'@').replace(/\s+/g,'');
	var URI = "mailto:" + email;
	jQuery(this).hide().before(
		jQuery("<a></a>").attr("href",URI).addClass("external").text(email)
	);
  });
};


jQuery(function() {
	jQuery("pre.javascript").chili();
	jQuery("pre.php").chili();
	jQuery("pre.css").chili();
	jQuery("a.external").each(function() {this.target = '_new'});	
	jQuery("span.email").antispam();
});
