function initJSI(t) {
	if(t != null) {
		t = $(t);
		var url = t.attr('rel');
	}
	$('#wrapJsiBox')
		.width($(document).width())
		.height($(document).height())
		.fadeIn('slow')
		.click(function(){
			$(this).hide();
			$('#news-overlay-box').hide();
		});
	if(t != null) {
		$.ajax({
			url: url,
			type: 'GET',
			dataFilter: function(data) {
				return $('.ajaxedBlock', data).html();
			},
			success: function(data) {
				$('#news-overlay-box')
					.html(data)
					.css({
						top: (document.documentElement.scrollTop || document.body.scrollTop) + 50 + 'px',
						left: (document.documentElement.scrollLeft || document.body.scrollLeft) + 50 + 'px',
						background: '#ebeade'
					})
					.show('slow');
			}
		});
	}

	return false;
}
/**************ЗАСТАВКА****************/
function firstTime() {
	var str = '<h1 style="background-color:#ebeade;padding:18px;"><img src="\/img\/24.gif" alt="" style="margin-right:15px;"\/>Мы загружаемся. Подождите, пожалуйста.<\/h1>';
	str += '<div style="background:#000;margin-top:3px;padding:15px 0 15px 55px;color:#fff;">';
	str += '<h1 style="background-color:#47dedc;margin-left:-3px;padding:6px 5px;display:inline;">А вы знаете, что:<\/h1>';
	str += '<p>по сайту можно перемещаться, просто подведя курсор к краю экрана. Или перетаскиванием. Или двойным кликом.<\/p>';
	str += '<p>А можно и по-старинке.<\/p><\/div>';
	initJSI(null);
	$('#news-overlay-box')
		.html(str)
		.css({
			top: (document.documentElement.scrollTop || document.body.scrollTop) + 150 + 'px',
			left: (document.documentElement.scrollLeft || document.body.scrollLeft) + 150 + 'px',
			background: 'none'
		})
		.show('slow');
}firstTime();