
		// #############################################################################
		// Вспомогательные функции

		//Размер клиентской области окна по горизонтали
		//******************************************
		function getClientWidth() {
			var w=0;
			if (self.innerHeight) w = self.innerWidth;
			else if (document.documentElement && document.documentElement.clientWidth) w = document.documentElement.clientWidth;
			else if (document.body) w = document.body.clientWidth;
			return w;
		}

		//Размер клиентской области окна по вертикали
		//******************************************
		function getClientHeight() {
			var h=0;
			if (self.innerHeight) h = self.innerHeight;
			else if (document.documentElement && document.documentElement.clientHeight) h = document.documentElement.clientHeight;
			else if (document.body) h = document.body.clientHeight;
			return h;
		}

		//координаты центра окна с учетом скроллинга
		//******************************************
		function getClientCenterX() {
			return parseInt(getClientWidth()/2)+getBodyScrollLeft();
		}

		function getClientCenterY() {
			return parseInt(getClientHeight()/2)+getBodyScrollTop();
		}

		//на сколько проскручена страница
		//******************************************
		function getBodyScrollTop() {
			return self.pageYOffset || (document.documentElement && document.documentElement.scrollTop) || (document.body && document.body.scrollTop);
		}

		function getBodyScrollLeft() {
			return self.pageXOffset || (document.documentElement && document.documentElement.scrollLeft) || (document.body && document.body.scrollLeft);
		}

		// #############################################################################
		
	function showShopCart(id){
		blockId = document.getElementById(id);
		blockId.style.left = getBodyScrollLeft() + 'px';		
		blockId.style.top = getBodyScrollTop() + 'px';
		blockId.style.visibility = 'visible';
		document.body.style.overflowX='hidden';
		document.body.style.overflowY='hidden';	
	}
			
	function hideShopCart(id){
		blockId = document.getElementById(id);
		document.body.style.overflowX='auto';
		document.body.style.overflowY='auto';
		blockId.style.visibility = 'hidden';
	}

