/**
 * @author mrenomeron
 */
$(function(){

    $("#top_banners").cycle();
	
    $('.colorbox').colorbox();
 
    // Custom Safe Mail routine for handling email links with custom text.
    $("a.safemail").each(function(){
        $(this).attr('href', 'mailto:' + $(this).attr('href').replace(/ at /,"@").replace(/ dot /g,"."));
        $(this).html($(this).html().replace(/ at /,"@").replace(/ dot /g,"."));
    });
	
    $("#checkout_form").validate({
      rules: {
        card_number: {
          required: true,
          creditcard: true
        }
      }
    });
});

