// JavaScript Document
//test auf getvar
var tmp = location.search.substring(1, location.search.length).split('=');
var openflag;
if(tmp[1]) {
	//alert("OPENFLAG");
	openflag = true;
}
else {
	openflag = false;	
}

var menueanzahl = 6;

var myserver;
if(window.location.host != "www.cosmedia.de") {
	myserver = "http://" + window.location.host;
	}
	else {
		myserver = "http://www.cosmedia.de/erichwilker";
}
	
	
	
function setVisible(menuename) {
	//alert(menuename);
	//alle menues aus
	for(a=0; a<menueanzahl; a++) {
		//alert("mmenue" + a + "sub");
		document.getElementById("mmenue" + a + "sub").style.visibility = "hidden";
	}
	document.getElementById("navimittesub").style.backgroundColor = "#DEDFE5";
	document.getElementById(menuename).style.visibility = "visible";	
}

/////////////////
//bild gross
////////////////
function mywindow(xsize, ysize, file, title) {

	f1 = window.open(myserver + "/showpic.php?file=" + file + "&title=" + title, "Wilkerscreen", "width=" + xsize + ",height=" + ysize + ",scrollbars=no");
	f1.focus();

}
function myscrollwindow(xsize, ysize, file, title) {

	f1 = window.open(myserver + "/showpic.php?file=" + file + "&title=" + title, "Wilkerscreen", "width=" + xsize + ",height=" + ysize + ",scrollbars=yes");
	f1.focus();

}

//////////////////
//presse artikel an aus
//////////////////
function showlayer(jahr) {
	var myarray = new Array("1962", "1970", "1971", "1972", "1973", "1974", "1979", "2002", "2003");	
	for(a = 0; a<myarray.length; a++) {
		document.getElementById("artikel" + myarray[a]).style.visibility = "hidden";
		document.getElementById(myarray[a]).style.color = "#263B40";
	}
	document.getElementById("artikel" + jahr).style.visibility = "visible";
	document.getElementById(jahr).style.color = "#BC4809";
}


function imp_open() {
	f1 = window.open(myserver + "/flash/impressionen.html", "ErichWilker", "width=571, height=477, scrollbars=no");
}

function audiofile(xsize, ysize, file, title) {
	f1 = window.open(myserver + "/flash/audio_wilker.html", "Wilkerscreen", "width=" + xsize + ",height=" + ysize + ",scrollbars=no, left=100, top=100");
	f1.focus();

}


function showfilm() {
	f1 = window.open(myserver + "/introfilm.html", "ErichWilker", "width=1015, height=530, scrollbars=no, left=100, top=100");
}

function infoSchliessen() {
	//alert("aus schliessen: " + openflag);
	if(!openflag) {
		document.getElementById("infopopup").style.visibility = "hidden";
	}
	else {
		document.getElementById("infopopup").style.visibility = "visible";
		openflag = false;
	}
}

function infoOeffnen() {
		//alert("aus oeffnen: " + openflag);
	document.getElementById("infopopup").style.visibility = "visible";
}


function getbrowser() {
	if (navigator.appName.indexOf("Opera") != -1)
	{
    	return "Opera";
	}
	else if (navigator.appName.indexOf("Explorer") != -1)
	{
    	return "Microsoft";
	}
	else if (navigator.appName.indexOf("Netscape") != -1)
	{
    	return "Netscape";
	}
	else
	{
    	return "Others";
	}
}

/////////////////
//bild gross
////////////////
function neizapopup(jump) {
	//alert(jump);
	f1 = window.open(myserver + "/neiza/index.html#" + jump, "Neiza",  "width=720,height=690,scrollbars=yes");
	f1.focus();

}

