ÿþf u n c t i o n   o p e n W i n (   h r O R e n g   )   {  
 	 v a r   a g t   =   n a v i g a t o r . u s e r A g e n t . t o L o w e r C a s e ( ) ;  
 	 v a r   m a c   =   (   a g t . i n d e x O f (   " m a c "   )   ! =   - 1   )   ?   t r u e   :   f a l s e ;  
 	 v a r   v   =   n a v i g a t o r . a p p V e r s i o n ;  
 	 v a r   v 6 0   =   (   v . i n d e x O f (   " 6 . 0 "   )   ! =   - 1 )   ?   t r u e   :   f a l s e ;  
 	 v a r   f f o x   =   (   a g t . i n d e x O f (   " f i r e f o x "   )   ! =   - 1   )   ?   t r u e   :   f a l s e ;  
 	  
 	 v a r   n s 6   =   d o c u m e n t . g e t E l e m e n t B y I d   & &   ! d o c u m e n t . a l l  
 	 i f   (   d o c u m e n t . l a y e r s   | |   n s 6   )   {  
 	 	 H   =   w i n d o w . i n n e r H e i g h t   +   1 0 0 ;  
 	 	 W   =   w i n d o w . i n n e r W i d t h ;  
 	 }  
 	 i f (   m a c   )   {  
 	 	 H   =   s c r e e n . a v a i l H e i g h t ;  
 	 	 W   =   s c r e e n . a v a i l W i d t h ; 	 	 	  
 	 }  
 	 i f   (   ! m a c   & &   d o c u m e n t . a l l   )   {  
 	 	 H   =   w i n d o w . s c r e e n . h e i g h t   -   5 5 ;  
 	 	 W   =   w i n d o w . s c r e e n . w i d t h   -   1 0 ;  
 	 }  
 	 s   =   " , w i d t h = "   +   W   +   " , h e i g h t = "   +   H ;  
  
 	 i f   (   ! m a c   & &   v 6 0   )   {  
 	 	 v a r   w i n   =   w i n d o w . o p e n (   h r O R e n g , ' m a i n ' , ' t o o l b a r = 0 , l o c a t i o n = 0 , d i r e c t o r i e s = 0 , s t a t u s = 0 , m e n u b a r = 0 , s c r o l l b a r s = 0 , t o p = 0 , l e f t = 0 '   +   s   ) ;  
 	 }   e l s e   {  
 	 	 i f (   f f o x   )   {    
 	 	 	 o p e n F i r e f o x W i n d o w (   h r O R e n g   ) ;  
 	 	 }   e l s e   {  
 	 	 	 v a r   w i n   =   w i n d o w . o p e n (   h r O R e n g , ' m a i n ' , ' r e s i z a b l e = 1 , t o o l b a r = 0 , l o c a t i o n = 0 , d i r e c t o r i e s = 0 , s t a t u s = 0 , m e n u b a r = 0 , s c r o l l b a r s = 0 , t o p = 0 , l e f t = 0 '   +   s   ) ;  
 	 	 }  
 	 }  
 	 	  
 	 i f   (   w i n d o w . f o c u s   )   w i n . f o c u s ( ) ;    
 } 
