:: phone_selfies
<<set $here = 'phone_selfies'>>
<<set $ARGS = $location_var[$here]>>
<!-- !2021/05/02-->
<!-- !{ HOW TO USE:
- UNLOCKING A PICTURE:
There are different types of pictures that can be viewed with the phone. These need to be unlocked for them to become viewable.
This is done by setting the correct variable to 1 INSIDE the event itself.
<<npcname>> should be replaced by the name of the npc for who you want to unlock something.
- Pictures Sveta gets sent by an npc:
<<npcname>>[$i] = 1
- Pictures Sveta takes herself with an npc:
<<npcname>>sveta[$i] = 1
- Explicit pictures from an npc (could include Sveta):
<<npcname>>sex[$i] = 1
- Pictures Sveta takes of an npc:
<<npcname>>photo[$i] = 1
- Pictures Sveta takes of herself:
Here the code is run through the camera option on the phone and it will automatically unlock the correct picture.
- INCREASE THE PICTURE COUNTER IN THIS FILE:
NPC Pictures:
As pictures are added the number in 'listretrieve2' inside this file needs to be increased by the amount of pictures you are adding.
- loopmax:
For selfies sent by an npc
- loopmaxsveta:
For selfies with an npc taken on Sveta''s phone
- loopmaxsex:
For explicit selfies
- loopmaxev:
For pictures Sveta takes of an npc
SVETA SELFIES:
The total amounts are kept in 'phone_selfies', 'Phone_selfie_totals'.
Increase the correct variable in there to have it added to the phone.
} -->
<!-- !!For setting the selfies-->
<<if $location_var[$here][0] == 'Phone_selfie_totals'>>
	<<setinit $selfieLoc[0] = 'misc'>>
	<<setinit $selfieLocDesc[0] = 'Me'>>
	<<setinit $selfieFilePrefix[0] = 'phone_selfie'>>
	<<setinit $selfieClotot[0] = 2>>
	<<setinit $selfieUndtot[0] = 0>>
	<<setinit $selfieNudtot[0] = 0>>
	<<setinit $selfieTitflash[0] = 0>>
	<<setinit $selfieAssflash[0] = 0>>
	<<setinit $selfiePussyflash[0] = 0>>
	<<setinit $selfieBathtot[0] = 0>>
	<<setinit $selfieShowertot[0] = 0>>
	<<setinit $selfieSwimtot[0] = 0>>
	<<setinit $selfieLoc[1] = 'bathroom'>>
	<<setinit $selfieLocDesc[1] = 'Bathroom'>>
	<<setinit $selfieFilePrefix[1] = ''>>
	<<setinit $selfieClotot[1] = 30>>
	<<setinit $selfieUndtot[1] = 23>>
	<<setinit $selfieNudtot[1] = 30>>
	<<setinit $selfieTitflash[1] = 30>>
	<<setinit $selfieAssflash[1] = 5>>
	<<setinit $selfiePussyflash[1] = 22>>
	<<setinit $selfieBathtot[1] = 30>>
	<<setinit $selfieShowertot[1] = 27>>
	<<setinit $selfieSwimtot[1] = 0>>
	<<setinit $selfieLoc[2] = 'bedroom'>>
	<<setinit $selfieLocDesc[2] = 'Bedroom'>>
	<<setinit $selfieFilePrefix[2] = ''>>
	<<setinit $selfieClotot[2] = 30>>
	<<setinit $selfieUndtot[2] = 22>>
	<<setinit $selfieNudtot[2] = 30>>
	<<setinit $selfieTitflash[2] = 30>>
	<<setinit $selfieAssflash[2] = 26>>
	<<setinit $selfiePussyflash[2] = 25>>
	<<setinit $selfieBathtot[2] = 0>>
	<<setinit $selfieShowertot[2] = 0>>
	<<setinit $selfieSwimtot[2] = 0>>
	<<setinit $selfieLoc[3] = 'kitchen'>>
	<<setinit $selfieLocDesc[3] = 'Kitchen'>>
	<<setinit $selfieFilePrefix[3] = ''>>
	<<setinit $selfieClotot[3] = 27>>
	<<setinit $selfieUndtot[3] = 23>>
	<<setinit $selfieNudtot[3] = 23>>
	<<setinit $selfieTitflash[3] = 21>>
	<<setinit $selfieAssflash[3] = 1>>
	<<setinit $selfiePussyflash[3] = 10>>
	<<setinit $selfieBathtot[3] = 0>>
	<<setinit $selfieShowertot[3] = 0>>
	<<setinit $selfieSwimtot[3] = 0>>
	<<setinit $selfieLoc[4] = 'livingroom'>>
	<<setinit $selfieLocDesc[4] = 'Livingroom'>>
	<<setinit $selfieFilePrefix[4] = ''>>
	<<setinit $selfieClotot[4] = 30>>
	<<setinit $selfieUndtot[4] = 27>>
	<<setinit $selfieNudtot[4] = 30>>
	<<setinit $selfieTitflash[4] = 30>>
	<<setinit $selfieAssflash[4] = 5>>
	<<setinit $selfiePussyflash[4] = 20>>
	<<setinit $selfieBathtot[4] = 0>>
	<<setinit $selfieShowertot[4] = 0>>
	<<setinit $selfieSwimtot[4] = 0>>
	<<setinit $selfieLoc[5] = 'changingroom'>>
	<<setinit $selfieLocDesc[5] = 'Changingroom'>>
	<<setinit $selfieFilePrefix[5] = ''>>
	<<setinit $selfieClotot[5] = 30>>
	<<setinit $selfieUndtot[5] = 30>>
	<<setinit $selfieNudtot[5] = 30>>
	<<setinit $selfieTitflash[5] = 30>>
	<<setinit $selfieAssflash[5] = 20>>
	<<setinit $selfiePussyflash[5] = 28>>
	<<setinit $selfieBathtot[5] = 0>>
	<<setinit $selfieShowertot[5] = 0>>
	<<setinit $selfieSwimtot[5] = 0>>
	<<setinit $selfieLoc[6] = 'park'>>
	<<setinit $selfieLocDesc[6] = 'Park'>>
	<<setinit $selfieFilePrefix[6] = ''>>
	<<setinit $selfieClotot[6] = 30>>
	<<setinit $selfieUndtot[6] = 4>>
	<<setinit $selfieNudtot[6] = 17>>
	<<setinit $selfieTitflash[6] = 26>>
	<<setinit $selfieAssflash[6] = 2>>
	<<setinit $selfiePussyflash[6] = 8>>
	<<setinit $selfieBathtot[6] = 0>>
	<<setinit $selfieShowertot[6] = 0>>
	<<setinit $selfieSwimtot[6] = 0>>
	<<setinit $selfieLoc[7] = 'locker'>>
	<<setinit $selfieLocDesc[7] = 'locker'>>
	<<setinit $selfieFilePrefix[7] = ''>>
	<<setinit $selfieClotot[7] = 26>>
	<<setinit $selfieUndtot[7] = 21>>
	<<setinit $selfieNudtot[7] = 13>>
	<<setinit $selfieTitflash[7] = 13>>
	<<setinit $selfieAssflash[7] = 2>>
	<<setinit $selfiePussyflash[7] = 3>>
	<<setinit $selfieBathtot[7] = 0>>
	<<setinit $selfieShowertot[7] = 0>>
	<<setinit $selfieSwimtot[7] = 0>>
	<<setinit $selfieLoc[8] = 'beach'>>
	<<setinit $selfieLocDesc[8] = 'Beach'>>
	<<setinit $selfieFilePrefix[8] = ''>>
	<<setinit $selfieClotot[8] = 0>>
	<<setinit $selfieUndtot[8] = 0>>
	<<setinit $selfieNudtot[8] = 20>>
	<<setinit $selfieTitflash[8] = 17>>
	<<setinit $selfieAssflash[8] = 3>>
	<<setinit $selfiePussyflash[8] = 4>>
	<<setinit $selfieBathtot[8] = 0>>
	<<setinit $selfieShowertot[8] = 0>>
	<<setinit $selfieSwimtot[8] = 21>>
	<<setinit $selfieLoc[9] = 'school_classroom'>>
	<<setinit $selfieLocDesc[9] = 'School Classroom'>>
	<<setinit $selfieFilePrefix[9] = ''>>
	<<setinit $selfieClotot[9] = 11>>
	<<setinit $selfieUndtot[9] = 2>>
	<<setinit $selfieNudtot[9] = 0>>
	<<setinit $selfieTitflash[9] = 3>>
	<<setinit $selfieAssflash[9] = 0>>
	<<setinit $selfiePussyflash[9] = 3>>
	<<setinit $selfieBathtot[9] = 0>>
	<<setinit $selfieShowertot[9] = 0>>
	<<setinit $selfieSwimtot[9] = 0>>
	<<setinit $selfieLoc[10] = 'school_bathroom'>>
	<<setinit $selfieLocDesc[10] = 'School Bathroom'>>
	<<setinit $selfieFilePrefix[10] = ''>>
	<<setinit $selfieClotot[10] = 28>>
	<<setinit $selfieUndtot[10] = 12>>
	<<setinit $selfieNudtot[10] = 0>>
	<<setinit $selfieTitflash[10] = 8>>
	<<setinit $selfieAssflash[10] = 1>>
	<<setinit $selfiePussyflash[10] = 7>>
	<<setinit $selfieBathtot[10] = 0>>
	<<setinit $selfieShowertot[10] = 0>>
	<<setinit $selfieSwimtot[10] = 0>>
	<<setinit $selfieLoc[11] = 'restroom'>>
	<<setinit $selfieLocDesc[11] = 'Restroom'>>
	<<setinit $selfieFilePrefix[11] = ''>>
	<<setinit $selfieClotot[11] = 30>>
	<<setinit $selfieUndtot[11] = 25>>
	<<setinit $selfieNudtot[11] = 3>>
	<<setinit $selfieTitflash[11] = 30>>
	<<setinit $selfieAssflash[11] = 13>>
	<<setinit $selfiePussyflash[11] = 21>>
	<<setinit $selfieBathtot[11] = 0>>
	<<setinit $selfieShowertot[11] = 0>>
	<<setinit $selfieSwimtot[11] = 0>>
