var D1;
function CheckUIElements() {
	var yMenu1From, yMenu1To, yOffset, timeoutNextCheck;
	var wndWidth = parseInt(document.body.clientWidth);
	
	yMenu1From = parseInt(D1.style.top, 10);	
	yMenu1To = document.documentElement.scrollTop + 350;
	timeoutNextCheck = 100;
	var gy = false;
	if (yMenu1From != yMenu1To) {
		yOffset = Math.ceil(Math.abs(yMenu1To-yMenu1From)/20);
		if (yMenu1To<yMenu1From) {
			yOffset = -yOffset;
		}
		D1.style.top = parseInt(D1.style.top, 10)+yOffset + 'px';
		timeoutNextCheck = 10;
		gy = true;
	}
	setTimeout("CheckUIElements()",timeoutNextCheck);
}

function MovePosition(e_id) {
	D1 = document.getElementById(e_id);
	var wndWidth = parseInt(document.body.clientWidth);
	D1.style.top = document.body.scrollTop-100 + 'px';
	
	D1.style.visibility = "visible";
	//alert(document.body.scrollTop-100 + ' / ' + D1.style.top)
	CheckUIElements();
	
	return true;
}

