// JavaScript Document

function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}

			jQuery(document).ready(function(){
			
					
					
				$('a[@href^="http://"]').click( function() {
					window.open( $(this).attr('href') );
					return false;
				});
					
					/*$('#button').click(
					function () {
											 
						comodo=$.post("ajax.php");
						
						alert(comodo);
						
						return false;
											 
					}
								   
								   
								   
				)*/
				
			
				
			  $('#map').jmap('init',
			  	{'mapType':'map','mapCenter':[40.996808,17.219696],'mapZoom':13}); 
				
				
				
					
				
					jQuery('#map').jmap('SearchAddress', {
						'query': 'piazza Vittorio Emanuele 35, Polignano a Mare',
						'returnType': 'getLocations'
					}, function(result, options) {
						
						var valid = Mapifies.SearchCode(result.Status.code);
						if (valid.success) {
						jQuery.each(result.Placemark, function(i, point){
							jQuery('#map').jmap('AddMarker',{
									'pointLatLng':[point.Point.coordinates[1], point.Point.coordinates[0]],
									'pointHTML':'Trattoria Ristorante N&euro;uro',
									'pointIcon':
										{image: "http://www.google.com/mapfiles/marker.png",
										shadow: "http://www.google.com/mapfiles/shadow50.png",
										iconSize : new GSize(20, 34),
										shadowSize : new GSize(37, 34),
										iconAnchor : new GPoint(9, 34),
										infoWindowAnchor : new GPoint(9, 2),
										infoShadowAnchor : new GPoint(18, 25)}
		
								});
							});
						} else {
							
						}
					});
					
					
					
				
			});