(function($){
	$('head').append('<style type="text/css">#d1 {visibility: hidden;}</style>');
	$(function(){
		$('#d1').css({opacity: 0, visibility: 'visible'}).animate({opacity: 1}, 1200, 'linear', function(){
			if(typeof fleXenv === 'object' && typeof fleXenv.globalInit === 'function'){
				fleXenv.globalInit();
			}
			if(this.style.getAttribute){
				this.style.removeAttribute('filter');
			}
		});
	});
	(function(re){
		$(document).click(function(e){
			var t = e.target;
			while (t.tagName && !re[0].test(t.tagName)){
				t = t.parentNode || null;
			}
			if(t && t.tagName && (!t.target || re[1].test(t.target)) && !re[2].test(t.href)){
				if(re[3].test(t.href)){
					$('#d1').animate({opacity: 1}, 700, function(){
						if(this.style.getAttribute){
							this.style.removeAttribute('filter');
						}
					});
					return true;
				}
				e.preventDefault();
				$('#d1').animate({opacity: 0}, 700, function(){
					location = t.href;				
				});
			}
		});
      })([/^(a|area)$/i, /^_(top|self|parent)$/, /#/, /^\s*javascript\s*:/]);
})(jQuery);                                                      

