function footerDown() {
	d=document;
	if (typeof window.innerWidth!='undefined') {
	var winWidth = window.innerWidth;
	var winHeight = window.innerHeight;
	} else {
	if (d.documentElement && typeof d.documentElement.clientWidth!='undefined' && d.documentElement.clientWidth!=0) {
		var winWidth = d.documentElement.clientWidth
		var winHeight = d.documentElement.clientHeight
		} else {
			if (d.body && typeof d.body.clientWidth!='undefined') {
			var winWidth = d.body.clientWidth
			var winHeight = d.body.clientHeight
			}
		}
	}
	if ($('#Content').attr('class') == 'content_pid3') allBlocks = ($('#Menu').height() + $('#pid3_all').height() + $('#Content').height()) - $('#Empty').height();
																 else allBlocks = ($('#Menu').height() + $('#Flash').height() + $('#Content').height()) - $('#Empty').height();
	if (allBlocks < winHeight) $('#Empty').height(winHeight - allBlocks);
	
} 

$(document).ready(function(){
				/* LightBox */
				
				$("#All A IMG").parent().lightBox();
				$("#All A IMG").parent().attr("title", "Kliknij z boku zdjęcia aby zobaczyć następne.");
				
				/* -------- */
				
				footerDown();
			
});

if (window.addEventListener) {
	window.addEventListener("resize", footerDown, false);
	window.addEventListener("load", footerDown, false);
}else if (window.attachEvent) {
	window.attachEvent("onresize", footerDown);
	window.attachEvent("onload", footerDown);
}