function setPlaceHolder(a,b){if(a.length){if(!a.val()||a.val()===b){a.val(b);a.addClass("placeholder")}a.focus(function(){if(a.val()===b){a.val("");a.removeClass("placeholder")}});a.blur(function(){if(a.val()===""){a.val(b);a.addClass("placeholder")}})}}jQuery.fn.center=function(){this.css("position","absolute");this.css("top",($(window).height()-this.outerHeight())/2+$(window).scrollTop()+"px");this.css("left",($(window).width()-this.outerWidth())/2+$(window).scrollLeft()+"px");return this};$(document).ready(function(){var a=$("#email-address");var b=$("#message");setPlaceHolder(a,"email address");$("#notify-box").center();$("#submit-button").click(function(){a.removeClass("error");b.html(" ");b.removeClass("error");if(a.val()!="email address"){$('<input type="hidden" name="token" value="n0t15ym3!"/>').insertAfter(a);$.post("/services/email-service.php",$("#notify-me").serialize(),function(c){if(c.result==="error"){a.addClass("error");b.html("Oops, please enter a valid email address.");b.addClass("error")}else if(c.result==="success"){$(".rmv").remove();b.html("Thanks! We will notify you as soon as the site is up and running! Obviously, we'll contact you earlier if you are selected to early access.")}else{a.addClass("error");b.html("Oops, please enter a valid email address.")}})}})})