<</if>>
<<if $location_var[$here][0] == 'selfies'>>
	<<set $menu_off = 0>>
	<<gs 'phone_selfies' 'Phone_selfie_totals'>>
	<h2>Photo library</h2>
	Selfies
	<<set $temp_locationCnt = 0>>
	<<warn 'JUMP MARKER ENCOUNTERED: :LocationLoop'>>
	<a href="exec:gt ''phone_selfies'', ''showlocation'', <<temp_locationCnt>>"><<$selfieLocDesc[$temp_locationCnt]>> selfies</a>
	<<set $temp_locationCnt += 1>>
	<<if $temp_locationCnt < arrsize('$selfieLoc')>>
		jump'LocationLoop'

	<</if>>
	Family and friends
	<<link "Family">><<gt 'phone_selfies' 'family'>><</link>>
	<<link "School friends">><<gt 'phone_selfies' 'school'>><</link>>
	<<link "Teachers">><<gt 'phone_selfies' 'teacher'>><</link>>
	<<link "Pavlovsk friends">><<gt 'phone_selfies' 'pavlovsk'>><</link>>
	<<link "City friends">><<gt 'phone_selfies' 'city'>><</link>>
	<!-- !gt $loc, $loc_arg-->
	<<actCLA 'Stop watching selfies'>>
		<<gt $menu_loc $menu_arg>>
	<</actCLA>>
<</if>>
<!-- !! ARGS[1] is the index of the location in $selfieLoc[]-->
<<if $location_var[$here][0] == 'showlocation'>>
	<h2><<$selfieLocDesc[ARGS[1]]>> selfies</h2>
	<<gs 'phone_selfies' 'listretrieve' $ARGS[1]>>
	<<act 'Back'>>
		<<gt 'phone_selfies' 'selfies'>>
	<</act>>
	<!-- !gt $loc, $loc_arg-->
	<<actCLA 'Stop watching selfies'>>
		<<gt $menu_loc $menu_arg>>
	<</actCLA>>
<</if>>
<!-- !! ARGS[1] is the index of the location in $selfieLoc[]-->
<<if $location_var[$here][0] == 'listretrieve'>>
	<!-- !!Loop for clothed selfies, dynamics set variables as mixing them in loop instructions is bad-->
	<<if $selfieClotot[$location_var[$here][1]] > 0>>
		<center><b>Clothed selfies</b></center>
		<<set $temp_clocnt = 1>>
		<<warn 'JUMP MARKER ENCOUNTERED: :temp_loop'>>
		<!-- !!setting value to unmixed variable so it can be checked in the if below-->
		<<set phone_locval = $selfieLoc[$ARGS[1]]_closelfie[$temp_clocnt]>>
		<!-- FAILED TO CONVERT
			if $phone_locval = 1: *p '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$selfieLoc[ARGS[1]]>>'', ''clothed'', ''<<$selfieFilePrefix[ARGS[1]]>><<temp_clocnt>>''"><img src="images/pc/activities/phone/selfies/<<$selfieLoc[ARGS[1]]>>/clothed/<<$selfieFilePrefix[ARGS[1]]>><<temp_clocnt>>.jpg"     height="150" /></a>  '
		-----
			<<if getvar("$phone_locval") == 1>>
			<!-- FAILED TO CONVERT
	*p '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$selfieLoc[ARGS[1]]>>'', ''clothed'', ''<<$selfieFilePrefix[ARGS[1]]>><<temp_clocnt>>''"><img src="images/pc/activities/phone/selfies/<<$selfieLoc[ARGS[1]]>>/clothed/<<$selfieFilePrefix[ARGS[1]]>><<temp_clocnt>>.jpg"     height="150" /></a>  '
-----
	<<set  * ERROR: FAILED TO CONVERT LITERAL: """p '<a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec: gs ''phone_selfies_popup''""" , 'show' , '$selfieLoc[$ARGS[1]]' , 'clothed' , ERROR: FAILED TO CONVERT LITERAL: """''$selfieFilePrefix[$ARGS[1]]<<temp_clocnt>>''"><img src="images""" / $pc / $activities / $phone / $selfies / $selfieLoc[$ARGS[1]] / $clothed / ERROR: FAILED TO CONVERT LITERAL: """$selfieFilePrefix[$ARGS[1]]<<temp_clocnt>>.jpg"     height="150"""" / ERROR: FAILED TO CONVERT LITERAL: """><""" / ERROR: FAILED TO CONVERT LITERAL: """a>  '""">>

-->
<<warn "CONVERSION ERROR 9edd071f2f8393de905a1bf50c5c3d90">>

		<</if>>

		-->
		<<warn "CONVERSION ERROR 9345c103d8e3d92f06b1c3cef4513d06">>
		<<set $temp_clocnt += 1>>
		<<if $temp_clocnt <= $selfieClotot[$ARGS[1]]>>
			jump'temp_loop'

		<</if>>
	<</if>>
	<!-- !!Loop for swimwear selfies, dynamics set variables as mixing them in loop instructions is bad-->
	<<if $selfieSwimtot[$location_var[$here][1]] > 0>>
		<center><b>Swimwear selfies</b></center>
		<<set $temp_clocnt = 1>>
		<<warn 'JUMP MARKER ENCOUNTERED: :temp_loop1'>>
		<!-- !!setting value to unmixed variable so it can be checked in the if below-->
		<<set phone_locval = $selfieLoc[$ARGS[1]]_swim[$temp_clocnt]>>
		<!-- FAILED TO CONVERT
			if $phone_locval = 1: *p '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$selfieLoc[ARGS[1]]>>'', ''bikini'', ''<<$selfieFilePrefix[ARGS[1]]>><<temp_clocnt>>''"><img src="images/pc/activities/phone/selfies/<<$selfieLoc[ARGS[1]]>>/bikini/<<$selfieFilePrefix[ARGS[1]]>><<temp_clocnt>>.jpg"     height="150" /></a>  '
		-----
			<<if getvar("$phone_locval") == 1>>
			<!-- FAILED TO CONVERT
	*p '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$selfieLoc[ARGS[1]]>>'', ''bikini'', ''<<$selfieFilePrefix[ARGS[1]]>><<temp_clocnt>>''"><img src="images/pc/activities/phone/selfies/<<$selfieLoc[ARGS[1]]>>/bikini/<<$selfieFilePrefix[ARGS[1]]>><<temp_clocnt>>.jpg"     height="150" /></a>  '
-----
	<<set  * ERROR: FAILED TO CONVERT LITERAL: """p '<a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec: gs ''phone_selfies_popup''""" , 'show' , '$selfieLoc[$ARGS[1]]' , 'bikini' , ERROR: FAILED TO CONVERT LITERAL: """''$selfieFilePrefix[$ARGS[1]]<<temp_clocnt>>''"><img src="images""" / $pc / $activities / $phone / $selfies / $selfieLoc[$ARGS[1]] / $bikini / ERROR: FAILED TO CONVERT LITERAL: """$selfieFilePrefix[$ARGS[1]]<<temp_clocnt>>.jpg"     height="150"""" / ERROR: FAILED TO CONVERT LITERAL: """><""" / ERROR: FAILED TO CONVERT LITERAL: """a>  '""">>

-->
<<warn "CONVERSION ERROR 529058fd1a442c5cb004538013a4b59d">>

		<</if>>

		-->
		<<warn "CONVERSION ERROR 0ef41154bf195beade91c1f4cd08cd01">>
		<<set $temp_clocnt += 1>>
		<<if $temp_clocnt <= $selfieSwimtot[$ARGS[1]]>>
			jump'temp_loop1'

		<</if>>
	<</if>>
	<!-- !!loop for underwear selfies-->
	<<if $selfieUndtot[$location_var[$here][1]] > 0>>
		<center><b>Underwear selfies</b></center>
		<<set $temp_undcnt = 1>>
		<<warn 'JUMP MARKER ENCOUNTERED: :temp_loop2'>>
		<<set phone_locval = $selfieLoc[$ARGS[1]]_undselfie[$temp_undcnt]>>
		<!-- FAILED TO CONVERT
			if $phone_locval = 1: *p '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$selfieLoc[ARGS[1]]>>'', ''underwear'', ''<<$selfieFilePrefix[ARGS[1]]>><<temp_undcnt>>''"><img src="images/pc/activities/phone/selfies/<<$selfieLoc[ARGS[1]]>>/underwear/<<$selfieFilePrefix[ARGS[1]]>><<temp_undcnt>>.jpg"     height="150" /></a>  '
		-----
			<<if getvar("$phone_locval") == 1>>
			<!-- FAILED TO CONVERT
	*p '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$selfieLoc[ARGS[1]]>>'', ''underwear'', ''<<$selfieFilePrefix[ARGS[1]]>><<temp_undcnt>>''"><img src="images/pc/activities/phone/selfies/<<$selfieLoc[ARGS[1]]>>/underwear/<<$selfieFilePrefix[ARGS[1]]>><<temp_undcnt>>.jpg"     height="150" /></a>  '
