var imgObj = new Array(2);
var currentId = 'Main';

function initPage()
{
imgObj[0] = new Image();
imgObj[0].src = 'images/buttonHigh.jpg';
imgObj[1] = new Image();
imgObj[1].src = 'images/buttonNotSelectedMiddle.jpg';
imgObj[2] = new Image();
imgObj[2].src = '../images/buttonHigh.jpg';
imgObj[3] = new Image();
imgObj[3].src = '../images/buttonNotSelectedMiddle.jpg';
}
	
function changeOn(myObj,imgVer)
{
    document.getElementById(myObj).background = imgObj[imgVer].src;
}

function changeOff(myObj,imgVer)
{
    document.getElementById(myObj).background = imgObj[imgVer].src;
}

function openSection(sectionPage)
{
		document.location = sectionPage + '.html';
}

function showObject(objectId)
{
	document.getElementById(objectId).style.display = '';
	if(currentId!=null)
	{
	document.getElementById(currentId).style.display = 'none';
	}
	currentId = objectId;
}
