:: wardrobeFilterWidgets[widget]
	<<widget 'wardrobeFiltersReset'>>
		<<set $wardrobeFilter = {
			location: [0,1,2],
			quality: [1,2,3,4,5,6,7],
			thinness: [1,2,3,4,5,6],
			topcut:[0,1,2,3,4],
			pantsShortness:[0,1,2,3,4,5,6],
			skirtShortness:[0,1,2,3,4,5,6],
			style2:[0,1,2,3,4],
			cut:[1,2,3,4,5,6],
			heels:[1,2,3,4,5,6],
		}>>
	<</widget>>

:: wardrobe_type_overview[menu]
	<<set $wardrobeOverviewArgs = clone($location_var[$here])>>
	<<set _showLocation to getvar("$wardrobe_overview_locations")>>

	<<if !$wardrobeFilter>>
		<<wardrobeFiltersReset>>
	<</if>>
	

	<<set _filterFields = []>>
	<<set _displayedType = $location_var[$here][0]>>

	<div id="wardrobe_type_overview_filter">
	<h2>Filters</h2>

	<span>Location:</span>
		<<multiselect '$wardrobeFilter.location' `[{id:0,label:"Wardrobe"},{id:1,label:"Storage"},{id:2,label:"Disposal"}]`>>
			<<replace "#itemsOverview">>
				<<itemsOverview _displayedType undefined undefined undefined undefined `objectFilter($wardrobeFilter,_filterFields)`>>
			<</replace>>
		<</multiselect>>
		<<run _filterFields.push('location')>>
	<<if _displayedType != 'purse'>>
		<span>Quality:</span>
			<<multiselect '$wardrobeFilter.quality' `[{id:1,label:"Crappy"},{id:2,label:"Very Low"},{id:3,label:"Low"},{id:4,label:"Average"},{id:5,label:"Reasonable"},{id:6,label:"Good"},{id:7,label:"Outstanding"}]`>>
				<<replace "#itemsOverview">>
					<<itemsOverview _displayedType undefined undefined undefined undefined `objectFilter($wardrobeFilter,_filterFields)`>>
				<</replace>>
			<</multiselect>>
			<<run _filterFields.push('quality')>>
	<</if>>
	<<if _displayedType == 'clothes'>>
		<span>Thinness:</span>
			<<multiselect '$wardrobeFilter.thinness' `[{id:1,label:"Obscures your figure"},{id:2,label:"Somewhat obscures your figure"},{id:3,label:"Somewhat shows your figure"},{id:4,label:"Shows your figure"},{id:5,label:"Shows every detail of your figure"},{id:6,label:"Reveals your intimate areas"}]`>>
				<<replace "#itemsOverview">>
					<<itemsOverview _displayedType undefined undefined undefined undefined `objectFilter($wardrobeFilter,_filterFields)`>>
				<</replace>>
			<</multiselect>>
			<<run _filterFields.push('thinness')>>
		<span>Top:</span>
			<<multiselect '$wardrobeFilter.topcut' `[{id:1,label:"Modest"},{id:2,label:"Regular"},{id:3,label:"Daring"},{id:4,label:"Revealing"},{id:0,label:"None"}]`>>
				<<replace "#itemsOverview">>
					<<itemsOverview _displayedType undefined undefined undefined undefined `objectFilter($wardrobeFilter,_filterFields)`>>
				<</replace>>
			<</multiselect>>
			<<run _filterFields.push('topcut')>>
		<span>Pants:</span>
			<<multiselect '$wardrobeFilter.pantsShortness' `[{id:1,label:"Long"},{id:2,label:"Calf-length"},{id:3,label:"Knee-length"},{id:4,label:"Thigh-length"},{id:5,label:"Crotch-length"},{id:6,label:"Privates-exposing"},{id:0,label:"None"}]`>>
				<<replace "#itemsOverview">>
					<<itemsOverview _displayedType undefined undefined undefined undefined `objectFilter($wardrobeFilter,_filterFields)`>>
				<</replace>>
			<</multiselect>>
			<<run _filterFields.push('pantsShortness')>>
		<span>Skirt:</span>
			<<multiselect '$wardrobeFilter.skirtShortness' `[{id:1,label:"Floor-length"},{id:2,label:"Knee-length"},{id:3,label:"Standard"},{id:4,label:"Short"},{id:5,label:"Groin-length"},{id:6,label:"Privates-exposing"},{id:0,label:"None"}]`>>
				<<replace "#itemsOverview">>
					<<itemsOverview _displayedType undefined undefined undefined undefined `objectFilter($wardrobeFilter,_filterFields)`>>
				<</replace>>
			<</multiselect>>
			<<run _filterFields.push('skirtShortness')>>
		<span>Special:</span>
			<<multiselect '$wardrobeFilter.style2' `[{id:1,label:"Maid"},{id:2,label:"Server"},{id:3,label:"Stripper"},{id:4,label:"School"},{id:0,label:"None"}]`>>
				<<replace "#itemsOverview">>
					<<itemsOverview _displayedType undefined undefined undefined undefined `objectFilter($wardrobeFilter,_filterFields)`>>
				<</replace>>
			<</multiselect>>
			<<run _filterFields.push('style2')>>
	<</if>>
	<<if _displayedType == 'shoes'>>
		<span>Heels:</span>
			<<multiselect '$wardrobeFilter.heels' `[{id:1,label:"Flat"},{id:2,label:"Low"},{id:3,label:"Medium"},{id:4,label:"High"},{id:5,label:"Ultra High"},{id:6,label:"Fetish"}]`>>
				<<replace "#itemsOverview">>
					<<itemsOverview _displayedType undefined undefined undefined undefined `objectFilter($wardrobeFilter,_filterFields)`>>
				<</replace>>
			<</multiselect>>
			<<run _filterFields.push('heels')>>
		<span>Cut:</span>
			<<multiselect '$wardrobeFilter.cut' `[{id:1,label:"Shoe"},{id:2,label:"Ankle Boot"},{id:3,label:"Calf High Boot"},{id:4,label:"Knee High Boot"},{id:5,label:"Thigh High Boot"},{id:6,label:"Groin High Boot"}]`>>
				<<replace "#itemsOverview">>
					<<itemsOverview _displayedType undefined undefined undefined undefined `objectFilter($wardrobeFilter,_filterFields)`>>
				<</replace>>
			<</multiselect>>
			<<run _filterFields.push('cut')>>
	<</if>>
		<div class="selector" id="reset"><<link 'Reset Filters'>><<wardrobeFiltersReset>><<gt 'wardrobe_type_overview' _displayedType>><</link>></div>
	</div>


	<<if $location_var[$here][0] == 'clothes'>>
		<h2>Your Clothes</h2>
		<p>Pick the item you want to wear.</p>
		<div id="itemsOverview">
			<<itemsOverview "clothes" undefined undefined undefined undefined `objectFilter($wardrobeFilter,_filterFields)`>>
		</div>
	<<elseif $location_var[$here][0] == 'shoes'>>
		<h2>Your Shoes</h2>
		<p>Pick the item you want to wear.</p>
		<div id="itemsOverview">
			<<itemsOverview "shoes"  undefined undefined undefined undefined `objectFilter($wardrobeFilter,_filterFields)`>>
		</div>

	<<elseif $location_var[$here][0] == 'underwear'>>
		<h2>Your Underwear</h2>
		<p>Pick the item you want to wear.</p>
		<<if $location_var[$here][1] == 'bra'>>
			<<set _displayedType = 'bra'>>
			<div id="itemsOverview">
				<<itemsOverview "bra"  undefined undefined undefined undefined `objectFilter($wardrobeFilter,_filterFields)`>>
			</div>
		<<elseif $location_var[$here][1] == 'panties'>>
			<<set _displayedType = 'panties'>>
			<div id="itemsOverview">
				<<itemsOverview "panties"   undefined undefined undefined undefined `objectFilter($wardrobeFilter,_filterFields)`>>
			</div>
		<<else>>
			<h3>Bras</h3>
			<<itemsOverview "bra" undefined undefined undefined undefined `objectFilter($wardrobeFilter,_filterFields)`>>
			<h3>Panties</h3>
			<<itemsOverview "panties"   undefined undefined undefined undefined `objectFilter($wardrobeFilter,_filterFields)`>>
		<</if>>
	<<elseif $location_var[$here][0] == 'coat'>>
		<h2>Your Coats</h2>
		<p>Pick the item you want to wear.</p>
		<div id="itemsOverview">
			<<itemsOverview "coat"   undefined undefined undefined undefined `objectFilter($wardrobeFilter,_filterFields)`>>
		</div>
    <<elseif $location_var[$here][0] == 'purse'>>
        <h2>Your Purses</h2>
		<p>Pick the item you want to take with you.</p>
		<div id="itemsOverview">
			<<itemsOverview "purse"   undefined undefined undefined undefined `objectFilter($wardrobeFilter,_filterFields)`>>
		</div>
	<</if>>
	<<act 'Back'>><<gt 'wardrobe'>><</act>>

