PageSourceSearch

https://viewmycatalogs.com/sites/default/files/js/js_inline_6d726fb814ac446f73584132f1673a8d.js

js viewmycatalogs.com collected 2026-09-29 08:45:55 UTC 21,379 bytes, 866 lines download raw bytes

1var onClosePopup = null;
2var popup_zindex = 501;
3
4function zIndexUpdate(popup) {
5if (!popup.hasClass('notifications') && popup.css('zIndex') != popup_zindex) {
6popup_zindex++;
7popup.css({ zIndex: popup_zindex });
8}
9}
10
11function popMessage(title, html, onClose, theme, toggle, is_html, id) {
12var popup = $('.popup' + id ? '#' + id : '.' + theme);
13
14if (toggle && popup.length) {
15popup.show();
16zIndexUpdate(popup);
17return;
18}
19
20if (!popup.length || !toggle) {
21// create popup
22popup = $('<div class="popup plane">' +
23'<div class="overlay"></div>' +
24'<div class="container">' +
25'<div class="header">' +
26'<div class="title"></div>' +
27'<div class="popupx main-popupx"><a title="Close" href="javascript:"> </a></div>' +
28'</div>' +
29'<div class="content">' +
30
31'</div>' +
32'</div>' +
33'</div>');
34
35if (theme == 'notifications') {
36$('#statusbar_wrapper').append(popup);
37
38} else {
39$('#page-wrapper').append(popup);
40}
41}
42if (title == null) {
43title = theme && theme == 'error' ? 'Error' : 'Message';
44}
45
46if (theme == 'prompt') {
47html += '<form onsubmit="return false;">\
48<div class="form-content-wrapper">\
49<div class="form-content">\
50<div class="form-item">\
51<div class="input_wrapper"><input type="text" class="form-text"></div>\
52</div>\
53</div>\
54</div>\
55</form>';
56}
57
58if (theme == 'system' || theme == 'confirm' || theme == 'prompt' || theme == 'warning' || theme == 'error' || theme == 'messages') {
59html += '<div class="buttons">' +
60'<a class="button v2 ok popupx">' + (theme == 'confirm' ? 'Yes' : 'Ok') + '</a>' +
61(theme == 'confirm' || theme == 'prompt' ? ' <a class="button cancel last popupx">' + (theme == 'confirm' ? 'No' : 'Cancel') + '</a>' : '') +
62'</div>';
63
64// change original target to prevent duplicating the popup on enter key
65$('html').focus();
66}
67
68if (title != '') {
69popup.find('.header .title').html(title);
70
71} else {
72popup.find('.header').addClass('empty');
73}
74popup.find('.content:first').html(is_html ? html : html.replace(/\n/g, '<br/>'));
75for (c in Array('message', 'fullscreen', 'status', 'error', 'warning', 'photo', 'slideshow', 'messages', 'notifications')) {
76popup.removeClass(c);
77}
78
79popup.addClass(theme ? theme : 'message');
80
81if (theme == 'fullscreen') {
82popup.find('.container').css({ top: $(window).scrollTop() + popup.find('.container').position().top });
83}
84popAttachPopupXEvent(popup, onClose);
85
86zIndexUpdate(popup);
87
88if (id) {
89popup.attr('id', id);
90}
91
92popup.find('.container').mousedown(function(e) {
93if ($(e.target).is('div')) {
94zIndexUpdate(popup);
95}
96});
97
98popup.show();
99
100if (theme == 'prompt') {
101popup.find('.form-text:first').focus();
102}
103
104return popup;
105}
106
107function popMessageV2(title, body, okText, cancelText, onOk, onCancel, onClose, id, theme) {
108
109var popup = $('<div class="popup plane">' +
110'<div class="overlay"></div>' +
111'<div class="container">' +
112'<div class="header">' +
113'<div class="title"></div>' +
114'<div class="popupx main-popupx"><a title="Close" href="javascript:"> </a></div>' +
115'</div>' +
116'<div class="content" style="padding:32px">' +
117
118'</div>' +
119'</div>' +
120'</div>');
121$('#page-wrapper').append(popup);
122popup.find('.header .title').html(title);
123
124popAttachPopupXEvent(popup, onClose);
125
126body += '<div class="buttons" style="text-align:right;">' +
127'<a class="button cancel last popupx">' + cancelText + '</a>' +
128'<a class="button v2 ok popupx" style="background:#00A2E1;border-color:#00A2E1;margin-left:8px;">' + okText + '</a>' +
129'</div>';
130$('html').focus();
131
132popup.find('.content:first').html(body);
133
134
135popup.addClass(theme ? theme : 'message');
136
137popup.show();
138
139popup.find('.container .buttons .button').mouseup(function() {
140if (!$(this).hasClass('cancel')) {
141onOk(popup);
142
143} else if (typeof onCancel != 'undefined') {
144onCancel(popup);
145}
146});
147
148return popup;
149}
150
151function popError(html, onClose) {
152return popMessage('Error', html, onClose, 'error');
153}
154
155function alert(html) {
156return popMessage('', html, null, 'system');
157}
158
159function popConfirm(html, onOk, onCancel, onClose) {
160if (typeof onClose == 'undefined') {
161onClose = function(popup) {
162popup.remove();
163};
164}
165var popup = popMessage('Confirm', html, onClose, 'confirm');
166if (popup) {
167popup.find('.container .buttons .button').mouseup(function() {
168if (!$(this).hasClass('cancel')) {
169onOk(popup);
170
171} else if (typeof onCancel != 'undefined') {
172onCancel(popup);
173}
174});
175}
176return popup;
177}
178
179function popPrompt(html, arg1, arg2) {
180var popup = popMessage('', html, function(popup) { popup.remove(); }, 'prompt');
181if (popup) {
182var input = popup.find('.form-text:first');
183var onOk = arg1;
184var defval = ''
185
186if (typeof arg2 == 'function') {
187onOk = arg2;
188defval = arg1;
189}
190if (typeof defval != 'undefined' && defval != '') {
191input.val(defval);
192}
193var onOkValid = function() {
194var val = input.val();
195if (val != '') {
196onOk(val, popup);
197}
198}
199
200input.keyup(function(e) {
201if (e.keyCode == 13) {
202onOkValid();
203popup.remove();
204}
205});
206popup.find('.container .buttons .button').mouseup(function() {
207if (!$(this).hasClass('cancel')) {
208onOkValid();
209}
210});
211}
212return popup;
213}
214
215function popStatus(html, onClose) {
216return popMessage('', html, onClose, 'status');
217}
218
219function popWarning(html, onClose) {
220return popMessage('Warning', html, onClose, 'warning');
221}
222
223function popMessages(html) {
224return popMessage('', html, null, 'messages');
225}
226
227function popFullscreen(title, html) {
228return popMessage(title, html, null, 'fullscreen');
229}
230
231function popupVerticalCenterUpdate(popup) {
232var top = parseInt(popup.find('.container').css('top').replace('px', ''));
233var margin_top = -Math.round(popup.find('.container').height() * .55);
234if (top + margin_top < 50) {
235popup.find('.container').css('top', Math.abs(margin_top) + 50);
236}
237popup.find('.container').css('margin-top', margin_top);
238}
239
240function popFullscreenHtml(title, html, id, url, theme, scroll, onClose) {
241if (theme == '' || theme == null) {
242theme = 'fullscreen';
243}
244
245var popup = null;
246if (id) {
247popup = $('.popup#' + id);
248
249if (popup.length) {
250popup.show();
251zIndexUpdate(popup);
252if (theme == 'fullscreen' || scroll) {
253scrollToElement(popup.find('.container'));
254}
255return;
256}
257}
258if (!html) {
259html = '<loading></loading>';
260}
261
262popup = popMessage(title, url ? '<loading></loading>' : html, onClose, theme, null, true);
263
264if (id) {
265popup.attr('id', id);
266}
267
268if (url) {
269if (typeof url == 'string') {
270url = { href: url };
271}
272$.post(
273url.href,
274url.params ? url.params : null,
275function(resp) {
276resp = sanitazeResp(resp);
277
278if (resp.messages) {
279popup.find('.content:first').html('');
280setMessages(resp.messages, popup.find('.content:first'));
281
282} else if (typeof resp == 'string') {
283// Trusted same-origin HTML may include autocomplete_settings / init scripts.
284popup.find('.content:first').setHtml(resp, true);
285popAttachPopupXEvent(popup.find('.container'), onClose);
286
287if (typeof attachFormEvent == 'function') {
288attachFormEvent(popup.find('.content:first'));
289
290} else if (typeof attachFormValidateEvents == 'function') {
291attachFormValidateEvents(popup.find('.content:first'), url.formOnSubmit ? url.formOnSubmit : null);
292}
293}
294
295popupVerticalCenterUpdate(popup);
296
297if (url.onComplete) {
298url.onComplete(resp, popup);
299}
300}
301);
302} else {
303popupVerticalCenterUpdate(popup);
304}
305
306return popup;
307}
308
309function popNotification() {
310var span = $('statusbar .notifications span');
311var popup = $('#notifications');
312
313if (popup.length) {
314if (popup.is(':hidden')) {
315popup.show();
316span.hide();
317
318} else {
319popup.hide();
320}
321return;
322}
323
324popup = popMessage('Notifications', '<loading></loading>', false, 'notifications');
325popup.attr('id', 'notifications');
326
327return popup;
328}
329
330function popVideo(title, video, id) {
331var html = '<iframe width="560" height="315" src="http://www.youtube.com/embed/' + video + '" frameborder="0" allowfullscreen></iframe>';
332popFullscreenHtml(title, html, id, null, null, false, function(popup) {
333popup.remove();
334});
335}
336
337function attachDraggableEvent(e) {
338e = $(e);
339
340// Move the e by the amount of change in the mouse position
341var move = function(ev) {
342if (e.data('mouseMove')) {
343var changeX = ev.clientX - e.data('mouseX');
344var changeY = ev.clientY - e.data('mouseY');
345var newX = parseInt(e.position().left) + changeX;
346var newY = parseInt(e.position().top) + changeY;
347e.css('left', newX);
348e.css('top', newY);
349e.data('mouseX', ev.clientX);
350e.data('mouseY', ev.clientY);
351}
352}
353
354e.mousedown(function(ev) {
355if ($(ev.target).is('div')) {
356e.data('mouseMove', true);
357e.data('mouseX', ev.clientX);
358e.data('mouseY', ev.clientY);
359}
360});
361
362e.parents(':last').mouseup(function() {
363e.data('mouseMove', false);
364});
365
366e.mouseout(move);
367e.mousemove(move);
368}
369
370function popContent(title, html, id, url, onClose) {
371var popup = popFullscreenHtml(title, html, id, url, null, null, onClose);
372if (popup) {
373popup.addClass('draggable').addClass('size2').addClass('no-overlay');
374attachDraggableEvent(popup.find('.container'));
375}
376return popup;
377}
378
379function popLoading(title, version) {
380switch (version) {
381case 'v2':
382var html = '<loading></loading>';
383break;
384default:
385var html = '<img src="/sites/all/themes/zoomcatalog/images/layout/spinner/bar.gif" style="height: 50px;"/>';
386version = '';
387break;
388}
389
390var popup = popMessage(title, html, null, 'popuploading');
391if (popup) {
392if (version != '') {
393popup.addClass(version);
394}
395popup.find('.popupx').remove();
396}
397return popup;
398}
399
400function popLoadingV2(title) {
401return popLoading(title, 'v2');
402}
403
404function popPhoto(photo, id, onClose) {
405if (typeof photo == 'string' && !photo.match(/^\.|^#/)) {
406var img_html = '<img src="' + photo + '"/>';
407
408} else {
409var img_html = $(photo).find('img').parent().html().replace(/_widepreview\.|_smallpreview\./, '.').replace('files/file', 'pages/page').replace(/\/thumbnail/g, '/page');
410}
411
412var html = ('<div class="block-photo">' + img_html + '</div>').replace(/\n/g, '');
413var popup = popMessage('', html, !onClose ? !id ? function(popup) { popup.remove(); } : null : onClose, 'photo', true, null, id);
414
415if (popup) {
416var header_height = $('#header-small').length ? $('#header-small').height() + 1 : $('#header').height() - 6;
417popup.find('.container').css({ top: $(window).scrollTop() + header_height + 25 });
418
419popup.removeClass('plane');
420img = popup.find('img');
421img.load(function() {
422var width = img.width();
423var margin_left = (width / 2) * -1;
424var margin_left_limit = (($(window).width() / 2) * -1) + 10;
425popup.find('.container').css('width', width).css('margin-left', margin_left < margin_left_limit ? margin_left_limit : margin_left);
426});
427popup.find('.block-photo').bind('contextmenu', function(e) {
428return false;
429});
430}
431return popup;
432}
433
434function popAttachPopupXEvent(container, onClose) {
435if (!container) {
436var container = $('.popup');
437}
438
439$(container).not('.popuploading').find('.overlay, .header .popupx, .content:first .popupx').each(function() {
440var x = $(this);
441if (!x.hasClass('popupxd')) {
442x.click(function(e) {
443if (!x.parents('.popup:first').hasClass('prevent-close')) {
444if (onClosePopup && !x.hasClass('main-popupx')) {
445setTimeout(function() {
446onClosePopup();
447x.parents('.popup:first').hide();
448}, 250);
449} else {
450x.parents('.popup:first').hide();
451}
452
453if (onClose) {
454onClose == 'remove' ? x.parents('.popup:first').remove() : onClose(
454x.parents('.popup:first'), x);
455}
456}
457});
458x.addClass('popupxd');
459}
460});
461
462if (onClose) {
463if (!$(container).hasClass('popup')) {
464container = $(container).parents('.popup:first');
465}
466container.addClass('has-close');
467}
468}
469
470$(document).ready(function() {
471popAttachPopupXEvent();
472
473$('html').keyup(function(e) {
474// get top popup and close
475var toppopup = null;
476var topzindex = 0;
477$('.popup:visible').each(function() {
478if ($(this).css('z-index') > topzindex) {
479topzindex = $(this).css('z-index');
480toppopup = this;
481}
482});
483
484if (toppopup) {
485if (e.keyCode == 27) { // esc
486if ($(toppopup).hasClass('confirm') || $(toppopup).hasClass('prompt')) {
487$(toppopup).find('.content .buttons .cancel').mouseup().click();
488}
489
490if (!$(toppopup).hasClass('has-close') && !$(toppopup).hasClass('prevent-close') && !$(toppopup).hasClass('popuploading')) {
491$(toppopup).hide();
492}
493}
494
495if (e.keyCode == 13) { // enter
496if ($(toppopup).hasClass('confirm') || $(toppopup).hasClass('prompt')) {
497$(toppopup).find('.content .buttons .ok').mouseup().click();
498}
499
500if ($(toppopup).hasClass('system') || $(toppopup).hasClass('warning') || $(toppopup).hasClass('error') || $(toppopup).hasClass('messages')) {
501$(toppopup).find('.content .buttons .ok').click();
502}
503}
504}
505});
506});
507/*
508 * jQuery Tooltip plugin 1.3
509 *
510 * http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
511 * http://docs.jquery.com/Plugins/Tooltip
512 *
513 * Copyright (c) 2006 - 2008 Jörn Zaefferer
514 *
515 * $Id: jquery.tooltip.js 5741 2008-06-21 15:22:16Z joern.zaefferer $
516 * 
517 * Dual licensed under the MIT and GPL licenses:
518 *http://www.opensource.org/licenses/mit-license.php
519 *http://www.gnu.org/licenses/gpl.html
520 */
521 
522;(function($) {
523
524// the tooltip element
525var helper = {},
526// the current tooltipped element
527current,
528previous,
529// the title of the current element, used for restoring
530title,
531// timeout id for delayed tooltips
532tID = {},
533// IE 5.5 or 6
534IE = (/msie|trident/i).test(navigator.userAgent),
535// flag for mouse tracking
536track = false;
537
538$.tooltip = {
539blocked: false,
540defaults: {
541delay: 200,
542hideDelay: 200,
543fade: false,
544showURL: true,
545extraClass: "",
546focus: false,
547top: 15,
548left: 15,
549id: "tooltip"
550},
551block: function() {
552$.tooltip.blocked = !$.tooltip.blocked;
553}
554};
555
556$.fn.extend({
557tooltip: function(settings) {
558settings = $.extend({}, $.tooltip.defaults, settings);
559createHelper(settings);
560return this.each(function() {
561$.data(this, "tooltip", settings);
562this.tOpacity = helper.parent.css("opacity");
563// copy tooltip into its own expando and remove the title
564this.tooltipText = this.title;
565$(this).removeAttr("title");
566// also remove alt attribute to prevent default tooltip in IE
567this.alt = "";
568})
569.mouseover(save)
570.mouseout(hide)
571.click(hide);
572},
573fixPNG: IE ? function() {
574return this.each(function () {
575var image = $(this).css('backgroundImage');
576if (image.match(/^url\(["']?(.*\.png)["']?\)$/i)) {
577image = RegExp.$1;
578$(this).css({
579'backgroundImage': 'none',
580'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='" + image + "')"
581}).each(function () {
582var position = $(this).css('position');
583if (position != 'absolute' && position != 'relative')
584$(this).css('position', 'relative');
585});
586}
587});
588} : function() { return this; },
589unfixPNG: IE ? function() {
590return this.each(function () {
591$(this).css({'filter': '', backgroundImage: ''});
592});
593} : function() { return this; },
594hideWhenEmpty: function() {
595return this.each(function() {
596$(this)[ $(this).html() ? "show" : "hide" ]();
597});
598},
599url: function() {
600return this.attr('href') || this.attr('src');
601}
602});
603
604function createHelper(settings) {
605// there can be only one tooltip helper
606if( helper.parent )
607return;
608// create the helper, h3 for title, div for url
609helper.parent = $('<div id="' + settings.id + '"><h3></h3><div class="top-wrapper"><div class="bottom-wrapper"><div class="middle-wrapper body"></div></div></div><div class="url"></div></div>')
610// add to document
611.appendTo(document.body)
612// hide it at first
613.hide().mouseover(function(){
614if ($.data(previous, "tooltip").focus && tID.h)
615clearTimeout(tID.h);
616}).mouseout(function(){
617hide_complete($.data(previous, "tooltip"));
618});
619
620// apply bgiframe if available
621if ( $.fn.bgiframe )
622helper.parent.bgiframe();
623
624// save references to title and url elements
625helper.title = $('h3', helper.parent);
626helper.body = $('div.body', helper.parent);
627helper.url = $('div.url', helper.parent);
628}
629
630function settings(element) {
631return $.data(element, "tooltip");
632}
633
634// main event handler to start showing tooltips
635function handle(event) {
636// show helper, either with timeout or on instant
637if( settings(this).delay )
638tID.s = setTimeout(show, settings(this).delay);
639else
640show();
641
642// if selected, update the helper position when the mouse moves
643track = !!settings(this).track;
644$(document.body).bind('mousemove', update);
645
646// update at least once
647update(event);
648}
649
650// save elements title before the tooltip is displayed
651function save() {
652// if this is the current source, or it has no title (occurs with click event), stop
653if ( $.tooltip.blocked || this == current || (!this.tooltipText && !settings(this).bodyHandler) )
654return;
655
656// save current
657current = this;
658title = this.tooltipText;
659
660if ( settings(this).bodyHandler ) {
661helper.title.hide();
662var bodyContent = settings(this).bodyHandler.call(this);
663if (bodyContent.nodeType || bodyContent.jquery) {
664helper.body.empty().append(bodyContent)
665} else {
666helper.body.html( bodyContent );
667}
668helper.body.show();
669} else if ( settings(this).showBody ) {
670var parts = title.split(settings(this).showBody);
671helper.title.html(parts.shift()).show();
672helper.body.empty();
673for(var i = 0, part; (part = parts[i]); i++) {
674if(i > 0)
675helper.body.append("<br/>");
676helper.body.append(part);
677}
678helper.body.hideWhenEmpty();
679} else {
680helper.title.html(title).show();
681helper.body.hide();
682}
683
684// if element has href or src, add and show it, otherwise hide it
685if( settings(this).showURL && $(this).url() )
686helper.url.html( $(this).url().replace('http://', '') ).show();
687else 
688helper.url.hide();
689
690// fix PNG background for IE
691if (settings(this).fixPNG )
692helper.parent.fixPNG();
693
694handle.apply(this, arguments);
695}
696
697// delete timeout and show helper
698function show() {
699// add an optional class for this tip
700helper.parent.addClass(settings(current).extraClass);
701
702tID.s = null;
703if(tID.h)
704clearTimeout(tID.h);
705if ((!IE || !$.fn.bgiframe) && settings(current).fade) {
706if (helper.parent.is(":animated"))
707helper.parent.stop().show().fadeTo(settings(current).fade, current.tOpacity);
708else
709helper.parent.is(':visible') ? helper.parent.fadeTo(settings(current).fade, current.tOpacity) : helper.parent.fadeIn(settings(current).fade);
710} else {
711helper.parent.show();
712}
713update();
714}
715
716/**
717 * callback for mousemove
718 * updates the helper position
719 * removes itself when no current element
720 */
721function update(event){
722if($.tooltip.blocked)
723return;
724
725if (event && event.target.tagName == "OPTION") {
726return;
727}
728
729// stop updating when tracking is disabled and the tooltip is visible
730if ( !track && helper.parent.is(":visible")) {
731$(document.body).unbind('mousemove', update)
732}
733
734// if no current element is available, remove this listener
735if( current == null ) {
736$(document.body).unbind('mousemove', update);
737return;
738}
739
740// remove position helper classes
741helper.parent.removeClass("viewport-right").removeClass("viewport-bottom");
742
743var left = helper.parent[0].offsetLeft;
744var top = helper.parent[0].offsetTop;
745if (event) {
746// position the helper 15 pixel to bottom right, starting from mouse position
747left = event.pageX + settings(current).left;
748top = event.pageY + settings(current).top;
749var right='auto';
750if (settings(current).positionLeft) {
751right = $(window).width() - left;
752left = 'auto';
753}
754helper.parent.css({
755left: left,
756right: right,
757top: top
758});
759}
760
761var v = viewport(),
762h = helper.parent[0];
763// check horizontal position
764if (v.x + v.cx < h.offsetLeft + h.offsetWidth) {
765left -= h.offsetWidth + 20 + settings(current).left;
766helper.parent.css({left: left + 'px'}).addClass("viewport-right");
767}
768// check vertical position
769if (v.y + v.cy < h.offsetTop + h.offsetHeight) {
770top -= h.offsetHeight + 20 + settings(current).top;
771helper.parent.css({top: top + 'px'}).addClass("viewport-bottom");
772}
773}
774
775function viewport() {
776return {
777x: $(window).scrollLeft(),
778y: $(window).scrollTop(),
779cx: $(window).width(),
780cy: $(window).height()
781};
782}
783
784function hide_now() {
785tID.h = null;
786helper.parent.removeClass( settings.extraClass ).hide().css("opacity", "");
787}
788
789function hide_complete(tsettings) {
790if(tID.h)
791clearTimeout(tID.h);
792if( tsettings.hideDelay )
793tID.h = setTimeout(hide_now, tsettings.hideDelay);
794else
795hide_now();
796}
797
798// hide helper and restore added classes and the title
799function hide(event) {
800if($.tooltip.blocked)
801return;
802// clear timeout if possible
803if(tID.s)
804clearTimeout(tID.s);
805// no more current element
806previous = current;
807current = null;
808
809var tsettings = settings(this);
810if ((!IE || !$.fn.bgiframe) && tsettings.fade) {
811if (helper.parent.is(':animated'))
812helper.parent.stop().fadeTo(tsettings.fade, 0, function(){hide_complete(tsettings)});
813else
814helper.parent.stop().fadeOut(tsettings.fade, function(){hide_complete(tsettings)});
815} else
816hide_complete(tsettings);
817
818if( settings(this).fixPNG )
819helper.parent.unfixPNG();
820}
821
822})(jQuery);
823
824function change_status(status) {
825if (status == 'online') {
826$('.login-forgot-wrapper').html('We are online. <a href="javascript:$zopim.livechat.window.show()">Click here</a> to chat with us live.');
827}
828}
829
830function contactPopConfirm(resp, form) {
831if (resp && !(resp.messages && resp.messages.error && resp.messages.error.length > 0)) {
832var wrapper = $('.messages-wrapper', form);
833
834if (wrapper.length > 0) {
835wrapper.find('.status').remove();
836}
837
838var popup = popMessage('', resp.messages.status[0], function() {
839$('#contact-popup').remove();
840}, 'status');
841
842setTimeout("window.location.href = '/'", 1500);
843}
844}
845
846function attachContactPop() {
847$('.menu-126 a, .menu-2271 a').not('.contact-processed').bind('click', function() {
848window.location.href = '/contact-us';
849return false;
850}).addClass('contact-processed');
851}
852
853$(document).ready(function() {
854//attachContactPop();
855
856$('#edit-user_type, #edit-doing_business').change(function() {
857var field = $(this).attr('id') + '_hidden';
858$('#' + field).val($(this).find(':selected').text());
859});
860
861$(document).ajaxSuccess(function(event, xhr, settings) {
862//if (xhr && xhr.response && !(xhr.response.match(/^{/) || xhr.response.match(/^\[/)) && $(xhr.response).find('.pop-contact-us')) {
863//attachContactPop();
864//}
865});
866});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.