/**
 * @author fred
 */

function popup (url,w,h) {

	fenster = window.open(url, "", "width="+w+",height="+h+",status=0,scrollbars=0,resizable=0");

	fenster.focus();

}  


/*
 * 20.11.09 
 * @author Fritjof
 * …ffnet das Angebot-MenŸ in der Navigation
 * Funktioniert aber nur mit der entsprechend modifizierten SWF
 */


function getFlashMovie(movieName)
{
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	return (isIE) ? window[movieName] : document[movieName];
} 

function showMenue() {
	
	getFlashMovie("Movie").sendTextToFlash("angebot_menue");
	return false;
}




/*
 * 
 * END MOD
 * 
 */


/*
$(document).ready(function() {
	//Auf den ggf. Ã¼bermittelten Anker reagieren
	if(location.hash) {
		x = location.hash;
		getContent(x.slice(1)+".html");
	}

	//Links per Ajax nachladen
	//$("a:not([href^='http://'])").click(function() {
	$(".bottomBlock a").click(function() {
		url = $(this).attr("href");
		getContent(url);
		$(this).blur();
		return false;
	});

	//Informieren das etwas passiert
	$("#cont").ajaxStart(function() {
		$(this).fadeOut(function() {
			$(this)
				.text("")
				.addClass("loading")
				.fadeIn();
		});
	});

});

/*
 *	Holt den Inhalt vom Server
 */
function getContent(url) {
	$.ajax({
	//erweitere aufzurufenden Link
	url: url+"&type=101",
	//wenn es geklappt hat
	success: function(html) {
		//Inhalt reinschreiben und anzeigen
		$("#cont")
			.removeClass("loading")
			.css("display", "none")
			.html(html)
			.fadeIn();
		//Adresszeile aktualisieren
		location.hash = url.replace(/\.html/, "");
	}
	});
}

