ÿþ 
 / / t h e   w i n d o w . o n l o a d   w r a p p e r   a r o u n d   t h e s e   o b j e c t   c o n s t r u c t o r s   i s   j u s t   f o r   d e m o   p u r p o s e s  
 / / i n   p r a c t i s e   y o u   w o u l d   p u t   t h e m   i n   a n   e x i s t i n g   l o a d   f u n c t i o n ,   o r   u s e   a   s c a l e a b l e   s o l u t i o n :  
 / / h t t p : / / w w w . b r o t h e r c a k e . c o m / s i t e / r e s o u r c e s / s c r i p t s / d o m r e a d y /  
 / / h t t p : / / w w w . b r o t h e r c a k e . c o m / s i t e / r e s o u r c e s / s c r i p t s / o n l o a d /  
 w i n d o w . o n l o a d   =   f u n c t i o n ( )  
 {  
 	 / / i n i t i a l i s e   t h e   d o c k i n g   b o x e s   m a n a g e r  
 	 v a r   m a n a g e r   =   n e w   d b x M a n a g e r ( ' m a i n ' ) ;   	 / / s e s s i o n   I D   [ / - _ a - z A - Z 0 - 9 / ]  
 	  
 	 / / c r e a t e   n e w   d o c k i n g   b o x e s   g r o u p  
 	 v a r   s i d e b a r _ r i g h t   =   n e w   d b x G r o u p (  
 	 	 ' s i d e b a r - r i g h t ' ,   	 	 / /   c o n t a i n e r   I D   [ / - _ a - z A - Z 0 - 9 / ]  
 	 	 ' v e r t i c a l ' ,   	 	 / /   o r i e n t a t i o n   [ ' v e r t i c a l ' | ' h o r i z o n t a l ' ]  
 	 	 ' 7 ' ,   	 	 	 / /   d r a g   t h r e s h o l d   [ ' n '   p i x e l s ]  
 	 	 ' n o ' , 	 	 	 / /   r e s t r i c t   d r a g   m o v e m e n t   t o   c o n t a i n e r   a x i s   [ ' y e s ' | ' n o ' ]  
 	 	 ' 1 0 ' ,   	 	 	 / /   a n i m a t e   r e - o r d e r i n g   [ f r a m e s   p e r   t r a n s i t i o n ,   o r   ' 0 '   f o r   n o   e f f e c t ]  
 	 	 ' y e s ' ,   	 	 	 / /   i n c l u d e   o p e n / c l o s e   t o g g l e   b u t t o n s   [ ' y e s ' | ' n o ' ]  
 	 	 ' o p e n ' ,   	 	 / /   d e f a u l t   s t a t e   [ ' o p e n ' | ' c l o s e d ' ]  
  
 	 	 ' d é p l i e r ' ,   	 	 / /   w o r d   f o r   " o p e n " ,   a s   i n   " o p e n   t h i s   b o x "  
 	 	 ' r e p l i e r ' ,   	 	 / /   w o r d   f o r   " c l o s e " ,   a s   i n   " c l o s e   t h i s   b o x "  
 	 	 ' C l i q u e r - d é p o s e r   p o u r   d é p l a c e r   l a   b o i t e ' ,   / /   s e n t e n c e   f o r   " m o v e   t h i s   b o x "   b y   m o u s e  
 	 	 ' C l i q u e r   p o u r   % t o g g l e %   c e t t e   b o i t e ' ,   / /   p a t t e r n - m a t c h   s e n t e n c e   f o r   " ( o p e n | c l o s e )   t h i s   b o x "   b y   m o u s e  
 	 	 ' U t i l i s e r   l e s   t o u c h e s   d u   c u r s e u r   p o u r   d é p l a c e r   c e t t e   b o i t e ' ,   / /   s e n t e n c e   f o r   " m o v e   t h i s   b o x "   b y   k e y b o a r d  
 	 	 ' ,   o u   p r e s s e r   l a   t o u c h e   E n t r é e   p o u r   l a   % t o g g l e % ' ,     / /   p a t t e r n - m a t c h   s e n t e n c e - f r a g m e n t   f o r   " ( o p e n | c l o s e )   t h i s   b o x "   b y   k e y b o a r d  
 	 	 ' % m y t i t l e %     [ % d b x t i t l e % ] '   / /   p a t t e r n - m a t c h   s y n t a x   f o r   t i t l e - a t t r i b u t e   c o n f l i c t s  
 	 	 ) ;  
  
 } ;  
   
