function RollThis(imgPath, imgName, state, imgType)
{
	document[imgName].src = imgPath + imgName + state + imgType;
}

function ToggleDisplay(itemId, state)
{
	var item = document.getElementById(itemId);
	
	if (state == 'show')
	{
		item.className = 'show';
	}
	else
	{
		item.className = 'hide';
	}
}

function ToggleOverlay(itemId, state)
{
	var item = document.getElementById(itemId);
	
	if (state == 'show')
	{
		item.className = 'showOverlay';
	}
	else
	{
		item.className = 'hideOverlay';
	}
}

function ShowImg(imgPath, imgName)
{
	document['lgImg'].src = imgPath + imgName;
}

function HideItem(itemId)
{
	var item = document.getElementById(itemId);
	item.className = 'hide';
}

function ShowItem(itemId)
{
	var item = document.getElementById(itemId);
	item.className = 'show';
}

function EnlargeMap(w, h, map_id)
{
	var map = document.getElementById(map_id);
	map.style.width = w+'px';
	map.style.height = h+'px';
	map.style.zIndex = 100000;
	map.style.position = 'absolute';
	map.style.top = '20%';
}