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