ÿþf u n c t i o n   a d d L i s t e n e r ( n o d e ,   t y p e ,   l i s t e n e r ,   o b j )   { 
 	 v a r   p a r a m   =   o b j   | |   { } ; 
   
 	 i f ( n o d e . a d d E v e n t L i s t e n e r )   { 
 	 	 n o d e . a d d E v e n t L i s t e n e r ( t y p e ,   f u n c t i o n ( e v ) { l i s t e n e r ( e v ,   p a r a m ) ; } ,   f a l s e ) ; 
 	 	 r e t u r n   t r u e ; 
 	 }   e l s e   i f ( n o d e . a t t a c h E v e n t )   { 
 	 	 n o d e [ ' e '   +   t y p e   +   l i s t e n e r ]   =   l i s t e n e r ; 
 	 	 n o d e [ t y p e   +   l i s t e n e r ]   =   f u n c t i o n ( )   { 
 	 	 	 n o d e [ ' e '   +   t y p e   +   l i s t e n e r ] ( w i n d o w . e v e n t ,   p a r a m ) ; 
 	 	 } ; 
 	 	 n o d e . a t t a c h E v e n t ( ' o n '   +   t y p e ,   n o d e [ t y p e   +   l i s t e n e r ] ) ; 
 	 	 r e t u r n   t r u e ; 
 	 } 
 	 r e t u r n   f a l s e ; 
 } 
   
 f u n c t i o n   g e t P a r a m s O f S h a r e W i n d o w ( w i d t h ,   h e i g h t )   { 
 	 r e t u r n   [ ' t o o l b a r = 0 , s t a t u s = 0 , r e s i z a b l e = 1 , w i d t h = '   +   w i d t h   +   ' , h e i g h t = '   +   h e i g h t   +   ' , l e f t = ' , ( s c r e e n . w i d t h - w i d t h ) / 2 , ' , t o p = ' , ( s c r e e n . h e i g h t - h e i g h t ) / 2 ] . j o i n ( ' ' ) ; 
 } 
   
 f u n c t i o n   b i n d S h a r e L i s t ( )   { 
 	 v a r   l i n k   =   e n c o d e U R I C o m p o n e n t ( d o c u m e n t . l o c a t i o n ) ;   / /   ‡eàzþ”¥c
 	 v a r   t i t l e   =   e n c o d e U R I C o m p o n e n t ( d o c u m e n t . t i t l e . s u b s t r i n g ( 0 , 7 6 ) ) ;   / /   ‡eàzh˜˜
 	 v a r   s o u r c e   =   e n c o d e U R I C o m p o n e n t ( ' QÙzTðy' ) ;   / /   QÙzTðy
 	 v a r   w i n d o w N a m e   =   ' s h a r e ' ;   / /   P[—zãS+Rðy
 	 v a r   s i t e   =   ' h t t p : / / w w w . e x a m p l e . c o m / ' ;   / /   QÙzþ”¥c
   
 	 a d d L i s t e n e r ( d o c u m e n t . g e t E l e m e n t B y I d ( ' f a c e b o o k - s h a r e ' ) ,   ' c l i c k ' ,   f u n c t i o n ( )   { 
 	 	 v a r   u r l   =   ' h t t p : / / f a c e b o o k . c o m / s h a r e . p h p ? u = '   +   l i n k   +   ' & t = '   +   t i t l e ; 
 	 	 v a r   p a r a m s   =   g e t P a r a m s O f S h a r e W i n d o w ( 6 2 6 ,   4 3 6 ) ; 
 	 	 w i n d o w . o p e n ( u r l ,   w i n d o w N a m e ,   p a r a m s ) ; 
 	 } ) ; 
   
 	 a d d L i s t e n e r ( d o c u m e n t . g e t E l e m e n t B y I d ( ' t w i t t e r - s h a r e ' ) ,   ' c l i c k ' ,   f u n c t i o n ( )   { 
 	 	 v a r   u r l   =   ' h t t p : / / t w i t t e r . c o m / s h a r e ? u r l = '   +   l i n k   +   ' & t e x t = '   +   t i t l e ; 
 	 	 v a r   p a r a m s   =   g e t P a r a m s O f S h a r e W i n d o w ( 5 0 0 ,   3 7 5 ) ; 
 	 	 w i n d o w . o p e n ( u r l ,   w i n d o w N a m e ,   p a r a m s ) ; 
 	 } ) ; 
   
 	 a d d L i s t e n e r ( d o c u m e n t . g e t E l e m e n t B y I d ( ' d e l i c i o u s - s h a r e ' ) ,   ' c l i c k ' ,   f u n c t i o n ( )   { 
 	 	 v a r   u r l   =   ' h t t p : / / d e l i c i o u s . c o m / p o s t ? u r l = '   +   l i n k   +   ' & t i t l e = '   +   t i t l e ; 
 	 	 v a r   p a r a m s   =   g e t P a r a m s O f S h a r e W i n d o w ( 5 5 0 ,   5 5 0 ) ; 
 	 	 w i n d o w . o p e n ( u r l ,   w i n d o w N a m e ,   p a r a m s ) ; 
 	 } ) ; 
   
 	 a d d L i s t e n e r ( d o c u m e n t . g e t E l e m e n t B y I d ( ' k a i x i n 0 0 1 - s h a r e ' ) ,   ' c l i c k ' ,   f u n c t i o n ( )   { 
 	 	 v a r   u r l   =   ' h t t p : / / w w w . k a i x i n 0 0 1 . c o m / r e p a s t e / s h a r e . p h p ? r u r l = '   +   l i n k   +   ' & r c o n t e n t = '   +   l i n k   +   ' & r t i t l e = '   +   t i t l e ; 
 	 	 v a r   p a r a m s   =   g e t P a r a m s O f S h a r e W i n d o w ( 5 4 0 ,   3 4 2 ) ; 
 	 	 w i n d o w . o p e n ( u r l ,   w i n d o w N a m e ,   p a r a m s ) ; 
 	 } ) ; 
   
 	 a d d L i s t e n e r ( d o c u m e n t . g e t E l e m e n t B y I d ( ' r e n r e n - s h a r e ' ) ,   ' c l i c k ' ,   f u n c t i o n ( )   { 
 	 	 v a r   u r l   =   ' h t t p : / / s h a r e . r e n r e n . c o m / s h a r e / b u t t o n s h a r e ? l i n k = '   +   l i n k   +   ' & t i t l e = '   +   t i t l e ; 
 	 	 v a r   p a r a m s   =   g e t P a r a m s O f S h a r e W i n d o w ( 6 2 6 ,   4 3 6 ) ; 
 	 	 w i n d o w . o p e n ( u r l ,   w i n d o w N a m e ,   p a r a m s ) ; 
 	 } ) ; 
   
 	 a d d L i s t e n e r ( d o c u m e n t . g e t E l e m e n t B y I d ( ' d o u b a n - s h a r e ' ) ,   ' c l i c k ' ,   f u n c t i o n ( )   { 
 	 	 v a r   u r l   =   ' h t t p : / / w w w . d o u b a n . c o m / r e c o m m e n d / ? u r l = '   +   l i n k   +   ' & t i t l e = '   +   t i t l e ; 
 	 	 v a r   p a r a m s   =   g e t P a r a m s O f S h a r e W i n d o w ( 4 5 0 ,   3 5 0 ) ; 
 	 	 w i n d o w . o p e n ( u r l ,   w i n d o w N a m e ,   p a r a m s ) ; 
 	 } ) ; 
   
 	 a d d L i s t e n e r ( d o c u m e n t . g e t E l e m e n t B y I d ( ' s i n a - s h a r e ' ) ,   ' c l i c k ' ,   f u n c t i o n ( )   { 
 	 	 v a r   u r l   =   ' h t t p : / / v . t . s i n a . c o m . c n / s h a r e / s h a r e . p h p ? u r l = '   +   l i n k   +   ' & t i t l e = '   +   t i t l e ; 
 	 	 v a r   p a r a m s   =   g e t P a r a m s O f S h a r e W i n d o w ( 6 0 7 ,   5 2 3 ) ; 
 	 	 w i n d o w . o p e n ( u r l ,   w i n d o w N a m e ,   p a r a m s ) ; 
 	 } ) ; 
   
 	 a d d L i s t e n e r ( d o c u m e n t . g e t E l e m e n t B y I d ( ' n e t e a s e - s h a r e ' ) ,   ' c l i c k ' ,   f u n c t i o n ( )   { 
 	 	 v a r   u r l   =   ' h t t p : / / t . 1 6 3 . c o m / a r t i c l e / u s e r / c h e c k L o g i n . d o ? l i n k = '   +   l i n k   +   ' s o u r c e = '   +   s o u r c e   +   ' & i n f o = ' +   t i t l e   +   '   '   +   l i n k ; 
 	 	 v a r   p a r a m s   =   g e t P a r a m s O f S h a r e W i n d o w ( 6 4 2 ,   4 6 8 ) ; 
 	 	 w i n d o w . o p e n ( u r l ,   w i n d o w N a m e ,   p a r a m s ) ; 
 	 } ) ; 
   
 	 a d d L i s t e n e r ( d o c u m e n t . g e t E l e m e n t B y I d ( ' t e n c e n t - s h a r e ' ) ,   ' c l i c k ' ,   f u n c t i o n ( )   { 
 	 	 v a r   u r l   =   ' h t t p : / / v . t . q q . c o m / s h a r e / s h a r e . p h p ? t i t l e = '   +   t i t l e   +   ' & u r l = '   +   l i n k   +   ' & s i t e = '   +   s i t e ; 
 	 	 v a r   p a r a m s   =   g e t P a r a m s O f S h a r e W i n d o w ( 6 3 4 ,   6 6 8 ) ; 
 	 	 w i n d o w . o p e n ( u r l ,   w i n d o w N a m e ,   p a r a m s ) ; 
 	 } ) ; 
 } 
   
 b i n d S h a r e L i s t ( ) ; 
 
 
