
/**
 * The IG BCE Google Map Icon
 */
if (typeof GIcon != "undefined") {
  var igbceIcon = new GIcon (G_DEFAULT_ICON);
  igbceIcon.image = "/static/image/gmap_icon.png";
  igbceIcon.shadow = "/static/image/gmap_icon.shadow.png";
  igbceIcon.iconSize = new GSize (27, 46);
  igbceIcon.shadowSize = new GSize (46, 46);
  igbceIcon.iconAnchor = new GPoint(0, 46);
  igbceIcon.infoWindowAnchor = new GPoint (10, 14);
  igbceIcon.imageMap = [ 0,0, 27,0, 27,40, 0,40, 0,0 ]; 
}


/**
 * Open me as print view
 */
var print_me = function () {
  window.print ();
}


/**
 * Send me to a friend
 */
var send_me = function (url) {
  window.open ('/recommend/'+url, 'recommend', 'width=350,height=570');
}


/**
 *
 */
var setHover = function (state) {
  if (state === false) {
    $('#search_map img').attr ('src', '/static/image/deutschland.png');
  } else {
    $('#search_map img').attr ('src', '/static/image/deutschland_sub_'+state+'.gif');
  }
};

