//Funkcje wykorzystywane tylko na stronie startowej index.html
function setSpacersIndex()
{
	h=(document.body.clientHeight-330)/2;
	document.all.spacerTop.style.height=h;
	document.all.spacerBottom.style.height=h;
	w=(x=(document.body.clientWidth-360)/2)<300?300:x;
	document.all.spacerLeft.style.width=w;
	document.all.spacerRight.style.width=w;
}

function setIcons()
{
	for(i=1;i<9;i++)
	{	divId=i + "Menu";
		div=document.getElementById(divId);
		switch(div.id)
		{	case "1Menu":
				with (div.style)
				{	top=document.all.spacerTop.clientHeight-5;
					left=document.all.leftBorder.clientWidth-226-100;
				}
				break;
			case "2Menu":
				with (div.style)
				{	top=document.all.spacerTop.clientHeight-5;
					left=document.all.leftBorder.clientWidth-226-50;
				}
				break;
			case "3Menu":
				with (div.style)
				{	top=document.all.spacerTop.clientHeight-5;
					left=document.all.leftBorder.clientWidth-226;
				}
				break;
			case "4Menu":
				with (div.style)
				{	top=document.all.spacerTop.clientHeight-5;
					left=document.all.leftBorder.clientWidth+198;
				}
				break;
			case "5Menu":
				with (div.style)
				{	top=document.all.spacerTop.clientHeight+134+68;
					left=document.all.leftBorder.clientWidth-226;
				}
				break;
			case "6Menu":
				with (div.style)
				{	top=document.all.spacerTop.clientHeight+134+68;
					left=document.all.leftBorder.clientWidth+198;
				}
				break;
			case "7Menu":
				with (div.style)
				{	top=document.all.spacerTop.clientHeight+134+68;
					left=document.all.leftBorder.clientWidth+250;
				}
				break;
			case "8Menu":
				with (div.style)
				{	top=document.all.spacerTop.clientHeight+134+68;
					left=document.all.leftBorder.clientWidth+320;
				}
				break;
		}
	}
}