<?php /* Smarty version Smarty-3.1.19, created on 2020-06-30 02:45:33
         compiled from "template_flow_user:/home/myjobsnearme/public_html/templates/Flow/payment/paypal_pro_fill_payment_card.tpl" */ ?>
<?php /*%%SmartyHeaderCode:9308084235efadf8d8ab029-19116437%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'f68975e2e6809a98437ebabbbe3c0bada784e7cc' => 
    array (
      0 => 'template_flow_user:/home/myjobsnearme/public_html/templates/Flow/payment/paypal_pro_fill_payment_card.tpl',
      1 => 1483998941,
      2 => 'template_flow_user',
    ),
  ),
  'nocache_hash' => '9308084235efadf8d8ab029-19116437',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'form_submit_url' => 0,
    'hiddenFields' => 0,
    'errors' => 0,
    'METADATA' => 0,
    'error' => 0,
    'creditCards' => 0,
    'GLOBALS' => 0,
    'card' => 0,
    'formFields' => 0,
    'monthList' => 0,
    'month' => 0,
    'yearList' => 0,
    'yearListItem' => 0,
    'CountryList' => 0,
    'countryCode' => 0,
    'Country' => 0,
    'selCountry' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.19',
  'unifunc' => 'content_5efadf8d9a3dc8_98668113',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5efadf8d9a3dc8_98668113')) {function content_5efadf8d9a3dc8_98668113($_smarty_tpl) {?><h3 class="title__primary title__primary-small title__centered title__bordered">
	<?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Credit Card Information<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>

</h3>
<form method="post" action="<?php echo $_smarty_tpl->tpl_vars['form_submit_url']->value;?>
" class="form">
	<input type="hidden" id="action" name="action" value="BUTTON_PRESSED"/><?php echo $_smarty_tpl->tpl_vars['hiddenFields']->value;?>

	<?php if ($_smarty_tpl->tpl_vars['errors']->value) {?>
		<?php  $_smarty_tpl->tpl_vars['error'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['error']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['errors']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['error']->key => $_smarty_tpl->tpl_vars['error']->value) {
$_smarty_tpl->tpl_vars['error']->_loop = true;
?>
			<p class="alert alert-danger"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array('metadata'=>$_smarty_tpl->tpl_vars['METADATA']->value['error'])); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array('metadata'=>$_smarty_tpl->tpl_vars['METADATA']->value['error']), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
<?php echo $_smarty_tpl->tpl_vars['error']->value;?>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array('metadata'=>$_smarty_tpl->tpl_vars['METADATA']->value['error']), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</p>
		<?php } ?>
	<?php }?>
	
	
	<p>
		<?php  $_smarty_tpl->tpl_vars['card'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['card']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['creditCards']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['card']->key => $_smarty_tpl->tpl_vars['card']->value) {
$_smarty_tpl->tpl_vars['card']->_loop = true;
?>
			<img src="<?php echo $_smarty_tpl->tpl_vars['GLOBALS']->value['site_url'];?>
/templates/Flow/assets/images/creditcards/<?php echo $_smarty_tpl->tpl_vars['card']->value;?>
.gif" />
		<?php } ?>
	</p>
	<div class="form-group">
		<label for="" class="form-label"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Card Number<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
 *:</label>
		<input type="text" class="form-control" id="card_number" name="card_number" value="<?php echo $_smarty_tpl->tpl_vars['formFields']->value['card_number'];?>
" maxLength="16"/>
		<p class="help-block">(<?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
enter number without spaces or dashes<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
)</p>
	</div>
	<div class="row">
		<div class="col-sm-7 col-xs-12">
			<div class="row">
				<div class="col-sm-6 col-xs12">
					<div class="form-group form-group__select">
						<label for="" class="form-label"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Expiration month<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
 *</label>
						<select class="form-control" id="exp_date_mm" name="exp_date_mm">
							<?php  $_smarty_tpl->tpl_vars["month"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["month"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['monthList']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["month"]->key => $_smarty_tpl->tpl_vars["month"]->value) {
$_smarty_tpl->tpl_vars["month"]->_loop = true;
?>
								<option value="<?php echo $_smarty_tpl->tpl_vars['month']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['formFields']->value['exp_date_mm']==$_smarty_tpl->tpl_vars['month']->value) {?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['month']->value;?>
</option>
							<?php } ?>
						</select>
					</div>
				</div>
				<div class="col-sm-6 col-xs-12">
					<div class="form-group form-group__select">
						<label for="" class="form-label"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Expiration year<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
 *</label>
						<select class="form-control" id="exp_date_yy" name="exp_date_yy">
							<?php  $_smarty_tpl->tpl_vars["yearListItem"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["yearListItem"]->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['yearList']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["yearListItem"]->key => $_smarty_tpl->tpl_vars["yearListItem"]->value) {
$_smarty_tpl->tpl_vars["yearListItem"]->_loop = true;
?>
								<option value="<?php echo $_smarty_tpl->tpl_vars['yearListItem']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['formFields']->value['exp_date_yy']==$_smarty_tpl->tpl_vars['yearListItem']->value) {?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['yearListItem']->value;?>
</option>
							<?php } ?>
						</select>
					</div>
				</div>
			</div>
		</div>
		<div class="col-sm-5 col-xs-12">
			<div class="form-group">
				<label for="csc_value" class="form-label"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Security code<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</label>
				<input type="text" class="form-control" id="csc_value" name="csc_value" value="<?php echo $_smarty_tpl->tpl_vars['formFields']->value['csc_value'];?>
" maxLength="20"/>
			</div>
		</div>
	</div>

	<div class="form-group">
		<label for="" class="form-label"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
First Name<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
 *</label>
		<input type="text" class="form-control" id="first_name" name="first_name" value="<?php echo $_smarty_tpl->tpl_vars['formFields']->value['first_name'];?>
" maxLength="50"/>
	</div>
	<div class="form-group">
		<label for="" class="form-label"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Last Name<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
 *</label>
		<input type="text" class="form-control" id="last_name" name="last_name" value="<?php echo $_smarty_tpl->tpl_vars['formFields']->value['last_name'];?>
" maxLength="50"/>
	</div>
	<div class="form-group">
		<label for="" class="form-label"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Billing Address<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
 *</label>
		<input type="text" class="form-control" id="address" name="address" value="<?php echo $_smarty_tpl->tpl_vars['formFields']->value['address'];?>
" maxLength="60"/>
	</div>
	<div class="form-group">
		<label for="" class="form-label"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Zip Code<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
 *</label>
		<input type="text" class="form-control" id="zip" name="zip" value="<?php echo $_smarty_tpl->tpl_vars['formFields']->value['zip'];?>
" maxLength="60"/>
	</div>
	<div class="form-group form-group__select">
		<label for="" class="form-label"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Country<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
 *</label>
		<select class="form-control" id="country" name="country">
			<option value=""><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Select Country<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</option>
			<?php  $_smarty_tpl->tpl_vars["countryCode"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["countryCode"]->_loop = false;
 $_smarty_tpl->tpl_vars["Country"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['CountryList']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["countryCode"]->key => $_smarty_tpl->tpl_vars["countryCode"]->value) {
$_smarty_tpl->tpl_vars["countryCode"]->_loop = true;
 $_smarty_tpl->tpl_vars["Country"]->value = $_smarty_tpl->tpl_vars["countryCode"]->key;
?>
				<option value="<?php echo $_smarty_tpl->tpl_vars['countryCode']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['formFields']->value['country']==$_smarty_tpl->tpl_vars['countryCode']->value) {?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['Country']->value;?>
</option>
			<?php } ?>
		</select>
	</div>
	<div class="form-group">
		<label for="" class="form-label"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
City<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
 *</label>
		<input type="text" class="form-control" id="city" name="city" value="<?php echo $_smarty_tpl->tpl_vars['formFields']->value['city'];?>
" maxLength="40"/>
	</div>
	<div class="form-group">
		<label for="" class="form-label"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
State/Region<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
 *</label>
		<?php if (in_array($_smarty_tpl->tpl_vars['selCountry']->value,array("US","GB","AU","CA"))) {?>
			<select class="form-control" id="state" name="state">
				<option value=""><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Select State/Region<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</option>
			</select>
		<?php } else { ?>
			<input type="text" class="form-control" id="state" name="state" value="<?php echo $_smarty_tpl->tpl_vars['formFields']->value['state'];?>
" maxLength="40"/>
		<?php }?>
	</div>
	<div class="form-group">
		<label for="" class="form-label"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Email<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</label>
		<input type="text" class="form-control" id="email" name="email" value="<?php echo $_smarty_tpl->tpl_vars['formFields']->value['email'];?>
" maxLength="255"/>
	</div>
	<div class="form-group">
		<label for="" class="form-label"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Phone Number<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</label>
		<input type="text" class="form-control" id="phone" name="phone" value="<?php echo $_smarty_tpl->tpl_vars['formFields']->value['phone'];?>
" maxLength="25"/>
	</div>
	<div class="form-group form-group__btns text-center">
		<?php $_smarty_tpl->_capture_stack[0][] = array("trPayNow", null, null); ob_start(); ?><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Place Order<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php list($_capture_buffer, $_capture_assign, $_capture_append) = array_pop($_smarty_tpl->_capture_stack[0]);
if (!empty($_capture_buffer)) {
 if (isset($_capture_assign)) $_smarty_tpl->assign($_capture_assign, ob_get_contents());
 if (isset( $_capture_append)) $_smarty_tpl->append( $_capture_append, ob_get_contents());
 Smarty::$_smarty_vars['capture'][$_capture_buffer]=ob_get_clean();
} else $_smarty_tpl->capture_error();?>
		<input class="btn btn__orange btn__bold" type="submit" value="<?php echo htmlspecialchars(Smarty::$_smarty_vars['capture']['trPayNow'], ENT_QUOTES, 'UTF-8', true);?>
" />
	</div>
</form>

<?php $_smarty_tpl->smarty->_tag_stack[] = array('javascript', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['javascript'][0][0]->_tpl_javascript(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

	<script type="text/javascript">
		$(function() {
			$("#country").change(function() {
				var pickedCountryCode = $(this).val();
				if ($.inArray(pickedCountryCode, ["US", "AU", "CA", "GB"]) != -1) {
					var url = "<?php echo $_smarty_tpl->tpl_vars['GLOBALS']->value['site_url'];?>
/paypal-pro-fill-payment-card";
					var state = $('<select id="state" name="state" class="form-control"><option value=""><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Select State/Region<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</option></select>');
					$("#state").replaceWith(state);
					$.ajax({
						url: url,
						type: "POST",
						data: {
							"countryCode": pickedCountryCode
						},
						success: function(data) {
							var states = $.parseJSON(data);
							$.each(states, function(index, value) {
								if ($.isPlainObject(value)) {
									var optgroup = $("<optgroup>", {
										label: index
									});
									$.each(value, function(index, value) {
										$("<option>", {
											value: value,
											text: index
										}).appendTo(optgroup);
									});
									optgroup.appendTo($("#state"));
								} else {
									$("<option>", {
										value: value,
										text: index
									}).appendTo($("#state"));
								}
							});
						}
					});
				} else {
					$("#state").replaceWith($('<input name="state" class="form-control" id="state">'));
				}
			}).change();
		})
	</script>
<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['javascript'][0][0]->_tpl_javascript(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
<?php }} ?>
