{{assign var=OptionsColectionID value=160}} 
{{getCollectionByCategory ColumnID='2' Value=$ProductIDForOptions CollectionID=$OptionsColectionID OrderColumn='ID' var=AllOptions}} 
{{if $AllOptions|@count gt 0}}
	{{foreach from=$AllOptions item=ov key=ok}}
			{{getCollectionByCategory ColumnID='ID' Value=$ov.Collection_160_1 CollectionID=$ProductsColectionID OrderColumn='ID' var=OptionsArray}} 
			{{if $OptionsArray|@count gt 0}}
					{{assign var=Option value=$OptionsArray[0]}}
					{{if $Option.Collection_129_8 eq 'on'}}
							
							<div id="option">
								<table cellpadding="4" cellspacing="4" border="0">
								<tr>
									<td>
									<input type="checkbox" class="op_{{$ProductIDForOptions}}" value="{{$Option.$ProductID}}" name="op_{{$Option.$ProductID}}"/>
									</td>
									<td>
									<h5><strong>{{$Option.$ProductName}}</strong></h5>
									{{getCollectionByCategory ColumnID='1' Value=$Option.$ProductID CollectionID=$PricesColectionID OrderColumn='ID' var=Prices}}
									{{if $Prices|@count gt 1}}
										<select name="op_p_{{$Option.$ProductID}}" id="op_p_{{$Option.$ProductID}}" class="selectbox">
										{{foreach from=$Prices item=vv key=kk}}
										<option value="{{$vv.$PriceID}}" img="{{if $vv.$PriceImage neq ''}}{{$vv.$PriceImage}}{{/if}}">{{$vv.$PriceName}}  ${{$vv.$Price|string_format:'%.2f'}}</option>
										{{/foreach}}
										</select>   
									{{else}}
										{{assign var=vv value=$Prices[0]}}
										<font color="#FFFFFF"> ${{$vv.$Price|string_format:'%.2f'}}  </font>
										<input type="hidden" name="op_p_{{$Option.$ProductID}}" id="op_p_{{$Option.$ProductID}}" value="{{$vv.$PriceID}}"/>
									{{/if}}	
									<hr noshade size="1" style="color:#FFFFFF; background-color:#FFFFFF; "
									</td>
								</tr>
								</table>
							</div>
							
					
					{{/if}}
			{{/if}}
	{{/foreach}}
{{else}}<img src="/images/sep.gif"/>
{{/if}}