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