var isMapSmall = true;

function initMapFat(w, h, k, mapSize){
   _initMapFat(w, h, k);

   if ( mapSize == 'big' ){
      isMapSmall = false;
   }else{
      isMapSmall = true;
   }
}


var smMapW = '';
var smMapH = '';
var smMapK = '';

function _initMapFat(w, h, k){
   smMapW = w;
   smMapH = h;
   smMapK = k;
}


var map1 = null;
var tooltip = null;
var maxIconNum = 20;


var baseIcon = null;
var smallMapControl = null;
var mapTypeControl = null;
var scaleControl = null;
var isMapSmall = true;
var customZoom = null;

var landmarkIcon = null;

var draggableIcon = null;


function redrawMap(_lat, _lon, href)
{

   var lnk = 'http://maps.google.com/staticmap?markers=';
    var pinned = 0;
   var shown = 0;
   var mkrs = '';

      if ( (_lat != 0.0 && _lon != 0.0) ){
         shown ++;
         mkrs += _lat;
         mkrs += ',';
         mkrs += _lon;
         mkrs += ',yellow';
      }

  if ( pinned > 0 || shown > 0 ){
      lnk += mkrs;
      lnk += '&size=' + smMapW + 'x' + smMapH;
      lnk += '&key=' + smMapK;
      if (customZoom != null) {
      lnk += '&zoom=' + customZoom;
      }

      var imgHtml = '';
      if (href != null && href != '') {
          imgHtml += '<a href="' + href + '" rel="nofollow">';
      }
      imgHtml += '<img border="0" src="';
      imgHtml += lnk;
      imgHtml += '"';
      if (tooltip != null) {
          imgHtml += ' title="' + tooltip + '" alt="' + tooltip + '" ';
      }
      imgHtml += '/>';
      if (href != null && href != '') {
          imgHtml += '</a>';
      }
      jQuery("#hotelmapsm").html(imgHtml);
   }


}

