  function selectRegion(short, name, count, ofx, ofy, ofw, ofh) {
     document.getElementById('map').style.backgroundImage = "url('mapimages/" + short + ".png')";    
     document.getElementById('map').style.backgroundPosition = ofx + "px " + ofy + "px";     
     var text = name + '<br /><span style="font-weight: normal;font-size: 12px;padding-top: 10px;">Počet restaurací: <b>' + count + '</b></span>';
     document.getElementById('mapinfo').innerHTML = text;      
   }

   function deselectRegion() {
     document.getElementById('map').style.backgroundImage = "url('mapimages/rozvoz-pizza-prazdny.png')";
     document.getElementById('mapinfo').innerHTML = '';      
   }

   function getClassName(obj) {
     var i1 = obj.getAttribute("className");
     var i2 = obj.className;
     return i1 == null ? i2 : i1;
   }


   function openRestWindow(name) {  
     if (document.getElementById('a_order')) document.getElementById('a_order').style.color = '#E9997E';
     if (document.getElementById('a_restaurant')) document.getElementById('a_restaurant').style.color = '#E9997E';
     if (document.getElementById('a_tomobile')) document.getElementById('a_tomobile').style.color = '#E9997E';
     if (document.getElementById('a_comments')) document.getElementById('a_comments').style.color = '#E9997E';
     if (document.getElementById('q_order')) document.getElementById('q_order').style.display = 'none';
     if (document.getElementById('q_restaurant')) document.getElementById('q_restaurant').style.display = 'none';
     if (document.getElementById('q_tomobile')) document.getElementById('q_tomobile').style.display = 'none';
     if (document.getElementById('q_comments')) document.getElementById('q_comments').style.display = 'none';
     if (document.getElementById('a_' + name)) document.getElementById('a_' + name).style.color = 'white';
     if (document.getElementById('q_' + name)) document.getElementById('q_' + name).style.display = 'block';
   }


   function onlog() { 
     location.href="/"; 
   }

