function adjustSize(){
	//Größenanpassung
	//Hintergrundelemente###
	$('#bHeader').css({'height' : Math.round($(window).height()*0.115)});
	$('#bSlider').css({'height' : Math.round($(window).height() - ($(window).height()*0.115) + ($(window).height()*0.448))});
		$('#sliderImgBF').ready(function(){
			$('#sliderImgBF').css({'width' : Math.round($(window).width())});
		});
		$('#sliderImgR').ready(function(){
			$('#sliderImgR').css({'width' : Math.round($(window).width())});
		});
		$('#sliderImgF').ready(function(){
			$('#sliderImgF').css({'width' : Math.round($(window).width())});
		});
	$('#video').css({'height' : Math.round($(window).height() - ($(window).height()*0.290) )});
	$('#bTopMenu').css({'height' : Math.round($(window).height()*0.06)});
	$('#bBrandMenu').css({'height' : Math.round($(window).height()*0.115)});
	$('#bFooter').css({'height' : Math.round($(window).height()*0.448)});
	//Hintergrundelemente ENDE###
	
	//Firstlevelelemente###
	//$('#firstLevel').css({'height' : Math.round($(window).height() + ($(window).height()*0.448))});
		//fHeader und seine Elemente###
		$('#fHeader').css({'height' : Math.round($(window).height()*0.115)});
			$('#logo').css({'height' : Math.round($(window).height()*0.115)});
			$('#logo').css({'width' : Math.round($(window).height()*0.324)});
				$('#imgLogo').ready(function(){
					$('#imgLogo').css({'height' : Math.round($(window).height()*0.115)});
					$('#imgLogo').css({'width' : Math.round($(window).height()*0.324)});
				});
			//$('#language').css({'height' : Math.round($(window).height()*0.025)});
		//fHeader und seine Elemente ENDE###	
		
		
		$('#fTopMenu').css({'height' : Math.round($(window).height()*0.06)});
		
		//fBrandMenu und seine Elemente###
		//Startseite
		$('#fBrandMenuBlack').css({'height' : Math.round($(window).height()*0.004)});
			$('#roeschBlack').css({'height' : Math.round($(window).height()*0.004)});
			$('#feraudBlack').css({'height' : Math.round($(window).height()*0.004)});
			$('#blanchefleurBlack').css({'height' : Math.round($(window).height()*0.004)});
			
			$('#button1Black').css({'height' : Math.round($(window).height()*0.004)});
			$('#button2Black').css({'height' : Math.round($(window).height()*0.004)});
			$('#button3Black').css({'height' : Math.round($(window).height()*0.004)});
			$('#button4Black').css({'height' : Math.round($(window).height()*0.004)});
			
		$('#fBrandMenu').css({'height' : Math.round($(window).height()*0.115)});
			$('#shadowLeft').css({'height' : Math.round($(window).height()*0.115)});
				$('#shadowLeft IMG').ready(function(){
					$('#shadowLeft IMG').css({'height' : Math.round($(window).height()*0.115)});
				});
			$('#brandRoesch').css({'height' : Math.round($(window).height()*0.115)});
				$('#brandRoeschButtonImg').ready(function(){
					$('#brandRoeschButtonImg').css({'height' : Math.round($(window).height()*0.115)});
				});
				
			$('#brandFeraud').css({'height' : Math.round($(window).height()*0.115)});
				$('#brandFeraudButtonImg').ready(function(){
					$('#brandFeraudButtonImg').css({'height' : Math.round($(window).height()*0.115)});
				});
			$('#brandBlanchefleur').css({'height' : Math.round($(window).height()*0.115)});
				$('#brandBlanchefleurButtonImg').ready(function(){
					$('#brandBlanchefleurButtonImg').css({'height' : Math.round($(window).height()*0.115)});
				});
			$('#shadowRight').css({'height' : Math.round($(window).height()*0.115)});
				$('#shadowRight IMG').ready(function(){
					$('#shadowRight IMG').css({'height' : Math.round($(window).height()*0.115)});
				});
				
		//Klassen 
		$('.shadowRight').css({'height' : Math.round($(window).height()*0.115)});
		$('.shadowLeft').css({'height' : Math.round($(window).height()*0.115)});
		
		$('.shadowRight IMG').ready(function(){
			$('.shadowRight IMG').css({'height' : Math.round($(window).height()*0.115)});
		});
		$('.shadowLeft IMG').ready(function(){
			$('.shadowLeft IMG').css({'height' : Math.round($(window).height()*0.115)});
		});
		
		$('.brandHover').css({'height' : Math.round($(window).height()*0.115)});
		
		
		
		//Unterseiten
		//fBrandMenu und seine Elemente###
		//$('#fBrandMenu').css({'height' : Math.round($(window).height()-($(window).height()*0.117))});
		$('.buttonText a').css({'height' : Math.round($(window).height()*0.115)});
		$('.buttonText a').css({'padding-top' : Math.round($('.buttonText a').height()*0.42)});
		
		$('#button1').css({'height' : Math.round($(window).height()*0.115)});
		$('#button2').css({'height' : Math.round($(window).height()*0.115)});
		$('#button3').css({'height' : Math.round($(window).height()*0.115)});
		$('#button4').css({'height' : Math.round($(window).height()*0.115)});
		
		//fBrandMenu und seine Elemente ENDE ###
		$('#content').css({'height' : Math.round($(window).height()-($(window).height()*0.290))});
		$('#contentBG').css({'height' : Math.round($(window).height()-($(window).height()*0.290))});
			$('#contentBG IMG').ready(function(){
				$('#contentBG IMG').css({'height' : Math.round($(window).height()-($(window).height()*0.290))});
				$('#contentBG IMG').css({'width' : Math.round($(window).width())});
			});
		$('#contentStoff').css({'height' : Math.round($(window).height()*0.238)});
			$('#contentStoff IMG').ready(function(){
				$('#contentStoff IMG').css({'height' : Math.round($(window).height()*0.238)});
				$('#contentStoff IMG').css({'width' : Math.round($(window).width())});
			});
			
		$('#content1000').css({'height' : Math.round($(window).height()-($(window).height()*0.290))});
		//$('#contentLeft').css({'height' : Math.round(($(window).height()-($(window).height()*0.390))+8)});
		$('#contentMenu').css({'height' : Math.round(($(window).height()-($(window).height()*0.390))+8)});
		$('.contentMenuEintrag').css({'height' : Math.round((($(window).height()-($(window).height()*0.390))/8)-Math.round((($(window).height()-($(window).height()*0.390))/8)*0.4))}); //Höhe - Padding von jedem Eintrag
		$('#contentRight').css({'height' : Math.round($(window).height()*0.220)});
			$('#contentRight IMG').ready(function(){
				$('#contentRight IMG').css({'height' : Math.round($(window).height()*0.190)});
			});
		
		//fBrandMenu und seine Elemente ENDE###
		
		
		//fFooter und seine Elemente###
		$('#fFooter').css({'height' : Math.round($(window).height()*0.448)});
			$('#sitemapBox1').css({'height' : Math.round($(window).height()*0.248)});
			$('#sitemapBox2').css({'height' : Math.round($(window).height()*0.248)});
			$('#sitemapBox3').css({'height' : Math.round($(window).height()*0.248)});
			$('#sitemapBox4').css({'height' : Math.round($(window).height()*0.248)});
		//fFooter und seine Elemente ENDE###
		
		//Kontaktformular ######
		//$('#kontaktformular').css({'height' : Math.round($(window).height()*0.4)});
		//$('#nachrichten-feld').css({'height' : Math.round($(window).height()*0.25)});
		//Kontaktformular ENDE ######
		
		
		//Galiere Elemente ###
		$('#fullscreenBackground').css({'width' : Math.round($(window).width())});
		$('#fullscreenBackground').css({'height' : Math.round($(window).height())});
			$('#fullscreenNext').css({'width' : Math.round(($(window).height())*0.058)});
			$('#fullscreenNext').css({'height' : Math.round(($(window).height())*0.132)});
				$('#fullscreenNext IMG').css({'width' : Math.round(($(window).height())*0.058)});
				$('#fullscreenNext IMG').css({'height' : Math.round(($(window).height())*0.132)});
			$('#fullscreenPrev').css({'width' : Math.round(($(window).height())*0.058)});
			$('#fullscreenPrev').css({'height' : Math.round(($(window).height())*0.132)});
				$('#fullscreenPrev IMG').css({'width' : Math.round(($(window).height())*0.058)});
				$('#fullscreenPrev IMG').css({'height' : Math.round(($(window).height())*0.132)});
		$('#videoG').css({'height' : Math.round($(window).height()-($(window).height()*0.290))});
		$('#videoI').css({'height' : Math.round($(window).height()-($(window).height()*0.289))});
		$('#galerieBilder').css({'width' : Math.round($(window).width() - (Math.round(($(window).width()-1000)/2)+493))});
		$('#galerieBilder').css({'height' : Math.round($(window).height()-($(window).height()*0.290))});
			$('#galerieBilderWrapper').css({'height' : Math.round($(window).height()-($(window).height()*0.290))});
				$('#galerieBilderWrapper IMG').ready(function(){
					$('#galerieBilderWrapper IMG').css({'height' : $(window).height()-($(window).height()*0.290)});
					$('#galerieBilderWrapper IMG').ready(function(){
						$('#galerieBilderWrapper DIV').css({'width' : Math.round($('#galerieBilderWrapper IMG').width())});
						$('#platzhalter').css({'width' : Math.round(($(window).width()-1000)/2+116+391-$('#galerieBilderWrapper IMG').width())});
						
						var galerieBilderWrapperWidth = 0;
						$('#galerieBilderWrapper IMG').each(function(){
							galerieBilderWrapperWidth += $(this).width();
						});
						galerieBilderWrapperWidth += $('#platzhalter').width();
						$('#galerieBilderWrapper').css({'width' : Math.round(galerieBilderWrapperWidth)});
					});
				});
				
			$('#platzhalter').css({'height' : Math.round($(window).height()-($(window).height()*0.290))});
		//$('#platzhalter').css({'width' : Math.round(($(window).width()-1000)/2)+Math.round(116/$('#galerieBilderWrapper IMG').width())});
		$('#schattenLeft').css({'height' : Math.round($(window).height()-($(window).height()*0.290))});
		$('#schattenRight').css({'height' : Math.round($(window).height()-($(window).height()*0.290))});
		$('#grayBoxLeft').css({'width' :  Math.round(($(window).width()-1000)/2)+493});
		$('#grayBoxRight').css({'width' : ($(window).width()-1000)/2+116+391-$('#galerieBilderWrapper IMG').width()});
		$('.grayBox').css({'height' : Math.round($(window).height()-($(window).height()*0.290))});
		
		$('#nextBild').css({'height' :  Math.round($(window).height()*0.132)});
			$('#nextBild IMG').ready(function(){
				$('#nextBild IMG').css({'height' :  Math.round($(window).height()*0.132)});
			});
			
		$('#prevBild').css({'height' :  Math.round($(window).height()*0.132)});
			$('#prevBild IMG').ready(function(){
				$('#prevBild IMG').css({'height' :  Math.round($(window).height()*0.132)});
			});
			
			
		$('#galerie').css({'height' :  Math.round($(window).height()*0.512)});
		$('#galerieBox').css({'height' :  Math.round($(window).height()*0.410)});
		$('#galerieBox').css({'width' :  Math.round($(window).height()*0.330)});
		$('#galerieBoxPrev').css({'height' :  Math.round($(window).height()*0.034)});
		$('#galerieBoxPrev').css({'width' :  Math.round($(window).height()*0.330)});
			$('#galerieBoxPrev IMG').ready(function(){
				$('#galerieBoxPrev IMG').css({'height' :  Math.round($(window).height()*0.034)});
				$('#galerieBoxPrev IMG').css({'width' :  Math.round($(window).height()*0.330)});
			});
			
		$('#galerieBoxNext').css({'height' :  Math.round($(window).height()*0.034)});
		$('#galerieBoxNext').css({'width' :  Math.round($(window).height()*0.330)});
			$('#galerieBoxNext IMG').ready(function(){
				$('#galerieBoxNext IMG').css({'height' :  Math.round($(window).height()*0.034)});
				$('#galerieBoxNext IMG').css({'width' :  Math.round($(window).height()*0.330)});
			});
			
		$('#galerieBoxMode').css({'width' :  Math.round($(window).height()*0.330)});
		$('#galerieBoxMode').css({'height' :  Math.round($(window).height()*0.06)});
			$('#galerieBoxMode span').css({'font-size' :  Math.round($(window).height()*0.014)});
			$('#diashow').css({'font-size' :  Math.round($(window).height()*0.014)});
			$('#diashow').css({'width' :  Math.round($(window).height()*0.08)});
			$('#fullscreen').css({'font-size' :  Math.round($(window).height()*0.014)});
			$('#fullscreen').css({'width' :  Math.round($(window).height()*0.08)});
			
		$('#galerieBoxThumb').css({'width' :  Math.round($(window).height()*0.232)});
		$('#galerieBoxThumb').css({'height' :  Math.round($(window).height()*0.280)});
		$('#galerieBoxThumb2').css({'width' :  Math.round($(window).height()*0.232)});
		$('#galerieBoxThumb2').css({'height' :  Math.round($(window).height()*0.280)});
		$('.galerieThumb').css({'width' :  Math.round($(window).height()*0.070)});
		$('.galerieThumb').css({'height' :  Math.round($(window).height()*0.070)});
			$('.galerieThumb IMG').ready(function(){
				$('.galerieThumb IMG').css({'width' :  Math.round($(window).height()*0.065)});
				$('.galerieThumb IMG').css({'height' :  Math.round($(window).height()*0.065)});
			});
			
		$('.galerieThumbMargin').css({'width' :  Math.round($(window).height()*0.070)});
		$('.galerieThumbMargin').css({'height' :  Math.round($(window).height()*0.070)});
			$('.galerieThumbMargin IMG').ready(function(){
				$('.galerieThumbMargin IMG').css({'width' :  Math.round($(window).height()*0.065)});
				$('.galerieThumbMargin IMG').css({'height' :  Math.round($(window).height()*0.065)});
			});
			
		
		//Galerie Elemente ENDE ###
	//Firstlevelelemente ENDE###
};

