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