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