IE = document.all;
NN = document.layers;
N6 = !IE && document.getElementById
MAC = navigator.userAgent.indexOf('Mac') != -1;
WIN = navigator.userAgent.indexOf("Windows") != -1

flash = 0;
if (navigator.mimeTypes && navigator.mimeTypes['application/x-shockwave-flash']) {
	var plugin = navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin;
	if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf('.') - 1)) >= 4)
		flash = 1;
} else if (WIN && IE && navigator.userAgent.indexOf('Windows 3.1') == -1) {
	flash = 1;
} else if (MAC && IE && navigator.appVersion.indexOf('MSIE 4') != -1) {
	flash = 1;
}

if (document.images) {
	IM = new Array();
	OM = new Array();
	for (i = 1; i <= 17; i++) {
		IM[i] = new Image(); IM[i].src = 'img/st_' + i + 'a.gif';
		OM[i] = new Image(); OM[i].src = 'img/st_' + i + '.gif';
	}
}
function MI(n) { if (document.images) document.images['M' + n].src = IM[n].src; }
function MO(n) { if (document.images) document.images['M' + n].src = OM[n].src; }


if (document.images) {
	IB = new Array();
	OB = new Array();
	for (i = 1; i <= 9; i++) {
		IB[i] = new Image(); IB[i].src = 'img/bt_' + i + 'a.gif';
		OB[i] = new Image(); OB[i].src = 'img/bt_' + i + '.gif';
	}
}
function BI(n) { if (document.images) document.images['B' + n].src = IB[n].src; }
function BO(n) { if (document.images) document.images['B' + n].src = OB[n].src; }


function showImage() {
	document.getElementById('gmap').style.visibility = "hidden";
	document.getElementById('picture').style.visibility = "visible";
}
function showMap() {
	document.getElementById('picture').style.visibility = "hidden";
	document.getElementById('gmap').style.visibility = "visible";
}



