   function getDocHeight()
   {
      return $(document).height();
   }
   
   function getWWWHeight()
   {
      return $('#wwwcontent').height();
   }
   
   function verticalAlign()
   {
      var docHeight = getDocHeight();
      var wwwcontentHeight = getWWWHeight();
      $('#wwwcontent').css({"position" : "relative", "top" : docHeight/2 - wwwcontentHeight/2});
   }
   function oddListener(event)
   {
      $('#limenu_wrapper').slideDown(50);
      $('#mmnav_switch').css('top', '32px').css('background-position', '0px -36px');
   }
   
   function evenListener(event)
   {
      $('#limenu_wrapper').slideUp(150);
      $('#mmnav_switch').css('top', '0px').css('background-position', '0px 0px');
   }
   
   $(function() {
	   $('#server_reply').hide();
	     // prepare Options Object for Ajax Submit
	    var options = { 
	      dataType:   'json',
	      success : function(response){
	               if(response.result == 'OK')
	               {
	                  $('#csubmit').hide();
	                  $('#server_reply').html(response.note).show();
	               } 
	               else
	               {
	                  $('#server_reply').html(response.note).show();
	               }
	            },
	        clearForm: false};
	    $('#wwwcontact').submit(function(){
	         $(this).ajaxSubmit(options);
	         return false; 
	    });	
   });
   