function loadMap(mapId, mapLat, mapLng, mapZoom) {
  var mapLatLng = new google.maps.LatLng(mapLat, mapLng);
  var mapOptions = {
    zoom: mapZoom,
    center: mapLatLng,
    streetViewControl: false,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  };
  var map = new google.maps.Map(document.getElementById(mapId), mapOptions);
  var marker = new google.maps.Marker({
      position: mapLatLng, 
      map: map
  });
}

function unloadMap() {
}

function clearForm(form, input){
  $(form)[0].reset();
  if(input){
    $(input).focus();
  }
}

function showGallery() {
  $.scrollTo('#pagetop', {
    duration: 600,
    onAfter: function() {
      $('.ad-colorbox #image1').click();
    }
  });
}

function showTooltip(element, message){
  $(element).qtip({
    content: message,
    position: {
       my: 'left center',
       at: 'right center'
    },
    show: {
       event: false,
       ready: true
    },
    hide: false,
    style: {
       classes: 'ui-tooltip-red ui-tooltip-shadow'
    }
  });
}

function hideTooltip(element){
  $(element).qtip('hide');
}

function destroyTooltip(element){
  $(element).qtip('destroy');
}

function hideAllTooltips(){
  $('.qtip.ui-tooltip').qtip('hide');
}

function destroyAllTooltips(){
  $('.qtip.ui-tooltip').qtip('destroy');
}

function showInfo(message){
  $.Zebra_Dialog(message,{
    type: 'information',
    overlay_opacity: 0.5
  });
}

function showSuccess(message){
  $.notifyBar({
    cls: 'success',
    html: message,
    delay: 8000
  });
}

function showError(message){
  $.Zebra_Dialog(message,{
    type: 'error',
    overlay_opacity: 0.5
  });
}

function showConfirmation(message){
  $.Zebra_Dialog(message,{
    type: 'confirmation',
    overlay_opacity: 0.5
  });
}

function showIndicator(){
  $('#indicator-overlay').show();
  $('#indicator-image').show();
}

function hideIndicator(){
  $('#indicator-image').hide();
  $('#indicator-overlay').hide();
}

