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