ÿþf u n c t i o n   s h o w K o s a r b a P o p u p ( )   {  
 	 $ ( ' b o d y ' ) . a p p e n d ( ' < d i v   c l a s s = " o v e r d i v " > < / d i v > ' ) ;  
 	 $ ( ' . o v e r d i v ' ) . c s s ( { ' o p a c i t y ' :   ' 0 . 6 ' } ) ;  
 	 r e s i z e O v e r d i v ( ) ;  
 	 $ ( ' . o v e r d i v ' ) . f a d e I n ( " s l o w " ) ;  
  
 	 v a r   d i v E l e m   =   $ ( " # k o s a r b a _ p o p u p " ) ;  
 	 d i v E l e m . r e m o v e ( ) ;  
 	 $ ( ' b o d y ' ) . a p p e n d ( d i v E l e m ) ; 	  
 	 d i v E l e m . f a d e I n ( " s l o w " ) ;  
 	 p o s i t i o n D i v C e n t e r ( d i v E l e m ) ;  
 	  
 	 $ ( w i n d o w ) . r e s i z e ( f u n c t i o n ( ) {   r e s i z e O v e r d i v ( ) ;   p o s i t i o n D i v C e n t e r ( d i v E l e m ) ;   } ) ;  
 	 $ ( w i n d o w ) . s c r o l l ( f u n c t i o n ( ) {   r e s i z e O v e r d i v ( ) ;   p o s i t i o n D i v C e n t e r ( d i v E l e m ) ;   } ) ; 	  
 }  
  
 f u n c t i o n   h i d e K o s a r b a P o p u p ( )   {  
 	 $ ( " # k o s a r b a _ p o p u p " ) . f a d e O u t ( " s l o w " ) ; 	  
 	 $ ( ' . o v e r d i v ' ) . f a d e O u t ( " s l o w " ) ;  
 	 r e t u r n   f a l s e ;  
 }  
  
 f u n c t i o n   s t a r t p r i n t ( )  
 {  
 	 q u e s t i o n   =   c o n f i r m   ( " I n d u l h a t   a   n y o m t a t á s ? " ) ;  
 	 i f   ( q u e s t i o n   = =   t r u e )  
 	 {  
 	 	 w i n d o w . p r i n t ( ) ;  
 	 }   e l s e   {  
 	 	 r e t u r n   f a l s e ;    
 	 }  
 }  
  
 / *  
 f u n c t i o n   a j a n l a s P o p u p R e s e t ( )   {  
 	 $ ( ' i n p u t [ n a m e = a j a n l o _ n e v ] ' ) . a t t r ( ' v a l u e ' ,   d e f _ a j a n l o _ n e v ) ;  
 	 $ ( ' i n p u t [ n a m e = a j a n l o _ e m a i l ] ' ) . a t t r ( ' v a l u e ' ,   d e f _ a j a n l o _ e m a i l ) ;  
 	 $ ( ' i n p u t [ n a m e = b a r a t o d _ n e v ] ' ) . a t t r ( ' v a l u e ' ,   ' ' ) ;  
 	 $ ( ' i n p u t [ n a m e = b a r a t o d _ e m a i l ] ' ) . a t t r ( ' v a l u e ' ,   ' ' ) ;  
  
 	 $ ( ' i n p u t [ n a m e = a j a n l o _ n e v ] ' ) . a t t r ( ' c l a s s ' ,   ' t x t b o x ' ) ;  
 	 $ ( ' i n p u t [ n a m e = a j a n l o _ e m a i l ] ' ) . a t t r ( ' c l a s s ' ,   ' t x t b o x ' ) ;  
 	 $ ( ' i n p u t [ n a m e = b a r a t o d _ n e v ] ' ) . a t t r ( ' c l a s s ' ,   ' t x t b o x ' ) ;  
 	 $ ( ' i n p u t [ n a m e = b a r a t o d _ e m a i l ] ' ) . a t t r ( ' c l a s s ' ,   ' t x t b o x ' ) ;  
  
 	 $ ( ' # a j a n l o _ u z e n e t ' ) . v a l ( ' ' ) ;  
 	 $ ( ' # p o p u p _ f o r m _ e r r o r ' ) . h t m l ( ' ' ) ;  
 	 $ ( ' # p o p u p _ u z e n e t ' ) . h i d e ( ) ;  
 	 $ ( ' # p o p u p _ f o r m ' ) . s h o w ( ) ; 	  
 }  
 * /  
  
 f u n c t i o n   s h o w D i v ( t h a t )  
 {  
 	 v a r   d i v E l e m   =   $ ( t h a t ) ;  
 	  
 	 d i v E l e m . r e m o v e ( ) ;  
 	  
 	 $ ( ' b o d y ' ) . a p p e n d ( d i v E l e m ) ;  
 	  
 	 d i v E l e m . c s s ( {  
 	 	 d i s p l a y :   ' b l o c k '  
 	 } ) ;  
 	  
 	 p o s i t i o n D i v C e n t e r ( t h a t ) ;  
 	  
 	 $ ( w i n d o w ) . r e s i z e ( f u n c t i o n ( ) {   p o s i t i o n D i v C e n t e r ( t h a t ) ;   } ) ; 	 	 	 	 	  
 }  
  
 f u n c t i o n   h i d e D i v ( t h a t )  
 {  
 	 v a r   d i v E l e m   =   $ ( t h a t ) ;  
 	 d i v E l e m . c s s ( {  
 	 	 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   p o s i t i o n D i v C e n t e r ( t h a t )  
 {  
 	 v a r   s t   =   $ ( d o c u m e n t ) . s c r o l l T o p ( ) ;  
 	 v a r   w h   =   $ . b r o w s e r . o p e r a   & &   $ . b r o w s e r . v e r s i o n   >   " 9 . 5 "   & &   $ . f n . j q u e r y   < =   " 1 . 2 . 6 "   ?   d o c u m e n t . d o c u m e n t E l e m e n t [ " c l i e n t H e i g h t " ]   :   $ ( w i n d o w ) . h e i g h t ( ) ;  
 	  
 	 v a r   d i v   =   $ ( t h a t ) ;  
 	 d i v . c s s ( {  
 	     l e f t :   ' 5 0 % ' ,  
 	     m a r g i n L e f t :   - ( d i v . w i d t h ( )   /   2 ) ,  
 	     t o p :   ( s t   +   ( w h   /   2 ) )   -   ( d i v . h e i g h t ( )   /   2 )  
 	 } ) ;  
 }  
  
 f u n c t i o n   s h o w P o p u p ( t h a t )  
 {  
 	 $ ( ' b o d y ' ) . a p p e n d ( ' < d i v   c l a s s = " o v e r d i v " > < / d i v > ' ) ;  
 	 $ ( ' . o v e r d i v ' ) . c s s ( { ' o p a c i t y ' :   ' 0 . 6 ' } ) ;  
 	 r e s i z e O v e r d i v ( ) ;  
 	 $ ( w i n d o w ) . r e s i z e ( f u n c t i o n ( ) {   r e s i z e O v e r d i v ( )   } ) ; 	  
 	  
 	 s h o w D i v ( t h a t ) ;  
  
 	 $ ( ' # p o p u p w i n d o w _ c l o s e ' ) . c l i c k ( f u n c t i o n ( ) {   h i d e P o p u p ( t h a t ) ;   } ) ;  
 }  
  
 f u n c t i o n   h i d e P o p u p ( t h a t )  
 {  
 	 v a r   d i v E l e m   =   $ ( t h a t ) ;  
 	 d i v E l e m . c s s ( {  
 	 	 d i s p l a y :   ' n o n e '  
 	 } ) ;  
 	  
 	 $ ( ' . o v e r d i v ' ) . r e m o v e ( ) ; 	  
 	 r e t u r n   f a l s e ;  
 }  
  
 f u n c t i o n   r e s i z e O v e r d i v ( ) {  
 	 v a r   d i m s   =   _ _ _ g e t P a g e S i z e ( ) ;  
 	 $ ( ' . o v e r d i v ' ) . c s s ( {  
 	 	 ' w i d t h ' :   d i m s [ 0 ] + ' p x ' ,  
 	 	 ' h e i g h t ' :   d i m s [ 1 ] + ' p x '  
 	 } ) ;  
 }  
  
 / * *  
   *   g e t P a g e S i z e ( )   b y   q u i r k s m o d e . c o m  
   *  
   *   @ r e t u r n   A r r a y   R e t u r n   a n   a r r a y   w i t h   p a g e   w i d t h ,   h e i g h t   a n d   w i n d o w   w i d t h ,   h e i g h t  
   * /  
 f u n c t i o n   _ _ _ g e t P a g e S i z e ( )   {  
   v a r   x S c r o l l ,   y S c r o l l ;  
   i f   ( w i n d o w . i n n e r H e i g h t   & &   w i n d o w . s c r o l l M a x Y )   {  
   x S c r o l l   =   w i n d o w . i n n e r W i d t h   +   w i n d o w . s c r o l l M a x X ;  
   y S c r o l l   =   w i n d o w . i n n e r H e i g h t   +   w i n d o w . s c r o l l M a x Y ;  
   }   e l s e   i f   ( 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 . b o d y . o f f s e t H e i g h t ) {   / /   a l l   b u t   E x p l o r e r   M a c  
   x S c r o l l   =   d o c u m e n t . b o d y . s c r o l l W i d t h ;  
   y S c r o l l   =   d o c u m e n t . b o d y . s c r o l l H e i g h t ;  
   }   e l s e   {   / /   E x p l o r e r   M a c . . . w o u l d   a l s o   w o r k   i n   E x p l o r e r   6   S t r i c t ,   M o z i l l a   a n d   S a f a r i  
   x S c r o l l   =   d o c u m e n t . b o d y . o f f s e t W i d t h ;  
   y S c r o l l   =   d o c u m e n t . b o d y . o f f s e t H e i g h t ;  
   }  
   v a r   w i n d o w W i d t h ,   w i n d o w H e i g h t ;  
   i f   ( s e l f . i n n e r H e i g h t )   {   / /   a l l   e x c e p t   E x p l o r e r  
   i f ( d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h ) {  
   w i n d o w W i d t h   =   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h ;  
   }   e l s e   {  
   w i n d o w W i d t h   =   s e l f . i n n e r W i d t h ;  
   }  
   w i n d o w H e i g h t   =   s e l f . i n n e r H e i g h t ;  
   }   e l s e   i f   ( d o c u m e n t . d o c u m e n t E l e m e n t   & &   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t )   {   / /   E x p l o r e r   6   S t r i c t   M o d e  
   w i n d o w W i d t h   =   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h ;  
   w i n d o w H e i g h t   =   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t ;  
   }   e l s e   i f   ( d o c u m e n t . b o d y )   {   / /   o t h e r   E x p l o r e r s  
   w i n d o w W i d t h   =   d o c u m e n t . b o d y . c l i e n t W i d t h ;  
   w i n d o w H e i g h t   =   d o c u m e n t . b o d y . c l i e n t H e i g h t ;  
   }  
   / /   f o r   s m a l l   p a g e s   w i t h   t o t a l   h e i g h t   l e s s   t h e n   h e i g h t   o f   t h e   v i e w p o r t  
   i f ( y S c r o l l   <   w i n d o w H e i g h t ) {  
   p a g e H e i g h t   =   w i n d o w H e i g h t ;  
   }   e l s e   {  
   p a g e H e i g h t   =   y S c r o l l ;  
   }  
   / /   f o r   s m a l l   p a g e s   w i t h   t o t a l   w i d t h   l e s s   t h e n   w i d t h   o f   t h e   v i e w p o r t  
   i f ( x S c r o l l   <   w i n d o w W i d t h ) {  
   p a g e W i d t h   =   x S c r o l l ;  
   }   e l s e   {  
   p a g e W i d t h   =   w i n d o w W i d t h ;  
   }  
   a r r a y P a g e S i z e   =   n e w   A r r a y ( p a g e W i d t h , p a g e H e i g h t , w i n d o w W i d t h , w i n d o w H e i g h t ) ;  
   r e t u r n   a r r a y P a g e S i z e ;  
 } ;   
