﻿var pol_bx; var pol_bz; var pol_by; var pol_bA; var pol_cs = 'cpmst_Cookie'; var pol_ct = 'pol_ct'; if (pol_H() == 1) pol_ak(pol_ai(pol_cs)); pol_bx = 'http://180.148.142.152/AdImages'; pol_bz = 'http://180.148.142.153/clk.aspx?t=5'; pol_by = 'http://180.148.142.153/act.aspx?t=5'; pol_bA = 'http://180.148.142.152/Vals'; function cpmst_adlistshow(pol_pol_am, pol_an, pol_at, pol_aQ, pol_aC, pol_aE, pol_aD, pol_aN, pol_ay) { this.BResult = 0; this.pol_dB = pol_an; this.pol_bt = pol_at; this.pol_ds = pol_aE; this.pol_dr = pol_aD; this.pol_ep = pol_aQ; this.face = pol_aC; this.pol_cz = 30000; this.pol_bw = 0; this.pol_cA = 100; if (typeof (pol_aN) == 'undefined') { this.pol_ee = true; } else { this.pol_ee = pol_aN; }; if (typeof (pol_ay) == 'undefined') { this.direction = 0; } else { this.direction = pol_ay; }; switch (pol_aQ) { case 0: case 4: case 5: case 6: case 9: case 10: case 12: case 13: case 14: case 15: case 16: case 17: case 18: case 19: case 21: case 22: case 23: case 24: case 26: case 27: case 28: case 29: this.pol_dZ = 0; break; case 8: this.pol_dZ = 2; break; case 25: this.pol_dZ = 3; break; default: this.pol_dZ = 1; break; } var pol_ba = new Array(); var pol_bb = new Array(); var pol_bc = new Array(); var i, j, k, pol_dG, pol_dc, pol_eo; i = 0; j = -1; k = 0; pol_dG = -1; pol_dc = 0; pol_eo = 1; if (this.pol_dZ == 0) { for (i = 0, j = 0; i < pol_pol_am.length; i++) { if (this.pol_bC(pol_pol_am[i])) { pol_ba[j] = pol_pol_am[i]; j++; } } if (pol_H() != 1) { pol_ba.sort(pol_N); }; this.pol_dk = j + 1; this.pol_du = pol_ba; } else if (this.pol_dZ == 1) { pol_ba[0] = new Array(); pol_ba[1] = new Array(); for (i = 0; i < pol_pol_am.length; i++) { if (pol_pol_am[i][5] <= 100) { if (pol_pol_am[i][5] != pol_dG) { pol_dG = pol_pol_am[i][5]; pol_dc = 0; j++; k = 0; } else { k++; } } else { if (pol_pol_am[i][5] != pol_dG || pol_pol_am.length <= 10) { if (pol_dG <= 100) j = -1; pol_dG = pol_pol_am[i][5]; pol_dc = 1; j++; k = 0; pol_eo = 0; } else { if (pol_eo >= pol_dG - 100) { j++; k = 0; pol_eo = 0; } else { k++; } } } if (this.pol_bC(pol_pol_am[i])) { if (k == 0) pol_ba[pol_dc][j] = new Array(); if (typeof (pol_ba[pol_dc][j]) == 'undefined') pol_ba[pol_dc][j] = new Array(); pol_ba[pol_dc][j][k] = pol_pol_am[i]; pol_eo++; } } for (i = 0; i < pol_ba.length; i++) { if (i == 1) { pol_ba[i].sort(pol_N) }; for (j = 0; j < pol_ba[i].length; j++) { if (pol_H() != 1) { pol_ba[i][j].sort(pol_N); }; } } k = 0; for (i = 0; i < pol_ba.length; i++) { for (j = 0; j < pol_ba[i].length; j++) { pol_bb[k] = pol_ba[i][j]; k++; } } this.pol_du = pol_bb; this.pol_dk = k; } else if (this.pol_dZ == 2) { for (i = 0, j = 0; i < pol_pol_am.length; i++) { if (this.pol_bC(pol_pol_am[i])) { pol_ba[j] = new Array(); pol_ba[j][0] = new Array(); pol_ba[j][0][0] = pol_pol_am[i][0]; pol_ba[j][0][1] = pol_pol_am[i][2]; pol_ba[j][0][2] = pol_pol_am[i][3]; pol_ba[j][0][3] = pol_pol_am[i][4]; pol_ba[j][0][4] = pol_pol_am[i][5]; pol_ba[j][1] = new Array(); pol_ba[j][1][0] = pol_pol_am[i][1]; pol_ba[j][1][1] = pol_pol_am[i][2]; pol_ba[j][1][2] = pol_pol_am[i][3]; pol_ba[j][1][3] = pol_pol_am[i][6]; pol_ba[j][1][4] = pol_pol_am[i][7]; j++; } } if (pol_H() != 1) { pol_ba.sort(pol_N); }; this.pol_dk = j + 1; this.pol_du = pol_ba; } else if (this.pol_dZ == 3) { for (i = 0, j = 0, m = 0, n = 0; i < pol_pol_am.length; i++) { if (this.pol_bC(pol_pol_am[i])) { if (pol_pol_am[i].length > 7) { if (pol_pol_am[i][7] == 0) { pol_ba[j] = pol_pol_am[i]; j++; } else if (pol_pol_am[i][7] == 1) { pol_bb[m] = pol_pol_am[i]; m++; } else if (pol_pol_am[i][7] == 2) { pol_bc[n] = pol_pol_am[i]; n++; } } else { pol_ba[j] = pol_pol_am[i]; j++; } } } if (pol_H() != 1) { pol_ba.sort(pol_N); pol_bb.sort(pol_N); pol_bc.sort(pol_N); } n = pol_bb.length >= pol_bc.length ? pol_bb.length : pol_bc.length; m = 0; i = pol_ba.length; while (m <= n - 1) { if (pol_bb.length > m) { pol_ba[j] = pol_bb[m]; j++; } if (pol_bc.length > m) { pol_ba[j] = pol_bc[m]; j++; } i++; m++; } this.pol_du = pol_ba; } if (this.pol_dZ == 3) { this.pol_cw = pol_aj(i); } else { this.pol_cw = pol_aj(this.pol_du.length); } this.pol_dg(); }; cpmst_adlistshow.prototype.pol_dg = function() { switch (this.pol_ep) { case 0: this.pol_bS(); break; case 1: case 7: case 11: this.pol_bP(); break; case 2: this.pol_bM(0); break; case 3: this.pol_bM(1); break; case 4: this.pol_bM(2); break; case 5: this.pol_bR(false); break; case 6: this.pol_bR(true); break; case 8: this.pol_bJ(); break; case 9: this.pol_bU(); break; case 10: this.pol_bN(); break; case 12: this.pol_bL(0); break; case 13: this.pol_bL(1); break; case 14: this.pol_bL(2); break; case 15: this.pol_bL(3); break; case 16: this.pol_bO(); break; case 17: this.pol_bV(0); break; case 18: this.pol_bV(1); break; case 19: this.pol_bT(); break; case 20: this.pol_bW(); break; case 21: this.pol_bE(); break; case 22: this.pol_bK(); break; case 23: this.pol_bH(); break; case 24: this.pol_bI(); break; case 25: this.pol_bQ(); break; case 26: this.pol_bF(); break; case 27: this.pol_bD(0); break; case 28: this.pol_bD(1); break; case 29: this.pol_bG(this.pol_du); break; default: break; } }; cpmst_adlistshow.prototype.pol_bB = function(index) { if (this.pol_dZ == 0) return true; if (this.pol_du.length == index + 1) return true; return false; }; cpmst_adlistshow.prototype.pol_bS = function() { document.write('<table ', (this.pol_ds > 0) ? 'width='.concat(this.pol_ds) : '', ' cellspacing=0 cellpadding=0 border=0 align=center>'); this.pol_cn(this.pol_du, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_bP = function() { if (this.pol_du.length <= 0) { this.BResult = -1; } else { this.BResult = 0; } if (this.face == 0 || this.face == 3) { document.write('<table ', (this.pol_ds > 0) ? 'width='.concat(this.pol_ds) : '', ' cellspacing=0 cellpadding=0 border=0 align=center>'); } else if (this.face == 2) { document.write('<table ', (this.pol_ds > 0) ? 'width='.concat(this.pol_ds) : '', ' cellspacing=0 cellpadding=0 border=0 align=center><tr>'); } for (var i = 0; i < this.pol_du.length; i++) { this.pol_cn(this.pol_du[i], i, this.pol_bB(i)); if (this.face == 0 || this.face == 3) { document.write('<tr><td height="3"></td></tr>'); } else if (this.face == 2) { document.write('<td width="3"></td>'); } if (this.face == 1 && (!this.pol_bB(i))) { document.write('<tr><td height="1" bgcolor="#808080"></td></tr>'); } } if (this.face == 0 || this.face == 3) { document.write('</table>'); } else if (this.face == 2) { document.write('</tr></table>'); } }; cpmst_adlistshow.prototype.pol_bM = function(type) { if (type == 2) { document.write('<DIV id="floatdiv', this.pol_dB, '" style="position:absolute;overflow:hidden;top:0;left:-200;', (this.pol_dr > 0) ? 'height:'.concat(this.pol_dr) : '180', ';', (this.pol_ds > 0) ? 'width:'.concat(this.pol_ds) : '115', ';">'); this.pol_cb(this.pol_du); } else { document.write('<DIV id="floatdiv', this.pol_dB, '" style="position:absolute;top:0;left:-200;', (this.pol_ds > 0) ? 'width:'.concat(this.pol_ds) : '115', ';">'); this.pol_bP(); } document.write('</DIV>'); if (this.pol_du.length > 0) { pol_e('floatdiv'.concat(this.pol_dB), type); } }; cpmst_adlistshow.prototype.pol_bL = function(type) { switch (type) { case 0: case 1: document.write('<DIV id="fixfloatdiv', this.pol_dB, '" style="position:absolute;z-index:200;top:0;left:-200;', (this.pol_ds > 0) ? 'width:'.concat(this.pol_ds) : '120', ';">'); break; case 2: case 3: document.write('<DIV id="fixfloatdiv', this.pol_dB, '" style="position:absolute;z-index:200;top:0;left:-200;', (this.pol_dr > 0) ? 'height:'.concat(this.pol_dr) : '150', ';', (this.pol_ds > 0) ? 'width:'.concat(this.pol_ds) : '120', ';">'); break; } this.pol_ce(this.pol_du, type); document.write('</DIV>'); if (this.pol_du.length > 0) { pol_d('fixfloatdiv'.concat(this.pol_dB), type); } }; cpmst_adlistshow.prototype.pol_bR = function(type) { pol_eN = this.pol_du[0][2].lastIndexOf(','); pol_eK = this.pol_du[0][2].substr(pol_eN + 1); pol_ek = pol_n(pol_eK, this.pol_du[0][1], true); pol_eM = (cpmst_Left(this.pol_du[0][0], 7).toLowerCase() == 'http://') ? this.pol_du[0][0] : pol_bx.concat(this.pol_du[0][0]); var pol_eS = 0; var pol_eZ = this.pol_du[0][3]; var pol_eI = this.pol_du[0][4]; pol_M(pol_eM, pol_ek, 'Advertisment', pol_eS, pol_eZ, pol_eI, screen.height - pol_eI - 80, (screen.width - 770) / 2 + 410 - 5, type); }; cpmst_adlistshow.prototype.pol_bJ = function() { document.write('<table align=center ', (this.pol_ds > 0) ? 'width='.concat(this.pol_ds) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.pol_cc(this.pol_du, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_bU = function() { document.write('<table align=center ', (this.pol_ds > 0) ? 'width='.concat(this.pol_ds) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.pol_cq(this.pol_du, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_bN = function() { if (this.pol_du.length <= 0) { this.BResult = -1; } else { this.BResult = 0; } document.write('<table align=center ', (this.pol_ds > 0) ? 'width='.concat(this.pol_ds) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.pol_cg(this.pol_du, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_bO = function() { if (this.pol_du.length <= 0) { this.BResult = -1; } else { this.BResult = 0; } this.pol_ci(this.pol_du, 0); }; cpmst_adlistshow.prototype.pol_cn = function(pol_dJ, index, pol_dl) { if (this.face == 1) { document.write('<tr><td id="', this.pol_dB, '_', index, '" style="padding:4px;">'); } else if (this.face == 2) { document.write('<td id="', this.pol_dB, '_', index, '" style="padding:4px;">'); } else { document.write('<tr><td id="', this.pol_dB, '_', index, '">'); } var pol_bm = this.pol_cw; if (this.pol_ep == 1) { pol_bm = pol_aj(pol_dJ.length); } document.write(pol_o(pol_dJ[pol_bm], this.pol_ds, this.pol_dr)); if (pol_dJ.length > 1) { var pol_db = ''.concat(this.pol_dB).concat('_').concat(index); var pol_cB = this.pol_cz; var pol_cC = this.pol_cA; var pol_ds = this.pol_ds; var pol_dr = this.pol_dr; if (this.pol_ep == 11) { if (this.pol_ee) { var pol_bv = 0; setTimeout(function() { pol_q(pol_dJ, pol_db, pol_cC, pol_ds, pol_dr, 0) }, 0); setTimeout(function() { pol_x(pol_dJ, pol_db, pol_cC, pol_ds, pol_dr, pol_bv, 0) }, 0); } } else { if (this.pol_ee) setTimeout(function() { pol_p(pol_dJ, 0, pol_db, pol_cB, pol_ds, pol_dr) }, pol_cB); } } if (this.face == 2) { document.write('</td>'); } else { if (pol_dJ.length > 1 && this.pol_ep == 11) { document.write('</td></tr>'); document.write('<tr><td>'); document.write('	<input type="hidden" value="0" id="hidFlag_' + pol_db + '" name="hidFlag_' + pol_db + '" />'); document.write('	<input type="hidden" value="0" id="hidLoop_' + pol_db + '" name="hidLoop_' + pol_db + '" />'); document.write('	<div style="position:relative;width:160px;height:30px;background-color:#0066cc;">'); document.write('		<div style="float:left;width:130px;">'); for (var i = 0; i < pol_dJ.length; i++) { document.write('<div id="numb' + pol_db + i + '" style="float:left;width:17px;font-family:arial;font-size:12px;height:17px;text-align:center;margin:2px 0px 0px 0px;cursor:pointer;" onclick="cpmst_gmobj(\'hidLoop_' + pol_db + '\').value =' + i + '; cpmst_gmobj(\'hidFlag_' + pol_db + '\').value = 100;">' + (i + 1) + '</div>'); } document.write('		</div>'); document.write('	<div class="divArrowL" onmouseover="cpmst_gmobj(\'divArrowL_' + pol_db + '\').className = \'divArrowL_Active\';" onmouseout="cpmst_gmobj(\'divArrowL_' + pol_db + '\').className = \'divArrowL\';" onclick="cpmst_gmobj(\'hidFlag_' + pol_db + '\').value = -1;" id="divArrowL_' + pol_db + '">&nbsp;</div>'); document.write('	<div style="float:left;width:4px;">&nbsp;</div>'); document.write('	<div class="divArrowR" onmouseover="cpmst_gmobj(\'divArrowR_' + pol_db + '\').className = \'divArrowR_Active\';" onmouseout="cpmst_gmobj(\'divArrowR_' + pol_db + '\').className = \'divArrowR\';" onclick="cpmst_gmobj(\'hidFlag_' + pol_db + '\').value = 1;" id="divArrowR_' + pol_db + '">&nbsp;</div>'); document.write('</td></tr>'); } else { document.write('</td></tr>'); } } }; cpmst_adlistshow.prototype.pol_cm = function(pol_dJ, pol_dl) { for (var i = 0; i < pol_dJ.length; i++) { if (this.face == 1) { document.write('<tr><td style="padding:4px;">'); } else if (this.face == 2) { document.write('<td style="padding:4px;">'); } else { document.write('<tr><td>'); } document.write(pol_o(pol_dJ[i], this.pol_ds, this.pol_dr)); if (this.face == 2) { document.write('</td>'); } else { document.write('</td></tr>'); } if (this.face == 0) { document.write('<tr><td height="3"></td></tr>'); } else if (this.face == 0) { document.write('<td width="3"></td>'); } if (this.face == 1 && (i < pol_dJ.length - 1)) { document.write('<tr><td height="1" bgcolor="#808080"></td></tr>'); } } }; cpmst_adlistshow.prototype.pol_cb = function(pol_dJ) { document.write('<DIV id="subdiv', this.pol_dB, '" style="position:absolute;', (this.pol_dr > 0) ? 'top:'.concat(this.pol_dr) : '180', ';', (this.pol_ds > 0) ? 'width:'.concat(this.pol_ds) : '115', ';', (this.pol_dr > 0) ? 'height:'.concat(this.pol_dr) : '180', ';">'); document.write(pol_o(pol_dJ[0], this.pol_ds, this.pol_dr)); var pol_db = 'subdiv'.concat(this.pol_dB); var pol_cB = this.pol_cz; var pol_ds = this.pol_ds; var pol_dr = this.pol_dr; setTimeout(function() { pol_S(pol_dJ, 0, pol_db, pol_cB, pol_ds, pol_dr) }, 500); document.write('</DIV>'); }; cpmst_adlistshow.prototype.pol_cc = function(pol_dJ) { if (pol_dJ.length <= 0) return; var pol_ds = this.pol_ds; var pol_dr = this.pol_dr; var pol_db = ''.concat(this.pol_dB); var pol_cB = this.pol_cz; document.write('<tr><td>'); document.write('<DIV id="', pol_db, '" style="position:related;overflow:hidden;width:'.concat(pol_dJ[0][0][3]), ';height:'.concat(pol_dJ[0][0][4]), ';">'); document.write(pol_o(pol_dJ[0][0], this.pol_ds, this.pol_dr)); if (pol_dJ.length > 1) { } document.write('</DIV></td></tr>'); document.write('<tr><td align=center id="', pol_db, '_extend"><font face="Arial" size="1"><b>'); document.write('<span id="', pol_db, '_expandcollap" style="cursor:pointer;">M&#7903; r&#7897;ng</span>&nbsp;-&nbsp;'); document.write('<span id="', pol_db, '_close" style="cursor:pointer;">&#272;&#243;ng</span>'); document.write('<input type="hidden" id="', this.pol_dB, '_hidden">'); document.write('</td></tr>'); cpmst_gmobj(pol_db + '_hidden').value = 0; cpmst_gmobj(pol_db).onmouseover = function() { cpmst_expandbanner(pol_dJ, pol_db, pol_ds, pol_dr) }; cpmst_gmobj(pol_db + '_expandcollap').onclick = function() { cpmst_expandbanner(pol_dJ, pol_db, pol_ds, pol_dr) }; cpmst_gmobj(pol_db + '_close').onclick = function() { pol_B(pol_db) }; }; function cpmst_expandbanner(pol_dJ, pol_bh, pol_ds, pol_dr) { var index = cpmst_gmobj(pol_bh + '_hidden').value; if (parseInt(cpmst_gmobj(pol_bh).offsetHeight) < pol_dJ[index][1][4]) { cpmst_gmobj(pol_bh).style.height = parseInt(cpmst_gmobj(pol_bh).offsetHeight) + 10; setTimeout(function() { cpmst_expandbanner(pol_dJ, pol_bh, pol_ds, pol_dr) }, 5); return; } cpmst_gmobj(pol_bh).onmouseover = 'undefine'; cpmst_gmobj(pol_bh + '_expandcollap').innerHTML = 'Thu nh&#7887;'; cpmst_gmobj(pol_bh + '_expandcollap').onclick = function() { cpmst_collapbanner(pol_dJ, pol_bh, pol_ds, pol_dr) }; cpmst_gmobj(pol_bh).innerHTML = pol_o(pol_dJ[index][1], pol_ds, pol_dr); }; function cpmst_collapbanner(pol_dJ, pol_bh, pol_ds, pol_dr) { var index = cpmst_gmobj(pol_bh + '_hidden').value; if (parseInt(cpmst_gmobj(pol_bh).offsetHeight) > pol_dJ[index][0][4]) { cpmst_gmobj(pol_bh).style.height = parseInt(cpmst_gmobj(pol_bh).offsetHeight) - 10; setTimeout(function() { cpmst_collapbanner(pol_dJ, pol_bh, pol_ds, pol_dr) }, 5); return; } cpmst_gmobj(pol_bh).onmouseover = function() { cpmst_expandbanner(pol_dJ, pol_bh, pol_ds, pol_dr) }; cpmst_gmobj(pol_bh + '_expandcollap').innerHTML = 'M&#7903; r&#7897;ng'; cpmst_gmobj(pol_bh + '_expandcollap').onclick = function() { cpmst_expandbanner(pol_dJ, pol_bh, pol_ds, pol_dr) }; cpmst_gmobj(pol_bh).innerHTML = pol_o(pol_dJ[index][0], pol_ds, pol_dr); }; function pol_B(pol_bh) { cpmst_gmobj(pol_bh).style.display = 'none'; cpmst_gmobj(pol_bh + '_extend').style.display = 'none'; }; function pol_p(pol_dJ, index, pol_bh, pol_cB, pol_ds, pol_dr) { if (index == pol_dJ.length - 1) { index = 0; } else { index++; } cpmst_gmobj(pol_bh).innerHTML = pol_o(pol_dJ[index], pol_ds, pol_dr); setTimeout(function() { pol_p(pol_dJ, index, pol_bh, pol_cB, pol_ds, pol_dr) }, pol_cB); }; function pol_x(pol_dJ, pol_bh, pol_cC, pol_ds, pol_dr, pol_bv, loop) { var pol_cS; pol_cS = cpmst_gmobj("hidFlag_" + pol_bh).value; if (pol_cS == 0) { if (pol_bv == pol_cC) { loop++; setTimeout(function() { pol_q(pol_dJ, pol_bh, pol_cC, pol_ds, pol_dr, loop) }, 0); } } else if (pol_cS == 1) { loop++; setTimeout(function() { pol_q(pol_dJ, pol_bh, pol_cC, pol_ds, pol_dr, loop) }, 0); cpmst_gmobj("hidFlag_" + pol_bh).value = 0; pol_bv = 0; } else if (pol_cS == -1) { loop--; setTimeout(function() { pol_q(pol_dJ, pol_bh, pol_cC, pol_ds, pol_dr, loop) }, 0); cpmst_gmobj("hidFlag_" + pol_bh).value = 0; pol_bv = 0; } else { loop = cpmst_gmobj('hidLoop_' + pol_bh).value; setTimeout(function() { pol_q(pol_dJ, pol_bh, pol_cC, pol_ds, pol_dr, loop) }, 0); cpmst_gmobj("hidFlag_" + pol_bh).value = 0; cpmst_gmobj('hidLoop_' + pol_bh).value = 0; pol_bv = 0; } pol_bv++; if (pol_bv > pol_cC) { pol_bv = 0; } if (loop == pol_dJ.length) { loop = 0; } if (loop < 0) { loop = (pol_dJ.length - 1); } setTimeout(function() { pol_x(pol_dJ, pol_bh, pol_cC, pol_ds, pol_dr, pol_bv, loop) }, 100); }; function pol_q(pol_dJ, pol_bh, pol_cC, pol_ds, pol_dr, pol_cO) { cpmst_gmobj(pol_bh).innerHTML = pol_o(pol_dJ[pol_cO], pol_ds, pol_dr); var k; for (k = 0; k < pol_dJ.length; k++) { if (k == pol_cO) { document.getElementById("numb" + pol_bh + k).style.backgroundColor = "2879ca"; document.getElementById("numb" + pol_bh + k).style.border = "solid 2px #cccccc"; } else { document.getElementById("numb" + pol_bh + k).style.backgroundColor = "0066cc"; document.getElementById("numb" + pol_bh + k).style.border = "solid 2px #0066cc"; } } }; function pol_w(pol_dJ, index, pol_bh, pol_cB, pol_ds, pol_dr, type) { if (typeof (type) == 'undefined') type = 1; if (cpmst_gmobj(pol_bh + '_status').value == '0') { if (index == pol_dJ.length - 1) { index = 0; } else { index++; } if (type == 1) { var pol_em = ''; pol_em = pol_em.concat('<DIV id="').concat(pol_bh).concat('_child" style="position:absolute;top:0px;left:0px;width:').concat(pol_dJ[index][3]).concat('px;height:').concat(pol_dJ[index][4]).concat('px;">'); pol_em = pol_em.concat(pol_o(pol_dJ[index], pol_ds, pol_dr, false, pol_bh)); pol_em = pol_em.concat('</DIV>'); cpmst_gmobj(pol_bh).innerHTML = pol_em; pol_F(pol_bh); } } setTimeout(function() { pol_w(pol_dJ, index, pol_bh, pol_cB, pol_ds, pol_dr, type) }, pol_cB); }; cpmst_adlistshow.prototype.pol_cq = function(pol_dJ) { if (pol_dJ.length <= 0) return; var pol_ds = (this.pol_ds < pol_dJ[0][3] && this.pol_ds > 0) ? this.pol_ds : pol_dJ[0][3]; var pol_dr = (this.pol_dr < pol_dJ[0][4] && this.pol_dr > 0) ? this.pol_dr : pol_dJ[0][4]; var pol_db = ''.concat(this.pol_dB); var pol_cB = this.pol_cz; document.write('<tr><td>'); document.write('<DIV id="', pol_db, '" style="position:relative;overflow:hidden;width:'.concat(pol_ds), 'px;height:'.concat(pol_dr), 'px;">'); document.write(pol_o(pol_dJ[0], this.pol_ds, this.pol_dr, false, pol_db)); document.write('</DIV>'); document.write('<input type="hidden" id="', pol_db, '_status" value="0">'); document.write('</td></tr>'); if (this.pol_ee) setTimeout(function() { pol_w(pol_dJ, 0, pol_db, pol_cB, pol_ds, pol_dr, 1) }, pol_cB); }; cpmst_adlistshow.prototype.pol_ci = function(pol_dJ) { if (pol_dJ.length <= 0) return; var pol_ds = (this.pol_ds < pol_dJ[this.pol_cw][3] && this.pol_ds > 0) ? this.pol_ds : pol_dJ[this.pol_cw][3]; var pol_dr = (this.pol_dr < pol_dJ[this.pol_cw][4] && this.pol_dr > 0) ? this.pol_dr : pol_dJ[this.pol_cw][4]; var pol_db = ''.concat(this.pol_dB); var pol_cB = this.pol_cz; var pol_em = ''; document.write('<div id="', pol_db, '123" style="overflow:hidden;position:absolute;z-index:10001;left:0px;top:0px;height:2000px;background-color:#F4F5F6;display:none;"></div>'); document.write("<div id='" + pol_db + "_position' style='overflow:hidden;position:relative;height:" + pol_dr + "px;width:" + pol_ds + "px;'></div>"); document.write("<div id='" + pol_db + "' style='overflow:hidden;height:" + pol_dr + "px;z-index:0;width:" + pol_ds + "px;position:absolute;left:0px'>"); document.write('</div>'); document.write('<input type="hidden" id="', pol_db, '_direction" value="', this.direction, '">'); document.write('<input type="hidden" id="BannerID', pol_db, '" name="BannerID', pol_db, '" value="', pol_db, '">'); document.write('<input type="hidden" id="BannerOffset_', pol_db, '" value="0" />'); document.write('<input type="hidden" id="', pol_db, '_status" value="0">'); if (this.pol_ee) setTimeout(function() { pol_w(pol_dJ, 0, pol_db, pol_cB, pol_ds, pol_dr, 1); }, pol_cB); var pol_aY = this; setTimeout(function() { pol_aY.pol_cj(pol_dJ) }, 300); }; cpmst_adlistshow.prototype.pol_cj = function(pol_dJ) { if (pol_dJ.length <= 0) return; var pol_ds = (this.pol_ds < pol_dJ[this.pol_cw][3] && this.pol_ds > 0) ? this.pol_ds : pol_dJ[this.pol_cw][3]; var pol_dr = (this.pol_dr < pol_dJ[this.pol_cw][4] && this.pol_dr > 0) ? this.pol_dr : pol_dJ[this.pol_cw][4]; var pol_db = ''.concat(this.pol_dB); var pol_cB = this.pol_cz; var pol_em = ''; pol_em = pol_em.concat('<DIV id="').concat(pol_db).concat('_child" style="overflow:hidden;position:absolute;top:0px;left:0px;width:').concat(pol_dJ[this.pol_cw][3]).concat('px;height:').concat(pol_dJ[this.pol_cw][4]).concat('px;">'); pol_em = pol_em.concat(pol_o(pol_dJ[this.pol_cw], pol_ds, pol_dr, false, pol_db)); pol_em = pol_em.concat('</DIV>'); cpmst_gmobj(pol_db).innerHTML = pol_em; pol_V(pol_db, true); if (this.pol_ee) setTimeout(function() { pol_w(pol_dJ, 0, pol_db, pol_cB, pol_ds, pol_dr, 1) }, pol_cB); }; cpmst_adlistshow.prototype.cpmst_MoveLeft = function(pol_ds, pol_dr, pol_db) { var BannerID = cpmst_gmobj("BannerID" + pol_db).value; var pol_aS = window.screen.width; var pol_aR = cpmst_gmobj("divMove").style.width; var pol_aA = 0; var pol_az; var pol_ap = cpmst_gmobj("BannerOffset_" + BannerID).value; pol_aA = (parseInt(pol_aS) - parseInt(pol_aR)) / 2; pol_dM = cpmst_gmobj("divMove").style.marginLeft.replace("px", ""); cpmst_gmobj(BannerID + "123").style.width = pol_aA + "px"; cpmst_gmobj(BannerID + "123").style.display = ""; cpmst_gmobj(BannerID + "_status").value = 1; pol_az = -(pol_ap - pol_aA); pol_ex = pol_az; if (pol_dM > pol_az) { pol_dM -= 50; if (pol_dM - pol_az <= 50) { cpmst_gmobj("divMove").style.marginLeft = pol_az + "px"; } else { cpmst_gmobj("divMove").style.marginLeft = pol_dM + "px"; } cpmst_gmobj("divMove").style.display = "block"; } else { cpmst_gmobj("divMove").style.display = ""; clearInterval(a); clearTimeout(b); clearTimeout(c); cpmst_gmobj(BannerID).style.display = "block"; cpmst_gmobj(BannerID).style.height = pol_dr + "px"; cpmst_gmobj(BannerID).style.width = pol_ds + "px"; cpmst_gmobj(BannerID).style.zIndex = "1000"; cpmst_gmobj(BannerID).style.left = pol_aA + "px"; cpmst_gmobj(BannerID).style.top = pol_K(cpmst_gmobj(BannerID + '_position'))[1]; cpmst_gmobj(BannerID + '_child').style.top = '0px'; } }; cpmst_adlistshow.prototype.cpmst_MoveRight = function(pol_ds, pol_dr, pol_db) { var BannerID = cpmst_gmobj("BannerID" + pol_db).value; pol_dM = parseInt(cpmst_gmobj("divMove").style.marginLeft.replace("px", "")); if (pol_dM == pol_ex) { cpmst_gmobj("divMove").style.display = "block"; cpmst_gmobj(BannerID).style.display = ""; cpmst_gmobj(BannerID).style.height = pol_dr + "px"; cpmst_gmobj(BannerID).style.width = pol_ds + "px"; cpmst_gmobj(BannerID).style.left = ""; cpmst_gmobj(BannerID + "_status").value = 0; pol_V(BannerID, true); } if (pol_dM < 0) { pol_dM += 50; if (pol_dM > -50) { cpmst_gmobj(BannerID + "123").style.display = "none"; cpmst_gmobj("divMove").style.marginLeft = "0px"; } else { cpmst_gmobj("divMove").style.marginLeft = pol_dM + "px"; } } else { cpmst_gmobj("divMove").style.display = ""; clearInterval(a); clearTimeout(b); clearTimeout(c); pol_V(BannerID, true); cpmst_gmobj("divMove").style.marginLeft = "0px"; } }; cpmst_adlistshow.prototype.pol_bX = function(BannerID, pol_ds, pol_dr) { if (cpmst_gmobj("divMove").style.display == "block") { return; } a = setInterval("cpmst_adlistshow.prototype.cpmst_MoveLeft(" + pol_ds + "," + pol_dr + ",'" + BannerID + "')", 50); b = setTimeout("a", 0); }; cpmst_adlistshow.prototype.pol_bY = function(BannerID, pol_ds, pol_dr) { if (cpmst_gmobj("divMove").style.display == "block") { return; } a = setInterval("cpmst_adlistshow.prototype.cpmst_MoveRight(" + pol_ds + "," + pol_dr + ",'" + BannerID + "')", 50); b = setTimeout("a", 0); }; cpmst_adlistshow.prototype.pol_cg = function(pol_dJ) { if (pol_dJ.length <= 0) return; var pol_ds = (this.pol_ds < pol_dJ[this.pol_cw][3] && this.pol_ds > 0) ? this.pol_ds : pol_dJ[this.pol_cw][3]; var pol_dr = (this.pol_dr < pol_dJ[this.pol_cw][4] && this.pol_dr > 0) ? this.pol_dr : pol_dJ[this.pol_cw][4]; var pol_db = ''.concat(this.pol_dB); var pol_cB = this.pol_cz; document.write('<tr><td>'); document.write('<DIV id="', pol_db, '_position" style="position:relative;overflow:hidden;width:'.concat(pol_ds), 'px;height:'.concat(pol_dr), 'px;"></DIV>'); document.write('<DIV id="', pol_db, '" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:0px;width:'.concat(pol_ds), 'px;height:'.concat(pol_dr), 'px;">'); document.write('</DIV>'); document.write('<input type="hidden" id="', pol_db, '_direction" value="', this.direction, '">'); document.write('<input type="hidden" id="', pol_db, '_status" value="0">'); document.write('</td></tr>'); var pol_aY = this; setTimeout(function() { pol_aY.pol_ch(pol_dJ) }, 1000); }; cpmst_adlistshow.prototype.pol_ch = function(pol_dJ) { var pol_aY = this; if (pol_H() == 1 || pol_H() == 2 || pol_H() == 3 || pol_H() == 4) { if (typeof (FinishPage) != 'undefined') if (FinishPage == 0) { setTimeout(function() { pol_aY.pol_ch(pol_dJ) }, 500); return; } } if (pol_dJ.length <= 0) return; var pol_ds = (this.pol_ds < pol_dJ[this.pol_cw][3] && this.pol_ds > 0) ? this.pol_ds : pol_dJ[this.pol_cw][3]; var pol_dr = (this.pol_dr < pol_dJ[this.pol_cw][4] && this.pol_dr > 0) ? this.pol_dr : pol_dJ[this.pol_cw][4]; var pol_db = ''.concat(this.pol_dB); var pol_cB = this.pol_cz; var pol_em = ''; pol_em = pol_em.concat('<DIV id="').concat(pol_db).concat('_child" style="overflow:hidden;position:absolute;top:0px;left:0px;width:').concat(pol_dJ[this.pol_cw][3]).concat('px;height:').concat(pol_dJ[this.pol_cw][4]).concat('px;">'); pol_em = pol_em.concat(pol_o(pol_dJ[this.pol_cw], pol_ds, pol_dr, false, pol_db)); pol_em = pol_em.concat('</DIV>'); cpmst_gmobj(pol_db).innerHTML = pol_em; pol_T(pol_db, true); if (this.pol_ee && pol_dJ.length > 1) setTimeout(function() { pol_w(pol_dJ, 0, pol_db, pol_cB, pol_ds, pol_dr, 1) }, pol_cB); }; cpmst_adlistshow.prototype.pol_ce = function(pol_dJ, type) { if (pol_dJ.length <= 0) return; var pol_ds = (this.pol_ds < pol_dJ[this.pol_cw][3] && this.pol_ds > 0) ? this.pol_ds : pol_dJ[this.pol_cw][3]; var pol_dr = (this.pol_dr < pol_dJ[this.pol_cw][4] && this.pol_dr > 0) ? this.pol_dr : pol_dJ[this.pol_cw][4]; var pol_db = ''.concat(this.pol_dB); var pol_cB = this.pol_cz; document.write('<DIV id="', pol_db, '_position" style="position:relative;overflow:hidden;width:'.concat(pol_ds), 'px;height:'.concat(pol_dr), 'px;"></DIV>'); document.write('<DIV id="', pol_db, '" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:0px;width:'.concat(pol_ds), 'px;height:'.concat(pol_dr), 'px;">'); document.write('</DIV>'); document.write('<input type="hidden" id="', pol_db, '_directionfix" value="', this.direction, '">'); document.write('<input type="hidden" id="', pol_db, '_status" value="0">'); var pol_aY = this; setTimeout(function() { pol_aY.pol_cf(pol_dJ, type) }, 300); }; cpmst_adlistshow.prototype.pol_cf = function(pol_dJ, type) { if (pol_dJ.length <= 0) return; var pol_ds = (this.pol_ds < pol_dJ[this.pol_cw][3] && this.pol_ds > 0) ? this.pol_ds : pol_dJ[this.pol_cw][3]; var pol_dr = (this.pol_dr < pol_dJ[this.pol_cw][4] && this.pol_dr > 0) ? this.pol_dr : pol_dJ[this.pol_cw][4]; var pol_db = ''.concat(this.pol_dB); var pol_cB = this.pol_cz; var pol_em = ''; switch (type) { case 0: pol_em = pol_em.concat('<DIV id="').concat(pol_db).concat('_child" style="position:absolute;top:0px;left:0px;width:').concat(pol_dJ[this.pol_cw][3]).concat('px;height:').concat(pol_dJ[this.pol_cw][4]).concat('px;">'); break; case 1: pol_em = pol_em.concat('<DIV id="').concat(pol_db).concat('_child" style="position:absolute;top:').concat(pol_dr - pol_dJ[this.pol_cw][4]).concat('px;left:').concat(pol_ds - pol_dJ[this.pol_cw][3]).concat('px;width:').concat(pol_dJ[this.pol_cw][3]).concat('px;height:').concat(pol_dJ[this.pol_cw][4]).concat('px;">'); break; case 2: pol_em = pol_em.concat('<DIV id="').concat(pol_db).concat('_child" style="position:absolute;top:').concat(pol_dr - pol_dJ[this.pol_cw][4]).concat('px;left:0px;width:').concat(pol_dJ[this.pol_cw][3]).concat('px;height:').concat(pol_dJ[this.pol_cw][4]).concat('px;">'); break; case 3: pol_em = pol_em.concat('<DIV id="').concat(pol_db).concat('_child" style="position:absolute;top:').concat(pol_dr - pol_dJ[this.pol_cw][4]).concat('px;left:').concat(pol_ds - pol_dJ[this.pol_cw][3]).concat('px;width:').concat(pol_dJ[this.pol_cw][3]).concat('px;height:').concat(pol_dJ[this.pol_cw][4]).concat('px;">'); break; default: pol_em = pol_em.concat('<DIV id="').concat(pol_db).concat('_child" style="position:absolute;top:').concat(pol_dr - pol_dJ[this.pol_cw][4]).concat('px;left:').concat(pol_ds - pol_dJ[this.pol_cw][3]).concat('px;width:').concat(pol_dJ[this.pol_cw][3]).concat('px;height:').concat(pol_dJ[this.pol_cw][4]).concat('px;">'); break; } pol_em = pol_em.concat(pol_o(pol_dJ[this.pol_cw], this.pol_ds, this.pol_dr, false, pol_db)); pol_em = pol_em.concat('</DIV>'); cpmst_gmobj(pol_db).innerHTML = pol_em; if (pol_dJ.length > 1) { if (this.pol_ee) setTimeout(function() { pol_w(pol_dJ, 0, pol_db, pol_cB, pol_ds, pol_dr, 1) }, pol_cB); } }; cpmst_adlistshow.prototype.pol_bG = function(pol_dJ) { var pol_cF; var status = 0; var div; div = document.createElement("div"); div.id = "divOnFlash"; div.style.position = "absolute"; div.style.display = "block"; document.body.appendChild(div); var pol_ew = ''; cpmst_gmobj('divOnFlash').style.top = (cpmst_gmobj('_game').offsetTop) + 'px'; cpmst_gmobj('divOnFlash').style.left = cpmst_gmobj('flash_0.7055475').offsetLeft + 'px'; cpmst_gmobj('divOnFlash').style.width = cpmst_gmobj('flash_0.7055475').offsetWidth + 'px'; cpmst_gmobj('divOnFlash').style.height = $(document).height() + 'px'; cpmst_gmobj('divOnFlash').style.overflow = 'hidden'; pol_ew = pol_ew.concat('<div style="position:absolute" id="divOnFlash_child">'); pol_em = pol_em.concat(pol_o(pol_dJ[this.pol_cw], pol_ds, pol_dr, false, pol_db)); pol_ew = pol_ew.concat('</div>'); cpmst_gmobj('divOnFlash').innerHTML = pol_em; var pol_cy = ($(window).width() - 800) / 2; window.onresize = function() { if (cpmst_gmobj('divOnFlash')) { setTimeout(function() { pol_b(); }, 1000); cpmst_gmobj('divOnFlash_child').style.left = cpmst_gmobj('flash_0.7055475').offsetLeft + 'px'; } cpmst_gmobj('divOnFlash').style.width = ($(window).width() + 25) + 'px'; } }; function Pupop_default(pol_bh, pol_ds, pol_dr) { var pol_cy = ($(window).width() - 800) / 2; window.moveTo(((screen.height - $(window).height()) / 2), 80); window.resizeTo(820, 750); cpmst_gmobj('divOnFlash').style.width = '800px'; cpmst_gmobj('divOnFlash').style.height = '55px'; cpmst_gmobj('divOnFlash').style.top = cpmst_gmobj('_game').offsetHeight + 'px'; cpmst_gmobj('divOnFlash_child').style.width = '800px'; cpmst_gmobj('divOnFlash_child').style.height = '600px'; cpmst_gmobj('divOnFlash_child').style.top = '-' + (cpmst_gmobj('_game').offsetHeight - 60) + 'px'; }; function pol_b() { if (parseInt(cpmst_gmobj('divOnFlash').offsetLeft) > parseInt(cpmst_gmobj('_game').offsetLeft)) { cpmst_gmobj('divOnFlash').style.left = parseInt(cpmst_gmobj('_game').offsetLeft) + 'px'; } return; }; function pol_V(id, pol_cN) { var pol_cQ = true; if (cpmst_gmobj(id + '_direction')) { direction = cpmst_gmobj(id + '_direction').value; } else { direction = 0; } if (cpmst_gmobj(id) && cpmst_gmobj(id + '_position')) { var pol_aI = pol_K(cpmst_gmobj(id + '_position'))[1]; var pol_aH = pol_K(cpmst_gmobj(id + '_position'))[0]; var pol_aG = parseInt(cpmst_gmobj(id + '_position').offsetHeight); var pol_aJ = parseInt(cpmst_gmobj(id + '_position').offsetWidth); var pol_aw = parseInt(cpmst_gmobj(id).offsetHeight); var pol_ax = parseInt(cpmst_gmobj(id).offsetWidth); if (direction == 0 || direction == 1) { cpmst_gmobj(id).style.top = pol_aI + 'px'; } else { cpmst_gmobj(id).style.top = pol_aI - pol_aw + pol_aG + 'px'; } if (direction == 0 || direction == 2) { cpmst_gmobj(id).style.left = pol_aH + 'px'; } else { cpmst_gmobj(id).style.left = pol_aH - pol_ax + pol_aJ + 'px'; } } if (pol_cN == true) { pol_F(id); cpmst_gmobj('BannerOffset_' + id).value = cpmst_gmobj(id).style.left.replace('px', ''); } c = setTimeout(function() { pol_V(id) }, 100); }; function pol_T(id, pol_cN, pol_cW) { if (cpmst_gmobj(id + '_child')) { if (parseInt(cpmst_gmobj(id + '_child').offsetWidth) == 1440 && id == 'VBannerShared') return; if (parseInt(cpmst_gmobj(id + '_child').offsetWidth) == 1000 && id == 'LargeLogo1') return; if (parseInt(cpmst_gmobj(id + '_child').offsetWidth) == 1440 && id == 'LargeLogo1') return; } if (typeof (pol_cW) == 'undefined') pol_cW = 0; var pol_cQ = true; if (cpmst_gmobj(id + '_direction')) { direction = cpmst_gmobj(id + '_direction').value; } else if (cpmst_gmobj(id + '_directionfix')) { direction = cpmst_gmobj(id + '_directionfix').value; pol_cQ = false; } else { direction = 0; } if (cpmst_gmobj(id) && cpmst_gmobj(id + '_position')) { if (pol_cQ) { var pol_aI = pol_K(cpmst_gmobj(id + '_position'))[1]; var pol_aH = pol_K(cpmst_gmobj(id + '_position'))[0]; var pol_aG = parseInt(cpmst_gmobj(id + '_position').offsetHeight); var pol_aJ = parseInt(cpmst_gmobj(id + '_position').offsetWidth); var pol_aw = parseInt(cpmst_gmobj(id).offsetHeight); var pol_ax = parseInt(cpmst_gmobj(id).offsetWidth); if (direction == 0 || direction == 1) { cpmst_gmobj(id).style.top = pol_aI + 'px'; } else if (direction == 4) { cpmst_gmobj(id).style.top = pol_aI - (pol_aw / 2) + (pol_aG / 2) + 'px'; } else { cpmst_gmobj(id).style.top = pol_aI - pol_aw + pol_aG + 'px'; } if (direction == 0 || direction == 2) { cpmst_gmobj(id).style.left = pol_aH + 'px'; } else if (direction == 4) { if (cpmst_gmobj(id + '_status').value == 1) { cpmst_gmobj(id).style.left = pol_aH - pol_aJ + 'px'; } else { cpmst_gmobj(id).style.left = (pol_aH) - (pol_ax / 2) + (pol_aJ / 2) + 'px'; } } else { cpmst_gmobj(id).style.left = pol_aH - pol_ax + pol_aJ + 'px'; } } else { } } if (pol_cN == true) pol_F(id); if (pol_cW == 0 && typeof (id) != 'undefined') setTimeout(function() { pol_T(id) }, 100); }; function pol_X(id) { if (cpmst_gmobj(id) && cpmst_gmobj(id + '_position')) { var pol_aH = pol_J(cpmst_gmobj(id + '_position'))[0]; cpmst_gmobj(id).style.left = pol_aH + 'px'; } setTimeout(function() { pol_X(id) }, 100); }; function pol_F(id) { if (cpmst_gmobj(id + '_child')) { if (parseInt(cpmst_gmobj(id + '_child').offsetWidth) == 1440 && id == 'VBannerShared') { cpmst_gmobj(id + '_child').style.top = '-162px'; cpmst_gmobj(id + '_child').style.left = '-962px'; return; } if (parseInt(cpmst_gmobj(id + '_child').offsetWidth) == 1000 && id == 'LargeLogo1') { cpmst_gmobj(id + '_child').style.top = '-75px'; cpmst_gmobj(id + '_child').style.left = '-510px'; return; } if (parseInt(cpmst_gmobj(id + '_child').offsetWidth) == 1440 && id == 'LargeLogo1') { cpmst_gmobj(id + '_child').style.top = '-258px'; cpmst_gmobj(id + '_child').style.left = '-720px'; return; } } var pol_cQ = true; if (cpmst_gmobj(id + '_direction')) { direction = cpmst_gmobj(id + '_direction').value; } else if (cpmst_gmobj(id + '_directionfix')) { direction = cpmst_gmobj(id + '_directionfix').value; pol_cQ = false; } else { direction = 0; } if (cpmst_gmobj(id) && cpmst_gmobj(id + '_child')) { var pol_au = parseInt(cpmst_gmobj(id + '_child').offsetHeight); var pol_av = parseInt(cpmst_gmobj(id + '_child').offsetWidth); var pol_aL = parseInt(cpmst_gmobj(id).offsetHeight); var pol_aM = parseInt(cpmst_gmobj(id).offsetWidth); if (direction == 0 || direction == 1) { cpmst_gmobj(id + '_child').style.top = 0 + 'px'; } else if (direction == 4 && cpmst_gmobj(id + '_status').value == 0) { cpmst_gmobj(id + '_child').style.top = "-" + (pol_au / 5) + 'px'; } else { cpmst_gmobj(id + '_child').style.top = pol_aL - pol_au + 'px'; } if (direction == 0 || direction == 2) { cpmst_gmobj(id + '_child').style.left = 0 + 'px'; } else if (direction == 4 && cpmst_gmobj(id + '_status').value == 0) { cpmst_gmobj(id + '_child').style.left = "-" + (pol_av / 2) + 'px'; } else { cpmst_gmobj(id + '_child').style.left = pol_aM - pol_av + 'px'; } } }; var pol_bv = 1; function pol_d(pol_cG, type, eY) { if (typeof (eY) == 'undefined') { eY = 0 }; var pol_es, pol_et; if (type == 1 || type == 3) { pol_es = document.body.clientWidth - 120; } else { pol_es = 5; } if (type == 2 || type == 3) { pol_et = document.body.clientHeight; } else { pol_et = 0; } if (document.body.clientWidth < 1250) { pol_es = -125 }; window.pol_ev = function(pol_cR, type, eY) { var pol_es, pol_et; var pol_dH = (navigator.appName.indexOf("Netscape") != -1); if (type == 1 || type == 3) { pol_es = document.body.clientWidth - 125; } else { pol_es = 5; } if (document.body.clientWidth < 1250) { pol_cR.style.display = 'none'; } else { pol_cR.style.display = ''; if (document.documentElement && document.documentElement.scrollTop) var pol_dU = pol_dH ? pageYOffset : document.documentElement.scrollTop; else if (document.body) var pol_dU = pol_dH ? pageYOffset : document.body.scrollTop; if (type == 2 || type == 3) { if (document.documentElement && document.documentElement.clientHeight) pol_et = document.documentElement.clientHeight - 305; else if (document.body) pol_et = document.body.clientHeight - 305; } else { if (document.documentElement) { if (document.documentElement.scrollTop > 98) { pol_et = 3 } else { pol_et = 98 - document.documentElement.scrollTop; }; } else if (document.body) { if (document.body.scrollTop > 98) { pol_et = 3 } else { pol_et = 98 - document.body.scrollTop; }; } } pol_cR.y += (pol_dU + pol_et - pol_cR.y) / 8; pol_cR.style.left = pol_es + 'px'; pol_cR.style.top = pol_cR.y + eY + 'px'; } setTimeout(function() { pol_ev(pol_cR, type, eY) }, 15); }; var pol_cR = cpmst_gmobj(pol_cG); if (!pol_cR) return; pol_cR.x = pol_es; pol_cR.y = pol_et; pol_ev(pol_cR, type, eY); }; function cpmst_expandslideselfbanner(pol_bh, pol_ds, pol_dr) { cpmst_adlistshow.prototype.pol_bX(pol_bh, pol_ds, pol_dr); }; function cpmst_collapslideselfbanner(pol_bh, pol_ds, pol_dr) { cpmst_adlistshow.prototype.pol_bY(pol_bh, pol_ds, pol_dr); }; function cpmst_expandselfbanner(pol_bh, pol_ds, pol_dr) { cpmst_gmobj(pol_bh).style.zIndex = "99999"; cpmst_gmobj(pol_bh + '_status').value = 1; if (pol_H() == 1) { if (pol_bh == "RightExpandSkyscraperLogo2") { if (cpmst_gmobj("SlideLogo1")) { cpmst_gmobj("SlideLogo1").style.zIndex = 0; } else if (cpmst_gmobj("LargeLogo1")) { cpmst_gmobj("LargeLogo1").style.zIndex = 0; } } } if (cpmst_gmobj(pol_bh + '_directionfix')) { var pol_eB = cpmst_gmobj(pol_bh + '_child').style.top; var pol_dn = cpmst_gmobj(pol_bh + '_child').style.left; cpmst_gmobj(pol_bh).style.height = pol_dr + 'px'; cpmst_gmobj(pol_bh).style.width = pol_ds + 'px'; cpmst_gmobj(pol_bh).style.top = pol_eB; cpmst_gmobj(pol_bh).style.left = pol_dn; cpmst_gmobj(pol_bh + '_child').style.top = '0px'; cpmst_gmobj(pol_bh + '_child').style.left = '0px'; } else { if (cpmst_gmobj(pol_bh + '_position')) { cpmst_gmobj(pol_bh).style.height = pol_dr + 'px'; cpmst_gmobj(pol_bh).style.width = pol_ds + 'px'; pol_T(pol_bh); pol_F(pol_bh); return; } var pol_ao = parseInt(cpmst_gmobj(pol_bh).offsetHeight); var pol_ar = parseInt(cpmst_gmobj(pol_bh).offsetWidth); if ((pol_ao < pol_dr - 10) || (pol_ar < pol_ds - 10)) { if (pol_ao < pol_dr - 10) { cpmst_gmobj(pol_bh).style.height = pol_ao + 10 + 'px'; } else { cpmst_gmobj(pol_bh).style.height = pol_dr + 'px'; } if (pol_ar < pol_ds - 10) { cpmst_gmobj(pol_bh).style.width = pol_ar + 10 + 'px'; } else { cpmst_gmobj(pol_bh).style.width = pol_ds + 'px'; } pol_T(pol_bh); pol_F(pol_bh); setTimeout(function() { cpmst_expandselfbanner(pol_bh, pol_ds, pol_dr) }, 5); return; } else { cpmst_gmobj(pol_bh).style.height = pol_dr + 'px'; cpmst_gmobj(pol_bh).style.width = pol_ds + 'px'; pol_T(pol_bh); pol_F(pol_bh); } } }; function pol_l(pol_bg, pol_ec, pol_df, pol_de) { var pol_em = ""; var pol_ei = ""; var pol_ei = pol_bg ? pol_bg : ''; if (pol_h(pol_bg, 4).toLowerCase() == '.swf') { var pol_ei = pol_bg; var pol_ed = pol_ec.substring(0, pol_ec.indexOf('&l') + 3) + escape(pol_ec.substring(pol_ec.indexOf('&l') + 3)); var pol_em = ""; pol_em = pol_em.concat('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" border="0" width=').concat(pol_df).concat(' height=').concat(pol_de).concat('>'); pol_em = pol_em.concat('<param name="movie" value="').concat(pol_ei).concat('">'); pol_em = pol_em.concat('<param name="AllowScriptAccess" value="always">'); pol_em = pol_em.concat('<param name="quality" value="High">'); pol_em = pol_em.concat('<param name="wmode" value="transparent">'); pol_em = pol_em.concat('<param name="FlashVars" value="').concat('link=').concat(escape(pol_ed)).concat('">'); pol_em = pol_em.concat('<embed src="').concat(pol_ei).concat('" FlashVars="').concat('link=').concat(escape(pol_ed)).concat('" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" play="true" loop="true" wmode="transparent" AllowScriptAccess="always" width=').concat(pol_df).concat(' height=').concat(pol_de).concat('>'); pol_em = pol_em.concat('</object>'); } else { pol_em = pol_em.concat('<img src="').concat(pol_bg).concat('" width="').concat(pol_df).concat('" height="').concat(pol_de).concat('"/> '); } return pol_em; }; function cpmst_expandselfbannerGroupCpm(pol_bg, pol_ec, pol_ds, pol_dr) { if (cpmst_gmobj('adgroup')) { cpmst_gmobj('adgroup').style.display = "block"; cpmst_gmobj('adgroup').innerHTML = pol_l(pol_bg, pol_ec, pol_ds, pol_dr); } else { setTimeout(function() { cpmst_expandselfbannerGroupCpm(pol_bg, pol_ec, pol_ds, pol_dr) }, 100); } }; function pol_ag(pol_aB) { if ($("#adgroup").length > 0) { var bannerID = $("#" + pol_aB + "_bannerID").val(); var pol_bg = $("#" + pol_aB + "_bannerName").val(); var pol_ec = $("#" + pol_aB + "_rootLink").val(); var pol_dr = $("#" + pol_aB + "_limitHeight").val(); var pol_ds = $("#" + pol_aB + "_limitWidth").val(); $("#adgroup").html(pol_l(pol_bg, pol_ec, pol_ds, pol_dr)).css("display", "block"); } else { setTimeout(function() { pol_ag(pol_aB) }, 10); } }; function cpmst_expandSeflBannerGroup(pol_bg, pol_ec, pol_ds, pol_dr, bannerId) { if ($("#" + bannerId + "_bannerID").length) { pol_ag(bannerId); } else { $("body").append("</br><input type='text' id='" + bannerId + "_bannerID' style='display:none' value='" + bannerId + "'/>"); $("body").append("</br><input type='text' id='" + bannerId + "_bannerName' style='display:none' value='" + pol_bg + "'/>"); $("body").append("</br><input type='text' id='" + bannerId + "_rootLink' style='display:none' value='" + pol_ec + "'/>"); $("body").append("</br><input type='text' id='" + bannerId + "_limitHeight' style='display:none' value='" + pol_dr + "'/>"); $("body").append("</br><input type='text' id='" + bannerId + "_limitWidth' style='display:none' value='" + pol_ds + "'/>"); pol_ag(bannerId); } }; function pol_ab(pol_bg, pol_ec, pol_ds, pol_dr) { if (cpmst_gmobj('adgroup')) { cpmst_gmobj('adgroup').style.display = "block"; cpmst_gmobj('adgroup').innerHTML = pol_l(pol_bg, pol_ec, pol_ds, pol_dr); } else { setTimeout(function() { pol_ab(pol_bg, pol_ec, pol_ds, pol_dr) }, 100); } }; function cpmst_collapselfbanner(pol_bh, pol_ds, pol_dr) { cpmst_gmobj(pol_bh).style.zIndex = "100"; if (pol_H() == 1) { if (pol_bh == "RightExpandSkyscraperLogo2") { if (cpmst_gmobj("SlideLogo1")) { cpmst_gmobj("SlideLogo1").style.zIndex = 100; } else if (cpmst_gmobj("LargeLogo1")) { cpmst_gmobj("LargeLogo1").style.zIndex = 100; } } } if (cpmst_gmobj(pol_bh + '_directionfix')) { var pol_eC = cpmst_gmobj(pol_bh).style.top; var pol_do = cpmst_gmobj(pol_bh).style.left; cpmst_gmobj(pol_bh).style.height = pol_dr + 'px'; cpmst_gmobj(pol_bh).style.width = pol_ds + 'px'; cpmst_gmobj(pol_bh).style.top = '0px'; cpmst_gmobj(pol_bh).style.left = '0px'; cpmst_gmobj(pol_bh + '_child').style.top = pol_eC; cpmst_gmobj(pol_bh + '_child').style.left = pol_do; } else { if (cpmst_gmobj(pol_bh + '_position')) { cpmst_gmobj(pol_bh + '_status').value = 0; cpmst_gmobj(pol_bh).style.height = pol_dr + 'px'; cpmst_gmobj(pol_bh).style.width = pol_ds + 'px'; pol_T(pol_bh); pol_F(pol_bh); return; } var pol_ao = parseInt(cpmst_gmobj(pol_bh).offsetHeight); var pol_ar = parseInt(cpmst_gmobj(pol_bh).offsetWidth); if ((pol_ao > pol_dr + 10) || (pol_ar > pol_ds + 10)) { if (pol_ao > pol_dr + 10) { cpmst_gmobj(pol_bh).style.height = pol_ao - 10 + 'px'; } else { cpmst_gmobj(pol_bh).style.height = pol_dr + 'px'; } if (pol_ar > pol_ds + 10) { cpmst_gmobj(pol_bh).style.width = pol_ar - 10 + 'px'; } else { cpmst_gmobj(pol_bh).style.width = pol_ds + 'px'; } pol_T(pol_bh); pol_F(pol_bh); setTimeout(function() { cpmst_collapselfbanner(pol_bh, pol_ds, pol_dr) }, 5); return; } else { cpmst_gmobj(pol_bh).style.height = pol_dr + 'px'; cpmst_gmobj(pol_bh).style.width = pol_ds + 'px'; pol_T(pol_bh); pol_F(pol_bh); cpmst_gmobj(pol_bh + '_status').value = 0; } } }; function pol_S(pol_dJ, index, pol_bh, pol_cB, pol_ds, pol_dr) { var pol_cR = cpmst_gmobj(pol_bh); if (!pol_cR) return; var pol_dU = parseInt(pol_cR.style.top); pol_dU = pol_dU - Math.round(parseInt(pol_cR.style.top) / 8) - 1; if (pol_dU > 0) { pol_cR.style.top = pol_dU; setTimeout(function() { pol_S(pol_dJ, index, pol_bh, pol_cB, pol_ds, pol_dr) }, 10); } else { pol_cR.style.top = 0; setTimeout(function() { pol_C(pol_dJ, index, pol_bh, pol_cB, pol_ds, pol_dr) }, pol_cB); } }; function pol_C(pol_dJ, index, pol_bh, pol_cB, pol_ds, pol_dr) { var pol_cR = cpmst_gmobj(pol_bh); if (!pol_cR) return; var pol_dU = parseInt(pol_cR.style.top); pol_dU = pol_dU + Math.round((pol_dr - parseInt(pol_cR.style.top)) / 8) + 1; if (pol_dU < pol_dr) { pol_cR.style.top = pol_dU; setTimeout(function() { pol_C(pol_dJ, index, pol_bh, pol_cB, pol_ds, pol_dr) }, 10); } else { pol_cR.style.top = pol_dr; if (index == pol_dJ.length - 1) { index = 0; } else { index++; } cpmst_gmobj(pol_bh).innerHTML = pol_o(pol_dJ[index], pol_ds, pol_dr); setTimeout(function() { pol_S(pol_dJ, index, pol_bh, pol_cB, pol_ds, pol_dr) }, 5000); } }; function pol_H() { if (window.location.href.toLowerCase().indexOf("ebank.vnexpress.net") > -1) return 6; if (window.location.href.toLowerCase().indexOf("nhadep.vnexpress.net") > -1) return 5; if (window.location.href.toLowerCase().indexOf("sohoa.vnexpress.net") > -1) return 4; if (window.location.href.toLowerCase().indexOf("gamethu.vnexpress.net") > -1) return 3; if (window.location.href.toLowerCase().indexOf("vnexpress.net") > -1) return 1; if (window.location.href.toLowerCase().indexOf("beta.vnexpress.net") > -1) return 7; if (window.location.href.toLowerCase().indexOf("ngoisao.net") > -1) return 2; return 0; }; function pol_o(pol_dJ, pol_ds, pol_dr, pol_bs, pol_dd) { if (!pol_dJ) { return '' } var pol_aX = pol_m(pol_dJ[2].substring(pol_dJ[2].lastIndexOf(',') + 1)); var pol_em = ''; if (typeof (pol_bs) == "undefined") pol_bs = true; var pol_ei; var pol_df; var pol_de; var pol_el; var pol_dQ = Math.random(); pol_el = pol_dJ[1]; pol_ei = (cpmst_Left(pol_dJ[0], 7).toLowerCase() == 'http://') ? pol_dJ[0] : pol_bx.concat(pol_dJ[0]); pol_df = (pol_ds < pol_dJ[3] && pol_ds > 0 && pol_bs) ? pol_ds : pol_dJ[3]; pol_de = (pol_dr < pol_dJ[4] && pol_dr > 0 && pol_bs) ? pol_dr : pol_dJ[4]; if (pol_dQ < 0.33) { if (pol_dJ.length > 11) { if (pol_dJ[10] != '') { pol_ei = (cpmst_Left(pol_dJ[10], 7).toLowerCase() == 'http://') ? pol_dJ[10] : pol_bx.concat(pol_dJ[10]); pol_df = (pol_ds < pol_dJ[11] && pol_ds > 0 && pol_bs) ? pol_ds : pol_dJ[11]; pol_de = (pol_dr < pol_dJ[12] && pol_dr > 0 && pol_bs) ? pol_dr : pol_dJ[12]; if (pol_dJ.length > 16) pol_el = pol_dJ[16]; } } } else if (pol_dQ < 0.66) { if (pol_dJ.length > 14) { if (pol_dJ[13] != '') { pol_ei = (cpmst_Left(pol_dJ[13], 7).toLowerCase() == 'http://') ? pol_dJ[13] : pol_bx.concat(pol_dJ[13]); pol_df = (pol_ds < pol_dJ[14] && pol_ds > 0 && pol_bs) ? pol_ds : pol_dJ[14]; pol_de = (pol_dr < pol_dJ[15] && pol_dr > 0 && pol_bs) ? pol_dr : pol_dJ[15]; if (pol_dJ.length > 16) pol_el = pol_dJ[17]; } } } if (pol_dJ[2].substring(pol_dJ[2].lastIndexOf(',') + 1) == 6685) { pol_em = pol_em.concat(Poly_ShowWidgetIONE(1)); return pol_em; } if (pol_dJ[0].toLowerCase().indexOf('polyad_extendbanner') > 0 && pol_dJ[1].toLowerCase() == 'http://cp.polyad.net') { pol_em = pol_em.concat('<IFRAME ID="' + pol_dd + '_Iframe" MARGINWIDTH="0" ALLOWTRANSPARENCY="true" MARGINHEIGHT="0" HSPACE="0" VSPACE="0" FRAMEBORDER="0" SCROLLING="no" '); pol_em = pol_em.concat(' WIDTH="').concat(pol_dJ[3]).concat('" HEIGHT="').concat(pol_dJ[4]).concat('" '); pol_em = pol_em.concat(' SRC="').concat(pol_bA).concat('/Script/ExtendBanner/').concat(pol_k(pol_dJ[2].split(',')[12])).concat('.htm#').concat(encodeURIComponent(document.location.href)).concat('"></IFRAME>'); } else { if (pol_h(pol_dJ[0], 4).toLowerCase() == '.swf') { if (navigator.userAgent.toLowerCase().match("chrome")) { pol_em = pol_em.concat('<embed src="').concat(pol_ei).concat('?link=').concat(escape(pol_n(pol_dJ[2].substring(pol_dJ[2].lastIndexOf(',') + 1), pol_el, false))).concat('&zoneid=').concat(pol_dd).concat('"'); pol_em = pol_em.concat('pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" '); pol_em = pol_em.concat('type="application/x-shockwave-flash" allowscriptaccess="always" width="').concat(pol_df).concat('" align="middle" height="').concat(pol_de).concat('">'); } else { pol_em = pol_em.concat('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" border="0" width=').concat(pol_df).concat(' height=').concat(pol_de).concat('>'); pol_em = pol_em.concat('<param name="movie" value="').concat(pol_ei).concat('">'); pol_em = pol_em.concat('<param name="AllowScriptAccess" value="always">'); pol_em = pol_em.concat('<param name="quality" value="High">'); pol_em = pol_em.concat('<param name="wmode" value="transparent">'); pol_em = pol_em.concat('<param name="FlashVars" value="').concat('link=').concat(escape(pol_n(pol_dJ[2].substring(pol_dJ[2].lastIndexOf(',') + 1), pol_el, false))).concat('&zoneid=').concat(pol_dd).concat('&actionTag=').concat(escape(pol_aX)).concat('">'); pol_em = pol_em.concat('<embed src="').concat(pol_ei).concat('" FlashVars="').concat('link=').concat(escape(pol_n(pol_dJ[2].substring(pol_dJ[2].lastIndexOf(',') + 1), pol_el, false))).concat('&zoneid=').concat(pol_dd).concat('&actionTag=').concat(escape(pol_aX)).concat('" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" play="true" loop="true" wmode="transparent" AllowScriptAccess="always" width=').concat(pol_df).concat(' height=').concat(pol_de).concat('>'); pol_em = pol_em.concat('</object>'); } } else { if (pol_dJ[1] != '') { pol_em = '<img src="'.concat(pol_ei).concat('" onClick="return pol_L(\'').concat(pol_el).concat('\', ').concat(pol_dJ[2]).concat(', 1)" style="cursor:pointer;" border=0 width=').concat(pol_df).concat(' height=').concat(pol_de).concat('>'); } else { pol_em = '<img src="'.concat(pol_ei).concat('" border=0 width=').concat(pol_df).concat(' height=').concat(pol_de).concat('>'); } } } return pol_em; }; cpmst_adlistshow.prototype.pol_bC = function(pol_dJ) { var pol_br = false; if (pol_dJ.length > 9) { if (pol_dJ[9] != '') { if (typeof (PAGE_ID) != 'undefined') { if (''.concat(',').concat(pol_dJ[9]).concat(',').indexOf(''.concat(',').concat(PAGE_ID).concat(',')) > -1) return true; } if (typeof (PageID) != 'undefined') { if (''.concat(',').concat(pol_dJ[9]).concat(',').indexOf(''.concat(',').concat(PageID).concat(',')) > -1) return true; } return false; } } if (pol_dJ.length > 8) { if (pol_dJ[8] != '') { if (typeof (TOPIC_ID) != 'undefined') { if (''.concat(',').concat(pol_dJ[8]).concat(',').indexOf(''.concat(',').concat(TOPIC_ID).concat(',')) > -1) return true; } return false; } } var pol_eN = pol_dJ[2].lastIndexOf(','); var pol_eK = parseInt(pol_dJ[2].substr(pol_eN + 1)); if (pol_eK == 9583) { var pol_as = { pol_aT: function() { var version = 999; if (navigator.appVersion.indexOf("MSIE") != -1) version = parseFloat(navigator.appVersion.split("MSIE")[1]); return version; } }; if (pol_as.pol_aT() > 5 && pol_as.pol_aT() < 8) return false; return true; } if (pol_eK == 7302) { if (pol_H() == 2) { if (typeof (PageID) != 'undefined') { if (PageID == 1000158744) { return true; } } } return false; } if (pol_eK == 1435) { if (pol_H() == 2) { if (typeof (PageID) != 'undefined') { if (PageID == 1000162241 || PageID == 4 || PageID == 1000163119 || PageID == 1000163124) { return true; } } } return false; } if (pol_eK == 8374) { if (pol_H() == 1) { if (typeof (PAGE_ID) != 'undefined') { if (PAGE_ID == 1000500729) { return true; } } } return false; } if (pol_eK == 8710) { if (pol_H() == 1) { if (typeof (PAGE_ID) != 'undefined') { if (PAGE_ID == 1000501402) { return true; } } } return false; } if (pol_eK == 8502) { if (pol_H() == 1) { if (typeof (PAGE_ID) != 'undefined') { if (PAGE_ID == 1000501402) { return false; } } } return true; } if (pol_eK == 7266) { if (pol_H() == 4) { if (typeof (PAGE_FOLDER) != 'undefined') { if (PAGE_FOLDER == 52) { return false; } } } return true; } var pol_cT; if (this.pol_ep == 8) { pol_cT = pol_dJ[9]; } else { pol_cT = pol_dJ[6]; } if (pol_cT == 3 && this.pol_bt < 4) pol_br = true; else if (pol_cT == this.pol_bt || pol_cT == 0) pol_br = true; if (typeof (PAGE_FOLDER) != 'undefined') { if (PAGE_FOLDER == 9998) if (pol_dJ[1].indexOf('http://www.nguoinemngon.vn') >= 0) { if (window.location.href.indexOf("c=17") > 0) { return true } else { return false } } } if (pol_eK == 4648) { if (typeof (RelatedFolder) != 'undefined') { if (RelatedFolder == 1) return false; return true; } } if (pol_eK == 4649) { if (typeof (PAGE_FOLDER) != 'undefined') { if (PAGE_FOLDER == 1) return false; return true; } } if (typeof (POLY_VOTEID) != 'undefined') { if (pol_dJ[0].toLowerCase().indexOf('vote') > -1) { var pol_aW = pol_dJ[0].split("_"); if (pol_aW.length > 0) pol_aW = pol_aW[0].split("+"); if (pol_aW.length > 1) { for (var i = 1; i < pol_aW.length; i++) { if (POLY_VOTEID == pol_aW[i]) { return true; } } return false; } } } if (typeof (TOPIC_ID) != 'undefined') { if (pol_dJ[0].toLowerCase().indexOf('topic') > -1) { var pol_aV = pol_dJ[0].split("_"); if (pol_aV.length > 0) pol_aV = pol_aV[0].split("+"); if (pol_aV.length > 1) { for (var i = 1; i < pol_aV.length; i++) { if (TOPIC_ID == pol_aV[i]) { return true; } } return false; } } } if (pol_br && this.pol_ep == 7) { pol_br = false; if (typeof (pol_cI) == 'undefined') return; var pol_cH = new Date(pol_dJ[7]); var pol_cJ = new Date(pol_dJ[8]); var pol_cU = (pol_cI.getTime() - pol_cH.getTime()) / 1000; var pol_da = (pol_cJ.getTime() - pol_cI.getTime()) / 1000; if (pol_cU < 5 * 86400 && pol_cU >= 0 && pol_da > 5 * 86400 && pol_da >= 0) { pol_br = true; } } return pol_br; }; function pol_N() { return (Math.random() * 10000) - 5000; }; function pol_M(pol_eM, pol_eY, pol_eU, pol_eS, pol_eZ, pol_eI, pol_eX, pol_eO, pol_eJ) { if (typeof (pol_eJ) == 'undefined') { pol_eJ = false; } var pol_dV = '/Library/Common/PopupUnder.Asp?vImage='; if (window.location.href.toLowerCase().indexOf("sohoa.vnexpress.net") > -1) { pol_dV = '/Library/Popup.Aspx?vImage='; } else if (window.location.href.toLowerCase().indexOf("gamethu.vnexpress.net") > -1) { pol_dV = '/Library/Popup.Aspx?vImage='; } else if (window.location.href.toLowerCase().indexOf("vnexpress.net") > -1) { pol_dV = '/Library/Common/PopupUnder.Asp?vImage='; } else if (window.location.href.toLowerCase().indexOf("ngoisao.net") > -1) { pol_dV = '/Library/PopupUnder.Asp?vImage='; } if (pol_eJ) { var pol_dX = open(pol_dV.concat(escape(pol_eM)).concat('&vLink=').concat(escape(pol_eY)).concat('&vTitle=').concat(escape(pol_eU)), 'Popup_'.concat(pol_g(pol_eU, ' ', '_')), 'status=no,resizable=no,scrollbars='.concat(pol_eS).concat(',toolbar=no,location=no,fullscreen=no,titlebar=no,height=').concat(pol_eI).concat(',').concat('width=').concat(pol_eZ).concat(',').concat('top=').concat(0).concat(',').concat('left=').concat(0)); var pol_aF = pol_eY; window.focus(); if (pol_dX) { pol_dX.blur() }; return pol_dX; } else { return open(pol_dV.concat(escape(pol_eM)).concat('&vLink=').concat(escape(pol_eY)).concat('&vTitle=').concat(escape(pol_eU)), 'Popup_'.concat(pol_g(pol_eU, ' ', '_')), 'status=no,resizable=no,scrollbars=no,toolbar=no,location=no,fullscreen=no,titlebar=yes,height='.concat(pol_eI).concat(',').concat('width=').concat(pol_eZ).concat(',').concat('top=').concat(pol_eX).concat(',').concat('left=').concat(pol_eO)); } }; function pol_L(vLink, pol_eT, pol_eR, pol_eS, pol_eW, pol_eP, pol_eH, pol_eV, pol_eF, pol_eI, pol_eZ, pol_eX, pol_eO, pol_eK, pol_eG) { var pol_ek = (typeof (vLink.href) == 'undefined') ? vLink : vLink.href; pol_eR = 1; pol_eS = 1; pol_eT = 1; pol_eW = 1; pol_eP = 1; pol_eV = 1; pol_eI = 600; pol_eZ = 800; pol_fa = ''; pol_fa = pol_fa.concat('status=').concat((pol_eT) ? 'yes' : 'no').concat(','); pol_fa = pol_fa.concat('resizable=').concat((pol_eR) ? 'yes' : 'no').concat(','); pol_fa = pol_fa.concat('scrollbars=').concat((pol_eS) ? 'yes' : 'no').concat(','); pol_fa = pol_fa.concat('toolbar=').concat((pol_eW) ? 'yes' : 'no').concat(','); pol_fa = pol_fa.concat('location=').concat((pol_eP) ? 'yes' : 'no').concat(','); pol_fa = pol_fa.concat('fullscreen=').concat((pol_eH) ? 'yes' : 'no').concat(','); pol_fa = pol_fa.concat('titlebar=').concat((pol_eV) ? 'yes' : 'no').concat(','); pol_fa = pol_fa.concat('height=').concat(pol_eI - 140).concat(','); pol_fa = pol_fa.concat('width=').concat(pol_eZ).concat(','); if (pol_eF) { pol_fa = pol_fa.concat('top=').concat((screen.height - pol_eI) / 2).concat(','); pol_fa = pol_fa.concat('left=').concat((screen.width - pol_eZ) / 2); } else { pol_fa = pol_fa.concat('top=').concat(pol_eX).concat(','); pol_fa = pol_fa.concat('left=').concat(pol_eO); } if (typeof (pol_eG) == 'undefined') { pol_eG = 0; } if (typeof (pol_eK) == 'undefined') { pol_eK = 0; } if (pol_eG) { pol_ek = pol_n(pol_eK, pol_ek, true); } open(pol_ek, '_blank', pol_fa); if (typeof (vLink.href) != 'undefined') { return false; } }; function pol_n(pol_eK, vLink, pol_eQ) { var pol_eq = pol_H(); if (vLink == '') return ''; if (pol_eQ == true) { return pol_bz.concat('&b=').concat(pol_eK).concat('&s=').concat(pol_eq).concat('&l=').concat(escape(vLink)).concat('&r=').concat(Math.random()); } else { return pol_bz.concat('&b=').concat(pol_eK).concat('&s=').concat(pol_eq).concat('&l=').concat(escape(vLink)); } }; function pol_m(pol_eK) { return pol_by.concat('&b=').concat(pol_eK).concat('&r=').concat(Math.random()); }; function pol_e(pol_cG, type, eY) { if (typeof (eY) == 'undefined') { eY = 0 }; var pol_es, pol_et; if (type == 1) { pol_es = document.body.clientWidth - 115; } else { pol_es = 5; } if (type == 2) { pol_et = document.body.clientHeight; } else { pol_et = 0; } if (document.body.clientWidth < 980) { pol_es = -115 }; window.pol_ev = function(pol_cR, type, eY) { var pol_es, pol_et; var pol_dH = (navigator.appName.indexOf("Netscape") != -1); if (type == 1) { pol_es = document.body.clientWidth - 115; } else { pol_es = 5; } if (document.body.clientWidth < 980) { pol_cR.style.display = 'none'; } else { pol_cR.style.display = ''; if (document.documentElement && document.documentElement.scrollTop) var pol_dU = pol_dH ? pageYOffset : document.documentElement.scrollTop; else if (document.body) var pol_dU = pol_dH ? pageYOffset : document.body.scrollTop; if (type == 2) { pol_et = document.body.clientHeight - 183; } else { if (document.body.scrollTop > 71) { pol_et = 3 } else { pol_et = 71 - document.body.scrollTop }; } pol_cR.y += (pol_dU + pol_et - pol_cR.y) / 8; pol_cR.style.left = pol_es; pol_cR.style.top = pol_cR.y + eY; } setTimeout(function() { pol_ev(pol_cR, type, eY) }, 15); }; var pol_cR = cpmst_gmobj(pol_cG); if (!pol_cR) return; pol_cR.x = pol_es; pol_cR.y = pol_et; pol_ev(pol_cR, type, eY); }; function cpmst_gmobj(pol_dx) { if (document.getElementById) { m = document.getElementById(pol_dx) } else if (document.all) { m = document.all[pol_dx] } else if (document.layers) { m = document[pol_dx] } return m; }; function pol_K(pol_dJ, offset) { var p = offset ? offset.slice(0) : [0, 0]; while (pol_dJ) { if (pol_dJ.id.toUpperCase().indexOf("DVSCROLL") != -1) { pol_dJ = pol_dJ.offsetParent; continue; } p[0] += pol_dJ.offsetLeft; p[1] += pol_dJ.offsetTop; if (pol_dJ.tagName.toUpperCase() == "BODY") break; pol_dJ = pol_dJ.offsetParent; } return p; }; function pol_J(pol_dJ, offset) { var p = offset ? offset.slice(0) : [0, 0]; while (pol_dJ) { p[0] += pol_dJ.offsetLeft; p[1] += pol_dJ.offsetTop; if (pol_dJ.tagName.toUpperCase() == "BODY") break; pol_dJ = pol_dJ.offsetParent; } return p; }; function pol_k(pol_cZ) { while (pol_cZ.charCodeAt(0) <= 32) { pol_cZ = pol_cZ.substr(1); } while (pol_cZ.charCodeAt(pol_cZ.length - 1) <= 32) { pol_cZ = pol_cZ.substr(0, pol_cZ.length - 1); } return pol_cZ; }; function cpmst_Left(str, n) { if (n <= 0) return ""; else if (n > String(str).length) return str; else return String(str).substring(0, n); }; function pol_h(str, n) { if (n <= 0) return ""; else if (n > String(str).length) return str; else { var pol_cV = String(str).length; return String(str).substring(pol_cV, pol_cV - n); } }; function pol_g(pol_cZ, pol_eD, pol_eE) { var i = 0, pol_dI = '', j = pol_eD.length; while (i < pol_cZ.length) { if (pol_cZ.substr(i, j) == pol_eD) { pol_dI += pol_eE; i += j } else { pol_dI += pol_cZ.charAt(i); i++; } } return pol_dI; }; cpmst_adlistshow.prototype.pol_bV = function(type) { if (this.pol_du.length <= 0) return; if (!cpmst_gmobj("CurrentBrowserWidth")) document.write('<input type="hidden" id="CurrentBrowserWidth" value="" />'); if (!cpmst_gmobj("ShowBackground")) document.write('<input type="hidden" id="ShowBackground" value="1" />'); if (!cpmst_gmobj("divSlideResultLeft")) document.write('<div id="divSlideResultLeft" style="top:expression(eval(document.documentElement.scrollTop? document.documentElement.scrollTop : document.body.scrollTop)); background-repeat:no-repeat;background-position:right top;over-flow:hidden;cursor:pointer;text-align:right;padding:0px;position: fixed!important;position: absolute; /*ie6 and above*/;left: 0px; top: 0px;overflow:hidden;"></div>'); if (!cpmst_gmobj("divSlideResultRight")) document.write('<div id="divSlideResultRight" style="top:expression(eval(document.documentElement.scrollTop? document.documentElement.scrollTop : document.body.scrollTop)); background-repeat:no-repeat;over-flow:hidden;cursor:pointer;text-align:left;padding:0px;position: fixed!important; position: absolute; /*ie6 and above*/;right: 0px; top: 0px;overflow:hidden;"></div>'); if (cpmst_gmobj("CurrentBrowserWidth").value == '') cpmst_gmobj("CurrentBrowserWidth").value = 0; var pol_ej; var pol_df; var pol_de; var pol_el; var pol_dQ = Math.random(); pol_ej = this.pol_du[0][0]; pol_df = this.pol_du[0][3] ? this.pol_du[0][3] : 220; pol_de = this.pol_du[0][4] ? this.pol_du[0][4] : 900; pol_el = this.pol_du[0][1]; if (pol_dQ < 0.33) { if (this.pol_du[0].length > 11) { if (this.pol_du[0][10] != '') { pol_ej = this.pol_du[0][10]; pol_df = this.pol_du[0][11] ? this.pol_du[0][11] : 220; pol_de = this.pol_du[0][12] ? this.pol_du[0][12] : 900; if (this.pol_du[0].length > 16) pol_el = this.pol_du[0][16]; } } } else if (pol_dQ < 0.66) { if (this.pol_du[0].length > 14) { if (this.pol_du[0][13] != '') { pol_ej = this.pol_du[0][13]; pol_df = this.pol_du[0][14] ? this.pol_du[0][14] : 220; pol_de = this.pol_du[0][15] ? this.pol_du[0][15] : 900; if (this.pol_du[0].length > 16) pol_el = this.pol_du[0][17]; } } } if (type == 0) { pol_eN = this.pol_du[0][2].lastIndexOf(','); pol_eK = this.pol_du[0][2].substr(pol_eN + 1); pol_ek = pol_n(pol_eK, pol_el, true); pol_bd = this.pol_du[0][2].split(","); } else if (type == 1) { pol_eN = this.pol_du[0][2].lastIndexOf(','); pol_eK = this.pol_du[0][2].substr(pol_eN + 1); pol_ek = pol_n(pol_eK, pol_el, true); pol_bd = this.pol_du[0][2].split(","); } pol_ae(type, pol_ek, pol_ej, pol_eK, pol_ek, pol_df, pol_de); }; var pol_di = true; var pol_dj = true; function pol_ae(type, pol_ek, pol_ej, pol_db, pol_dt, pol_df, pol_de) { var clientHeight = 0; var clientWidth = 0; var pol_bu = 1000; var pol_cX = true; clientHeight = pol_y(); clientWidth = pol_A(); if (document.getElementById("divMove") != null) { pol_bu = parseInt(cpmst_gmobj("divMove").style.width.replace("px", "")); } else if (document.getElementById("global") != null) { pol_bu = parseInt(cpmst_gmobj("global").style.width.replace("px", "")); } else if (document.getElementById("wrapHome") != null) { pol_bu = parseInt(cpmst_gmobj("wrapHome").style.width.replace("px", "")); } if (clientWidth > pol_bu) { if (pol_h(pol_ej, 4).toLowerCase() == '.swf') pol_cX = false; if (clientWidth != cpmst_gmobj("CurrentBrowserWidth").value) { pol_di = true; pol_dj = true; if (parseInt(cpmst_gmobj("CurrentBrowserWidth").value) < pol_bu) pol_cX = true; } if (cpmst_gmobj("divSlideResultLeft").innerHTML == "" && pol_h(pol_ej, 4).toLowerCase() == '.swf') { pol_di = true; pol_cX = true; } if (cpmst_gmobj("divSlideResultRight").innerHTML == "" && pol_h(pol_ej, 4).toLowerCase() == '.swf') { pol_dj = true; pol_cX = true; } var pol_aX = pol_m(pol_db); var pol_em = ""; var pol_ei = (cpmst_Left(pol_ej, 7).toLowerCase() == 'http://') ? pol_ej : pol_bx.concat(pol_ej); var pol_dR = (clientWidth - pol_bu) / 2; if (pol_di) { cpmst_gmobj("divSlideResultLeft").style.left = "0px"; cpmst_gmobj("divSlideResultLeft").style.width = pol_dR + "px"; pol_di = pol_cX; } if (cpmst_gmobj("ShowBackground")) { if (cpmst_gmobj("ShowBackground").value == 1) { cpmst_gmobj("divSlideResultLeft").style.height = clientHeight + "px"; } else { cpmst_gmobj("divSlideResultLeft").style.height = "0px"; } } else { cpmst_gmobj("divSlideResultLeft").style.height = clientHeight + "px"; } if (pol_dj) { cpmst_gmobj("divSlideResultRight").style.width = pol_dR + "px"; cpmst_gmobj("divSlideResultRight").style.left = pol_dR + pol_bu + "px"; pol_dj = pol_cX; } if (cpmst_gmobj("ShowBackground")) { if (cpmst_gmobj("ShowBackground").value == 1) { cpmst_gmobj("divSlideResultRight").style.height = clientHeight + "px"; } else { cpmst_gmobj("divSlideResultRight").style.height = "0px"; } } else { cpmst_gmobj("divSlideResultRight").style.height = clientHeight + "px"; } var br = navigator.appVersion; if (type == 0) { if (pol_di) { pol_di = false; if (pol_h(pol_ej, 4).toLowerCase() == '.swf') { pol_em = pol_em.concat('<div style="position:absolute; right:0px;">').concat('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" border="0" width="').concat(pol_df).concat('" height="').concat(pol_de).concat('">'); pol_em = pol_em.concat('<param name="movie" value="').concat(pol_ei).concat('">'); pol_em = pol_em.concat('<param name="AllowScriptAccess" value="always">'); pol_em = pol_em.concat('<param name="quality" value="High">'); pol_em = pol_em.concat('<param name="wmode" value="transparent">'); pol_em = pol_em.concat('<param name="FlashVars" value="').concat('link=').concat(escape(pol_ek)).concat('&zoneid=').concat(pol_db).concat('&actionTag=').concat(escape(pol_aX)).concat('">'); pol_em = pol_em.concat('<embed src="').concat(pol_ei).concat('" FlashVars="').concat('link=').concat(escape(pol_ek)).concat('&zoneid=').concat(pol_db).concat('&actionTag=').concat(escape(pol_aX)).concat('" pluginspage="http://www.macromedia.com/go/getflashplayer"  play="true" loop="true" wmode="transparent" AllowScriptAccess="always" bgcolor="#ffffff" name="flashtest2" id="flashEmbed2" menu="true"  align="middle" type="application/x-shockwave-flash"  width="').concat(pol_df).concat('" height="').concat(pol_de).concat('">'); pol_em = pol_em.concat('</object>').concat('</div>'); cpmst_gmobj("divSlideResultLeft").innerHTML = pol_em; } else { cpmst_gmobj("divSlideResultLeft").style.backgroundColor = "transparent"; cpmst_gmobj("divSlideResultLeft").style.backgroundImage = "url('" + pol_ei + "')"; cpmst_gmobj("divSlideResultLeft").style.width = pol_dR + "px"; cpmst_gmobj("divSlideResultLeft").style.height = clientHeight + "px"; cpmst_gmobj("divSlideResultLeft").style.cursor = "hand"; if (pol_dt.length != 0) { if (br.indexOf("MSIE") != -1) { cpmst_gmobj("divSlideResultLeft").onclick = function() { window.open(pol_ek); }; } else { cpmst_gmobj("divSlideResultLeft").setAttribute("onclick", "javascript:window.open('" + pol_ek + "');"); } } } } } else if (type == 1) { if (pol_dj) { pol_dj = false; if (pol_h(pol_ej, 4).toLowerCase() == '.swf') { pol_em = pol_em.concat('<div style="float:left;">').concat('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" border="0" width="').concat(pol_df).concat('" height="').concat(pol_de).concat('">'); pol_em = pol_em.concat('<param name="movie" value="').concat(pol_ei).concat('">'); pol_em = pol_em.concat('<param name="AllowScriptAccess" value="always">'); pol_em = pol_em.concat('<param name="quality" value="High">'); pol_em = pol_em.concat('<param name="wmode" value="transparent">'); pol_em = pol_em.concat('<param name="FlashVars" value="').concat('link=').concat(escape(pol_ek)).concat('&zoneid=').concat(pol_db).concat('&actionTag=').concat(escape(pol_aX)).concat('">'); pol_em = pol_em.concat('<embed src="').concat(pol_ei).concat('" FlashVars="').concat('link=').concat(escape(pol_ek)).concat('&zoneid=').concat(pol_db).concat('&actionTag=').concat(escape(pol_aX)).concat('" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"  play="true" loop="true" wmode="transparent" AllowScriptAccess="always" devicefont="false" bgcolor="#ffffff" name="flashtest3" id="flashEmbed3" menu="true" align="middle" width="').concat(pol_df).concat('" height="').concat(pol_de).concat('">'); pol_em = pol_em.concat('</object>').concat('</div>'); cpmst_gmobj("divSlideResultRight").innerHTML = pol_em; } else { cpmst_gmobj("divSlideResultRight").style.width = pol_dR + "px"; cpmst_gmobj("divSlideResultRight").style.height = clientHeight + "px"; cpmst_gmobj("divSlideResultRight").style.backgroundColor = "transparent"; cpmst_gmobj("divSlideResultRight").style.backgroundImage = "url('" + pol_ei + "')"; cpmst_gmobj("divSlideResultRight").style.cursor = "hand"; if (pol_dt.length != 0) { if (br.indexOf("MSIE") != -1) { cpmst_gmobj("divSlideResultRight").onclick = function() { window.open(pol_ek); }; } else { cpmst_gmobj("divSlideResultRight").setAttribute("onclick", "javascript:window.open('" + pol_ek + "');"); } } } } } } else { cpmst_gmobj("divSlideResultLeft").innerHTML = ""; cpmst_gmobj("divSlideResultRight").innerHTML = ""; cpmst_gmobj("divSlideResultRight").style.backgroundImage = ""; cpmst_gmobj("divSlideResultLeft").style.backgroundImage = ""; } cpmst_gmobj("CurrentBrowserWidth").value = clientWidth; if (type == 0) { a = setTimeout('pol_ae("' + type + '","' + pol_ek + '","' + pol_ej + '","' + pol_db + '","' + pol_dt + '","' + pol_df + '","' + pol_de + '")', 100); } else if (type == 1) { b = setTimeout('pol_ae("' + type + '","' + pol_ek + '","' + pol_ej + '","' + pol_db + '","' + pol_dt + '","' + pol_df + '","' + pol_de + '")', 100); } }; var pol_bj; cpmst_adlistshow.prototype.pol_bT = function() { document.write('<table align=center ', (this.pol_ds > 0) ? 'width='.concat(this.pol_ds) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.pol_co(this.pol_du, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_co = function(pol_dJ) { if (pol_dJ.length <= 0) return; if (cpmst_gmobj("ShowBackground")) cpmst_gmobj("ShowBackground").value = 0; var pol_ds = (this.pol_ds < pol_dJ[this.pol_cw][3] && this.pol_ds > 0) ? this.pol_ds : pol_dJ[this.pol_cw][3]; var pol_dr = (this.pol_dr < pol_dJ[this.pol_cw][4] && this.pol_dr > 0) ? this.pol_dr : pol_dJ[this.pol_cw][4]; var pol_db = ''.concat(this.pol_dB); var pol_cB = this.pol_cz; document.write('<tr><td>'); document.write('<DIV id="', pol_db, '_position" style="position:relative;overflow:hidden;width:'.concat(pol_ds), 'px;height:'.concat(pol_dr), 'px;"></DIV>'); document.write('<DIV id="', pol_db, '" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:0px;width:'.concat(pol_ds), 'px;height:'.concat(pol_dr), 'px;">'); document.write('</DIV>'); document.write('<input type="hidden" id="', pol_db, '_direction" value="', this.direction, '">'); document.write('<input type="hidden" id="', pol_db, '_status" value="0">'); document.write('</td></tr>'); var pol_aY = this; setTimeout(function() { pol_aY.pol_cp(pol_dJ) }, 300); }; cpmst_adlistshow.prototype.pol_cp = function(pol_dJ) { if (pol_dJ.length <= 0) return; var pol_ds = (this.pol_ds < pol_dJ[this.pol_cw][3] && this.pol_ds > 0) ? this.pol_ds : pol_dJ[this.pol_cw][3]; var pol_dr = (this.pol_dr < pol_dJ[this.pol_cw][4] && this.pol_dr > 0) ? this.pol_dr : pol_dJ[this.pol_cw][4]; var pol_db = ''.concat(this.pol_dB); var pol_cB = this.pol_cz; var pol_em = ''; if (pol_dJ[this.pol_cw][3] == 1000 && pol_dJ[this.pol_cw][4] == 400) { pol_em = pol_em.concat('<DIV id="').concat(pol_db).concat('_child" style="position:absolute;top:-75px;left:-510px;width:').concat(pol_dJ[this.pol_cw][3]).concat('px;height:').concat(pol_dJ[this.pol_cw][4]).concat('px;">'); } else { pol_em = pol_em.concat('<DIV id="').concat(pol_db).concat('_child" style="overflow:hidden;position:absolute;top:0px;left:0px;width:').concat(pol_dJ[this.pol_cw][3]).concat('px;height:').concat(pol_dJ[this.pol_cw][4]).concat('px;">'); } pol_em = pol_em.concat(pol_o(pol_dJ[this.pol_cw], this.pol_ds, this.pol_dr, false, pol_db)); pol_em = pol_em.concat('</DIV>'); cpmst_gmobj(pol_db).innerHTML = pol_em; cpmst_stayfloatdivExpandBackground(pol_db, true); if (this.pol_ee && pol_dJ.length > 1) setTimeout(function() { pol_r(pol_dJ, 0, pol_db, pol_cB, pol_ds, pol_dr, 1) }, pol_cB); }; function pol_r(pol_dJ, index, pol_bh, pol_cB, pol_ds, pol_dr, type) { if (typeof (type) == 'undefined') type = 1; if (cpmst_gmobj(pol_bh + '_status').value == '0') { if (index == pol_dJ.length - 1) { index = 0; } else { index++; } if (type == 1) { var pol_em = ''; if (pol_dJ[index][3] == 1000 && pol_dJ[index][4] == 400) { pol_em = pol_em.concat('<DIV id="').concat(pol_bh).concat('_child" style="position:absolute;top:-75px;left:-510px;width:').concat(pol_dJ[index][3]).concat('px;height:').concat(pol_dJ[index][4]).concat('px;">'); } else { pol_em = pol_em.concat('<DIV id="').concat(pol_bh).concat('_child" style="overflow:hidden;position:absolute;top:0px;left:0px;width:').concat(pol_dJ[index][3]).concat('px;height:').concat(pol_dJ[index][4]).concat('px;">'); } pol_em = pol_em.concat(pol_o(pol_dJ[index], pol_ds, pol_dr, false, pol_bh)); pol_em = pol_em.concat('</DIV>'); cpmst_gmobj(pol_bh).innerHTML = pol_em; clearTimeout(pol_bj); cpmst_stayfloatdivExpandBackground(pol_bh, true); } } setTimeout(function() { pol_r(pol_dJ, index, pol_bh, pol_cB, pol_ds, pol_dr, type) }, pol_cB); }; function cpmst_stayfloatdivExpandBackground(id, pol_cN) { var pol_dq = 0; if (document.getElementById(id + '_child') != null) pol_dq = parseInt(cpmst_gmobj(id + '_child').offsetWidth); if (id == 'LargeLogo1' && pol_dq != 1000) { pol_T(id, pol_cN, 1); pol_bj = setTimeout(function() { cpmst_stayfloatdivExpandBackground(id, false) }, 100); return; } var pol_cQ = true; if (cpmst_gmobj(id + '_direction')) { direction = cpmst_gmobj(id + '_direction').value; } else { direction = 0; } if (cpmst_gmobj(id) && cpmst_gmobj(id + '_position')) { var pol_dv = 0; if (typeof (window.innerWidth) == 'number') { pol_dv = window.innerWidth; pol_dv = (pol_dv - 1017) / 2; } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { pol_dv = document.documentElement.clientWidth; pol_dv = (pol_dv - 1002) / 2; } var pol_aI = pol_K(cpmst_gmobj(id + '_position'))[1]; var pol_aH = pol_K(cpmst_gmobj(id + '_position'))[0]; var pol_aJ = parseInt(cpmst_gmobj(id + '_position').offsetWidth); var pol_aG = parseInt(cpmst_gmobj(id + '_position').offsetHeight); var pol_ax = parseInt(cpmst_gmobj(id).offsetWidth); var pol_aw = parseInt(cpmst_gmobj(id).offsetHeight); if (pol_aw > pol_aG) { cpmst_gmobj(id).style.left = pol_dv + 'px'; cpmst_gmobj(id).style.top = pol_aI - 75 + 'px'; cpmst_gmobj(id + '_child').style.left = "0px"; cpmst_gmobj(id + '_child').style.top = "0px"; } else { cpmst_gmobj(id).style.left = pol_aH - pol_ax + pol_aJ + 'px'; cpmst_gmobj(id).style.top = pol_aI + 'px'; } } pol_bj = setTimeout(function() { cpmst_stayfloatdivExpandBackground(id, false) }, 100); }; function cpmst_expandselfbannerfull(pol_bh, pol_ds, pol_dr) { if (cpmst_gmobj("ShowBackground")) { cpmst_gmobj("ShowBackground").value = 1; cpmst_gmobj("divSlideResultLeft").style.height = pol_y() + "px"; cpmst_gmobj("divSlideResultRight").style.height = pol_y() + "px"; } cpmst_gmobj(pol_bh).style.zIndex = "99999"; cpmst_gmobj(pol_bh + '_status').value = 1; if (cpmst_gmobj(pol_bh + '_position')) { cpmst_gmobj(pol_bh).style.height = pol_dr + 'px'; cpmst_gmobj(pol_bh).style.width = pol_ds + 'px'; var pol_dv = 0; var pol_aI = pol_K(cpmst_gmobj(pol_bh + '_position'))[1]; if (typeof (window.innerWidth) == 'number') { pol_dv = window.innerWidth; } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { pol_dv = document.documentElement.clientWidth; } pol_dv = (pol_dv - 1018) / 2; cpmst_gmobj(pol_bh).style.left = pol_dv + "px"; cpmst_gmobj(pol_bh + "_child").style.left = "0px"; return; } }; function cpmst_collapselfbannerfull(pol_bh, pol_ds, pol_dr) { cpmst_gmobj(pol_bh).style.zIndex = "100"; cpmst_gmobj(pol_bh + '_status').value = 0; cpmst_gmobj(pol_bh).style.width = pol_ds + "px"; cpmst_gmobj(pol_bh).style.height = pol_dr + "px"; var pol_aI = pol_K(cpmst_gmobj(pol_bh + '_position'))[1]; var pol_aH = pol_K(cpmst_gmobj(pol_bh + '_position'))[0]; cpmst_gmobj(pol_bh + "_child").style.top = "-75px"; cpmst_gmobj(pol_bh + "_child").style.left = "-510px"; cpmst_gmobj(pol_bh).style.left = pol_aH + "px"; cpmst_gmobj(pol_bh).style.top = pol_aI + "px"; if (cpmst_gmobj("ShowBackground")) { cpmst_gmobj("ShowBackground").value = 0; cpmst_gmobj("divSlideResultLeft").style.height = "0px"; cpmst_gmobj("divSlideResultRight").style.height = "0px"; } }; cpmst_adlistshow.prototype.pol_bW = function(pol_dJ) { document.write('<table align=center ', (this.pol_ds > 0) ? 'width='.concat(this.pol_ds) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.pol_cr(this.pol_du, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_cr = function(pol_dJ) { if (pol_dJ.length <= 0) return; var pol_ei = (cpmst_Left(pol_dJ[this.pol_cw], 7).toLowerCase() == 'http://') ? pol_dJ[this.pol_cw] : pol_bx.concat(pol_dJ[this.pol_cw]); var pol_ds = (this.pol_ds < pol_dJ[this.pol_cw][3] && this.pol_ds > 0) ? this.pol_ds : pol_dJ[this.pol_cw][3]; var pol_dr = (this.pol_dr < pol_dJ[this.pol_cw][4] && this.pol_dr > 0) ? this.pol_dr : pol_dJ[this.pol_cw][4]; var pol_df = (pol_ds < pol_dJ[3] && pol_ds > 0 && pol_bs) ? pol_ds : pol_dJ[3]; var pol_de = (pol_dr < pol_dJ[4] && pol_dr > 0 && pol_bs) ? pol_dr : pol_dJ[4]; var pol_aX = pol_m(pol_dJ[2].substring(pol_dJ[2].lastIndexOf(',') + 1)); var pol_db = ''.concat(this.pol_dB); var pol_cB = this.pol_cz; var pol_em = ''; document.write('<tr><td>'); document.write('<DIV id="', pol_db, '" style="position:absolute;overflow:hidden;width:207px;height:14px;z-index:10001;">'); pol_em = pol_em.concat('<object id="SpecialFlashBanner" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" border="0" width="450" height="450">'); pol_em = pol_em.concat('<param name="movie" value="').concat(pol_dJ[this.pol_cw]).concat('">'); pol_em = pol_em.concat('<param name="AllowScriptAccess" value="always">'); pol_em = pol_em.concat('<param name="quality" value="High">'); pol_em = pol_em.concat('<param name="wmode" value="transparent">'); pol_em = pol_em.concat('<param name="FlashVars" value="').concat('zoneid=').concat(pol_db).concat('&actionTag=').concat(escape(pol_aX)).concat('">'); pol_em = pol_em.concat('<embed src="').concat(pol_dJ[this.pol_cw]).concat('" FlashVars="').concat('zoneid=').concat(pol_db).concat('&actionTag=').concat(escape(pol_aX)).concat('" pluginspage="http://www.macromedia.com/go/getflashplayer"  play="true" loop="true" wmode="transparent" AllowScriptAccess="always" wmode="transparent" devicefont="false" bgcolor="#ffffff" id="flashEmbed" menu="true" type="application/x-shockwave-flash" name="SpecialFlashBanner" align="middle" width="350" height="350">'); pol_em = pol_em.concat('</object>'); document.write(pol_em); document.write('</DIV>'); document.write('<input type="hidden" id="', pol_db, '_status" value="0">'); document.write('</td></tr>'); window.onresize = function() { pol_aO(); }; window.onload = function() { pol_aO(); } }; function pol_i() { var pol_dY = window.innerWidth != null ? window.innerWidth : document.body != null ? document.body.clientWidth : null; var pol_cP = pol_I("SpecialFlashBanner"); pol_cP.pol_aP("/:pagewidth", pol_dY); }; function pol_I(pol_dw) { if (window.document[pol_dw]) { return window.document[pol_dw]; } if (navigator.appName.indexOf("Microsoft Internet") == -1) { if (document.embeds && document.embeds[pol_dw]) return document.embeds[pol_dw]; } else { return document.getElementById(pol_dw); } }; var pol_dh = false; function cpmst_showInnerPopupBanner(pol_eL, pol_ek, pol_ds, pol_dr, type) { if (typeof (type) == 'undefined') type = 0; if (!pol_dh) { var pol_dA = pol_A(); var pol_dy = pol_y(); var pol_dz = pol_f(); var pol_cE = document.createElement('div'); pol_cE.setAttribute('id', 'hideshow'); pol_cE.style.visibility = "hidden"; pol_cE.style.position = "absolute"; pol_cE.style.width = pol_dA + "px"; pol_cE.style.height = pol_dz + "px"; pol_cE.style.top = "0px"; pol_cE.style.left = "0px"; pol_cE.style.zIndex = "1000"; pol_cE.style.overflow = "hidden"; document.body.appendChild(pol_cE); var pol_eh = ""; pol_eh = pol_eh.concat('<IFRAME MARGINWIDTH="0" MARGINHEIGHT="0" HSPACE="0" VSPACE="0" FRAMEBORDER="0" SCROLLING="no" '); pol_eh = pol_eh.concat(' WIDTH="').concat(pol_ds).concat('" HEIGHT="').concat(pol_dr).concat('" '); pol_eh = pol_eh.concat(' SRC="' + pol_ek + '"></IFRAME>'); var pol_em = ""; pol_em = pol_em.concat('<div id="fade" style="background-color:#000000; overflow:hidden; position: fixed!Important; position:absolute; width:').concat('100%').concat('; filter:alpha(opacity=80); opacity:.80; top:0px; left:0px; z-index:1001; height:').concat(pol_dz).concat("px").concat('" onclick="javascript:cpmst_hideDivInnerPopup(').concat(pol_eL).concat(')"').concat('>').concat('</div>'); pol_em = pol_em.concat('<div id="imgcontent" style="background-color:#DDDDDD;').concat(type == 0 ? 'padding:8px; border: 5px solid #ffffff;' : '').concat('position: fixed!Important; position:absolute; z-index:1002;').concat('width:').concat(pol_ds).concat('px;').concat('">'); pol_em = pol_em.concat('<div style="z-index:100;">').concat(pol_eh).concat('</div>'); pol_em = pol_em.concat('</div>'); pol_em = pol_em.concat('<div id="imgclose" style="').concat(type == 0 ? '' : 'display:none;').concat('background-image:url(http://ngoisao.net/images/icon_close.png); background-repeat: no-repeat; width:28px; height:31px; position: fixed!Important; position:absolute;z-index:1003;cursor:hand;"').concat(' onclick="javascript:cpmst_hideDivInnerPopup(').concat(pol_eL).concat(')"').concat('>').concat('</div>'); cpmst_gmobj("hideshow").innerHTML = pol_em; var pol_eA; var pol_dm; if (type == 0) { if (cpmst_gmobj("imgcontent").style.position == "absolute") { pol_eA = ((pol_dy / 2) - (pol_dr / 2) + cpmst_scrollTop()) > cpmst_scrollTop() + 15 ? ((pol_dy / 2) - (pol_dr / 2) + cpmst_scrollTop()) : cpmst_scrollTop() + 15; pol_dm = ((pol_dA / 2) - (pol_ds / 2) + pol_O()) > 0 ? ((pol_dA / 2) - (pol_ds / 2) + pol_O()) : 10; } else { pol_eA = ((pol_dy / 2) - (pol_dr / 2)) > 15 ? ((pol_dy / 2) - (pol_dr / 2)) : 15; pol_dm = ((pol_dA / 2) - (pol_ds / 2)) > 0 ? ((pol_dA / 2) - (pol_ds / 2)) : 10; } } else { if (cpmst_gmobj("imgcontent").style.position == "absolute") { pol_eA = cpmst_scrollTop(); pol_dm = (pol_dA - pol_ds) / 2; } else { pol_eA = 0; pol_dm = (pol_dA - pol_ds) / 2; } } cpmst_gmobj("imgcontent").style.top = "".concat(pol_eA).concat("px"); cpmst_gmobj("imgcontent").style.left = "".concat(pol_dm).concat("px"); cpmst_gmobj("imgclose").style.top = "".concat(pol_eA - 15).concat("px"); cpmst_gmobj("imgclose").style.left = "".concat(pol_dm + 14 + pol_ds).concat("px"); cpmst_showDivInnerPopup(pol_eL); pol_dh = true; } else { cpmst_showDivInnerPopup(pol_eL); } setTimeout('pol_c("' + pol_dA + '","' + pol_dy + '","' + pol_ds + '","' + pol_dr + '","' + type + '")', 100); }; function pol_c(pol_bn, pol_bl, pol_ds, pol_dr, type) { var pol_ds = parseInt(pol_ds); var pol_dr = parseInt(pol_dr); var pol_bn = parseInt(pol_bn); var pol_bl = parseInt(pol_bl); var pol_dA = pol_A(); var pol_dy = pol_y(); var type = parseInt(type); var pol_eA; var pol_dm; if ((pol_dA != pol_bn || pol_dy != pol_bl) && document.getElementById("imgcontent") != null && document.getElementById("imgclose") != null) { if (type == 0) { if (cpmst_gmobj("imgcontent").style.position == "absolute") { pol_eA = ((pol_dy / 2) - (pol_dr / 2) + cpmst_scrollTop()) > cpmst_scrollTop() + 15 ? ((pol_dy / 2) - (pol_dr / 2) + cpmst_scrollTop()) : cpmst_scrollTop() + 15; pol_dm = ((pol_dA / 2) - (pol_ds / 2) + pol_O()) > 0 ? ((pol_dA / 2) - (pol_ds / 2) + pol_O()) : 10; } else { pol_eA = ((pol_dy / 2) - (pol_dr / 2)) > 15 ? ((pol_dy / 2) - (pol_dr / 2)) : 15; pol_dm = ((pol_dA / 2) - (pol_ds / 2)) > 0 ? ((pol_dA / 2) - (pol_ds / 2)) : 10; } } else { if (cpmst_gmobj("imgcontent").style.position == "absolute") { pol_eA = cpmst_scrollTop(); pol_dm = (pol_dA - pol_ds) / 2; } else { pol_eA = 0; pol_dm = (pol_dA - pol_ds) / 2; } } cpmst_gmobj("imgcontent").style.top = "".concat(pol_eA).concat("px"); cpmst_gmobj("imgcontent").style.left = "".concat(pol_dm).concat("px"); cpmst_gmobj("imgclose").style.top = "".concat(pol_eA - 15).concat("px"); cpmst_gmobj("imgclose").style.left = "".concat(pol_dm + 14 + pol_ds).concat("px"); } if (document.getElementById("imgcontent") != null && document.getElementById("imgclose") != null) setTimeout('pol_c("' + pol_dA + '","' + pol_dy + '","' + pol_ds + '","' + pol_dr + '","' + type + '")', 100); }; function cpmst_showDivInnerPopup(pol_eL) { cpmst_gmobj('hideshow').style.visibility = 'visible'; }; function cpmst_hideDivInnerPopup(pol_eL) { cpmst_gmobj('hideshow').style.visibility = 'hidden'; var pol_dS = cpmst_gmobj("hideshow"); document.body.removeChild(pol_dS); pol_dh = false; }; cpmst_adlistshow.prototype.pol_bE = function() { document.write('<table align=center ', (this.pol_ds > 0) ? 'width='.concat(this.pol_ds) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.pol_bZ(this.pol_du, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_bZ = function(pol_dJ) { if (pol_dJ.length <= 0) return; var pol_ds = (this.pol_ds < pol_dJ[this.pol_cw][3] && this.pol_ds > 0) ? this.pol_ds : pol_dJ[this.pol_cw][3]; var pol_dr = (this.pol_dr < pol_dJ[this.pol_cw][4] && this.pol_dr > 0) ? this.pol_dr : pol_dJ[this.pol_cw][4]; var pol_db = ''.concat(this.pol_dB); var pol_cB = this.pol_cz; document.write('<tr><td>'); document.write('<DIV id="', pol_db, '_position" style="position:relative;overflow:hidden;width:'.concat(pol_ds), 'px;height:'.concat(pol_dr), 'px;"></DIV>'); document.write('<DIV id="', pol_db, '" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:0px;width:'.concat(pol_ds), 'px;height:'.concat(pol_dr), 'px;">'); document.write('</DIV>'); document.write('<input type="hidden" id="', pol_db, '_direction" value="', this.direction, '">'); document.write('<input type="hidden" id="', pol_db, '_status" value="0">'); document.write('</td></tr>'); var pol_aY = this; setTimeout(function() { pol_aY.pol_ca(pol_dJ) }, 500); }; cpmst_adlistshow.prototype.pol_ca = function(pol_dJ) { var pol_aY = this; if (pol_H() == 1 || pol_H() == 2 || pol_H() == 3 || pol_H() == 4) { if (typeof (FinishPage) != 'undefined') if (FinishPage == 0) { setTimeout(function() { pol_aY.pol_ca(pol_dJ) }, 500); return; } } if (pol_dJ.length <= 0) return; var pol_ds = (this.pol_ds < pol_dJ[this.pol_cw][3] && this.pol_ds > 0) ? this.pol_ds : pol_dJ[this.pol_cw][3]; var pol_dr = (this.pol_dr < pol_dJ[this.pol_cw][4] && this.pol_dr > 0) ? this.pol_dr : pol_dJ[this.pol_cw][4]; var pol_db = ''.concat(this.pol_dB); var pol_cB = this.pol_cz; var pol_em = ''; if (pol_dJ[this.pol_cw][3] == 1440 && pol_dJ[this.pol_cw][4] == 900) { if (pol_db == 'VBannerShared') { pol_em = pol_em.concat('<DIV id="').concat(pol_db).concat('_child" style="position:absolute;top:-162px;left:-962px;width:').concat(pol_dJ[this.pol_cw][3]).concat('px;height:').concat(pol_dJ[this.pol_cw][4]).concat('px;">'); } else if (pol_db == 'LargeLogo1') { pol_em = pol_em.concat('<DIV id="').concat(pol_db).concat('_child" style="position:absolute;top:-258px;left:-720px;width:').concat(pol_dJ[this.pol_cw][3]).concat('px;height:').concat(pol_dJ[this.pol_cw][4]).concat('px;">'); } } else { pol_em = pol_em.concat('<DIV id="').concat(pol_db).concat('_child" style="overflow:hidden;position:absolute;top:0px;left:0px;width:').concat(pol_dJ[this.pol_cw][3]).concat('px;height:').concat(pol_dJ[this.pol_cw][4]).concat('px;">'); } pol_em = pol_em.concat(pol_o(pol_dJ[this.pol_cw], this.pol_ds, this.pol_dr, false, pol_db)); pol_em = pol_em.concat('</DIV>'); cpmst_gmobj(pol_db).innerHTML = pol_em; pol_U(pol_db, pol_dJ[this.pol_cw][3], true); if (this.pol_ee && pol_dJ.length > 1) setTimeout(function() { pol_s(pol_dJ, 0, pol_db, pol_cB, pol_ds, pol_dr, 1) }, pol_cB); }; function pol_s(pol_dJ, index, pol_bh, pol_cB, pol_ds, pol_dr, type) { if (typeof (type) == 'undefined') type = 1; if (cpmst_gmobj(pol_bh + '_status').value == '0') { if (index == pol_dJ.length - 1) { index = 0; } else { index++; } if (type == 1) { var pol_em = ''; if (pol_dJ[index][3] == 1440 && pol_dJ[index][4] == 900) { if (pol_bh == 'VBannerShared') { pol_em = pol_em.concat('<DIV id="').concat(pol_bh).concat('_child" style="position:absolute;top:-162px;left:-962px;width:').concat(pol_dJ[index][3]).concat('px;height:').concat(pol_dJ[index][4]).concat('px;">'); } else if (pol_bh == 'LargeLogo1') { pol_em = pol_em.concat('<DIV id="').concat(pol_bh).concat('_child" style="position:absolute;top:-258px;left:-720px;width:').concat(pol_dJ[index][3]).concat('px;height:').concat(pol_dJ[index][4]).concat('px;">'); } } else { pol_em = pol_em.concat('<DIV id="').concat(pol_bh).concat('_child" style="overflow:hidden;position:absolute;top:0px;left:0px;width:').concat(pol_dJ[index][3]).concat('px;height:').concat(pol_dJ[index][4]).concat('px;">'); } pol_em = pol_em.concat(pol_o(pol_dJ[index], pol_ds, pol_dr, false, pol_bh)); pol_em = pol_em.concat('</DIV>'); cpmst_gmobj(pol_bh).innerHTML = pol_em; pol_W(pol_bh, pol_dJ[index][3]); } } setTimeout(function() { pol_s(pol_dJ, index, pol_bh, pol_cB, pol_ds, pol_dr, type) }, pol_cB); }; function pol_W(id, pol_dq) { pol_F(id); }; function pol_U(id, pol_dq, pol_cN) { if (document.getElementById(id + '_child') != null) pol_dq = parseInt(cpmst_gmobj(id + '_child').offsetWidth); if ((id == 'VBannerShared' || id == 'LargeLogo1') && pol_dq != 1440) { pol_T(id, pol_cN, 1); setTimeout(function() { pol_U(id, pol_dq, false) }, 100); return; } var pol_cQ = true; if (cpmst_gmobj(id + '_direction')) { direction = cpmst_gmobj(id + '_direction').value; } else { direction = 0; } if (cpmst_gmobj(id) && cpmst_gmobj(id + '_position')) { var pol_dv = 0; pol_dv = pol_A(); pol_dv = (pol_dq - pol_dv + 22) / 2; var pol_aI = pol_K(cpmst_gmobj(id + '_position'))[1]; var pol_aH = pol_K(cpmst_gmobj(id + '_position'))[0]; var pol_aJ = parseInt(cpmst_gmobj(id + '_position').offsetWidth); var pol_aG = parseInt(cpmst_gmobj(id + '_position').offsetHeight); var pol_ax = parseInt(cpmst_gmobj(id).offsetWidth); var pol_aw = parseInt(cpmst_gmobj(id).offsetHeight); var pol_aK = pol_aI - 258; if (pol_aw > pol_aG && cpmst_gmobj(id + '_status').value == 1) { cpmst_gmobj(id).style.left = -1 * pol_dv + 'px'; cpmst_gmobj(id).style.top = '0px'; cpmst_gmobj(id + '_child').style.left = "20px"; cpmst_gmobj(id + '_child').style.top = pol_aK + "px"; } else { cpmst_gmobj(id).style.left = pol_aH - pol_ax + pol_aJ + 'px'; cpmst_gmobj(id).style.top = pol_aI + 'px'; } } pol_cu = setTimeout(function() { pol_U(id, pol_dq, false) }, 100); }; function cpmst_expandfullscreen(pol_bh, pol_ds, pol_dr) { cpmst_gmobj(pol_bh).style.zIndex = "99999"; cpmst_gmobj(pol_bh + '_status').value = 1; if (cpmst_gmobj(pol_bh + '_position')) { var pol_dv = 0; var pol_aI = pol_K(cpmst_gmobj(pol_bh + '_position'))[1]; var pol_aK = pol_aI - 258; cpmst_gmobj(pol_bh).style.height = pol_dr + 'px'; cpmst_gmobj(pol_bh).style.width = pol_ds + 'px'; pol_dv = pol_A(); pol_dv = (pol_ds - pol_dv + 22) / 2; cpmst_gmobj(pol_bh).style.left = -1 * pol_dv + "px"; cpmst_gmobj(pol_bh).style.top = "0px"; cpmst_gmobj(pol_bh + "_child").style.left = "20px"; cpmst_gmobj(pol_bh + "_child").style.top = pol_aK + "px"; return; } }; function cpmst_collapfullscreen(pol_bh, pol_ds, pol_dr) { cpmst_gmobj(pol_bh).style.width = pol_ds + "px"; cpmst_gmobj(pol_bh).style.height = pol_dr + "px"; var pol_aI = pol_K(cpmst_gmobj(pol_bh + '_position'))[1]; var pol_aH = pol_K(cpmst_gmobj(pol_bh + '_position'))[0]; if (pol_bh == 'LEADER_BOARD') { cpmst_gmobj(pol_bh + "_child").style.top = "-4px"; cpmst_gmobj(pol_bh + "_child").style.left = "-472px"; } else if (pol_bh == 'VBannerShared') { cpmst_gmobj(pol_bh + "_child").style.top = "-162px"; cpmst_gmobj(pol_bh + "_child").style.left = "-962px"; } else if (pol_bh == 'LargeLogo1') { cpmst_gmobj(pol_bh + "_child").style.top = "-258px"; cpmst_gmobj(pol_bh + "_child").style.left = "-720px"; } cpmst_gmobj(pol_bh).style.left = pol_aH + "px"; cpmst_gmobj(pol_bh).style.top = pol_aI + "px"; cpmst_gmobj(pol_bh + "_status").value = 0; }; function cpmst_expandextendbanner(pol_bh) { if (document.getElementById(pol_bh + "_status") != null) { cpmst_gmobj(pol_bh + "_status").value = 1; } }; function cpmst_collapextendbanner(pol_bh) { if (document.getElementById(pol_bh + "_status") != null) { cpmst_gmobj(pol_bh + "_status").value = 0; } }; cpmst_adlistshow.prototype.pol_bK = function() { this.pol_cd(this.pol_du, 0); pol_u(this.pol_dB, this.pol_ds); }; cpmst_adlistshow.prototype.pol_cd = function(pol_dJ) { if (pol_dJ.length <= 0) return; var pol_ds = (this.pol_ds < pol_dJ[0][3] && this.pol_ds > 0) ? this.pol_ds : pol_dJ[0][3]; var pol_dr = (this.pol_dr < pol_dJ[0][4] && this.pol_dr > 0) ? this.pol_dr : pol_dJ[0][4]; var pol_db = ''.concat(this.pol_dB); var pol_cB = this.pol_cz; document.write('<DIV id="', pol_db, '_position" style="position:absolute; right:0px; top:0px; overflow:hidden;width:'.concat(pol_ds), 'px;height:'.concat(pol_dr), 'px;"></DIV>'); document.write('<DIV id="', pol_db, '" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:0px;width:'.concat(pol_ds), 'px;height:'.concat(pol_dr), 'px;">'); document.write('</DIV>'); document.write('<input type="hidden" id="', pol_db, '_direction" value="', this.direction, '">'); document.write('<input type="hidden" id="', pol_db, '_status" value="0">'); var pol_aY = this; if (window.addEventListener) window.addEventListener("load", function() { pol_aY.pol_ch(pol_dJ) }, false); else if (window.attachEvent) window.attachEvent("onload", function() { pol_aY.pol_ch(pol_dJ) }); else if (document.getElementById) setTimeout(function() { pol_aY.pol_ch(pol_dJ) }, 500); }; function pol_u(pol_bh, pol_ds) { var pol_bu = 1000; if (document.getElementById("divMove") != null) { pol_bu = parseInt(cpmst_gmobj("divMove").style.width.replace("px", "")); } else if (document.getElementById("global") != null) { pol_bu = parseInt(cpmst_gmobj("global").style.width.replace("px", "")); } else if (document.getElementById("wrapHome") != null) { pol_bu = parseInt(cpmst_gmobj("wrapHome").style.width.replace("px", "")); } var clientWidth = 0; clientWidth = pol_A(); pol_bu = pol_bu + 2 * pol_ds; if (clientWidth > pol_bu) { cpmst_gmobj(pol_bh).style.display = "block"; } else { cpmst_gmobj(pol_bh).style.display = "none"; } setTimeout(function() { pol_u(pol_bh, pol_ds) }, 100); }; cpmst_adlistshow.prototype.pol_bH = function() { if (this.pol_du.length <= 0) return; if (this.pol_du[0].length <= 0) return; var pol_dQ = Math.random(); var pol_ei; var pol_el; pol_ei = (cpmst_Left(this.pol_du[0][0], 7).toLowerCase() == 'http://') ? this.pol_du[0][0] : pol_bx.concat(this.pol_du[0][0]); pol_el = this.pol_du[0][1]; if (pol_dQ < 0.33) { if (this.pol_du[0].length > 11) { if (this.pol_du[0][10] != '') { pol_ei = (cpmst_Left(this.pol_du[0][10], 7).toLowerCase() == 'http://') ? this.pol_du[0][10] : pol_bx.concat(this.pol_du[0][10]); if (this.pol_du[0].length > 16) pol_el = this.pol_du[0][16]; } } } else if (pol_dQ < 0.66) { if (this.pol_du[0].length > 14) { if (this.pol_du[0][13] != '') { pol_ei = (cpmst_Left(this.pol_du[0][13], 7).toLowerCase() == 'http://') ? this.pol_du[0][13] : pol_bx.concat(this.pol_du[0][13]); if (this.pol_du[0].length > 16) pol_el = this.pol_du[0][17]; } } } document.write('<style type="text/css">'); document.write("body{margin:0px; padding:0px 0px 60px;background:#FFFFFF url('" + pol_ei + "') no-repeat fixed center 0px;}"); document.write(".divFixed {position:absolute; top: expression(0+((e=document.documentElement.scrollTop)?e:document.body.scrollTop)+'px'); left: expression(0+((e=document.documentElement.scrollLeft)?e:document.body.scrollLeft)+'px');} }"); document.write(".divFixed_R {position:absolute; top: expression(0+((e=document.documentElement.scrollTop)?e:document.body.scrollTop)+'px'); right: expression(0+((e=document.documentElement.scrollLeft)?e:document.body.scrollLeft)+'px');} }"); document.write(".divFixedBg_IE {z-index: 5000;cursor:pointer; background:#FFFFFF;opacity:0.4;filter:alpha(opacity = 0);}"); document.write(".divFixedBg_RIE{z-index: 5000;cursor:pointer; background:#FFFFFF;opacity:0.4;filter:alpha(opacity = 0);}"); document.write(".divFixedBg_IE6 {z-index: 5000;cursor:pointer;}"); document.write(".divFixedBg_RIE6{z-index: 5000;cursor:pointer;}"); document.write('</style>'); document.write(' <div id="divResult"></div>'); pol_ah(this.pol_du, pol_el); }; function pol_ah(pol_dJ, pol_er) { if (pol_dJ.length <= 0) return; var pol_eN = pol_dJ[0][2].lastIndexOf(','); var pol_eK = pol_dJ[0][2].substr(pol_eN + 1); var pol_ek = pol_n(pol_eK, pol_er, true); var clientWidth = 0; clientWidth = pol_A(); var clientHeight = 0; clientHeight = pol_y(); if (clientWidth > 1024) { var br = navigator.appVersion; var pol_dR = 0; pol_dR = (clientWidth - 1000) / 2; if (br.match("MSIE")) { pol_dR = (clientWidth - 980) / 2; if (br.match("MSIE 6") || br.match("MSIE 5")) { cpmst_gmobj("divResult").innerHTML = "<div onclick=javascript:window.open('" + pol_ek + "') class='divFixed divFixedBg_IE6' id='divL' style='width:" + pol_dR + "px;height:" + clientHeight + "px;'></div>"; cpmst_gmobj("divResult").innerHTML += "<div onclick=javascript:window.open('" + pol_ek + "') class='divFixed_R divFixedBg_RIE6' id='divR' style='width:" + pol_dR + "px;height:" + clientHeight + "px;'></div>"; } else { cpmst_gmobj("divResult").innerHTML = "<div onclick=javascript:window.open('" + pol_ek + "')  id='divL' style='position: fixed!Important; position:absolute; z-index: 5000;cursor:pointer; background:#FFFFFF;opacity:0.4;filter:alpha(opacity = 0); width:" + pol_dR + "px;height:" + clientHeight + "px;'></div>"; cpmst_gmobj("divResult").innerHTML += "<div onclick=javascript:window.open('" + pol_ek + "') id='divR' style='position: fixed!Important; position:absolute; z-index: 5000;cursor:pointer; background:#FFFFFF;opacity:0.4;filter:alpha(opacity = 0); width:" + pol_dR + "px;height:" + clientHeight + "px;'></div>"; } if (cpmst_gmobj("divL").style.position == 'fixed') { cpmst_gmobj("divL").style.top = "0px"; cpmst_gmobj("divL").style.left = "0px"; } else { cpmst_gmobj("divL").style.top = cpmst_scrollTop() + "px"; cpmst_gmobj("divL").style.left = pol_O() + "px"; } if (cpmst_gmobj("divR").style.position == 'fixed') { cpmst_gmobj("divR").style.top = "0px"; cpmst_gmobj("divR").style.right = "0px"; } else { cpmst_gmobj("divR").style.top = cpmst_scrollTop() + "px"; cpmst_gmobj("divR").style.right = pol_O() + "px"; } } else { pol_dR = (clientWidth - 996) / 2; cpmst_gmobj("divResult").innerHTML = "<div id='divL' onclick=javascript:window.open('" + pol_ek + "') style='position: fixed!Important; position:absolute; float: left; left:0px; top: 0px; cursor:pointer; background-color:transparent; width:" + pol_dR + "px;height:" + clientHeight + "px;'></div>"; cpmst_gmobj("divResult").innerHTML += "<div id='divR' onclick=javascript:window.open('" + pol_ek + "') style='position: fixed!Important; position:absolute; float: right; right:0px; top:0px; cursor:pointer; background-color:transparent; width:" + pol_dR + "px;height:" + clientHeight + "px;'></div>"; } } else { cpmst_gmobj("divResult").innerHTML = ""; } window.onresize = function() { pol_ah(pol_dJ, pol_ek) }; setTimeout(function() { pol_v(); }, 100); }; function pol_v() { var pol_dT = true; if (document.getElementById("divL") != null) { if (cpmst_gmobj("divL").style.position == 'absolute') { cpmst_gmobj("divL").style.top = cpmst_scrollTop() + "px"; cpmst_gmobj("divL").style.left = pol_O() + "px"; pol_dT = false; } } if (document.getElementById("divR") != null) { if (cpmst_gmobj("divR").style.position == 'absolute') { cpmst_gmobj("divR").style.top = cpmst_scrollTop() + "px"; cpmst_gmobj("divR").style.right = pol_O() + "px"; pol_dT = false; } } if (!pol_dT) setTimeout(function() { pol_v(); }, 100); }; cpmst_adlistshow.prototype.pol_bI = function() { if (this.pol_du.length <= 0) return; var pol_ds = (this.pol_ds < this.pol_du[this.pol_cw][3] && this.pol_ds > 0) ? this.pol_ds : this.pol_du[this.pol_cw][3]; var pol_dr = (this.pol_dr < this.pol_du[this.pol_cw][4] && this.pol_dr > 0) ? this.pol_dr : this.pol_du[this.pol_cw][4]; var pol_db = ''.concat(this.pol_dB); document.write('<div id="', pol_db, '" style="bottom:0px; width:', pol_ds, 'px;height:', pol_dr, 'px;z-index:7000;right:0px;position:fixed!Important;position:absolute;top:expression(eval((document.documentElement.scrollTop? document.documentElement.scrollTop : document.body.scrollTop) + (document.documentElement.clientHeight? document.documentElement.clientHeight : document.body.clientHeight)-this.offsetHeight-(parseInt(this.currentStyle.marginTop,10)||0)-(parseInt(this.currentStyle.marginBottom,10)||0))); clip:rect(auto, auto, auto, auto)">'); document.write(pol_o(this.pol_du[this.pol_cw], this.pol_ds, this.pol_dr, false, pol_db)); document.write('</div>'); if (cpmst_gmobj(pol_db).style.position == 'fixed') { cpmst_gmobj(pol_db).style.top = "auto"; cpmst_gmobj(pol_db).style.bottom = "0px"; cpmst_gmobj(pol_db).style.right = "0px"; } }; function cpmst_fixedballonbanner(pol_bh) { if (document.getElementById(pol_bh) != null) { if (cpmst_gmobj(pol_bh).style.position == 'fixed') { cpmst_gmobj(pol_bh).style.top = "auto"; cpmst_gmobj(pol_bh).style.bottom = "0px"; cpmst_gmobj(pol_bh).style.right = "0px"; } } }; function cpmst_collapballonbanner(pol_bh, pol_ds, pol_dr) { cpmst_gmobj(pol_bh).style.zIndex = "7000"; var pol_ao = parseInt(cpmst_gmobj(pol_bh).offsetHeight); var pol_ar = parseInt(cpmst_gmobj(pol_bh).offsetWidth); var pol_aq = (pol_ao - pol_dr) + 'px'; var pol_ea = pol_ar + 'px'; var pol_bi = pol_ao + 'px'; cpmst_gmobj(pol_bh).style.clip = 'rect(' + pol_aq + ',' + pol_ea + ',' + pol_bi + ',0px)'; }; function cpmst_expandballonbanner(pol_bh, pol_ds, pol_dr) { cpmst_gmobj(pol_bh).style.zIndex = "99999"; var pol_ao = parseInt(cpmst_gmobj(pol_bh).offsetHeight); var pol_ar = parseInt(cpmst_gmobj(pol_bh).offsetWidth); var pol_aq = (pol_ao - pol_dr) + 'px'; var pol_ea = pol_ar + 'px'; var pol_bi = pol_ao + 'px'; cpmst_gmobj(pol_bh).style.clip = 'rect(' + pol_aq + ',' + pol_ea + ',' + pol_bi + ',0px)'; }; function cpmst_HasShowBalloonBanner(pol_cY, pol_db) { if (!pol_cY) { setTimeout(function() { if (cpmst_gmobj(pol_db)) cpmst_gmobj(pol_db).style.display = "none"; }, 100); } }; function cpmst_scrollbanner(pol_cv, pol_dd, pol_cK) { pol_P(pol_cv, pol_dd, pol_cK); }; var pol_bf; function pol_P(pol_cv, pol_dd, pol_cK) { if (cpmst_gmobj(pol_dd + "_FirstTime").value == "0") { cpmst_gmobj(pol_dd + "_base").style.height = cpmst_gmobj(pol_dd).offsetHeight + "px"; cpmst_gmobj(pol_dd).style.top = cpmst_gmobj(pol_dd + "_position").offsetTop + "px"; clearTimeout(pol_bf); pol_bf = setTimeout(function() { pol_X(pol_dd); }, 500); cpmst_gmobj(pol_dd + "_FirstTime").value = "1"; } if (cpmst_gmobj(pol_dd + "_PositionStatus").style.position == "absolute") return; if (cpmst_gmobj(pol_dd).offsetHeight < pol_y()) { cpmst_gmobj(pol_dd + "_CurValue").value = pol_cv; if (pol_cv < cpmst_gmobj(pol_dd + "_position").offsetTop) { cpmst_gmobj(pol_dd).style.top = cpmst_gmobj(pol_dd + "_position").offsetTop - pol_cv + "px"; return; } if (pol_cv + cpmst_gmobj(pol_dd).offsetHeight < cpmst_gmobj(pol_cK).offsetTop) { cpmst_gmobj(pol_dd).style.top = "0px"; return; } if ((pol_cv + cpmst_gmobj(pol_dd).offsetHeight) > cpmst_gmobj(pol_cK).offsetTop) { cpmst_gmobj(pol_dd).style.top = cpmst_gmobj(pol_cK).offsetTop - cpmst_gmobj(pol_dd).offsetHeight - pol_cv + "px"; return; } return; } if (pol_cv > parseInt(cpmst_gmobj(pol_dd + "_CurValue").value)) { cpmst_gmobj(pol_dd + "_CurValue").value = pol_cv; if (pol_cv + pol_y() - cpmst_gmobj(pol_dd).offsetHeight - cpmst_gmobj(pol_dd + "_position").offsetTop < 0) { cpmst_gmobj(pol_dd).style.top = cpmst_gmobj(pol_dd + "_position").offsetTop - pol_cv + "px"; return; } if (pol_cv < cpmst_gmobj(pol_cK).offsetTop - pol_y()) { cpmst_gmobj(pol_dd).style.top = pol_y() - cpmst_gmobj(pol_dd).offsetHeight + "px"; return; } if (pol_cv > cpmst_gmobj(pol_cK).offsetTop - pol_y()) { cpmst_gmobj(pol_dd).style.top = cpmst_gmobj(pol_cK).offsetTop - cpmst_gmobj(pol_dd).offsetHeight - pol_cv + "px"; return; } return; } if (pol_cv < parseInt(cpmst_gmobj(pol_dd + "_CurValue").value)) { cpmst_gmobj(pol_dd + "_CurValue").value = pol_cv; if (pol_cv < cpmst_gmobj(pol_dd + "_position").offsetTop) { cpmst_gmobj(pol_dd).style.top = cpmst_gmobj(pol_dd + "_position").offsetTop - pol_cv + "px"; return; } if (pol_cv < cpmst_gmobj(pol_cK).offsetTop - cpmst_gmobj(pol_dd).offsetHeight) { cpmst_gmobj(pol_dd).style.top = "0px"; return; } if (pol_cv > cpmst_gmobj(pol_cK).offsetTop - cpmst_gmobj(pol_dd).offsetHeight) { cpmst_gmobj(pol_dd).style.top = cpmst_gmobj(pol_cK).offsetTop - cpmst_gmobj(pol_dd).offsetHeight - pol_cv + "px"; return; } return; } }; cpmst_adlistshow.prototype.pol_bQ = function() { document.write('<table align=center ', (this.pol_ds > 0) ? 'width='.concat(this.pol_ds) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.pol_ck(this.pol_du); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_ck = function(pol_dJ) { if (pol_dJ.length <= 0) return; var pol_ds = this.pol_ds; var pol_dr = this.pol_dr; var pol_dp = 120; var pol_db = ''.concat(this.pol_dB); var pol_cB = this.pol_cz; document.write('<tr><td>'); document.write('<DIV id="', pol_db, '_position" style="position:relative;overflow:hidden;width:'.concat(pol_ds), 'px;height:'.concat(pol_dr), 'px;">'); document.write('<DIV id="', pol_db, '_first_position" style="position:relative;overflow:hidden;width:'.concat(pol_ds), 'px;height:'.concat(pol_dp), 'px;"></DIV>'); document.write('<div style="clear:both;padding-top:3px"></div>'); document.write('<DIV id="', pol_db, '_second_position" style="position:relative;overflow:hidden;width:'.concat(pol_ds), 'px;height:'.concat(pol_dp), 'px;"></DIV>'); document.write('</DIV>'); document.write('<DIV id="', pol_db, '" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:0px;width:'.concat(pol_ds), 'px;height:'.concat(pol_dr), 'px;"></DIV>'); document.write('<DIV id="', pol_db, '_first" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:0px;width:'.concat(pol_ds), 'px;height:'.concat(pol_dp), 'px;"></DIV>'); document.write('<div style="clear:both;padding-top:3px"></div>'); document.write('<DIV id="', pol_db, '_second" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:0px;width:'.concat(pol_ds), 'px;height:'.concat(pol_dp), 'px;"></DIV>'); document.write('<input type="hidden" id="', pol_db, '_direction" value="', this.direction, '">'); document.write('<input type="hidden" id="', pol_db, '_status" value="0">'); document.write('<input type="hidden" id="', pol_db, '_first_direction" value="', this.direction, '">'); document.write('<input type="hidden" id="', pol_db, '_first_status" value="0">'); document.write('<input type="hidden" id="', pol_db, '_second_direction" value="', this.direction, '">'); document.write('<input type="hidden" id="', pol_db, '_second_status" value="0">'); document.write('</td></tr>'); var pol_aY = this; setTimeout(function() { pol_aY.pol_cl(pol_dJ) }, 500); }; cpmst_adlistshow.prototype.pol_cl = function(pol_dJ) { var pol_aY = this; if (pol_H() == 1 || pol_H() == 2 || pol_H() == 3 || pol_H() == 4) { if (typeof (FinishPage) != 'undefined') if (FinishPage == 0) { setTimeout(function() { pol_aY.pol_cl(pol_dJ) }, 500); return; } } if (pol_dJ.length <= 0) return; var pol_db = ''.concat(this.pol_dB); var pol_cB = this.pol_cz; var pol_em = ''; var pol_bk = 0; if (pol_dJ[0].length > 7) { if (pol_dJ[0][7] == 1) { pol_af(pol_dJ[0], pol_db); pol_T(pol_db + '_first', true); pol_bk = 1; if (pol_dJ.length > 1) { if (pol_dJ[1].length > 7) { if (pol_dJ[1][7] == 2) { pol_aa(pol_dJ[1], pol_db); pol_T(pol_db + '_second', true); pol_bk = 2; } } } if (pol_bk == 1) { pol_ac(pol_db, "_second", 300, 120); pol_T(pol_db + '_second', true); pol_bk = 2; } } else if (pol_dJ[0][7] == 2) { pol_aa(pol_dJ[0], pol_db); pol_T(pol_db + '_second', true); pol_ac(pol_db, "_first", 300, 120); pol_T(pol_db + '_first', true); pol_bk = 2; } } if (pol_bk == 0) { pol_ad(pol_dJ[0], pol_db); pol_T(pol_db, true); } if (pol_bk > 0) { pol_T(pol_db, false); } else { pol_T(pol_db + '_first', false); pol_T(pol_db + '_second', false); } if (pol_bk == 0 || pol_bk == 1) { if (this.pol_ee && pol_dJ.length > 1) setTimeout(function() { pol_t(pol_dJ, 0, pol_db, pol_cB) }, pol_cB); } else { if (this.pol_ee && pol_dJ.length > 2) setTimeout(function() { pol_t(pol_dJ, 1, pol_db, pol_cB) }, pol_cB); } }; function pol_t(pol_dJ, index, pol_bh, pol_cB) { if (cpmst_gmobj(pol_bh + '_status').value == '0' && cpmst_gmobj(pol_bh + '_first_status').value == '0' && cpmst_gmobj(pol_bh + '_second_status').value == '0') { if (index == pol_dJ.length - 1) { index = 0; } else { index++; } var pol_bk = 0; var pol_em = ''; if (pol_dJ[index].length > 7) { if (pol_dJ[index][7] == 1) { pol_af(pol_dJ[index], pol_bh); pol_F(pol_bh + '_first'); pol_bk = 1; if (pol_dJ.length > index + 1) { if (pol_dJ[index + 1].length > 7) { if (pol_dJ[index + 1][7] == 2) { pol_aa(pol_dJ[index + 1], pol_bh); pol_F(pol_bh + '_second'); pol_bk = 2; index++; } } } if (pol_bk == 1) { pol_ac(pol_bh, "_second", 300, 120); pol_F(pol_bh + '_second'); pol_bk = 2; } } else if (pol_dJ[index][7] == 2) { pol_aa(pol_dJ[index], pol_bh); pol_F(pol_bh + '_second'); pol_ac(pol_bh, "_first", 300, 120); pol_F(pol_bh + '_first'); pol_bk = 2; } } if (pol_bk == 0) { pol_ad(pol_dJ[index], pol_bh); pol_F(pol_bh); } } setTimeout(function() { pol_t(pol_dJ, index, pol_bh, pol_cB) }, pol_cB); }; function pol_af(pol_dJ, pol_db) { var pol_em = ''; cpmst_gmobj(pol_db).style.visibility = 'hidden'; pol_em = '<DIV id="'.concat(pol_db).concat('_first_child" style="overflow:hidden;position:absolute;top:0px;left:0px;width:'.concat(pol_dJ[3]), 'px;height:'.concat(pol_dJ[4]), 'px;">'); pol_em = pol_em.concat(pol_o(pol_dJ, pol_dJ[3], pol_dJ[4], false, pol_db + '_first')); pol_em = pol_em.concat('</DIV>'); cpmst_gmobj(pol_db + '_first').innerHTML = pol_em; cpmst_gmobj(pol_db + '_first').style.visibility = "visible"; }; function pol_aa(pol_dJ, pol_db) { var pol_em = ''; cpmst_gmobj(pol_db).style.visibility = 'hidden'; pol_em = '<DIV id="'.concat(pol_db).concat('_second_child" style="overflow:hidden;position:absolute;top:0px;left:0px;width:'.concat(pol_dJ[3]), 'px;height:'.concat(pol_dJ[4]), 'px;">'); pol_em = pol_em.concat(pol_o(pol_dJ, pol_dJ[3], pol_dJ[4], false, pol_db + '_second')); pol_em = pol_em.concat('</DIV>'); cpmst_gmobj(pol_db + '_second').innerHTML = pol_em; cpmst_gmobj(pol_db + '_second').style.visibility = "visible"; }; function pol_ac(pol_db, pol_dO, pol_dP, pol_dL) { var pol_em = ''; cpmst_gmobj(pol_db).style.visibility = 'hidden'; pol_em = '<DIV id="'.concat(pol_db).concat('_').concat().concat(pol_dO).concat('_child" style="overflow:hidden;position:absolute;top:0px;left:0px;width:').concat(pol_dP).concat('px;height:').concat(pol_dL).concat('px;">'); pol_em = pol_em.concat(pol_j(pol_db, 'lhqc_vne_300x120(1).swf', pol_dP, pol_dL)); pol_em = pol_em.concat('</DIV>'); cpmst_gmobj(pol_db + pol_dO).innerHTML = pol_em; cpmst_gmobj(pol_db + pol_dO).style.visibility = "visible"; }; function pol_ad(pol_dJ, pol_db) { var pol_em = ''; cpmst_gmobj(pol_db + '_second').style.visibility = 'hidden'; cpmst_gmobj(pol_db + '_first').style.visibility = 'hidden'; pol_em = '<DIV id="'.concat(pol_db).concat('_child" style="overflow:hidden;position:absolute;top:0px;left:0px;width:'.concat(pol_dJ[3]), 'px;height:'.concat(pol_dJ[4]), 'px;">'); pol_em = pol_em.concat(pol_o(pol_dJ, pol_dJ[3], pol_dJ[4], false, pol_db)); pol_em = pol_em.concat('</DIV>'); cpmst_gmobj(pol_db).innerHTML = pol_em; cpmst_gmobj(pol_db).style.visibility = "visible"; }; cpmst_adlistshow.prototype.pol_bF = function() { if (this.pol_du.length <= 0) return; var pol_dJ = this.pol_du; var pol_ds = (this.pol_ds < pol_dJ[0][3] && this.pol_ds > 0) ? this.pol_ds : pol_dJ[0][3]; var pol_dr = (this.pol_dr < pol_dJ[0][4] && this.pol_dr > 0) ? this.pol_dr : pol_dJ[0][4]; var pol_db = ''.concat(this.pol_dB); var pol_cB = this.pol_cz; var pol_em = ''; document.write('<div>'); document.write(pol_o(pol_dJ[0], this.pol_ds, this.pol_dr, false, pol_db)); document.write('</DIV>'); }; cpmst_adlistshow.prototype.pol_bD = function(type) { if (this.pol_du.length <= 0) { this.BResult = -1; return; } else { this.BResult = 0; } var pol_ds = (this.pol_ds < this.pol_du[this.pol_cw][3] && this.pol_ds > 0) ? this.pol_ds : this.pol_du[this.pol_cw][3]; var pol_dr = (this.pol_dr < this.pol_du[this.pol_cw][4] && this.pol_dr > 0) ? this.pol_dr : this.pol_du[this.pol_cw][4]; var pol_db = ''.concat(this.pol_dB); var pol_cB = this.pol_cz; var pol_en = ''; var bg = ''; var pol_ey = ''; var pol_cD = document.createElement('div'); pol_cD.setAttribute('id', pol_db + '_show'); pol_cD.style.visibility = "hidden"; pol_cD.style.position = "absolute"; pol_cD.style.zIndex = "9"; pol_cD.style.overflow = "hidden"; if (type == 0) { pol_cD.style.top = pol_J(cpmst_gmobj('poly_video'))[1] + cpmst_gmobj('poly_video').offsetHeight + "px"; pol_cD.style.left = pol_J(cpmst_gmobj('poly_video'))[0] + (cpmst_gmobj('poly_video').offsetWidth - pol_ds) / 2 + "px"; pol_cD.style.width = (pol_ds) + "px"; pol_cD.style.height = (pol_dr) + "px"; } else { pol_cD.style.top = (pol_J(cpmst_gmobj('poly_video'))[1] + 20) + "px"; pol_cD.style.left = pol_J(cpmst_gmobj('poly_video'))[0] - 3 - pol_ds + "px"; bg = '/Library/Common/AdsPlayer/Playlist/bg_video.png'; pol_cD.style.width = (pol_ds + 35) + "px"; pol_cD.style.height = (pol_dr + 39) + "px"; pol_ey = pol_ey.concat('<div style="float:left;padding:0px 32px 0px 56px;">').concat('<img src="/Library/Common/AdsPlayer/Playlist/qc.png" >').concat('</div>'); pol_ey = pol_ey.concat('<div>').concat('<span style="cursor:pointer" onclick="cpmst_collappAdsVideo(\'').concat(pol_db).concat('\')"><img src="/Library/Common/AdsPlayer/Playlist/close.png" border="0"></span>').concat('</div>'); } if (!cpmst_gmobj(pol_db + '_show')) { document.body.appendChild(pol_cD); } pol_en = pol_en.concat('<div style="padding:5px 10px 5px 5px;').concat('width:').concat(pol_ds + 40).concat('px; height:').concat(pol_dr + 60).concat('px;">'); pol_en = pol_en.concat(pol_ey); pol_en = pol_en.concat('</div><div style="position:absolute;top:0px;overflow:hidden;z-index:9999;" id="').concat(pol_db).concat('_showinner">'); pol_en = pol_en.concat(pol_o(this.pol_du[this.pol_cw], pol_ds, pol_dr, false, pol_db)); pol_en = pol_en.concat('</div>'); cpmst_gmobj(pol_db + '_show').innerHTML = pol_en; if (type == 1) { cpmst_gmobj(pol_db + "_show").style.backgroundColor = "transparent"; cpmst_gmobj(pol_db + "_show").style.backgroundImage = "url('" + bg + "')"; } setTimeout(function() { cpmst_collappAdsVideo(pol_db) }, 15000); pol_G(pol_db, type); }; function cpmst_collappAdsVideo(bannerId) { if (cpmst_gmobj(bannerId + '_show')) { cpmst_gmobj(bannerId + '_show').style.visibility = 'hidden'; var pol_dS = cpmst_gmobj(bannerId + '_show'); document.body.removeChild(pol_dS); } }; function pol_G(bannerId, type) { if (cpmst_gmobj(bannerId + '_show') && cpmst_gmobj('poly_video')) { if (type == 0) { cpmst_gmobj(bannerId + '_show').style.top = pol_J(cpmst_gmobj('poly_video'))[1] + (cpmst_gmobj('poly_video').offsetHeight) + "px"; cpmst_gmobj(bannerId + '_show').style.left = pol_J(cpmst_gmobj('poly_video'))[0] + ((cpmst_gmobj('poly_video').offsetWidth) - cpmst_gmobj(bannerId + '_show').offsetWidth) / 2 + "px"; } else { cpmst_gmobj(bannerId + '_show').style.top = (pol_J(cpmst_gmobj('poly_video'))[1] + 15) + "px"; cpmst_gmobj(bannerId + '_show').style.left = pol_J(cpmst_gmobj('poly_video'))[0] - (cpmst_gmobj(bannerId + '_show').offsetWidth) + "px"; if (cpmst_gmobj(bannerId + '_showinner')) { cpmst_gmobj(bannerId + '_showinner').style.top = "25px"; cpmst_gmobj(bannerId + '_showinner').style.left = "16px"; } } cpmst_gmobj(bannerId + '_show').style.visibility = "visible"; setTimeout(function() { pol_G(bannerId, type) }, 100); } }; function cpmst_expandfullpage(pol_eL, pol_ek, pol_eb, pol_ds, pol_dr, pol_eu) { if (cpmst_gmobj(pol_eL + '_status')) cpmst_gmobj(pol_eL + '_status').value = 1; var pol_dA = pol_A(); var pol_aH = (pol_dA / 2) - (pol_ds / 2); var pol_cF = document.createElement('div'); var pol_eu = pol_eu ? pol_eu : 0; pol_cF.setAttribute('id', pol_eL + '_showbanner'); if (pol_eu == 0) pol_cF.style.cssText = "position:fixed !important ; position:absolute"; else pol_cF.style.cssText = "position:absolute"; pol_cF.style.width = pol_ds + "px"; pol_cF.style.height = pol_dr + "px"; pol_cF.style.top = "0px"; pol_cF.style.left = pol_aH + "px"; pol_cF.style.zIndex = "99999"; pol_cF.style.overflow = "hidden"; if (!cpmst_gmobj(pol_eL + '_showbanner')) document.body.appendChild(pol_cF); var br = navigator.appVersion; var pol_ei = pol_ek; var pol_aX = ''; var pol_dd = pol_eL; var pol_em = ""; var pol_el = pol_eb.substring(0, pol_eb.indexOf('&l') + 3) + escape(pol_eb.substring(pol_eb.indexOf('&l') + 3)); pol_em = pol_em.concat('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" border="0" width=').concat(pol_ds).concat(' height=').concat(pol_dr).concat('>'); pol_em = pol_em.concat('<param name="movie" value="').concat(pol_ei).concat('">'); pol_em = pol_em.concat('<param name="AllowScriptAccess" value="always">'); pol_em = pol_em.concat('<param name="quality" value="High">'); pol_em = pol_em.concat('<param name="wmode" value="transparent">'); pol_em = pol_em.concat('<param name="FlashVars" value="').concat('link=').concat(escape(pol_el)).concat('&zoneid=').concat(pol_dd).concat('&actionTag=').concat(escape(pol_aX)).concat('">'); pol_em = pol_em.concat('<embed src="').concat(pol_ei).concat('" FlashVars="').concat('link=').concat(escape(pol_el)).concat('&zoneid=').concat(pol_dd).concat('&actionTag=').concat(escape(pol_aX)).concat('" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" play="true" loop="true" wmode="transparent" AllowScriptAccess="always" width=').concat(pol_ds).concat(' height=').concat(pol_dr).concat('>'); pol_em = pol_em.concat('</object>'); cpmst_gmobj(pol_eL + '_showbanner').innerHTML = pol_em; setTimeout(function() { pol_Y(pol_eL, pol_ds) }, 100); return; }; function cpmst_BannerCollapfullscreen(pol_eL, pol_ds, pol_dr) { if (cpmst_gmobj(pol_eL + '_status')) cpmst_gmobj(pol_eL + '_status').value = 0; cpmst_gmobj(pol_eL + '_showbanner').style.visibility = 'hidden'; var pol_dS = cpmst_gmobj(pol_eL + '_showbanner'); document.body.removeChild(pol_dS); return; }; function pol_Y(pol_eL, pol_ds) { if (cpmst_gmobj(pol_eL + '_position')) { var pol_aI = pol_K(cpmst_gmobj(pol_eL + '_position'))[1]; var pol_dA = pol_A(); var pol_aH = (pol_dA / 2) - (pol_ds / 2); if (cpmst_gmobj(pol_eL + '_showbanner')) { cpmst_gmobj(pol_eL + '_showbanner').style.top = "0px"; cpmst_gmobj(pol_eL + '_showbanner').style.left = pol_aH + "px"; setTimeout(function() { pol_Y(pol_eL, pol_ds) }, 100); } } }; function pol_Z(pol_eL, pol_ds, pol_dr) { if (cpmst_gmobj(pol_eL + '_position')) { var pol_aI = pol_K(cpmst_gmobj(pol_eL + '_position'))[1]; var pol_dA = pol_A(); var pol_aH = (pol_dA / 2) - (pol_ds / 2); if (cpmst_gmobj(pol_eL + '_fullPage')) { cpmst_gmobj(pol_eL + '_fullPage').style.top = "0px"; cpmst_gmobj(pol_eL + '_fullPage').style.left = pol_aH + "px"; cpmst_gmobj(pol_eL + '_fullPage').style.width = pol_ds + "px"; cpmst_gmobj(pol_eL + '_fullPage').style.height = pol_dr + "px"; setTimeout(function() { pol_Z(pol_eL, pol_ds, pol_dr) }, 100); } } }; function cpmst_collapfullpage(pol_eL) { cpmst_gmobj(pol_eL + '_status').value = 0; cpmst_gmobj(pol_eL + '_showbanner').style.visibility = 'hidden'; var pol_dS = cpmst_gmobj(pol_eL + '_showbanner'); document.body.removeChild(pol_dS); }; function pol_j(pol_dN, pol_dK, pol_dP, pol_dL) { var pol_eg = ''; pol_eg = pol_eg.concat('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" WIDTH="').concat(pol_dP).concat('" HEIGHT="').concat(pol_dL).concat('" ID="').concat(pol_dN).concat('" >'); pol_eg = pol_eg.concat('	<PARAM NAME="movie" VALUE="').concat('http://vnexpress.net/Images/AdWord/').concat(pol_dK).concat('">'); pol_eg = pol_eg.concat('	<PARAM NAME="AllowScriptAccess" VALUE="always">'); pol_eg = pol_eg.concat('	<PARAM NAME="quality" VALUE="high">'); pol_eg = pol_eg.concat('	<PARAM NAME="bgcolor" VALUE="#FFFFFF">'); pol_eg = pol_eg.concat('	<PARAM NAME="wmode" VALUE="transparent">'); pol_eg = pol_eg.concat('	<EMBED src="').concat('http://vnexpress.net/Images/AdWord/').concat(pol_dK).concat('" quality="high" bgcolor="#FFFFFF" WIDTH="').concat(pol_dP).concat('" HEIGHT="').concat(pol_dL).concat('" NAME="').concat(pol_dN).concat('" align="middle" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="transparent" devicefont="false" id="flashEmbed" menu="true" >'); pol_eg = pol_eg.concat('</OBJECT>'); return pol_eg; }; function pol_A() { return pol_D(window.innerWidth ? window.innerWidth : 0, document.documentElement ? document.documentElement.clientWidth : 0, document.body ? document.body.clientWidth : 0); }; function pol_y() { return pol_D(window.innerHeight ? window.innerHeight : 0, document.documentElement ? document.documentElement.clientHeight : 0, document.body ? document.body.clientHeight : 0); }; function pol_O() { return pol_D(window.pageXOffset ? window.pageXOffset : 0, document.documentElement ? document.documentElement.scrollLeft : 0, document.body ? document.body.scrollLeft : 0); }; function cpmst_scrollTop() { return pol_D(window.pageYOffset ? window.pageYOffset : 0, document.documentElement ? document.documentElement.scrollTop : 0, document.body ? document.body.scrollTop : 0); }; function pol_D(pol_dF, pol_dD, pol_dC) { var pol_dE = pol_dF ? pol_dF : 0; if (pol_dD && (!pol_dE || (pol_dE > pol_dD))) pol_dE = pol_dD; return pol_dC && (!pol_dE || (pol_dE > pol_dC)) ? pol_dC : pol_dE; }; function pol_z() { return pol_E(window.innerHeight ? window.innerHeight : 0, document.documentElement ? document.documentElement.clientHeight : 0, document.body ? document.body.clientHeight : 0); }; function pol_E(pol_dF, pol_dD, pol_dC) { var pol_dE = pol_dF ? pol_dF : 0; if (pol_dD && (!pol_dE || (pol_dE > pol_dD))) pol_dE = pol_dD; return pol_dC && (!pol_dE || (pol_dE > pol_dC)) ? pol_dE : pol_dC; }; function pol_f() { if (window.innerHeight && window.scrollMaxY) { pol_fc = window.innerHeight + window.scrollMaxY; pol_fb = window.innerWidth + window.scrollMaxX; } else if (document.body.scrollHeight > document.body.offsetHeight) { pol_fc = document.body.scrollHeight; pol_fb = document.body.scrollWidth; } else { pol_fc = document.body.offsetHeight; pol_fb = document.body.offsetWidth; } return pol_fc; }; function pol_al(pol_bp, value, pol_cM) { var pol_cL = new Date(); pol_cL.setDate(pol_cL.getDate() + pol_cM); document.cookie = pol_bp + "=" + escape(value) + ((pol_cM == null) ? "" : ";expires=" + pol_cL.toUTCString()); }; function pol_ai(pol_bp) { if (document.cookie.length > 0) { pol_bq = document.cookie.indexOf(pol_bp + "="); if (pol_bq != -1) { pol_bq = pol_bq + pol_bp.length + 1; pol_bo = document.cookie.indexOf(";", pol_bq); if (pol_bo == -1) pol_bo = document.cookie.length; return unescape(document.cookie.substring(pol_bq, pol_bo)); } } return ""; }; function pol_aj(pol_ez) { b = 0; if (pol_H() == 1 || pol_H() == 7) { pol_ef = pol_ai(pol_cs); b = pol_ef % pol_ez; } else { b = 0 } return b; }; function pol_ak(pol_cx) { pol_ef = 0; if (pol_ai(pol_cs)) { } else { pol_al(pol_cs, 0, 365); return 0; } var pol_aU = pol_ai(pol_cs); if (pol_aU == 23) { pol_aU = 0 } else { pol_aU++; } pol_al(pol_cs, pol_aU, 365); return pol_aU; }; function pol_a(pol_dW) { var pol_be = pol_dW.split(","); if (pol_be[2] == '1') { cpmst_expandIframe(pol_be[3], pol_be[1], pol_be[0]); } else { cpmst_collapIframe(pol_be[3], pol_be[1], pol_be[0]); } }; function cpmst_expandIframe(pol_bh, pol_ds, pol_dr) { if (pol_bh == 'BalloonBanner') { cpmst_gmobj(pol_bh).style.height = pol_dr + 'px'; cpmst_gmobj(pol_bh).style.width = pol_ds + 'px'; $("#" + pol_bh + "_Iframe").attr('width', pol_ds).attr('height', pol_dr); return; } cpmst_gmobj(pol_bh).style.zIndex = "99999"; cpmst_gmobj(pol_bh + '_status').value = 1; if (cpmst_gmobj(pol_bh + '_position') && cpmst_gmobj(pol_bh + '_Iframe')) { cpmst_gmobj(pol_bh).style.height = pol_dr + 'px'; cpmst_gmobj(pol_bh).style.width = pol_ds + 'px'; cpmst_gmobj(pol_bh + '_child').style.height = pol_dr + 'px'; cpmst_gmobj(pol_bh + '_child').style.width = pol_ds + 'px'; $("#" + pol_bh + "_Iframe").attr('width', pol_ds).attr('height', pol_dr); pol_T(pol_bh); pol_F(pol_bh); return; } }; function cpmst_collapIframe(pol_bh, pol_ds, pol_dr) { if (pol_bh == 'BalloonBanner') { cpmst_gmobj(pol_bh).style.height = pol_dr + 'px'; cpmst_gmobj(pol_bh).style.width = pol_ds + 'px'; $("#" + pol_bh + "_Iframe").attr('width', pol_ds).attr('height', pol_dr); return; } cpmst_gmobj(pol_bh).style.zIndex = "100"; cpmst_gmobj(pol_bh + '_status').value = 0; if (cpmst_gmobj(pol_bh + '_position') && cpmst_gmobj(pol_bh + '_Iframe')) { cpmst_gmobj(pol_bh).style.height = pol_dr + 'px'; cpmst_gmobj(pol_bh).style.width = pol_ds + 'px'; cpmst_gmobj(pol_bh + '_child').style.height = pol_dr + 'px'; cpmst_gmobj(pol_bh + '_child').style.width = pol_ds + 'px'; $("#" + pol_bh + "_Iframe").attr('width', pol_ds).attr('height', pol_dr); pol_T(pol_bh); pol_F(pol_bh); return; } } 
