function setMarkersOptions(){
	var map = new GMap2(document.getElementById("map"));
	var zoom = 2;
	var defLatLng = new GLatLng(59.888937, 95.914731);
	map.setCenter(defLatLng, zoom);
	map.addControl(new GLargeMapControl());
    	map.addControl(new GMapTypeControl());
	map.setMapType(G_SATELLITE_MAP); 

	for(i in markers) {  
//     		map.addOverlay();  
		defLatLng = new GLatLng(markers[i]['long'],markers[i]['lat']);
		var marker = new GMarker(defLatLng);
		GEvent.addListener(marker, 'mouseover', onMouseOverMarker);
		GEvent.addListener(marker, 'mouseout', closeMarkerWindow);
		GEvent.addListener(marker, 'click', onClickMarker);
		map.addOverlay(marker);
     	}  	
}

function onClickMarker(){
	var url='';
	for(i in markers) {  
		if ((markers[i]['long']==this.getLatLng().y)&&(markers[i]['lat']==this.getLatLng().x)) {
			url = markers[i]['url'];
		}
	}
	url.replace(/\s+/,'');
	if ((url!=undefined)&&(url!='')&&(url!=null)){
		document.location.href = url;
	}
}

function onMouseOverMarker(){
	var comment='';
	for(i in markers) {  
		if ((markers[i]['long']==this.getLatLng().y)&&(markers[i]['lat']==this.getLatLng().x)) {
			comment = comment+markers[i]['comment'];
		}
	}
	this.openInfoWindowHtml('<p class=text style="text-align:center;vertical-align:center">'+comment+'</p>');
}

function closeMarkerWindow(){
	this.closeInfoWindow(); 
}


