//Diverse Ebenen bei Aufl�sung 800x600 veraendern
function CheckAufloesung()
{
	//array aus ID's die ausgeblendet werden sollen;
	//format: ID_NAME+WIDTH+HEIGHT 
	var Hide = new Array('themenbild', 'rightborder', 'suche+0+522');
	var Preferences = new Array();
	
	var StandardWidth = 905;
	var StandardHeight = 560;

	var obj;

	var suche = document.getElementById('suche');
	var content_web = document.getElementById('content_web');

	if(document.body.offsetWidth < StandardWidth || document.body.offsetHeight < StandardHeight)
	{
		if(content_web) { content_web.style.paddingRight = '0px'; }
	}
	else
	{
		if(content_web) { content_web.style.paddingRight = '220px'; }
	}

	for(i=0;i<Hide.length;i++)
	{
		Preferences = Hide[i].split('+');
		if(!Preferences[1]) { Preferences[1] = StandardWidth; }
		if(!Preferences[2]) { Preferences[2] = StandardHeight; }

		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() }
