var $j = jQuery.noConflict();

$j(function(){
	function checkBoxHeight() {
		var hoehe1 = $j('#main .content1').height();
		var hoehe2 = $j('#main .content2').height();
		
		if (hoehe1 >= hoehe2) {
			if ($j('#main .content1.submenue').length != 0) {
				hoehe1 += 35;
			}
			$j('#main .content2').css('height',hoehe1);
		} else if (hoehe2 > hoehe1) {
			if ($j('#main .content1.submenue').length != 0) {
				hoehe2 -= 35;
			}
			$j('#main .content1').css('height',hoehe2);
		}
	}
	
	if (($j('#main .content1').length != 0) && ($j('#main .content2').length != 0)) {
		checkBoxHeight();
	}
});
