ipcountry = 225; ipcity = 0; var banpageid = 825; var userhash = '2be4c4d7940708c372054d857833a3f5'; var showban1 = 1; window.singleBanner = function singleBanner(banid, bansect, banurl, banalt, banfname, banwidth, banheight, bantype, linktype, banorderposid, banorderid) { var tmpurl, tmpimg; switch (parseInt(linktype)) { case 1 : tmpurl1 = "http://b.economedia.bg/clickban.php?banorderposid=" + banorderposid; tmpurl = "http://b.economedia.bg/clickban.php?banorderposid=" + banorderposid; break; case 2 : tmpurl1 = banurl; tmpurl = banurl; break; } switch (parseInt(bantype)) { case 1 : tmpimg = "\"""; break; case 2 : tmpimg = banalt; break; case 3 : tmpimg = ""; tmpimg = tmpimg + ""; tmpimg = tmpimg + ""; tmpimg = tmpimg + ""; tmpimg = tmpimg + ""; tmpimg = tmpimg + ""; tmpimg = tmpimg + ""; return tmpimg; case 4: tmpimg = banalt; return tmpimg; } return "" + tmpimg + "" } window.singleBannerFlat = function singleBannerFlat(banid, bansect, banurl, banalt, banfname, banwidth, banheight, bantype, linktype, banorderposid, banorderid) { var tmpurl, tmpimg; switch (parseInt(linktype)) { case 1 : tmpurl1 = "http://b.economedia.bg/clickban.php?banorderposid=" + banorderposid; tmpurl = "http://b.economedia.bg/clickban.php?banorderposid=" + banorderposid; break; case 2 : tmpurl1 = banurl; tmpurl = banurl; break; } switch (parseInt(bantype)) { case 1 : tmpimg = "\"""; break; case 2 : break; case 3 : return tmpimg; case 4: tmpimg = banalt; return tmpimg; } return "" + tmpimg + ""; } function vbaneri(section) { if (!banners[section]) return false; if (showban1==1) { document.write(singleBanner(banners[section]['banid'], section, banners[section]['url'], banners[section]['alt'], banners[section]['banfile'], banners[section]['x'], banners[section]['y'], banners[section]['bantype'], banners[section]['linktype'], banners[section]['banorderposid'], banners[section]['banorderid'])); } } function vbaneriw(section) { if (!banners[section]) return false; if (showban1 == 1) { document.write(singleBanner(banners[section]['banid'], section, banners[section]['url'], banners[section]['alt'], banners[section]['banfile'], banners[section]['x'], banners[section]['y'], banners[section]['bantype'], banners[section]['linktype'], banners[section]['banorderposid'], banners[section]['banorderid'])); var http = false; if (navigator.appName == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); } else { http = new XMLHttpRequest(); } var banurl = 'http://' + document.domain + '/lib/banlog.php?type=ban&posid=' + banners[section]['posid'] + '&banid=' + banners[section]['banid'] + '&banorderposid=' + banners[section]['banorderposid'] + '&ipcountry=' + ipcountry + '&ipcity=' + ipcity; http.open("GET", banurl); http.onreadystatechange = function() { if(http.readyState == 4) { } } http.send(null); } } function vbaneriflat(section) { if (!banners[section]) return false; if (showban1==1) { document.write(singleBanner(banners[section]['banid'], section, banners[section]['url'], banners[section]['alt'], banners[section]['banfile'], banners[section]['x'], banners[section]['y'], banners[section]['bantype'], banners[section]['linktype'], banners[section]['banorderposid'], banners[section]['banorderid'])); } } function vbaneridnevnik(section) { if (!banners[section]) return false; if (showban1==1) { if (banners[section][6] == 2) { //ako e razlichen ot textov link da si se writeva normalno document.write("

Спонсорирани линкове

"); } document.write(singleBanner(banners[section]['banid'], section, banners[section]['url'], banners[section]['alt'], banners[section]['banfile'], banners[section]['x'], banners[section]['y'], banners[section]['bantype'], banners[section]['linktype'], banners[section]['banorderposid'], banners[section]['banorderid'])); if (banners[section][6] == 2) { //ako e razlichen ot textov link da si se writeva normalno document.write("

") } } } function vbanericapital(section) { if (!banners[section]) return false; if (showban1==1) { if (banners[section][6] == 2) { //ako e razlichen ot textov link da si se writeva normalno document.write("

Спонсорирани линкове

") } } } function vbanerimulti(pbanarr, phead, pfoot) { if (showban1 != 1) { return 0; } var ret = ''; var section; for(i=0; i < pbanarr.length; i++) { section = pbanarr[i]; if (banners[section]) { ret += singleBanner(banners[section]['banid'], section, banners[section]['url'], banners[section]['alt'], banners[section]['banfile'], banners[section]['x'], banners[section]['y'], banners[section]['bantype'], banners[section]['linktype'], banners[section]['banorderposid'], banners[section]['banorderid']); } } if (ret) { if (phead) document.write(phead); document.write(ret); if (pfoot) document.write(pfoot); } } function vbanerimultiw(pbanarr, phead, pfoot) { if (showban1 != 1) { return 0; } var ret = ''; var section; for(i=0; i < pbanarr.length; i++) { section = pbanarr[i]; if (banners[section]) { ret += singleBanner(banners[section]['banid'], section, banners[section]['url'], banners[section]['alt'], banners[section]['banfile'], banners[section]['x'], banners[section]['y'], banners[section]['bantype'], banners[section]['linktype'], banners[section]['banorderposid'], banners[section]['banorderid']); var http = false; if (navigator.appName == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); } else { http = new XMLHttpRequest(); } var banurl = 'http://' + document.domain + '/lib/banlog.php?type=ban&posid=' + banners[section]['posid'] + '&banid=' + banners[section]['banid'] + '&banorderposid=' + banners[section]['banorderposid'] + '&ipcountry=' + ipcountry + '&ipcity=' + ipcity; http.open("GET", banurl); http.onreadystatechange = function() { if(http.readyState == 4) { } } http.send(null); } } if (ret) { if (phead) document.write(phead); document.write(ret); if (pfoot) document.write(pfoot); } } function vbaneripagelog() { if (!banpageid) { return; } var http = false; if (navigator.appName == "Microsoft Internet Explorer") { http = new ActiveXObject("Microsoft.XMLHTTP"); } else { http = new XMLHttpRequest(); } var banurl = 'http://' + document.domain + '/lib/banlog.php?type=page&pid=' + banpageid + '&hash=' + userhash + '&ipcountry=' + ipcountry + '&ipcity=' + ipcity; http.open("GET", banurl); http.onreadystatechange = function() { if (http.readyState == 4) { } } http.send(null); } function setFlashWidth(divid, newW, bleft) { var container = document.getElementById(divid).parentNode; container.style.left = (bleft-(newW-300)) + "px"; document.getElementById(divid).style.width = newW + "px"; } function setFlashHeight(divid, newH, btop) { var container = document.getElementById(divid).parentNode; container.style.top = (btop-(newH-250)) + "px"; document.getElementById(divid).style.height = newH + "px"; } function setFlashSize(divid, newW, newH) { var container = document.getElementById(divid).parentNode; var bcont = container.parentNode; btop = getY(bcont); bleft = getX(bcont); setFlashWidth(divid, newW, bleft); setFlashHeight(divid, newH, btop); } function getY(oElement) { var iReturnValue = 0; while (oElement != null) { iReturnValue += oElement.offsetTop; oElement = oElement.offsetParent; } return iReturnValue; } function getX(oElement) { var iReturnValue = 0; while (oElement != null) { iReturnValue += oElement.offsetLeft; oElement = oElement.offsetParent; } return iReturnValue; } function expPosition(relid, bancontid) { b = document.getElementById(relid); bt = getY(b); bl = getX(b); newdiv = document.getElementById(bancontid); newdiv.style.position = "absolute"; newdiv.style.left = bl + "px"; newdiv.style.top = bt + "px"; newdiv.style.display = "block"; newdiv.style.zIndex = "100"; } function expBanerWrite(relid, bancontid, banurl) { document.write('
'); document.write('
'); document.write('
'); document.write(''); document.write(''); document.write(''); document.write(''); //~ document.write('Flash Movie With Resizing Content'); document.write(''); document.write('
'); document.write('
'); document.write('
'); expPosition(relid, bancontid); } function expBanerWrite2(relid, bancontid, banorderposid, banurl, banurl2) { document.write('
'); document.write(''); document.write(''); //~ document.write(''); document.write(''); document.write(''); //~ document.write('Flash Movie With Resizing Content'); document.write(''); document.write('
'); document.write(''); b = document.getElementById(relid); bt = getY(b.childNodes[0]); bl = getX(b.childNodes[0]); newdiv = document.getElementById(bancontid); newdiv.style.left = bl + "px"; newdiv.style.top = bt + "px"; //~ expPosition(relid, bancontid); } //~ var opencnt = 0; function closeFlash() { //~ opencnt++; document.getElementById("bigflash").style.display="none" } function openFlash() { //~ if (opencnt > 0) return; document.getElementById("bigflash").style.display="block"; } banners = {"1":{"banid":"7424","banfile":"7424.gif","url":"http:\/\/www.alukoenigstahl.com\/AKS\/portal\/alias__Stahl\/lang__bg-BG\/domain__bg\/tabID__4061\/DesktopDefault.aspx","alt":"","x":"200","y":"50","bantype":"1","linktype":"1","posid":"4375","banorderposid":"2603715","banorderid":"4674","poscode":"1"},"2":{"banid":"7425","banfile":"7425.gif","url":"http:\/\/www.niteragroup.com\/","alt":"","x":"200","y":"50","bantype":"1","linktype":"1","posid":"4376","banorderposid":"2596453","banorderid":"4674","poscode":"2"},"3":{"banid":"7426","banfile":"7426.gif","url":"http:\/\/www.geze.bg","alt":"","x":"200","y":"50","bantype":"1","linktype":"1","posid":"4377","banorderposid":"2602263","banorderid":"4674","poscode":"3"},"4":{"banid":"7446","banfile":"7446.gif","url":"http:\/\/www.rehau.bg\/","alt":"","x":"200","y":"50","bantype":"1","linktype":"1","posid":"4378","banorderposid":"2597908","banorderid":"4674","poscode":"4"},"5":{"banid":"7526","banfile":"7526.gif","url":"http:\/\/www.sofiaairportcenter.com\/index.php?lang=bg&PHPSESSID=708ae24eefebb0c5aa4450f6d27941ab","alt":"","x":"200","y":"50","bantype":"1","linktype":"1","posid":"4379","banorderposid":"2593543","banorderid":"4674","poscode":"5"},"6":{"banid":"7527","banfile":"7527.gif","url":"http:\/\/www.orkikem-bg.com\/","alt":"","x":"200","y":"50","bantype":"1","linktype":"1","posid":"4647","banorderposid":"2595002","banorderid":"4674","poscode":"6"},"8":{"banid":"7529","banfile":"7529.gif","url":"http:\/\/www.breeam.org\/","alt":"","x":"200","y":"50","bantype":"1","linktype":"1","posid":"4649","banorderposid":"2551092","banorderid":"4674","poscode":"8"},"11":{"banid":"7554","banfile":"7554.gif","url":"http:\/\/www.mrrb.government.bg\/","alt":"","x":"200","y":"50","bantype":"1","linktype":"1","posid":"5450","banorderposid":"2599353","banorderid":"4674","poscode":"11"},"12":{"banid":"7555","banfile":"7555.gif","url":"http:\/\/www.seea.government.bg\/","alt":"","x":"200","y":"50","bantype":"1","linktype":"1","posid":"5451","banorderposid":"2542697","banorderid":"4674","poscode":"12"},"13":{"banid":"7556","banfile":"7556.gif","url":"http:\/\/www.ksb.bg\/","alt":"","x":"200","y":"50","bantype":"1","linktype":"1","posid":"5452","banorderposid":"2600802","banorderid":"4674","poscode":"13"},"14":{"banid":"7528","banfile":"7528.gif","url":"http:\/\/www.bgbc.bg","alt":"","x":"200","y":"50","bantype":"1","linktype":"1","posid":"5453","banorderposid":"2545989","banorderid":"4674","poscode":"14"}}