
function CheckScreenRes() {
if (screen.width<=800) { document.getElementById('FirstFixedDiv').style.position='absolute'; return; }  // SmartPhones Res <= 800
if (screen.width<=1024) {
	document.getElementById('ImagesDiv').style.display='none'; // Achtung: kein Suchfeld mehr :(
	document.getElementById('SpaceAboveSheetDiv').style.height='136px'; // 276-120-20
	document.getElementById('MenuDiv').style.marginTop='10px';
	}
}

var SearchDivVisible=false;
var SearchDivWasOn=false;

function StartFadeIn() {
SearchDivWasOn=true;
if (SearchDivVisible==true) return;
SearchDivVisible=true;
var Stil=document.getElementById('SearchDiv').style;
Stil.visibility='visible'; // Stil.opacity=1.0; Stil.filter='alpha(opacity=0.5)';
document.SearchForm.q.focus();
}

function StartFadeOut() {
if (SearchDivVisible==false) return;
if (document.SearchForm.q.value!='') return;
var Stil=document.getElementById('SearchDiv').style;
Stil.visibility='hidden';
SearchDivVisible=false;
}

function After20Secs() {
if (SearchDivWasOn==false) StartFadeIn();
}

window.setTimeout('After20Secs()',20000);

