// JavaScript Document


// Preloader, abdecken des "weißen" DIV Containers
function showpage() {
	document.getElementById('loader').style.display = "none"; 
	document.getElementById('main').style.display = "block"; 
}

function togglePic(divid) {
	if (screen.height<1000) {
		var picwindow = window.open('about:blank','picwindow', 'width=670,height=800,scrollbars=1,statusbar=0,toolbar=0,menubar=0,locationbar=0,resizable=1');
		picwindow.window.document.writeln('<a href="#" onclick="self.close();return false;"><img src="/images/'+divid+'.jpg" border="0"></a>');
		picwindow.focus();
	} else {
		if (document.getElementById(divid).style.display != 'none') {
			document.getElementById(divid).style.display = "none"; 	
		} else if (document.getElementById(divid).style.display == 'none') {
			document.getElementById(divid).style.display = "inline"; 	
		}
	}
}

function hidePic(divid) {
	document.getElementById(divid).style.display = "none"; 		
}
function redirect(linknr,dianr,rndvalue) {
	if (linknr!='') {
		self.location='/site.php?link='+linknr+'&diashow=1&dianr='+dianr+'&noCache='+rndvalue;
	} else {
		self.location='/site.php?link=0&noCache='+rndvalue;
	}
}

