//	document.onmousedown=click

	var imgarr=new Array()
	var nextpic=0
	var verzoeg=5000
	var legend=new Array()
	var fenster1

	function click() {
		if (event.button==2){
               alert("Gottfried Keller Seite\n\nCopyright W. Morgenthaler");
           }
      }

	function openwin1(theURL,winName) { //v2.0
    	 optionswin1 = "width=910, height=620, scrollbars"
 		 fenster1=window.open(theURL,winName,optionswin1);
		 fenster1.focus()
}
	
	function openwin2(theURL,winName) { //v2.0
        optionswin1 = "width=840, height=710"
//		pfad="/HKKACD/faks/GH/"
		pfad="../faks/"
		theURL=pfad+theURL.substr(0,4)+"/"+theURL
	if (! fenster1 || fenster1.closed) {
	 		 fenster1=window.open(theURL,winName,optionswin1)
		}
		else { 
  			fenster1.document.images[0].src=theURL
		}
		 fenster1.focus()
}

	function wahl_GH2(wahl) {
		for (i=0; i<70; i++) {
		     xopt = parent.topFrame.document.form2.auswahl.options[i].value;
       		 if (wahl.indexOf(xopt)>=0) {
				parent.topFrame.document.form2.auswahl.options[i].selected=1; break
				}
		}
}

	function wahl_GH1(wahl) {
		for (i=0; i<40; i++) {
		    if (wahl.indexOf(parent.topFrame.document.form1.auswahl1.options[i].value)>=0) {
			parent.topFrame.document.form1.auswahl1.options[i].selected=1; break
			}
		}
	}


function Bildzoom(bild1,winName,features) { //v2.0
  if (! fenster || fenster.closed) {
	  fenster=window.open(url2,winName,features)
	  }
  else { 
  fenster.document.bild.src="../spacer.gif"
  fenster.document.bild.src=bild1
  legname=bild1.substr(0,1)+"T_"+bild1.substr(3,2)+".gif"
  fenster.document.legende.src=legname
  }
  fenster.focus()
  
}


	function themen(form){
  	   parent.Frame4.location.href = form.options[form.selectedIndex].value;
	}

	function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}

	function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

	
	function preload() {
		imgarr[0]="start3.jpg"
		imgarr[1]="start4.jpg"
		imgarr[2]="start1.jpg"
		imgarr[3]="start2.jpg"
		legend[0]="Pastellzeichnung von Ludmilla Assing, 1854"
		legend[1]="Photographie, um 1870"
		legend[2]="Oelstudie von Karl Stauffer-Bern, 1886" 
		legend[3]="Bleistiftzeichnung von J. S. Hegi, 1841"
	}

	function portraits(){
  
		if (verzoeg==0)
		   return false
		
		nextpic++
		document.portrait.src=imgarr[nextpic-1]
		window.status=legend[nextpic-1]
		if (nextpic==imgarr.length)
		   nextpic=0
    		setTimeout("portraits()",verzoeg)
	}

	function stopit() {
		if (verzoeg==0) {
		  verzoeg = 5000
     		  setTimeout("portraits()",3) }
		else
		  verzoeg=0
	}	

	
	function fragencheck() {

		var f= document.forms[0]
		if (f.Schule.value== "") {
		   alert("Bitte geben Sie den Namen Ihrer Schule an!","");
		   return false;
		   }
		if (!(f.warum[0].checked || f.warum[1].checked || f.warum[2].checked)) { 
		   alert("Bitte kreuzen Sie an, weshalb Sie diese Seite aufgesucht haben!");
		   return false; 
		   }
	}