
var mirror=new Array();
mirror["country_2"]="czech";
mirror["country_26"]="croatia";
mirror["country_3"]="hungary";
mirror["country_4"]="poland";
mirror["country_5"]="austria";
mirror["country_1"]="slovakia";
mirror["country_24"]="italy";
mirror["country_31"]="bulgaria";
mirror["country_32"]="greece";
mirror["country_19"]="france";
mirror["country_25"]="slovinia";
mirror["country_30"]="romania";
mirror["country_86"]="montenegro";

function hoverMap(map_id){
	document.getElementById('map_image').src='http://www.centraleuropetravel.com/images/'+map_id+'.jpg';
	//document.getElementById(mirror['country_'+map_id]).checked=true;
	//$("#idstatu").val(map_id);
	//$("#search p .active_span").removeClass("active_span");
	//$("#span_"+map_id).addClass("active_span");
}


$(document).ready(function(){

//			var current_country=2;
//			var current_country=999;

			//$("#map_image").mouseover(function(){current_country=document.getElementsByName('idstatu').value;});
			//$("#map_image").mouseout(function(){document.getElementsByName('idstatu').value=current_country;});
			
			//if($("#lokalita_select").length!=0){
				//$("#lokalita_name").val($("#lokalita_select option:selected").text());
	
				$("#lokalita_name").click(
						function(){
							$("#lokalita").val("");
							$(this).val("");
						}
				);
			//}
				
			
			$("#"+mirror["country_2"]+"_label").mouseover(function(){hoverMap("2");});
			$("#country_area-2").mouseover(function(){hoverMap("2");});
		  
			$("#"+mirror["country_26"]+"_label").mouseover(function(){hoverMap("26");});
			$("#country_area-26").mouseover(function(){hoverMap("26");});
	
			$("#"+mirror["country_3"]+"_label").mouseover(function(){hoverMap("3");});
			$("#country_area-3").mouseover(function(){hoverMap("3");});
		    
			$("#"+mirror["country_4"]+"_label").mouseover(function(){hoverMap("4");});
			$("#country_area-4").mouseover(function(){hoverMap("4");});
		  
			$("#"+mirror["country_5"]+"_label").mouseover(function(){hoverMap("5");});
			$("#country_area-5").mouseover(function(){hoverMap("5");});
		  
			$("#"+mirror["country_1"]+"_label").mouseover(function(){hoverMap("1");});
			$("#country_area-1").mouseover(function(){hoverMap("1");});
	
			$("#"+mirror["country_24"]+"_label").mouseover(function(){hoverMap("24");});
			$("#country_area-24").mouseover(function(){hoverMap("24");});
			
			$("#"+mirror["country_31"]+"_label").mouseover(function(){hoverMap("31");});
			$("#country_area-31").mouseover(function(){hoverMap("31");});
			
			$("#"+mirror["country_32"]+"_label").mouseover(function(){hoverMap("32");});
			$("#country_area-32").mouseover(function(){hoverMap("32");});
			
			$("#"+mirror["country_19"]+"_label").mouseover(function(){hoverMap("19");});
			$("#country_area-19").mouseover(function(){hoverMap("19");});
			
			$("#"+mirror["country_30"]+"_label").mouseover(function(){hoverMap("30");});
			$("#country_area-30").mouseover(function(){hoverMap("30");});
			
			$("#"+mirror["country_86"]+"_label").mouseover(function(){hoverMap("86");});
			$("#country_area-86").mouseover(function(){hoverMap("86");});
			
			$("#"+mirror["country_25"]+"_label").mouseover(function(){hoverMap("25");});
			$("#country_area-25").mouseover(function(){hoverMap("25");});
			
});

