/**
 * @author Freddybg
 */
function loadMap(value){
		
	var lang = value;

    Shadowbox.open({
        player: 'html',
        content: '',
        height: 400,
        width: 600,
        options: {
            onFinish: function(item){
				
                if (GBrowserIsCompatible()) {
                    var body = document.getElementById(Shadowbox.contentId());
                    var map = new GMap2(body);
                    map.setCenter(new GLatLng(6.456552208826312, -72.29759216308594), 4);
                    
                    // Añadir controles básicos
                    map.addControl(new GLargeMapControl());
                    map.addControl(new GMapTypeControl());
                    map.addControl(new GScaleControl());
                    
                    function addtag(point, address){
                        var icono = new GIcon(G_DEFAULT_ICON);
                        var marker = new GMarker(point, {
                            icon: icono
                        });
                        
                        GEvent.addListener(marker, "click", function(){
                            marker.openInfoWindowHtml(address);
                        });
                        
                        return marker;
                    }
                    
                    var point = new GLatLng(6.456552208826312, -72.29759216308594);
					
					if(lang == 2)
					{
						 var address = '<p class="map"><strong>La Sierra Nevada de El Cocuy</strong> <br /> It is located in South America near the Equator line in the Andes Cordillera and limits with Venezuela. It is found in the north-west of Colombia, in the Department of Boyacá, province of the north and Gutiérrez, in the vicinity of the municipalities of Güicán and El Cocuy. <a href="http://">Read more &raquo;</a></p> ';
					}
                    else{
						 var address = '<p class="map"><strong>La Sierra Nevada de El Cocuy</strong> <br /> Está ubicada en Sur América cerca a la línea del Ecuador en la cordillera de los Andes y limita con Venezuela. Se encuentra al nor-occidente de Colombia, en el departamento de Boyacá, provincia del norte y Gutiérrez, en mediaciones de los municipios de Güicán y El Cocuy. <a href="http://">Leer más &raquo;</a></p>';
					}
                    var marker = addtag(point, address);
                    
                    map.addOverlay(marker);
                }
            }
        }
    });
}
