{*{include file="$gentemplates/index_top_popup.tpl"}*}
	<!-- central part --><h2>{$lang.send_kiss.top_header}</h2>
		<div style="width:100%;">
			
		<!-- header -->
		
		<p>{$lang.send_kiss.top_text}<p>
		
		<dl id="err" {if $form.err} style="display:block;" {else} style="display:none;" {/if}><dd colspan=2 style="padding-{$default_left}:5px;"><font class="error_msg">*&nbsp;{$form.err}</font><br>&nbsp;</dd></dl>
		
		<dl><dd colspan=2>
			<form action="{$form.action}" method="post" name="send_kiss" style="margin:0px">
			{$form.hidden}
			<div style="width:100%;">
			<dl>
				<dt style="width:50%">
					<div style="width:100%;">
					{section name=s loop=$types start=0 max=$types_count_2}
					<dl>
						<dt style="width:5%"><input type="radio" class="kiss_type" name="kiss_type" value="{$types[s].id}"></dt>
						{if $types[s].image_path}<dt style="width:15%">&nbsp;<img src="{$types[s].image_path}" border="0" alt=""></dt>{/if}
						<dd class="text_head" {if !$types[s].image_path}colspan=2{/if}>&nbsp;{$types[s].name}</dd>
					</dl>
					{/section}
					</div>
				</dt>
				<dt style="width:50%">
					<div style="width:100%;">
					{section name=s loop=$types start=$types_count_2}
					<dl>
						<dt class="float_left" style="width:7%;"><input type="radio" name="kiss_type" value="{$types[s].id}"></dt>
						<dt class="float_left" style="width:14%;">{if $types[s].image_path}&nbsp;<img src="{$types[s].image_path}" border="0" alt="">{/if}</dt>
						<dt class="text_head float_left" style="width:73%;padding-top:9px;" {if !$types[s].image_path}colspan=2{/if}>&nbsp;{$types[s].name}</dt>
					</dl>
					{/section}
					</div>
				</dt>
			</dl>
			<p>&nbsp;</p>
			<p>
				<input type="button" class="button" onclick="SendKiss();" value="{$lang.button.send}">&nbsp;
				<input type="button" class="button" onclick="javascript: $('#mask').hide();	$('.window').hide();" value="{$lang.button.close}">
			</p>
			</div>
			</form>
		</dd></dl>
		</div>
	{* </td> *}
	{literal}
	<script type="text/javascript">
	function SendKiss() {
		sel = $("#sel").val();
		id_user = $("#id_user").val();
		kiss_type = $('input:radio[name=kiss_type]:checked').val();
		if (kiss_type)
		$.post("{/literal}{$seo_site_root}{literal}/send_kiss.php",{sel:sel,id_user:id_user,kiss_type:kiss_type,ajax:1},
			function(data) {
				$("#err").css("display","block"),
				$(".error_msg").html('*&nbsp;'+data);
			}
		);
	}
	</script>
	{/literal}
	<!-- /central part -->
