ÿþ/ / / / / / / / / / / / / / / / / D I S A B L E   R I G h T   C L I C K / / / / / / / / / / / / / / / / /  
 v a r   m e s s a g e = " F u n c t i o n   D i s a b l e d ! " ;  
  
 f u n c t i o n   c l i c k I E 4 ( ) {  
 i f   ( e v e n t . b u t t o n = = 2 ) {  
 a l e r t ( m e s s a g e ) ;  
 r e t u r n   f a l s e ;  
 }  
 }  
  
 f u n c t i o n   c l i c k N S 4 ( e ) {  
 i f   ( d o c u m e n t . l a y e r s | | 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   ( e . w h i c h = = 2 | | e . w h i c h = = 3 ) {  
 a l e r t ( m e s s a g e ) ;  
 r e t u r n   f a l s e ;  
 }  
 }  
 }  
  
 i f   ( d o c u m e n t . l a y e r s ) {  
 d o c u m e n t . c a p t u r e E v e n t s ( E v e n t . M O U S E D O W N ) ;  
 d o c u m e n t . o n m o u s e d o w n = c l i c k N S 4 ;  
 }  
 e l s e   i f   ( d o c u m e n t . a l l & & ! 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 . o n m o u s e d o w n = c l i c k I E 4 ;  
 }  
  
 d o c u m e n t . o n c o n t e x t m e n u = n e w   F u n c t i o n ( " ; r e t u r n   f a l s e " )  
 / / / / / / / / / / / / / / / / / F L A S H   O B J E C T / / / / / / / / / / / / / / / / / / / / / /  
 f u n c t i o n   C r e a t e C o n t r o l ( E l e m e n t I d , w i d t h , h e i g h t , f i l e )  
 {  
   v a r   d   =   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 ) ;  
   d . i n n e r 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 "   i d = " o b j 1 " '  
   + '   w i d t h = " ' + w i d t h + ' " '  
   + '   h e i g h t = " ' + h e i g h t + ' " > '  
   + '   < p a r a m   n a m e = " m o v i e "   v a l u e = " F i l e s / f l a s h / ' + f i l e + ' " > '  
   + '   < p a r a m   n a m e = " q u a l i t y "   v a l u e = " H i g h " > '  
   + '   < p a r a m   n a m e = " w m o d e "   v a l u e = " t r a n s p a r e n t " > '  
   + '   < e m b e d   s r c = " F i l e s / f l a s h / ' + f i l e + ' "   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 "   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 m o d e = " t r a n s p a r e n t "   w i d t h = " ' + w i d t h + ' "   h e i g h t = " ' + h e i g h t + ' " > < / e m b e d > '  
   + '   < / o b j e c t > '  
 }  
 / / / / / / / / / / / / / / / / / P N G   O B J E C T / / / / / / / / / / / / / / / / / / / / / /  
  
 v a r   a r V e r s i o n   =   n a v i g a t o r . a p p V e r s i o n . s p l i t ( " M S I E " )  
 v a r   v e r s i o n   =   p a r s e F l o a t ( a r V e r s i o n [ 1 ] )  
  
 i f   ( ( v e r s i o n   > =   5 . 5 ) )    
 {  
       f o r ( v a r   i = 0 ;   i < d o c u m e n t . i m a g e s . l e n g t h ;   i + + )  
       {  
             v a r   i m g   =   d o c u m e n t . i m a g e s [ i ]  
             v a r   i m g N a m e   =   i m g . s r c . t o U p p e r C a s e ( )  
             i f   ( i m g N a m e . s u b s t r i n g ( i m g N a m e . l e n g t h - 3 ,   i m g N a m e . l e n g t h )   = =   " P N G " )  
             {  
                   v a r   i m g I D   =   ( i m g . i d )   ?   " i d = ' "   +   i m g . i d   +   " '   "   :   " "  
                   v a r   i m g C l a s s   =   ( i m g . c l a s s N a m e )   ?   " c l a s s = ' "   +   i m g . c l a s s N a m e   +   " '   "   :   " "  
                   v a r   i m g T i t l e   =   ( i m g . t i t l e )   ?   " t i t l e = ' "   +   i m g . t i t l e   +   " '   "   :   " t i t l e = ' "   +   i m g . a l t   +   " '   "  
                   v a r   i m g S t y l e   =   " d i s p l a y : i n l i n e - b l o c k ; "   +   i m g . s t y l e . c s s T e x t    
                   i f   ( i m g . a l i g n   = =   " l e f t " )   i m g S t y l e   =   " f l o a t : l e f t ; "   +   i m g S t y l e  
                   i f   ( i m g . a l i g n   = =   " r i g h t " )   i m g S t y l e   =   " f l o a t : r i g h t ; "   +   i m g S t y l e  
                   i f   ( i m g . p a r e n t E l e m e n t . h r e f )   i m g S t y l e   =   " c u r s o r : h a n d ; "   +   i m g S t y l e  
                   v a r   s t r N e w H T M L   =   " < s p a n   "   +   i m g I D   +   i m g C l a s s   +   i m g T i t l e  
                   +   "   s t y l e = \ " "   +   " w i d t h : "   +   i m g . w i d t h   +   " p x ;   h e i g h t : "   +     " 1 6 p x ; "   +   i m g S t y l e   +   " ; "  
                   +   " f i l t e r : p r o g i d : D X I m a g e T r a n s f o r m . M i c r o s o f t . A l p h a I m a g e L o a d e r "  
                   +   " ( s r c = \ ' "   +   i m g . s r c   +   " \ ' ,   s i z i n g M e t h o d = ' s c a l e ' ) ; \ " > < / s p a n > "    
                   i m g . o u t e r H T M L   =   s t r N e w H T M L  
                   i   =   i - 1  
             }  
       }  
 }  
  
 / / / / / / / / / / / / / / / / / V I E W   P I C T U R E S / / / / / / / / / / / / / / / / / / / / / /  
 f u n c t i o n   v i e w P i c ( i m g )  
 {    
     p i c f i l e   =   n e w   I m a g e ( ) ;    
         p i c f i l e . s r c   = ( i m g ) ;    
         f i l e C h e c k ( i m g ) ;    
 }  
 f u n c t i o n   f i l e C h e c k ( i m g )  
 {   	  
         i f (   ( p i c f i l e . w i d t h ! = 0 )   & &   ( p i c f i l e . h e i g h t ! = 0 )   )  
         {    
                 m a k e W i n d o w ( i m g ) ;    
         }  
         e l s e    
         {  
                 f u n z i o n e = " f i l e C h e c k ( ' " + i m g + " ' ) " ;    
                 i n t e r v a l l o = s e t T i m e o u t ( f u n z i o n e , 5 0 ) ;    
         }  
 }  
 f u n c t i o n   m a k e W i n d o w ( i m g )  
 {   	  
         h t   =   p i c f i l e . h e i g h t   +   2 0 ;  
         w d   =   p i c f i l e . w i d t h   +   2 0 ;    
  
         v a r   a r g s =   " h e i g h t = "   +   h t   +   " , i n n e r H e i g h t = "   +   h t ;  
         a r g s   + =   " , w i d t h = "   +   w d   +   " , i n n e r W i d t h = "   +   w d ;  
         i f   ( w i n d o w . s c r e e n )    
         {    
                 v a r   a v h t   =   s c r e e n . a v a i l H e i g h t ;    
                 v a r   a v w d   =   s c r e e n . a v a i l W i d t h ;  
                 v a r   x c e n   =   ( a v w d   -   w d )   /   2 ;    
                 v a r   y c e n   =   ( a v h t   -   h t )   /   2 ;  
                 a r g s   + =   " , l e f t = "   +   x c e n   +   " , s c r e e n X = "   +   x c e n ;  
                 a r g s   + =   " , t o p = "   +   y c e n   +   " , s c r e e n Y = "   +   y c e n   +   " , r e s i z a b l e = y e s " ;   	  
         }  
         r e t u r n   w i n d o w . o p e n ( i m g ,   ' ' ,   a r g s ) ;  
 }    
 / / / / / / / / / / / / / / / / / / V O I C E   ( P L A Y   &   S T O P ) / / / / / / / / / / / / / / / / / / / / / / / / /  
  
 f u n c t i o n   P l a y S o u n d ( )    
 {  
 d o c u m e n t . g e t E l e m e n t B y I d ( ' A u d i o A D ' ) . U R L = " h t t p : / / w w w . q s m t e c h . c o m / F i l e s / g e n e r a l / q s m t e c h _ R a d i o _ 2 5 . 3 . 0 9 . m p 3 " ;  
 }  
  
 f u n c t i o n   S t o p S o u n d ( )  
   {  
   d o c u m e n t . g e t E l e m e n t B y I d ( ' A u d i o A D ' ) . c o n t r o l s . s t o p ( ) ;  
 } 
