function movefooter() {
	var blankfooter = document.getElementById('blankfooter');
	var footer = document.getElementById('footer');
	
	var blankfooterpic = document.getElementById('blankfooterpic');
	if (blankfooterpic != null) {
		blankfooter.removeChild(blankfooterpic);
	}

	if (blankfooter != null && footer != null) {
		var windowheight = window.innerHeight;
		var imageheight = 0;
		var offsetDiv = findPosY(footer);

		if (windowheight - 50 > offsetDiv) {
			imageheight = windowheight - offsetDiv - 50;

			var pic = document.createElement('IMG');
			pic.setAttribute('height', imageheight, 1);
			pic.setAttribute('src', '/cms/system/modules/de.uform.opta2content/resources/images/blank.gif', 1);
			pic.setAttribute('id', 'blankfooterpic');

			blankfooter.appendChild(pic);
		}
	}
}
function findPosY(obj) {
	var curtop = 0;
	if(obj.offsetParent)
		while(1) {
			curtop += obj.offsetTop;
			
			if(!obj.offsetParent)
				break;
				obj = obj.offsetParent;
		}
	else if(obj.y)
		curtop += obj.y;

	return curtop;
}

