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