// Bei Link auf aktuelle Seite die CSS Klasse auf aktiv setzen
function highlightCurrentPageLink() {
// Alle Links durchlaufen und pruefen
var anzHrefs = document.getElementsByTagName("a").length;
for (var i = 0; i <= anzHrefs - 1; i++) {
// Link auf aktuelle Seite gefunden, also umsetzen CSS auf aktiv
if (document.getElementsByTagName("a")[i].href == document.location.href) {
var currentClassName = document.getElementsByTagName("a")[i].className;
var newClassName = currentClassName.replace(/inaktiv/,"aktiv");
document.getElementsByTagName("a")[i].className = newClassName;
}
}
}


function NeuFenster(theURL,parameter)
  {
   MeinFenster =
   window.open(theURL, "Zweitfenster", parameter);
   MeinFenster.focus();
  }

	function show(name,src) {

	    if (document.images)

	        document.images[name].src = src;

	}
	
//configure the
function foto(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function CaricaFoto(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img){
  largh=foto1.width+0;
  altez=foto1.height+0;
  stringa="width="+largh+",height="+altez;
  finestra=window.open("../de/foto.asp?bild="+img,"",stringa);
  
}

