ÿþ 
 f u n c t i o n   E q u a l B o x e s ( s B o x S e l e c t o r ) {  
         v a r   o B o x e s   =   $ ( s B o x S e l e c t o r ) ;  
         v a r   i H e i g h t   =   0 ;          
         o B o x e s . e a c h ( f u n c t i o n ( i , i t m ) { i f ( i H e i g h t < $ ( i t m ) . h e i g h t ( ) )   i H e i g h t = $ ( i t m ) . h e i g h t ( ) ; } )  
         i f ( i H e i g h t > 0 )   $ ( s B o x S e l e c t o r ) . h e i g h t ( i H e i g h t ) ;  
 }  
  
 f u n c t i o n   G e t S e a r c h Q u e r y ( ) {  
         i f ( $ ( ' . S e a r c h - b o x   i n p u t [ n a m e = t x t K e y w o r d ] ' ) . v a l ( ) = = ' S e a r c h . . . ' ) {  
                 $ ( ' . S e a r c h - b o x   i n p u t [ n a m e = t x t K e y w o r d ] ' ) . g e t ( 0 ) . f o c u s ( ) ;   r e t u r n   ' '  
         }  
         e l s e {  
 	         r e t u r n   ' S e a r c h . a s p x ? k e y w o r d = '   +   $ ( ' . S e a r c h - b o x   i n p u t [ n a m e = t x t K e y w o r d ] ' ) . v a l ( ) ;  
 	 }  
 }  
          
 f u n c t i o n   I n i t S e a r c h B o x ( ) {  
         $ ( ' . S e a r c h - b o x   i n p u t [ n a m e = t x t K e y w o r d ] ' ) . f o c u s ( f u n c t i o n ( ) {  
                 i f ( $ ( t h i s ) . v a l ( ) = = ' S e a r c h . . . ' )   $ ( t h i s ) . v a l ( ' ' )  
         } ) . b l u r ( f u n c t i o n ( ) {  
                 i f ( $ . t r i m ( $ ( t h i s ) . v a l ( ) ) = = ' ' )   $ ( t h i s ) . v a l ( ' S e a r c h . . . ' )  
         } ) . k e y p r e s s ( f u n c t i o n ( e ) {   i f ( e . w h i c h = = 1 3 )   i f ( G e t S e a r c h Q u e r y ( ) ! = ' ' )   $ ( d o c u m e n t ) . g e t ( 0 ) . l o c a t i o n   =   G e t S e a r c h Q u e r y ( ) ; } )          
         $ ( ' # b t n S e a r c h ' ) . c l i c k ( f u n c t i o n ( ) {   i f ( G e t S e a r c h Q u e r y ( ) ! = ' ' )   $ ( d o c u m e n t ) . g e t ( 0 ) . l o c a t i o n   =   G e t S e a r c h Q u e r y ( ) ; } )  
 }  
  
  
 $ ( d o c u m e n t ) . r e a d y ( f u n c t i o n ( ) {  
         I n i t S e a r c h B o x ( ) ;  
         E q u a l B o x e s ( ' . M e t a l - b o x - r o u n d e r - c o n t e n t : l t ( 2 ) ' ) ;  
         E q u a l B o x e s ( ' . B l u e - b o x   . C o n t e n t ' ) ;  
 } ) 
