
// funkce pro srovnání výšek boxů

function adjustHeights()
{
	$('.admin-box').each(function(){  		
		var height = 0;			
		$('.body .spc', this).each(function(){
			$(this).css('height', 'auto');
			height = this.offsetHeight > height ? this.offsetHeight : height;		
		}).each(function(){
			if(height > 0) $(this).css('height', height - 18 + 'px');
		});	
	});
};

function fontSizeListener()
{
	this.el = 0;
	this.h = 0;
	this.listen = function()
	{    			
		this.el = document.getElementById('mother');
		if(this.el.offsetHeight != this.h){
			this.h = parseInt(this.el.offsetHeight);
			adjustHeights();					
		}
	};
	
	this.fontSizeInterval = setInterval(this.listen, 200);			
 };

$(document).ready(function()
{	
	adjustHeights();
	new fontSizeListener();
});
