$(document).ready(function() {
      	$("body.black").css("display", "none");
       $("table.nav_left").css("display", "none");
        $("table.main2").css("display", "none");
         $("table.main").css("display", "none");
         
         
         $("body.black").fadeIn(800);
$("table.nav_left").fadeIn(1000);
$("table.main").fadeIn(1000);

$("table.main2").fadeIn(3000);

$("a").click(function(event){
		event.preventDefault();
		linkLocation = this.href;
                targetLocation=this.target;
                if (linkLocation !== 'javascript:void(0);') {
                if (targetLocation !== '_blank') {
		$("body").fadeOut(800, redirectPage);
                } else  {
                   $("body").fadeIn(0, redirectPage);
                }
                }
	});

	function redirectPage() {

            if (targetLocation == '_blank') {
                
		window.open(linkLocation);
	}
        else {
            window.location=linkLocation;
        }

        }
    });