-----
	<<set  * ERROR: FAILED TO CONVERT LITERAL: """p '<a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec: gs ''phone_selfies_popup''""" , 'show' , '$selfieLoc[$ARGS[1]]' , 'underwear' , ERROR: FAILED TO CONVERT LITERAL: """''$selfieFilePrefix[$ARGS[1]]<<temp_undcnt>>''"><img src="images""" / $pc / $activities / $phone / $selfies / $selfieLoc[$ARGS[1]] / $underwear / ERROR: FAILED TO CONVERT LITERAL: """$selfieFilePrefix[$ARGS[1]]<<temp_undcnt>>.jpg"     height="150"""" / ERROR: FAILED TO CONVERT LITERAL: """><""" / ERROR: FAILED TO CONVERT LITERAL: """a>  '""">>

-->
<<warn "CONVERSION ERROR 4e50e62523d65e182bd506232f14bda3">>

		<</if>>

		-->
		<<warn "CONVERSION ERROR dde79485b9430a136dda9b36b36c4aef">>
		<<set $temp_undcnt += 1>>
		<<if $temp_undcnt <= $selfieUndtot[$ARGS[1]]>>
			jump'temp_loop2'

		<</if>>
	<</if>>
	<!-- !!loop for nude selfies-->
	<<if $selfieNudtot[$location_var[$here][1]] > 0>>
		<center><b>Nude selfies</b></center>
		<<set $temp_nudcnt = 1>>
		<<warn 'JUMP MARKER ENCOUNTERED: :temp_loop3'>>
		<<set phone_locval = $selfieLoc[$ARGS[1]]_nudselfie[$temp_nudcnt]>>
		<!-- FAILED TO CONVERT
			if $phone_locval = 1: *p '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$selfieLoc[ARGS[1]]>>'', ''nude'', ''<<$selfieFilePrefix[ARGS[1]]>><<temp_nudcnt>>''"><img src="images/pc/activities/phone/selfies/<<$selfieLoc[ARGS[1]]>>/nude/<<$selfieFilePrefix[ARGS[1]]>><<temp_nudcnt>>.jpg"     height="150" /></a>  '
		-----
			<<if getvar("$phone_locval") == 1>>
			<!-- FAILED TO CONVERT
	*p '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$selfieLoc[ARGS[1]]>>'', ''nude'', ''<<$selfieFilePrefix[ARGS[1]]>><<temp_nudcnt>>''"><img src="images/pc/activities/phone/selfies/<<$selfieLoc[ARGS[1]]>>/nude/<<$selfieFilePrefix[ARGS[1]]>><<temp_nudcnt>>.jpg"     height="150" /></a>  '
-----
	<<set  * ERROR: FAILED TO CONVERT LITERAL: """p '<a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec: gs ''phone_selfies_popup''""" , 'show' , '$selfieLoc[$ARGS[1]]' , 'nude' , ERROR: FAILED TO CONVERT LITERAL: """''$selfieFilePrefix[$ARGS[1]]<<temp_nudcnt>>''"><img src="images""" / $pc / $activities / $phone / $selfies / $selfieLoc[$ARGS[1]] / $nude / ERROR: FAILED TO CONVERT LITERAL: """$selfieFilePrefix[$ARGS[1]]<<temp_nudcnt>>.jpg"     height="150"""" / ERROR: FAILED TO CONVERT LITERAL: """><""" / ERROR: FAILED TO CONVERT LITERAL: """a>  '""">>

-->
<<warn "CONVERSION ERROR 78efcc7037376d77430fa4bd380fc2bf">>

		<</if>>

		-->
		<<warn "CONVERSION ERROR 5124712b66b326ab0bf2b6d7609d440d">>
		<<set $temp_nudcnt += 1>>
		<<if $temp_nudcnt <= $selfieNudtot[$ARGS[1]]>>
			jump'temp_loop3'

		<</if>>
	<</if>>
	<!-- !!loop for bath selfies-->
	<<if $selfieBathtot[$location_var[$here][1]] > 0>>
		<center><b>Bath selfies</b></center>
		<<set $temp_bathcnt = 1>>
		<<warn 'JUMP MARKER ENCOUNTERED: :temp_loop4'>>
		<<set phone_locval = $selfieLoc[$ARGS[1]]_bathselfie[$temp_bathcnt]>>
		<!-- FAILED TO CONVERT
			if $phone_locval = 1: *p '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$selfieLoc[ARGS[1]]>>'', ''bath'', ''<<$selfieFilePrefix[ARGS[1]]>><<temp_bathcnt>>''"><img src="images/pc/activities/phone/selfies/<<$selfieLoc[ARGS[1]]>>/bath/<<$selfieFilePrefix[ARGS[1]]>><<temp_bathcnt>>.jpg"     height="150" /></a>  '
		-----
			<<if getvar("$phone_locval") == 1>>
			<!-- FAILED TO CONVERT
	*p '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$selfieLoc[ARGS[1]]>>'', ''bath'', ''<<$selfieFilePrefix[ARGS[1]]>><<temp_bathcnt>>''"><img src="images/pc/activities/phone/selfies/<<$selfieLoc[ARGS[1]]>>/bath/<<$selfieFilePrefix[ARGS[1]]>><<temp_bathcnt>>.jpg"     height="150" /></a>  '
-----
	<<set  * ERROR: FAILED TO CONVERT LITERAL: """p '<a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec: gs ''phone_selfies_popup''""" , 'show' , '$selfieLoc[$ARGS[1]]' , 'bath' , ERROR: FAILED TO CONVERT LITERAL: """''$selfieFilePrefix[$ARGS[1]]<<temp_bathcnt>>''"><img src="images""" / $pc / $activities / $phone / $selfies / $selfieLoc[$ARGS[1]] / $bath / ERROR: FAILED TO CONVERT LITERAL: """$selfieFilePrefix[$ARGS[1]]<<temp_bathcnt>>.jpg"     height="150"""" / ERROR: FAILED TO CONVERT LITERAL: """><""" / ERROR: FAILED TO CONVERT LITERAL: """a>  '""">>

-->
<<warn "CONVERSION ERROR 07aa821c6c0cf72e045735a5b877bc28">>

		<</if>>

		-->
		<<warn "CONVERSION ERROR 1444198da573323150e7a23cbc0b34b8">>
		<<set $temp_bathcnt += 1>>
		<<if $temp_bathcnt <= $selfieBathtot[$ARGS[1]]>>
			jump'temp_loop4'

		<</if>>
	<</if>>
	<!-- !!loop for shower selfies-->
	<<if $selfieShowertot[$location_var[$here][1]] > 0>>
		<center><b>Shower selfies</b></center>
		<<set $temp_showercnt = 1>>
		<<warn 'JUMP MARKER ENCOUNTERED: :temp_loop5'>>
		<<set phone_locval = $selfieLoc[$ARGS[1]]_showerselfie[$temp_showercnt]>>
		<!-- FAILED TO CONVERT
			if $phone_locval = 1: *p '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$selfieLoc[ARGS[1]]>>'', ''shower'', ''<<$selfieFilePrefix[ARGS[1]]>><<temp_showercnt>>''"><img src="images/pc/activities/phone/selfies/<<$selfieLoc[ARGS[1]]>>/shower/<<$selfieFilePrefix[ARGS[1]]>><<temp_showercnt>>.jpg"     height="150" /></a>  '
		-----
			<<if getvar("$phone_locval") == 1>>
			<!-- FAILED TO CONVERT
	*p '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$selfieLoc[ARGS[1]]>>'', ''shower'', ''<<$selfieFilePrefix[ARGS[1]]>><<temp_showercnt>>''"><img src="images/pc/activities/phone/selfies/<<$selfieLoc[ARGS[1]]>>/shower/<<$selfieFilePrefix[ARGS[1]]>><<temp_showercnt>>.jpg"     height="150" /></a>  '
-----
	<<set  * ERROR: FAILED TO CONVERT LITERAL: """p '<a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec: gs ''phone_selfies_popup''""" , 'show' , '$selfieLoc[$ARGS[1]]' , 'shower' , ERROR: FAILED TO CONVERT LITERAL: """''$selfieFilePrefix[$ARGS[1]]<<temp_showercnt>>''"><img src="images""" / $pc / $activities / $phone / $selfies / $selfieLoc[$ARGS[1]] / $shower / ERROR: FAILED TO CONVERT LITERAL: """$selfieFilePrefix[$ARGS[1]]<<temp_showercnt>>.jpg"     height="150"""" / ERROR: FAILED TO CONVERT LITERAL: """><""" / ERROR: FAILED TO CONVERT LITERAL: """a>  '""">>

