The Eric Morecambe Collection 10th & 11th January 2025 (2025)

  • Auctions
  • Accounts
  • My Items
  • My Alerts
  • Create Account
  • Login

  • Auction information
  • Catalogue

'; $("body").prepend(swfdiv); swfobject.embedSWF(config.swf.path, "rtb-bridge", "1", "1", "9.0.0","/assets/js/vendor/swfobject/expressInstall.swf", flashvars, params, attributes); }};$.fn.getSwf = function(){ //$(this).Console("Using Flash Connection!"); var id=config.swf.id; if(window.document[id]){ return window.document[id]; } if(!$.browser.msi){ if(document.embeds && document.embeds[id]) return document.embeds[id]; }else{ return $("#" + id)[0]; //return window.document.getElementById(id); }};var host = "wss://513172.auctionserver.net:10834/";$.fn.wsocketConn = function(){ if (connect == true) { $(this).Console("Connection has already been established!"); return; } try{ //$(this).Console("Using WebSocket Connection"); if ((wsocket instanceof WebSocket) == false) { wsocket = new WebSocket(host); wsocket.onopen = function(msg){ $(this).onConnect("true", 'W'); }; wsocket.onmessage = function(msg){ $(this).rcvData(msg.data.replace(' ', '')); }; // called when an error occurs wsocket.onerror = function(evt) { $(this).Console("WebSocket error: " + evt.data); }; wsocket.onclose = function(msg){ $(this).Console("WebSocket connection close"); $(this).onClose(); }; } else { $(this).Console("WebSocket instance has already been created"); } } catch(ex) { $(this).Status("WebSocket could not connect to rtb server: " + ex); $(this).ReConnect(); }};$.fn.socket=function(){ $(this).Status('Connecting..'); return $(this).each(function() { if ("WebSocket" in window) { // Has web socket $(this).Console("Your browser support WebSockets!"); $(this).wsocketConn(); } else { $(this).Console("Your browser do not support WebSockets"); $(this).setSwf(); swf=$(this).getSwf(); } });}; $.fn.Send = function (command) { $(this).Console("Request >>" + command); if (connect == true) { //$(this).Console('Successfully connected sending request'); if (connect_type == 'W') { // Has web socket //$(this).Console('sending in socket'); if (wsocket == undefined || wsocket == null) { $(this).Console('wsocket = null; '); $(this).wsocketConn();}var request = command + "\n\n";try { wsocket.send(request);} catch (exception) { $(this).Console('WebSocket failed to send command: ' + exception); $(this).ReConnect();}noOpTimer.reset();return true;} else if (connect_type == 'F') { // Use flash bridge //$(this).Console('sending in flash'); if (swf == undefined || swf == null) { $(this).Console('swf = null; '); $(this).setSwf(); swf = $(this).getSwf();}var request = command + "\n\n";try { swf.SetVariable("data", request); swf.TCallLabel("/", "send");} catch (exception) { $(this).Console('Flash failed to send command: ' + exception); $(this).ReConnect();}noOpTimer.reset();return true;} else { $(this).Status("Cannot send request command! Failed to identify connection type!");} }// Connect $(this).Status("Cannot send request command!"); noOpTimer.reset(); return false;}; $.fn.NoOpTimer = function () { var self = this; noOpTimer = (function () { var tmr = {}; tmr.timer = null; tmr.count = 1; tmr.start = function () { tmr.timer = setTimeout(function () { if ((tmr.count * 1000) == autoRefresh) { var request = '{"Cmd":"noop"}'; if (connect) { if ($(self).Send(request) === false) { } } //tmr.reset(); } else { tmr.count++; tmr.start(); } }, 1000); }; tmr.reset = function () { clearTimeout(tmr.timer) tmr.count = 1; tmr.start(); } return tmr; })(); noOpTimer.start();}; $.fn.onConnect = function (conn, conn_type) { if (conn == "true") { retry = 0; wretry = 0;fretry = 0; seconds = 0; connect = true; connect_type = conn_type; reconnecting = false; clearInterval(connect_interval); clearInterval(connect_timeout); $(this).Status("Successfully connected"); $(this).Console('Successfully connected using: ' + connect_type); $(this).AuthQ(); } else { $(this).Status("Connection failed"); connect = false; connect_type = null; swf = null; wsocket = null; $(this).Console('Connection failed'); if (reconnecting == false) { $(this).ReConnect(); } }}; $.fn.onClose = function () { connect = false; connect_type = null; swf = null; wsocket = null; if (au_st == 3) { $(this).Status("Connection closed"); } else { $(this).Status("Connection failed"); if (reconnecting == false) { $(this).ReConnect(); } }}; $.fn.Close = function () { swf.TCallLabel("/", "close");}; $.fn.Status = function (msg) { $("#con-status").html(msg);}; $.fn.Console = function (str) { var cons = false; if (cons) { $("#z2").prepend(str + "
"); }}; $.fn.ShowCons = function (msg) { var lnkSC = $("#z3"); if (lnkSC.attr("rel") == "0") { lnkSC.attr("rel", "1"); lnkSC.html("hide console"); $("#z2").show(1000); } else { lnkSC.attr("rel", "0"); lnkSC.html("show console"); $("#z2").hide(1000); }}; var act; // is lot active?$.fn.initState = function(data){ if (data == undefined) return; if (data["Act"] != undefined) { act = data["Act"]; }} $.fn.parseResponse = function (response) { try { var objResp = JSON.parse(response); } catch (err) { if (response == 'not connected') return; response = response.replace(/[^a-zA-Z0-9[!"#$%&'()*+,\-./:;<=>?@[\\]^_`{|}~]]+/g, ''); var resp = ""; var bqo = 0; for (i = 0; i < response.length; i++) { var cur = response[i]; var pre = response[i - 1]; if (cur == '"' && pre != undefined && pre != '\\') { bqo++; } if (cur == ':') { bqo = 0; } if (cur == ',' && bqo == 1) { resp = resp + '"' + cur; bqo = 0; } else { resp = resp + cur; } } var objResp = JSON.parse(resp); } return objResp;} $.fn.rcvData = function(response){ var objResp = $(this).parseResponse(response); var cmd = objResp["Cmd"]; var data = objResp["Data"]; $(this).initState(data); $(this).Console("Response << " + response); switch(cmd) { case "aus": $(this).AuthS(data); break; case "ers": $(this).ErrS(data); break; case "sns": $(this).SyncS(data); break; case "sts": $(this).StartS(data); break; case "pas": $(this).PauseS(data); break; case "acts": $(this).StartLotS(data); break; case "fws": $(this).FairS(data); break; case "pbds": $(this).PlaceS(data); break; case "ubds": $(this).UpdateS(data); break; case "chabids": $(this).ChangeAskingBidS(data); break; case "sndmsgs": $(this).SendMessageS(data); break; case "sps": $(this).StopS(data); break; case "grplots": $(this).GAllS(data); break; case "ugrplots": $(this).UGAllS(data); break; case "simulmsgq": $(this).SimulMessage(data); break; case "ebns": $(this).EnterBidderNumS(data); break; case "cebns": $(this).CancelEnterBidderNumS(data); break; case "buyns": $(this).BuyNS(data); break; case "noop": //do nothing break; case "bidcntds": $(this).BidCountdS(data); break; }}; $.fn.AuthQ = function () { $(this).Console("Authenticate User"); var request = '{"Cmd":"auq","Data":{"Ukey":"' + key + '","AuId":"' + au_id + '"}}'; if ($(this).Send(request) == false) { }}; $.fn.AuthS = function(data){ if (data["Confirm"] == "1"){ $(this).Console("Authentication Passed"); $(this).SyncQ(); }else{ $(this).Console("Authentication Failed"); $(this).Close(); }}; $.fn.SyncQ = function(){ sync = true; var request = '{"Cmd":"snq"}'; if ($(this).Send(request) == false){}}; $.fn.SyncS = function(data){ var soldw = ''; var soldwp = ''; var sbuy = false; lot_pos = data["Pos"]; var playSound = ''; var qtyinfo = "This lot will be sold at the winning bid"; if (data["SLotW"] != undefined) { var SLotW = data["SLotW"]; for (keyVar in SLotW) { soldw = keyVar; soldwp = SLotW[keyVar]; break; } } $(this).BidCountdReset(); if (data["SBuy"] != undefined && data["SBuy"] == '1') { sbuy = true; } if (data["SLot"] != undefined) { var SLot = data["SLot"]; var soldp = null; for (keyVar in SLot) { if ($.isNumeric(keyVar)) { soldp = SLot[keyVar]; $(this).UpCatList(keyVar, soldp, sbuy); } } if (soldp == null || soldp == 'Unsold' ) { playSound = 'passed'; } else { if (soldw != '' && soldw == u_id) { playSound = 'soldwon'; } else { playSound = 'soldnotwon'; } } } if (playSound && soundManager.supported() && $("#z25").prop("checked") ) { soundManager.play(playSound); } $(this).Reset(); au_st = data["AuSt"]; lot_id = data["Id"]; rsv = data["Res"]; abid = data["ABid"]; lqty = data["LQty"]; lqtyxm = data["LQtyXM"]; var cbid_curr = data["CBid"]; var lest_curr = data["LEst"]; var hest_curr = data["HEst"]; if (mobile) { if (lest_curr > 0 || hest_curr > 0) { $(".est-label").show(); $(".est-amount").show(); } else { $(".est-label").hide(); $(".est-amount").hide(); } } /* Removing cents if zero */ cbid_curr = $(this).FormatNumber(cbid_curr, 2); lest_curr = $(this).FormatNumber(lest_curr, 2); hest_curr = $(this).FormatNumber(hest_curr, 2); ask_bid = $(this).FormatNumber(abid, 2); cbid_curr = '' + curr_sign + '' + '' + cbid_curr + ''; lest_curr = '' + curr_sign + '' + '' + lest_curr + ''; hest_curr = '' + curr_sign + '' + '' + hest_curr + ''; ask_bid = '' + curr_sign + '' + '' + ask_bid + ''; $("#z6").html(data["No"]); $("#z6").html(data["No"]); $("#z7").html(data["Name"]); $("#z13").html(lest_curr); $("#z14").html(hest_curr); $("#z15").html(cbid_curr); $("#z16").html(ask_bid); if (multicurrency) { $(this).MultiExRate(data["CBid"]); } if (sync) { sync = false; $(this).LoadMsg(); } else { var st = data["Stat"]; sta = st.split("|"); for(i=0;i

