function reSize()
	{
	// var oBody = document.getElementById("c_iFrame").contentWindow.document.body;
	try
		{	
		document.getElementById("c_iFrame").style.height = "1350";
		document.getElementById("c_iFrame").contentWindow.bgColor = "#FF0000";
		var hoehe = document.getElementById("c_iFrame").document.body.clientHeight; // in IE
		}
	//An error is raised if the IFrame domain != its container's domain
	catch(e)
		{
		window.status =	'Error: ' + e.number + '; ' + e.description;
		}
	// alert("läuft" + hoehe);
	}

/*
function reSize()
{
	try{	
	var oBody	=	ifrm.document.body;
	var oFrame	=	document.all("ifrm");
		
	oFrame.style.height = oBody.scrollHeight + (oBody.offsetHeight - oBody.clientHeight);
	oFrame.style.width = oBody.scrollWidth + (oBody.offsetWidth - oBody.clientWidth);
	}
	//An error is raised if the IFrame domain != its container's domain
	catch(e)
	{
	window.status =	'Error: ' + e.number + '; ' + e.description;
	}
}
*/



function show_feed() {
	args=show_feed.arguments;
	for(i=0;i<args.length;i++) {
		feld = args[i];
		new Effect.Appear(feld, {duration:0.3});
	}
}

function display_feed() {
	args=display_feed.arguments;
	for(i=0;i<args.length;i++) {
		feld = args[i];
		$(feld).style.display = 'block';
	}
}

function hide_feed() {
	args=hide_feed.arguments;
	for(i=0;i<args.length;i++) {
		feld = args[i];
		$(feld).style.display = 'none';
	}
}


var theTimer;
var zufall;
var prevZufall;
var Testvar = 1;
var aufgeklappt;

function changeTeaser()
	{
	var args = changeTeaser.arguments;
	//alert('Change Teaser\n Zufall: '+args[0]);

	// Erst mal alle anderen ausschalten
	if(args[0] != '1'){hide_feed('reise_info1', 'BG_Teaserinfo1', 'teaser_img1');document.getElementById('price1').style.color = "#FFFFFF";}
	if(args[0] != '2'){hide_feed('reise_info2', 'BG_Teaserinfo2', 'teaser_img2');document.getElementById('price2').style.color = "#FFFFFF";}
	if(args[0] != '3'){hide_feed('reise_info3', 'BG_Teaserinfo3', 'teaser_img3');document.getElementById('price3').style.color = "#FFFFFF";}

	if(args[1]=='timer'){
		document.getElementById('price'+args[0]).style.color = "#FFD800";
		display_feed('reise_info'+args[0], 'BG_Teaserinfo'+args[0], 'teaser_img'+args[0]);
		}

	if(args[1]=='in'){
		document.getElementById('price'+args[0]).style.color = "#FFD800";
		display_feed('reise_info'+args[0], 'BG_Teaserinfo'+args[0], 'teaser_img'+args[0]);
		clearInterval(theTimer);
		}

	else if(args[1]=='out'){
		document.getElementById('price'+args[0]).style.color = "#FFD800";
		hide_feed('reise_info'+args[0], 'BG_Teaserinfo'+args[0], 'teaser_img'+args[0]);
		startTimer();
		}

	if(typeof(args[2]) != 'undefined'){document.getElementById('teaserImg').style.backgroundImage = 'url('+args[2]+')';}
	}

function changeTeaserRand(Bilder)
	{
	zufall = Math.floor(3*Math.random()+1);
	if(zufall == prevZufall){changeTeaserRand();}
	else{
		changeTeaser(zufall, 'timer', 'images/teaser/'+Bilder[zufall-1]+'.jpg');
		prevZufall = zufall;
		}	
	// alert(Bilder[zufall-1]);
	}

function startTimer(Bilder)
	{	
	// alert(Bilder);
	theTimer = window.setInterval("changeTeaserRand(Bilder)", 5000);
	}

function changeContent() {
	args=changeContent.arguments;
	document.getElementById(args[0]).innerHTML = args[1];
	}

function changeInput() {
	args=changeInput.arguments;
	document.getElementById(args[0]).value = args[1];
}
	
function display_submenue() {
	args=display_submenue.arguments;
	$(args[0]).style.display = 'block';
}

function showSubmenue()
	{
	var args = showSubmenue.arguments;
	// alert(args[0]);

	// Erst mal alle anderen ausschalten
	
	if(typeof(aufgeklappt) != 'undefined')
		{
		if(aufgeklappt == 'fluege' && args[0] != 'fluege'){new Effect.SlideUp('fluege');} // Wenn jemand auf den Punkt Flüge klickt und vorher Städtereisen aktiv war, diesen einklappen, wenn jemand 2x auf Flüge klickt nichts machen.
		if(aufgeklappt == 'hotel' && args[0] != 'hotel'){new Effect.SlideUp('hotel');}
		}
		
	if(args[1]=='in')
		{
		// <![CDATA[
		if(args[0] != aufgeklappt) // nur wenn der geklickte Button nicht gleich dem ehemals geklicktem Button ist
			{
			new Effect.SlideDown(args[0]);
			aufgeklappt = args[0];
			}
		// ]]>
		}

	else if(args[1]=='out'){hide_feed(args[0]);}
	}

