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