0 && lqtyxm == 1) { qtymsg = '' + qtyinfo + ' x ' + lqty + ' !!'; $(this).Message(qtymsg); } } plc = (u_id == data["BidBy"]); own = (u_id == data["CurWn"]); $(this).LimitMsg(); $(this).RsvMet(); $(this).LoadDt(lot_id); $(this).LoadUp(); $(this).Enable(); lgqty=0; $("#z34").html(''); $(".lot-title").show(); $(".lot-category").show(); $(".grp-title").html(''); $(".grp-title").hide(); if (data["Grp"] != undefined) { $(this).GAllS(data); } if (data["LblCnt"] != undefined && data["LblCnt"] != '') { $(this).BidCountdS(data); }}; $.fn.RsvMet = function(){ var rv = parseFloat(rsv); var cb = parseFloat($("#z15").html()); if (cb < rv) { $("#z17").html("Reserve not met!"); } else { $("#z17").html(""); }}; $.fn.LoadDt = function(id){ if (id <= 0) return; return this.each(function() { if (mobile) var ajaxUrl = "/lot-info/info_mobile_"+au_id+".txt?id=" + id; else var ajaxUrl = "/lot-info/info_"+au_id+".txt?id=" + id; var next_lot_id = 0; var posAjax = { dataType: "html", url: ajaxUrl, cache: true }; var getData = function() { posAjax.beforeSend = function() { $("#z9").html('The Eric Morecambe Collection 10th & 11th January 2025 (1)'); $("#z11").html('The Eric Morecambe Collection 10th & 11th January 2025 (2)'); if(slideshowTimeout){ clearTimeout(slideshowTimeout); slideshowTimeout = null; } if(slideshowBigTimeout){ clearTimeout(slideshowBigTimeout); slideshowBigTimeout = null; } }; posAjax.error = function() { $(this).Status("Notice: Cannot load additional lot data"); }; posAjax.success = function(response) { $(this).Status(""); if (response != "") { var objResp=JSON.parse(response); var vids=objResp["Vids"]; var vidsthumb=objResp["VidsThumb"]; var imgs=objResp["Imgs"]; var imgsb=objResp["ImgsB"]; var pimgs=objResp["PImgs"]; var pimgsb=objResp["PImgsB"]; var thumbs=objResp["Thumbs"]; var cats=objResp["Cats"]; var desc=objResp["Desc"]; next_lot_id=objResp["NLot"]; $("#z8").html(""); if (cats.length > 0) { if (mobile) $("#z8").html("Category: " + cats + ""); else $("#z8").html("(Category: " + cats + ")"); } $("#z18").html(desc); var swsec = 0; vidcnt = vids.length; imgcnt = imgs.length; mediacnt = imgcnt+vidcnt; imgarr=new Array(); $("#z9").html(""); $("#z10").html(""); var ictr = 0; if (imgcnt > 0 ) { var lImg = new Array(); if (swsec > 0) { // Slide show enabled for(var i=0;i'); ictr++; } } else { $(this).Console('Slide show not activated!'); for(var i=0;i'); ictr++; } } } if (vidcnt > 0 && swsec == 0) { for(var i=0;i

'); ictr++; } } if (mediacnt > 0) { $("#limg0").show(); } else { $("#z9").html('The Eric Morecambe Collection 10th & 11th January 2025 (3)'); } if (mediacnt > 1) { $("#z9").append(''); $("#z9").append(''); $(".previmg").append(''); $(".nextimg").append(''); $("#lot-img-notes").show(); $("#prevSp,#nextSp").fadeOut(3000); $("#z9") .mouseover(function(){ $("#prevSp,#nextSp").show(); }).mouseout(function(){ $("#prevSp,#nextSp").hide(); }); } else { $("#lot-img-notes").hide(); } if (pimgsb.length > 0) { var preImg = new Image(); if (BrowserDetect.browser == 'Explorer') { $(preImg) .bind('load', function(){ blnImgLoaded = next_lot_id; }) .prop('src', pimgs[0]); } else { preImg.src = pimgs[0]; } } } }; posAjax.complete = function() { $(this).Status(""); var swsec = 0; if (imgcnt > 1 && swsec > 0) { curimg = mediacnt -1; $(this).SlideFrame(); } }; $.ajax(posAjax); }; getData(); });}; var pageHeight = 0, pageIdPrefix = "catalog-page-", pageIdPrefixLen = pageIdPrefix.length, pagesTotal = Math.ceil(816 / 10000);$.fn.LoadUp = function () { var currPageNum = Math.ceil(lot_pos / 10000), currPageLoaded = $('#' + pageIdPrefix + currPageNum + '.data-page').length, follow = $("#z22").prop("checked"); if (!follow || currPageLoaded) { $(this).Scroll(); return; } var ajaxUrl = mobile ? "/lot-info/catalog_mobile_" + au_id + "_" + currPageNum + ".html?" + lot_id : "/lot-info/catalog_" + au_id + "_" + currPageNum + ".html?" + lot_id; var posAjax = { dataType: "html", url: ajaxUrl }; var getData = function () { posAjax.beforeSend = function () { }; posAjax.error = function () { $(this).Status("Error: Cannot load lot data!"); }; posAjax.success = function (response) { return $(this).LoadUpSuccess(response); }; posAjax.complete = function () { $(".tooltip").simpleToolTip(); }; $.ajax(posAjax); }; getData();};$.fn.LoadUpSuccess = function (response) { var currPageNum = Math.ceil(lot_pos / 10000); var tableListClass = mobile ? "footable" : "catalog-list"; $(this).Status(""); if (response != "") { var currPage = $(response) .find('#' + pageIdPrefix + currPageNum) .parent('table.' + tableListClass); if (currPage.html() != null) { $("#z21").html('

' + currPage.html() + '

'); pageHeight = $("#z21").height(); var catalogHtml = '', mockClass; for (var page = 1; page <= pagesTotal; page++) { if (page == currPageNum) { catalogHtml += currPage.html(); } else { mockClass = page < currPageNum ? 'top-mock-page' : 'bottom-mock-page'; catalogHtml += '

' + '

'; } } $("#z21").html('

' + catalogHtml + '

'); $(this).Scroll(); } }}; $.fn.ShowImg = function(imgid){ $("#limg"+curimg).hide(); $("#limg"+imgid).show(); $("#thumb"+curimg).attr({"class":"thumb"}); $("#thumb"+imgid).attr({"class":"thumb-sel"}); curimg = imgid;}; $.fn.NextImg = function(){ var imgid = curimg + 1; if (imgid == mediacnt) imgid = 0; $("#limg"+curimg).hide(); if (BrowserDetect.browser == 'Explorer') { // Make only in IE and default image var nimage = $("#limg"+imgid); if (nimage[0].complete) { $("#limg"+imgid).show(); } else { var nsrc = $("#limg"+imgid).prop('src') + '?' + lot_id; $("#limg"+imgid).prop('src',nsrc); $("#limg"+imgid).show(); } } else { $("#limg"+imgid).show(); } curimg = imgid; preimg = curimg + 1; if (preimg == mediacnt) preimg = 0; if (imgarr[preimg] != undefined) { // Check if it is in the pending preload lImg = new Image(); lImg.src = imgarr[preimg]; $("#limg"+preimg).prop('src',imgarr[preimg]); delete imgarr[preimg]; // Unset it so it will not be preloaded again } var swsec = 0; if (swsec > 0) { $(this).SlideFrame(false); }}; $.fn.PrevImg = function(){ var imgid = curimg - 1; if (imgid == -1) imgid = mediacnt - 1; $("#limg"+curimg).hide(); if (BrowserDetect.browser == 'Explorer') { // Make only in IE and default image var nimage = $("#limg"+imgid); if (nimage[0].complete) { $("#limg"+imgid).show(); } else { var nsrc = $("#limg"+imgid).prop('src') + '?' + lot_id; $("#limg"+imgid).prop('src',nsrc); $("#limg"+imgid).show(); } } else { $("#limg"+imgid).show(); } curimg = imgid; preimg = curimg - 1; if (preimg == -1) preimg = mediacnt - 1; if (imgarr[preimg] != undefined) { // Check if it is in the pending preload lImg = new Image(); lImg.src = imgarr[preimg]; $("#limg"+preimg).prop('src',imgarr[preimg]); imgarr.splice(preimg, 1); // Unset it so it will not be preloaded again } var swsec = 0; if (swsec > 0) { $(this).SlideFrame(false); }}; $.fn.ShowImgBig = function(imgid){ $("#limgb"+curimgb).hide(); $("#limgb"+imgid).show(); $("#thumb"+curimgb).attr({"class":"thumb"}); $("#thumb"+imgid).attr({"class":"thumb-sel"}); curimgb = imgid;}; $.fn.Reset = function(data){ curimg = 0; curimgb = 0; imgcnt = 0; abid = 0; rsv = 0; if (resetmsg) { $("#z19").html(''); }}; $.fn.Enable = function(){ var straucclosed = "Auction closed"; if(au_st==2) { $("#z35").prop("disabled", false); $("#z36").prop("disabled", false); $("#z22").prop("disabled", false); $("#z23").prop("disabled", false); $("#z24").prop("disabled", false); } else if (au_st==3) { $(".hide-close").hide(); if (mobile) { $(".auction-date").append('

'+ straucclosed +'

'); $(".lot-title").html(''); } else $(".main-wrap").prepend('

'+ straucclosed +'

'); }};$.fn.disableButton = function (disabled) {}; $.fn.StartS = function(data){ if (lot_id != data["Id"]) { $(this).SyncQ(); return; } au_st=2; var st = data["Stat"]; sta = st.split("|"); for(i=0;i

' + data["Stat"] + ''); if (soundManager.supported() && $("#z25").prop("checked")) soundManager.play('fairwarning');}; $.fn.PlaceS=function(data){ $(this).Message(data["Stat"]);}; $.fn.UpdateS = function(data){ if (lot_id != data["Id"]) { $(this).SyncQ(); return; } if (lot_id == data["Id"]) { var cbid_curr = data["CBid"]; /* Removing cents if zero */ cbid_curr = $(this).FormatNumber(cbid_curr); cbid_curr = '' + curr_sign + '' + '' + cbid_curr + ''; $("#z15").html(cbid_curr); if (multicurrency) { $(this).MultiExRate(data["CBid"]); } plc = (u_id == data["BidBy"]); own = (u_id != "" && u_id == data["CurWn"]); abid = data["ABid"]; var ask_bid = abid; ask_bid = $(this).FormatNumber(ask_bid); ask_bid = '' + curr_sign + '' + '' + ask_bid + ''; $("#z16").html(ask_bid); $(this).BidCountdReset(); if (data["Msg"] != undefined && data["Msg"] != "") { $(this).Message(data["Msg"]); } if (own) { $(this).Message(cbid_curr + " YOUR BID!!!"); } if (data["Stat"] != undefined && data["Stat"] != "") { $(this).Message(data["Stat"]); } if (data["CBid"] > 0) { if (soundManager.supported() && $("#z25").prop("checked")) { soundManager.play('bidsound'); } } $(this).RsvMet(); $(this).Enable(); }}; $.fn.ChangeAskingBidS = function(data){ if (lot_id != data["Id"]) { $(this).SyncQ(); return; } plc = false; if (lot_id == data["Id"]) { abid = data["ABid"]; var ask_bid = abid; ask_bid = $(this).FormatNumber(ask_bid); ask_bid = '' + curr_sign + '' + '' + ask_bid + ''; $("#z16").html(ask_bid); $(this).Message(data["Stat"]) $(this).Enable(); }}; $.fn.SendMessageS = function (data) { var uid = (data["UId"] != undefined) ? data["UId"] : ''; var unm = (data["UNm"] != undefined) ? data["UNm"] : ''; var bidno = (data["BidNo"] != undefined) ? data["BidNo"] : ''; var soundEffectUrl = (data["SndEf"] != undefined) ? data["SndEf"] : ''; $(this).Message(decodeHtml(data["Msg"]), uid, unm, bidno); if (soundManager.supported() && soundEffectUrl && $("#z25").prop("checked")) { var currentSound = soundManager.createSound({ id: 'soundEffect' + soundEffectUrl, url: soundEffectUrl + '?' + Date.now() }); currentSound.play(); }}; var scrolling_timer = null;var ms_delay_scrolling = 100;$(document).ready(function () { $("#upcoming-scroll").scroll($(this).CatalogScrollHandler);});$.fn.CatalogScrollHandler = function () { var scrWrap = $("#upcoming-scroll"); var dataPagesHeight = 0; $(".data-page").each(function () { dataPagesHeight += $(this).height(); }); var topMockPagesHeight = 0; $(".top-mock-page").each(function () { topMockPagesHeight += $(this).height(); }); var bottomMockPagesHeight = 0; $(".bottom-mock-page").each(function () { bottomMockPagesHeight += $(this).height(); }); var y1 = $("#z21").height() - bottomMockPagesHeight - scrWrap.height() - scrWrap.scrollTop() - Math.ceil(pageHeight / 3); if (y1 <= 0) { if (y1 + pageHeight <= 0) { // scrolled down more than one page clearTimeout(scrolling_timer); scrolling_timer = setTimeout(function () { $(this)._loadJumpDownPage(); }, ms_delay_scrolling); } else { $(this)._loadWalkDownPage(); } } var y2 = scrWrap.scrollTop() - topMockPagesHeight - Math.ceil(pageHeight / 3); if (y2 <= 0) { if (y2 + pageHeight <= 0) { // scrolled up more than one page clearTimeout(scrolling_timer); scrolling_timer = setTimeout(function () { $(this)._loadJumpUpPage(); }, ms_delay_scrolling); } else { $(this)._loadWalkUpPage(); } }}/** * Scroll to current lot, depends on option - "Upcoming" or "Past" */$.fn.Scroll = function () { if ($("#z22").prop("checked")) { var scrWrap = $("#upcoming-scroll"), isUp = $("#z23").prop('checked'); var getTop = function (lotId) { var trCurrLot = $("#lot-" + lotId)[0]; return isUp ? trCurrLot.offsetTop + trCurrLot.offsetHeight : trCurrLot.offsetTop - scrWrap.height(); } do { var scrollTop = getTop(lot_id); scrWrap.scrollTop(scrollTop); scrWrap.scroll(); } while (scrollTop != getTop(lot_id)); }};/** * Load page, when we scroll for one page down */$.fn._loadWalkDownPage = function () { var lastDataPageId = $(".data-page:last").attr("id"); var nextPageNum = parseInt(lastDataPageId.substr(pageIdPrefixLen, lastDataPageId.length - pageIdPrefixLen)) + 1; if (nextPageNum > pagesTotal) return; var ajaxUrl = "/lot-info/catalog_" + au_id + "_" + nextPageNum + ".html?" + lot_id; var posAjax = { dataType: "html", url: ajaxUrl, async: false }; var getData = function () { posAjax.success = function (response) { $(this).Status(""); if (response != "") { var appearPageSelector = '#' + pageIdPrefix + nextPageNum; var appearPage = $(appearPageSelector); var currTbodyHtml = $(response).find(appearPageSelector).html(); appearPage.html(currTbodyHtml).removeClass('bottom-mock-page').addClass('data-page'); pageHeight = $(appearPageSelector).height(); var dataPageCnt = $(".data-page").length; if (dataPageCnt > 2) { $(this)._mockCatalogPage($(".data-page:first"), true); } } }; posAjax.error = function () { }; posAjax.complete = function () { }; $.ajax(posAjax); }; getData();}/** * Load page, when we scroll for one page up */$.fn._loadWalkUpPage = function () { var firstDataPageId = $(".data-page:first").attr("id"); var prevPageNum = parseInt(firstDataPageId.substr(pageIdPrefixLen, firstDataPageId.length - pageIdPrefixLen)) - 1; if (prevPageNum == 0) { return; } var ajaxUrl = "/lot-info/catalog_" + au_id + "_" + prevPageNum + ".html?" + lot_id; var posAjax = { dataType: "html", url: ajaxUrl, async: false }; var getData = function () { posAjax.success = function (response) { $(this).Status(""); if (response != "") { var appearPageSelector = '#' + pageIdPrefix + prevPageNum; var appearPage = $(appearPageSelector); var currTbodyHtml = $(response).find(appearPageSelector).html(); appearPage.html(currTbodyHtml).removeClass('top-mock-page').addClass('data-page'); pageHeight = $(appearPageSelector).height(); var dataPageCnt = $(".data-page").length; if (dataPageCnt > 2) { $(this)._mockCatalogPage($(".data-page:last"), false); } } }; posAjax.error = function () { }; posAjax.complete = function () { }; $.ajax(posAjax); }; getData();}/** * Load page, when we scroll over more than one page down */$.fn._loadJumpDownPage = function () { var scrWrap = $("#upcoming-scroll"), appearPage = null; $(".bottom-mock-page").each(function () { appearPage = $(this); if ($(this).offset().top + $(this).height() > scrWrap.offset().top) { return false; } }); if (appearPage == null) { return; } var appearPageId = appearPage.attr("id"); var appearPageNum = parseInt(appearPageId.substr(pageIdPrefixLen, appearPageId.length - pageIdPrefixLen)); var ajaxUrl = "/lot-info/catalog_" + au_id + "_" + appearPageNum + ".html?" + lot_id; var posAjax = { dataType: "html", url: ajaxUrl }; var getData = function () { posAjax.success = function (response) { $(this).Status(""); if (response != "") { for (var page = 0; page < appearPageNum; page++) { $(this)._mockCatalogPage($('#' + pageIdPrefix + page), true); } var appearPageSelector = '#' + pageIdPrefix + appearPageNum; var appearPage = $(appearPageSelector); var currTbodyHtml = $(response).find(appearPageSelector).html(); appearPage.html(currTbodyHtml).removeClass('bottom-mock-page').addClass('data-page'); if (appearPage.offset().top + appearPage.height() < scrWrap.offset().top) { $(this)._loadJumpDownPage(); } else { scrWrap.scroll(); } } }; posAjax.error = function () { }; posAjax.complete = function () { }; $.ajax(posAjax); }; getData();}/** * Load page, when we scroll over more than one page up */$.fn._loadJumpUpPage = function () { var scrWrap = $("#upcoming-scroll"), appearPage = null; for (var page = pagesTotal - 1; page >= 0; page--) { appearPage = $('#' + pageIdPrefix + page); if (appearPage.offset() !== undefined && appearPage.offset().top - scrWrap.height() < scrWrap.offset().top) break; } if (appearPage == null || appearPage.attr("id") === undefined) { return; } var appearPageId = appearPage.attr("id"); var appearPageNum = parseInt(appearPageId.substr(pageIdPrefixLen, appearPageId.length - pageIdPrefixLen)); var ajaxUrl = "/lot-info/catalog_" + au_id + "_" + appearPageNum + ".html?" + lot_id; var posAjax = { dataType: "html", url: ajaxUrl }; var getData = function () { posAjax.success = function (response) { $(this).Status(""); if (response != "") { var page = appearPageNum + 1; while ($('#' + pageIdPrefix + page).length) { $(this)._mockCatalogPage($('#' + pageIdPrefix + page), false); page++; } ; var appearPageSelector = '#' + pageIdPrefix + appearPageNum; var appearPage = $(appearPageSelector); var currTbodyHtml = $(response).find(appearPageSelector).html(); appearPage.html(currTbodyHtml).removeClass('top-mock-page').addClass('data-page'); if (appearPage.offset().top - scrWrap.height() > scrWrap.offset().top) { $(this)._loadJumpUpPage(); } else { scrWrap.scroll(); } } }; posAjax.error = function () { }; posAjax.complete = function () { }; $.ajax(posAjax); }; getData();}/** * Mock page (remove data, set right mock class) */$.fn._mockCatalogPage = function (page, isTop) { var height = $(page).height(), mockClassAdd = isTop ? 'top-mock-page' : 'bottom-mock-page', mockClassRemove = isTop ? 'bottom-mock-page' : 'top-mock-page'; $(page).html('') .removeClass('data-page').removeClass(mockClassRemove).addClass(mockClassAdd);} $.fn.StopS = function(data){ $(this).Reset(); au_st = data["AuSt"]; lot_id = data["Id"]; rsv = data["Res"]; abid = data["ABid"]; $(this).Enable();}; $.fn.Message=function(str, uid, unm, bidno){ var sbido = ''; var auc = "Auctioneer"; if (uid != undefined && uid != '') { if (bidno != '' && bidno != undefined) { sbido = unm + '(' + bidno + ')'; } else { sbido = unm + '(-)'; } if (u_id == uid) { sbido = 'YOU'; } $("#z19").prepend('' + sbido + ': ' + str + '
'); } else { $("#z19").prepend('' + auc + ': ' + str + '
'); }}; $.fn.ErrS = function (data) { $(this).Console(data["Msg"]);}; $.fn.ReConnect = function () { reconnecting = true; clearTimeout(connect_timeout); if (connect == true) { $(this).Console("A connection has already been established no need to reconnect"); return; } if (retry < max_retry) { $(this).Console("Retry to reconnect " + retry); $(this).Status("Reconnecting to server..."); seconds = 0; connect = null; retry = retry + 1; if ("WebSocket" in window && wretry < max_retry) { // Has web socket $(this).wsocketConn(); wretry = wretry + 1; $(this).Console("Retry to reconnect using WebSocket" + wretry);} else { // Use flash bridge if (swf == undefined || swf == null) { $(this).setSwf(); swf = $(this).getSwf();} else { swf.TCallLabel("/", "connect");} fretry = fretry + 1; $(this).Console("Retry to reconnect using Flash Bridge" + fretry);} } if (wretry == max_retry && "WebSocket" in window && fretry == 0) { // Has web socket retry = 0; $(this).Console("Cannot established connection using WebSocket. Reconnect using Flash Connection.");}if (wretry == max_retry && fretry == max_retry) { $(this).Status("Reconnection failed. Please reload your browser."); retry = 0; wretry = 0; fretry = 0; connect_timeout = setTimeout("$(this).ReConnect()", 3000);} else { connect_interval = setInterval("$(this).CountDown()", 1000);}}; $.fn.CountDown = function () { if (connect !== true) { seconds = seconds + 1; dots = ".."; if (seconds % 2 == 0) { dots = "...."; } if (seconds % 3 == 0) { dots = "......"; } if (seconds < 6) { $(this).Status("Reconnecting to server" + dots); } else { $(this).Console("Countdown reach! Reconnect.. r:" + retry + "; f:" + fretry + "; w:" + wretry); seconds = 0; clearInterval(connect_interval); $(this).ReConnect(); } }}; $.fn.KeepAlive = function(){ return this.each(function() { var ajaxUrl = "/keep_alive.php"; var posAjax = { dataType: "html", url: ajaxUrl }; var getData = function() { posAjax.beforeSend = function() { if(keepaliveTimeout) clearTimeout(keepaliveTimeout); keepaliveTimeout = null; }; posAjax.error = function() { $(this).Status("Notice: connection keep alive failed. Trying again.."); }; posAjax.success = function(response) { $(this).Status(""); if (response != "") { } }; posAjax.complete = function() { $(this).Status(""); keepaliveTimeout = setTimeout('$(this).KeepAlive();', 5 * 60 * 1000); }; $.ajax(posAjax); }; getData(); });}; $.fn.SlideFrame = function(moveNext){ if(slideshowTimeout){ clearTimeout(slideshowTimeout); slideshowTimeout = null; } if(imgcnt>1){ slideshowTimeout = setTimeout('$(this).SlideFrame();', 0); if (moveNext == undefined) { var imgindx = curimg + 1; if (imgindx >= imgcnt) imgindx = 0; $(this).ShowImg(imgindx); } }}; $.fn.SlideFrameBig = function(){ if(slideshowBigTimeout){ clearTimeout(slideshowBigTimeout); slideshowBigTimeout = null; } if(imgcnt>1){ slideshowBigTimeout = setTimeout('$(this).SlideFrameBig();', 0); var imgindxb = curimgb + 1; if (imgindxb >= imgcnt) imgindxb = 0; } $(this).ShowImgBig(imgindxb);}; $.fn.GAllS = function(data){ $(this).Message(data["GrpMsg"]); var lgrpby = ''; var lots = data["Lots"]; if (data["Grp"] == 'O') { lgqty = 0; lgrpby = ' ALL 4 ONE PRICE'; } else if (data["Grp"] == 'X') { lgqty = lots.length + 1; } else if (data["Grp"] == 'C') { lgrpby = ' Choice'; } else if (data["Grp"] == 'Q') { lgrpby = ' Qty'; } var strTitle = ''; if(data["GrpTle"] != undefined) { var arrTitle = data["GrpTle"]; strTitle = arrTitle[0]; for(var i=1, cnt=arrTitle.length; i' + arrTitle[i][1] + ''; strTitle = strTitle + link + ', '; } strTitle = strTitle.substring(0,strTitle.length-2); } $("#z34").html(lgrpby); $(".lot-title").hide(); $(".lot-category").hide(); $(".grp-title").html(strTitle); $(".grp-title").show(); $(this).Enable();}; $.fn.UGAllS = function(data){ lgqty = 0; $("#z34").html(''); $(".lot-title").show(); $(".lot-category").show(); $(".grp-title").hide(); $(".grp-title").html(''); $(this).Message(data['GrpMsg']); $(this).Enable();}; $.fn.LoadMsg = function(){ return this.each(function() { //var ajaxUrl = "/lot-item/message-center/id/" + au_id; var ajaxUrl = "/lot-info/front_601.html?1736638345"; var posAjax = { dataType: "html", url: ajaxUrl }; var getData = function() { posAjax.beforeSend = function() {}; posAjax.error = function() { $(this).Status("Error: Cannot load lot data!"); }; posAjax.success = function(response) { $(this).Status(""); if (response != "") { $("#z19").html(response); } }; posAjax.complete = function() { $(this).Status(""); }; $.ajax(posAjax); }; getData(); });}; $.fn.SendMessageQ = function(){ var msg = $("#z35").val().replace(/
(\r?\n|\r)?|(\r?\n|\r)/g,'\n'); msg = msg.replace(/\n/g,'
'); if (msg != "") { $("#z35").val(""); var request = '{"Cmd":"sndmsgq","Data":{"Msg":"'+msg+'"}}'; if ($(this).Send(request) == false) {} }}; $.fn.LimitMsg = function () { if (twentymsg) { var lmsgs = $("#z19").html(); $("#z19").html(''); var arrmsg = ""; if (navigator.appName == "Microsoft Internet Explorer") { arrmsg = lmsgs.split("
"); } else { arrmsg = lmsgs.split("
"); } var msgctr = 0; var msgmax = 50; for (i = 0; i < arrmsg.length; i++) { if (msgctr >= msgmax) { break; } msg = arrmsg[i]; if (msg != '') { $("#z19").append(msg + '
'); msgctr++; } } }}; $.fn.MultiExRate = function(amount){ if (amount == 0 || currencies.length <=0) return; var html ='
'; for(var i=0;i' + currencies[i][1] + '' + '' + rate + ''; } $("#z15").append(html);}; $.fn.FormatNumber = function (number, precision) { if (precision == undefined) { precision = 2; } var dec_point = ','; var thousands_sep = '.'; if (formatnum) { dec_point = '.'; thousands_sep = ','; } number = roundNumber(number, precision); if (precision < 0) { var result = number_format(number, precision, dec_point, thousands_sep); } else { var mix_number = parseFloat(number); var intNumber = parseInt(mix_number); var fltTempNumber = mix_number - intNumber; if (fltTempNumber > 0) { var result = number_format(mix_number, precision, dec_point, thousands_sep); } else { var result = number_format(intNumber, '', '', thousands_sep); } } return result;}; $.fn.Switch = function(aucid){ if (mobile) redirect('/m/view-auctions/live-sale/id/' + aucid + '/'); else redirect('/view-auctions/live-sale/id/' + aucid + '/');}; $.fn.EnterBidderNumS = function(data){ if (data["Stat"] != undefined) { $(this).Message(data["Stat"]); }}; $.fn.CancelEnterBidderNumS = function(data){ $(this).Message(data["Stat"]);}; $.fn.ShowCatalog = function (data) { var show = $("#z37").val(); switch (show) { case 'all': $('.sold').show(); $('.unsold').show(); $('.upcoming').show(); break; case 'sold': $('.sold').show(); $('.unsold').hide(); $('.upcoming').hide(); $("#z24").prop("checked", true); $("#z23").prop("checked", false); break; case 'unsold': $('.sold').hide(); $('.unsold').show(); $('.upcoming').hide(); $("#z24").prop("checked", true); $("#z23").prop("checked", false); break; }}; $.fn.BuyNS = function(data){ $(this).UpCatList(data['Id'], data['Hp'], true);}; $.fn.UpCatList = function(lot, hp, buyn){ if (hp == 'Unsold') { // unsold $("#lot-" + lot).removeClass('sold'); $("#lot-" + lot).removeClass('upcoming'); $("#lot-" + lot).addClass('unsold'); hp = "Unsold"; } else { $("#lot-" + lot).removeClass('unsold'); $("#lot-" + lot).removeClass('upcoming'); $("#lot-" + lot).addClass('sold'); } if (!isNaN(hp)) { hp = $(this).FormatNumber(hp); hp = curr_sign + hp; } shtml = hp; if (buyn == true) { shtml = shtml + ' (BN)'; } $(".lot" + lot).html(shtml); if (buyn == true) { $(".tooltip").simpleToolTip(); }}; $.fn.BidCountdS = function(data){ $("#z38").html(data['LblCnt']);};$.fn.BidCountdReset = function(){ $("#z38").html('');}; $.fn.OpenLot = function (id, seoUrl) { var url = $.sprintf('https://hansonslive.hansonsauctioneers.co.uk/view-auctions/catalog/id/%s/lot/%s/%25s?url=%2Fview-auctions%2Flive-sale%2Fid%2F601', 601, id, seoUrl); open_window(url, null, 900, 500, 'yes', 'yes');}; })(jQuery); function scInit() {}function scData(response) { $(this).rcvData(response);}function scConnect(connect) { $(this).onConnect(connect, 'F');}function scClose() { $(this).Console("Flash connection close"); $(this).onClose();} $(document).ready(function(){ //$(this).socket({swf:{id:"rtb", path:"/flash/bridge.swf"}}); $(this).socket(); $(this).NoOpTimer(); $("#z3").click(function (){ $(this).ShowCons(); return false; }); $("#z23").click(function (){ $("#z23").prop("checked", true); $("#z24").prop("checked", false); $("#z37").val("all"); $(this).ShowCatalog(); $(this).LoadUp(); }); $("#z24").click(function (){ $("#z23").prop("checked", false); $("#z24").prop("checked", true); $(this).ShowCatalog(); $(this).LoadUp(); }); $(".currency-cont").css({'display':'none'}) $("#z36").click(function (){ $(this).SendMessageQ(); }); $("#z35").bind("keypress", function(e) { if (e.keyCode && e.keyCode == 13) { $(this).SendMessageQ(); return false; } }); $("#z22").click(function (){ if ($(this).prop("checked")) $(this).LoadUp(); }); $("#z20").click(function (){ if ($("#z20").hasClass('disabled')) { return; } window.location="/login/index?url=https%3A%2F%2Fhansonslive.hansonsauctioneers.co.uk%2Fview-auctions%2Flive-sale%2Fid%2F601?x=1"; }); $("#z37").change(function() { $(this).ShowCatalog(); }); $("#z25").click(function (){ if (soundManager.supported() && $("#z25").prop("checked")) soundManager.play('playsound'); }); $(this).KeepAlive(); });
The Eric Morecambe Collection 10th & 11th January 2025 (2025)
Top Articles
Latest Posts
Recommended Articles
Article information

Author: Allyn Kozey

Last Updated:

Views: 5790

Rating: 4.2 / 5 (43 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Allyn Kozey

Birthday: 1993-12-21

Address: Suite 454 40343 Larson Union, Port Melia, TX 16164

Phone: +2456904400762

Job: Investor Administrator

Hobby: Sketching, Puzzles, Pet, Mountaineering, Skydiving, Dowsing, Sports

Introduction: My name is Allyn Kozey, I am a outstanding, colorful, adventurous, encouraging, zealous, tender, helpful person who loves writing and wants to share my knowledge and understanding with you.