function swapImage(img, newImg) {
	if (typeof(newImg) == 'string') {
		document.getElementById(img).src = newImg;
	} else if (typeof(newImg) != 'undefined') {
		document.getElementById(img).src = newImg.src;
	}
}

function swapMapImage(state) {
	var imgName = '/images/map/system-map' + ((state) ? '-' + state : '') + '.gif';
	swapImage('svcmap', imgName);
}
