:: Purse[menu]
	<<ret>>
	<h2>Inventory</h2>
	<<if  $wardrobe.purseEquipped>>
		<p>You are carrying your items in your purse.</p>
	<<else>>
		<p>You are carrying your items in your pockets.</p>
	<</if>>

	<div class="itemsOverview">
		<<for _itemId, _data range $inventory.itemsInContainer('default',false)>>
			<<set _styleClass = 'item linkedImage '>>
			<<set _itemData = $inventory.metadata(_itemId)>>
			<<capture _itemData>>
				<div @class='_styleClass'>
					<<if _itemData.image>>
						<<image _itemData.image>>
					<</if>>
					<span class="count">_data.count</span>
					<<set _itemDesc = `_itemData.label<br/><<if _itemData.desc>>_itemData.desc<</if>>`>>
					<<if _itemData.passage>>
						<<linkWithTooltip '' _itemDesc>><<gt _itemData.passage>><</linkWithTooltip>>
					<<else>>
						<<textWithTooltip ''>>_itemDesc<</textWithTooltip>>
					<</if>>
				</div>
			<</capture>>
		<</for>>
	</div>

	<<set _ownedCars =  $inventory.itemsInContainerByMetadata({type:'car'},'vehicles',false)>>
	<<if !jQuery.isEmptyObject(_ownedCars)>>
		<h2>Cars</h2>
		You own the following cars:
		<<for _carId, _carData range _ownedCars>>
			<div>
				_carData.label:
				<<if _carId == $pc.vehicleInUse>>
					You are driving this car.
				<<else>>
					You remember it being parked at
					/*<<switch _carData.parkedAt>>
						<<case 'pav_complex'>>
							near your parents apartment.
						<<case 'city_industrial'>>
							in the cities industrial district.
						<<default>>
							somewhere.
					<</switch>>*/
					<<set _parkedAtLocation = setup.getLocation(_carData.parkedAt)>>
					<<if _parkedAtLocation.label>>_parkedAtLocation.label<<else>>_carData.parkedAt<</if>>.						
				<</if>>
			</div>
		<</for>>
	<</if>>
