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