var ad_S; ad_S = 'http://sonongnghiepkiengiang.gov.vn/'; function adlistshow(ad_G, ad_H, ad_M, ad_ak, ad_W, ad_Y, ad_X, ad_ai, ad_T, ad_R) { var ad_am, ad_bu, ad_bv, ad_aS, ad_aT, ad_bq, ad_aW; this.ad_bB = ad_H; this.ad_az = ad_M; this.ad_bx = ad_Y; this.ad_bw = ad_X; this.ad_bT = ad_ak; this.face = ad_W; if (ad_R > 0) { this.ad_aB = ad_R; } else { this.ad_aB = 20000; } if (typeof (ad_ai) == 'undefined') { this.ad_bN = true; } else { this.ad_bN = ad_ai; }; if (typeof (ad_T) == 'undefined') { this.direction = 0; } else { this.direction = ad_T; }; switch (ad_ak) { case 0: case 4: case 5: case 6: case 9: case 10: case 11: case 12: case 13: case 14: case 15: case 16: case 17: case 18: this.ad_bM = 0; break; case 8: this.ad_bM = 2; break; default: this.ad_bM = 1; break; } var ad_aq = new Array(); var ad_ar = new Array(); var i, j, k, ad_bC, ad_bj, ad_bS; i = 0; j = -1; k = 0; ad_bC = -1; ad_bj = 0; ad_bS = 1; if (this.ad_bM == 0) { for (i = 0, j = 0; i < ad_G.length; i++) { if (this.ad_ax(ad_G[i])) { ad_aq[j] = ad_G[i]; j++; } } this.ad_bp = j + 1; this.ad_by = ad_aq; } else if (this.ad_bM == 1) { ad_aq[0] = new Array(); ad_aq[1] = new Array(); for (i = 0; i < ad_G.length; i++) { if (ad_G[i][5] <= 100) { if (ad_G[i][5] != ad_bC) { ad_bC = ad_G[i][5]; ad_bj = 0; j++; k = 0; } else { k++; } ad_aW = 0; } else { if (ad_G[i][5] != ad_bC || ad_G.length <= 2) { if (ad_bC <= 100) j = -1; ad_bC = ad_G[i][5]; ad_bj = 1; j++; k = 0; ad_bS = 0; } else { if (ad_bS >= ad_bC - 100) { j++; k = 0; ad_bS = 0; } else { k++; } } ad_aW = 1; } if (this.ad_ax(ad_G[i])) { if (k == 0) ad_aq[ad_bj][j] = new Array(); ad_aq[ad_bj][j][k] = ad_G[i]; ad_bS++; } } for (i = 0; i < ad_aq.length; i++) { if (i == 1) { ad_bu = ad_aq[i].length; ad_aS = (getCookie1('fl') % ad_bu); ad_am = ad_aq[i][ad_aS % ad_bu]; ad_aq[i][ad_aS % ad_bu] = ""; ad_aq[i].sort(ad_B); if (ad_aq[i][0] == "") { ad_aq[i][0] = ad_am; } else { for (j = 1; j < ad_aq[i].length; j++) { if (ad_aq[i][j] == "") { ad_aq[i][j] = ad_aq[i][0]; ad_aq[i][0] = ad_am; break; } } } }; for (j = 0; j < ad_aq[i].length; j++) { ad_bu = ad_aq[i][j].length; ad_aS = (getCookie1('fl') % ad_bu); ad_am = ad_aq[i][j][ad_aS % ad_bu]; ad_aq[i][j][ad_aS % ad_bu] = ""; ad_aq[i][j].sort(ad_B); if (ad_aq[i][j][0] == "") { ad_aq[i][j][0] = ad_am; } else { for (k = 1; k < ad_aq[i][j].length; k++) { if (ad_aq[i][j][k] == "") { ad_aq[i][j][k] = ad_aq[i][j][0]; ad_aq[i][j][0] = ad_am; break; } } } } } k = 0; for (i = 0; i < ad_aq.length; i++) { for (j = 0; j < ad_aq[i].length; j++) { ad_ar[k] = ad_aq[i][j]; k++; } } this.ad_by = ad_ar; this.ad_bp = k; } else if (this.ad_bM == 2) { for (i = 0, j = 0; i < ad_G.length; i++) { if (this.ad_ax(ad_G[i])) { ad_aq[j] = new Array(); ad_aq[j][0] = new Array(); ad_aq[j][0][0] = ad_G[i][0]; ad_aq[j][0][1] = ad_G[i][2]; ad_aq[j][0][2] = ad_G[i][3]; ad_aq[j][0][3] = ad_G[i][4]; ad_aq[j][0][4] = ad_G[i][5]; ad_aq[j][1] = new Array(); ad_aq[j][1][0] = ad_G[i][1]; ad_aq[j][1][1] = ad_G[i][2]; ad_aq[j][1][2] = ad_G[i][3]; ad_aq[j][1][3] = ad_G[i][6]; ad_aq[j][1][4] = ad_G[i][7]; j++; } } ad_aq.sort(ad_B); this.ad_bp = j + 1; this.ad_by = ad_aq; } if (this.ad_bM != 1) { k = 0; ad_bv = 0; ad_aT = 0; var ad_as = new Array(); for (i = 0; i < ad_aq.length; i++) { ad_as[k] = ad_aq[i]; k++; } ad_bv = ad_aq.length; ad_aT = (getCookie1('fl') % ad_bv); if (ad_bv != 0) { ad_am = ad_as[ad_aT % ad_bv]; ad_as[ad_aT % ad_bv] = ""; if (ad_as[0] == "") { ad_as[0] = ad_am; } else { for (ad_bq = 1; ad_bq < ad_bv; ad_bq++) { if (ad_as[ad_bq] == "") { ad_as[ad_bq] = ad_as[0]; ad_as[0] = ad_am; } } } } this.ad_by = ad_as; this.ad_bp = k; } this.ad_bm(); }; adlistshow.prototype.ad_bm = function() { switch (this.ad_bT) { case 0: this.ad_aK(); break; case 1: case 7: this.ad_aI(); break; case 2: this.ad_aF(0); break; case 3: this.ad_aF(1); break; case 4: this.ad_aF(2); break; case 5: this.ad_aJ(false); break; case 6: this.ad_aJ(true); break; case 8: this.ad_aD(); break; case 9: this.ad_aL(); break; case 10: this.ad_aG(); break; case 11: this.ad_aE(0); break; case 12: this.ad_aE(1); break; case 13: this.ad_aE(2); break; case 14: this.ad_aE(3); break; case 15: this.ad_aN(); break; case 16: this.ad_aH(); break; case 17: this.ad_aM(0); break; case 18: this.ad_aM(1); break; default: break; } }; adlistshow.prototype.ad_av = function(index) { if (this.ad_bM == 0) { return true; } else { if (this.ad_by.length == index + 1) { return true; } else { return false; } } }; adlistshow.prototype.ad_aK = function() { document.write('<table ', (this.ad_bx > 0) ? 'width='.concat(this.ad_bx) : '', ' cellspacing=0 cellpadding=0 border=0 align=center>'); this.ad_cG(this.ad_by, 0); document.write('</table>'); }; adlistshow.prototype.ad_aI = function() { if (this.face == 0) { document.write('<table ', (this.ad_bx > 0) ? 'width='.concat(this.ad_bx) : '', ' cellspacing=0 cellpadding=0 border=0 align=center>'); } else if (this.face == 2) { document.write('<table ', (this.ad_bx > 0) ? 'width='.concat(this.ad_bx) : '', ' cellspacing=0 cellpadding=0 border=0 align=center><tr>'); } for (var i = 0; i < this.ad_by.length; i++) { this.ad_cG(this.ad_by[i], i, this.ad_av(i)); if (this.face == 0) { document.write('<tr><td height="3"></td></tr>'); } else if (this.face == 2) { document.write('<td width="3"></td>'); } if (this.face == 1 && (!this.ad_av(i))) { document.write('<tr><td height="1" bgcolor="#808080"></td></tr>'); } } if (this.face == 0) { document.write('</table>'); } else if (this.face == 2) { document.write('</tr></table>'); } }; adlistshow.prototype.ad_aF = function(type) { if (type == 2) { document.write('<DIV id="floatdiv', this.ad_bB, '" style="position:absolute;overflow:hidden;top:0;left:-200;', (this.ad_bw > 0) ? 'height:'.concat(this.ad_bw) : '180', ';', (this.ad_bx > 0) ? 'width:'.concat(this.ad_bx) : '115', ';">'); this.ad_cx(this.ad_by); } else { document.write('<DIV id="floatdiv', this.ad_bB, '" style="position:absolute;top:0;left:-200;', (this.ad_bx > 0) ? 'width:'.concat(this.ad_bx) : '115', ';">'); this.ad_aI(); } document.write('</DIV>'); if (this.ad_by.length > 0) { ad_b('floatdiv'.concat(this.ad_bB), type); } }; adlistshow.prototype.ad_aE = function(type) { switch (type) { case 0: case 1: document.write('<DIV id="fixfloatdiv', this.ad_bB, '" style="position:absolute;z-index:200;top:0;left:-200;', (this.ad_bx > 0) ? 'width:'.concat(this.ad_bx) : '120', ';">'); break; case 2: case 3: document.write('<DIV id="fixfloatdiv', this.ad_bB, '" style="position:absolute;z-index:200;top:0;left:-200;', (this.ad_bw > 0) ? 'height:'.concat(this.ad_bw) : '150', ';', (this.ad_bx > 0) ? 'width:'.concat(this.ad_bx) : '120', ';">'); break; } this.ad_cz(this.ad_by, type); document.write('</DIV>'); if (this.ad_by.length > 0) { ad_a('fixfloatdiv'.concat(this.ad_bB), type); } }; adlistshow.prototype.ad_aM = function(type) { if (type == 0) { ad_ck = this.ad_by[0][2].lastIndexOf(','); ad_ci = this.ad_by[0][2].substr(ad_ck + 2); ad_bQ = ad_h(ad_ci, this.ad_by[0][1], true); ad_at = this.ad_by[0][2].split(","); ad_bP = this.ad_by[0][0]; } else if (type == 1) { ad_ck = this.ad_by[0][2].lastIndexOf(','); ad_ci = this.ad_by[0][2].substr(ad_ck + 2); ad_bQ = ad_h(ad_ci, this.ad_by[0][1], true); ad_at = this.ad_by[0][2].split(","); ad_bP = this.ad_by[0][0]; } ad_F(type, ad_bQ, ad_bP, ad_ci); }; var ad_bn = true; var ad_bo = true; function ad_F(type, ad_bQ, ad_bP, ad_bi) { var ad_bR = ""; var clientHeight = 0; var br = navigator.appVersion; if (br.indexOf("MSIE") != -1) { clientHeight = document.documentElement.clientHeight; } else { clientHeight = window.screen.height; } if (document.body.clientWidth > 1100) { var ad_bH = (document.body.clientWidth - 1004) / 2; if (type == 0) { if (ad_e(ad_bP, 4).toLowerCase() == '.swf') { if (ad_x("divSlideResultLeft").innerHTML == "") { ad_bn = true; } if (document.body.clientWidth != ad_x("CurrentBrowserWidth").value) { ad_bn = true; } if (ad_bn) { ad_bR = ad_bR.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="130" height="900">'); ad_bR = ad_bR.concat('<param name="movie" value="').concat(ad_bP).concat('?link=').concat(escape(ad_bQ)).concat('&zoneid=').concat(ad_bi).concat('">'); ad_bR = ad_bR.concat('<param name="AllowScriptAccess" value="always">'); ad_bR = ad_bR.concat('<param name="quality" value="High">'); ad_bR = ad_bR.concat('<param name="wmode" value="transparent">'); ad_bR = ad_bR.concat('<embed src="').concat(ad_bP).concat('?link=').concat(escape(ad_bQ)).concat('&zoneid=').concat(ad_bi).concat('" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" AllowScriptAccess="always" width="130" height="900">'); ad_bR = ad_bR.concat('</object>'); ad_x("divSlideResultLeft").style.width = ad_bH + "px"; ad_x("divSlideResultLeft").style.height = clientHeight + "px"; ad_x("divSlideResultLeft").innerHTML = ad_bR; if (ad_bH < 130) { ad_x("divSlideResultLeft").style.left = (ad_bH - 130) + "px"; } else ad_x("divSlideResultLeft").style.left = "0"; ad_bn = false; } } else { ad_x("divSlideResultLeft").style.backgroundColor = "transparent"; ad_x("divSlideResultLeft").style.backgroundImage = "url(" + ad_bP + ")"; ad_x("divSlideResultLeft").style.width = ad_bH + "px"; ad_x("divSlideResultLeft").style.height = clientHeight + "px"; ad_x("divSlideResultLeft").setAttribute("onclick", "javascript:window.open('" + ad_bQ + "');"); } } else if (type == 1) { if (ad_e(ad_bP, 4).toLowerCase() == '.swf') { if (ad_x("divSlideResultRight").innerHTML == "") { ad_bo = true; } if (document.body.clientWidth != ad_x("CurrentBrowserWidth").value) { ad_bo = true; } if (ad_bo) { ad_bR = ad_bR.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="130" height="900">'); ad_bR = ad_bR.concat('<param name="movie" value="').concat(ad_bP).concat('?link=').concat(escape(ad_bQ)).concat('&zoneid=').concat(ad_bi).concat('">'); ad_bR = ad_bR.concat('<param name="AllowScriptAccess" value="always">'); ad_bR = ad_bR.concat('<param name="quality" value="High">'); ad_bR = ad_bR.concat('<param name="wmode" value="transparent">'); ad_bR = ad_bR.concat('<embed src="').concat(ad_bP).concat('?link=').concat(escape(ad_bQ)).concat('&zoneid=').concat(ad_bi).concat('" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" AllowScriptAccess="always" width="130" height="900">'); ad_bR = ad_bR.concat('</object>'); ad_x("divSlideResultRight").style.width = ad_bH + "px"; ad_x("divSlideResultRight").style.height = clientHeight + "px"; ad_x("divSlideResultRight").innerHTML = ad_bR; if (ad_bH < 130) { ad_x("divSlideResultRight").style.left = ad_bH + parseInt(ad_x("divMove").style.width.replace("px", "")) - 130 + "px"; } else { ad_x("divSlideResultRight").style.left = ad_bH + parseInt(ad_x("divMove").style.width.replace("px", "")) + "px"; } ad_bo = false; } } else { ad_x("divSlideResultRight").style.width = ad_bH + "px"; ad_x("divSlideResultRight").style.height = clientHeight + "px"; ad_x("divSlideResultRight").style.backgroundColor = "transparent"; ad_x("divSlideResultRight").style.backgroundImage = "url(" + ad_bP + ")"; ad_x("divSlideResultRight").setAttribute("onclick", "javascript:window.open('" + ad_bQ + "');"); } } ad_x("CurrentBrowserWidth").value = document.body.clientWidth; } else { ad_x("divSlideResultLeft").innerHTML = ""; ad_x("divSlideResultRight").innerHTML = ""; ad_x("divSlideResultRight").style.backgroundImage = ""; ad_x("divSlideResultLeft").style.backgroundImage = ""; } if (type == 0) { a = setTimeout('ad_F("' + type + '","' + ad_bQ + '","' + ad_bP + '","' + ad_bi + '")', 100); } else if (type == 1) { b = setTimeout('ad_F("' + type + '","' + ad_bQ + '","' + ad_bP + '","' + ad_bi + '")', 100); } }; adlistshow.prototype.ad_aJ = function(type) { ad_ck = this.ad_by[0][2].lastIndexOf(','); ad_ci = this.ad_by[0][2].substr(ad_ck + 2); ad_bQ = ad_h(ad_ci, this.ad_by[0][1], true); var ad_at = this.ad_by[0][2].split(","); ad_A(this.ad_by[0][0], ad_bQ, 'Advertisment', ad_at[2], ad_at[9], ad_at[8], screen.height - ad_at[9] - 80, (screen.width - 770) / 2 + 410 - 5, type); }; adlistshow.prototype.ad_aD = function() { document.write('<table align=center ', (this.ad_bx > 0) ? 'width='.concat(this.ad_bx) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.ad_cy(this.ad_by, 0); document.write('</table>'); }; adlistshow.prototype.ad_aL = function() { document.write('<table align=center ', (this.ad_bx > 0) ? 'width='.concat(this.ad_bx) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.ad_cH(this.ad_by, 0); document.write('</table>'); }; adlistshow.prototype.ad_aG = function() { document.write('<table align=center ', (this.ad_bx > 0) ? 'width='.concat(this.ad_bx) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.ad_cB(this.ad_by, 0); document.write('</table>'); }; adlistshow.prototype.ad_cG = function(ad_bF, index, ad_br) { if (this.face == 1) { document.write('<tr><td id="', this.ad_bB, '_', index, '" style="padding:4px;">'); } else if (this.face == 2) { document.write('<td id="', this.ad_bB, '_', index, '" style="padding:4px;">'); } else { document.write('<tr><td id="', this.ad_bB, '_', index, '">'); } document.write(ad_i(ad_bF[0], this.ad_bx, this.ad_bw)); if (ad_bF.length > 1) { var ad_bi = ''.concat(this.ad_bB).concat('_').concat(index); var ad_aC = this.ad_aB; var ad_bx = this.ad_bx; var ad_bw = this.ad_bw; if (this.ad_bN) setTimeout(function() { ad_j(ad_bF, 0, ad_bi, ad_aC, ad_bx, ad_bw, 1) }, ad_aC); } if (this.face == 2) { document.write('</td>'); } else { document.write('</td></tr>'); } }; adlistshow.prototype.ad_cF = function(ad_bF, ad_br) { for (var i = 0; i < ad_bF.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(ad_i(ad_bF[i], this.ad_bx, this.ad_bw)); 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 < ad_bF.length - 1)) { document.write('<tr><td height="1" bgcolor="#808080"></td></tr>'); } } }; adlistshow.prototype.ad_cx = function(ad_bF) { document.write('<DIV id="subdiv', this.ad_bB, '" style="position:absolute;', (this.ad_bw > 0) ? 'top:'.concat(this.ad_bw) : '180', ';', (this.ad_bx > 0) ? 'width:'.concat(this.ad_bx) : '115', ';', (this.ad_bw > 0) ? 'height:'.concat(this.ad_bw) : '180', ';">'); document.write(ad_i(ad_bF[0], this.ad_bx, this.ad_bw)); var ad_bi = 'subdiv'.concat(this.ad_bB); var ad_aC = this.ad_aB; var ad_bx = this.ad_bx; var ad_bw = this.ad_bw; setTimeout(function() { ad_C(ad_bF, 0, ad_bi, ad_aC, ad_bx, ad_bw) }, 500); document.write('</DIV>'); }; adlistshow.prototype.ad_cy = function(ad_bF) { if (ad_bF.length <= 0) return; var ad_bx = this.ad_bx; var ad_bw = this.ad_bw; var ad_bi = ''.concat(this.ad_bB); var ad_aC = this.ad_aB; document.write('<tr><td>'); document.write('<DIV id="', ad_bi, '" style="position:related;overflow:hidden;width:'.concat(ad_bF[0][0][3]), ';height:'.concat(ad_bF[0][0][4]), ';">'); document.write(ad_i(ad_bF[0][0], this.ad_bx, this.ad_bw)); if (ad_bF.length > 1) { } document.write('</DIV></td></tr>'); document.write('<tr><td align=center id="', ad_bi, '_extend"><font face="Arial" size="1"><b>'); document.write('<span id="', ad_bi, '_expandcollap" style="cursor:pointer;">M&#7903; r&#7897;ng</span>&nbsp;-&nbsp;'); document.write('<span id="', ad_bi, '_close" style="cursor:pointer;">&#272;&#243;ng</span>'); document.write('<input type="hidden" id="', this.ad_bB, '_hidden">'); document.write('</td></tr>'); ad_x(ad_bi + '_hidden').value = 0; ad_x(ad_bi).onmouseover = function() { ad_r(ad_bF, ad_bi, ad_bx, ad_bw) }; ad_x(ad_bi + '_expandcollap').onclick = function() { ad_r(ad_bF, ad_bi, ad_bx, ad_bw) }; ad_x(ad_bi + '_close').onclick = function() { ad_l(ad_bi) }; }; function ad_r(ad_bF, ad_au, ad_bx, ad_bw) { var index = ad_x(ad_au + '_hidden').value; if (parseInt(ad_x(ad_au).offsetHeight) < ad_bF[index][1][4]) { ad_x(ad_au).style.height = parseInt(ad_x(ad_au).offsetHeight) + 10; setTimeout(function() { ad_r(ad_bF, ad_au, ad_bx, ad_bw) }, 5); return; } ad_x(ad_au).onmouseover = 'undefine'; ad_x(ad_au + '_expandcollap').innerHTML = 'Thu nh&#7887;'; ad_x(ad_au + '_expandcollap').onclick = function() { ad_m(ad_bF, ad_au, ad_bx, ad_bw) }; ad_x(ad_au).innerHTML = ad_i(ad_bF[index][1], ad_bx, ad_bw); }; function ad_m(ad_bF, ad_au, ad_bx, ad_bw) { var index = ad_x(ad_au + '_hidden').value; if (parseInt(ad_x(ad_au).offsetHeight) > ad_bF[index][0][4]) { ad_x(ad_au).style.height = parseInt(ad_x(ad_au).offsetHeight) - 10; setTimeout(function() { ad_m(ad_bF, ad_au, ad_bx, ad_bw) }, 5); return; } ad_x(ad_au).onmouseover = function() { ad_r(ad_bF, ad_au, ad_bx, ad_bw) }; ad_x(ad_au + '_expandcollap').innerHTML = 'M&#7903; r&#7897;ng'; ad_x(ad_au + '_expandcollap').onclick = function() { ad_r(ad_bF, ad_au, ad_bx, ad_bw) }; ad_x(ad_au).innerHTML = ad_i(ad_bF[index][0], ad_bx, ad_bw); }; function ad_l(ad_au) { ad_x(ad_au).style.display = 'none'; ad_x(ad_au + '_extend').style.display = 'none'; }; function ad_j(ad_bF, index, ad_au, ad_aC, ad_bx, ad_bw, ad_aA) { var stop; stop = 0; if (ad_aA >= ad_bF.length) { stop = 1; } typeof (ad_aA) == 'undefined'; if (index == ad_bF.length - 1) { index = 0; } else { index++; } ad_x(ad_au).innerHTML = ad_i(ad_bF[index], ad_bx, ad_bw, 'undefined', 'undefined', stop); ad_aA++; setTimeout(function() { ad_j(ad_bF, index, ad_au, ad_aC, ad_bx, ad_bw, ad_aA) }, ad_aC); }; function ad_k(ad_bF, index, ad_au, ad_aC, ad_bx, ad_bw, type) { if (ad_x(ad_au + '_status').value == '0') { if (index == ad_bF.length - 1) { index = 0; } else { index++; } if (type == 1) { var ad_bR = ''; ad_bR = ad_bR.concat('<DIV id="').concat(ad_au).concat('_child" style="position:absolute;top:0px;left:0px;width:').concat(ad_bF[index][3]).concat('px;height:').concat(ad_bF[index][4]).concat('px;">'); ad_bR = ad_bR.concat(ad_i(ad_bF[index], ad_bx, ad_bw, false, ad_au)); ad_bR = ad_bR.concat('</DIV>'); ad_x(ad_au).innerHTML = ad_bR; ad_v(ad_au); } } setTimeout(function() { ad_k(ad_bF, index, ad_au, ad_aC, ad_bx, ad_bw, type) }, ad_aC); }; adlistshow.prototype.ad_aH = function() { this.ad_cD(this.ad_by, 0); }; adlistshow.prototype.ad_aN = function(ad_bF) { document.write('<table align=center ', (this.ad_bx > 0) ? 'width='.concat(this.ad_bx) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.ad_cI(this.ad_by, 0); document.write('</table>'); }; adlistshow.prototype.ad_cE = function(ad_bF) { if (ad_bF.length <= 0) return; var ad_bx = (this.ad_bx < ad_bF[0][3] && this.ad_bx > 0) ? this.ad_bx : ad_bF[0][3]; var ad_bw = (this.ad_bw < ad_bF[0][4] && this.ad_bw > 0) ? this.ad_bw : ad_bF[0][4]; var ad_bi = ''.concat(this.ad_bB); var ad_aC = this.ad_aB; var ad_bR = ''; ad_bR = ad_bR.concat('<DIV id="').concat(ad_bi).concat('_child" style="overflow:hidden;position:absolute;top:0px;left:0px;width:').concat(ad_bF[0][3]).concat('px;height:').concat(ad_bF[0][4]).concat('px;">'); ad_bR = ad_bR.concat(ad_i(ad_bF[0], this.ad_bx, this.ad_bw, false, ad_bi)); ad_bR = ad_bR.concat('</DIV>'); ad_x(ad_bi).innerHTML = ad_bR; ad_E(ad_bi, true); if (this.ad_bN) setTimeout(function() { ad_k(ad_bF, 0, ad_bi, ad_aC, ad_bx, ad_bw, 1) }, ad_aC); }; adlistshow.prototype.ad_cD = function(ad_bF) { if (ad_bF.length <= 0) return; var ad_bx = (this.ad_bx < ad_bF[0][3] && this.ad_bx > 0) ? this.ad_bx : ad_bF[0][3]; var ad_bw = (this.ad_bw < ad_bF[0][4] && this.ad_bw > 0) ? this.ad_bw : ad_bF[0][4]; var ad_bi = ''.concat(this.ad_bB); var ad_aC = this.ad_aB; var ad_bR = ''; document.write('<div id="', ad_bi, '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='" + ad_bi + "_position' style='overflow:hidden;position:relative;height:" + this.ad_bw + "px;width:" + this.ad_bx + "px;'></div>"); document.write("<div id='" + ad_bi + "' style='overflow:hidden;height:" + this.ad_bw + "px;z-index:0;width:" + this.ad_bx + "px;position:absolute;left:-1000px'>"); document.write('</div>'); document.write('<input type="hidden" id="', ad_bi, '_direction" value="', this.direction, '">'); document.write('<input type="hidden" id="ad_J', ad_bi, '" name="ad_J', ad_bi, '" value="', ad_bi, '">'); document.write('<input type="hidden" id="BannerOffset_', ad_bi, '" value="0" />'); document.write('<input type="hidden" id="', ad_bi, '_status" value="0">'); if (this.ad_bN) setTimeout(function() { ad_k(ad_bF, 0, ad_bi, ad_aC, ad_bx, ad_bw, 1); }, ad_aC); var ad_ap = this; setTimeout(function() { ad_ap.ad_cE(ad_bF) }, 300); }; adlistshow.prototype.ad_ae = function(ad_bx, ad_bw, ad_bi) { var ad_J = ad_x("ad_J" + ad_bi).value; var ad_ao = window.screen.width; var ad_al = ad_x("divMove").style.width; var ad_V = 0; var ad_U; var ad_K = ad_x("BannerOffset_" + ad_J).value; ad_V = (parseInt(ad_ao) - parseInt(ad_al)) / 2; ad_bG = ad_x("divMove").style.marginLeft.replace("px", ""); ad_x(ad_J + "123").style.width = ad_V + "px"; ad_x(ad_J + "123").style.display = ""; ad_x(ad_J + "_status").value = 1; ad_U = -(ad_K - ad_V); ad_bY = ad_U; if (ad_bG > ad_U) { ad_bG -= 50; if (ad_bG - ad_U <= 50) { ad_x("divMove").style.marginLeft = ad_U + "px"; } else { ad_x("divMove").style.marginLeft = ad_bG + "px"; } ad_x("divMove").style.display = "block"; } else { ad_x("divMove").style.display = ""; clearInterval(a); clearTimeout(b); clearTimeout(c); ad_x(ad_J).style.display = "block"; ad_x(ad_J).style.height = ad_bw + "px"; ad_x(ad_J).style.width = ad_bx + "px"; ad_x(ad_J).style.zIndex = "1000"; ad_x(ad_J).style.left = ad_V + "px"; ad_x(ad_J).style.top = ad_y(ad_x(ad_J + '_position'))[1]; ad_x(ad_J + '_child').style.top = '0px'; } }; adlistshow.prototype.ad_af = function(ad_bx, ad_bw, ad_bi) { var ad_J = ad_x("ad_J" + ad_bi).value; ad_bG = parseInt(ad_x("divMove").style.marginLeft.replace("px", "")); if (ad_bG == ad_bY) { ad_x("divMove").style.display = "block"; ad_x(ad_J).style.display = ""; ad_x(ad_J).style.height = ad_bw + "px"; ad_x(ad_J).style.width = ad_bx + "px"; ad_x(ad_J).style.left = ""; ad_x(ad_J + "_status").value = 0; ad_E(ad_J, true); } if (ad_bG < 0) { ad_bG += 50; if (ad_bG > -50) { ad_x(ad_J + "123").style.display = "none"; ad_x("divMove").style.marginLeft = "0px"; } else { ad_x("divMove").style.marginLeft = ad_bG + "px"; } } else { ad_x("divMove").style.display = ""; clearInterval(a); clearTimeout(b); clearTimeout(c); ad_E(ad_J, true); ad_x("divMove").style.marginLeft = "0px"; } }; adlistshow.prototype.ad_bb = function(ad_J, ad_bx, ad_bw) { if (ad_x("divMove").style.display == "block") { return; } a = setInterval("adlistshow.prototype.ad_ae(" + ad_bx + "," + ad_bw + ",'" + ad_J + "')", 50); b = setTimeout("a", 0); }; adlistshow.prototype.ad_bc = function(ad_J, ad_bx, ad_bw) { if (ad_x("divMove").style.display == "block") { return; } a = setInterval("adlistshow.prototype.ad_af(" + ad_bx + "," + ad_bw + ",'" + ad_J + "')", 50); b = setTimeout("a", 0); }; adlistshow.prototype.ad_cI = function(ad_bF) { if (ad_bF.length <= 0) return; var ad_bO = (ad_c(ad_bF[0], 7).toLowerCase() == 'http://') ? ad_bF[0] : ad_S.concat(ad_bF[0]); var ad_bx = (this.ad_bx < ad_bF[0][3] && this.ad_bx > 0) ? this.ad_bx : ad_bF[0][3]; var ad_bw = (this.ad_bw < ad_bF[0][4] && this.ad_bw > 0) ? this.ad_bw : ad_bF[0][4]; var ad_bl = (ad_bx < ad_bF[3] && ad_bx > 0 && ad_ay) ? ad_bx : ad_bF[3]; var ad_bk = (ad_bw < ad_bF[4] && ad_bw > 0 && ad_ay) ? ad_bw : ad_bF[4]; var ad_bi = ''.concat(this.ad_bB); var ad_aC = this.ad_aB; var ad_bR = ''; document.write('<tr><td>'); document.write('<DIV id="', ad_bi, '" style="position:absolute;overflow:hidden;width:207px;height:14px;z-index:10001;">'); ad_bR = ad_bR.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">'); ad_bR = ad_bR.concat('<param name="movie" value="http://beta.vnexpress.net/Files/VAImages/hangviet_380x350_09012010.swf?zoneid=').concat(ad_bi).concat('">'); ad_bR = ad_bR.concat('<param name="AllowScriptAccess" value="always">'); ad_bR = ad_bR.concat('<param name="quality" value="High">'); ad_bR = ad_bR.concat('<param name="wmode" value="transparent">'); ad_bR = ad_bR.concat('<embed src="http://beta.vnexpress.net/Files/VAImages/hangviet_380x350_09012010.swf?zoneid=').concat(ad_bi).concat('" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" name="SpecialFlashBanner" AllowScriptAccess="always" width="350" height="350">'); ad_bR = ad_bR.concat('</object>'); document.write(ad_bR); document.write('</DIV>'); document.write('<input type="hidden" id="', ad_bi, '_status" value="0">'); document.write('</td></tr>'); window.onresize = function() { SendDataToFlashMovie(); }; window.onload = function() { SendDataToFlashMovie(); } }; function getFlashMovieObject(ad_bz) { if (window.document[ad_bz]) { return window.document[ad_bz]; } if (navigator.appName.indexOf("Microsoft Internet") == -1) { if (document.embeds && document.embeds[ad_bz]) return document.embeds[ad_bz]; } else { return document.getElementById(ad_bz); } }; function SendDataToFlashMovie() { var ad_bL = window.innerWidth != null ? window.innerWidth : document.body != null ? document.body.clientWidth : null; var ad_aX = getFlashMovieObject("SpecialFlashBanner"); ad_aX.SetVariable("/:pagewidth", ad_bL); }; function expandslideselfbanner(ad_au, ad_bx, ad_bw) { adlistshow.prototype.ad_bb(ad_au, ad_bx, ad_bw); }; function collapslideselfbanner(ad_au, ad_bx, ad_bw) { adlistshow.prototype.ad_bc(ad_au, ad_bx, ad_bw); }; function expandspecialbanner(ad_au, ad_bx, ad_bw) { ad_x(ad_au).style.width = ad_bx + "px"; ad_x(ad_au).style.height = ad_bw + "px"; }; function collapspecialbanner(ad_au, ad_bx, ad_bw) { ad_x(ad_au).style.width = ad_bx + "px"; ad_x(ad_au).style.height = ad_bw + "px"; }; adlistshow.prototype.ad_cH = function(ad_bF) { if (ad_bF.length <= 0) return; var ad_bx = (this.ad_bx < ad_bF[0][3] && this.ad_bx > 0) ? this.ad_bx : ad_bF[0][3]; var ad_bw = (this.ad_bw < ad_bF[0][4] && this.ad_bw > 0) ? this.ad_bw : ad_bF[0][4]; var ad_bi = ''.concat(this.ad_bB); var ad_aC = this.ad_aB; document.write('<tr><td>'); document.write('<DIV id="', ad_bi, '" style="position:relative;overflow:hidden;width:'.concat(ad_bx), 'px;height:'.concat(ad_bw), 'px;">'); document.write(ad_i(ad_bF[0], this.ad_bx, this.ad_bw, false, ad_bi)); document.write('</DIV>'); document.write('<input type="hidden" id="', ad_bi, '_status" value="0">'); document.write('</td></tr>'); if (this.ad_bN) setTimeout(function() { ad_k(ad_bF, 0, ad_bi, ad_aC, ad_bx, ad_bw, 0) }, ad_aC); }; adlistshow.prototype.ad_cB = function(ad_bF) { if (ad_bF.length <= 0) return; var ad_bx = (this.ad_bx < ad_bF[0][3] && this.ad_bx > 0) ? this.ad_bx : ad_bF[0][3]; var ad_bw = (this.ad_bw < ad_bF[0][4] && this.ad_bw > 0) ? this.ad_bw : ad_bF[0][4]; var ad_bi = ''.concat(this.ad_bB); var ad_aC = this.ad_aB; document.write('<tr><td>'); document.write('<DIV id="', ad_bi, '_position" style="position:relative;overflow:hidden;width:'.concat(ad_bx), 'px;height:'.concat(ad_bw), 'px;"></DIV>'); document.write('<DIV id="', ad_bi, '" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:0px;width:'.concat(ad_bx), 'px;height:'.concat(ad_bw), 'px;">'); document.write('</DIV>'); document.write('<input type="hidden" id="', ad_bi, '_direction" value="', this.direction, '">'); document.write('<input type="hidden" id="', ad_bi, '_status" value="0">'); document.write('</td></tr>'); var ad_ap = this; setTimeout(function() { ad_ap.ad_cC(ad_bF) }, 300); }; adlistshow.prototype.ad_cz = function(ad_bF, type) { if (ad_bF.length <= 0) return; var ad_bx = (this.ad_bx < ad_bF[0][3] && this.ad_bx > 0) ? this.ad_bx : ad_bF[0][3]; var ad_bw = (this.ad_bw < ad_bF[0][4] && this.ad_bw > 0) ? this.ad_bw : ad_bF[0][4]; var ad_bi = ''.concat(this.ad_bB); var ad_aC = this.ad_aB; document.write('<DIV id="', ad_bi, '_position" style="position:relative;overflow:hidden;width:'.concat(ad_bx), 'px;height:'.concat(ad_bw), 'px;"></DIV>'); document.write('<DIV id="', ad_bi, '" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:0px;width:'.concat(ad_bx), 'px;height:'.concat(ad_bw), 'px;">'); document.write('</DIV>'); document.write('<input type="hidden" id="', ad_bi, '_directionfix" value="', this.direction, '">'); document.write('<input type="hidden" id="', ad_bi, '_status" value="0">'); var ad_ap = this; setTimeout(function() { ad_ap.ad_cA(ad_bF, type) }, 300); }; adlistshow.prototype.ad_cC = function(ad_bF) { if (ad_bF.length <= 0) return; var ad_bx = (this.ad_bx < ad_bF[0][3] && this.ad_bx > 0) ? this.ad_bx : ad_bF[0][3]; var ad_bw = (this.ad_bw < ad_bF[0][4] && this.ad_bw > 0) ? this.ad_bw : ad_bF[0][4]; var ad_bi = ''.concat(this.ad_bB); var ad_aC = this.ad_aB; var ad_bR = ''; ad_bR = ad_bR.concat('<DIV id="').concat(ad_bi).concat('_child" style="position:absolute;top:0px;left:0px;width:').concat(ad_bF[0][3]).concat('px;height:').concat(ad_bF[0][4]).concat('px;">'); ad_bR = ad_bR.concat(ad_i(ad_bF[0], this.ad_bx, this.ad_bw, false, ad_bi)); ad_bR = ad_bR.concat('</DIV>'); ad_x(ad_bi).innerHTML = ad_bR; ad_D(ad_bi, true); if (ad_bF.length > 1) { if (this.ad_bN) setTimeout(function() { ad_k(ad_bF, 0, ad_bi, ad_aC, ad_bx, ad_bw, 1) }, ad_aC); } }; adlistshow.prototype.ad_cA = function(ad_bF, type) { if (ad_bF.length <= 0) return; var ad_bx = (this.ad_bx < ad_bF[0][3] && this.ad_bx > 0) ? this.ad_bx : ad_bF[0][3]; var ad_bw = (this.ad_bw < ad_bF[0][4] && this.ad_bw > 0) ? this.ad_bw : ad_bF[0][4]; var ad_bi = ''.concat(this.ad_bB); var ad_aC = this.ad_aB; var ad_bR = ''; switch (type) { case 0: ad_bR = ad_bR.concat('<DIV id="').concat(ad_bi).concat('_child" style="position:absolute;top:0px;left:0px;width:').concat(ad_bF[0][3]).concat('px;height:').concat(ad_bF[0][4]).concat('px;">'); break; case 1: ad_bR = ad_bR.concat('<DIV id="').concat(ad_bi).concat('_child" style="position:absolute;top:0px;left:').concat(ad_bx - ad_bF[0][3]).concat('px;width:').concat(ad_bF[0][3]).concat('px;height:').concat(ad_bF[0][4]).concat('px;">'); break; case 2: ad_bR = ad_bR.concat('<DIV id="').concat(ad_bi).concat('_child" style="position:absolute;top:').concat(ad_bw - ad_bF[0][4]).concat('px;left:0px;width:').concat(ad_bF[0][3]).concat('px;height:').concat(ad_bF[0][4]).concat('px;">'); break; case 3: ad_bR = ad_bR.concat('<DIV id="').concat(ad_bi).concat('_child" style="position:absolute;top:').concat(ad_bw - ad_bF[0][4]).concat('px;left:').concat(ad_bx - ad_bF[0][3]).concat('px;width:').concat(ad_bF[0][3]).concat('px;height:').concat(ad_bF[0][4]).concat('px;">'); break; default: ad_bR = ad_bR.concat('<DIV id="').concat(ad_bi).concat('_child" style="position:absolute;top:').concat(ad_bw - ad_bF[0][4]).concat('px;left:').concat(ad_bx - ad_bF[0][3]).concat('px;width:').concat(ad_bF[0][3]).concat('px;height:').concat(ad_bF[0][4]).concat('px;">'); break; } ad_bR = ad_bR.concat(ad_i(ad_bF[0], this.ad_bx, this.ad_bw, false, ad_bi)); ad_bR = ad_bR.concat('</DIV>'); ad_x(ad_bi).innerHTML = ad_bR; ad_D(ad_bi, true); if (ad_bF.length > 1) { if (this.ad_bN) setTimeout(function() { ad_k(ad_bF, 0, ad_bi, ad_aC, ad_bx, ad_bw, 1) }, ad_aC); } }; function ad_E(id, ad_aV) { var ad_aY = true; if (ad_x(id + '_direction')) { direction = ad_x(id + '_direction').value; } else { direction = 0; } if (ad_x(id) && ad_x(id + '_position')) { var ad_ac = ad_y(ad_x(id + '_position'))[1]; var ad_ab = ad_y(ad_x(id + '_position'))[0]; var ad_aa = parseInt(ad_x(id + '_position').offsetHeight); var ad_ad = parseInt(ad_x(id + '_position').offsetWidth); var ad_P = parseInt(ad_x(id).offsetHeight); var ad_Q = parseInt(ad_x(id).offsetWidth); if (direction == 0 || direction == 1) { ad_x(id).style.top = ad_ac + 'px'; } else { ad_x(id).style.top = ad_ac - ad_P + ad_aa + 'px'; } if (direction == 0 || direction == 2) { ad_x(id).style.left = ad_ab + 'px'; } else { ad_x(id).style.left = ad_ab - ad_Q + ad_ad + 'px'; } } if (ad_aV == true) { ad_v(id); ad_x('BannerOffset_' + id).value = ad_x(id).style.left.replace('px', ''); } c = setTimeout(function() { ad_E(id) }, 100); }; function ad_D(id, ad_aV) { var ad_aY = true; if (ad_x(id + '_direction')) { direction = ad_x(id + '_direction').value; } else if (ad_x(id + '_directionfix')) { direction = ad_x(id + '_directionfix').value; ad_aY = false; } else { direction = 0; } if (ad_x(id) && ad_x(id + '_position')) { if (ad_aY) { var ad_ac = ad_y(ad_x(id + '_position'))[1]; var ad_ab = ad_y(ad_x(id + '_position'))[0]; var ad_aa = parseInt(ad_x(id + '_position').offsetHeight); var ad_ad = parseInt(ad_x(id + '_position').offsetWidth); var ad_P = parseInt(ad_x(id).offsetHeight); var ad_Q = parseInt(ad_x(id).offsetWidth); if (direction == 0 || direction == 1) { ad_x(id).style.top = ad_ac + 'px'; } else { ad_x(id).style.top = ad_ac - ad_P + ad_aa + 'px'; } if (direction == 0 || direction == 2) { ad_x(id).style.left = ad_ab + 'px'; } else { ad_x(id).style.left = ad_ab - ad_Q + ad_ad + 'px'; } } else { } } if (ad_aV == true) ad_v(id); setTimeout(function() { ad_D(id) }, 100); }; function ad_v(id) { var ad_aY = true; if (ad_x(id + '_direction')) { direction = ad_x(id + '_direction').value; } else if (ad_x(id + '_directionfix')) { direction = ad_x(id + '_directionfix').value; ad_aY = false; } else { direction = 0; } if (ad_x(id) && ad_x(id + '_position')) { var ad_N = parseInt(ad_x(id + '_child').offsetHeight); var ad_O = parseInt(ad_x(id + '_child').offsetWidth); var ad_ag = parseInt(ad_x(id).offsetHeight); var ad_ah = parseInt(ad_x(id).offsetWidth); if (direction == 0 || direction == 1) { ad_x(id + '_child').style.top = 0 + 'px'; } else { } if (direction == 0 || direction == 2) { ad_x(id + '_child').style.left = 0 + 'px'; } else { } } }; function expandselfbanner(ad_au, ad_bx, ad_bw) { ad_x(ad_au).style.zIndex = "120"; ad_x(ad_au + '_status').value = 1; if (ad_x(ad_au + '_directionfix')) { var ad_bZ = ad_x(ad_au + '_child').style.top; var ad_bs = ad_x(ad_au + '_child').style.left; ad_x(ad_au).style.height = ad_bw + 'px'; ad_x(ad_au).style.width = ad_bx + 'px'; ad_x(ad_au).style.top = ad_bZ; ad_x(ad_au).style.left = ad_bs; ad_x(ad_au + '_child').style.top = '0px'; ad_x(ad_au + '_child').style.left = '0px'; } else { if (ad_x(ad_au + '_position')) { ad_x(ad_au).style.height = ad_bw + 'px'; ad_x(ad_au).style.width = ad_bx + 'px'; ad_D(ad_au); ad_v(ad_au); return; } var ad_I = parseInt(ad_x(ad_au).offsetHeight); var ad_L = parseInt(ad_x(ad_au).offsetWidth); if ((ad_I < ad_bw - 10) || (ad_L < ad_bx - 10)) { if (ad_I < ad_bw - 10) { ad_x(ad_au).style.height = ad_I + 10 + 'px'; } else { ad_x(ad_au).style.height = ad_bw + 'px'; } if (ad_L < ad_bx - 10) { ad_x(ad_au).style.width = ad_L + 10 + 'px'; } else { ad_x(ad_au).style.width = ad_bx + 'px'; } ad_D(ad_au); ad_v(ad_au); setTimeout(function() { expandselfbanner(ad_au, ad_bx, ad_bw) }, 5); return; } else { ad_x(ad_au).style.height = ad_bw + 'px'; ad_x(ad_au).style.width = ad_bx + 'px'; ad_D(ad_au); ad_v(ad_au); } } }; function collapselfbanner(ad_au, ad_bx, ad_bw) { ad_x(ad_au).style.zIndex = "100"; if (ad_x(ad_au + '_directionfix')) { var ad_ca = ad_x(ad_au).style.top; var ad_bt = ad_x(ad_au).style.left; ad_x(ad_au).style.height = ad_bw + 'px'; ad_x(ad_au).style.width = ad_bx + 'px'; ad_x(ad_au).style.top = '0px'; ad_x(ad_au).style.left = '0px'; ad_x(ad_au + '_child').style.top = ad_ca; ad_x(ad_au + '_child').style.left = ad_bt; } else { if (ad_x(ad_au + '_position')) { ad_x(ad_au).style.height = ad_bw + 'px'; ad_x(ad_au).style.width = ad_bx + 'px'; ad_D(ad_au); ad_v(ad_au); return; } var ad_I = parseInt(ad_x(ad_au).offsetHeight); var ad_L = parseInt(ad_x(ad_au).offsetWidth); if ((ad_I > ad_bw + 10) || (ad_L > ad_bx + 10)) { if (ad_I > ad_bw + 10) { ad_x(ad_au).style.height = ad_I - 10 + 'px'; } else { ad_x(ad_au).style.height = ad_bw + 'px'; } if (ad_L > ad_bx + 10) { ad_x(ad_au).style.width = ad_L - 10 + 'px'; } else { ad_x(ad_au).style.width = ad_bx + 'px'; } ad_D(ad_au); ad_v(ad_au); setTimeout(function() { collapselfbanner(ad_au, ad_bx, ad_bw) }, 5); return; } else { ad_x(ad_au).style.height = ad_bw + 'px'; ad_x(ad_au).style.width = ad_bx + 'px'; ad_D(ad_au); ad_v(ad_au); ad_x(ad_au + '_status').value = 0; } } }; function ad_C(ad_bF, index, ad_au, ad_aC, ad_bx, ad_bw) { var ad_aZ = ad_x(ad_au); if (!ad_aZ) return; var ad_bJ = parseInt(ad_aZ.style.top); ad_bJ = ad_bJ - Math.round(parseInt(ad_aZ.style.top) / 8) - 1; if (ad_bJ > 0) { ad_aZ.style.top = ad_bJ; setTimeout(function() { ad_C(ad_bF, index, ad_au, ad_aC, ad_bx, ad_bw) }, 10); } else { ad_aZ.style.top = 0; setTimeout(function() { ad_q(ad_bF, index, ad_au, ad_aC, ad_bx, ad_bw) }, ad_aC); } }; function ad_q(ad_bF, index, ad_au, ad_aC, ad_bx, ad_bw) { var ad_aZ = ad_x(ad_au); if (!ad_aZ) return; var ad_bJ = parseInt(ad_aZ.style.top); ad_bJ = ad_bJ + Math.round((ad_bw - parseInt(ad_aZ.style.top)) / 8) + 1; if (ad_bJ < ad_bw) { ad_aZ.style.top = ad_bJ; setTimeout(function() { ad_q(ad_bF, index, ad_au, ad_aC, ad_bx, ad_bw) }, 10); } else { ad_aZ.style.top = ad_bw; if (index == ad_bF.length - 1) { index = 0; } else { index++; } ad_x(ad_au).innerHTML = ad_i(ad_bF[index], ad_bx, ad_bw); setTimeout(function() { ad_C(ad_bF, index, ad_au, ad_aC, ad_bx, ad_bw) }, 5000); } }; function ad_i(ad_bF, ad_bx, ad_bw, ad_ay, zoneid, stop) { if (!ad_bF) { return '' } var ad_bR = ''; typeof (stop) == 'undefined'; var ad_bO = (ad_c(ad_bF[0], 7).toLowerCase() == 'http://') ? ad_bF[0] : ad_S.concat(ad_bF[0]); if (typeof (ad_ay) == "undefined") ad_ay = true; var ad_bl = (ad_bx < ad_bF[3] && ad_bx > 0 && ad_ay) ? ad_bx : ad_bF[3]; var ad_bk = (ad_bw < ad_bF[4] && ad_bw > 0 && ad_ay) ? ad_bw : ad_bF[4]; if (ad_bF[0].toLowerCase().indexOf('vnexpress_extendbanner') > 0 && ad_bF[1].toLowerCase() == 'http://vnexpress.net') { ad_bR = ad_bR.concat('<IFRAME MARGINWIDTH="0" MARGINHEIGHT="0" HSPACE="0" VSPACE="0" FRAMEBORDER="0" SCROLLING="ad_bC" '); ad_bR = ad_bR.concat(' WIDTH="').concat(ad_bF[3]).concat('" HEIGHT="').concat(ad_bF[4]).concat('" '); ad_bR = ad_bR.concat(' SRC="/Customize/ExtendBanner/').concat(Trim(ad_bF[2].split(',')[12])).concat('.htm"></IFRAME>'); } else { if (ad_e(ad_bF[0], 4).toLowerCase() == '.swf') { ad_bR = ad_bR.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(ad_bl).concat(' height=').concat(ad_bk).concat('>'); ad_bR = ad_bR.concat('<param name="movie" value="').concat(ad_bO).concat('?link=').concat(escape(ad_h(ad_bF[2].substring(ad_bF[2].lastIndexOf(',') + 2), ad_bF[1], false))).concat('&zoneid=').concat(zoneid).concat('&stop=').concat(stop).concat('">'); ad_bR = ad_bR.concat('<param name="AllowScriptAccess" value="always">'); ad_bR = ad_bR.concat('<param name="quality" value="High">'); ad_bR = ad_bR.concat('<param name="wmode" value="transparent">'); ad_bR = ad_bR.concat('<embed src="').concat(ad_bO).concat('?link=').concat(escape(ad_h(ad_bF[2].substring(ad_bF[2].lastIndexOf(',') + 2), ad_bF[1], false))).concat('&zoneid=').concat(zoneid).concat('&stop=').concat(stop).concat('" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" AllowScriptAccess="always" width=').concat(ad_bl).concat(' height=').concat(ad_bk).concat('>'); ad_bR = ad_bR.concat('</object>'); } else { if (ad_bF[1] != '') { ad_bR = '<img src="'.concat(ad_bO).concat('" onClick="return ad_z(\'').concat(ad_bF[1]).concat('\', ').concat(ad_bF[2]).concat(', 1)" style="cursor:pointer;" border=0 width=').concat(ad_bl).concat(' height=').concat(ad_bk).concat('>'); } else { ad_bR = '<img src="'.concat(ad_bO).concat('" border=0 width=').concat(ad_bl).concat(' height=').concat(ad_bk).concat('>'); } } } return ad_bR; }; adlistshow.prototype.ad_ax = function(ad_bF) { var ad_aw = false; var ad_bd; if (this.ad_bT == 8) { ad_bd = ad_bF[9]; } else { ad_bd = ad_bF[6]; } if (ad_bd == 3 && this.ad_az < 4) ad_aw = true; else if (ad_bd == this.ad_az || ad_bd == 0) ad_aw = true; if (ad_aw && this.ad_bT == 7) { ad_aw = false; if (typeof (ad_aQ) == 'undefined') return; var ad_aP = new Date(ad_bF[7]); var ad_aR = new Date(ad_bF[8]); var ad_be = (ad_aQ.getTime() - ad_aP.getTime()) / 1000; var ad_bh = (ad_aR.getTime() - ad_aQ.getTime()) / 1000; if (ad_be < 5 * 86400 && ad_be >= 0 && ad_bh > 5 * 86400 && ad_bh >= 0) { ad_aw = true; } } return ad_aw; }; function ad_B() { return (Math.random() * 10000) - 5000; }; function ad_A(ad_cj, vLink, ad_cr, ad_cp, ad_cv, ad_cg, ad_cu, ad_cl, ad_ch) { if (typeof (ad_ch) == 'undefined') { ad_ch = false; } if (ad_ch) { var ad_bK = open('/Library/Common/PopupUnder.Asp?ad_cj='.concat(escape(ad_cj)).concat('&vLink=').concat(escape(vLink)).concat('&ad_cr=').concat(escape(ad_cr)), 'Popup_'.concat(ad_d(ad_cr, ' ', '_')), 'status=ad_bC,resizable=ad_bC,scrollbars='.concat(ad_cp).concat(',toolbar=ad_bC,location=ad_bC,fullscreen=ad_bC,titlebar=ad_bC,height=').concat(ad_cg).concat(',').concat('width=').concat(ad_cv).concat(',').concat('top=').concat(0).concat(',').concat('left=').concat(0)); var ad_Z = vLink; window.focus(); if (ad_bK) { ad_bK.blur() }; return ad_bK; } else { return open('/Library/Common/Popup.Asp?ad_cj='.concat(escape(ad_cj)).concat('&vLink=').concat(escape(vLink)).concat('&ad_cr=').concat(escape(ad_cr)), 'Popup_'.concat(ad_d(ad_cr, ' ', '_')), 'status=ad_bC,resizable=ad_bC,scrollbars=ad_bC,toolbar=ad_bC,location=ad_bC,fullscreen=ad_bC,titlebar=yes,height='.concat(ad_cg).concat(',').concat('width=').concat(ad_cv).concat(',').concat('top=').concat(ad_cu).concat(',').concat('left=').concat(ad_cl)); } }; function ad_z(vLink, ad_cq, ad_co, ad_cp, ad_ct, ad_cm, ad_cf, ad_cs, ad_cd, ad_cg, ad_cv, ad_cu, ad_cl, ad_ci, ad_ce) { var ad_bQ = (typeof (vLink.href) == 'undefined') ? vLink : vLink.href; ad_cw = ''; ad_cw = ad_cw.concat('status=').concat((ad_cq) ? 'yes' : 'ad_bC').concat(','); ad_cw = ad_cw.concat('resizable=').concat((ad_co) ? 'yes' : 'ad_bC').concat(','); ad_cw = ad_cw.concat('scrollbars=').concat((ad_cp) ? 'yes' : 'ad_bC').concat(','); ad_cw = ad_cw.concat('toolbar=').concat((ad_ct) ? 'yes' : 'ad_bC').concat(','); ad_cw = ad_cw.concat('location=').concat((ad_cm) ? 'yes' : 'ad_bC').concat(','); ad_cw = ad_cw.concat('fullscreen=').concat((ad_cf) ? 'yes' : 'ad_bC').concat(','); ad_cw = ad_cw.concat('titlebar=').concat((ad_cs) ? 'yes' : 'ad_bC').concat(','); ad_cw = ad_cw.concat('height=').concat(ad_cg - 140).concat(','); ad_cw = ad_cw.concat('width=').concat(ad_cv).concat(','); if (ad_cd) { ad_cw = ad_cw.concat('top=').concat((screen.height - ad_cg) / 2).concat(','); ad_cw = ad_cw.concat('left=').concat((screen.width - ad_cv) / 2); } else { ad_cw = ad_cw.concat('top=').concat(ad_cu).concat(','); ad_cw = ad_cw.concat('left=').concat(ad_cl); } if (typeof (ad_ce) == 'undefined') { ad_ce = 0; } if (typeof (ad_ci) == 'undefined') { ad_ci = 0; } if (ad_ce) { ad_bQ = ad_h(ad_ci, ad_bQ, true); } open(ad_bQ, '_blank', ad_cw); if (typeof (vLink.href) != 'undefined') { return false; } }; function ad_h(ad_ci, vLink, ad_cn) { if (ad_ci == 7256) { return vLink } else { if (ad_cn == true) { return 'http://vnexpress.net/Service/Counter/?n='.concat(ad_ci).concat('&u=').concat(escape(vLink)).concat('&r=').concat(Math.random()); } else { return 'http://vnexpress.net/Service/Counter/?n='.concat(ad_ci).concat('&u=').concat(escape(vLink)); } } }; function ad_b(ad_aO, type, ad_aU) { if (typeof (ad_aU) == 'undefined') { ad_aU = 0 }; var ad_bU, ad_bV; if (type == 1) { ad_bU = document.body.clientWidth - 115; } else { ad_bU = 5; } if (type == 2) { ad_bV = document.body.clientHeight; } else { ad_bV = 0; } if (document.body.clientWidth < 980) { ad_bU = -115 }; window.ad_bW = function(ad_aZ, type, ad_aU) { var ad_bU, ad_bV; var ad_bD = (navigator.appName.indexOf("Netscape") != -1); if (type == 1) { ad_bU = document.body.clientWidth - 115; } else { ad_bU = 5; } if (document.body.clientWidth < 980) { ad_aZ.style.display = 'none'; } else { ad_aZ.style.display = ''; if (document.documentElement && document.documentElement.scrollTop) var ad_bJ = ad_bD ? pageYOffset : document.documentElement.scrollTop; else if (document.body) var ad_bJ = ad_bD ? pageYOffset : document.body.scrollTop; if (type == 2) { ad_bV = document.body.clientHeight - 183; } else { if (document.body.scrollTop > 71) { ad_bV = 3 } else { ad_bV = 71 - document.body.scrollTop }; } ad_aZ.y += (ad_bJ + ad_bV - ad_aZ.y) / 8; ad_aZ.style.left = ad_bU; ad_aZ.style.top = ad_aZ.y + ad_aU; } setTimeout(function() { ad_bW(ad_aZ, type, ad_aU) }, 15); }; var ad_aZ = ad_x(ad_aO); if (!ad_aZ) return; ad_aZ.x = ad_bU; ad_aZ.y = ad_bV; ad_bW(ad_aZ, type, ad_aU); }; var ad_aA = 1; function ad_a(ad_aO, type, ad_aU) { if (typeof (ad_aU) == 'undefined') { ad_aU = 0 }; var ad_bU, ad_bV; if (type == 1 || type == 3) { ad_bU = document.body.clientWidth - 120; } else { ad_bU = 5; } if (type == 2 || type == 3) { ad_bV = document.body.clientHeight; } else { ad_bV = 0; } if (document.body.clientWidth < 1250) { ad_bU = -125 }; window.ad_bW = function(ad_aZ, type, ad_aU) { var ad_bU, ad_bV; var ad_bD = (navigator.appName.indexOf("Netscape") != -1); if (type == 1 || type == 3) { ad_bU = document.body.clientWidth - 125; } else { ad_bU = 5; } if (document.body.clientWidth < 1250) { ad_aZ.style.display = 'none'; } else { ad_aZ.style.display = ''; if (document.documentElement && document.documentElement.scrollTop) var ad_bJ = ad_bD ? pageYOffset : document.documentElement.scrollTop; else if (document.body) var ad_bJ = ad_bD ? pageYOffset : document.body.scrollTop; if (type == 2 || type == 3) { if (document.documentElement && document.documentElement.clientHeight) ad_bV = document.documentElement.clientHeight - 305; else if (document.body) ad_bV = document.body.clientHeight - 305; } else { if (document.documentElement) { if (document.documentElement.scrollTop > 98) { ad_bV = 3 } else { ad_bV = 98 - document.documentElement.scrollTop; }; } else if (document.body) { if (document.body.scrollTop > 98) { ad_bV = 3 } else { ad_bV = 98 - document.body.scrollTop; }; } } ad_aZ.y += (ad_bJ + ad_bV - ad_aZ.y) / 8; ad_aZ.style.left = ad_bU + 'px'; ad_aZ.style.top = ad_aZ.y + ad_aU + 'px'; } setTimeout(function() { ad_bW(ad_aZ, type, ad_aU) }, 15); }; var ad_aZ = ad_x(ad_aO); if (!ad_aZ) return; ad_aZ.x = ad_bU; ad_aZ.y = ad_bV; ad_bW(ad_aZ, type, ad_aU); }; function ad_x(ad_bA) { if (document.getElementById) { m = document.getElementById(ad_bA) } else if (document.all) { m = document.all[ad_bA] } else if (document.layers) { m = document[ad_bA] } return m; }; function ad_y(ad_bF, ad_bI) { var p = ad_bI ? ad_bI.slice(0) : [0, 0]; while (ad_bF) { p[0] += ad_bF.offsetLeft; p[1] += ad_bF.offsetTop; if (ad_bF.tagName.toUpperCase() == "BODY") break; ad_bF = ad_bF.offsetParent; } return p; }; function ad_c(ad_bX, n) { if (n <= 0) return ""; else if (n > String(ad_bX).length) return ad_bX; else return String(ad_bX).substring(0, n); }; function ad_e(ad_bX, n) { if (n <= 0) return ""; else if (n > String(ad_bX).length) return ad_bX; else { var ad_bf = String(ad_bX).length; return String(ad_bX).substring(ad_bf, ad_bf - n); } }; function ad_d(ad_bg, ad_cb, ad_cc) { var i = 0, ad_bE = '', j = ad_cb.length; while (i < ad_bg.length) { if (ad_bg.substr(i, j) == ad_cb) { ad_bE += ad_cc; i += j } else { ad_bE += ad_bg.charAt(i); i++; } } return ad_bE; }
