var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opener = _____WB$wombat$assign$function_____("opener");
$(document).on('click', '.dropdown-menu', function(e) {
if ($(this).hasClass('keep-open-on-click')) { e.stopPropagation(); }
});
$(document).ready(function() {
$(window).scroll(function(){
if ($(this).scrollTop() > 300) {
$('.scrollup').fadeIn();
} else {
$('.scrollup').fadeOut();
}
});
$('#slider').on('touchstart', '.tp-caption > a', function(){
self.location = $(this).attr('href');
});
$('.megamenu-wrapper').click(function () {
$('a').on('click touchend', function() {
var link = $(this).attr('href');
window.open(link,'_self');
});
});
$('.megamenu-wrapper').hover(function () {
$('a').on('click touchend', function() {
var link = $(this).attr('href');
window.open(link,'_self');
});
});
$('.scrollup').click(function(){
$("html, body").animate({ scrollTop: 0 }, 600);
return false;
});
$('.dropdown-menu').click(function(event){
if($(this).hasClass('keep_open')){
event.stopPropagation();
}
});
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) && $(window).width() < 768) {
var i = 0;
var products = [];
$( ".box-product .carousel .item" ).each(function() {
$( this ).find( ".product-grid .row > div" ).each(function() {
if(i > 1) {
products.push($(this).html());
}
i++;
});
for ( var s = i-3; s >= 0; s--, s-- ) {
var html = "
';
html += '
';
html += '
';
html += ' ';
html += '
' + data + '
';
html += '
';
html += '
';
$('body').append(html);
$('#modal-agree').modal('show');
}
});
});
function themeglobalNoticeTemplates() {
if (!$("#notification-container").length) {
var tpl = '
\
\
x\
#{title}
\
\
#{thumb}\
#{text}
\
\
\
\
x\
#{title}
\
\
#{text}
\
\
\
';
$(tpl).appendTo("body");
$("#notification-container").notify();
}
}
function themeglobalNotification(title, thumb, text, type) {
if ($.browser.msie && $.browser.version.substr(0,1) < 8) {
customNotificationnopic(title, text, type);
return false;
}
themeglobalNoticeTemplates();
$("#notification-container").notify("create", "template-pic", {
title: title,
thumb: thumb,
text: text,
type: type
},{
expires: 8000
}
);
}
function customNotificationnopic(title, text, type) {
themeglobalNoticeTemplates();
$("#notification-container").notify("create", "template-no-pic", {
title: title,
text: text,
type: type
},{
expires: 8000
}
);
}
// Autocomplete */
(function($) {
$.fn.autocomplete = function(option) {
return this.each(function() {
this.timer = null;
this.items = new Array();
$.extend(this, option);
$(this).attr('autocomplete', 'off');
// Focus
$(this).on('focus', function() {
this.request();
});
// Blur
$(this).on('blur', function() {
setTimeout(function(object) {
object.hide();
}, 200, this);
});
// Keydown
$(this).on('keydown', function(event) {
switch(event.keyCode) {
case 27: // escape
this.hide();
break;
default:
this.request();
break;
}
});
// Click
this.click = function(event) {
event.preventDefault();
value = $(event.target).parent().attr('data-value');
if (value && this.items[value]) {
this.select(this.items[value]);
}
}
// Show
this.show = function() {
var pos = $(this).position();
$(this).siblings('ul.dropdown-menu').css({
top: pos.top + $(this).outerHeight(),
left: pos.left
});
$(this).siblings('ul.dropdown-menu').show();
}
// Hide
this.hide = function() {
$(this).siblings('ul.dropdown-menu').hide();
}
// Request
this.request = function() {
clearTimeout(this.timer);
this.timer = setTimeout(function(object) {
object.source($(object).val(), $.proxy(object.response, object));
}, 200, this);
}
// Response
this.response = function(json) {
html = '';
if (json.length) {
for (i = 0; i < json.length; i++) {
this.items[json[i]['value']] = json[i];
}
for (i = 0; i < json.length; i++) {
if (!json[i]['category']) {
html += '
' + json[i]['label'] + '';
}
}
// Get all the ones with a categories
var category = new Array();
for (i = 0; i < json.length; i++) {
if (json[i]['category']) {
if (!category[json[i]['category']]) {
category[json[i]['category']] = new Array();
category[json[i]['category']]['name'] = json[i]['category'];
category[json[i]['category']]['item'] = new Array();
}
category[json[i]['category']]['item'].push(json[i]);
}
}
for (i in category) {
html += '';
for (j = 0; j < category[i]['item'].length; j++) {
html += '
' + category[i]['item'][j]['label'] + '';
}
}
}
if (html) {
this.show();
} else {
this.hide();
}
$(this).siblings('ul.dropdown-menu').html(html);
}
$(this).after('');
$(this).siblings('ul.dropdown-menu').delegate('a', 'click', $.proxy(this.click, this));
});
}
})(window.jQuery);
}
/*
FILE ARCHIVED ON 12:11:21 Jun 18, 2019 AND RETRIEVED FROM THE
INTERNET ARCHIVE ON 16:32:07 Jun 09, 2020.
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
/*
playback timings (ms):
exclusion.robots: 0.308
exclusion.robots.policy: 0.288
captures_list: 665.392
load_resource: 1017.977
PetaboxLoader3.datanode: 845.697 (5)
esindex: 0.021
CDXLines.iter: 16.454 (3)
PetaboxLoader3.resolve: 594.155 (3)
RedisCDXSource: 94.631
LoadShardBlock: 549.514 (3)
*/