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

	$().ready(function() {
		
		
		$("span.email").antispam();
	// validate the comment form when it is submitted
	$("#myform").validate();
	
		})


 


$(document).ready(function() {

$('a[rel*=facebox]').facebox()
    $('#slide_case').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
    $('#slid_food').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
});
