bild = new Object();

/* * * AKTUELL ANGEKLICKTES BILD* * *
 * 0...kein Bild ist angeklickt
 * Diese Variable sollte standardmŠ§ig immer den Wert 0 haben,
 * ansonsten kšnnen Darstellungsfehler beim Laden der Seite auftreten!
 */ 
bild.clicked = 0;

/* * * STANDARDM€SSIG AUSGEW€HLTES BILD* * *
 * 0...kein Bild ist standardmŠ§ig ausgewŠhlt
 */
if (location.href.indexOf("#") != -1 && location.href.length > location.href.indexOf("#")+1){
  bild.defauldClicked = parseInt(location.href.substring(location.href.indexOf("#")+1,location.href.length));
}
else bild.defauldClicked = 0;

//* * * PFAD DER BILDER* * *
bild.pfad = "";

/* * * * NAMEN DER EINZELNEN ROLLOVERBILDER* * *
 * 0...mouseOUT
 * 1...mouseOVER
 * 2...mouseCLICK
 */
bild.status = new Array();
bild.status[0] = "../../pic/bildauswahl0.gif";
bild.status[1] = "../../pic/bildauswahl1.gif";
bild.status[2] = "../../pic/bildauswahl2.gif";

//* * * NAMEN DERÊBILDER * * *
bild.bild = new Array();
bild.bild[0] = "b01.jpg";
bild.bild[1] = "b02.jpg";
bild.bild[2] = "b03.jpg";
bild.bild[3] = "b04.jpg";
bild.bild[4] = "b05.jpg";
bild.bild[5] = "b06.jpg";
bild.bild[6] = "b07.jpg";
bild.bild[7] = "b08.jpg";
bild.bild[8] = "b09.jpg";
bild.bild[9] = "b10.jpg";
if (bild.defauldClicked > bild.bild.length) bild.defauldClicked = 0;

//* * * TNRollover(Nummer des akt. Bildes, Status des Thumbnails [0,1 oder 2]* * *
function TNRollover(num,status){
  if (num != bild.clicked){
    document['tn'+num].src=bild.pfad+bild.status[status];
    if (status == 2){
	   if (bild.clicked > 0) document['tn'+bild.clicked].src=bild.pfad+bild.status[0];
		document['bild'].src=bild.pfad+bild.bild[num-1];
		bild.clicked = num;
	 }	 
  }	 
}