﻿var pol_aS; var pol_aU; var pol_aT; var pol_aV; var pol_bq = Math.random(); if (pol_bq < 0.25) { pol_aS = 'http://go.polyad.net/AdImages'; } else if (pol_bq < 0.4) { pol_aS = 'http://st.polyad.net/AdImages'; } else if (pol_bq < 0.7) { pol_aS = 'http://s2.polyad.net/AdImages'; } else { pol_aS = 'http://s3.polyad.net/AdImages'; } pol_aU = 'http://go.polyad.net/clk.aspx?t=5'; pol_aT = 'http://go.polyad.net/act.aspx?t=5'; pol_aV = 'http://st.polyad.net/Vals'; function cpmst_adlistshow(pol_pol_U, pol_V, pol_aa, pol_aw, pol_ai, pol_ak, pol_aj, pol_at, pol_af) { this.BResult = 0; this.pol_cI = pol_V; this.pol_aP = pol_aa; this.pol_cz = pol_ak; this.pol_cy = pol_aj; this.pol_di = pol_aw; this.face = pol_ai; this.pol_bK = 30000; this.pol_bL = 100; if (typeof (pol_at) == 'undefined') { this.pol_db = true; } else { this.pol_db = pol_at; }; if (typeof (pol_af) == 'undefined') { this.direction = 0; } else { this.direction = pol_af; }; switch (pol_aw) { 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: this.pol_cZ = 0; break; case 8: this.pol_cZ = 2; break; default: this.pol_cZ = 1; break; } var pol_aD = new Array(); var pol_aE = new Array(); var i, j, k, pol_cN, pol_ck, pol_dh; i = 0; j = -1; k = 0; pol_cN = -1; pol_ck = 0; pol_dh = 1; if (this.pol_cZ == 0) { for (i = 0, j = 0; i < pol_pol_U.length; i++) { if (this.pol_aX(pol_pol_U[i])) { pol_aD[j] = pol_pol_U[i]; j++; } } pol_aD.sort(pol_J); this.pol_cs = j + 1; this.pol_cB = pol_aD; } else if (this.pol_cZ == 1) { pol_aD[0] = new Array(); pol_aD[1] = new Array(); for (i = 0; i < pol_pol_U.length; i++) { if (pol_pol_U[i][5] <= 100) { if (pol_pol_U[i][5] != pol_cN) { pol_cN = pol_pol_U[i][5]; pol_ck = 0; j++; k = 0; } else { k++; } } else { if (pol_pol_U[i][5] != pol_cN || pol_pol_U.length <= 10) { if (pol_cN <= 100) j = -1; pol_cN = pol_pol_U[i][5]; pol_ck = 1; j++; k = 0; pol_dh = 0; } else { if (pol_dh >= pol_cN - 100) { j++; k = 0; pol_dh = 0; } else { k++; } } } if (this.pol_aX(pol_pol_U[i])) { if (k == 0) pol_aD[pol_ck][j] = new Array(); pol_aD[pol_ck][j][k] = pol_pol_U[i]; pol_dh++; } } for (i = 0; i < pol_aD.length; i++) { if (i == 1) { pol_aD[i].sort(pol_J) }; for (j = 0; j < pol_aD[i].length; j++) { pol_aD[i][j].sort(pol_J); } } k = 0; for (i = 0; i < pol_aD.length; i++) { for (j = 0; j < pol_aD[i].length; j++) { pol_aE[k] = pol_aD[i][j]; k++; } } this.pol_cB = pol_aE; this.pol_cs = k; } else if (this.pol_cZ == 2) { for (i = 0, j = 0; i < pol_pol_U.length; i++) { if (this.pol_aX(pol_pol_U[i])) { pol_aD[j] = new Array(); pol_aD[j][0] = new Array(); pol_aD[j][0][0] = pol_pol_U[i][0]; pol_aD[j][0][1] = pol_pol_U[i][2]; pol_aD[j][0][2] = pol_pol_U[i][3]; pol_aD[j][0][3] = pol_pol_U[i][4]; pol_aD[j][0][4] = pol_pol_U[i][5]; pol_aD[j][1] = new Array(); pol_aD[j][1][0] = pol_pol_U[i][1]; pol_aD[j][1][1] = pol_pol_U[i][2]; pol_aD[j][1][2] = pol_pol_U[i][3]; pol_aD[j][1][3] = pol_pol_U[i][6]; pol_aD[j][1][4] = pol_pol_U[i][7]; j++; } } pol_aD.sort(pol_J); this.pol_cs = j + 1; this.pol_cB = pol_aD; } this.pol_co(); }; cpmst_adlistshow.prototype.pol_co = function() { switch (this.pol_di) { case 0: this.pol_bj(); break; case 1: case 7: case 11: this.pol_bh(); break; case 2: this.pol_be(0); break; case 3: this.pol_be(1); break; case 4: this.pol_be(2); break; case 5: this.pol_bi(false); break; case 6: this.pol_bi(true); break; case 8: this.pol_bb(); break; case 9: this.pol_bl(); break; case 10: this.pol_bf(); break; case 12: this.pol_bd(0); break; case 13: this.pol_bd(1); break; case 14: this.pol_bd(2); break; case 15: this.pol_bd(3); break; case 16: this.pol_bg(); break; case 17: this.pol_bm(0); break; case 18: this.pol_bm(1); break; case 19: this.pol_bk(); break; case 20: this.pol_bn(); break; case 21: this.pol_aY(); break; case 22: this.pol_bc(); break; case 23: this.pol_aZ(); break; case 24: this.pol_ba(); break; default: break; } }; cpmst_adlistshow.prototype.pol_aW = function(index) { if (this.pol_cZ == 0) { return true; } else { if (this.pol_cB.length == index + 1) { return true; } else { return false; } } }; cpmst_adlistshow.prototype.pol_bj = function() { document.write('<table ', (this.pol_cz > 0) ? 'width='.concat(this.pol_cz) : '', ' cellspacing=0 cellpadding=0 border=0 align=center>'); this.pol_bD(this.pol_cB, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_bh = function() { if (this.pol_cB.length <= 0) { this.BResult = -1; } else { this.BResult = 0; } if (this.face == 0 || this.face == 3) { document.write('<table ', (this.pol_cz > 0) ? 'width='.concat(this.pol_cz) : '', ' cellspacing=0 cellpadding=0 border=0 align=center>'); } else if (this.face == 2) { document.write('<table ', (this.pol_cz > 0) ? 'width='.concat(this.pol_cz) : '', ' cellspacing=0 cellpadding=0 border=0 align=center><tr>'); } for (var i = 0; i < this.pol_cB.length; i++) { this.pol_bD(this.pol_cB[i], i, this.pol_aW(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_aW(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_be = function(type) { if (type == 2) { document.write('<DIV id="floatdiv', this.pol_cI, '" style="position:absolute;overflow:hidden;top:0;left:-200;', (this.pol_cy > 0) ? 'height:'.concat(this.pol_cy) : '180', ';', (this.pol_cz > 0) ? 'width:'.concat(this.pol_cz) : '115', ';">'); this.pol_bt(this.pol_cB); } else { document.write('<DIV id="floatdiv', this.pol_cI, '" style="position:absolute;top:0;left:-200;', (this.pol_cz > 0) ? 'width:'.concat(this.pol_cz) : '115', ';">'); this.pol_bh(); } document.write('</DIV>'); if (this.pol_cB.length > 0) { pol_c('floatdiv'.concat(this.pol_cI), type); } }; cpmst_adlistshow.prototype.pol_bd = function(type) { switch (type) { case 0: case 1: document.write('<DIV id="fixfloatdiv', this.pol_cI, '" style="position:absolute;z-index:200;top:0;left:-200;', (this.pol_cz > 0) ? 'width:'.concat(this.pol_cz) : '120', ';">'); break; case 2: case 3: document.write('<DIV id="fixfloatdiv', this.pol_cI, '" style="position:absolute;z-index:200;top:0;left:-200;', (this.pol_cy > 0) ? 'height:'.concat(this.pol_cy) : '150', ';', (this.pol_cz > 0) ? 'width:'.concat(this.pol_cz) : '120', ';">'); break; } this.pol_bw(this.pol_cB, type); document.write('</DIV>'); if (this.pol_cB.length > 0) { pol_b('fixfloatdiv'.concat(this.pol_cI), type); } }; cpmst_adlistshow.prototype.pol_bi = function(type) { pol_dC = this.pol_cB[0][2].lastIndexOf(','); pol_dz = this.pol_cB[0][2].substr(pol_dC + 2); pol_df = pol_l(pol_dz, this.pol_cB[0][1], true); pol_dB = (pol_e(this.pol_cB[0][0], 7).toLowerCase() == 'http://') ? this.pol_cB[0][0] : pol_aS.concat(this.pol_cB[0][0]); var pol_dH = 0; var pol_dO = this.pol_cB[0][3]; var pol_dx = this.pol_cB[0][4]; pol_I(pol_dB, pol_df, 'Advertisment', pol_dH, pol_dO, pol_dx, screen.height - pol_dx - 80, (screen.width - 770) / 2 + 410 - 5, type); }; cpmst_adlistshow.prototype.pol_bb = function() { document.write('<table align=center ', (this.pol_cz > 0) ? 'width='.concat(this.pol_cz) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.pol_bu(this.pol_cB, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_bl = function() { document.write('<table align=center ', (this.pol_cz > 0) ? 'width='.concat(this.pol_cz) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.pol_bG(this.pol_cB, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_bf = function() { if (this.pol_cB.length <= 0) { this.BResult = -1; } else { this.BResult = 0; } document.write('<table align=center ', (this.pol_cz > 0) ? 'width='.concat(this.pol_cz) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.pol_by(this.pol_cB, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_bg = function() { if (this.pol_cB.length <= 0) { this.BResult = -1; } else { this.BResult = 0; } this.pol_bA(this.pol_cB, 0); }; cpmst_adlistshow.prototype.pol_bD = function(pol_cQ, index, pol_ct) { if (this.face == 1) { document.write('<tr><td id="', this.pol_cI, '_', index, '" style="padding:4px;">'); } else if (this.face == 2) { document.write('<td id="', this.pol_cI, '_', index, '" style="padding:4px;">'); } else { document.write('<tr><td id="', this.pol_cI, '_', index, '">'); } document.write(pol_m(pol_cQ[0], this.pol_cz, this.pol_cy)); if (pol_cQ.length > 1) { var pol_cj = ''.concat(this.pol_cI).concat('_').concat(index); var pol_bM = this.pol_bK; var pol_bN = this.pol_bL; var pol_cz = this.pol_cz; var pol_cy = this.pol_cy; if (this.pol_di == 11) { if (this.pol_db) { var pol_aR = 0; setTimeout(function() { pol_o(pol_cQ, pol_cj, pol_bN, pol_cz, pol_cy, 0) }, 0); setTimeout(function() { pol_u(pol_cQ, pol_cj, pol_bN, pol_cz, pol_cy, pol_aR, 0) }, 0); } } else { if (this.pol_db) setTimeout(function() { pol_n(pol_cQ, 0, pol_cj, pol_bM, pol_cz, pol_cy) }, pol_bM); } } if (this.face == 2) { document.write('</td>'); } else { if (pol_cQ.length > 1 && this.pol_di == 11) { document.write('</td></tr>'); document.write('<tr><td>'); document.write('	<input type="hidden" value="0" id="hidFlag_' + pol_cj + '" name="hidFlag_' + pol_cj + '" />'); document.write('	<input type="hidden" value="0" id="hidLoop_' + pol_cj + '" name="hidLoop_' + pol_cj + '" />'); 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_cQ.length; i++) { document.write('<div id="numb' + pol_cj + 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="pol_E(\'hidLoop_' + pol_cj + '\').value =' + i + '; pol_E(\'hidFlag_' + pol_cj + '\').value = 100;">' + (i + 1) + '</div>'); } document.write('		</div>'); document.write('	<div class="divArrowL" onmouseover="pol_E(\'divArrowL_' + pol_cj + '\').className = \'divArrowL_Active\';" onmouseout="cpmst_gmobj(\'divArrowL_' + pol_cj + '\').className = \'divArrowL\';" onclick="cpmst_gmobj(\'hidFlag_' + pol_cj + '\').value = -1;" id="divArrowL_' + pol_cj + '">&nbsp;</div>'); document.write('	<div style="float:left;width:4px;">&nbsp;</div>'); document.write('	<div class="divArrowR" onmouseover="pol_E(\'divArrowR_' + pol_cj + '\').className = \'divArrowR_Active\';" onmouseout="cpmst_gmobj(\'divArrowR_' + pol_cj + '\').className = \'divArrowR\';" onclick="cpmst_gmobj(\'hidFlag_' + pol_cj + '\').value = 1;" id="divArrowR_' + pol_cj + '">&nbsp;</div>'); document.write('</td></tr>'); } else { document.write('</td></tr>'); } } }; cpmst_adlistshow.prototype.pol_bC = function(pol_cQ, pol_ct) { for (var i = 0; i < pol_cQ.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_m(pol_cQ[i], this.pol_cz, this.pol_cy)); 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_cQ.length - 1)) { document.write('<tr><td height="1" bgcolor="#808080"></td></tr>'); } } }; cpmst_adlistshow.prototype.pol_bt = function(pol_cQ) { document.write('<DIV id="subdiv', this.pol_cI, '" style="position:absolute;', (this.pol_cy > 0) ? 'top:'.concat(this.pol_cy) : '180', ';', (this.pol_cz > 0) ? 'width:'.concat(this.pol_cz) : '115', ';', (this.pol_cy > 0) ? 'height:'.concat(this.pol_cy) : '180', ';">'); document.write(pol_m(pol_cQ[0], this.pol_cz, this.pol_cy)); var pol_cj = 'subdiv'.concat(this.pol_cI); var pol_bM = this.pol_bK; var pol_cz = this.pol_cz; var pol_cy = this.pol_cy; setTimeout(function() { pol_M(pol_cQ, 0, pol_cj, pol_bM, pol_cz, pol_cy) }, 500); document.write('</DIV>'); }; cpmst_adlistshow.prototype.pol_bu = function(pol_cQ) { if (pol_cQ.length <= 0) return; var pol_cz = this.pol_cz; var pol_cy = this.pol_cy; var pol_cj = ''.concat(this.pol_cI); var pol_bM = this.pol_bK; document.write('<tr><td>'); document.write('<DIV id="', pol_cj, '" style="position:related;overflow:hidden;width:'.concat(pol_cQ[0][0][3]), ';height:'.concat(pol_cQ[0][0][4]), ';">'); document.write(pol_m(pol_cQ[0][0], this.pol_cz, this.pol_cy)); if (pol_cQ.length > 1) { } document.write('</DIV></td></tr>'); document.write('<tr><td align=center id="', pol_cj, '_extend"><font face="Arial" size="1"><b>'); document.write('<span id="', pol_cj, '_expandcollap" style="cursor:pointer;">M&#7903; r&#7897;ng</span>&nbsp;-&nbsp;'); document.write('<span id="', pol_cj, '_close" style="cursor:pointer;">&#272;&#243;ng</span>'); document.write('<input type="hidden" id="', this.pol_cI, '_hidden">'); document.write('</td></tr>'); pol_E(pol_cj + '_hidden').value = 0; pol_E(pol_cj).onmouseover = function() { cpmst_expandbanner(pol_cQ, pol_cj, pol_cz, pol_cy) }; pol_E(pol_cj + '_expandcollap').onclick = function() { cpmst_expandbanner(pol_cQ, pol_cj, pol_cz, pol_cy) }; pol_E(pol_cj + '_close').onclick = function() { pol_x(pol_cj) }; }; function cpmst_expandbanner(pol_cQ, pol_aI, pol_cz, pol_cy) { var index = pol_E(pol_aI + '_hidden').value; if (parseInt(pol_E(pol_aI).offsetHeight) < pol_cQ[index][1][4]) { pol_E(pol_aI).style.height = parseInt(pol_E(pol_aI).offsetHeight) + 10; setTimeout(function() { cpmst_expandbanner(pol_cQ, pol_aI, pol_cz, pol_cy) }, 5); return; } pol_E(pol_aI).onmouseover = 'undefine'; pol_E(pol_aI + '_expandcollap').innerHTML = 'Thu nh&#7887;'; pol_E(pol_aI + '_expandcollap').onclick = function() { cpmst_collapbanner(pol_cQ, pol_aI, pol_cz, pol_cy) }; pol_E(pol_aI).innerHTML = pol_m(pol_cQ[index][1], pol_cz, pol_cy); }; function cpmst_collapbanner(pol_cQ, pol_aI, pol_cz, pol_cy) { var index = pol_E(pol_aI + '_hidden').value; if (parseInt(pol_E(pol_aI).offsetHeight) > pol_cQ[index][0][4]) { pol_E(pol_aI).style.height = parseInt(pol_E(pol_aI).offsetHeight) - 10; setTimeout(function() { cpmst_collapbanner(pol_cQ, pol_aI, pol_cz, pol_cy) }, 5); return; } pol_E(pol_aI).onmouseover = function() { cpmst_expandbanner(pol_cQ, pol_aI, pol_cz, pol_cy) }; pol_E(pol_aI + '_expandcollap').innerHTML = 'M&#7903; r&#7897;ng'; pol_E(pol_aI + '_expandcollap').onclick = function() { cpmst_expandbanner(pol_cQ, pol_aI, pol_cz, pol_cy) }; pol_E(pol_aI).innerHTML = pol_m(pol_cQ[index][0], pol_cz, pol_cy); }; function pol_x(pol_aI) { pol_E(pol_aI).style.display = 'none'; pol_E(pol_aI + '_extend').style.display = 'none'; }; function pol_n(pol_cQ, index, pol_aI, pol_bM, pol_cz, pol_cy) { if (index == pol_cQ.length - 1) { index = 0; } else { index++; } pol_E(pol_aI).innerHTML = pol_m(pol_cQ[index], pol_cz, pol_cy); setTimeout(function() { pol_n(pol_cQ, index, pol_aI, pol_bM, pol_cz, pol_cy) }, pol_bM); }; function pol_u(pol_cQ, pol_aI, pol_bN, pol_cz, pol_cy, pol_aR, loop) { var pol_ca; pol_ca = pol_E("hidFlag_" + pol_aI).value; if (pol_ca == 0) { if (pol_aR == pol_bN) { loop++; setTimeout(function() { pol_o(pol_cQ, pol_aI, pol_bN, pol_cz, pol_cy, loop) }, 0); } } else if (pol_ca == 1) { loop++; setTimeout(function() { pol_o(pol_cQ, pol_aI, pol_bN, pol_cz, pol_cy, loop) }, 0); pol_E("hidFlag_" + pol_aI).value = 0; pol_aR = 0; } else if (pol_ca == -1) { loop--; setTimeout(function() { pol_o(pol_cQ, pol_aI, pol_bN, pol_cz, pol_cy, loop) }, 0); pol_E("hidFlag_" + pol_aI).value = 0; pol_aR = 0; } else { loop = pol_E('hidLoop_' + pol_aI).value; setTimeout(function() { pol_o(pol_cQ, pol_aI, pol_bN, pol_cz, pol_cy, loop) }, 0); pol_E("hidFlag_" + pol_aI).value = 0; pol_E('hidLoop_' + pol_aI).value = 0; pol_aR = 0; } pol_aR++; if (pol_aR > pol_bN) { pol_aR = 0; } if (loop == pol_cQ.length) { loop = 0; } if (loop < 0) { loop = (pol_cQ.length - 1); } setTimeout(function() { pol_u(pol_cQ, pol_aI, pol_bN, pol_cz, pol_cy, pol_aR, loop) }, 100); }; function pol_o(pol_cQ, pol_aI, pol_bN, pol_cz, pol_cy, pol_bW) { pol_E(pol_aI).innerHTML = pol_m(pol_cQ[pol_bW], pol_cz, pol_cy); var k; for (k = 0; k < pol_cQ.length; k++) { if (k == pol_bW) { document.getElementById("numb" + pol_aI + k).style.backgroundColor = "2879ca"; document.getElementById("numb" + pol_aI + k).style.border = "solid 2px #cccccc"; } else { document.getElementById("numb" + pol_aI + k).style.backgroundColor = "0066cc"; document.getElementById("numb" + pol_aI + k).style.border = "solid 2px #0066cc"; } } }; function pol_t(pol_cQ, index, pol_aI, pol_bM, pol_cz, pol_cy, type) { if (typeof (type) == 'undefined') type = 1; if (pol_E(pol_aI + '_status').value == '0') { if (index == pol_cQ.length - 1) { index = 0; } else { index++; } if (type == 1) { var pol_dg = ''; pol_dg = pol_dg.concat('<DIV id="').concat(pol_aI).concat('_child" style="position:absolute;top:0px;left:0px;width:').concat(pol_cQ[index][3]).concat('px;height:').concat(pol_cQ[index][4]).concat('px;">'); pol_dg = pol_dg.concat(pol_m(pol_cQ[index], pol_cz, pol_cy, false, pol_aI)); pol_dg = pol_dg.concat('</DIV>'); pol_E(pol_aI).innerHTML = pol_dg; pol_B(pol_aI); } } setTimeout(function() { pol_t(pol_cQ, index, pol_aI, pol_bM, pol_cz, pol_cy, type) }, pol_bM); }; cpmst_adlistshow.prototype.pol_bG = function(pol_cQ) { if (pol_cQ.length <= 0) return; var pol_cz = (this.pol_cz < pol_cQ[0][3] && this.pol_cz > 0) ? this.pol_cz : pol_cQ[0][3]; var pol_cy = (this.pol_cy < pol_cQ[0][4] && this.pol_cy > 0) ? this.pol_cy : pol_cQ[0][4]; var pol_cj = ''.concat(this.pol_cI); var pol_bM = this.pol_bK; document.write('<tr><td>'); document.write('<DIV id="', pol_cj, '" style="position:relative;overflow:hidden;width:'.concat(pol_cz), 'px;height:'.concat(pol_cy), 'px;">'); document.write(pol_m(pol_cQ[0], this.pol_cz, this.pol_cy, false, pol_cj)); document.write('</DIV>'); document.write('<input type="hidden" id="', pol_cj, '_status" value="0">'); document.write('</td></tr>'); if (this.pol_db) setTimeout(function() { pol_t(pol_cQ, 0, pol_cj, pol_bM, pol_cz, pol_cy, 1) }, pol_bM); }; cpmst_adlistshow.prototype.pol_bA = function(pol_cQ) { if (pol_cQ.length <= 0) return; var pol_cz = (this.pol_cz < pol_cQ[0][3] && this.pol_cz > 0) ? this.pol_cz : pol_cQ[0][3]; var pol_cy = (this.pol_cy < pol_cQ[0][4] && this.pol_cy > 0) ? this.pol_cy : pol_cQ[0][4]; var pol_cj = ''.concat(this.pol_cI); var pol_bM = this.pol_bK; var pol_dg = ''; document.write('<div id="', pol_cj, '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_cj + "_position' style='overflow:hidden;position:relative;height:" + this.pol_cy + "px;width:" + this.pol_cz + "px;'></div>"); document.write("<div id='" + pol_cj + "' style='overflow:hidden;height:" + this.pol_cy + "px;z-index:0;width:" + this.pol_cz + "px;position:absolute;left:-1000px'>"); document.write('</div>'); document.write('<input type="hidden" id="', pol_cj, '_direction" value="', this.direction, '">'); document.write('<input type="hidden" id="BannerID', pol_cj, '" name="BannerID', pol_cj, '" value="', pol_cj, '">'); document.write('<input type="hidden" id="BannerOffset_', pol_cj, '" value="0" />'); document.write('<input type="hidden" id="', pol_cj, '_status" value="0">'); if (this.pol_db) setTimeout(function() { pol_t(pol_cQ, 0, pol_cj, pol_bM, pol_cz, pol_cy, 1); }, pol_bM); var pol_aC = this; setTimeout(function() { pol_aC.pol_bB(pol_cQ) }, 300); }; cpmst_adlistshow.prototype.pol_bB = function(pol_cQ) { if (pol_cQ.length <= 0) return; var pol_cz = (this.pol_cz < pol_cQ[0][3] && this.pol_cz > 0) ? this.pol_cz : pol_cQ[0][3]; var pol_cy = (this.pol_cy < pol_cQ[0][4] && this.pol_cy > 0) ? this.pol_cy : pol_cQ[0][4]; var pol_cj = ''.concat(this.pol_cI); var pol_bM = this.pol_bK; var pol_dg = ''; pol_dg = pol_dg.concat('<DIV id="').concat(pol_cj).concat('_child" style="overflow:hidden;position:absolute;top:0px;left:0px;width:').concat(pol_cQ[0][3]).concat('px;height:').concat(pol_cQ[0][4]).concat('px;">'); pol_dg = pol_dg.concat(pol_m(pol_cQ[0], this.pol_cz, this.pol_cy, false, pol_cj)); pol_dg = pol_dg.concat('</DIV>'); pol_E(pol_cj).innerHTML = pol_dg; pol_Q(pol_cj, true); if (this.pol_db) setTimeout(function() { pol_t(pol_cQ, 0, pol_cj, pol_bM, pol_cz, pol_cy, 1) }, pol_bM); }; cpmst_adlistshow.prototype.cpmst_MoveLeft = function(pol_cz, pol_cy, pol_cj) { var BannerID = pol_E("BannerID" + pol_cj).value; var pol_az = window.screen.width; var pol_ay = pol_E("divMove").style.width; var pol_ah = 0; var pol_ag; var pol_X = pol_E("BannerOffset_" + BannerID).value; pol_ah = (parseInt(pol_az) - parseInt(pol_ay)) / 2; pol_cR = pol_E("divMove").style.marginLeft.replace("px", ""); pol_E(BannerID + "123").style.width = pol_ah + "px"; pol_E(BannerID + "123").style.display = ""; pol_E(BannerID + "_status").value = 1; pol_ag = -(pol_X - pol_ah); pol_do = pol_ag; if (pol_cR > pol_ag) { pol_cR -= 50; if (pol_cR - pol_ag <= 50) { pol_E("divMove").style.marginLeft = pol_ag + "px"; } else { pol_E("divMove").style.marginLeft = pol_cR + "px"; } pol_E("divMove").style.display = "block"; } else { pol_E("divMove").style.display = ""; clearInterval(a); clearTimeout(b); clearTimeout(c); pol_E(BannerID).style.display = "block"; pol_E(BannerID).style.height = pol_cy + "px"; pol_E(BannerID).style.width = pol_cz + "px"; pol_E(BannerID).style.zIndex = "1000"; pol_E(BannerID).style.left = pol_ah + "px"; pol_E(BannerID).style.top = pol_G(pol_E(BannerID + '_position'))[1]; pol_E(BannerID + '_child').style.top = '0px'; } }; cpmst_adlistshow.prototype.cpmst_MoveRight = function(pol_cz, pol_cy, pol_cj) { var BannerID = pol_E("BannerID" + pol_cj).value; pol_cR = parseInt(pol_E("divMove").style.marginLeft.replace("px", "")); if (pol_cR == pol_do) { pol_E("divMove").style.display = "block"; pol_E(BannerID).style.display = ""; pol_E(BannerID).style.height = pol_cy + "px"; pol_E(BannerID).style.width = pol_cz + "px"; pol_E(BannerID).style.left = ""; pol_E(BannerID + "_status").value = 0; pol_Q(BannerID, true); } if (pol_cR < 0) { pol_cR += 50; if (pol_cR > -50) { pol_E(BannerID + "123").style.display = "none"; pol_E("divMove").style.marginLeft = "0px"; } else { pol_E("divMove").style.marginLeft = pol_cR + "px"; } } else { pol_E("divMove").style.display = ""; clearInterval(a); clearTimeout(b); clearTimeout(c); pol_Q(BannerID, true); pol_E("divMove").style.marginLeft = "0px"; } }; cpmst_adlistshow.prototype.pol_bo = function(BannerID, pol_cz, pol_cy) { if (pol_E("divMove").style.display == "block") { return; } a = setInterval("cpmst_adlistshow.prototype.cpmst_MoveLeft(" + pol_cz + "," + pol_cy + ",'" + BannerID + "')", 50); b = setTimeout("a", 0); }; cpmst_adlistshow.prototype.pol_bp = function(BannerID, pol_cz, pol_cy) { if (pol_E("divMove").style.display == "block") { return; } a = setInterval("cpmst_adlistshow.prototype.cpmst_MoveRight(" + pol_cz + "," + pol_cy + ",'" + BannerID + "')", 50); b = setTimeout("a", 0); }; cpmst_adlistshow.prototype.pol_by = function(pol_cQ) { if (pol_cQ.length <= 0) return; var pol_cz = (this.pol_cz < pol_cQ[0][3] && this.pol_cz > 0) ? this.pol_cz : pol_cQ[0][3]; var pol_cy = (this.pol_cy < pol_cQ[0][4] && this.pol_cy > 0) ? this.pol_cy : pol_cQ[0][4]; var pol_cj = ''.concat(this.pol_cI); var pol_bM = this.pol_bK; document.write('<tr><td>'); document.write('<DIV id="', pol_cj, '_position" style="position:relative;overflow:hidden;width:'.concat(pol_cz), 'px;height:'.concat(pol_cy), 'px;"></DIV>'); document.write('<DIV id="', pol_cj, '" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:-1000px;width:'.concat(pol_cz), 'px;height:'.concat(pol_cy), 'px;">'); document.write('</DIV>'); document.write('<input type="hidden" id="', pol_cj, '_direction" value="', this.direction, '">'); document.write('<input type="hidden" id="', pol_cj, '_status" value="0">'); document.write('</td></tr>'); var pol_aC = this; if (window.addEventListener) window.addEventListener("load", function() { pol_aC.pol_bz(pol_cQ) }, false); else if (window.attachEvent) window.attachEvent("onload", function() { pol_aC.pol_bz(pol_cQ) }); else if (document.getElementById) setTimeout(function() { pol_aC.pol_bz(pol_cQ) }, 500); }; cpmst_adlistshow.prototype.pol_bz = function(pol_cQ) { if (pol_cQ.length <= 0) return; var pol_cz = (this.pol_cz < pol_cQ[0][3] && this.pol_cz > 0) ? this.pol_cz : pol_cQ[0][3]; var pol_cy = (this.pol_cy < pol_cQ[0][4] && this.pol_cy > 0) ? this.pol_cy : pol_cQ[0][4]; var pol_cj = ''.concat(this.pol_cI); var pol_bM = this.pol_bK; var pol_dg = ''; pol_dg = pol_dg.concat('<DIV id="').concat(pol_cj).concat('_child" style="overflow:hidden;position:absolute;top:0px;left:0px;width:').concat(pol_cQ[0][3]).concat('px;height:').concat(pol_cQ[0][4]).concat('px;">'); pol_dg = pol_dg.concat(pol_m(pol_cQ[0], this.pol_cz, this.pol_cy, false, pol_cj)); pol_dg = pol_dg.concat('</DIV>'); pol_E(pol_cj).innerHTML = pol_dg; pol_N(pol_cj, true); if (this.pol_db && pol_cQ.length > 1) setTimeout(function() { pol_t(pol_cQ, 0, pol_cj, pol_bM, pol_cz, pol_cy, 1) }, pol_bM); }; cpmst_adlistshow.prototype.pol_bw = function(pol_cQ, type) { if (pol_cQ.length <= 0) return; var pol_cz = (this.pol_cz < pol_cQ[0][3] && this.pol_cz > 0) ? this.pol_cz : pol_cQ[0][3]; var pol_cy = (this.pol_cy < pol_cQ[0][4] && this.pol_cy > 0) ? this.pol_cy : pol_cQ[0][4]; var pol_cj = ''.concat(this.pol_cI); var pol_bM = this.pol_bK; document.write('<DIV id="', pol_cj, '_position" style="position:relative;overflow:hidden;width:'.concat(pol_cz), 'px;height:'.concat(pol_cy), 'px;"></DIV>'); document.write('<DIV id="', pol_cj, '" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:0px;width:'.concat(pol_cz), 'px;height:'.concat(pol_cy), 'px;">'); document.write('</DIV>'); document.write('<input type="hidden" id="', pol_cj, '_directionfix" value="', this.direction, '">'); document.write('<input type="hidden" id="', pol_cj, '_status" value="0">'); var pol_aC = this; setTimeout(function() { pol_aC.pol_bx(pol_cQ, type) }, 300); }; cpmst_adlistshow.prototype.pol_bx = function(pol_cQ, type) { if (pol_cQ.length <= 0) return; var pol_cz = (this.pol_cz < pol_cQ[0][3] && this.pol_cz > 0) ? this.pol_cz : pol_cQ[0][3]; var pol_cy = (this.pol_cy < pol_cQ[0][4] && this.pol_cy > 0) ? this.pol_cy : pol_cQ[0][4]; var pol_cj = ''.concat(this.pol_cI); var pol_bM = this.pol_bK; var pol_dg = ''; switch (type) { case 0: pol_dg = pol_dg.concat('<DIV id="').concat(pol_cj).concat('_child" style="position:absolute;top:0px;left:0px;width:').concat(pol_cQ[0][3]).concat('px;height:').concat(pol_cQ[0][4]).concat('px;">'); break; case 1: pol_dg = pol_dg.concat('<DIV id="').concat(pol_cj).concat('_child" style="position:absolute;top:').concat(pol_cy - pol_cQ[0][4]).concat('px;left:').concat(pol_cz - pol_cQ[0][3]).concat('px;width:').concat(pol_cQ[0][3]).concat('px;height:').concat(pol_cQ[0][4]).concat('px;">'); break; case 2: pol_dg = pol_dg.concat('<DIV id="').concat(pol_cj).concat('_child" style="position:absolute;top:').concat(pol_cy - pol_cQ[0][4]).concat('px;left:0px;width:').concat(pol_cQ[0][3]).concat('px;height:').concat(pol_cQ[0][4]).concat('px;">'); break; case 3: pol_dg = pol_dg.concat('<DIV id="').concat(pol_cj).concat('_child" style="position:absolute;top:').concat(pol_cy - pol_cQ[0][4]).concat('px;left:').concat(pol_cz - pol_cQ[0][3]).concat('px;width:').concat(pol_cQ[0][3]).concat('px;height:').concat(pol_cQ[0][4]).concat('px;">'); break; default: pol_dg = pol_dg.concat('<DIV id="').concat(pol_cj).concat('_child" style="position:absolute;top:').concat(pol_cy - pol_cQ[0][4]).concat('px;left:').concat(pol_cz - pol_cQ[0][3]).concat('px;width:').concat(pol_cQ[0][3]).concat('px;height:').concat(pol_cQ[0][4]).concat('px;">'); break; } pol_dg = pol_dg.concat(pol_m(pol_cQ[0], this.pol_cz, this.pol_cy, false, pol_cj)); pol_dg = pol_dg.concat('</DIV>'); pol_E(pol_cj).innerHTML = pol_dg; if (pol_cQ.length > 1) { if (this.pol_db) setTimeout(function() { pol_t(pol_cQ, 0, pol_cj, pol_bM, pol_cz, pol_cy, 1) }, pol_bM); } }; function pol_Q(id, pol_bV) { var pol_bY = true; if (pol_E(id + '_direction')) { direction = pol_E(id + '_direction').value; } else { direction = 0; } if (pol_E(id) && pol_E(id + '_position')) { var pol_ao = pol_G(pol_E(id + '_position'))[1]; var pol_an = pol_G(pol_E(id + '_position'))[0]; var pol_am = parseInt(pol_E(id + '_position').offsetHeight); var pol_ap = parseInt(pol_E(id + '_position').offsetWidth); var pol_ad = parseInt(pol_E(id).offsetHeight); var pol_ae = parseInt(pol_E(id).offsetWidth); if (direction == 0 || direction == 1) { pol_E(id).style.top = pol_ao + 'px'; } else { pol_E(id).style.top = pol_ao - pol_ad + pol_am + 'px'; } if (direction == 0 || direction == 2) { pol_E(id).style.left = pol_an + 'px'; } else { pol_E(id).style.left = pol_an - pol_ae + pol_ap + 'px'; } } if (pol_bV == true) { pol_B(id); pol_E('BannerOffset_' + id).value = pol_E(id).style.left.replace('px', ''); } c = setTimeout(function() { pol_Q(id) }, 100); }; function pol_N(id, pol_bV, pol_ce) { if (pol_E(id + '_child')) { if (parseInt(pol_E(id + '_child').offsetWidth) == 1440 && id == 'VBannerShared') return; if (parseInt(pol_E(id + '_child').offsetWidth) == 1000 && id == 'LargeLogo1') return; } if (typeof (pol_ce) == 'undefined') pol_ce = 0; var pol_bY = true; if (pol_E(id + '_direction')) { direction = pol_E(id + '_direction').value; } else if (pol_E(id + '_directionfix')) { direction = pol_E(id + '_directionfix').value; pol_bY = false; } else { direction = 0; } if (pol_E(id) && pol_E(id + '_position')) { if (pol_bY) { var pol_ao = pol_G(pol_E(id + '_position'))[1]; var pol_an = pol_G(pol_E(id + '_position'))[0]; var pol_am = parseInt(pol_E(id + '_position').offsetHeight); var pol_ap = parseInt(pol_E(id + '_position').offsetWidth); var pol_ad = parseInt(pol_E(id).offsetHeight); var pol_ae = parseInt(pol_E(id).offsetWidth); if (direction == 0 || direction == 1) { pol_E(id).style.top = pol_ao + 'px'; } else { pol_E(id).style.top = pol_ao - pol_ad + pol_am + 'px'; } if (direction == 0 || direction == 2) { pol_E(id).style.left = pol_an + 'px'; } else { pol_E(id).style.left = pol_an - pol_ae + pol_ap + 'px'; } } else { } } if (pol_bV == true) pol_B(id); if (pol_ce == 0 && typeof (id) != 'undefined') setTimeout(function() { pol_N(id) }, 100); }; function pol_R(id) { if (pol_E(id) && pol_E(id + '_position')) { var pol_an = pol_F(pol_E(id + '_position'))[0]; pol_E(id).style.left = pol_an + 'px'; } setTimeout(function() { pol_R(id) }, 100); }; function pol_B(id) { if (pol_E(id + '_child')) { if (parseInt(pol_E(id + '_child').offsetWidth) == 1440 && id == 'VBannerShared') { pol_E(id + '_child').style.top = '-162px'; pol_E(id + '_child').style.left = '-962px'; return; } if (parseInt(pol_E(id + '_child').offsetWidth) == 1000 && id == 'LargeLogo1') { pol_E(id + '_child').style.top = '-75px'; pol_E(id + '_child').style.left = '-510px'; return; } } var pol_bY = true; if (pol_E(id + '_direction')) { direction = pol_E(id + '_direction').value; } else if (pol_E(id + '_directionfix')) { direction = pol_E(id + '_directionfix').value; pol_bY = false; } else { direction = 0; } if (pol_E(id) && pol_E(id + '_position')) { var pol_ab = parseInt(pol_E(id + '_child').offsetHeight); var pol_ac = parseInt(pol_E(id + '_child').offsetWidth); var pol_aq = parseInt(pol_E(id).offsetHeight); var pol_ar = parseInt(pol_E(id).offsetWidth); if (direction == 0 || direction == 1) { pol_E(id + '_child').style.top = 0 + 'px'; } else { pol_E(id + '_child').style.top = pol_aq - pol_ab + 'px'; } if (direction == 0 || direction == 2) { pol_E(id + '_child').style.left = 0 + 'px'; } else { pol_E(id + '_child').style.left = pol_ar - pol_ac + 'px'; } } }; var pol_aR = 1; function pol_b(pol_bP, type, pol_bU) { if (typeof (pol_bU) == 'undefined') { pol_bU = 0 }; var pol_dk, pol_dl; if (type == 1 || type == 3) { pol_dk = document.body.clientWidth - 120; } else { pol_dk = 5; } if (type == 2 || type == 3) { pol_dl = document.body.clientHeight; } else { pol_dl = 0; } if (document.body.clientWidth < 1250) { pol_dk = -125 }; window.pol_dm = function(pol_bZ, type, pol_bU) { var pol_dk, pol_dl; var pol_cO = (navigator.appName.indexOf("Netscape") != -1); if (type == 1 || type == 3) { pol_dk = document.body.clientWidth - 125; } else { pol_dk = 5; } if (document.body.clientWidth < 1250) { pol_bZ.style.display = 'none'; } else { pol_bZ.style.display = ''; if (document.documentElement && document.documentElement.scrollTop) var pol_cV = pol_cO ? pageYOffset : document.documentElement.scrollTop; else if (document.body) var pol_cV = pol_cO ? pageYOffset : document.body.scrollTop; if (type == 2 || type == 3) { if (document.documentElement && document.documentElement.clientHeight) pol_dl = document.documentElement.clientHeight - 305; else if (document.body) pol_dl = document.body.clientHeight - 305; } else { if (document.documentElement) { if (document.documentElement.scrollTop > 98) { pol_dl = 3 } else { pol_dl = 98 - document.documentElement.scrollTop; }; } else if (document.body) { if (document.body.scrollTop > 98) { pol_dl = 3 } else { pol_dl = 98 - document.body.scrollTop; }; } } pol_bZ.y += (pol_cV + pol_dl - pol_bZ.y) / 8; pol_bZ.style.left = pol_dk + 'px'; pol_bZ.style.top = pol_bZ.y + pol_bU + 'px'; } setTimeout(function() { pol_dm(pol_bZ, type, pol_bU) }, 15); }; var pol_bZ = pol_E(pol_bP); if (!pol_bZ) return; pol_bZ.x = pol_dk; pol_bZ.y = pol_dl; pol_dm(pol_bZ, type, pol_bU); }; function cpmst_expandslideselfbanner(pol_aI, pol_cz, pol_cy) { cpmst_adlistshow.prototype.pol_bo(pol_aI, pol_cz, pol_cy); }; function cpmst_collapslideselfbanner(pol_aI, pol_cz, pol_cy) { cpmst_adlistshow.prototype.pol_bp(pol_aI, pol_cz, pol_cy); }; function cpmst_expandselfbanner(pol_aI, pol_cz, pol_cy) { pol_E(pol_aI).style.zIndex = "99999"; pol_E(pol_aI + '_status').value = 1; if (pol_E(pol_aI + '_directionfix')) { var pol_dq = pol_E(pol_aI + '_child').style.top; var pol_cv = pol_E(pol_aI + '_child').style.left; pol_E(pol_aI).style.height = pol_cy + 'px'; pol_E(pol_aI).style.width = pol_cz + 'px'; pol_E(pol_aI).style.top = pol_dq; pol_E(pol_aI).style.left = pol_cv; pol_E(pol_aI + '_child').style.top = '0px'; pol_E(pol_aI + '_child').style.left = '0px'; } else { if (pol_E(pol_aI + '_position')) { pol_E(pol_aI).style.height = pol_cy + 'px'; pol_E(pol_aI).style.width = pol_cz + 'px'; pol_N(pol_aI); pol_B(pol_aI); return; } var pol_W = parseInt(pol_E(pol_aI).offsetHeight); var pol_Z = parseInt(pol_E(pol_aI).offsetWidth); if ((pol_W < pol_cy - 10) || (pol_Z < pol_cz - 10)) { if (pol_W < pol_cy - 10) { pol_E(pol_aI).style.height = pol_W + 10 + 'px'; } else { pol_E(pol_aI).style.height = pol_cy + 'px'; } if (pol_Z < pol_cz - 10) { pol_E(pol_aI).style.width = pol_Z + 10 + 'px'; } else { pol_E(pol_aI).style.width = pol_cz + 'px'; } pol_N(pol_aI); pol_B(pol_aI); setTimeout(function() { cpmst_expandselfbanner(pol_aI, pol_cz, pol_cy) }, 5); return; } else { pol_E(pol_aI).style.height = pol_cy + 'px'; pol_E(pol_aI).style.width = pol_cz + 'px'; pol_N(pol_aI); pol_B(pol_aI); } } }; function cpmst_collapselfbanner(pol_aI, pol_cz, pol_cy) { pol_E(pol_aI).style.zIndex = "100"; if (pol_E(pol_aI + '_directionfix')) { var pol_dr = pol_E(pol_aI).style.top; var pol_cw = pol_E(pol_aI).style.left; pol_E(pol_aI).style.height = pol_cy + 'px'; pol_E(pol_aI).style.width = pol_cz + 'px'; pol_E(pol_aI).style.top = '0px'; pol_E(pol_aI).style.left = '0px'; pol_E(pol_aI + '_child').style.top = pol_dr; pol_E(pol_aI + '_child').style.left = pol_cw; } else { if (pol_E(pol_aI + '_position')) { pol_E(pol_aI).style.height = pol_cy + 'px'; pol_E(pol_aI).style.width = pol_cz + 'px'; pol_N(pol_aI); pol_B(pol_aI); pol_E(pol_aI + '_status').value = 0; return; } var pol_W = parseInt(pol_E(pol_aI).offsetHeight); var pol_Z = parseInt(pol_E(pol_aI).offsetWidth); if ((pol_W > pol_cy + 10) || (pol_Z > pol_cz + 10)) { if (pol_W > pol_cy + 10) { pol_E(pol_aI).style.height = pol_W - 10 + 'px'; } else { pol_E(pol_aI).style.height = pol_cy + 'px'; } if (pol_Z > pol_cz + 10) { pol_E(pol_aI).style.width = pol_Z - 10 + 'px'; } else { pol_E(pol_aI).style.width = pol_cz + 'px'; } pol_N(pol_aI); pol_B(pol_aI); setTimeout(function() { cpmst_collapselfbanner(pol_aI, pol_cz, pol_cy) }, 5); return; } else { pol_E(pol_aI).style.height = pol_cy + 'px'; pol_E(pol_aI).style.width = pol_cz + 'px'; pol_N(pol_aI); pol_B(pol_aI); pol_E(pol_aI + '_status').value = 0; } } }; function pol_M(pol_cQ, index, pol_aI, pol_bM, pol_cz, pol_cy) { var pol_bZ = pol_E(pol_aI); if (!pol_bZ) return; var pol_cV = parseInt(pol_bZ.style.top); pol_cV = pol_cV - Math.round(parseInt(pol_bZ.style.top) / 8) - 1; if (pol_cV > 0) { pol_bZ.style.top = pol_cV; setTimeout(function() { pol_M(pol_cQ, index, pol_aI, pol_bM, pol_cz, pol_cy) }, 10); } else { pol_bZ.style.top = 0; setTimeout(function() { pol_y(pol_cQ, index, pol_aI, pol_bM, pol_cz, pol_cy) }, pol_bM); } }; function pol_y(pol_cQ, index, pol_aI, pol_bM, pol_cz, pol_cy) { var pol_bZ = pol_E(pol_aI); if (!pol_bZ) return; var pol_cV = parseInt(pol_bZ.style.top); pol_cV = pol_cV + Math.round((pol_cy - parseInt(pol_bZ.style.top)) / 8) + 1; if (pol_cV < pol_cy) { pol_bZ.style.top = pol_cV; setTimeout(function() { pol_y(pol_cQ, index, pol_aI, pol_bM, pol_cz, pol_cy) }, 10); } else { pol_bZ.style.top = pol_cy; if (index == pol_cQ.length - 1) { index = 0; } else { index++; } pol_E(pol_aI).innerHTML = pol_m(pol_cQ[index], pol_cz, pol_cy); setTimeout(function() { pol_M(pol_cQ, index, pol_aI, pol_bM, pol_cz, pol_cy) }, 5000); } }; function pol_C() { var pol_ax = 0; if (window.location.href.toLowerCase().indexOf("sohoa.vnexpress.net") > -1) { pol_ax = 4; } else if (window.location.href.toLowerCase().indexOf("gamethu.vnexpress.net") > -1) { pol_ax = 3; } else if (window.location.href.toLowerCase().indexOf("vnexpress.net") > -1) { pol_ax = 1; } else if (window.location.href.toLowerCase().indexOf("ngoisao.net") > -1) { pol_ax = 2; } return pol_ax; }; function pol_m(pol_cQ, pol_cz, pol_cy, pol_aO, pol_cl) { if (!pol_cQ) { return '' } var pol_aB = pol_k(pol_cQ[2].substring(pol_cQ[2].lastIndexOf(',') + 2)); var pol_dg = ''; var pol_dd = (pol_e(pol_cQ[0], 7).toLowerCase() == 'http://') ? pol_cQ[0] : pol_aS.concat(pol_cQ[0]); if (typeof (pol_aO) == "undefined") pol_aO = true; var pol_cn = (pol_cz < pol_cQ[3] && pol_cz > 0 && pol_aO) ? pol_cz : pol_cQ[3]; var pol_cm = (pol_cy < pol_cQ[4] && pol_cy > 0 && pol_aO) ? pol_cy : pol_cQ[4]; if (pol_cQ[0].toLowerCase().indexOf('polyad_extendbanner') > 0 && pol_cQ[1].toLowerCase() == 'http://cp.polyad.net') { pol_dg = pol_dg.concat('<IFRAME MARGINWIDTH="0" ALLOWTRANSPARENCY="true" MARGINHEIGHT="0" HSPACE="0" VSPACE="0" FRAMEBORDER="0" SCROLLING="no" '); pol_dg = pol_dg.concat(' WIDTH="').concat(pol_cQ[3]).concat('" HEIGHT="').concat(pol_cQ[4]).concat('" '); pol_dg = pol_dg.concat(' SRC="').concat(pol_aV).concat('/Script/ExtendBanner/').concat(pol_j(pol_cQ[2].split(',')[12])).concat('.htm"></IFRAME>'); } else { if (pol_h(pol_cQ[0], 4).toLowerCase() == '.swf') { pol_dg = pol_dg.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_cn).concat(' height=').concat(pol_cm).concat('>'); pol_dg = pol_dg.concat('<param name="movie" value="').concat(pol_dd).concat('">'); pol_dg = pol_dg.concat('<param name="AllowScriptAccess" value="always">'); pol_dg = pol_dg.concat('<param name="quality" value="High">'); pol_dg = pol_dg.concat('<param name="wmode" value="transparent">'); pol_dg = pol_dg.concat('<param name="FlashVars" value="').concat('link=').concat(escape(pol_l(pol_cQ[2].substring(pol_cQ[2].lastIndexOf(',') + 2), pol_cQ[1], false))).concat('&zoneid=').concat(pol_cl).concat('&actionTag=').concat(escape(pol_aB)).concat('">'); pol_dg = pol_dg.concat('<embed src="').concat(pol_dd).concat('" FlashVars="').concat('link=').concat(escape(pol_l(pol_cQ[2].substring(pol_cQ[2].lastIndexOf(',') + 2), pol_cQ[1], false))).concat('&zoneid=').concat(pol_cl).concat('&actionTag=').concat(escape(pol_aB)).concat('" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" AllowScriptAccess="always" width=').concat(pol_cn).concat(' height=').concat(pol_cm).concat('>'); pol_dg = pol_dg.concat('</object>'); } else { if (pol_cQ[1] != '') { pol_dg = '<img src="'.concat(pol_dd).concat('" onClick="return pol_H(\'').concat(pol_cQ[1]).concat('\', ').concat(pol_cQ[2]).concat(', 1)" style="cursor:pointer;" border=0 width=').concat(pol_cn).concat(' height=').concat(pol_cm).concat('>'); } else { pol_dg = '<img src="'.concat(pol_dd).concat('" border=0 width=').concat(pol_cn).concat(' height=').concat(pol_cm).concat('>'); } } } return pol_dg; }; cpmst_adlistshow.prototype.pol_aX = function(pol_cQ) { var pol_aN = false; var pol_cb; if (this.pol_di == 8) { pol_cb = pol_cQ[9]; } else { pol_cb = pol_cQ[6]; } if (pol_cb == 3 && this.pol_aP < 4) pol_aN = true; else if (pol_cb == this.pol_aP || pol_cb == 0) pol_aN = true; if (typeof (PAGE_FOLDER) != 'undefined') { if (PAGE_FOLDER == 9998) if (pol_cQ[1].indexOf('http://www.nguoinemngon.vn') >= 0) { if (window.location.href.indexOf("c=17") > 0) { return true } else { return false } } } var pol_dC = pol_cQ[2].lastIndexOf(','); var pol_dz = parseInt(pol_cQ[2].substr(pol_dC + 2)); if (pol_dz == 4204) { if (typeof (pol_as) != 'undefined') { if (pol_as == 6 || pol_as == 11 || pol_as == 15 || pol_as == 19) { return true; } else { return false; } } } if (pol_dz == 4203) { if (typeof (PAGE_FOLDER) != 'undefined') { if (PAGE_FOLDER == 2 || PAGE_FOLDER == 3 || PAGE_FOLDER == 4 || PAGE_FOLDER == 10) { return true; } else { return false; } } } if (typeof (TOPIC_ID) != 'undefined') { if (pol_cQ[0].toLowerCase().indexOf('topic') > -1) { var pol_aA = pol_cQ[0].split("_"); if (pol_aA.length > 0) pol_aA = pol_aA[0].split("+"); if (pol_aA.length > 1) { for (var i = 1; i < pol_aA.length; i++) { if (TOPIC_ID == pol_aA[i]) { return true; } } return false; } } } if (pol_aN && this.pol_di == 7) { pol_aN = false; if (typeof (pol_bR) == 'undefined') return; var pol_bQ = new Date(pol_cQ[7]); var pol_bS = new Date(pol_cQ[8]); var pol_cc = (pol_bR.getTime() - pol_bQ.getTime()) / 1000; var pol_ci = (pol_bS.getTime() - pol_bR.getTime()) / 1000; if (pol_cc < 5 * 86400 && pol_cc >= 0 && pol_ci > 5 * 86400 && pol_ci >= 0) { pol_aN = true; } } return pol_aN; }; function pol_J() { return (Math.random() * 10000) - 5000; }; function pol_I(pol_dB, pol_dN, pol_dJ, pol_dH, pol_dO, pol_dx, pol_dM, pol_dD, pol_dy) { if (typeof (pol_dy) == 'undefined') { pol_dy = false; } var pol_cW = '/Library/Common/PopupUnder.Asp?vImage='; if (window.location.href.toLowerCase().indexOf("sohoa.vnexpress.net") > -1) { pol_cW = '/Library/Popup.Aspx?vImage='; } else if (window.location.href.toLowerCase().indexOf("gamethu.vnexpress.net") > -1) { pol_cW = '/Library/Popup.Aspx?vImage='; } else if (window.location.href.toLowerCase().indexOf("vnexpress.net") > -1) { pol_cW = '/Library/Common/PopupUnder.Asp?vImage='; } else if (window.location.href.toLowerCase().indexOf("ngoisao.net") > -1) { pol_cW = '/Library/PopupUnder.Asp?vImage='; } if (pol_dy) { var pol_cX = open(pol_cW.concat(escape(pol_dB)).concat('&vLink=').concat(escape(pol_dN)).concat('&vTitle=').concat(escape(pol_dJ)), 'Popup_'.concat(pol_g(pol_dJ, ' ', '_')), 'status=no,resizable=no,scrollbars='.concat(pol_dH).concat(',toolbar=no,location=no,fullscreen=no,titlebar=no,height=').concat(pol_dx).concat(',').concat('width=').concat(pol_dO).concat(',').concat('top=').concat(0).concat(',').concat('left=').concat(0)); var pol_al = pol_dN; window.focus(); if (pol_cX) { pol_cX.blur() }; return pol_cX; } else { return open(pol_cW.concat(escape(pol_dB)).concat('&vLink=').concat(escape(pol_dN)).concat('&vTitle=').concat(escape(pol_dJ)), 'Popup_'.concat(pol_g(pol_dJ, ' ', '_')), 'status=no,resizable=no,scrollbars=no,toolbar=no,location=no,fullscreen=no,titlebar=yes,height='.concat(pol_dx).concat(',').concat('width=').concat(pol_dO).concat(',').concat('top=').concat(pol_dM).concat(',').concat('left=').concat(pol_dD)); } }; function pol_H(vLink, pol_dI, pol_dG, pol_dH, pol_dL, pol_dE, pol_dw, pol_dK, pol_du, pol_dx, pol_dO, pol_dM, pol_dD, pol_dz, pol_dv) { var pol_df = (typeof (vLink.href) == 'undefined') ? vLink : vLink.href; pol_dG = 1; pol_dH = 1; pol_dI = 1; pol_dL = 1; pol_dE = 1; pol_dK = 1; pol_dx = 600; pol_dO = 800; pol_dP = ''; pol_dP = pol_dP.concat('status=').concat((pol_dI) ? 'yes' : 'no').concat(','); pol_dP = pol_dP.concat('resizable=').concat((pol_dG) ? 'yes' : 'no').concat(','); pol_dP = pol_dP.concat('scrollbars=').concat((pol_dH) ? 'yes' : 'no').concat(','); pol_dP = pol_dP.concat('toolbar=').concat((pol_dL) ? 'yes' : 'no').concat(','); pol_dP = pol_dP.concat('location=').concat((pol_dE) ? 'yes' : 'no').concat(','); pol_dP = pol_dP.concat('fullscreen=').concat((pol_dw) ? 'yes' : 'no').concat(','); pol_dP = pol_dP.concat('titlebar=').concat((pol_dK) ? 'yes' : 'no').concat(','); pol_dP = pol_dP.concat('height=').concat(pol_dx - 140).concat(','); pol_dP = pol_dP.concat('width=').concat(pol_dO).concat(','); if (pol_du) { pol_dP = pol_dP.concat('top=').concat((screen.height - pol_dx) / 2).concat(','); pol_dP = pol_dP.concat('left=').concat((screen.width - pol_dO) / 2); } else { pol_dP = pol_dP.concat('top=').concat(pol_dM).concat(','); pol_dP = pol_dP.concat('left=').concat(pol_dD); } if (typeof (pol_dv) == 'undefined') { pol_dv = 0; } if (typeof (pol_dz) == 'undefined') { pol_dz = 0; } if (pol_dv) { pol_df = pol_l(pol_dz, pol_df, true); } open(pol_df, '_blank', pol_dP); if (typeof (vLink.href) != 'undefined') { return false; } }; function pol_l(pol_dz, vLink, pol_dF) { var pol_dj = pol_C(); if (vLink == '') return ''; if (pol_dF == true) { return pol_aU.concat('&b=').concat(pol_dz).concat('&s=').concat(pol_dj).concat('&l=').concat(escape(vLink)).concat('&r=').concat(Math.random()); } else { return pol_aU.concat('&b=').concat(pol_dz).concat('&s=').concat(pol_dj).concat('&l=').concat(escape(vLink)); } }; function pol_k(pol_dz) { return pol_aT.concat('&b=').concat(pol_dz).concat('&r=').concat(Math.random()); }; function pol_c(pol_bP, type, pol_bU) { if (typeof (pol_bU) == 'undefined') { pol_bU = 0 }; var pol_dk, pol_dl; if (type == 1) { pol_dk = document.body.clientWidth - 115; } else { pol_dk = 5; } if (type == 2) { pol_dl = document.body.clientHeight; } else { pol_dl = 0; } if (document.body.clientWidth < 980) { pol_dk = -115 }; window.pol_dm = function(pol_bZ, type, pol_bU) { var pol_dk, pol_dl; var pol_cO = (navigator.appName.indexOf("Netscape") != -1); if (type == 1) { pol_dk = document.body.clientWidth - 115; } else { pol_dk = 5; } if (document.body.clientWidth < 980) { pol_bZ.style.display = 'none'; } else { pol_bZ.style.display = ''; if (document.documentElement && document.documentElement.scrollTop) var pol_cV = pol_cO ? pageYOffset : document.documentElement.scrollTop; else if (document.body) var pol_cV = pol_cO ? pageYOffset : document.body.scrollTop; if (type == 2) { pol_dl = document.body.clientHeight - 183; } else { if (document.body.scrollTop > 71) { pol_dl = 3 } else { pol_dl = 71 - document.body.scrollTop }; } pol_bZ.y += (pol_cV + pol_dl - pol_bZ.y) / 8; pol_bZ.style.left = pol_dk; pol_bZ.style.top = pol_bZ.y + pol_bU; } setTimeout(function() { pol_dm(pol_bZ, type, pol_bU) }, 15); }; var pol_bZ = pol_E(pol_bP); if (!pol_bZ) return; pol_bZ.x = pol_dk; pol_bZ.y = pol_dl; pol_dm(pol_bZ, type, pol_bU); }; function pol_E(pol_cE) { if (document.getElementById) { m = document.getElementById(pol_cE) } else if (document.all) { m = document.all[pol_cE] } else if (document.layers) { m = document[pol_cE] } return m; }; function pol_G(pol_cQ, pol_cT) { var p = pol_cT ? pol_cT.slice(0) : [0, 0]; while (pol_cQ) { if (pol_cQ.id.toUpperCase().indexOf("DVSCROLL") != -1) { pol_cQ = pol_cQ.offsetParent; continue; } p[0] += pol_cQ.offsetLeft; p[1] += pol_cQ.offsetTop; if (pol_cQ.tagName.toUpperCase() == "BODY") break; pol_cQ = pol_cQ.offsetParent; } return p; }; function pol_F(pol_cQ, pol_cT) { var p = pol_cT ? pol_cT.slice(0) : [0, 0]; while (pol_cQ) { p[0] += pol_cQ.offsetLeft; p[1] += pol_cQ.offsetTop; if (pol_cQ.tagName.toUpperCase() == "BODY") break; pol_cQ = pol_cQ.offsetParent; } return p; }; function pol_j(pol_ch) { while (pol_ch.charCodeAt(0) <= 32) { pol_ch = pol_ch.substr(1); } while (pol_ch.charCodeAt(pol_ch.length - 1) <= 32) { pol_ch = pol_ch.substr(0, pol_ch.length - 1); } return pol_ch; }; function pol_e(pol_dn, n) { if (n <= 0) return ""; else if (n > String(pol_dn).length) return pol_dn; else return String(pol_dn).substring(0, n); }; function pol_h(pol_dn, n) { if (n <= 0) return ""; else if (n > String(pol_dn).length) return pol_dn; else { var pol_cd = String(pol_dn).length; return String(pol_dn).substring(pol_cd, pol_cd - n); } }; function pol_g(pol_ch, pol_ds, pol_dt) { var i = 0, pol_cP = '', j = pol_ds.length; while (i < pol_ch.length) { if (pol_ch.substr(i, j) == pol_ds) { pol_cP += pol_dt; i += j } else { pol_cP += pol_ch.charAt(i); i++; } } return pol_cP; }; cpmst_adlistshow.prototype.pol_bm = function(type) { if (type == 0) { pol_dC = this.pol_cB[0][2].lastIndexOf(','); pol_dz = this.pol_cB[0][2].substr(pol_dC + 2); pol_df = pol_l(pol_dz, this.pol_cB[0][1], true); pol_aF = this.pol_cB[0][2].split(","); pol_de = this.pol_cB[0][0]; } else if (type == 1) { pol_dC = this.pol_cB[0][2].lastIndexOf(','); pol_dz = this.pol_cB[0][2].substr(pol_dC + 2); pol_df = pol_l(pol_dz, this.pol_cB[0][1], true); pol_aF = this.pol_cB[0][2].split(","); pol_de = this.pol_cB[0][0]; } pol_S(type, pol_df, pol_de, pol_dz, this.pol_cB[0][1]); }; var pol_cq = true; var pol_cr = true; var pol_cf = true; function pol_S(type, pol_df, pol_de, pol_cj, pol_cA) { var clientHeight = 0; var clientWidth = 0; var pol_aQ = 1000; clientHeight = pol_v(); clientWidth = pol_w(); if (document.getElementById("divMove") != null) { pol_aQ = parseInt(pol_E("divMove").style.width.replace("px", "")); } else if (document.getElementById("global") != null) { pol_aQ = parseInt(pol_E("global").style.width.replace("px", "")); } else if (document.getElementById("wrapHome") != null) { pol_aQ = parseInt(pol_E("wrapHome").style.width.replace("px", "")); } if (clientWidth > pol_aQ) { pol_cf = true; if (clientWidth != pol_E("CurrentBrowserWidth").value) { pol_cq = true; pol_cr = true; if (parseInt(pol_E("CurrentBrowserWidth").value) < pol_aQ) pol_cf = true; } if (pol_E("divSlideResultLeft").innerHTML == "" && pol_h(pol_de, 4).toLowerCase() == '.swf') { pol_cq = true; pol_cf = true; } if (pol_E("divSlideResultRight").innerHTML == "" && pol_h(pol_de, 4).toLowerCase() == '.swf') { pol_cr = true; pol_cf = true; } var pol_aB = pol_k(pol_cj); var pol_dg = ""; var pol_dd = (pol_e(pol_de, 7).toLowerCase() == 'http://') ? pol_de : pol_aS.concat(pol_de); var pol_cS = (clientWidth - pol_aQ) / 2; if (pol_cq) { pol_E("divSlideResultLeft").style.left = "0px"; pol_E("divSlideResultLeft").style.width = pol_cS + "px"; pol_cq = pol_cf; } pol_E("divSlideResultLeft").style.height = clientHeight + "px"; if (pol_cr) { pol_E("divSlideResultRight").style.width = pol_cS + "px"; pol_E("divSlideResultRight").style.height = clientHeight + "px"; pol_cr = pol_cf; } pol_E("divSlideResultRight").style.left = pol_cS + pol_aQ + "px"; var br = navigator.appVersion; if (type == 0) { if (pol_cq) { pol_cq = false; if (pol_h(pol_de, 4).toLowerCase() == '.swf') { pol_dg = pol_dg.concat('<div style="float:right;">').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="220" height="900">'); pol_dg = pol_dg.concat('<param name="movie" value="').concat(pol_dd).concat('">'); pol_dg = pol_dg.concat('<param name="AllowScriptAccess" value="always">'); pol_dg = pol_dg.concat('<param name="quality" value="High">'); pol_dg = pol_dg.concat('<param name="wmode" value="transparent">'); pol_dg = pol_dg.concat('<param name="FlashVars" value="').concat('link=').concat(escape(pol_df)).concat('&zoneid=').concat(pol_cj).concat('&actionTag=').concat(escape(pol_aB)).concat('">'); pol_dg = pol_dg.concat('<embed src="').concat(pol_dd).concat('" FlashVars="').concat('link=').concat(escape(pol_df)).concat('&zoneid=').concat(pol_cj).concat('&actionTag=').concat(escape(pol_aB)).concat('" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" AllowScriptAccess="always" width="220" height="900">'); pol_dg = pol_dg.concat('</object>').concat('</div>'); pol_E("divSlideResultLeft").innerHTML = pol_dg; } else { pol_E("divSlideResultLeft").style.backgroundColor = "transparent"; pol_E("divSlideResultLeft").style.backgroundImage = "url('" + pol_dd + "')"; pol_E("divSlideResultLeft").style.width = pol_cS + "px"; pol_E("divSlideResultLeft").style.height = clientHeight + "px"; pol_E("divSlideResultLeft").style.cursor = "hand"; if (pol_cA.length != 0) { if (br.indexOf("MSIE") != -1) { pol_E("divSlideResultLeft").onclick = function() { window.open(pol_df); }; } else { pol_E("divSlideResultLeft").setAttribute("onclick", "javascript:window.open('" + pol_df + "');"); } } } } } else if (type == 1) { if (pol_cr) { pol_cr = false; if (pol_h(pol_de, 4).toLowerCase() == '.swf') { pol_dg = pol_dg.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=6,0,0,0" border="0" width="220" height="900">'); pol_dg = pol_dg.concat('<param name="movie" value="').concat(pol_dd).concat('">'); pol_dg = pol_dg.concat('<param name="AllowScriptAccess" value="always">'); pol_dg = pol_dg.concat('<param name="quality" value="High">'); pol_dg = pol_dg.concat('<param name="wmode" value="transparent">'); pol_dg = pol_dg.concat('<param name="FlashVars" value="').concat('link=').concat(escape(pol_df)).concat('&zoneid=').concat(pol_cj).concat('&actionTag=').concat(escape(pol_aB)).concat('">'); pol_dg = pol_dg.concat('<embed src="').concat(pol_dd).concat('" FlashVars="').concat('link=').concat(escape(pol_df)).concat('&zoneid=').concat(pol_cj).concat('&actionTag=').concat(escape(pol_aB)).concat('" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" AllowScriptAccess="always" width="220" height="900">'); pol_dg = pol_dg.concat('</object>').concat('</div>'); pol_E("divSlideResultRight").innerHTML = pol_dg; } else { pol_E("divSlideResultRight").style.width = pol_cS + "px"; pol_E("divSlideResultRight").style.height = clientHeight + "px"; pol_E("divSlideResultRight").style.backgroundColor = "transparent"; pol_E("divSlideResultRight").style.backgroundImage = "url('" + pol_dd + "')"; pol_E("divSlideResultRight").style.cursor = "hand"; if (pol_cA.length != 0) { if (br.indexOf("MSIE") != -1) { pol_E("divSlideResultRight").onclick = function() { window.open(pol_df); }; } else { pol_E("divSlideResultRight").setAttribute("onclick", "javascript:window.open('" + pol_df + "');"); } } } } } } else { pol_E("divSlideResultLeft").innerHTML = ""; pol_E("divSlideResultRight").innerHTML = ""; pol_E("divSlideResultRight").style.backgroundImage = ""; pol_E("divSlideResultLeft").style.backgroundImage = ""; } pol_E("CurrentBrowserWidth").value = clientWidth; if (type == 0) { a = setTimeout('pol_S("' + type + '","' + pol_df + '","' + pol_de + '","' + pol_cj + '","' + pol_cA + '")', 100); } else if (type == 1) { b = setTimeout('pol_S("' + type + '","' + pol_df + '","' + pol_de + '","' + pol_cj + '","' + pol_cA + '")', 100); } }; var pol_aK; cpmst_adlistshow.prototype.pol_bk = function() { document.write('<table align=center ', (this.pol_cz > 0) ? 'width='.concat(this.pol_cz) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.pol_bE(this.pol_cB, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_bE = function(pol_cQ) { if (pol_cQ.length <= 0) return; var pol_cz = (this.pol_cz < pol_cQ[0][3] && this.pol_cz > 0) ? this.pol_cz : pol_cQ[0][3]; var pol_cy = (this.pol_cy < pol_cQ[0][4] && this.pol_cy > 0) ? this.pol_cy : pol_cQ[0][4]; var pol_cj = ''.concat(this.pol_cI); var pol_bM = this.pol_bK; document.write('<tr><td>'); document.write('<DIV id="', pol_cj, '_position" style="position:relative;overflow:hidden;width:'.concat(pol_cz), 'px;height:'.concat(pol_cy), 'px;"></DIV>'); document.write('<DIV id="', pol_cj, '" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:0px;width:'.concat(pol_cz), 'px;height:'.concat(pol_cy), 'px;">'); document.write('</DIV>'); document.write('<input type="hidden" id="', pol_cj, '_direction" value="', this.direction, '">'); document.write('<input type="hidden" id="', pol_cj, '_status" value="0">'); document.write('</td></tr>'); var pol_aC = this; setTimeout(function() { pol_aC.pol_bF(pol_cQ) }, 300); }; cpmst_adlistshow.prototype.pol_bF = function(pol_cQ) { if (pol_cQ.length <= 0) return; var pol_cz = (this.pol_cz < pol_cQ[0][3] && this.pol_cz > 0) ? this.pol_cz : pol_cQ[0][3]; var pol_cy = (this.pol_cy < pol_cQ[0][4] && this.pol_cy > 0) ? this.pol_cy : pol_cQ[0][4]; var pol_cj = ''.concat(this.pol_cI); var pol_bM = this.pol_bK; var pol_dg = ''; if (pol_cQ[0][3] == 1000 && pol_cQ[0][4] == 400) { pol_dg = pol_dg.concat('<DIV id="').concat(pol_cj).concat('_child" style="position:absolute;top:-75px;left:-510px;width:').concat(pol_cQ[0][3]).concat('px;height:').concat(pol_cQ[0][4]).concat('px;">'); } else { pol_dg = pol_dg.concat('<DIV id="').concat(pol_cj).concat('_child" style="overflow:hidden;position:absolute;top:0px;left:0px;width:').concat(pol_cQ[0][3]).concat('px;height:').concat(pol_cQ[0][4]).concat('px;">'); } pol_dg = pol_dg.concat(pol_m(pol_cQ[0], this.pol_cz, this.pol_cy, false, pol_cj)); pol_dg = pol_dg.concat('</DIV>'); pol_E(pol_cj).innerHTML = pol_dg; pol_O(pol_cj, true); if (this.pol_db && pol_cQ.length > 1) setTimeout(function() { pol_p(pol_cQ, 0, pol_cj, pol_bM, pol_cz, pol_cy, 1) }, pol_bM); }; function pol_p(pol_cQ, index, pol_aI, pol_bM, pol_cz, pol_cy, type) { if (typeof (type) == 'undefined') type = 1; if (pol_E(pol_aI + '_status').value == '0') { if (index == pol_cQ.length - 1) { index = 0; } else { index++; } if (type == 1) { var pol_dg = ''; if (pol_cQ[index][3] == 1000 && pol_cQ[index][4] == 400) { pol_dg = pol_dg.concat('<DIV id="').concat(pol_aI).concat('_child" style="position:absolute;top:-75px;left:-510px;width:').concat(pol_cQ[index][3]).concat('px;height:').concat(pol_cQ[index][4]).concat('px;">'); } else { pol_dg = pol_dg.concat('<DIV id="').concat(pol_aI).concat('_child" style="overflow:hidden;position:absolute;top:0px;left:0px;width:').concat(pol_cQ[index][3]).concat('px;height:').concat(pol_cQ[index][4]).concat('px;">'); } pol_dg = pol_dg.concat(pol_m(pol_cQ[index], pol_cz, pol_cy, false, pol_aI)); pol_dg = pol_dg.concat('</DIV>'); pol_E(pol_aI).innerHTML = pol_dg; clearTimeout(pol_aK); pol_O(pol_aI, true); } } setTimeout(function() { pol_p(pol_cQ, index, pol_aI, pol_bM, pol_cz, pol_cy, type) }, pol_bM); }; function pol_O(id, pol_bV) { var pol_cx = 0; if (document.getElementById(id + '_child') != null) pol_cx = parseInt(pol_E(id + '_child').offsetWidth); if (id == 'LargeLogo1' && pol_cx != 1000) { pol_N(id, pol_bV, 1); pol_aK = setTimeout(function() { pol_O(id, false) }, 100); return; } var pol_bY = true; if (pol_E(id + '_direction')) { direction = pol_E(id + '_direction').value; } else { direction = 0; } if (pol_E(id) && pol_E(id + '_position')) { var pol_cC = 0; if (typeof (window.innerWidth) == 'number') { pol_cC = window.innerWidth; pol_cC = (pol_cC - 1017) / 2; } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { pol_cC = document.documentElement.clientWidth; pol_cC = (pol_cC - 1002) / 2; } var pol_ao = pol_G(pol_E(id + '_position'))[1]; var pol_an = pol_G(pol_E(id + '_position'))[0]; var pol_ap = parseInt(pol_E(id + '_position').offsetWidth); var pol_am = parseInt(pol_E(id + '_position').offsetHeight); var pol_ae = parseInt(pol_E(id).offsetWidth); var pol_ad = parseInt(pol_E(id).offsetHeight); if (pol_ad > pol_am) { pol_E(id).style.left = pol_cC + 'px'; pol_E(id).style.top = pol_ao - 75 + 'px'; pol_E(id + '_child').style.left = "0px"; pol_E(id + '_child').style.top = "0px"; } else { pol_E(id).style.left = pol_an - pol_ae + pol_ap + 'px'; pol_E(id).style.top = pol_ao + 'px'; } } pol_aK = setTimeout(function() { pol_O(id, false) }, 100); }; function cpmst_expandselfbannerfull(pol_aI, pol_cz, pol_cy) { pol_E(pol_aI).style.zIndex = "99999"; pol_E(pol_aI + '_status').value = 1; if (pol_E(pol_aI + '_position')) { pol_E(pol_aI).style.height = pol_cy + 'px'; pol_E(pol_aI).style.width = pol_cz + 'px'; var pol_cC = 0; var pol_ao = pol_G(pol_E(pol_aI + '_position'))[1]; if (typeof (window.innerWidth) == 'number') { pol_cC = window.innerWidth; } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { pol_cC = document.documentElement.clientWidth; } pol_cC = (pol_cC - 1018) / 2; pol_E(pol_aI).style.left = pol_cC + "px"; pol_E(pol_aI + "_child").style.left = "0px"; return; } }; function cpmst_collapselfbannerfull(pol_aI, pol_cz, pol_cy) { pol_E(pol_aI).style.zIndex = "100"; pol_E(pol_aI + '_status').value = 0; pol_E(pol_aI).style.width = pol_cz + "px"; pol_E(pol_aI).style.height = pol_cy + "px"; var pol_ao = pol_G(pol_E(pol_aI + '_position'))[1]; var pol_an = pol_G(pol_E(pol_aI + '_position'))[0]; pol_E(pol_aI + "_child").style.top = "-75px"; pol_E(pol_aI + "_child").style.left = "-510px"; pol_E(pol_aI).style.left = pol_an + "px"; pol_E(pol_aI).style.top = pol_ao + "px"; }; cpmst_adlistshow.prototype.pol_bn = function(pol_cQ) { document.write('<table align=center ', (this.pol_cz > 0) ? 'width='.concat(this.pol_cz) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.pol_bH(this.pol_cB, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_bH = function(pol_cQ) { if (pol_cQ.length <= 0) return; var pol_dd = (pol_e(pol_cQ[0], 7).toLowerCase() == 'http://') ? pol_cQ[0] : pol_aS.concat(pol_cQ[0]); var pol_cz = (this.pol_cz < pol_cQ[0][3] && this.pol_cz > 0) ? this.pol_cz : pol_cQ[0][3]; var pol_cy = (this.pol_cy < pol_cQ[0][4] && this.pol_cy > 0) ? this.pol_cy : pol_cQ[0][4]; var pol_cn = (pol_cz < pol_cQ[3] && pol_cz > 0 && pol_aO) ? pol_cz : pol_cQ[3]; var pol_cm = (pol_cy < pol_cQ[4] && pol_cy > 0 && pol_aO) ? pol_cy : pol_cQ[4]; var pol_aB = pol_k(pol_cQ[2].substring(pol_cQ[2].lastIndexOf(',') + 2)); var pol_cj = ''.concat(this.pol_cI); var pol_bM = this.pol_bK; var pol_dg = ''; document.write('<tr><td>'); document.write('<DIV id="', pol_cj, '" style="position:absolute;overflow:hidden;width:207px;height:14px;z-index:10001;">'); pol_dg = pol_dg.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_dg = pol_dg.concat('<param name="movie" value="').concat(pol_cQ[0]).concat('">'); pol_dg = pol_dg.concat('<param name="AllowScriptAccess" value="always">'); pol_dg = pol_dg.concat('<param name="quality" value="High">'); pol_dg = pol_dg.concat('<param name="wmode" value="transparent">'); pol_dg = pol_dg.concat('<param name="FlashVars" value="').concat('zoneid=').concat(pol_cj).concat('&actionTag=').concat(escape(pol_aB)).concat('">'); pol_dg = pol_dg.concat('<embed src="').concat(pol_cQ[0]).concat('" FlashVars="').concat('zoneid=').concat(pol_cj).concat('&actionTag=').concat(escape(pol_aB)).concat('" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" name="SpecialFlashBanner" AllowScriptAccess="always" width="350" height="350">'); pol_dg = pol_dg.concat('</object>'); document.write(pol_dg); document.write('</DIV>'); document.write('<input type="hidden" id="', pol_cj, '_status" value="0">'); document.write('</td></tr>'); window.onresize = function() { pol_au(); }; window.onload = function() { pol_au(); } }; function pol_i() { var pol_cY = window.innerWidth != null ? window.innerWidth : document.body != null ? document.body.clientWidth : null; var pol_bX = pol_D("SpecialFlashBanner"); pol_bX.pol_av("/:pagewidth", pol_cY); }; function pol_D(pol_cD) { if (window.document[pol_cD]) { return window.document[pol_cD]; } if (navigator.appName.indexOf("Microsoft Internet") == -1) { if (document.embeds && document.embeds[pol_cD]) return document.embeds[pol_cD]; } else { return document.getElementById(pol_cD); } }; var pol_cp = false; function cpmst_showInnerPopupBanner(pol_dA, pol_df, pol_cz, pol_cy, type) { if (typeof (type) == 'undefined') type = 0; if (!pol_cp) { var pol_cH = pol_w(); var pol_cF = pol_v(); var pol_cG = pol_f(); var pol_bO = document.createElement('div'); pol_bO.setAttribute('id', 'hideshow'); pol_bO.style.visibility = "hidden"; pol_bO.style.position = "absolute"; pol_bO.style.width = pol_cH + "px"; pol_bO.style.height = pol_cG + "px"; pol_bO.style.top = "0px"; pol_bO.style.left = "0px"; pol_bO.style.zIndex = "1000"; pol_bO.style.overflow = "hidden"; document.body.appendChild(pol_bO); var pol_dc = ""; pol_dc = pol_dc.concat('<IFRAME MARGINWIDTH="0" MARGINHEIGHT="0" HSPACE="0" VSPACE="0" FRAMEBORDER="0" SCROLLING="no" '); pol_dc = pol_dc.concat(' WIDTH="').concat(pol_cz).concat('" HEIGHT="').concat(pol_cy).concat('" '); pol_dc = pol_dc.concat(' SRC="' + pol_df + '"></IFRAME>'); var pol_dg = ""; pol_dg = pol_dg.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_cG).concat("px").concat('" onclick="javascript:cpmst_hideDivInnerPopup(').concat(pol_dA).concat(')"').concat('>').concat('</div>'); pol_dg = pol_dg.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_cz).concat('px;').concat('">'); pol_dg = pol_dg.concat('<div style="z-index:100;">').concat(pol_dc).concat('</div>'); pol_dg = pol_dg.concat('</div>'); pol_dg = pol_dg.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_dA).concat(')"').concat('>').concat('</div>'); pol_E("hideshow").innerHTML = pol_dg; var pol_dp; var pol_cu; if (type == 0) { if (pol_E("imgcontent").style.position == "absolute") { pol_dp = ((pol_cF / 2) - (pol_cy / 2) + cpmst_scrollTop()) > cpmst_scrollTop() + 15 ? ((pol_cF / 2) - (pol_cy / 2) + cpmst_scrollTop()) : cpmst_scrollTop() + 15; pol_cu = ((pol_cH / 2) - (pol_cz / 2) + pol_K()) > 0 ? ((pol_cH / 2) - (pol_cz / 2) + pol_K()) : 10; } else { pol_dp = ((pol_cF / 2) - (pol_cy / 2)) > 15 ? ((pol_cF / 2) - (pol_cy / 2)) : 15; pol_cu = ((pol_cH / 2) - (pol_cz / 2)) > 0 ? ((pol_cH / 2) - (pol_cz / 2)) : 10; } } else { if (pol_E("imgcontent").style.position == "absolute") { pol_dp = cpmst_scrollTop(); pol_cu = (pol_cH - pol_cz) / 2; } else { pol_dp = 0; pol_cu = (pol_cH - pol_cz) / 2; } } pol_E("imgcontent").style.top = "".concat(pol_dp).concat("px"); pol_E("imgcontent").style.left = "".concat(pol_cu).concat("px"); pol_E("imgclose").style.top = "".concat(pol_dp - 15).concat("px"); pol_E("imgclose").style.left = "".concat(pol_cu + 14 + pol_cz).concat("px"); pol_L(pol_dA); pol_cp = true; } else { pol_L(pol_dA); } setTimeout('pol_a("' + pol_cH + '","' + pol_cF + '","' + pol_cz + '","' + pol_cy + '","' + type + '")', 100); }; function pol_a(pol_aM, pol_aL, pol_cz, pol_cy, type) { var pol_cz = parseInt(pol_cz); var pol_cy = parseInt(pol_cy); var pol_aM = parseInt(pol_aM); var pol_aL = parseInt(pol_aL); var pol_cH = pol_w(); var pol_cF = pol_v(); var type = parseInt(type); var pol_dp; var pol_cu; if ((pol_cH != pol_aM || pol_cF != pol_aL) && document.getElementById("imgcontent") != null && document.getElementById("imgclose") != null) { if (type == 0) { if (pol_E("imgcontent").style.position == "absolute") { pol_dp = ((pol_cF / 2) - (pol_cy / 2) + cpmst_scrollTop()) > cpmst_scrollTop() + 15 ? ((pol_cF / 2) - (pol_cy / 2) + cpmst_scrollTop()) : cpmst_scrollTop() + 15; pol_cu = ((pol_cH / 2) - (pol_cz / 2) + pol_K()) > 0 ? ((pol_cH / 2) - (pol_cz / 2) + pol_K()) : 10; } else { pol_dp = ((pol_cF / 2) - (pol_cy / 2)) > 15 ? ((pol_cF / 2) - (pol_cy / 2)) : 15; pol_cu = ((pol_cH / 2) - (pol_cz / 2)) > 0 ? ((pol_cH / 2) - (pol_cz / 2)) : 10; } } else { if (pol_E("imgcontent").style.position == "absolute") { pol_dp = cpmst_scrollTop(); pol_cu = (pol_cH - pol_cz) / 2; } else { pol_dp = 0; pol_cu = (pol_cH - pol_cz) / 2; } } pol_E("imgcontent").style.top = "".concat(pol_dp).concat("px"); pol_E("imgcontent").style.left = "".concat(pol_cu).concat("px"); pol_E("imgclose").style.top = "".concat(pol_dp - 15).concat("px"); pol_E("imgclose").style.left = "".concat(pol_cu + 14 + pol_cz).concat("px"); } if (document.getElementById("imgcontent") != null && document.getElementById("imgclose") != null) setTimeout('pol_a("' + pol_cH + '","' + pol_cF + '","' + pol_cz + '","' + pol_cy + '","' + type + '")', 100); }; function pol_L(pol_dA) { pol_E('hideshow').style.visibility = 'visible'; }; function cpmst_hideDivInnerPopup(pol_dA) { pol_E('hideshow').style.visibility = 'hidden'; var pol_cU = pol_E("hideshow"); document.body.removeChild(pol_cU); pol_cp = false; }; cpmst_adlistshow.prototype.pol_aY = function() { document.write('<table align=center ', (this.pol_cz > 0) ? 'width='.concat(this.pol_cz) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.pol_br(this.pol_cB, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_br = function(pol_cQ) { if (pol_cQ.length <= 0) return; var pol_cz = (this.pol_cz < pol_cQ[0][3] && this.pol_cz > 0) ? this.pol_cz : pol_cQ[0][3]; var pol_cy = (this.pol_cy < pol_cQ[0][4] && this.pol_cy > 0) ? this.pol_cy : pol_cQ[0][4]; var pol_cj = ''.concat(this.pol_cI); var pol_bM = this.pol_bK; document.write('<tr><td>'); document.write('<DIV id="', pol_cj, '_position" style="position:relative;overflow:hidden;width:'.concat(pol_cz), 'px;height:'.concat(pol_cy), 'px;"></DIV>'); document.write('<DIV id="', pol_cj, '" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:-1000px;width:'.concat(pol_cz), 'px;height:'.concat(pol_cy), 'px;">'); document.write('</DIV>'); document.write('<input type="hidden" id="', pol_cj, '_direction" value="', this.direction, '">'); document.write('<input type="hidden" id="', pol_cj, '_status" value="0">'); document.write('</td></tr>'); var pol_aC = this; if (window.addEventListener) window.addEventListener("load", function() { pol_aC.pol_bs(pol_cQ) }, false); else if (window.attachEvent) window.attachEvent("onload", function() { pol_aC.pol_bs(pol_cQ) }); else if (document.getElementById) setTimeout(function() { pol_aC.pol_bs(pol_cQ) }, 500); }; cpmst_adlistshow.prototype.pol_bs = function(pol_cQ) { if (pol_cQ.length <= 0) return; var pol_cz = (this.pol_cz < pol_cQ[0][3] && this.pol_cz > 0) ? this.pol_cz : pol_cQ[0][3]; var pol_cy = (this.pol_cy < pol_cQ[0][4] && this.pol_cy > 0) ? this.pol_cy : pol_cQ[0][4]; var pol_cj = ''.concat(this.pol_cI); var pol_bM = this.pol_bK; var pol_dg = ''; if (pol_cQ[0][3] == 1440 && pol_cQ[0][4] == 900) { pol_dg = pol_dg.concat('<DIV id="').concat(pol_cj).concat('_child" style="position:absolute;top:-162px;left:-962px;width:').concat(pol_cQ[0][3]).concat('px;height:').concat(pol_cQ[0][4]).concat('px;">'); } else { pol_dg = pol_dg.concat('<DIV id="').concat(pol_cj).concat('_child" style="overflow:hidden;position:absolute;top:0px;left:0px;width:').concat(pol_cQ[0][3]).concat('px;height:').concat(pol_cQ[0][4]).concat('px;">'); } pol_dg = pol_dg.concat(pol_m(pol_cQ[0], this.pol_cz, this.pol_cy, false, pol_cj)); pol_dg = pol_dg.concat('</DIV>'); pol_E(pol_cj).innerHTML = pol_dg; pol_P(pol_cj, pol_cQ[0][3], true); if (this.pol_db && pol_cQ.length > 1) setTimeout(function() { pol_q(pol_cQ, 0, pol_cj, pol_bM, pol_cz, pol_cy, 1) }, pol_bM); }; function pol_q(pol_cQ, index, pol_aI, pol_bM, pol_cz, pol_cy, type) { if (typeof (type) == 'undefined') type = 1; if (pol_E(pol_aI + '_status').value == '0') { if (index == pol_cQ.length - 1) { index = 0; } else { index++; } if (type == 1) { var pol_dg = ''; if (pol_cQ[index][3] == 1440 && pol_cQ[index][4] == 900) { pol_dg = pol_dg.concat('<DIV id="').concat(pol_aI).concat('_child" style="position:absolute;top:-162px;left:-962px;width:').concat(pol_cQ[index][3]).concat('px;height:').concat(pol_cQ[index][4]).concat('px;">'); } else { pol_dg = pol_dg.concat('<DIV id="').concat(pol_aI).concat('_child" style="overflow:hidden;position:absolute;top:0px;left:0px;width:').concat(pol_cQ[index][3]).concat('px;height:').concat(pol_cQ[index][4]).concat('px;">'); } pol_dg = pol_dg.concat(pol_m(pol_cQ[index], pol_cz, pol_cy, false, pol_aI)); pol_dg = pol_dg.concat('</DIV>'); pol_E(pol_aI).innerHTML = pol_dg; cpmst_stayfloatdivchildExpandFullScreen(pol_aI, pol_cQ[index][3]); } } setTimeout(function() { pol_q(pol_cQ, index, pol_aI, pol_bM, pol_cz, pol_cy, type) }, pol_bM); }; function cpmst_stayfloatdivchildExpandFullScreen(id, pol_cx) { pol_B(id); }; function pol_P(id, pol_cx, pol_bV) { if (document.getElementById(id + '_child') != null) pol_cx = parseInt(pol_E(id + '_child').offsetWidth); if (id == 'VBannerShared' && pol_cx != 1440) { pol_N(id, pol_bV, 1); setTimeout(function() { pol_P(id, pol_cx, false) }, 100); return; } var pol_bY = true; if (pol_E(id + '_direction')) { direction = pol_E(id + '_direction').value; } else { direction = 0; } if (pol_E(id) && pol_E(id + '_position')) { var pol_cC = 0; pol_cC = pol_w(); pol_cC = (pol_cx - pol_cC + 22) / 2; var pol_ao = pol_G(pol_E(id + '_position'))[1]; var pol_an = pol_G(pol_E(id + '_position'))[0]; var pol_ap = parseInt(pol_E(id + '_position').offsetWidth); var pol_am = parseInt(pol_E(id + '_position').offsetHeight); var pol_ae = parseInt(pol_E(id).offsetWidth); var pol_ad = parseInt(pol_E(id).offsetHeight); if (pol_ad > pol_am && pol_E(id + '_status').value == '1') { pol_E(id).style.left = -1 * pol_cC + 'px'; pol_E(id).style.top = '0px'; pol_E(id + '_child').style.left = "0px"; pol_E(id + '_child').style.top = "0px"; } else { pol_E(id).style.left = pol_an - pol_ae + pol_ap + 'px'; pol_E(id).style.top = pol_ao + 'px'; } } pol_bI = setTimeout(function() { pol_P(id, pol_cx, false) }, 100); }; function cpmst_expandfullscreen(pol_aI, pol_cz, pol_cy) { pol_E(pol_aI).style.zIndex = "99999"; pol_E(pol_aI + '_status').value = 1; if (pol_E(pol_aI + '_position')) { pol_E(pol_aI).style.height = pol_cy + 'px'; pol_E(pol_aI).style.width = pol_cz + 'px'; var pol_cC = 0; pol_cC = pol_w(); pol_cC = (pol_cz - pol_cC + 22) / 2; pol_E(pol_aI).style.left = -1 * pol_cC + "px"; pol_E(pol_aI).style.top = "0px"; pol_E(pol_aI + "_child").style.left = "0px"; pol_E(pol_aI + "_child").style.top = "0px"; return; } }; function cpmst_collapfullscreen(pol_aI, pol_cz, pol_cy) { pol_E(pol_aI).style.width = pol_cz + "px"; pol_E(pol_aI).style.height = pol_cy + "px"; var pol_ao = pol_G(pol_E(pol_aI + '_position'))[1]; var pol_an = pol_G(pol_E(pol_aI + '_position'))[0]; if (pol_aI == 'LEADER_BOARD') { pol_E(pol_aI + "_child").style.top = "-4px"; pol_E(pol_aI + "_child").style.left = "-472px"; } else { pol_E(pol_aI + "_child").style.top = "-162px"; pol_E(pol_aI + "_child").style.left = "-962px"; } pol_E(pol_aI).style.left = pol_an + "px"; pol_E(pol_aI).style.top = pol_ao + "px"; pol_E(pol_aI + "_status").value = 0; }; function cpmst_expandextendbanner(pol_aI) { if (document.getElementById(pol_aI + "_status") != null) { pol_E(pol_aI + "_status").value = 1; } }; function cpmst_collapextendbanner(pol_aI) { if (document.getElementById(pol_aI + "_status") != null) { pol_E(pol_aI + "_status").value = 0; } }; cpmst_adlistshow.prototype.pol_bc = function() { this.pol_bv(this.pol_cB, 0); pol_r(this.pol_cI, this.pol_cz); }; cpmst_adlistshow.prototype.pol_bv = function(pol_cQ) { if (pol_cQ.length <= 0) return; var pol_cz = (this.pol_cz < pol_cQ[0][3] && this.pol_cz > 0) ? this.pol_cz : pol_cQ[0][3]; var pol_cy = (this.pol_cy < pol_cQ[0][4] && this.pol_cy > 0) ? this.pol_cy : pol_cQ[0][4]; var pol_cj = ''.concat(this.pol_cI); var pol_bM = this.pol_bK; document.write('<DIV id="', pol_cj, '_position" style="position:absolute; right:0px; top:0px; overflow:hidden;width:'.concat(pol_cz), 'px;height:'.concat(pol_cy), 'px;"></DIV>'); document.write('<DIV id="', pol_cj, '" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:-1000px;width:'.concat(pol_cz), 'px;height:'.concat(pol_cy), 'px;">'); document.write('</DIV>'); document.write('<input type="hidden" id="', pol_cj, '_direction" value="', this.direction, '">'); document.write('<input type="hidden" id="', pol_cj, '_status" value="0">'); var pol_aC = this; if (window.addEventListener) window.addEventListener("load", function() { pol_aC.pol_bz(pol_cQ) }, false); else if (window.attachEvent) window.attachEvent("onload", function() { pol_aC.pol_bz(pol_cQ) }); else if (document.getElementById) setTimeout(function() { pol_aC.pol_bz(pol_cQ) }, 500); }; function pol_r(pol_aI, pol_cz) { var pol_aQ = 1000; if (document.getElementById("divMove") != null) { pol_aQ = parseInt(pol_E("divMove").style.width.replace("px", "")); } else if (document.getElementById("global") != null) { pol_aQ = parseInt(pol_E("global").style.width.replace("px", "")); } else if (document.getElementById("wrapHome") != null) { pol_aQ = parseInt(pol_E("wrapHome").style.width.replace("px", "")); } var clientWidth = 0; clientWidth = pol_w(); pol_aQ = pol_aQ + 2 * pol_cz; if (clientWidth > pol_aQ) { pol_E(pol_aI).style.display = "block"; } else { pol_E(pol_aI).style.display = "none"; } setTimeout(function() { pol_r(pol_aI, pol_cz) }, 100); }; cpmst_adlistshow.prototype.pol_aZ = function() { if (this.pol_cB.length <= 0) return; if (this.pol_cB[0].length <= 0) return; var pol_dd = (pol_e(this.pol_cB[0][0], 7).toLowerCase() == 'http://') ? this.pol_cB[0][0] : pol_aS.concat(this.pol_cB[0][0]); document.write('<style type="text/css">'); document.write("body{margin:0px; padding:0px 0px 60px;background:#FFFFFF url('" + pol_dd + "') 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_T(this.pol_cB); }; function pol_T(pol_cQ) { if (pol_cQ.length <= 0) return; var pol_dC = pol_cQ[0][2].lastIndexOf(','); var pol_dz = pol_cQ[0][2].substr(pol_dC + 2); var pol_df = pol_l(pol_dz, pol_cQ[0][1], true); var pol_dd = (pol_e(pol_cQ[0][0], 7).toLowerCase() == 'http://') ? pol_cQ[0][0] : pol_aS.concat(pol_cQ[0][0]); var clientWidth = 0; clientWidth = pol_w(); var clientHeight = 0; clientHeight = pol_v(); if (clientWidth > 1024) { var br = navigator.appVersion; var pol_cS = 0; pol_cS = (clientWidth - 1000) / 2; if (br.match("MSIE")) { pol_cS = (clientWidth - 980) / 2; if (br.match("MSIE 6") || br.match("MSIE 5")) { pol_E("divResult").innerHTML = "<div onclick=javascript:window.open('" + pol_df + "') class='divFixed divFixedBg_IE6' id='divL' style='width:" + pol_cS + "px;height:" + clientHeight + "px;'></div>"; pol_E("divResult").innerHTML += "<div onclick=javascript:window.open('" + pol_df + "') class='divFixed_R divFixedBg_RIE6' id='divR' style='width:" + pol_cS + "px;height:" + clientHeight + "px;'></div>"; } else { pol_E("divResult").innerHTML = "<div onclick=javascript:window.open('" + pol_df + "')  id='divL' style='position: fixed!Important; position:absolute; z-index: 5000;cursor:pointer; background:#FFFFFF;opacity:0.4;filter:alpha(opacity = 0); width:" + pol_cS + "px;height:" + clientHeight + "px;'></div>"; pol_E("divResult").innerHTML += "<div onclick=javascript:window.open('" + pol_df + "') id='divR' style='position: fixed!Important; position:absolute; z-index: 5000;cursor:pointer; background:#FFFFFF;opacity:0.4;filter:alpha(opacity = 0); width:" + pol_cS + "px;height:" + clientHeight + "px;'></div>"; } if (pol_E("divL").style.position == 'fixed') { pol_E("divL").style.top = "0px"; pol_E("divL").style.left = "0px"; } else { pol_E("divL").style.top = cpmst_scrollTop() + "px"; pol_E("divL").style.left = pol_K() + "px"; } if (pol_E("divR").style.position == 'fixed') { pol_E("divR").style.top = "0px"; pol_E("divR").style.right = "0px"; } else { pol_E("divR").style.top = cpmst_scrollTop() + "px"; pol_E("divR").style.right = pol_K() + "px"; } } else { pol_cS = (clientWidth - 996) / 2; pol_E("divResult").innerHTML = "<div id='divL' onclick=javascript:window.open('" + pol_df + "') style='position: fixed!Important; position:absolute; float: left; left:0px; top: 0px; cursor:pointer; background-color:transparent; width:" + pol_cS + "px;height:" + clientHeight + "px;'></div>"; pol_E("divResult").innerHTML += "<div id='divR' onclick=javascript:window.open('" + pol_df + "') style='position: fixed!Important; position:absolute; float: right; right:0px; top:0px; cursor:pointer; background-color:transparent; width:" + pol_cS + "px;height:" + clientHeight + "px;'></div>"; } } else { pol_E("divResult").innerHTML = ""; } window.onresize = function() { pol_T(pol_cQ) }; window.onscroll = function() { pol_s() }; }; function pol_s() { if (document.getElementById("divL") != null) { if (pol_E("divL").style.position == 'absolute') { pol_E("divL").style.top = cpmst_scrollTop() + "px"; pol_E("divL").style.left = pol_K() + "px"; } } if (document.getElementById("divR") != null) { if (pol_E("divR").style.position == 'absolute') { pol_E("divR").style.top = cpmst_scrollTop() + "px"; pol_E("divR").style.right = pol_K() + "px"; } } }; cpmst_adlistshow.prototype.pol_ba = function() { if (this.pol_cB.length <= 0) return; var pol_cz = (this.pol_cz < this.pol_cB[0][3] && this.pol_cz > 0) ? this.pol_cz : this.pol_cB[0][3]; var pol_cy = (this.pol_cy < this.pol_cB[0][4] && this.pol_cy > 0) ? this.pol_cy : this.pol_cB[0][4]; var pol_cj = ''.concat(this.pol_cI); document.write('<div id="', pol_cj, '" style="bottom:0px; width:', this.pol_cz, 'px;height:', this.pol_cy, 'px;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_m(this.pol_cB[0], this.pol_cz, this.pol_cy, false, pol_cj)); document.write('</div>'); if (pol_E(pol_cj).style.position == 'fixed') { pol_E(pol_cj).style.top = "auto"; pol_E(pol_cj).style.bottom = "0px"; pol_E(pol_cj).style.right = "0px"; } }; function pol_A(pol_aI) { if (document.getElementById(pol_aI) != null) { if (pol_E(pol_aI).style.position == 'fixed') { pol_E(pol_aI).style.top = "auto"; pol_E(pol_aI).style.bottom = "0px"; pol_E(pol_aI).style.right = "0px"; } } }; function cpmst_collapballonbanner(pol_aI, pol_cz, pol_cy) { pol_E(pol_aI).style.zIndex = "0"; var pol_W = parseInt(pol_E(pol_aI).offsetHeight); var pol_Z = parseInt(pol_E(pol_aI).offsetWidth); var pol_Y = (pol_W - pol_cy) + 'px'; var pol_da = pol_Z + 'px'; var pol_aJ = pol_W + 'px'; pol_E(pol_aI).style.clip = 'rect(' + pol_Y + ',' + pol_da + ',' + pol_aJ + ',0px)'; }; function cpmst_expandballonbanner(pol_aI, pol_cz, pol_cy) { pol_E(pol_aI).style.zIndex = "99999"; var pol_W = parseInt(pol_E(pol_aI).offsetHeight); var pol_Z = parseInt(pol_E(pol_aI).offsetWidth); var pol_Y = (pol_W - pol_cy) + 'px'; var pol_da = pol_Z + 'px'; var pol_aJ = pol_W + 'px'; pol_E(pol_aI).style.clip = 'rect(' + pol_Y + ',' + pol_da + ',' + pol_aJ + ',0px)'; }; function pol_d(pol_cg, pol_cj) { if (!pol_cg) { setTimeout(function() { if (pol_E(pol_cj)) pol_E(pol_cj).style.display = "none"; }, 100); } }; var pol_aG = 0; var pol_aH; function cpmst_scrollbanner(pol_bJ, pol_cl, pol_bT) { if (pol_E(pol_cl + "_PositionStatus").style.position == "absolute") { if (pol_E(pol_cl + "_FirstTime").value == "0") { clearTimeout(pol_aH); pol_aH = setTimeout(function() { pol_R(pol_cl); }, 500); pol_E(pol_cl + "_FirstTime").value = "1"; } return; } if (pol_v() <= pol_E(pol_cl).offsetHeight) { if (pol_bJ > parseInt(pol_E(pol_cl + "_CurValue").value)) { if (pol_aG != 0 && pol_aG != 2) pol_aG = 0; if (pol_E(pol_cl).style.top == "0px" && pol_aG != 1) { pol_E(pol_cl).style.top = cpmst_scrollTop() + pol_v() - pol_E(pol_cl).offsetHeight + "px"; pol_E(pol_cl).style.position = "absolute"; pol_aG = 1; } if (cpmst_scrollTop() + pol_v() - pol_E(pol_cl).offsetHeight - pol_E(pol_cl + "_position").offsetTop >= 0) { if (pol_aG != 2) { if (pol_E(pol_cl + "_PositionStatus").style.position == "fixed") { pol_E(pol_cl).style.top = pol_v() - pol_E(pol_cl).offsetHeight + "px"; pol_E(pol_cl).style.position = "fixed"; pol_aG = 2; } else { pol_E(pol_cl).style.top = cpmst_scrollTop() + pol_v() - pol_E(pol_cl).offsetHeight + "px"; pol_E(pol_cl).style.position = "absolute"; } } } else { pol_E(pol_cl).style.top = ""; pol_E(pol_cl).style.position = "absolute"; pol_aG = 0; } if (cpmst_scrollTop() - pol_E(pol_bT).offsetTop + pol_v() >= 0) { pol_E(pol_cl).style.top = pol_E(pol_bT).offsetTop - pol_E(pol_cl).offsetHeight + "px"; pol_E(pol_cl).style.position = "absolute"; } } else if (pol_bJ < parseInt(pol_E(pol_cl + "_CurValue").value)) { if (pol_aG != 4 && pol_aG != 5) pol_aG = 3; if (pol_E(pol_cl + "_PositionStatus").style.position == "fixed") { if (pol_E(pol_cl).style.top != "0px" && pol_aG != 4) { pol_E(pol_cl).style.top = cpmst_scrollTop() + pol_v() - pol_E(pol_cl).offsetHeight + "px"; pol_E(pol_cl).style.position = "absolute"; pol_aG = 4; } } else { if (pol_E(pol_cl).offsetTop >= cpmst_scrollTop() && pol_aG != 4) { pol_E(pol_cl).style.top = cpmst_scrollTop() + pol_v() - pol_E(pol_cl).offsetHeight + "px"; pol_E(pol_cl).style.position = "absolute"; pol_aG = 4; } } if (cpmst_scrollTop() <= pol_E(pol_cl).offsetTop) { if (pol_E(pol_cl + "_PositionStatus").style.position == "fixed") { if (pol_aG != 5) { pol_E(pol_cl).style.top = "0px"; pol_E(pol_cl).style.position = "fixed"; pol_aG = 5; } } else { pol_E(pol_cl).style.top = cpmst_scrollTop() + "px"; pol_E(pol_cl).style.position = "absolute"; } } if (cpmst_scrollTop() <= pol_E(pol_cl + "_position").offsetTop) { pol_E(pol_cl).style.top = ""; pol_E(pol_cl).style.position = "absolute"; } if (cpmst_scrollTop() - pol_E(pol_bT).offsetTop + pol_v() >= 0) { pol_E(pol_cl).style.top = pol_E(pol_bT).offsetTop - pol_E(pol_cl).offsetHeight + "px"; pol_E(pol_cl).style.position = "absolute"; } } } else { if (pol_bJ > parseInt(pol_E(pol_cl + "_CurValue").value)) { if (pol_aG != 0 && pol_aG != 2) pol_aG = 0; if (cpmst_scrollTop() >= pol_E(pol_cl).offsetTop) { if (pol_E(pol_cl + "_PositionStatus").style.position == "fixed") { if (pol_aG != 2) { pol_E(pol_cl).style.top = "0px"; pol_E(pol_cl).style.position = "fixed"; pol_aG = 2; } } else { pol_E(pol_cl).style.top = cpmst_scrollTop() + "px"; pol_E(pol_cl).style.position = "absolute"; } } if (cpmst_scrollTop() - pol_E(pol_bT).offsetTop + pol_E(pol_cl).offsetHeight > 0) { pol_E(pol_cl).style.top = pol_E(pol_bT).offsetTop - pol_E(pol_cl).offsetHeight + "px"; pol_E(pol_cl).style.position = "absolute"; pol_aG = 0; } } else if (pol_bJ < parseInt(pol_E(pol_cl + "_CurValue").value)) { if (pol_aG != 4 && pol_aG != 5) pol_aG = 3; if (cpmst_scrollTop() <= pol_E(pol_cl).offsetTop) { if (pol_E(pol_cl + "_PositionStatus").style.position == "fixed") { if (pol_aG != 4) { pol_E(pol_cl).style.top = "0px"; pol_E(pol_cl).style.position = "fixed"; pol_aG = 4; } } else { pol_E(pol_cl).style.top = cpmst_scrollTop() + "px"; pol_E(pol_cl).style.position = "absolute"; pol_aG = 4; } } if (cpmst_scrollTop() <= pol_E(pol_cl + "_position").offsetTop) { pol_E(pol_cl).style.top = ""; pol_E(pol_cl).style.position = "absolute"; pol_aG = 0; } } } pol_E(pol_cl + "_CurValue").value = cpmst_scrollTop(); if (pol_E(pol_cl + "_FirstTime").value == "0") { clearTimeout(pol_aH); pol_aH = setTimeout(function() { pol_R(pol_cl); }, 500); pol_E(pol_cl + "_FirstTime").value = "1"; } }; function pol_w() { return pol_z(window.innerWidth ? window.innerWidth : 0, document.documentElement ? document.documentElement.clientWidth : 0, document.body ? document.body.clientWidth : 0); }; function pol_v() { return pol_z(window.innerHeight ? window.innerHeight : 0, document.documentElement ? document.documentElement.clientHeight : 0, document.body ? document.body.clientHeight : 0); }; function pol_K() { return pol_z(window.pageXOffset ? window.pageXOffset : 0, document.documentElement ? document.documentElement.scrollLeft : 0, document.body ? document.body.scrollLeft : 0); }; function cpmst_scrollTop() { return pol_z(window.pageYOffset ? window.pageYOffset : 0, document.documentElement ? document.documentElement.scrollTop : 0, document.body ? document.body.scrollTop : 0); }; function pol_z(pol_cM, pol_cK, pol_cJ) { var pol_cL = pol_cM ? pol_cM : 0; if (pol_cK && (!pol_cL || (pol_cL > pol_cK))) pol_cL = pol_cK; return pol_cJ && (!pol_cL || (pol_cL > pol_cJ)) ? pol_cJ : pol_cL; }; function pol_f() { if (window.innerHeight && window.scrollMaxY) { pol_dR = window.innerHeight + window.scrollMaxY; pol_dQ = window.innerWidth + window.scrollMaxX; } else if (document.body.scrollHeight > document.body.offsetHeight) { pol_dR = document.body.scrollHeight; pol_dQ = document.body.scrollWidth; } else { pol_dR = document.body.offsetHeight; pol_dQ = document.body.offsetWidth; } return pol_dR; } 