// JavaScript Engine

	$(document).ready(function(){
	
	// network dropdown
	$('.open').hover(function () {
			$('> .up', this).fadeIn('fast');
		}, function () {
			$('> .up', this).fadeOut('fast');
	});
	
	$(".tip a").hover(function() {
	            $(this).next("em").stop(true, true).animate({opacity: "show", top: "-45"}, "slow");
	            }, function() {
	            $(this).next("em").animate({opacity: "hide", top: "-55"}, "fast");
	 });
	
	 // submit form
 	$('#myForm').ajaxForm(function(data) {
            if (data==1){
                $('#success').fadeIn("slow");
                 $('#myForm').slideUp("slow");
                $('#myForm').resetForm();
            }
            else if (data==2){
                $('#badserver').fadeIn("slow");
            }
            else if (data==3)
            {
                $('#bademail').fadeIn("slow");
                setTimeout(function() { 
  				$('#bademail').fadeOut("slow"); 
				}, 10000);
            }
        });
  
});