function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}

function positionBottomLeftImage() {
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else
		if( document.documentElement &&
			( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			//IE 6+ in 'standards compliant mode'
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		} else
			if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			//IE 4 compatible
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
			}

	objNoten      = document.getElementById('noten');
	objBottomLeft = document.getElementById('bottomleft');
	objImg        = objBottomLeft.getElementsByTagName('IMG').item(0);

	/*  Opera seems to have a problem when accessing the img object multiple times, so save the values in local variables  */
	/*  IE browsers need to have the position up by 1px to prevent jittering  */
	imgHeight     = objImg.height + (typeof(window.innerWidth) == 'number' ? 0 : 1);
	imgCompleted  = objImg.complete;

	/*  If the image is not loaded yet then try again in 100 miliseconds  */
	if( ! imgCompleted )
	{
		setTimeout('positionBottomLeftImage()', 100);
		return true;
	}

	/*  101 is the height of the noten image  */
	if( myHeight - imgHeight >= findPosY(objNoten) + 101 )
		objBottomLeft.style.top = myHeight - imgHeight + "px";
	else
		objBottomLeft.style.top = findPosY( objNoten ) + 101 + "px";
}

window.onresize = positionBottomLeftImage;
