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://www.alfaban.etaligent.net/clickban.php?banorderposid=" + banorderposid; tmpurl = "http://www.alfaban.etaligent.net/clickban.php?banorderposid=" + banorderposid; break; case 2 : 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 + ""; 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][0], banners[section][8], banners[section][2], banners[section][3], banners[section][1], banners[section][4], banners[section][5], banners[section][6], banners[section][7], banners[section][9], banners[section][10])); } } 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][0], banners[section][8], banners[section][2], banners[section][3], banners[section][1], banners[section][4], banners[section][5], banners[section][6], banners[section][7], banners[section][9], banners[section][10])); 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 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]); //~ console.log(b); //~ console.log(bt); //~ console.log(bl); 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 = new Array();