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