ÿþ 
 / /   w h e n   t h e   D O M   i s   r e a d y :  
 $ ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( )   {  
  
 / /         $ ( ' # s t a r t   >   i m g ' ) . e a c h ( f u n c t i o n ( )   {  
 / /                 i f   ( $ . b r o w s e r . m s i e   & &   $ . b r o w s e r . v e r s i o n   < =   6 . 0 )   {   / /   c a n t   h a v e   t r a n s p a r e n t   b a l l s   i n   I E   6 . 0  
 / /                         $ ( t h i s ) . a t t r ( ' s r c ' ,   ' a c i n o b o l l _ i e 6 . p n g ' ) ;  
 / /                 }  
 / /         } ) ;  
         $ ( ' # a c i n o b a l l s   >   d i v ' ) . h o v e r ( f u n c t i o n ( )   {  
                 v a r   f a d e   =   $ ( ' # s t a r t   d i v ' ,   $ ( t h i s ) . p a r e n t ( ) ) ;  
                 v a r   i m g i n d x   =   $ ( ' # a c i n o b a l l s   >   d i v ' ) . i n d e x ( t h i s ) ;  
                 v a r   b g P o s   =   - 1   *   i m g i n d x   *   1 1 6 ;  
                 f a d e . c s s ( {   b a c k g r o u n d P o s i t i o n :   b g P o s . t o S t r i n g ( )   +   ' p x   - 1 p x '   } ) ;  
                 i f   ( f a d e . i s ( ' : a n i m a t e d ' ) )   {  
                         f a d e . s t o p ( ) . f a d e T o ( 5 0 0 ,   1 ) ;  
                 }   e l s e   {  
                         i f   ( $ . b r o w s e r . m s i e )  
                                 f a d e . s h o w ( ) ;  
                         e l s e   {  
                                 f a d e . f a d e I n ( 5 0 0 ) ;  
                         }  
                 }  
         } ,   f u n c t i o n ( )   {  
                 v a r   f a d e   =   $ ( ' # s t a r t   d i v ' ,   $ ( t h i s ) . p a r e n t ( ) ) ;  
                 i f   ( f a d e . i s ( ' : a n i m a t e d ' ) )   {  
                         f a d e . s t o p ( ) . f a d e T o ( 1 5 0 0 ,   0 ) ;  
                 }   e l s e   {  
                         i f   ( $ . b r o w s e r . m s i e )  
                                 f a d e . h i d e ( ) ;  
                         e l s e  
                                 f a d e . f a d e O u t ( 1 5 0 0 ) ;  
                 }  
         } ) ;  
  
         $ ( ' . w b o x ' ) . e a c h ( f u n c t i o n ( )   {  
                 i f   ( $ . b r o w s e r . m s i e   & &   $ . b r o w s e r . v e r s i o n   < =   7 . 0 )   {  
                         $ ( t h i s ) . a d d C l a s s ( ' i e ' ) ;  
                         i f   ( $ ( t h i s ) . h a s C l a s s ( ' w i d e ' ) )  
                                 $ ( t h i s ) . c s s ( ' m a r g i n - t o p ' ,   ' 5 p x ' ) ;  
                         r e t u r n ;  
                 }  
                 v a r   a l l C o n t e n t   =   $ ( ' >   * ' ,   t h i s ) ;  
                 v a r   $ w h e a d   =   $ ( d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ) ;  
                 $ w h e a d . a d d C l a s s ( ' w h e a d ' ) ;  
                 $ ( t h i s ) . a p p e n d ( $ w h e a d ) ;  
                 $ ( ' >   h 3 ' ,   t h i s ) . a p p e n d T o ( $ w h e a d ) ;  
                 $ w h e a d . p r e p e n d ( d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ) ;  
                 v a r   $ w b o d y   =   $ ( d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ) . a d d C l a s s ( ' w b o d y ' ) ;  
                 v a r   $ l e f t   =   $ ( d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ) . a d d C l a s s ( ' w L b o r d e r ' ) ;  
                 v a r   $ r i g h t   =   $ ( d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ) . a d d C l a s s ( ' w R b o r d e r ' ) ;  
                 v a r   $ c o n t e n t   =   $ ( d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ) . a d d C l a s s ( ' w C o n t e n t ' ) ;  
                 $ r i g h t . p r e p e n d ( $ c o n t e n t ) ;  
                 $ l e f t . p r e p e n d ( $ r i g h t ) ;  
                 $ w b o d y . p r e p e n d ( $ l e f t ) ;  
                 $ ( a l l C o n t e n t ) . n o t ( ' h 3 ' ) . a p p e n d T o ( $ c o n t e n t ) ;  
                 $ ( t h i s ) . a p p e n d ( $ w b o d y ) ;  
                 i f   ( ! $ ( t h i s ) . h a s C l a s s ( ' n o b o t t o m ' ) )   {  
                         v a r   $ b o t t o m   =   $ ( d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ) . a d d C l a s s ( ' w b o t t o m ' ) ;  
                         $ b o t t o m . p r e p e n d ( d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ) ;  
                         $ ( t h i s ) . a p p e n d ( $ b o t t o m ) ;  
                 }  
         } ) ;  
  
         $ ( ' # a c i n o b a l l s   >   d i v ' ) . c l i c k ( f u n c t i o n ( )   {   t o g g l e C o l o r C o n t e n t ( $ ( t h i s ) . a t t r ( ' i d ' ) ) ;   } ) ;  
  
         v a r   c o n t e n t d i v t o S h o w   =   ' n y h e t ' ;  
         i f   ( w i n d o w . l o c a t i o n . h a s h )   {  
                 c o n t e n t d i v t o S h o w   =   w i n d o w . l o c a t i o n . h a s h . s u b s t r ( 1 ) ;  
         }  
         v a r   $ h a s h d i v   =   $ ( ' # '   +   c o n t e n t d i v t o S h o w   +   ' d i v ' ) ;  
 	  
         $ ( ' # c o n t e n t   >   d i v ' ) . n o t ( ' # '   +   c o n t e n t d i v t o S h o w   +   ' d i v ' ) . h i d e ( ) ;  
         $ h a s h d i v . s h o w ( ) ;  
  
  
         i f   ( $ . b r o w s e r . m s i e   & &   $ . b r o w s e r . v e r s i o n   < =   7 . 0 )   {  
                 $ ( ' # o m d i v   . i e   >   d i v ' ) . n o t ( ' . s t a r t ' ) . h i d e ( ) ;  
                 $ ( ' # o m d i v   . i e   >   . s t a r t ' ) . s h o w ( ) ;  
                 $ ( ' # o m d i v   . i e   >   h 3 ' ) . n o t ( ' . s t a r t ' ) . h i d e ( ) ;  
                 $ ( ' # o m d i v   . i e   >   . s t a r t ' ) . s h o w ( ) ;  
         }  
         e l s e   {  
                 v a r   $ c o n t e n t D i v s   =   $ ( ' # o m d i v   . w C o n t e n t   >   d i v ' ) ;  
                 $ c o n t e n t D i v s . n o t ( ' . s t a r t ' ) . h i d e ( ) ;  
                 $ c o n t e n t D i v s . f i l t e r ( ' . s t a r t ' ) . s h o w ( ) ;  
                 v a r   $ h e a d e r s   =   $ ( ' # o m d i v   . w h e a d   >   h 3 ' ) ;  
                 $ h e a d e r s . n o t ( ' . s t a r t ' ) . h i d e ( ) ;  
                 $ h e a d e r s . f i l t e r ( ' . s t a r t ' ) . s h o w ( ) ;  
         }  
  
         $ ( ' # o m d i v   . w b o x ' ) . e a c h ( f u n c t i o n ( )   {  
                 $ ( t h i s ) . r e m o v e C l a s s ( ' h i d d e n ' ) ;  
         } ) ;  
  
  
         $ ( ' # m e n u B a r   u l   l i   a ' ) . c l i c k ( f u n c t i o n ( )   {  
                 v a r   t o g g l e I d   =   $ ( t h i s ) . a t t r ( ' h r e f ' ) . s u b s t r ( 1 ) ;  
                 $ ( ' # c o n t e n t   >   d i v ' ) . h i d e ( ) ;  
                 $ ( ' # '   +   t o g g l e I d   +   ' d i v ' ) . s h o w ( ) ;  
                 i f   ( t o g g l e I d   = =   ' o m ' )   / /   i f   a n y o n e   c l i c k s   " O m   o s s " ,   r e s e t   t o   s t a r t - c o n t e n t  
                         t o g g l e C o l o r C o n t e n t ( ' s t a r t ' ) ;  
                 $ ( t h i s ) . b l u r ( ) ;  
 	 	  
         } ) ;  
  
         $ ( ' . s t a r t   u l   l i   a ' ) . c l i c k ( f u n c t i o n ( )   {  
                 v a r   l i   =   $ ( t h i s ) . p a r e n t ( ) ;  
                 t o g g l e C o l o r C o n t e n t ( $ ( l i ) . a t t r ( ' c l a s s ' ) ) ;  
                 r e t u r n   f a l s e ;  
         } ) ;  
  
 } ) ;  
  
  
 f u n c t i o n   t o g g l e C o l o r C o n t e n t ( c o l o r )   {  
         / /   i e   7   a n d   l e s s   h a s   a l o t   o f   p r o b l e m s   w i t h   t h e   f a n c y   b o r d e r s   a r o u n d   b o x e s  
         i f   ( $ . b r o w s e r . m s i e   & &   $ . b r o w s e r . v e r s i o n   < =   7 . 0 )   {  
                 $ ( ' # o m d i v   . i e   >   d i v ' ) . n o t ( ' . '   +   c o l o r ) . s l i d e U p ( ) ;  
                 $ ( ' # o m d i v   . i e   >   . '   +   c o l o r ) . s l i d e D o w n ( ) ;  
                 $ ( ' # o m d i v   . i e   >   h 3 ' ) . n o t ( ' . '   +   c o l o r ) . h i d e ( ) ;  
                 $ ( ' # o m d i v   . i e   >   . '   +   c o l o r ) . s h o w ( ) ;  
         }  
         e l s e   {  
                 v a r   $ c o n t e n t D i v s   =   $ ( ' # o m d i v   . w C o n t e n t   >   d i v ' ) ;  
                 $ c o n t e n t D i v s . n o t ( ' . '   +   c o l o r ) . s l i d e U p ( ) ;  
                 $ c o n t e n t D i v s . f i l t e r ( ' . '   +   c o l o r ) . s l i d e D o w n ( ) ;  
                 v a r   $ h e a d e r s   =   $ ( ' # o m d i v   . w h e a d   >   h 3 ' ) ;  
                 $ h e a d e r s . n o t ( ' . '   +   c o l o r ) . h i d e ( ) ;  
                 $ h e a d e r s . f i l t e r ( ' . '   +   c o l o r ) . s h o w ( ) ;  
  
                 S e t B a l l C o l o r ( c o l o r ) ;  
         }  
 }  
  
 f u n c t i o n   S e t B a l l C o l o r ( c o l o r )   {  
         $ ( ' # a c i n o b a l l s   >   d i v ' ) . e a c h ( f u n c t i o n ( )   {  
                 v a r   p o s y   =   $ ( t h i s ) . b a c k g r o u n d P o s i t i o n ( ) ;  
                 v a r   s p l i t t e d   =   p o s y . s p l i t ( '   ' ) ;  
                 v a r   p o s y   =   p a r s e I n t ( s p l i t t e d [ 0 ] . r e p l a c e ( ' p x ' ,   ' ' ) ) ;  
                 v a r   p o s x   =   p a r s e I n t ( s p l i t t e d [ 1 ] . r e p l a c e ( ' p x ' ,   ' ' ) ) ;  
                 i f   ( p o s x   <   0   & &   ( c o l o r   ! =   $ ( t h i s ) . a t t r ( ' i d ' ) ) )   {  
                         $ ( t h i s ) . s e t B a c k g r o u n d P o s i t i o n ( p o s y   +   ' p x '   +   '   0 p x ' ) ;  
                 }  
                 e l s e   i f   ( p o s x   = =   0   & &   ( c o l o r   = =   $ ( t h i s ) . a t t r ( ' i d ' ) ) )   {  
                         $ ( t h i s ) . s e t B a c k g r o u n d P o s i t i o n ( p o s y   +   ' p x '   +   '   - 6 1 p x ' ) ;  
                 }  
         } ) ;  
 }  
  
 ( f u n c t i o n ( $ )   {  
         j Q u e r y . f n . b a c k g r o u n d P o s i t i o n   =   f u n c t i o n ( )   {  
                 v a r   p   =   $ ( t h i s ) . c s s ( ' b a c k g r o u n d - p o s i t i o n ' ) ;  
                 i f   ( t y p e o f   ( p )   = = =   ' u n d e f i n e d ' )   r e t u r n   $ ( t h i s ) . c s s ( ' b a c k g r o u n d - p o s i t i o n - x ' )   +   '   '   +   $ ( t h i s ) . c s s ( ' b a c k g r o u n d - p o s i t i o n - y ' ) ;  
                 e l s e   r e t u r n   p ;  
         } ;  
         j Q u e r y . f n . s e t B a c k g r o u n d P o s i t i o n   =   f u n c t i o n ( v a l )   {  
                 v a r   p   =   $ ( t h i s ) . c s s ( ' b a c k g r o u n d - p o s i t i o n ' ) ;  
                 v a r   t e m p _ p o s _ v a l _ a r r a y   =   v a l . s p l i t ( '   ' ) ;  
                 v a r   x _ v a l   =   t e m p _ p o s _ v a l _ a r r a y [ 0 ] ;  
                 v a r   y _ v a l   =   t e m p _ p o s _ v a l _ a r r a y [ 1 ] ;  
                 i f   ( t y p e o f   ( p )   = = =   ' u n d e f i n e d ' )   {  
                         $ ( t h i s ) . c s s ( ' b a c k g r o u n d - p o s i t i o n - x ' ,   x _ v a l ) ;  
                         $ ( t h i s ) . c s s ( ' b a c k g r o u n d - p o s i t i o n - y ' ,   y _ v a l ) ;  
                         r e t u r n   t r u e ;  
                 }  
                 e l s e   {  
                         $ ( t h i s ) . c s s ( ' b a c k g r o u n d - p o s i t i o n ' ,   v a l ) ;  
                         r e t u r n   t r u e ;  
                 }  
                 r e t u r n   f a l s e ;  
         } ;  
 } ) ( j Q u e r y ) ;  
  
 
