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