// JavaScript Document
function CheckUIElements(floatid)
{
	var yMenu1From, yMenu1To, yOffset, timeoutNextCheck;
	var wndWidth = parseInt(document.body.clientWidth);
	
	yMenu1From   = parseInt (document.getElementById(floatid).style.top, 10);
	yMenu1To     = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop + 100; 
	
	timeoutNextCheck = 500;
	
	if ( yMenu1From != yMenu1To ) {
		yOffset = Math.ceil( Math.abs( yMenu1To - yMenu1From ) / 20 );
		
		if ( yMenu1To < yMenu1From )
			yOffset = -yOffset;
		
		document.getElementById(floatid).style.top = parseInt (document.getElementById(floatid).style.top, 10) + yOffset + 'px';
	
		timeoutNextCheck = 10;
	}
	
	setTimeout ("CheckUIElements(floatid)", timeoutNextCheck);
}

function MovePosition()
{	

	floatid = 'popcart';
	

	//floatid = 'popcart';

	var wndWidth = parseInt(document.body.clientWidth);
	
	document.getElementById(floatid).style.top = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop - 10 + 'px';
	
	document.getElementById(floatid).style.visibility = "visible";
	
	CheckUIElements(floatid);
	
	return true;
}
