	$(document).ready(function(){
	    $("#tracker").lavaLamp({
	        fx: "backout", 
	        speed: 700,
	        click: function(event, menuItem) {
	            return false;
	        }
	    });
	    $(".emailme").click(function(){
			$(".panel2").toggle("fast");
			$(this).toggleClass("active");
			return false;
		});
	    $("#contact-form").submit(function(){
			var str = $(this).serialize();
			$.ajax({
			   type: "POST",
			   url: "php/send.php",
			   data: str,
			   success: function(msg)
			   {
					$("#formstatus").ajaxComplete(function(event, request, settings){
						if(msg == 'OK'){ // Message Sent? Show the 'Thank You' message and hide the form
							result = '<div class="formstatusok">Thank you! I will get back to you as soon as humanly possible. Have a Nice Day!</div>';
							$("#fields").hide();
						}
						else{
							result = msg;
						}
						$(this).html(result);
					});
				}
			
			 });
			return false;
		});
	    });
	
	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
	
	var pageTracker = _gat._getTracker("UA-9243415-1");
	pageTracker._trackPageview();
