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