function openWin(url){
		fenster=window.open(url,"Hallo","toolbar=no,width=515,height=550,status=no,scrollbars=no,resize=yes,menubar=no");
}

function openImp(url){
		fenster=window.open(url,"Impressum","toolbar=no,width=300,height=200,status=no,scrollbars=no,resize=no,menubar=no");
}

function openDis(url){
		fenster=window.open(url,"Disclaimer","toolbar=no,width=500,height=500,status=no,scrollbars=yes,resize=no,menubar=no");
}

function aktivButton(img_name) {
	var re = /\.gif/
	if (document.images) {
      document.images[img_name].src = document.images[img_name].src.replace(re, "_aktiv.gif") }
}

function deaktivButton(img_name) {
	var re = /_aktiv\.gif/
	if (document.images) {
      document.images[img_name].src = document.images[img_name].src.replace(re, ".gif") }
}

function showImg(img_number,baer_number){
	switch (baer_number){
		case 1:
			imgarray = new Array(4);
			imgarray[1]="images/DonCaramello1_500x500.jpg"
			imgarray[2]="images/DonCaramello2_500x500.jpg"
			imgarray[3]="images/DonCaramello3_500x500.jpg"
			imgarray[4]="images/DonCaramello4_500x500.jpg"
			return imgarray[img_number]
		break
		case 2:
			imgarray = new Array(3);
			imgarray[1]="images/Snowy1_500x500.jpg"
			imgarray[2]="images/Snowy2_500x500.jpg"
			imgarray[3]="images/Snowy3_500x500.jpg"
			return imgarray[img_number]
		break
		case 3:
			imgarray = new Array(4);
			imgarray[1]="images/BerryBlue1_500x500.jpg"
			imgarray[2]="images/BerryBlue2_500x500.jpg"
			imgarray[3]="images/BerryBlue3_500x500.jpg"
			imgarray[4]="images/BerryBlue4_500x500.jpg"
			return imgarray[img_number]
		break
		case 4:
			imgarray = new Array(4);
			imgarray[1]="images/Hazel7_500x500.jpg"
			imgarray[2]="images/Hazel6_500x500.jpg"
			imgarray[3]="images/Hazel8_500x500.jpg"
			imgarray[4]="images/Hazel5_500x500.jpg"
			return imgarray[img_number]
		break
		case 5:
			imgarray = new Array(4);
			imgarray[1]="images/Sunny1_480x480.jpg"
			imgarray[2]="images/Sunny2_480x480.jpg"
			imgarray[3]="images/Sunny3_480x480.jpg"
			imgarray[4]="images/Sunny4_480x480.jpg"
			return imgarray[img_number]
		break
		case 6:
			imgarray = new Array(2);
			imgarray[1]="images/Loo1_480x480.jpg"
			imgarray[2]="images/Loo2_480x480.jpg"
			return imgarray[img_number]
		break
		case 7:
			imgarray = new Array(5);
			imgarray[1]="images/Muffin1_500x500.jpg"
			imgarray[2]="images/Muffin3_500x500.jpg"
			imgarray[3]="images/Muffin4_500x500.jpg"
			imgarray[4]="images/Muffin5_500x500.jpg"
			imgarray[5]="images/Muffin6_500x500.jpg"
			return imgarray[img_number]
		break
		case 8:
			imgarray = new Array(1);
			imgarray[1]="images/Rufus1_300x300.jpg"
			return imgarray[img_number]
		break
		case 9:
			imgarray = new Array(5);
			imgarray[1]="images/Mocca6_500x500.jpg"
			imgarray[2]="images/Mocca7_500x500.jpg"
			imgarray[3]="images/Mocca8_500x500.jpg"
			imgarray[4]="images/Mocca9_500x500.jpg"
			imgarray[5]="images/Mocca5_500x500.jpg"
			return imgarray[img_number]
		break
		case 10:
			imgarray = new Array(3);
			imgarray[1]="images/springtime1_500x500.jpg"
			imgarray[2]="images/springtime2_500x500.jpg"
			imgarray[3]="images/springtime3_500x500.jpg"
			return imgarray[img_number]
		break
		case 11:
			imgarray = new Array(2);
			imgarray[1]="images/little_lemone1_500x500.jpg"
			imgarray[2]="images/little_lemone2_500x500.jpg"
			return imgarray[img_number]
		break
		case 12:
			imgarray = new Array(2);
			imgarray[1]="images/Fussel1_500x500.jpg"
			imgarray[2]="images/Fussel4_500x500.jpg"
			return imgarray[img_number]
		break
		case 13:
			imgarray = new Array(4);
			imgarray[1]="images/Pete5_500x500.jpg"
			imgarray[2]="images/Pete8_500x500.jpg"
			imgarray[3]="images/Pete7_500x500.jpg"
			imgarray[4]="images/Pete1_500x500.jpg"
			return imgarray[img_number]
		break
		default:
			imgarray = new Array(4);
			imgarray[1]="images/no_img.jpg"
			imgarray[2]="images/no_img.jpg"
			imgarray[3]="images/no_img.jpg"
			imgarray[4]="images/no_img.jpg"
			return imgarray[img_number]
	}
}

function put(form,image,baer){
	option=document.forms[form].dropdown.options[document.forms[form].dropdown.selectedIndex].text;
	number=option;
	document.images[image].src=showImg(number,baer);
}

function turnPage(form,element){
	url=document.forms[form].elements[element].options[document.forms[form].elements[element].selectedIndex].value;
	if(url!="")window.location=url;
}