<!DOCTYPE html>
<html>
<head>
	<title><? if(isset($web_title)) echo $web_title.''; else echo WEB_TITLE ?></title>

	<base href="<?=SITE_URL?>" />

	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

	<link rel="shortcut icon" href="<?=SITE_URL?>/images/favicon.ico">
	
	<? if((!isset($web_description) || $web_description!==false) && _WEB_DESCRIPTION!==false): ?><meta name="description" content="<? if(isset($web_description)) echo $web_description; else echo _WEB_DESCRIPTION ?>" /><? endif ?>
	
	<? if((!isset($web_subject) || $web_subject!==false) && _WEB_SUBJECT!==false): ?><meta name="Subject" content="<? if(isset($web_subject)) echo $web_subject; else echo _WEB_SUBJECT ?>" /><? endif ?>

	<? if((!isset($web_keywords) || $web_keywords!==false) && _WEB_KEYWORDS!==false): ?><meta name="keywords" content="<? if(isset($web_keywords)) echo $web_keywords; else echo _WEB_KEYWORDS ?>" /><? endif ?>

	<? if(isset($add_css)): foreach($add_css as $css): ?><link rel="stylesheet" href="<?=$css?>" type="text/css" media="screen" /><? endforeach; endif ?>

	<script type="text/javascript">

		var url_busqueda = "/<?=armarURL($urls['productos']['listaBusqueda'][$lng],'',-84)?>";

		var aviso = "<?=_ALERTA_FORM_VACIO?>";

	</script>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <!-- Required -->
    <link href="css/global-style.css" rel="stylesheet" type="text/css" media="screen">
    <link rel="icon" href="images/giscon-ico.png" type="image/png"><!-- LayerSlider stylesheet -->
<link rel="stylesheet" href="assets/layerslider/css/layerslider.css" type="text/css">

</head>
<body>

<?php  
	require "_header.tpl";
	if($mostrarBanner)
	include  "tpl/_banner.tpl";

	if(isset($template_lng)) require "$lng/$template_lng";
	elseif(isset($template)) require "$template";

	require "_footer.tpl";
?>
    

<!-- JavaScript -->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="assets/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/modernizr.custom.js"></script>
<script type="text/javascript" src="js/jquery.mousewheel-3.0.6.pack.js"></script>
<script type="text/javascript" src="js/jquery.cookie.js"></script>
<script type="text/javascript" src="js/jquery.easing.js"></script>


<!--[if lt IE 9]>
    <script src="js/html5shiv.js"></script>
    <script src="js/respond.min.js"></script>
<![endif]-->

<!-- Plugins -->
<script type="text/javascript" src="assets/hover-dropdown/bootstrap-hover-dropdown.min.js"></script>
<script type="text/javascript" src="assets/masonry/masonry.js"></script>
<script type="text/javascript" src="assets/page-scroller/jquery.ui.totop.min.js"></script>
<script type="text/javascript" src="assets/mixitup/jquery.mixitup.js"></script>
<script type="text/javascript" src="assets/mixitup/jquery.mixitup.init.js"></script>
<script type="text/javascript" src="assets/fancybox/jquery.fancybox.pack.js?v=2.1.5"></script>
<script type="text/javascript" src="assets/easy-pie-chart/jquery.easypiechart.js"></script>
<script type="text/javascript" src="assets/waypoints/waypoints.min.js"></script>
<script type="text/javascript" src="assets/sticky/jquery.sticky.js"></script>
<script type="text/javascript" src="js/jquery.wp.custom.js"></script>
<script type="text/javascript" src="js/jquery.wp.switcher.js"></script>
<script src="assets/layerslider/js/greensock.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery.validate.js"></script> 
<!-- LayerSlider script files -->
<script src="assets/layerslider/js/layerslider.transitions.js" type="text/javascript"></script>
<script src="assets/layerslider/js/layerslider.kreaturamedia.jquery.js" type="text/javascript"></script>
<!-- Initializing the slider -->
	<script>
		jQuery("#layerslider").layerSlider({
			pauseOnHover: true,
			autoPlayVideos: false,
			skinsPath: 'assets/layerslider/skins/',
			responsive: false,
			responsiveUnder: 1280,
			layersContainer: 1280,
			skin: 'borderlessdark3d',
			hoverPrevNext: false,
		});
		var validator = $("#formCotacto").validate({
			submitHandler: function(form) {
			
				$.post('app/ajax/Usuario.php', $(form).serialize(), function (data, textStatus) {
					if(data == "false"){
						alert(data);
					}else{
						alert('Su información fue enviada con éxito.');
						validator.resetForm();
						$("#formCotacto")[0].reset();
					}
				});
				//var formData = new FormData($("#image")[0]);
				/*$(form).ajaxSubmit({
					url:"action.php",
					type:"post",
					success: function(data,status){
					  alert(data);
					}
				});*/
			}
		});
	</script>
</body>
</html>