function adjustMargin(){
	//Abstandsanpassung des Hintergrunds
	//Hintergrundelemente
	$('#bSlider').css({'margin-top' : Math.round($(window).height()*0.115)});
	//$('#video').css({'margin-top' : Math.round($(window).height() * 0.06 )});
	$('#bTopMenu').css({'margin-top' : Math.round($(window).height()*0.115)});
	$('#bBrandMenu').css({'margin-top' : Math.round($(window).height()-($(window).height()*0.115))});
	$('#bFooter').css({'margin-top' : Math.round($(window).height())});
	
	//Firstlevenelemente
	var firstLevenMarginLeft = Math.round(($(window).width() - $('#firstLevel').width())/2);
	if(firstLevenMarginLeft <= 0){ firstLevenMarginLeft = 0; };
	$('#firstLevel').css({'margin-left' : firstLevenMarginLeft});
	$('#fTopMenu').css({'margin-top' : Math.round($(window).height()*0.115)});
	
	$('#fBrandMenuBlack').css({'margin-top' : Math.round($(window).height()-($(window).height()*0.115)-($(window).height()*0.004))});
	$('#fBrandMenu').css({'margin-top' : Math.round($(window).height()-($(window).height()*0.115))});
		$('.brandActive').css({'left' : Math.round(($('#brandRoesch').width()-$('#brandRoeschButtonImg').width())/2)});
		
	$('#fFooter').css({'margin-top' : Math.round($(window).height())});
	
	
	$('#language').css({'top' : Math.round((($('#fHeader').height()-$('#language').height())/2)-$(window).height()*0.004)});
	
	$('#topMenuLeft').css({'padding-top' : Math.round(($('#fTopMenu').height() - $('#topMenuLeft').height())/2)});
	$('#topMenuRight').css({'padding-top' : Math.round(($('#fTopMenu').height() - $('#topMenuRight').height())/2)});
	
	//Unterseiten
	$('#content').css({'top' : Math.round($(window).height()*0.175)});
	$('#contentText1000').css({'left' : Math.round(($(window).width()-1000)/2)});
	$('#content1000').css({'left' : Math.round(($(window).width()-1000)/2)});
	$('#contentText').css({'top' : Math.round($(window).height()*0.320)});
	$('#contentStoff').css({'top' : Math.round($(window).height()*0.238)});
	$('#contentLeft').css({'top' : Math.round($(window).height()*0.225)});
	$('#contentRight').css({'top' : Math.round($(window).height()*0.260)});
	
	$('.contentMenuEintrag').css({'padding-top' : Math.round((($(window).height()-($(window).height()*0.390))/8)*0.4)});
	
	//Kontaktformular
	$('#kontaktformular').css({'margin-top' : Math.round(($(window).height()-$('#kontaktformular').height())/2)});
	$('#kontaktformular-close').css({'margin-top' : Math.round(($(window).height()-$('#kontaktformular').height())/2)-12});
	$('#kontaktformular-close').css({'margin-right' : Math.round(($(window).width()-1000)/2)-12});
	
	$('#loginformular').css({'margin-top' : Math.round(($(window).height()-$('#loginformular').height())/2)});
	$('#loginformular-close').css({'margin-top' : Math.round(($(window).height()-$('#loginformular').height())/2)-12});
	$('#loginformular-close').css({'margin-right' : Math.round(($(window).width()-350)/2)-12});
	
	
	//Galerie
	$('#videoG').css({'top' : Math.round($(window).height()*0.175)});
	$('#videoI').css({'top' : Math.round($(window).height()*0.175)});
	$('#galerieBilder').css({'top' :  Math.round($(window).height()*0.175)});
	$('#galerieBilder').css({'padding-left' :  Math.round(($(window).width()-1000)/2)+493});
	$('#schattenLeft').css({'top' :  Math.round($(window).height()*0.175)});
	$('#schattenRight').css({'top' :  Math.round($(window).height()*0.175)});
	$('#schattenLeft').css({'margin-left' :  Math.round($('#grayBoxLeft').width()-$('#schattenLeft').width())});
	$('#schattenRight').css({'margin-right' :  Math.round($('#grayBoxRight').width()-$('#schattenRight').width())});
	
	$('#prevBild').css({'margin-bottom' :  Math.round($(window).height()*0.175)});
	$('#nextBild').css({'margin-bottom' :  Math.round($(window).height()*0.175)});
	
	//$('#prevBild').css({'margin-left' :  Math.round((($(window).width()-1000)/2)+443)});
	$('#prevBild').css({'margin-left' :  Math.round((($(window).width()-1000)/2)+493)-$('#prevBild').width()});
	//$('#nextBild').css({'margin-left' :  Math.round((($(window).width()-1000)/2)+430)+$('#galerieBilderWrapper DIV:first').width()+$('#nextBild').width()});
	
	$('#nextBild').css({'margin-right' :  Math.round((($(window).width()-1000)/2+116+391-$('#galerieBilderWrapper IMG').width())-$('#nextBild').width())});
	
	$('.grayBox').css({'top' :  Math.round($(window).height()*0.175)});
	$('#galerieBox').css({'margin-top' :  Math.round($(window).height()*0.050)});
	$('#galerieBoxNext').css({'margin-top' :  Math.round($(window).height()*0.315)});
	$('#galerieBoxMode').css({'margin-top' :  Math.round($(window).height()*0.350)});
		$('#galerieBoxMode span').css({'margin-left' :  Math.round($(window).height()*0.04)});
		$('#diashow').css({'margin-right' :  Math.round($(window).height()*0.05)});
		$('#fullscreen').css({'margin-right' :  Math.round($(window).height()*0.140)});
	$('#galerieBoxMode').ready(function(){
		$('#galerieBoxMode span').css({'margin-top' :  Math.round($('#galerieBoxMode').height()*0.3)});
		$('#galerieBoxMode DIV').css({'margin-top' :  Math.round($('#galerieBoxMode').height()*0.3)});
	});
	
	$('#galerieBoxThumb').css({'margin-top' : Math.round($(window).height()*0.035)});
	$('#galerieBoxThumb').css({'margin-left' : Math.round($(window).height()*0.050)});
	$('#galerieBoxThumb').css({'padding-top' : Math.round($(window).height()*0.025)});
	$('#galerieBoxThumb').css({'padding-bottom' : Math.round($(window).height()*0.025)});
	$('#galerieBoxThumb').css({'padding-right' : Math.round($(window).height()*0.050)});
	$('#galerieBoxThumb2').css({'margin-top' : Math.round($(window).height()*0.035)});
	$('#galerieBoxThumb2').css({'margin-left' : Math.round($(window).height()*0.050)});
	$('#galerieBoxThumb2').css({'padding-top' : Math.round($(window).height()*0.025)});
	$('#galerieBoxThumb2').css({'padding-bottom' : Math.round($(window).height()*0.025)});
	$('#galerieBoxThumb2').css({'padding-right' : Math.round($(window).height()*0.050)});
	$('.galerieThumbMargin').css({'margin-right' : Math.round($(window).height()*0.00925)});
	$('.galerieThumbMarginBottom').css({'margin-top' : Math.round($(window).height()*0.00925)});
	$('#galerie').css({'margin-top' : Math.round($(window).height()*0.175)});
	$('#makingOfButton').css({'top' : Math.round($(window).height()*0.79)});
	
	//Fullscreen Elemente
	$('#fullscreenPrev').css({'margin-top' : Math.round($(window).height())*0.5});
	$('#fullscreenNext').css({'margin-top' : Math.round($(window).height())*0.5});
	
	//$('#bittewarten').css({'margin-top' : Math.round($(window).height()/2)-20});
	//$('#bittewarten').css({'margin-left' : Math.round($(window).width()/2)-60});
	//Galerie Ende
};
