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