/**
 * @author abratfisch
 */
function fixcontentheight() {
	var this_location = new String(window.location);
	
	if ( this_location.indexOf("wysiwyg") == -1 &&  $("rightCol") ) {
		var ws = window.getSize().y - $("service").getSize().y;
		if ($("rightCol").getSize().y < ws) {
			$("rightCol").setStyles({
				height: ws
			});
		}
	}
	
	if ( this_location.indexOf("wysiwyg") == -1 &&  $("leftCol") ) {
		var ws = window.getSize().y - $("service").getSize().y;
		if ($("leftCol").getSize().y < ws) {
			$("leftCol").setStyles({
				height: ws
			});
		}
	}
}


window.addEvent('scroll', function(){
	fixcontentheight();
    
});

window.addEvent('resize', function(){
	fixcontentheight();
});

window.addEvent('domready', function(){
	fixcontentheight();
});