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