function swap_nav(image, directory, name, state) {
	image.src = directory + name + (state == 1 ? '-on' : '') + '.jpg';
}