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