// Detta är skapat av tws för att användas av Hälsohörnan
// Denna kod bör inte ändras då skiter sig nog det mesta
function getWindowHeight() {
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
				windowHeight = window.innerHeight;
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					windowHeight = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						windowHeight = document.body.clientHeight;
					}
				}
			}
			return windowHeight;
		}
		function setFooter() {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				if (windowHeight > 0) {
					var contentHeight = document.getElementById('content').offsetHeight;
					var footerElement = document.getElementById('footer');
					var footerHeight  = footerElement.offsetHeight;
					if (windowHeight - (contentHeight + footerHeight) >= 0) {
						footerElement.style.top = (windowHeight - (contentHeight + footerHeight + 10)) + 'px';
					}
					else {
						footerElement.style.top = '0px';
					}
				}
			}
		}
		window.onload = function() {
			setFooter();
		}
		window.onresize = function() {
			setFooter();
		}
		var mytitle=document.title.substring(document.title.indexOf(":")+1, 1000);
		var myfile=location.href.substring(8,1000);
		myfile=myfile.substring(myfile.indexOf("/")+1,1000);
		myfile= "<span style='font-size:7pt;'>" + myfile + "</span>";
		parent.document.getElementById('besk').innerHTML="<B>"+mytitle+"</B><BR>"+myfile;
		

