function showBox1() {
	document.getElementById('box_img1').src='./design/illu_oslavy_active.gif';
	document.getElementById('hp_box1_h').style.color='#f68d11';
	document.getElementById('hp_box1_more').style.color='#f68d11';
	document.getElementById('hp_box1').style.background='url(./design/bg_box_active.gif)';
}
function hideBox1() {
	document.getElementById('box_img1').src='./design/illu_oslavy.gif';
	document.getElementById('hp_box1_h').style.color='#242c37';
	document.getElementById('hp_box1_more').style.color='#43540e';
	document.getElementById('hp_box1').style.background='url(./design/bg_box.gif)';
}

function showBox2() {
	document.getElementById('box_img2').src='./design/illu_akce_active.gif';
	document.getElementById('hp_box2_h').style.color='#f68d11';
	document.getElementById('hp_box2_more').style.color='#f68d11';
	document.getElementById('hp_box2').style.background='url(./design/bg_box_active.gif)';
}
function hideBox2() {
	document.getElementById('box_img2').src='./design/illu_akce.gif';
	document.getElementById('hp_box2_h').style.color='#242c37';
	document.getElementById('hp_box2_more').style.color='#43540e';
	document.getElementById('hp_box2').style.background='url(./design/bg_box.gif)';
}

function showBox3() {
	document.getElementById('box_img3').src='./design/illu_ubytovani_active.gif';
	document.getElementById('hp_box3_h').style.color='#f68d11';
	document.getElementById('hp_box3_more').style.color='#f68d11';
	document.getElementById('hp_box3').style.background='url(./design/bg_box_active.gif)';
}
function hideBox3() {
	document.getElementById('box_img3').src='./design/illu_ubytovani.gif';
	document.getElementById('hp_box3_h').style.color='#242c37';
	document.getElementById('hp_box3_more').style.color='#43540e';
	document.getElementById('hp_box3').style.background='url(./design/bg_box.gif)';
}

function showBox4() {
	document.getElementById('box_img4').src='./design/illu_restaurace_active.gif';
	document.getElementById('hp_box4_h').style.color='#f68d11';
	document.getElementById('hp_box4_more').style.color='#f68d11';
	document.getElementById('hp_box4').style.background='url(./design/bg_box_active.gif)';
}
function hideBox4() {
	document.getElementById('box_img4').src='./design/illu_restaurace.gif';
	document.getElementById('hp_box4_h').style.color='#242c37';
	document.getElementById('hp_box4_more').style.color='#43540e';
	document.getElementById('hp_box4').style.background='url(./design/bg_box.gif)';
}

function showAddress(address, title, zoom, id, icon_ext, width, height) {
	var map = new GMap2(document.getElementById("map_canvas"));
  var geocoder = new GClientGeocoder();
  var WINDOW_HTML = '<div style="font-size:11px;"><strong>'+title+'</strong><br />'+address+'<\/div>';
  
  map.addControl(new GSmallMapControl());
  
  geocoder.getLatLng(
    address,
    function(point) {
      if (!point) {
        //alert(address + " not found");
      } else {
        map.setCenter(point, zoom);
        
        if(icon_ext != "") {
          var myIcon = new GIcon(G_DEFAULT_ICON);
          myIcon.image = "/images/articles/icons/"+id+"."+icon_ext;
  		    myIcon.iconSize = new GSize(width, height);
  		    myIcon.iconAnchor = new GPoint(width/2, height);
  		    myIcon.shadow = "";
  		    
      		// Set up our GMarkerOptions object
      		markerOptions = { icon:myIcon };
      		
      		var marker = new GMarker(point, markerOptions);
        
        } else {
          var marker = new GMarker(point);
        }
        
        map.addOverlay(marker);
        GEvent.addListener(marker, "click", function() {
        	marker.openInfoWindowHtml(WINDOW_HTML);
	      });
      }
    }
  );
}