-->
<<warn "CONVERSION ERROR f7ada5cfb332e96b81c607f1703c5891">>

		<</if>>

		-->
		<<warn "CONVERSION ERROR 37de1fa9f2a15ce6dd7060b18a9b11da">>
		<<set $temp_showercnt += 1>>
		<<if $temp_showercnt <= $selfieShowertot[$ARGS[1]]>>
			jump'temp_loop5'

		<</if>>
	<</if>>
	<!-- !!loop for flashing tits selfies-->
	<<if $selfieTitflash[$location_var[$here][1]] > 0>>
		<center><b>Flashing tits selfies</b></center>
		<<set $temp_flashtitscnt = 1>>
		<<warn 'JUMP MARKER ENCOUNTERED: :temp_loop6'>>
		<<set phone_locval = $selfieLoc[$ARGS[1]]_titflash[$temp_flashtitscnt]>>
		<!-- FAILED TO CONVERT
			if $phone_locval = 1: *p '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$selfieLoc[ARGS[1]]>>'', ''titflash'', ''<<$selfieFilePrefix[ARGS[1]]>><<temp_flashtitscnt>>''"><img src="images/pc/activities/phone/selfies/<<$selfieLoc[ARGS[1]]>>/titflash/<<$selfieFilePrefix[ARGS[1]]>><<temp_flashtitscnt>>.jpg"     height="150" /></a>  '
		-----
			<<if getvar("$phone_locval") == 1>>
			<!-- FAILED TO CONVERT
	*p '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$selfieLoc[ARGS[1]]>>'', ''titflash'', ''<<$selfieFilePrefix[ARGS[1]]>><<temp_flashtitscnt>>''"><img src="images/pc/activities/phone/selfies/<<$selfieLoc[ARGS[1]]>>/titflash/<<$selfieFilePrefix[ARGS[1]]>><<temp_flashtitscnt>>.jpg"     height="150" /></a>  '
-----
	<<set  * ERROR: FAILED TO CONVERT LITERAL: """p '<a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec: gs ''phone_selfies_popup''""" , 'show' , '$selfieLoc[$ARGS[1]]' , 'titflash' , ERROR: FAILED TO CONVERT LITERAL: """''$selfieFilePrefix[$ARGS[1]]<<temp_flashtitscnt>>''"><img src="images""" / $pc / $activities / $phone / $selfies / $selfieLoc[$ARGS[1]] / $titflash / ERROR: FAILED TO CONVERT LITERAL: """$selfieFilePrefix[$ARGS[1]]<<temp_flashtitscnt>>.jpg"     height="150"""" / ERROR: FAILED TO CONVERT LITERAL: """><""" / ERROR: FAILED TO CONVERT LITERAL: """a>  '""">>

-->
<<warn "CONVERSION ERROR e1e68b25911baaa0fa7ba82750a1bb84">>

		<</if>>

		-->
		<<warn "CONVERSION ERROR d1c68c098447ba760be9ce2f2ce3b9cd">>
		<<set $temp_flashtitscnt += 1>>
		<<if $temp_flashtitscnt <= $selfieTitflash[$ARGS[1]]>>
			jump'temp_loop6'

		<</if>>
	<</if>>
	<!-- !!loop for flashing ass selfies-->
	<<if $selfieAssflash[$location_var[$here][1]] > 0>>
		<center><b>Flashing ass selfies</b></center>
		<<set $temp_flashasscnt = 1>>
		<<warn 'JUMP MARKER ENCOUNTERED: :temp_loop7'>>
		<<set phone_locval = $selfieLoc[$ARGS[1]]_assflash[$temp_flashasscnt]>>
		<!-- FAILED TO CONVERT
			if $phone_locval = 1: *p '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$selfieLoc[ARGS[1]]>>'', ''assflash'', ''<<$selfieFilePrefix[ARGS[1]]>><<temp_flashasscnt>>''"><img src="images/pc/activities/phone/selfies/<<$selfieLoc[ARGS[1]]>>/assflash/<<$selfieFilePrefix[ARGS[1]]>><<temp_flashasscnt>>.jpg"     height="150" /></a>  '
		-----
			<<if getvar("$phone_locval") == 1>>
			<!-- FAILED TO CONVERT
	*p '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$selfieLoc[ARGS[1]]>>'', ''assflash'', ''<<$selfieFilePrefix[ARGS[1]]>><<temp_flashasscnt>>''"><img src="images/pc/activities/phone/selfies/<<$selfieLoc[ARGS[1]]>>/assflash/<<$selfieFilePrefix[ARGS[1]]>><<temp_flashasscnt>>.jpg"     height="150" /></a>  '
-----
	<<set  * ERROR: FAILED TO CONVERT LITERAL: """p '<a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec: gs ''phone_selfies_popup''""" , 'show' , '$selfieLoc[$ARGS[1]]' , 'assflash' , ERROR: FAILED TO CONVERT LITERAL: """''$selfieFilePrefix[$ARGS[1]]<<temp_flashasscnt>>''"><img src="images""" / $pc / $activities / $phone / $selfies / $selfieLoc[$ARGS[1]] / $assflash / ERROR: FAILED TO CONVERT LITERAL: """$selfieFilePrefix[$ARGS[1]]<<temp_flashasscnt>>.jpg"     height="150"""" / ERROR: FAILED TO CONVERT LITERAL: """><""" / ERROR: FAILED TO CONVERT LITERAL: """a>  '""">>

-->
<<warn "CONVERSION ERROR ecc9aaf1123662364f76dabd45903adc">>

		<</if>>

		-->
		<<warn "CONVERSION ERROR 60bb26ba27ae88852b6e987f0d7b5e66">>
		<<set $temp_flashasscnt += 1>>
		<<if $temp_flashasscnt <= $selfieAssflash[$ARGS[1]]>>
			jump'temp_loop7'

		<</if>>
	<</if>>
	<!-- !!loop for flashing pussy selfies-->
	<<if $selfiePussyflash[$location_var[$here][1]] > 0>>
		<center><b>Flashing pussy selfies</b></center>
		<<set $temp_flashpussycnt = 1>>
		<<warn 'JUMP MARKER ENCOUNTERED: :temp_loop8'>>
		<<set phone_locval = $selfieLoc[$ARGS[1]]_pussyflash[$temp_flashpussycnt]>>
		<!-- FAILED TO CONVERT
			if $phone_locval = 1: *p '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$selfieLoc[ARGS[1]]>>'', ''pussyflash'', ''<<$selfieFilePrefix[ARGS[1]]>><<temp_flashpussycnt>>''"><img src="images/pc/activities/phone/selfies/<<$selfieLoc[ARGS[1]]>>/pussyflash/<<$selfieFilePrefix[ARGS[1]]>><<temp_flashpussycnt>>.jpg"     height="150" /></a>  '
		-----
			<<if getvar("$phone_locval") == 1>>
			<!-- FAILED TO CONVERT
	*p '<a href="exec: gs ''phone_selfies_popup'', ''show'', ''<<$selfieLoc[ARGS[1]]>>'', ''pussyflash'', ''<<$selfieFilePrefix[ARGS[1]]>><<temp_flashpussycnt>>''"><img src="images/pc/activities/phone/selfies/<<$selfieLoc[ARGS[1]]>>/pussyflash/<<$selfieFilePrefix[ARGS[1]]>><<temp_flashpussycnt>>.jpg"     height="150" /></a>  '
-----
	<<set  * ERROR: FAILED TO CONVERT LITERAL: """p '<a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec: gs ''phone_selfies_popup''""" , 'show' , '$selfieLoc[$ARGS[1]]' , 'pussyflash' , ERROR: FAILED TO CONVERT LITERAL: """''$selfieFilePrefix[$ARGS[1]]<<temp_flashpussycnt>>''"><img src="images""" / $pc / $activities / $phone / $selfies / $selfieLoc[$ARGS[1]] / $pussyflash / ERROR: FAILED TO CONVERT LITERAL: """$selfieFilePrefix[$ARGS[1]]<<temp_flashpussycnt>>.jpg"     height="150"""" / ERROR: FAILED TO CONVERT LITERAL: """><""" / ERROR: FAILED TO CONVERT LITERAL: """a>  '""">>

-->
<<warn "CONVERSION ERROR d6c36f4d0c94c34a030a460c7eba0cf5">>

		<</if>>

		-->
		<<warn "CONVERSION ERROR 8a1e56f24cc2ddf2517952f9da421af8">>
		<<set $temp_flashpussycnt += 1>>
		<<if $temp_flashpussycnt <= $selfiePussyflash[$ARGS[1]]>>
			jump'temp_loop8'

		<</if>>
	<</if>>
