<!--
/*
 * modified 2009.03.04
 *
 */
function konkursy()
{
	var acc = zwrocObiekt('mother',0);
	//var opisy = zwrocObiekt('opisy',0);
	var opisy = zwrocObiekt('opisy',0);
	var dim = getWindowDimensions();
	var opisyMarginLeft = 330;
	
	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 FFmodif = (isFF)?(15):(0);
	
	if(dim[0]>=1000)
	{
		var newVal = Math.round((dim[0] - acc.offsetWidth - FFmodif)/2) + "px";
		acc.style.left = newVal;
		//opisy.style.left = Math.round((dim[0] - opisy.offsetWidth - FFmodif)/2) + "px";
		opisy.style.marginLeft = opisyMarginLeft + (Math.round((dim[0] - 1000 - FFmodif)/2)) + "px";
		window.alert("dim[0] = "+dim[0]+"\n"+"opisyOffsetWidth = "+opisyOffsetWidth+"\n"+"opisy.style.marginLeft = "+opisy.style.marginLeft);
	}
		
	if((230+acc.offsetHeight)>dim[1])
	{
		acc.style.bottom = "auto";
		acc.style.top = "230px";
	}
	else
	{
		acc.style.top = "auto";
		acc.style.bottom = "0px";
		//opisy.style.bottom = "auto";
		//opisy.style.top = 140 + (0.1*screen.height) + "px";
	}
	return true;
}


/*
	funkcja: showOpis(nr)
	autor: Wojciech Włodarski (c) 2007 dla DOROŻKARNIA
	opis:
			pokazywanie / ukrywanie obiektów	*/
function showOpis(nr)
{
	for (i=10; i<=18; i++)
	{
		acc	= zwrocObiekt('o'+i,1);
		acc.visibility = (i==nr)?("visible"):("hidden");
	}
	return true;
}
-->
