function CheckExtras() {
	CenterWindow('http://www.joinup.kiev.ua/SAMO/check_confirm/', 'Проверка заявки', 650, 300);	
}
function CallBack() {
	CenterWindow('/callback/', 'Заказать обратный звонок', 650, 300);	
}
function Maillist() {
	CenterWindow('/Maillist/', 'Подписка на рассылку', 650, 300);	
}
function showInfo(id) {
	var id_spo_site = id;
	var height = getScrollHeight()+document.body.clientHeight; 
	$('#bg_layer').css("height", height); 
	$('#bg_layer').show();
	$('#desc_title').html("");
	$('#desc_text').html("");
	$('#desc').show();
	AjaxRequest.send(null, '/action/webpromo/showform/', 'Загрузка...', true, {'id':id_spo_site});
	centerDiv('desc');
//	$('#desc').css('left', Math.floor(($(window).width() - $('#desc').width()) /2)+'px');
//	$('#desc').css('top', Math.floor(($(window).height() - $('#desc').height()) /2 + $(document).scrollTop())+'px');
	$("body").css("overflow", "hidden");
		$('#bg_layer').show();
	//$('#desc').show();

	return false;
}
function showblock(id) {
	var id_spo_site = id;
	var height = getScrollHeight()+document.body.clientHeight; 
	$('#bg_layer').css("height", height); 
	$('#bg_layer').show();
	$('#desc').show();
	AjaxRequest.send(null, '/action/joinup/get_block_seats/', 'Загрузка...', true, {'id':id_spo_site});
	centerDiv('desc');
	$("body").css("overflow", "hidden");
		$('#bg_layer').show();
	$('#desc').show();

	return false;
}
function hideFadeCart() {
	$('#bg_layer').hide();
	$('#alert').hide();
	$('#desc').hide();
	$("body").css("overflow", "visible");

}
function getScrollHeight(){
   var h = window.pageYOffset ||
           document.body.scrollTop ||
           document.documentElement.scrollTop;
           
   return h ? h : 0;
}

