$(document).ready(function() {
	$("#vogelmap area").hover(function () {
		showMap(this);
	}, function () {
		hideMap(this);
	});
	
	$("a.flowplayer").each(function() {
		var video = $(this).attr("href");
		$(this).flowplayer("/flash/flowplayer-3.2.3.swf", {
			key: '#@f97ab60a5a27b452bd7',
			clip:  {
				url: video,
				autoPlay: true
			}, plugins:  {
				controls:  {
					backgroundColor: '#006991',
					backgroundGradient: 'none',			
					all:false,
					volume:true,
					play:true,
					height:30,
					progressColor: '#6d9e6b',
					bufferColor: '#333333',
					autoHide: false
				}
			}
		});
	});
	
	$("#map_list a").hover(function () {
		showMap(this);
	}, function () {
		hideMap(this);
	});
	
	$("div.dot").hover( function () {
		$(this).find("div").css("zIndex", 100);
		$(this).find("div").show();
	}, function () {
		$(this).find("div").hide();
	});
	
	if($("#map").length > 0) {
		load();
   	}
});
function showMap(who) {
	m = $(who).attr("rel");
	$("#" + m).show();
	$(".pop_up_continent div").hide();
	$(".pop_up_continent").show();
	$("#pop" + m).show();
	
}
function hideMap(who) {
	m = $(who).attr("rel");
	$("#" + m).hide();
	$(".pop_up_continent").hide();
}


