function bild(wo, was) { 
			if (document.images) {
				document.bld.src = "pic/" + was;
        //document.bld.title= bcredit(wo, monat());
			}
}





var Zeile = 0;

function popbild(was, cred) {
popup = open('', 'Popup', 'scrollbars=no,width=340,height=510, screenX=50,screenY=50,resizable=yes,toolbar=no,status=no,directories=no,location=no');

cont = "<html><head><title>Popup</title>";
cont = cont + "<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'></head>";
cont = cont + "<body bgcolor='#FFFFFF' text='#000000'>";
cont = cont + "<table width='300' border='0' cellspacing='0' cellpadding='0'><tr> ";
if (cred=='m'){
cont = cont + "<td><font face='Verdana, Arial, Helvetica, sans-serif' size='2'>&copy; Sigmund Freud-Museum Wien/Vienna<br><BR>";
}
else{
cont = cont + "<td><font face='Verdana, Arial, Helvetica, sans-serif' size='2'>&copy; Sigmund Freud Copyrights, 10 Brook Street,<BR> Wivenhoe Colcester CO7 9DS, England<br><BR>";
}
cont = cont + "</font></td></tr></table>";
cont = cont + "<img src='" + was + "' width='300'>";
cont = cont + "</body></html>";

popup.document.write(cont);
}


function poptxt(was) {
popfenster = window.open(was, "poptext", "scrollbars=yes,width=620,height=400,resizable=no,toolbar=no,status=no,directories=no,location=no");
popfenster.focus();
}

function poprundgang(was) {
poprundfenster = window.open(was, "poprund", "scrollbars=no,width=609,height=490,resizable=no,toolbar=no,status=no,directories=no,location=no");
poprundfenster.focus();
}

function popteam(htmlseite) {
popteamfenster = window.open(htmlseite, "htmlseite", "scrollbars=yes,width=500,height=450,resizable=no,toolbar=no,status=no,directories=no,location=no");
popteamfenster.focus();
}


function monatsbild(wo) { //1 museum, 2 wissensch, 3 gesellschaft
			if (document.images) {
				document.teaserbild.src = "../../pics/set" + monat() + "/bild" +  wo + ".jpg";
        document.teaserbild.title= bcredit(wo, monat());
			}
}


function monatsbilde(wo) { //1 museum, 2 wissensch, 3 gesellschaft
			if (document.images) {
				document.teaserbild.src = "../../pics/set" + monat() + "/bild" +  wo + ".jpg";
        document.teaserbild.title= bcredite(wo, monat());
			}
}


function bcredit(ort, bset){

//return ("der Bildcredit");
if (ort==1 && bset == 1) { return("Eingangszimmer zur Ordination Sigmund Freuds, Detail");}
if (ort==1 && bset == 2) { return("Franz West, Liege, 1989");}
if (ort==1 && bset == 3) { return("Eingangszimmer zur Ordination Sigmund Freuds");}

if (ort==2 && bset == 1) { return("Freuds Traumdeutung mit Widmung an eine Patientin");}
if (ort==2 && bset == 2) { return("Clegg & Guttmann, Text in Context, 1997");}
if (ort==2 && bset == 3) { return("Toiletten im Bibliotheksbereich");}

if (ort==3 && bset == 1) { return("Drehstuhl, Spezialentwurf Felix Augenfeld fuer Sigmund Freud");}
if (ort==3 && bset == 2) { return("Ilya Kabakov, Der Mensch, der ins Bild flog, 1987 ­ 1989");}
if (ort==3 && bset == 3) { return("Buecherlager");}

if (ort==4 && bset == 1) { return("Schachspiel Sigmund Freuds");}
if (ort==4 && bset == 2) { return("Haim Steinbach, Aha!, 1997");}
if (ort==4 && bset == 3) { return("Antikenvitrine im Wartezimmer Sigmund Freuds");}

if (ort==5 && bset == 1) { return("Vitrine mit Originalen aus dem Archiv des Sigmund Freud-Museums");}
if (ort==5 && bset == 2) { return("Abnahme Kosuth ");}
if (ort==5 && bset == 3) { return("Museumsshop");}

if (ort==6 && bset == 1) { return("Installation 'Ansicht der Erinnerung' von Joseph Kosuth");}
if (ort==6 && bset == 2) { return("Ansicht der Erinnerung mit Menschen davor, 2002");}
if (ort==6 && bset == 3) { return("Vortrags- /Ausstellungssaal, verschiebbare Wand");}

}


