{if $captcha}
	{if $templatefile == 'homepage'}
		{if $captcha == "recaptcha"}
			<div id="captcha-panel" class="text-center" style="display: none;">					
				<script src="https://www.google.com/recaptcha/api.js" async defer></script>
				<div id="google-recaptcha-domainchecker" class="g-recaptcha center-block" style="width: 304px;" data-sitekey="{$reCaptchaPublicKey}"></div>
				<br /><br />
	        </div>
		{else}
			<div id="captcha-panel" class="well text-center" style="display: none;">
		        <p>{lang key="captchaverify"}</p>
				<div class="text-center">
					<br />
					<img id="inputCaptchaImage" src="includes/verifyimage.php" align="middle" />
					<br /><br />
					<input id="inputCaptcha" type="text" name="code" maxlength="5" class="input-sm" />
				</div>
	        </div>
		{/if}
	{else}	
		<hr/>
		<fieldset>
			<div class="form-group">
				<label class="col-sm-3 control-label" for="code">{lang key="captchatitle"}</label>
				<div class="col-sm-6 captchaimage">
					{if $captcha eq "recaptcha"}
						<script src="https://www.google.com/recaptcha/api.js" async defer></script>
						<div id="google-recaptcha-domainchecker" class="g-recaptcha center-block" data-sitekey="{$reCaptchaPublicKey}"></div>
					{else}
						<p style="padding-top: 7px;">{lang key="captchaverify"}</p>
						<img src="includes/verifyimage.php" align="middle" />
						<br /><br />
						<input id="inputCaptcha" type="text" name="code" maxlength="5" class="form-control" />
					{/if}
				</div>
			</div>
		</fieldset>
    {/if}
{/if}