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