// JavaScript Document
pics = new Array ("ag_pic","gu_pic","ug_pic","bk_pic","cs_pic","ag_text","gu_text","ug_text","bk_text","cs_text");
navi = new Array ("ag_navi","gu_navi","ug_navi","bk_navi","cs_navi");
text = new Array ("ag_text","gu_text","ug_text","bk_text","cs_text");

function ChangeMit(name) {
	document.getElementById(name+'_navi').src = 'Web_pix/'+name+'_navi_A.gif';
	for(var i= 0; i <= navi.length-1; i++){
		if(navi[i] != name+'_navi'){
			document.getElementById(navi[i]).src = 'Web_pix/'+navi[i]+'.gif';
		}
	}
	for(var i = 0; i <= pics.length-1; i++){
		switch(pics[i]) {
		case name+'_text':
		document.getElementById(pics[i]).style.visibility = 'visible';
		break;
		case name+'_pic':
		document.getElementById(pics[i]).style.visibility = 'visible';
		break;
		default:
		document.getElementById(pics[i]).style.visibility = 'hidden';
		break;
		}
	}		
	
}
function ChangeCursor(name){
	document.getElementById(name).style.cursor = 'pointer';
}
function SwitchtoBio(){
	document.getElementById('bio').src = 'Web_pix/ens_bio_A.gif';
	document.getElementById('bild').style.visibility = 'hidden';
	document.getElementById('scroller').style.visibility = 'visible';
	document.getElementById('text').style.visibility = 'visible';
	
}
function SwitchtoBio_e(){
	document.getElementById('bio').src = 'Web_pix/ens_e_bio_A.gif';
	document.getElementById('bild').style.visibility = 'hidden';
	document.getElementById('scroller').style.visibility = 'visible';
	document.getElementById('text').style.visibility = 'visible';
	
}
function Popup(name,w,h,text,druckbild){
   
	
   var pop = null; 
   url = "Web_pix/"+name
   druck = "Web_pix/"+druckbild
   weite = 2*w+20;
   hoehe = h+40;
 
   l = screen.availWidth/2-w/2;
   t = screen.availHeight/2-h/2;
   var args = 'width='+weite+',height='+hoehe+',resizable,left='+l+',top='+t;
   
   pop = window.open('about:blank','Popup',args);

 
      pop.document.open();
      pop.document.write('<HTML>');
      pop.document.write('<HEAD>');
      pop.document.write(' <title>Popup</title>');
      pop.document.write(' </HEAD>');
      pop.document.write(' <BODY>');
	  pop.document.write(' <TABLE style="color:#00267F;font-size:11px;font-family: Georgia, "Times New Roman",Times, serif;"><TR>');
	  pop.document.write(' <TD>');
      pop.document.write(' <a href="" onClick="JavaScript:self.close()">')
      pop.document.write(' <img src="' + url + '" alt="Bild schließen" title="Bild schließen" border="0"></a>');
	  pop.document.write(' </TD>');
	   pop.document.write(' <TD valign="top" width="40">');
      pop.document.write('&#160;');
      
	  pop.document.write(' </TD>');
	   pop.document.write(' <TD valign="top">');
      pop.document.write(text);
      
	  pop.document.write(' </TD>');
	  pop.document.write(' </TR>');
	  pop.document.write(' <TR>');
	  pop.document.write(' <TD>');
	  pop.document.write(' <a href="' + druck + '" target="_blank">Bild in Druckqualität')
      
	  pop.document.write(' </TD>');
	  pop.document.write(' </TABLE>');
      pop.document.write(' </BODY>');
      pop.document.write('</HTML>');
      pop.document.close();
 
   pop.focus();
 }
 function Popup_ohne(name,w,h){
   
	
   var pop = null; 
   url = "Web_pix/"+name
 
   weite = w+20;
   hoehe = h+20;
 
   l = screen.availWidth/2-w/2;
   t = screen.availHeight/2-h/2;
   var args = 'width='+weite+',height='+hoehe+',resizable,left='+l+',top='+t+',scrollbars=yes';
   
   pop = window.open('about:blank','Popup',args);

 
      pop.document.open();
      pop.document.write('<HTML>');
      pop.document.write('<HEAD>');
      pop.document.write(' <title>Popup</title>');
      pop.document.write(' </HEAD>');
      pop.document.write(' <BODY>');
	 
      pop.document.write(' <a href="" onClick="JavaScript:self.close()">')
      pop.document.write(' <img src="' + url + '" alt="Bild schließen" title="Bild schließen" border="0"></a>');
	 
      pop.document.write(' </BODY>');
      pop.document.write('</HTML>');
      pop.document.close();
 
   pop.focus();
 }
//scroller



