// JavaScript Document
   // initialise the map with your choice of API
            var mapstraction = new Mapstraction('mapstraction','openlayers');

            // create a lat/lon object
                        var initCenterPoint = new LatLonPoint(32.0614206790924,34.7760897874832);
                        
            // display the map centered on a latitude and longitude (Google zoom levels)
                        mapstraction.setCenterAndZoom(initCenterPoint, 16);
            
            mapstraction.addControls({
                pan: true, 
                zoom: 'small',
                map_type: true 
            });
            
			//icon size for later use
			var arr__icon_size=new Array(); 
			arr__icon_size[0]=80;       
			arr__icon_size[1]=80;
			
            // machine number 0104 / 0105 
            M0104 = new Marker(new LatLonPoint(32.0613013207912,34.7761085629463));
            M0104.setIcon('images/LogoSmall.gif');
			M0104.setIconSize(arr__icon_size);
			var M0104_text = "<a href='http://www.dproject.co.il/' target='_blank'><img src='images/partners/Dproject.logo.gif' width='140' height='51' /><br> <img src='images/partners/Dproject.jpg' width='200' height='129' /></a>";
			M0104.setLabel("<blink>D'project Cafe</blink>");
			M0104.setInfoBubble(M0104_text);
			
			// machine number 0106 / 0107
            M0106 = new Marker(new LatLonPoint(32.065260261297,34.7767388820648));
            M0106.setIcon('images/LogoSmall.gif');
			M0106.setIconSize(arr__icon_size);
			var M0106_text = "<a href='#'><img src='images/partners/Rotchild.logo.jpg' width='112' height='140' /><img src='images/partners/Rotchild.jpg' width='200' height='129' /><br></a>";
			M0106.setLabel("<blink>D'project Cafe</blink>");
			M0106.setInfoBubble(M0106_text);
			
			
			// machine number 0108 / 0109
            M0108 = new Marker(new LatLonPoint(32.0465894043446,34.7690999507904));
            M0108.setIcon('images/LogoSmall.gif');
			M0108.setIconSize(arr__icon_size);
			var M0108_text = "<a href='http://www.spca.co.il/newsite/'><img src='images/spca green text.jpg' width='250' height='60' /><br></a>";
			M0108.setLabel("<blink>D'project Cafe</blink>");
			M0108.setInfoBubble(M0108_text);
			
			// machine number 0110 / 0111
            M0110 = new Marker(new LatLonPoint(32.0922513306141,34.7748157382011));
            M0110.setIcon('images/LogoSmall.gif');
			M0110.setIconSize(arr__icon_size);
			var M0110_text = "<a href=''><img src='' width='250' height='60' /><br></a>";
			M0110.setLabel("<blink>Darsia דרסיה</blink>");
			M0110.setInfoBubble(M0110_text);
			
			
			// machine number 0112 / 0113
            M0112 = new Marker(new LatLonPoint(32.087021023035,34.7732895612717));
            M0112.setIcon('images/LogoSmall.gif');
			M0112.setIconSize(arr__icon_size);
			var M0112_text = "<a href='http://www.cafecafe.co.il/'><img src='images/partners/cafecafe.logo.png' width='250' height='60' /><br></a>";
			M0112.setLabel("<blink>Cafe Cafe בן יהודה</blink>");
			M0112.setInfoBubble(M0112_text);

            // display markers 
            mapstraction.addMarker(M0104);
			mapstraction.addMarker(M0106);
			mapstraction.addMarker(M0108);
			mapstraction.addMarker(M0110);
			mapstraction.addMarker(M0112);
			
            // open the marker
            //M0104.openBubble();

            //mapstraction.addEventListener('click', function(p) { alert('Mapstraction Event Handling - Mouse clicked at ' + p)  });

			 var foo = function() { mapstraction.removeMarker(my_marker); };
