// JavaScript Document
	var popUp=0;
	var thisMargin = 5;
	var popLeftPosition = thisMargin;
	var popTopPosition = thisMargin;
	var pause=10;
	var step=45;
	var timer=0;
	var screenWidth = 0; 
	var screenheight = 0;
	var endX = 0;
	var endY = 0
function natur_pro (page_name,h,w) {
	//LeftPosition=(screen.width)?(screen.width-w)/2:100;
  	LeftPos = 5;
 	TopPos=(screen.height)?(screen.height-h)/2:100;
	popTopPosition = TopPos;
	settins='Height='+h+',Width='+w+',resizable=no,scrollbars=1,status=no,menubar=no,toolbar=no,left='+LeftPos+',top='+ TopPos;
 	popLeftPosition = thisMargin;
	screenWidth = window.screen.width;
	screenheight = window.screen.height;
	endX = (screen.width)?(screenWidth - w - thisMargin)/2:100;
	endY = (screen.height)?(screenheight - h - thisMargin)/2:100;
	popUp=window.open (page_name,"NaturPro",settins);
	popUp.opener.name="main_detelina";
	if (window.focus) {popUp.focus()};
 	moveright();
}
	function moveright() 
{
	if (popLeftPosition <= endX) {
		popUp.moveTo(popLeftPosition,popTopPosition);
		popLeftPosition += step;
		timer = setTimeout("moveright()",pause);
	}
	else {
		clearTimeout(timer);
		popLeftPosition = endX;
		popUp.moveTo(popLeftPosition,popTopPosition);
		//moveleft();
	}
}
	function moveleft() {
	if (popLeftPosition >= thisMargin) {
		popUp.moveTo(popLeftPosition,popTopPosition);
		popLeftPosition -= step;
		timer = setTimeout("moveleft()",pause);
	}
	else {
		clearTimeout(timer);
		popLeftPosition = thisMargin;
		popUp.moveTo(popLeftPosition,popTopPosition);
	}
}
