ÿþf u n c t i o n   O p e n W i n d o w ( u r l )  
 {  
 v a r   w   =   ( w i n d o w . s c r e e n . w i d t h / 2 )   -   4 0 0 ;  
 v a r   o n F o c u s O b j   =   w i n d o w . o p e n ( u r l ,   " _ b l a n k " ,   ' t o o l b a r = n o , l o c a t i o n = n o , d i r e c t o r i e s = n o , s t a t u s = n o , m e n u b a r = n o , s c r o l l b a r s = y e s , r e s i z a b l e = y e s , c o p y h i s t o r y = n o ,   w i d t h = 7 0 0 , h e i g h t = 6 0 0 , l e f t = ' + w + ' ,   t o p = 8 0 , s c r e e n X = ' + w + ' p x , s c r e e n Y = 8 0 p x ' ) ;  
 o n F o c u s O b j . f o c u s ( ) ;  
 r e t u r n   f a l s e ;  
 }  
 f u n c t i o n   g e t S c r o l l X Y ( )   {  
 v a r   s c r O f X   =   0 ,   s c r O f Y   =   0 ;  
 i f (   t y p e o f (   w i n d o w . p a g e Y O f f s e t   )   = =   ' n u m b e r '   )   {  
 / / N e t s c a p e   c o m p l i a n t  
 s c r O f Y   =   w i n d o w . p a g e Y O f f s e t ;  
 s c r O f X   =   w i n d o w . p a g e X O f f s e t ;  
 }   e l s e   i f (   d o c u m e n t . b o d y   & &   (   d o c u m e n t . b o d y . s c r o l l L e f t   | |   d o c u m e n t . b o d y . s c r o l l T o p   )   )   {  
 / / D O M   c o m p l i a n t  
 s c r O f Y   =   d o c u m e n t . b o d y . s c r o l l T o p ;  
 s c r O f X   =   d o c u m e n t . b o d y . s c r o l l L e f t ;  
 }   e l s e   i f (   d o c u m e n t . d o c u m e n t E l e m e n t   & &   (   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l L e f t   | |   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p   )   )   {  
 / / I E 6   s t a n d a r d s   c o m p l i a n t   m o d e  
 s c r O f Y   =   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l T o p ;  
 s c r O f X   =   d o c u m e n t . d o c u m e n t E l e m e n t . s c r o l l L e f t ;  
 }  
 r e t u r n   [   s c r O f X ,   s c r O f Y   ] ;  
 }  
 f u n c t i o n   g e t I n n e r S i z e ( )   {  
 v a r   m y W i d t h   =   0 ,   m y H e i g h t   =   0 ;  
 i f (   t y p e o f (   w i n d o w . i n n e r W i d t h   )   = =   ' n u m b e r '   )   {  
 / / N o n - I E  
 m y W i d t h   =   w i n d o w . i n n e r W i d t h ;  
 m y H e i g h t   =   w i n d o w . i n n e r H e i g h t ;  
 }   e l s e   i f (   d o c u m e n t . d o c u m e n t E l e m e n t   & &   (   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h   | |   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t   )   )   {  
 / / I E   6 +   i n   ' s t a n d a r d s   c o m p l i a n t   m o d e '  
 m y W i d t h   =   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t W i d t h ;  
 m y H e i g h t   =   d o c u m e n t . d o c u m e n t E l e m e n t . c l i e n t H e i g h t ;  
 }   e l s e   i f (   d o c u m e n t . b o d y   & &   (   d o c u m e n t . b o d y . c l i e n t W i d t h   | |   d o c u m e n t . b o d y . c l i e n t H e i g h t   )   )   {  
 / / I E   4   c o m p a t i b l e  
 m y W i d t h   =   d o c u m e n t . b o d y . c l i e n t W i d t h ;  
 m y H e i g h t   =   d o c u m e n t . b o d y . c l i e n t H e i g h t ;  
 }  
 r e t u r n   [   m y W i d t h ,   m y H e i g h t   ] ;  
 }  
 f u n c t i o n   G e t C e n t e r e d X Y ( w ,   h )   {  
 v a r   p s   =   g e t S c r o l l X Y ( ) ;  
 v a r   s z   =   g e t I n n e r S i z e ( ) ;  
 v a r   L e f t   =   ( s z [ 0 ]   -   w )   /   2   +   p s [ 0 ] ;  
 v a r   T o p   =   ( s z [ 1 ]   -   h )   /   2   +   p s [ 1 ] ;  
 r e t u r n   [   M a t h . c e i l ( L e f t ) ,   M a t h . c e i l ( T o p )   ] ;  
 }  
 / * *  
 *   F l a s h O b j e c t   v 1 . 2 . 3 :   F l a s h   d e t e c t i o n   a n d   e m b e d   -   h t t p : / / b l o g . d e c o n c e p t . c o m / f l a s h o b j e c t /  
 *  
 *   F l a s h O b j e c t   i s   ( c )   2 0 0 5   G e o f f   S t e a r n s   a n d   i s   r e l e a s e d   u n d e r   t h e   M I T   L i c e n s e :  
 *   h t t p : / / w w w . o p e n s o u r c e . o r g / l i c e n s e s / m i t - l i c e n s e . p h p  
 *  
 * /  
 i f ( t y p e o f   c o m   = =   " u n d e f i n e d " )   v a r   c o m   =   n e w   O b j e c t ( ) ;  
 i f ( t y p e o f   c o m . d e c o n c e p t   = =   " u n d e f i n e d " )   c o m . d e c o n c e p t   =   n e w   O b j e c t ( ) ;  
 i f ( t y p e o f   c o m . d e c o n c e p t . u t i l   = =   " u n d e f i n e d " )   c o m . d e c o n c e p t . u t i l   =   n e w   O b j e c t ( ) ;  
 i f ( t y p e o f   c o m . d e c o n c e p t . F l a s h O b j e c t U t i l   = =   " u n d e f i n e d " )   c o m . d e c o n c e p t . F l a s h O b j e c t U t i l   =   n e w   O b j e c t ( ) ;  
 c o m . d e c o n c e p t . F l a s h O b j e c t   =   f u n c t i o n ( s w f ,   i d ,   w ,   h ,   v e r ,   c ,   u s e E x p r e s s I n s t a l l ,   q u a l i t y ,   r e d i r e c t U r l ,   d e t e c t K e y ) {  
 t h i s . D E T E C T _ K E Y   =   d e t e c t K e y   ?   d e t e c t K e y   :   ' d e t e c t f l a s h ' ;  
 t h i s . s k i p D e t e c t   =   c o m . d e c o n c e p t . u t i l . g e t R e q u e s t P a r a m e t e r ( t h i s . D E T E C T _ K E Y ) ;  
 t h i s . p a r a m s   =   n e w   O b j e c t ( ) ;  
 t h i s . v a r i a b l e s   =   n e w   O b j e c t ( ) ;  
 t h i s . a t t r i b u t e s   =   n e w   A r r a y ( ) ;  
 i f ( s w f )   t h i s . s e t A t t r i b u t e ( ' s w f ' ,   s w f ) ;  
 i f ( i d )   t h i s . s e t A t t r i b u t e ( ' i d ' ,   i d ) ;  
 i f ( w )   t h i s . s e t A t t r i b u t e ( ' w i d t h ' ,   w ) ;  
 i f ( h )   t h i s . s e t A t t r i b u t e ( ' h e i g h t ' ,   h ) ;  
 i f ( v e r )   t h i s . s e t A t t r i b u t e ( ' v e r s i o n ' ,   n e w   c o m . d e c o n c e p t . P l a y e r V e r s i o n ( v e r . t o S t r i n g ( ) . s p l i t ( " . " ) ) ) ;  
 i f ( c )   t h i s . a d d P a r a m ( ' b g c o l o r ' ,   c ) ;  
 v a r   q   =   q u a l i t y   ?   q u a l i t y   :   ' h i g h ' ;  
 t h i s . a d d P a r a m ( ' q u a l i t y ' ,   q ) ;  
 t h i s . s e t A t t r i b u t e ( ' r e d i r e c t U r l ' ,   ' ' ) ;  
 i f ( r e d i r e c t U r l )   t h i s . s e t A t t r i b u t e ( ' r e d i r e c t U r l ' ,   r e d i r e c t U r l ) ;  
 i f ( u s e E x p r e s s I n s t a l l )   {  
 / /   c h e c k   t o   s e e   i f   w e   n e e d   t o   d o   a n   e x p r e s s   i n s t a l l  
 v a r   e x p r e s s I n s t a l l R e q V e r   =   n e w   c o m . d e c o n c e p t . P l a y e r V e r s i o n ( [ 6 , 0 , 6 5 ] ) ;  
 v a r   i n s t a l l e d V e r   =   c o m . d e c o n c e p t . F l a s h O b j e c t U t i l . g e t P l a y e r V e r s i o n ( ) ;  
 i f   ( i n s t a l l e d V e r . v e r s i o n I s V a l i d ( e x p r e s s I n s t a l l R e q V e r )   & &   ! i n s t a l l e d V e r . v e r s i o n I s V a l i d ( t h i s . g e t A t t r i b u t e ( ' v e r s i o n ' ) ) )   {  
 t h i s . s e t A t t r i b u t e ( ' d o E x p r e s s I n s t a l l ' ,   t r u e ) ;  
 }  
 }   e l s e   {  
 t h i s . s e t A t t r i b u t e ( ' d o E x p r e s s I n s t a l l ' ,   f a l s e ) ;  
 }  
 }  
 c o m . d e c o n c e p t . F l a s h O b j e c t . p r o t o t y p e . s e t A t t r i b u t e   =   f u n c t i o n ( n a m e ,   v a l u e ) {  
 t h i s . a t t r i b u t e s [ n a m e ]   =   v a l u e ;  
 }  
 c o m . d e c o n c e p t . F l a s h O b j e c t . p r o t o t y p e . g e t A t t r i b u t e   =   f u n c t i o n ( n a m e ) {  
 r e t u r n   t h i s . a t t r i b u t e s [ n a m e ] ;  
 }  
 c o m . d e c o n c e p t . F l a s h O b j e c t . p r o t o t y p e . g e t A t t r i b u t e s   =   f u n c t i o n ( ) {  
 r e t u r n   t h i s . a t t r i b u t e s ;  
 }  
 c o m . d e c o n c e p t . F l a s h O b j e c t . p r o t o t y p e . a d d P a r a m   =   f u n c t i o n ( n a m e ,   v a l u e ) {  
 t h i s . p a r a m s [ n a m e ]   =   v a l u e ;  
 }  
 c o m . d e c o n c e p t . F l a s h O b j e c t . p r o t o t y p e . g e t P a r a m s   =   f u n c t i o n ( ) {  
 r e t u r n   t h i s . p a r a m s ;  
 }  
 c o m . d e c o n c e p t . F l a s h O b j e c t . p r o t o t y p e . g e t P a r a m   =   f u n c t i o n ( n a m e ) {  
 r e t u r n   t h i s . p a r a m s [ n a m e ] ;  
 }  
 c o m . d e c o n c e p t . F l a s h O b j e c t . p r o t o t y p e . a d d V a r i a b l e   =   f u n c t i o n ( n a m e ,   v a l u e ) {  
 t h i s . v a r i a b l e s [ n a m e ]   =   v a l u e ;  
 }  
 c o m . d e c o n c e p t . F l a s h O b j e c t . p r o t o t y p e . g e t V a r i a b l e   =   f u n c t i o n ( n a m e ) {  
 r e t u r n   t h i s . v a r i a b l e s [ n a m e ] ;  
 }  
 c o m . d e c o n c e p t . F l a s h O b j e c t . p r o t o t y p e . g e t V a r i a b l e s   =   f u n c t i o n ( ) {  
 r e t u r n   t h i s . v a r i a b l e s ;  
 }  
 c o m . d e c o n c e p t . F l a s h O b j e c t . p r o t o t y p e . g e t P a r a m T a g s   =   f u n c t i o n ( ) {  
 v a r   p a r a m T a g s   =   " " ;   v a r   k e y ;   v a r   p a r a m s   =   t h i s . g e t P a r a m s ( ) ;  
 f o r ( k e y   i n   p a r a m s )   {  
 p a r a m T a g s   + =   ' < p a r a m   n a m e = " '   +   k e y   +   ' "   v a l u e = " '   +   p a r a m s [ k e y ]   +   ' "   / > ' ;  
 }  
 r e t u r n   p a r a m T a g s ;  
 }  
 c o m . d e c o n c e p t . F l a s h O b j e c t . p r o t o t y p e . g e t V a r i a b l e P a i r s   =   f u n c t i o n ( ) {  
 v a r   v a r i a b l e P a i r s   =   n e w   A r r a y ( ) ;  
 v a r   k e y ;  
 v a r   v a r i a b l e s   =   t h i s . g e t V a r i a b l e s ( ) ;  
 f o r ( k e y   i n   v a r i a b l e s ) {  
 v a r i a b l e P a i r s . p u s h ( k e y   + " = " +   v a r i a b l e s [ k e y ] ) ;  
 }  
 r e t u r n   v a r i a b l e P a i r s ;  
 }  
 c o m . d e c o n c e p t . F l a s h O b j e c t . p r o t o t y p e . g e t H T M L   =   f u n c t i o n ( )   {  
 v a r   f l a s h H T M L   =   " " ;  
 i f   ( n a v i g a t o r . p l u g i n s   & &   n a v i g a t o r . m i m e T y p e s   & &   n a v i g a t o r . m i m e T y p e s . l e n g t h )   {   / /   n e t s c a p e   p l u g i n   a r c h i t e c t u r e  
 i f   ( t h i s . g e t A t t r i b u t e ( " d o E x p r e s s I n s t a l l " ) )   {   t h i s . a d d V a r i a b l e ( " M M p l a y e r T y p e " ,   " P l u g I n " ) ;   }  
 f l a s h H T M L   + =   ' < e m b e d   w m o d e = " t r a n s p a r e n t "   t y p e = " a p p l i c a t i o n / x - s h o c k w a v e - f l a s h "   p l u g i n s p a g e = " h t t p : / / w w w . m a c r o m e d i a . c o m / g o / g e t f l a s h p l a y e r "   s r c = " ' +   t h i s . g e t A t t r i b u t e ( ' s w f ' )   + ' "   w i d t h = " ' +   t h i s . g e t A t t r i b u t e ( ' w i d t h ' )   + ' "   h e i g h t = " ' +   t h i s . g e t A t t r i b u t e ( ' h e i g h t ' )   + ' "   i d = " ' +   t h i s . g e t A t t r i b u t e ( ' i d ' )   +   ' "   n a m e = " ' +   t h i s . g e t A t t r i b u t e ( ' i d ' )   + ' " ' ;  
 v a r   p a r a m s   =   t h i s . g e t P a r a m s ( ) ;  
 f o r ( v a r   k e y   i n   p a r a m s ) {   f l a s h H T M L   + =   '   ' +   k e y   + ' = " ' +   p a r a m s [ k e y ]   + ' " ' ;   }  
 p a i r s   =   t h i s . g e t V a r i a b l e P a i r s ( ) . j o i n ( " & " ) ;  
 i f   ( p a i r s . l e n g t h   >   0 ) {   f l a s h H T M L   + =   '   f l a s h v a r s = " ' +   p a i r s   + ' " ' ;   }  
 f l a s h H T M L   + =   ' > < / e m b e d > ' ;  
 }   e l s e   {   / /   P C   I E  
 i f   ( t h i s . g e t A t t r i b u t e ( " d o E x p r e s s I n s t a l l " ) )   {   t h i s . a d d V a r i a b l e ( " M M p l a y e r T y p e " ,   " A c t i v e X " ) ;   }  
 f l a s h H T M L   + =   ' < o b j e c t   c l a s s i d = " c l s i d : D 2 7 C D B 6 E - A E 6 D - 1 1 c f - 9 6 B 8 - 4 4 4 5 5 3 5 4 0 0 0 0 "   c o d e b a s e = " h t t p : / / d o w n l o a d . m a c r o m e d i a . c o m / p u b / s h o c k w a v e / c a b s / f l a s h / s w f l a s h . c a b # v e r s i o n = 7 , 0 , 1 9 , 0 "   w i d t h = " ' +   t h i s . g e t A t t r i b u t e ( ' w i d t h ' )   + ' "   h e i g h t = " ' +   t h i s . g e t A t t r i b u t e ( ' h e i g h t ' )   + ' "   i d = " ' +   t h i s . g e t A t t r i b u t e ( ' i d ' )   + ' " > ' ;  
 f l a s h H T M L   + =   ' < p a r a m   n a m e = " m o v i e "   v a l u e = " '   +   t h i s . g e t A t t r i b u t e ( ' s w f ' )   +   ' "   / > ' ;  
 v a r   t a g s   =   t h i s . g e t P a r a m T a g s ( ) ;  
 i f ( t a g s . l e n g t h   >   0 ) {   f l a s h H T M L   + =   t a g s ;   }  
 v a r   p a i r s   =   t h i s . g e t V a r i a b l e P a i r s ( ) . j o i n ( " & " ) ;  
 i f ( p a i r s . l e n g t h   >   0 ) {   f l a s h H T M L   + =   ' < p a r a m   n a m e = " f l a s h v a r s "   v a l u e = " ' +   p a i r s   + ' "   / > ' ;   }  
 f l a s h H T M L   + =   ' < e m b e d   w m o d e = " t r a n s p a r e n t "   q u a l i t y = " h i g h "   p l u g i n s p a g e = " h t t p : / / w w w . m a c r o m e d i a . c o m / g o / g e t f l a s h p l a y e r " ' ;  
 f l a s h H T M L   + =   ' t y p e = " a p p l i c a t i o n / x - s h o c k w a v e - f l a s h "   w i d t h = " 1 "   h e i g h t = " 1 " > < / e m b e d > ' ;  
 f l a s h H T M L   + =   ' < / o b j e c t > ' ;  
 }  
 r e t u r n   f l a s h H T M L ;  
 }  
 c o m . d e c o n c e p t . F l a s h O b j e c t . p r o t o t y p e . w r i t e   =   f u n c t i o n ( e l e m e n t I d ) {  
 i f ( t h i s . s k i p D e t e c t   | |   t h i s . g e t A t t r i b u t e ( ' d o E x p r e s s I n s t a l l ' )   | |   c o m . d e c o n c e p t . F l a s h O b j e c t U t i l . g e t P l a y e r V e r s i o n ( ) . v e r s i o n I s V a l i d ( t h i s . g e t A t t r i b u t e ( ' v e r s i o n ' ) ) ) {  
 i f ( d o c u m e n t . g e t E l e m e n t B y I d ) {  
 i f   ( t h i s . g e t A t t r i b u t e ( ' d o E x p r e s s I n s t a l l ' ) )   {  
 t h i s . a d d V a r i a b l e ( " M M r e d i r e c t U R L " ,   e s c a p e ( w i n d o w . l o c a t i o n ) ) ;  
 d o c u m e n t . t i t l e   =   d o c u m e n t . t i t l e . s l i c e ( 0 ,   4 7 )   +   "   -   F l a s h   P l a y e r   I n s t a l l a t i o n " ;  
 t h i s . a d d V a r i a b l e ( " M M d o c t i t l e " ,   d o c u m e n t . t i t l e ) ;  
 }  
 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 I d ) . i n n e r H T M L   =   t h i s . g e t H T M L ( ) ;  
 }  
 } e l s e {  
 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 I d ) . i n n e r H T M L   =   t h i s . g e t H T M L ( ) ;  
 i f ( t h i s . g e t A t t r i b u t e ( ' r e d i r e c t U r l ' )   ! =   " " )   {  
 d o c u m e n t . l o c a t i o n . r e p l a c e ( t h i s . g e t A t t r i b u t e ( ' r e d i r e c t U r l ' ) ) ;  
 }  
 }  
 }  
 / *   - - - -   d e t e c t i o n   f u n c t i o n s   - - - -   * /  
 c o m . d e c o n c e p t . F l a s h O b j e c t U t i l . g e t P l a y e r V e r s i o n   =   f u n c t i o n ( ) {  
 v a r   P l a y e r V e r s i o n   =   n e w   c o m . d e c o n c e p t . P l a y e r V e r s i o n ( 0 , 0 , 0 ) ;  
 i f ( n a v i g a t o r . p l u g i n s   & &   n a v i g a t o r . m i m e T y p e s . l e n g t h ) {  
 v a r   x   =   n a v i g a t o r . p l u g i n s [ " S h o c k w a v e   F l a s h " ] ;  
 i f ( x   & &   x . d e s c r i p t i o n )   {  
 P l a y e r V e r s i o n   =   n e w   c o m . d e c o n c e p t . P l a y e r V e r s i o n ( x . d e s c r i p t i o n . r e p l a c e ( / ( [ a - z ] | [ A - Z ] | \ s ) + / ,   " " ) . r e p l a c e ( / ( \ s + r | \ s + b [ 0 - 9 ] + ) / ,   " . " ) . s p l i t ( " . " ) ) ;  
 }  
 } e l s e   i f   ( w i n d o w . A c t i v e X O b j e c t ) {  
 t r y   {  
 v a r   a x o   =   n e w   A c t i v e X O b j e c t ( " S h o c k w a v e F l a s h . S h o c k w a v e F l a s h " ) ;  
 P l a y e r V e r s i o n   =   n e w   c o m . d e c o n c e p t . P l a y e r V e r s i o n ( a x o . G e t V a r i a b l e ( " $ v e r s i o n " ) . s p l i t ( "   " ) [ 1 ] . s p l i t ( " , " ) ) ;  
 }   c a t c h   ( e )   { }  
 }  
 r e t u r n   P l a y e r V e r s i o n ;  
 }  
 c o m . d e c o n c e p t . P l a y e r V e r s i o n   =   f u n c t i o n ( a r r V e r s i o n ) {  
 t h i s . m a j o r   =   p a r s e I n t ( a r r V e r s i o n [ 0 ] )   | |   0 ;  
 t h i s . m i n o r   =   p a r s e I n t ( a r r V e r s i o n [ 1 ] )   | |   0 ;  
 t h i s . r e v   =   p a r s e I n t ( a r r V e r s i o n [ 2 ] )   | |   0 ;  
 }  
 c o m . d e c o n c e p t . P l a y e r V e r s i o n . p r o t o t y p e . v e r s i o n I s V a l i d   =   f u n c t i o n ( f v ) {  
 i f ( t h i s . m a j o r   <   f v . m a j o r )   r e t u r n   f a l s e ;  
 i f ( t h i s . m a j o r   >   f v . m a j o r )   r e t u r n   t r u e ;  
 i f ( t h i s . m i n o r   <   f v . m i n o r )   r e t u r n   f a l s e ;  
 i f ( t h i s . m i n o r   >   f v . m i n o r )   r e t u r n   t r u e ;  
 i f ( t h i s . r e v   <   f v . r e v )   r e t u r n   f a l s e ;  
 r e t u r n   t r u e ;  
 }  
 / *   - - - -   g e t   v a l u e   o f   q u e r y   s t r i n g   p a r a m   - - - -   * /  
 c o m . d e c o n c e p t . u t i l . g e t R e q u e s t P a r a m e t e r   =   f u n c t i o n ( p a r a m ) {  
 v a r   q   =   d o c u m e n t . l o c a t i o n . s e a r c h   | |   d o c u m e n t . l o c a t i o n . h r e f . h a s h ;  
 i f ( q ) {  
 v a r   s t a r t I n d e x   =   q . i n d e x O f ( p a r a m   + " = " ) ;  
 v a r   e n d I n d e x   =   ( q . i n d e x O f ( " & " ,   s t a r t I n d e x )   >   - 1 )   ?   q . i n d e x O f ( " & " ,   s t a r t I n d e x )   :   q . l e n g t h ;  
 i f   ( q . l e n g t h   >   1   & &   s t a r t I n d e x   >   - 1 )   {  
 r e t u r n   q . s u b s t r i n g ( q . i n d e x O f ( " = " ,   s t a r t I n d e x ) + 1 ,   e n d I n d e x ) ;  
 }  
 }  
 r e t u r n   " " ;  
 }  
 / *   a d d   A r r a y . p u s h   i f   n e e d e d   ( i e 5 )   * /  
 i f   ( A r r a y . p r o t o t y p e . p u s h   = =   n u l l )   {   A r r a y . p r o t o t y p e . p u s h   =   f u n c t i o n ( i t e m )   {   t h i s [ t h i s . l e n g t h ]   =   i t e m ;   r e t u r n   t h i s . l e n g t h ;   } }  
 / *   a d d   s o m e   a l i a s e s   f o r   e a s e   o f   u s e   /   b a c k w a r d s   c o m p a t i b i l i t y   * /  
 v a r   g e t Q u e r y P a r a m V a l u e   =   c o m . d e c o n c e p t . u t i l . g e t R e q u e s t P a r a m e t e r ;  
 v a r   F l a s h O b j e c t   =   c o m . d e c o n c e p t . F l a s h O b j e c t ;  
 f u n c t i o n   C h a n g e I m a g e ( o b j )  
 {  
 i f ( o b j . s r c . i n d e x O f ( ' s . g i f ' )   <   0 )  
 o b j . s r c   =   o b j . s r c . r e p l a c e ( " . g i f " ,   " s . g i f " ) ;  
 }  
 f u n c t i o n   C h a n g e I m a g e O u t ( o b j )  
 {  
 o b j . s r c   =   o b j . s r c . r e p l a c e ( " s . g i f " ,   " . g i f " ) ;  
 }  
 f u n c t i o n   G e t C o n t e n t H T M L ( t a r g e t ,   s t r U R L ,   d ) {  
 A j a x R e q u e s t . g e t (  
 {  
 ' u r l ' : s t r U R L  
 , ' o n L o a d i n g ' : f u n c t i o n ( )   {   t a r g e t . i n n e r H T M L   =   " < t a b l e   c e l l s p a c i n g = 0   c e l l p a d d i n g = 3   b o r d e r = 0   w i d t h = 1 0 0 %   > < t r > < t d   c o l s p a n = 4   > < d i v   s t y l e = ' f l o a t : l e f t ;   p a d d i n g - t o p : 3 p x ; ' > T ê n   m i Án   < b > "   +   d   +   " < / b > : < / d i v > < d i v > < i m g   s r c = ' / w e b / I m g s / l d . g i f '   / > < / d i v > < / t d > < / t r > < / t a b l e > "   }  
 , ' o n S u c c e s s ' : f u n c t i o n ( r e q ) {  
 t a r g e t . i n n e r H T M L   =   " " ;  
 i f ( r e q . r e s p o n s e T e x t   = =   " F a l s e " )  
 {  
 t a r g e t . i n n e r H T M L   + =   " < t a b l e   c e l l s p a c i n g = 0   c e l l p a d d i n g = 3   b o r d e r = 0   w i d t h = 1 0 0 %   s t y l e = ' b a c k g r o u n d - c o l o r : # f 4 f 4 f 4 ; '   > < t r > < t d   w i d t h = 5 %   a l i g n = c e n t e r   > < i n p u t   t y p e = c h e c k b o x   n a m e = D o m a i n   i d = D o m a i n   v a l u e = ' "   +   d   + " | d a n g k y '   / > < / t d > < t d   w i d t h = 3 0 %   > "   +   d   +   " < / t d > < t d   w i d t h = 5 %   a l i g n = c e n t e r   > < i m g   s r c = ' / w e b / I m g s / T R . g i f '   > < / t d > < t d >   C h °a   c ó   a i   n g   k ý < / t d > < / t r > < / t a b l e > " ;  
 }  
 e l s e  
 {  
 t a r g e t . i n n e r H T M L   + =   " < t a b l e   c e l l s p a c i n g = 0   c e l l p a d d i n g = 3   b o r d e r = 0   w i d t h = 1 0 0 %   > < t r > < t d   w i d t h = 5 %   a l i g n = c e n t e r   > < i n p u t   t y p e = c h e c k b o x   n a m e = ' D o m a i n '   i d = ' D o m a i n '   v a l u e = ' "   +   d   + " | g i a h a n '   / > < / t d > < t d   w i d t h = 3 0 %   > < s p a n   c l a s s = ' D M ' > "   +   d   +   "   < / s p a n >   < / t d > < t d   w i d t h = 5 %   a l i g n = c e n t e r   > < i m g   s r c = ' / w e b / I m g s / F A . g i f '   > < / t d > < t d > < a   t a r g e t = ' _ b l a n k '   c l a s s = ' I n f '   o n c l i c k = ' O p e n W i n ( \ " "   +   d   +   " \ " , t h i s ) ; ' >   X e m   t h ô n g   t i n < / a > < / t d > < / t r > < / t a b l e > " ;  
 }  
 }  
 , ' o n E r r o r ' : f u n c t i o n ( r e q ) {   t a r g e t . i n n e r H T M L   =   " < t a b l e   c e l l s p a c i n g = 0   c e l l p a d d i n g = 3   b o r d e r = 0   w i d t h = 1 0 0 %   > < t r > < t d   c o l s p a n = 4   > < b > "   +   d   +   " < / b >   L ×i   k ¿t   n Ñi   v Ûi   m á y   c h ç< / t d > < / t r > < / t a b l e > "   ; }  
 }  
 ) ;  
 }  
 f u n c t i o n   G e t C o n t e n t ( d ,   e ,   o b j )  
 {  
 G e t C o n t e n t H T M L ( o b j ,   " D o m a i n . a s h x ? d = "   +   d   +   " & e = "   +   e ,   d ) ;  
 }  
 f u n c t i o n   G e t C o n t e n t D o m a i n ( t a r g e t ,   s t r U R L ) {  
 A j a x R e q u e s t . g e t (  
 {  
 ' u r l ' : s t r U R L  
 , ' o n L o a d i n g ' : f u n c t i o n ( )   {   t a r g e t . i n n e r H T M L   =   " < d i v   s t y l e = ' p a d d i n g - l e f t : 2 9 0 ;   p a d d i n g - t o p : 2 4 0 ; ' > < i m g   s r c = ' W e b / I m g s / l o a d i n g . g i f '   / > < / d i v > " ;   }  
 , ' o n S u c c e s s ' : f u n c t i o n ( r e q ) {   t a r g e t . i n n e r H T M L   =   r e q . r e s p o n s e T e x t ;   }  
 , ' o n E r r o r ' : f u n c t i o n ( r e q ) {   t a r g e t . i n n e r H T M L   =   " L ×i   k ¿t   n Ñi   v Ûi   m á y   c h ç"   ; }  
 }  
 ) ;  
 }  
 f u n c t i o n   s h o w e x ( o b j )  
 {  
 v a r   o j   =   d o c u m e n t . g e t E l e m e n t B y I d ( o b j ) ;  
 i f   ( o j . s t y l e . d i s p l a y   = =   ' ' )  
 o j . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 e l s e  
 o j . s t y l e . d i s p l a y   =   ' ' ;  
 }  
 f u n c t i o n   H e l p C l i c k ( o b j )  
 {  
 v a r   o j   =   d o c u m e n t . g e t E l e m e n t B y I d ( o b j ) ;  
 w i n d o w . l o c a t i o n   =   " / C o n t a c t . a s p x ? e m a i l = "   +   o j . o p t i o n s [ o j . s e l e c t e d I n d e x ] . v a l u e ;  
 }  
 f u n c t i o n   P e r C h k _ o n c l i c k ( o b j ,   o b j 1 )  
 {  
 d o c u m e n t . g e t E l e m e n t B y I d ( " P e r C h k " ) . s t y l e . d i s p l a y   =   ' ' ;  
 d o c u m e n t . g e t E l e m e n t B y I d ( o b j ) . s t y l e . d i s p l a y   =   ' ' ;  
 d o c u m e n t . g e t E l e m e n t B y I d ( " B i z C h k " ) . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 d o c u m e n t . g e t E l e m e n t B y I d ( o b j 1 ) . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 }  
 f u n c t i o n   B i z C h k _ o n c l i c k ( o b j ,   o b j 1 )  
 {  
 d o c u m e n t . g e t E l e m e n t B y I d ( " P e r C h k " ) . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 d o c u m e n t . g e t E l e m e n t B y I d ( o b j ) . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 d o c u m e n t . g e t E l e m e n t B y I d ( " B i z C h k " ) . s t y l e . d i s p l a y   =   ' ' ;  
 d o c u m e n t . g e t E l e m e n t B y I d ( o b j 1 ) . s t y l e . d i s p l a y   =   ' ' ;  
 }  
 f u n c t i o n   c h e c k F o r m D a t a ( o b )   {  
 v a r   f   =   d o c u m e n t . g e t E l e m e n t B y I d ( o b ) ;  
 v a r   d   =   f . v a l u e . t o L o w e r C a s e ( ) . t r i m ( ) ;  
 i f   ( d . l e n g t h   <   2 )   {  
 a l e r t ( ' B ¡n   p h £i   n h ­p   t ê n   m i Án   m u Ñn   n g   k ý   ( í t   n h ¥t   2   k ý   t ñ  k h ô n g   b a o   g Óm   p h §n   m ß  r Ùn g ) . ' ) ;  
 r e t u r n   f a l s e ;  
 }  
 v a r   r e   =   / ^ [ 0 - 9 a - z \ - ] + $ / g  
 v a r   m s g   =   ' T ê n   m i Án   c h É  b a o   g Óm   c á c   k ý   t ñ  A - Z ,   0 - 9   v à   d ¥u   t r ë  ( - ) ' ;  
 i f   ( ! r e . t e s t ( d ) )   {  
 a l e r t ( m s g ) ;  
 r e t u r n   f a l s e ;  
 }  
 i f   ( d . i n d e x O f ( ' - - ' ) ! = - 1 )   {  
 a l e r t ( m s g ) ;  
 r e t u r n   f a l s e ;  
 }  
 i f   ( d . l a s t I n d e x O f ( ' - ' ) = = d . l e n g t h - 1 )   {  
 a l e r t ( m s g ) ;  
 r e t u r n   f a l s e ;  
 }  
 i f   ( d . i n d e x O f ( ' - ' ) = = 0 )   {  
 a l e r t ( m s g ) ;  
 r e t u r n   f a l s e ;  
 }  
 r e t u r n   t r u e ;  
 }  
 f u n c t i o n   O p e n W i n ( d o m a i n ,   o b j )  
 {  
 v a r   W h o i s   =   d o c u m e n t . g e t E l e m e n t B y I d ( " W h o i s " ) ;  
 W h o i s . s t y l e . d i s p l a y   =   ' ' ;  
 v a r   p s   =   G e t C e n t e r e d X Y ( 0 , 0 ) ;  
 v a r   L e f t   =   p s [ 0 ]   -   3 0 0 ;  
 v a r   T o p   =   p s [ 1 ]   -   2 5 0 ;  
 W h o i s . s t y l e . l e f t   =   L e f t   +   " p x " ;  
 W h o i s . s t y l e . t o p   =   T o p   +   " p x " ;  
 G e t C o n t e n t D o m a i n ( W h o i s ,   " R W h o i s . a s p x ? D o m a i n = "   +   d o m a i n ) ;  
 }  
 f u n c t i o n   O p e n W i n P r o m o t i o n ( )  
 {  
 v a r   P r o m o t i o n   =   d o c u m e n t . g e t E l e m e n t B y I d ( " P r o m o t i o n " ) ;  
 P r o m o t i o n . s t y l e . d i s p l a y   =   ' ' ;  
 v a r   p s   =   G e t C e n t e r e d X Y ( 0 , 0 ) ;  
 v a r   L e f t   =   p s [ 0 ]   -   3 0 0 ;  
 v a r   T o p   =   p s [ 1 ]   -   1 6 0 ;  
 P r o m o t i o n . s t y l e . l e f t   =   L e f t   +   " p x " ;  
 P r o m o t i o n . s t y l e . t o p   =   T o p   +   " p x " ;  
 }  
 f u n c t i o n   H i d e D o m a i n ( )  
 {  
 v a r   W h o i s   =   d o c u m e n t . g e t E l e m e n t B y I d ( " W h o i s " ) ;  
 W h o i s . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 }  
 f u n c t i o n   H i d e P r o m o t i o n ( )  
 {  
 v a r   P r o m o t i o n   =   d o c u m e n t . g e t E l e m e n t B y I d ( " P r o m o t i o n " ) ;  
 P r o m o t i o n . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 }  
 f u n c t i o n   S h o w C o n t e n t ( i ,   o b j )  
 {  
 v a r   p h 1   =   d o c u m e n t . g e t E l e m e n t B y I d ( " p h 1 " ) ;  
 v a r   p h 2   =   d o c u m e n t . g e t E l e m e n t B y I d ( " p h 2 " ) ;  
 v a r   p h 3   =   d o c u m e n t . g e t E l e m e n t B y I d ( " p h 3 " ) ;  
 v a r   p h 4   =   d o c u m e n t . g e t E l e m e n t B y I d ( " p h 4 " ) ;  
 v a r   h 1   =   d o c u m e n t . g e t E l e m e n t B y I d ( " h 1 " ) ;  
 v a r   h 2   =   d o c u m e n t . g e t E l e m e n t B y I d ( " h 2 " ) ;  
 v a r   h 3   =   d o c u m e n t . g e t E l e m e n t B y I d ( " h 3 " ) ;  
 v a r   h 4   =   d o c u m e n t . g e t E l e m e n t B y I d ( " h 4 " ) ;  
 p h 1 . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 p h 2 . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 p h 3 . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 p h 4 . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 h 1 . s r c   =   ' / W e b / I m g s / k d . g i f ' ;  
 h 2 . s r c   =   ' / W e b / I m g s / k t . g i f ' ;  
 h 3 . s r c   =   ' / W e b / I m g s / c l . g i f ' ;  
 h 4 . s r c   =   ' / W e b / I m g s / g y . g i f ' ;  
 i f ( i = = 1 )  
 {  
 p h 1 . s t y l e . d i s p l a y   =   ' ' ;  
 o b j . s r c   =   ' / W e b / I m g s / k d s . g i f ' ;  
 }  
 i f ( i = = 2 )  
 {  
 p h 2 . s t y l e . d i s p l a y   =   ' ' ;  
 o b j . s r c   =   ' / W e b / I m g s / k t s . g i f ' ;  
 }  
 i f ( i = = 3 )  
 {  
 p h 3 . s t y l e . d i s p l a y   =   ' ' ;  
 o b j . s r c   =   ' / W e b / I m g s / c l s . g i f ' ;  
 }  
 i f ( i = = 4 )  
 {  
 p h 4 . s t y l e . d i s p l a y   =   ' ' ;  
 o b j . s r c   =   ' / W e b / I m g s / g y s . g i f ' ;  
 }  
 }  
 f u n c t i o n   S h o w C o n t e n t 1 ( i ,   o b j )  
 {  
 v a r   p h 1   =   d o c u m e n t . g e t E l e m e n t B y I d ( " p h 1 " ) ;  
 v a r   p h 2   =   d o c u m e n t . g e t E l e m e n t B y I d ( " p h 2 " ) ;  
 v a r   p h 3   =   d o c u m e n t . g e t E l e m e n t B y I d ( " p h 3 " ) ;  
 v a r   p h 4   =   d o c u m e n t . g e t E l e m e n t B y I d ( " p h 4 " ) ;  
 v a r   h 1   =   d o c u m e n t . g e t E l e m e n t B y I d ( " h 1 " ) ;  
 v a r   h 2   =   d o c u m e n t . g e t E l e m e n t B y I d ( " h 2 " ) ;  
 v a r   h 3   =   d o c u m e n t . g e t E l e m e n t B y I d ( " h 3 " ) ;  
 v a r   h 4   =   d o c u m e n t . g e t E l e m e n t B y I d ( " h 4 " ) ;  
 p h 1 . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 p h 2 . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 p h 3 . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 p h 4 . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 h 1 . s r c   =   ' / W e b / I m g s / k d 1 . g i f ' ;  
 h 2 . s r c   =   ' / W e b / I m g s / k t 1 . g i f ' ;  
 h 3 . s r c   =   ' / W e b / I m g s / c l 1 . g i f ' ;  
 h 4 . s r c   =   ' / W e b / I m g s / g y 1 . g i f ' ;  
 i f ( i = = 1 )  
 {  
 p h 1 . s t y l e . d i s p l a y   =   ' ' ;  
 o b j . s r c   =   ' / W e b / I m g s / k d 1 s . g i f ' ;  
 }  
 i f ( i = = 2 )  
 {  
 p h 2 . s t y l e . d i s p l a y   =   ' ' ;  
 o b j . s r c   =   ' / W e b / I m g s / k t 1 s . g i f ' ;  
 }  
 i f ( i = = 3 )  
 {  
 p h 3 . s t y l e . d i s p l a y   =   ' ' ;  
 o b j . s r c   =   ' / W e b / I m g s / c l 1 s . g i f ' ;  
 }  
 i f ( i = = 4 )  
 {  
 p h 4 . s t y l e . d i s p l a y   =   ' ' ;  
 o b j . s r c   =   ' / W e b / I m g s / g y 1 s . g i f ' ;  
 }  
 }  
 f u n c t i o n   H i d d e n C o n t e n t ( i ,   o b j )  
 {  
 v a r   p h 1   =   d o c u m e n t . g e t E l e m e n t B y I d ( " p h 1 " ) ;  
 v a r   p h 2   =   d o c u m e n t . g e t E l e m e n t B y I d ( " p h 2 " ) ;  
 v a r   p h 3   =   d o c u m e n t . g e t E l e m e n t B y I d ( " p h 3 " ) ;  
 v a r   p h 4   =   d o c u m e n t . g e t E l e m e n t B y I d ( " p h 4 " ) ;  
 i f ( i = = 1 )  
 {  
 p h 1 . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 o b j . s r c   =   ' / W e b / I m g s / k d 1 . g i f ' ;  
 }  
 i f ( i = = 2 )  
 {  
 p h 2 . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 o b j . s r c   =   ' / W e b / I m g s / k t 1 . g i f ' ;  
 }  
 i f ( i = = 3 )  
 {  
 p h 3 . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 o b j . s r c   =   ' / W e b / I m g s / c l 1 . g i f ' ;  
 }  
 i f ( i = = 4 )  
 {  
 p h 4 . s t y l e . d i s p l a y   =   ' n o n e ' ;  
 o b j . s r c   =   ' / W e b / I m g s / g y 1 . g i f ' ;  
 }  
 }   
