/******************************************************************************************************
           .-"""""""-.
         .'       __  \_
        /        /  \/  \
       |         \_0/\_0/______
       |:.          .'       oo`\
       |:.         /             \
       |' ;        |             |
       |:..   .     \_______     |
       |::.|'     ,  \,_____\   /
       |:::.; ' | .  '|      )_/
       |::; | | ; ; | |
      /::::.|-| |_|-|, \
     /'-=-'`  '-'   '--'\
    /                    \
*******************************************************************************************************/

//****************************************************************************************************
//***global variables
//****************************************************************************************************
var actDate = new Date();
var actMinute = actDate.getMinutes();
var actHour = actDate.getHours();
var actDay = actDate.getDate();
var actMonth = actDate.getMonth(); //***Remember: January = 0!
var actYear = actDate.getFullYear();

function zoom(thisDirection){
	if(document.getElementById('mapImg') && document.getElementById('actMap')){
		var newMap = 0;
		
		switch(parseInt(document.getElementById('actMap').value, 10)){
			case	1:	if(thisDirection == "in") newMap = 2;
					break;
			case	2:	if(thisDirection == "in") newMap = 3;
					if(thisDirection == "out") newMap = 1;
					break;
			case	3:	if(thisDirection == "in") newMap = 4;
					if(thisDirection == "out") newMap = 2;
					break;
			case	4:	if(thisDirection == "out") newMap = 3;
					break;
		}

		if(newMap != 0){
			document.getElementById('mapImg').style.backgroundImage = "url(./images/map_zoom_0" + newMap + ".jpg)";
			document.getElementById('actMap').value = newMap;
		}
	}
}