// when the DOM is ready:
$(document).ready(function () {
 $('#rotating').cycle({ 
	  fx:     'fade', 
	  timeout: 10000, 
	  delay:  -2000,
      next:   '#next-project',
      prev:   '#prev-project',
	  pause:	1
	});
						
  /*hide mail*/
   $('.hide-email').each(function() {
      var $email = $(this);
      var address = $email.text().replace(/\s*\[at\]\s*/, '@')
                                 .replace(/\s*\[dot\]\s*/g, '.');
      $email.html('<a href="mailto:' + address + '">' + address + '</a>');
   });

});