// JavaScript Document
      jQuery(document).ready(function($) {
        $(".tweet").tweet({
          join_text: "",
          username: "mhmgear",
          avatar_size: 0,
          count: 1,
          auto_join_text_default: null, 
          auto_join_text_ed: null,
          auto_join_text_ing: null,
          auto_join_text_reply: null,
          auto_join_text_url: null,
          loading_text: null
        });
        $(".query").tweet({
          avatar_size: 60,
          count: 4,
          query: "",
          loading_text: "searching twitter..."
        });
		$("a.example").fancybox({
				'titlePosition'	: 'inside'
			});
		$('area.example').fancybox({
        'hideOnContentClick': true,
        'titlePosition'     : 'inside',
        'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
            return '<span>'+ title + '</span>';
        }
    });

      })      
	$(document).ready(function(){
		$("#myform").validate({
			debug: false,
			rules: {
				email: {
					required: true,
					email: true
				}
			},
			messages: {
				email: "Please enter a valid email address",
			},
			submitHandler: function(form) {
				$.post('form/process.php', $("#myform").serialize(), function(data) {
					$('#results').html(data);
					$('#newsletter-form').toggle();
				});
			}
		});
	});

