/*	-------------------------------------------------------------------------------- */

//	description: javascript for switch id in use with adobe flash

//	author: cornel boppart
//	date: may 2009

/*	-------------------------------------------------------------------------------- */
// please beware to make changes in this file!

/*	-------------------------------------------------------------------------------- */

// get flash movie object
var flashMovie;

window.onload = init;

function init() {
	if (document.getElementById) {
		flashMovie = document.getElementById("_map");
	}
}
	
function zoomInOut(value) {
	if (flashMovie) {
		flashMovie.zoomInOut(value);
	}
}

function scaleFactor(curr, min, max) {
	var zoomin = document.getElementById("zoomin");
	var zoomout = document.getElementById("zoomout");
	if (curr == min) {
		if (zoomout.className != "zoomout_inactive") zoomout.className = "zoomout_inactive";
	}
	else if (zoomout.className != "zoomout") document.getElementById('zoomout').className = "zoomout";
	
	if (curr == max) {
		if (zoomin.className != "zoomin_inactive") zoomin.className = "zoomin_inactive";
	}
	else if (zoomin.className != "zoomin") zoomin.className = "zoomin";
}
