$(document).ready(function()
{
	$('li.sub').hover(
	function() { $('ul', this).css('display', 'block'); },
	function() { $('ul', this).css('display', 'none'); });
});

function ShowOrtsVerbd(Bezirk)
{
	$('#ortsverbd_content').html('');
	$.ajax({
		type: "GET",
		url: "ortsverbd.xml",
		dataType: "xml",
		success: function(xml) {
			$(xml).find('bezirk').each(function(){
				if($(this).attr('id')==Bezirk)
				{
					$(this).find('ortsverband').each(function(){
						var Ovbd_Name=$(this).attr('name');
						var Strasse=$(this).find('strasse').text();
						var PLZOrt=$(this).find('plzort').text();
						var Tel=$(this).find('tel').text();
						var Funktion=$(this).find('funktion').text();
						var Name=$(this).find('v_name').text();
						$('#ortsverbd_content').append('<h3>'+Ovbd_Name+'</h3>');
						$('#ortsverbd_content').append('<p>'+Strasse+'<br />'+PLZOrt+'<br />'+Tel+'</p>');
						$('#ortsverbd_content').append('<p>'+Funktion+':<br />'+Name+'</p>');
					});
				}
			});
		}
	});
}