function BodyOnLoad()
{
	///SetMaxHeightAllChildren('KalendariumNewsDiv',1);
}
function SetMaxHeightAllChildren(id,klasa)
{
	if(klasa==1)
	{
		var objParent=$('content').getElementsByClass(id);
	}
	else
		var objParent=[$D(id)];
		
	if(objParent)
	{
		for(var j=0; j<objParent.length;++j)
		{
		 	
			var child=objParent[j].childNodes;
			var wys=GetHeight(objParent[j]);
			for(var i=0; i<child.length; ++i)
			{
				child[i].style.height=wys+'px';
			}
		}	
	}
}

if(typeof GetHeight !='function')
GetHeight=function(obj) 
{
	obj = $D(obj);
	if(!$D(obj).clientHeight) $D(obj).style.zoom = "1.0";
	return $D(obj).clientHeight;
}

if(typeof $D !='function')
$D = function(obj) {
	return (typeof obj == "string") ? document.getElementById(obj) : obj;
}
if(typeof $ !='function')
$ = function(id) 
{
	if(!id) return null;
		
	var e = (typeof id == "string") ? document.getElementById(id) : id;
	
	if(!e) return null;
	
	e.getElementsByClass = function(className, tag) {
			var r = [];
			var n = this.getElementsByTagName(tag || '*');
			var p = new RegExp('(^|\\s)'+className+'(\\s|$)');
			
			for(var i = 0; i < n.length; ++i)
				if(p.test(n[i].className))
					r.push(n[i]);
			
			return r;
		}
	return e;	
}
function ShowMenu(id,obj)
{
	var obj= obj? obj: window.event;
	if($D(id).className=='miesiaceDivActive')
	{
		$D(id).className='miesiaceDiv';
		$D(obj).className='rok_link';
	}
	else 
	{
		$D(id).className='miesiaceDivActive';
		$D(obj).className='rok_link_active';
	}
}
function SetDateFiltr(rok,miesiac)
{
	$D('rokFiltr').value=rok;
	$D('miesiacFiltr').value=miesiac;
	$D('formMenuDate').submit();
	
}
