domain = 'alronix.com';
email_tech = 'tech@'+domain;
email_support = 'support@'+domain;
email_info = 'info@'+domain;

map0 = new Image();
map1 = new Image();
map2 = new Image();
map3 = new Image();
map4 = new Image();
map0.src = '/images/map0.gif';
map1.src = '/images/map1.jpg';
map2.src = '/images/map2.gif';
map3.src = '/images/map3.gif';
map4.src = '/images/map4.gif';

function ShowMap() {
	if (document.getElementById('mapimg')) {
		document.getElementById('mapimg').style.backgroundImage = 'url("/images/map1.jpg")';
	}
}

function ChecngeMap(a_map) {
	if (a_map == 'map0') {
		document.getElementById('map0').className = 'active';
		document.getElementById('map1').className = '';
		document.getElementById('map2').className = '';
		document.getElementById('map3').className = '';
		document.getElementById('map4').className = '';
		document.getElementById('mapimg').style.backgroundImage = 'url("' + map0.src + '")';
	} else {
		if (a_map == 'map1') {
			document.getElementById('map0').className = '';
			document.getElementById('map1').className = 'active';
			document.getElementById('map2').className = '';
			document.getElementById('map3').className = '';
			document.getElementById('map4').className = '';
			document.getElementById('mapimg').style.backgroundImage = 'url("' + map1.src + '")';
		} else {
			if (a_map == 'map2') {
				document.getElementById('map0').className = '';
				document.getElementById('map1').className = '';
				document.getElementById('map2').className = 'active';
				document.getElementById('map3').className = '';
				document.getElementById('map4').className = '';
				document.getElementById('mapimg').style.backgroundImage = 'url("' + map2.src + '")';
			} else {
				if (a_map == 'map3') {
					document.getElementById('map0').className = '';
					document.getElementById('map1').className = '';
					document.getElementById('map2').className = '';
					document.getElementById('map3').className = 'active';
					document.getElementById('map4').className = '';
					document.getElementById('mapimg').style.backgroundImage = 'url("' + map3.src + '")';
				} else {
					if (a_map == 'map4') {
						document.getElementById('map0').className = '';
						document.getElementById('map1').className = '';
						document.getElementById('map2').className = '';
						document.getElementById('map3').className = '';
						document.getElementById('map4').className = 'active';
						document.getElementById('mapimg').style.backgroundImage = 'url("' + map4.src + '")';
					} else {
						// do nothing 
					}
				}
			}
		}
	}
}




/* переход с главной страницы из select'а продвижений */
function ShowPromo(a_kwd) { window.location = '/portfolio/project/' + a_kwd + '/'; }


