(function() {
'use strict';
var init = function() {
var box = document.createElement('div');
box.innerHTML = '\
<div><a href="http://www.monza.rs/" target="_blank"><img src="http://autoservisstrahinja.com/monza.png" style="width:300px; height:300px;"></div>\
\
';
if (location.host === 'monza.rs') {
css(box, {
position: 'fixed',
marginLeft: '730px',
left: '100%',
top: '100px',
background: '#fff',
zIndex: 9999999
});
} else {
css(box, {
position: 'fixed',
right: '100px',
top: '100px',
background: '#fff',
zIndex: 9999999
});
}
document.body.appendChild(box);
}
var css = function(elem, style) {
for (var i in style) {
elem.style[i] = style[i];
}
}
init();
})();