function checkContentHeight() {
	if ($(".main").height() > $(".leftmenu").height()) {
		$(".content").height($(".main").height()+20);
		$(".main").css("padding-bottom","20px");
	}
	else {
		$(".content").height($(".leftmenu").height()+40);
		$(".main").height($(".leftmenu").height()+30);
		$(".main").css("padding-bottom","10px");
	}
}
$(document).ready(function() {
	/*if ($(".main").height() > $(".leftmenu").height()) {
		$(".content").height($(".main").height()+20);
		$(".main").css("padding-bottom","20px");
	}
	else {
		$(".content").height($(".leftmenu").height()+40);
		$(".main").height($(".leftmenu").height()+30);
		$(".main").css("padding-bottom","10px");
	}*/
	
	setTimeout('checkContentHeight()',1000);
	
	
	/** SPAM elleni e-mail címek védelme 2.0 **/	
	$("a[href^='mailto:']").each(function() {
		if ($(this).attr('rel') != null) {
			var replace_href = $(this).attr('rel').replace(/-kukac-/i,"@").replace(/-pont-/i,".");
			var replace_val = $(this).text().replace(/-kukac-/i,"@").replace(/-pont-/i,".");
			$(this).text(replace_val);		
			
			$(this).click(function() {
				window.location='mailto:'+replace_href;
				return false;			
			});
		}
		else {
			var replace_href = $(this).attr('href').replace(/-kukac-/i,"@").replace(/-pont-/i,".");
			var replace_val = $(this).text().replace(/-kukac-/i,"@").replace(/-pont-/i,".");

			$(this).attr('href', replace_href);
			$(this).text(replace_val);
		}
	});	
	
});



