new WOW().init();function checkimg(){$("img").error(function(img){})}jQuery.fn.extend({heightEquals:function(sum=0){var Objetos=$(this);var maxHeigth=0;Objetos.each(function(){if($(this).height()>maxHeigth){maxHeigth=$(this).height()}}).promise().done(function(){Objetos.css("min-height",maxHeigth+sum)})}});function checkLoadContent(){$("[load-content]").each(function(){var $contenedor=$(this);if($contenedor.data("loadcontent")==true){return true}if($contenedor.text().length>0){var $data=JSON.parse($contenedor.text())}else{var $data={}}$.ajax({cache:true,data:$data,url:$contenedor.attr("load-content")}).done(function(html){$contenedor.parent().append(html);$contenedor.data("loadcontent",true);if($contenedor.attr("remove")=="true"){$contenedor.remove()}checkimg()})})}$(document).ready(function(){checkimg();checkLoadContent();function loadContent(url,$contenedor,fn,Cache){var fn=fn||function(){};$.ajax({url:url,contentType:"text/html",cache:Cache||false}).done(function(data){if(typeof data=="object"||typeof data=="array"){}else{$contenido=$(data);if($contenido.find(".container").length>0){$contenido=$contenido.find(".container").html()}if(typeof $contenedor!="undefined"){$("section .container").html($contenido)}else{$($contenedor).html($contenido)}}})}$("form[action]").submit(function(event){if($(this).attr("none-post")=="true"){return true}event.preventDefault();var campos=$(this).find("input, select, textarea");var btn=$(this).find("button[type='submit']");var btnValue=btn.text();btn.prop("disabled",true);btn.text("Procesando..");$.post($(this).attr("action"),campos.serialize(),function(data){if(data.status==true){$(".modal").modal("hide");campos.val("")}alert(data.message||((data.status==false)?"Algo salio mal al procesar la solicitud":"Solicitud realizada"));if(typeof data.redirection!="undefined"){window.location=data.redirection}btn.text(btnValue);btn.prop("disabled",false)},"JSON").fail(function(){alert("Fallo la solicitud");btn.text(btnValue);btn.prop("disabled",false)})});(function(){var ItemHeight=0;$(".itemProd .productoimagen").each(function(){if(ItemHeight<$(this).height()){ItemHeight=$(this).height()}});$(".itemProd").css("min-height",ItemHeight)})();$("[mail-contact]").click(function(event){event.preventDefault();var obj=$(this);$.each(JSON.parse(obj.attr("mail-contact")),function(index,value){$("#mail").find("[name='"+index+"']").val(value)});$("#mail").modal("show")});$("[data-toggle='collapse-xs']").each(function(){var element=$(this).attr("href");var element2=$(this).attr("href")+"-xs";$("