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