ÿþ$ ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( ) {  
         / /   t o p   m e n u          
         $ ( " # n a v   >   u l   >   l i " ) . h o v e r ( f u n c t i o n ( ) {  
                 $ ( t h i s ) . a d d C l a s s ( ' h o v e r ' ) ;  
                 v a r   $ s u b   =   $ ( t h i s ) . c h i l d r e n ( " u l : e q ( 0 ) " ) ;  
                 i f ( $ s u b . s i z e ( ) )   {  
                         $ s u b . c s s ( ' v i s i b i l i t y ' ,   ' v i s i b l e ' ) ;  
                         $ ( " l i " ,   $ s u b ) . h o v e r ( f u n c t i o n ( ) {                                  
                                 $ ( t h i s ) . a d d C l a s s ( ' h o v e r ' ) ;  
                                 / /   c h i l d r e n   m e n u  
                                 $ ( " u l " ,   t h i s ) . c s s ( ' v i s i b i l i t y ' ,   ' v i s i b l e ' ) ;  
                                 $ ( " u l   l i " ,   t h i s ) . h o v e r ( f u n c t i o n ( ) {  
                                         $ ( t h i s ) . a d d C l a s s ( ' h o v e r ' ) ;  
                                 } , f u n c t i o n ( ) {  
                                         $ ( t h i s ) . r e m o v e C l a s s ( ' h o v e r ' ) ;  
                                 } ) ;  
                         } , f u n c t i o n ( ) {  
                                 $ ( t h i s ) . r e m o v e C l a s s ( ' h o v e r ' ) ;  
                                 / /   c h i l d r e n   m e n u  
                                 $ ( " u l " ,   t h i s ) . c s s ( ' v i s i b i l i t y ' ,   ' h i d d e n ' ) ;  
                         } ) ;  
                 }  
         } , f u n c t i o n ( ) {  
                 $ ( t h i s ) . r e m o v e C l a s s ( ' h o v e r ' ) ;  
                 v a r   $ s u b   =   $ ( t h i s ) . c h i l d r e n ( " u l : e q ( 0 ) " ) ;  
                 i f ( $ s u b . s i z e ( ) )   {  
                         $ s u b . c s s ( ' v i s i b i l i t y ' ,   ' h i d d e n ' ) ;  
                 }  
         } ) ;  
          
         / /   b o t t o m   m e n u          
         $ ( " # n a v b o t t o m   >   u l   >   l i " ) . h o v e r ( f u n c t i o n ( ) {  
                 $ ( t h i s ) . a d d C l a s s ( ' h o v e r ' ) ;  
                 v a r   $ s u b   =   $ ( t h i s ) . c h i l d r e n ( " u l : e q ( 0 ) " ) ;  
                 i f ( $ s u b . s i z e ( ) )   {  
                         $ s u b . c s s ( ' v i s i b i l i t y ' ,   ' v i s i b l e ' ) ;  
                         $ ( " l i " ,   $ s u b ) . h o v e r ( f u n c t i o n ( ) {                                  
                                 $ ( t h i s ) . a d d C l a s s ( ' h o v e r ' ) ;  
                                 / /   c h i l d r e n   m e n u  
                                 $ ( " u l " ,   t h i s ) . c s s ( ' v i s i b i l i t y ' ,   ' v i s i b l e ' ) ;  
                                 $ ( " u l   l i " ,   t h i s ) . h o v e r ( f u n c t i o n ( ) {  
                                         $ ( t h i s ) . a d d C l a s s ( ' h o v e r ' ) ;  
                                 } , f u n c t i o n ( ) {  
                                         $ ( t h i s ) . r e m o v e C l a s s ( ' h o v e r ' ) ;  
                                 } ) ;  
                         } , f u n c t i o n ( ) {  
                                 $ ( t h i s ) . r e m o v e C l a s s ( ' h o v e r ' ) ;  
                                 / /   c h i l d r e n   m e n u  
                                 $ ( " u l " ,   t h i s ) . c s s ( ' v i s i b i l i t y ' ,   ' h i d d e n ' ) ;  
                         } ) ;  
                 }  
         } , f u n c t i o n ( ) {  
                 $ ( t h i s ) . r e m o v e C l a s s ( ' h o v e r ' ) ;  
                 v a r   $ s u b   =   $ ( t h i s ) . c h i l d r e n ( " u l : e q ( 0 ) " ) ;  
                 i f ( $ s u b . s i z e ( ) )   {  
                         $ s u b . c s s ( ' v i s i b i l i t y ' ,   ' h i d d e n ' ) ;  
                 }  
         } ) ;  
          
         $ ( " # n a v h o m e   >   u l   >   l i " ) . h o v e r ( f u n c t i o n ( ) {  
                 $ ( t h i s ) . a d d C l a s s ( ' h o v e r ' ) ;  
                 v a r   $ s u b   =   $ ( t h i s ) . c h i l d r e n ( " u l : e q ( 0 ) " ) ;  
                 i f ( $ s u b . s i z e ( ) )   {  
                         $ s u b . c s s ( ' v i s i b i l i t y ' ,   ' v i s i b l e ' ) ;  
                         $ ( " l i " ,   $ s u b ) . h o v e r ( f u n c t i o n ( ) {                                  
                                 $ ( t h i s ) . a d d C l a s s ( ' h o v e r ' ) ;  
                                 / /   c h i l d r e n   m e n u  
                                 $ ( " u l " ,   t h i s ) . c s s ( ' v i s i b i l i t y ' ,   ' v i s i b l e ' ) ;  
                                 $ ( " u l   l i " ,   t h i s ) . h o v e r ( f u n c t i o n ( ) {  
                                         $ ( t h i s ) . a d d C l a s s ( ' h o v e r ' ) ;  
                                 } , f u n c t i o n ( ) {  
                                         $ ( t h i s ) . r e m o v e C l a s s ( ' h o v e r ' ) ;  
                                 } ) ;  
                         } , f u n c t i o n ( ) {  
                                 $ ( t h i s ) . r e m o v e C l a s s ( ' h o v e r ' ) ;  
                                 / /   c h i l d r e n   m e n u  
                                 $ ( " u l " ,   t h i s ) . c s s ( ' v i s i b i l i t y ' ,   ' h i d d e n ' ) ;  
                         } ) ;  
                 }  
         } , f u n c t i o n ( ) {  
                 $ ( t h i s ) . r e m o v e C l a s s ( ' h o v e r ' ) ;  
                 v a r   $ s u b   =   $ ( t h i s ) . c h i l d r e n ( " u l : e q ( 0 ) " ) ;  
                 i f ( $ s u b . s i z e ( ) )   {  
                         $ s u b . c s s ( ' v i s i b i l i t y ' ,   ' h i d d e n ' ) ;  
                 }  
         } ) ;  
         / /   L e f t   m e n u  
         $ ( " u l . n a v - l e f t   >   l i " ) . h o v e r ( f u n c t i o n ( ) {                  
                 v a r   $ s u b   =   $ ( t h i s ) . c h i l d r e n ( " u l : e q ( 0 ) " ) ;  
                 i f ( $ s u b . s i z e ( ) )   {  
                         $ ( t h i s ) . a d d C l a s s ( ' h o v e r ' ) ;  
                         $ s u b . c s s ( ' v i s i b i l i t y ' ,   ' v i s i b l e ' ) ;  
                         $ ( " l i " ,   $ s u b ) . h o v e r ( f u n c t i o n ( ) {                                  
                                 $ ( t h i s ) . a d d C l a s s ( ' h o v e r ' ) ;  
                         } , f u n c t i o n ( ) {  
                                 $ ( t h i s ) . r e m o v e C l a s s ( ' h o v e r ' ) ;  
                         } ) ;  
                 }   e l s e   {  
                         $ ( t h i s ) . a d d C l a s s ( ' h o v e r 2 ' ) ;  
                 }  
         } , f u n c t i o n ( ) {                  
                 v a r   $ s u b   =   $ ( t h i s ) . c h i l d r e n ( " u l : e q ( 0 ) " ) ;  
                 i f ( $ s u b . s i z e ( ) )   {  
                         $ ( t h i s ) . r e m o v e C l a s s ( ' h o v e r ' ) ;  
                         $ s u b . c s s ( ' v i s i b i l i t y ' ,   ' h i d d e n ' ) ;  
                 }   e l s e   {  
                         $ ( t h i s ) . r e m o v e C l a s s ( ' h o v e r 2 ' ) ;  
                 }  
         } ) ;    
          
         / /   L e f t   c a t e g o r y  
         $ ( " u l . c a t a l o g   >   l i " ) . h o v e r ( f u n c t i o n ( ) {                  
                 v a r   $ s u b   =   $ ( t h i s ) . c h i l d r e n ( " u l : e q ( 0 ) " ) ;  
                 i f ( $ s u b . s i z e ( ) )   {  
                         $ ( t h i s ) . a d d C l a s s ( ' h o v e r ' ) ;  
                         $ s u b . c s s ( ' v i s i b i l i t y ' ,   ' v i s i b l e ' ) ;  
                         $ ( " l i " ,   $ s u b ) . h o v e r ( f u n c t i o n ( ) {                                  
                                 $ ( t h i s ) . a d d C l a s s ( ' h o v e r ' ) ;  
                         } , f u n c t i o n ( ) {  
                                 $ ( t h i s ) . r e m o v e C l a s s ( ' h o v e r ' ) ;  
                         } ) ;  
                 }   e l s e   {  
                         $ ( t h i s ) . a d d C l a s s ( ' h o v e r 2 ' ) ;  
                 }  
         } , f u n c t i o n ( ) {                  
                 v a r   $ s u b   =   $ ( t h i s ) . c h i l d r e n ( " u l : e q ( 0 ) " ) ;  
                 i f ( $ s u b . s i z e ( ) )   {  
                         $ ( t h i s ) . r e m o v e C l a s s ( ' h o v e r ' ) ;  
                         $ s u b . c s s ( ' v i s i b i l i t y ' ,   ' h i d d e n ' ) ;  
                 }   e l s e   {  
                         $ ( t h i s ) . r e m o v e C l a s s ( ' h o v e r 2 ' ) ;  
                 }  
         } ) ;          
          
 } ) ;  
  
 / / S h o w   h i d e   T a b  
 v a r   T a b s   =   f u n c t i o n   ( ) {  
         r e t u r n   {  
                 d i s p l a y :   f u n c t i o n ( t a b _ i d ,   p a n e l _ i d ,   g r o u p _ i d )   {  
                         i f   ( t y p e o f ( g r o u p _ i d )   ! =   ' u n d e f i n e d ' )   {  
                                 v a r   g r o u p _ s e l e c t o r   =   " # " + g r o u p _ i d ;  
                                 g r o u p _ i d   =   $ ( g r o u p _ s e l e c t o r ) ;  
                         }   e l s e   {  
                                 g r o u p _ i d   =   n u l l ;  
                         }  
 / /                         g r o u p _ i d   =   n u l l ;  
                         v a r   t a b _ s e l e c t o r   =   " . t a b s   # " + t a b _ i d ;  
                         v a r   p a n e l _ s e l e c t o r   =   " . p a n e l _ w r a p p e r   >   # " + p a n e l _ i d ;  
                         $ ( " . t a b s   l i " ,   g r o u p _ i d ) . r e m o v e C l a s s ( " c u r r e n t " ) ;  
                         $ ( t a b _ s e l e c t o r ,   g r o u p _ i d ) . a d d C l a s s ( " c u r r e n t " ) ;  
                          
                         $ ( " . p a n e l _ w r a p p e r   >   d i v " ,   g r o u p _ i d ) . r e m o v e C l a s s ( " c u r r e n t " ) ;  
                         $ ( p a n e l _ s e l e c t o r ,   g r o u p _ i d ) . a d d C l a s s ( " c u r r e n t " ) ;  
                 }  
         }  
 } ( ) ;  
  
 / / t o o l t i p  
 / * $ ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( ) {  
         $ ( " a . i m g " ) . t o o l t i p (   {  
                 t r a c k :   t r u e ,  
                 d e l a y :   0 ,    
                 s h o w U R L :   f a l s e ,    
                 i d :   " i m g - t o o l t i p " ,  
                 s h o w B o d y :   "   = = >   " ,    
                 f a d e :   2 5 0  
         } ) ;    
 } ) ;  
 * /  
 $ ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( ) {  
 $ ( " a . i m g " ) . t o o l t i p ( {    
         t r a c k :   t r u e ,    
         d e l a y :   0 ,    
         s h o w U R L :   f a l s e ,  
         i d :   " i m g - t o o l t i p " ,  
         s h o w B o d y :   "   -   " ,    
         / / e x t r a C l a s s :   " p r e t t y " ,    
         f i x P N G :   t r u e ,    
         o p a c i t y :   0 . 9 5 ,    
         l e f t :   - 1 2 0    
 } ) ;  
 } ) ;  
  
  
   f u n c t i o n   O p e n I m a g e ( v L i n k , v W i d t h , v H e i g h t )  
 {  
   v a r   s L i n k   =   ( t y p e o f ( v L i n k . h r e f )   = =   ' u n d e f i n e d ' )   ?   v L i n k   :   v L i n k . h r e f ;  
  
   i f   ( s L i n k   = =   ' ' )  
   {  
   r e t u r n   f a l s e ;  
   }  
  
   w i n D e f   =   ' s t a t u s = n o , r e s i z a b l e = n o , s c r o l l b a r s = n o , t o o l b a r = n o , l o c a t i o n = n o , f u l l s c r e e n = n o , t i t l e b a r = y e s , h e i g h t = ' . c o n c a t ( v H e i g h t ) . c o n c a t ( ' , ' ) . c o n c a t ( ' w i d t h = ' ) . c o n c a t ( v W i d t h ) . c o n c a t ( ' , ' ) ;  
   w i n D e f   =   w i n D e f . c o n c a t ( ' t o p = ' ) . c o n c a t ( ( s c r e e n . h e i g h t   -   v H e i g h t ) / 2 ) . c o n c a t ( ' , ' ) ;  
   w i n D e f   =   w i n D e f . c o n c a t ( ' l e f t = ' ) . c o n c a t ( ( s c r e e n . w i d t h   -   v W i d t h ) / 2 ) ;  
   n e w w i n   =   o p e n ( ' ' ,   ' _ b l a n k ' ,   w i n D e f ) ;  
  
   n e w w i n . d o c u m e n t . w r i t e l n ( ' < t i t l e > S o   m i   v i e t < / t i t l e > < b o d y   t o p m a r g i n = " 0 "   l e f t m a r g i n = " 0 "   m a r g i n h e i g h t = " 0 "   m a r g i n w i d t h = " 0 " > ' ) ;  
   n e w w i n . d o c u m e n t . w r i t e l n ( ' < i m g   o n c l i c k = " w i n d o w . c l o s e ( ) "   s r c = " ' ,   s L i n k ,   ' "   b o r d e r = 0 > ' ) ;  
   n e w w i n . d o c u m e n t . w r i t e l n ( ' < / b o d y > ' ) ;  
  
   i f   ( t y p e o f ( v L i n k . h r e f )   ! =   ' u n d e f i n e d ' )  
   {  
   r e t u r n   f a l s e ;  
   }  
 }  
 f u n c t i o n   g e t _ r a n d o m ( )  
 {  
         v a r   r a n N u m =   M a t h . f l o o r ( M a t h . r a n d o m ( ) * 5 ) ;  
         r e t u r n   r a n N u m ;  
 }  
  
 f u n c t i o n   g e t R a n d o m W i d t h H e i g h t ( )  
 {  
           v a r   r a n N u m = g e t _ r a n d o m ( ) ;  
           v a r   a r r = n e w   A r r a y ( 5 )  
           a r r [ 0 ] = " 5 0 " ;  
           a r r [ 1 ] = " 1 5 0 " ;  
           a r r [ 2 ] = " 2 5 0 " ;        
           a r r [ 3 ] = " 3 5 0 " ;  
           a r r [ 4 ] = " 4 0 0 " ;  
      
       r e t u r n   ( a r r [ r a n N u m ] ) ;  
     }  
 f u n c t i o n   O p e n P r o d u c t ( v L i n k , v W i d t h , v H e i g h t )  
 {  
           v a r   s L i n k   =   ( t y p e o f ( v L i n k . h r e f )   = =   ' u n d e f i n e d ' )   ?   v L i n k   :   v L i n k . h r e f ;  
  
           i f   ( s L i n k   = =   ' ' )  
           {  
           r e t u r n   f a l s e ;  
           }  
 v a r   r a n N u m = g e t R a n d o m W i d t h H e i g h t ( ) ;  
           w i n D e f   =   ' s t a t u s = n o , r e s i z a b l e = n o , s c r o l l b a r s = y e s , t o o l b a r = n o , l o c a t i o n = n o , f u l l s c r e e n = n o , h e i g h t = ' . c o n c a t ( v H e i g h t ) . c o n c a t ( ' , ' ) . c o n c a t ( ' w i d t h = ' ) . c o n c a t ( v W i d t h ) . c o n c a t ( ' , ' ) ;  
         w i n D e f   =   w i n D e f . c o n c a t ( ' t o p = ' ) . c o n c a t ( r a n N u m ) . c o n c a t ( ' , ' ) ;  
         w i n D e f   =   w i n D e f . c o n c a t ( ' l e f t = ' ) . c o n c a t ( r a n N u m ) ;  
         / /   w i n D e f   =   w i n D e f . c o n c a t ( ' t o p = ' ) . c o n c a t ( ( s c r e e n . h e i g h t   -   v H e i g h t ) / 2 ) . c o n c a t ( ' , ' ) ;  
         / /   w i n D e f   =   w i n D e f . c o n c a t ( ' l e f t = ' ) . c o n c a t ( ( s c r e e n . w i d t h   -   v W i d t h ) / 2 ) ;  
           n e w w i n   =   o p e n ( v L i n k ,   ' _ b l a n k ' ,   w i n D e f ) ;  
            
           i f   ( t y p e o f ( v L i n k . h r e f )   ! =   ' u n d e f i n e d ' )  
           {  
           r e t u r n   f a l s e ;  
           }  
 }  
  
  
 / /   h i e n   p o p u p   k i e u   l i g h t b o x  
 f u n c t i o n   C a l l L o c k P o l l ( u r l ,   w i d t h ,   h e i g h t ,   R e l o a d O n C l o s e ) {  
         g r a y O u t ( t r u e ) ;  
         v a r   l o c k   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' L o c k P a n e ' ) ;  
         v a r   l a y   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' C e n t e r L a y e r ' ) ;  
        
         i f   ( l o c k )  
                 l o c k . c l a s s N a m e   =   ' L o c k O n ' ;                  
         l a y . s t y l e . d i s p l a y   =   ' ' ;  
         l a y . i n n e r H T M L   =   " < d i v   c l a s s = ' d v P o p u p ' > < s p a n > K ¿t   q u £  b ì n h   c h Ín < / s p a n > < a   c l a s s = ' C l o s e '   o n c l i c k = ' O u t ( ) ; "   +   ( ( R e l o a d O n C l o s e ) ? " w i n d o w . l o c a t i o n . r e l o a d ( f a l s e ) ; " : " " )   +   " ' > X < / a > < / d i v > < i f r a m e   f r a m e b o r d e r = ' 0 '   w i d t h = ' "   +   w i d t h   +   " '   h e i g h t = ' "   +   h e i g h t   +   " '   s r c = ' "   +   u r l   +   " ' > < / i f r a m e > " ;  
       / /   l a y . i n n e r H T M L   =   " < d i v   s t y l e = ' b a c k g r o u n d : # E E E ; w i d t h : " + w i d t h + " p x ; ' > < b   s t y l e = ' f l o a t : r i g h t ; b a c k g r o u n d : r e d ; c o l o r : # F F F ; '   c l a s s = ' H a n d H o v e r   S m a l l T e x t   A c t i o n '   o n c l i c k = ' O u t ( ) ; "   +   ( ( R e l o a d O n C l o s e ) ? " w i n d o w . l o c a t i o n . r e l o a d ( f a l s e ) ; " : " " )   +   " ' > X < / d i v > < i f r a m e   f r a m e b o r d e r = ' 0 '   w i d t h = ' "   +   w i d t h   +   " '   h e i g h t = ' "   +   h e i g h t   +   " '   s r c = ' "   +   u r l   +   " ' > < / i f r a m e > " ;  
        
         l a y . s t y l e . l e f t   =   ( d o c u m e n t . b o d y . o f f s e t W i d t h - l a y . o f f s e t W i d t h ) / 2   +   ' p x ' ;  
         l a y . s t y l e . t o p   =   ( d o c u m e n t . b o d y . o f f s e t H e i g h t - l a y . o f f s e t H e i g h t ) / 2   +   ' p x ' ;  
         l o c k . s t y l e . h e i g h t =   d o c u m e n t . b o d y . o f f s e t H e i g h t + ' p x ' ;  
          
 }  
  
 f u n c t i o n   C a l l L o c k ( u r l ,   w i d t h ,   h e i g h t ,   R e l o a d O n C l o s e ) {  
         g r a y O u t ( t r u e ) ;  
         v a r   l o c k   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' L o c k P a n e ' ) ;  
         v a r   l a y   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' C e n t e r L a y e r ' ) ;  
        
         i f   ( l o c k )  
                 l o c k . c l a s s N a m e   =   ' L o c k O n ' ;                  
         l a y . s t y l e . d i s p l a y   =   ' ' ;  
         l a y . i n n e r H T M L   =   " < d i v   c l a s s = ' d v P o p u p ' > < s p a n > G íi   l i n k   c h o   b ¡n   b è < / s p a n > < a   c l a s s = ' C l o s e '   o n c l i c k = ' O u t ( ) ; "   +   ( ( R e l o a d O n C l o s e ) ? " w i n d o w . l o c a t i o n . r e l o a d ( f a l s e ) ; " : " " )   +   " ' > X < / a > < / d i v > < i f r a m e   f r a m e b o r d e r = ' 0 '   w i d t h = ' "   +   w i d t h   +   " '   h e i g h t = ' "   +   h e i g h t   +   " '   s r c = ' "   +   u r l   +   " ' > < / i f r a m e > " ;  
       / /   l a y . i n n e r H T M L   =   " < d i v   s t y l e = ' b a c k g r o u n d : # E E E ; w i d t h : " + w i d t h + " p x ; ' > < b   s t y l e = ' f l o a t : r i g h t ; b a c k g r o u n d : r e d ; c o l o r : # F F F ; '   c l a s s = ' H a n d H o v e r   S m a l l T e x t   A c t i o n '   o n c l i c k = ' O u t ( ) ; "   +   ( ( R e l o a d O n C l o s e ) ? " w i n d o w . l o c a t i o n . r e l o a d ( f a l s e ) ; " : " " )   +   " ' > X < / d i v > < i f r a m e   f r a m e b o r d e r = ' 0 '   w i d t h = ' "   +   w i d t h   +   " '   h e i g h t = ' "   +   h e i g h t   +   " '   s r c = ' "   +   u r l   +   " ' > < / i f r a m e > " ;  
        
         l a y . s t y l e . l e f t   =   ( d o c u m e n t . b o d y . o f f s e t W i d t h - l a y . o f f s e t W i d t h ) / 2   +   ' p x ' ;  
         l a y . s t y l e . t o p   =   ( d o c u m e n t . b o d y . o f f s e t H e i g h t - l a y . o f f s e t H e i g h t ) / 2   +   ' p x ' ;  
         l o c k . s t y l e . h e i g h t =   d o c u m e n t . b o d y . o f f s e t H e i g h t + ' p x ' ;  
          
 }  
  
 / /   h i e n   p o p u p   k i e u   l i g h t b o x  
 f u n c t i o n   C a l l P o p u p ( u r l ,   w i d t h ,   h e i g h t ,   R e l o a d O n C l o s e ) {  
         g r a y O u t ( t r u e ) ;  
         v a r   l o c k   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' L o c k P a n e ' ) ;  
         v a r   l a y   =   d o c u m e n t . g e t E l e m e n t B y I d ( ' C e n t e r L a y e r ' ) ;  
        
         i f   ( l o c k )  
                 l o c k . c l a s s N a m e   =   ' L o c k O n ' ;                  
         l a y . s t y l e . d i s p l a y   =   ' ' ;  
         l a y . i n n e r H T M L   =   " < d i v   c l a s s = ' d v P o p u p ' > < a   c l a s s = ' C l o s e '   o n c l i c k = ' O u t P o p u p ( ) ; "   +   ( ( R e l o a d O n C l o s e ) ? " w i n d o w . l o c a t i o n . r e l o a d ( f a l s e ) ; " : " " )   +   " ' > < i m g   s r c = ' S t y l e / i m a g e s / b g _ l o g o u t _ b u t t o n . g i f '   / > < / a > < / d i v > < i f r a m e   f r a m e b o r d e r = ' 0 '   w i d t h = ' "   +   w i d t h   +   " '   h e i g h t = ' "   +   h e i g h t   +   " '   s r c = ' "   +   u r l   +   " ' > < / i f r a m e > " ;  
       / /   l a y . i n n e r H T M L   =   " < d i v   s t y l e = ' b a c k g r o u n d : # E E E ; w i d t h : " + w i d t h + " p x ; ' > < b   s t y l e = ' f l o a t : r i g h t ; b a c k g r o u n d : r e d ; c o l o r : # F F F ; '   c l a s s = ' H a n d H o v e r   S m a l l T e x t   A c t i o n '   o n c l i c k = ' O u t ( ) ; "   +   ( ( R e l o a d O n C l o s e ) ? " w i n d o w . l o c a t i o n . r e l o a d ( f a l s e ) ; " : " " )   +   " ' > X < / d i v > < i f r a m e   f r a m e b o r d e r = ' 0 '   w i d t h = ' "   +   w i d t h   +   " '   h e i g h t = ' "   +   h e i g h t   +   " '   s r c = ' "   +   u r l   +   " ' > < / i f r a m e > " ;  
        
         l a y . s t y l e . l e f t   =   ( d o c u m e n t . b o d y . o f f s e t W i d t h - l a y . o f f s e t W i d t h ) / 2   +   ' p x ' ;  
         l a y . s t y l e . t o p   =   ( d o c u m e n t . b o d y . o f f s e t H e i g h t - l a y . o f f s e t H e i g h t ) / 2   +   ' p x ' ;  
         l o c k . s t y l e . h e i g h t =   d o c u m e n t . b o d y . o f f s e t H e i g h t + ' p x ' ;  
          
 }  
 f u n c t i o n   O u t P o p u p ( )  
 {  
         g r a y O u t ( f a 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 ( ' C e n t e r L a y e r ' ) . s t y l e . d i s p l a y = ' n o n e ' ;  
         d o c u m e n t . g e t E l e m e n t B y I d ( ' L o c k P a n e ' ) . s t y l e . d i s p l a y = ' n o n e ' ;  
         d o c u m e n t . g e t E l e m e n t B y I d ( ' L o c k P a n e ' ) . c l a s s N a m e = ' L o c k P a n e ' ;  
          
         / / / v a r   s t r U R L = M o d u l e s _ C o n t r o l s _ S e n d D o c u m e n t s . G e t U R L P a g e ( ) ;  
                             / /                   w i n d o w . l o c a t i o n =   R e l o a d O n C l o s e ; / / s t r U R L . v a l u e ;  
 }  
 f u n c t i o n   g r a y O u t ( v i s ,   o p t i o n s )   {  
     / /   P a s s   t r u e   t o   g r a y   o u t   s c r e e n ,   f a l s e   t o   u n g r a y  
     / /   o p t i o n s   a r e   o p t i o n a l .     T h i s   i s   a   J S O N   o b j e c t   w i t h   t h e   f o l l o w i n g   ( o p t i o n a l )   p r o p e r t i e s  
     / /   o p a c i t y : 0 - 1 0 0                   / /   L o w e r   n u m b e r   =   l e s s   g r a y o u t   h i g h e r   =   m o r e   o f   a   b l a c k o u t    
     / /   z i n d e x :   #                           / /   H T M L   e l e m e n t s   w i t h   a   h i g h e r   z i n d e x   a p p e a r   o n   t o p   o f   t h e   g r a y   o u t  
     / /   b g c o l o r :   ( # x x x x x x )         / /   S t a n d a r d   R G B   H e x   c o l o r   c o d e  
     / /   g r a y O u t ( t r u e ,   { ' z i n d e x ' : ' 5 0 ' ,   ' b g c o l o r ' : ' # 0 0 0 0 F F ' ,   ' o p a c i t y ' : ' 7 0 ' } ) ;  
     / /   B e c a u s e   o p t i o n s   i s   J S O N   o p a c i t y / z i n d e x / b g c o l o r   a r e   a l l   o p t i o n a l   a n d   c a n   a p p e a r  
     / /   i n   a n y   o r d e r .     P a s s   o n l y   t h e   p r o p e r t i e s   y o u   n e e d   t o   s e t .  
     v a r   o p t i o n s   =   o p t i o n s   | |   { } ;    
     v a r   z i n d e x   =   o p t i o n s . z i n d e x   | |   5 0 ;  
     v a r   o p a c i t y   =   o p t i o n s . o p a c i t y   | |   7 0 ;  
     v a r   o p a q u e   =   ( o p a c i t y   /   1 0 0 ) ;  
     v a r   b g c o l o r   =   o p t i o n s . b g c o l o r   | |   ' # 0 0 0 0 0 0 ' ;  
     v a r   d a r k = d o c u m e n t . g e t E l e m e n t B y I d ( ' d a r k e n S c r e e n O b j e c t ' ) ;  
     i f   ( ! d a r k )   {  
         / /   T h e   d a r k   l a y e r   d o e s n ' t   e x i s t ,   i t ' s   n e v e r   b e e n   c r e a t e d .     S o   w e ' l l  
         / /   c r e a t e   i t   h e r e   a n d   a p p l y   s o m e   b a s i c   s t y l e s .  
         / /   I f   y o u   a r e   g e t t i n g   e r r o r s   i n   I E   s e e :   h t t p : / / s u p p o r t . m i c r o s o f t . c o m / d e f a u l t . a s p x / k b / 9 2 7 9 1 7  
         v a r   t b o d y   =   d o c u m e n t . g e t E l e m e n t s B y T a g N a m e ( " b o d y " ) [ 0 ] ;  
         v a r   t n o d e   =   d o c u m e n t . c r e a t e E l e m e n t ( ' d i v ' ) ;                       / /   C r e a t e   t h e   l a y e r .  
                 t n o d e . s t y l e . p o s i t i o n = ' a b s o l u t e ' ;                                   / /   P o s i t i o n   a b s o l u t e l y  
                 t n o d e . s t y l e . t o p = ' 0 p x ' ;                                                       / /   I n   t h e   t o p  
                 t n o d e . s t y l e . l e f t = ' 0 p x ' ;                                                     / /   L e f t   c o r n e r   o f   t h e   p a g e  
                 t n o d e . s t y l e . o v e r f l o w = ' h i d d e n ' ;                                       / /   T r y   t o   a v o i d   m a k i n g   s c r o l l   b a r s                          
                 t n o d e . s t y l e . d i s p l a y = ' n o n e ' ;                                             / /   S t a r t   o u t   H i d d e n  
                 t n o d e . i d = ' d a r k e n S c r e e n O b j e c t ' ;                                       / /   N a m e   i t   s o   w e   c a n   f i n d   i t   l a t e r  
         t b o d y . a p p e n d C h i l d ( t n o d e ) ;                                                         / /   A d d   i t   t o   t h e   w e b   p a g e  
         d a r k = d o c u m e n t . g e t E l e m e n t B y I d ( ' d a r k e n S c r e e n O b j e c t ' ) ;     / /   G e t   t h e   o b j e c t .  
     }  
     i f   ( v i s )   {  
         / /   C a l c u l a t e   t h e   p a g e   w i d t h   a n d   h e i g h t    
         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 . s c r o l l W i d t h   | |   d o c u m e n t . b o d y . s c r o l l H e i g h t   )   )   {  
                 v a r   p a g e W i d t h   =   d o c u m e n t . b o d y . s c r o l l W i d t h + ' p x ' ;  
                 v a r   p a g e H e i g h 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 + ' p x ' ;  
         }   e l s e   i f (   d o c u m e n t . b o d y . o f f s e t W i d t h   )   {  
             v a r   p a g e W i d t h   =   d o c u m e n t . b o d y . o f f s e t W i d t h + ' p x ' ;  
             v a r   p a g e H e i g h t   =   d o c u m e n t . b o d y . o f f s e t H e i g h t + ' p x ' ;  
         }   e l s e   {  
               v a r   p a g e W i d t h = ' 1 0 0 % ' ;  
               v a r   p a g e H e i g h t = ' 1 0 0 % ' ;  
         }        
         / / s e t   t h e   s h a d e r   t o   c o v e r   t h e   e n t i r e   p a g e   a n d   m a k e   i t   v i s i b l e .  
         d a r k . s t y l e . o p a c i t y = o p a q u e ;                                              
         d a r k . s t y l e . M o z O p a c i t y = o p a q u e ;                                        
         d a r k . s t y l e . f i l t e r = ' a l p h a ( o p a c i t y = ' + o p a c i t y + ' ) ' ;    
         d a r k . s t y l e . z I n d e x = z i n d e x ;                  
         d a r k . s t y l e . b a c k g r o u n d C o l o r = b g c o l o r ;      
         d a r k . s t y l e . w i d t h =   p a g e W i d t h ;  
         d a r k . s t y l e . h e i g h t =   p a g e H e i g h t ;  
         d a r k . s t y l e . d i s p l a y = ' b l o c k ' ;                                                      
     }   e l s e   {  
           d a r k . s t y l e . d i s p l a y = ' n o n e ' ;  
     }  
 }  
  
 f u n c t i o n   O u t ( )  
 {  
         g r a y O u t ( f a 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 ( ' C e n t e r L a y e r ' ) . s t y l e . d i s p l a y = ' n o n e ' ;  
         d o c u m e n t . g e t E l e m e n t B y I d ( ' L o c k P a n e ' ) . s t y l e . d i s p l a y = ' n o n e ' ;  
         d o c u m e n t . g e t E l e m e n t B y I d ( ' L o c k P a n e ' ) . c l a s s N a m e = ' L o c k P a n e ' ;  
 }  
  
  
  
 $ ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( ) {  
 $ ( " . T o p L e f t   . L o g o " ) . c s s ( ' c u r s o r ' , ' p o i n t e r ' ) ;  
         $ ( " . T o p L e f t   . L o g o " ) . c l i c k ( f u n c t i o n ( ) {  
                      
                         v a r   h o s t   =   w i n d o w . l o c a t i o n . h o s t ;  
                         v a r   h o s t n a m e A l l   =   " h t t p : / / "   +   h o s t + " / D e f a u l t . a s p x " ;  
                         d o c u m e n t . l o c a t i o n . r e p l a c e ( h o s t n a m e A l l ) ;  
                        
         } ) ;  
 } ) ;  
 