<</if>>
<!-- !! Sets up a list of selfies taken by category-->
<!-- !! loops through the arrays of selfie flags (1 means that se;lfie has been taken by the player)-->
<!-- !! adds the image path for each taken selfie to the relevant array-->
<!-- !! So to check if any nude selfies are on the phone we can do   if arrsize('$selfieTakenNud') > 0:-->
<!-- !! then we can get the image paths for the elements of that array to get the pictures taken-->
<!-- !!	$selfieTakenClo[]-->
<!-- !!	$selfieTakenUnd[]-->
<!-- !!	$selfieTakenNud[]-->
<!-- !!	$selfieTakenTitflash[]-->
<!-- !!	$selfieTakenAssflash[]-->
<!-- !!	$selfieTakenPussyflash[]-->
<!-- !!	$selfieTakenBath[]-->
<!-- !!	$selfieTakenShower[]-->
<!-- !!	$selfieTakenSwim[]-->
<<if $location_var[$here][0] == 'PopulateSelfiesList'>>
	<<set $selfieTakenClo to null>>
	<<set $selfieTakenUnd to null>>
	<<set $selfieTakenNud to null>>
	<<set $selfieTakenTitflash to null>>
	<<set $selfieTakenAssflash to null>>
	<<set $selfieTakenPussyflash to null>>
	<<set $selfieTakenBath to null>>
	<<set $selfieTakenShower to null>>
	<<set $selfieTakenSwim to null>>
	<<set $temp_locationCnt = 1>>
	<<warn 'JUMP MARKER ENCOUNTERED: :LocationTakenLoop'>>
	<<set $CloMaxSize = $selfieClotot[$temp_locationCnt]>>
	<<if getvar("$CloMaxSize") > 0>>
		<<gs 'phone_selfies' 'populateClothesType' 'closelfie' '$selfieTakenClo' 'clothed' $CloMaxSize>>
	<</if>>
	<<set $CloMaxSize = $selfieSwimtot[$temp_locationCnt]>>
	<<if getvar("$CloMaxSize") > 0>>
		<<gs 'phone_selfies' 'populateClothesType' 'swim' '$selfieTakenSwim' 'bikini' $CloMaxSize>>
	<</if>>
	<<set $CloMaxSize = $selfieUndtot[$temp_locationCnt]>>
	<<if getvar("$CloMaxSize") > 0>>
		<<gs 'phone_selfies' 'populateClothesType' 'undselfie' '$selfieTakenUnd' 'underwear' $CloMaxSize>>
	<</if>>
	<<set $CloMaxSize = $selfieNudtot[$temp_locationCnt]>>
	<<if getvar("$CloMaxSize") > 0>>
		<<gs 'phone_selfies' 'populateClothesType' 'nudselfie' '$selfieTakenNud' 'nude' $CloMaxSize>>
	<</if>>
	<<set $CloMaxSize = $selfieBathtot[$temp_locationCnt]>>
	<<if getvar("$CloMaxSize") > 0>>
		<<gs 'phone_selfies' 'populateClothesType' 'bathselfie' '$selfieTakenBath' 'bath' $CloMaxSize>>
	<</if>>
	<<set $CloMaxSize = $selfieShowertot[$temp_locationCnt]>>
	<<if getvar("$CloMaxSize") > 0>>
		<<gs 'phone_selfies' 'populateClothesType' 'showerselfie' '$selfieTakenShower' 'shower' $CloMaxSize>>
	<</if>>
	<<set $CloMaxSize = $selfieTitflash[$temp_locationCnt]>>
	<<if getvar("$CloMaxSize") > 0>>
		<<gs 'phone_selfies' 'populateClothesType' 'titflash' '$selfieTakenTitflash' 'titflash' $CloMaxSize>>
	<</if>>
	<<set $CloMaxSize = $selfieAssflash[$temp_locationCnt]>>
	<<if getvar("$CloMaxSize") > 0>>
		<<gs 'phone_selfies' 'populateClothesType' 'assflash' '$selfieTakenAssflash' 'assflash' $CloMaxSize>>
	<</if>>
	<<set $CloMaxSize = $selfiePussyflash[$temp_locationCnt]>>
	<<if getvar("$CloMaxSize") > 0>>
		<<gs 'phone_selfies' 'populateClothesType' 'pussyflash' '$selfieTakenPussyflash' 'pussyflash' $CloMaxSize>>
	<</if>>
	<<set $temp_locationCnt += 1>>
	<<if $temp_locationCnt < arrsize('$selfieLoc')>>
		jump'LocationTakenLoop'

	<</if>>
<</if>>
<<if $location_var[$here][0] == 'populateClothesType'>>
	<<set $CloTypePrefix = $location_var[$here][1]>>
	<<set $CloArraySize = 'arrsize('$ARGS[2]')'>>
	<<set $CloFolder = $location_var[$here][3]>>
	<<set $CloVar = '$ARGS[2][$tmpIndex]'>>
	<<set $CloMaxSize = $ARGS[4]>>
	<<set $temp_clocnt = 0>>
	<<warn 'JUMP MARKER ENCOUNTERED: :tempCloTakenLoop'>>
	<<set phone_locval = $selfieLoc[$temp_locationCnt]_$CloTypePrefix[$temp_clocnt]>>
	<<if getvar("$phone_locval") == 1>>
		<<set dyneval 'tmpIndex = $CloArraySize'>>
		<!-- FAILED TO CONVERT
			dyneval "<<$CloVar>> = 'images/pc/activities/phone/selfies/<<$selfieLoc[temp_locationCnt]>>/<<$CloFolder>>/<<$selfieFilePrefix[temp_locationCnt]>><<temp_clocnt>>.jpg'"
		-----
			<<set dyneval "$CloVar = 'images / $pc / $activities / $phone / $selfies / $selfieLoc[$temp_locationCnt] / $CloFolder / ERROR: FAILED TO CONVERT LITERAL: """$selfieFilePrefix[$temp_locationCnt]<<temp_clocnt>>.jpg'"""">>

		-->
		<<warn "CONVERSION ERROR dfba84f54921683cea18898de899e21f">>
	<</if>>
	<<set $temp_clocnt += 1>>
	<<if $temp_clocnt <= $CloMaxSize>>
		jump'tempCloTakenLoop'

	<</if>>
