ÿþf u n c t i o n   r e t F a l s e ( )   {   r e t u r n   f a l s e ;   } 
 f u n c t i o n   r e t T r u e ( )   {   r e t u r n   t r u e ;   } 
 f u n c t i o n   s e t O p a c i t y ( p _ o E l m ,   p _ n )   { 
   v a r   s O p a c i t y ; 
   
   i f   ( d o c u m e n t . a l l )   { 
     s O p a c i t y         =   ( p _ n   >   0 ) ?   ( ( p _ n   <   1 0 0 ) ?   p _ n . t o S t r i n g ( )   :   ' 1 0 0 ' )   :   ' 0 ' ; 
     p _ o E l m . s t y l e . f i l t e r     =   ' a l p h a ( o p a c i t y = '   +   s O p a c i t y   +   ' ) ' ; 
   }   e l s e   { 
     s O p a c i t y         =   ( p _ n   >   0 ) ?   ( ( p _ n   <   1 0 0 ) ?   ' . '   +   ( ( p _ n   <   1 0 ) ?   ' 0 '   +   p _ n . t o S t r i n g ( )   :   p _ n . t o S t r i n g ( ) )   :   ' 1 ' )   :   ' 0 ' ; 
     p _ o E l m . s t y l e . M o z O p a c i t y   =   s O p a c i t y ; 
   } 
 } 
 f u n c t i o n   e m p t y E l e m e n t ( p _ o E l m ,   p _ o S k i p E l m W i t h I d A r r a y )   { 
   i f   ( p _ o E l m )   { 
     i f   ( ! p _ o S k i p E l m W i t h I d A r r a y )   p _ o S k i p E l m W i t h I d A r r a y   =   { } ; 
     v a r   o S k i p p e d C h i l d r e n   =   { } ; 
     w h i l e   ( p _ o E l m . f i r s t C h i l d )   { 
       / /   i f   w e   a r e   s u p p o s e d   t o   s k i p   t h i s   i t e m ,   a d d   i t   t o   " s k i p p e d "   a r r a y 
       i f   ( p _ o E l m . f i r s t C h i l d . i d   & &   p _ o S k i p E l m W i t h I d A r r a y [ p _ o E l m . f i r s t C h i l d . i d ] )   { 
         o S k i p p e d C h i l d r e n [ p _ o E l m . f i r s t C h i l d . i d ]   =   p _ o E l m . f i r s t C h i l d ; 
       } 
       / /   r e m o v e   c h i l d   e l e m e n t 
       p _ o E l m . r e m o v e C h i l d ( p _ o E l m . f i r s t C h i l d ) ; 
     } 
     
     / /   a d d   b a c k   a l l   " s k i p p e d "   e l e m e n t s   ( i f   a n y ) 
     f o r   ( v a r   s I d   i n   o S k i p p e d C h i l d r e n )   { 
       p _ o E l m . a p p e n d C h i l d ( o S k i p p e d C h i l d r e n [ s I d ] ) ; 
     } 
     
     / / a l e r t ( ' e m p t y ' ) 
   } 
 } 
 f u n c t i o n   g e t E l m A b s P o s i t i o n ( p _ o E l m )   { 
   v a r   o P o s   =   {   x : 0 ,   y : 0   } ; 
   w h i l e   ( p _ o E l m   & &   p _ o E l m   ! =   d o c u m e n t . b o d y )   { 
     o P o s . x   + =   p _ o E l m . o f f s e t L e f t ; 
     o P o s . y   + =   p _ o E l m . o f f s e t T o p ; 
     
     p _ o E l m   =   p _ o E l m . o f f s e t P a r e n t ; 
   } 
   r e t u r n   o P o s ; 
 } 
 f u n c t i o n   g e t E v e n t A b s P o s i t i o n ( e )   { 
   / / r e t u r n   {   x : ( e . s c r e e n X   -   w i n d o w . s c r e e n L e f t ) ,   y : ( e . s c r e e n Y   -   w i n d o w . s c r e e n T o p )   } ; 
   r e t u r n   {   x : e . c l i e n t X ,   y : e . c l i e n t Y   } ; 
 } 
 / /   1 :   s r c O f E v e n t ,   2 :   i n s a t a n c e e l m 
 f u n c t i o n   i s C h i l d O f ( p _ o E l m ,   p _ o I n E l m )   { 
   v a r   b I s C h i l d O f   =   f a l s e ; 
   v a r   o P a r e n t E l m   =   p _ o E l m ; 
   i f   ( o P a r e n t E l m   = =   p _ o I n E l m )   b I s C h i l d O f   =   t r u e ; 
   e l s e   { 
     w h i l e   ( o P a r e n t E l m   & &   o P a r e n t E l m   ! =   p _ o I n E l m )   { 
       o P a r e n t E l m   =   o P a r e n t E l m . p a r e n t N o d e ; 
       i f   ( o P a r e n t E l m   = =   p _ o I n E l m )   b I s C h i l d O f   =   t r u e ; 
       i f   ( o P a r e n t E l m   = =   d o c u m e n t . b o d y )   b r e a k ; 
     } ; 
   } 
   r e t u r n   b I s C h i l d O f ; 
 } 
 / * f u n c t i o n   h i t T e s t ( e ,   p _ o E l m )   { 
   i f   ( ! e )   e = w i n d o w . e v e n t ; 
   r e t u r n   B o o l e a n ( e 
     & &   e . c l i e n t X   > =   p _ o E l m . o f f s e t L e f t 
     & &   e . c l i e n t X   < =   ( p _ o E l m . o f f s e t L e f t   +   p _ o E l m . o f f s e t W i d t h ) 
     & &   e . c l i e n t Y   > =   p _ o E l m . o f f s e t T o p 
     & &   e . c l i e n t Y   < =   ( p _ o E l m . o f f s e t T o p   +   p _ o E l m . o f f s e t H e i g h t ) 
   ) ; 
 } * / 
 f u n c t i o n   _ e v e n t _ s t o p p r o p a g a t i o n ( p _ e )   { 
   v a r   e   =   p _ e   | |   w i n d o w . e v e n t ; 
   i f   ( e )   { 
     i f   ( t y p e o f ( e . s t o p P r o p a g a t i o n )   = =   ' f u n c t i o n ' )   e . s t o p P r o p a g a t i o n ( ) ; 
     i f   ( t y p e o f ( e . c a n c e l B u b b l e )   = =   ' b o o l e a n ' )   e . c a n c e l B u b b l e   =   t r u e ; 
   } 
 } 
 f u n c t i o n   _ e v e n t _ p r e v e n t d e f a u l t ( p _ e )   { 
   v a r   e   =   p _ e   | |   w i n d o w . e v e n t ; 
   i f   ( e )   { 
     i f   ( t y p e o f ( e . p r e v e n t D e f a u l t )   = =   ' f u n c t i o n ' )   e . p r e v e n t D e f a u l t ( ) ; 
     i f   ( t y p e o f ( e . r e t u r n V a l u e )   = =   ' b o o l e a n ' )   e . r e t u r n V a l u e   =   f a l s e ; 
   } 
 } 
 f u n c t i o n   L o a d M e n u ( o b j )   { 
 / / ÞV–™˜
 / /   o b j . a d d S u b I t e m ( ' N a v M a i n I t e m 1 ' ,   '   H o m e   ' ,   ' D e f a u l t . a s p x ' ) ; 
   
   / /   lQøS!|ËN
   o b j . a d d S u b I t e m ( ' N a v M a i n I t e m 1 ' ,   ' C o m p a n y   P r o f i l e ' ,   ' P r o f i l e . a s p x ? i d = 1 ' ) ; 
   o b j . a d d S u b I t e m ( ' N a v M a i n I t e m 1 ' ,   ' C h a r a c t e r i s t i c ' ,   ' P r o f i l e . a s p x # 0 2 ' ) ; 
 
   / /   "uÁTËN9}
   o b j . a d d S u b I t e m ( ' N a v M a i n I t e m 2 ' ,   ' L E D   P r o b e r   S e r i e s ' , 	 	 ' P r o d u c t L i s t . a s p x ? C I D = 1 ' ) ; 
   o b j . a d d S u b I t e m ( ' N a v M a i n I t e m 2 ' ,   ' P r o b e r   f o r   O t h e r   A p p l i c a t i o n s ' , 	 	 ' P r o d u c t L i s t . a s p x ? C I D = 2 ' ) ; 
   o b j . a d d S u b I t e m ( ' N a v M a i n I t e m 2 ' ,   ' P a c k a g e d   L E D   O p t o e l e c t r o n i c   S e r i e s ' , 	 ' P r o d u c t L i s t . a s p x ? C I D = 3 ' ) ; 
   o b j . a d d S u b I t e m ( ' N a v M a i n I t e m 2 ' ,   ' O t h e r   L E D   E q u i p m e n t ' , 	 ' P r o d u c t L i s t . a s p x ? C I D = 4 ' ) ; 
   o b j . a d d S u b I t e m ( ' N a v M a i n I t e m 2 ' ,   ' S o l a r   C e l l s   E q u i p m e n t ' , 	 ' P r o d u c t L i s t . a s p x ? C I D = 5 ' ) ; 
   o b j . a d d S u b I t e m ( ' N a v M a i n I t e m 2 ' ,   ' O t h e r   E q u i p m e n t   o r   I n s t r u m e n t ' , 	 ' P r o d u c t L i s t . a s p x ? C I D = 6 ' ) ; 
 
   / /   €bSˆ/eôc
   o b j . a d d S u b I t e m ( ' N a v M a i n I t e m 3 ' ,   '   Q & A   ' ,   ' S u p p o r t . a s p x ' ) ; 
   
   / /   o€a}bP
   o b j . a d d S u b I t e m ( ' N a v M a i n I t e m 4 ' ,   ' C o n t a c t   U s ' ,   ' C o n t a c t U s . a s p x ' ) ; 
   o b j . a d d S u b I t e m ( ' N a v M a i n I t e m 4 ' ,   ' C o m p a n y   M a p ' ,   ' C o m p a n y M a p . a s p x ' ) ; 
 } 
 
 v a r   s H t m l O u t   =   ' ' ; 
 s S t y l e O u t   =   " < ! - - [ i f   I E ] > " ;   / * b u i l t   i n   S T y l e   s n i f f e r   f o r   I E   p c * / 
 s S t y l e O u t   + =   " < s t y l e > " ; 
 s S t y l e O u t   + =   " . B u t t o m N a v M a i n I t e m E x p a n s i o n   { " ; 
 s S t y l e O u t   + =   " p o s i t i o n : a b s o l u t e ; " ; 
 s S t y l e O u t   + =   " t o p : 2 5 0 p x ; " ; 
 s S t y l e O u t   + =   " l e f t : 3 0 p x ; " ; 
 s S t y l e O u t   + =   " z - i n d e x : 4 ; " ; 
 s S t y l e O u t   + =   " w i d t h : 6 5 0 p x ; " ; 
 s S t y l e O u t   + =   " h e i g h t : 1 8 0 p x ; " ; 
 s S t y l e O u t   + =   " o v e r f l o w : h i d d e n ; " ; 
 s S t y l e O u t   + =   " b a c k g r o u n d - c o l o r : # 2 4 3 9 5 5 ; " ; 
 s S t y l e O u t   + =   " f o n t : n o r m a l   1 2 p x   a r i a l , s a n s - s e r i f ; " ; 
 s S t y l e O u t   + =   " p a d d i n g : 0 ; " ; 
 s S t y l e O u t   + =   " } " ; 
 s S t y l e O u t   + =   " < / s t y l e > " ; 
 s S t y l e O u t   + =   " < ! [ e n d i f ] - - > " ; 
 d o c u m e n t . w r i t e   ( s S t y l e O u t ) ; 
