PageSourceSearch

https://www.mydoorsign.com/js/department.js?v=2026-39

js mydoorsign.com collected 2026-09-26 06:42:51 UTC 25,405 bytes, 619 lines download raw bytes

1// JScript File
2function start(yhost) {
3    if (yhost == "beta") {
4        GetOffsets()
5        if (ns4dom) {
6            window.captureEvents(Event.RESIZE)
7            window.onResize = GetOffsets
8            window.onScroll = GetOffsets
9        }
10        else {
11            window.onresize = GetOffsets
12            window.onscroll = GetOffsets
13        }
14    }
15}
16
17function MM_openBrWindow(theURL, winName, features) { //v2.0
18    window.open(theURL, winName, features);
19}
20
21var oXMLHTTP
22
23function getCallOut(stdcode, numberofproducts, deptid) {
24    if (!deptid) {
25        deptid = 0
26    }
27    if (location.protocol === 'https:') {
28        var sURL = "https://" + document.domain + "/v2/product/xpcallout?stdcode=" + stdcode + "&deptid=" + deptid;
29    } else {
30        var sURL = "http://" + document.domain + "/v2/product/xpcallout?stdcode=" + stdcode + "&deptid=" + deptid;
31    }
32
33    if (numberofproducts == 1) {
34        sURL = sURL + "&multiple=0";
35    } else {
36        sURL = sURL + "&multiple=1";
37    }
38
39    oXMLHTTP = null;
40
41    if (window.XMLHttpRequest) {	 		// Firefox, Opera 8.0+, Safari
42        oXMLHTTP = new XMLHttpRequest()
43    } else if (window.ActiveXObject) { 	// Internet Explorer
44        oXMLHTTP = new ActiveXObject("Microsoft.XMLHTTP");
45    }
46    if (oXMLHTTP != null) {
47        oXMLHTTP.onreadystatechange = state_Change;
48        oXMLHTTP.open("GET", sURL, false);
49        oXMLHTTP.send(null);
50    } else {
51
52    }
53
54    ol_fgcolor = "#FFFFFF";
55    ol_bgcolor = "#CCCCCC";
56    ol_border = 0;
57
58    ol_padxl = 0;
59    ol_padxr = 0;
60    ol_padyt = 0;
61    ol_padyb = 0;
62    o3_hauto = 1;
63
64    ol_delay = 500;
65
66    return oXMLHTTP.responseText;
67}
68
69function getCallOut2(stdcode, numberofproducts, deptid) {
70    if (!deptid) {
71        deptid = 0
72    }
73
74    if (location.protocol === 'https:') {
75        var sURL = "https://" + document.domain + "/v2/product/callout2?stdcode=" + stdcode + "&deptid=" + deptid;
76    } else {
77        var sURL = "http://" + document.domain + "/v2/product/callout2?stdcode=" + stdcode + "&deptid=" + deptid;
78    }
79
80    if (numberofproducts == 1) {
81        sURL = sURL + "&multiple=0";
82    } else {
83        sURL = sURL + "&multiple=1";
84    }
85
86    oXMLHTTP = null;
87
88    if (window.XMLHttpRequest) {	 		// Firefox, Opera 8.0+, Safari
89        oXMLHTTP = new XMLHttpRequest()
90    } else if (window.ActiveXObject) { 	// Internet Explorer
91        oXMLHTTP = new ActiveXObject("Microsoft.XMLHTTP");
92    }
93    if (oXMLHTTP != null) {
94        oXMLHTTP.onreadystatechange = state_Change;
95        oXMLHTTP.open("GET", sURL, false);
96        oXMLHTTP.send(null);
97    } else {
98
99    }
100
101    ol_fgcolor = "#FFFFFF";
102    ol_bgcolor = "#CCCCCC";
103    ol_border = 0;
104
105    ol_padxl = 0;
106    ol_padxr = 0;
107    ol_padyt = 0;
108    ol_padyb = 0;
109    o3_hauto = 1;
110
111    ol_delay = 500;
112
113    return oXMLHTTP.responseText;
114}
115
116function getCallOutAzBatch(stdcode) {
117    var xprotocol;
118    if (location.protocol === 'https:') {
119        xprotocol = "https://";
120    } else {
121        xprotocol = "http://";
122    }
123    var sURL = xprotocol + document.domain + "/v2/product/calloutazbatch?stdcode=" + stdcode;
124    oXMLHTTP = null;
125    if (window.XMLHttpRequest) {	 		// Firefox, Opera 8.0+, Safari
126        oXMLHTTP = new XMLHttpRequest()
127    } else if (window.ActiveXObject) { 	// Internet Explorer
128        oXMLHTTP = new ActiveXObject("Microsoft.XMLHTTP");
129    }
130    if (oXMLHTTP != null) {
131        oXMLHTTP.onreadystatechange = state_Change;
132        oXMLHTTP.open("GET", sURL, false);
133        oXMLHTTP.send(null);
134    } else {
135        //
136    }
137
138    ol_fgcolor = "#FFFFFF";
139    ol_bgcolor = "#CCCCCC";
140    ol_border = 0;
141
142    ol_padxl = 0;
143    ol_padxr = 0;
144    ol_padyt = 0;
145    ol_padyb = 0;
146    o3_hauto = 1;
147
148    ol_delay = 500;
149
150    return oXMLHTTP.responseText;
151}
152
153function state_Change() {
154    if (oXMLHTTP.readyState == 4) {	// if xmlhttp shows "loaded"
155        if (oXMLHTTP.status == 200) {	// if "OK"
156
157        } else {
158
159        }
160    }
161}
162function ApplyDeptFilter() {
163    var xval
164    if (document.frmbeta) {
165        xval = document.frmbeta.DeptFilter.value
166        if (xval.length >= 4) {
167            document.frmbeta.submit()
168        }
169        else {
170            alert("Enter at least 4 charcters in the dept filter box then try again.")
171        }
172    }
173}
174
175
176function HideSKUSuggestions(ydivobj) {
177    var xsearchforskus;
178
179    if (document.frmbeta) {
180        if (document.getElementById(ydivobj)) {
181            document.getElementById(ydivobj).style.visibility = "hidden";
182        }
183    }
184}
185
186function GetOffsets() {
187    xscreenwidth = screen.width
188    xscreenheight = screen.height
189
190    if (document.getElementById("divSKUSugg")) {
191
192        document.getElementById("divSKUSugg").style.top = (document.documentElement.scrollTop + 20) + "px";    //self.document.body.scrollTop + 20
193
194        var xleft = (document.body.clientWidth - 900) / 2
195
196
197    }
198}
199
200function showBorder(xconcode) {
201    setSelMatColor('paper', '#EDF2FC', '#FFFFFF')
202    setSelMatColor('vinyl', '#EDF2FC', '#FFFFFF')
203    setSelMatColor('security', '#EDF2FC', '#FFFFFF')
204    setSelMatColor('fluorescent', '#EDF2FC', '#FFFFFF')
205    setSelMatColor('aluminum', '#EDF2FC', '#FFFFFF')
206    setSelMatColor('static', '#EDF2FC', '#FFFFFF')
207
208    xconcode = xconcode.toUpperCase()
209
210    switch (xconcode) {
211        case 'AC-LITHO': setSelMatColor('paper', '#CC0000', '#FFFFCC'); break;
212        case 'AC-LITHO-F': setSelMatColor('fluorescent', '#CC0000', '#FFFFCC'); break;
213        case 'AC-LVS': setSelMatColor('vinyl', '#CC0000', '#FFFFCC'); break;
214        case 'AC-LXV': setSelMatColor('vinyl', '#CC0000', '#FFFFCC'); break;
215
216        case 'QC-S-GLOSS': setSelMatColor('paper', '#CC0000', '#FFFFCC'); break;
217        case 'QC-LITHO-F': setSelMatColor('fluorescent', '#CC0000', '#FFFFCC'); break;
218        case 'QC-FOIL': setSelMatColor('paper', '#CC0000', '#FFFFCC'); break;
219        case 'QC-EV': setSelMatColor('vinyl', '#CC0000', '#FFFFCC'); break;
220        case 'QC-EV-CL': setSelMatColor('vinyl', '#CC0000', '#FFFFCC'); break;
221
222        case 'HC-F-DV': setSelMatColor('security', '#CC0000', '#FFFFCC'); break;
223        case 'HC-F-TP': setSelMatColor('security', '#CC0000', '#FFFFCC'); break;
224
225        case 'HC-F-DS': setSelMatColor('aluminum', '#CC0000', '#FFFFCC'); break;
226        case 'DL-SCF': setSelMatColor('static', '#CC0000', '#FFFFCC'); break;
227        case 'DL-SCB': setSelMatColor('static', '#CC0000', '#FFFFCC'); break;
228
229        case 'DL-LITHO': setSelMatColor('paper', '#CC0000', '#FFFFCC'); break;
230        case 'DL-GLOSS': setSelMatColor('paper', '#CC0000', '#FFFFCC'); break;
231        case 'DL-FOIL': setSelMatColor('paper', '#CC0000', '#FFFFCC'); break;
232        case 'DL-FP': setSelMatColor('fluorescent', '#CC0000', '#FFFFCC'); break;
233        case 'DL-SX': setSelMatColor('vinyl', '#CC0000', '#FFFFCC'); break;
234        case 'DL-SX': setSelMatColor('vinyl', '#CC0000', '#FFFFCC'); break;
235        case 'DL-YC': setSelMatColor('vinyl', '#CC0000', '#FFFFCC'); break;
236        case 'DL-MMM': setSelMatColor('vinyl', '#CC0000', '#FFFFCC'); break;
237    }
238}
239
240
241function setSelMatColor(divname, xborder, xbackgr) {
242    ele = document.getElementById(divname);
243    if (ele) {
244        document.getElementById(divname).style.borderColor = xborder;
245        document.getElementById(divname).style.backgroundColor = xbackgr;
246    }
247}
248//this fun added by jai and calling from xpressTags.
249function openvideo(filename, winWidth, winHeight) {
250    str = 'width=' + winWidth + ',height=' + winHeight + ',toolbar=no,scrollbars=no,menubar=no'
251    OpenWindow = window.open("", "newwin", str);
252    OpenWindow.document.write("<HTML>")
253    OpenWindow.document.write("<TITLE>My Embedded Video</TITLE>")
254    OpenWindow.document.write("<BODY BGCOLOR=000000><center>")
255    OpenWindow.document.write('<EMBED SRC="' + filename + '" AUTOSTART="true" loop="true"></EMBED>')
256    OpenWindow.document.write("</center></HTML>")
257    OpenWindow.document.close()
258    self.name = "main"
259}
260
261var nextdeptid = new Array();
262var nextpagenum = new Array();
263var nextpageno = 2
264
265function loadmore(xdept, viewSize, ttlpg) {
266    $("#spanwait" + xdept).show();
267
268    var deptindex = nextdeptid.indexOf(xdept)
269
270    if (deptindex >= 0) {
271        nextpagenum[deptindex] += 1
272    } else {
273        var nextidx = nextdeptid.length
274        nextdeptid[nextidx] = xdept
275        nextpagenum[nextidx] = 2
276    }
277
278    deptindex = nextdeptid.indexOf(xdept)
279
280    $.post('/v2/department/stocklistingdistinctskus?dept=' + xdept + '&page=' + nextpagenum[deptindex] + '&viewpage=' + viewSize + '&r=' + Math.random(), function (data) {
281
282        $(data).appendTo("#moreProducts" + xdept)
283
284        if (nextpagenum[deptindex] >= ttlpg) {
285            $("#divloadmore" + xdept).hide();
286        }
287
288        $("#spanwait" + xdept).hide();
289    });
290
291}
292
293function loadmoreskus(xdept, viewSize, ttlpg, showsidenav, xindex, responsive) {
294
295    $("#spanwait" + xdept).show();
296
297    var deptindex = $.inArray(xdept, nextdeptid)
298
299    if (deptindex >= 0) {
300        nextpagenum[deptindex] += 1
301    } else {
302        var nextidx = nextdeptid.length
303
304        nextdeptid[nextidx] = xdept
305        nextpagenum[nextidx] = 2
306    }
307
308
309    deptindex = $.inArray(xdept, nextdeptid)
310
311    $.post('/v2/department/stocklistingdistinctskus?dept=' + xdept + '&page=' + nextpagenum[deptindex] + '&viewpage=' + viewSize + '&showsidenav=' + showsidenav + '&xindex=' + xindex + '&responsive=' + responsive + '&r=' + Math.random(), function (data) {
312        if (responsive == "0") {
313            $(data).appendTo("#moreProducts" + xdept)
314        }
315        else {
316            
317            $("#sku_grid_" + xdept + " .ss_responsive_table").append(data);
318        }
319        //08252016 - remove all blank cells 
320        $("#moreProducts" + xdept + " #SLDist1_theDataList > tbody > tr > td:empty").remove();
321        if (nextpagenum[deptindex] >= ttlpg) {
322            $("#divloadmore" + xdept).hide();
323        }
324
325        $("#spanwait" + xdept).hide();
326
327        try {
328
329            //02182015 - since zooming not working for SKUs coming from ajax - rebinding all links        
330            if (typeof (ssfancybox) == 'function') {
331                ssfancybox("a[href$='.jpg']:not(a[rel='SlidePopup'],a[rel='MagicPopup']),a[href$='.png']:not(a[rel='SlidePopup'],a[rel='MagicPopup']),a[href$='.gif']:not(a[rel='SlidePopup'],a[rel='MagicPopup'])");
332            } else {
333                $("a[href$='.jpg']:not(a[rel='SlidePopup'],a[rel='MagicPopup']),a[href$='.png']:not(a[rel='SlidePopup'],a[rel='MagicPopup']),a[href$='.gif']:not(a[rel='SlidePopup'],a[rel='MagicPopup'])").fancybox({ 'titlePosition': 'inside' });
334            }
335
336        } catch (e) {
337
338        }
339
340
341        if (responsive == "1") {
342            $(window).resize();
343            $('.lnkQuickView').iframeDialog({ autoOpen: false, modal: true, resizable: false, show: { effect: 'fade', duration: 500 }, hide: { effect: 'fade', duration: 500 }, autoReposition: true, position: 'center', modal: true });
344            if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
345                //for all product box equal height                
346            } else {
347                if (!$("#sku_grid_" + xdept + " .ss_responsive_table").hasClass("ss-product-detail-view")) {
348                    //$("#sku_grid_" + xdept + " .ss_reponsive_cell").mouseover(function () {
349                    //    $(this).addClass("on");
350                    //});
351
352                    //$("#sku_grid_" + xdept + " .ss_reponsive_cell  a").on('blur', function () {
353                    //    $(this).parents('.ss_reponsive_cell').removeClass("on");
354                    //}).on('focus', function () {
355                    //    $(this).parents('.ss_reponsive_cell').addClass("on");
356                    //});
357                    //$("#sku_grid_" + xdept + " .ss_reponsive_cell").mouseout(function () {
358                    //    $(this).removeClass("on");
359                    //});
360                }
361            }
362        }
363    });
364
365}
366
367function loadmoreskusuiuxV25(xdept, viewSize, ttlpg, showsidenav, xindex,uiux_2025, responsive) {
368    $("#spanwaitv25" + xdept).show();
369
370    var deptindex = $.inArray(xdept, nextdeptid)
371
372    if (deptindex >= 0) {
373        nextpagenum[deptindex] += 1
374    } else {
375        var nextidx = nextdeptid.length
376
377        nextdeptid[nextidx] = xdept
378        nextpagenum[nextidx] = 2
379    }
380
381
382    deptindex = $.inArray(xdept, nextdeptid)
383
384    $.post('/v2/department/stocklistingdistinctskus?dept=' + xdept + '&page=' + nextpagenum[deptindex] + '&viewpage=' + viewSize + '&showsidenav=' + showsidenav + '&xindex=' + xindex + '&uiux_2025=' + uiux_2025 + '&responsive=' + responsive + '&r=' + Math.random(), function (data) {
385        if (responsive == "0") {
386            $(data.products).appendTo("#moreProductsv25" + xdept)
387        }
388        else {
389            if ($("#v25sku_grid_" + xdept + " .ss_responsive_table-lunar .section-block .products_grid_slider").length) {
390                $("#v25sku_grid_" + xdept + " .ss_responsive_table-lunar .section-block .products_grid_slider").append(data.products);
391            }
392            else if ($("#v25sku_grid_" + xdept + " .ss_responsive_table-lunar .section-block .products_grid").length) {
393                $("#v25sku_grid_" + xdept + " .ss_responsive_table-lunar .section-block .products_grid").append(data.products);
394            }
395            
396        }
397        //08252016 - remove all blank cells 
398        $("#moreProductsv25" + xdept + " #SLDist1_theDataList > tbody > tr > td:empty").remove();
399        if (nextpagenum[deptindex] >= ttlpg) {
400            $("#divloadmorev25" + xdept).hide();
401        }
402
403        $("#spanwaitv25" + xdept).hide();
404
405        try {
406
407            //02182015 - since zooming not working for SKUs coming from aja
407x - rebinding all links        
408            if (typeof (ssfancybox) == 'function') {
409                ssfancybox("a[href$='.jpg']:not(a[rel='SlidePopup'],a[rel='MagicPopup']),a[href$='.png']:not(a[rel='SlidePopup'],a[rel='MagicPopup']),a[href$='.gif']:not(a[rel='SlidePopup'],a[rel='MagicPopup'])");
410            } else {
411                $("a[href$='.jpg']:not(a[rel='SlidePopup'],a[rel='MagicPopup']),a[href$='.png']:not(a[rel='SlidePopup'],a[rel='MagicPopup']),a[href$='.gif']:not(a[rel='SlidePopup'],a[rel='MagicPopup'])").fancybox({ 'titlePosition': 'inside' });
412            }
413
414        } catch (e) {
415
416        }
417
418
419        if (responsive == "1") {
420            $(window).resize();
421            /*$('.lnkQuickView').iframeDialog({ autoOpen: false, modal: true, resizable: false, show: { effect: 'fade', duration: 500 }, hide: { effect: 'fade', duration: 500 }, autoReposition: true, position: 'center', modal: true });*/
422            if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
423                //for all product box equal height                
424            } else {
425                if (!$("#v25sku_grid_" + xdept + " .ss_responsive_table-test").hasClass("ss-product-detail-view")) {
426                    //$("#sku_grid_" + xdept + " .ss_reponsive_cell").mouseover(function () {
427                    //    $(this).addClass("on");
428                    //});
429
430                    //$("#sku_grid_" + xdept + " .ss_reponsive_cell  a").on('blur', function () {
431                    //    $(this).parents('.ss_reponsive_cell').removeClass("on");
432                    //}).on('focus', function () {
433                    //    $(this).parents('.ss_reponsive_cell').addClass("on");
434                    //});
435                    //$("#sku_grid_" + xdept + " .ss_reponsive_cell").mouseout(function () {
436                    //    $(this).removeClass("on");
437                    //});
438                }
439            }
440        }
441        
442    });
443
444}
445
446//run when load more button click product load from azure
447function LoadSearchDeptAz(deptid, txtsearch, ymaxrow, ymaxcol, ps, spd, med, excldept, callbysld, responsive, pagename) {
448    if (responsive == undefined) {
449        responsive = "0";
450    }
451    var xmaxcol = ymaxcol
452    $(".spanwait").replaceWith('')
453    if (responsive == "1") {
454        $("#producttable_" + deptid).html($("#producttable_" + deptid).html() + "<div class='ss_reponsive_cell' style='width:" + $('#producttable_' + deptid + ' .ss_reponsive_cell:last-child').css("width") + ";'><div class='ss-product-thumb body7'><span id='spanwait' class='spanwait' style='padding:12px 10px;display:block;text-align:center;margin:10px auto 0;border:#ccc solid 1px; border-radius:8px;box-shadow:1px 3px 3px #c1c1c1; font-family:arial; color:#007CAA;'>Please wait ...<br><img alt='Wait image' src='/img/src/wait.gif' border='0'style='padding:5px'><br>loading more products</span></div></div>")
455    }
456    else {
457        $("#productsdiv_" + deptid).html($("#productsdiv_" + deptid).html() + "<span id='spanwait' class='spanwait' style='width: 212px;padding:12px 10px;display:block;text-align:center;margin:10px auto 0;border:#ccc solid 1px; border-radius:8px;box-shadow:1px 3px 3px #c1c1c1; font-family:arial; color:#007CAA;'>Please wait ...<br><img alt='Wait image' src='/img/src/wait.gif' border='0'style='padding:5px'><br>loading more products</span>")
458    }
459
460
461
462
463    //03112016
464    if (typeof (callbysld) == 'undefined' || callbysld == '') {
465        callbysld = "false"
466    }
467
468    var url = "/v2/department/SetStockListingSearchSkus"
469
470    if (typeof (pagename) != 'undefined' && pagename == "dyndept") {
471        url = "/v2/department/SetDynStockListingSearchSkus"
472
473        var totalliitems = $("#productsdiv_" + deptid + " > ul > li:visible").length;
474
475        var itemWidth = $("#productsdiv_" + deptid + " > ul > li:visible").first().width();
476        var divWidth = $(".ss_dept_main").width();
477        var noOfItems = divWidth / itemWidth;
478        itemsInSingleRow = parseInt(noOfItems);
479        var noofrows = Math.ceil(totalliitems / itemsInSingleRow);
480        ymaxrow = noofrows;
481        ymaxrow = parseInt(ymaxrow) + 2
482        ymaxcol = itemsInSingleRow
483    }
484
485    document.cookie = "clientScreenWidth=" + $(window).width() + "; Path=/;"
486
487    ypageno = 1   //parseInt(ypageno) + 1
488    var xtxtsearch = txtsearch   //'no parking' //document.productsearch.txtsearch.value
489    if (moreresults) {
490        setTimeout(function () { processdata(deptid, "fill with arrdata"); }, 2000)
491        //return;
492    }
493    reqsent = true
494    //alert(url + "?txtsearch=" + txtsearch + "&currentpage=" + ypageno + "&maxrows=" + ymaxrow + "&maxcols=" + ymaxcol + "&lazy=0&xdept=" + excldept + "&ps=" + ps + "&spd=" + spd + '&showmedimage=' + med)
495    $.post(url + "?deptid=" + deptid + "&txtsearch=" + txtsearch + "&currentpage=" + ypageno + "&maxrows=" + ymaxrow + "&maxcols=" + ymaxcol + "&lazy=0&xdept=" + excldept + "&ps=" + ps + "&spd=" + spd + '&showmedimage=' + med + '&callbysld=' + callbysld + '&responsive=' + responsive, function (data) {
496        if (data.indexOf("End of r3c0rds") < 0) {
497            reqsent = false
498        }
499        if (typeof (pagename) != 'undefined' && pagename == "dyndept") {
500            processdata_SA(deptid, data + "|*|")
501        } else {
502            processdata(deptid, data + "|*|", responsive)
503        }
504
505    });
506
507    //Hiding button as we are loading all products to be loaded in just one go. Otherwise comment the following line.
508
509    $("#btnloadmore_" + deptid).hide();
510
511
512}
513function LoadSearchDept(deptid, txtsearch, ymaxrow, ymaxcol, ps, spd, med, excldept, callbysld, responsive) {
514    if (responsive == undefined) {
515        responsive = "0";
516    }
517    var xmaxcol = ymaxcol
518    $(".spanwait").replaceWith('')
519    if (responsive == "1") {
520        $("#producttable_" + deptid).html($("#producttable_" + deptid).html() + "<div class='ss_reponsive_cell' style='width:" 
520+ $('#producttable_' + deptid + ' .ss_reponsive_cell:last-child').css("width") + ";'><div class='ss-product-thumb body7'><span id='spanwait' class='spanwait' style='padding:12px 10px;display:block;text-align:center;margin:10px auto 0;border:#ccc solid 1px; border-radius:8px;box-shadow:1px 3px 3px #c1c1c1; font-family:arial; color:#007CAA;'>Please wait ...<br><img alt='Wait image' src='/img/src/wait.gif' border='0'style='padding:5px'><br>loading more products</span></div></div>")
521    }
522    else {
523        $("#productsdiv_" + deptid).html($("#productsdiv_" + deptid).html() + "<span id='spanwait' class='spanwait' style='width: 212px;padding:12px 10px;display:block;text-align:center;margin:10px auto 0;border:#ccc solid 1px; border-radius:8px;box-shadow:1px 3px 3px #c1c1c1; font-family:arial; color:#007CAA;'>Please wait ...<br><img alt='Wait image' src='/img/src/wait.gif' border='0'style='padding:5px'><br>loading more products</span>")
524    }
525
526
527
528    //03112016
529    if (typeof (callbysld) == 'undefined' || callbysld == '') {
530        callbysld = "false"
531    }
532
533    var url = "/v2/department/SetStockListingSearchSkus"
534    document.cookie = "clientScreenWidth=" + $(window).width() + "; Path=/;"
535
536    ypageno = 1   //parseInt(ypageno) + 1
537    var xtxtsearch = txtsearch   //'no parking' //document.productsearch.txtsearch.value
538    if (moreresults) {
539        setTimeout(function () { processdata(deptid, "fill with arrdata"); }, 2000)
540        //return;
541    }
542    reqsent = true
543    //alert(url + "?txtsearch=" + txtsearch + "&currentpage=" + ypageno + "&maxrows=" + ymaxrow + "&maxcols=" + ymaxcol + "&lazy=0&xdept=" + excldept + "&ps=" + ps + "&spd=" + spd + '&showmedimage=' + med)
544    $.post(url + "?txtsearch=" + txtsearch + "&currentpage=" + ypageno + "&maxrows=" + ymaxrow + "&maxcols=" + ymaxcol + "&lazy=0&xdept=" + excldept + "&ps=" + ps + "&spd=" + spd + '&showmedimage=' + med + '&callbysld=' + callbysld + '&responsive=' + responsive, function (data) {
545        if (data.indexOf("End of r3c0rds") < 0) {
546            reqsent = false
547        }
548        processdata(deptid, data + "|*|", responsive)
549    });
550
551    //Hiding button as we are loading all products to be loaded in just one go. Otherwise comment the following line.
552    $("#btnloadmore_" + deptid).hide();
553}
554
555function processdata(deptid, xdata, responsive) {
556
557    if (xdata.indexOf("|*|") > 0) {
558        arrdata = xdata.split("|*|")
559        moreresultsctr = 0
560        if ($("#productsdiv_" + deptid).width() == 910) {
561            if ($(".container").find(".right-detail-cont").length > 0) {
562                $("<tr><td colspan='" + xmaxcol + "' style='width:100%;padding:0 0 5px 0'>" + $("div.right-cont").html() + "</td></tr><tr><td colspan='" + xmaxcol + "'><div><img src='/img/src/search-tab-moreproducts-455.png'/></div></td></tr>").appendTo("#producttable_" + deptid);
563                $("div.right-cont").replaceWith('');
564            }
565        }
566    }
567    arrdata[moreresultsctr] = jQuery.trim(arrdata[moreresultsctr])
568    //$(arrdata[moreresultsctr]).appendTo("#producttable_" + deptid)
569    if (responsive == "1") {
570        if ($("#producttable_" + deptid).hasClass('ss_responsive_table')) {
571            $("#producttable_" + deptid).html(arrdata[moreresultsctr]);
572        }
573        else {
574            $("#sku_grid_" + deptid + " .ss_responsive_table").append(arrdata[moreresultsctr]);
575        }
576        $("#producttable_" + deptid).attr('data-count', $("#producttable_" + deptid + " .ss_reponsive_cell").length)
577
578        if (typeof (ssfancybox) == 'function') {
579            ssfancybox("a[href$='.jpg']:not(a[rel='SlidePopup'],a[rel='MagicPopup']),a[href$='.png']:not(a[rel='SlidePopup'],a[rel='MagicPopup']),a[href$='.gif']:not(a[rel='SlidePopup'],a[rel='MagicPopup'])");
580        }
581        else if (typeof (SSFancyBox) != "undefined" && SSFancyBox == true) {
582            //$("a[href$='.jpg'],a[href$='.png'],a[href$='.gif']").ssfancybox();
583            $("a[href$='.jpg']:not(a[rel='SlidePopup'],a[rel='MagicPopup']),a[href$='.png']:not(a[rel='SlidePopup'],a[rel='MagicPopup']),a[href$='.gif']:not(a[rel='SlidePopup'],a[rel='MagicPopup'])").ssfancybox();
584        }
585        else {
586            $("a[href$='.jpg']:not(a[rel='SlidePopup'],a[rel='MagicPopup']),a[href$='.png']:not(a[rel='SlidePopup'],a[rel='MagicPopup']),a[href$='.gif']:not(a[rel='SlidePopup'],a[rel='MagicPopup'])").fancybox({ 'titlePosition': 'inside' });
587        }
588
589
590        $('.lnkQuickView').iframeDialog({ autoOpen: false, modal: true, resizable: false, show: { effect: 'fade', duration: 500 }, hide: { effect: 'fade', duration: 500 }, autoReposition: true, position: 'center', modal: true });
591        if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
592            //for all product box equal height                
593        } else {
594            if (!$("#sku_grid_" + deptid + " .ss_responsive_table").hasClass("ss-product-detail-view")) {
595                $("#sku_grid_" + deptid + " .ss_reponsive_cell").mouseover(function () {
596                    $(this).addClass("on");
597                });
598
599                $("#sku_grid_" + deptid + " .ss_reponsive_cell  a").on('blur', function () {
600                    $(this).parents('.ss_reponsive_cell').removeClass("on");
601                }).on('focus', function () {
602                    $(this).parents('.ss_reponsive_cell').addClass("on");
603                });
604                $("#sku_grid_" + deptid + " .ss_reponsive_cell").mouseout(function () {
605                    $(this).removeClass("on");
606                });
607            }
608        }
609        $(window).resize();
610    }
611    else {
612        $("#producttable_" + deptid).html(arrdata[moreresultsctr])
613    }
614
615    $(".spanwait").replaceWith('')
616}
617
618
619var itemsInSingleRow = 0;

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.