<</if>>
<<if $location_var[$here][0] == 'listretrieve2'>>
	<<if getvar("$numnpc") == 1>>
		<h2>Dimka pictures</h2>
		<<set $photoloc = 'images/pc/pictures/dimka/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/dimka/selfies/'>>
		<<set $selfienpc = 'dimka'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 2>>
		<h2>Artem pictures</h2>
		<<set $photoloc = 'images/pc/pictures/artem/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/artem/selfies/'>>
		<<set $selfienpc = 'artem'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 3>>
		<h2>Ivan pictures</h2>
		<<set $photoloc = 'images/pc/pictures/ivan/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/ivan/selfies/'>>
		<<set $selfienpc = 'ivan'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 4>>
		<h2>Igor pictures</h2>
		<<set $photoloc = 'images/pc/pictures/igor/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/igor/selfies/'>>
		<<set $selfienpc = 'igor'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 5>>
		<h2>Fedor pictures</h2>
		<<set $photoloc = 'images/pc/pictures/fedor/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/fedor/selfies/'>>
		<<set $selfienpc = 'fedor'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 6>>
		<h2>Petka pictures</h2>
		<<set $photoloc = 'images/pc/pictures/petka/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/petka/selfies/'>>
		<<set $selfienpc = 'petka'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 7>>
		<h2>Lesco pictures</h2>
		<<set $photoloc = 'images/pc/pictures/lesco/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/lesco/selfies/'>>
		<<set $selfienpc = 'lesco'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 8>>
		<h2>Svyatoslav pictures</h2>
		<<set $photoloc = 'images/pc/pictures/svyatoslav/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/svyatoslav/selfies/'>>
		<<set $selfienpc = 'svyatoslav'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 9>>
		<h2>Vitek pictures</h2>
		<<set $photoloc = 'images/pc/pictures/vitek/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/vitek/selfies/'>>
		<<set $selfienpc = 'vitek'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 10>>
		<h2>Dan pictures</h2>
		<<set $photoloc = 'images/pc/pictures/dan/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/dan/selfies/'>>
		<<set $selfienpc = 'dan'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 11>>
		<h2>Vasily pictures</h2>
		<<set $photoloc = 'images/pc/pictures/vasily/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/vasily/selfies/'>>
		<<set $selfienpc = 'vasily'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 12>>
		<h2>Julia pictures</h2>
		<<set $photoloc = 'images/pc/pictures/julia/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/julia/selfies/'>>
		<<set $selfienpc = 'julia'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 13>>
		<h2>Lariska pictures</h2>
		<<set $photoloc = 'images/pc/pictures/lariska/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/lariska/selfies/'>>
		<<set $selfienpc = 'lariska'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 14>>
		<h2>Katja pictures</h2>
		<<set $photoloc = 'images/pc/pictures/katja/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/katja/selfies/'>>
		<<set $selfienpc = 'katja'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 15>>
		<h2>Vicky pictures</h2>
		<<set $photoloc = 'images/pc/pictures/vicky/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/vicky/selfies/'>>
		<<set $selfienpc = 'vicky'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 16>>
		<h2>Natasha pictures</h2>
		<<set $photoloc = 'images/pc/pictures/natasha/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/natasha/selfies/'>>
		<<set $selfienpc = 'natasha'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 17>>
		<h2>Inna pictures</h2>
		<<set $photoloc = 'images/pc/pictures/inna/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/inna/selfies/'>>
		<<set $selfienpc = 'inna'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 18>>
		<h2><<npc 'A18'>><</npc>> pictures</h2>
		<<set $photoloc = 'images/pc/pictures/<<npc 'A18'>><</npc>>/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/<<npc 'A18'>><</npc>>/selfies/'>>
		<<set $selfienpc = '<<npc 'A18'>><</npc>>'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 19>>
		<h2>Lina pictures</h2>
		<<set $photoloc = 'images/pc/pictures/lina/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/lina/selfies/'>>
		<<set $selfienpc = 'lina'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 20>>
		<h2>Lena pictures</h2>
		<<set $photoloc = 'images/pc/pictures/lena/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/lena/selfies/'>>
		<<set $selfienpc = 'lena'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 21>>
		<h2>Lera pictures</h2>
		<<set $photoloc = 'images/pc/pictures/lera/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/lera/selfies/'>>
		<<set $selfienpc = 'lera'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 22>>
		<h2>Bella pictures</h2>
		<<set $photoloc = 'images/pc/pictures/bella/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/bella/selfies/'>>
		<<set $selfienpc = 'bella'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 23>>
		<h2>Albina pictures</h2>
		<<set $photoloc = 'images/pc/pictures/albina/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/albina/selfies/'>>
		<<set $selfienpc = 'albina'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 24>>
		<h2>Pauline pictures</h2>
		<<set $photoloc = 'images/pc/pictures/pauline/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/pauline/selfies/'>>
		<<set $selfienpc = 'pauline'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 25>>
		<h2>Sonia pictures</h2>
		<<set $photoloc = 'images/pc/pictures/sonia/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/girl/sonia/selfies/'>>
		<<set $selfienpc = 'sonia'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 45>>
		<<set $loopmaxsveta = 25>>
		<<set $loopmaxsex = 9>>
	<<elseif getvar("$numnpc") == 26>>
		<h2>Anatoly pictures</h2>
		<<set $photoloc = 'images/pc/pictures/anatoly/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/teacher/anatoly/selfies/'>>
		<<set $selfienpc = 'anatoly'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 28>>
		<h2>Stepfather pictures</h2>
		<<set $photoloc = 'images/pc/pictures/vladimir/'>>
		<<set $imgloc = 'images/characters/pavlovsk/resident/vladimir/selfies/'>>
		<<set $selfienpc = 'vladimir'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 29>>
		<h2>Mother pictures</h2>
		<<set $photoloc = 'images/pc/pictures/mom/'>>
		<<set $imgloc = 'images/characters/pavlovsk/resident/mom/selfies/'>>
		<<set $selfienpc = 'mom'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 33>>
		<h2>Anya pictures</h2>
		<<set $photoloc = 'images/pc/pictures/anya/'>>
		<<set $imgloc = 'images/characters/pavlovsk/resident/anya/selfies/'>>
		<<set $selfienpc = 'anya'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 34>>
		<h2>Kolka pictures</h2>
		<<set $photoloc = 'images/pc/pictures/kolka/'>>
		<<set $imgloc = 'images/characters/pavlovsk/resident/kolka/selfies/'>>
		<<set $selfienpc = 'kolka'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 35>>
		<h2>Father pictures</h2>
		<<set $photoloc = 'images/pc/pictures/???/'>>
		<!-- !! Where are these located?-->
		<<set $imgloc = 'images/characters/pavlovsk/resident/???/selfies/'>>
		<<set $selfienpc = 'father'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 54>>
		<h2>Uncle Misha pictures</h2>
		<<set $photoloc = 'images/pc/pictures/misha/'>>
		<<set $imgloc = 'images/characters/pavlovsk/resident/misha/selfies/'>>
		<<set $selfienpc = 'misha'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 56>>
		<h2>Roma pictures</h2>
		<<set $photoloc = 'images/pc/pictures/roma/'>>
		<<set $imgloc = 'images/characters/pavlovsk/resident/roma/selfies/'>>
		<<set $selfienpc = 'roma'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 57>>
		<h2>Rex pictures</h2>
		<<set $photoloc = 'images/pc/pictures/rex/'>>
		<<set $imgloc = 'images/characters/pavlovsk/resident/rex/selfies/'>>
		<<set $selfienpc = 'rex'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 69>>
		<h2>Mikhail pictures</h2>
		<<set $photoloc = 'images/pc/pictures/mikhail/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/teacher/mikhail/selfies/'>>
		<<set $selfienpc = 'coachmikhail'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 54>>
		<h2>Sergey pictures</h2>
		<<set $photoloc = 'images/pc/pictures/sergey/'>>
		<<set $imgloc = 'images/characters/pavlovsk/resident/sergey/selfies/'>>
		<<set $selfienpc = 'sergey'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 128>>
		<h2>Makar pictures</h2>
		<<set $photoloc = 'images/pc/pictures/makar/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/teacher/makar/selfies/'>>
		<<set $selfienpc = 'makar'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 129>>
		<h2>Serafim pictures</h2>
		<<set $photoloc = 'images/pc/pictures/serafim/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/teacher/serafim/selfies/'>>
		<<set $selfienpc = 'serafim'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 130>>
		<h2>Ilya pictures</h2>
		<<set $photoloc = 'images/pc/pictures/ilya/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/teacher/ilya/selfies/'>>
		<<set $selfienpc = 'ilya'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 131>>
		<h2>Viktor pictures</h2>
		<<set $photoloc = 'images/pc/pictures/viktor/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/teacher/viktor/selfies/'>>
		<<set $selfienpc = 'viktor'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 132>>
		<h2>Ruslan pictures</h2>
		<<set $photoloc = 'images/pc/pictures/ruslan/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/teacher/ruslan/selfies/'>>
		<<set $selfienpc = 'ruslan'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 133>>
		<h2>Rolan pictures</h2>
		<<set $photoloc = 'images/pc/pictures/rolan/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/teacher/rolan/selfies/'>>
		<<set $selfienpc = 'rolan'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 134>>
		<h2>Aleksandrina pictures</h2>
		<<set $photoloc = 'images/pc/pictures/aleksandrina/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/teacher/aleksandrina/selfies/'>>
		<<set $selfienpc = 'aleksandrina'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 135>>
		<h2>Yeva pictures</h2>
		<<set $photoloc = 'images/pc/pictures/yeva/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/teacher/yeva/selfies/'>>
		<<set $selfienpc = 'yeva'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 136>>
		<h2>Olga pictures</h2>
		<<set $photoloc = 'images/pc/pictures/olga/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/teacher/olga/selfies/'>>
		<<set $selfienpc = 'olga'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 137>>
		<h2>Raven pictures</h2>
		<<set $photoloc = 'images/pc/pictures/raven/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/teacher/raven/selfies/'>>
		<<set $selfienpc = 'raven'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 138>>
		<h2>Arina pictures</h2>
		<<set $photoloc = 'images/pc/pictures/arina/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/teacher/arina/selfies/'>>
		<<set $selfienpc = 'arina'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 139>>
		<h2>Stasya pictures</h2>
		<<set $photoloc = 'images/pc/pictures/stasya/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/stasya/selfies/'>>
		<<set $selfienpc = 'stasya'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 140>>
		<h2>Lizaveta pictures</h2>
		<<set $photoloc = 'images/pc/pictures/lizaveta/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/lizaveta/selfies/'>>
		<<set $selfienpc = 'lizaveta'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 141>>
		<h2>Veronika pictures</h2>
		<<set $photoloc = 'images/pc/pictures/veronika/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/veronika/selfies/'>>
		<<set $selfienpc = 'veronika'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 142>>
		<h2>Zinaida pictures</h2>
		<<set $photoloc = 'images/pc/pictures/zinaida/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/zinaida/selfies/'>>
		<<set $selfienpc = 'zinaida'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 143>>
		<h2>Alyona pictures</h2>
		<<set $photoloc = 'images/pc/pictures/alyona/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/alyona/selfies/'>>
		<<set $selfienpc = 'alyona'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 144>>
		<h2>Anushka pictures</h2>
		<<set $photoloc = 'images/pc/pictures/anushka/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/girl/anushka/selfies/'>>
		<<set $selfienpc = 'anushka'>>
		<<set $loopmaxev = 6>>
		<<set $loopmax = 22>>
		<<set $loopmaxsveta = 2>>
		<<set $loopmaxsex = 7>>
	<<elseif getvar("$numnpc") == 145>>
		<h2>Ekaterina pictures</h2>
		<<set $photoloc = 'images/pc/pictures/ekaterina/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/ekaterina/selfies/'>>
		<<set $selfienpc = 'ekaterina'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 146>>
		<h2>Marcus pictures</h2>
		<<set $photoloc = 'images/pc/pictures/marcus/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/marcus/selfies/'>>
		<<set $selfienpc = 'marcus'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 147>>
		<h2>Andrey pictures</h2>
		<<set $photoloc = 'images/pc/pictures/andrey/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/andrey/selfies/'>>
		<<set $selfienpc = 'andrey'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 148>>
		<h2>Mefodiy pictures</h2>
		<<set $photoloc = 'images/pc/pictures/mefodiy/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/mefodiy/selfies/'>>
		<<set $selfienpc = 'mefodiy'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 149>>
		<h2>Lazar pictures</h2>
		<<set $photoloc = 'images/pc/pictures/lazar/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/lazar/selfies/'>>
		<<set $selfienpc = 'lazar'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 150>>
		<h2>Erast pictures</h2>
		<<set $photoloc = 'images/pc/pictures/erast/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/erast/selfies/'>>
		<<set $selfienpc = 'erast'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 151>>
		<h2>Evgeny pictures</h2>
		<<set $photoloc = 'images/pc/pictures/evgeny/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/evgeny/selfies/'>>
		<<set $selfienpc = 'evgeny'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 152>>
		<h2>Feofan pictures</h2>
		<<set $photoloc = 'images/pc/pictures/feofan/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/feofan/selfies/'>>
		<<set $selfienpc = 'feofan'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 153>>
		<h2>Gerasim pictures</h2>
		<<set $photoloc = 'images/pc/pictures/gerasim/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/gerasim/selfies/'>>
		<<set $selfienpc = 'gerasim'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 154>>
		<h2>Radomir pictures</h2>
		<<set $photoloc = 'images/pc/pictures/radomir/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/radomir/selfies/'>>
		<<set $selfienpc = 'radomir'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 155>>
		<h2>Lavrenti pictures</h2>
		<<set $photoloc = 'images/pc/pictures/lavrenti/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/lavrenti/selfies/'>>
		<<set $selfienpc = 'lavrenti'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 156>>
		<h2>Arkadi pictures</h2>
		<<set $photoloc = 'images/pc/pictures/arkadi/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/arkadi/selfies/'>>
		<<set $selfienpc = 'arkadi'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 157>>
		<h2>Roman pictures</h2>
		<<set $photoloc = 'images/pc/pictures/roman/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/roman/selfies/'>>
		<<set $selfienpc = 'roman'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 158>>
		<h2>Valentin pictures</h2>
		<<set $photoloc = 'images/pc/pictures/valentin/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/valentin/selfies/'>>
		<<set $selfienpc = 'valentin'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 159>>
		<h2>Petia pictures</h2>
		<<set $photoloc = 'images/pc/pictures/petia/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/petia/selfies/'>>
		<<set $selfienpc = 'petia'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 165>>
		<h2>Vanya pictures</h2>
		<<set $photoloc = 'images/pc/pictures/vanya/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/vanya/selfies/'>>
		<<set $selfienpc = 'vanya'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<elseif getvar("$numnpc") == 189>>
		<h2>Nikolai pictures</h2>
		<<set $photoloc = 'images/pc/pictures/nikolai/'>>
		<<set $imgloc = 'images/characters/pavlovsk/school/boy/nikolai/selfies/'>>
		<<set $selfienpc = 'nikolai'>>
		<<set $loopmaxev = 0>>
		<<set $loopmax = 0>>
		<<set $loopmaxsveta = 0>>
		<<set $loopmaxsex = 0>>
	<<else>>
		<!-- !! New npcs with selfies should be included above-->
	<</if>>
	<<if getvar("$loopmaxev") > 0>>
		<center><b>Pictures</b></center>
		<<set $i = 1>>
		<<warn 'JUMP MARKER ENCOUNTERED: :temp_loopev'>>
		<<set selfie = $selfienpcphoto[$i]>>
		<!-- FAILED TO CONVERT
			if $selfie = 1: *p '<a href="exec: gs ''phone_selfies_popup'', ''show2'', ''<<$photoloc>>'', ''<<i>>''"><img src="<<$photoloc>><<i>>.jpg"     height="150" /></a>  '
		-----
			<<if getvar("$selfie") == 1>>
			<!-- FAILED TO CONVERT
	*p '<a href="exec: gs ''phone_selfies_popup'', ''show2'', ''<<$photoloc>>'', ''<<i>>''"><img src="<<$photoloc>><<i>>.jpg"     height="150" /></a>  '
