// register swf


swfobject.registerObject("myHeader", "9.0.0");
swfobject.registerObject("audio", "9.0.0");


$(document).ready(function(){

	$("#postal").validate({
		// the errorPlacement has to take the table layout into account
		errorPlacement: function(error, element) {
				error.appendTo( $("#error") );
		}
		// specifying a submitHandler prevents the default submit, good for the demo

						  }
);
	
	$("input.phoneField").mask("(999) 999-9999");
    $("#postal").removeAttr("action");
	$("#postal").attr("action", "http://andybeaudoin.com/theformer.php");

// Hey IE6 - go fuck yourself

		if($.browser.msie){ 
		if($.browser.version.substring(0,1) ==6){
		
		$("#footerMain").css("position", "absolute");
		$(".footerRight").css("marginRight", "30px");
		$("h1").css("marginTop", "80px");
		$(".mediaH1").css("marginTop", "0px");
			
			}
		}
		
// Hey IE7 - you're not much better

		if($.browser.msie){ 
		if($.browser.version.substring(0,1) ==7){
			
		$("h1").css("marginTop", "80px");
		$(".mediaH1").css("marginTop", "0px");
		
			}
		}
 });
