window.defaultStatus = "Herzlich willkommen im Gästehaus Fröhling!";

var state_card = 0;

// Karte zoomen
function zoom_card()
{
	if (state_card == 0)
	{
		maximize_card(0);
		state_card = 1;
		document.all.fromcountry.style.visibility='hidden'
	}
	else
	{
		minimize_card(100);
		state_card = 0;
		document.all.fromcountry.style.visibility='visible'
	}
}

// Kartengröße ändern
function blend_card(percent)
{
	var small_width = 144;
	var small_height = 100;
	var big_width = 439;
	var big_height = 303;
	if (document.all || document.getElementById)
	{
		document.getElementById("card").style.width = small_width + (percent/100) * (big_width - small_width);
		document.getElementById("card").style.height = small_height + (percent/100) * (big_height - small_height);
	}
	else
	{
		document.card.width = small_width + (percent/100) * (big_width - small_width);
		document.card.height = small_height + (percent/100) * (big_height - small_height);
	}
}

// Karte maximieren
function maximize_card(percent)
{
	blend_card(percent);
	if (percent != 100) setTimeout("maximize_card(" + ++percent + ")", 10);
}

// Karte minimieren
function minimize_card(percent)
{
	blend_card(percent);
	if (percent != 0) setTimeout("minimize_card(" + --percent + ")", 10);
}

