/**
**  Ausgleichen zwischen linkem und rechtem Frame
		Der Bereich contentLeft wird in der Höhe so angepaßt, 
		daß er mit dem footer-right abschließt
*/
var DHTML = 0, DOM = 0, MS = 0, NS = 0, OP = 0;

var equalize = function(){
	var leftHeight, rightHeight;
	var leftTop, rightTop, rightBottom;	
	var newHeight;
	
	detectBrowser();
	try{
		if(MS){
			leftHeight = $('contentLeft').currentStyle.height;
			rightHeight = $('footer-right').currentStyle.height;
		}
		if(DHTML && !MS){
			leftHeight = document.defaultView.getComputedStyle($('contentLeft'), null).height;	
			rightHeight = document.defaultView.getComputedStyle($('footer-right'), null).height;	
		}
		leftTop = $('contentLeft').offsetTop;
		//alert("LeftTop: " + leftTop);
		
		rightTop = $('footer-right').offsetTop;
		//alert("RightTop: " + rightTop);
		//alert("Right Height : " + rightHeight);
		rightBottom = parseInt(rightTop) + parseInt(rightHeight);
		//alert("rightBottom: " + rightBottom);
		newHeight = rightBottom - parseInt(leftTop);
		//alert("NewHeight: " + newHeight);
		$('contentLeft').style.height = (newHeight-0) + "px";
	}catch(exception){
		//perhaps there is an DOM object not present, then we have to do nothing
	}
	
}

var detectBrowser = function() {
	if (window.opera) {
     OP = 1;
 	}
 	if(document.getElementById) {
  	DHTML = 1;
  	DOM = 1;
 	}
 	if(document.all && !OP) {
  	DHTML = 1;
  	MS = 1;
 	}
	if(document.layers && !OP) {
  	DHTML = 1;
  	NS = 1;
 	}
} 