-----
	<<set  * ERROR: FAILED TO CONVERT LITERAL: """p '<a href""" = "exec: gs 'phone_selfies_popup', 'show2', '$photoloc', 'i'"><img src="$photoloci.jpg"     height="150" / ERROR: FAILED TO CONVERT LITERAL: """><""" / ERROR: FAILED TO CONVERT LITERAL: """a>  '""">>

-->
<<warn "CONVERSION ERROR 7be1370fc2fca2e6a2647a7e99ca71bc">>

		<</if>>

		-->
		<<warn "CONVERSION ERROR f9af09b4f9d9e0c3d3b3cc1a42893831">>
		<<set $i += 1>>
		<<if $i <= $loopmax>>
			jump'temp_loopev'

		<</if>>
	<</if>>
	<<if getvar("$loopmax") > 0>>
		<center><b>Regular selfies</b></center>
		<<set $i = 1>>
		<<warn 'JUMP MARKER ENCOUNTERED: :temp_loopselfies'>>
		<<set selfie = $selfienpc[$i]>>
		<!-- FAILED TO CONVERT
			if $selfie = 1: *p '<a href="exec: gs ''phone_selfies_popup'', ''show2'', ''<<$imgloc>>'', ''<<i>>''"><img src="<<$imgloc>><<i>>.jpg"     height="150" /></a>  '
		-----
			<<if getvar("$selfie") == 1>>
			<!-- FAILED TO CONVERT
	*p '<a href="exec: gs ''phone_selfies_popup'', ''show2'', ''<<$imgloc>>'', ''<<i>>''"><img src="<<$imgloc>><<i>>.jpg"     height="150" /></a>  '
-----
	<<set  * ERROR: FAILED TO CONVERT LITERAL: """p '<a href""" = "exec: gs 'phone_selfies_popup', 'show2', '$imgloc', 'i'"><img src="$imgloci.jpg"     height="150" / ERROR: FAILED TO CONVERT LITERAL: """><""" / ERROR: FAILED TO CONVERT LITERAL: """a>  '""">>

-->
<<warn "CONVERSION ERROR 860c43566710c52712b9cd331996a043">>

		<</if>>

		-->
		<<warn "CONVERSION ERROR 50c42e9dc68084e612a38a85465341fa">>
		<<set $i += 1>>
		<<if $i <= $loopmax>>
			jump'temp_loopselfies'

		<</if>>
	<</if>>
	<<if getvar("$loopmaxsveta") > 0>>
		<center><b>Selfies with me</b></center>
		<<set $i = 1>>
		<<warn 'JUMP MARKER ENCOUNTERED: :temp_loopselfiessveta'>>
		<<set selfie = $selfienpcsveta[$i]>>
		<!-- FAILED TO CONVERT
			if $selfie = 1: *p '<a href="exec: gs ''phone_selfies_popup'', ''show2'', ''<<$imgloc>>sveta/'', ''<<i>>''"><img src="<<$imgloc>>sveta/<<i>>.jpg"     height="150" /></a>  '
		-----
			<<if getvar("$selfie") == 1>>
			<!-- FAILED TO CONVERT
	*p '<a href="exec: gs ''phone_selfies_popup'', ''show2'', ''<<$imgloc>>sveta/'', ''<<i>>''"><img src="<<$imgloc>>sveta/<<i>>.jpg"     height="150" /></a>  '
-----
	<<set  * ERROR: FAILED TO CONVERT LITERAL: """p '<a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec: gs ''phone_selfies_popup''""" , 'show2' , ''$imglocsveta / '' , ERROR: FAILED TO CONVERT LITERAL: """''<<i>>''"><img src="$imglocsveta""" / ERROR: FAILED TO CONVERT LITERAL: """<<i>>.jpg"     height="150"""" / ERROR: FAILED TO CONVERT LITERAL: """><""" / ERROR: FAILED TO CONVERT LITERAL: """a>  '""">>

-->
<<warn "CONVERSION ERROR d6e900eda9811ff55ec354dce7af97c7">>

		<</if>>

		-->
		<<warn "CONVERSION ERROR 834df3f1cc0e1ac7210565908f44e331">>
		<<set $i += 1>>
		<<if $i <= $loopmaxsveta>>
			jump'temp_loopselfiessveta'

		<</if>>
	<</if>>
	<<if getvar("$loopmaxsex") > 0>>
		<center><b>Sex selfies</b></center>
		<<set $i = 1>>
		<<warn 'JUMP MARKER ENCOUNTERED: :temp_loopselfiessex'>>
		<<set selfie = $selfienpcsex[$i]>>
		<!-- FAILED TO CONVERT
			if $selfie = 1: *p '<a href="exec: gs ''phone_selfies_popup'', ''show2'', ''<<$imgloc>>sex/'', ''<<i>>''"><img src="<<$imgloc>>sex/<<i>>.jpg"     height="150" /></a>  '
		-----
			<<if getvar("$selfie") == 1>>
			<!-- FAILED TO CONVERT
	*p '<a href="exec: gs ''phone_selfies_popup'', ''show2'', ''<<$imgloc>>sex/'', ''<<i>>''"><img src="<<$imgloc>>sex/<<i>>.jpg"     height="150" /></a>  '
-----
	<<set  * ERROR: FAILED TO CONVERT LITERAL: """p '<a href""" = ERROR: FAILED TO CONVERT LITERAL: """"exec: gs ''phone_selfies_popup''""" , 'show2' , ''$imglocsex / '' , ERROR: FAILED TO CONVERT LITERAL: """''<<i>>''"><img src="$imglocsex""" / ERROR: FAILED TO CONVERT LITERAL: """<<i>>.jpg"     height="150"""" / ERROR: FAILED TO CONVERT LITERAL: """><""" / ERROR: FAILED TO CONVERT LITERAL: """a>  '""">>