function bcredite(ort, bset){

//return ("der Bildcredit");
if (ort==1 && bset == 1) { return("Eingangszimmer zur Ordination Sigmund Freuds, Detail");}
if (ort==1 && bset == 2) { return("Franz West, Liege, 1989");}
if (ort==1 && bset == 3) { return("Eingangszimmer zur Ordination Sigmund Freuds");}

if (ort==2 && bset == 1) { return("Freuds Traumdeutung mit Widmung an eine Patientin");}
if (ort==2 && bset == 2) { return("Clegg & Guttmann, Text in Context, 1997");}
if (ort==2 && bset == 3) { return("Toiletten im Bibliotheksbereich");}

if (ort==3 && bset == 1) { return("Drehstuhl, Spezialentwurf Felix Augenfeld fuer Sigmund Freud");}
if (ort==3 && bset == 2) { return("Ilya Kabakov, Der Mensch, der ins Bild flog, 1987 ­ 1989");}
if (ort==3 && bset == 3) { return("Buecherlager");}

if (ort==4 && bset == 1) { return("Schachspiel Sigmund Freuds");}
if (ort==4 && bset == 2) { return("Haim Steinbach, Aha!, 1997");}
if (ort==4 && bset == 3) { return("Antikenvitrine im Wartezimmer Sigmund Freuds");}

if (ort==5 && bset == 1) { return("Vitrine mit Originalen aus dem Archiv des Sigmund Freud-Museums");}
if (ort==5 && bset == 2) { return("Abnahme Kosuth ");}
if (ort==5 && bset == 3) { return("Museumsshop");}

if (ort==6 && bset == 1) { return("Installation 'Ansicht der Erinnerung' von Joseph Kosuth");}
if (ort==6 && bset == 2) { return("Ansicht der Erinnerung mit Menschen davor, 2002");}
if (ort==6 && bset == 3) { return("Vortrags- /Ausstellungssaal, verschiebbare Wand");}

}

//----------
		imgIntro = 2
		function klickImg() {
			if (document.images) {
				 //thisImg = Math.floor((Math.random() * imgInge)) + 1
     //alert(imgIntro);
			 	document.introbild.src = "pics/intro/intro0" + imgIntro + ".jpg";
     if (imgIntro > 5){
        imgIntro = 1;
     }
     else {
        imgIntro = imgIntro + 1;
     }

			}
		}

//------------


function monat() {
		var Jetzt = new Date();
		var Monat = Jetzt.getMonth();
if (Monat==0) {	return(3);}
if (Monat==1) {	return(1);}
if (Monat==2) {	return(2);}
if (Monat==3) {	return(3);}
if (Monat==4) {	return(1);}
if (Monat==5) {	return(2);}
if (Monat==6) {	return(3);}
if (Monat==7) {	return(1);}
if (Monat==8) {	return(2);}
if (Monat==9) {	return(3);}
if (Monat==10) {	return(1);}
if (Monat==11) {	return(2);}
 }

// onload=menuecheck("museumnavi.html", 1) kommt aus den contentframes 
// und fragt ob die richtige navi mit richtiger zeile rot ist, wenn nicht tut sies

function menuecheck(dokutitel, aktivzeile){
  Zeile = aktivzeile;
 // alert(("../" + dokutitel));
  if (parent.navi.document.title != dokutitel  && parent.navi.document.title != "suchenavi.html"){
    parent.navi.location=("../" + dokutitel);
   }
  wait(1000);
}


function wait(delay, was){
  string="pauseforalert("+delay+");";
  setTimeout(string,delay);
}


function pauseforalert(delay){
  // alert(parent.navi.location);
  // alert("Ok "+delay/1000+" seconds have elapsed");
parent.navi.klickzuFarbe(20,Zeile);
}





