﻿function openPrivacyLayer(){
	var hiddenLayer = document.getElementById('hiddenLayer');
	with(hiddenLayer.style){
		display = 'block';
		height = document.body.scrollHeight+'px';
		width = document.body.scrollWidth+'px';
	}
	var privacyLayer = document.getElementById('privacyLayer');
	with(privacyLayer.style){
		display = 'block';
		left = ((window.innerWidth ||  document.documentElement && document.documentElement.clientWidth || document.body.offsetWidth)-800)/2+'px';
		top = document.body.scrollTop+((window.innerHeight ||  document.documentElement && document.documentElement.clientHeight || document.body.offsetHeight)-500)/2+'px';
	}
}
function closePrivacy(){
	document.getElementById('hiddenLayer').style.display = 'none';
	document.getElementById('privacyLayer').style.display = 'none';
}
