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