//var dbgFlag = false; // magic debugging

document.observe('dom:loaded', function(){ // one and only domload observer, order is important!
	
	banInit();
	
});


function banInit() {
	$$(".ban").each(function(el) {
		if (el.getHeight() > 20) {
			el.insert({ top: '<small class="inzer">Inzercia</small>' });
		}
		else
		{
			el.hide();
		}
	});
	$$(".ban_bottom").each(function(el) {
		if (el.getHeight() > 20) {
			el.insert({ top: '<small class="inzer">Inzercia</small>' });
		}
		else
		{
				el.hide();
		}
	});
	$$(".ban_top").each(function(el) {
		if (el.getHeight() > 20) {
			el.insert({ top: '<small class="inzer">Inzercia</small>' });
		}
		else
		{
				el.hide();
		}
	});
	$$(".top_ban").each(function(el) {
		if (el.getHeight() > 20) {
			
		}
		else
		{
				el.hide();
		}
	});
}

