function load() {
  if (GBrowserIsCompatible()) {
	var map = new GMap2(document.getElementById("map"));
	map.setCenter(new GLatLng(41.73321242638768, 2.885885238647461), 15);
    map.addControl(new GSmallMapControl());
	map.addControl(new GMapTypeControl()); 
    var pals = new GLatLng(41.73321242638768, 2.885885238647461);
    map.addOverlay(new GMarker(pals));
  }
}
(function(jQuery){

	jQuery.fn.zoomImgRollover = function(options) {

		var defaults = {
			percent:15, //30,
			duration:300 //600
		};

		var opts = jQuery.extend(defaults, options);

		// static zoom function
		function imageZoomStep(jZoomImage, x, origWidth, origHeight)
		{
			var width = Math.round(origWidth * (.5 + ((x * opts.percent) / 200))) * 2;
			var height = Math.round(origHeight * (.5 + ((x * opts.percent) / 200))) * 2;

			var left = (width - origWidth) / 2;
			var top = (height - origHeight) / 2;

			jZoomImage.css({width:width, height:height, top:-top, left:-left});
		}

		return this.each(function()
		{
			var jZoomImage = jQuery(this);
			var origWidth = jZoomImage.width();
			var origHeight = jZoomImage.height();

			// add css ness. to allow zoom
			jZoomImage.css({position: "relative"});
			jZoomImage.parent().css({overflow: "hidden", display:"block", position: "relative", width: origWidth, height: origHeight});

			jZoomImage.parent().parent().mouseover(function()
			{
				jZoomImage.stop().animate({dummy:1},{duration:opts.duration, step:function(x)
				{
					imageZoomStep(jZoomImage, x, origWidth, origHeight)
				}});
			});

			jZoomImage.parent().parent().mouseout(function()
			{
				jZoomImage.stop().animate({dummy:0},{duration:opts.duration, step:function(x)
				{
					imageZoomStep(jZoomImage, x, origWidth, origHeight)
				}});
			});
		});
	};

})(jQuery);