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