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