function fixPosition() {
	
	var text		= xGetElementById("text");
	var colorBoxen	= xGetElementById("color-boxen");
	var metanav		= xGetElementById("metanav");
	
	var heightText			= xHeight("text");
	var heightColorBoxen	= xHeight("color-boxen");
	var heightLinkbox		= xHeight("link-box");
	
	var macIE = checkMacIE ();
	if (heightText <= 475) {
		newTextHeight = 475+98-heightLinkbox;
		text.style.height = newTextHeight + "px";
		if (macIE) {
			document.all["text"].style.height = "456px";
		}
	} else if (heightText > 475) {
		faktor = Math.ceil((heightText-475)/heightLinkbox);
		newColorHeight = (588+heightLinkbox-98)+(faktor*heightLinkbox);
		newTextHeight = newColorHeight-16-heightLinkbox;
		colorBoxen.style.height = newColorHeight+"px";
		text.style.height = newTextHeight+"px";
		if (macIE) {
			newTextHeight -= 18;
			document.all["text"].style.height = newTextHeight+"px";
		}
	}
	metanav.style.margin = "0 2px 20px 0";
}

function xHeight(e,uH) {
	if(!(e=xGetElementById(e)) || (uH && uH<0)) return 0;
		uH=Math.round(uH);
		var css=xDef(e.style);
	if(css && xDef(e.style.height,e.offsetHeight) && typeof(e.style.height)=="string") {
		uH=e.offsetHeight;
	}
	else if(css && xDef(e.style.pixelHeight)) {
	if(arguments.length>1) e.style.pixelHeight=uH;
		uH=e.style.pixelHeight;
	}
	else if(xDef(e.clip) && xDef(e.clip.bottom)) {
	if(arguments.length>1) e.clip.bottom=uH;
		uH=e.clip.bottom;
	}
	return uH;
}

function xGetElementById(e) {
  if(typeof(e)!="string") {
  return e;
  }
  if(document.all) {
  e=document.all[e];
  }
  else if(document.getElementById) {
  e=document.getElementById(e);
  }
  else if(document.layers) {
  e=xLayer(e);
  }
  else {
  e=null;
  }
  return e;
}

function xDef() {
  for(var i=0; i<arguments.length; ++i){if(typeof(arguments[i])=="" || typeof(arguments[i])=="undefined") return false;}
  return true;
}

function checkMacIE () {
	var macIE = 0;
	var navUA = navigator.userAgent;
	if (navUA.indexOf('MSIE')!=-1 && navUA.indexOf('Mac_PowerPC')!=-1)	{
		var macIE = 1;
	}
	return macIE;
}