function copytext() {
	document.getElementById("paste_text").innerHTML = document.getElementById("copy_text").value;
}

function copyname(element) {
	document.getElementById("paste_name").innerHTML = document.getElementById("copy_name").value;
}

function load() {
	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl());
		map.setCenter(new GLatLng(49.714796,9.268856), 16, G_HYBRID_MAP);

		var point = new GPoint(9.268856,49.714796);
		
		var icon = new GIcon();
		icon.image = "css/design/adler_logo.png";
		icon.iconSize = new GSize(59, 54);
		icon.iconAnchor = new GPoint(6, 20);
		icon.infoWindowAnchor = new GPoint(5, 1);		
		
		var marker = new GMarker(point, icon);
		map.addOverlay(marker);
	}
}	

function show_glos(i){
	if (document.getElementById("glos_"+i).className == "glossar_text_hide") {
		document.getElementById("glos_"+i).className = "glossar_text";
	}
	else {
		document.getElementById("glos_"+i).className = "glossar_text_hide";
	}
}

function mainmenu() {
	$(".ebene_1").children(".ebene_2_container").css({display: "none"});
	$(".ebene_1").children(".ebene_1_hover").css({display: "none"});
	$(".ebene_1").hover(
		function(){
			$(this).find(".ebene_1_hover").css({visibility: "visible",display: "none"}).fadeIn("normal");
			$(this).children(".ebene_2_container").css({visibility: "visible",display: "none"}).slideDown("normal");
		},
		function(){
			$(this).find(".ebene_1_hover").css({visibility: "hidden"});
			$(this).children(".ebene_2_container").css({visibility: "hidden"});

		}
	);																	
}

$(document).ready(function() {
	mainmenu();
});


function map24_removeDefaultValues(){
	if (document.link2map24.sstreet.value == 'Straße') document.link2map24.sstreet.value = '';
	if (document.link2map24.szip.value == 'PLZ') document.link2map24.szip.value = '';
	if (document.link2map24.scity.value == 'Ort') document.link2map24.scity.value = '';
}