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