(function(){var c;function b(k){var i=document.getElementById(k.zone),j,h,g;if(!i){return}j=document.createElement("img");if(k.dp){h=document.createElement("div");h.style="cursor: pointer;";h.onclick=function(){f(k.dp,k.link,k.p,k.s)}}else{h=document.createElement("a");h.rel="noopener noreferrer";h.target="_blank";h.href="https://"+c+"/go?link="+k.link+"&p="+k.p+"&b="+k.b+"&s="+k.s+"&v="+k.v}j=document.createElement("img");if(k.w){j.width=k.w}if(k.h){j.height=k.h}j.style.overflow="hidden";j.style.verticalAlign="top";j.style.height="auto";j.src="https://"+c+"/im/"+k.name;h.appendChild(j);i.appendChild(h);if(k.tracking_link){e(i,k.tracking_link)}}function a(i){var h=document.getElementById(i.zone),g;if(!h){return}g=document.createElement("iframe");if(i.w>0){g.width=i.w}if(i.h>0){g.height=i.h}g.frameBorder=0;g.setAttribute("style","vertical-align:top; max-width:100% !important");g.scrolling="no";g.src="https://"+c+"/b/"+i.name+"/?link="+i.link+"&p="+i.p+"&b="+i.b+"&s="+i.s+"&v="+i.v;h.appendChild(g);if(i.tracking_link){e(h,i.tracking_link)}}function e(h,i){if(!h||!i){return}var g=document.createElement("img");g.width=0;g.height=0;g.style.display="none";g.src=i;h.appendChild(g)}function f(k,i,j,h,g){var m=new XMLHttpRequest();m.open("GET","https://"+c+"/go?p="+j+"&b="+h+"&s="+g,true);m.send();var l=document.createEvent("CustomEvent");l.initCustomEvent("finteza_click",false,false,{});l.action_id=k;l.action_url=i;document.dispatchEvent(l)}function d(k){var l=8,m=k.b,g;c=k.host;for(var h=0,j=m.length;h<j;h++){g=m[h];if(g.format&l){a(g)}else{b(g)}}}d({"host":"content.mql5.com","b":[]})})();