þÿ f u n c t i o n   n a t u r a l S o r t ( i , g ) { v a r   o = / ( - ? [ 0 - 9 \ . ] + ) / g , k = S t r i n g . f r o m C h a r C o d e ( 0 ) , j = i . t o S t r i n g ( ) . t o L o w e r C a s e ( ) . s p l i t ( k ) [ 0 ] | | " " , f = g . t o S t r i n g ( ) . t o L o w e r C a s e ( ) . s p l i t ( k ) [ 0 ] | | " " , l = j . r e p l a c e ( o , k + " $ 1 " + k ) . s p l i t ( k ) , e = f . r e p l a c e ( o , k + " $ 1 " + k ) . s p l i t ( k ) , d = ( n e w   D a t e ( j ) ) . g e t T i m e ( ) , n = d ? ( n e w   D a t e ( f ) ) . g e t T i m e ( ) : n u l l ; i f ( n ) { i f ( d < n ) { r e t u r n   - 1 } e l s e { i f ( d > n ) { r e t u r n   1 } } } f o r ( v a r   h = 0 , c = M a t h . m a x ( l . l e n g t h , e . l e n g t h ) ; h < c ; h + + ) { o F x N c L = p a r s e F l o a t ( l [ h ] ) | | l [ h ] ; o F y N c L = p a r s e F l o a t ( e [ h ] ) | | e [ h ] ; i f ( o F x N c L < o F y N c L ) { r e t u r n   - 1 } e l s e { i f ( o F x N c L > o F y N c L ) { r e t u r n   1 } } } r e t u r n   0 } v a r   h s = { l a n g : { c s s D i r e c t i o n : " l t r " , l o a d i n g T e x t : " L o a d i n g . . . " , l o a d i n g T i t l e : " C l i c k   t o   c a n c e l " , f o c u s T i t l e : " C l i c k   t o   b r i n g   t o   f r o n t " , f u l l E x p a n d T i t l e : " E x p a n d   t o   a c t u a l   s i z e   ( f ) " , c r e d i t s T e x t : " P o w e r e d   b y   < i > H i g h s l i d e   J S < / i > " , c r e d i t s T i t l e : " G o   t o   t h e   H i g h s l i d e   J S   h o m e p a g e " , p r e v i o u s T e x t : " P r e v i o u s " , n e x t T e x t : " N e x t " , m o v e T e x t : " M o v e " , c l o s e T e x t : " C l o s e " , c l o s e T i t l e : " C l o s e   ( e s c ) " , r e s i z e T i t l e : " R e s i z e " , p l a y T e x t : " P l a y " , p l a y T i t l e : " P l a y   s l i d e s h o w   ( s p a c e b a r ) " , p a u s e T e x t : " P a u s e " , p a u s e T i t l e : " P a u s e   s l i d e s h o w   ( s p a c e b a r ) " , p r e v i o u s T i t l e : " P r e v i o u s   ( a r r o w   l e f t ) " , n e x t T i t l e : " N e x t   ( a r r o w   r i g h t ) " , m o v e T i t l e : " M o v e " , f u l l E x p a n d T e x t : " 1 : 1 " , n u m b e r : " I m a g e   % 1   o f   % 2 " , r e s t o r e T i t l e : " C l i c k   t o   c l o s e   i m a g e ,   c l i c k   a n d   d r a g   t o   m o v e .   U s e   a r r o w   k e y s   f o r   n e x t   a n d   p r e v i o u s . " } , g r a p h i c s D i r : " h i g h s l i d e / g r a p h i c s / " , e x p a n d C u r s o r : " z o o m i n . c u r " , r e s t o r e C u r s o r : " z o o m o u t . c u r " , e x p a n d D u r a t i o n : 2 5 0 , r e s t o r e D u r a t i o n : 2 5 0 , m a r g i n L e f t : 1 5 , m a r g i n R i g h t : 1 5 , m a r g i n T o p : 1 5 , m a r g i n B o t t o m : 1 5 , z I n d e x C o u n t e r : 1 0 0 1 , l o a d i n g O p a c i t y : 0 . 7 5 , a l l o w M u l t i p l e I n s t a n c e s : t r u e , n u m b e r O f I m a g e s T o P r e l o a d : 5 , o u t l i n e W h i l e A n i m a t i n g : 2 , o u t l i n e S t a r t O f f s e t : 3 , p a d T o M i n W i d t h : f a l s e , f u l l E x p a n d P o s i t i o n : " b o t t o m   r i g h t " , f u l l E x p a n d O p a c i t y : 1 , s h o w C r e d i t s : t r u e , c r e d i t s H r e f : " h t t p : / / h i g h s l i d e . c o m / " , c r e d i t s T a r g e t : " _ s e l f " , e n a b l e K e y L i s t e n e r : t r u e , o p e n e r T a g N a m e s : [ " a " , " a r e a " ] , t r a n s i t i o n s : [ ] , t r a n s i t i o n D u r a t i o n : 2 5 0 , d i m m i n g O p a c i t y : 0 , d i m m i n g D u r a t i o n : 5 0 , a l l o w W i d t h R e d u c t i o n : f a l s e , a l l o w H e i g h t R e d u c t i o n : t r u e , p r e s e r v e C o n t e n t : t r u e , o b j e c t L o a d T i m e : " b e f o r e " , c a c h e A j a x : t r u e , a n c h o r : " a u t o " , a l i g n : " a u t o " , t a r g e t X : n u l l , t a r g e t Y : n u l l , d r a g B y H e a d i n g : t r u e , m i n W i d t h : 2 0 0 , m i n H e i g h t : 2 0 0 , a l l o w S i z e R e d u c t i o n : t r u e , o u t l i n e T y p e : " d r o p - s h a d o w " , s k i n : { c o n t r o l s : ' < d i v   c l a s s = " h i g h s l i d e - c o n t r o l s " > < u l > < l i   c l a s s = " h i g h s l i d e - p r e v i o u s " > < a   h r e f = " # "   t i t l e = " { h s . l a n g . p r e v i o u s T i t l e } " > < s p a n > { h s . l a n g . p r e v i o u s T e x t } < / s p a n > < / a > < / l i > < l i   c l a s s = " h i g h s l i d e - p l a y " > < a   h r e f = " # "   t i t l e = " { h s . l a n g . p l a y T i t l e } " > < s p a n > { h s . l a n g . p l a y T e x t } < / s p a n > < / a > < / l i > < l i   c l a s s = " h i g h s l i d e - p a u s e " > < a   h r e f = " # "   t i t l e = " { h s . l a n g . p a u s e T i t l e } " > < s p a n > { h s . l a n g . p a u s e T e x t } < / s p a n > < / a > < / l i > < l i   c l a s s = " h i g h s l i d e - n e x t " > < a   h r e f = " # "   t i t l e = " { h s . l a n g . n e x t T i t l e } " > < s p a n > { h s . l a n g . n e x t T e x t } < / s p a n > < / a > < / l i > < l i   c l a s s = " h i g h s l i d e - m o v e " > < a   h r e f = " # "   t i t l e = " { h s . l a n g . m o v e T i t l e } " > < s p a n > { h s . l a n g . m o v e T e x t } < / s p a n > < / a > < / l i > < l i   c l a s s = " h i g h s l i d e - f u l l - e x p a n d " > < a   h r e f = " # "   t i t l e = " { h s . l a n g . f u l l E x p a n d T i t l e } " > < s p a n > { h s . l a n g . f u l l E x p a n d T e x t } < / s p a n > < / a > < / l i > < l i   c l a s s = " h i g h s l i d e - c l o s e " > < a   h r e f = " # "   t i t l e = " { h s . l a n g . c l o s e T i t l e } "   > < s p a n > { h s . l a n g . c l o s e T e x t } < / s p a n > < / a > < / l i > < / u l > < / d i v > ' , c o n t e n t W r a p p e r : ' < d i v   c l a s s = " h i g h s l i d e - h e a d e r " > < u l > < l i   c l a s s = " h i g h s l i d e - p r e v i o u s " > < a   h r e f = " # "   t i t l e = " { h s . l a n g . p r e v i o u s T i t l e } "   o n c l i c k = " r e t u r n   h s . p r e v i o u s ( t h i s ) " > < s p a n > { h s . l a n g . p r e v i o u s T e x t } < / s p a n > < / a > < / l i > < l i   c l a s s = " h i g h s l i d e - n e x t " > < a   h r e f = " # "   t i t l e = " { h s . l a n g . n e x t T i t l e } "   o n c l i c k = " r e t u r n   h s . n e x t ( t h i s ) " > < s p a n > { h s . l a n g . n e x t T e x t } < / s p a n > < / a > < / l i > < l i   c l a s s = " h i g h s l i d e - m o v e " > < a   h r e f = " # "   t i t l e = " { h s . l a n g . m o v e T i t l e } "   o n c l i c k = " r e t u r n   f a l s e " > < s p a n > { h s . l a n g . m o v e T e x t } < / s p a n > < / a > < / l i > < l i   c l a s s = " h i g h s l i d e - c l o s e " > < a   h r e f = " # "   t i t l e = " { h s . l a n g . c l o s e T i t l e } "   o n c l i c k = " r e t u r n   h s . c l o s e ( t h i s ) " > < s p a n > { h s . l a n g . c l o s e T e x t } < / s p a n > < / a > < / l i > < / u l > < / d i v > < d i v   c l a s s = " h i g h s l i d e - b o d y " > < / d i v > < d i v   c l a s s = " h i g h s l i d e - f o o t e r " > < d i v > < s p a n   c l a s s = " h i g h s l i d e - r e s i z e "   t i t l e = " { h s . l a n g . r e s i z e T i t l e } " > < s p a n > < / s p a n > < / s p a n > < / d i v > < / d i v > ' } , p r e l o a d T h e s e I m a g e s : [ ] , c o n t i n u e P r e l o a d i n g : t r u e , e x p a n d e r s : [ ] , o v e r r i d e s : [ " a l l o w S i z e R e d u c t i o n " , " u s e B o x " , " a n c h o r " , " a l i g n " , " t a r g e t X " , " t a r g e t Y " , " o u t l i n e T y p e " , " o u t l i n e W h i l e A n i m a t i n g " , " c a p t i o n I d " , " c a p t i o n T e x t " , " c a p t i o n E v a l " , " c a p t i o n O v e r l a y " , " h e a d i n g I d " , " h e a d i n g T e x t " , " h e a d i n g E v a l " , " h e a d i n g O v e r l a y " , " c r e d i t s P o s i t i o n " , " d r a g B y H e a d i n g " , " a u t o p l a y " , " n u m b e r P o s i t i o n " , " t r a n s i t i o n s " , " d i m m i n g O p a c i t y " , " w i d t h " , " h e i g h t " , " c o n t e n t I d " , " a l l o w W i d t h R e d u c t i o n " , " a l l o w H e i g h t R e d u c t i o n " , " p r e s e r v e C o n t e n t " , " m a i n c o n t e n t I d " , " m a i n c o n t e n t T e x t " , " m a i n c o n t e n t E v a l " , " o b j e c t T y p e " , " c a c h e A j a x " , " o b j e c t W i d t h " , " o b j e c t H e i g h t " , " o b j e c t L o a d T i m e " , " s w f O p t i o n s " , " w r a p p e r C l a s s N a m e " , " m i n W i d t h " , " m i n H e i g h t " , " m a x W i d t h " , " m a x H e i g h t " , " s l i d e s h o w G r o u p " , " e a s i n g " , " e a s i n g C l o s e " , " f a d e I n O u t " , " s r c " ] , o v e r l a y s : [ ] , i d C o u n t e r : 0 , o P o s : { x : [ " l e f t p a n e l " , " l e f t " , " c e n t e r " , " r i g h t " , " r i g h t p a n e l " ] , y : [ " a b o v e " , " t o p " , " m i d d l e " , " b o t t o m " , " b e l o w " ] } , m o u s e : { } , h e a d i n g O v e r l a y : { } , c a p t i o n O v e r l a y : { } , s w f O p t i o n s : { f l a s h v a r s : { } , p a r a m s : { } , a t t r i b u t e s : { } } , t i m e r s : [ ] , s l i d e s h o w s : [ ] , p e n d i n g O u t l i n e s : { } , s l e e p i n g : [ ] , p r e l o a d T h e s e A j a x : [ ] , c a c h e B i n d i n g s : [ ] , c a c h e d G e t s : { } , c l o n e s : { } , o n R e a d y : [ ] , u a V e r s i o n : p a r s e F l o a 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 ( ) . m a t c h ( / . + ( ? : r v | i t | r a | i e ) [ \ / :   ] ( [ \ d . ] + ) / ) | | [ 0 , " 0 " ] ) [ 1 ] ) , i e : ( d o c u m e n t . a l l & & ! w i n d o w . o p e r a ) , s a f a r i : / S a f a r i / . t e s t ( n a v i g a t o r . u s e r A g e n t ) , g e c k o M a c : / M a c i n t o s h . + r v : 1 \ . [ 0 - 8 ] . + G e c k o / . t e s t ( n a v i g a t o r . u s e r A g e n t ) , $ : f u n c t i o n ( a ) { i f ( a ) { 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 ( a ) } } , p u s h : f u n c t i o n ( a , b ) { a [ a . l e n g t h ] = b } , c r e a t e E l e m e n t : f u n c t i o n ( a , f , e , d , c ) { v a r   b = d o c u m e n t . c r e a t e E l e m e n t ( a ) ; i f ( f ) { h s . e x t e n d ( b , f ) } i f ( c ) { h s . s e t S t y l e s ( b , { p a d d i n g : 0 , b o r d e r : " n o n e " , m a r g i n : 0 } ) } i f ( e ) { h s . s e t S t y l e s ( b , e ) } i f ( d ) { d . a p p e n d C h i l d ( b ) } r e t u r n   b } , e x t e n d : f u n c t i o n ( b , c ) { f o r ( v a r   a   i n   c ) { b [ a ] = c [ a ] } r e t u r n   b } , s e t S t y l e s : f u n c t i o n ( b , c ) { f o r ( v a r   a   i n   c ) { i f ( h s . i e & & a = = " o p a c i t y " ) { i f ( c [ a ] > 0 . 9 9 ) { b . s t y l e . r e m o v e A t t r i b u t e ( " f i l t e r " ) } e l s e { b . s t y l e . f i l t e r = " a l p h a ( o p a c i t y = " + ( c [ a ] * 1 0 0 ) + " ) " } } e l s e { b . s t y l e [ a ] = c [ a ] } } } , a n i m a t e : f u n c t i o n ( f , a , d ) { v a r   c , g , j ; i f ( t y p e o f   d ! = " o b j e c t " | | d = = = n u l l ) { v a r   i = a r g u m e n t s ; d = { d u r a t i o n : i [ 2 ] , e a s i n g : i [ 3 ] , c o m p l e t e : i [ 4 ] } } i f ( t y p e o f   d . d u r a t i o n ! = " n u m b e r " ) { d . d u r a t i o n = 2 5 0 } d . e a s i n g = M a t h [ d . e a s i n g ] | | M a t h . e a s e I n Q u a d ; d . c u r A n i m = h s . e x t e n d ( { } , a ) ; f o r ( v a r   b   i n   a ) { v a r   h = n e w   h s . f x ( f , d , b ) ; c = p a r s e F l o a t ( h s . c s s ( f , b ) ) | | 0 ; g = p a r s e F l o a t ( a [ b ] ) ; j = b ! = " o p a c i t y " ? " p x " : " " ; h . c u s t o m ( c , g , j ) } } , c s s : f u n c t i o n ( a , c ) { i f ( d o c u m e n t . d e f a u l t V i e w ) { r e t u r n   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 ( a , n u l l ) . g e t P r o p e r t y V a l u e ( c ) } e l s e { i f ( c = = " o p a c i t y " ) { c = " f i l t e r " } v a r   b = a . c u r r e n t S t y l e [ c . r e p l a c e ( / \ - ( \ w ) / g , f u n c t i o n ( e , d ) { r e t u r n   d . t o U p p e r C a s e ( ) } ) ] ; i f ( c = = " f i l t e r " ) { b = b . r e p l a c e ( / a l p h a \ ( o p a c i t y = ( [ 0 - 9 ] + ) \ ) / , f u n c t i o n ( e , d ) { r e t u r n   d / 1 0 0 } ) } r e t u r n   b = = = " " ? 1 : b } } , g e t P a g e S i z e : f u n c t i o n ( ) { v a r   e = d o c u m e n t , i = w i n d o w , k = e . c o m p a t M o d e & & e . c o m p a t M o d e ! = " B a c k C o m p a t " ? e . d o c u m e n t E l e m e n t : e . b o d y ; v a r   g = e . b o d y ; v a r   l = ( i . i n n e r W i d t h & & i . s c r o l l M a x X ) ? i . i n n e r W i d t h + i . s c r o l l M a x X : M a t h . m a x ( g . s c r o l l W i d t h , g . o f f s e t W i d t h ) , f = ( i . i n n e r H e i g h t & & w i n d o w . s c r o l l M a x Y ) ? i . i n n e r H e i g h t + i . s c r o l l M a x Y : M a t h . m a x ( g . s c r o l l H e i g h t , g . o f f s e t H e i g h t ) , h = h s . i e ? k . s c r o l l W i d t h : ( e . d o c u m e n t E l e m e n t . c l i e n t W i d t h | | s e l f . i n n e r W i d t h ) , c = h s . i e ? M a t h . m a x ( k . s c r o l l H e i g h t , k . c l i e n t H e i g h t ) : ( e . d o c u m e n t E l e m e n t . c l i e n t H e i g h t | | s e l f . i n n e r H e i g h t ) ; v a r   a = h s . i e ? k . c l i e n t W i d t h : ( e . d o c u m e n t E l e m e n t . c l i e n t W i d t h | | s e l f . i n n e r W i d t h ) , j = h s . i e ? k . c l i e n t H e i g h t : s e l f . i n n e r H e i g h t ; h s . p a g e = { p a g e W i d t h : M a t h . m a x ( h , l ) , p a g e H e i g h t : M a t h . m a x ( c , f ) , w i d t h : a , h e i g h t : j , s c r o l l L e f t : h s . i e ? k . s c r o l l L e f t : p a g e X O f f s e t , s c r o l l T o p : h s . i e ? k . s c r o l l T o p : p a g e Y O f f s e t } } , g e t P o s i t i o n : f u n c t i o n ( c ) { i f ( / a r e a / i . t e s t ( c . t a g N a m e ) ) { v a r   e = 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 ( " i m g " ) ; f o r ( v a r   b = 0 ; b < e . l e n g t h ; b + + ) { v a r   a = e [ b ] . u s e M a p ; i f ( a & & a . r e p l a c e ( / ^ . * ? # / , " " ) = = c . p a r e n t N o d e . n a m e ) { c = e [ b ] ; b r e a k } } } v a r   d = { x : c . o f f s e t L e f t , y : c . o f f s e t T o p } ; w h i l e ( c . o f f s e t P a r e n t ) { c = c . o f f s e t P a r e n t ; d . x + = c . o f f s e t L e f t ; d . y + = c . o f f s e t T o p ; i f ( c ! = d o c u m e n t . b o d y & & c ! = d o c u m e n t . d o c u m e n t E l e m e n t ) { d . x - = c . s c r o l l L e f t ; d . y - = c . s c r o l l T o p } } r e t u r n   d } , e x p a n d : f u n c t i o n ( b , h , f , d ) { i f ( ! b ) { b = h s . c r e a t e E l e m e n t ( " a " , n u l l , { d i s p l a y : " n o n e " } , h s . c o n t a i n e r ) } i f ( t y p e o f   b . g e t P a r a m s = = " f u n c t i o n " ) { r e t u r n   h } i f ( d = = " h t m l " ) { f o r ( v a r   c = 0 ; c < h s . s l e e p i n g . l e n g t h ; c + + ) { i f ( h s . s l e e p i n g [ c ] & & h s . s l e e p i n g [ c ] . a = = b ) { h s . s l e e p i n g [ c ] . a w a k e ( ) ; h s . s l e e p i n g [ c ] = n u l l ; r e t u r n   f a l s e } } h s . h a s H t m l E x p a n d e r s = t r u e } t r y { n e w   h s . E x p a n d e r ( b , h , f , d ) ; r e t u r n   f a l s e } c a t c h ( g ) { r e t u r n   t r u e } } , h t m l E x p a n d : f u n c t i o n ( b , d , c ) { r e t u r n   h s . e x p a n d ( b , d , c , " h t m l " ) } , g e t S e l f R e n d e r e d : f u n c t i o n ( ) { r e t u r n   h s . c r e a t e E l e m e n t ( " d i v " , { c l a s s N a m e : " h i g h s l i d e - h t m l - c o n t e n t " , i n n e r H T M L : h s . r e p l a c e L a n g ( h s . s k i n . c o n t e n t W r a p p e r ) } ) } , g e t E l e m e n t B y C l a s s : f u n c t i o n ( e , c , d ) { v a r   b = e . g e t E l e m e n t s B y T a g N a m e ( c ) ; f o r ( v a r   a = 0 ; a < b . l e n g t h ; a + + ) { i f ( ( n e w   R e g E x p ( d ) ) . t e s t ( b [ a ] . c l a s s N a m e ) ) { r e t u r n   b [ a ] } } r e t u r n   n u l l } , r e p l a c e L a n g : f u n c t i o n ( c ) { c = c . r e p l a c e ( / \ s / g , "   " ) ; v a r   b = / { h s \ . l a n g \ . ( [ ^ } ] + ) \ } / g , d = c . m a t c h ( b ) , e ; i f ( d ) { f o r ( v a r   a = 0 ; a < d . l e n g t h ; a + + ) { e = d [ a ] . r e p l a c e ( b , " $ 1 " ) ; i f ( t y p e o f   h s . l a n g [ e ] ! = " u n d e f i n e d " ) { c = c . r e p l a c e ( d [ a ] , h s . l a n g [ e ] ) } } } r e t u r n   c } , s e t C l i c k E v e n t s : f u n c t i o n ( ) { v a r   b = 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 ( " a " ) ; f o r ( v a r   a = 0 ; a < b . l e n g t h ; a + + ) { v a r   c = h s . i s U n o b t r u s i v e A n c h o r ( b [ a ] ) ; i f ( c & & ! b [ a ] . h s H a s S e t C l i c k ) { ( f u n c t i o n ( ) { v a r   d = c ; i f ( h s . f i r e E v e n t ( h s , " o n S e t C l i c k E v e n t " , { e l e m e n t : b [ a ] , t y p e : d } ) ) { b [ a ] . o n c l i c k = ( c = = " i m a g e " ) ? f u n c t i o n ( ) { r e t u r n   h s . e x p a n d ( t h i s ) } : f u n c t i o n ( ) { r e t u r n   h s . h t m l E x p a n d ( t h i s , { o b j e c t T y p e : d } ) } } } ) ( ) ; b [ a ] . h s H a s S e t C l i c k = t r u e } } h s . g e t A n c h o r s ( ) } , i s U n o b t r u s i v e A n c h o r : f u n c t i o n ( a ) { i f ( a . r e l = = " h i g h s l i d e " ) { r e t u r n " i m a g e " } e l s e { i f ( a . r e l = = " h i g h s l i d e - a j a x " ) { r e t u r n " a j a x " } e l s e { i f ( a . r e l = = " h i g h s l i d e - i f r a m e " ) { r e t u r n " i f r a m e " } e l s e { i f ( a . r e l = = " h i g h s l i d e - s w f " ) { r e t u r n " s w f " } } } } } , g e t C a c h e B i n d i n g : f u n c t i o n ( b ) { f o r ( v a r   d = 0 ; d < h s . c a c h e B i n d i n g s . l e n g t h ; d + + ) { i f ( h s . c a c h e B i n d i n g s [ d ] [ 0 ] = = b ) { v a r   e = h s . c a c h e B i n d i n g s [ d ] [ 1 ] ; h s . c a c h e B i n d i n g s [ d ] [ 1 ] = e . c l o n e N o d e ( 1 ) ; r e t u r n   e } } r e t u r n   n u l l } , p r e l o a d A j a x : f u n c t i o n ( f ) { v a r   b = h s . g e t A n c h o r s ( ) ; f o r ( v a r   d = 0 ; d < b . h t m l s . l e n g t h ; d + + ) { v a r   c = b . h t m l s [ d ] ; i f ( h s . g e t P a r a m ( c , " o b j e c t T y p e " ) = = " a j a x " & & h s . g e t P a r a m ( c , " c a c h e A j a x " ) ) { h s . p u s h ( h s . p r e l o a d T h e s e A j a x , c ) } } h s . p r e l o a d A j a x E l e m e n t ( 0 ) } , p r e l o a d A j a x E l e m e n t : f u n c t i o n ( d ) { i f ( ! h s . p r e l o a d T h e s e A j a x [ d ] ) { r e t u r n } v a r   b = h s . p r e l o a d T h e s e A j a x [ d ] ; v a r   c = h s . g e t N o d e ( h s . g e t P a r a m ( b , " c o n t e n t I d " ) ) ; i f ( ! c ) { c = h s . g e t S e l f R e n d e r e d ( ) } v a r   e = n e w   h s . A j a x ( b , c , 1 ) ; e . o n E r r o r = f u n c t i o n ( ) { } ; e . o n L o a d = f u n c t i o n ( ) { h s . p u s h ( h s . c a c h e B i n d i n g s , [ b , c ] ) ; h s . p r e l o a d A j a x E l e m e n t ( d + 1 ) } ; e . r u n ( ) } , f o c u s T o p m o s t : f u n c t i o n ( ) { v a r   c = 0 , b = - 1 , a = h s . e x p a n d e r s , e , f ; f o r ( v a r   d = 0 ; d < a . l e n g t h ; d + + ) { e = a [ d ] ; i f ( e ) { f = e . w r a p p e r . s t y l e . z I n d e x ; i f ( f & & f > c ) { c = f ; b = d } } } i f ( b = = - 1 ) { h s . f o c u s K e y = - 1 } e l s e { a [ b ] . f o c u s ( ) } } , g e t P a r a m : f u n c t i o n ( b , d ) { b . g e t P a r a m s = b . o n c l i c k ; v a r   c = b . g e t P a r a m s ? b . g e t P a r a m s ( ) : n u l l ; b . g e t P a r a m s = n u l l ; r e t u r n ( c & & t y p e o f   c [ d ] ! = " u n d e f i n e d " ) ? c [ d ] : ( t y p e o f   h s [ d ] ! = " u n d e f i n e d " ? h s [ d ] : n u l l ) } , g e t S r c : f u n c t i o n ( b ) { v a r   c = h s . g e t P a r a m ( b , " s r c " ) ; i f ( c ) { r e t u r n   c } r e t u r n   b . h r e f } , g e t N o d e : f u n c t i o n ( e ) { v a r   c = h s . $ ( e ) , d = h s . c l o n e s [ e ] , b = { } ; i f ( ! c & & ! d ) { r e t u r n   n u l l } i f ( ! d ) { d = c . c l o n e N o d e ( t r u e ) ; d . i d = " " ; h s . c l o n e s [ e ] = d ; r e t u r n   c } e l s e { r e t u r n   d . c l o n e N o d e ( t r u e ) } } , d i s c a r d E l e m e n t : f u n c t i o n ( a ) { i f ( a ) { h s . g a r b a g e B i n . a p p e n d C h i l d ( a ) } h s . g a r b a g e B i n . i n n e r H T M L = " " } , d i m : f u n c t i o n ( a ) { i f ( ! h s . d i m m e r ) { h s . d i m m e r = h s . c r e a t e E l e m e n t ( " d i v " , { c l a s s N a m e : " h i g h s l i d e - d i m m i n g " , o w n e r : " " , o n c l i c k : f u n c t i o n ( ) { i f ( h s . f i r e E v e n t ( h s , " o n D i m m e r C l i c k " ) ) { h s . c l o s e ( ) } } } , { p o s i t i o n : " a b s o l u t e " , v i s i b i l i t y : " v i s i b l e " , l e f t : 0 , o p a c i t y : 0 } , h s . c o n t a i n e r , t r u e ) ; h s . a d d E v e n t L i s t e n e r ( w i n d o w , " r e s i z e " , h s . s e t D i m m e r S i z e ) } h s . d i m m e r . s t y l e . d i s p l a y = " " ; h s . s e t D i m m e r S i z e ( ) ; h s . d i m m e r . o w n e r + = " | " + a . k e y ; i f ( h s . g e c k o M a c & & h s . d i m m i n g G e c k o F i x ) { h s . s e t S t y l e s ( h s . d i m m e r , { b a c k g r o u n d : " u r l ( " + h s . g r a p h i c s D i r + " g e c k o d i m m e r . p n g ) " , o p a c i t y : 1 } ) } e l s e { h s . a n i m a t e ( h s . d i m m e r , { o p a c i t y : a . d i m m i n g O p a c i t y } , h s . d i m m i n g D u r a t i o n ) } } , u n d i m : f u n c t i o n ( a ) { i f ( ! h s . d i m m e r ) { r e t u r n } i f ( t y p e o f   a ! = " u n d e f i n e d " ) { h s . d i m m e r . o w n e r = h s . d i m m e r . o w n e r . r e p l a c e ( " | " + a , " " ) } i f ( ( t y p e o f   a ! = " u n d e f i n e d " & & h s . d i m m e r . o w n e r ! = " " ) | | ( h s . u p c o m i n g & & h s . g e t P a r a m ( h s . u p c o m i n g , " d i m m i n g O p a c i t y " ) ) ) { r e t u r n } i f ( h s . g e c k o M a c & & h s . d i m m i n g G e c k o F i x ) { h s . s e t S t y l e s ( h s . d i m m e r , { b a c k g r o u n d : " n o n e " , w i d t h : 0 , h e i g h t : 0 } ) } e l s e { h s . a n i m a t e ( h s . d i m m e r , { o p a c i t y : 0 } , h s . d i m m i n g D u r a t i o n , n u l l , f u n c t i o n ( ) { h s . s e t S t y l e s ( h s . d i m m e r , { d i s p l a y : " n o n e " , w i d t h : 0 , h e i g h t : 0 } ) } ) } } , s e t D i m m e r S i z e : f u n c t i o n ( b ) { h s . g e t P a g e S i z e ( ) ; i f ( ! h s . d i m m e r ) { r e t u r n } v a r   a = ( h s . i e & & b & & b . w r a p p e r ) ? p a r s e I n t ( b . w r a p p e r . s t y l e . t o p ) + p a r s e I n t ( b . w r a p p e r . s t y l e . h e i g h t ) + ( b . o u t l i n e ? b . o u t l i n e . o f f s e t : 0 ) : 0 ; h s . s e t S t y l e s ( h s . d i m m e r , { w i d t h : h s . p a g e . p a g e W i d t h + " p x " , h e i g h t : M a t h . m a x ( h s . p a g e . p a g e H e i g h t , a ) + " p x " } ) } , t r a n s i t : f u n c t i o n ( a , d ) { v a r   b = d = d | | h s . g e t E x p a n d e r ( ) ; i f ( h s . u p c o m i n g ) { r e t u r n   f a l s e } e l s e { h s . l a s t = b } t r y { h s . u p c o m i n g = a ; a . o n c l i c k ( ) } c a t c h ( c ) { h s . l a s t = h s . u p c o m i n g = n u l l } t r y { i f ( ! a | | d . t r a n s i t i o n s [ 1 ] ! = " c r o s s f a d e " ) { d . c l o s e ( ) } } c a t c h ( c ) { } r e t u r n   f a l s e } , p r e v i o u s O r N e x t : f u n c t i o n ( a , c ) { v a r   b = h s . g e t E x p a n d e r ( a ) ; i f ( b ) { a d j = b . g e t A d j a c e n t A n c h o r ( c ) ; r e t u r n   h s . t r a n s i t ( a d j , b ) } e l s e { r e t u r n   f a l s e } } , p r e v i o u s : f u n c t i o n ( a ) { r e t u r n   h s . p r e v i o u s O r N e x t ( a , - 1 ) } , n e x t : f u n c t i o n ( a ) { r e t u r n   h s . p r e v i o u s O r N e x t ( a , 1 ) } , k e y H a n d l e r : f u n c t i o n ( a ) { i f ( ! a ) { a = w i n d o w . e v e n t } i f ( ! a . t a r g e t ) { a . t a r g e t = a . s r c E l e m e n t } i f ( t y p e o f   a . t a r g e t . f o r m ! = " u n d e f i n e d " ) { r e t u r n   t r u e } i f ( ! h s . f i r e E v e n t ( h s , " o n K e y D o w n " , a ) ) { r e t u r n   t r u e } v a r   b = h s . g e t E x p a n d e r ( ) ; v a r   c = n u l l ; s w i t c h ( a . k e y C o d e ) { c a s e   7 0 : i f ( b ) { b . d o F u l l E x p a n d ( ) } r e t u r n   t r u e ; c a s e   3 2 : c = 2 ; b r e a k ; c a s e   3 4 : c a s e   3 9 : c a s e   4 0 : c = 1 ; b r e a k ; c a s e   8 : c a s e   3 3 : c a s e   3 7 : c a s e   3 8 : c = - 1 ; b r e a k ; c a s e   2 7 : c a s e   1 3 : c = 0 } i f ( c ! = = n u l l ) { i f ( c ! = 2 ) { h s . r e m o v e E v e n t L i s t e n e r ( d o c u m e n t , w i n d o w . o p e r a ? " k e y p r e s s " : " k e y d o w n " , h s . k e y H a n d l e r ) } i f ( ! h s . e n a b l e K e y L i s t e n e r ) { r e t u r n   t r u e } i f ( a . p r e v e n t D e f a u l t ) { a . p r e v e n t D e f a u l t ( ) } e l s e { a . r e t u r n V a l u e = f a l s e } i f ( b ) { i f ( c = = 0 ) { b . c l o s e ( ) } e l s e { i f ( c = = 2 ) { i f ( b . s l i d e s h o w ) { b . s l i d e s h o w . h i t S p a c e ( ) } } e l s e { i f ( b . s l i d e s h o w ) { b . s l i d e s h o w . p a u s e ( ) } h s . p r e v i o u s O r N e x t ( b . k e y , c ) } } r e t u r n   f a l s e } } r e t u r n   t r u e } , r e g i s t e r O v e r l a y : f u n c t i o n ( a ) { h s . p u s h ( h s . o v e r l a y s , h s . e x t e n d ( a , { h s I d : " h s I d " + h s . i d C o u n t e r + + } ) ) } , a d d S l i d e s h o w : f u n c t i o n ( b ) { v a r   d = b . s l i d e s h o w G r o u p ; i f ( t y p e o f   d = = " o b j e c t " ) { f o r ( v a r   c = 0 ; c < d . l e n g t h ; c + + ) { v a r   e = { } ; f o r ( v a r   a   i n   b ) { e [ a ] = b [ a ] } e . s l i d e s h o w G r o u p = d [ c ] ; h s . p u s h ( h s . s l i d e s h o w s , e ) } } e l s e { h s . p u s h ( h s . s l i d e s h o w s , b ) } } , g e t W r a p p e r K e y : f u n c t i o n ( c , b ) { v a r   e , d = / ^ h i g h s l i d e - w r a p p e r - ( [ 0 - 9 ] + ) $ / ; e = c ; w h i l e ( e . p a r e n t N o d e ) { i f ( e . h s K e y ! = = u n d e f i n e d ) { r e t u r n   e . h s K e y } i f ( e . i d & & d . t e s t ( e . i d ) ) { r e t u r n   e . i d . r e p l a c e ( d , " $ 1 " ) } e = e . p a r e n t N o d e } i f ( ! b ) { e = c ; w h i l e ( e . p a r e n t N o d e ) { i f ( e . t a g N a m e & & h s . i s H s A n c h o r ( e ) ) { f o r ( v a r   a = 0 ; a < h s . e x p a n d e r s . l e n g t h ; a + + ) { v a r   f = h s . e x p a n d e r s [ a ] ; i f ( f & & f . a = = e ) { r e t u r n   a } } } e = e . p a r e n t N o d e } } r e t u r n   n u l l } , g e t E x p a n d e r : f u n c t i o n ( b , a ) { i f ( t y p e o f   b = = " u n d e f i n e d " ) { r e t u r n   h s . e x p a n d e r s [ h s . f o c u s K e y ] | | n u l l } i f ( t y p e o f   b = = " n u m b e r " ) { r e t u r n   h s . e x p a n d e r s [ b ] | | n u l l } i f ( t y p e o f   b = = " s t r i n g " ) { b = h s . $ ( b ) } r e t u r n   h s . e x p a n d e r s [ h s . g e t W r a p p e r K e y ( b , a ) ] | | n u l l } , i s H s A n c h o r : f u n c t i o n ( b ) { r e t u r n ( b . o n c l i c k & & b . o n c l i c k . t o S t r i n g ( ) . r e p l a c e ( / \ s / g , "   " ) . m a t c h ( / h s . ( h t m l E | e ) x p a n d / ) ) } , r e O r d e r : f u n c t i o n ( ) { f o r ( v a r   a = 0 ; a < h s . e x p a n d e r s . l e n g t h ; a + + ) { i f ( h s . e x p a n d e r s [ a ] & & h s . e x p a n d e r s [ a ] . i s E x p a n d e d ) { h s . f o c u s T o p m o s t ( ) } } } , f i r e E v e n t : f u n c t i o n ( c , a , b ) { r e t u r n   c & & c [ a ] ? ( c [ a ] ( c , b ) ! = = f a l s e ) : t r u e } , m o u s e C l i c k H a n d l e r : f u n c t i o n ( d ) { i f ( ! d ) { d = w i n d o w . e v e n t } i f ( d . b u t t o n > 1 ) { r e t u r n   t r u e } i f ( ! d . t a r g e t ) { d . t a r g e t = d . s r c E l e m e n t } v a r   b = d . t a r g e t ; w h i l e ( b . p a r e n t N o d e & & ! ( / h i g h s l i d e - ( i m a g e | m o v e | h t m l | r e s i z e ) / . t e s t ( b . c l a s s N a m e ) ) ) { b = b . p a r e n t N o d e } v a r   f = h s . g e t E x p a n d e r ( b ) ; i f ( f & & ( f . i s C l o s i n g | | ! f . i s E x p a n d e d ) ) { r e t u r n   t r u e } i f ( f & & d . t y p e = = " m o u s e d o w n " ) { i f ( d . t a r g e t . f o r m ) { r e t u r n   t r u e } v a r   a = b . c l a s s N a m e . m a t c h ( / h i g h s l i d e - ( i m a g e | m o v e | r e s i z e ) / ) ; i f ( a ) { h s . d r a g A r g s = { e x p : f , t y p e : a [ 1 ] , l e f t : f . x . p o s , w i d t h : f . x . s i z e , t o p : f . y . p o s , h e i g h t : f . y . s i z e , c l i c k X : d . c l i e n t X , c l i c k Y : d . c l i e n t Y } ; h s . a d d E v e n t L i s t e n e r ( d o c u m e n t , " m o u s e m o v e " , h s . d r a g H a n d l e r ) ; i f ( d . p r e v e n t D e f a u l t ) { d . p r e v e n t D e f a u l t ( ) } i f ( / h i g h s l i d e - ( i m a g e | h t m l ) - b l u r / . t e s t ( f . c o n t e n t . c l a s s N a m e ) ) { f . f o c u s ( ) ; h s . h a s F o c u s e d = t r u e } r e t u r n   f a l s e } e l s e { i f ( / h i g h s l i d e - h t m l / . t e s t ( b . c l a s s N a m e ) & & h s . f o c u s K e y ! = f . k e y ) { f . f o c u s ( ) ; f . d o S h o w H i d e ( " h i d d e n " ) } } } e l s e { i f ( d . t y p e = = " m o u s e u p " ) { h s . r e m o v e E v e n t L i s t e n e r ( d o c u m e n t , " m o u s e m o v e " , h s . d r a g H a n d l e r ) ; i f ( h s . d r a g A r g s ) { i f ( h s . s t y l e R e s t o r e C u r s o r & & h s . d r a g A r g s . t y p e = = " i m a g e " ) { h s . d r a g A r g s . e x p . c o n t e n t . s t y l e . c u r s o r = h s . s t y l e R e s t o r e C u r s o r } v a r   c = h s . d r a g A r g s . h a s D r a g g e d ; i f ( ! c & & ! h s . h a s F o c u s e d & & ! / ( m o v e | r e s i z e ) / . t e s t ( h s . d r a g A r g s . t y p e ) ) { i f ( h s . f i r e E v e n t ( f , " o n I m a g e C l i c k " ) ) { f . c l o s e ( ) } } e l s e { i f ( c | | ( ! c & & h s . h a s H t m l E x p a n d e r s ) ) { h s . d r a g A r g s . e x p . d o S h o w H i d e ( " h i d d e n " ) } } i f ( h s . d r a g A r g s . e x p . r e l e a s e M a s k ) { h s . d r a g A r g s . e x p . r e l e a s e M a s k . s t y l e . d i s p l a y = " n o n e " } i f ( c ) { h s . f i r e E v e n t ( h s . d r a g A r g s . e x p , " o n D r o p " , h s . d r a g A r g s ) } i f ( c ) { h s . s e t D i m m e r S i z e ( f ) } h s . h a s F o c u s e d = f a l s e ; h s . d r a g A r g s = n u l l } e l s e { i f ( / h i g h s l i d e - i m a g e - b l u r / . t e s t ( b . c l a s s N a m e ) ) { b . s t y l e . c u r s o r = h s . s t y l e R e s t o r e C u r s o r } } } } r e t u r n   f a l s e } , d r a g H a n d l e r : f u n c t i o n ( c ) { i f ( ! h s . d r a g A r g s ) { r e t u r n   t r u e } i f ( ! c ) { c = w i n d o w . e v e n t } v a r   b = h s . d r a g A r g s , d = b . e x p ; i f ( d . i f r a m e ) { i f ( ! d . r e l e a s e M a s k ) { d . r e l e a s e M a s k = h s . c r e a t e E l e m e n t ( " d i v " , n u l l , { p o s i t i o n : " a b s o l u t e " , w i d t h : d . x . s i z e + " p x " , h e i g h t : d . y . s i z e + " p x " , l e f t : d . x . c b + " p x " , t o p : d . y . c b + " p x " , z I n d e x : 4 , b a c k g r o u n d : ( h s . i e ? " w h i t e " : " n o n e " ) , o p a c i t y : 0 . 0 1 } , d . w r a p p e r , t r u e ) } i f ( d . r e l e a s e M a s k . s t y l e . d i s p l a y = = " n o n e " ) { d . r e l e a s e M a s k . s t y l e . d i s p l a y = " " } } b . d X = c . c l i e n t X - b . c l i c k X ; b . d Y = c . c l i e n t Y - b . c l i c k Y ; v a r   f = M a t h . s q r t ( M a t h . p o w ( b . d X , 2 ) + M a t h . p o w ( b . d Y , 2 ) ) ; i f ( ! b . h a s D r a g g e d ) { b . h a s D r a g g e d = ( b . t y p e ! = " i m a g e " & & f > 0 ) | | ( f > ( h s . d r a g S e n s i t i v i t y | | 5 ) ) } i f ( b . h a s D r a g g e d & & c . c l i e n t X > 5 & & c . c l i e n t Y > 5 ) { i f ( ! h s . f i r e E v e n t ( d , " o n D r a g " , b ) ) { r e t u r n   f a l s e } i f ( b . t y p e = = " r e s i z e " ) { d . r e s i z e ( b ) } e l s e { d . m o v e T o ( b . l e f t + b . d X , b . t o p + b . d Y ) ; i f ( b . t y p e = = " i m a g e " ) { d . c o n t e n t . s t y l e . c u r s o r = " m o v e " } } } r e t u r n   f a l s e } , w r a p p e r M o u s e H a n d l e r : f u n c t i o n ( c ) { t r y { i f ( ! c ) { c = w i n d o w . e v e n t } v a r   b = / m o u s e o v e r / i . t e s t ( c . t y p e ) ; i f ( ! c . t a r g e t ) { c . t a r g e t = c . s r c E l e m e n t } i f ( h s . i e ) { c . r e l a t e d T a r g e t = b ? c . f r o m E l e m e n t : c . t o E l e m e n t } v a r   d = h s . g e t E x p a n d e r ( c . t a r g e t ) ; i f ( ! d . i s E x p a n d e d ) { r e t u r n } i f ( ! d | | ! c . r e l a t e d T a r g e t | | h s . g e t E x p a n d e r ( c . r e l a t e d T a r g e t , t r u e ) = = d | | h s . d r a g A r g s ) { r e t u r n } h s . f i r e E v e n t ( d , b ? " o n M o u s e O v e r " : " o n M o u s e O u t " , c ) ; f o r ( v a r   a = 0 ; a < d . o v e r l a y s . l e n g t h ; a + + ) { ( f u n c t i o n ( ) { v a r   e = h s . $ ( " h s I d " + d . o v e r l a y s [ a ] ) ; i f ( e & & e . h i d e O n M o u s e O u t ) { i f ( b ) { h s . s e t S t y l e s ( e , { v i s i b i l i t y : " v i s i b l e " , d i s p l a y : " " } ) } h s . a n i m a t e ( e , { o p a c i t y : b ? e . o p a c i t y : 0 } , e . d u r ) } } ) ( ) } } c a t c h ( c ) { } } , a d d E v e n t L i s t e n e r : f u n c t i o n ( a , c , b ) { i f ( a = = d o c u m e n t & & c = = " r e a d y " ) { h s . p u s h ( h s . o n R e a d y , b ) } t r y { a . a d d E v e n t L i s t e n e r ( c , b , f a l s e ) } c a t c h ( d ) { t r y { a . d e t a c h E v e n t ( " o n " + c , b ) ; a . a t t a c h E v e n t ( " o n " + c , b ) } c a t c h ( d ) { a [ " o n " + c ] = b } } } , r e m o v e E v e n t L i s t e n e r : f u n c t i o n ( a , c , b ) { t r y { a . r e m o v e E v e n t L i s t e n e r ( c , b , f a l s e ) } c a t c h ( d ) { t r y { a . d e t a c h E v e n t ( " o n " + c , b ) } c a t c h ( d ) { a [ " o n " + c ] = n u l l } } } , p r e l o a d F u l l I m a g e : f u n c t i o n ( b ) { i f ( h s . c o n t i n u e P r e l o a d i n g & & h s . p r e l o a d T h e s e I m a g e s [ b ] & & h s . p r e l o a d T h e s e I m a g e s [ b ] ! = " u n d e f i n e d " ) { v a r   a = d o c u m e n t . c r e a t e E l e m e n t ( " i m g " ) ; a . o n l o a d = f u n c t i o n ( ) { a = n u l l ; h s . p r e l o a d F u l l I m a g e ( b + 1 ) } ; a . s r c = h s . p r e l o a d T h e s e I m a g e s [ b ] } } , p r e l o a d I m a g e s : f u n c t i o n ( c ) { i f ( c & & t y p e o f   c ! = " o b j e c t " ) { h s . n u m b e r O f I m a g e s T o P r e l o a d = c } v a r   a = h s . g e t A n c h o r s ( ) ; f o r ( v a r   b = 0 ; b < a . i m a g e s . l e n g t h & & b < h s . n u m b e r O f I m a g e s T o P r e l o a d ; b + + ) { h s . p u s h ( h s . p r e l o a d T h e s e I m a g e s , h s . g e t S r c ( a . i m a g e s [ b ] ) ) } i f ( h s . o u t l i n e T y p e ) { n e w   h s . O u t l i n e ( h s . o u t l i n e T y p e , f u n c t i o n ( ) { h s . p r e l o a d F u l l I m a g e ( 0 ) } ) } e l s e { h s . p r e l o a d F u l l I m a g e ( 0 ) } i f ( h s . r e s t o r e C u r s o r ) { v a r   d = h s . c r e a t e E l e m e n t ( " i m g " , { s r c : h s . g r a p h i c s D i r + h s . r e s t o r e C u r s o r } ) } } , i n i t : f u n c t i o n ( ) { i f ( ! h s . c o n t a i n e r ) { h s . g e t P a g e S i z e ( ) ; h s . i e L t 7 = h s . i e & & h s . u a V e r s i o n < 7 ; h s . i e 6 S S L = h s . i e L t 7 & & l o c a t i o n . p r o t o c o l = = " h t t p s : " ; f o r ( v a r   a   i n   h s . l a n g D e f a u l t s ) { i f ( t y p e o f   h s [ a ] ! = " u n d e f i n e d " ) { h s . l a n g [ a ] = h s [ a ] } e l s e { i f ( t y p e o f   h s . l a n g [ a ] = = " u n d e f i n e d " & & t y p e o f   h s . l a n g D e f a u l t s [ a ] ! = " u n d e f i n e d " ) { h s . l a n g [ a ] = h s . l a n g D e f a u l t s [ a ] } } } h s . c o n t a i n e r = h s . c r e a t e E l e m e n t ( " d i v " , { c l a s s N a m e : " h i g h s l i d e - c o n t a i n e r " } , { p o s i t i o n : " a b s o l u t e " , l e f t : 0 , t o p : 0 , w i d t h : " 1 0 0 % " , z I n d e x : h s . z I n d e x C o u n t e r , d i r e c t i o n : " l t r " } , d o c u m e n t . b o d y , t r u e ) ; h s . l o a d i n g = h s . c r e a t e E l e m e n t ( " a " , { c l a s s N a m e : " h i g h s l i d e - l o a d i n g " , t i t l e : h s . l a n g . l o a d i n g T i t l e , i n n e r H T M L : h s . l a n g . l o a d i n g T e x t , h r e f : " j a v a s c r i p t : ; " } , { p o s i t i o n : " a b s o l u t e " , t o p : " - 9 9 9 9 p x " , o p a c i t y : h s . l o a d i n g O p a c i t y , z I n d e x : 1 } , h s . c o n t a i n e r ) ; h s . g a r b a g e B i n = h s . c r e a t e E l e m e n t ( " d i v " , n u l l , { d i s p l a y : " n o n e " } , h s . c o n t a i n e r ) ; h s . v i e w p o r t = h s . c r e a t e E l e m e n t ( " d i v " , { c l a s s N a m e : " h i g h s l i d e - v i e w p o r t " } , { v i s i b i l i t y : ( h s . s a f a r i & & h s . u a V e r s i o n < 5 2 5 ) ? " v i s i b l e " : " h i d d e n " } , h s . c o n t a i n e r , 1 ) ; h s . c l e a r i n g = h s . c r e a t e E l e m e n t ( " d i v " , n u l l , { c l e a r : " b o t h " , p a d d i n g T o p : " 1 p x " } , n u l l , t r u e ) ; M a t h . l i n e a r T w e e n = f u n c t i o n ( f , e , h , g ) { r e t u r n   h * f / g + e } ; M a t h . e a s e I n Q u a d = f u n c t i o n ( f , e , h , g ) { r e t u r n   h * ( f / = g ) * f + e } ; M a t h . e a s e O u t Q u a d = f u n c t i o n ( f , e , h , g ) { r e t u r n   - h * ( f / = g ) * ( f - 2 ) + e } ; h s . h i d e S e l e c t s = h s . i e L t 7 ; h s . h i d e I f r a m e s = ( ( w i n d o w . o p e r a & & h s . u a V e r s i o n < 9 ) | | n a v i g a t o r . v e n d o r = = " K D E " | | ( h s . i e & & h s . u a V e r s i o n < 5 . 5 ) ) ; h s . f i r e E v e n t ( t h i s , " o n A c t i v a t e " ) } } , r e a d y : f u n c t i o n ( ) { i f ( h s . i s R e a d y ) { r e t u r n } h s . i s R e a d y = t r u e ; f o r ( v a r   a = 0 ; a < h s . o n R e a d y . l e n g t h ; a + + ) { h s . o n R e a d y [ a ] ( ) } } , u p d a t e A n c h o r s : f u n c t i o n ( ) { v a r   a , d , l = [ ] , h = [ ] , k = [ ] , b = { } , n ; f o r ( v a r   e = 0 ; e < h s . o p e n e r T a g N a m e s . l e n g t h ; e + + ) { d = 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 ( h s . o p e n e r T a g N a m e s [ e ] ) ; f o r ( v a r   c = 0 ; c < d . l e n g t h ; c + + ) { a = d [ c ] ; n = h s . i s H s A n c h o r ( a ) ; i f ( n ) { h s . p u s h ( l , a ) ; i f ( n [ 0 ] = = " h s . e x p a n d " ) { h s . p u s h ( h , a ) } e l s e { i f ( n [ 0 ] = = " h s . h t m l E x p a n d " ) { h s . p u s h ( k , a ) } } v a r   f = h s . g e t P a r a m ( a , " s l i d e s h o w G r o u p " ) | | " n o n e " ; i f ( ! b [ f ] ) { b [ f ] = [ ] } h s . p u s h ( b [ f ] , a ) } } } h s . a n c h o r s = { a l l : l , g r o u p s : b , i m a g e s : h , h t m l s : k } ; r e t u r n   h s . a n c h o r s } , g e t A n c h o r s : f u n c t i o n ( ) { r e t u r n   h s . a n c h o r s | | h s . u p d a t e A n c h o r s ( ) } , c l o s e : f u n c t i o n ( a ) { v a r   b = h s . g e t E x p a n d e r ( a ) ; i f ( b ) { b . c l o s e ( ) } r e t u r n   f a l s e } } ; h s . f x = f u n c t i o n ( b , a , c ) { t h i s . o p t i o n s = a ; t h i s . e l e m = b ; t h i s . p r o p = c ; i f ( ! a . o r i g ) { a . o r i g = { } } } ; h s . f x . p r o t o t y p e = { u p d a t e : f u n c t i o n ( ) { ( h s . f x . s t e p [ t h i s . p r o p ] | | h s . f x . s t e p . _ d e f a u l t ) ( t h i s ) ; i f ( t h i s . o p t i o n s . s t e p ) { t h i s . o p t i o n s . s t e p . c a l l ( t h i s . e l e m , t h i s . n o w , t h i s ) } } , c u s t o m : f u n c t i o n ( e , d , c ) { t h i s . s t a r t T i m e = ( n e w   D a t e ( ) ) . g e t T i m e ( ) ; t h i s . s t a r t = e ; t h i s . e n d = d ; t h i s . u n i t = c ; t h i s . n o w = t h i s . s t a r t ; t h i s . p o s = t h i s . s t a t e = 0 ; v a r   a = t h i s ; f u n c t i o n   b ( f ) { r e t u r n   a . s t e p ( f ) } b . e l e m = t h i s . e l e m ; i f ( b ( ) & & h s . t i m e r s . p u s h ( b ) = = 1 ) { h s . t i m e r I d = s e t I n t e r v a l ( f u n c t i o n ( ) { v a r   g = h s . t i m e r s ; f o r ( v a r   f = 0 ; f < g . l e n g t h ; f + + ) { i f ( ! g [ f ] ( ) ) { g . s p l i c e ( f - - , 1 ) } } i f ( ! g . l e n g t h ) { c l e a r I n t e r v a l ( h s . t i m e r I d ) } } , 1 3 ) } } , s t e p : f u n c t i o n ( d ) { v a r   c = ( n e w   D a t e ( ) ) . g e t T i m e ( ) ; i f ( d | | c > = t h i s . o p t i o n s . d u r a t i o n + t h i s . s t a r t T i m e ) { t h i s . n o w = t h i s . e n d ; t h i s . p o s = t h i s . s t a t e = 1 ; t h i s . u p d a t e ( ) ; t h i s . o p t i o n s . c u r A n i m [ t h i s . p r o p ] = t r u e ; v a r   a = t r u e ; f o r ( v a r   b   i n   t h i s . o p t i o n s . c u r A n i m ) { i f ( t h i s . o p t i o n s . c u r A n i m [ b ] ! = = t r u e ) { a = f a l s e } } i f ( a ) { i f ( t h i s . o p t i o n s . c o m p l e t e ) { t h i s . o p t i o n s . c o m p l e t e . c a l l ( t h i s . e l e m ) } } r e t u r n   f a l s e } e l s e { v a r   e = c - t h i s . s t a r t T i m e ; t h i s . s t a t e = e / t h i s . o p t i o n s . d u r a t i o n ; t h i s . p o s = t h i s . o p t i o n s . e a s i n g ( e , 0 , 1 , t h i s . o p t i o n s . d u r a t i o n ) ; t h i s . n o w = t h i s . s t a r t + ( ( t h i s . e n d - t h i s . s t a r t ) * t h i s . p o s ) ; t h i s . u p d a t e ( ) } r e t u r n   t r u e } } ; h s . e x t e n d ( h s . f x , { s t e p : { o p a c i t y : f u n c t i o n ( a ) { h s . s e t S t y l e s ( a . e l e m , { o p a c i t y : a . n o w } ) } , _ d e f a u l t : f u n c t i o n ( a ) { i f ( a . e l e m . s t y l e & & a . e l e m . s t y l e [ a . p r o p ] ! = n u l l ) { a . e l e m . s t y l e [ a . p r o p ] = a . n o w + a . u n i t } e l s e { a . e l e m [ a . p r o p ] = a . n o w } } } } ) ; h s . O u t l i n e = f u n c t i o n ( g , e ) { t h i s . o n L o a d = e ; t h i s . o u t l i n e T y p e = g ; v a r   a = h s . u a V e r s i o n , f ; t h i s . h a s A l p h a I m a g e L o a d e r = h s . i e & & a > = 5 . 5 & & a < 7 ; i f ( ! g ) { i f ( e ) { e ( ) } r e t u r n } h s . i n i t ( ) ; t h i s . t a b l e = h s . c r e a t e E l e m e n t ( " t a b l e " , { c e l l S p a c i n g : 0 } , { v i s i b i l i t y : " h i d d e n " , p o s i t i o n : " a b s o l u t e " , b o r d e r C o l l a p s e : " c o l l a p s e " , w i d t h : 0 } , h s . c o n t a i n e r , t r u e ) ; v a r   b = h s . c r e a t e E l e m e n t ( " t b o d y " , n u l l , n u l l , t h i s . t a b l e , 1 ) ; t h i s . t d = [ ] ; f o r ( v a r   c = 0 ; c < = 8 ; c + + ) { i f ( c % 3 = = 0 ) { f = h s . c r e a t e E l e m e n t ( " t r " , n u l l , { h e i g h t : " a u t o " } , b , t r u e ) } t h i s . t d [ c ] = h s . c r e a t e E l e m e n t ( " t d " , n u l l , n u l l , f , t r u e ) ; v a r   d = c ! = 4 ? { l i n e H e i g h t : 0 , f o n t S i z e : 0 } : { p o s i t i o n : " r e l a t i v e " } ; h s . s e t S t y l e s ( t h i s . t d [ c ] , d ) } t h i s . t d [ 4 ] . c l a s s N a m e = g + "   h i g h s l i d e - o u t l i n e " ; t h i s . p r e l o a d G r a p h i c ( ) } ; h s . O u t l i n e . p r o t o t y p e = { p r e l o a d G r a p h i c : f u n c t i o n ( ) { v a r   b = h s . g r a p h i c s D i r + ( h s . o u t l i n e s D i r | | " o u t l i n e s / " ) + t h i s . o u t l i n e T y p e + " . p n g " ; v a r   a = h s . s a f a r i ? h s . c o n t a i n e r : n u l l ; t h i s . g r a p h i c = h s . c r e a t e E l e m e n t ( " i m g " , n u l l , { p o s i t i o n : " a b s o l u t e " , t o p : " - 9 9 9 9 p x " } , a , t r u e ) ; v a r   c = t h i s ; t h i s . g r a p h i c . o n l o a d = f u n c t i o n ( ) { c . o n G r a p h i c L o a d ( ) } ; t h i s . g r a p h i c . s r c = b } , o n G r a p h i c L o a d : f u n c t i o n ( ) { v a r   d = t h i s . o f f s e t = t h i s . g r a p h i c . w i d t h / 4 , f = [ [ 0 , 0 ] , [ 0 , - 4 ] , [ - 2 , 0 ] , [ 0 , - 8 ] , 0 , [ - 2 , - 8 ] , [ 0 , - 2 ] , [ 0 , - 6 ] , [ - 2 , - 2 ] ] , c = { h e i g h t : ( 2 * d ) + " p x " , w i d t h : ( 2 * d ) + " p x " } ; f o r ( v a r   b = 0 ; b < = 8 ; b + + ) { i f ( f [ b ] ) { i f ( t h i s . h a s A l p h a I m a g e L o a d e r ) { v a r   a = ( b = = 1 | | b = = 7 ) ? " 1 0 0 % " : t h i s . g r a p h i c . w i d t h + " p x " ; v a r   e = h s . c r e a t e E l e m e n t ( " d i v " , n u l l , { w i d t h : " 1 0 0 % " , h e i g h t : " 1 0 0 % " , p o s i t i o n : " r e l a t i v e " , o v e r f l o w : " h i d d e n " } , t h i s . t d [ b ] , t r u e ) ; h s . c r e a t e E l e m e n t ( " d i v " , n u l l , { f i l t e r : " p r o g i d : D X I m a g e T r a n s f o r m . M i c r o s o f t . A l p h a I m a g e L o a d e r ( s i z i n g M e t h o d = s c a l e ,   s r c = ' " + t h i s . g r a p h i c . s r c + " ' ) " , p o s i t i o n : " a b s o l u t e " , w i d t h : a , h e i g h t : t h i s . g r a p h i c . h e i g h t + " p x " , l e f t : ( f [ b ] [ 0 ] * d ) + " p x " , t o p : ( f [ b ] [ 1 ] * d ) + " p x " } , e , t r u e ) } e l s e { h s . s e t S t y l e s ( t h i s . t d [ b ] , { b a c k g r o u n d : " u r l ( " + t h i s . g r a p h i c . s r c + " )   " + ( f [ b ] [ 0 ] * d ) + " p x   " + ( f [ b ] [ 1 ] * d ) + " p x " } ) } i f ( w i n d o w . o p e r a & & ( b = = 3 | | b = = 5 ) ) { h s . c r e a t e E l e m e n t ( " d i v " , n u l l , c , t h i s . t d [ b ] , t r u e ) } h s . s e t S t y l e s ( t h i s . t d [ b ] , c ) } } t h i s . g r a p h i c = n u l l ; i f ( h s . p e n d i n g O u t l i n e s [ t h i s . o u t l i n e T y p e ] ) { h s . p e n d i n g O u t l i n e s [ t h i s . o u t l i n e T y p e ] . d e s t r o y ( ) } h s . p e n d i n g O u t l i n e s [ t h i s . o u t l i n e T y p e ] = t h i s ; i f ( t h i s . o n L o a d ) { t h i s . o n L o a d ( ) } } , s e t P o s i t i o n : f u n c t i o n ( g , e , c , b , f ) { v a r   d = t h i s . e x p , a = d . w r a p p e r . s t y l e , e = e | | 0 , g = g | | { x : d . x . p o s + e , y : d . y . p o s + e , w : d . x . g e t ( " w s i z e " ) - 2 * e , h : d . y . g e t ( " w s i z e " ) - 2 * e } ; i f ( c ) { t h i s . t a b l e . s t y l e . v i s i b i l i t y = ( g . h > = 4 * t h i s . o f f s e t ) ? " v i s i b l e " : " h i d d e n " } h s . s e t S t y l e s ( t h i s . t a b l e , { l e f t : ( g . x - t h i s . o f f s e t ) + " p x " , t o p : ( g . y - t h i s . o f f s e t ) + " p x " , w i d t h : ( g . w + 2 * t h i s . o f f s e t ) + " p x " } ) ; g . w - = 2 * t h i s . o f f s e t ; g . h - = 2 * t h i s . o f f s e t ; h s . s e t S t y l e s ( t h i s . t d [ 4 ] , { w i d t h : g . w > = 0 ? g . w + " p x " : 0 , h e i g h t : g . h > = 0 ? g . h + " p x " : 0 } ) ; i f ( t h i s . h a s A l p h a I m a g e L o a d e r ) { t h i s . t d [ 3 ] . s t y l e . h e i g h t = t h i s . t d [ 5 ] . s t y l e . h e i g h t = t h i s . t d [ 4 ] . s t y l e . h e i g h t } } , d e s t r o y : f u n c t i o n ( a ) { i f ( a ) { t h i s . t a b l e . s t y l e . v i s i b i l i t y = " h i d d e n " } e l s e { h s . d i s c a r d E l e m e n t ( t h i s . t a b l e ) } } } ; h s . D i m e n s i o n = f u n c t i o n ( b , a ) { t h i s . e x p = b ; t h i s . d i m = a ; t h i s . u c w h = a = = " x " ? " W i d t h " : " H e i g h t " ; t h i s . w h = t h i s . u c w h . t o L o w e r C a s e ( ) ; t h i s . u c l t = a = = " x " ? " L e f t " : " T o p " ; t h i s . l t = t h i s . u c l t . t o L o w e r C a s e ( ) ; t h i s . u c r b = a = = " x " ? " R i g h t " : " B o t t o m " ; t h i s . r b = t h i s . u c r b . t o L o w e r C a s e ( ) ; t h i s . p 1 = t h i s . p 2 = 0 } ; h s . D i m e n s i o n . p r o t o t y p e = { g e t : f u n c t i o n ( a ) { s w i t c h ( a ) { c a s e " l o a d i n g P o s " : r e t u r n   t h i s . t p o s + t h i s . t b + ( t h i s . t - h s . l o a d i n g [ " o f f s e t " + t h i s . u c w h ] ) / 2 ; c a s e " l o a d i n g P o s X f a d e " : r e t u r n   t h i s . p o s + t h i s . c b + t h i s . p 1 + ( t h i s . s i z e - h s . l o a d i n g [ " o f f s e t " + t h i s . u c w h ] ) / 2 ; c a s e " w s i z e " : r e t u r n   t h i s . s i z e + 2 * t h i s . c b + t h i s . p 1 + t h i s . p 2 ; c a s e " f i t s i z e " : r e t u r n   t h i s . c l i e n t S i z e - t h i s . m a r g i n M i n - t h i s . m a r g i n M a x ; c a s e " m a x s i z e " : r e t u r n   t h i s . g e t ( " f i t s i z e " ) - 2 * t h i s . c b - t h i s . p 1 - t h i s . p 2 ; c a s e " o p o s " : r e t u r n   t h i s . p o s - ( t h i s . e x p . o u t l i n e ? t h i s . e x p . o u t l i n e . o f f s e t : 0 ) ; c a s e " o s i z e " : r e t u r n   t h i s . g e t ( " w s i z e " ) + ( t h i s . e x p . o u t l i n e ? 2 * t h i s . e x p . o u t l i n e . o f f s e t : 0 ) ; c a s e " i m g P a d " : r e t u r n   t h i s . i m g S i z e ? M a t h . r o u n d ( ( t h i s . s i z e - t h i s . i m g S i z e ) / 2 ) : 0 } } , c a l c B o r d e r s : f u n c t i o n ( ) { t h i s . c b = ( t h i s . e x p . c o n t e n t [ " o f f s e t " + t h i s . u c w h ] - t h i s . t ) / 2 ; t h i s . m a r g i n M a x = h s [ " m a r g i n " + t h i s . u c r b ] } , c a l c T h u m b : f u n c t i o n ( ) { t h i s . t = t h i s . e x p . e l [ t h i s . w h ] ? p a r s e I n t ( t h i s . e x p . e l [ t h i s . w h ] ) : t h i s . e x p . e l [ " o f f s e t " + t h i s . u c w h ] ; t h i s . t p o s = t h i s . e x p . t p o s [ t h i s . d i m ] ; t h i s . t b = ( t h i s . e x p . e l [ " o f f s e t " + t h i s . u c w h ] - t h i s . t ) / 2 ; i f ( t h i s . t p o s < 1 ) { t h i s . t p o s = ( h s . p a g e [ t h i s . w h ] / 2 ) + h s . p a g e [ " s c r o l l " + t h i s . u c l t ] } } , c a l c E x p a n d e d : f u n c t i o n ( ) { v a r   a = t h i s . e x p ; t h i s . j u s t i f y = " a u t o " ; i f ( a . a l i g n = = " c e n t e r " ) { t h i s . j u s t i f y = " c e n t e r " } e l s e { i f ( n e w   R e g E x p ( t h i s . l t ) . t e s t ( a . a n c h o r ) ) { t h i s . j u s t i f y = n u l l } e l s e { i f ( n e w   R e g E x p ( t h i s . r b ) . t e s t ( a . a n c h o r ) ) { t h i s . j u s t i f y = " m a x " } } } t h i s . p o s = t h i s . t p o s - t h i s . c b + t h i s . t b ; t h i s . s i z e = M a t h . m i n ( t h i s . f u l l , a [ " m a x " + t h i s . u c w h ] | | t h i s . f u l l ) ; t h i s . m i n S i z e = a . a l l o w S i z e R e d u c t i o n ? M a t h . m i n ( a [ " m i n " + t h i s . u c w h ] , t h i s . f u l l ) : t h i s . f u l l ; i f ( a . i s I m a g e & & a . u s e B o x ) { t h i s . s i z e = a [ t h i s . w h ] ; t h i s . i m g S i z e = t h i s . f u l l } i f ( t h i s . d i m = = " x " & & h s . p a d T o M i n W i d t h ) { t h i s . m i n S i z e = a . m i n W i d t h } t h i s . t a r g e t = a [ " t a r g e t " + t h i s . d i m . t o U p p e r C a s e ( ) ] ; t h i s . m a r g i n M i n = h s [ " m a r g i n " + t h i s . u c l t ] ; t h i s . s c r o l l = h s . p a g e [ " s c r o l l " + t h i s . u c l t ] ; t h i s . c l i e n t S i z e = h s . p a g e [ t h i s . w h ] } , s e t S i z e : f u n c t i o n ( a ) { v a r   c = t h i s . e x p ; i f ( c . i s I m a g e & & ( c . u s e B o x | | h s . p a d T o M i n W i d t h ) ) { t h i s . i m g S i z e = a ; t h i s . s i z e = M a t h . m a x ( t h i s . s i z e , t h i s . i m g S i z e ) ; c . c o n t e n t . s t y l e [ t h i s . l t ] = t h i s . g e t ( " i m g P a d " ) + " p x " } e l s e { t h i s . s i z e = a } c . c o n t e n t . s t y l e [ t h i s . w h ] = a + " p x " ; c . w r a p p e r . s t y l e [ t h i s . w h ] = t h i s . g e t ( " w s i z e " ) + " p x " ; i f ( c . o u t l i n e ) { c . o u t l i n e . s e t P o s i t i o n ( ) } i f ( c . r e l e a s e M a s k ) { c . r e l e a s e M a s k . s t y l e [ t h i s . w h ] = a + " p x " } i f ( c . i s H t m l ) { v a r   b = c . s c r o l l e r D i v ; i f ( t h i s . s i z e D i f f = = = u n d e f i n e d ) { t h i s . s i z e D i f f = c . i n n e r C o n t e n t [ " o f f s e t " + t h i s . u c w h ] - b [ " o f f s e t " + t h i s . u c w h ] } b . s t y l e [ t h i s . w h ] = ( t h i s . s i z e - t h i s . s i z e D i f f ) + " p x " ; i f ( t h i s . d i m = = " x " ) { c . m e d i u m C o n t e n t . s t y l e . w i d t h = " a u t o " } i f ( c . b o d y ) { c . b o d y . s t y l e [ t h i s . w h ] = " a u t o " } } i f ( t h i s . d i m = = " x " & & c . o v e r l a y B o x ) { c . s i z e O v e r l a y B o x ( t r u e ) } i f ( t h i s . d i m = = " x " & & c . s l i d e s h o w & & c . i s I m a g e ) { i f ( a = = t h i s . f u l l ) { c . s l i d e s h o w . d i s a b l e ( " f u l l - e x p a n d " ) } e l s e { c . s l i d e s h o w . e n a b l e ( " f u l l - e x p a n d " ) } } } , s e t P o s : f u n c t i o n ( a ) { t h i s . p o s = a ; t h i s . e x p . w r a p p e r . s t y l e [ t h i s . l t ] = a + " p x " ; i f ( t h i s . e x p . o u t l i n e ) { t h i s . e x p . o u t l i n e . s e t P o s i t i o n ( ) } } } ; h s . E x p a n d e r = f u n c t i o n ( k , f , b , l ) { i f ( d o c u m e n t . r e a d y S t a t e & & h s . i e & & ! h s . i s R e a d y ) { h s . a d d E v e n t L i s t e n e r ( d o c u m e n t , " r e a d y " , f u n c t i o n ( ) { n e w   h s . E x p a n d e r ( k , f , b , l ) } ) ; r e t u r n } t h i s . a = k ; t h i s . c u s t o m = b ; t h i s . c o n t e n t T y p e = l | | " i m a g e " ; t h i s . i s H t m l = ( l = = " h t m l " ) ; t h i s . i s I m a g e = ! t h i s . i s H t m l ; h s . c o n t i n u e P r e l o a d i n g = f a l s e ; t h i s . o v e r l a y s = [ ] ; t h i s . l a s t = h s . l a s t ; h s . l a s t = n u l l ; h s . i n i t ( ) ; v a r   n = t h i s . k e y = h s . e x p a n d e r s . l e n g t h ; f o r ( v a r   g = 0 ; g < h s . o v e r r i d e s . l e n g t h ; g + + ) { v a r   c = h s . o v e r r i d e s [ g ] ; t h i s [ c ] = f & & t y p e o f   f [ c ] ! = " u n d e f i n e d " ? f [ c ] : h s [ c ] } i f ( ! t h i s . s r c ) { t h i s . s r c = k . h r e f } v a r   d = ( f & & f . t h u m b n a i l I d ) ? h s . $ ( f . t h u m b n a i l I d ) : k ; d = t h i s . t h u m b = d . g e t E l e m e n t s B y T a g N a m e ( " i m g " ) [ 0 ] | | d ; t h i s . t h u m b s U s e r S e t I d = d . i d | | k . i d ; i f ( ! h s . f i r e E v e n t ( t h i s , " o n I n i t " ) ) { r e t u r n   t r u e } f o r ( v a r   g = 0 ; g < h s . e x p a n d e r s . l e n g t h ; g + + ) { i f ( h s . e x p a n d e r s [ g ] & & h s . e x p a n d e r s [ g ] . a = = k & & ! ( t h i s . l a s t & & t h i s . t r a n s i t i o n s [ 1 ] = = " c r o s s f a d e " ) ) { h s . e x p a n d e r s [ g ] . f o c u s ( ) ; r e t u r n   f a l s e } } i f ( ! h s . a l l o w S i m u l t a n e o u s L o a d i n g ) { f o r ( v a r   g = 0 ; g < h s . e x p a n d e r s . l e n g t h ; g + + ) { i f ( h s . e x p a n d e r s [ g ] & & h s . e x p a n d e r s [ g ] . t h u m b ! = d & & ! h s . e x p a n d e r s [ g ] . o n L o a d S t a r t e d ) { h s . e x p a n d e r s [ g ] . c a n c e l L o a d i n g ( ) } } } h s . e x p a n d e r s [ n ] = t h i s ; i f ( ! h s . a l l o w M u l t i p l e I n s t a n c e s & & ! h s . u p c o m i n g ) { i f ( h s . e x p a n d e r s [ n - 1 ] ) { h s . e x p a n d e r s [ n - 1 ] . c l o s e ( ) } i f ( t y p e o f   h s . f o c u s K e y ! = " u n d e f i n e d " & & h s . e x p a n d e r s [ h s . f o c u s K e y ] ) { h s . e x p a n d e r s [ h s . f o c u s K e y ] . c l o s e ( ) } } t h i s . e l = d ; t h i s . t p o s = h s . g e t P o s i t i o n ( d ) ; h s . g e t P a g e S i z e ( ) ; v a r   j = t h i s . x = n e w   h s . D i m e n s i o n ( t h i s , " x " ) ; j . c a l c T h u m b ( ) ; v a r   h = t h i s . y = n e w   h s . D i m e n s i o n ( t h i s , " y " ) ; h . c a l c T h u m b ( ) ; i f ( / a r e a / i . t e s t ( d . t a g N a m e ) ) { t h i s . g e t I m a g e M a p A r e a C o r r e c t i o n ( d ) } t h i s . w r a p p e r = h s . c r e a t e E l e m e n t ( " d i v " , { i d : " h i g h s l i d e - w r a p p e r - " + t h i s . k e y , c l a s s N a m e : " h i g h s l i d e - w r a p p e r   " + t h i s . w r a p p e r C l a s s N a m e } , { v i s i b i l i t y : " h i d d e n " , p o s i t i o n : " a b s o l u t e " , z I n d e x : h s . z I n d e x C o u n t e r + = 2 } , n u l l , t r u e ) ; t h i s . w r a p p e r . o n m o u s e o v e r = t h i s . w r a p p e r . o n m o u s e o u t = h s . w r a p p e r M o u s e H a n d l e r ; i f ( t h i s . c o n t e n t T y p e = = " i m a g e " & & t h i s . o u t l i n e W h i l e A n i m a t i n g = = 2 ) { t h i s . o u t l i n e W h i l e A n i m a t i n g = 0 } i f ( ! t h i s . o u t l i n e T y p e | | ( t h i s . l a s t & & t h i s . i s I m a g e & & t h i s . t r a n s i t i o n s [ 1 ] = = " c r o s s f a d e " ) ) { t h i s [ t h i s . c o n t e n t T y p e + " C r e a t e " ] ( ) } e l s e { i f ( h s . p e n d i n g O u t l i n e s [ t h i s . o u t l i n e T y p e ] ) { t h i s . c o n n e c t O u t l i n e ( ) ; t h i s [ t h i s . c o n t e n t T y p e + " C r e a t e " ] ( ) } e l s e { t h i s . s h o w L o a d i n g ( ) ; v a r   e = t h i s ; n e w   h s . O u t l i n e ( t h i s . o u t l i n e T y p e , f u n c t i o n ( ) { e . c o n n e c t O u t l i n e ( ) ; e [ e . c o n t e n t T y p e + " C r e a t e " ] ( ) } ) } } r e t u r n   t r u e } ; h s . E x p a n d e r . p r o t o t y p e = { e r r o r : f u n c t i o n ( a ) { w i n d o w . l o c a t i o n . h r e f = t h i s . s r c } , c o n n e c t O u t l i n e : f u n c t i o n ( ) { v a r   a = t h i s . o u t l i n e = h s . p e n d i n g O u t l i n e s [ t h i s . o u t l i n e T y p e ] ; a . e x p = t h i s ; a . t a b l e . s t y l e . z I n d e x = t h i s . w r a p p e r . s t y l e . z I n d e x - 1 ; h s . p e n d i n g O u t l i n e s [ t h i s . o u t l i n e T y p e ] = n u l l } , s h o w L o a d i n g : f u n c t i o n ( ) { i f ( t h i s . o n L o a d S t a r t e d | | t h i s . l o a d i n g ) { r e t u r n } t h i s . l o a d i n g = h s . l o a d i n g ; v a r   c = t h i s ; t h i s . l o a d i n g . o n c l i c k = f u n c t i o n ( ) { c . c a n c e l L o a d i n g ( ) } ; i f ( ! h s . f i r e E v e n t ( t h i s , " o n S h o w L o a d i n g " ) ) { r e t u r n } v a r   c = t h i s , a = t h i s . x . g e t ( " l o a d i n g P o s " ) + " p x " , b = t h i s . y . g e t ( " l o a d i n g P o s " ) + " p x " ; i f ( ! d & & t h i s . l a s t & & t h i s . t r a n s i t i o n s [ 1 ] = = " c r o s s f a d e " ) { v a r   d = t h i s . l a s t } i f ( d ) { a = d . x . g e t ( " l o a d i n g P o s X f a d e " ) + " p x " ; b = d . y . g e t ( " l o a d i n g P o s X f a d e " ) + " p x " ; t h i s . l o a d i n g . s t y l e . z I n d e x = h s . z I n d e x C o u n t e r + + } s e t T i m e o u t ( f u n c t i o n ( ) { i f ( c . l o a d i n g ) { h s . s e t S t y l e s ( c . l o a d i n g , { l e f t : a , t o p : b , z I n d e x : h s . z I n d e x C o u n t e r + + } ) } } , 1 0 0 ) } , i m a g e C r e a t e : f u n c t i o n ( ) { v a r   b = t h i s ; v a r   a = d o c u m e n t . c r e a t e E l e m e n t ( " i m g " ) ; t h i s . c o n t e n t = a ; a . o n l o a d = f u n c t i o n ( ) { i f ( h s . e x p a n d e r s [ b . k e y ] ) { b . c o n t e n t L o a d e d ( ) } } ; i f ( h s . b l o c k R i g h t C l i c k ) { a . o n c o n t e x t m e n u = f u n c t i o n ( ) { r e t u r n   f a l s e } } a . c l a s s N a m e = " h i g h s l i d e - i m a g e " ; h s . s e t S t y l e s ( a , { v i s i b i l i t y : " h i d d e n " , d i s p l a y : " b l o c k " , p o s i t i o n : " a b s o l u t e " , m a x W i d t h : " 9 9 9 9 p x " , z I n d e x : 3 } ) ; a . t i t l e = h s . l a n g . r e s t o r e T i t l e ; i f ( h s . s a f a r i ) { h s . c o n t a i n e r . a p p e n d C h i l d ( a ) } i f ( h s . i e & & h s . f l u s h I m g S i z e ) { a . s r c = n u l l } a . s r c = t h i s . s r c ; t h i s . s h o w L o a d i n g ( ) } , h t m l C r e a t e : f u n c t i o n ( ) { i f ( ! h s . f i r e E v e n t ( t h i s , " o n B e f o r e G e t C o n t e n t " ) ) { r e t u r n } t h i s . c o n t e n t = h s . g e t C a c h e B i n d i n g ( t h i s . a ) ; i f ( ! t h i s . c o n t e n t ) { t h i s . c o n t e n t = h s . g e t N o d e ( t h i s . c o n t e n t I d ) } i f ( ! t h i s . c o n t e n t ) { t h i s . c o n t e n t = h s . g e t S e l f R e n d e r e d ( ) } t h i s . g e t I n l i n e ( [ " m a i n c o n t e n t " ] ) ; i f ( t h i s . m a i n c o n t e n t ) { v a r   a = h s . g e t E l e m e n t B y C l a s s ( t h i s . c o n t e n t , " d i v " , " h i g h s l i d e - b o d y " ) ; i f ( a ) { a . a p p e n d C h i l d ( t h i s . m a i n c o n t e n t ) } t h i s . m a i n c o n t e n t . s t y l e . d i s p l a y = " b l o c k " } h s . f i r e E v e n t ( t h i s , " o n A f t e r G e t C o n t e n t " ) ; v a r   d = t h i s . i n n e r C o n t e n t = t h i s . c o n t e n t ; i f ( / ( s w f | i f r a m e ) / . t e s t ( t h i s . o b j e c t T y p e ) ) { t h i s . s e t O b j C o n t a i n e r S i z e ( d ) } h s . c o n t a i n e r . a p p e n d C h i l d ( t h i s . w r a p p e r ) ; h s . s e t S t y l e s ( t h i s . w r a p p e r , { p o s i t i o n : " s t a t i c " , p a d d i n g : " 0   " + h s . m a r g i n R i g h t + " p x   0   " + h s . m a r g i n L e f t + " p x " } ) ; t h i s . c o n t e n t = h s . c r e a t e E l e m e n t ( " d i v " , { c l a s s N a m e : " h i g h s l i d e - h t m l " } , { p o s i t i o n : " r e l a t i v e " , z I n d e x : 3 , o v e r f l o w : " h i d d e n " } , t h i s . w r a p p e r ) ; t h i s . m e d i u m C o n t e n t = h s . c r e a t e E l e m e n t ( " d i v " , n u l l , n u l l , t h i s . c o n t e n t , 1 ) ; t h i s . m e d i u m C o n t e n t . a p p e n d C h i l d ( d ) ; h s . s e t S t y l e s ( d , { p o s i t i o n : " r e l a t i v e " , d i s p l a y : " b l o c k " , d i r e c t i o n : h s . l a n g . c s s D i r e c t i o n | | " " } ) ; i f ( t h i s . w i d t h ) { d . s t y l e . w i d t h = t h i s . w i d t h + " p x " } i f ( t h i s . h e i g h t ) { h s . s e t S t y l e s ( d , { h e i g h t : t h i s . h e i g h t + " p x " , o v e r f l o w : " h i d d e n " } ) } i f ( d . o f f s e t W i d t h < t h i s . m i n W i d t h ) { d . s t y l e . w i d t h = t h i s . m i n W i d t h + " p x " } i f ( t h i s . o b j e c t T y p e = = " a j a x " & & ! h s . g e t C a c h e B i n d i n g ( t h i s . a ) ) { t h i s . s h o w L o a d i n g ( ) ; v a r   b = n e w   h s . A j a x ( t h i s . a , d ) ; v a r   c = t h i s ; b . o n L o a d = f u n c t i o n ( ) { i f ( h s . e x p a n d e r s [ c . k e y ] ) { c . c o n t e n t L o a d e d ( ) } } ; b . o n E r r o r = f u n c t i o n ( ) { l o c a t i o n . h r e f = c . s r c } ; b . r u n ( ) } e l s e { i f ( t h i s . o b j e c t T y p e = = " i f r a m e " & & t h i s . o b j e c t L o a d T i m e = = " b e f o r e " ) { t h i s . w r i t e E x t e n d e d C o n t e n t ( ) } e l s e { t h i s . c o n t e n t L o a d e d ( ) } } } , c o n t e n t L o a d e d : f u n c t i o n ( ) { t r y { i f ( ! t h i s . c o n t e n t ) { r e t u r n } t h i s . c o n t e n t . o n l o a d = n u l l ; i f ( t h i s . o n L o a d S t a r t e d ) { r e t u r n } e l s e { t h i s . o n L o a d S t a r t e d = t r u e } v a r   j = t h i s . x , g = t h i s . y ; i f ( t h i s . l o a d i n g ) { h s . s e t S t y l e s ( t h i s . l o a d i n g , { t o p : " - 9 9 9 9 p x " } ) ; t h i s . l o a d i n g = n u l l ; h s . f i r e E v e n t ( t h i s , " o n H i d e L o a d i n g " ) } i f ( t h i s . i s I m a g e ) { j . f u l l = t h i s . c o n t e n t . w i d t h ; g . f u l l = t h i s . c o n t e n t . h e i g h t ; h s . s e t S t y l e s ( t h i s . c o n t e n t , { w i d t h : j . t + " p x " , h e i g h t : g . t + " p x " } ) ; t h i s . w r a p p e r . a p p e n d C h i l d ( t h i s . c o n t e n t ) ; h s . c o n t a i n e r . a p p e n d C h i l d ( t h i s . w r a p p e r ) } e l s e { i f ( t h i s . h t m l G e t S i z e ) { t h i s . h t m l G e t S i z e ( ) } } j . c a l c B o r d e r s ( ) ; g . c a l c B o r d e r s ( ) ; h s . s e t S t y l e s ( t h i s . w r a p p e r , { l e f t : ( j . t p o s + j . t b - j . c b ) + " p x " , t o p : ( g . t p o s + j . t b - g . c b ) + " p x " } ) ; t h i s . i n i t S l i d e s h o w ( ) ; t h i s . g e t O v e r l a y s ( ) ; v a r   f = j . f u l l / g . f u l l ; j . c a l c E x p a n d e d ( ) ; t h i s . j u s t i f y ( j ) ; g . c a l c E x p a n d e d ( ) ; t h i s . j u s t i f y ( g ) ; i f ( t h i s . i s H t m l ) { t h i s . h t m l S i z e O p e r a t i o n s ( ) } i f ( t h i s . o v e r l a y B o x ) { t h i s . s i z e O v e r l a y B o x ( 0 , 1 ) } i f ( t h i s . a l l o w S i z e R e d u c t i o n ) { i f ( t h i s . i s I m a g e ) { t h i s . c o r r e c t R a t i o ( f ) } e l s e { t h i s . f i t O v e r l a y B o x ( ) } v a r   k = t h i s . s l i d e s h o w ; i f ( k & & t h i s . l a s t & & k . c o n t r o l s & & k . f i x e d C o n t r o l s ) { v a r   h = k . o v e r l a y O p t i o n s . p o s i t i o n | | " " , a ; f o r ( v a r   c   i n   h s . o P o s ) { f o r ( v a r   b = 0 ; b < 5 ; b + + ) { a = t h i s [ c ] ; i f ( h . m a t c h ( h s . o P o s [ c ] [ b ] ) ) { a . p o s = t h i s . l a s t [ c ] . p o s + ( t h i s . l a s t [ c ] . p 1 - a . p 1 ) + ( t h i s . l a s t [ c ] . s i z e - a . s i z e ) * [ 0 , 0 , 0 . 5 , 1 , 1 ] [ b ] ; i f ( k . f i x e d C o n t r o l s = = " f i t " ) { i f ( a . p o s + a . s i z e + a . p 1 + a . p 2 > a . s c r o l l + a . c l i e n t S i z e - a . m a r g i n M a x ) { a . p o s = a . s c r o l l + a . c l i e n t S i z e - a . s i z e - a . m a r g i n M i n - a . m a r g i n M a x - a . p 1 - a . p 2 } i f ( a . p o s < a . s c r o l l + a . m a r g i n M i n ) { a . p o s = a . s c r o l l + a . m a r g i n M i n } } } } } } i f ( t h i s . i s I m a g e & & t h i s . x . f u l l > ( t h i s . x . i m g S i z e | | t h i s . x . s i z e ) ) { t h i s . c r e a t e F u l l E x p a n d ( ) ; i f ( t h i s . o v e r l a y s . l e n g t h = = 1 ) { t h i s . s i z e O v e r l a y B o x ( ) } } } t h i s . s h o w ( ) } c a t c h ( d ) { t h i s . e r r o r ( d ) } } , s e t O b j C o n t a i n e r S i z e : f u n c t i o n ( a , d ) { v a r   b = h s . g e t E l e m e n t B y C l a s s ( a , " D I V " , " h i g h s l i d e - b o d y " ) ; i f ( / ( i f r a m e | s w f ) / . t e s t ( t h i s . o b j e c t T y p e ) ) { i f ( t h i s . o b j e c t W i d t h ) { b . s t y l e . w i d t h = t h i s . o b j e c t W i d t h + " p x " } i f ( t h i s . o b j e c t H e i g h t ) { b . s t y l e . h e i g h t = t h i s . o b j e c t H e i g h t + " p x " } } } , w r i t e E x t e n d e d C o n t e n t : f u n c t i o n ( ) { i f ( t h i s . h a s E x t e n d e d C o n t e n t ) { r e t u r n } v a r   f = t h i s ; t h i s . b o d y = h s . g e t E l e m e n t B y C l a s s ( t h i s . i n n e r C o n t e n t , " D I V " , " h i g h s l i d e - b o d y " ) ; i f ( t h i s . o b j e c t T y p e = = " i f r a m e " ) { t h i s . s h o w L o a d i n g ( ) ; v a r   g = h s . c l e a r i n g . c l o n e N o d e ( 1 ) ; t h i s . b o d y . a p p e n d C h i l d ( g ) ; t h i s . n e w W i d t h = t h i s . i n n e r C o n t e n t . o f f s e t W i d t h ; i f ( ! t h i s . o b j e c t W i d t h ) { t h i s . o b j e c t W i d t h = g . o f f s e t W i d t h } v a r   c = t h i s . i n n e r C o n t e n t . o f f s e t H e i g h t - t h i s . b o d y . o f f s e t H e i g h t , d = t h i s . o b j e c t H e i g h t | | h s . p a g e . h e i g h t - c - h s . m a r g i n T o p - h s . m a r g i n B o t t o m , e = t h i s . o b j e c t L o a d T i m e = = " b e f o r e " ? '   o n l o a d = " i f   ( h s . e x p a n d e r s [ ' + t h i s . k e y + " ] )   h s . e x p a n d e r s [ " + t h i s . k e y + ' ] . c o n t e n t L o a d e d ( ) "   ' : " " ; t h i s . b o d y . i n n e r H T M L + = ' < i f r a m e   n a m e = " h s ' + ( n e w   D a t e ( ) ) . g e t T i m e ( ) + ' "   f r a m e b o r d e r = " 0 "   k e y = " ' + t h i s . k e y + ' "     a l l o w t r a n s p a r e n c y = " t r u e "   s t y l e = " w i d t h : ' + t h i s . o b j e c t W i d t h + " p x ;   h e i g h t : " + d + ' p x "   ' + e + '   s r c = " ' + t h i s . s r c + ' " > < / i f r a m e > ' ; t h i s . r u l e r = t h i s . b o d y . g e t E l e m e n t s B y T a g N a m e ( " d i v " ) [ 0 ] ; t h i s . i f r a m e = t h i s . b o d y . g e t E l e m e n t s B y T a g N a m e ( " i f r a m e " ) [ 0 ] ; i f ( t h i s . o b j e c t L o a d T i m e = = " a f t e r " ) { t h i s . c o r r e c t I f r a m e S i z e ( ) } } i f ( t h i s . o b j e c t T y p e = = " s w f " ) { t h i s . b o d y . i d = t h i s . b o d y . i d | | " h s - f l a s h - i d - " + t h i s . k e y ; v a r   b = t h i s . s w f O p t i o n s ; i f ( ! b . p a r a m s ) { b . p a r a m s = { } } i f ( t y p e o f   b . p a r a m s . w m o d e = = " u n d e f i n e d " ) { b . p a r a m s . w m o d e = " t r a n s p a r e n t " } i f ( s w f o b j e c t ) { s w f o b j e c t . e m b e d S W F ( t h i s . s r c , t h i s . b o d y . i d , t h i s . o b j e c t W i d t h , t h i s . o b j e c t H e i g h t , b . v e r s i o n | | " 7 " , b . e x p r e s s I n s t a l l S w f u r l , b . f l a s h v a r s , b . p a r a m s , b . a t t r i b u t e s ) } } t h i s . h a s E x t e n d e d C o n t e n t = t r u e } , h t m l G e t S i z e : f u n c t i o n ( ) { i f ( t h i s . i f r a m e & & ! t h i s . o b j e c t H e i g h t ) { t h i s . i f r a m e . s t y l e . h e i g h t = t h i s . b o d y . s t y l e . h e i g h t = t h i s . g e t I f r a m e P a g e H e i g h t ( ) + " p x " } t h i s . i n n e r C o n t e n t . a p p e n d C h i l d ( h s . c l e a r i n g ) ; i f ( ! t h i s . x . f u l l ) { t h i s . x . f u l l = t h i s . i n n e r C o n t e n t . o f f s e t W i d t h } t h i s . y . f u l l = t h i s . i n n e r C o n t e n t . o f f s e t H e i g h t ; t h i s . i n n e r C o n t e n t . r e m o v e C h i l d ( h s . c l e a r i n g ) ; i f ( h s . i e & & t h i s . n e w H e i g h t > p a r s e I n t ( t h i s . i n n e r C o n t e n t . c u r r e n t S t y l e . h e i g h t ) ) { t h i s . n e w H e i g h t = p a r s e I n t ( t h i s . i n n e r C o n t e n t . c u r r e n t S t y l e . h e i g h t ) } h s . s e t S t y l e s ( t h i s . w r a p p e r , { p o s i t i o n : " a b s o l u t e " , p a d d i n g : " 0 " } ) ; h s . s e t S t y l e s ( t h i s . c o n t e n t , { w i d t h : t h i s . x . t + " p x " , h e i g h t : t h i s . y . t + " p x " } ) } , g e t I f r a m e P a g e H e i g h t : f u n c t i o n ( ) { v a r   a ; t r y { v a r   d = t h i s . i f r a m e . c o n t e n t D o c u m e n t | | t h i s . i f r a m e . c o n t e n t W i n d o w . d o c u m e n t ; v a r   b = d . c r e a t e E l e m e n t ( " d i v " ) ; b . s t y l e . c l e a r = " b o t h " ; d . b o d y . a p p e n d C h i l d ( b ) ; a = b . o f f s e t T o p ; i f ( h s . i e ) { a + = p a r s e I n t ( d . b o d y . c u r r e n t S t y l e . m a r g i n T o p ) + p a r s e I n t ( d . b o d y . c u r r e n t S t y l e . m a r g i n B o t t o m ) - 1 } } c a t c h ( c ) { a = 3 0 0 } r e t u r n   a } , c o r r e c t I f r a m e S i z e : f u n c t i o n ( ) { v a r   b = t h i s . i n n e r C o n t e n t . o f f s e t W i d t h - t h i s . r u l e r . o f f s e t W i d t h ; h s . d i s c a r d E l e m e n t ( t h i s . r u l e r ) ; i f ( b < 0 ) { b = 0 } v a r   a = t h i s . i n n e r C o n t e n t . o f f s e t H e i g h t - t h i s . i f r a m e . o f f s e t H e i g h t ; h s . s e t S t y l e s ( t h i s . i f r a m e , { w i d t h : M a t h . a b s ( t h i s . x . s i z e - b ) + " p x " , h e i g h t : M a t h . a b s ( t h i s . y . s i z e - a ) + " p x " } ) ; h s . s e t S t y l e s ( t h i s . b o d y , { w i d t h : t h i s . i f r a m e . s t y l e . w i d t h , h e i g h t : t h i s . i f r a m e . s t y l e . h e i g h t } ) ; t h i s . s c r o l l i n g C o n t e n t = t h i s . i f r a m e ; t h i s . s c r o l l e r D i v = t h i s . s c r o l l i n g C o n t e n t } , h t m l S i z e O p e r a t i o n s : f u n c t i o n ( ) { t h i s . s e t O b j C o n t a i n e r S i z e ( t h i s . i n n e r C o n t e n t ) ; i f ( t h i s . o b j e c t T y p e = = " s w f " & & t h i s . o b j e c t L o a d T i m e = = " b e f o r e " ) { t h i s . w r i t e E x t e n d e d C o n t e n t ( ) } i f ( t h i s . x . s i z e < t h i s . x . f u l l & & ! t h i s . a l l o w W i d t h R e d u c t i o n ) { t h i s . x . s i z e = t h i s . x . f u l l } i f ( t h i s . y . s i z e < t h i s . y . f u l l & & ! t h i s . a l l o w H e i g h t R e d u c t i o n ) { t h i s . y . s i z e = t h i s . y . f u l l } t h i s . s c r o l l e r D i v = t h i s . i n n e r C o n t e n t ; h s . s e t S t y l e s ( t h i s . m e d i u m C o n t e n t , { p o s i t i o n : " r e l a t i v e " , w i d t h : t h i s . x . s i z e + " p x " } ) ; h s . s e t S t y l e s ( t h i s . i n n e r C o n t e n t , { b o r d e r : " n o n e " , w i d t h : " a u t o " , h e i g h t : " a u t o " } ) ; v a r   e = h s . g e t E l e m e n t B y C l a s s ( t h i s . i n n e r C o n t e n t , " D I V " , " h i g h s l i d e - b o d y " ) ; i f ( e & & ! / ( i f r a m e | s w f ) / . t e s t ( t h i s . o b j e c t T y p e ) ) { v a r   b = e ; e = h s . c r e a t e E l e m e n t ( b . n o d e N a m e , n u l l , { o v e r f l o w : " h i d d e n " } , n u l l , t r u e ) ; b . p a r e n t N o d e . i n s e r t B e f o r e ( e , b ) ; e . a p p e n d C h i l d ( h s . c l e a r i n g ) ; e . a p p e n d C h i l d ( b ) ; v a r   c = t h i s . i n n e r C o n t e n t . o f f s e t W i d t h - e . o f f s e t W i d t h ; v a r   a = t h i s . i n n e r C o n t e n t . o f f s e t H e i g h t - e . o f f s e t H e i g h t ; e . r e m o v e C h i l d ( h s . c l e a r i n g ) ; v a r   d = h s . s a f a r i | | n a v i g a t o r . v e n d o r = = " K D E " ? 1 : 0 ; h s . s e t S t y l e s ( e , { w i d t h : ( t h i s . x . s i z e - c - d ) + " p x " , h e i g h t : ( t h i s . y . s i z e - a ) + " p x " , o v e r f l o w : " a u t o " , p o s i t i o n : " r e l a t i v e " } ) ; i f ( d & & b . o f f s e t H e i g h t > e . o f f s e t H e i g h t ) { e . s t y l e . w i d t h = ( p a r s e I n t ( e . s t y l e . w i d t h ) + d ) + " p x " } t h i s . s c r o l l i n g C o n t e n t = e ; t h i s . s c r o l l e r D i v = t h i s . s c r o l l i n g C o n t e n t } i f ( t h i s . i f r a m e & & t h i s . o b j e c t L o a d T i m e = = " b e f o r e " ) { t h i s . c o r r e c t I f r a m e S i z e ( ) } i f ( ! t h i s . s c r o l l i n g C o n t e n t & & t h i s . y . s i z e < t h i s . m e d i u m C o n t e n t . o f f s e t H e i g h t ) { t h i s . s c r o l l e r D i v = t h i s . c o n t e n t } i f ( t h i s . s c r o l l e r D i v = = t h i s . c o n t e n t & & ! t h i s . a l l o w W i d t h R e d u c t i o n & & ! / ( i f r a m e | s w f ) / . t e s t ( t h i s . o b j e c t T y p e ) ) { t h i s . x . s i z e + = 1 7 } i f ( t h i s . s c r o l l e r D i v & & t h i s . s c r o l l e r D i v . o f f s e t H e i g h t > t h i s . s c r o l l e r D i v . p a r e n t N o d e . o f f s e t H e i g h t ) { s e t T i m e o u t ( " t r y   {   h s . e x p a n d e r s [ " + t h i s . k e y + " ] . s c r o l l e r D i v . s t y l e . o v e r f l o w   =   ' a u t o ' ;   }   c a t c h ( e )   { } " , h s . e x p a n d D u r a t i o n ) } } , g e t I m a g e M a p A r e a C o r r e c t i o n : f u n c t i o n ( d ) { v a r   h = d . c o o r d s . s p l i t ( " , " ) ; f o r ( v a r   b = 0 ; b < h . l e n g t h ; b + + ) { h [ b ] = p a r s e I n t ( h [ b ] ) } i f ( d . s h a p e . t o L o w e r C a s e ( ) = = " c i r c l e " ) { t h i s . x . t p o s + = h [ 0 ] - h [ 2 ] ; t h i s . y . t p o s + = h [ 1 ] - h [ 2 ] ; t h i s . x . t = t h i s . y . t = 2 * h [ 2 ] } e l s e { v a r   f , e , a = f = h [ 0 ] , g = e = h [ 1 ] ; f o r ( v a r   b = 0 ; b < h . l e n g t h ; b + + ) { i f ( b % 2 = = 0 ) { a = M a t h . m i n ( a , h [ b ] ) ; f = M a t h . m a x ( f , h [ b ] ) } e l s e { g = M a t h . m i n ( g , h [ b ] ) ; e = M a t h . m a x ( e , h [ b ] ) } } t h i s . x . t p o s + = a ; t h i s . x . t = f - a ; t h i s . y . t p o s + = g ; t h i s . y . t = e - g } } , j u s t i f y : f u n c t i o n ( f , b ) { v a r   g , h = f . t a r g e t , e = f = = t h i s . x ? " x " : " y " ; i f ( h & & h . m a t c h ( /   / ) ) { g = h . s p l i t ( "   " ) ; h = g [ 0 ] } i f ( h & & h s . $ ( h ) ) { f . p o s = h s . g e t P o s i t i o n ( h s . $ ( h ) ) [ e ] ; i f ( g & & g [ 1 ] & & g [ 1 ] . m a t c h ( / ^ [ - ] ? [ 0 - 9 ] + p x $ / ) ) { f . p o s + = p a r s e I n t ( g [ 1 ] ) } i f ( f . s i z e < f . m i n S i z e ) { f . s i z e = f . m i n S i z e } } e l s e { i f ( f . j u s t i f y = = " a u t o " | | f . j u s t i f y = = " c e n t e r " ) { v a r   d = f a l s e ; v a r   a = f . e x p . a l l o w S i z e R e d u c t i o n ; i f ( f . j u s t i f y = = " c e n t e r " ) { f . p o s = M a t h . r o u n d ( f . s c r o l l + ( f . c l i e n t S i z e + f . m a r g i n M i n - f . m a r g i n M a x - f . g e t ( " w s i z e " ) ) / 2 ) } e l s e { f . p o s = M a t h . r o u n d ( f . p o s - ( ( f . g e t ( " w s i z e " ) - f . t ) / 2 ) ) } i f ( f . p o s < f . s c r o l l + f . m a r g i n M i n ) { f . p o s = f . s c r o l l + f . m a r g i n M i n ; d = t r u e } i f ( ! b & & f . s i z e < f . m i n S i z e ) { f . s i z e = f . m i n S i z e ; a = f a l s e } i f ( f . p o s + f . g e t ( " w s i z e " ) > f . s c r o l l + f . c l i e n t S i z e - f . m a r g i n M a x ) { i f ( ! b & & d & & a ) { f . s i z e = f . g e t ( e = = " y " ? " f i t s i z e " : " m a x s i z e " ) } e l s e { i f ( f . g e t ( " w s i z e " ) < f . g e t ( " f i t s i z e " ) ) { f . p o s = f . s c r o l l + f . c l i e n t S i z e - f . m a r g i n M a x - f . g e t ( " w s i z e " ) } e l s e { f . p o s = f . s c r o l l + f . m a r g i n M i n ; i f ( ! b & & a ) { f . s i z e = f . g e t ( e = = " y " ? " f i t s i z e " : " m a x s i z e " ) } } } } i f ( ! b & & f . s i z e < f . m i n S i z e ) { f . s i z e = f . m i n S i z e ; a = f a l s e } } e l s e { i f ( f . j u s t i f y = = " m a x " ) { f . p o s = M a t h . f l o o r ( f . p o s - f . s i z e + f . t ) } } } i f ( f . p o s < f . m a r g i n M i n ) { v a r   c = f . p o s ; f . p o s = f . m a r g i n M i n ; i f ( a & & ! b ) { f . s i z e = f . s i z e - ( f . p o s - c ) } } } , c o r r e c t R a t i o : f u n c t i o n ( c ) { v a r   a = t h i s . x , g = t h i s . y , e = f a l s e , d = M a t h . m i n ( a . f u l l , a . s i z e ) , b = M a t h . m i n ( g . f u l l , g . s i z e ) , f = ( t h i s . u s e B o x | | h s . p a d T o M i n W i d t h ) ; i f ( d / b > c ) { d = b * c ; i f ( d < a . m i n S i z e ) { d = a . m i n S i z e ; b = d / c } e = t r u e } e l s e { i f ( d / b < c ) { b = d / c ; e = t r u e } } i f ( h s . p a d T o M i n W i d t h & & a . f u l l < a . m i n S i z e ) { a . i m g S i z e = a . f u l l ; g . s i z e = g . i m g S i z e = g . f u l l } e l s e { i f ( t h i s . u s e B o x ) { a . i m g S i z e = d ; g . i m g S i z e = b } e l s e { a . s i z e = d ; g . s i z e = b } } t h i s . f i t O v e r l a y B o x ( f ? n u l l : c ) ; i f ( f & & g . s i z e < g . i m g S i z e ) { g . i m g S i z e = g . s i z e ; a . i m g S i z e = g . s i z e * c } i f ( e | | f ) { a . p o s = a . t p o s - a . c b + a . t b ; a . m i n S i z e = a . s i z e ; t h i s . j u s t i f y ( a , t r u e ) ; g . p o s = g . t p o s - g . c b + g . t b ; g . m i n S i z e = g . s i z e ; t h i s . j u s t i f y ( g , t r u e ) ; i f ( t h i s . o v e r l a y B o x ) { t h i s . s i z e O v e r l a y B o x ( ) } } } , f i t O v e r l a y B o x : f u n c t i o n ( b ) { v a r   a = t h i s . x , c = t h i s . y ; i f ( t h i s . o v e r l a y B o x ) { w h i l e ( c . s i z e > t h i s . m i n H e i g h t & & a . s i z e > t h i s . m i n W i d t h & & c . g e t ( " w s i z e " ) > c . g e t ( " f i t s i z e " ) ) { c . s i z e - = 1 0 ; i f ( b ) { a . s i z e = c . s i z e * b } t h i s . s i z e O v e r l a y B o x ( 0 , 1 ) } } } , r e f l o w : f u n c t i o n ( ) { i f ( t h i s . s c r o l l e r D i v ) { v a r   a = / i f r a m e / i . t e s t ( t h i s . s c r o l l e r D i v . t a g N a m e ) ? t h i s . g e t I f r a m e P a g e H e i g h t ( ) + 1 + " p x " : " a u t o " ; i f ( t h i s . b o d y ) { t h i s . b o d y . s t y l e . h e i g h t = a } t h i s . s c r o l l e r D i v . s t y l e . h e i g h t = a ; t h i s . y . s e t S i z e ( t h i s . i n n e r C o n t e n t . o f f s e t H e i g h t ) ; h s . s e t D i m m e r S i z e ( t h i s ) } } , s h o w : f u n c t i o n ( ) { v a r   a = t h i s . x , b = t h i s . y ; t h i s . d o S h o w H i d e ( " h i d d e n " ) ; h s . f i r e E v e n t ( t h i s , " o n B e f o r e E x p a n d " ) ; i f ( t h i s . s l i d e s h o w & & t h i s . s l i d e s h o w . t h u m b s t r i p ) { t h i s . s l i d e s h o w . t h u m b s t r i p . s e l e c t T h u m b ( ) } t h i s . c h a n g e S i z e ( 1 , { w r a p p e r : { w i d t h : a . g e t ( " w s i z e " ) , h e i g h t : b . g e t ( " w s i z e " ) , l e f t : a . p o s , t o p : b . p o s } , c o n t e n t : { l e f t : a . p 1 + a . g e t ( " i m g P a d " ) , t o p : b . p 1 + b . g e t ( " i m g P a d " ) , w i d t h : a . i m g S i z e | | a . s i z e , h e i g h t : b . i m g S i z e | | b . s i z e } } , h s . e x p a n d D u r a t i o n ) } , c h a n g e S i z e : f u n c t i o n ( d , i , b ) { v a r   k = t h i s . t r a n s i t i o n s , e = d ? ( t h i s . l a s t ? t h i s . l a s t . a : n u l l ) : h s . u p c o m i n g , j = ( k [ 1 ] & & e & & h s . g e t P a r a m ( e , " t r a n s i t i o n s " ) [ 1 ] = = k [ 1 ] ) ? k [ 1 ] : k [ 0 ] ; i f ( t h i s [ j ] & & j ! = " e x p a n d " ) { t h i s [ j ] ( d , i ) ; r e t u r n } i f ( t h i s . o u t l i n e & & ! t h i s . o u t l i n e W h i l e A n i m a t i n g ) { i f ( d ) { t h i s . o u t l i n e . s e t P o s i t i o n ( ) } e l s e { t h i s . o u t l i n e . d e s t r o y ( ( t h i s . i s H t m l & & t h i s . p r e s e r v e C o n t e n t ) ) } } i f ( ! d ) { t h i s . d e s t r o y O v e r l a y s ( ) } v a r   c = t h i s , h = c . x , g = c . y , f = t h i s . e a s i n g ; i f ( ! d ) { f = t h i s . e a s i n g C l o s e | | f } v a r   a = d ? f u n c t i o n ( ) { i f ( c . o u t l i n e ) { c . o u t l i n e . t a b l e . s t y l e . v i s i b i l i t y = " v i s i b l e " } s e t T i m e o u t ( f u n c t i o n ( ) { c . a f t e r E x p a n d ( ) } , 5 0 ) } : f u n c t i o n ( ) { c . a f t e r C l o s e ( ) } ; i f ( d ) { h s . s e t S t y l e s ( t h i s . w r a p p e r , { w i d t h : h . t + " p x " , h e i g h t : g . t + " p x " } ) } i f ( d & & t h i s . i s H t m l ) { h s . s e t S t y l e s ( t h i s . w r a p p e r , { l e f t : ( h . t p o s - h . c b + h . t b ) + " p x " , t o p : ( g . t p o s - g . c b + g . t b ) + " p x " } ) } i f ( t h i s . f a d e I n O u t ) { h s . s e t S t y l e s ( t h i s . w r a p p e r , { o p a c i t y : d ? 0 : 1 } ) ; h s . e x t e n d ( i . w r a p p e r , { o p a c i t y : d } ) } h s . a n i m a t e ( t h i s . w r a p p e r , i . w r a p p e r , { d u r a t i o n : b , e a s i n g : f , s t e p : f u n c t i o n ( o , l ) { i f ( c . o u t l i n e & & c . o u t l i n e W h i l e A n i m a t i n g & & l . p r o p = = " t o p " ) { v a r   n = d ? l . p o s : 1 - l . p o s ; v a r   p = { w : h . t + ( h . g e t ( " w s i z e " ) - h . t ) * n , h : g . t + ( g . g e t ( " w s i z e " ) - g . t ) * n , x : h . t p o s + ( h . p o s - h . t p o s ) * n , y : g . t p o s + ( g . p o s - g . t p o s ) * n } ; c . o u t l i n e . s e t P o s i t i o n ( p , 0 , 1 ) } i f ( c . i s H t m l ) { i f ( l . p r o p = = " l e f t " ) { c . m e d i u m C o n t e n t . s t y l e . l e f t = ( h . p o s - o ) + " p x " } i f ( l . p r o p = = " t o p " ) { c . m e d i u m C o n t e n t . s t y l e . t o p = ( g . p o s - o ) + " p x " } } } } ) ; h s . a n i m a t e ( t h i s . c o n t e n t , i . c o n t e n t , b , f , a ) ; i f ( d ) { t h i s . w r a p p e r . s t y l e . v i s i b i l i t y = " v i s i b l e " ; t h i s . c o n t e n t . s t y l e . v i s i b i l i t y = " v i s i b l e " ; i f ( t h i s . i s H t m l ) { t h i s . i n n e r C o n t e n t . s t y l e . v i s i b i l i t y = " v i s i b l e " } t h i s . a . c l a s s N a m e + = "   h i g h s l i d e - a c t i v e - a n c h o r " } } , f a d e : f u n c t i o n ( f , h ) { t h i s . o u t l i n e W h i l e A n i m a t i n g = f a l s e ; v a r   c = t h i s , j = f ? h s . e x p a n d D u r a t i o n : 0 ; i f ( f ) { h s . a n i m a t e ( t h i s . w r a p p e r , h . w r a p p e r , 0 ) ; h s . s e t S t y l e s ( t h i s . w r a p p e r , { o p a c i t y : 0 , v i s i b i l i t y : " v i s i b l e " } ) ; h s . a n i m a t e ( t h i s . c o n t e n t , h . c o n t e n t , 0 ) ; t h i s . c o n t e n t . s t y l e . v i s i b i l i t y = " v i s i b l e " ; h s . a n i m a t e ( t h i s . w r a p p e r , { o p a c i t y : 1 } , j , n u l l , f u n c t i o n ( ) { c . a f t e r E x p a n d ( ) } ) } i f ( t h i s . o u t l i n e ) { t h i s . o u t l i n e . t a b l e . s t y l e . z I n d e x = t h i s . w r a p p e r . s t y l e . z I n d e x ; v a r   b = f | | - 1 , d = t h i s . o u t l i n e . o f f s e t , a = f ? 3 : d , g = f ? d : 3 ; f o r ( v a r   e = a ; b * e < = b * g ; e + = b , j + = 2 5 ) { ( f u n c t i o n ( ) { v a r   i = f ? g - e : a - e ; s e t T i m e o u t ( f u n c t i o n ( ) { c . o u t l i n e . s e t P o s i t i o n ( 0 , i , 1 ) } , j ) } ) ( ) } } i f ( f ) { } e l s e { s e t T i m e o u t ( f u n c t i o n ( ) { i f ( c . o u t l i n e ) { c . o u t l i n e . d e s t r o y ( c . p r e s e r v e C o n t e n t ) } c . d e s t r o y O v e r l a y s ( ) ; h s . a n i m a t e ( c . w r a p p e r , { o p a c i t y : 0 } , h s . r e s t o r e D u r a t i o n , n u l l , f u n c t i o n ( ) { c . a f t e r C l o s e ( ) } ) } , j ) } } , c r o s s f a d e : f u n c t i o n ( p , b ) { i f ( ! p ) { r e t u r n } v a r   g = t h i s , v = h s . t r a n s i t i o n D u r a t i o n , j = g . l a s t , l = g . x , k = g . y , f = j . x , e = j . y , r = g . o v e r l a y B o x , d = t h i s . w r a p p e r , u = t h i s . c o n t e n t ; h s . r e m o v e E v e n t L i s t e n e r ( d o c u m e n t , " m o u s e m o v e " , h s . d r a g H a n d l e r ) ; t h i s . o u t l i n e = j . o u t l i n e ; i f ( t h i s . o u t l i n e ) { t h i s . o u t l i n e . e x p = g } j . o u t l i n e = n u l l ; j . w r a p p e r . s t y l e . o v e r f l o w = " h i d d e n " ; h s . s e t S t y l e s ( d , { l e f t : f . p o s + " p x " , t o p : e . p o s + " p x " , w i d t h : f . g e t ( " w s i z e " ) + " p x " , h e i g h t : e . g e t ( " w s i z e " ) + " p x " } ) ; h s . s e t S t y l e s ( u , { d i s p l a y : " n o n e " , w i d t h : ( l . i m g S i z e | | l . s i z e ) + " p x " , h e i g h t : ( k . i m g S i z e | | k . s i z e ) + " p x " , l e f t : ( l . p 1 + l . g e t ( " i m g P a d " ) ) + " p x " , t o p : ( k . p 1 + k . g e t ( " i m g P a d " ) ) + " p x " } ) ; v a r   w = h s . c r e a t e E l e m e n t ( " d i v " , { c l a s s N a m e : " h i g h s l i d e - i m a g e " } , { p o s i t i o n : " a b s o l u t e " , z I n d e x : 4 , o v e r f l o w : " h i d d e n " , d i s p l a y : " n o n e " , l e f t : ( f . p 1 + f . g e t ( " i m g P a d " ) ) + " p x " , t o p : ( e . p 1 + e . g e t ( " i m g P a d " ) ) + " p x " , w i d t h : ( f . i m g S i z e | | f . s i z e ) + " p x " , h e i g h t : ( e . i m g S i z e | | e . s i z e ) + " p x " } ) ; i f ( t h i s . i s H t m l ) { h s . s e t S t y l e s ( t h i s . m e d i u m C o n t e n t , { l e f t : 0 , t o p : 0 } ) } f o r ( v a r   z = 0 ; z < t h i s . o v e r l a y s . l e n g t h ; z + + ) { v a r   s = h s . $ ( " h s I d " + t h i s . o v e r l a y s [ z ] ) ; i f ( s . s t y l e . v i s i b i l i t y = = " h i d d e n " ) { s . s t y l e . d i s p l a y = " n o n e " } } i f ( r ) { h s . s e t S t y l e s ( r , { o v e r f l o w : " v i s i b l e " , l e f t : ( f . p 1 + f . c b ) + " p x " , t o p : ( e . p 1 + e . c b ) + " p x " , w i d t h : f . s i z e + " p x " , h e i g h t : e . s i z e + " p x " } ) } v a r   q = { o l d I m g : j , n e w I m g : t h i s } ; f o r ( v a r   t   i n   q ) { t h i s [ t ] = q [ t ] . c o n t e n t . c l o n e N o d e ( 1 ) ; h s . s e t S t y l e s ( t h i s [ t ] , { p o s i t i o n : " a b s o l u t e " , b o r d e r : 0 , v i s i b i l i t y : " v i s i b l e " } ) ; w . a p p e n d C h i l d ( t h i s [ t ] ) } h s . s e t S t y l e s ( t h i s . o l d I m g , { l e f t : 0 , t o p : 0 } ) ; h s . s e t S t y l e s ( t h i s . n e w I m g , { d i s p l a y : " b l o c k " , o p a c i t y : 0 , l e f t : ( l . p o s - f . p o s + l . p 1 - f . p 1 + l . g e t ( " i m g P a d " ) - f . g e t ( " i m g P a d " ) ) + " p x " , t o p : ( k . p o s - e . p o s + k . p 1 - e . p 1 + k . g e t ( " i m g P a d " ) - e . g e t ( " i m g P a d " ) ) + " p x " } ) ; d . a p p e n d C h i l d ( w ) ; i f ( r ) { r . c l a s s N a m e = " " ; d . a p p e n d C h i l d ( r ) } w . s t y l e . d i s p l a y = " " ; j . c o n t e n t . s t y l e . d i s p l a y = " n o n e " ; i f ( h s . s a f a r i ) { v a r   h = n a v i g a t o r . u s e r A g e n t . m a t c h ( / S a f a r i \ / ( [ 0 - 9 ] { 3 } ) / ) ; i f ( h & & p a r s e I n t ( h [ 1 ] ) < 5 2 5 ) { d . s t y l e . v i s i b i l i t y = " v i s i b l e " } } f u n c t i o n   c ( ) { d . s t y l e . v i s i b i l i t y = u . s t y l e . v i s i b i l i t y = " v i s i b l e " ; u . s t y l e . d i s p l a y = " b l o c k " ; w . s t y l e . d i s p l a y = " n o n e " ; g . a . c l a s s N a m e + = "   h i g h s l i d e - a c t i v e - a n c h o r " ; g . a f t e r E x p a n d ( ) ; j . a f t e r C l o s e ( ) ; g . l a s t = n u l l } h s . a n i m a t e ( j . w r a p p e r , { l e f t : l . p o s , t o p : k . p o s , w i d t h : l . g e t ( " w s i z e " ) , h e i g h t : k . g e t ( " w s i z e " ) } , v ) ; h s . a n i m a t e ( w , { w i d t h : l . i m g S i z e | | l . s i z e , h e i g h t : k . i m g S i z e | | k . s i z e , l e f t : l . p 1 + l . g e t ( " i m g P a d " ) , t o p : k . p 1 + k . g e t ( " i m g P a d " ) } , v ) ; h s . a n i m a t e ( t h i s . o l d I m g , { l e f t : ( f . p o s - l . p o s + f . p 1 - l . p 1 + f . g e t ( " i m g P a d " ) - l . g e t ( " i m g P a d " ) ) , t o p : ( e . p o s - k . p o s + e . p 1 - k . p 1 + e . g e t ( " i m g P a d " ) - k . g e t ( " i m g P a d " ) ) } , v ) ; h s . a n i m a t e ( t h i s . n e w I m g , { o p a c i t y : 1 , l e f t : 0 , t o p : 0 } , v ) ; i f ( r ) { h s . a n i m a t e ( r , { l e f t : l . p 1 + l . c b , t o p : k . p 1 + k . c b , w i d t h : l . s i z e , h e i g h t : k . s i z e } , v ) } i f ( t h i s . o u t l i n e ) { v a r   a = f u n c t i o n ( o , i ) { i f ( i . p r o p = = " t o p " ) { v a r   n = g . w r a p p e r . s t y l e ; v a r   x = { w : p a r s e I n t ( n . w i d t h ) , h : p a r s e I n t ( n . h e i g h t ) , x : p a r s e I n t ( n . l e f t ) , y : p a r s e I n t ( n . t o p ) } ; g . o u t l i n e . s e t P o s i t i o n ( x ) } } } h s . a n i m a t e ( d , b . w r a p p e r , { d u r a t i o n : v , c o m p l e t e : c , s t e p : a } ) ; w . s t y l e . v i s i b i l i t y = " v i s i b l e " } , r e u s e O v e r l a y : f u n c t i o n ( d , c ) { i f ( ! t h i s . l a s t ) { r e t u r n   f a l s e } f o r ( v a r   b = 0 ; b < t h i s . l a s t . o v e r l a y s . l e n g t h ; b + + ) { v a r   a = h s . $ ( " h s I d " + t h i s . l a s t . o v e r l a y s [ b ] ) ; i f ( a & & a . h s I d = = d . h s I d ) { t h i s . g e n O v e r l a y B o x ( ) ; a . r e u s e = t h i s . k e y ; h s . p u s h ( t h i s . o v e r l a y s , t h i s . l a s t . o v e r l a y s [ b ] ) ; r e t u r n   t r u e } } r e t u r n   f a l s e } , a f t e r E x p a n d : f u n c t i o n ( ) { t h i s . i s E x p a n d e d = t r u e ; t h i s . f o c u s ( ) ; i f ( t h i s . i s H t m l & & t h i s . o b j e c t L o a d T i m e = = " a f t e r " ) { t h i s . w r i t e E x t e n d e d C o n t e n t ( ) } i f ( t h i s . i f r a m e ) { t r y { v a r   g = t h i s , f = t h i s . i f r a m e . c o n t e n t D o c u m e n t | | t h i s . i f r a m e . c o n t e n t W i n d o w . d o c u m e n t ; h s . a d d E v e n t L i s t e n e r ( f , " m o u s e d o w n " , f u n c t i o n ( ) { i f ( h s . f o c u s K e y ! = g . k e y ) { g . f o c u s ( ) } } ) } c a t c h ( d ) { } i f ( h s . i e & & t y p e o f   t h i s . i s C l o s i n g ! = " b o o l e a n " ) { t h i s . i f r a m e . s t y l e . w i d t h = ( t h i s . o b j e c t W i d t h - 1 ) + " p x " } } i f ( t h i s . d i m m i n g O p a c i t y ) { h s . d i m ( t h i s ) } i f ( h s . u p c o m i n g & & h s . u p c o m i n g = = t h i s . a ) { h s . u p c o m i n g = n u l l } t h i s . p r e p a r e N e x t O u t l i n e ( ) ; v a r   c = h s . p a g e , b = h s . m o u s e . x + c . s c r o l l L e f t , a = h s . m o u s e . y + c . s c r o l l T o p ; t h i s . m o u s e I s O v e r = t h i s . x . p o s < b & & b < t h i s . x . p o s + t h i s . x . g e t ( " w s i z e " ) & & t h i s . y . p o s < a & & a < t h i s . y . p o s + t h i s . y . g e t ( " w s i z e " ) ; i f ( t h i s . o v e r l a y B o x ) { t h i s . s h o w O v e r l a y s ( ) } h s . f i r e E v e n t ( t h i s , " o n A f t e r E x p a n d " ) } , p r e p a r e N e x t O u t l i n e : f u n c t i o n ( ) { v a r   a = t h i s . k e y ; v a r   b = t h i s . o u t l i n e T y p e ; n e w   h s . O u t l i n e ( b , f u n c t i o n ( ) { t r y { h s . e x p a n d e r s [ a ] . p r e l o a d N e x t ( ) } c a t c h ( c ) { } } ) } , p r e l o a d N e x t : f u n c t i o n ( ) { v a r   b = t h i s . g e t A d j a c e n t A n c h o r ( 1 ) ; i f ( b & & b . o n c l i c k . t o S t r i n g ( ) . m a t c h ( / h s \ . e x p a n d / ) ) { v a r   a = h s . c r e a t e E l e m e n t ( " i m g " , { s r c : h s . g e t S r c ( b ) } ) } } , g e t A d j a c e n t A n c h o r : f u n c t i o n ( c ) { v a r   b = t h i s . g e t A n c h o r I n d e x ( ) , a = h s . a n c h o r s . g r o u p s [ t h i s . s l i d e s h o w G r o u p | | " n o n e " ] ; i f ( ! a [ b + c ] & & t h i s . s l i d e s h o w & & t h i s . s l i d e s h o w . r e p e a t ) { i f ( c = = 1 ) { r e t u r n   a [ 0 ] } e l s e { i f ( c = = - 1 ) { r e t u r n   a [ a . l e n g t h - 1 ] } } } r e t u r n   a [ b + c ] | | n u l l } , g e t A n c h o r I n d e x : f u n c t i o n ( ) { v a r   a = h s . g e t A n c h o r s ( ) . g r o u p s [ t h i s . s l i d e s h o w G r o u p | | " n o n e " ] ; i f ( a ) { f o r ( v a r   b = 0 ; b < a . l e n g t h ; b + + ) { i f ( a [ b ] = = t h i s . a ) { r e t u r n   b } } } r e t u r n   n u l l } , g e t N u m b e r : f u n c t i o n ( ) { i f ( t h i s [ t h i s . n u m b e r P o s i t i o n ] ) { v a r   a = h s . a n c h o r s . g r o u p s [ t h i s . s l i d e s h o w G r o u p | | " n o n e " ] ; i f ( a ) { v a r   b = h s . l a n g . n u m b e r . r e p l a c e ( " % 1 " , t h i s . g e t A n c h o r I n d e x ( ) + 1 ) . r e p l a c e ( " % 2 " , a . l e n g t h ) ; t h i s [ t h i s . n u m b e r P o s i t i o n ] . i n n e r H T M L = ' < d i v   c l a s s = " h i g h s l i d e - n u m b e r " > ' + b + " < / d i v > " + t h i s [ t h i s . n u m b e r P o s i t i o n ] . i n n e r H T M L } } } , i n i t S l i d e s h o w : f u n c t i o n ( ) { i f ( ! t h i s . l a s t ) { f o r ( v a r   c = 0 ; c < h s . s l i d e s h o w s . l e n g t h ; c + + ) { v a r   b = h s . s l i d e s h o w s [ c ] , d = b . s l i d e s h o w G r o u p ; i f ( t y p e o f   d = = " u n d e f i n e d " | | d = = = n u l l | | d = = = t h i s . s l i d e s h o w G r o u p ) { t h i s . s l i d e s h o w = n e w   h s . S l i d e s h o w ( t h i s . k e y , b ) } } } e l s e { t h i s . s l i d e s h o w = t h i s . l a s t . s l i d e s h o w } v a r   b = t h i s . s l i d e s h o w ; i f ( ! b ) { r e t u r n } v a r   a = b . e x p K e y = t h i s . k e y ; b . c h e c k F i r s t A n d L a s t ( ) ; b . d i s a b l e ( " f u l l - e x p a n d " ) ; i f ( b . c o n t r o l s ) { v a r   e = b . o v e r l a y O p t i o n s | | { } ; e . o v e r l a y I d = b . c o n t r o l s ; e . h s I d = " c o n t r o l s " ; t h i s . c r e a t e O v e r l a y ( e ) } i f ( b . t h u m b s t r i p ) { b . t h u m b s t r i p . a d d ( t h i s ) } i f ( ! t h i s . l a s t & & t h i s . a u t o p l a y ) { b . p l a y ( t r u e ) } i f ( b . a u t o p l a y ) { b . a u t o p l a y = s e t T i m e o u t ( f u n c t i o n ( ) { h s . n e x t ( a ) } , ( b . i n t e r v a l | | 5 0 0 ) ) } } , c a n c e l L o a d i n g : f u n c t i o n ( ) { h s . d i s c a r d E l e m e n t ( t h i s . w r a p p e r ) ; h s . e x p a n d e r s [ t h i s . k e y ] = n u l l ; i f ( h s . u p c o m i n g = = t h i s . a ) { h s . u p c o m i n g = n u l l } h s . u n d i m ( t h i s . k e y ) ; i f ( t h i s . l o a d i n g ) { h s . l o a d i n g . s t y l e . l e f t = " - 9 9 9 9 p x " } h s . f i r e E v e n t ( t h i s , " o n H i d e L o a d i n g " ) } , w r i t e C r e d i t s : f u n c t i o n ( ) { i f ( t h i s . c r e d i t s ) { r e t u r n } t h i s . c r e d i t s = h s . c r e a t e E l e m e n t ( " a " , { h r e f : h s . c r e d i t s H r e f , t a r g e t : h s . c r e d i t s T a r g e t , c l a s s N a m e : " h i g h s l i d e - c r e d i t s " , i n n e r H T M L : h s . l a n g . c r e d i t s T e x t , t i t l e : h s . l a n g . c r e d i t s T i t l e } ) ; t h i s . c r e a t e O v e r l a y ( { o v e r l a y I d : t h i s . c r e d i t s , p o s i t i o n : t h i s . c r e d i t s P o s i t i o n | | " t o p   l e f t " , h s I d : " c r e d i t s " } ) } , g e t I n l i n e : f u n c t i o n ( t y p e s , a d d O v e r l a y ) { f o r ( v a r   i = 0 ; i < t y p e s . l e n g t h ; i + + ) { v a r   t y p e = t y p e s [ i ] , s = n u l l ; i f ( t y p e = = " c a p t i o n " & & ! h s . f i r e E v e n t ( t h i s , " o n B e f o r e G e t C a p t i o n " ) ) { r e t u r n } e l s e { i f ( t y p e = = " h e a d i n g " & & ! h s . f i r e E v e n t ( t h i s , " o n B e f o r e G e t H e a d i n g " ) ) { r e t u r n } } i f ( ! t h i s [ t y p e + " I d " ] & & t h i s . t h u m b s U s e r S e t I d ) { t h i s [ t y p e + " I d " ] = t y p e + " - f o r - " + t h i s . t h u m b s U s e r S e t I d } i f ( t h i s [ t y p e + " I d " ] ) { t h i s [ t y p e ] = h s . g e t N o d e ( t h i s [ t y p e + " I d " ] ) } i f ( ! t h i s [ t y p e ] & & ! t h i s [ t y p e + " T e x t " ] & & t h i s [ t y p e + " E v a l " ] ) { t r y { s = e v a l ( t h i s [ t y p e + " E v a l " ] ) } c a t c h ( e ) { } } i f ( ! t h i s [ t y p e ] & & t h i s [ t y p e + " T e x t " ] ) { s = t h i s [ t y p e + " T e x t " ] } i f ( ! t h i s [ t y p e ] & & ! s ) { v a r   n e x t = t h i s . a . n e x t S i b l i n g ; w h i l e ( n e x t & & ! h s . i s H s A n c h o r ( n e x t ) ) { i f ( ( n e w   R e g E x p ( " h i g h s l i d e - " + t y p e ) ) . t e s t ( n e x t . c l a s s N a m e | | n u l l ) ) { t h i s [ t y p e ] = n e x t . c l o n e N o d e ( 1 ) ; b r e a k } n e x t = n e x t . n e x t S i b l i n g } } i f ( ! t h i s [ t y p e ] & & ! s & & t h i s . n u m b e r P o s i t i o n = = t y p e ) { s = " \ n " } i f ( ! t h i s [ t y p e ] & & s ) { t h i s [ t y p e ] = h s . c r e a t e E l e m e n t ( " d i v " , { c l a s s N a m e : " h i g h s l i d e - " + t y p e , i n n e r H T M L : s } ) } i f ( a d d O v e r l a y & & t h i s [ t y p e ] ) { v a r   o = { p o s i t i o n : ( t y p e = = " h e a d i n g " ) ? " a b o v e " : " b e l o w " } ; f o r ( v a r   x   i n   t h i s [ t y p e + " O v e r l a y " ] ) { o [ x ] = t h i s [ t y p e + " O v e r l a y " ] [ x ] } o . o v e r l a y I d = t h i s [ t y p e ] ; t h i s . c r e a t e O v e r l a y ( o ) } } } , d o S h o w H i d e : f u n c t i o n ( a ) { i f ( h s . h i d e S e l e c t s ) { t h i s . s h o w H i d e E l e m e n t s ( " S E L E C T " , a ) } i f ( h s . h i d e I f r a m e s ) { t h i s . s h o w H i d e E l e m e n t s ( " I F R A M E " , a ) } i f ( h s . g e c k o M a c ) { t h i s . s h o w H i d e E l e m e n t s ( " * " , a ) } } , s h o w H i d e E l e m e n t s : f u n c t i o n ( c , b ) { v a r   e = 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 ( c ) ; v a r   a = c = = " * " ? " o v e r f l o w " : " v i s i b i l i t y " ; f o r ( v a r   f = 0 ; f < e . l e n g t h ; f + + ) { i f ( a = = " v i s i b i l i t y " | | ( 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 [ f ] , " " ) . g e t P r o p e r t y V a l u e ( " o v e r f l o w " ) = = " a u t o " | | e [ f ] . g e t A t t r i b u t e ( " h i d d e n - b y " ) ! = n u l l ) ) { v a r   h = e [ f ] . g e t A t t r i b u t e ( " h i d d e n - b y " ) ; i f ( b = = " v i s i b l e " & & h ) { h = h . r e p l a c e ( " [ " + t h i s . k e y + " ] " , " " ) ; e [ f ] . s e t A t t r i b u t e ( " h i d d e n - b y " , h ) ; i f ( ! h ) { e [ f ] . s t y l e [ a ] = e [ f ] . o r i g P r o p } } e l s e { i f ( b = = " h i d d e n " ) { v a r   k = h s . g e t P o s i t i o n ( e [ f ] ) ; k . w = e [ f ] . o f f s e t W i d t h ; k . h = e [ f ] . o f f s e t H e i g h t ; i f ( ! t h i s . d i m m i n g O p a c i t y ) { v a r   j = ( k . x + k . w < t h i s . x . g e t ( " o p o s " ) | | k . x > t h i s . x . g e t ( " o p o s " ) + t h i s . x . g e t ( " o s i z e " ) ) ; v a r   g = ( k . y + k . h < t h i s . y . g e t ( " o p o s " ) | | k . y > t h i s . y . g e t ( " o p o s " ) + t h i s . y . g e t ( " o s i z e " ) ) } v a r   d = h s . g e t W r a p p e r K e y ( e [ f ] ) ; i f ( ! j & & ! g & & d ! = t h i s . k e y ) { i f ( ! h ) { e [ f ] . s e t A t t r i b u t e ( " h i d d e n - b y " , " [ " + t h i s . k e y + " ] " ) ; e [ f ] . o r i g P r o p = e [ f ] . s t y l e [ a ] ; e [ f ] . s t y l e [ a ] = " h i d d e n " } e l s e { i f ( h . i n d e x O f ( " [ " + t h i s . k e y + " ] " ) = = - 1 ) { e [ f ] . s e t A t t r i b u t e ( " h i d d e n - b y " , h + " [ " + t h i s . k e y + " ] " ) } } } e l s e { i f ( ( h = = " [ " + t h i s . k e y + " ] " | | h s . f o c u s K e y = = d ) & & d ! = t h i s . k e y ) { e [ f ] . s e t A t t r i b u t e ( " h i d d e n - b y " , " " ) ; e [ f ] . s t y l e [ a ] = e [ f ] . o r i g P r o p | | " " } e l s e { i f ( h & & h . i n d e x O f ( " [ " + t h i s . k e y + " ] " ) > - 1 ) { e [ f ] . s e t A t t r i b u t e ( " h i d d e n - b y " , h . r e p l a c e ( " [ " + t h i s . k e y + " ] " , " " ) ) } } } } } } } } , f o c u s : f u n c t i o n ( ) { t h i s . w r a p p e r . s t y l e . z I n d e x = h s . z I n d e x C o u n t e r + = 2 ; f o r ( v a r   a = 0 ; a < h s . e x p a n d e r s . l e n g t h ; a + + ) { i f ( h s . e x p a n d e r s [ a ] & & a = = h s . f o c u s K e y ) { v a r   b = h s . e x p a n d e r s [ a ] ; b . c o n t e n t . c l a s s N a m e + = "   h i g h s l i d e - " + b . c o n t e n t T y p e + " - b l u r " ; i f ( b . i s I m a g e ) { b . c o n t e n t . s t y l e . c u r s o r = h s . i e ? " h a n d " : " p o i n t e r " ; b . c o n t e n t . t i t l e = h s . l a n g . f o c u s T i t l e } h s . f i r e E v e n t ( b , " o n B l u r " ) } } i f ( t h i s . o u t l i n e ) { t h i s . o u t l i n e . t a b l e . s t y l e . z I n d e x = t h i s . w r a p p e r . s t y l e . z I n d e x - 1 } t h i s . c o n t e n t . c l a s s N a m e = " h i g h s l i d e - " + t h i s . c o n t e n t T y p e ; i f ( t h i s . i s I m a g e ) { t h i s . c o n t e n t . t i t l e = h s . l a n g . r e s t o r e T i t l e ; i f ( h s . r e s t o r e C u r s o r ) { h s . s t y l e R e s t o r e C u r s o r = w i n d o w . o p e r a ? " p o i n t e r " : " u r l ( " + h s . g r a p h i c s D i r + h s . r e s t o r e C u r s o r + " ) ,   p o i n t e r " ; i f ( h s . i e & & h s . u a V e r s i o n < 6 ) { h s . s t y l e R e s t o r e C u r s o r = " h a n d " } t h i s . c o n t e n t . s t y l e . c u r s o r = h s . s t y l e R e s t o r e C u r s o r } } h s . f o c u s K e y = t h i s . k e y ; h s . a d d E v e n t L i s t e n e r ( d o c u m e n t , w i n d o w . o p e r a ? " k e y p r e s s " : " k e y d o w n " , h s . k e y H a n d l e r ) ; h s . f i r e E v e n t ( t h i s , " o n F o c u s " ) } , m o v e T o : f u n c t i o n ( a , b ) { t h i s . x . s e t P o s ( a ) ; t h i s . y . s e t P o s ( b ) } , r e s i z e : f u n c t i o n ( d ) { v a r   a , b , c = d . w i d t h / d . h e i g h t ; a = M a t h . m a x ( d . w i d t h + d . d X , M a t h . m i n ( t h i s . m i n W i d t h , t h i s . x . f u l l ) ) ; i f ( t h i s . i s I m a g e & & M a t h . a b s ( a - t h i s . x . f u l l ) < 1 2 ) { a = t h i s . x . f u l l } b = t h i s . i s H t m l ? d . h e i g h t + d . d Y : a / c ; i f ( b < M a t h . m i n ( t h i s . m i n H e i g h t , t h i s . y . f u l l ) ) { b = M a t h . m i n ( t h i s . m i n H e i g h t , t h i s . y . f u l l ) ; i f ( t h i s . i s I m a g e ) { a = b * c } } t h i s . r e s i z e T o ( a , b ) } , r e s i z e T o : f u n c t i o n ( a , b ) { t h i s . y . s e t S i z e ( b ) ; t h i s . x . s e t S i z e ( a ) } , c l o s e : f u n c t i o n ( ) { i f ( t h i s . i s C l o s i n g | | ! t h i s . i s E x p a n d e d ) { r e t u r n } i f ( t h i s . t r a n s i t i o n s [ 1 ] = = " c r o s s f a d e " & & h s . u p c o m i n g ) { h s . g e t E x p a n d e r ( h s . u p c o m i n g ) . c a n c e l L o a d i n g ( ) ; h s . u p c o m i n g = n u l l } i f ( ! h s . f i r e E v e n t ( t h i s , " o n B e f o r e C l o s e " ) ) { r e t u r n } t h i s . i s C l o s i n g = t r u e ; i f ( t h i s . s l i d e s h o w & & ! h s . u p c o m i n g ) { t h i s . s l i d e s h o w . p a u s e ( ) } h s . r e m o v e E v e n t L i s t e n e r ( d o c u m e n t , w i n d o w . o p e r a ? " k e y p r e s s " : " k e y d o w n " , h s . k e y H a n d l e r ) ; t r y { i f ( t h i s . i s H t m l ) { t h i s . h t m l P r e p a r e C l o s e ( ) } t h i s . c o n t e n t . s t y l e . c u r s o r = " d e f a u l t " ; t h i s . c h a n g e S i z e ( 0 , { w r a p p e r : { w i d t h : t h i s . x . t , h e i g h t : t h i s . y . t , l e f t : t h i s . x . t p o s - t h i s . x . c b + t h i s . x . t b , t o p : t h i s . y . t p o s - t h i s . y . c b + t h i s . y . t b } , c o n t e n t : { l e f t : 0 , t o p : 0 , w i d t h : t h i s . x . t , h e i g h t : t h i s . y . t } } , h s . r e s t o r e D u r a t i o n ) } c a t c h ( a ) { t h i s . a f t e r C l o s e ( ) } } , h t m l P r e p a r e C l o s e : f u n c t i o n ( ) { i f ( h s . g e c k o M a c ) { i f ( ! h s . m a s k ) { h s . m a s k = h s . c r e a t e E l e m e n t ( " d i v " , n u l l , { p o s i t i o n : " a b s o l u t e " } , h s . c o n t a i n e r ) } h s . s e t S t y l e s ( h s . m a s k , { w i d t h : t h i s . x . s i z e + " p x " , h e i g h t : t h i s . y . s i z e + " p x " , l e f t : t h i s . x . p o s + " p x " , t o p : t h i s . y . p o s + " p x " , d i s p l a y : " b l o c k " } ) } i f ( t h i s . o b j e c t T y p e = = " s w f " ) { t r y { h s . $ ( t h i s . b o d y . i d ) . S t o p P l a y ( ) } c a t c h ( a ) { } } i f ( t h i s . o b j e c t L o a d T i m e = = " a f t e r " & & ! t h i s . p r e s e r v e C o n t e n t ) { t h i s . d e s t r o y O b j e c t ( ) } i f ( t h i s . s c r o l l e r D i v & & t h i s . s c r o l l e r D i v ! = t h i s . s c r o l l i n g C o n t e n t ) { t h i s . s c r o l l e r D i v . s t y l e . o v e r f l o w = " h i d d e n " } } , d e s t r o y O b j e c t : f u n c t i o n ( ) { i f ( h s . i e & & t h i s . i f r a m e ) { t r y { t h i s . i f r a m e . c o n t e n t W i n d o w . d o c u m e n t . b o d y . i n n e r H T M L = " " } c a t c h ( a ) { } } i f ( t h i s . o b j e c t T y p e = = " s w f " ) { s w f o b j e c t . r e m o v e S W F ( t h i s . b o d y . i d ) } t h i s . b o d y . i n n e r H T M L = " " } , s l e e p : f u n c t i o n ( ) { i f ( t h i s . o u t l i n e ) { t h i s . o u t l i n e . t a b l e . s t y l e . d i s p l a y = " n o n e " } t h i s . r e l e a s e M a s k = n u l l ; t h i s . w r a p p e r . s t y l e . d i s p l a y = " n o n e " ; h s . p u s h ( h s . s l e e p i n g , t h i s ) } , a w a k e : f u n c t i o n ( ) { t r y { h s . e x p a n d e r s [ t h i s . k e y ] = t h i s ; i f ( ! h s . a l l o w M u l t i p l e I n s t a n c e s & & h s . f o c u s K e y ! = t h i s . k e y ) { t r y { h s . e x p a n d e r s [ h s . f o c u s K e y ] . c l o s e ( ) } c a t c h ( b ) { } } v a r   d = h s . z I n d e x C o u n t e r + + , a = { d i s p l a y : " " , z I n d e x : d } ; h s . s e t S t y l e s ( t h i s . w r a p p e r , a ) ; t h i s . i s C l o s i n g = f a l s e ; v a r   c = t h i s . o u t l i n e | | 0 ; i f ( c ) { i f ( ! t h i s . o u t l i n e W h i l e A n i m a t i n g ) { a . v i s i b i l i t y = " h i d d e n " } h s . s e t S t y l e s ( c . t a b l e , a ) } i f ( t h i s . s l i d e s h o w ) { t h i s . i n i t S l i d e s h o w ( ) } t h i s . s h o w ( ) } c a t c h ( b ) { } } , c r e a t e O v e r l a y : f u n c t i o n ( e ) { v a r   d = e . o v e r l a y I d , a = ( e . r e l a t i v e T o = = " v i e w p o r t " & & ! / p a n e l $ / . t e s t ( e . p o s i t i o n ) ) ; i f ( t y p e o f   d = = " s t r i n g " ) { d = h s . g e t N o d e ( d ) } i f ( e . h t m l ) { d = h s . c r e a t e E l e m e n t ( " d i v " , { i n n e r H T M L : e . h t m l } ) } i f ( ! d | | t y p e o f   d = = " s t r i n g " ) { r e t u r n } i f ( ! h s . f i r e E v e n t ( t h i s , " o n C r e a t e O v e r l a y " , { o v e r l a y : d } ) ) { r e t u r n } d . s t y l e . d i s p l a y = " b l o c k " ; e . h s I d = e . h s I d | | e . o v e r l a y I d ; i f ( t h i s . t r a n s i t i o n s [ 1 ] = = " c r o s s f a d e " & & t h i s . r e u s e O v e r l a y ( e , d ) ) { r e t u r n } t h i s . g e n O v e r l a y B o x ( ) ; v a r   c = e . w i d t h & & / ^ [ 0 - 9 ] + ( p x | % ) $ / . t e s t ( e . w i d t h ) ? e . w i d t h : " a u t o " ; i f ( / ^ ( l e f t | r i g h t ) p a n e l $ / . t e s t ( e . p o s i t i o n ) & & ! / ^ [ 0 - 9 ] + p x $ / . t e s t ( e . w i d t h ) ) { c = " 2 0 0 p x " } v a r   b = h s . c r e a t e E l e m e n t ( " d i v " , { i d : " h s I d " + h s . i d C o u n t e r + + , h s I d : e . h s I d } , { p o s i t i o n : " a b s o l u t e " , v i s i b i l i t y : " h i d d e n " , w i d t h : c , d i r e c t i o n : h s . l a n g . c s s D i r e c t i o n | | " " , o p a c i t y : 0 } , a ? h s . v i e w p o r t : t h i s . o v e r l a y B o x , t r u e ) ; i f ( a ) { b . h s K e y = t h i s . k e y } b . a p p e n d C h i l d ( d ) ; h s . e x t e n d ( b , { o p a c i t y : 1 , o f f s e t X : 0 , o f f s e t Y : 0 , d u r : ( e . f a d e = = = 0 | | e . f a d e = = = f a l s e | | ( e . f a d e = = 2 & & h s . i e ) ) ? 0 : 2 5 0 } ) ; h s . e x t e n d ( b , e ) ; i f ( t h i s . g o t O v e r l a y s ) { t h i s . p o s i t i o n O v e r l a y ( b ) ; i f ( ! b . h i d e O n M o u s e O u t | | t h i s . m o u s e I s O v e r ) { h s . a n i m a t e ( b , { o p a c i t y : b . o p a c i t y } , b . d u r ) } } h s . p u s h ( t h i s . o v e r l a y s , h s . i d C o u n t e r - 1 ) } , p o s i t i o n O v e r l a y : f u n c t i o n ( e ) { v a r   f = e . p o s i t i o n | | " m i d d l e   c e n t e r " , c = ( e . r e l a t i v e T o = = " v i e w p o r t " ) , b = e . o f f s e t X , a = e . o f f s e t Y ; i f ( c ) { h s . v i e w p o r t . s t y l e . d i s p l a y = " b l o c k " ; e . h s K e y = t h i s . k e y ; i f ( e . o f f s e t W i d t h > e . p a r e n t N o d e . o f f s e t W i d t h ) { e . s t y l e . w i d t h = " 1 0 0 % " } } e l s e { i f ( e . p a r e n t N o d e ! = t h i s . o v e r l a y B o x ) { t h i s . o v e r l a y B o x . a p p e n d C h i l d ( e ) } } i f ( / l e f t $ / . t e s t ( f ) ) { e . s t y l e . l e f t = b + " p x " } i f ( / c e n t e r $ / . t e s t ( f ) ) { h s . s e t S t y l e s ( e , { l e f t : " 5 0 % " , m a r g i n L e f t : ( b - M a t h . r o u n d ( e . o f f s e t W i d t h / 2 ) ) + " p x " } ) } i f ( / r i g h t $ / . t e s t ( f ) ) { e . s t y l e . r i g h t = - b + " p x " } i f ( / ^ l e f t p a n e l $ / . t e s t ( f ) ) { h s . s e t S t y l e s ( e , { r i g h t : " 1 0 0 % " , m a r g i n R i g h t : t h i s . x . c b + " p x " , t o p : - t h i s . y . c b + " p x " , b o t t o m : - t h i s . y . c b + " p x " , o v e r f l o w : " a u t o " } ) ; t h i s . x . p 1 = e . o f f s e t W i d t h } e l s e { i f ( / ^ r i g h t p a n e l $ / . t e s t ( f ) ) { h s . s e t S t y l e s ( e , { l e f t : " 1 0 0 % " , m a r g i n L e f t : t h i s . x . c b + " p x " , t o p : - t h i s . y . c b + " p x " , b o t t o m : - t h i s . y . c b + " p x " , o v e r f l o w : " a u t o " } ) ; t h i s . x . p 2 = e . o f f s e t W i d t h } } v a r   d = e . p a r e n t N o d e . o f f s e t H e i g h t ; e . s t y l e . h e i g h t = " a u t o " ; i f ( c & & e . o f f s e t H e i g h t > d ) { e . s t y l e . h e i g h t = h s . i e L t 7 ? d + " p x " : " 1 0 0 % " } i f ( / ^ t o p / . t e s t ( f ) ) { e . s t y l e . t o p = a + " p x " } i f ( / ^ m i d d l e / . t e s t ( f ) ) { h s . s e t S t y l e s ( e , { t o p : " 5 0 % " , m a r g i n T o p : ( a - M a t h . r o u n d ( e . o f f s e t H e i g h t / 2 ) ) + " p x " } ) } i f ( / ^ b o t t o m / . t e s t ( f ) ) { e . s t y l e . b o t t o m = - a + " p x " } i f ( / ^ a b o v e $ / . t e s t ( f ) ) { h s . s e t S t y l e s ( e , { l e f t : ( - t h i s . x . p 1 - t h i s . x . c b ) + " p x " , r i g h t : ( - t h i s . x . p 2 - t h i s . x . c b ) + " p x " , b o t t o m : " 1 0 0 % " , m a r g i n B o t t o m : t h i s . y . c b + " p x " , w i d t h : " a u t o " } ) ; t h i s . y . p 1 = e . o f f s e t H e i g h t } e l s e { i f ( / ^ b e l o w $ / . t e s t ( f ) ) { h s . s e t S t y l e s ( e , { p o s i t i o n : " r e l a t i v e " , l e f t : ( - t h i s . x . p 1 - t h i s . x . c b ) + " p x " , r i g h t : ( - t h i s . x . p 2 - t h i s . x . c b ) + " p x " , t o p : " 1 0 0 % " , m a r g i n T o p : t h i s . y . c b + " p x " , w i d t h : " a u t o " } ) ; t h i s . y . p 2 = e . o f f s e t H e i g h t ; e . s t y l e . p o s i t i o n = " a b s o l u t e " } } } , g e t O v e r l a y s : f u n c t i o n ( ) { t h i s . g e t I n l i n e ( [ " h e a d i n g " , " c a p t i o n " ] , t r u e ) ; t h i s . g e t N u m b e r ( ) ; i f ( t h i s . c a p t i o n ) { h s . f i r e E v e n t ( t h i s , " o n A f t e r G e t C a p t i o n " ) } i f ( t h i s . h e a d i n g ) { h s . f i r e E v e n t ( t h i s , " o n A f t e r G e t H e a d i n g " ) } i f ( t h i s . h e a d i n g & & t h i s . d r a g B y H e a d i n g ) { t h i s . h e a d i n g . c l a s s N a m e + = "   h i g h s l i d e - m o v e " } i f ( h s . s h o w C r e d i t s ) { t h i s . w r i t e C r e d i t s ( ) } f o r ( v a r   a = 0 ; a < h s . o v e r l a y s . l e n g t h ; a + + ) { v a r   d = h s . o v e r l a y s [ a ] , e = d . t h u m b n a i l I d , b = d . s l i d e s h o w G r o u p ; i f ( ( ! e & & ! b ) | | ( e & & e = = t h i s . t h u m b s U s e r S e t I d ) | | ( b & & b = = = t h i s . s l i d e s h o w G r o u p ) ) { i f ( t h i s . i s I m a g e | | ( t h i s . i s H t m l & & d . u s e O n H t m l ) ) { t h i s . c r e a t e O v e r l a y ( d ) } } } v a r   c = [ ] ; f o r ( v a r   a = 0 ; a < t h i s . o v e r l a y s . l e n g t h ; a + + ) { v a r   d = h s . $ ( " h s I d " + t h i s . o v e r l a y s [ a ] ) ; i f ( / p a n e l $ / . t e s t ( d . p o s i t i o n ) ) { t h i s . p o s i t i o n O v e r l a y ( d ) } e l s e { h s . p u s h ( c , d ) } } f o r ( v a r   a = 0 ; a < c . l e n g t h ; a + + ) { t h i s . p o s i t i o n O v e r l a y ( c [ a ] ) } t h i s . g o t O v e r l a y s = t r u e } , g e n O v e r l a y B o x : f u n c t i o n ( ) { i f ( ! t h i s . o v e r l a y B o x ) { t h i s . o v e r l a y B o x = h s . c r e a t e E l e m e n t ( " d i v " , { c l a s s N a m e : t h i s . w r a p p e r C l a s s N a m e } , { p o s i t i o n : " a b s o l u t e " , w i d t h : ( t h i s . x . s i z e | | ( t h i s . u s e B o x ? t h i s . w i d t h : n u l l ) | | t h i s . x . f u l l ) + " p x " , h e i g h t : ( t h i s . y . s i z e | | t h i s . y . f u l l ) + " p x " , v i s i b i l i t y : " h i d d e n " , o v e r f l o w : " h i d d e n " , z I n d e x : h s . i e ? 4 : n u l l } , h s . c o n t a i n e r , t r u e ) } } , s i z e O v e r l a y B o x : f u n c t i o n ( f , d ) { v a r   c = t h i s . o v e r l a y B o x , a = t h i s . x , h = t h i s . y ; h s . s e t S t y l e s ( c , { w i d t h : a . s i z e + " p x " , h e i g h t : h . s i z e + " p x " } ) ; i f ( f | | d ) { f o r ( v a r   e = 0 ; e < t h i s . o v e r l a y s . l e n g t h ; e + + ) { v a r   g = h s . $ ( " h s I d " + t h i s . o v e r l a y s [ e ] ) ; v a r   b = ( h s . i e L t 7 | | d o c u m e n t . c o m p a t M o d e = = " B a c k C o m p a t " ) ; i f ( g & & / ^ ( a b o v e | b e l o w ) $ / . t e s t ( g . p o s i t i o n ) ) { i f ( b ) { g . s t y l e . w i d t h = ( c . o f f s e t W i d t h + 2 * a . c b + a . p 1 + a . p 2 ) + " p x " } h [ g . p o s i t i o n = = " a b o v e " ? " p 1 " : " p 2 " ] = g . o f f s e t H e i g h t } i f ( g & & b & & / ^ ( l e f t | r i g h t ) p a n e l $ / . t e s t ( g . p o s i t i o n ) ) { g . s t y l e . h e i g h t = ( c . o f f s e t H e i g h t + 2 * h . c b ) + " p x " } } } i f ( f ) { h s . s e t S t y l e s ( t h i s . c o n t e n t , { t o p : h . p 1 + " p x " } ) ; h s . s e t S t y l e s ( c , { t o p : ( h . p 1 + h . c b ) + " p x " } ) } } , s h o w O v e r l a y s : f u n c t i o n ( ) { v a r   a = t h i s . o v e r l a y B o x ; a . c l a s s N a m e = " " ; h s . s e t S t y l e s ( a , { t o p : ( t h i s . y . p 1 + t h i s . y . c b ) + " p x " , l e f t : ( t h i s . x . p 1 + t h i s . x . c b ) + " p x " , o v e r f l o w : " v i s i b l e " } ) ; i f ( h s . s a f a r i ) { a . s t y l e . v i s i b i l i t y = " v i s i b l e " } t h i s . w r a p p e r . a p p e n d C h i l d ( a ) ; f o r ( v a r   c = 0 ; c < t h i s . o v e r l a y s . l e n g t h ; c + + ) { v a r   d = h s . $ ( " h s I d " + t h i s . o v e r l a y s [ c ] ) ; d . s t y l e . z I n d e x = d . h s I d = = " c o n t r o l s " ? 5 : 4 ; i f ( ! d . h i d e O n M o u s e O u t | | t h i s . m o u s e I s O v e r ) { d . s t y l e . v i s i b i l i t y = " v i s i b l e " ; h s . s e t S t y l e s ( d , { v i s i b i l i t y : " v i s i b l e " , d i s p l a y : " " } ) ; h s . a n i m a t e ( d , { o p a c i t y : d . o p a c i t y } , d . d u r ) } } } , d e s t r o y O v e r l a y s : f u n c t i o n ( ) { i f ( ! t h i s . o v e r l a y s . l e n g t h ) { r e t u r n } f o r ( v a r   a = 0 ; a < t h i s . o v e r l a y s . l e n g t h ; a + + ) { v a r   b = h s . $ ( " h s I d " + t h i s . o v e r l a y s [ a ] ) ; i f ( b . p a r e n t N o d e = = h s . v i e w p o r t ) { h s . d i s c a r d E l e m e n t ( b ) } } i f ( t h i s . s l i d e s h o w ) { v a r   d = t h i s . s l i d e s h o w . c o n t r o l s ; i f ( d & & h s . g e t E x p a n d e r ( d ) = = t h i s ) { d . p a r e n t N o d e . r e m o v e C h i l d ( d ) } } i f ( t h i s . i s H t m l & & t h i s . p r e s e r v e C o n t e n t ) { t h i s . o v e r l a y B o x . s t y l e . t o p = " - 9 9 9 9 p x " ; h s . c o n t a i n e r . a p p e n d C h i l d ( t h i s . o v e r l a y B o x ) } e l s e { h s . d i s c a r d E l e m e n t ( t h i s . o v e r l a y B o x ) } } , c r e a t e F u l l E x p a n d : f u n c t i o n ( ) { i f ( t h i s . s l i d e s h o w & & t h i s . s l i d e s h o w . c o n t r o l s ) { t h i s . s l i d e s h o w . e n a b l e ( " f u l l - e x p a n d " ) ; r e t u r n } t h i s . f u l l E x p a n d L a b e l = h s . c r e a t e E l e m e n t ( " a " , { h r e f : " j a v a s c r i p t : h s . e x p a n d e r s [ " + t h i s . k e y + " ] . d o F u l l E x p a n d ( ) ; " , t i t l e : h s . l a n g . f u l l E x p a n d T i t l e , c l a s s N a m e : " h i g h s l i d e - f u l l - e x p a n d " } ) ; i f ( ! h s . f i r e E v e n t ( t h i s , " o n C r e a t e F u l l E x p a n d " ) ) { r e t u r n } t h i s . c r e a t e O v e r l a y ( { o v e r l a y I d : t h i s . f u l l E x p a n d L a b e l , p o s i t i o n : h s . f u l l E x p a n d P o s i t i o n , h i d e O n M o u s e O u t : t r u e , o p a c i t y : h s . f u l l E x p a n d O p a c i t y } ) } , d o F u l l E x p a n d : f u n c t i o n ( ) { t r y { i f ( ! h s . f i r e E v e n t ( t h i s , " o n D o F u l l E x p a n d " ) ) { r e t u r n } i f ( t h i s . f u l l E x p a n d L a b e l ) { h s . d i s c a r d E l e m e n t ( t h i s . f u l l E x p a n d L a b e l ) } t h i s . f o c u s ( ) ; v a r   b = t h i s . x . s i z e ; t h i s . r e s i z e T o ( t h i s . x . f u l l , t h i s . y . f u l l ) ; v a r   a = t h i s . x . p o s - ( t h i s . x . s i z e - b ) / 2 ; i f ( a < h s . m a r g i n L e f t ) { a = h s . m a r g i n L e f t } t h i s . m o v e T o ( a , t h i s . y . p o s ) ; t h i s . d o S h o w H i d e ( " h i d d e n " ) ; h s . s e t D i m m e r S i z e ( t h i s ) } c a t c h ( c ) { t h i s . e r r o r ( c ) } } , a f t e r C l o s e : f u n c t i o n ( ) { t h i s . a . c l a s s N a m e = t h i s . a . c l a s s N a m e . r e p l a c e ( " h i g h s l i d e - a c t i v e - a n c h o r " , " " ) ; t h i s . d o S h o w H i d e ( " v i s i b l e " ) ; i f ( t h i s . i s H t m l & & t h i s . p r e s e r v e C o n t e n t & & t h i s . t r a n s i t i o n s [ 1 ] ! = " c r o s s f a d e " ) { t h i s . s l e e p ( ) } e l s e { i f ( t h i s . o u t l i n e & & t h i s . o u t l i n e W h i l e A n i m a t i n g ) { t h i s . o u t l i n e . d e s t r o y ( ) } h s . d i s c a r d E l e m e n t ( t h i s . w r a p p e r ) } i f ( h s . m a s k ) { h s . m a s k . s t y l e . d i s p l a y = " n o n e " } i f ( ! h s . v i e w p o r t . c h i l d N o d e s . l e n g t h ) { h s . v i e w p o r t . s t y l e . d i s p l a y = " n o n e " } i f ( t h i s . d i m m i n g O p a c i t y ) { h s . u n d i m ( t h i s . k e y ) } h s . f i r e E v e n t ( t h i s , " o n A f t e r C l o s e " ) ; h s . e x p a n d e r s [ t h i s . k e y ] = n u l l ; h s . r e O r d e r ( ) } } ; h s . A j a x = f u n c t i o n ( b , c , d ) { t h i s . a = b ; t h i s . c o n t e n t = c ; t h i s . p r e = d } ; h s . A j a x . p r o t o t y p e = { r u n : f u n c t i o n ( ) { i f ( ! t h i s . s r c ) { t h i s . s r c = h s . g e t S r c ( t h i s . a ) } i f ( t h i s . s r c . m a t c h ( " # " ) ) { v a r   a = t h i s . s r c . s p l i t ( " # " ) ; t h i s . s r c = a [ 0 ] ; t h i s . i d = a [ 1 ] } i f ( h s . c a c h e d G e t s [ t h i s . s r c ] ) { t h i s . c a c h e d G e t = h s . c a c h e d G e t s [ t h i s . s r c ] ; i f ( t h i s . i d ) { t h i s . g e t E l e m e n t C o n t e n t ( ) } e l s e { t h i s . l o a d H T M L ( ) } r e t u r n } t r y { t h i s . x m l H t t p = n e w   X M L H t t p R e q u e s t ( ) } c a t c h ( b ) { t r y { t h i s . x m l H t t p = n e w   A c t i v e X O b j e c t ( " M s x m l 2 . X M L H T T P " ) } c a t c h ( b ) { t r y { t h i s . x m l H t t p = n e w   A c t i v e X O b j e c t ( " M i c r o s o f t . X M L H T T P " ) } c a t c h ( b ) { t h i s . o n E r r o r ( ) } } } v a r   d = t h i s ; t h i s . x m l H t t p . o n r e a d y s t a t e c h a n g e = f u n c t i o n ( ) { i f ( d . x m l H t t p . r e a d y S t a t e = = 4 ) { i f ( d . i d ) { d . g e t E l e m e n t C o n t e n t ( ) } e l s e { d . l o a d H T M L ( ) } } } ; v a r   c = t h i s . s r c ; i f ( h s . f o r c e A j a x R e l o a d ) { c = c . r e p l a c e ( / $ / , ( / \ ? / . t e s t ( c ) ? " & " : " ? " ) + " d u m m y = " + ( n e w   D a t e ( ) ) . g e t T i m e ( ) ) } t h i s . x m l H t t p . o p e n ( " G E T " , c , t r u e ) ; t h i s . x m l H t t p . s e t R e q u e s t H e a d e r ( " X - R e q u e s t e d - W i t h " , " X M L H t t p R e q u e s t " ) ; t h i s . x m l H t t p . s e t R e q u e s t H e a d e r ( " C o n t e n t - T y p e " , " a p p l i c a t i o n / x - w w w - f o r m - u r l e n c o d e d " ) ; t h i s . x m l H t t p . s e n d ( n u l l ) } , g e t E l e m e n t C o n t e n t : f u n c t i o n ( ) { h s . i n i t ( ) ; v a r   a = w i n d o w . o p e r a | | h s . i e 6 S S L ? { s r c : " a b o u t : b l a n k " } : n u l l ; t h i s . i f r a m e = h s . c r e a t e E l e m e n t ( " i f r a m e " , a , { p o s i t i o n : " a b s o l u t e " , t o p : " - 9 9 9 9 p x " } , h s . c o n t a i n e r ) ; t h i s . l o a d H T M L ( ) } , l o a d H T M L : f u n c t i o n ( ) { v a r   b = t h i s . c a c h e d G e t | | t h i s . x m l H t t p . r e s p o n s e T e x t ; i f ( t h i s . p r e ) { h s . c a c h e d G e t s [ t h i s . s r c ] = b } i f ( ! h s . i e | | h s . u a V e r s i o n > = 5 . 5 ) { b = b . r e p l a c e ( / \ s / g , "   " ) . r e p l a c e ( n e w   R e g E x p ( " < l i n k [ ^ > ] * > " , " g i " ) , " " ) . r e p l a c e ( n e w   R e g E x p ( " < s c r i p t [ ^ > ] * > . * ? < \ / s c r i p t > " , " g i " ) , " " ) ; i f ( t h i s . i f r a m e ) { v a r   d = t h i s . i f r a m e . c o n t e n t D o c u m e n t ; i f ( ! d & & t h i s . i f r a m e . c o n t e n t W i n d o w ) { d = t h i s . i f r a m e . c o n t e n t W i n d o w . d o c u m e n t } i f ( ! d ) { v a r   f = t h i s ; s e t T i m e o u t ( f u n c t i o n ( ) { f . l o a d H T M L ( ) } , 2 5 ) ; r e t u r n } d . o p e n ( ) ; d . w r i t e ( b ) ; d . c l o s e ( ) ; t r y { b = d . g e t E l e m e n t B y I d ( t h i s . i d ) . i n n e r H T M L } c a t c h ( c ) { t r y { b = t h i s . i f r a m e . d o c u m e n t . g e t E l e m e n t B y I d ( t h i s . i d ) . i n n e r H T M L } c a t c h ( c ) { } } h s . d i s c a r d E l e m e n t ( t h i s . i f r a m e ) } e l s e { b = b . r e p l a c e ( n e w   R e g E x p ( " ^ . * ? < b o d y [ ^ > ] * > ( . * ? ) < / b o d y > . * ? $ " , " i " ) , " $ 1 " ) } } h s . g e t E l e m e n t B y C l a s s ( t h i s . c o n t e n t , " D I V " , " h i g h s l i d e - b o d y " ) . i n n e r H T M L = b ; t h i s . o n L o a d ( ) ; f o r ( v a r   a   i n   t h i s ) { t h i s [ a ] = n u l l } } } ; h s . S l i d e s h o w = f u n c t i o n ( c , b ) { i f ( h s . d y n a m i c a l l y U p d a t e A n c h o r s ! = = f a l s e ) { h s . u p d a t e A n c h o r s ( ) } t h i s . e x p K e y = c ; f o r ( v a r   a   i n   b ) { t h i s [ a ] = b [ a ] } i f ( t h i s . u s e C o n t r o l s ) { t h i s . g e t C o n t r o l s ( ) } i f ( t h i s . t h u m b s t r i p ) { t h i s . t h u m b s t r i p = h s . T h u m b s t r i p ( t h i s ) } } ; h s . S l i d e s h o w . p r o t o t y p e = { g e t C o n t r o l s : f u n c t i o n ( ) { t h i s . c o n t r o l s = h s . c r e a t e E l e m e n t ( " d i v " , { i n n e r H T M L : h s . r e p l a c e L a n g ( h s . s k i n . c o n t r o l s ) } , n u l l , h s . c o n t a i n e r ) ; v a r   b = [ " p l a y " , " p a u s e " , " p r e v i o u s " , " n e x t " , " m o v e " , " f u l l - e x p a n d " , " c l o s e " ] ; t h i s . b t n = { } ; v a r   c = t h i s ; f o r ( v a r   a = 0 ; a < b . l e n g t h ; a + + ) { t h i s . b t n [ b [ a ] ] = h s . g e t E l e m e n t B y C l a s s ( t h i s . c o n t r o l s , " l i " , " h i g h s l i d e - " + b [ a ] ) ; t h i s . e n a b l e ( b [ a ] ) } t h i s . b t n . p a u s e . s t y l e . d i s p l a y = " n o n e " } , c h e c k F i r s t A n d L a s t : f u n c t i o n ( ) { i f ( t h i s . r e p e a t | | ! t h i s . c o n t r o l s ) { r e t u r n } v a r   c = h s . e x p a n d e r s [ t h i s . e x p K e y ] , b = c . g e t A n c h o r I n d e x ( ) , a = / d i s a b l e d $ / ; i f ( b = = 0 ) { t h i s . d i s a b l e ( " p r e v i o u s " ) } e l s e { i f ( a . t e s t ( t h i s . b t n . p r e v i o u s . g e t E l e m e n t s B y T a g N a m e ( " a " ) [ 0 ] . c l a s s N a m e ) ) { t h i s . e n a b l e ( " p r e v i o u s " ) } } i f ( b + 1 = = h s . a n c h o r s . g r o u p s [ c . s l i d e s h o w G r o u p | | " n o n e " ] . l e n g t h ) { t h i s . d i s a b l e ( " n e x t " ) ; t h i s . d i s a b l e ( " p l a y " ) } e l s e { i f ( a . t e s t ( t h i s . b t n . n e x t . g e t E l e m e n t s B y T a g N a m e ( " a " ) [ 0 ] . c l a s s N a m e ) ) { t h i s . e n a b l e ( " n e x t " ) ; t h i s . e n a b l e ( " p l a y " ) } } } , e n a b l e : f u n c t i o n ( d ) { i f ( ! t h i s . b t n ) { r e t u r n } v a r   c = t h i s , b = t h i s . b t n [ d ] . g e t E l e m e n t s B y T a g N a m e ( " a " ) [ 0 ] , e = / d i s a b l e d $ / ; b . o n c l i c k = f u n c t i o n ( ) { c [ d ] ( ) ; r e t u r n   f a l s e } ; i f ( e . t e s t ( b . c l a s s N a m e ) ) { b . c l a s s N a m e = b . c l a s s N a m e . r e p l a c e ( e , " " ) } } , d i s a b l e : f u n c t i o n ( c ) { i f ( ! t h i s . b t n ) { r e t u r n } v a r   b = t h i s . b t n [ c ] . g e t E l e m e n t s B y T a g N a m e ( " a " ) [ 0 ] ; b . o n c l i c k = f u n c t i o n ( ) { r e t u r n   f a l s e } ; i f ( ! / d i s a b l e d $ / . t e s t ( b . c l a s s N a m e ) ) { b . c l a s s N a m e + = "   d i s a b l e d " } } , h i t S p a c e : f u n c t i o n ( ) { i f ( t h i s . a u t o p l a y ) { t h i s . p a u s e ( ) } e l s e { t h i s . p l a y ( ) } } , p l a y : f u n c t i o n ( a ) { i f ( t h i s . b t n ) { t h i s . b t n . p l a y . s t y l e . d i s p l a y = " n o n e " ; t h i s . b t n . p a u s e . s t y l e . d i s p l a y = " " } t h i s . a u t o p l a y = t r u e ; i f ( ! a ) { h s . n e x t ( t h i s . e x p K e y ) } } , p a u s e : f u n c t i o n ( ) { i f ( t h i s . b t n ) { t h i s . b t n . p a u s e . s t y l e . d i s p l a y = " n o n e " ; t h i s . b t n . p l a y . s t y l e . d i s p l a y = " " } c l e a r T i m e o u t ( t h i s . a u t o p l a y ) ; t h i s . a u t o p l a y = n u l l } , p r e v i o u s : f u n c t i o n ( ) { t h i s . p a u s e ( ) ; h s . p r e v i o u s ( t h i s . b t n . p r e v i o u s ) } , n e x t : f u n c t i o n ( ) { t h i s . p a u s e ( ) ; h s . n e x t ( t h i s . b t n . n e x t ) } , m o v e : f u n c t i o n ( ) { } , " f u l l - e x p a n d " : f u n c t i o n ( ) { h s . g e t E x p a n d e r ( ) . d o F u l l E x p a n d ( ) } , c l o s e : f u n c t i o n ( ) { h s . c l o s e ( t h i s . b t n . c l o s e ) } } ; h s . T h u m b s t r i p = f u n c t i o n ( k ) { f u n c t i o n   q ( i ) { h s . e x t e n d ( f | | { } , { o v e r l a y I d : s , h s I d : " t h u m b s t r i p " } ) ; i f ( h s . i e L t 7 ) { f . f a d e = 0 } i . c r e a t e O v e r l a y ( f ) ; h s . s e t S t y l e s ( s . p a r e n t N o d e , { o v e r f l o w : " h i d d e n " } ) } f u n c t i o n   c ( i ) { d ( u n d e f i n e d , M a t h . r o u n d ( i * s [ h ? " o f f s e t W i d t h " : " o f f s e t H e i g h t " ] * 0 . 7 ) ) } f u n c t i o n   d ( M , N ) { i f ( M = = = u n d e f i n e d ) { f o r ( v a r   L = 0 ; L < j . l e n g t h ; L + + ) { i f ( j [ L ] = = h s . e x p a n d e r s [ k . e x p K e y ] . a ) { M = L ; b r e a k } } } i f ( M = = = u n d e f i n e d ) { r e t u r n } v a r   H = s . g e t E l e m e n t s B y T a g N a m e ( " a " ) , A = H [ M ] , x = A . p a r e n t N o d e , z = h ? " L e f t " : " T o p " , O = h ? " R i g h t " : " B o t t o m " , J = h ? " W i d t h " : " H e i g h t " , C = " o f f s e t " + z , I = " o f f s e t " + J , y = o . p a r e n t N o d e . p a r e n t N o d e [ I ] , G = y - t [ I ] , w = p a r s e I n t ( t . s t y l e [ h ? " l e f t " : " t o p " ] ) | | 0 , D = w , E = 2 0 ; i f ( N ! = = u n d e f i n e d ) { D = w - N ; i f ( D > 0 ) { D = 0 } i f ( D < G ) { D = G } } e l s e { f o r ( v a r   L = 0 ; L < H . l e n g t h ; L + + ) { H [ L ] . c l a s s N a m e = " " } A . c l a s s N a m e = " h i g h s l i d e - a c t i v e - a n c h o r " ; v a r   K = M > 0 ? H [ M - 1 ] . p a r e n t N o d e [ C ] : x [ C ] , B = x [ C ] + x [ I ] + ( H [ M + 1 ] ? H [ M + 1 ] . p a r e n t N o d e [ I ] : 0 ) ; i f ( B > y - w ) { D = y - B } e l s e { i f ( K < - w ) { D = - K } } } v a r   F = x [ C ] + ( x [ I ] - g [ I ] ) / 2 + D ; h s . a n i m a t e ( t , h ? { l e f t : D } : { t o p : D } , n u l l , " e a s e O u t Q u a d " ) ; h s . a n i m a t e ( g , h ? { l e f t : F } : { t o p : F } , n u l l , " e a s e O u t Q u a d " ) ; l . s t y l e . d i s p l a y = D < 0 ? " b l o c k " : " n o n e " ; u . s t y l e . d i s p l a y = ( D > G ) ? " b l o c k " : " n o n e " } v a r   j = h s . a n c h o r s . g r o u p s [ h s . e x p a n d e r s [ k . e x p K e y ] . s l i d e s h o w G r o u p | | " n o n e " ] , f = k . t h u m b s t r i p , n = f . m o d e | | " h o r i z o n t a l " , v = ( n = = " f l o a t " ) , p = v ? [ " d i v " , " u l " , " l i " , " s p a n " ] : [ " t a b l e " , " t b o d y " , " t r " , " t d " ] , h = ( n = = " h o r i z o n t a l " ) , s = h s . c r e a t e E l e m e n t ( " d i v " , { c l a s s N a m e : " h i g h s l i d e - t h u m b s t r i p   h i g h s l i d e - t h u m b s t r i p - " + n , i n n e r H T M L : ' < d i v   c l a s s = " h i g h s l i d e - t h u m b s t r i p - i n n e r " > < ' + p [ 0 ] + " > < " + p [ 1 ] + " > < / " + p [ 1 ] + " > < / " + p [ 0 ] + ' > < / d i v > < d i v   c l a s s = " h i g h s l i d e - s c r o l l - u p " > < d i v > < / d i v > < / d i v > < d i v   c l a s s = " h i g h s l i d e - s c r o l l - d o w n " > < d i v > < / d i v > < / d i v > < d i v   c l a s s = " h i g h s l i d e - m a r k e r " > < d i v > < / d i v > < / d i v > ' } , { d i s p l a y : " n o n e " } , h s . c o n t a i n e r ) , e = s . c h i l d N o d e s , o = e [ 0 ] , l = e [ 1 ] , u = e [ 2 ] , g = e [ 3 ] , t = o . f i r s t C h i l d , a = s . g e t E l e m e n t s B y T a g N a m e ( p [ 1 ] ) [ 0 ] , b ; f o r ( v a r   r = 0 ; r < j . l e n g t h ; r + + ) { i f ( r = = 0 | | ! h ) { b = h s . c r e a t e E l e m e n t ( p [ 2 ] , n u l l , n u l l , a ) } ( f u n c t i o n ( ) { v a r   w = j [ r ] , i = h s . c r e a t e E l e m e n t ( p [ 3 ] , n u l l , n u l l , b ) , x = r ; h s . c r e a t e E l e m e n t ( " a " , { h r e f : w . h r e f , o n c l i c k : f u n c t i o n ( ) { h s . g e t E x p a n d e r ( t h i s ) . f o c u s ( ) ; r e t u r n   h s . t r a n s i t ( w ) } , i n n e r H T M L : h s . s t r i p I t e m F o r m a t t e r ? h s . s t r i p I t e m F o r m a t t e r ( w ) : w . i n n e r H T M L } , n u l l , i ) } ) ( ) } i f ( ! v ) { l . o n c l i c k = f u n c t i o n ( ) { c ( - 1 ) } ; u . o n c l i c k = f u n c t i o n ( ) { c ( 1 ) } ; h s . a d d E v e n t L i s t e n e r ( a , d o c u m e n t . o n m o u s e w h e e l ! = = u n d e f i n e d ? " m o u s e w h e e l " : " D O M M o u s e S c r o l l " , f u n c t i o n ( i ) { v a r   w = 0 ; i = i | | w i n d o w . e v e n t ; i f ( i . w h e e l D e l t a ) { w = i . w h e e l D e l t a / 1 2 0 ; i f ( h s . o p e r a ) { w = - w } } e l s e { i f ( i . d e t a i l ) { w = - i . d e t a i l / 3 } } i f ( w ) { c ( - w * 0 . 2 ) } i f ( i . p r e v e n t D e f a u l t ) { i . p r e v e n t D e f a u l t ( ) } i . r e t u r n V a l u e = f a l s e } ) } r e t u r n { a d d : q , s e l e c t T h u m b : d } } ; i f ( h s . i e ) { ( f u n c t i o n ( ) { t r y { d o c u m e n t . d o c u m e n t E l e m e n t . d o S c r o l l ( " l e f t " ) } c a t c h ( a ) { s e t T i m e o u t ( a r g u m e n t s . c a l l e e , 5 0 ) ; r e t u r n } h s . r e a d y ( ) } ) ( ) } h s . a d d E v e n t L i s t e n e r ( d o c u m e n t , " D O M C o n t e n t L o a d e d " , h s . r e a d y ) ; h s . a d d E v e n t L i s t e n e r ( w i n d o w , " l o a d " , h s . r e a d y ) ; h s . l a n g D e f a u l t s = h s . l a n g ; v a r   H s E x p a n d e r = h s . E x p a n d e r ; h s . a d d E v e n t L i s t e n e r ( w i n d o w , " l o a d " , f u n c t i o n ( ) { i f ( h s . e x p a n d C u r s o r ) { v a r   c = " . h i g h s l i d e   i m g " , d = " c u r s o r :   u r l ( " + h s . g r a p h i c s D i r + h s . e x p a n d C u r s o r + " ) ,   p o i n t e r   ! i m p o r t a n t ; " ; v a r   a = h s . c r e a t e E l e m e n t ( " s t y l e " , { t y p e : " t e x t / c s s " } , n u l l , 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 ( " H E A D " ) [ 0 ] ) ; i f ( ! h s . i e ) { a . a p p e n d C h i l d ( d o c u m e n t . c r e a t e T e x t N o d e ( c + "   { " + d + " } " ) ) } e l s e { v a r   b = d o c u m e n t . s t y l e S h e e t s [ d o c u m e n t . s t y l e S h e e t s . l e n g t h - 1 ] ; i f ( t y p e o f ( b . a d d R u l e ) = = " o b j e c t " ) { b . a d d R u l e ( c , d ) } } } } ) ; h s . a d d E v e n t L i s t e n e r ( w i n d o w , " r e s i z e " , f u n c t i o n ( ) { h s . g e t P a g e S i z e ( ) ; i f ( h s . v i e w p o r t ) { f o r ( v a r   a = 0 ; a < h s . v i e w p o r t . c h i l d N o d e s . l e n g t h ; a + + ) { v a r   b = h s . v i e w p o r t . c h i l d N o d e s [ a ] , c = h s . g e t E x p a n d e r ( b ) ; c . p o s i t i o n O v e r l a y ( b ) ; i f ( b . h s I d = = " t h u m b s t r i p " ) { c . s l i d e s h o w . t h u m b s t r i p . s e l e c t T h u m b ( ) } } } } ) ; h s . a d d E v e n t L i s t e n e r ( d o c u m e n t , " m o u s e m o v e " , f u n c t i o n ( a ) { h s . m o u s e = { x : a . c l i e n t X , y : a . c l i e n t Y } } ) ; h s . a d d E v e n t L i s t e n e r ( d o c u m e n t , " m o u s e d o w n " , h s . m o u s e C l i c k H a n d l e r ) ; h s . a d d E v e n t L i s t e n e r ( d o c u m e n t , " m o u s e u p " , h s . m o u s e C l i c k H a n d l e r ) ; h s . a d d E v e n t L i s t e n e r ( d o c u m e n t , " r e a d y " , h s . s e t C l i c k E v e n t s ) ; h s . a d d E v e n t L i s t e n e r ( w i n d o w , " l o a d " , h s . p r e l o a d I m a g e s ) ; h s . a d d E v e n t L i s t e n e r ( w i n d o w , " l o a d " , h s . p r e l o a d A j a x ) ; ( f u n c t i o n ( b ) { v a r   a = b . s c r o l l T o = f u n c t i o n ( d , f , e ) { b ( w i n d o w ) . s c r o l l T o ( d , f , e ) } ; a . d e f a u l t s = { a x i s : " y " , d u r a t i o n : 1 } ; a . w i n d o w = f u n c t i o n ( d ) { r e t u r n   b ( w i n d o w ) . s c r o l l a b l e ( ) } ; b . f n . s c r o l l a b l e = f u n c t i o n ( ) { r e t u r n   t h i s . m a p ( f u n c t i o n ( ) { v a r   d = t h i s . p a r e n t W i n d o w | | t h i s . d e f a u l t V i e w , h = t h i s . n o d e N a m e = = " # d o c u m e n t " ? d . f r a m e E l e m e n t | | d : t h i s , f = h . c o n t e n t D o c u m e n t | | ( h . c o n t e n t W i n d o w | | h ) . d o c u m e n t , e = h . s e t I n t e r v a l ; r e t u r n   h . n o d e N a m e = = " I F R A M E " | | e & & b . b r o w s e r . s a f a r i ? f . b o d y : e ? f . d o c u m e n t E l e m e n t : t h i s } ) } ; b . f n . s c r o l l T o = f u n c t i o n ( f , e , d ) { i f ( t y p e o f   e = = " o b j e c t " ) { d = e ; e = 0 } i f ( t y p e o f   d = = " f u n c t i o n " ) { d = { o n A f t e r : d } } d = b . e x t e n d ( { } , a . d e f a u l t s , d ) ; e = e | | d . s p e e d | | d . d u r a t i o n ; d . q u e u e = d . q u e u e & & d . a x i s . l e n g t h > 1 ; i f ( d . q u e u e ) { e / = 2 } d . o f f s e t = c ( d . o f f s e t ) ; d . o v e r = c ( d . o v e r ) ; r e t u r n   t h i s . s c r o l l a b l e ( ) . e a c h ( f u n c t i o n ( ) { v a r   h = t h i s , t = b ( h ) , s = f , g , r = { } , n = t . i s ( " h t m l , b o d y " ) ; s w i t c h ( t y p e o f   s ) { c a s e " n u m b e r " : c a s e " s t r i n g " : i f ( / ^ ( [ + - ] = ) ? \ d + ( p x ) ? $ / . t e s t ( s ) ) { s = c ( s ) ; b r e a k } s = b ( s , t h i s ) ; c a s e " o b j e c t " : i f ( s . i s | | s . s t y l e ) { g = ( s = b ( s ) ) . o f f s e t ( ) } } b . e a c h ( d . a x i s . s p l i t ( " " ) , f u n c t i o n ( k , x ) { v a r   u = x = = " x " ? " L e f t " : " T o p " , p = u . t o L o w e r C a s e ( ) , w = " s c r o l l " + u , q = h [ w ] , o = x = = " x " ? " W i d t h " : " H e i g h t " , l = o . t o L o w e r C a s e ( ) ; i f ( g ) { r [ w ] = g [ p ] + ( n ? 0 : q - t . o f f s e t ( ) [ p ] ) ; i f ( d . m a r g i n ) { r [ w ] - = p a r s e I n t ( s . c s s ( " m a r g i n " + u ) ) | | 0 ; r [ w ] - = p a r s e I n t ( s . c s s ( " b o r d e r " + u + " W i d t h " ) ) | | 0 } r [ w ] + = d . o f f s e t [ p ] | | 0 ; i f ( d . o v e r [ p ] ) { r [ w ] + = s [ l ] ( ) * d . o v e r [ p ] } } e l s e { r [ w ] = s [ p ] } i f ( / ^ \ d + $ / . t e s t ( r [ w ] ) ) { r [ w ] = r [ w ] < = 0 ? 0 : M a t h . m i n ( r [ w ] , i ( o ) ) } i f ( ! k & & d . q u e u e ) { i f ( q ! = r [ w ] ) { j ( d . o n A f t e r F i r s t ) } d e l e t e   r [ w ] } } ) ; j ( d . o n A f t e r ) ; f u n c t i o n   j ( k ) { t . a n i m a t e ( r , e , d . e a s i n g , k & & f u n c t i o n ( ) { k . c a l l ( t h i s , f , d ) } ) } f u n c t i o n   i ( k ) { v a r   o = " s c r o l l " + k , l = h . o w n e r D o c u m e n t ; r e t u r n   n ? M a t h . m a x ( l . d o c u m e n t E l e m e n t [ o ] , l . b o d y [ o ] ) : h [ o ] } } ) . e n d ( ) } ; f u n c t i o n   c ( d ) { r e t u r n   t y p e o f   d = = " o b j e c t " ? d : { t o p : d , l e f t : d } } } ) ( j Q u e r y ) ; v a r   p r o d u c t M o d a l = { } ; f u n c t i o n   a d d e d P r o d u c t M o d a l ( a , b , c ) { $ . u n b l o c k U I ( { f a d e O u t : 0 } ) ; $ ( " . b l o c k U I " ) . p a r e n t ( ) . u n b l o c k ( { f a d e O u t : 0 } ) ; $ ( " # m o d a l C a r t C o n t a i n e r " ) . r e m o v e ( ) ; p r o d u c t M o d a l . n e x t S t e p E l e m e n t = a ; p r o d u c t M o d a l . c a l l b a c k = c ; i f ( p r o d u c t M o d a l . c a c h e T e m p l a t e ) { r e n d e r P r o d u c t M o d a l ( p r o d u c t M o d a l . c a c h e T e m p l a t e , b ) } e l s e { $ . g e t ( " / _ e c o m m / c a r t . t e m p l a t e . c f m " , f u n c t i o n ( d ) { r e n d e r P r o d u c t M o d a l ( d , b ) } ) } } f u n c t i o n   h a n d l e A d d e d M o d a l D e l e t e ( a ) { i f ( a < c a r t . p r o d u c t s . l e n g t h ) { $ ( " # m o d a l C a r t C o n t a i n e r " ) . e q ( 0 ) . b l o c k ( { m e s s a g e : $ ( ' < d i v   c l a s s = " _ _ w a i t " > R e m o v i n g   p r o d u c t   f r o m   c a r t .   P l e a s e   w a i t . < b r > < / d i v > ' ) . a p p e n d ( _ _ t h r o b b e r ) . c s s ( { o p a c i t y : 0 . 8 } ) } ) ; d a t a s e r v i c e s . r e m o v e P r o d u c t F r o m C a r t ( c a r t . p r o d u c t s [ a ] , f u n c t i o n ( b ) { i f ( $ ( " # t o p n a v C a r t " ) . l e n g t h > 0 & & t y p e o f   r e n d e r C a r t = = " f u n c t i o n " ) { r e n d e r C a r t ( ) } r e n d e r P r o d u c t M o d a l ( p r o d u c t M o d a l . c a c h e T e m p l a t e ) ; $ ( " # m o d a l C a r t C o n t a i n e r " ) . e q ( 0 ) . u n b l o c k ( ) } , f u n c t i o n ( b ) { } ) } } f u n c t i o n   r e n d e r P r o d u c t M o d a l ( c , b ) { i f ( $ ( " # t o p n a v C a r t " ) . l e n g t h > 0 & & t y p e o f   r e n d e r C a r t = = " f u n c t i o n " ) { r e n d e r C a r t ( ) } p r o d u c t M o d a l . c a c h e T e m p l a t e = c ; v a r   a = [ ] ; $ . e a c h ( c a r t . p r o d u c t s , f u n c t i o n ( q , i ) { v a r   o = [ ( p a r s e I n t ( i . p a r t i c i p a n t ) > = 0 & & c a r t . p a r t i c i p a n t s [ i . p a r t i c i p a n t ] ? c a r t . p a r t i c i p a n t s [ i . p a r t i c i p a n t ] . f i r s t _ n a m e + "   " + c a r t . p a r t i c i p a n t s [ i . p a r t i c i p a n t ] . l a s t _ n a m e : " " ) ] , j = i . p a r t i c i p a n t s . s p l i t ( " , " ) ; f o r ( v a r   h = 0 , e = j . l e n g t h ; h < e ; h + + ) { i f ( j [ h ] ! = i . p a r t i c i p a n t & & c a r t . p a r t i c i p a n t s [ j [ h ] ] ) { o . p u s h ( c a r t . p a r t i c i p a n t s [ j [ h ] ] . f i r s t _ n a m e + "   " + c a r t . p a r t i c i p a n t s [ j [ h ] ] . l a s t _ n a m e ) } } v a r   k = { t y p e : i . t y p e , l o c a t i o n : i . l o c a t i o n , d e s c r i p : ( ( i . p k g C o d e . t o S t r i n g ( ) . l e n g t h > 0 ) ? " < s t r o n g > " + i . d e s c r i p + " < / s t r o n g >   < b r   / > < s t r o n g > " + i . a d u l t s + " < / s t r o n g >   A D ,   < s t r o n g > " + i . y o u t h s + " < / s t r o n g >   Y O ,   < s t r o n g > " + i . c h i l d r e n 1 + " < / s t r o n g >   7 - 1 2 / 6 5 - 8 0 ,   < s t r o n g > " + i . c h i l d r e n 2 + " < / s t r o n g >   0 - 6 / 8 0 + " : i . d e s c r i p ) , d a t e t i m e : i . d a t e t i m e + ( i . n i g h t s > 0 ? " < b r   / > " + i . n i g h t s + "   n i g h t ( s ) " : " " ) , n a m e : o . j o i n ( " < b r   / > " ) , p r i c e : " $ " + ( p a r s e F l o a t ( i . p r i c e ) ) . t o F i x e d ( 2 ) , d e l e t e L i n k : ' < s p a n   c l a s s = " s p a n L i n k "   s t y l e = " c u r s o r : p o i n t e r ; "   o n C l i c k = " h a n d l e A d d e d M o d a l D e l e t e ( ' + q + ' ) ; "     o n M o u s e O v e r = " $ ( t h i s ) . a d d C l a s s ( \ ' s p a n L i n k H o v e r \ ' ) "   o n M o u s e O u t = " $ ( t h i s ) . r e m o v e C l a s s ( \ ' s p a n L i n k H o v e r \ ' ) " > < i m g   s r c = " / _ e c o m m / i m a g e s / _ c l o s e . g i f " > < / s p a n > ' } ; i f ( i . t y p e = = " A i r f a r e " & & i . a i r . f & & i . a i r . f . l e n g t h ) { k . l o c a t i o n = " " ; k . d e s c r i p = " " ; k . d a t e t i m e = " " ; f o r ( v a r   l = 0 , g = i . a i r . f . l e n g t h ; l < g ; l + + ) { v a r   n = i . a i r . f [ l ] ; k . l o c a t i o n + = ' < d i v   s t y l e = " l i n e - h e i g h t : 1 5 p x ;   m i n - h e i g h t : 3 0 p x ;   v e r t i c a l - a l i g n : c e n t e r ;   w h i t e - s p a c e : n o w r a p ; " > ' + n . d l + "   t o   " + n . a l + " < / d i v > " ; k . d e s c r i p + = ' < d i v   s t y l e = " l i n e - h e i g h t : 1 5 p x ;   m i n - h e i g h t : 3 0 p x ;   v e r t i c a l - a l i g n : c e n t e r ; " > ' + n . a + "   # " + n . f n + "   /   " + n . f c + "   " + i . a i r . f b + " < / d i v > " ; k . d a t e t i m e + = ' < d i v   s t y l e = " l i n e - h e i g h t : 1 5 p x ;   m i n - h e i g h t : 3 0 p x ;   v e r t i c a l - a l i g n : c e n t e r ;   w h i t e - s p a c e : n o w r a p ; " > ' + n . d d + "   " + n . d t + " < b r   / > " + n . a d + "   " + n . a t + " < / d i v > " } } a . p u s h ( k ) } ) ; v a r   d = " " ; i f ( c a r t I n f o . i s F u l l ) { d + = ' < d i v   c l a s s = " _ m s g   _ e r r "   s t y l e = " m a r g i n - l e f t : 1 0 p x ;   p a d d i n g - t o p : 1 0 p x ;   p a d d i n g - b o t t o m : 1 0 p x ;   f o n t - s i z e : 1 1 p t ; " > ' ; d + = " < s t r o n g > U n a b l e   t o   a d d   t h e   p r o d u c t   t o   y o u r   c a r t .   Y o u   h a v e   r e a c h e d   t h e   " + c a r t I n f o . m a x P r o d u c t s + "   i t e m s   p e r   c a r t   l i m i t .   P l e a s e   p r o c e e d   t o   c h e c k o u t . < / s t r o n g > " ; d + = " < / d i v > " } e l s e { i f ( b ) { d + = ' < d i v   c l a s s = " _ m s g   _ o k "   s t y l e = " m a r g i n - l e f t : 1 0 p x ;   p a d d i n g - t o p : 1 0 p x ;   p a d d i n g - b o t t o m : 1 0 p x ;   f o n t - s i z e : 1 1 p t ; " > ' ; d + = " S u c c e s s f u l l y   a d d e d   " + ( b . _ q u a n t i t y | | " " ) + "   " + b . d e s c r i p + "   t o   t h e   c a r t . " ; d + = " < / d i v > " ; i f ( _ c a r t . p r o d u c t s . l e n g t h = = c a r t I n f o . m a x P r o d u c t s ) { d + = ' < d i v   c l a s s = " _ m s g   _ w a r n "   s t y l e = " m a r g i n - l e f t : 1 0 p x ;   p a d d i n g - t o p : 1 0 p x ;   p a d d i n g - b o t t o m : 1 0 p x ;   f o n t - s i z e : 1 1 p t ; " > Y o u   h a v e   r e a c h e d   t h e   ' + c a r t I n f o . m a x P r o d u c t s + "   i t e m s   p e r   c a r t   l i m i t .   P l e a s e   p r o c e e d   t o   c h e c k o u t . < / d i v > " ; c a r t I n f o . i s F u l l = t r u e } } } $ . b l o c k U I ( { m e s s a g e : ' < d i v   c l a s s = " a d d e d P r o d u c t M o d a l T o p " > < / d i v > < d i v   c l a s s = " a d d e d P r o d u c t M o d a l M i d d l e " > ' + d + ' < d i v   i d = " m o d a l C a r t C o n t a i n e r "   c l a s s = " a d d e d P r o d u c t M o d a l "   s t y l e = " p a d d i n g :   2 p x ; " > < / d i v > < / d i v > < d i v   c l a s s = " a d d e d P r o d u c t M o d a l B o t t o m " > < / d i v > ' , f a d e I n : 0 , c s s : m o d a l C S S } ) ; $ ( " # m o d a l C a r t C o n t a i n e r " ) . s e t T e m p l a t e ( c , n u l l , { f i l t e r _ d a t a : f a l s e } ) ; $ ( " # m o d a l C a r t C o n t a i n e r " ) . s e t P a r a m ( " t o t a l " , ' < d i v   s t y l e = " t e x t - a l i g n : r i g h t ; " > < d i v   s t y l e = " p a d d i n g : 5 p x ;   p a d d i n g - l e f t : 1 5 p x ;   f l o a t : r i g h t " > $ ' + ( p a r s e F l o a t ( _ c a r t . t o t a l p r i c e ) ) . t o F i x e d ( 2 ) + ' < / d i v > < d i v   s t y l e = " p a d d i n g : 5 p x ; " > T o t a l   i n c l u d i n g   t a x   ( e x c l u s i v e   o f   l o d g i n g   s e r v i c e   f e e s ) : < / d i v > < / d i v > ' ) . p r o c e s s T e m p l a t e ( a ) ; $ ( " # m o d a l C a r t C o n t a i n e r " ) . a p p e n d ( ( p r o d u c t M o d a l . n e x t S t e p E l e m e n t | | " " ) + ' < d i v   s t y l e = " o v e r f l o w : h i d d e n ; " > < d i v   s t y l e = " f l o a t : l e f t ;   p a d d i n g : 0 p x   1 0 p x ; " > < i n p u t   t y p e = " b u t t o n "   o n C l i c k = " $ . u n b l o c k U I ( {   f a d e O u t : 0   } ) ; "   v a l u e = " C o n t i n u e   S h o p p i n g " > < / d i v > < d i v   s t y l e = " f l o a t : r i g h t ;   p a d d i n g : 0 p x   1 0 p x ; " > < i n p u t   t y p e = " b u t t o n "   o n C l i c k = " w i n d o w . l o c a t i o n = \ ' / c h e c k o u t / \ ' ; "   v a l u e = " P r o c e e d   t o   C h e c k o u t " > < / d i v > < / d i v > ' ) ; $ ( " # m o d a l C a r t " ) . j T P S ( { p e r P a g e s : [ M a t h . m i n ( 5 , _ c a r t . p r o d u c t s . l e n g t h ) ] , f i x e d L a y o u t : t r u e } ) ; $ ( " # m o d a l C a r t   . p a g e S e l e c t o r : l a s t " ) . c l i c k ( ) ; i f ( b ) { $ ( " # m o d a l C a r t   t b o d y   t r : n o t ( . s t u b C e l l ) : e q ( " + ( _ c a r t . p r o d u c t s . l e n g t h - 1 ) + " ) " ) . p r e v A l l ( " : n o t ( . s t u b C e l l ) : l t ( " + ( b . _ q u a n t i t y - 1 ) + " ) " ) . a n d S e l f ( ) . c s s ( { b a c k g r o u n d C o l o r : " r g b ( 2 5 5 , 2 5 5 , 2 5 5 ) " } ) . a n i m a t e ( { b a c k g r o u n d C o l o r : " r g b ( 1 5 3 , 1 5 3 , 1 0 2 ) " } , " s l o w " ) . a n i m a t e ( { o p a c i t y : 1 } , 2 0 0 0 ) . a n i m a t e ( { b a c k g r o u n d C o l o r : " r g b ( 2 5 5 , 2 5 5 , 2 5 5 ) " } , " s l o w " , f u n c t i o n ( ) { $ ( t h i s ) . c s s ( { b a c k g r o u n d C o l o r : " " } ) } ) } i n i t L i n k s ( ) ; w i n d o w . s c r o l l T o ( 0 , 0 ) ; i f ( t y p e o f   p r o d u c t M o d a l . c a l l b a c k = = " f u n c t i o n " ) { p r o d u c t M o d a l . c a l l b a c k ( ) } } D a t e . p r o t o t y p e . g e t D a t e S t r i n g = f u n c t i o n ( c ) { v a r   b = [ " S u n " , " M o n " , " T u e " , " W e d " , " T h u " , " F r i " , " S a t " , " S u n " ] ; v a r   a = [ " J a n " , " F e b " , " M a r " , " A p r " , " M a y " , " J u n " , " J u l " , " A u g " , " S e p " , " O c t " , " N o v " , " D e c " ] ; c = c . r e p l a c e ( " % d a y " , b [ t h i s . g e t D a y ( ) ] ) ; c = c . r e p l a c e ( " % d a t e " , t h i s . g e t D a t e ( ) ) ; c = c . r e p l a c e ( " % o r d i n a l " , t h i s . g e t D a t e O r d i n a l ( ) ) ; c = c . r e p l a c e ( " % m o n t h " , a [ t h i s . g e t M o n t h ( ) ] ) ; c = c . r e p l a c e ( " % y e a r " , t h i s . g e t F u l l Y e a r ( ) ) ; r e t u r n   c } ; D a t e . p r o t o t y p e . g e t D a t e O r d i n a l = f u n c t i o n ( ) { v a r   b = t h i s . g e t D a t e ( ) ; v a r   a = " t h " ; i f ( b % 1 0 = = 1 & & b % 1 0 0 ! = 1 1 ) { a = " s t " } e l s e { i f ( b % 1 0 = = 2 & & b % 1 0 0 ! = 1 2 ) { a = " n d " } e l s e { i f ( b % 1 0 = = 3 & & b % 1 0 0 ! = 1 3 ) { a = " r d " } } } r e t u r n   a } ; D a t e . p r o t o t y p e . g e t I S O D a t e = f u n c t i o n ( ) { v a r   b = t h i s . g e t M o n t h ( ) + 1 ; b = ( b < 1 0 ? " 0 " : " " ) + b ; v a r   a = t h i s . g e t D a t e ( ) ; a = ( a < 1 0 ? " 0 " : " " ) + a ; r e t u r n   t h i s . g e t F u l l Y e a r ( ) + b + a } ; ( f u n c t i o n ( a ) { m = { " \ b " : " \ \ b " , " \ t " : " \ \ t " , " \ n " : " \ \ n " , " \ f " : " \ \ f " , " \ r " : " \ \ r " , ' " ' : ' \ \ " ' , " \ \ " : " \ \ \ \ " } , a . t o J S O N = f u n c t i o n ( h , c , n ) { v a r   g , f , e , d , b = / [ " \ \ \ x 0 0 - \ x 1 f \ x 7 f - \ x 9 f ] / g , j , o = n | | 1 0 ; i f ( o = = 1 ) { r e t u r n   f a l s e } i f ( h   i n s t a n c e o f   D a t e ) { r e t u r n ' " ' + ( h . t o S t r i n g ( ) | | " " ) + ' " ' } s w i t c h ( t y p e o f   h ) { c a s e " s t r i n g " : r e t u r n   b . t e s t ( h ) ? ' " ' + h . r e p l a c e ( b , f u n c t i o n ( i ) { v a r   k = m [ i ] ; i f ( k ) { r e t u r n   k } k = i . c h a r C o d e A t ( ) ; r e t u r n " \ \ u 0 0 " + M a t h . f l o o r ( k / 1 6 ) . t o S t r i n g ( 1 6 ) + ( k % 1 6 ) . t o S t r i n g ( 1 6 ) } ) + ' " ' : ' " ' + h + ' " ' ; c a s e " n u m b e r " : r e t u r n   i s F i n i t e ( h ) ? S t r i n g ( h ) : " n u l l " ; c a s e " b o o l e a n " : c a s e " n u l l " : r e t u r n   S t r i n g ( h ) ; c a s e " o b j e c t " : i f ( ! h ) { r e t u r n " n u l l " } i f ( t y p e o f   h . t o J S O N = = = " f u n c t i o n " ) { r e t u r n   a . t o J S O N ( h . t o J S O N ( ) , c , ( o - 1 ) ) } g = [ ] ; i f ( t y p e o f   h . l e n g t h = = = " n u m b e r " & & ! ( h . p r o p e r t y I s E n u m e r a b l e ( " l e n g t h " ) ) ) { d = h . l e n g t h ; f o r ( f = 0 ; f < d ; f + = 1 ) { g . p u s h ( a . t o J S O N ( h [ f ] , c , ( o - 1 ) ) | | " n u l l " ) } r e t u r n " [ " + g . j o i n ( " , " ) + " ] " } i f ( c ) { d = c . l e n g t h ; f o r ( f = 0 ; f < d ; f + = 1 ) { e = c [ f ] ; i f ( t y p e o f   e = = = " s t r i n g " ) { j = a . t o J S O N ( h [ e ] , c , ( o - 1 ) ) ; i f ( j ) { g . p u s h ( a . t o J S O N ( e , c , ( o - 1 ) ) + " : " + j ) } } } } e l s e { f o r ( e   i n   h ) { i f ( t y p e o f   e = = = " s t r i n g " ) { j = a . t o J S O N ( h [ e ] , c , ( o - 1 ) ) ; i f ( j ) { g . p u s h ( a . t o J S O N ( e , c , ( o - 1 ) ) + " : " + j ) } } } } r e t u r n " { " + g . j o i n ( " , " ) + " } " } } } ) ( j Q u e r y ) ; ( f u n c t i o n ( $ ) { t h i s . s h o w W a r n i n g = f u n c t i o n ( e l e m e n t s , m e s s a g e , a u t o H i d e , s t y l e T y p e ) { v a r   p a r = $ ( e l e m e n t s ) . e q ( 0 ) . p a r e n t ( ) ; c l e a r T i m e o u t ( $ ( p a r ) . d a t a ( " a u t o H i d e " ) ) & & $ ( p a r ) . d a t a ( " a u t o H i d e " , n u l l ) ; $ ( p a r ) . j V a l C l e a n ( ) . a p p e n d ( ' < d i v   c l a s s = " j V a l R e l W r a p "   s t y l e = " d i s p l a y : n o n e ; " > < / d i v > ' ) . f i n d ( " . j V a l R e l W r a p " ) . a p p e n d ( $ ( e l e m e n t s ) . c l o n e ( ) ) ; $ ( e l e m e n t s ) . c s s ( { m a r g i n T o p : " " , p o s i t i o n : " " , b o r d e r C o l o r : " r e d " } ) ; v a r   f i e l d W i d t h = $ ( p a r ) . f i n d ( " . j V a l R e l W r a p " ) . w i d t h ( ) , f i e l d H e i g h t = $ ( p a r ) . f i n d ( " . j V a l R e l W r a p " ) . h e i g h t ( ) ; $ ( p a r ) . f i n d ( " . j V a l R e l W r a p " ) . c s s ( { w i d t h : f i e l d W i d t h , h e i g h t : f i e l d H e i g h t } ) . e m p t y ( ) ; v a r   p a d d e d H e i g h t = ( f i e l d H e i g h t + ( $ . f n . j V a l . d e f a u l t P a d d i n g * 2 ) ) , a b s o l u t e L e f t = $ ( e l e m e n t s ) . e q ( 0 ) . p o s i t i o n ( ) . l e f t , a b s o l u t e T o p = $ ( e l e m e n t s ) . e q ( 0 ) . p o s i t i o n ( ) . t o p ; $ ( e l e m e n t s ) . e a c h ( f u n c t i o n ( ) { a b s o l u t e L e f t = M a t h . m i n ( $ ( t h i s ) . p o s i t i o n ( ) . l e f t , a b s o l u t e L e f t ) ; a b s o l u t e T o p = M a t h . m i n ( $ ( t h i s ) . p o s i t i o n ( ) . t o p , a b s o l u t e T o p ) } ) ; $ ( e l e m e n t s ) . e q ( 0 ) . b e f o r e ( ' < d i v   c l a s s = " j f V a l ' + ( s t y l e T y p e ? "   j f V a l " + s t y l e T y p e : " " ) + ' "   s t y l e = " l e f t : ' + ( a b s o l u t e L e f t - $ . f n . j V a l . d e f a u l t P a d d i n g - $ . f n . j V a l . d e f a u l t B o r d e r W i d t h ) + " p x ;   t o p : " + ( a b s o l u t e T o p - $ . f n . j V a l . d e f a u l t P a d d i n g - $ . f n . j V a l . d e f a u l t B o r d e r W i d t h + $ . f n . j V a l . I E T o p N u d g e ) + ' p x ; " > ' + ( ( s t y l e T y p e = = " p o d " ) ? ' < d i v   c l a s s = " s p a c e r B o r d e r "   s t y l e = " h e i g h t : ' + p a d d e d H e i g h t + ' p x ; " > ' : " " ) + ' < d i v   c l a s s = " s p a c e r ' + ( s t y l e T y p e ? "   s p a c e r " + s t y l e T y p e : " " ) + ' "   s t y l e = " h e i g h t : ' + p a d d e d H e i g h t + ' p x ; " > < / d i v > ' + ( ( s t y l e T y p e = = " p o d " ) ? " < / d i v > " : " " ) + ' < d i v   c l a s s = " i c o n ' + ( s t y l e T y p e ? "   i c o n " + s t y l e T y p e : " " ) + ' "   s t y l e = " h e i g h t : ' + p a d d e d H e i g h t + ' p x ; " > < d i v   c l a s s = " i c o n b g " > < / d i v > < / d i v > < d i v   c l a s s = " c o n t e n t ' + ( s t y l e T y p e ? "   c o n t e n t " + s t y l e T y p e : " " ) + ' "   s t y l e = " h e i g h t : ' + p a d d e d H e i g h t + " p x ;   l i n e - h e i g h t : " + p a d d e d H e i g h t + ' p x ; " > < s p a n   c l a s s = " m e s s a g e ' + s t y l e T y p e + ' " > ' + m e s s a g e + " < / s p a n > < / d i v > < / d i v > " ) ; v a r   s p a c e r W i d t h = f i e l d W i d t h + ( $ . f n . j V a l . d e f a u l t P a d d i n g * 2 ) + 8 ; $ ( p a r ) . f i n d ( s t y l e T y p e = = " p o d " ? " . s p a c e r B o r d e r " : " . j f V a l " ) . c s s ( { p a d d i n g : p a r s e I n t ( $ . f n . j V a l . d e f a u l t B o r d e r W i d t h ) + " p x " } ) ; $ ( p a r ) . f i n d ( " . j f V a l " ) . w i d t h ( s p a c e r W i d t h + $ ( p a r ) . f i n d ( " . i c o n " ) . w i d t h ( ) + $ ( p a r ) . f i n d ( " . c o n t e n t " ) . w i d t h ( ) + $ . f n . j V a l . d e f a u l t P a d d i n g + $ . f n . j V a l . d e f a u l t B o r d e r W i d t h ) ; i f ( a u t o H i d e ) { $ ( p a r ) . d a t a ( " a u t o H i d e " , s e t T i m e o u t ( f u n c t i o n ( ) { $ ( p a r ) . f i n d ( " . s p a c e r " ) . a n i m a t e ( { w i d t h : 1 0 } , 2 0 0 , f u n c t i o n ( ) { $ ( p a r ) . j V a l C l e a n ( ) } ) } , 2 0 0 0 ) ) . f i n d ( " . s p a c e r " ) . w i d t h ( s p a c e r W i d t h ) } e l s e { $ ( p a r ) . f i n d ( " . s p a c e r " ) . w i d t h ( 1 0 ) . a n i m a t e ( { w i d t h : s p a c e r W i d t h } , 2 0 0 ) } $ ( e l e m e n t s ) . e a c h ( f u n c t i o n ( ) { $ ( t h i s ) . c s s ( $ ( t h i s ) . p o s i t i o n ( ) ) } ) . c s s ( { p o s i t i o n : " a b s o l u t e " } ) . r e m o v e C l a s s ( " j f V a l C o n t e n t Z " ) . a d d C l a s s ( " j f V a l C o n t e n t Z " ) ; $ ( p a r ) . f i n d ( " . j V a l R e l W r a p " ) . c s s ( { d i s p l a y : " b l o c k " } ) } ; f u n c t i o n   v a l K e y ( k e y R E , e , c F , c A ) { i f ( ! ( k e y R E   i n s t a n c e o f   R e g E x p ) ) { r e t u r n   f a l s e } i f ( / ^ 1 3 $ / . t e s t ( S t r i n g ( e . k e y C o d e | | e . c h a r C o d e ) ) ) { t r y { ( t h i s [ c F ] ) ? t h i s [ c F ] ( c A ) : e v a l ( c F ) } c a t c h ( e ) { r e t u r n   t r u e } r e t u r n   - 1 } e l s e { i f ( e . c t r l K e y | | e . s h i f t K e y | | e . m e t a K e y | | ( t y p e o f ( e . k e y C o d e ) ! = " u n d e f i n e d " & & e . k e y C o d e > 0 & & k e y R E . t e s t ( S t r i n g . f r o m C h a r C o d e ( e . k e y C o d e ) ) ) | | ( t y p e o f ( e . c h a r C o d e ) ! = " u n d e f i n e d " & & e . c h a r C o d e > 0 & & S t r i n g . f r o m C h a r C o d e ( e . c h a r C o d e ) . s e a r c h ( k e y R E ) ! = ( - 1 ) ) | | ( t y p e o f ( e . c h a r C o d e ) ! = " u n d e f i n e d " & & e . c h a r C o d e ! = e . k e y C o d e & & t y p e o f ( e . k e y C o d e ) ! = " u n d e f i n e d " & & e . k e y C o d e . t o S t r i n g ( ) . s e a r c h ( / ^ ( 8 | 9 | 4 5 | 4 6 | 3 5 | 3 6 | 3 7 | 3 9 ) $ / ) ! = ( - 1 ) ) | | ( t y p e o f ( e . c h a r C o d e ) ! = " u n d e f i n e d " & & e . c h a r C o d e = = e . k e y C o d e & & t y p e o f ( e . k e y C o d e ) ! = " u n d e f i n e d " & & e . k e y C o d e . t o S t r i n g ( ) . s e a r c h ( / ^ ( 8 | 9 ) $ / ) ! = ( - 1 ) ) ) { r e t u r n   1 } e l s e { r e t u r n   0 } } } $ . f n . j V a l = f u n c t i o n ( ) { $ ( t h i s ) . s t o p ( ) . f i n d ( " . j f V a l " ) . s t o p ( ) . r e m o v e ( ) ; v a r   p a s s V a l = t r u e ; $ ( t h i s ) . f i n d ( " [ j V a l ] : n o t ( : d i s a b l e d ) : v i s i b l e " ) . e a c h ( f u n c t i o n ( ) { e v a l ( " v a r   c m d   =   " + $ ( t h i s ) . a t t r ( " j V a l " ) + " ; " ) ; $ ( t h i s ) . j V a l C l e a n ( c m d . t a r g e t | | t h i s ) ; i f ( c m d   i n s t a n c e o f   O b j e c t & & c m d . v a l i d   i n s t a n c e o f   R e g E x p & & ! c m d . v a l i d . t e s t ( $ ( t h i s ) . v a l ( ) ) ) { s h o w W a r n i n g ( c m d . t a r g e t | | t h i s , c m d . m e s s a g e | | $ . f n . j V a l . d e f a u l t M e s s a g e , c m d . a u t o H i d e | | f a l s e , c m d . s t y l e T y p e | | $ . f n . j V a l . d e f a u l t S t y l y e ) ; p a s s V a l = f a l s e } e l s e { i f ( c m d   i n s t a n c e o f   O b j e c t & & c m d . v a l i d   i n s t a n c e o f   F u n c t i o n ) { v a r   t e s t F R e t = c m d . v a l i d ( $ ( t h i s ) . v a l ( ) , t h i s ) ; i f ( t e s t F R e t = = = f a l s e | | t e s t F R e t . l e n g t h > 0 ) { s h o w W a r n i n g ( c m d . t a r g e t | | t h i s , t e s t F R e t | | c m d . m e s s a g e | | $ . f n . j V a l . d e f a u l t M e s s a g e , c m d . a u t o H i d e | | f a l s e , c m d . s t y l e T y p e | | $ . f n . j V a l . d e f a u l t S t y l y e ) ; p a s s V a l = f a l s e } } e l s e { i f ( ( c m d   i n s t a n c e o f   R e g E x p & & ! c m d . t e s t ( $ ( t h i s ) . v a l ( ) ) ) | | ( c m d   i n s t a n c e o f   F u n c t i o n & & ! c m d ( $ ( t h i s ) . v a l ( ) ) ) ) { s h o w W a r n i n g ( c m d . t a r g e t | | t h i s , $ . f n . j V a l . d e f a u l t M e s s a g e ) ; p a s s V a l = f a l s e } } } } ) ; r e t u r n   p a s s V a l } ; $ . f n . j V a l C l e a n = f u n c t i o n ( t a r g e t ) { $ ( t h i s ) . f i n d ( " . j f V a l " ) . s t o p ( ) . r e m o v e ( ) ; $ ( t a r g e t | | $ ( t h i s ) . f i n d ( " [ j V a l ] " ) ) . c s s ( { p o s i t i o n : " " , b o r d e r C o l o r : " " , l e f t : " 0 p x " , t o p : " 0 p x " } ) . r e m o v e C l a s s ( " j f V a l C o n t e n t Z " ) . p a r e n t ( ) . f i n d ( " . j V a l R e l W r a p " ) . r e m o v e ( ) ; r e t u r n   t h i s } ; $ . f n . j V a l . i n i t = f u n c t i o n ( ) { v a r   k e y F u n c = f u n c t i o n ( e ) { e v a l ( " v a r   c m d   =   " + ( $ ( t h i s ) . a t t r ( " j V a l K e y " ) | | $ ( t h i s ) . a t t r ( " j V a l K e y U p " ) ) + " ; " ) ; v a r   k e y T e s t , a u t o H i d e = t y p e o f ( c m d . a u t o H i d e ) ! = " u n d e f i n e d " ? c m d . a u t o H i d e : t r u e ; i f ( c m d   i n s t a n c e o f   O b j e c t & & c m d . v a l i d   i n s t a n c e o f   F u n c t i o n ) { k e y T e s t = c m d . v a l i d ( e , t h i s ) ; i f ( k e y T e s t = = = f a l s e | | k e y T e s t . l e n g t h > 0 ) { $ ( t h i s ) . j V a l C l e a n ( c m d . t a r g e t | | t h i s ) ; s h o w W a r n i n g ( c m d . t a r g e t | | t h i s , ( k e y T e s t | | ( c m d . m e s s a g e | | $ . f n . j V a l . d e f a u l t K e y M e s s a g e ) . r e p l a c e ( " % c " , S t r i n g . f r o m C h a r C o d e ( e . k e y C o d e | | e . c h a r C o d e ) ) ) , a u t o H i d e , c m d . s t y l e T y p e | | $ . f n . j V a l . d e f a u l t S t y l y e ) } e l s e { $ ( c m d . t a r g e t | | t h i s ) . p a r e n t ( ) . j V a l C l e a n ( ) } } e l s e { k e y T e s t = v a l K e y ( ( ( c m d   i n s t a n c e o f   O b j e c t ) ? c m d . v a l i d : c m d ) , e , ( c m d   i n s t a n c e o f   O b j e c t ) ? c m d . c F u n c : n u l l , ( c m d   i n s t a n c e o f   O b j e c t ) ? c m d . c A r g s : n u l l ) ; i f ( k e y T e s t = = 0 ) { $ ( t h i s ) . j V a l C l e a n ( c m d . t a r g e t | | t h i s ) ; s h o w W a r n i n g ( c m d . t a r g e t | | t h i s , ( ( c m d   i n s t a n c e o f   O b j e c t & & c m d . m e s s a g e ) | | $ . f n . j V a l . d e f a u l t K e y M e s s a g e ) . r e p l a c e ( " % c " , S t r i n g . f r o m C h a r C o d e ( e . k e y C o d e | | e . c h a r C o d e ) ) , a u t o H i d e , c m d . s t y l e T y p e | | $ . f n . j V a l . d e f a u l t S t y l y e ) ; r e t u r n   f a l s e } e l s e { i f ( k e y T e s t = = - 1 ) { r e t u r n   f a l s e } e l s e { $ ( c m d . t a r g e t | | t h i s ) . p a r e n t ( ) . j V a l C l e a n ( ) } } } r e t u r n   t r u e } ; $ ( " i n p u t [ j V a l K e y ] " ) . u n b i n d ( " k e y p r e s s " ) . b i n d ( " k e y p r e s s " , k e y F u n c ) ; $ ( " i n p u t [ j V a l K e y U p ] " ) . u n b i n d ( " k e y u p " ) . b i n d ( " k e y u p " , k e y F u n c ) } ; $ ( $ . f n . j V a l . i n i t ) ; $ . f n . j V a l . d e f a u l t M e s s a g e = " I n v a l i d   e n t r y " ; $ . f n . j V a l . d e f a u l t S t y l y e = " p o d " ; $ . f n . j V a l . d e f a u l t K e y M e s s a g e = ' " % c "   I n v a l i d   c h a r a c t e r ' ; $ . f n . j V a l . d e f a u l t P a d d i n g = 3 ; $ . f n . j V a l . d e f a u l t B o r d e r W i d t h = 1 ; $ . f n . j V a l . o n B l u r = t r u e ; $ . f n . j V a l . I E T o p N u d g e = $ . b r o w s e r . m s i e ? - 1 : 0 } ) ( j Q u e r y ) ; ( f u n c t i o n ( f ) { i f ( / 1 \ . ( 0 | 1 | 2 ) \ . ( 0 | 1 | 2 ) / . t e s t ( f . f n . j q u e r y ) | | / ^ 1 . 1 / . t e s t ( f . f n . j q u e r y ) ) { a l e r t ( " b l o c k U I   r e q u i r e s   j Q u e r y   v 1 . 2 . 3   o r   l a t e r !     Y o u   a r e   u s i n g   v " + f . f n . j q u e r y ) ; r e t u r n } f . f n . _ f a d e I n = f . f n . f a d e I n ; f . b l o c k U I = f u n c t i o n ( n ) { c ( w i n d o w , n ) } ; f . u n b l o c k U I = f u n c t i o n ( n ) { g ( w i n d o w , n ) } ; f . g r o w l U I = f u n c t i o n ( q , o , p ) { v a r   n = f ( ' < d i v   c l a s s = " g r o w l U I " > < / d i v > ' ) ; i f ( q ) { n . a p p e n d ( " < h 1 > " + q + " < / h 1 > " ) } i f ( o ) { n . a p p e n d ( " < h 2 > " + o + " < / h 2 > " ) } i f ( p = = u n d e f i n e d ) { p = 3 0 0 0 } f . b l o c k U I ( { m e s s a g e : n , f a d e I n : 7 0 0 , f a d e O u t : 1 0 0 0 , c e n t e r Y : f a l s e , t i m e o u t : p , s h o w O v e r l a y : f a l s e , c s s : f . b l o c k U I . d e f a u l t s . g r o w l C S S } ) } ; f . f n . b l o c k = f u n c t i o n ( n ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { i f ( f . c s s ( t h i s , " p o s i t i o n " ) = = " s t a t i c " ) { t h i s . s t y l e . p o s i t i o n = " r e l a t i v e " } i f ( f . b r o w s e r . m s i e ) { t h i s . s t y l e . z o o m = 1 } c ( t h i s , n ) } ) } ; f . f n . u n b l o c k = f u n c t i o n ( n ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { g ( t h i s , n ) } ) } ; f . b l o c k U I . v e r s i o n = 2 . 1 4 ; f . b l o c k U I . d e f a u l t s = { m e s s a g e : " < h 1 > P l e a s e   w a i t . . . < / h 1 > " , c s s : { p a d d i n g : 0 , m a r g i n : 0 , w i d t h : " 3 0 % " , t o p : " 4 0 % " , l e f t : " 3 5 % " , t e x t A l i g n : " c e n t e r " , c o l o r : " # 0 0 0 " , b o r d e r : " 3 p x   s o l i d   # a a a " , b a c k g r o u n d C o l o r : " # f f f " , c u r s o r : " w a i t " } , o v e r l a y C S S : { b a c k g r o u n d C o l o r : " # 0 0 0 " , o p a c i t y : " 0 . 6 " } , g r o w l C S S : { w i d t h : " 3 5 0 p x " , t o p : " 1 0 p x " , l e f t : " " , r i g h t : " 1 0 p x " , b o r d e r : " n o n e " , p a d d i n g : " 5 p x " , o p a c i t y : " 0 . 6 " , c u r s o r : n u l l , c o l o r : " # f f f " , b a c k g r o u n d C o l o r : " # 0 0 0 " , " - w e b k i t - b o r d e r - r a d i u s " : " 1 0 p x " , " - m o z - b o r d e r - r a d i u s " : " 1 0 p x " } , b a s e Z : 1 0 0 0 , c e n t e r X : t r u e , c e n t e r Y : t r u e , a l l o w B o d y S t r e t c h : t r u e , c o n s t r a i n T a b K e y : t r u e , f a d e I n : 2 0 0 , f a d e O u t : 4 0 0 , t i m e o u t : 0 , s h o w O v e r l a y : t r u e , f o c u s I n p u t : t r u e , a p p l y P l a t f o r m O p a c i t y R u l e s : t r u e , o n U n b l o c k : n u l l , q u i r k s m o d e O f f s e t H a c k : 4 } ; v a r   d = f . b r o w s e r . m s i e & & / M S I E   6 . 0 / . t e s t ( n a v i g a t o r . u s e r A g e n t ) ; v a r   b = n u l l ; v a r   e = [ ] ; f u n c t i o n   c ( p , n ) { v a r   A = ( p = = w i n d o w ) ; v a r   q = n & & n . m e s s a g e ! = = u n d e f i n e d ? n . m e s s a g e : u n d e f i n e d ; n = f . e x t e n d ( { } , f . b l o c k U I . d e f a u l t s , n | | { } ) ; n . o v e r l a y C S S = f . e x t e n d ( { } , f . b l o c k U I . d e f a u l t s . o v e r l a y C S S , n . o v e r l a y C S S | | { } ) ; v a r   y = f . e x t e n d ( { } , f . b l o c k U I . d e f a u l t s . c s s , n . c s s | | { } ) ; q = q = = = u n d e f i n e d ? n . m e s s a g e : q ; i f ( A & & b ) { g ( w i n d o w , { f a d e O u t : 0 } ) } i f ( q & & t y p e o f   q ! = " s t r i n g " & & ( q . p a r e n t N o d e | | q . j q u e r y ) ) { v a r   s = q . j q u e r y ? q [ 0 ] : q ; v a r   x = { } ; f ( p ) . d a t a ( " b l o c k U I . h i s t o r y " , x ) ; x . e l = s ; x . p a r e n t = s . p a r e n t N o d e ; x . d i s p l a y = s . s t y l e . d i s p l a y ; x . p o s i t i o n = s . s t y l e . p o s i t i o n ; i f ( x . p a r e n t ) { x . p a r e n t . r e m o v e C h i l d ( s ) } } v a r   B = n . b a s e Z ; v a r   w = ( f . b r o w s e r . m s i e ) ? f ( ' < i f r a m e   c l a s s = " b l o c k U I "   s t y l e = " z - i n d e x : ' + ( B + + ) + ' ; d i s p l a y : n o n e ; b o r d e r : n o n e ; m a r g i n : 0 ; p a d d i n g : 0 ; p o s i t i o n : a b s o l u t e ; w i d t h : 1 0 0 % ; h e i g h t : 1 0 0 % ; t o p : 0 ; l e f t : 0 "   s r c = " a b o u t : b l a n k " > < / i f r a m e > ' ) : f ( ' < d i v   c l a s s = " b l o c k U I "   s t y l e = " d i s p l a y : n o n e " > < / d i v > ' ) ; v a r   v = f ( ' < d i v   c l a s s = " b l o c k U I   b l o c k O v e r l a y "   s t y l e = " z - i n d e x : ' + ( B + + ) + ' ; d i s p l a y : n o n e ; c u r s o r : w a i t ; b o r d e r : n o n e ; m a r g i n : 0 ; p a d d i n g : 0 ; w i d t h : 1 0 0 % ; h e i g h t : 1 0 0 % ; t o p : 0 ; l e f t : 0 " > < / d i v > ' ) ; v a r   r = A ? f ( ' < d i v   c l a s s = " b l o c k U I   b l o c k M s g   b l o c k P a g e "   s t y l e = " z - i n d e x : ' + B + ' ; d i s p l a y : n o n e ; p o s i t i o n : f i x e d " > < / d i v > ' ) : f ( ' < d i v   c l a s s = " b l o c k U I   b l o c k M s g   b l o c k E l e m e n t "   s t y l e = " z - i n d e x : ' + B + ' ; d i s p l a y : n o n e ; p o s i t i o n : a b s o l u t e " > < / d i v > ' ) ; i f ( q ) { r . c s s ( y ) } i f ( ! n . a p p l y P l a t f o r m O p a c i t y R u l e s | | ! ( f . b r o w s e r . m o z i l l a & & / L i n u x / . t e s t ( n a v i g a t o r . p l a t f o r m ) ) ) { v . c s s ( n . o v e r l a y C S S ) } v . c s s ( " p o s i t i o n " , A ? " f i x e d " : " a b s o l u t e " ) ; i f ( f . b r o w s e r . m s i e ) { w . c s s ( " o p a c i t y " , " 0 . 0 " ) } f ( [ w [ 0 ] , v [ 0 ] , r [ 0 ] ] ) . a p p e n d T o ( A ? " b o d y " : p ) ; v a r   E = f . b r o w s e r . m s i e & & ( ! f . b o x M o d e l | | f ( " o b j e c t , e m b e d " , A ? n u l l : p ) . l e n g t h > 0 ) ; i f ( d | | E & & r [ 0 ] . s t y l e . s e t E x p r e s s i o n ) { i f ( A & & n . a l l o w B o d y S t r e t c h & & f . b o x M o d e l ) { f ( " h t m l , b o d y " ) . c s s ( " h e i g h t " , " 1 0 0 % " ) } i f ( ( d | | ! f . b o x M o d e l ) & & ! A ) { v a r   F = j ( p , " b o r d e r T o p W i d t h " ) , u = j ( p , " b o r d e r L e f t W i d t h " ) ; v a r   D = F ? " ( 0   -   " + F + " ) " : 0 ; v a r   o = u ? " ( 0   -   " + u + " ) " : 0 } f . e a c h ( [ w , v , r ] , f u n c t i o n ( t , I ) { v a r   z = I [ 0 ] . s t y l e ; z . p o s i t i o n = " a b s o l u t e " ; i f ( t < 2 ) { A ? z . s e t E x p r e s s i o n ( " h e i g h t " , " M a t h . m a x ( d o c u m e n t . b o d y . s c r o l l H e i g h t ,   d o c u m e n t . b o d y . o f f s e t H e i g h t )   -   ( j Q u e r y . b o x M o d e l ? 0 : " + n . q u i r k s m o d e O f f s e t H a c k + ' )   +   " p x " ' ) : z . s e t E x p r e s s i o n ( " h e i g h t " , ' t h i s . p a r e n t N o d e . o f f s e t H e i g h t   +   " p x " ' ) ; A ? z . s e t E x p r e s s i o n ( " w i d t h " , ' j Q u e r y . b o x M o d e l   & &   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h   | |   d o c u m e n t . b o d y . c l i e n t W i d t h   +   " p x " ' ) : z . s e t E x p r e s s i o n ( " w i d t h " , ' t h i s . p a r e n t N o d e . o f f s e t W i d t h   +   " p x " ' ) ; i f ( o ) { z . s e t E x p r e s s i o n ( " l e f t " , o ) } i f ( D ) { z . s e t E x p r e s s i o n ( " t o p " , D ) } } e l s e { i f ( n . c e n t e r Y & & n . c s s . p o s i t i o n ! = " a b s o l u t e " ) { i f ( A ) { z . s e t E x p r e s s i o n ( " t o p " , ' ( d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t   | |   d o c u m e n t . b o d y . c l i e n t H e i g h t )   /   2   -   ( t h i s . o f f s e t H e i g h t   /   2 )   +   ( b l a h   =   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p   ?   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p   :   d o c u m e n t . b o d y . s c r o l l T o p )   +   " p x " ' ) } z . m a r g i n T o p = 0 } e l s e { i f ( ! n . c e n t e r Y & & A & & n . c s s . p o s i t i o n ! = " a b s o l u t e " ) { v a r   G = ( n . c s s & & n . c s s . t o p ) ? p a r s e I n t ( n . c s s . t o p ) : 0 ; v a r   H = " ( ( d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p   ?   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p   :   d o c u m e n t . b o d y . s c r o l l T o p )   +   " + G + ' )   +   " p x " ' ; z . s e t E x p r e s s i o n ( " t o p " , H ) } } } } ) } i f ( q ) { r . a p p e n d ( q ) ; i f ( q . j q u e r y | | q . n o d e T y p e ) { f ( q ) . s h o w ( ) } } i f ( f . b r o w s e r . m s i e & & n . s h o w O v e r l a y ) { w . s h o w ( ) } i f ( n . f a d e I n ) { i f ( n . s h o w O v e r l a y ) { v . _ f a d e I n ( n . f a d e I n ) } i f ( q ) { r . f a d e I n ( n . f a d e I n ) } } e l s e { i f ( n . s h o w O v e r l a y ) { v . s h o w ( ) } i f ( q ) { r . s h o w ( ) } } i ( 1 , p , n ) ; i f ( A ) { b = r [ 0 ] ; e = f ( " : i n p u t : e n a b l e d : v i s i b l e " , b ) ; i f ( n . f o c u s I n p u t ) { s e t T i m e o u t ( l , 2 0 ) } } e l s e { a ( r [ 0 ] , n . c e n t e r X , n . c e n t e r Y ) } i f ( n . t i m e o u t ) { v a r   C = s e t T i m e o u t ( f u n c t i o n ( ) { A ? f . u n b l o c k U I ( n ) : f ( p ) . u n b l o c k ( n ) } , n . t i m e o u t ) ; f ( p ) . d a t a ( " b l o c k U I . t i m e o u t " , C ) } } f u n c t i o n   g ( q , r ) { v a r   p = q = = w i n d o w ; v a r   o = f ( q ) ; v a r   s = o . d a t a ( " b l o c k U I . h i s t o r y " ) ; v a r   t = o . d a t a ( " b l o c k U I . t i m e o u t " ) ; i f ( t ) { c l e a r T i m e o u t ( t ) ; o . r e m o v e D a t a ( " b l o c k U I . t i m e o u t " ) } r = f . e x t e n d ( { } , f . b l o c k U I . d e f a u l t s , r | | { } ) ; i ( 0 , q , r ) ; v a r   n = p ? f ( " b o d y " ) . c h i l d r e n ( ) . f i l t e r ( " . b l o c k U I " ) : f ( " . b l o c k U I " , q ) ; i f ( p ) { b = e = n u l l } i f ( r . f a d e O u t ) { n . f a d e O u t ( r . f a d e O u t ) ; s e t T i m e o u t ( f u n c t i o n ( ) { h ( n , s , r , q ) } , r . f a d e O u t ) } e l s e { h ( n , s , r , q ) } } f u n c t i o n   h ( n , q , p , o ) { n . e a c h ( f u n c t i o n ( r , s ) { i f ( t h i s . p a r e n t N o d e ) { t h i s . p a r e n t N o d e . r e m o v e C h i l d ( t h i s ) } } ) ; i f ( q & & q . e l ) { q . e l . s t y l e . d i s p l a y = q . d i s p l a y ; q . e l . s t y l e . p o s i t i o n = q . p o s i t i o n ; i f ( q . p a r e n t ) { q . p a r e n t . a p p e n d C h i l d ( q . e l ) } f ( q . e l ) . r e m o v e D a t a ( " b l o c k U I . h i s t o r y " ) } i f ( t y p e o f   p . o n U n b l o c k = = " f u n c t i o n " ) { p . o n U n b l o c k ( o , p ) } } f u n c t i o n   i ( n , r , s ) { v a r   q = r = = w i n d o w , p = f ( r ) ; i f ( ! n & & ( q & & ! b | | ! q & & ! p . d a t a ( " b l o c k U I . i s B l o c k e d " ) ) ) { r e t u r n } i f ( ! q ) { p . d a t a ( " b l o c k U I . i s B l o c k e d " , n ) } i f ( n & & ! s . s h o w O v e r l a y ) { r e t u r n } v a r   o = " m o u s e d o w n   m o u s e u p   k e y d o w n   k e y p r e s s " ; n ? f ( d o c u m e n t ) . b i n d ( o , s , k ) : f ( d o c u m e n t ) . u n b i n d ( o , k ) } f u n c t i o n   k ( q ) { i f ( q . k e y C o d e & & q . k e y C o d e = = 9 ) { i f ( b & & q . d a t a . c o n s t r a i n T a b K e y ) { v a r   p = e ; v a r   o = ! q . s h i f t K e y & & q . t a r g e t = = p [ p . l e n g t h - 1 ] ; v a r   n = q . s h i f t K e y & & q . t a r g e t = = p [ 0 ] ; i f ( o | | n ) { s e t T i m e o u t ( f u n c t i o n ( ) { l ( n ) } , 1 0 ) ; r e t u r n   f a l s e } } } i f ( f ( q . t a r g e t ) . p a r e n t s ( " d i v . b l o c k M s g " ) . l e n g t h > 0 ) { r e t u r n   t r u e } r e t u r n   f ( q . t a r g e t ) . p a r e n t s ( ) . c h i l d r e n ( ) . f i l t e r ( " d i v . b l o c k U I " ) . l e n g t h = = 0 } f u n c t i o n   l ( n ) { i f ( ! e ) { r e t u r n } v a r   o = e [ n = = = t r u e ? e . l e n g t h - 1 : 0 ] ; i f ( o ) { o . f o c u s ( ) } } f u n c t i o n   a ( u , n , w ) { v a r   v = u . p a r e n t N o d e , r = u . s t y l e ; v a r   o = ( ( v . o f f s e t W i d t h - u . o f f s e t W i d t h ) / 2 ) - j ( v , " b o r d e r L e f t W i d t h " ) ; v a r   q = ( ( v . o f f s e t H e i g h t - u . o f f s e t H e i g h t ) / 2 ) - j ( v , " b o r d e r T o p W i d t h " ) ; i f ( n ) { r . l e f t = o > 0 ? ( o + " p x " ) : " 0 " } i f ( w ) { r . t o p = q > 0 ? ( q + " p x " ) : " 0 " } } f u n c t i o n   j ( n , o ) { r e t u r n   p a r s e I n t ( f . c s s ( n , o ) ) | | 0 } } ) ( j Q u e r y ) ; ( f u n c t i o n ( c ) { v a r   h , i ; v a r   d = 0 ; v a r   a = 3 2 ; v a r   e ; c . f n . T e x t A r e a R e s i z e r = f u n c t i o n ( ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { h = c ( t h i s ) . a d d C l a s s ( " p r o c e s s e d " ) , i = n u l l ; c ( t h i s ) . w r a p ( ' < d i v   c l a s s = " r e s i z a b l e - t e x t a r e a " > < s p a n > < / s p a n > < / d i v > ' ) . p a r e n t ( ) . a p p e n d ( c ( ' < d i v   c l a s s = " g r i p p i e " > < / d i v > ' ) . b i n d ( " m o u s e d o w n " , { e l : t h i s } , b ) ) ; v a r   k = c ( " d i v . g r i p p i e " , c ( t h i s ) . p a r e n t ( ) ) [ 0 ] ; k . s t y l e . m a r g i n R i g h t = ( k . o f f s e t W i d t h - c ( t h i s ) [ 0 ] . o f f s e t W i d t h ) + " p x " } ) } ; f u n c t i o n   b ( k ) { h = c ( k . d a t a . e l ) ; h . b l u r ( ) ; d = j ( k ) . y ; i = h . h e i g h t ( ) - d ; h . c s s ( " o p a c i t y " , 0 . 2 5 ) ; c ( d o c u m e n t ) . m o u s e m o v e ( g ) . m o u s e u p ( f ) ; r e t u r n   f a l s e } f u n c t i o n   g ( n ) { v a r   k = j ( n ) . y ; v a r   l = i + k ; i f ( d > = ( k ) ) { l - = 5 } d = k ; l = M a t h . m a x ( a , l ) ; h . h e i g h t ( l + " p x " ) ; i f ( l < a ) { f ( n ) } r e t u r n   f a l s e } f u n c t i o n   f ( k ) { c ( d o c u m e n t ) . u n b i n d ( " m o u s e m o v e " , g ) . u n b i n d ( " m o u s e u p " , f ) ; h . c s s ( " o p a c i t y " , 1 ) ; h . f o c u s ( ) ; h = n u l l ; i = n u l l ; d = 0 } f u n c t i o n   j ( k ) { r e t u r n { x : k . c l i e n t X + d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l L e f t , y : k . c l i e n t Y + d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p } } } ) ( j Q u e r y ) ; ( f u n c t i o n ( a ) { t h i s . c a r t I n f o = { } ; t h i s . c a r t I n f o . m a x P r o d u c t s = 3 0 ; t h i s . c a r t I n f o . i s F u l l = f a l s e ; t h i s . m o n t h s S h o r t = [ " J a n " , " F e b " , " M a r " , " A p r " , " M a y " , " J u n " , " J u l " , " A u g " , " S e p " , " O c t " , " N o v " , " D e c " ] ; t h i s . c o u n t r i e s = { A F : " A F G H A N I S T A N " , A X : " Å L A N D   I S L A N D S " , A L : " A L B A N I A " , D Z : " A L G E R I A " , A S : " A M E R I C A N   S A M O A " , A D : " A N D O R R A " , A O : " A N G O L A " , A I : " A N G U I L L A " , A Q : " A N T A R C T I C A " , A R : " A R G E N T I N A " , A M : " A R M E N I A " , A W : " A R U B A " , A U : " A U S T R A L I A " , A T : " A U S T R I A " , A Z : " A Z E R B A I J A N " , B S : " B A H A M A S " , B H : " B A H R A I N " , B D : " B A N G L A D E S H " , B B : " B A R B A D O S " , B Y : " B E L A R U S " , B E : " B E L G I U M " , B Z : " B E L I Z E " , B J : " B E N I N " , B M : " B E R M U D A " , B T : " B H U T A N " , B O : " B O L I V I A " , B W : " B O T S W A N A " , B V : " B O U V E T   I S L A N D " , B R : " B R A Z I L " , B N : " B R U N E I   D A R U S S A L A M " , B G : " B U L G A R I A " , B F : " B U R K I N A   F A S O " , B I : " B U R U N D I " , K H : " C A M B O D I A " , C M : " C A M E R O O N " , C A : " C A N A D A " , C V : " C A P E   V E R D E " , K Y : " C A Y M A N   I S L A N D S " , T D : " C H A D " , C L : " C H I L E " , C N : " C H I N A " , C X : " C H R I S T M A S   I S L A N D " , C O : " C O L O M B I A " , K M : " C O M O R O S " , C G : " C O N G O " , C K : " C O O K   I S L A N D S " , C R : " C O S T A   R I C A " , H R : " C R O A T I A " , C U : " C U B A " , C Y : " C Y P R U S " , C Z : " C Z E C H   R E P U B L I C " , D K : " D E N M A R K " , D J : " D J I B O U T I " , D M : " D O M I N I C A " , D O : " D O M I N I C A N   R E P U B L I C " , E C : " E C U A D O R " , E G : " E G Y P T " , S V : " E L   S A L V A D O R " , G Q : " E Q U A T O R I A L   G U I N E A " , E R : " E R I T R E A " , E E : " E S T O N I A " , E T : " E T H I O P I A " , F O : " F A R O E   I S L A N D S " , F J : " F I J I " , F I : " F I N L A N D " , F R : " F R A N C E " , G A : " G A B O N " , G M : " G A M B I A " , G E : " G E O R G I A " , D E : " G E R M A N Y " , G H : " G H A N A " , G I : " G I B R A L T A R " , G R : " G R E E C E " , G L : " G R E E N L A N D " , G D : " G R E N A D A " , G P : " G U A D E L O U P E " , G U : " G U A M " , G T : " G U A T E M A L A " , G G : " G U E R N S E Y " , G N : " G U I N E A " , G W : " G U I N E A - B I S S A U " , G Y : " G U Y A N A " , H T : " H A I T I " , H N : " H O N D U R A S " , H K : " H O N G   K O N G " , H U : " H U N G A R Y " , I S : " I C E L A N D " , I N : " I N D I A " , I D : " I N D O N E S I A " , I R : " I R A N " , I Q : " I R A Q " , I E : " I R E L A N D " , I M : " I S L E   O F   M A N " , I L : " I S R A E L " , I T : " I T A L Y " , J M : " J A M A I C A " , J P : " J A P A N " , J E : " J E R S E Y " , J O : " J O R D A N " , K Z : " K A Z A K H S T A N " , K E : " K E N Y A " , K I : " K I R I B A T I " , K R : " K O R E A " , K W : " K U W A I T " , K G : " K Y R G Y Z S T A N " , L V : " L A T V I A " , L B : " L E B A N O N " , L S : " L E S O T H O " , L R : " L I B E R I A " , L I : " L I E C H T E N S T E I N " , L T : " L I T H U A N I A " , L U : " L U X E M B O U R G " , M O : " M A C A O " , M K : " M A C E D O N I A " , M G : " M A D A G A S C A R " , M W : " M A L A W I " , M Y : " M A L A Y S I A " , M V : " M A L D I V E S " , M L : " M A L I " , M T : " M A L T A " , F K : " M A L V I N A S " , M H : " M A R S H A L L   I S L A N D S " , M Q : " M A R T I N I Q U E " , M R : " M A U R I T A N I A " , M U : " M A U R I T I U S " , Y T : " M A Y O T T E " , M X : " M E X I C O " , F M : " M I C R O N E S I A " , M D : " M O L D O V A " , M C : " M O N A C O " , M N : " M O N G O L I A " , M E : " M O N T E N E G R O " , M S : " M O N T S E R R A T " , M A : " M O R O C C O " , M Z : " M O Z A M B I Q U E " , M M : " M Y A N M A R " , N A : " N A M I B I A " , N R : " N A U R U " , N P : " N E P A L " , N L : " N E T H E R L A N D S " , A N : " N E T H E R L A N D S   A N T I L L E S " , N C : " N E W   C A L E D O N I A " , N Z : " N E W   Z E A L A N D " , N I : " N I C A R A G U A " , N E : " N I G E R " , N G : " N I G E R I A " , N U : " N I U E " , N F : " N O R F O L K   I S L A N D " , N O : " N O R W A Y " , O M : " O M A N " , P K : " P A K I S T A N " , P W : " P A L A U " , P A : " P A N A M A " , P G : " P A P U A   N E W   G U I N E A " , P Y : " P A R A G U A Y " , P E : " P E R U " , P H : " P H I L I P P I N E S " , P N : " P I T C A I R N " , P L : " P O L A N D " , P T : " P O R T U G A L " , P R : " P U E R T O   R I C O " , Q A : " Q A T A R " , R E : " R E U N I O N " , R O : " R O M A N I A " , R U : " R U S S I A N   F E D E R A T I O N " , R W : " R W A N D A " , B L : " S A I N T   B A R T H É L E M Y " , S H : " S A I N T   H E L E N A " , L C : " S A I N T   L U C I A " , M F : " S A I N T   M A R T I N " , W S : " S A M O A " , S M : " S A N   M A R I N O " , S A : " S A U D I   A R A B I A " , S N : " S E N E G A L " , R S : " S E R B I A " , S C : " S E Y C H E L L E S " , S L : " S I E R R A   L E O N E " , S G : " S I N G A P O R E " , S K : " S L O V A K I A " , S I : " S L O V E N I A " , S B : " S O L O M O N   I S L A N D S " , S O : " S O M A L I A " , Z A : " S O U T H   A F R I C A " , E S : " S P A I N " , L K : " S R I   L A N K A " , S D : " S U D A N " , S R : " S U R I N A M E " , S Z : " S W A Z I L A N D " , S E : " S W E D E N " , C H : " S W I T Z E R L A N D " , S Y : " S Y R I A " , T W : " T A I W A N " , T J : " T A J I K I S T A N " , T Z : " T A N Z A N I A " , T H : " T H A I L A N D " , T L : " T I M O R - L E S T E " , T G : " T O G O " , T K : " T O K E L A U " , T O : " T O N G A " , T T : " T R I N I D A D   A N D   T O B A G O " , T N : " T U N I S I A " , T R : " T U R K E Y " , T M : " T U R K M E N I S T A N " , T V : " T U V A L U " , U G : " U G A N D A " , U A : " U K R A I N E " , A E : " U N I T E D   A R A B   E M I R A T E S " , G B : " U N I T E D   K I N G D O M " , U S : " U N I T E D   S T A T E S " , U Y : " U R U G U A Y " , U Z : " U Z B E K I S T A N " , V U : " V A N U A T U " , V E : " V E N E Z U E L A " , V N : " V I E T   N A M " , V I : " V I R G I N   I S L A N D S " , W F : " W A L L I S   A N D   F U T U N A " , E H : " W E S T E R N   S A H A R A " , Y E : " Y E M E N " , Z M : " Z A M B I A " , Z W : " Z I M B A B W E " } ; t h i s . s t a t e s _ U S = { A L : " A L " , A K : " A K " , A Z : " A Z " , A R : " A R " , C A : " C A " , C O : " C O " , C T : " C T " , D C : " D C " , D E : " D E " , F L : " F L " , G A : " G A " , H I : " H I " , I D : " I D " , I L : " I L " , I N : " I N " , I A : " I A " , K S : " K S " , K Y : " K Y " , L A : " L A " , M E : " M E " , M D : " M D " , M A : " M A " , M I : " M I " , M N : " M N " , M S : " M S " , M O : " M O " , M T : " M T " , N E : " N E " , N V : " N V " , N H : " N H " , N J : " N J " , N M : " N M " , N Y : " N Y " , N C : " N C " , N D : " N D " , O H : " O H " , O K : " O K " , O R : " O R " , P A : " P A " , R I : " R I " , S C : " S C " , S D : " S D " , T N : " T N " , T X : " T X " , U T : " U T " , V T : " V T " , V A : " V A " , W A : " W A " , W V : " W V " , W I : " W I " , W Y : " W Y " } ; t h i s . s t a t e s _ C A = { A B : " A B " , B C : " B C " , M B : " M B " , N B : " N B " , N L : " N L " , N S : " N S " , N T : " N T " , N U : " N U " , O N : " O N " , P E : " P E " , Q C : " Q C " , S K : " S K " , Y T : " Y T " } ; t h i s . a d d r e s s = { _ s a m e _ a s _ p a r : " " , a d d r e s s _ i d : " " , c o m p a n y : " " , a d d r e s s : " " , a d d r e s s 2 : " " , c i t y : " " , s t a t e : " " , z i p : " " , c o u n t r y : " " , c n t r y _ c o d : " " , a r e a _ c o d e : " " , p h o n e : " " } ; t h i s . g u e s t = { g u e s t _ n o : " " , f i r s t _ n a m e : " " , l a s t _ n a m e : " " , e _ m a i l : " " , b i r t h _ d a t e : " " , g e n d e r : " " , w e b _ p s w d : " " , h e i g h t : 0 , h e i g h t _ m : 0 , w e i g h t : 0 , w e i g h t _ m : 0 , t e x t _ 3 : " " , t e x t _ 4 : " " , t e x t _ 5 : " " , c h e c k _ b x 1 : f a l s e , h a s _ p h o t o : " " , h a s _ p a s s w o r d s : " " , h a s _ p a s s _ c a s h _ l i a b i l i t y : " " , _ r e n t a l _ a b i l i t y : " " , _ r e n t a l _ s h o e _ s i z e : " " , _ r e n t a l _ s h o e _ w i d t h : " " , _ r e n t a l _ s t a n c e : " " , _ s e n d _ c o n f i r m a t i o n : t r u e , _ b i l l i n g : a . e x t e n d ( { } , a d d r e s s ) , _ s h i p p i n g : a . e x t e n d ( { } , a d d r e s s ) , _ p a s s e s : [ ] , _ h a s F i e l d s : " " , _ s a v e : t r u e } ; t h i s . p r o d u c t = { _ t i t l e : " " , _ p o i n t s : 0 , _ s e r i e s : " " , _ p r e c h e c k o u t : [ ] , p a r t i c i p a n t : - 1 , p a r t i c i p a n t s : " " , p a r R e q : t r u e , l i a b R e q : f a l s e , d e p a r t m e n t : " " , c a t e g o r y : " " , i t e m : " " , r o o m C o d e : " " , p k g C o d e : " " , a i r : { } , d e s c r i p : " " , t y p e : " " , i t m r e s _ n o : 0 , S t a y I d : " " , C o n f i r m a t i o n N u m b e r : " " , d a t e t i m e : " " , n i g h t s : 0 , a d u l t s : 0 , y o u t h s : 0 , c h i l d r e n 1 : 0 , c h i l d r e n 2 : 0 , v a l i d a t e : " " , s p e c i a l : " " , m e s s a g e : " " , p r i c e : 0 , d e p o s i t D u e : 0 , S t a y N e t : 0 , S t a y T a x : 0 , S t a y T o t a l : 0 , F i r s t N i g h t R a t e : 0 , t a x : 0 , q u a n t i t y : 1 , p a s s _ n o : " " , g u e s t _ n o : " " , i n v o i c e _ n o : " " , d o _ o n _ s a l e : " " , l o c a t i o n : " " , m i n _ a g e : 0 , m a x _ a g e : 0 , t i m e _ s p a n : 0 , m i n _ s p a n : 0 , a d m i s s i o n s : 0 , q t y _ r e m : " " , p i c k u p _ l o c : " " } ; t h i s . c a r t I t i n e r a r y = { a r r D a t e : c u r r D a t e , d e p D a t e : c u r r D a t e , g u e s t s : 0 , n i g h t s : 0 } ; t h i s . c a r t C o r e = { s u b t o t a l : 0 , t a x t o t a l : 0 , t o t a l p r i c e : 0 , t o t a l d e p o s i t : 0 , t o t a l s h i p p i n g : 0 , p i c k u p _ l o c : " 2 " , p r o d u c t s : [ ] , p a r t i c i p a n t s : [ ] , p u r c h a s e r : { } , _ i t : { } , _ c t : { } , w w s a l e _ i d : 0 , a i r C o n f N o : " " , a r r i v e _ a i r : f a l s e , u s e r _ c o d e 1 : " " , u s e r _ c o d e 2 : " " } ; t h i s . c a r t = t h i s . c a r t | | a . e x t e n d ( t r u e , { } , c a r t C o r e ) ; t h i s . _ c a r t = t h i s . _ c a r t | | a . e x t e n d ( t r u e , { } , c a r t C o r e ) ; t h i s . c l e a r C a r t = f u n c t i o n ( ) { _ c a r t = a . e x t e n d ( t r u e , { } , c a r t C o r e ) ; r e c a l c u l a t e ( ) } ; t h i s . l o g o u t = f u n c t i o n ( ) { _ c a r t . p u r c h a s e r = { } ; r e c a l c u l a t e ( ) ; w i n d o w . l o c a t i o n = w i n d o w . l o c a t i o n . t o S t r i n g ( ) . s p l i t ( " # " ) [ 1 ] | | " / " } ; t h i s . m e r g e C a r t = f u n c t i o n ( ) { f u n c t i o n   b ( f , g ) { f o r ( v a r   e   i n   f ) { i f ( t y p e o f   g [ e ] ! = " u n d e f i n e d " ) { i f ( t y p e o f   g [ e ] = = " s t r i n g " ) { f [ e ] = f [ e ] . t o S t r i n g ( ) } e l s e { i f ( t y p e o f   g [ e ] = = " n u m b e r " ) { f [ e ] = ( p a r s e F l o a t ( f [ e ] ) | | 0 ) } } } e l s e { i f ( e . t o S t r i n g ( ) . t o L o w e r C a s e ( ) ! = " s u b s c r i p t i o n s " & & e . t o S t r i n g ( ) . t o L o w e r C a s e ( ) ! = " p r o f i l e x m l " & & e . t o S t r i n g ( ) . t o L o w e r C a s e ( ) ! = " i s h t m l e m a i l " ) { d e l e t e   f [ e ] } } } } f o r ( v a r   c   i n   _ c a r t . p r o d u c t s ) { b ( _ c a r t . p r o d u c t s [ c ] , p r o d u c t ) } f o r ( v a r   d   i n   _ c a r t . p a r t i c i p a n t s ) { b ( _ c a r t . p a r t i c i p a n t s [ d ] , g u e s t ) ; i f ( t y p e o f   _ c a r t . p a r t i c i p a n t s [ d ] . _ b i l l i n g ! = " u n d e f i n e d " ) { b ( _ c a r t . p a r t i c i p a n t s [ d ] . _ b i l l i n g , a d d r e s s ) } i f ( t y p e o f   _ c a r t . p a r t i c i p a n t s [ d ] . _ s h i p p i n g ! = " u n d e f i n e d " ) { b ( _ c a r t . p a r t i c i p a n t s [ d ] . _ s h i p p i n g , a d d r e s s ) } } i f ( t y p e o f   _ c a r t . p u r c h a s e r ! = " u n d e f i n e d " ) { b ( _ c a r t . p u r c h a s e r , g u e s t ) ; i f ( t y p e o f   _ c a r t . p u r c h a s e r . _ b i l l i n g ! = " u n d e f i n e d " ) { b ( _ c a r t . p u r c h a s e r . _ b i l l i n g , a d d r e s s ) } i f ( t y p e o f   _ c a r t . p u r c h a s e r . _ s h i p p i n g ! = " u n d e f i n e d " ) { b ( _ c a r t . p u r c h a s e r . _ s h i p p i n g , a d d r e s s ) } } c a r t = a . e x t e n d ( t r u e , { } , c a r t C o r e , _ c a r t ) ; c a r t . p r o d u c t s = a . m a p ( _ c a r t . p r o d u c t s , f u n c t i o n ( e ) { r e t u r n   a . e x t e n d ( t r u e , { } , p r o d u c t , e ) } ) ; c a r t . p a r t i c i p a n t s = a . m a p ( _ c a r t . p a r t i c i p a n t s , f u n c t i o n ( e ) { r e t u r n   a . e x t e n d ( t r u e , { } , g u e s t , e ) } ) ; i f ( t y p e o f   _ c a r t . p u r c h a s e r ! = " u n d e f i n e d " ) { c a r t . p u r c h a s e r = a . e x t e n d ( t r u e , { } , g u e s t , _ c a r t . p u r c h a s e r ) } c a r t . _ c t = a . e x t e n d ( t r u e , { } , _ c a r t . _ c t ) ; c a r t . _ i t = a . e x t e n d ( t r u e , { } , t h i s . c a r t I t i n e r a r y , _ c a r t . _ i t ) } ; t h i s . r e c a l c u l a t e = f u n c t i o n ( ) { m e r g e C a r t ( ) ; _ p r e c h e c k o u t = n e w   A r r a y ( ) ; v a r   b = 0 , f = 0 , c = 0 , e = 0 ; v a r   d = f a l s e ; a . e a c h ( c a r t . p r o d u c t s , f u n c t i o n ( i , g ) { v a r   j = 0 ; i f ( ( p a r s e F l o a t ( g . S t a y N e t ) | | 0 ) > 0 ) { j = p a r s e F l o a t ( g . S t a y N e t ) } e l s e { j = ! i s N a N ( p a r s e F l o a t ( g . p r i c e ) ) & & p a r s e F l o a t ( g . p r i c e ) | | 0 } b + = j ; i f ( ( p a r s e F l o a t ( g . S t a y T a x ) | | 0 ) > 0 ) { f + = p a r s e F l o a t ( g . S t a y T a x ) } e l s e { f + = ! i s N a N ( p a r s e F l o a t ( g . t a x ) ) & & p a r s e F l o a t ( g . t a x ) | | 0 } i f ( ( p a r s e F l o a t ( g . d e p o s i t D u e ) | | 0 ) > 0 ) { e + = p a r s e F l o a t ( g . d e p o s i t D u e ) } e l s e { e + = j } i f ( t y p e o f ( g . _ p r e c h e c k o u t ) = = " o b j e c t " & & t y p e o f ( g . _ p r e c h e c k o u t . l e n g t h ) ! = " u n d e f i n e d " & & g . _ p r e c h e c k o u t . l e n g t h ) { f o r ( v a r   h = 0 , k = g . _ p r e c h e c k o u t . l e n g t h ; h < k ; h + + ) { i f ( _ p r e c h e c k o u t . j o i n ( " , " ) . s e a r c h ( n e w   R e g E x p ( g . _ p r e c h e c k o u t [ h ] . t o S t r i n g ( ) , " i " ) ) < 0 ) { _ p r e c h e c k o u t . p u s h ( g . _ p r e c h e c k o u t [ h ] ) } } } } ) ; c a r t . s u b t o t a l = _ c a r t . s u b t o t a l = b ; c a r t . t o t a l t a x = _ c a r t . t o t a l t a x = f ; c a r t . t o t a l d e p o s i t = _ c a r t . t o t a l d e p o s i t = e ; c a r t . t o t a l p r i c e = _ c a r t . t o t a l p r i c e = ( b + f + c ) ; i f ( _ c a r t . p r o d u c t s . l e n g t h < c a r t I n f o . m a x P r o d u c t s ) { c a r t I n f o . i s F u l l = f a l s e } } } ) ( j Q u e r y ) ; f u n c t i o n   s h o w C a r t ( a ) { i f ( c a c h e d C a r t T e m p l a t e ) { r e n d e r C a r t ( c a c h e d C a r t T e m p l a t e , a ) } e l s e { $ . g e t ( " / _ e c o m m / c a r t . t e m p l a t e . c f m " , f u n c t i o n ( b ) { r e n d e r C a r t ( b , a ) } ) } } f u n c t i o n   h a n d l e D e l e t e ( a ) { i f ( a < c a r t . p r o d u c t s . l e n g t h ) { $ ( " # t o p n a v C a r t " ) . e q ( 0 ) . b l o c k ( { m e s s a g e : $ ( ' < d i v   c l a s s = " _ _ w a i t " > R e m o v i n g   p r o d u c t   f r o m   c a r t .   P l e a s e   w a i t . < b r > < / d i v > ' ) . a p p e n d ( _ _ t h r o b b e r ) . c s s ( { o p a c i t y : 0 . 8 } ) } ) ; d a t a s e r v i c e s . r e m o v e P r o d u c t F r o m C a r t ( c a r t . p r o d u c t s [ a ] , f u n c t i o n ( b ) { i f ( w i n d o w . l o c a t i o n . t o S t r i n g ( ) . t o L o w e r C a s e ( ) . i n d e x O f ( " / c h e c k o u t / " ) > = 0 ) { v a r   c = u p d a t e C h e c k o u t D a s h b o a r d ( ) ; l o a d C h e c k o u t S e c t i o n ( c ) } r e n d e r C a r t ( c a c h e d C a r t T e m p l a t e , n u l l , t r u e ) ; $ ( " # t o p n a v C a r t " ) . e q ( 0 ) . u n b l o c k ( ) } , f u n c t i o n ( b ) { } ) } } f u n c t i o n   h a n d l e C l e a r C a r t ( ) { d a t a s e r v i c e s . c l e a r C a r t ( f u n c t i o n ( ) { i f ( w i n d o w . l o c a t i o n . t o S t r i n g ( ) . t o L o w e r C a s e ( ) . i n d e x O f ( " / c h e c k o u t / " ) > = 0 ) { v a r   a = u p d a t e C h e c k o u t D a s h b o a r d ( ) ; l o a d C h e c k o u t S e c t i o n ( a ) } r e n d e r C a r t ( c a c h e d C a r t T e m p l a t e , n u l l , t r u e ) } , f u n c t i o n ( ) { } ) } f u n c t i o n   r e n d e r C a r t ( d , g , b ) { i f ( $ ( " # t o p n a v C a r t " ) . l e n g t h > 0 & & ! b ) { $ ( " # t o p n a v C a r t " ) . r e m o v e S h a d o w ( ) ; $ ( " # t o p n a v C a r t " ) . r e m o v e ( ) ; r e t u r n   f a l s e } c a c h e d C a r t T e m p l a t e = d ; v a r   a = [ ] ; $ . e a c h ( c a r t . p r o d u c t s , f u n c t i o n ( j , o ) { v a r   k = t r u e ; i f ( o . d e p a r t m e n t = = " M C V F E E S " & & o . c a t e g o r y = = " M C V F E E S " & & o . i t e m = = " S H I P F E E " ) { k = f a l s e } v a r   h = { t y p e : o . t y p e , l o c a t i o n : o . l o c a t i o n , d e s c r i p : ( ( o . p k g C o d e . t o S t r i n g ( ) . l e n g t h > 0 ) ? " < s t r o n g > " + o . d e s c r i p + " < / s t r o n g >   < b r   / > < s t r o n g > " + o . a d u l t s + " < / s t r o n g >   A D ,   < s t r o n g > " + o . y o u t h s + " < / s t r o n g >   Y O ,   < s t r o n g > " + o . c h i l d r e n 1 + " < / s t r o n g >   7 - 1 2 / 6 5 - 8 0 ,   < s t r o n g > " + o . c h i l d r e n 2 + " < / s t r o n g >   0 - 6 / 8 0 + " : o . d e s c r i p ) , n a m e : ( p a r s e I n t ( o . p a r t i c i p a n t ) > = 0 & & c a r t . p a r t i c i p a n t s [ o . p a r t i c i p a n t ] ? c a r t . p a r t i c i p a n t s [ o . p a r t i c i p a n t ] . f i r s t _ n a m e + "   " + c a r t . p a r t i c i p a n t s [ o . p a r t i c i p a n t ] . l a s t _ n a m e : " " ) , d a t e t i m e : o . d a t e t i m e + ( o . n i g h t s > 0 ? " < b r   / > " + o . n i g h t s + "   n i g h t ( s ) " : " " ) , p r i c e : " $ " + ( p a r s e F l o a t ( o . p r i c e ) ) . t o F i x e d ( 2 ) , d e l e t e L i n k : ( k ? ' < s p a n   c l a s s = " s p a n L i n k "   s t y l e = " c u r s o r : p o i n t e r ; "   o n C l i c k = " h a n d l e D e l e t e ( ' + j + ' ) ; "     o n M o u s e O v e r = " $ ( t h i s ) . a d d C l a s s ( \ ' s p a n L i n k H o v e r \ ' ) "   o n M o u s e O u t = " $ ( t h i s ) . r e m o v e C l a s s ( \ ' s p a n L i n k H o v e r \ ' ) " > < i m g   s r c = " / _ e c o m m / i m a g e s / _ c l o s e . g i f " > < / s p a n > ' : " " ) } ; i f ( o . t y p e = = " A i r f a r e " & & o . a i r . f & & o . a i r . f . l e n g t h ) { h . l o c a t i o n = " " ; h . d e s c r i p = " " ; h . d a t e t i m e = " " ; f o r ( v a r   i = 0 , n = o . a i r . f . l e n g t h ; i < n ; i + + ) { v a r   l = o . a i r . f [ i ] ; h . l o c a t i o n + = ' < d i v   s t y l e = " l i n e - h e i g h t : 1 5 p x ;   m i n - h e i g h t : 3 0 p x ;   v e r t i c a l - a l i g n : c e n t e r ;   w h i t e - s p a c e : n o w r a p ; " > ' + l . d l + "   t o   " + l . a l + " < / d i v > " ; h . d e s c r i p + = ' < d i v   s t y l e = " l i n e - h e i g h t : 1 5 p x ;   m i n - h e i g h t : 3 0 p x ;   v e r t i c a l - a l i g n : c e n t e r ; " > ' + l . a + "   # " + l . f n + "   /   " + l . f c + "   " + o . a i r . f b + " < / d i v > " ; h . d a t e t i m e + = ' < d i v   s t y l e = " l i n e - h e i g h t : 1 5 p x ;   m i n - h e i g h t : 3 0 p x ;   v e r t i c a l - a l i g n : c e n t e r ;   w h i t e - s p a c e : n o w r a p ; " > ' + l . d d + "   " + l . d t + " < b r   / > " + l . a d + "   " + l . a t + " < / d i v > " } } a . p u s h ( h ) } ) ; v a r   c = $ ( " # t o p n a v C a r t " ) . h a s T e m p l a t e ( ) ; i f ( ! c ) { $ ( " . c o n t a i n e r " ) . a p p e n d ( ' < d i v   i d = " t o p n a v C a r t "   s t y l e = " w i d t h : 6 0 0 p x ;   b o r d e r : 1 p x   s o l i d   # 8 0 8 0 8 0 ;   b a c k g r o u n d : # e 3 e 3 e 3 ;   p o s i t i o n : a b s o l u t e ;   z - i n d e x : 1 0 0 0 0 ; " > < / d i v > ' ) ; $ ( " # t o p n a v C a r t " ) . s e t T e m p l a t e ( d , n u l l , { f i l t e r _ d a t a : f a l s e } ) } $ ( " # t o p n a v C a r t " ) . s e t P a r a m ( " t o t a l " , ' < d i v   s t y l e = " t e x t - a l i g n : r i g h t ; " > < d i v   s t y l e = " p a d d i n g : 5 p x ;   p a d d i n g - l e f t : 1 5 p x ;   f l o a t : r i g h t " > $ ' + ( p a r s e F l o a t ( _ c a r t . t o t a l p r i c e ) ) . t o F i x e d ( 2 ) + ' < / d i v > < d i v   s t y l e = " p a d d i n g : 5 p x ; " > T o t a l   i n c l u d i n g   t a x   ( e x c l u s i v e   o f   l o d g i n g   s e r v i c e   f e e s ) :   < / d i v > < / d i v > ' ) . s e t P a r a m ( " n a v i g a t i o n " , ' < d i v   s t y l e = " f l o a t : r i g h t ;   p a d d i n g : 5 p x ; " > < i n p u t   t y p e = " b u t t o n "   o n C l i c k = " w i n d o w . l o c a t i o n = \ ' / c h e c k o u t / \ ' ; "   v a l u e = " P r o c e e d   t o   C h e c k o u t " > < / d i v > < d i v   s t y l e = " f l o a t : l e f t ;   p a d d i n g : 5 p x ; " > < i n p u t   t y p e = " b u t t o n "   o n C l i c k = " r e n d e r C a r t ( ) ; "   v a l u e = " C l o s e " > < / d i v > < s p a n   c l a s s = " g L i n k "   s t y l e = " f l o a t : l e f t ;   m a r g i n - l e f t : 2 0 p x ;   m a r g i n - t o p : 8 p x ; "   o n C l i c k = " h a n d l e C l e a r C a r t ( ) ; " > C l e a r   Y o u r   C a r t < / s p a n > ' ) . p r o c e s s T e m p l a t e ( a ) ; i f ( ! c ) { v a r   f = $ ( g ) . p o s i t i o n ( ) . t o p + $ ( g ) . h e i g h t ( ) + 2 , e = M a t h . m a x ( - 1 0 , $ ( g ) . p o s i t i o n ( ) . l e f t + ( $ ( g ) . w i d t h ( ) / 2 ) - ( $ ( " # t o p n a v C a r t " ) . w i d t h ( ) / 2 ) ) ; $ ( " # t o p n a v C a r t " ) . c s s ( { l e f t : e , t o p : f } ) ; $ ( " # m o d a l C a r t " ) . j T P S ( { p e r P a g e s : [ M a t h . m i n ( 5 , _ c a r t . p r o d u c t s . l e n g t h ) ] , f i x e d L a y o u t : t r u e } ) ; i f ( ! b ) { $ ( " # t o p n a v C a r t " ) . h i d e ( ) . s l i d e D o w n ( " f a s t " , f u n c t i o n ( ) { i f ( ! $ ( t h i s ) . s h a d o w I d ( ) ) { $ ( t h i s ) . d r o p S h a d o w ( ) . c s s ( { z I n d e x : 5 0 0 0 } ) } $ ( t h i s ) . c s s ( { z I n d e x : 1 0 0 0 0 } ) } ) } } e l s e { $ ( " # m o d a l C a r t " ) . j T P S ( { p e r P a g e s : [ M a t h . m i n ( 5 , _ c a r t . p r o d u c t s . l e n g t h ) ] } ) ; $ ( " # t o p n a v C a r t " ) . r e m o v e S h a d o w ( ) ; $ ( " # t o p n a v C a r t " ) . d r o p S h a d o w ( ) . c s s ( { z I n d e x : 5 0 0 0 } ) ; $ ( " # t o p n a v C a r t " ) . c s s ( { z I n d e x : 1 0 0 0 0 } ) } i n i t L i n k s ( ) } f u n c t i o n   h a n d l e U I L o g o u t ( ) { $ ( " # _ l o g i n " ) . h t m l ( " l o g i n " ) ; $ ( " # t o p n a v U s e r _ d r o p S h a d o w " ) . r e m o v e ( ) ; $ ( " # t o p n a v U s e r " ) . s l i d e U p ( " f a s t " ) } f u n c t i o n   s h o w L o g i n F l y o u t ( c ) { i f ( $ ( " # t o p n a v U s e r " ) . l e n g t h > 0 ) { $ ( " # t o p n a v U s e r " ) . r e m o v e S h a d o w ( ) ; $ ( " # t o p n a v U s e r " ) . r e m o v e ( ) ; r e t u r n   f a l s e } i f ( p a r s e I n t ( c a r t . p u r c h a s e r . g u e s t _ n o ) > 0 ) { $ ( " . c o n t a i n e r " ) . a p p e n d ( ' < d i v   i d = " t o p n a v U s e r "   s t y l e = " b a c k g r o u n d : # e 3 e 3 e 3 ;   p o s i t i o n : a b s o l u t e ;   z - i n d e x : 1 0 0 0 0 ; " > < d i v   o n C l i c k = " w i n d o w . l o c a t i o n = \ ' / M y M a m m o t h / A c c o u n t / \ ' ; "   o n M o u s e O v e r = " $ ( t h i s ) . a d d C l a s s ( \ ' t o p n a v U s e r H o v e r \ ' ) "   o n M o u s e O u t = " $ ( t h i s ) . r e m o v e C l a s s ( \ ' t o p n a v U s e r H o v e r \ ' ) " > A c c o u n t   M a n a g e m e n t < b r   / > < s p a n   s t y l e = " c o l o r : # 8 0 8 0 8 0 ; " > C h a n g e   c o n t a c t   i n f o r m a t i o n ,   e m a i l   a d d r e s s ,   p a s s w o r d ,   e t c . < / s p a n > < / d i v > < d i v   o n C l i c k = " w i n d o w . l o c a t i o n = \ ' / M y M a m m o t h / \ ' ; "   o n M o u s e O v e r = " $ ( t h i s ) . a d d C l a s s ( \ ' t o p n a v U s e r H o v e r \ ' ) "   o n M o u s e O u t = " $ ( t h i s ) . r e m o v e C l a s s ( \ ' t o p n a v U s e r H o v e r \ ' ) " > M y M a m m o t h < b r   / > < s p a n   s t y l e = " c o l o r : # 8 0 8 0 8 0 ; " > P r o c e e d   t o   y o u r   c o n f i g u r e d   m y M a m m o t h   p a g e ,   c h a n g e   y o u r   e m a i l   a l e r t   p r e f e r e n c e s ,   e t c . < / s p a n > < / d i v > < d i v   o n C l i c k = " d a t a s e r v i c e s . l o g o u t ( f u n c t i o n ( ) { h a n d l e U I L o g o u t ( ) ; } , f u n c t i o n ( ) { } ) ; "   o n M o u s e O v e r = " $ ( t h i s ) . a d d C l a s s ( \ ' t o p n a v U s e r H o v e r \ ' ) "   o n M o u s e O u t = " $ ( t h i s ) . r e m o v e C l a s s ( \ ' t o p n a v U s e r H o v e r \ ' ) " > L o g o u t < / d i v > < d i v   s t y l e = " p a d d i n g : 5 p x ; " > < i n p u t   t y p e = " b u t t o n "   v a l u e = " c l o s e "   o n C l i c k = " s h o w L o g i n F l y o u t ( ) ; " > < / d i v > < / d i v > ' ) } e l s e { $ ( " . c o n t a i n e r " ) . a p p e n d ( ' < d i v   i d = " t o p n a v U s e r "   s t y l e = " b a c k g r o u n d : # e 3 e 3 e 3 ;   p o s i t i o n : a b s o l u t e ;   z - i n d e x : 1 0 0 0 0 ; " > < d i v   o n C l i c k = " w i n d o w . l o c a t i o n = \ ' / M y M a m m o t h / L o g i n / # \ '   +   w i n d o w . l o c a t i o n . t o S t r i n g ( ) . s l i c e (   w i n d o w . l o c a t i o n . t o S t r i n g ( ) . i n d e x O f ( \ ' / \ ' ,   8 )   ) ; "     o n M o u s e O v e r = " $ ( t h i s ) . a d d C l a s s ( \ ' t o p n a v U s e r H o v e r \ ' ) "   o n M o u s e O u t = " $ ( t h i s ) . r e m o v e C l a s s ( \ ' t o p n a v U s e r H o v e r \ ' ) " > L o g i n   o r   C r e a t e   A c c o u n t < b r   / > < s p a n   s t y l e = " c o l o r : # 8 0 8 0 8 0 ; " > C l i c k   t o   p r o c e e d   t o   t h e   l o g i n   o r   a c c o u n t   c r e a t i o n   p a g e < / s p a n > < / d i v > < d i v   s t y l e = " p a d d i n g : 5 p x ; " > < i n p u t   t y p e = " b u t t o n "   v a l u e = " c l o s e "   o n C l i c k = " s h o w L o g i n F l y o u t ( ) ; " > < / d i v > < / d i v > ' ) } v a r   b = $ ( c ) . p o s i t i o n ( ) . t o p + $ ( c ) . h e i g h t ( ) + 2 , a = M a t h . m a x ( - 1 0 , $ ( c ) . p o s i t i o n ( ) . l e f t + ( $ ( c ) . w i d t h ( ) / 2 ) - ( $ ( " # t o p n a v U s e r " ) . w i d t h ( ) / 2 ) ) ; $ ( " # t o p n a v U s e r " ) . c s s ( { l e f t : a , t o p : b } ) ; $ ( " # t o p n a v U s e r " ) . h i d e ( ) . s l i d e D o w n ( " f a s t " , f u n c t i o n ( ) { i f ( ! $ ( t h i s ) . s h a d o w I d ( ) ) { $ ( t h i s ) . d r o p S h a d o w ( ) . c s s ( { z I n d e x : 5 0 0 0 } ) } $ ( t h i s ) . c s s ( { z I n d e x : 1 0 0 0 0 } ) } ) } ( f u n c t i o n ( a ) { a . f n . a d d O p t i o n = f u n c t i o n ( ) { v a r   h = f u n c t i o n ( q , k , n , r ) { v a r   p = d o c u m e n t . c r e a t e E l e m e n t ( " o p t i o n " ) ; p . v a l u e = k , p . t e x t = n ; v a r   s = q . o p t i o n s ; v a r   j = s . l e n g t h ; i f ( ! q . c a c h e ) { q . c a c h e = { } ; f o r ( v a r   l = 0 ; l < j ; l + + ) { q . c a c h e [ s [ l ] . v a l u e ] = l } } i f ( t y p e o f   q . c a c h e [ k ] = = " u n d e f i n e d " ) { q . c a c h e [ k ] = j } q . o p t i o n s [ q . c a c h e [ k ] ] = p ; i f ( r ) { p . s e l e c t e d = t r u e } } ; v a r   c = a r g u m e n t s ; i f ( c . l e n g t h = = 0 ) { r e t u r n   t h i s } v a r   g = t r u e ; v a r   b = f a l s e ; v a r   e , d , f ; i f ( t y p e o f ( c [ 0 ] ) = = " o b j e c t " ) { b = t r u e ; e = c [ 0 ] } i f ( c . l e n g t h > = 2 ) { i f ( t y p e o f ( c [ 1 ] ) = = " b o o l e a n " ) { g = c [ 1 ] } e l s e { i f ( t y p e o f ( c [ 2 ] ) = = " b o o l e a n " ) { g = c [ 2 ] } } i f ( ! b ) { d = c [ 0 ] ; f = c [ 1 ] } } t h i s . e a c h ( f u n c t i o n ( ) { i f ( t h i s . n o d e N a m e . t o L o w e r C a s e ( ) ! = " s e l e c t " ) { r e t u r n } i f ( b ) { f o r ( v a r   i   i n   e ) { h ( t h i s , i , e [ i ] , g ) } } e l s e { h ( t h i s , d , f , g ) } } ) ; r e t u r n   t h i s } ; a . f n . a j a x A d d O p t i o n = f u n c t i o n ( d , f , b , e , c ) { i f ( t y p e o f ( d ) ! = " s t r i n g " ) { r e t u r n   t h i s } i f ( t y p e o f ( f ) ! = " o b j e c t " ) { f = { } } i f ( t y p e o f ( b ) ! = " b o o l e a n " ) { b = t r u e } t h i s . e a c h ( f u n c t i o n ( ) { v a r   g = t h i s ; a . g e t J S O N ( d , f , f u n c t i o n ( h ) { a ( g ) . a d d O p t i o n ( h , b ) ; i f ( t y p e o f   e = = " f u n c t i o n " ) { i f ( t y p e o f   c = = " o b j e c t " ) { e . a p p l y ( g , c ) } e l s e { e . c a l l ( g ) } } } ) } ) ; r e t u r n   t h i s } ; a . f n . r e m o v e O p t i o n = f u n c t i o n ( ) { v a r   b = a r g u m e n t s ; i f ( b . l e n g t h = = 0 ) { r e t u r n   t h i s } v a r   d = t y p e o f ( b [ 0 ] ) ; v a r   c , e ; i f ( d = = " s t r i n g " | | d = = " o b j e c t " | | d = = " f u n c t i o n " ) { c = b [ 0 ] } e l s e { i f ( d = = " n u m b e r " ) { e = b [ 0 ] } e l s e { r e t u r n   t h i s } } t h i s . e a c h ( f u n c t i o n ( ) { i f ( t h i s . n o d e N a m e . t o L o w e r C a s e ( ) ! = " s e l e c t " ) { r e t u r n } i f ( t h i s . c a c h e ) { t h i s . c a c h e = n u l l } v a r   f = f a l s e ; v a r   j = t h i s . o p t i o n s ; i f ( ! ! c ) { v a r   g = j . l e n g t h ; f o r ( v a r   h = g - 1 ; h > = 0 ; h - - ) { i f ( c . c o n s t r u c t o r = = R e g E x p ) { i f ( j [ h ] . v a l u e . m a t c h ( c ) ) { f = t r u e } } e l s e { i f ( j [ h ] . v a l u e = = c ) { f = t r u e } } i f ( f & & b [ 1 ] = = = t r u e ) { f = j [ h ] . s e l e c t e d } i f ( f ) { j [ h ] = n u l l } f = f a l s e } } e l s e { i f ( b [ 1 ] = = = t r u e ) { f = j [ e ] . s e l e c t e d } e l s e { f = t r u e } i f ( f ) { t h i s . r e m o v e ( e ) } } } ) ; r e t u r n   t h i s } ; a . f n . s o r t O p t i o n s = f u n c t i o n ( c ) { v a r   b = t y p e o f ( c ) = = " u n d e f i n e d " ? t r u e : ! ! c ; t h i s . e a c h ( f u n c t i o n ( ) { i f ( t h i s . n o d e N a m e . t o L o w e r C a s e ( ) ! = " s e l e c t " ) { r e t u r n } v a r   f = t h i s . o p t i o n s ; v a r   d = f . l e n g t h ; v a r   g = [ ] ; f o r ( v a r   e = 0 ; e < d ; e + + ) { g [ e ] = { v : f [ e ] . v a l u e , t : f [ e ] . t e x t } } g . s o r t ( f u n c t i o n ( i , h ) { o 1 t = i . t . t o L o w e r C a s e ( ) , o 2 t = h . t . t o L o w e r C a s e ( ) ; i f ( o 1 t = = o 2 t ) { r e t u r n   0 } i f ( b ) { r e t u r n   o 1 t < o 2 t ? - 1 : 1 } e l s e { r e t u r n   o 1 t > o 2 t ? - 1 : 1 } } ) ; f o r ( v a r   e = 0 ; e < d ; e + + ) { f [ e ] . t e x t = g [ e ] . t ; f [ e ] . v a l u e = g [ e ] . v } } ) ; r e t u r n   t h i s } ; a . f n . s e l e c t O p t i o n s = f u n c t i o n ( e , b ) { v a r   d = e ; v a r   f = t y p e o f ( e ) ; v a r   g = b | | f a l s e ; i f ( f ! = " s t r i n g " & & f ! = " f u n c t i o n " & & f ! = " o b j e c t " ) { r e t u r n   t h i s } t h i s . e a c h ( f u n c t i o n ( ) { i f ( t h i s . n o d e N a m e . t o L o w e r C a s e ( ) ! = " s e l e c t " ) { r e t u r n   t h i s } v a r   j = t h i s . o p t i o n s ; v a r   c = j . l e n g t h ; f o r ( v a r   h = 0 ; h < c ; h + + ) { i f ( d . c o n s t r u c t o r = = R e g E x p ) { i f ( j [ h ] . v a l u e . m a t c h ( d ) ) { j [ h ] . s e l e c t e d = t r u e } e l s e { i f ( g ) { j [ h ] . s e l e c t e d = f a l s e } } } e l s e { i f ( j [ h ] . v a l u e = = d ) { j [ h ] . s e l e c t e d = t r u e } e l s e { i f ( g ) { j [ h ] . s e l e c t e d = f a l s e } } } } } ) ; r e t u r n   t h i s } ; a . f n . c o p y O p t i o n s = f u n c t i o n ( d , c ) { v a r   b = c | | " s e l e c t e d " ; i f ( a ( d ) . s i z e ( ) = = 0 ) { r e t u r n   t h i s } t h i s . e a c h ( f u n c t i o n ( ) { i f ( t h i s . n o d e N a m e . t o L o w e r C a s e ( ) ! = " s e l e c t " ) { r e t u r n   t h i s } v a r   g = t h i s . o p t i o n s ; v a r   e = g . l e n g t h ; f o r ( v a r   f = 0 ; f < e ; f + + ) { i f ( b = = " a l l " | | ( b = = " s e l e c t e d " & & g [ f ] . s e l e c t e d ) ) { a ( d ) . a d d O p t i o n ( g [ f ] . v a l u e , g [ f ] . t e x t ) } } } ) ; r e t u r n   t h i s } ; a . f n . c o n t a i n s O p t i o n = f u n c t i o n ( e , c ) { v a r   d = f a l s e ; v a r   b = e ; v a r   f = t y p e o f ( b ) ; v a r   g = t y p e o f ( c ) ; i f ( f ! = " s t r i n g " & & f ! = " f u n c t i o n " & & f ! = " o b j e c t " ) { r e t u r n   g = = " f u n c t i o n " ? t h i s : d } t h i s . e a c h ( f u n c t i o n ( ) { i f ( t h i s . n o d e N a m e . t o L o w e r C a s e ( ) ! = " s e l e c t " ) { r e t u r n   t h i s } i f ( d & & g ! = " f u n c t i o n " ) { r e t u r n   f a l s e } v a r   k = t h i s . o p t i o n s ; v a r   h = k . l e n g t h ; f o r ( v a r   j = 0 ; j < h ; j + + ) { i f ( b . c o n s t r u c t o r = = R e g E x p ) { i f ( k [ j ] . v a l u e . m a t c h ( b ) ) { d = t r u e ; i f ( g = = " f u n c t i o n " ) { c . c a l l ( k [ j ] , j ) } } } e l s e { i f ( k [ j ] . v a l u e = = b ) { d = t r u e ; i f ( g = = " f u n c t i o n " ) { c . c a l l ( k [ j ] , j ) } } } } } ) ; r e t u r n   g = = " f u n c t i o n " ? t h i s : d } ; a . f n . s e l e c t e d V a l u e s = f u n c t i o n ( ) { v a r   b = [ ] ; t h i s . f i n d ( " o p t i o n : s e l e c t e d " ) . e a c h ( f u n c t i o n ( ) { b [ b . l e n g t h ] = t h i s . v a l u e } ) ; r e t u r n   b } } ) ( j Q u e r y ) ; f u n c t i o n   _ a j a x ( a ) { $ ( " i n p u t [ t y p e = b u t t o n ] " ) . b l u r ( ) ; r e t u r n   $ . a j a x ( { u r l : ( a . l o c a t i o n | | _ a j a x L o c a t i o n ) + a . f u n c , d a t a : a . a r g s , d a t a T y p e : " j s o n " , c a c h e : f a l s e , c o n t e n t T y p e : " a p p l i c a t i o n / j s o n ;   c h a r s e t = u t f - 8 " , t i m e o u t : ( a . f u n c . t o S t r i n g ( ) . t o L o w e r C a s e ( ) . i n d e x O f ( " p r o c e s s s a l e " ) > = 0 ? 6 0 0 0 0 0 : 3 6 0 0 0 0 ) , t y p e : " P O S T " , d a t a F i l t e r : f u n c t i o n ( c , b ) { r e t u r n   c . r e p l a c e ( / " \ \ \ / ( D a t e \ ( [ 0 - 9 - ] + \ ) ) \ \ \ / " / g i , " n e w   $ 1 " ) } , _ c a l l e r : _ a j a x . c a l l e r , t r y A g a i n : ( a . t r y A g a i n | | f a l s e ) , s u c c e s s : f u n c t i o n ( b , c ) { i f ( t y p e o f   b . _ s ! = = " u n d e f i n e d " & & b . _ s = = " O K " ) { i f ( a . o k F u n c t i o n   i n s t a n c e o f   F u n c t i o n ) { a . o k F u n c t i o n ( b ) } } e l s e { i f ( t y p e o f   b . _ s ! = = " u n d e f i n e d " & & b . _ s = = " E R R " ) { i f ( ( b . _ m | | " " ) . t o L o w e r C a s e ( ) . i n d e x O f ( " a u t h   f a i l u r e " ) > = 0 ) { c l e a r C a r t ( ) ; $ . b l o c k U I ( { m e s s a g e : ' Y o u r   s e s s i o n   e x p i r e d   a f t e r   2 0 m i n   o f   i n a c t i v i t y .   A   n e w   o n e   w a s   g e n e r a t e d   f o r   y o u . < B R > < i n p u t   t y p e = " b u t t o n "   v a l u e = " c l o s e "   o n C l i c k = " $ . u n b l o c k U I ( ) ;   $ ( \ ' . b l o c k U I \ ' ) . p a r e n t ( ) . u n b l o c k ( ) ; "   s t y l e = " m a r g i n : 5 p x ; " > ' + ( t h i s . t r y A g a i n ? ' < i n p u t   t y p e = " b u t t o n "   v a l u e = " t r y   a g a i n "   c l a s s = " t r y A g a i n "   s t y l e = " m a r g i n : 5 p x ; " > ' : " " ) , f o c u s I n p u t : t r u e } ) ; $ ( " i n p u t . t r y A g a i n " ) . b i n d ( " c l i c k " , { a j a x D a t a : t h i s } , f u n c t i o n ( d ) { $ . u n b l o c k U I ( ) ; $ ( " . b l o c k U I " ) . p a r e n t ( ) . u n b l o c k ( ) ; i f ( t y p e o f ( d . d a t a . a j a x D a t a . _ c a l l e r ) = = " f u n c t i o n " ) { d . d a t a . a j a x D a t a . _ c a l l e r ( ) } } ) } e l s e { l o g E x c e p t i o n ( ( b . _ m | | " " ) , ( b . _ s a l e | | " " ) ) ; i f ( a . e r r F u n c t i o n   i n s t a n c e o f   F u n c t i o n ) { a . e r r F u n c t i o n ( b ) } e l s e { $ . u n b l o c k U I ( ) ; $ . b l o c k U I ( { m e s s a g e : ( b . _ m | | " A n   u n e x p e c t e d   e r r o r   h a s   o c c u r r e d .   P l e a s e   t r y   a g a i n .   I f   y o u   a r e   u n a b l e   t o   c o n t i n u e ,   p l e a s e   c a l l   8 0 0 . M A M M O T H   t o   s p e a k   w i t h   a   V a c a t i o n   S p e c i a l i s t ! " ) + ' < B R > < i n p u t   t y p e = " b u t t o n "   v a l u e = " c o n t i n u e "   o n C l i c k = " $ . u n b l o c k U I ( ) ;   $ ( \ ' . b l o c k U I \ ' ) . p a r e n t ( ) . u n b l o c k ( ) ; " > ' , f o c u s I n p u t : t r u e } ) } } } e l s e { l o g E x c e p t i o n ( b , c ) ; $ . u n b l o c k U I ( ) ; $ . b l o c k U I ( { m e s s a g e : ( b . _ m | | " U n e x p e c t e d   E r r o r   A u t h e n t i c a t i n g .   P l e a s e   t r y   c l i c k i n g   y o u r   w e b   b r o w s e r   R E L O A D   b u t t o n . " ) + ' < B R > < i n p u t   t y p e = " b u t t o n "   v a l u e = " c o n t i n u e "   o n C l i c k = " $ . u n b l o c k U I ( ) ;   $ ( \ ' . b l o c k U I \ ' ) . p a r e n t ( ) . u n b l o c k ( ) ; " > ' , f o c u s I n p u t : t r u e } ) } } $ ( " . b l o c k M s g   i n p u t : f i r s t " ) . f o c u s ( ) } , e r r o r : f u n c t i o n ( b , d , c ) { l o g E x c e p t i o n ( b , d , c ) ; i f ( a . e r r F u n c t i o n   i n s t a n c e o f   F u n c t i o n ) { a . e r r F u n c t i o n ( { _ s : " E R R " , _ m : " A n   u n e x p e c t e d   e r r o r   h a s   o c c u r r e d .   P l e a s e   t r y   a g a i n .   I f   y o u   a r e   u n a b l e   t o   c o n t i n u e ,   p l e a s e   c a l l   8 0 0 . M A M M O T H   t o   s p e a k   w i t h   a   V a c a t i o n   S p e c i a l i s t ! " } ) } e l s e { $ . u n b l o c k U I ( ) ; $ . b l o c k U I ( { m e s s a g e : ' A n   u n e x p e c t e d   e r r o r   h a s   o c c u r r e d .   P l e a s e   t r y   a g a i n .   I f   y o u   a r e   u n a b l e   t o   c o n t i n u e ,   p l e a s e   c a l l   8 0 0 . M A M M O T H   t o   s p e a k   w i t h   a   V a c a t i o n   S p e c i a l i s t ! < B R > < i n p u t   t y p e = " b u t t o n "   v a l u e = " c o n t i n u e "   o n C l i c k = " $ . u n b l o c k U I ( ) ;   $ ( \ ' . b l o c k U I \ ' ) . p a r e n t ( ) . u n b l o c k ( ) ; " > ' , f o c u s I n p u t : t r u e } ) } $ ( " . b l o c k M s g   i n p u t : f i r s t " ) . f o c u s ( ) ; $ ( " # f i n a l i z e B u t t o n " ) . a t t r ( " d i s a b l e d " , f a l s e ) } } ) } ( f u n c t i o n ( d ) { d . f n . j C a l = f u n c t i o n ( e ) { d . j C a l ( t h i s , e ) } ; d . j C a l = f u n c t i o n ( f , e ) { e = d . e x t e n d ( { d a y : n e w   D a t e ( ) , d a y s : 1 , s h o w M o n t h s : 1 , m o n t h S e l e c t : f a l s e , d C h e c k : f u n c t i o n ( h ) { r e t u r n   t r u e } , c a l l b a c k : f u n c t i o n ( h , i ) { r e t u r n   t r u e } , d r a w B a c k : f u n c t i o n ( ) { r e t u r n   t r u e } , s e l e c t e d B G : " r g b ( 0 ,   1 4 3 ,   2 1 4 ) " , d e f a u l t B G : " r g b ( 2 5 5 ,   2 5 5 ,   2 5 5 ) " , d a y O f f s e t : 0 , s c r o l l S p e e d : 1 5 0 , f o r c e W e e k : f a l s e , d o w : [ " S " , " M " , " T " , " W " , " T " , " F " , " S " ] , m l : [ " J a n u a r y " , " F e b r u a r y " , " M a r c h " , " A p r i l " , " M a y " , " J u n e " , " J u l y " , " A u g u s t " , " S e p t e m b e r " , " O c t o b e r " , " N o v e m b e r " , " D e c e m b e r " ] , m s : [ " J a n " , " F e b " , " M a r " , " A p r " , " M a y " , " J u n " , " J u l " , " A u g " , " S e p " , " O c t " , " N o v " , " D e c " ] , _ t a r g e t : f } , e ) ; e . d a y = n e w   D a t e ( e . d a y . g e t F u l l Y e a r ( ) , e . d a y . g e t M o n t h ( ) , 1 ) ; i f ( ! d ( e . _ t a r g e t ) . d a t a ( " d a y s " ) ) { d ( e . _ t a r g e t ) . d a t a ( " d a y s " , e . d a y s ) } d ( f ) . s t o p ( ) . e m p t y ( ) ; f o r ( v a r   g = 0 ; g < e . s h o w M o n t h s ; g + + ) { d ( f ) . a p p e n d ( ' < d i v   c l a s s = " j C a l M o " > < / d i v > ' ) } e . c I D = " c " + d ( " . j C a l M o " ) . l e n g t h ; d ( " . j C a l M o " , f ) . e a c h ( f u n c t i o n ( h ) { c ( d ( t h i s ) , d . e x t e n d ( { } , e , { i n d : h , d a y : n e w   D a t e ( n e w   D a t e ( e . d a y . g e t T i m e ( ) ) . s e t M o n t h ( n e w   D a t e ( e . d a y . g e t T i m e ( ) ) . g e t M o n t h ( ) + h ) ) } ) ) ; a ( d ( t h i s ) , d . e x t e n d ( { } , e , { i n d : h , d a y : n e w   D a t e ( n e w   D a t e ( e . d a y . g e t T i m e ( ) ) . s e t M o n t h ( n e w   D a t e ( e . d a y . g e t T i m e ( ) ) . g e t M o n t h ( ) + h ) ) } ) ) } ) ; i f ( d ( e . _ t a r g e t ) . d a t a ( " d a y " ) & & d ( e . _ t a r g e t ) . d a t a ( " d a y s " ) ) { b ( f , d ( e . _ t a r g e t ) . d a t a ( " d a y " ) , d ( e . _ t a r g e t ) . d a t a ( " d a y s " ) , e ) } i f ( t y p e o f   e . d r a w B a c k = = " f u n c t i o n " ) { e . d r a w B a c k ( ) } } ; f u n c t i o n   c ( f , e ) { d ( f ) . a p p e n d ( ' < d i v   c l a s s = " j C a l " > ' + ( ( e . i n d = = 0 ) ? ' < d i v   c l a s s = " l e f t "   / > ' : " " ) + ' < d i v   c l a s s = " m o n t h " > < s p a n   c l a s s = " m o n t h Y e a r " > ' + e . d a y . g e t F u l l Y e a r ( ) + ' < / s p a n > < s p a n   c l a s s = " m o n t h N a m e " > ' + e . m l [ e . d a y . g e t M o n t h ( ) ] + " < / s p a n > < / d i v > " + ( ( e . i n d = = ( e . s h o w M o n t h s - 1 ) ) ? ' < d i v   c l a s s = " r i g h t "   / > ' : " " ) + " < / d i v > " ) ; i f ( e . m o n t h S e l e c t ) { d ( f ) . f i n d ( " . j C a l   . m o n t h N a m e ,   . j C a l   . m o n t h Y e a r " ) . b i n d ( " m o u s e o v e r " , d . e x t e n d ( { } , e ) , f u n c t i o n ( g ) { d ( t h i s ) . r e m o v e C l a s s ( " m o n t h Y e a r H o v e r " ) . r e m o v e C l a s s ( " m o n t h N a m e H o v e r " ) ; i f ( d ( " . j C a l M a s k " , g . d a t a . _ t a r g e t ) . l e n g t h = = 0 ) { d ( t h i s ) . a d d C l a s s ( d ( t h i s ) . a t t r ( " c l a s s " ) + " H o v e r " ) } } ) . b i n d ( " m o u s e o u t " , f u n c t i o n ( ) { d ( t h i s ) . r e m o v e C l a s s ( " m o n t h Y e a r H o v e r " ) . r e m o v e C l a s s ( " m o n t h N a m e H o v e r " ) } ) . b i n d ( " c l i c k " , d . e x t e n d ( { } , e ) , f u n c t i o n ( k ) { d ( k . d a t a . _ t a r g e t ) . s t o p ( ) ; d ( " . j C a l M o   . m o n t h S e l e c t o r ,   . j C a l M o   . m o n t h S e l e c t o r S h a d o w " ) . r e m o v e ( ) ; v a r   p = d ( t h i s ) . h a s C l a s s ( " m o n t h N a m e " ) , i = M a t h . m a x ( p a r s e I n t ( d ( t h i s ) . c s s ( " p a d d i n g - l e f t " ) ) , p a r s e I n t ( d ( t h i s ) . c s s ( " p a d d i n g - l e f t " ) ) ) | | 2 , g = ( d ( t h i s ) . p o s i t i o n ( ) . t o p - ( ( p ? k . d a t a . d a y . g e t M o n t h ( ) : 2 ) * ( d ( t h i s ) . h e i g h t ( ) + 0 ) ) ) ; g = g > 0 ? g : 0 ; v a r   j = d ( t h i s ) . p o s i t i o n ( ) . t o p - g ; d ( ' < d i v   c l a s s = " m o n t h S e l e c t o r S h a d o w "   s t y l e = " t o p : ' + d ( k . d a t a . _ t a r g e t ) . p o s i t i o n ( ) . t o p + " p x ;   l e f t : " + d ( k . d a t a . _ t a r g e t ) . p o s i t i o n ( ) . l e f t + " p x ;   w i d t h : " + ( d ( k . d a t a . _ t a r g e t ) . w i d t h ( ) + ( p a r s e I n t ( d ( k . d a t a . _ t a r g e t ) . c s s ( " p a d d i n g L e f t " ) ) | | 0 ) + ( p a r s e I n t ( d ( k . d a t a . _ t a r g e t ) . c s s ( " p a d d i n g R i g h t " ) ) | | 0 ) ) + " p x ;   h e i g h t : " + ( d ( k . d a t a . _ t a r g e t ) . h e i g h t ( ) + ( p a r s e I n t ( d ( k . d a t a . _ t a r g e t ) . c s s ( " p a d d i n g T o p " ) ) | | 0 ) + ( p a r s e I n t ( d ( k . d a t a . _ t a r g e t ) . c s s ( " p a d d i n g B o t t o m " ) ) | | 0 ) ) + ' p x ; " > < / d i v > ' ) . c s s ( " o p a c i t y " , 0 . 0 1 ) . a p p e n d T o ( d ( t h i s ) . p a r e n t ( ) ) ; d ( ' < d i v   c l a s s = " m o n t h S e l e c t o r "   s t y l e = " t o p : ' + g + " p x ;   l e f t : " + ( d ( t h i s ) . p o s i t i o n ( ) . l e f t ) + " p x ;   w i d t h : " + ( d ( t h i s ) . w i d t h ( ) + ( i * 2 ) ) + ' p x ; " > < / d i v > ' ) . c s s ( " o p a c i t y " , 0 ) . a p p e n d T o ( d ( t h i s ) . p a r e n t ( ) ) ; f o r ( v a r   l = ( p ? 0 : - 2 ) , o = ( p ? 1 2 : 3 ) ; l < o ; l + + ) { d ( t h i s ) . c l o n e ( ) . r e m o v e C l a s s ( " m o n t h Y e a r H o v e r " ) . r e m o v e C l a s s ( " m o n t h N a m e H o v e r " ) . a d d C l a s s ( " m o n t h S e l e c t " ) . a t t r ( " i d " , p ? ( l + 1 ) + " _ 1 _ " + k . d a t a . d a y . g e t F u l l Y e a r ( ) : ( k . d a t a . d a y . g e t M o n t h ( ) + 1 ) + " _ 1 _ " + ( k . d a t a . d a y . g e t F u l l Y e a r ( ) + l ) ) . h t m l ( p ? k . d a t a . m l [ l ] : ( k . d a t a . d a y . g e t F u l l Y e a r ( ) + l ) ) . c s s ( " t o p " , ( d ( t h i s ) . h e i g h t ( ) * l ) ) . a p p e n d T o ( d ( t h i s ) . p a r e n t ( ) . f i n d ( " . m o n t h S e l e c t o r " ) ) } v a r   n = d ( t h i s ) . p a r e n t ( ) . f i n d ( " . m o n t h S e l e c t o r " ) . g e t ( 0 ) , h = d ( n ) . h e i g h t ( ) - ( d ( n ) . h e i g h t ( ) - j ) ; d ( n ) . c s s ( " c l i p " , " r e c t ( " + h + " p x   " + ( d ( t h i s ) . w i d t h ( ) + ( i * 2 ) ) + " p x   " + h + " p x   0 p x ) " ) . a n i m a t e ( { o p a c i t y : 0 . 9 2 , c l i p : " r e c t ( 0 p x   " + ( d ( t h i s ) . w i d t h ( ) + ( i * 2 ) ) + " p x   " + d ( n ) . h e i g h t ( ) + " p x   0 p x ) " } , k . d a t a . s c r o l l S p e e d , f u n c t i o n ( ) { d ( t h i s ) . p a r e n t ( ) . f i n d ( " . m o n t h S e l e c t o r S h a d o w " ) . b i n d ( " m o u s e o v e r   c l i c k " , f u n c t i o n ( ) { d ( t h i s ) . p a r e n t ( ) . f i n d ( " . m o n t h S e l e c t o r " ) . r e m o v e ( ) ; d ( t h i s ) . r e m o v e ( ) } ) } ) . p a r e n t ( ) . f i n d ( " . m o n t h S e l e c t o r S h a d o w " ) . a n i m a t e ( { o p a c i t y : 0 . 1 } , k . d a t a . s c r o l l S p e e d ) ; d ( " . j C a l M o   . m o n t h S e l e c t " , k . d a t a . _ t a r g e t ) . b i n d ( " m o u s e o v e r   m o u s e o u t   c l i c k " , d . e x t e n d ( { } , k . d a t a ) , f u n c t i o n ( q ) { i f ( q . t y p e = = " c l i c k " ) { d ( q . d a t a . _ t a r g e t ) . j C a l ( d . e x t e n d ( q . d a t a , { d a y : n e w   D a t e ( d ( t h i s ) . a t t r ( " i d " ) . r e p l a c e ( / _ / g , " / " ) ) } ) ) } e l s e { d ( t h i s ) . t o g g l e C l a s s ( " m o n t h S e l e c t H o v e r " ) } } ) ; i f ( t y p e o f   e . d r a w B a c k = = " f u n c t i o n " ) { e . d r a w B a c k ( ) } } ) } d ( f ) . f i n d ( " . j C a l   . l e f t " ) . b i n d ( " c l i c k " , d . e x t e n d ( { } , e ) , f u n c t i o n ( h ) { i f ( d ( " . j C a l M a s k " , h . d a t a . _ t a r g e t ) . l e n g t h > 0 ) { r e t u r n   f a l s e } d ( h . d a t a . _ t a r g e t ) . s t o p ( ) ; v a r   g = { w : 0 , h : 0 } ; d ( " . j C a l M o " , h . d a t a . _ t a r g e t ) . e a c h ( f u n c t i o n ( ) { g . w + = d ( t h i s ) . w i d t h ( ) + p a r s e I n t ( d ( t h i s ) . c s s ( " p a d d i n g - l e f t " ) ) + p a r s e I n t ( d ( t h i s ) . c s s ( " p a d d i n g - r i g h t " ) ) ; v a r   i = d ( t h i s ) . h e i g h t ( ) + p a r s e I n t ( d ( t h i s ) . c s s ( " p a d d i n g - t o p " ) ) + p a r s e I n t ( d ( t h i s ) . c s s ( " p a d d i n g - b o t t o m " ) ) ; g . h = ( ( i > g . h ) ? i : g . h ) } ) ; d ( h . d a t a . _ t a r g e t ) . p r e p e n d ( ' < d i v   c l a s s = " j C a l M o " > < / d i v > ' ) ; h . d a t a . d a y = n e w   D a t e ( d ( " d i v [ i d * = " + h . d a t a . c I D + " d _ ] : f i r s t " , h . d a t a . _ t a r g e t ) . a t t r ( " i d " ) . r e p l a c e ( h . d a t a . c I D + " d _ " , " " ) . r e p l a c e ( / _ / g , " / " ) ) ; h . d a t a . d a y . s e t D a t e ( 1 ) ; h . d a t a . d a y . s e t M o n t h ( h . d a t a . d a y . g e t M o n t h ( ) - 1 ) ; c ( d ( " . j C a l M o : f i r s t " , h . d a t a . _ t a r g e t ) , h . d a t a ) ; a ( d ( " . j C a l M o : f i r s t " , h . d a t a . _ t a r g e t ) , h . d a t a ) ; i f ( h . d a t a . s h o w M o n t h s > 1 ) { d ( " . r i g h t " , h . d a t a . _ t a r g e t ) . c l o n e ( t r u e ) . a p p e n d T o ( d ( " . j C a l M o : e q ( 1 )   . j C a l " , h . d a t a . _ t a r g e t ) ) ; d ( " . l e f t : l a s t ,   . r i g h t : l a s t " , h . d a t a . _ t a r g e t ) . r e m o v e ( ) } d ( h . d a t a . _ t a r g e t ) . a p p e n d ( ' < d i v   c l a s s = " j C a l S p a c e "   s t y l e = " w i d t h : ' + g . w + " p x ;   h e i g h t : " + g . h + ' p x ; " > < / d i v > ' ) ; d ( " . j C a l M o " , h . d a t a . _ t a r g e t ) . w r a p A l l ( ' < d i v   c l a s s = " j C a l M a s k "   s t y l e = " c l i p : r e c t ( 0 p x   ' + g . w + " p x   " + g . h + " p x   0 p x ) ;   w i d t h : " + ( g . w + ( g . w / h . d a t a . s h o w M o n t h s ) ) + " p x ;   h e i g h t : " + g . h + ' p x ; " > < d i v   c l a s s = " j C a l M o v e " > < / d i v > < / d i v > ' ) ; d ( " . j C a l M o v e " , h . d a t a . _ t a r g e t ) . c s s ( " m a r g i n - l e f t " , ( ( g . w / h . d a t a . s h o w M o n t h s ) * - 1 ) + " p x " ) . c s s ( " o p a c i t y " , 0 . 5 ) . a n i m a t e ( { m a r g i n L e f t : " 0 p x " } , h . d a t a . s c r o l l S p e e d , f u n c t i o n ( ) { d ( t h i s ) . c h i l d r e n ( " . j C a l M o : n o t ( : l a s t ) " ) . a p p e n d T o ( d ( h . d a t a . _ t a r g e t ) ) ; d ( " . j C a l S p a c e ,   . j C a l M a s k " , h . d a t a . _ t a r g e t ) . e m p t y ( ) . r e m o v e ( ) ; i f ( d ( h . d a t a . _ t a r g e t ) . d a t a ( " d a y " ) ) { b ( h . d a t a . _ t a r g e t , d ( h . d a t a . _ t a r g e t ) . d a t a ( " d a y " ) , d ( h . d a t a . _ t a r g e t ) . d a t a ( " d a y s " ) , h . d a t a ) } i f ( t y p e o f   e . d r a w B a c k = = " f u n c t i o n " ) { e . d r a w B a c k ( ) } } ) } ) ; d ( f ) . f i n d ( " . j C a l   . r i g h t " ) . b i n d ( " c l i c k " , d . e x t e n d ( { } , e ) , f u n c t i o n ( h ) { i f ( d ( " . j C a l M a s k " , h . d a t a . _ t a r g e t ) . l e n g t h > 0 ) { r e t u r n   f a l s e } d ( h . d a t a . _ t a r g e t ) . s t o p ( ) ; v a r   g = { w : 0 , h : 0 } ; d ( " . j C a l M o " , h . d a t a . _ t a r g e t ) . e a c h ( f u n c t i o n ( ) { g . w + = d ( t h i s ) . w i d t h ( ) + p a r s e I n t ( d ( t h i s ) . c s s ( " p a d d i n g - l e f t " ) ) + p a r s e I n t ( d ( t h i s ) . c s s ( " p a d d i n g - r i g h t " ) ) ; v a r   i = d ( t h i s ) . h e i g h t ( ) + p a r s e I n t ( d ( t h i s ) . c s s ( " p a d d i n g - t o p " ) ) + p a r s e I n t ( d ( t h i s ) . c s s ( " p a d d i n g - b o t t o m " ) ) ; g . h = ( ( i > g . h ) ? i : g . h ) } ) ; d ( h . d a t a . _ t a r g e t ) . a p p e n d ( ' < d i v   c l a s s = " j C a l M o " > < / d i v > ' ) ; h . d a t a . d a y = n e w   D a t e ( d ( " d i v [ i d ^ = " + h . d a t a . c I D + " d _ ] : l a s t " , h . d a t a . _ t a r g e t ) . a t t r ( " i d " ) . r e p l a c e ( h . d a t a . c I D + " d _ " , " " ) . r e p l a c e ( / _ / g , " / " ) ) ; h . d a t a . d a y . s e t D a t e ( 1 ) ; h . d a t a . d a y . s e t M o n t h ( h . d a t a . d a y . g e t M o n t h ( ) + 1 ) ; c ( d ( " . j C a l M o : l a s t " , h . d a t a . _ t a r g e t ) , h . d a t a ) ; a ( d ( " . j C a l M o : l a s t " , h . d a t a . _ t a r g e t ) , h . d a t a ) ; i f ( h . d a t a . s h o w M o n t h s > 1 ) { d ( " . l e f t " , h . d a t a . _ t a r g e t ) . c l o n e ( t r u e ) . p r e p e n d T o ( d ( " . j C a l M o : e q ( 1 )   . j C a l " , h . d a t a . _ t a r g e t ) ) ; d ( " . l e f t : f i r s t ,   . r i g h t : f i r s t " , h . d a t a . _ t a r g e t ) . r e m o v e ( ) } d ( h . d a t a . _ t a r g e t ) . a p p e n d ( ' < d i v   c l a s s = " j C a l S p a c e "   s t y l e = " w i d t h : ' + g . w + " p x ;   h e i g h t : " + g . h + ' p x ; " > < / d i v > ' ) ; d ( " . j C a l M o " , h . d a t a . _ t a r g e t ) . w r a p A l l ( ' < d i v   c l a s s = " j C a l M a s k "   s t y l e = " c l i p : r e c t ( 0 p x   ' + g . w + " p x   " + g . h + " p x   0 p x ) ;   w i d t h : " + ( g . w + ( g . w / h . d a t a . s h o w M o n t h s ) ) + " p x ;   h e i g h t : " + g . h + ' p x ; " > < d i v   c l a s s = " j C a l M o v e " > < / d i v > < / d i v > ' ) ; d ( " . j C a l M o v e " , h . d a t a . _ t a r g e t ) . c s s ( " o p a c i t y " , 0 . 5 ) . a n i m a t e ( { m a r g i n L e f t : ( ( g . w / h . d a t a . s h o w M o n t h s ) * - 1 ) + " p x " } , h . d a t a . s c r o l l S p e e d , f u n c t i o n ( ) { d ( t h i s ) . c h i l d r e n ( " . j C a l M o : n o t ( : f i r s t ) " ) . a p p e n d T o ( d ( h . d a t a . _ t a r g e t ) ) ; d ( " . j C a l S p a c e ,   . j C a l M a s k " , h . d a t a . _ t a r g e t ) . e m p t y ( ) . r e m o v e ( ) ; i f ( d ( h . d a t a . _ t a r g e t ) . d a t a ( " d a y " ) ) { b ( h . d a t a . _ t a r g e t , d ( h . d a t a . _ t a r g e t ) . d a t a ( " d a y " ) , d ( h . d a t a . _ t a r g e t ) . d a t a ( " d a y s " ) , h . d a t a ) } d ( t h i s ) . c h i l d r e n ( " . j C a l M o : n o t ( : f i r s t ) " ) . r e m o v e C l a s s ( " " ) ; i f ( t y p e o f   e . d r a w B a c k = = " f u n c t i o n " ) { e . d r a w B a c k ( ) } } ) } ) } f u n c t i o n   b ( i , l , o , e ) { v a r   g = n e w   D a t e ( l . g e t T i m e ( ) ) ; v a r   n = n e w   D a t e ( l . g e t T i m e ( ) ) ; f o r ( v a r   j = f a l s e , k = 0 , h = o ; k < h ; k + + ) { v a r   f = d ( i ) . f i n d ( " d i v [ i d * = d _ " + ( n . g e t M o n t h ( ) + 1 ) + " _ " + n . g e t D a t e ( ) + " _ " + n . g e t F u l l Y e a r ( ) + " ] " ) ; i f ( f . l e n g t h > 0 ) { f . s t o p ( ) . a d d C l a s s ( " s e l e c t e d D a y " ) ; j = t r u e } n . s e t D a t e ( n . g e t D a t e ( ) + 1 ) } i f ( j & & t y p e o f   e . c a l l b a c k = = " f u n c t i o n " ) { e . c a l l b a c k ( l , o ) } } f u n c t i o n   a ( p , f ) { f o r ( v a r   j = 0 , g = f . d o w . l e n g t h ; j < g ; j + + ) { d ( p ) . a p p e n d ( ' < d i v   c l a s s = " d o w " > ' + f . d o w [ j ] + " < / d i v > " ) } v a r   h = n e w   D a t e ( n e w   D a t e ( f . d a y . g e t T i m e ( ) ) . s e t D a t e ( 1 ) ) ; v a r   k = n e w   D a t e ( n e w   D a t e ( h . g e t T i m e ( ) ) . s e t D a t e ( 0 ) ) ; v a r   e = n e w   D a t e ( n e w   D a t e ( n e w   D a t e ( h . g e t T i m e ( ) ) . s e t M o n t h ( h . g e t M o n t h ( ) + 1 ) ) . s e t D a t e ( 0 ) ) ; v a r   l = { f d : h . g e t D a y ( ) , l l d : k . g e t D a t e ( ) , l d : e . g e t D a t e ( ) } ; v a r   o = ( ( l . f d < f . d a y O f f s e t ) ? ( f . d a y O f f s e t - 7 ) : 1 ) ; v a r   n = ( ( e . g e t D a y ( ) < f . d a y O f f s e t ) ? ( 7 - e . g e t D a y ( ) ) : e . g e t D a y ( ) ) ; f o r ( v a r   q = o , i = ( l . f d + l . l d + ( 7 - n ) ) ; q < i ; q + + ) { d ( p ) . a p p e n d ( ( ( q < = ( l . f d - f . d a y O f f s e t ) ) ? ' < d i v   i d = " ' + f . c I D + " d " + q + ' "   c l a s s = " p d a y " > ' + ( l . l l d - ( ( l . f d - f . d a y O f f s e t ) - q ) ) + " < / d i v > " : ( ( q > ( ( l . f d - f . d a y O f f s e t ) + l . l d ) ) ? ' < d i v   i d = " ' + f . c I D + " d " + q + ' "   c l a s s = " a d a y " > ' + ( q - ( ( l . f d - f . d a y O f f s e t ) + l . l d ) ) + " < / d i v > " : ' < d i v   i d = " ' + f . c I D + " d _ " + ( h . g e t M o n t h ( ) + 1 ) + " _ " + ( q - ( l . f d - f . d a y O f f s e t ) ) + " _ " + h . g e t F u l l Y e a r ( ) + ' "   c l a s s = " ' + ( f . d C h e c k ( n e w   D a t e ( ( n e w   D a t e ( h . g e t T i m e ( ) ) ) . s e t D a t e ( q - ( l . f d - f . d a y O f f s e t ) ) ) ) | | " i n v d a y " ) + ' " > ' + ( q - ( l . f d - f . d a y O f f s e t ) ) + " < / d i v > " ) ) ) } d ( p ) . f i n d ( " d i v [ i d ^ = " + f . c I D + " d ] : f i r s t ,   d i v [ i d ^ = " + f . c I D + " d ] : n t h - c h i l d ( 7 n + 2 ) " ) . b e f o r e ( ' < b r   s t y l e = " c l e a r : b o t h ; "   / > ' ) ; d ( p ) . f i n d ( " d i v [ i d ^ = " + f . c I D + " d _ ] : n o t ( . i n v d a y ) " ) . b i n d ( " m o u s e o v e r   m o u s e o u t   c l i c k " , d . e x t e n d ( { } , f ) , f u n c t i o n ( v ) { i f ( d ( " . j C a l M a s k " , v . d a t a . _ t a r g e t ) . l e n g t h > 0 ) { r e t u r n   f a l s e } v a r   w = n e w   D a t e ( d ( t h i s ) . a t t r ( " i d " ) . r e p l a c e ( / c [ 0 - 9 ] { 1 , } d _ ( [ 0 - 9 ] { 1 , 2 } ) _ ( [ 0 - 9 ] { 1 , 2 } ) _ ( [ 0 - 9 ] { 4 } ) / , " $ 1 / $ 2 / $ 3 " ) ) ; i f ( v . d a t a . f o r c e W e e k ) { w . s e t D a t e ( w . g e t D a t e ( ) + ( v . d a t a . d a y O f f s e t - w . g e t D a y ( ) ) ) } v a r   u = n e w   D a t e ( w . g e t T i m e ( ) ) ; i f ( v . t y p e = = " c l i c k " ) { d ( " d i v [ i d * = d _ ] " , v . d a t a . _ t a r g e t ) . s t o p ( ) . r e m o v e C l a s s ( " s e l e c t e d D a y " ) . r e m o v e C l a s s ( " o v e r D a y " ) . r e m o v e C l a s s ( " t r a i l D a y S e l e c t e d " ) } f o r ( v a r   s = 0 , t = d ( v . d a t a . _ t a r g e t ) . d a t a ( " d a y s " ) ; s < t ; s + + ) { v a r   x = d ( v . d a t a . _ t a r g e t ) . f i n d ( " # " + v . d a t a . c I D + " d _ " + ( u . g e t M o n t h ( ) + 1 ) + " _ " + u . g e t D a t e ( ) + " _ " + u . g e t F u l l Y e a r ( ) ) ; i f ( x . l e n g t h = = 0 | | d ( x ) . h a s C l a s s ( " i n v d a y " ) ) { b r e a k } i f ( v . t y p e = = " m o u s e o v e r " ) { d ( x ) . a d d C l a s s ( " o v e r D a y " ) } e l s e { i f ( v . t y p e = = " m o u s e o u t " ) { d ( x ) . s t o p ( ) . r e m o v e C l a s s ( " o v e r D a y " ) } e l s e { i f ( v . t y p e = = " c l i c k " ) { d ( x ) . s t o p ( ) . a d d C l a s s ( " s e l e c t e d D a y " ) } } } u . s e t D a t e ( u . g e t D a t e ( ) + 1 ) } v a r   r = d ( v . d a t a . _ t a r g e t ) . f i n d ( " # " + v . d a t a . c I D + " d _ " + ( u . g e t M o n t h ( ) + 1 ) + " _ " + u . g e t D a t e ( ) + " _ " + u . g e t F u l l Y e a r ( ) ) ; i f ( r . l e n g t h > 0 ) { d ( r ) . r e m o v e C l a s s ( " t r a i l D a y H o v e r " ) } i f ( r . l e n g t h > 0 & & v . t y p e ! = " m o u s e o u t " ) { d ( r ) . a d d C l a s s ( " t r a i l D a y H o v e r " ) } i f ( r . l e n g t h > 0 & & v . t y p e = = " c l i c k " ) { d ( r ) . a d d C l a s s ( " t r a i l D a y S e l e c t e d " ) } i f ( v . t y p e = = " c l i c k " ) { v . d a t a . d a y = w ; i f ( v . d a t a . c a l l b a c k ( w , s , t h i s ) ) { d ( v . d a t a . _ t a r g e t ) . d a t a ( " d a y " , v . d a t a . d a y ) . d a t a ( " d a y s " , s ) } } } ) } } ) ( j Q u e r y ) ; f u n c t i o n   r e n d e r C a l ( c , b ) { v a r   d = c u r r D a t e , e = $ ( " # a r r i v e C a l " ) . d a t a ( " d a y " ) , a = $ ( " # d e p a r t C a l " ) . d a t a ( " d a y " ) ; i f ( a d v D a t e . g e t T i m e ( ) > d . g e t T i m e ( ) ) { d = a d v D a t e } i f ( e & & e . g e t T i m e ( ) > d . g e t T i m e ( ) ) { d = e } $ ( " # " + b ) . j C a l ( { d a y : d , d a y s : 1 , s h o w M o n t h s : 2 , m o n t h S e l e c t : f a l s e , s c r o l l S p e e d : 1 2 0 , d r a w B a c k : f u n c t i o n ( ) { i f ( d o c u m e n t . s e l e c t i o n & & t y p e o f ( d o c u m e n t . s e l e c t i o n . e m p t y ) ! = " u n d e f i n e d " ) { d o c u m e n t . s e l e c t i o n . e m p t y ( ) } e l s e { i f ( t y p e o f ( w i n d o w . g e t S e l e c t i o n ) = = = " f u n c t i o n " & & t y p e o f ( w i n d o w . g e t S e l e c t i o n ( ) . r e m o v e A l l R a n g e s ) = = = " f u n c t i o n " ) { w i n d o w . g e t S e l e c t i o n ( ) . r e m o v e A l l R a n g e s ( ) } } $ ( t h i s . _ t a r g e t ) . u n b i n d ( " c l i c k " ) . b i n d ( " c l i c k " , t h i s . _ t a r g e t , f u n c t i o n ( j ) { $ ( j . d a t a ) . s t o p ( ) ; $ ( c ) . f o c u s ( ) } ) ; i f ( e & & b = = " d e p a r t C a l " ) { $ ( " # " + b + "   [ i d * = " + ( e . g e t M o n t h ( ) + 1 ) + " _ " + e . g e t D a t e ( ) + " _ " + e . g e t F u l l Y e a r ( ) + " ] " ) . a d d C l a s s ( " s e l e c t e d D a y " ) } i f ( e & & a ) { v a r   h = n e w   D a t e ( e . g e t T i m e ( ) ) ; f o r ( v a r   f = 0 , g = M a t h . r o u n d ( ( a . g e t T i m e ( ) - e . g e t T i m e ( ) ) / 8 6 4 0 0 0 0 0 ) ; f < g ; f + + ) { v a r   i = $ ( " # " + b + "   [ i d * = " + ( h . g e t M o n t h ( ) + 1 ) + " _ " + h . g e t D a t e ( ) + " _ " + h . g e t F u l l Y e a r ( ) + " ] " ) ; i f ( ! $ ( i ) . h a s C l a s s ( " s e l e c t e d D a y " ) ) { $ ( i ) . s t o p ( ) . a d d C l a s s ( " s e l e c t e d D a y " ) } h . s e t D a t e ( h . g e t D a t e ( ) + 1 ) } } i f ( a & & b = = " a r r i v e C a l " ) { $ ( " # " + b + "   [ i d * = " + ( a . g e t M o n t h ( ) + 1 ) + " _ " + a . g e t D a t e ( ) + " _ " + a . g e t F u l l Y e a r ( ) + " ] " ) . a d d C l a s s ( " s e l e c t e d D a y " ) } $ ( c ) . f o c u s ( ) } , d C h e c k : f u n c t i o n ( f ) { i f ( f . g e t T i m e ( ) < ( a d v D a t e ) . g e t T i m e ( ) ) { r e t u r n " i n v d a y " } e l s e { r e t u r n " d a y " } } , c a l l b a c k : f u n c t i o n ( f , h , g ) { $ ( c ) . v a l ( ( f . g e t M o n t h ( ) + 1 ) + " / " + f . g e t D a t e ( ) + " / " + f . g e t F u l l Y e a r ( ) ) ; i f ( t y p e o f   $ ( t h i s . _ t a r g e t ) . d a t a ( " d a y " ) = = " o b j e c t " & & $ ( t h i s . _ t a r g e t ) . d a t a ( " d a y " ) . g e t T i m e ( ) = = f . g e t T i m e ( ) & & $ ( t h i s . _ t a r g e t ) . d a t a ( " d a y s " ) = = h ) { r e t u r n   f a l s e } i f ( b = = " a r r i v e C a l " & & $ ( " # d e p a r t C a l " ) . d a t a ( " d a y " ) & & f . g e t T i m e ( ) > = $ ( " # d e p a r t C a l " ) . d a t a ( " d a y " ) . g e t T i m e ( ) ) { $ ( " # d e p D a t e " ) . v a l ( " " ) ; $ ( " # d e p a r t C a l " ) . d a t a ( " d a y " , " " ) } i f ( b = = " d e p a r t C a l " & & $ ( " # a r r i v e C a l " ) . d a t a ( " d a y " ) & & f . g e t T i m e ( ) < = $ ( " # a r r i v e C a l " ) . d a t a ( " d a y " ) . g e t T i m e ( ) ) { $ ( " # a r r D a t e " ) . v a l ( " " ) ; $ ( " # a r r i v e C a l " ) . d a t a ( " d a y " , " " ) } $ ( t h i s . _ t a r g e t ) . e m p t y ( ) . c s s ( " d i s p l a y " , " n o n e " ) ; r e t u r n   t r u e } } ) ; i f ( b = = " d e p a r t C a l " & & e ) { $ ( " # d e p a r t C a l   . d a y " ) . b i n d ( " m o u s e o v e r   m o u s e o u t   c l i c k " , { _ t a r g e t : t h i s . _ t a r g e t , o t h e r D a t e : e } , f u n c t i o n ( h ) { v a r   i = n e w   D a t e ( $ ( t h i s ) . a t t r ( " i d " ) . r e p l a c e ( / c [ 0 - 9 ] { 1 , } d _ ( [ 0 - 9 ] { 1 , 2 } ) _ ( [ 0 - 9 ] { 1 , 2 } ) _ ( [ 0 - 9 ] { 4 } ) / , " $ 1 / $ 2 / $ 3 " ) ) ; v a r   g = n e w   D a t e ( i . g e t T i m e ( ) ) ; f o r ( v a r   f = M a t h . r o u n d ( ( i . g e t T i m e ( ) - e . g e t T i m e ( ) ) / 8 6 4 0 0 0 0 0 ) ; f > = 0 ; f - - ) { v a r   j = $ ( h . d a t a . _ t a r g e t ) . f i n d ( " [ i d * = " + ( g . g e t M o n t h ( ) + 1 ) + " _ " + g . g e t D a t e ( ) + " _ " + g . g e t F u l l Y e a r ( ) + " ] " ) ; i f ( j . l e n g t h = = 0 | | $ ( j ) . h a s C l a s s ( " i n v d a y " ) ) { b r e a k } i f ( h . t y p e = = " m o u s e o v e r " ) { $ ( j ) . a d d C l a s s ( " o v e r D a y " ) } e l s e { i f ( h . t y p e = = " m o u s e o u t " ) { $ ( j ) . s t o p ( ) . r e m o v e C l a s s ( " o v e r D a y " ) } e l s e { i f ( h . t y p e = = " c l i c k " ) { $ ( j ) . s t o p ( ) . a d d C l a s s ( " s e l e c t e d D a y " ) } } } g . s e t D a t e ( g . g e t D a t e ( ) - 1 ) } } ) } i f ( b = = " a r r i v e C a l " & & a ) { $ ( " # a r r i v e C a l   . d a y " ) . b i n d ( " m o u s e o v e r   m o u s e o u t   c l i c k " , { _ t a r g e t : t h i s . _ t a r g e t , o t h e r D a t e : a } , f u n c t i o n ( i ) { v a r   j = n e w   D a t e ( $ ( t h i s ) . a t t r ( " i d " ) . r e p l a c e ( / c [ 0 - 9 ] { 1 , } d _ ( [ 0 - 9 ] { 1 , 2 } ) _ ( [ 0 - 9 ] { 1 , 2 } ) _ ( [ 0 - 9 ] { 4 } ) / , " $ 1 / $ 2 / $ 3 " ) ) ; v a r   h = n e w   D a t e ( j . g e t T i m e ( ) ) ; f o r ( v a r   f = 0 , g = M a t h . r o u n d ( ( a . g e t T i m e ( ) - j . g e t T i m e ( ) ) / 8 6 4 0 0 0 0 0 ) ; f < = g ; f + + ) { v a r   k = $ ( i . d a t a . _ t a r g e t ) . f i n d ( " [ i d * = " + ( h . g e t M o n t h ( ) + 1 ) + " _ " + h . g e t D a t e ( ) + " _ " + h . g e t F u l l Y e a r ( ) + " ] " ) ; i f ( k . l e n g t h = = 0 | | $ ( k ) . h a s C l a s s ( " i n v d a y " ) ) { b r e a k } i f ( i . t y p e = = " m o u s e o v e r " ) { $ ( k ) . a d d C l a s s ( " o v e r D a y " ) } e l s e { i f ( i . t y p e = = " m o u s e o u t " ) { $ ( k ) . s t o p ( ) . r e m o v e C l a s s ( " o v e r D a y " ) } e l s e { i f ( i . t y p e = = " c l i c k " ) { $ ( k ) . s t o p ( ) . a d d C l a s s ( " s e l e c t e d D a y " ) } } } h . s e t D a t e ( h . g e t D a t e ( ) + 1 ) } } ) } $ ( c ) . u n b i n d ( " b l u r " ) . b i n d ( " b l u r " , { c a l : b } , f u n c t i o n ( f ) { i f ( $ ( " # " + f . d a t a . c a l + "   . j C a l M o v e " ) . l e n g t h = = 0 ) { $ ( " # " + f . d a t a . c a l ) . a n i m a t e ( { o p a c i t y : 1 } , 2 0 0 , f u n c t i o n ( ) { $ ( " # " + f . d a t a . c a l ) . c s s ( " d i s p l a y " , " n o n e " ) ; $ ( " # " + f . d a t a . c a l ) . e m p t y ( ) } ) } } ) } f u n c t i o n   s h o w C a l P i c k e r ( c , b ) { i f ( $ ( " # " + b ) . c s s ( " d i s p l a y " ) = = " n o n e " ) { r e n d e r C a l ( c , b ) ; v a r   a = $ ( c ) . p o s i t i o n ( ) . t o p + $ ( c ) . h e i g h t ( ) + 8 ; $ ( " # " + b ) . s t o p ( ) . c s s ( { l e f t : $ ( c ) . p o s i t i o n ( ) . l e f t + " p x " , t o p : a + " p x " , d i s p l a y : " b l o c k " } ) ; $ ( " # " + b ) . c s s ( " z - i n d e x " , ( ( p a r s e I n t ( $ ( c ) . c s s ( " z - i n d e x " ) ) | | 1 1 1 0 ) + 1 0 ) ) } $ ( d o c u m e n t ) . k e y u p ( f u n c t i o n ( d ) { i f ( d . k e y C o d e = = 2 7 ) { $ ( " # a r r i v e C a l ,   # d e p a r t C a l " ) . c s s ( " d i s p l a y " , " n o n e " ) ; $ ( " # a r r i v e C a l ,   # d e p a r t C a l " ) . e m p t y ( ) } } ) ; $ ( c ) . f o c u s ( ) } f u n c t i o n   r e n d e r C a l X ( c , b , a ) { v a r   d = $ ( " # " + b ) . d a t a ( " d a y " ) | | ( a . d a y & & n e w   D a t e ( a . d a y ) ) | | c u r r D a t e ; i f ( ! d . g e t T i m e ( ) ) { d = c u r r D a t e } i f ( a d v D a t e . g e t T i m e ( ) > d . g e t T i m e ( ) ) { d = a d v D a t e } $ ( " # " + b ) . j C a l ( { d a y : d , d a y s : ( a & & a . d a y s ) | | 1 , s h o w M o n t h s : 2 , m o n t h S e l e c t : f a l s e , s c r o l l S p e e d : 1 2 0 , d r a w B a c k : f u n c t i o n ( ) { i f ( d o c u m e n t . s e l e c t i o n & & t y p e o f ( d o c u m e n t . s e l e c t i o n . e m p t y ) ! = " u n d e f i n e d " ) { d o c u m e n t . s e l e c t i o n . e m p t y ( ) } e l s e { i f ( t y p e o f ( w i n d o w . g e t S e l e c t i o n ) = = = " f u n c t i o n " & & t y p e o f ( w i n d o w . g e t S e l e c t i o n ( ) . r e m o v e A l l R a n g e s ) = = = " f u n c t i o n " ) { w i n d o w . g e t S e l e c t i o n ( ) . r e m o v e A l l R a n g e s ( ) } } $ ( t h i s . _ t a r g e t ) . u n b i n d ( " c l i c k " ) . b i n d ( " c l i c k " , t h i s . _ t a r g e t , f u n c t i o n ( f ) { $ ( f . d a t a ) . s t o p ( ) ; $ ( c ) . f o c u s ( ) } ) ; $ ( c ) . f o c u s ( ) ; $ ( " . c a l P i c k e r C o n t a i n e r B o r d e r " ) . r e m o v e ( ) ; $ ( t h i s . _ t a r g e t ) . b e f o r e ( ' < d i v   c l a s s = " c a l P i c k e r C o n t a i n e r B o r d e r " > < / d i v > ' ) . p a r e n t ( ) . f i n d ( " . c a l P i c k e r C o n t a i n e r B o r d e r " ) . c s s ( { t o p : $ ( t h i s . _ t a r g e t ) . c s s ( " t o p " ) , l e f t : $ ( t h i s . _ t a r g e t ) . c s s ( " l e f t " ) , w i d t h : $ ( t h i s . _ t a r g e t ) . o u t e r W i d t h ( ) , h e i g h t : $ ( t h i s . _ t a r g e t ) . o u t e r H e i g h t ( ) } ) } , d C h e c k : f u n c t i o n ( e ) { i f ( t y p e o f ( a . d C h e c k ) = = " f u n c t i o n " ) { r e t u r n   a . d C h e c k ( e ) } e l s e { r e t u r n " d a y " } } , c a l l b a c k : f u n c t i o n ( e , g , f ) { i f ( ! f ) { r e t u r n   f a l s e } $ ( c ) . v a l ( ( e . g e t M o n t h ( ) + 1 ) + " / " + e . g e t D a t e ( ) + " / " + e . g e t F u l l Y e a r ( ) ) ; h i d e C a l P i c k e r ( t h i s . _ t a r g e t ) ; i f ( t y p e o f ( a . c a l l b a c k ) = = " f u n c t i o n " ) { a . c a l l b a c k ( ) } r e t u r n   t r u e } } ) ; $ ( c ) . u n b i n d ( " b l u r " ) . b i n d ( " b l u r " , { t a r g e t : c , c a l : b } , f u n c t i o n ( f ) { i f ( $ ( " # " + f . d a t a . c a l + "   . j C a l M o v e " ) . l e n g t h = = 0 ) { $ ( " # " + f . d a t a . c a l ) . a n i m a t e ( { o p a c i t y : 1 } , 2 0 0 , f u n c t i o n ( ) { v a r   e = $ ( " # " + f . d a t a . c a l ) . d a t a ( " d a y " ) ; i f ( e & & e . g e t T i m e ( ) & & e ! = n e w   D a t e ( $ ( f . d a t a . t a r g e t ) . v a l ( ) ) ) { $ ( f . d a t a . t a r g e t ) . v a l ( ( e . g e t M o n t h ( ) + 1 ) + " / " + e . g e t D a t e ( ) + " / " + e . g e t F u l l Y e a r ( ) ) } h i d e C a l P i c k e r ( f . d a t a . c a l ) } ) } } ) } f u n c t i o n   s h o w C a l P i c k e r X ( e , d , b ) { i f ( $ ( " # " + d ) . c s s ( " d i s p l a y " ) = = " n o n e " ) { r e n d e r C a l X ( e , d , b ) ; v a r   c = $ ( e ) . p o s i t i o n ( ) . t o p + $ ( e ) . h e i g h t ( ) + 1 2 , a = ( p a r s e I n t ( $ ( e ) . c s s ( " z - i n d e x " ) ) | | 1 3 1 0 ) + 1 0 ; $ ( " # " + d ) . s t o p ( ) . c s s ( { l e f t : $ ( e ) . p o s i t i o n ( ) . l e f t + " p x " , t o p : c + " p x " , d i s p l a y : " b l o c k " } ) ; $ ( " # " + d ) . p a r e n t ( ) . f i n d ( " . c a l P i c k e r C o n t a i n e r B o r d e r " ) . c s s ( { l e f t : $ ( e ) . p o s i t i o n ( ) . l e f t + " p x " , t o p : c + " p x " , d i s p l a y : " b l o c k " } ) ; $ ( " # " + d ) . c s s ( " z - i n d e x " , a ) ; $ ( " # " + d ) . p a r e n t ( ) . f i n d ( " . c a l P i c k e r C o n t a i n e r B o r d e r " ) . c s s ( " z - i n d e x " , a - 2 ) } $ ( d o c u m e n t ) . u n b i n d ( " k e y u p " ) . b i n d ( " k e y u p " , { t a r g e t : e , c a l : d , j C a l O p t i o n s : b } , f u n c t i o n ( i ) { i f ( i . k e y C o d e = = 2 7 ) { h i d e C a l P i c k e r ( i . d a t a . c a l ) } e l s e { i f ( i . k e y C o d e = = 1 3 ) { $ ( i . d a t a . t a r g e t ) . b l u r ( ) ; h i d e C a l P i c k e r ( i . d a t a . c a l ) } e l s e { v a r   h = $ ( i . d a t a . t a r g e t ) . v a l ( ) , g = h . s p l i t ( " / " ) , f = n e w   D a t e ( h ) ; i f ( g . l e n g t h = = 3 & & g [ 2 ] . l e n g t h = = 4 & & f . g e t T i m e ( ) & & f ! = n e w   D a t e ( i . d a t a . j C a l O p t i o n s . d a y ) & & i . d a t a . j C a l O p t i o n s . d C h e c k ( f ) = = " d a y " ) { $ ( " # " + i . d a t a . c a l ) . d a t a ( " d a y " , f ) ; i . d a t a . j C a l O p t i o n s . d a y = f ; h i d e C a l P i c k e r ( i . d a t a . c a l ) ; s h o w C a l P i c k e r X ( i . d a t a . t a r g e t , i . d a t a . c a l , i . d a t a . j C a l O p t i o n s ) } } } } ) ; $ ( e ) . f o c u s ( ) } f u n c t i o n   h i d e C a l P i c k e r ( b ) { v a r   a = t y p e o f   b = = " s t r i n g " ? $ ( " # " + b ) : $ ( b ) ; a . e m p t y ( ) . c s s ( " d i s p l a y " , " n o n e " ) . p a r e n t ( ) . f i n d ( " . c a l P i c k e r C o n t a i n e r B o r d e r " ) . r e m o v e ( ) ; $ ( d o c u m e n t ) . u n b i n d ( " k e y u p " ) } f u n c t i o n   d a t e F o r m a t ( b ) { v a r   a = n e w   D a t e ( b ) | | n e w   D a t e ( ) ; r e t u r n ( a . g e t M o n t h ( ) + 1 ) + " / " + a . g e t D a t e ( ) + " / " + a . g e t F u l l Y e a r ( ) } ( f u n c t i o n ( b ) { v a r   a = 1 ; b . f n . d r o p S h a d o w = f u n c t i o n ( c ) { v a r   d = b . e x t e n d ( { l e f t : 4 , t o p : 4 , b l u r : 2 , o p a c i t y : 0 . 5 , c o l o r : " b l a c k " , s w a p : f a l s e } , c ) ; v a r   e = b ( [ ] ) ; t h i s . n o t ( " . d r o p S h a d o w " ) . e a c h ( f u n c t i o n ( ) { v a r   q = b ( t h i s ) ; v a r   l = [ ] ; v a r   g = ( d . b l u r < = 0 ) ? 0 : d . b l u r ; v a r   p = ( g = = 0 ) ? d . o p a c i t y : d . o p a c i t y / ( g * 8 ) ; v a r   r = ( d . s w a p ) ? a : a + 1 ; v a r   f = ( d . s w a p ) ? a + 1 : a ; v a r   s ; i f ( t h i s . i d ) { s = t h i s . i d + " _ d r o p S h a d o w " } e l s e { s = " d s " + ( 1 + M a t h . f l o o r ( 9 9 9 9 * M a t h . r a n d o m ( ) ) ) } b . d a t a ( t h i s , " s h a d o w I d " , s ) ; b . d a t a ( t h i s , " s h a d o w O p t i o n s " , c ) ; q . a t t r ( " s h a d o w I d " , s ) . c s s ( " z I n d e x " , r ) ; i f ( q . c s s ( " p o s i t i o n " ) ! = " a b s o l u t e " ) { q . c s s ( { p o s i t i o n : " r e l a t i v e " , z o o m : 1 } ) } b g C o l o r = q . c s s ( " b a c k g r o u n d C o l o r " ) ; i f ( b g C o l o r = = " r g b a ( 0 ,   0 ,   0 ,   0 ) " ) { b g C o l o r = " t r a n s p a r e n t " } i f ( b g C o l o r ! = " t r a n s p a r e n t " | | q . c s s ( " b a c k g r o u n d I m a g e " ) ! = " n o n e " | | t h i s . n o d e N a m e = = " S E L E C T " | | t h i s . n o d e N a m e = = " I N P U T " | | t h i s . n o d e N a m e = = " T E X T A R E A " ) { l [ 0 ] = b ( " < d i v > < / d i v > " ) . c s s ( " b a c k g r o u n d " , d . c o l o r ) } e l s e { l [ 0 ] = q . c l o n e ( ) . r e m o v e A t t r ( " i d " ) . r e m o v e A t t r ( " n a m e " ) . r e m o v e A t t r ( " s h a d o w I d " ) . c s s ( " c o l o r " , d . c o l o r ) } l [ 0 ] . a d d C l a s s ( " d r o p S h a d o w " ) . c s s ( { h e i g h t : q . o u t e r H e i g h t ( ) , l e f t : g , o p a c i t y : p , p o s i t i o n : " a b s o l u t e " , t o p : g , w i d t h : q . o u t e r W i d t h ( ) , z I n d e x : f } ) ; v a r   o = ( 8 * g ) + 1 ; f o r ( n = 1 ; n < o ; n + + ) { l [ n ] = l [ 0 ] . c l o n e ( ) } v a r   n = 1 ; v a r   k = g ; w h i l e ( k > 0 ) { l [ n ] . c s s ( { l e f t : k * 2 , t o p : 0 } ) ; l [ n + 1 ] . c s s ( { l e f t : k * 4 , t o p : k * 2 } ) ; l [ n + 2 ] . c s s ( { l e f t : k * 2 , t o p : k * 4 } ) ; l [ n + 3 ] . c s s ( { l e f t : 0 , t o p : k * 2 } ) ; l [ n + 4 ] . c s s ( { l e f t : k * 3 , t o p : k } ) ; l [ n + 5 ] . c s s ( { l e f t : k * 3 , t o p : k * 3 } ) ; l [ n + 6 ] . c s s ( { l e f t : k , t o p : k * 3 } ) ; l [ n + 7 ] . c s s ( { l e f t : k , t o p : k } ) ; n + = 8 ; k - - } v a r   h = b ( " < d i v > < / d i v > " ) . a t t r ( " i d " , s ) . a d d C l a s s ( " d r o p S h a d o w " ) . c s s ( { l e f t : q . p o s i t i o n ( ) . l e f t + d . l e f t - g , m a r g i n T o p : q . c s s ( " m a r g i n T o p " ) , m a r g i n R i g h t : q . c s s ( " m a r g i n R i g h t " ) , m a r g i n B o t t o m : q . c s s ( " m a r g i n B o t t o m " ) , m a r g i n L e f t : q . c s s ( " m a r g i n L e f t " ) , p o s i t i o n : " a b s o l u t e " , t o p : q . p o s i t i o n ( ) . t o p + d . t o p - g , z I n d e x : f } ) ; f o r ( n = 0 ; n < o ; n + + ) { h . a p p e n d ( l [ n ] ) } q . a f t e r ( h ) ; e = e . a d d ( h ) ; b ( w i n d o w ) . r e s i z e ( f u n c t i o n ( ) { t r y { h . c s s ( { l e f t : q . p o s i t i o n ( ) . l e f t + d . l e f t - g , t o p : q . p o s i t i o n ( ) . t o p + d . t o p - g } ) } c a t c h ( i ) { } } ) ; a + = 2 } ) ; r e t u r n   t h i s . p u s h S t a c k ( e ) } ; b . f n . r e d r a w S h a d o w = f u n c t i o n ( ) { t h i s . r e m o v e S h a d o w ( ) ; r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { v a r   c = b . d a t a ( t h i s , " s h a d o w O p t i o n s " ) ; b ( t h i s ) . d r o p S h a d o w ( c ) } ) } ; b . f n . r e m o v e S h a d o w = f u n c t i o n ( ) { r e t u r n   t h i s . e a c h ( f u n c t i o n ( ) { v a r   c = b ( t h i s ) . s h a d o w I d ( ) ; b ( " d i v # " + c ) . r e m o v e ( ) } ) } ; b . f n . s h a d o w I d = f u n c t i o n ( ) { r e t u r n   b . d a t a ( t h i s [ 0 ] , " s h a d o w I d " ) } ; b ( f u n c t i o n ( ) { v a r   c = " < s t y l e   t y p e = ' t e x t / c s s '   m e d i a = ' p r i n t ' > " ; c + = " . d r o p S h a d o w { v i s i b i l i t y : h i d d e n ; } < / s t y l e > " ; b ( " h e a d " ) . a p p e n d ( c ) } ) } ) ( j Q u e r y ) ; f u n c t i o n   s e t L e s s o n D e f a u l t ( ) { $ . e a c h ( c a r t . p r o d u c t s , f u n c t i o n ( a , c ) { v a r   b = f a l s e ; s w i t c h ( ( c . r o o m C o d e | | " " ) . s u b s t r i n g ( 0 , 1 ) . t o L o w e r C a s e ( ) ) { c a s e " v " : $ ( " # l e s s o n s L o c a t i o n C a n y o n " ) . a t t r ( " c h e c k e d " , t r u e ) ; b = t r u e ; b r e a k ; c a s e " t " : $ ( " # l e s s o n s L o c a t i o n C a n y o n " ) . a t t r ( " c h e c k e d " , t r u e ) ; b = t r u e ; b r e a k ; c a s e " j " : $ ( " # l e s s o n s L o c a t i o n E a g l e " ) . a t t r ( " c h e c k e d " , t r u e ) ; b = t r u e ; b r e a k ; c a s e " m " : $ ( " # l e s s o n s L o c a t i o n M a i n " ) . a t t r ( " c h e c k e d " , t r u e ) ; b = t r u e ; b r e a k } i f ( b ) { r e t u r n   f a l s e } } ) } f u n c t i o n   s e t R e n t a l D e f a u l t ( ) { $ . e a c h ( c a r t . p r o d u c t s , f u n c t i o n ( a , c ) { v a r   b = f a l s e ; s w i t c h ( ( c . r o o m C o d e | | " " ) . s u b s t r i n g ( 0 , 1 ) . t o L o w e r C a s e ( ) ) { c a s e " v " : $ . f n . t o g g l e W i n d o w . c l o s e W i n ( " # E L S h o p s " ) ; $ . f n . t o g g l e W i n d o w . c l o s e W i n ( " # M L S h o p s " ) ; $ . f n . t o g g l e W i n d o w . c l o s e W i n ( " # C L S h o p s " ) ; $ . f n . t o g g l e W i n d o w . o p e n W i n ( " # M C S h o p s " ) ; $ ( " # m o u n t a i n c e n t e r R e n t a l   " ) . a t t r ( " c h e c k e d " , t r u e ) ; b = t r u e ; b r e a k ; c a s e " t " : $ . f n . t o g g l e W i n d o w . c l o s e W i n ( " # E L S h o p s " ) ; $ . f n . t o g g l e W i n d o w . c l o s e W i n ( " # M C S h o p s " ) ; $ . f n . t o g g l e W i n d o w . c l o s e W i n ( " # M L S h o p s " ) ; $ . f n . t o g g l e W i n d o w . o p e n W i n ( " # C L S h o p s " ) ; $ ( " # c a n y o n R e n t a l   " ) . a t t r ( " c h e c k e d " , t r u e ) ; b = t r u e ; b r e a k ; c a s e " j " : $ . f n . t o g g l e W i n d o w . c l o s e W i n ( " # E L S h o p s " ) ; $ . f n . t o g g l e W i n d o w . c l o s e W i n ( " # M C S h o p s " ) ; $ . f n . t o g g l e W i n d o w . c l o s e W i n ( " # M L S h o p s " ) ; $ . f n . t o g g l e W i n d o w . o p e n W i n ( " # C L S h o p s " ) ; $ ( " # c a n y o n R e n t a l   " ) . a t t r ( " c h e c k e d " , t r u e ) ; b = t r u e ; b r e a k ; c a s e " m " : $ . f n . t o g g l e W i n d o w . c l o s e W i n ( " # E L S h o p s " ) ; $ . f n . t o g g l e W i n d o w . c l o s e W i n ( " # M C S h o p s " ) ; $ . f n . t o g g l e W i n d o w . c l o s e W i n ( " # C L S h o p s " ) ; $ . f n . t o g g l e W i n d o w . o p e n W i n ( " # M L S h o p s " ) ; $ ( " . m m i R e n t a l   " ) . s h o w ( ) ; $ ( " # m m i R e n t a l   " ) . a t t r ( " c h e c k e d " , t r u e ) ; b = t r u e ; b r e a k } i f ( b ) { r e t u r n   f a l s e } } ) } $ ( f u n c t i o n ( ) { $ ( " # g c " ) . c l i c k ( f u n c t i o n ( ) { i f ( $ ( t h i s ) . h a s C l a s s ( " g c s e l e c t " ) ) { $ ( t h i s ) . r e m o v e C l a s s ( " g c s e l e c t " ) ; $ ( " . g c p o d " ) . r e m o v e ( ) } e l s e { $ ( d o c u m e n t . b o d y ) . a p p e n d ( ' < d i v   c l a s s = " g c p o d "   s t y l e = " b a c k g r o u n d :   u r l ( / u i / i m a g e s / j q B u b b l e / g c b u b b l e . p n g )   b o t t o m   n o - r e p e a t ! i m p o r t a n t ;   t o p : ' + ( $ ( t h i s ) . o f f s e t ( ) . t o p - 1 5 0 ) + " p x ;   l e f t : " + ( $ ( t h i s ) . o f f s e t ( ) . l e f t - 1 3 0 ) + ' p x ; " > < d i v   c l a s s = " g c p o d i n n e r " > < d i v   s t y l e = " d i s p l a y : i n l i n e ; " > < s p a n   i d = " c l o s e B t n "   s t y l e = " f l o a t : r i g h t ;   c u r s o r : p o i n t e r ; " > < i m g   t i t l e = " C l o s e "   a l t = " C l o s e "   s r c = " / u i / i m a g e s / j q B u b b l e / b u b b l e c l o s e . g i f " / > < / s p a n > < s p a n   s t y l e = " p a d d i n g - b o t t o m : 5 p x ;   f o n t - w e i g h t : b o l d ; " > C h e c k   t h e   b a l a n c e   o n   P a s s C a s h < / s p a n > < / d i v > < d i v   s t y l e = " p a d d i n g - b o t t o m : 5 p x ; " > P a s s   N u m b e r < / d i v > < d i v   s t y l e = " f l o a t : r i g h t ; " > < i n p u t   t y p e = " b u t t o n "   v a l u e = " c h e c k   b a l a n c e "   o n C l i c k = " i f   ( $ ( \ ' . g c p o d \ ' ) . j V a l ( ) )   c h e c k D e b i t B a l a n c e ( $ ( \ ' . g c p o d   [ n a m e = p a s s _ n o ] \ ' ) . v a l ( ) ) ; " > < / d i v > < i n p u t   n a m e = " p a s s _ n o "   t y p e = " t e x t "   s i z e = " 1 6 "   m a x l e n g t h = " 1 6 "   c l a s s = " r e q u i r e d F i e l d "   j V a l = " { v a l i d : / [ 0 - 9 ] { 4 , 1 7 } / ,   m e s s a g e : \ ' I n v a l i d   p a s s   n u m b e r \ ' } "   j V a l K e y = " { v a l i d : / [ 0 - 9 ] / ,   m e s s a g e : \ ' & q u o t ; % c & q u o t ;   I n v a l i d   c h a r a c t e r   -   o n l y   d i g i t s   a l l o w e d \ ' ,   c F u n c : \ ' $ ( \ \ \ ' . g c p o d   . b t n \ \ \ ' ) . c l i c k ( ) ; \ ' } " > < d i v   i d = " g c m s g "   s t y l e = " p a d d i n g - t o p : 5 p x ; " > < / d i v > < d i v   i d = " g c m s g "   s t y l e = " p a d d i n g - t o p : 2 p x ; " > < b r / > < a   h r e f = " / M y M a m m o t h / d w H i s t o r y / " > P a s s c a s h   H i s t o r y < / a > < / d i v > < / d i v > < / d i v > ' ) ; $ ( t h i s ) . a d d C l a s s ( " g c s e l e c t " ) ; $ ( " # c l o s e B t n " ) . c l i c k ( f u n c t i o n ( ) { $ ( " # g c " ) . r e m o v e C l a s s ( " g c s e l e c t " ) ; $ ( " . g c p o d " ) . r e m o v e ( ) } ) ; $ . f n . j V a l . i n i t ( ) ; i n i t L i n k s ( ) } } ) } ) ; f u n c t i o n   c h e c k D e b i t B a l a n c e ( a ) { $ ( " # g c m s g " ) . h t m l ( ' < t a b l e   c e l l p a d d i n g = " 0 "   c e l l s p a c i n g = " 0 " > < t r > < t d > < d i v   i d = " g c m s g t h " > < / d i v > < / t d > < t d   s t y l e = " p a d d i n g - l e f t : 1 0 p x ; " > g a t h e r i n g   i n f o r m a t i o n   -   p l e a s e   w a i t . . . < / t d > < / t r > < / t a b l e > ' ) ; s w f o b j e c t . e m b e d S W F ( " / _ e c o m m / i m a g e s / t h r o b b e r . s w f " , " g c m s g t h " , " 1 6 " , " 1 6 " , " 8 . 0 . 0 " , " / u i / f l a s h / e x p r e s s I n s t a l l . s w f " , { } , { w m o d e : " t r a n s p a r e n t " } , { } ) ; _ a j a x ( { f u n c : " D e b i t w a r e . a s m x / g e t D e b i t w a r e B a l a n c e " , a r g s : $ . t o J S O N ( { p a s s _ n o : a } ) , o k F u n c t i o n : f u n c t i o n ( b ) { $ ( " # g c m s g " ) . h t m l ( ' < d i v   s t y l e = " f l o a t : l e f t ;   f o n t - w e i g h t : b o l d ;   p a d d i n g - t o p : 5 p x ; " > ' + b . _ d . d e s c r i p + ' < / d i v > < b r   s t y l e = " c l e a r : b o t h ; "   / > < s p a n   s t y l e = " f l o a t : r i g h t ;   p a d d i n g - l e f t : 2 0 p x ;   f o n t - w e i g h t : b o l d ; " > $ ' + ( p a r s e F l o a t ( b . _ d . b a l a n c e ) | | 0 ) . t o F i x e d ( 2 ) + ' < / s p a n > < s p a n   s t y l e = " f l o a t : l e f t ; " > B a l a n c e   r e m a i n i n g   a s   o f   ' + b . _ d . d a t e t i m e + " < / s p a n > " ) } , e r r F u n c t i o n : f u n c t i o n ( b ) { $ ( " # g c m s g " ) . h t m l ( ' < d i v   c l a s s = " _ m s g " > ' + b . _ m + " < / d i v > " | | " C o u l d   n o t   f i n d   P a s s C a s h   o r   G i f t C a r d " ) } } ) } ( f u n c t i o n ( a ) { a . f n . j Q T e m p l a t e = f u n c t i o n ( f , e , j ) { a ( t h i s ) . e m p t y ( ) . a p p e n d ( a ( j ) . c l o n e ( ) ) ; v a r   g = a ( " t b o d y : f i r s t , . i t r : f i r s t " , t h i s ) . l e n g t h ? a ( " t b o d y : f i r s t , . i t r : f i r s t " , t h i s ) : t h i s , b = a ( g ) . h t m l ( ) , k = [ ] ; i f ( t y p e o f   f . l e n g t h ! = " u n d e f i n e d " ) { f o r ( v a r   h = 0 , i = f . l e n g t h ; h < i ; h + + ) { k . p u s h ( b ) } a ( g ) . h t m l ( k . j o i n ( " " ) ) } e l s e { f = [ f ] } f o r ( v a r   c   i n   a . e x t e n d ( { } , f [ 0 ] , e ) ) { a ( " . " + c , g ) . e a c h ( f u n c t i o n ( l ) { v a r   d = t y p e o f   f = = " o b j e c t " & & l < f . l e n g t h & & t y p e o f   f [ l ] [ c ] ! = " u n d e f i n e d " ? f [ l ] [ c ] : " " ; a ( t h i s ) . h t m l ( ( t y p e o f   e [ " + " + c ] = = " f u n c t i o n " ? e [ " + " + c ] ( l , d ) : " " ) + ( t y p e o f   e [ c ] = = " f u n c t i o n " ? e [ c ] ( l , d ) : d ) + ( t y p e o f   e [ c + " + " ] = = " f u n c t i o n " ? e [ c + " + " ] ( l , d ) : " " ) ) } ) } r e t u r n   t h i s } } ) ( j Q u e r y ) ; f u n c t i o n   l u h n C h e c k ( e ) { v a r   a = e . l e n g t h ; v a r   b = a & 1 ; v a r   c = 0 ; f o r ( v a r   d = 0 ; d < a ; d + + ) { v a r   f = p a r s e I n t ( e . c h a r A t ( d ) ) ; i f ( ! ( ( d & 1 ) ^ b ) ) { f * = 2 ; i f ( f > 9 ) { f - = 9 } } c + = f } i f ( c = = 0 ) { r e t u r n   f a l s e } i f ( c % 1 0 = = 0 ) { r e t u r n   t r u e } } ( f u n c t i o n ( a ) { a . f n . j T P S = f u n c t i o n ( b ) { a ( t h i s ) . d a t a ( " t a b l e S e t t i n g s " , a . e x t e n d ( { p e r P a g e s : [ 5 , 6 , 1 0 , 2 0 , 5 0 , " A L L " ] , p e r P a g e T e x t : " S h o w   p e r   p a g e : " , p e r P a g e D e l i m : ' < s p a n   s t y l e = " c o l o r : # c c c ; " > | < / s p a n > ' , p e r P a g e S e p e r a t o r : " . . " , s c r o l l D e l a y : 3 0 , s c r o l l S t e p : 2 , f i x e d L a y o u t : t r u e } , b ) ) ; v a r   h = a ( t h i s ) , d = d | | 1 , n = a ( t h i s ) . d a t a ( " t a b l e S e t t i n g s " ) . p e r P a g e s , w = w | | n [ 0 ] , j = a ( " > t b o d y " , t h i s ) . f i n d ( " t r " ) . l e n g t h ; a ( t h i s ) . a d d C l a s s ( " j T P S " ) ; i f ( a ( t h i s ) . d a t a ( " t a b l e S e t t i n g s " ) . f i x e d L a y o u t ) { i f ( a ( t h i s ) . c s s ( " t a b l e - l a y o u t " ) ! = " f i x e d " ) { v a r   y = 0 ; a ( " > t h e a d " , t h i s ) . f i n d ( " t h , t d " ) . e a c h ( f u n c t i o n ( ) { a ( t h i s ) . c s s ( " w i d t h " , a ( t h i s ) . w i d t h ( ) ) } ) ; v a r   i = a ( " > t b o d y " , t h i s ) [ 0 ] . c h i l d N o d e s , f = 0 ; f o r ( v a r   e = 0 , u = i . l e n g t h ; e < u ; e + + ) { i f ( i [ e ] . n o d e N a m e = = " T R " ) { y = M a t h . m a x ( y , i [ e ] . o f f s e t H e i g h t ) } } f o r ( v a r   e = 0 , u = i . l e n g t h ; e < u ; e + + ) { i f ( i [ e ] . n o d e N a m e = = " T R " ) { f o r ( v a r   x = 0 , v = i [ e ] . c h i l d N o d e s , z = v . l e n g t h ; x < z ; x + + ) { i f ( v [ x ] . n o d e N a m e = = " T D " ) { v [ x ] . s t y l e . h e i g h t = y + " p x " ; x = z } } } } a ( t h i s ) . c s s ( " t a b l e - l a y o u t " , " f i x e d " ) } } a ( " . s t u b C e l l " , t h i s ) . r e m o v e ( ) ; v a r   p = 0 , l = M a t h . m a x ( a ( " > t h e a d : f i r s t   t r : l a s t   t h , > t h e a d : f i r s t   t r : l a s t   t d " , t h i s ) . l e n g t h , p a r s e I n t ( a ( " > t h e a d : f i r s t   t r : l a s t   t h , > t h e a d : f i r s t   t r : l a s t   t d " ) . a t t r ( " c o l s p a n " ) | | 0 ) ) , t = ( w - ( a ( " > t b o d y > t r " , t h i s ) . l e n g t h % w ) ) , k = a ( " > t b o d y > t r : f i r s t > t d : f i r s t " , t h i s ) . c s s ( " h e i g h t " ) ; f o r ( ; p < t & & t ! = w ; p + + ) { a ( " > t b o d y > t r : l a s t " , t h i s ) . a f t e r ( ' < t r   c l a s s = " s t u b C e l l " > < t d   c o l s p a n = " ' + l + ' "   s t y l e = " h e i g h t :   ' + k + ' ; " > & n b s p ; < / t d > < / t r > ' ) } i f ( j > w & & w ! = 0 ) { a ( " > t b o d y > t r : g t ( " + ( w - 1 ) + " ) " , t h i s ) . a d d C l a s s ( " h i d e T R " ) } i f ( w ! = 0 ) { a ( " > t h e a d   [ s o r t ] , > t h e a d   . s o r t " , t h i s ) . e a c h ( f u n c t i o n ( A ) { a ( t h i s ) . a d d C l a s s ( " s o r t a b l e C o l " ) . a d d C l a s s ( " s o r t a b l e H e a d e r " ) . u n b i n d ( " c l i c k " ) . b i n d ( " c l i c k " , f u n c t i o n ( ) { v a r   B = a ( " > t h e a d   t r : l a s t " , h ) . c h i l d r e n ( ) . i n d e x ( a ( t h i s ) ) , D = a ( " > t h e a d   [ s o r t ] , > t h e a d   . s o r t " , h ) . e q ( B ) . h a s C l a s s ( " s o r t A s c " ) ? t r u e : f a l s e ; s ( h , B , D ) ; v a r   C = p a r s e I n t ( a ( " . h i l i g h t P a g e S e l e c t o r : f i r s t " , h ) . h t m l ( ) ) | | 1 ; a ( " > t b o d y > t r " , h ) . r e m o v e C l a s s ( " h i d e T R " ) . f i l t e r ( " : g t ( " + ( ( w - 1 ) * C ) + " ) " ) . a d d C l a s s ( " h i d e T R " ) ; a ( " > t b o d y > t r : l t ( " + ( ( w - 1 ) * ( C - 1 ) ) + " ) " , h ) . a d d C l a s s ( " h i d e T R " ) ; a ( " . p a g e S e l e c t o r : f i r s t " , h ) . c l i c k ( ) ; a ( " > t h e a d   . s o r t D e s c , > t h e a d   . s o r t A s c " , h ) . r e m o v e C l a s s ( " s o r t D e s c " ) . r e m o v e C l a s s ( " s o r t A s c " ) ; a ( " > t h e a d   [ s o r t ] , > t h e a d   . s o r t " , h ) . e q ( B ) . a d d C l a s s ( D ? " s o r t D e s c " : " s o r t A s c " ) ; a ( " > t b o d y > t r > t d . s o r t e d C o l u m n " , h ) . r e m o v e C l a s s ( " s o r t e d C o l u m n " ) ; a ( " > t b o d y > t r : n o t ( . s t u b C e l l ) " , h ) . e a c h ( f u n c t i o n ( ) { a ( " > t d : e q ( " + B + " ) " , t h i s ) . a d d C l a s s ( " s o r t e d C o l u m n " ) } ) ; a ( " . s o r t a b l e H e a d e r " ) . e a c h ( f u n c t i o n ( ) { i f ( ! a ( t h i s ) . h a s C l a s s ( " s o r t A s c " ) & & ! a ( t h i s ) . h a s C l a s s ( " s o r t D e s c " ) ) { a ( t h i s ) . a d d C l a s s ( " s o r t a b l e C o l " ) } e l s e { a ( t h i s ) . r e m o v e C l a s s ( " s o r t a b l e C o l " ) } } ) ; q ( ) } ) } ) } a ( " > . n a v   . s e l e c t P e r P a g e " , t h i s ) . e m p t y ( ) ; v a r   c = n . l e n g t h ; w h i l e ( c - - ) { a ( " > . n a v   . s e l e c t P e r P a g e " , t h i s ) . p r e p e n d ( ( ( c > 0 ) ? a ( t h i s ) . d a t a ( " t a b l e S e t t i n g s " ) . p e r P a g e D e l i m : " " ) + ' < s p a n   c l a s s = " p e r P a g e S e l e c t o r " > ' + n [ c ] + " < / s p a n > " ) } r ( t h i s , d | | 1 ) ; a ( " > . n a v   . s e l e c t P e r P a g e " , t h i s ) . p r e p e n d ( a ( t h i s ) . d a t a ( " t a b l e S e t t i n g s " ) . p e r P a g e T e x t ) . f i n d ( " . p e r P a g e S e l e c t o r " ) . e a c h ( f u n c t i o n ( ) { i f ( ( p a r s e I n t ( a ( t h i s ) . h t m l ( ) ) | | j ) = = w ) { a ( t h i s ) . a d d C l a s s ( " p e r P a g e S e l e c t e d " ) } a ( t h i s ) . b i n d ( " m o u s e o v e r   m o u s e o u t " , f u n c t i o n ( A ) { A . t y p e = = " m o u s e o v e r " ? a ( t h i s ) . a d d C l a s s ( " p e r P a g e H i l i g h t " ) : a ( t h i s ) . r e m o v e C l a s s ( " p e r P a g e H i l i g h t " ) } ) ; a ( t h i s ) . b i n d ( " c l i c k " , f u n c t i o n ( ) { w = p a r s e I n t ( a ( t h i s ) . h t m l ( ) ) | | j ; i f ( w > j ) { w = j } a ( " . s t u b C e l l " , t h i s ) . r e m o v e ( ) ; v a r   C = 0 , E = a ( " > t h e a d   t h , > t h e a d   t d " , h ) . l e n g t h , F = ( w - ( a ( " > t b o d y > t r " , h ) . l e n g t h % w ) ) , B = a ( " > t b o d y > t r : f i r s t > t d : f i r s t " , h ) . c s s ( " h e i g h t " ) ; f o r ( ; C < F & & F ! = w ; C + + ) { a ( " > t b o d y > t r : l a s t " , h ) . a f t e r ( ' < t r   c l a s s = " s t u b C e l l " > < t d   c o l s p a n = " ' + E + ' "   s t y l e = " h e i g h t :   ' + B + ' ; " > & n b s p ; < / t d > < / t r > ' ) } a ( " > t b o d y > t r " , h ) . r e m o v e C l a s s ( " h i d e T R " ) . f i l t e r ( " : g t ( " + ( ( w - 1 ) * d ) + " ) " ) . a d d C l a s s ( " h i d e T R " ) ; a ( " > t b o d y > t r : l t ( " + ( ( w - 1 ) * ( d - 1 ) ) + " ) " , h ) . a d d C l a s s ( " h i d e T R " ) ; a ( " . p a g e S e l e c t o r : f i r s t " , h ) . c l i c k ( ) ; a ( t h i s ) . s i b l i n g s ( " . p e r P a g e S e l e c t e d " ) . r e m o v e C l a s s ( " p e r P a g e S e l e c t e d " ) ; a ( t h i s ) . a d d C l a s s ( " p e r P a g e S e l e c t e d " ) ; r ( h , 1 ) ; v a r   D = a ( " > t b o d y > t r : n o t ( . h i d e T R ) : f i r s t " , h ) . p r e v A l l ( ) . l e n g t h , A = a ( " > t b o d y > t r : n o t ( . h i d e T R ) : n o t ( . s t u b C e l l ) " , h ) . l e n g t h ; a ( " > . n a v   . s t a t u s " , h ) . h t m l ( " S h o w i n g   " + ( D + 1 ) + "   -   " + ( D + A ) + "   o f   " + j + " " ) ; q ( ) } ) } ) ; v a r   g = a ( " > t b o d y > t r : n o t ( . h i d e T R ) : f i r s t " , t h i s ) . p r e v A l l ( ) . l e n g t h , o = a ( " > t b o d y > t r : n o t ( . h i d e T R ) : n o t ( . s t u b C e l l ) " , t h i s ) . l e n g t h ; a ( " > . n a v   . s t a t u s " , t h i s ) . h t m l ( " s h o w i n g   " + ( g + 1 ) + "   -   " + ( g + o ) + "   o f   " + j ) ; f u n c t i o n   q ( ) { i f ( d o c u m e n t . s e l e c t i o n & & t y p e o f ( d o c u m e n t . s e l e c t i o n . e m p t y ) ! = " u n d e f i n e d " ) { d o c u m e n t . s e l e c t i o n . e m p t y ( ) } e l s e { i f ( t y p e o f ( w i n d o w . g e t S e l e c t i o n ) = = = " f u n c t i o n " & & t y p e o f ( w i n d o w . g e t S e l e c t i o n ( ) . r e m o v e A l l R a n g e s ) = = = " f u n c t i o n " ) { w i n d o w . g e t S e l e c t i o n ( ) . r e m o v e A l l R a n g e s ( ) } } } f u n c t i o n   r ( E , D ) { a ( " > . n a v   . p a g i n a t i o n " , E ) . e m p t y ( ) ; v a r   A = ( w > = j | | w = = 0 ) ? 0 : M a t h . c e i l ( j / w ) , C = A ; w h i l e ( A - - ) { a ( " > . n a v   . p a g i n a t i o n " , E ) . p r e p e n d ( ' < d i v   c l a s s = " p a g e S e l e c t o r " > ' + ( A + 1 ) + " < / d i v > " ) } v a r   B = a ( " > . n a v : f i r s t   . p a g e S e l e c t o r " , E ) . l e n g t h ; a ( " > . n a v " , E ) . e a c h ( f u n c t i o n ( ) { a ( " . h i d e P a g e S e l e c t o r " , t h i s ) . r e m o v e C l a s s ( " h i d e P a g e S e l e c t o r " ) ; a ( " . h i l i g h t P a g e S e l e c t o r " , t h i s ) . r e m o v e C l a s s ( " h i l i g h t P a g e S e l e c t o r " ) ; a ( " . p a g e S e l e c t o r S e p e r a t o r " , t h i s ) . r e m o v e ( ) ; a ( " . p a g e S e l e c t o r : l t ( " + ( ( D > ( B - 4 ) ) ? ( B - 5 ) : ( D - 2 ) ) + " ) : n o t ( : f i r s t ) " , t h i s ) . a d d C l a s s ( " h i d e P a g e S e l e c t o r " ) . e q ( 0 ) . a f t e r ( ' < d i v   c l a s s = " p a g e S e l e c t o r S e p e r a t o r " > ' + a ( E ) . d a t a ( " t a b l e S e t t i n g s " ) . p e r P a g e S e p e r a t o r + " < / d i v > " ) ; a ( " . p a g e S e l e c t o r : g t ( " + ( ( D < 4 ) ? 4 : D ) + " ) : n o t ( : l a s t ) " , t h i s ) . a d d C l a s s ( " h i d e P a g e S e l e c t o r " ) . e q ( 0 ) . a f t e r ( ' < d i v   c l a s s = " p a g e S e l e c t o r S e p e r a t o r " > ' + a ( E ) . d a t a ( " t a b l e S e t t i n g s " ) . p e r P a g e S e p e r a t o r + " < / d i v > " ) ; a ( " . p a g e S e l e c t o r : e q ( " + ( D - 1 ) + " ) " , t h i s ) . a d d C l a s s ( " h i l i g h t P a g e S e l e c t o r " ) } ) ; i f ( w > = j ) { a ( " > . n a v   . p a g i n a t i o n T i t l e " , E ) . c s s ( " d i s p l a y " , " n o n e " ) } e l s e { a ( " > . n a v   . p a g i n a t i o n T i t l e " , E ) . c s s ( " d i s p l a y " , " " ) } a ( " > . n a v   . p a g i n a t i o n   . p a g e S e l e c t o r " , E ) . e a c h ( f u n c t i o n ( ) { a ( t h i s ) . b i n d ( " c l i c k " , f u n c t i o n ( ) { i f ( a ( t h i s ) . h a s C l a s s ( " h i l i g h t P a g e S e l e c t o r " ) ) { i f ( a ( t h i s ) . p a r e n t ( ) . q u e u e ( ) . l e n g t h > 0 ) { a ( t h i s ) . p a r e n t ( ) . s t o p ( ) . q u e u e ( " f x " , [ ] ) . s t o p ( ) ; v a r   I = ( ( p a r s e I n t ( a ( t h i s ) . h t m l ( ) ) - 1 ) * w ) , J = I + w ; a ( " > t b o d y >   t r " , h ) . r e m o v e C l a s s ( " h i d e T R " ) . a d d C l a s s ( " h i d e T R " ) ; a ( " > t b o d y > t r : g t ( " + ( I - 2 ) + " ) : l t ( " + ( w ) + " ) " , h ) . a n d S e l f ( ) . r e m o v e C l a s s ( " h i d e T R " ) ; v a r   K = a ( " > t b o d y > t r : n o t ( . h i d e T R ) : f i r s t " , h ) . p r e v A l l ( ) . l e n g t h , G = a ( " > t b o d y > t r : n o t ( . h i d e T R ) : n o t ( . s t u b C e l l ) " , h ) . l e n g t h ; a ( " > . n a v   . s t a t u s " , h ) . h t m l ( " S h o w i n g   " + ( K + 1 ) + "   -   " + ( K + G ) + "   o f   " + j + " " ) } q ( ) ; r e t u r n   f a l s e } a ( t h i s ) . a d d C l a s s ( " h i l i g h t P a g e S e l e c t o r " ) ; a ( t h i s ) . p a r e n t ( ) . s t o p ( ) . q u e u e ( " f x " , [ ] ) . s t o p ( ) . d e q u e u e ( ) ; v a r   I = a ( " > t b o d y > t r : n o t ( . h i d e T R ) : f i r s t " , h ) . p r e v A l l ( ) . l e n g t h , J = ( ( p a r s e I n t ( a ( t h i s ) . h t m l ( ) ) - 1 ) * w ) ; i f ( J > j ) { J = ( j - 1 ) } v a r   F = a ( h ) . d a t a ( " t a b l e S e t t i n g s " ) . s c r o l l S t e p * M a t h . c e i l ( M a t h . a b s ( ( J - I ) / w ) ) ; i f ( F > w ) { F = w } v a r   H = M a t h . c e i l ( M a t h . a b s ( I - J ) / F ) ; w h i l e ( H - - ) { a ( t h i s ) . p a r e n t ( ) . a n i m a t e ( { o p a c i t y : 1 } , a ( h ) . d a t a ( " t a b l e S e t t i n g s " ) . s c r o l l D e l a y , f u n c t i o n ( ) { i f ( a ( t h i s ) . q u e u e ( " f x " ) . l e n g t h = = 0 ) { F = ( M a t h . a b s ( I - J ) % F ) | | F } i f ( I > J ) { a ( " > t b o d y > t r : n o t ( . h i d e T R ) : f i r s t " , h ) . p r e v A l l ( " : l t ( " + F + " ) " ) . r e m o v e C l a s s ( " h i d e T R " ) ; i f ( a ( " > t b o d y > t r : n o t ( . h i d e T R ) " , h ) . l e n g t h > w ) { a ( " > t b o d y > t r : n o t ( . h i d e T R ) : l a s t " , h ) . p r e v A l l ( " : l t ( " + ( F - 1 ) + " ) " ) . a n d S e l f ( ) . a d d C l a s s ( " h i d e T R " ) } v a r   M = a ( " > t b o d y > t r : n o t ( . h i d e T R ) " , h ) . l e n g t h ; i f ( M < w ) { a ( " > t b o d y > t r : n o t ( . h i d e T R ) : l a s t " , h ) . n e x t A l l ( " : l t ( " + ( w - M ) + " ) " ) . r e m o v e C l a s s ( " h i d e T R " ) } } e l s e { v a r   N = a ( " > t b o d y > t r : n o t ( . h i d e T R ) : l a s t " , h ) ; a ( " > t b o d y > t r : n o t ( . h i d e T R ) : l t ( " + F + " ) " , h ) . a d d C l a s s ( " h i d e T R " ) ; a ( N ) . n e x t A l l ( " : l t ( " + F + " ) " ) . r e m o v e C l a s s ( " h i d e T R " ) } v a r   O = a ( " > t b o d y > t r : n o t ( . h i d e T R ) : f i r s t " , h ) . p r e v A l l ( ) . l e n g t h , L = a ( " > t b o d y > t r : n o t ( . h i d e T R ) : n o t ( . s t u b C e l l ) " , h ) . l e n g t h ; a ( " > . n a v   . s t a t u s " , h ) . h t m l ( " S h o w i n g   " + ( O + 1 ) + "   -   " + ( O + L ) + "   o f   " + j + " " ) } ) } r ( h , p a r s e I n t ( a ( t h i s ) . h t m l ( ) ) ) } ) } ) } f u n c t i o n   s ( F , N , E ) { v a r   H = a ( " > t h e a d   t h , > t h e a d   t h " , F ) . g e t ( N ) , G = a ( H ) . h a s C l a s s ( " s o r t A s c " ) | | a ( H ) . h a s C l a s s ( " s o r t D e s c " ) | | f a l s e , O = S t r i n g . f r o m C h a r C o d e ( 0 ) , M = / ( [ - ] ? [ 0 - 9 \ . ] + ) / g , P = a ( " > t b o d y > t r : n o t ( . s t u b C e l l ) " , F ) . g e t ( ) , D = [ ] ; a ( P ) . e a c h ( f u n c t i o n ( Q , R ) { D . p u s h ( a ( " > t d : e q ( " + N + " ) " , R ) . t e x t ( ) + O + D . l e n g t h ) } ) ; i f ( ! G ) { D . s o r t ( f u n c t i o n   B ( W , U ) { v a r   a b = / ( - ? [ 0 - 9 \ . ] + ) / g , Y = S t r i n g . f r o m C h a r C o d e ( 0 ) , X = W . t o S t r i n g ( ) . t o L o w e r C a s e ( ) . s p l i t ( Y ) [ 0 ] | | " " , T = U . t o S t r i n g ( ) . t o L o w e r C a s e ( ) . s p l i t ( Y ) [ 0 ] | | " " , Z = X . r e p l a c e ( a b , Y + " $ 1 " + Y ) . s p l i t ( Y ) , S = T . r e p l a c e ( a b , Y + " $ 1 " + Y ) . s p l i t ( Y ) , R = ( n e w   D a t e ( X ) ) . g e t T i m e ( ) , a a = R ? ( n e w   D a t e ( T ) ) . g e t T i m e ( ) : n u l l ; i f ( a a ) { i f ( R < a a ) { r e t u r n   - 1 } e l s e { i f ( R > a a ) { r e t u r n   1 } } } f o r ( v a r   V = 0 , Q = M a t h . m a x ( Z . l e n g t h , S . l e n g t h ) ; V < Q ; V + + ) { o F x N c L = p a r s e F l o a t ( Z [ V ] ) | | Z [ V ] ; o F y N c L = p a r s e F l o a t ( S [ V ] ) | | S [ V ] ; i f ( o F x N c L < o F y N c L ) { r e t u r n   - 1 } e l s e { i f ( o F x N c L > o F y N c L ) { r e t u r n   1 } } } r e t u r n   0 } ) ; i f ( ! E ) { D . r e v e r s e ( ) } } a ( " > t b o d y " , F ) . a d d C l a s s ( " j t p s t e m p " ) . b e f o r e ( " < t b o d y > < / t b o d y > " ) ; v a r   K = D . l e n g t h , C = a ( " > t b o d y " , F ) [ 0 ] ; i f ( G ) { w h i l e ( K - - ) { C . a p p e n d C h i l d ( P [ K ] ) } } e l s e { w h i l e ( K - - ) { C . a p p e n d C h i l d ( P [ p a r s e I n t ( D [ K ] . s p l i t ( O ) . p o p ( ) ) ] ) } } a ( " > t b o d y . j t p s t e m p " , F ) . r e m o v e ( ) ; v a r   L = 0 , J = a ( " > t h e a d > t r : l a s t   t h " , F ) . l e n g t h , A = ( w - ( a ( " > t b o d y > t r " , F ) . l e n g t h % w ) ) , I = a ( " > t b o d y > t r : f i r s t > t d : f i r s t " , F ) . c s s ( " h e i g h t " ) ; f o r ( ; L < A & & A ! = w ; L + + ) { a ( " > t b o d y > t r : l a s t " , F ) . a f t e r ( ' < t r   c l a s s = " s t u b C e l l " > < t d   c o l s p a n = " ' + J + ' "   s t y l e = " h e i g h t :   ' + I + ' ; " > & n b s p ; < / t d > < / t r > ' ) } } r e t u r n   t h i s } } ) ( j Q u e r y ) ; f u n c t i o n   M m s a G A U s e r E v e n t T r a c k i n g ( a ) { t h i s . p a g e T r a c k e r = a ; t h i s . d e b u g = f a l s e ; t h i s . L O D G I N G = " L o d g i n g " ; t h i s . V A C A T I O N _ P L A N N I N G = " V a c a t i o n   P l a n n i n g " ; t h i s . M T N _ A C T I V I T I E S = " M o u n t a i n   A c t i v i t i e s " ; t h i s . L U G G A G E _ T A G = " L u g g a g e   T a g " ; t h i s . S L O P E S I D E = " 9 9   S l o p e s i d e " ; t h i s . t r a c k e d C a t e g o r i e s = n e w   A r r a y ( t h i s . L O D G I N G , t h i s . V A C A T I O N _ P L A N N I N G , t h i s . M T N _ A C T I V I T I E S , t h i s . L U G G A G E _ T A G , t h i s . S L O P E S I D E ) ; t h i s . V I E W E D = " V i e w e d " ; t h i s . C L I C K E D = " C l i c k e d " ; t h i s . A D D E D _ T O _ C A R T = " A d d e d   t o   c a r t " ; t h i s . P U R C H A S E D = " P u r c h a s e d " ; t h i s . I s C a t e g o r y T r a c k e d = f u n c t i o n ( b ) { t r a c k e d = f a l s e ; f o r ( v a r   c   i n   t h i s . t r a c k e d C a t e g o r i e s ) { v a r   d = t h i s . t r a c k e d C a t e g o r i e s [ c ] ; i f ( d = = b ) { t r a c k e d = t r u e ; b r e a k } } r e t u r n   t r a c k e d } ; t h i s . S e t C o o k i e = f u n c t i o n ( b , c ) { d o c u m e n t . c o o k i e = b + " = " + c + " ;   p a t h = / " } ; t h i s . G e t C o o k i e = f u n c t i o n ( d ) { v a r   f = " n o n e " ; v a r   e = d o c u m e n t . c o o k i e . s p l i t ( " ; " ) ; f o r ( v a r   b   i n   e ) { v a r   g = e [ b ] . s p l i t ( " = " ) ; i f ( g [ 0 ] . m a t c h ( d ) ! = n u l l ) { f = g [ 1 ] } } r e t u r n   f } ; t h i s . S e t P r e v i o u s C a t e g o r y A s C o o k i e = f u n c t i o n ( b ) { t h i s . S e t C o o k i e ( " P R E C A T " , b ) } ; t h i s . G e t P r e v i o u s C a t e g o r y F r o m C o o k i e = f u n c t i o n ( ) { r e t u r n   t h i s . G e t C o o k i e ( " P R E C A T " ) } ; t h i s . S e t C A T C o o k i e = f u n c t i o n ( ) { t h i s . S e t C o o k i e ( " c a t " , " y e s " ) } ; t h i s . G e t C A T C o o k i e = f u n c t i o n ( ) { r e t u r n   t h i s . G e t C o o k i e ( " c a t " ) } ; t h i s . S e t C A T D e s c C o o k i e = f u n c t i o n ( b ) { t h i s . S e t C o o k i e ( " d e s c " , b ) } ; t h i s . G e t C A T D e s c C o o k i e = f u n c t i o n ( ) { r e t u r n   t h i s . G e t C o o k i e ( " d e s c " ) } ; t h i s . S e t C A T C a t e g o r y C o o k i e = f u n c t i o n ( b ) { t h i s . S e t C o o k i e ( " C A T C a t e g o r y " , b ) } ; t h i s . G e t C A T C a t e g o r y C o o k i e = f u n c t i o n ( ) { r e t u r n   t h i s . G e t C o o k i e ( " C A T C a t e g o r y " ) } ; t h i s . T r a c k E v e n t = f u n c t i o n ( c , d , b ) { t r y { t h i s . p a g e T r a c k e r . _ t r a c k E v e n t ( c , d , b ) } c a t c h ( f ) { i f ( t h i s . d e b u g ) { v a r   g = " A n   e x c e p t i o n   o c c u r r e d   i n   t h e   s c r i p t   w h i l e   a t t e m p t i n g   G o o g l e   A n a l y t i c s   E v e n t   T r a c k i n g .   E r r o r   n a m e :   " + f . n a m e + " .   E r r o r   m e s s a g e :   " + f . m e s s a g e ; a l e r t ( g ) } } } ; t h i s . T r a c k P a g e V i e w E v e n t = f u n c t i o n ( c ) { v a r   b = t h i s . G e t P r e v i o u s C a t e g o r y F r o m C o o k i e ( ) ; t h i s . T r a c k E v e n t ( b , t h i s . V I E W E D , c ) } ; t h i s . T r a c k P a g e C l i c k e d E v e n t = f u n c t i o n ( c ) { v a r   b = t h i s . G e t P r e v i o u s C a t e g o r y F r o m C o o k i e ( ) ; t h i s . T r a c k E v e n t ( b , t h i s . C L I C K E D , c ) } ; t h i s . T r a c k L u g g a g e T a g C l i c k e d E v e n t = f u n c t i o n ( ) { t h i s . S e t P r e v i o u s C a t e g o r y A s C o o k i e ( t h i s . L U G G A G E _ T A G ) ; t h i s . T r a c k E v e n t ( t h i s . L U G G A G E _ T A G , t h i s . C L I C K E D , t h i s . L U G G A G E _ T A G ) } ; t h i s . T r a c k 9 9 S l o p e s i d e C l i c k e d E v e n t = f u n c t i o n ( ) { t h i s . S e t P r e v i o u s C a t e g o r y A s C o o k i e ( t h i s . S L O P E S I D E ) ; t h i s . T r a c k E v e n t ( t h i s . S L O P E S I D E , t h i s . C L I C K E D , t h i s . S L O P E S I D E ) } ; t h i s . T r a c k P r o d u c t A d d e d T o C a r t = f u n c t i o n ( b ) { t h i s . T r a c k E v e n t ( t h i s . G e t P r e v i o u s C a t e g o r y F r o m C o o k i e ( ) , t h i s . A D D E D _ T O _ C A R T , b ) } ; t h i s . T r a c k P r o d u c t P u r c h a s e d = f u n c t i o n ( c ) { v a r   b = t h i s . G e t P r e v i o u s C a t e g o r y F r o m C o o k i e ( ) ; i f ( ! t h i s . I s C a t e g o r y T r a c k e d ( b ) ) { b = " U n t r a c k e d   C a t e g o r y " } t h i s . T r a c k E v e n t ( b , t h i s . P U R C H A S E D , c ) ; t h i s . k i l l C a r t A b a n d o n d m e n t T r a c k e r ( ) } ; t h i s . T r a c k C a m p a i g n M e s s a g e P e r f o r m a n c e = f u n c t i o n ( d ) { v a r   b = $ . c o o k i e ( " m e s s a g e i d " ) , h = $ . c o o k i e ( " m e m b e r i d " ) , g = " u n k n o w n " , c = 0 ; i f ( b ! = = n u l l & & h ! = = n u l l ) { i f ( t y p e o f   d . d e s c r i p ! = = " u n d e f i n e d " ) { g = d . d e s c r i p . r e p l a c e ( " < b r / > " , "   " ) } i f ( t y p e o f   d . p r i c e ! = = " u n d e f i n e d " ) { c = p a r s e I n t ( d . p r i c e ) } t r y { t h i s . p a g e T r a c k e r . _ t r a c k E v e n t ( " M e s s a g e   I d :   " + b , " M e m b e r   I d :   " + h , g , c ) } c a t c h ( f ) { i f ( t h i s . d e b u g ) { v a r   i = " A n   e x c e p t i o n   o c c u r r e d   i n   t h e   s c r i p t   w h i l e   a t t e m p t i n g   G o o g l e   A n a l y t i c s   E v e n t   T r a c k i n g .   E r r o r   n a m e :   " + f . n a m e + " .   E r r o r   m e s s a g e :   " + f . m e s s a g e ; a l e r t ( i ) } } } } ; t h i s . T r a c k F a c e b o o k S u m m e r C l i c k T h r o u g h P e r f o r m a n c e = f u n c t i o n ( ) { i f ( t y p e o f   p a g e T r a c k e r ! = = " u n d e f i n e d " & & t y p e o f   m m s a T r a c k e r ! = = " u n d e f i n e d " ) { $ . c o o k i e ( " F a c e b o o k S u m m e r " , t r u e , { p a t h : " / " } ) ; t h i s . T r a c k E v e n t ( " F a c e b o o k   S u m m e r " , " C l i c k - t h r o u g h " , w i n d o w . l o c a t i o n . p a t h n a m e ) } } ; t h i s . T r a c k F a c e b o o k S u m m e r P u r c h a s e P e r f o r m a n c e = f u n c t i o n ( b , c ) { i f ( $ . c o o k i e ( " F a c e b o o k S u m m e r " ) ! = = n u l l & & $ . c o o k i e ( " F a c e b o o k S u m m e r " ) . t o U p p e r C a s e ( ) = = = " T R U E " ) { m m s a . g l o b a l . u t i l . l o g ( " m m s a T r a c k e r . t r a c k F a c e b o o k S u m m e r P u r c h a s e P e r f o r m a n c e ( )   o r d e r I d :   " + b + "   t o t a l P r i c e : " + c ) ; t h i s . T r a c k E v e n t ( " F a c e b o o k   S u m m e r " , " O r d e r I d   " + b , c + " " ) ; $ . c o o k i e ( " F a c e b o o k S u m m e r " , f a l s e ) } } ; t h i s . I n i t T r a c k i n g = f u n c t i o n ( d ) { v a r   b = t h i s . G e t P r e v i o u s C a t e g o r y F r o m C o o k i e ( ) ; i f ( b ! = t h i s . L U G G A G E _ T A G & & b ! = t h i s . S L O P E S I D E ) { b = ( l o c a t i o n . h r e f | | " " ) ; v a r   c = t r u e ; i f ( b . m a t c h ( " L o d g i n g " ) ) { b = t h i s . L O D G I N G } e l s e { i f ( b . m a t c h ( " V a c a t i o n P l a n n i n g " ) ) { b = t h i s . V A C A T I O N _ P L A N N I N G } e l s e { i f ( b . m a t c h ( " M o u n t a i n A c t i v i t i e s " ) ) { b = t h i s . M T N _ A C T I V I T I E S } e l s e { c = f a l s e } } } i f ( c ) { t h i s . S e t P r e v i o u s C a t e g o r y A s C o o k i e ( b ) ; t h i s . T r a c k P a g e V i e w E v e n t ( d ) } } } ; t h i s . i n i t C a r t A b a n d o n d m e n t T r a c k e r = f u n c t i o n ( d ) { t r y { v a r   l = " " ; v a r   o = d o c u m e n t . c o o k i e . s p l i t ( " ; " ) ; f o r ( v a r   b   i n   o ) { v a r   j = o [ b ] . s p l i t ( " = " ) ; i f ( j [ 0 ] . m a t c h ( " _ _ u t m a " ) ! = n u l l | | j [ 0 ] . m a t c h ( " _ _ u t m z " ) ! = n u l l ) { l + = o [ b ] + " ; " } } v a r   h = ( l o c a t i o n . p r o t o c o l | | " h t t p : " ) + " / / " ; v a r   p = ( l o c a t i o n . h o s t | | " w w w . m a m m o t h m o u n t a i n . c o m " ) ; v a r   n = t h i s . G e t P r e v i o u s C a t e g o r y F r o m C o o k i e ( ) ; v a r   g = h + p + " / _ e c o m m / c a r t A b a n d o n m e n t T r a c k e r . c f m ? a c t i o n = I N I T _ C A R T _ A B A N D O N M E N T _ T R A C K E R " ; v a r   f = $ . a j a x ( { u r l : g , d a t a : { c a t e g o r y : n , p g T i t l e : d o c u m e n t . t i t l e , c u r r e n t P g R e q u e s t : l o c a t i o n . p a t h n a m e , p r o d u c t D e s c : d , c o o k i e S t r : l } } ) . r e s p o n s e T e x t ; t h i s . S e t C A T C o o k i e ( ) ; t h i s . S e t C A T C a t e g o r y C o o k i e ( n ) ; t h i s . S e t C A T D e s c C o o k i e ( d ) } c a t c h ( i ) { i f ( t h i s . d e b u g ) { v a r   k = " A n   e x c e p t i o n   o c c u r r e d   i n   t h e   s c r i p t   w h i l e   a t t e m p t i n g   i n i t C a r t A b a n d o n d m e n t T r a c k e r ( ) .   E r r o r   n a m e :   " + i . n a m e + " .   E r r o r   m e s s a g e :   " + i . m e s s a g e ; a l e r t ( k ) } } } ; t h i s . u p d a t e C a r t A b a n d o n d m e n t T r a c k e r = f u n c t i o n ( ) { i f ( t h i s . G e t C A T C o o k i e ( ) = = " y e s " ) { t r y { v a r   k = " " ; v a r   l = d o c u m e n t . c o o k i e . s p l i t ( " ; " ) ; f o r ( v a r   b   i n   l ) { v a r   i = l [ b ] . s p l i t ( " = " ) ; i f ( i [ 0 ] . m a t c h ( " _ _ u t m a " ) ! = n u l l | | i [ 0 ] . m a t c h ( " _ _ u t m z " ) ! = n u l l ) { k + = l [ b ] + " ; " } } v a r   g = ( l o c a t i o n . p r o t o c o l | | " h t t p : " ) + " / / " ; v a r   n = ( l o c a t i o n . h o s t | | " w w w . m a m m o t h m o u n t a i n . c o m " ) ; v a r   f = g + n + " / _ e c o m m / c a r t A b a n d o n m e n t T r a c k e r . c f m ? a c t i o n = U P D A T E _ C A R T _ A B A N D O N M E N T _ T R A C K E R " ; v a r   d = $ . a j a x ( { u r l : f , d a t a : { c a t e g o r y : t h i s . G e t C A T C a t e g o r y C o o k i e ( ) , p g T i t l e : ( ( a r g u m e n t s . l e n g t h < 1 ) ? d o c u m e n t . t i t l e : a r g u m e n t s [ 0 ] ) , c u r r e n t P g R e q u e s t : l o c a t i o n . p a t h n a m e , p r o d u c t D e s c : t h i s . G e t C A T D e s c C o o k i e ( ) , c o o k i e S t r : k } } ) . r e s p o n s e T e x t } c a t c h ( h ) { i f ( t h i s . d e b u g ) { v a r   j = " A n   e x c e p t i o n   o c c u r r e d   i n   t h e   s c r i p t   w h i l e   a t t e m p t i n g   i n i t C a r t A b a n d o n d m e n t T r a c k e r ( ) .   E r r o r   n a m e :   " + h . n a m e + " .   E r r o r   m e s s a g e :   " + h . m e s s a g e ; a l e r t ( j ) } } } } ; t h i s . k i l l C a r t A b a n d o n d m e n t T r a c k e r = f u n c t i o n ( ) { } } ;