-->
<<warn "CONVERSION ERROR 0e1f0a51c81310e398264d1ce49dc337">>

		<</if>>

		-->
		<<warn "CONVERSION ERROR 525d68992b96548e7a7b8bc7774e1953">>
		<<set $i += 1>>
		<<if $i <= $loopmaxsex>>
			jump'temp_loopselfiessex'

		<</if>>
	<</if>>
	<<act 'Back'>>
		<<gt 'phone_selfies' 'selfies'>>
	<</act>>
	<!-- !gt $loc, $loc_arg-->
	<<actCLA 'Stop watching selfies'>>
		<<gt $menu_loc $menu_arg>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'family'>>
	<h2>Family members</h2>
	<<set $textgrup = ''>>
	<<set $count1 = 0>>
	<<set $i = 1>>
	<center><table cellspacing="3">
	<<warn 'JUMP MARKER ENCOUNTERED: :familygruploop'>>
	<<if getvar("$count1") == 6>>
		<<set $textgrup += '<tr>'>>

	<</if>>
	<<if $npc('A' + $i).grupTipe == 7 and $npc('A' + $i).selfieon == 1>>
		<<set $count1 += 1>>
		<!-- FAILED TO CONVERT
			$textgrup += '' + '<td bgcolor=<<$bcolor2>> align="center"><img  height="100" src="images/characters/shared/headshots_main/<<i>>.jpg"><br>' + <<=$npc('A<<i>>').selfie>>
		-----
			<<set $textgrup += '' + ERROR: FAILED TO CONVERT LITERAL: """'<td bgcolor=$bcolor2 align="center"><img  height="100" src="images""" / $characters / $shared / $headshots_main / ERROR: FAILED TO CONVERT LITERAL: """<<i>>.jpg"><br>'""" + $npc('A' + $i).selfie>>

		-->
		<<warn "CONVERSION ERROR 18442ded3d70805c911b1599b7560d71">>
	<</if>>
	<<if getvar("$count1") < 6 and $npc('A' + $i).grupTipe == 7>>
		<<set $textgrup += '</td>'>>
	<<elseif getvar("$count1") == 6 and $npc('A' + $i).grupTipe == 7>>
		<<set $textgrup += '</td></tr><tr>'>> <<set $count1 = 0>>
	<</if>>
	<<set $i += 1>>
	<<if $i <= $aarraynumber>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump familygruploop'>>

	<</if>>
	<<$textgrup>>
	<<act 'Back'>>
		<<gt 'phone_selfies' 'selfies'>>
	<</act>>
	<!-- !gt $loc, $loc_arg-->
	<<actCLA 'Stop watching selfies'>>
		<<gt $menu_loc $menu_arg>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'school'>>
	<h2>School friends</h2>
	<<set $textgrup = ''>>
	<<set $count1 = 0>>
	<<set $i = 1>>
	<center><table cellspacing="3">
	<<warn 'JUMP MARKER ENCOUNTERED: :schoolgruploop'>>
	<<if getvar("$count1") == 6>>
		<<set $textgrup += '<tr>'>>

	<</if>>
	<<if ($npc('A' + $i).grupTipe == 1 or $npc('A' + $i).grupTipe == 2 or $npc('A' + $i).grupTipe == 3 or $npc('A' + $i).grupTipe == 4 or $npc('A' + $i).grupTipe == 5) and $npc('A' + $i).selfieon == 1>>
		<<set $count1 += 1>>
		<!-- FAILED TO CONVERT
			$textgrup += '' + '<td bgcolor=<<$bcolor2>> align="center"><img  height="100" src="images/characters/shared/headshots_main/<<i>>.jpg"><br>' + <<=$npc('A<<i>>').selfie>>
		-----
			<<set $textgrup += '' + ERROR: FAILED TO CONVERT LITERAL: """'<td bgcolor=$bcolor2 align="center"><img  height="100" src="images""" / $characters / $shared / $headshots_main / ERROR: FAILED TO CONVERT LITERAL: """<<i>>.jpg"><br>'""" + $npc('A' + $i).selfie>>

		-->
		<<warn "CONVERSION ERROR 18442ded3d70805c911b1599b7560d71">>
	<</if>>
	<<if getvar("$count1") < 6 and ($npc('A' + $i).grupTipe == 1 or $npc('A' + $i).grupTipe == 2 or $npc('A' + $i).grupTipe == 3 or $npc('A' + $i).grupTipe == 4 or $npc('A' + $i).grupTipe == 5)>>
		<<set $textgrup += '</td>'>>
	<<elseif getvar("$count1") == 6 and ($npc('A' + $i).grupTipe == 1 or $npc('A' + $i).grupTipe == 2 or $npc('A' + $i).grupTipe == 3 or $npc('A' + $i).grupTipe == 4 or $npc('A' + $i).grupTipe == 5)>>
		<<set $textgrup += '</td></tr><tr>'>> <<set $count1 = 0>>
	<</if>>
	<<set $i += 1>>
	<<if $i <= $aarraynumber>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump schoolgruploop'>>

	<</if>>
	<<$textgrup>>
	<<act 'Back'>>
		<<gt 'phone_selfies' 'selfies'>>
	<</act>>
	<!-- !gt $loc, $loc_arg-->
	<<actCLA 'Stop watching selfies'>>
		<<gt $menu_loc $menu_arg>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'teacher'>>
	<h2>Teachers</h2>
	<<set $textgrup = ''>>
	<<set $count1 = 0>>
	<<set $i = 1>>
	<center><table cellspacing="3">
	<<warn 'JUMP MARKER ENCOUNTERED: :teachergruploop'>>
	<<if getvar("$count1") == 6>>
		<<set $textgrup += '<tr>'>>

	<</if>>
	<<if $npc('A' + $i).grupTipe == 6 and $npc('A' + $i).selfieon == 1>>
		<<set $count1 += 1>>
		<!-- FAILED TO CONVERT
			$textgrup += '' + '<td bgcolor=<<$bcolor2>> align="center"><img  height="100" src="images/characters/shared/headshots_main/<<i>>.jpg"><br>' + <<=$npc('A<<i>>').selfie>>
		-----
			<<set $textgrup += '' + ERROR: FAILED TO CONVERT LITERAL: """'<td bgcolor=$bcolor2 align="center"><img  height="100" src="images""" / $characters / $shared / $headshots_main / ERROR: FAILED TO CONVERT LITERAL: """<<i>>.jpg"><br>'""" + $npc('A' + $i).selfie>>

		-->
		<<warn "CONVERSION ERROR 18442ded3d70805c911b1599b7560d71">>
	<</if>>
	<<if getvar("$count1") < 6 and $npc('A' + $i).grupTipe == 6>>
		<<set $textgrup += '</td>'>>
	<<elseif getvar("$count1") == 6 and $npc('A' + $i).grupTipe == 6>>
		<<set $textgrup += '</td></tr><tr>'>> <<set $count1 = 0>>
	<</if>>
	<<set $i += 1>>
	<<if $i <= $aarraynumber>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump teachergruploop'>>

	<</if>>
	<<$textgrup>>
	<<act 'Back'>>
		<<gt 'phone_selfies' 'selfies'>>
	<</act>>
	<!-- !gt $loc, $loc_arg-->
	<<actCLA 'Stop watching selfies'>>
		<<gt $menu_loc $menu_arg>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'pavlovsk'>>
	<h2>Pavlovsk friends</h2>
	<<set $textgrup = ''>>
	<<set $count1 = 0>>
	<<set $i = 1>>
	<center><table cellspacing="3">
	<<warn 'JUMP MARKER ENCOUNTERED: :pavgruploop'>>
	<<if getvar("$count1") == 6>>
		<<set $textgrup += '<tr>'>>

	<</if>>
	<<if $npc('A' + $i).grupTipe == 8 and $npc('A' + $i).selfieon == 1>>
		<<set $count1 += 1>>
		<!-- FAILED TO CONVERT
			$textgrup += '' + '<td bgcolor=<<$bcolor2>> align="center"><img  height="100" src="images/characters/shared/headshots_main/<<i>>.jpg"><br>' + <<=$npc('A<<i>>').selfie>>
		-----
			<<set $textgrup += '' + ERROR: FAILED TO CONVERT LITERAL: """'<td bgcolor=$bcolor2 align="center"><img  height="100" src="images""" / $characters / $shared / $headshots_main / ERROR: FAILED TO CONVERT LITERAL: """<<i>>.jpg"><br>'""" + $npc('A' + $i).selfie>>

		-->
		<<warn "CONVERSION ERROR 18442ded3d70805c911b1599b7560d71">>
	<</if>>
	<<if getvar("$count1") < 6 and $npc('A' + $i).grupTipe == 8>>
		<<set $textgrup += '</td>'>>
	<<elseif getvar("$count1") == 6 and $npc('A' + $i).grupTipe == 8>>
		<<set $textgrup += '</td></tr><tr>'>> <<set $count1 = 0>>
	<</if>>
	<<set $i += 1>>
	<<if $i <= $aarraynumber>>
		<<warn 'JUMP COMMAND ENCOUNTERED: jump pavgruploop'>>

	<</if>>
	<<$textgrup>>
	<<act 'Back'>>
		<<gt 'phone_selfies' 'selfies'>>
	<</act>>
	<!-- !gt $loc, $loc_arg-->
	<<actCLA 'Stop watching selfies'>>
		<<gt $menu_loc $menu_arg>>
	<</actCLA>>
<</if>>
<<if $location_var[$here][0] == 'city'>>
	<h2>City friends</h2>
	<<act 'Back'>>
		<<gt 'phone_selfies' 'selfies'>>
	<</act>>
	<!-- !gt $loc, $loc_arg-->
	<<actCLA 'Stop watching selfies'>>
		<<gt $menu_loc $menu_arg>>
	<</actCLA>>
<</if>>
