// Class-Name:   colComp
// Author: Sven Rhinow (www.sr-tag.de,kservice@sr-tag.de)
// Licenz: LGPL
var colComp = new Class({	
    Implements: [ Options ],
    options:{
	col1: '.leftcol',
	col2: '.rightcol',	    
    },   
    initialize: function(options){
	
	//overwrite options
	this.setOptions(options);
	
	this.col1 = this.options.col1;
	this.col2 = this.options.col2;
	
	var c1h = $$(this.col1).getStyle('height');
	var c2h = $$(this.col2).getStyle('height');
		
	if(c1h < c2h) $$(this.col1).setStyles({'height':c2h});
	else $$(this.col2).setStyles({'height':c1h});
    }    	    
});

//dieser Aufruf kann auch zur besseren Anpassung ausgelagert werden
var cC = new  colComp({
	col1:'.leftcol .colsubsite',
	col2:'.rightcol .colsubsite'
	});
