document.write(''); document.write('
'); if (!window.hasOwnProperty('msiwtb') ) { window.msiwtb = { showplinelinks: true, baseurl: 'https://sam-api-proxy.msi.com/public/samapi/servicemapproc/', dataproviderProxy: 'https://sam-api-proxy.msi.com/public/samapi/servicemapproc/servicemapproc.php', objkey: 'msiwtb64854' }; } window.msiwtb64854 = { objkey: 'msiwtb64854', jsLoadCounter: 0, jsLoadError: false, jsLoading: false, showplinelinks: true, url: 'http://sam-api-proxy.msi.com/d6f01701231136d0704fcdd789f22da0/', serviceId: '2', baseurl: 'https://sam-api-proxy.msi.com/public/samapi/servicemapproc/', dataproviderProxy: 'https://sam-api-proxy.msi.com/public/samapi/servicemapproc/servicemapproc.php', loadJsFile: function(scripturi) { if (window.msiwtb64854.jsLoading) { //console.log('Operation still in progress...'); return; } window.msiwtb64854.jsLoading = true; $.getScript(scripturi) .done(function(script, textStatus){ window.msiwtb64854.jsLoadCounter++; window.msiwtb64854.jsLoading = false; }) .fail(function(jqxhr, settings, exception){ window.msiwtb64854.jsLoadError = true; window.msiwtb64854.jsLoading = false; }); }, loadErrorHandle: function(){ //console.log('Error loading dependencies for WTB widget'); }, jsLoadTicker: function() { if ((window.msiwtb64854.jsLoadCounter < 2) && (!window.msiwtb64854.jsLoadError)) { if (window.jQuery) { //console.log('jQuery is loaded'); window.msiwtb64854.jsLoadCounter = 2; } else if (window.msiwtb64854.jsLoadCounter === 0) { //console.log('Loading jQuery...'); window.msiwtb64854.jsLoadCounter = 1; if ('msiwtb64854' === window.msiwtb.objkey) { document.write(' '); } } } if ((window.msiwtb64854.jsLoadCounter === 2) && (!window.msiwtb64854.jsLoadError)) { if ($.fn.modal) { //console.log('Bootstrap is ready'); window.msiwtb64854.jsLoadCounter = 4; } else { //console.log('Including Bootstrap CSS...'); if ('msiwtb64854' === window.msiwtb.objkey) { $("", { rel: "stylesheet", type: "text/css", href: "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" }).appendTo("head"); } window.msiwtb64854.jsLoadCounter = 3; } } if (window.msiwtb64854.jsLoadCounter === 3) { //console.log('Including Bootstrap JS...'); if ('msiwtb64854' === window.msiwtb.objkey) { window.msiwtb64854.loadJsFile('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'); } else { window.msiwtb64854.jsLoadCounter = 4; } } if ((window.msiwtb64854.jsLoadCounter === 4) && (!window.msiwtb64854.jsLoadError)) { if ($.fn.isotope) { //console.log('Isotope is loaded'); window.msiwtb64854.jsLoadCounter++; } else { //console.log('Loading Isotope...'); if ('msiwtb64854' === window.msiwtb.objkey) { window.msiwtb64854.loadJsFile('https://npmcdn.com/isotope-layout@3.0.1/dist/isotope.pkgd.min.js'); } } } if ((window.msiwtb64854.jsLoadCounter === 5) && (!window.msiwtb64854.jsLoadError)) { if ($.fn.imagesLoaded) { //console.log('ImagesLoad plugin loaded'); window.msiwtb64854.jsLoadCounter++; } else { //console.log('Loading ImagesLoad plugin...'); if ('msiwtb64854' === window.msiwtb.objkey) { window.msiwtb64854.loadJsFile('https://npmcdn.com/imagesloaded@4.1.1/imagesloaded.pkgd.min.js'); } } } if ((window.msiwtb64854.jsLoadCounter === 6) && (!window.msiwtb64854.jsLoadError)) { if ($.fn.servicemapproc) { //console.log('WTB plugin is loaded...'); window.msiwtb64854.jsLoadCounter = 8; } else { //console.log('Loading WTB Plugin CSS...'); window.msiwtb64854.jsLoadCounter = 7; if ('msiwtb64854' === window.msiwtb.objkey) { $("", { rel: "stylesheet", type: "text/css", href: "https://sam-api-proxy.msi.com/public/samapi/servicemapproc/servicemapproc.css" }).appendTo("head"); } } } if (window.msiwtb64854.jsLoadCounter === 7) { //console.log('Loading WTB Plugin JS...'); if ('msiwtb64854' === window.msiwtb.objkey) { window.msiwtb64854.loadJsFile('https://sam-api-proxy.msi.com/public/samapi/servicemapproc/servicemapproc.min.js'); } else { setTimeout(function(){ window.msiwtb64854.jsLoadCounter = 8; }, 500); } } if (window.msiwtb64854.jsLoadCounter === 8) { //console.log('Placing...'); return window.msiwtb64854.placeWtb(); } else { if (window.msiwtb64854.jsLoadError) { return window.msiwtb64854.loadErrorHandle(); } else { setTimeout(function(){ //console.log('Tick @'+window.msiwtb64854.jsLoadCounter, 'msiwtb64854'); return window.msiwtb64854.jsLoadTicker(); }, 400); return; } } return; }, placeWtb: function() { $('#msiwtb_64854').servicemapproc({ id: 2, country: 'AU', showfilterbyproductline: false, showfilterbycountry: true, autodetectcountry: true, productline: '', servicetype: 'online', limit: 25 }); } }; if (window.jQuery) { jQuery(document).ready(function(){ window.msiwtb64854.jsLoadTicker(); }); } else { window.msiwtb64854.jsLoadTicker(); }