function zajecia()
{
	if(screen.width>1024)
		{
			//var acc = zwrocObiekt('miarka',0);
			var bcc = Math.floor((screen.width - 1024)/2);
			var globalLeftCoord = 428 + bcc; // współrzędna środka strony
			//acc.style.left = globalLeftCoord + "px";
			
			var acc = zwrocObiekt('tresc',0);
			acc.style.left = globalLeftCoord - 299 + "px";
		}// treść - pozycjonowanie poziome
	
	if(screen.height>800)
		{
			var acc = zwrocObiekt('tresc',0);
			//acc.style.top = Math.floor((screen.height - 800)/2) + 20 + "px";
			acc.style.top = 120 + "px";
		}// treść - pozycjonowanie pionowe
	
	var acc = zwrocObiekt('tresc',1); acc.visibility = "visible";
	
	
	
	// trawka
		var trawka = zwrocObiekt('trawka',0);
		var dim = getWindowDimensions();
		var diffL = Math.floor((screen.width - 1024)/2);
		var agt=navigator.userAgent.toLowerCase();
		var isFF = (agt.indexOf("firefox") != -1)?(true):(false); /* Firefox liczy rozmiary obrazu dodając do nich rozmiary suwaków */
		
		var tresc = zwrocObiekt('tresc',0);
		var trescPos = findPos(tresc);
		
		var longTresc = ((trescPos[1]+tresc.offsetHeight)>(dim[1]- trawka.offsetHeight - 143))?(true):(false);
		
		if(screen.width>1024)
		{
			var addL = 787 - diffL;
			trawka.style.left = -addL + "px";
			if (isFF && !longTresc) trawka.style.width = addL + dim[0] + "px"; /* Firefox liczy rozmiary obrazu dodając do nich rozmiary suwaków */
			else if(isFF && (longTresc)) trawka.style.width = addL + dim[0] - 15 + "px"; /* Firefox liczy rozmiary obrazu dodając do nich rozmiary suwaków */
			else trawka.style.width = addL + dim[0] + "px";
			
			//pozycja stopki
			var stopka = zwrocObiekt('stopka',0);
			stopka.style.right = Math.floor((dim[0] - stopka.offsetWidth)/2) + "px";
		}
		else
		{
			if (isFF && !longTresc) trawka.style.width = dim[0] + "px"; /* Firefox liczy rozmiary obrazu dodając do nich rozmiary suwaków */
			else if(isFF && (longTresc)) trawka.style.width = dim[0] - 15 + "px"; /* Firefox liczy rozmiary obrazu dodając do nich rozmiary suwaków */
			else trawka.style.width = dim[0] + "px";
		}
		
		if(longTresc)
		{
			// gdy 'tresc' jest za długa by uzyć pozycjonowania 'trawki' bottom=0px
			trawka.style.bottom = "auto";
			trawka.style.top = trescPos[1] + tresc.offsetHeight + 143 + "px";			
		}
		else
		{
			trawka.style.bottom = "auto";
			trawka.style.top = dim[1] - trawka.offsetHeight + "px";
		}
	
	
	
		var menuZajecia = zwrocObiekt('menuZajecia',0);
		var trawka = zwrocObiekt('trawka',0);
		var trawkaPos = findPos(trawka);
		menuZajecia.style.bottom = "auto";
		menuZajecia.style.top = trawkaPos[1] + 62 - 216 + "px";
		
		if(screen.width>1024) menuZajecia.style.left = globalLeftCoord - 420  + "px";
		
	var acc = zwrocObiekt('menuZajecia',1); acc.visibility = "visible";
}
