(function(a){(function(c){var b={};c.fn.joalexander=function(d){if(b[d]){return b[d].apply(this,Array.prototype.slice.call(arguments,1))}else{c.error("Method "+d+" does not exist on jQuery.joalexander")}};c.joalexander={};b.placeholder=function(){return this.each(function(){var d=c(this);var e=d.attr("placeholder");if(d.val()==""){d.val(e)}d.focus(function(){if(d.val()==e){d.val("")}});d.blur(function(){if(d.val()==""){d.val(e)}});d.parents("form").submit(function(){if(d.val()==e){d.val("")}})})};b.productCarousel=function(){return this.each(function(){var e=c(this);var h=e.find("li");e.height(h.height());var d=h.length;var j=Math.floor(Math.random()*d);h.css({position:"absolute",top:0,left:0,zIndex:100}).hide().eq(j).show().css({zIndex:150});function i(k){if(k!=j){h.eq(j).css({zIndex:100}).fadeOut("slow");h.eq(k).css({zIndex:150}).fadeIn("slow");j=k}}function g(){if(j<d-1){i(j+1)}else{i(0)}}var f=setInterval(g,7000)})};b.toggleBox=function(d){return this.each(function(){var f=c(this);var g=c(d);function e(){if(f.is(":checked")){g.show()}else{g.hide()}}e();f.change(e)})};b.cardSelect=function(f){var d=c(this);var e=c(f);function g(){var h=d.val();if(h=="Solo"||h=="Maestro"){e.show()}else{e.hide()}}g();d.change(g)};c(function(){c("input[placeholder]").joalexander("placeholder");c('a[href^="mailto"]').click(function(){_gaq.push(["_trackPageview","/email-sent"])})})}(jQuery))}(jQuery));
