Estiber ViajesB The Travel BrandTotiaran Alquiler Baqueir
$(document).on("click mousedown touchstart", "a", parse); var base_url_sub = "/"; function parse(e){ var m; var $a = $(this); var href = $a.attr("href"); if (href === undefined) return false; var aClass = $a.attr("imp") || ''; if (e.type != "click") { if ($a.data('done')) return true; if ((m = aClass.match(/(\d+)/))) { $a.attr('href', base_url_sub + "go.php?id=" + m[1]); $a.data('done', 1); $a.data('real_href', href); } return true; } var real_href = $a.data('real_href') || $a.attr('href'); if ((aClass.match(/fancybox/) || real_href.match(/\.(gif|jpeg|jpg|pjpeg|pjpg|png|tif|tiff)$|vimeo.com\/\d+|vine\.co\/v\/\w+|youtube.com\/(.*v=|embed)|youtu\.be\/.+|twitter\.com\/.+?\/(?:status|statuses)\/\d+/i)) && !aClass.match(/cbox/) && !$a.attr("target")) { if (fancyBox.parse($a)) return false; } }