function showHeadline(headline_text)
{
	$('#content_header_title').hide()
	$('#content_header_title').text(headline_text);
	$('#content_header_title').slideDown("slow");
	$('#content_header_symbol').hide();
	$('#content_header_symbol').fadeIn("slow");
}

//Read a page's GET URL variables and return them as an associative array.
function getUrlVars()
{
    var vars = [], hash;
    var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
    for(var i = 0; i < hashes.length; i++)
    {
        hash = hashes[i].split('=');
        vars.push(hash[0]);
        vars[hash[0]] = hash[1];
    }
    return vars;
}

function popup(mylink, windowname, width, height)
{
	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	   href=mylink;
	else
	   href=mylink.href;
	window.open(href, windowname, 'width='+width+',height='+height+',scrollbars=yes');
	return false;
}

$(document).ready(function() {
	
	var parent_navpoint = $('#'+$('#page_id').text()).attr('class');
	showHeadline(parent_navpoint);
	
	
	// Festlegungen
	var page_id = $('#page_id').text();
	var htext = $('#headline_text').children('#'+page_id).text();
	if(htext != "")
	{
		showHeadline(htext);
	}
	
});


