:: shop_clothing_start[menu]
	<<set $shop_clothing_current = {
		label: 		$larg(0),
		shopId: 	$larg(1),
		type: 		$larg(2),
		vendor:		$larg(3),
		subtype:	$larg(4),
		baseprice: 	$larg(5)
	}>>

	<<if !$shop_clothing_current.shopId>>
		<<set $shop_clothing_current.shopId = $shop_clothing_current.type+'#'+'#'+$shop_clothing_current.vendor+'#'+$shop_clothing_current.subtype>>
	<</if>>

	<<if !$shop_clothing_current.baseprice>>
		<<set $shop_clothing_current.baseprice = 1000>>
	<</if>>

	<<gs 'shop_clothing'>>

:: shop_clothing[menu]
	<<actCLA 'Return'>>
		<<set $shop_clothing_current = undefined>>
		<<set $time.minutes += 1>>
		<<gt $store_return>>
	<</actCLA>>
	

	<h2>$shop_clothing_current.label</h2>

	<<if !$wardrobeShopFilter>>
		<<set $wardrobeShopFilter = {
			inhib: [0,1,2],
			price: [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],
			heels: [1,2,3,4,5,6],
			cut: [1,2,3,4,5,6],
		}>>
	<</if>>

	<<set _filterFields = []>>
	<div id="filters">
		<div id="wardrobe_type_overview_filter">
		<h2>Filters</h2>
		<span>Price:</span>
			<<multiselect '$wardrobeShopFilter.price' `[{id:1,label:"Affordable"},{id:2,label:"Not affordable"}]`>>
				<<replace ".itemsOverview">>
					<<include 'shop_items_overview'>>
				<</replace>>
			<</multiselect>>
		<<if $shop_clothing_current.type != 'purse'>>
			<span>Quality:</span>
				<<multiselect '$wardrobeShopFilter.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">>
						<<include 'shop_items_overview'>>
					<</replace>>
				<</multiselect>>
				<<run _filterFields.push('quality')>>
		<</if>>
		<<if $shop_clothing_current.type == 'clothes'>>
			<span>Revealing:</span>
				<<multiselect '$wardrobeShopFilter.inhib' `[{id:0,label:"Not too revealing"},{id:1,label:"Slightly too revealing"},{id:2,label:"Way too revealing"}]`>>
					<<replace ".itemsOverview">>
						<<include 'shop_items_overview'>>
					<</replace>>
				<</multiselect>>
			<span>Thinness:</span>
				<<multiselect '$wardrobeShopFilter.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">>
						<<include 'shop_items_overview'>>
					<</replace>>
				<</multiselect>>
				<<run _filterFields.push('thinness')>>
			<span>Top:</span>
				<<multiselect '$wardrobeShopFilter.topcut' `[{id:1,label:"Modest"},{id:2,label:"Regular"},{id:3,label:"Daring"},{id:4,label:"Revealing"},{id:0,label:"None"}]`>>
					<<replace ".itemsOverview">>
						<<include 'shop_items_overview'>>
					<</replace>>
				<</multiselect>>
				<<run _filterFields.push('topcut')>>
			<<if $shop_clothing_current.subtype != 'dress'>>
				<span>Pants:</span>
					<<multiselect '$wardrobeShopFilter.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">>
							<<include 'shop_items_overview'>>
						<</replace>>
					<</multiselect>>
					<<run _filterFields.push('pantsShortness')>>
			<</if>>
			<<if $shop_clothing_current.subtype != 'outfit'>>
				<span>Skirt:</span>
					<<multiselect '$wardrobeShopFilter.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">>
							<<include 'shop_items_overview'>>
						<</replace>>
					<</multiselect>>
					<<run _filterFields.push('skirtShortness')>>
			<</if>>
		<</if>>
		<<if $shop_clothing_current.type == 'shoes'>>
			<span>Heels:</span>
				<<multiselect '$wardrobeShopFilter.heels' `[{id:0,label:"Flat"},{id:1,label:"Very low"},{id:2,label:"Low"},{id:3,label:"Medium Low"},{id:4,label:"Medium"},{id:5,label:"Medium High"},{id:6,label:"Very High"},{id:7,label:"Ultra High"},{id:8,label:"Fetish"}]`>>
					<<replace ".itemsOverview">>
						<<include 'shop_items_overview'>>
					<</replace>>
				<</multiselect>>
				<<run _filterFields.push('heels')>>
			<span>Cut:</span>
				<<multiselect '$wardrobeShopFilter.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">>
						<<include 'shop_items_overview'>>
					<</replace>>
				<</multiselect>>
				<<run _filterFields.push('cut')>>
		<</if>>
	</div>

	<<set _mainfilters = {
		type: $shop_clothing_current.type,
		vendor: $shop_clothing_current.vendor,
		subtype: $shop_clothing_current.subtype
	}>>




	<div class="itemsOverview shop">
		<<include 'shop_items_overview'>>
	</div>