//Diverse Ebenen bei Auflösung 800x600 veraendern
function CheckAufloesung()
{
	//Hide: array aus ID's die ausgeblendet werden sollen;
	//format: ID_NAME+WIDTH+HEIGHT 
	var Hide = new Array('unterseite_bild1', 'start_bild_rechts', 'unterseite_bild2');

	var Preferences = new Array();
	
	var StandardWidth = 996;
	var StandardHeight = 560;

	var obj;
	var content = document.getElementById('content');
	var title = document.getElementById('title');
	var start_willkommen = document.getElementById('start_willkommen');
	var contactinfo = document.getElementById('contactinfo');



	if(content)
	{
		if (document.body.offsetWidth < StandardWidth || document.body.offsetHeight < StandardHeight)
		{
			content.style.left='180px'
			if(title) title.style.left='180px'
			if(start_willkommen) start_willkommen.style.left = '180px'
			contactinfo.style.left = '172px'

		}
		else
		{
			content.style.left='359px';content.style.left='360px'
			if(title) {title.style.left='359px';title.style.left='360px';}
			if(start_willkommen){ start_willkommen.style.left = '339px'; start_willkommen.style.left = '340px'; }
			contactinfo.style.left = '342px'
		}
	}

	for(i=0;i<Hide.length;i++)
	{
		Preferences = Hide[i].split('+');
		if(!Preferences[1]) { Preferences[1] = StandardWidth; } //wenn keine groesse angegeben, wird standard verwendet
		if(!Preferences[2]) { Preferences[2] = StandardHeight; } //wenn keine groesse angegeben, wird standard verwendet

		obj = document.getElementById(Preferences[0])

		if(obj)
		{
			if (document.body.offsetWidth < Preferences[1] || document.body.offsetHeight < Preferences[2])
			{
				obj.style.visibility = 'hidden'
			}
			else
			{
				obj.style.visibility = 'visible'
			}
		}
	}
}

window.onload=function() { CheckAufloesung() }
window.onresize=function() { CheckAufloesung() }


