var pol_an; var pol_ao; var pol_ap; pol_an = 'images/photo/news/'; pol_ao = '#'; pol_ap = '#'; function cpmst_adlistshow(pol_pol_z, pol_A, pol_E, pol_Z, pol_M, pol_O, pol_N, pol_W, pol_J) { this.pol_bF = pol_A; this.pol_al = pol_E; this.pol_bz = pol_O; this.pol_by = pol_N; this.pol_bX = pol_Z; this.face = pol_M; this.pol_aT = 20000; this.pol_aU = 100; if (typeof (pol_W) == 'undefined') { this.pol_bR = true; } else { this.pol_bR = pol_W; }; if (typeof (pol_J) == 'undefined') { this.direction = 0; } else { this.direction = pol_J; }; switch (pol_Z) { case 0: case 4: case 5: case 6: case 9: case 10: case 12: case 13: case 14: case 15: case 16: this.pol_bQ = 0; break; case 8: this.pol_bQ = 2; break; default: this.pol_bQ = 1; break; } var pol_ad = new Array(); var pol_ae = new Array(); var i, j, k, pol_bG, pol_bo, pol_bW; i = 0; j = -1; k = 0; pol_bG = -1; pol_bo = 0; pol_bW = 1; if (this.pol_bQ == 0) { for (i = 0, j = 0; i < pol_pol_z.length; i++) { if (this.pol_ar(pol_pol_z[i])) { pol_ad[j] = pol_pol_z[i]; j++; } } pol_ad.sort(pol_u); this.pol_bu = j + 1; this.pol_bB = pol_ad; } else if (this.pol_bQ == 1) { pol_ad[0] = new Array(); pol_ad[1] = new Array(); for (i = 0; i < pol_pol_z.length; i++) { if (pol_pol_z[i][5] <= 100) { if (pol_pol_z[i][5] != pol_bG) { pol_bG = pol_pol_z[i][5]; pol_bo = 0; j++; k = 0; } else { k++; } } else { if (pol_pol_z[i][5] != pol_bG || pol_pol_z.length <= 10) { if (pol_bG <= 100) j = -1; pol_bG = pol_pol_z[i][5]; pol_bo = 1; j++; k = 0; pol_bW = 0; } else { if (pol_bW >= pol_bG - 100) { j++; k = 0; pol_bW = 0; } else { k++; } } } if (this.pol_ar(pol_pol_z[i])) { if (k == 0) pol_ad[pol_bo][j] = new Array(); pol_ad[pol_bo][j][k] = pol_pol_z[i]; pol_bW++; } } for (i = 0; i < pol_ad.length; i++) { if (i == 1) { pol_ad[i].sort(pol_u) }; for (j = 0; j < pol_ad[i].length; j++) { pol_ad[i][j].sort(pol_u); } } 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_bB = pol_ae; this.pol_bu = k; } else if (this.pol_bQ == 2) { for (i = 0, j = 0; i < pol_pol_z.length; i++) { if (this.pol_ar(pol_pol_z[i])) { pol_ad[j] = new Array(); pol_ad[j][0] = new Array(); pol_ad[j][0][0] = pol_pol_z[i][0]; pol_ad[j][0][1] = pol_pol_z[i][2]; pol_ad[j][0][2] = pol_pol_z[i][3]; pol_ad[j][0][3] = pol_pol_z[i][4]; pol_ad[j][0][4] = pol_pol_z[i][5]; pol_ad[j][1] = new Array(); pol_ad[j][1][0] = pol_pol_z[i][1]; pol_ad[j][1][1] = pol_pol_z[i][2]; pol_ad[j][1][2] = pol_pol_z[i][3]; pol_ad[j][1][3] = pol_pol_z[i][6]; pol_ad[j][1][4] = pol_pol_z[i][7]; j++; } } pol_ad.sort(pol_u); this.pol_bu = j + 1; this.pol_bB = pol_ad; } this.pol_br(); }; cpmst_adlistshow.prototype.pol_br = function() { switch (this.pol_bX) { case 0: this.pol_az(); break; case 1: case 7: case 11: this.pol_ax(); break; case 2: this.pol_au(0); break; case 3: this.pol_au(1); break; case 4: this.pol_au(2); break; case 5: this.pol_ay(false); break; case 6: this.pol_ay(true); break; case 8: this.pol_as(); break; case 9: this.pol_aB(); break; case 10: this.pol_av(); break; case 12: this.pol_at(0); break; case 13: this.pol_at(1); break; case 14: this.pol_at(2); break; case 15: this.pol_at(3); break; case 16: this.pol_aw(); break; case 17: this.pol_aC(0); break; case 18: this.pol_aC(1); break; case 19: this.pol_aA(); break; case 20: this.pol_aD(); break; default: break; } }; cpmst_adlistshow.prototype.pol_aq = function(index) { if (this.pol_bQ == 0) { return true; } else { if (this.pol_bB.length == index + 1) { return true; } else { return false; } } }; cpmst_adlistshow.prototype.pol_az = function() { document.write('<table ', (this.pol_bz > 0) ? 'width='.concat(this.pol_bz) : '', ' cellspacing=0 cellpadding=0 border=0 align=center>'); this.pol_aO(this.pol_bB, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_ax = function() { if (this.face == 0 || this.face == 3) { document.write('<table ', (this.pol_bz > 0) ? 'width='.concat(this.pol_bz) : '', ' cellspacing=0 cellpadding=0 border=0 align=center>'); } else if (this.face == 2) { document.write('<table ', (this.pol_bz > 0) ? 'width='.concat(this.pol_bz) : '', ' cellspacing=0 cellpadding=0 border=0 align=center><tr>'); } for (var i = 0; i < this.pol_bB.length; i++) { this.pol_aO(this.pol_bB[i], i, this.pol_aq(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_aq(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_au = function(type) { if (type == 2) { document.write('<DIV id="floatdiv', this.pol_bF, '" style="position:absolute;overflow:hidden;top:0;left:-200;', (this.pol_by > 0) ? 'height:'.concat(this.pol_by) : '180', ';', (this.pol_bz > 0) ? 'width:'.concat(this.pol_bz) : '115', ';">'); this.pol_aG(this.pol_bB); } else { document.write('<DIV id="floatdiv', this.pol_bF, '" style="position:absolute;top:0;left:-200;', (this.pol_bz > 0) ? 'width:'.concat(this.pol_bz) : '115', ';">'); this.pol_ax(); } document.write('</DIV>'); if (this.pol_bB.length > 0) { pol_b('floatdiv'.concat(this.pol_bF), type); } }; cpmst_adlistshow.prototype.pol_at = function(type) { switch (type) { case 0: case 1: document.write('<DIV id="fixfloatdiv', this.pol_bF, '" style="position:absolute;z-index:200;top:0;left:-200;', (this.pol_bz > 0) ? 'width:'.concat(this.pol_bz) : '120', ';">'); break; case 2: case 3: document.write('<DIV id="fixfloatdiv', this.pol_bF, '" style="position:absolute;z-index:200;top:0;left:-200;', (this.pol_by > 0) ? 'height:'.concat(this.pol_by) : '150', ';', (this.pol_bz > 0) ? 'width:'.concat(this.pol_bz) : '120', ';">'); break; } this.pol_aI(this.pol_bB, 0); document.write('</DIV>'); if (this.pol_bB.length > 0) { pol_a('fixfloatdiv'.concat(this.pol_bF), type); } }; cpmst_adlistshow.prototype.pol_ay = function(type) { pol_cn = this.pol_bB[0][2].lastIndexOf(','); pol_cl = this.pol_bB[0][2].substr(pol_cn + 2); pol_bU = pol_g(pol_cl, this.pol_bB[0][1], true); var pol_af = this.pol_bB[0][2].split(","); pol_t(this.pol_bB[0][0], pol_bU, 'Advertisment', pol_af[2], pol_af[9], pol_af[8], screen.height - pol_af[9] - 80, (screen.width - 770) / 2 + 410 - 5, type); }; cpmst_adlistshow.prototype.pol_as = function() { document.write('<table align=center ', (this.pol_bz > 0) ? 'width='.concat(this.pol_bz) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.pol_aH(this.pol_bB, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_aB = function() { document.write('<table align=center ', (this.pol_bz > 0) ? 'width='.concat(this.pol_bz) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.pol_aR(this.pol_bB, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_av = function() { document.write('<table align=center ', (this.pol_bz > 0) ? 'width='.concat(this.pol_bz) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.pol_aK(this.pol_bB, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_aw = function() { this.pol_aM(this.pol_bB, 0); }; cpmst_adlistshow.prototype.pol_aO = function(pol_bJ, index, pol_bv) { if (this.face == 1) { document.write('<tr><td id="', this.pol_bF, '_', index, '" style="padding:4px;">'); } else if (this.face == 2) { document.write('<td id="', this.pol_bF, '_', index, '" style="padding:4px;">'); } else { document.write('<tr><td id="', this.pol_bF, '_', index, '">'); } document.write(pol_h(pol_bJ[0], this.pol_bz, this.pol_by)); if (pol_bJ.length > 1) { var pol_bn = ''.concat(this.pol_bF).concat('_').concat(index); var pol_aV = this.pol_aT; var pol_aW = this.pol_aU; var pol_bz = this.pol_bz; var pol_by = this.pol_by; if (this.pol_bX == 11) { if (this.pol_bR) { var pol_am = 0; setTimeout(function() { pol_j(pol_bJ, pol_bn, pol_aW, pol_bz, pol_by, 0) }, 0); setTimeout(function() { pol_l(pol_bJ, pol_bn, pol_aW, pol_bz, pol_by, pol_am, 0) }, 0); } } else { if (this.pol_bR) setTimeout(function() { pol_i(pol_bJ, 0, pol_bn, pol_aV, pol_bz, pol_by) }, pol_aV); } } if (this.face == 2) { document.write('</td>'); } else { if (pol_bJ.length > 1 && this.pol_bX == 11) { document.write('</td></tr>'); document.write('<tr><td>'); document.write('	<input type="hidden" value="0" id="hidFlag_' + pol_bn + '" name="hidFlag_' + pol_bn + '" />'); document.write('	<input type="hidden" value="0" id="hidLoop_' + pol_bn + '" name="hidLoop_' + pol_bn + '" />'); 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_bJ.length; i++) { document.write('<div id="numb' + pol_bn + i + '" style="float:left;width:20px;font-family:arial;font-size:12px;height:17px;text-align:center;margin:2px 0px 0px 0px;cursor:pointer;" onclick="cpmst_gmobj(\'hidLoop_' + pol_bn + '\').value =' + i + '; cpmst_gmobj(\'hidFlag_' + pol_bn + '\').value = 100;">' + (i + 1) + '</div>'); } document.write('		</div>'); document.write('	<div class="divArrowL" onmouseover="cpmst_gmobj(\'divArrowL_' + pol_bn + '\').className = \'divArrowL_Active\';" onmouseout="cpmst_gmobj(\'divArrowL_' + pol_bn + '\').className = \'divArrowL\';" onclick="cpmst_gmobj(\'hidFlag_' + pol_bn + '\').value = -1;" id="divArrowL_' + pol_bn + '">&nbsp;</div>'); document.write('	<div style="float:left;width:4px;">&nbsp;</div>'); document.write('	<div class="divArrowR" onmouseover="cpmst_gmobj(\'divArrowR_' + pol_bn + '\').className = \'divArrowR_Active\';" onmouseout="cpmst_gmobj(\'divArrowR_' + pol_bn + '\').className = \'divArrowR\';" onclick="cpmst_gmobj(\'hidFlag_' + pol_bn + '\').value = 1;" id="divArrowR_' + pol_bn + '">&nbsp;</div>'); document.write('</td></tr>'); } else { document.write('</td></tr>'); } } }; cpmst_adlistshow.prototype.pol_aN = function(pol_bJ, pol_bv) { for (var i = 0; i < pol_bJ.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_h(pol_bJ[i], this.pol_bz, this.pol_by)); 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_bJ.length - 1)) { document.write('<tr><td height="1" bgcolor="#808080"></td></tr>'); } } }; cpmst_adlistshow.prototype.pol_aG = function(pol_bJ) { document.write('<DIV id="subdiv', this.pol_bF, '" style="position:absolute;', (this.pol_by > 0) ? 'top:'.concat(this.pol_by) : '180', ';', (this.pol_bz > 0) ? 'width:'.concat(this.pol_bz) : '115', ';', (this.pol_by > 0) ? 'height:'.concat(this.pol_by) : '180', ';">'); document.write(pol_h(pol_bJ[0], this.pol_bz, this.pol_by)); var pol_bn = 'subdiv'.concat(this.pol_bF); var pol_aV = this.pol_aT; var pol_bz = this.pol_bz; var pol_by = this.pol_by; setTimeout(function() { pol_v(pol_bJ, 0, pol_bn, pol_aV, pol_bz, pol_by) }, 500); document.write('</DIV>'); }; cpmst_adlistshow.prototype.pol_aH = function(pol_bJ) { if (pol_bJ.length <= 0) return; var pol_bz = this.pol_bz; var pol_by = this.pol_by; var pol_bn = ''.concat(this.pol_bF); var pol_aV = this.pol_aT; document.write('<tr><td>'); document.write('<DIV id="', pol_bn, '" style="position:related;overflow:hidden;width:'.concat(pol_bJ[0][0][3]), ';height:'.concat(pol_bJ[0][0][4]), ';">'); document.write(pol_h(pol_bJ[0][0], this.pol_bz, this.pol_by)); if (pol_bJ.length > 1) { } document.write('</DIV></td></tr>'); document.write('<tr><td align=center id="', pol_bn, '_extend"><font face="Arial" size="1"><b>'); document.write('<span id="', pol_bn, '_expandcollap" style="cursor:pointer;">M&#7903; r&#7897;ng</span>&nbsp;-&nbsp;'); document.write('<span id="', pol_bn, '_close" style="cursor:pointer;">&#272;&#243;ng</span>'); document.write('<input type="hidden" id="', this.pol_bF, '_hidden">'); document.write('</td></tr>'); cpmst_gmobj(pol_bn + '_hidden').value = 0; cpmst_gmobj(pol_bn).onmouseover = function() { pol_p(pol_bJ, pol_bn, pol_bz, pol_by) }; cpmst_gmobj(pol_bn + '_expandcollap').onclick = function() { pol_p(pol_bJ, pol_bn, pol_bz, pol_by) }; cpmst_gmobj(pol_bn + '_close').onclick = function() { pol_m(pol_bn) }; }; function pol_p(pol_bJ, pol_ah, pol_bz, pol_by) { var index = cpmst_gmobj(pol_ah + '_hidden').value; if (parseInt(cpmst_gmobj(pol_ah).offsetHeight) < pol_bJ[index][1][4]) { cpmst_gmobj(pol_ah).style.height = parseInt(cpmst_gmobj(pol_ah).offsetHeight) + 10; setTimeout(function() { pol_p(pol_bJ, pol_ah, pol_bz, pol_by) }, 5); return; } cpmst_gmobj(pol_ah).onmouseover = 'undefine'; cpmst_gmobj(pol_ah + '_expandcollap').innerHTML = 'Thu nh&#7887;'; cpmst_gmobj(pol_ah + '_expandcollap').onclick = function() { pol_n(pol_bJ, pol_ah, pol_bz, pol_by) }; cpmst_gmobj(pol_ah).innerHTML = pol_h(pol_bJ[index][1], pol_bz, pol_by); }; function pol_n(pol_bJ, pol_ah, pol_bz, pol_by) { var index = cpmst_gmobj(pol_ah + '_hidden').value; if (parseInt(cpmst_gmobj(pol_ah).offsetHeight) > pol_bJ[index][0][4]) { cpmst_gmobj(pol_ah).style.height = parseInt(cpmst_gmobj(pol_ah).offsetHeight) - 10; setTimeout(function() { pol_n(pol_bJ, pol_ah, pol_bz, pol_by) }, 5); return; } cpmst_gmobj(pol_ah).onmouseover = function() { pol_p(pol_bJ, pol_ah, pol_bz, pol_by) }; cpmst_gmobj(pol_ah + '_expandcollap').innerHTML = 'M&#7903; r&#7897;ng'; cpmst_gmobj(pol_ah + '_expandcollap').onclick = function() { pol_p(pol_bJ, pol_ah, pol_bz, pol_by) }; cpmst_gmobj(pol_ah).innerHTML = pol_h(pol_bJ[index][0], pol_bz, pol_by); }; function pol_m(pol_ah) { cpmst_gmobj(pol_ah).style.display = 'none'; cpmst_gmobj(pol_ah + '_extend').style.display = 'none'; }; function pol_i(pol_bJ, index, pol_ah, pol_aV, pol_bz, pol_by) { if (index == pol_bJ.length - 1) { index = 0; } else { index++; } cpmst_gmobj(pol_ah).innerHTML = pol_h(pol_bJ[index], pol_bz, pol_by); setTimeout(function() { pol_i(pol_bJ, index, pol_ah, pol_aV, pol_bz, pol_by) }, pol_aV); }; function pol_l(pol_bJ, pol_ah, pol_aW, pol_bz, pol_by, pol_am, loop) { var pol_bh; pol_bh = cpmst_gmobj("hidFlag_" + pol_ah).value; if (pol_bh == 0) { if (pol_am == pol_aW) { loop++; setTimeout(function() { pol_j(pol_bJ, pol_ah, pol_aW, pol_bz, pol_by, loop) }, 0); } } else if (pol_bh == 1) { loop++; setTimeout(function() { pol_j(pol_bJ, pol_ah, pol_aW, pol_bz, pol_by, loop) }, 0); cpmst_gmobj("hidFlag_" + pol_ah).value = 0; pol_am = 0; } else if (pol_bh == -1) { loop--; setTimeout(function() { pol_j(pol_bJ, pol_ah, pol_aW, pol_bz, pol_by, loop) }, 0); cpmst_gmobj("hidFlag_" + pol_ah).value = 0; pol_am = 0; } else { loop = cpmst_gmobj('hidLoop_' + pol_ah).value; setTimeout(function() { pol_j(pol_bJ, pol_ah, pol_aW, pol_bz, pol_by, loop) }, 0); cpmst_gmobj("hidFlag_" + pol_ah).value = 0; cpmst_gmobj('hidLoop_' + pol_ah).value = 0; pol_am = 0; } pol_am++; if (pol_am > pol_aW) { pol_am = 0; } if (loop == pol_bJ.length) { loop = 0; } if (loop < 0) { loop = (pol_bJ.length - 1); } setTimeout(function() { pol_l(pol_bJ, pol_ah, pol_aW, pol_bz, pol_by, pol_am, loop) }, 100); }; function pol_j(pol_bJ, pol_ah, pol_aW, pol_bz, pol_by, pol_bd) { cpmst_gmobj(pol_ah).innerHTML = pol_h(pol_bJ[pol_bd], pol_bz, pol_by); var k; for (k = 0; k < pol_bJ.length; k++) { if (k == pol_bd) { document.getElementById("numb" + pol_ah + k).style.backgroundColor = "2879ca"; document.getElementById("numb" + pol_ah + k).style.border = "solid 2px #cccccc"; } else { document.getElementById("numb" + pol_ah + k).style.backgroundColor = "0066cc"; document.getElementById("numb" + pol_ah + k).style.border = "solid 2px #0066cc"; } } }; function pol_k(pol_bJ, index, pol_ah, pol_aV, pol_bz, pol_by) { if (cpmst_gmobj(pol_ah + '_status').value == '0') { if (index == pol_bJ.length - 1) { index = 0; } else { index++; } var pol_bV = ''; pol_bV = pol_bV.concat('<DIV id="').concat(pol_ah).concat('_child" style="position:absolute;top:0px;left:0px;width:').concat(pol_bJ[index][3]).concat('px;height:').concat(pol_bJ[index][4]).concat('px;">'); pol_bV = pol_bV.concat(pol_h(pol_bJ[index], pol_bz, pol_by, false, pol_ah)); pol_bV = pol_bV.concat('</DIV>'); cpmst_gmobj(pol_ah).innerHTML = pol_bV; pol_q(pol_ah); } setTimeout(function() { pol_k(pol_bJ, index, pol_ah, pol_aV, pol_bz, pol_by) }, pol_aV); }; cpmst_adlistshow.prototype.pol_aR = function(pol_bJ) { if (pol_bJ.length <= 0) return; var pol_bz = (this.pol_bz < pol_bJ[0][3] && this.pol_bz > 0) ? this.pol_bz : pol_bJ[0][3]; var pol_by = (this.pol_by < pol_bJ[0][4] && this.pol_by > 0) ? this.pol_by : pol_bJ[0][4]; var pol_bn = ''.concat(this.pol_bF); var pol_aV = this.pol_aT; document.write('<tr><td>'); document.write('<DIV id="', pol_bn, '" style="position:relative;overflow:hidden;width:'.concat(pol_bz), 'px;height:'.concat(pol_by), 'px;">'); document.write(pol_h(pol_bJ[0], this.pol_bz, this.pol_by, false, pol_bn)); document.write('</DIV>'); document.write('<input type="hidden" id="', pol_bn, '_status" value="0">'); document.write('</td></tr>'); if (this.pol_bR) setTimeout(function() { pol_k(pol_bJ, 0, pol_bn, pol_aV, pol_bz, pol_by) }, pol_aV); }; cpmst_adlistshow.prototype.pol_aM = function(pol_bJ) { if (pol_bJ.length <= 0) return; var pol_bz = (this.pol_bz < pol_bJ[0][3] && this.pol_bz > 0) ? this.pol_bz : pol_bJ[0][3]; var pol_by = (this.pol_by < pol_bJ[0][4] && this.pol_by > 0) ? this.pol_by : pol_bJ[0][4]; var pol_bn = ''.concat(this.pol_bF); var pol_aV = this.pol_aT; var pol_bV = ''; document.write('<div id="', pol_bn, '123" style="overflow:hidden;position:absolute;z-index:10001;left:0px;top:0px;height:2000px;background-color:#F4F5F6;display:none;"></div>'); if (typeof (RelatedFolder) == 'undefined') { document.write("<div id='" + pol_bn + "_position' style='overflow:hidden;position:relative;height:" + this.pol_by + "px;width:" + this.pol_bz + "px;'></div>"); document.write("<div id='" + pol_bn + "' style='overflow:hidden;height:" + this.pol_by + "px;z-index:0;width:" + this.pol_bz + "px;position:absolute;left:-1000px'>"); } else { if (RelatedFolder == 1) { document.write('<div id="', pol_bn, '_position" style="overflow:hidden;position:relative;height:200px;width:250px;"></div>'); document.write('<div id="', pol_bn, '" style="overflow:hidden;height:250px;z-index:0;width:300px;position:absolute;">'); } else { document.write('<div id="', pol_bn, '_position" style="overflow:hidden;position:relative;height:200px;width:250px;"></div>'); document.write('<div id="', pol_bn, '" style="overflow:hidden;height:200px;z-index:0;width:250px;position:absolute;">'); } } document.write(pol_h(pol_bJ[0], this.pol_bz, this.pol_by, false, pol_bn)); document.write('</div>'); document.write('<input type="hidden" id="pol_C" value="', pol_bn, '">'); document.write('<input type="hidden" id="IsMove" value="False" />'); document.write('<input type="hidden" id="', pol_bn, '_status" value="0">'); pol_y(pol_bn, false); if (this.pol_bR) setTimeout(function() { pol_k(pol_bJ, 0, pol_bn, pol_aV, pol_bz, pol_by); }, pol_aV); }; cpmst_adlistshow.prototype.cpmst_MoveLeft = function(pol_bz, pol_by) { var pol_C = cpmst_gmobj("pol_C").value; var pol_ab = window.screen.width; var pol_aa = cpmst_gmobj("divMove").style.width; var pol_L = 0; var pol_K; pol_L = (parseInt(pol_ab) - parseInt(pol_aa)) / 2; pol_bK = cpmst_gmobj("divMove").style.marginLeft.replace("px", ""); cpmst_gmobj(pol_C + "123").style.width = pol_L + "px"; cpmst_gmobj(pol_C + "123").style.display = ""; cpmst_gmobj(pol_C + "_status").value = 1; if (RelatedFolder == 1) { pol_K = -650; } else { pol_K = -1400; } if (pol_bK > pol_K) { pol_bK -= 50; cpmst_gmobj("divMove").style.marginLeft = pol_bK + "px"; cpmst_gmobj("divMove").style.display = "block"; if (pol_bK == pol_K) { cpmst_gmobj(pol_C).style.display = "block"; cpmst_gmobj(pol_C).style.height = pol_by + "px"; cpmst_gmobj(pol_C).style.width = pol_bz + "px"; cpmst_gmobj(pol_C).style.zIndex = "1000"; cpmst_gmobj(pol_C).style.left = pol_L + "px"; } } else { cpmst_gmobj("divMove").style.display = ""; clearInterval(a); clearTimeout(b); } }; cpmst_adlistshow.prototype.cpmst_MoveRight = function(pol_bz, pol_by) { var pol_C = cpmst_gmobj("pol_C").value; pol_bK = parseInt(cpmst_gmobj("divMove").style.marginLeft.replace("px", "")); if (pol_bK < 0) { pol_bK += 50; if (pol_bK == 0) { cpmst_gmobj(pol_C + "123").style.display = "none"; } cpmst_gmobj("divMove").style.marginLeft = pol_bK + "px"; cpmst_gmobj("divMove").style.display = "block"; cpmst_gmobj(pol_C).style.display = ""; cpmst_gmobj(pol_C).style.height = pol_by + "px"; cpmst_gmobj(pol_C).style.width = pol_bz + "px"; cpmst_gmobj(pol_C).style.left = ""; cpmst_gmobj(pol_C + "_status").value = 0; } else { cpmst_gmobj("divMove").style.display = ""; clearInterval(a); clearTimeout(b); } }; cpmst_adlistshow.prototype.pol_aE = function(pol_C, pol_bz, pol_by) { if (cpmst_gmobj("divMove").style.display == "block") { return; } b = setTimeout("a=setInterval('cpmst_adlistshow.prototype.cpmst_MoveLeft(" + pol_bz + "," + pol_by + ")',50)", 0); }; cpmst_adlistshow.prototype.pol_aF = function(pol_C, pol_bz, pol_by) { if (cpmst_gmobj("divMove").style.display == "block") { return; } b = setTimeout("a=setInterval('cpmst_adlistshow.prototype.cpmst_MoveRight(" + pol_bz + "," + pol_by + ")',50)", 0); }; cpmst_adlistshow.prototype.pol_aK = function(pol_bJ) { if (pol_bJ.length <= 0) return; var pol_bz = (this.pol_bz < pol_bJ[0][3] && this.pol_bz > 0) ? this.pol_bz : pol_bJ[0][3]; var pol_by = (this.pol_by < pol_bJ[0][4] && this.pol_by > 0) ? this.pol_by : pol_bJ[0][4]; var pol_bn = ''.concat(this.pol_bF); var pol_aV = this.pol_aT; document.write('<tr><td>'); document.write('<DIV id="', pol_bn, '_position" style="position:relative;overflow:hidden;width:'.concat(pol_bz), 'px;height:'.concat(pol_by), 'px;"></DIV>'); document.write('<DIV id="', pol_bn, '" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:-1000px;width:'.concat(pol_bz), 'px;height:'.concat(pol_by), 'px;">'); document.write('</DIV>'); document.write('<input type="hidden" id="', pol_bn, '_direction" value="', this.direction, '">'); document.write('<input type="hidden" id="', pol_bn, '_status" value="0">'); document.write('</td></tr>'); var pol_ac = this; if (window.addEventListener) window.addEventListener("load", function() { pol_ac.pol_aL(pol_bJ) }, false); else if (window.attachEvent) window.attachEvent("onload", function() { pol_ac.pol_aL(pol_bJ) }); else if (document.getElementById) setTimeout(function() { pol_ac.pol_aL(pol_bJ) }, 500); }; cpmst_adlistshow.prototype.pol_aL = function(pol_bJ) { if (pol_bJ.length <= 0) return; var pol_bz = (this.pol_bz < pol_bJ[0][3] && this.pol_bz > 0) ? this.pol_bz : pol_bJ[0][3]; var pol_by = (this.pol_by < pol_bJ[0][4] && this.pol_by > 0) ? this.pol_by : pol_bJ[0][4]; var pol_bn = ''.concat(this.pol_bF); var pol_aV = this.pol_aT; var pol_bV = ''; pol_bV = pol_bV.concat('<DIV id="').concat(pol_bn).concat('_child" style="overflow:hidden;position:absolute;top:0px;left:0px;width:').concat(pol_bJ[0][3]).concat('px;height:').concat(pol_bJ[0][4]).concat('px;">'); pol_bV = pol_bV.concat(pol_h(pol_bJ[0], this.pol_bz, this.pol_by, false, pol_bn)); pol_bV = pol_bV.concat('</DIV>'); cpmst_gmobj(pol_bn).innerHTML = pol_bV; pol_w(pol_bn, true); if (this.pol_bR) setTimeout(function() { pol_k(pol_bJ, 0, pol_bn, pol_aV, pol_bz, pol_by) }, pol_aV); }; cpmst_adlistshow.prototype.pol_aI = function(pol_bJ) { if (pol_bJ.length <= 0) return; var pol_bz = (this.pol_bz < pol_bJ[0][3] && this.pol_bz > 0) ? this.pol_bz : pol_bJ[0][3]; var pol_by = (this.pol_by < pol_bJ[0][4] && this.pol_by > 0) ? this.pol_by : pol_bJ[0][4]; var pol_bn = ''.concat(this.pol_bF); var pol_aV = this.pol_aT; document.write('<DIV id="', pol_bn, '_position" style="position:relative;overflow:hidden;width:'.concat(pol_bz), 'px;height:'.concat(pol_by), 'px;"></DIV>'); document.write('<DIV id="', pol_bn, '" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:0px;width:'.concat(pol_bz), 'px;height:'.concat(pol_by), 'px;">'); document.write('</DIV>'); document.write('<input type="hidden" id="', pol_bn, '_directionfix" value="', this.direction, '">'); document.write('<input type="hidden" id="', pol_bn, '_status" value="0">'); var pol_ac = this; setTimeout(function() { pol_ac.pol_aJ(pol_bJ) }, 300); }; cpmst_adlistshow.prototype.pol_aJ = function(pol_bJ) { if (pol_bJ.length <= 0) return; var pol_bz = (this.pol_bz < pol_bJ[0][3] && this.pol_bz > 0) ? this.pol_bz : pol_bJ[0][3]; var pol_by = (this.pol_by < pol_bJ[0][4] && this.pol_by > 0) ? this.pol_by : pol_bJ[0][4]; var pol_bn = ''.concat(this.pol_bF); var pol_aV = this.pol_aT; var pol_bV = ''; pol_bV = pol_bV.concat('<DIV id="').concat(pol_bn).concat('_child" style="position:absolute;top:0px;left:0px;width:').concat(pol_bJ[0][3]).concat('px;height:').concat(pol_bJ[0][4]).concat('px;">'); pol_bV = pol_bV.concat(pol_h(pol_bJ[0], this.pol_bz, this.pol_by, false, pol_bn)); pol_bV = pol_bV.concat('</DIV>'); cpmst_gmobj(pol_bn).innerHTML = pol_bV; pol_w(pol_bn, true); if (pol_bJ.length > 1) { if (this.pol_bR) setTimeout(function() { pol_k(pol_bJ, 0, pol_bn, pol_aV, pol_bz, pol_by, 1) }, pol_aV); } }; function pol_y(id, pol_bc) { if (cpmst_gmobj(id) && cpmst_gmobj(id + '_position')) { var pol_S = pol_s(cpmst_gmobj(id + '_position'))[1]; var pol_R = pol_s(cpmst_gmobj(id + '_position'))[0]; var pol_Q = parseInt(cpmst_gmobj(id + '_position').offsetHeight); var pol_T = parseInt(cpmst_gmobj(id + '_position').offsetWidth); var pol_H = parseInt(cpmst_gmobj(id).offsetHeight); var pol_I = parseInt(cpmst_gmobj(id).offsetWidth); cpmst_gmobj(id).style.top = pol_S + 'px'; } setTimeout(function() { pol_w(id) }, 100); }; function pol_w(id, pol_bc) { var pol_bf = true; if (cpmst_gmobj(id + '_direction')) { direction = cpmst_gmobj(id + '_direction').value; } else if (cpmst_gmobj(id + '_directionfix')) { direction = cpmst_gmobj(id + '_directionfix').value; pol_bf = false; } else { direction = 0; } if (cpmst_gmobj(id) && cpmst_gmobj(id + '_position')) { if (pol_bf) { var pol_S = pol_s(cpmst_gmobj(id + '_position'))[1]; var pol_R = pol_s(cpmst_gmobj(id + '_position'))[0]; var pol_Q = parseInt(cpmst_gmobj(id + '_position').offsetHeight); var pol_T = parseInt(cpmst_gmobj(id + '_position').offsetWidth); var pol_H = parseInt(cpmst_gmobj(id).offsetHeight); var pol_I = parseInt(cpmst_gmobj(id).offsetWidth); if (direction == 0 || direction == 1) { cpmst_gmobj(id).style.top = pol_S + 'px'; } else { cpmst_gmobj(id).style.top = pol_S - pol_H + pol_Q + 'px'; } if (direction == 0 || direction == 2) { cpmst_gmobj(id).style.left = pol_R + 'px'; } else { cpmst_gmobj(id).style.left = pol_R - pol_I + pol_T + 'px'; } } else { } } if (pol_bc == true) pol_q(id); setTimeout(function() { pol_w(id) }, 100); }; function pol_q(id) { var pol_bf = true; if (cpmst_gmobj(id + '_direction')) { direction = cpmst_gmobj(id + '_direction').value; } else if (cpmst_gmobj(id + '_directionfix')) { direction = cpmst_gmobj(id + '_directionfix').value; pol_bf = false; } else { direction = 0; } if (cpmst_gmobj(id) && cpmst_gmobj(id + '_position')) { var pol_F = parseInt(cpmst_gmobj(id + '_child').offsetHeight); var pol_G = parseInt(cpmst_gmobj(id + '_child').offsetWidth); var pol_U = parseInt(cpmst_gmobj(id).offsetHeight); var pol_V = parseInt(cpmst_gmobj(id).offsetWidth); if (direction == 0 || direction == 1) { cpmst_gmobj(id + '_child').style.top = 0 + 'px'; } else { cpmst_gmobj(id + '_child').style.top = pol_U - pol_F + 'px'; } if (direction == 0 || direction == 2) { cpmst_gmobj(id + '_child').style.left = 0 + 'px'; } else { cpmst_gmobj(id + '_child').style.left = pol_V - pol_G + 'px'; } } }; function pol_a(pol_aX, type, pol_bb) { if (typeof (pol_bb) == 'undefined') { pol_bb = 0 }; var pol_bY, pol_bZ; if (type == 1 || type == 3) { pol_bY = document.body.clientWidth - 178; } else { pol_bY = 5; } if (type == 2 || type == 3) { pol_bZ = document.body.clientHeight; } else { pol_bZ = 0; } var pol_ai; if (navigator.appName.indexOf("Internet Explorer") == 10) { pol_ai = 1003; } else { pol_ai = 1007; } if (document.body.clientWidth < pol_ai) { pol_bY = -183 }; window.pol_ca = function(pol_bg, type, pol_bb) { var pol_bY, pol_bZ; var pol_bH = (navigator.appName.indexOf("Netscape") != -1); if (type == 1 || type == 3) { pol_bY = document.body.clientWidth - 183; } else { pol_bY = 5; } if (document.body.clientWidth < pol_ai) { pol_bg.style.display = 'none'; } else { pol_bg.style.display = ''; if (document.documentElement && document.documentElement.scrollTop) var pol_bN = pol_bH ? pageYOffset : document.documentElement.scrollTop; else if (document.body) var pol_bN = pol_bH ? pageYOffset : document.body.scrollTop; if (type == 2 || type == 3) { if (document.documentElement && document.documentElement.clientHeight) pol_bZ = document.documentElement.clientHeight - 288; else if (document.body) pol_bZ = document.body.clientHeight - 288; } else { if (document.body.scrollTop > 71) { pol_bZ = 3 } else { pol_bZ = 71 - document.body.scrollTop }; } pol_bg.y += (pol_bN + pol_bZ - pol_bg.y) / 8; pol_bg.style.left = pol_bY + 'px'; pol_bg.style.top = pol_bg.y + pol_bb + 'px'; } setTimeout(function() { pol_ca(pol_bg, type, pol_bb) }, 15); }; var pol_bg = cpmst_gmobj(pol_aX); if (!pol_bg) return; pol_bg.x = pol_bY; pol_bg.y = pol_bZ; pol_ca(pol_bg, type, pol_bb); }; function cpmst_expandslideselfbanner(pol_ah, pol_bz, pol_by) { cpmst_adlistshow.prototype.pol_aE(pol_ah, pol_bz, pol_by); }; function cpmst_collapslideselfbanner(pol_ah, pol_bz, pol_by) { cpmst_adlistshow.prototype.pol_aF(pol_ah, pol_bz, pol_by); }; function cpmst_expandselfbanner(pol_ah, pol_bz, pol_by) { cpmst_gmobj(pol_ah).style.zIndex = "120"; cpmst_gmobj(pol_ah + '_status').value = 1; if (cpmst_gmobj(pol_ah + '_directionfix')) { var pol_cc = cpmst_gmobj(pol_ah + '_child').style.top; var pol_bw = cpmst_gmobj(pol_ah + '_child').style.left; cpmst_gmobj(pol_ah).style.height = pol_by + 'px'; cpmst_gmobj(pol_ah).style.width = pol_bz + 'px'; cpmst_gmobj(pol_ah).style.top = pol_cc; cpmst_gmobj(pol_ah).style.left = pol_bw; cpmst_gmobj(pol_ah + '_child').style.top = '0px'; cpmst_gmobj(pol_ah + '_child').style.left = '0px'; } else { if (cpmst_gmobj(pol_ah + '_position')) { cpmst_gmobj(pol_ah).style.height = pol_by + 'px'; cpmst_gmobj(pol_ah).style.width = pol_bz + 'px'; pol_w(pol_ah); pol_q(pol_ah); return; } var pol_B = parseInt(cpmst_gmobj(pol_ah).offsetHeight); var pol_D = parseInt(cpmst_gmobj(pol_ah).offsetWidth); if ((pol_B < pol_by - 10) || (pol_D < pol_bz - 10)) { if (pol_B < pol_by - 10) { cpmst_gmobj(pol_ah).style.height = pol_B + 10 + 'px'; } else { cpmst_gmobj(pol_ah).style.height = pol_by + 'px'; } if (pol_D < pol_bz - 10) { cpmst_gmobj(pol_ah).style.width = pol_D + 10 + 'px'; } else { cpmst_gmobj(pol_ah).style.width = pol_bz + 'px'; } pol_w(pol_ah); pol_q(pol_ah); setTimeout(function() { cpmst_expandselfbanner(pol_ah, pol_bz, pol_by) }, 5); return; } else { cpmst_gmobj(pol_ah).style.height = pol_by + 'px'; cpmst_gmobj(pol_ah).style.width = pol_bz + 'px'; pol_w(pol_ah); pol_q(pol_ah); } } }; function cpmst_collapselfbanner(pol_ah, pol_bz, pol_by) { cpmst_gmobj(pol_ah).style.zIndex = "100"; if (cpmst_gmobj(pol_ah + '_directionfix')) { var pol_cd = cpmst_gmobj(pol_ah).style.top; var pol_bx = cpmst_gmobj(pol_ah).style.left; cpmst_gmobj(pol_ah).style.height = pol_by + 'px'; cpmst_gmobj(pol_ah).style.width = pol_bz + 'px'; cpmst_gmobj(pol_ah).style.top = '0px'; cpmst_gmobj(pol_ah).style.left = '0px'; cpmst_gmobj(pol_ah + '_child').style.top = pol_cd; cpmst_gmobj(pol_ah + '_child').style.left = pol_bx; } else { if (cpmst_gmobj(pol_ah + '_position')) { cpmst_gmobj(pol_ah).style.height = pol_by + 'px'; cpmst_gmobj(pol_ah).style.width = pol_bz + 'px'; pol_w(pol_ah); pol_q(pol_ah); return; } var pol_B = parseInt(cpmst_gmobj(pol_ah).offsetHeight); var pol_D = parseInt(cpmst_gmobj(pol_ah).offsetWidth); if ((pol_B > pol_by + 10) || (pol_D > pol_bz + 10)) { if (pol_B > pol_by + 10) { cpmst_gmobj(pol_ah).style.height = pol_B - 10 + 'px'; } else { cpmst_gmobj(pol_ah).style.height = pol_by + 'px'; } if (pol_D > pol_bz + 10) { cpmst_gmobj(pol_ah).style.width = pol_D - 10 + 'px'; } else { cpmst_gmobj(pol_ah).style.width = pol_bz + 'px'; } pol_w(pol_ah); pol_q(pol_ah); setTimeout(function() { cpmst_collapselfbanner(pol_ah, pol_bz, pol_by) }, 5); return; } else { cpmst_gmobj(pol_ah).style.height = pol_by + 'px'; cpmst_gmobj(pol_ah).style.width = pol_bz + 'px'; pol_w(pol_ah); pol_q(pol_ah); cpmst_gmobj(pol_ah + '_status').value = 0; } } }; function pol_v(pol_bJ, index, pol_ah, pol_aV, pol_bz, pol_by) { var pol_bg = cpmst_gmobj(pol_ah); if (!pol_bg) return; var pol_bN = parseInt(pol_bg.style.top); pol_bN = pol_bN - Math.round(parseInt(pol_bg.style.top) / 8) - 1; if (pol_bN > 0) { pol_bg.style.top = pol_bN; setTimeout(function() { pol_v(pol_bJ, index, pol_ah, pol_aV, pol_bz, pol_by) }, 10); } else { pol_bg.style.top = 0; setTimeout(function() { pol_o(pol_bJ, index, pol_ah, pol_aV, pol_bz, pol_by) }, pol_aV); } }; function pol_o(pol_bJ, index, pol_ah, pol_aV, pol_bz, pol_by) { var pol_bg = cpmst_gmobj(pol_ah); if (!pol_bg) return; var pol_bN = parseInt(pol_bg.style.top); pol_bN = pol_bN + Math.round((pol_by - parseInt(pol_bg.style.top)) / 8) + 1; if (pol_bN < pol_by) { pol_bg.style.top = pol_bN; setTimeout(function() { pol_o(pol_bJ, index, pol_ah, pol_aV, pol_bz, pol_by) }, 10); } else { pol_bg.style.top = pol_by; if (index == pol_bJ.length - 1) { index = 0; } else { index++; } cpmst_gmobj(pol_ah).innerHTML = pol_h(pol_bJ[index], pol_bz, pol_by); setTimeout(function() { pol_v(pol_bJ, index, pol_ah, pol_aV, pol_bz, pol_by) }, 5000); } }; function pol_h(pol_bJ, pol_bz, pol_by, pol_ak, idzone) { if (!pol_bJ) { return '' } var pol_bV = ''; var pol_bS = (pol_c(pol_bJ[0], 7).toLowerCase() == 'http://') ? pol_bJ[0] : pol_an.concat(pol_bJ[0]); if (typeof (pol_ak) == "undefined") pol_ak = true; var pol_bq = (pol_bz < pol_bJ[3] && pol_bz > 0 && pol_ak) ? pol_bz : pol_bJ[3]; var pol_bp = (pol_by < pol_bJ[4] && pol_by > 0 && pol_ak) ? pol_by : pol_bJ[4]; if (pol_bJ[0].toLowerCase().indexOf('polyad_extendbanner') > 0 && pol_bJ[1].toLowerCase() == 'http://cp.polyad.net') { pol_bV = pol_bV.concat('<IFRAME MARGINWIDTH="0" MARGINHEIGHT="0" HSPACE="0" VSPACE="0" FRAMEBORDER="0" SCROLLING="pol_bG" '); pol_bV = pol_bV.concat(' WIDTH="').concat(pol_bJ[3]).concat('" HEIGHT="').concat(pol_bJ[4]).concat('" '); pol_bV = pol_bV.concat(' SRC="').concat(pol_ap).concat('/Script/ExtendBanner/').concat(cpmst_Trim(pol_bJ[2].split(',')[12])).concat('.htm"></IFRAME>'); } else { if (pol_e(pol_bJ[0], 4).toLowerCase() == '.swf') { pol_bV = pol_bV.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_bq).concat(' height=').concat(pol_bp).concat('>'); pol_bV = pol_bV.concat('<param name="movie" value="').concat(pol_bS).concat('?link=').concat(escape(pol_g(pol_bJ[2].substring(pol_bJ[2].lastIndexOf(',') + 2), pol_bJ[1], false))).concat('&zoneid=').concat(idzone).concat('">'); pol_bV = pol_bV.concat('<param name="AllowScriptAccess" value="always">'); pol_bV = pol_bV.concat('<param name="quality" value="High">'); pol_bV = pol_bV.concat('<param name="wmode" value="transparent">'); pol_bV = pol_bV.concat('<embed src="').concat(pol_bS).concat('?link=').concat(escape(pol_g(pol_bJ[2].substring(pol_bJ[2].lastIndexOf(',') + 2), pol_bJ[1], false))).concat('&zoneid=').concat(idzone).concat('" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" AllowScriptAccess="always" width=').concat(pol_bq).concat(' height=').concat(pol_bp).concat('>'); pol_bV = pol_bV.concat('</object>'); } else { if (pol_bJ[1] != '') { pol_bV = '<img src="'.concat(pol_bS).concat('" onClick="return cpmst_openMeExt(\'').concat(pol_bJ[1]).concat('\', ').concat(pol_bJ[2]).concat(', 1)" style="cursor:pointer;" border=0 width=').concat(pol_bq).concat(' height=').concat(pol_bp).concat('>'); } else { pol_bV = '<img src="'.concat(pol_bS).concat('" border=0 width=').concat(pol_bq).concat(' height=').concat(pol_bp).concat('>'); } } } return pol_bV; }; cpmst_adlistshow.prototype.pol_ar = function(pol_bJ) { var pol_aj = false; var pol_bi; if (this.pol_bX == 8) { pol_bi = pol_bJ[9]; } else { pol_bi = pol_bJ[6]; } if (pol_bi == 3 && this.pol_al < 4) pol_aj = true; else if (pol_bi == this.pol_al || pol_bi == 0) pol_aj = true; if (pol_aj && this.pol_bX == 7) { pol_aj = false; if (typeof (pol_aZ) == 'undefined') return; var pol_aY = new Date(pol_bJ[7]); var pol_ba = new Date(pol_bJ[8]); var pol_bj = (pol_aZ.getTime() - pol_aY.getTime()) / 1000; var pol_bm = (pol_ba.getTime() - pol_aZ.getTime()) / 1000; if (pol_bj < 5 * 86400 && pol_bj >= 0 && pol_bm > 5 * 86400 && pol_bm >= 0) { pol_aj = true; } } return pol_aj; }; function pol_u() { return (Math.random() * 10000) - 5000; }; function pol_t(pol_cm, vLink, pol_cu, pol_cs, pol_cy, pol_cj, pol_cx, pol_co, pol_ck) { if (typeof (pol_ck) == 'undefined') { pol_ck = false; } pol_cj = 600; pol_cy = 800; if (pol_ck) { var pol_bO = open('/Library/PopupUnder.Asp?pol_cm='.concat(escape(pol_cm)).concat('&vLink=').concat(escape(vLink)).concat('&pol_cu=').concat(escape(pol_cu)), 'Popup_'.concat(pol_d(pol_cu, ' ', '_')), 'status=pol_bG,resizable=pol_bG,scrollbars='.concat(pol_cs).concat(',toolbar=pol_bG,location=pol_bG,fullscreen=pol_bG,titlebar=pol_bG,height=').concat(pol_cj).concat(',').concat('width=').concat(pol_cy).concat(',').concat('top=').concat(0).concat(',').concat('left=').concat(0)); var pol_P = vLink; window.focus(); if (pol_bO) { pol_bO.blur() }; return pol_bO; } else { return open('/Library/Popup.Asp?pol_cm='.concat(escape(pol_cm)).concat('&vLink=').concat(escape(vLink)).concat('&pol_cu=').concat(escape(pol_cu)), 'Popup_'.concat(pol_d(pol_cu, ' ', '_')), 'status=pol_bG,resizable=pol_bG,scrollbars=pol_bG,toolbar=pol_bG,location=pol_bG,fullscreen=pol_bG,titlebar=yes,height='.concat(pol_cj).concat(',').concat('width=').concat(pol_cy).concat(',').concat('top=').concat(pol_cx).concat(',').concat('left=').concat(pol_co)); } }; function cpmst_openMeExt(vLink, pol_ct, pol_cr, pol_cs, pol_cw, pol_cp, pol_ci, pol_cv, pol_cg, pol_cj, pol_cy, pol_cx, pol_co, pol_cl, pol_ch) { var pol_bU = (typeof (vLink.href) == 'undefined') ? vLink : vLink.href; pol_cr = 1; pol_cs = 1; pol_ct = 1; pol_cw = 1; pol_cp = 1; pol_cv = 1; pol_cj = 600; pol_cy = 800; pol_cz = ''; pol_cz = pol_cz.concat('status=').concat((pol_ct) ? 'yes' : 'pol_bG').concat(','); pol_cz = pol_cz.concat('resizable=').concat((pol_cr) ? 'yes' : 'pol_bG').concat(','); pol_cz = pol_cz.concat('scrollbars=').concat((pol_cs) ? 'yes' : 'pol_bG').concat(','); pol_cz = pol_cz.concat('toolbar=').concat((pol_cw) ? 'yes' : 'pol_bG').concat(','); pol_cz = pol_cz.concat('location=').concat((pol_cp) ? 'yes' : 'pol_bG').concat(','); pol_cz = pol_cz.concat('fullscreen=').concat((pol_ci) ? 'yes' : 'pol_bG').concat(','); pol_cz = pol_cz.concat('titlebar=').concat((pol_cv) ? 'yes' : 'pol_bG').concat(','); pol_cz = pol_cz.concat('height=').concat(pol_cj - 140).concat(','); pol_cz = pol_cz.concat('width=').concat(pol_cy).concat(','); if (pol_cg) { pol_cz = pol_cz.concat('top=').concat((screen.height - pol_cj) / 2).concat(','); pol_cz = pol_cz.concat('left=').concat((screen.width - pol_cy) / 2); } else { pol_cz = pol_cz.concat('top=').concat(pol_cx).concat(','); pol_cz = pol_cz.concat('left=').concat(pol_co); } if (typeof (pol_ch) == 'undefined') { pol_ch = 0; } if (typeof (pol_cl) == 'undefined') { pol_cl = 0; } if (pol_ch) { pol_bU = pol_g(pol_cl, pol_bU, true); } open(pol_bU, '_blank', pol_cz); if (typeof (vLink.href) != 'undefined') { return false; } }; function pol_g(pol_cl, vLink, pol_cq) { if (pol_cq == true) { return pol_ao.concat('&b=').concat(pol_cl).concat('&l=').concat(escape(vLink)).concat('&r=').concat(Math.random()); } else { return pol_ao.concat('&b=').concat(pol_cl).concat('&l=').concat(escape(vLink)); } }; function pol_b(pol_aX, type, pol_bb) { if (typeof (pol_bb) == 'undefined') { pol_bb = 0 }; var pol_bY, pol_bZ; if (type == 1) { pol_bY = document.body.clientWidth - 115; } else { pol_bY = 5; } if (type == 2) { pol_bZ = document.body.clientHeight; } else { pol_bZ = 0; } if (document.body.clientWidth < 980) { pol_bY = -115 }; window.pol_ca = function(pol_bg, type, pol_bb) { var pol_bY, pol_bZ; var pol_bH = (navigator.appName.indexOf("Netscape") != -1); if (type == 1) { pol_bY = document.body.clientWidth - 115; } else { pol_bY = 5; } if (document.body.clientWidth < 980) { pol_bg.style.display = 'none'; } else { pol_bg.style.display = ''; if (document.documentElement && document.documentElement.scrollTop) var pol_bN = pol_bH ? pageYOffset : document.documentElement.scrollTop; else if (document.body) var pol_bN = pol_bH ? pageYOffset : document.body.scrollTop; if (type == 2) { pol_bZ = document.body.clientHeight - 183; } else { if (document.body.scrollTop > 71) { pol_bZ = 3 } else { pol_bZ = 71 - document.body.scrollTop }; } pol_bg.y += (pol_bN + pol_bZ - pol_bg.y) / 8; pol_bg.style.left = pol_bY; pol_bg.style.top = pol_bg.y + pol_bb; } setTimeout(function() { pol_ca(pol_bg, type, pol_bb) }, 15); }; var pol_bg = cpmst_gmobj(pol_aX); if (!pol_bg) return; pol_bg.x = pol_bY; pol_bg.y = pol_bZ; pol_ca(pol_bg, type, pol_bb); }; function cpmst_gmobj(pol_bE) { if (document.getElementById) { m = document.getElementById(pol_bE) } else if (document.all) { m = document.all[pol_bE] } else if (document.layers) { m = document[pol_bE] } return m; }; function pol_s(pol_bJ, pol_bM) { var p = pol_bM ? pol_bM.slice(0) : [0, 0]; while (pol_bJ) { p[0] += pol_bJ.offsetLeft; p[1] += pol_bJ.offsetTop; if (pol_bJ.tagName.toUpperCase() == "BODY") break; pol_bJ = pol_bJ.offsetParent; } return p; }; function cpmst_Trim(pol_bl) { while (pol_bl.charCodeAt(0) <= 32) { pol_bl = pol_bl.substr(1); } while (pol_bl.charCodeAt(pol_bl.length - 1) <= 32) { pol_bl = pol_bl.substr(0, pol_bl.length - 1); } return pol_bl; }; function pol_c(pol_cb, n) { if (n <= 0) return ""; else if (n > String(pol_cb).length) return pol_cb; else return String(pol_cb).substring(0, n); }; function pol_e(pol_cb, n) { if (n <= 0) return ""; else if (n > String(pol_cb).length) return pol_cb; else { var pol_bk = String(pol_cb).length; return String(pol_cb).substring(pol_bk, pol_bk - n); } }; function pol_d(pol_bl, pol_ce, pol_cf) { var i = 0, pol_bI = '', j = pol_ce.length; while (i < pol_bl.length) { if (pol_bl.substr(i, j) == pol_ce) { pol_bI += pol_cf; i += j } else { pol_bI += pol_bl.charAt(i); i++; } } return pol_bI; }; cpmst_adlistshow.prototype.pol_aC = function(type) { if (type == 0) { pol_cn = this.pol_bB[0][2].lastIndexOf(','); pol_cl = this.pol_bB[0][2].substr(pol_cn + 2); pol_bU = pol_g(pol_cl, this.pol_bB[0][1], true); pol_af = this.pol_bB[0][2].split(","); pol_bT = this.pol_bB[0][0]; } else if (type == 1) { pol_cn = this.pol_bB[0][2].lastIndexOf(','); pol_cl = this.pol_bB[0][2].substr(pol_cn + 2); pol_bU = pol_g(pol_cl, this.pol_bB[0][1], true); pol_af = this.pol_bB[0][2].split(","); pol_bT = this.pol_bB[0][0]; } cpmst_writeSlideBanner(type, pol_bU, pol_bT, pol_cl, this.pol_bB[0][1]); }; var pol_bs = true; var pol_bt = true; var pol_ag = true; function cpmst_writeSlideBanner(type, pol_bU, pol_bT, pol_bn, pol_bA) { var pol_bV = ""; var pol_bS = (pol_c(pol_bT, 7).toLowerCase() == 'http://') ? pol_bT : pol_an.concat(pol_bT); 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 pol_bL = (document.body.clientWidth - 1000) / 2; cpmst_gmobj("divSlideResultLeft").style.left = "0px"; cpmst_gmobj("divSlideResultLeft").style.width = pol_bL + "px"; cpmst_gmobj("divSlideResultLeft").style.height = clientHeight + "px"; cpmst_gmobj("divSlideResultRight").style.width = pol_bL + "px"; cpmst_gmobj("divSlideResultRight").style.height = clientHeight + "px"; cpmst_gmobj("divSlideResultRight").style.left = pol_bL + parseInt(cpmst_gmobj("divMove").style.width.replace("px", "")) + "px"; if (type == 0) { if (pol_e(pol_bT, 4).toLowerCase() == '.swf') { if (cpmst_gmobj("divSlideResultLeft").innerHTML == "") { pol_bs = true; } if (document.body.clientWidth != cpmst_gmobj("CurrentBrowserWidth").value) { pol_bs = true; } if (pol_bs) { pol_bV = pol_bV.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_bV = pol_bV.concat('<param name="movie" value="').concat(pol_bS).concat('?link=').concat(escape(pol_bU)).concat('&zoneid=').concat(pol_bn).concat('">'); pol_bV = pol_bV.concat('<param name="AllowScriptAccess" value="always">'); pol_bV = pol_bV.concat('<param name="quality" value="High">'); pol_bV = pol_bV.concat('<param name="wmode" value="transparent">'); pol_bV = pol_bV.concat('<embed src="').concat(pol_bS).concat('?link=').concat(escape(pol_bU)).concat('&zoneid=').concat(pol_bn).concat('" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" AllowScriptAccess="always" width="220" height="900">'); pol_bV = pol_bV.concat('</object>'); cpmst_gmobj("divSlideResultLeft").innerHTML = pol_bV; pol_bs = false; } } else { cpmst_gmobj("divSlideResultLeft").style.backgroundColor = "transparent"; cpmst_gmobj("divSlideResultLeft").style.backgroundImage = "url('" + pol_bT + "')"; cpmst_gmobj("divSlideResultLeft").style.width = pol_bL + "px"; cpmst_gmobj("divSlideResultLeft").style.height = clientHeight + "px"; cpmst_gmobj("divSlideResultLeft").style.cursor = "default"; if (pol_bA.length != 0) { cpmst_gmobj("divSlideResultLeft").setAttribute("onclick", "javascript:window.open('" + pol_bU + "');"); } } } else if (type == 1) { if (pol_e(pol_bT, 4).toLowerCase() == '.swf') { if (cpmst_gmobj("divSlideResultRight").innerHTML == "") { pol_bt = true; } if (document.body.clientWidth != cpmst_gmobj("CurrentBrowserWidth").value) { pol_bt = true; } if (pol_bt) { pol_bV = pol_bV.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_bV = pol_bV.concat('<param name="movie" value="').concat(pol_bS).concat('?link=').concat(escape(pol_bU)).concat('&zoneid=').concat(pol_bn).concat('">'); pol_bV = pol_bV.concat('<param name="AllowScriptAccess" value="always">'); pol_bV = pol_bV.concat('<param name="quality" value="High">'); pol_bV = pol_bV.concat('<param name="wmode" value="transparent">'); pol_bV = pol_bV.concat('<embed src="').concat(pol_bS).concat('?link=').concat(escape(pol_bU)).concat('&zoneid=').concat(pol_bn).concat('" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" AllowScriptAccess="always" width="220" height="900">'); pol_bV = pol_bV.concat('</object>'); cpmst_gmobj("divSlideResultRight").innerHTML = pol_bV; pol_bt = false; } } else { cpmst_gmobj("divSlideResultRight").style.width = pol_bL + "px"; cpmst_gmobj("divSlideResultRight").style.height = clientHeight + "px"; cpmst_gmobj("divSlideResultRight").style.backgroundColor = "transparent"; cpmst_gmobj("divSlideResultRight").style.backgroundImage = "url('" + pol_bT + "')"; cpmst_gmobj("divSlideResultRight").style.cursor = "default"; if (pol_bA.length != 0) { cpmst_gmobj("divSlideResultRight").setAttribute("onclick", "javascript:window.open('" + pol_bU + "');"); } } } cpmst_gmobj("CurrentBrowserWidth").value = document.body.clientWidth; } else { cpmst_gmobj("divSlideResultLeft").innerHTML = ""; cpmst_gmobj("divSlideResultRight").innerHTML = ""; cpmst_gmobj("divSlideResultRight").style.backgroundImage = ""; cpmst_gmobj("divSlideResultLeft").style.backgroundImage = ""; } if (type == 0) { a = setTimeout('writeSlideBanner("' + type + '","' + pol_bU + '","' + pol_bT + '","' + pol_bn + '","' + pol_bA + '")', 100); } else if (type == 1) { b = setTimeout('writeSlideBanner("' + type + '","' + pol_bU + '","' + pol_bT + '","' + pol_bn + '","' + pol_bA + '")', 100); } }; cpmst_adlistshow.prototype.pol_aA = function() { document.write('<table align=center ', (this.pol_bz > 0) ? 'width='.concat(this.pol_bz) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.pol_aP(this.pol_bB, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_aP = function(pol_bJ) { if (pol_bJ.length <= 0) return; var pol_bz = (this.pol_bz < pol_bJ[0][3] && this.pol_bz > 0) ? this.pol_bz : pol_bJ[0][3]; var pol_by = (this.pol_by < pol_bJ[0][4] && this.pol_by > 0) ? this.pol_by : pol_bJ[0][4]; var pol_bn = ''.concat(this.pol_bF); var pol_aV = this.pol_aT; document.write('<tr><td>'); document.write('<DIV id="', pol_bn, '_position" style="position:relative;overflow:hidden;width:'.concat(pol_bz), 'px;height:'.concat(pol_by), 'px;"></DIV>'); document.write('<DIV id="', pol_bn, '" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:0px;width:'.concat(pol_bz), 'px;height:'.concat(pol_by), 'px;">'); document.write('</DIV>'); document.write('<input type="hidden" id="', pol_bn, '_direction" value="', this.direction, '">'); document.write('<input type="hidden" id="', pol_bn, '_status" value="0">'); document.write('</td></tr>'); var pol_ac = this; setTimeout(function() { pol_ac.pol_aQ(pol_bJ) }, 300); }; cpmst_adlistshow.prototype.pol_aQ = function(pol_bJ) { if (pol_bJ.length <= 0) return; var pol_bz = (this.pol_bz < pol_bJ[0][3] && this.pol_bz > 0) ? this.pol_bz : pol_bJ[0][3]; var pol_by = (this.pol_by < pol_bJ[0][4] && this.pol_by > 0) ? this.pol_by : pol_bJ[0][4]; var pol_bn = ''.concat(this.pol_bF); var pol_aV = this.pol_aT; var pol_bV = ''; pol_bV = pol_bV.concat('<DIV id="').concat(pol_bn).concat('_child" style="position:absolute;top:-75px;left:-510px;width:').concat(pol_bJ[0][3]).concat('px;height:').concat(pol_bJ[0][4]).concat('px;">'); pol_bV = pol_bV.concat(pol_h(pol_bJ[0], this.pol_bz, this.pol_by, false, pol_bn)); pol_bV = pol_bV.concat('</DIV>'); cpmst_gmobj(pol_bn).innerHTML = pol_bV; pol_x(pol_bn, true); }; function pol_x(id, pol_bc) { var pol_bf = true; if (cpmst_gmobj(id + '_direction')) { direction = cpmst_gmobj(id + '_direction').value; } else { direction = 0; } if (cpmst_gmobj(id) && cpmst_gmobj(id + '_position')) { var pol_bC = 0; if (typeof (window.innerWidth) == 'number') { pol_bC = window.innerWidth; pol_bC = (pol_bC - 1017) / 2; } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { pol_bC = document.documentElement.clientWidth; pol_bC = (pol_bC - 1002) / 2; } var pol_S = pol_s(cpmst_gmobj(id + '_position'))[1]; var pol_R = pol_s(cpmst_gmobj(id + '_position'))[0]; var pol_T = parseInt(cpmst_gmobj(id + '_position').offsetWidth); var pol_Q = parseInt(cpmst_gmobj(id + '_position').offsetHeight); var pol_I = parseInt(cpmst_gmobj(id).offsetWidth); var pol_H = parseInt(cpmst_gmobj(id).offsetHeight); if (pol_H > pol_Q) { cpmst_gmobj(id).style.left = pol_bC + 'px'; cpmst_gmobj(id).style.top = pol_S - 75 + 'px'; cpmst_gmobj(id + '_child').style.left = "0px"; cpmst_gmobj(id + '_child').style.top = "0px"; } else { cpmst_gmobj(id).style.left = pol_R - pol_I + pol_T + 'px'; cpmst_gmobj(id).style.top = pol_S + 'px'; } } c = setTimeout(function() { pol_x(id) }, 100); }; cpmst_adlistshow.prototype.pol_aD = function(pol_bJ) { document.write('<table align=center ', (this.pol_bz > 0) ? 'width='.concat(this.pol_bz) : '', ' cellspacing=0 cellpadding=0 border=0>'); this.pol_aS(this.pol_bB, 0); document.write('</table>'); }; cpmst_adlistshow.prototype.pol_aS = function(pol_bJ) { if (pol_bJ.length <= 0) return; var pol_bS = (pol_c(pol_bJ[0], 7).toLowerCase() == 'http://') ? pol_bJ[0] : pol_an.concat(pol_bJ[0]); var pol_bz = (this.pol_bz < pol_bJ[0][3] && this.pol_bz > 0) ? this.pol_bz : pol_bJ[0][3]; var pol_by = (this.pol_by < pol_bJ[0][4] && this.pol_by > 0) ? this.pol_by : pol_bJ[0][4]; var pol_bq = (pol_bz < pol_bJ[3] && pol_bz > 0 && pol_ak) ? pol_bz : pol_bJ[3]; var pol_bp = (pol_by < pol_bJ[4] && pol_by > 0 && pol_ak) ? pol_by : pol_bJ[4]; var pol_bn = ''.concat(this.pol_bF); var pol_aV = this.pol_aT; var pol_bV = ''; document.write('<tr><td>'); document.write('<DIV id="', pol_bn, '" style="position:absolute;overflow:hidden;width:207px;height:14px;z-index:10001;">'); pol_bV = pol_bV.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_bV = pol_bV.concat('<param name="movie" value="').concat(pol_bJ[0]).concat('?zoneid=').concat(pol_bn).concat('">'); pol_bV = pol_bV.concat('<param name="AllowScriptAccess" value="always">'); pol_bV = pol_bV.concat('<param name="quality" value="High">'); pol_bV = pol_bV.concat('<param name="wmode" value="transparent">'); pol_bV = pol_bV.concat('<embed src="').concat(pol_bJ[0]).concat('?zoneid=').concat(pol_bn).concat('" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" name="SpecialFlashBanner" AllowScriptAccess="always" width="350" height="350">'); pol_bV = pol_bV.concat('</object>'); document.write(pol_bV); document.write('</DIV>'); document.write('<input type="hidden" id="', pol_bn, '_status" value="0">'); document.write('</td></tr>'); window.onresize = function() { pol_X(); }; window.onload = function() { pol_X(); } }; function pol_f() { var pol_bP = window.innerWidth != null ? window.innerWidth : document.body != null ? document.body.clientWidth : null; var pol_be = pol_r("SpecialFlashBanner"); pol_be.pol_Y("/:pagewidth", pol_bP); }; function pol_r(pol_bD) { if (window.document[pol_bD]) { return window.document[pol_bD]; } if (navigator.appName.indexOf("Microsoft Internet") == -1) { if (document.embeds && document.embeds[pol_bD]) return document.embeds[pol_bD]; } else { return document.getElementById(pol_bD); } }