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