	function sett(bFlag) {
		if(bFlag) {
			document.getElementById('wndd').width = document.getElementById('imgg').width;
			document.getElementById('wndd').height = document.getElementById('imgg').height;
		}
		else {
			document.getElementById('wndd').width = 700;
			document.getElementById('wndd').height = 500;
		}
		
		changeWindow();
	}
	function openn() {
		document.getElementById("aroundd").style.display = "block";
		document.getElementById("wndd").style.display = "block";
	}
	
	function closee() {
		document.getElementById("aroundd").style.display = "none";
		document.getElementById("wndd").style.display = "none";
	}
	
	function changeWindow() {
		var X = document.body.clientWidth;
		/*var Y = document.body.clientHeight;*/
		
		document.getElementById('aroundd').style.width = document.body.clientWidth;
		document.getElementById('aroundd').style.height = document.body.clientHeight;
		
		var wndLeft;
		
		if(document.getElementById("wndd").style.left < 0+'px') {
			wndLeft = 0+'px';
		}
		else {
			wndLeft = X/2 - document.getElementById('wndd').width/2;
		}
		var wndTop = 100+'px';
		
		document.getElementById("wndd").style.top = wndTop;
		document.getElementById("wndd").style.left = wndLeft;
	}
