function faderimg() {
   $('.fader').mouseover(function(){
      $(this).animate({opacity: '1'}, {duration: 400});
   }); 
   $('.fader').mouseout(function(){
      $(this).animate({opacity: '.5'}, {duration: 400});
   });
}


$(document).ready(function(){
	  $(".levels").tooltip({ effect: 'slide', position: 'top center', offset: [-3, -5]});
	  $(".levels").click(function() {	 
  	    	$(this).tooltip().hide();			
		});
	  $('.fader').animate({opacity: '.5'}, {duration: 100});
	  faderimg();
	  $(curr).addClass('menu-current'); // change selector to link ID of current page
	  $('.menu-current').animate({opacity: '.5'}, {duration: 100}); // drops opacity of current page link to 50%
	  $('.menu-current').click(function() { return false; });
	  $("#myform").validate({
			debug: false,
			rules: {
				email: {
					required: true,
					email: true
				}
			},
			messages: {
				email: "Valid E-Mail Address Required"
			},
			submitHandler: function(form) {
				// do other stuff for a valid form
				$.post('process.php', $("#myform").serialize(), function(data) {
					$('#results').html(data);
				});
			}
		});
		$("#myform2").validate({
			debug: false,
			rules: {
				email: {
					required: true,
					email: true
				}
			},
			messages: {
				email: "Valid E-Mail Address Required"
			},
			submitHandler: function(form) {
				// do other stuff for a valid form
				$.post('process2.php', $("#myform2").serialize(), function(data) {
					$('#results').html(data);
				});
			}
		});		
   });
	  
   
   

