
		
	function resizeNow(isLoad){
		/* 	Die aktuelle Höhe und Breite
				des Fensters wird bestimmt */
			var windowheight = $(window).height();
			var windowwidth = $(window).width();
			
			// Menüabstände verkleinern
			if (windowwidth < 1083) {
					$('#menu a').css('margin-left', '30px');
					
					if (windowwidth < 1042) {
						$('#menu a').css('margin-left', '20px');
						
						if (windowwidth < 1025) {
						$('#menu a').css('margin-left', '8px');
				}
				}
				
					
			}
			else {
				$('#menu a').css('margin-left', '40px');
			}
			
		$('#big img').each(function() {
			
			/* 	Liest die aktuelle Höhe und 
				Breite des Bildes aus */
			var thisheight = $(this).attr('height');
			var thiswidth = $(this).attr('width');
			
			/* 	Beim Laden der Seite wird das Seitenverhältnis
				des Bildes bestimmt und im img-Tag gespeichert */
			if (isLoad == 'load') {
				var ratio = thiswidth / thisheight;
				
				$(this).attr('ratio', ratio);
			}
			
			
			
			
			
			/* 	Die neue Höhe des Bildes wird gesetzt
				und aus dem Verhältnis die Breite berechnet */
			var newheight = windowheight - 190;
			
			var newwidth = newheight * $(this).attr('ratio');
			
			/* 	Wenn die neue Breite des Bildes kleiner ist als die
				Fensterbreite des Browsers, wird diese
				an das Bild übergeben */
			if (newwidth < windowwidth) {
				
				$(this).attr('height', newheight);
				$(this).attr('width', newwidth);
				$('#big').css('height', newheight);
				$('.caption').css('width', newwidth);
				
			} else {
				/* 	ansonsten wird basierend auf der Breite eine neue
					Bildgröße bestimmt und diese an das Bild übergeben */
				newwidth = windowwidth - 50;	
				newheight = newwidth / $(this).attr('ratio') ;
				$(this).attr('height', newheight);
				$(this).attr('width', newwidth);
				$('#big').css('height', newheight);
				$('.caption').css('width', newwidth);
			}

			
			
		});
		
		
	}

