function findPosX(obj)
{
	var curleft = 0;
	if(obj.offsetParent)
	while(1)
	{
		curleft += obj.offsetTop;
		if(!obj.offsetParent)
			break;
		obj = obj.offsetParent;
	}
	else if(obj.x)
		curleft += obj.x;

	return curleft;
}

function GetLeftPos(screenwidth)
{
	var xposition;

	if(screenwidth == 800)
		xposition = 61;
	if(screenwidth == 1024)
		xposition = 61;
	if(screenwidth == 1152)
		xposition = 125;
	if(screenwidth == 1280)
		xposition = 189;
	if(screenwidth == 1400)
		xposition = 249;
	if(screenwidth == 1600)
		xposition = 349;

	return xposition;
}

function GetTopPos(screenwidth)
{
	var tPosition;

	if(screenwidth == 800)
		tPosition = 61;
	if(screenwidth == 1024)
		tPosition = 172;
	if(screenwidth == 1152)
		tPosition = 236;
	if(screenwidth == 1280)
		tPosition = 300;
	if(screenwidth == 1400)
		tPosition = 360;
	if(screenwidth == 1600)
		tPosition = 460;

	return tPosition;
}