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