	var icon_nature;
    var icon_park;
    var icon_others;
    var icon_trips;
    var icon_village;
	
	
	function initIcon() {
		icon_nature  = new GIcon();
		icon_park    = new GIcon();
		icon_others  = new GIcon();
		icon_trips   = new GIcon();
		icon_village = new GIcon();
		
		icon_nature.image  = "../pics/map/marker_nature.png";	
		icon_park.image    = "../pics/map/marker_park.png";	
		icon_others.image  = "../pics/map/marker_others.png";	
		icon_trips.image   = "../pics/map/marker_trips.png";	
		icon_village.image = "../pics/map/marker_village.png";	
		
		icon_nature.iconSize  = new GSize(9, 9);	
		icon_park.iconSize    = new GSize(9, 9);
		icon_others.iconSize  = new GSize(9, 9);
		icon_trips.iconSize   = new GSize(9, 9);
		icon_village.iconSize = new GSize(9, 9);
		
		icon_nature.iconAnchor = new GPoint(4, 4);
		icon_park.iconAnchor = new GPoint(4, 4);
		icon_others.iconAnchor = new GPoint(4, 4);
		icon_trips.iconAnchor = new GPoint(4, 4);
		icon_village.iconAnchor = new GPoint(4, 4);
		
		icon_nature.infoWindowAnchor = new GPoint(4, 4);
		icon_park.infoWindowAnchor = new GPoint(4, 4);
		icon_others.infoWindowAnchor = new GPoint(4, 4);
		icon_trips.infoWindowAnchor = new GPoint(4, 4);
		icon_village.infoWindowAnchor = new GPoint(4, 4);	 
	}

	function showPreview(pic,point,center) {		    
		var url = "../pics/foto.php?m=" + pic;		
		document.getElementById("previewpic").src = url;		
		var event = "mouseover";
		document.getElementById("previewpic").style.left = point.x-center.x+398;
		document.getElementById("previewpic").style.top = point.y-center.y+257;		
	}
	
	function hidePreview(pic) {
		document.getElementById("previewpic").src = "../pics/empty.gif";	
	}

	
function popupP(url,format) 
{
    var DEFAULT_FEATURES = "location=0,menubar=0,resizable=1,scrollbars=0,status=0,titlebar=1,toolbar=0,screenX=0,left=0,screenY=0,top=0";
	var height;
	var width;
		
    switch(format)
    {
	/*case 1:
		width = 695;
		height = 492;
		break;
	case 2:
		width = 450;
		height = 520;
		break;			
	case 3:
		width = 750;
		height = 380;
		break;			
	case 4:
		width = 950;
		height = 380;
		DEFAULT_FEATURES = "location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=1,toolbar=0,screenX=0,left=0,screenY=0,top=0";
		break;
		*/
	case 5:
		width = 570;
		height = 370;
		break;										
	case 6:
		width = 570;
		height = 470;
		break;			
	default:
		width = 1024;
		height = 700;
		break;
	}	
	//width = 950;
	//height = 600;
	var features = "width=" + width + ",height=" + height + "," + DEFAULT_FEATURES;
	var newWin = window.open(url, "Foto", features);
	newWin.focus();	
}

	function zoom(obj){
	switch(obj)
        	{
			case "red":
				map.setCenter(new GLatLng(52.69522892,23.87549357),13);
				break;
        	case "zebra":
				map.setCenter(new GLatLng(52.70764966,23.81604719),14);
				break;
        	case "palace":
				map.setCenter(new GLatLng(52.70307456,23.84646557),15);
				break;
        	case "animal":
				map.setCenter(new GLatLng(52.70600275,23.79986242),15);
				break;
        	case "strictly":
				map.setCenter(new GLatLng(52.73863281,23.87275469),12);
				break;								
		}			
	}
	
	function show_obj(obj){
	switch(obj)
        	{
			case "red":
				if(red.isHidden())red.show();else red.hide();
				break;
        	case "zebra":
        		if(zebra.isHidden())zebra.show();else zebra.hide();
				break;
        	case "palace":
        		if(palace.isHidden())palace.show();else palace.hide();
				break;
        	case "animal":				
        		if(animal.isHidden())animal.show();else animal.hide();        		
				break;
        	case "strictly":        		
        		if(strictly.isHidden())strictly.show();else strictly.hide();				
				break;								
		}			
	}
