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