ÿþv a r   C m s 4 d L a y o u t C o n t r o l   =   {  
 	 c w : 0  
 	 , c h : 0  
 	 , t o p _ c o n t a i n e r : n u l l  
 	 , t o p _ c o n t a i n e r _ h : 0  
 	 , l e f t _ c o l : n u l l  
 	 , l e f t _ c o l _ h : 0  
 	 , f o o t e r _ c o n t a i n e r : n u l l  
 	 , f o o t e r _ c o n t a i n e r _ h : 0  
 	 , l a y o u t _ o k : f a l s e  
 	 , t e s t i n t e r v a l m s : 5 0 0  
 	 , G e t C l i e n t S i z e : f u n c t i o n ( )  
 	 {  
 	 	 t h i s . c w   =   0 ;  
 	 	 t h i s . c h   =   0 ;  
 	 	 i f ( t y p e o f ( w i n d o w . i n n e r W i d t h )   = =   ' n u m b e r ' )  
 	 	 {  
 	 	 	 / / a l l e   a u s s e r   I E  
 	 	 	 t h i s . c w   =   w i n d o w . i n n e r W i d t h ;  
 	 	 	 t h i s . c h   =   w i n d o w . i n n e r H e i g h t ;  
 	 	 }  
 	 	 e l s e   i f ( d o c u m e n t . d o c u m e n t E l e m e n t   & &   ( d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h   | |   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t ) )  
 	 	 {  
 	 	 	 / / I E   6   u n d   h ö h e r ,   K o m p a t i b i l i t ä t s m o d u s  
 	 	 	 t h i s . c w   =   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h ;  
 	 	 	 t h i s . c h   =   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t ;  
 	 	 }  
 	 	 e l s e   i f ( d o c u m e n t . b o d y   & &   ( d o c u m e n t . b o d y . c l i e n t W i d t h   | |   d o c u m e n t . b o d y . c l i e n t H e i g h t ) )  
 	 	 {  
 	 	 	 / / I E   4   o .   h ö h e r ,   n i c h t   i m   K o m p a t i b i l i t ä t s m o d u s  
 	 	 	 t h i s . c w   =   d o c u m e n t . b o d y . c l i e n t W i d t h ;  
 	 	 	 t h i s . c h   =   d o c u m e n t . b o d y . c l i e n t H e i g h t ;  
 	 	 }  
 	 }  
 	 , D o L a y o u t : f u n c t i o n ( )  
 	 {  
 	 	 c l e a r T i m e o u t ( t h i s . t i m e r i d ) ;  
  
 	 	 t h i s . G e t C l i e n t S i z e ( ) ;  
 	 	 i f ( t h i s . c h   >   0 )  
 	 	 {  
  
 	 	 	 / / D i e   L a y o u t a n p a s s u n g   w i r d   n u r   d u r c h g e f ü h r t ,   w e n n   a l l e   C o n t a i n e r   i m   D O M   g e f u n d e n   w u r d e n .  
 	 	 	 i f ( t h i s . t o p _ c o n t a i n e r   = =   n u l l   | |   t h i s . l e f t _ c o l   = =   n u l l   | |   t h i s . f o o t e r _ c o n t a i n e r   = =   n u l l )  
 	 	 	 {  
 	 	 	 	 t h i s . t o p _ c o n t a i n e r   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' t o p _ c o n t a i n e r ' ) ;  
 	 	 	 	 t h i s . l e f t _ c o l   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' l e f t _ c o l ' ) ;  
 	 	 	 	 t h i s . f o o t e r _ c o n t a i n e r   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' f o o t e r _ c o n t a i n e r ' ) ;  
 	 	 	 	 i f ( t h i s . t o p _ c o n t a i n e r   ! =   n u l l   & &   t h i s . l e f t _ c o l   ! =   n u l l   & &   t h i s . f o o t e r _ c o n t a i n e r   ! =   n u l l )  
 	 	 	 	 {  
 	 	 	 	 	 t h i s . l a y o u t _ o k   =   t r u e ;  
 	 	 	 	 }  
 	 	 	 }  
 	 	 	 i f ( t h i s . l a y o u t _ o k   = =   t r u e )  
 	 	 	 {  
 	 	 	 	 t h i s . t o p _ c o n t a i n e r _ h   =   t h i s . t o p _ c o n t a i n e r . o f f s e t H e i g h t ;  
 	 	 	 	 t h i s . f o o t e r _ c o n t a i n e r _ h   =   t h i s . f o o t e r _ c o n t a i n e r . o f f s e t H e i g h t ;  
 	 	 	 	 t h i s . l e f t _ c o l _ h   =   t h i s . c h   -   t h i s . t o p _ c o n t a i n e r _ h   -   t h i s . f o o t e r _ c o n t a i n e r _ h ;  
  
 	 	 	 	 / / Z u w e i s u n g   v o n   W e r t e n   <   1   b e i   h e i g h t   v e r m e i d e n   !  
 	 	 	 	 i f ( t h i s . l e f t _ c o l _ h   >   0 )  
 	 	 	 	 {  
 	 	 	 	 	 t h i s . l e f t _ c o l . s t y l e . h e i g h t   =   t h i s . l e f t _ c o l _ h   +   ' p x ' ;  
 	 	 	 	 }  
 	 	 	 }  
  
 	 	 	 / / N ä c h s t e s   I n t e r v a l   s t a r t e n  
 	 	 	 t h i s . t i m e r i d   =   s e t T i m e o u t ( ' C m s 4 d L a y o u t C o n t r o l . D o L a y o u t ( ) ' ,   t h i s . t e s t i n t e r v a l m s ) ;  
 	 	 }  
 	 }  
 	 / / E r s t e   P r ü f u n g   s o f o r t   e i n l e i t e n ,   d a n a c h   s t e u e r t   s i c h   d i e s e   ü b e r   d e n   t i m e r   s e l b s t .  
 	 , t i m e r i d : s e t T i m e o u t ( ' C m s 4 d L a y o u t C o n t r o l . D o L a y o u t ( ) ' ,   1 )  
 } 
