var sh_J;sh_J='';function adlistshow(sh_A,sh_B,sh_E,sh_W,sh_L,sh_N,sh_M,sh_V,sh_K){this.sh_aX=sh_B;this.sh_ah=sh_E;this.sh_aU=sh_N;this.sh_aT=sh_M;this.sh_bl=sh_W;this.face=sh_L;this.sh_aj=20000;this.sh_ak=100;if(typeof(sh_V)=='undefined'){this.sh_bg=true;}else{this.sh_bg=sh_V;};if(typeof(sh_K)=='undefined'){this.direction=0;}else{this.direction=sh_K;};switch(sh_W){case 0:case 4:case 5:case 6:case 9:case 10:case 12:case 13:case 14:case 15:this.sh_bf=0;break;case 8:this.sh_bf=2;break;default:this.sh_bf=1;break;}var sh_Z=new Array();var sh_aa=new Array();var i,j,k,no,sh_aL,sh_bk;i=0;j=-1;k=0;no=-1;sh_aL=0;sh_bk=1;if(this.sh_bf==0){for(i=0,j=0;i<sh_A.length;i++){if(this.sh_af(sh_A[i])){sh_Z[j]=sh_A[i];j++;}}sh_Z.sort(sh_x);this.sh_aP=j+1;this.sh_aV=sh_Z;}else if(this.sh_bf==1){sh_Z[0]=new Array();sh_Z[1]=new Array();for(i=0;i<sh_A.length;i++){if(sh_A[i][5]<=100){if(sh_A[i][5]!=no){no=sh_A[i][5];sh_aL=0;j++;k=0;}else{k++;}}else{if(sh_A[i][5]!=no||sh_A.length<=10){if(no<=100)j=-1;no=sh_A[i][5];sh_aL=1;j++;k=0;sh_bk=0;}else{if(sh_bk>=no-100){j++;k=0;sh_bk=0;}else{k++;}}}if(this.sh_af(sh_A[i])){if(k==0)sh_Z[sh_aL][j]=new Array();sh_Z[sh_aL][j][k]=sh_A[i];sh_bk++;}}for(i=0;i<sh_Z.length;i++){if(i==1){sh_Z[i].sort(sh_x)};for(j=0;j<sh_Z[i].length;j++){sh_Z[i][j].sort(sh_x);}}k=0;for(i=0;i<sh_Z.length;i++){for(j=0;j<sh_Z[i].length;j++){sh_aa[k]=sh_Z[i][j];k++;}}this.sh_aV=sh_aa;this.sh_aP=k;}else if(this.sh_bf==2){for(i=0,j=0;i<sh_A.length;i++){if(this.sh_af(sh_A[i])){sh_Z[j]=new Array();sh_Z[j][0]=new Array();sh_Z[j][0][0]=sh_A[i][0];sh_Z[j][0][1]=sh_A[i][2];sh_Z[j][0][2]=sh_A[i][3];sh_Z[j][0][3]=sh_A[i][4];sh_Z[j][0][4]=sh_A[i][5];sh_Z[j][1]=new Array();sh_Z[j][1][0]=sh_A[i][1];sh_Z[j][1][1]=sh_A[i][2];sh_Z[j][1][2]=sh_A[i][3];sh_Z[j][1][3]=sh_A[i][6];sh_Z[j][1][4]=sh_A[i][7];j++;}}sh_Z.sort(sh_x);this.sh_aP=j+1;this.sh_aV=sh_Z;}this.sh_aO();};adlistshow.prototype.sh_aO=function(){switch(this.sh_bl){case 0:this.sh_at();break;case 1:case 7:case 11:this.sh_ar();break;case 2:this.sh_ap(0);break;case 3:this.sh_ap(1);break;case 4:this.sh_ap(2);break;case 5:this.sh_as(false);break;case 6:this.sh_as(true);break;case 8:this.sh_an();break;case 9:this.sh_au();break;case 10:this.sh_aq();break;case 12:this.sh_ao(0);break;case 13:this.sh_ao(1);break;case 14:this.sh_ao(2);break;case 15:this.sh_ao(3);break;default:break;}};adlistshow.prototype.sh_ad=function(index){if(this.sh_bf==0){return true;}else{if(this.sh_aV.length==index+1){return true;}else{return false;}}};adlistshow.prototype.sh_at=function(){document.write('<table ',(this.sh_aU>0)?'width='.concat(this.sh_aU):'',' cellspacing=0 cellpadding=0 border=0 align=center>');this.sh_bV(this.sh_aV,0);document.write('</table>');};adlistshow.prototype.sh_ar=function(){if(this.face==0||this.face==3){document.write('<table ',(this.sh_aU>0)?'width='.concat(this.sh_aU):'',' cellspacing=0 cellpadding=0 border=0 align=center>');}else if(this.face==2){document.write('<table ',(this.sh_aU>0)?'width='.concat(this.sh_aU):'',' cellspacing=0 cellpadding=0 border=0 align=center><tr>');}for(var i=0;i<this.sh_aV.length;i++){this.sh_bV(this.sh_aV[i],i,this.sh_ad(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.sh_ad(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>');}};adlistshow.prototype.sh_ap=function(type){if(type==2){document.write('<DIV id="floatdiv',this.sh_aX,'" style="position:absolute;overflow:hidden;top:0;left:-200;',(this.sh_aT>0)?'height:'.concat(this.sh_aT):'180',';',(this.sh_aU>0)?'width:'.concat(this.sh_aU):'115',';">');this.sh_bO(this.sh_aV);}else{document.write('<DIV id="floatdiv',this.sh_aX,'" style="position:absolute;top:0;left:-200;',(this.sh_aU>0)?'width:'.concat(this.sh_aU):'115',';">');this.sh_ar();}document.write('</DIV>');if(this.sh_aV.length>0){sh_b('floatdiv'.concat(this.sh_aX),type);}};adlistshow.prototype.sh_ao=function(type){switch(type){case 0:case 1:document.write('<DIV id="fixfloatdiv',this.sh_aX,'" style="position:absolute;z-index:200;top:0;left:-200;',(this.sh_aU>0)?'width:'.concat(this.sh_aU):'120',';">');break;case 2:case 3:document.write('<DIV id="fixfloatdiv',this.sh_aX,'" style="position:absolute;z-index:200;top:0;left:-200;',(this.sh_aT>0)?'height:'.concat(this.sh_aT):'150',';',(this.sh_aU>0)?'width:'.concat(this.sh_aU):'120',';">');break;}this.sh_bQ(this.sh_aV,0);document.write('</DIV>');if(this.sh_aV.length>0){sh_a('fixfloatdiv'.concat(this.sh_aX),type);}};adlistshow.prototype.sh_as=function(type){sh_bB=this.sh_aV[0][2].lastIndexOf(',');sh_bz=this.sh_aV[0][2].substr(sh_bB+2);sh_bi=sh_g(sh_bz,this.sh_aV[0][1],true);var sh_ab=this.sh_aV[0][2].split(",");sh_w(this.sh_aV[0][0],sh_bi,'Advertisment',sh_ab[2],sh_ab[9],sh_ab[8],screen.height-sh_ab[9]-80,(screen.width-770)/2+410-5,type);};adlistshow.prototype.sh_an=function(){document.write('<table align=center ',(this.sh_aU>0)?'width='.concat(this.sh_aU):'',' cellspacing=0 cellpadding=0 border=0>');this.sh_bP(this.sh_aV,0);document.write('</table>');};adlistshow.prototype.sh_au=function(){document.write('<table align=center ',(this.sh_aU>0)?'width='.concat(this.sh_aU):'',' cellspacing=0 cellpadding=0 border=0>');this.sh_bW(this.sh_aV,0);document.write('</table>');};adlistshow.prototype.sh_aq=function(){document.write('<table align=center ',(this.sh_aU>0)?'width='.concat(this.sh_aU):'',' cellspacing=0 cellpadding=0 border=0>');this.sh_bS(this.sh_aV,0);document.write('</table>');};adlistshow.prototype.sh_bV=function(sh_bb,index,sh_aQ){if(this.face==1){document.write('<tr><td id="',this.sh_aX,'_',index,'" style="padding:4px;">');}else if(this.face==2){document.write('<td id="',this.sh_aX,'_',index,'" style="padding:4px;">');}else{document.write('<tr><td id="',this.sh_aX,'_',index,'">');}document.write(sh_h(sh_bb[0],this.sh_aU,this.sh_aT));if(sh_bb.length>1){var sh_aK=''.concat(this.sh_aX).concat('_').concat(index);var sh_al=this.sh_aj;var sh_am=this.sh_ak;var sh_aU=this.sh_aU;var sh_aT=this.sh_aT;if(this.sh_bl==11){if(this.sh_bg){var sh_ai=0;setTimeout(function(){changebannerWC(sh_bb,sh_aK,sh_am,sh_aU,sh_aT,0)},0);setTimeout(function(){checkFlagWC(sh_bb,sh_aK,sh_am,sh_aU,sh_aT,sh_ai,0)},0);}}else{if(this.sh_bg)setTimeout(function(){sh_i(sh_bb,0,sh_aK,sh_al,sh_aU,sh_aT)},sh_al);}}if(this.face==2){document.write('</td>');}else{if(sh_bb.length>1&&this.sh_bl==11){document.write('</td></tr>');document.write('<tr><td>');document.write('	<input type="hidden" value="0" id="hidFlag_'+sh_aK+'" name="hidFlag_'+sh_aK+'" />');document.write('	<input type="hidden" value="0" id="hidLoop_'+sh_aK+'" name="hidLoop_'+sh_aK+'" />');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<sh_bb.length;i++){document.write('<div id="numb'+sh_aK+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="sh_t(\'hidLoop_'+sh_aK+'\').value ='+i+'; sh_t(\'hidFlag_'+sh_aK+'\').value = 100;">'+(i+1)+'</div>');}document.write('		</div>');document.write('	<div class="divArrowL" onmouseover="sh_t(\'divArrowL_'+sh_aK+'\').className = \'divArrowL_Active\';" onmouseout="gmobj(\'divArrowL_'+sh_aK+'\').className = \'divArrowL\';" onclick="gmobj(\'hidFlag_'+sh_aK+'\').value = -1;" id="divArrowL_'+sh_aK+'">&nbsp;</div>');document.write('	<div style="float:left;width:4px;">&nbsp;</div>');document.write('	<div class="divArrowR" onmouseover="sh_t(\'divArrowR_'+sh_aK+'\').className = \'divArrowR_Active\';" onmouseout="gmobj(\'divArrowR_'+sh_aK+'\').className = \'divArrowR\';" onclick="gmobj(\'hidFlag_'+sh_aK+'\').value = 1;" id="divArrowR_'+sh_aK+'">&nbsp;</div>');document.write('</td></tr>');}}};adlistshow.prototype.sh_bU=function(sh_bb,sh_aQ){for(var i=0;i<sh_bb.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(sh_h(sh_bb[i],this.sh_aU,this.sh_aT));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<sh_bb.length-1)){document.write('<tr><td height="1" bgcolor="#808080"></td></tr>');}}};adlistshow.prototype.sh_bO=function(sh_bb){document.write('<DIV id="subdiv',this.sh_aX,'" style="position:absolute;',(this.sh_aT>0)?'top:'.concat(this.sh_aT):'180',';',(this.sh_aU>0)?'width:'.concat(this.sh_aU):'115',';',(this.sh_aT>0)?'height:'.concat(this.sh_aT):'180',';">');document.write(sh_h(sh_bb[0],this.sh_aU,this.sh_aT));var sh_aK='subdiv'.concat(this.sh_aX);var sh_al=this.sh_aj;var sh_aU=this.sh_aU;var sh_aT=this.sh_aT;setTimeout(function(){sh_y(sh_bb,0,sh_aK,sh_al,sh_aU,sh_aT)},500);document.write('</DIV>');};adlistshow.prototype.sh_bP=function(sh_bb){if(sh_bb.length<=0)return;var sh_aU=this.sh_aU;var sh_aT=this.sh_aT;var sh_aK=''.concat(this.sh_aX);var sh_al=this.sh_aj;document.write('<tr><td>');document.write('<DIV id="',sh_aK,'" style="position:related;overflow:hidden;width:'.concat(sh_bb[0][0][3]),';height:'.concat(sh_bb[0][0][4]),';">');document.write(sh_h(sh_bb[0][0],this.sh_aU,this.sh_aT));if(sh_bb.length>1){}document.write('</DIV></td></tr>');document.write('<tr><td align=center id="',sh_aK,'_extend"><font face="Arial" size="1"><b>');document.write('<span id="',sh_aK,'_expandcollap" style="cursor:pointer;">M&#7903; r&#7897;ng</span>&nbsp;-&nbsp;');document.write('<span id="',sh_aK,'_close" style="cursor:pointer;">&#272;&#243;ng</span>');document.write('<input type="hidden" id="',this.sh_aX,'_hidden">');document.write('</td></tr>');sh_t(sh_aK+'_hidden').value=0;sh_t(sh_aK).onmouseover=function(){sh_q(sh_bb,sh_aK,sh_aU,sh_aT)};sh_t(sh_aK+'_expandcollap').onclick=function(){sh_q(sh_bb,sh_aK,sh_aU,sh_aT)};sh_t(sh_aK+'_close').onclick=function(){sh_m(sh_aK)};};function sh_q(sh_bb,sh_ac,sh_aU,sh_aT){var index=sh_t(sh_ac+'_hidden').value;if(parseInt(sh_t(sh_ac).offsetHeight)<sh_bb[index][1][4]){sh_t(sh_ac).style.height=parseInt(sh_t(sh_ac).offsetHeight)+10;setTimeout(function(){sh_q(sh_bb,sh_ac,sh_aU,sh_aT)},5);return;}sh_t(sh_ac).onmouseover='undefine';sh_t(sh_ac+'_expandcollap').innerHTML='Thu nh&#7887;';sh_t(sh_ac+'_expandcollap').onclick=function(){sh_n(sh_bb,sh_ac,sh_aU,sh_aT)};sh_t(sh_ac).innerHTML=sh_h(sh_bb[index][1],sh_aU,sh_aT);};function sh_n(sh_bb,sh_ac,sh_aU,sh_aT){var index=sh_t(sh_ac+'_hidden').value;if(parseInt(sh_t(sh_ac).offsetHeight)>sh_bb[index][0][4]){sh_t(sh_ac).style.height=parseInt(sh_t(sh_ac).offsetHeight)-10;setTimeout(function(){sh_n(sh_bb,sh_ac,sh_aU,sh_aT)},5);return;}sh_t(sh_ac).onmouseover=function(){sh_q(sh_bb,sh_ac,sh_aU,sh_aT)};sh_t(sh_ac+'_expandcollap').innerHTML='M&#7903; r&#7897;ng';sh_t(sh_ac+'_expandcollap').onclick=function(){sh_q(sh_bb,sh_ac,sh_aU,sh_aT)};sh_t(sh_ac).innerHTML=sh_h(sh_bb[index][0],sh_aU,sh_aT);};function sh_m(sh_ac){sh_t(sh_ac).style.display='none';sh_t(sh_ac+'_extend').style.display='none';};function sh_i(sh_bb,index,sh_ac,sh_al,sh_aU,sh_aT){if(index==sh_bb.length-1){index=0;}else{index++;}sh_t(sh_ac).innerHTML=sh_h(sh_bb[index],sh_aU,sh_aT);setTimeout(function(){sh_i(sh_bb,index,sh_ac,sh_al,sh_aU,sh_aT)},sh_al);};function checkFlagWC(sh_bb,sh_ac,sh_am,sh_aU,sh_aT,sh_ai,loop){var sh_aE;sh_aE=sh_t("hidFlag_"+sh_ac).value;if(sh_aE==0){if(sh_ai==sh_am){loop++;setTimeout(function(){changebannerWC(sh_bb,sh_ac,sh_am,sh_aU,sh_aT,loop)},0);}}else if(sh_aE==1){loop++;setTimeout(function(){changebannerWC(sh_bb,sh_ac,sh_am,sh_aU,sh_aT,loop)},0);sh_t("hidFlag_"+sh_ac).value=0;sh_ai=0;}else if(sh_aE==-1){loop--;setTimeout(function(){changebannerWC(sh_bb,sh_ac,sh_am,sh_aU,sh_aT,loop)},0);sh_t("hidFlag_"+sh_ac).value=0;sh_ai=0;}else{loop=sh_t('hidLoop_'+sh_ac).value;setTimeout(function(){changebannerWC(sh_bb,sh_ac,sh_am,sh_aU,sh_aT,loop)},0);sh_t("hidFlag_"+sh_ac).value=0;sh_t('hidLoop_'+sh_ac).value=0;sh_ai=0;}sh_ai++;if(sh_ai>sh_am){sh_ai=0;}if(loop==sh_bb.length){loop=0;}if(loop<0){loop=(sh_bb.length-1);}setTimeout(function(){checkFlagWC(sh_bb,sh_ac,sh_am,sh_aU,sh_aT,sh_ai,loop)},100);};function changebannerWC(sh_bb,sh_ac,sh_am,sh_aU,sh_aT,sh_aB){sh_t(sh_ac).innerHTML=sh_h(sh_bb[sh_aB],sh_aU,sh_aT);var k;for(k=0;k<sh_bb.length;k++){if(k==sh_aB){document.getElementById("numb"+sh_ac+k).style.backgroundColor="2879ca";document.getElementById("numb"+sh_ac+k).style.border="solid 2px #cccccc";}else{document.getElementById("numb"+sh_ac+k).style.backgroundColor="0066cc";document.getElementById("numb"+sh_ac+k).style.border="solid 2px #0066cc";}}};function sh_k(sh_bb,index,sh_ac,sh_al,sh_aU,sh_aT){if(sh_t(sh_ac+'_status').value=='0'){if(index==sh_bb.length-1){index=0;}else{index++;}var sh_bj='';sh_bj=sh_bj.concat('<DIV id="').concat(sh_ac).concat('_child" style="position:absolute;top:0px;left:0px;width:').concat(sh_bb[index][3]).concat('px;height:').concat(sh_bb[index][4]).concat('px;">');sh_bj=sh_bj.concat(sh_h(sh_bb[index],sh_aU,sh_aT,false,sh_ac));sh_bj=sh_bj.concat('</DIV>');sh_t(sh_ac).innerHTML=sh_bj;sh_s(sh_ac);}setTimeout(function(){sh_k(sh_bb,index,sh_ac,sh_al,sh_aU,sh_aT)},sh_al);};adlistshow.prototype.sh_bW=function(sh_bb){if(sh_bb.length<=0)return;var sh_aU=(this.sh_aU<sh_bb[0][3]&&this.sh_aU>0)?this.sh_aU:sh_bb[0][3];var sh_aT=(this.sh_aT<sh_bb[0][4]&&this.sh_aT>0)?this.sh_aT:sh_bb[0][4];var sh_aK=''.concat(this.sh_aX);var sh_al=this.sh_aj;document.write('<tr><td>');document.write('<DIV id="',sh_aK,'" style="position:relative;overflow:hidden;width:'.concat(sh_aU),'px;height:'.concat(sh_aT),'px;">');document.write(sh_h(sh_bb[0],this.sh_aU,this.sh_aT,false,sh_aK));document.write('</DIV>');document.write('<input type="hidden" id="',sh_aK,'_status" value="0">');document.write('</td></tr>');if(this.sh_bg)setTimeout(function(){sh_k(sh_bb,0,sh_aK,sh_al,sh_aU,sh_aT)},sh_al);};adlistshow.prototype.sh_bS=function(sh_bb){if(sh_bb.length<=0)return;var sh_aU=(this.sh_aU<sh_bb[0][3]&&this.sh_aU>0)?this.sh_aU:sh_bb[0][3];var sh_aT=(this.sh_aT<sh_bb[0][4]&&this.sh_aT>0)?this.sh_aT:sh_bb[0][4];var sh_aK=''.concat(this.sh_aX);var sh_al=this.sh_aj;document.write('<tr><td>');document.write('<DIV id="',sh_aK,'_position" style="position:relative;overflow:hidden;width:'.concat(sh_aU),'px;height:'.concat(sh_aT),'px;"></DIV>');document.write('<DIV id="',sh_aK,'" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:-1000px;width:'.concat(sh_aU),'px;height:'.concat(sh_aT),'px;">');document.write('</DIV>');document.write('<input type="hidden" id="',sh_aK,'_direction" value="',this.direction,'">');document.write('<input type="hidden" id="',sh_aK,'_status" value="0">');document.write('</td></tr>');var sh_Y=this;if(window.addEventListener)window.addEventListener("load",function(){sh_Y.sh_bT(sh_bb)},false);else if(window.attachEvent)window.attachEvent("onload",function(){sh_Y.sh_bT(sh_bb)});else if(document.getElementById)setTimeout(function(){sh_Y.sh_bT(sh_bb)},500);};adlistshow.prototype.sh_bT=function(sh_bb){if(sh_bb.length<=0)return;var sh_aU=(this.sh_aU<sh_bb[0][3]&&this.sh_aU>0)?this.sh_aU:sh_bb[0][3];var sh_aT=(this.sh_aT<sh_bb[0][4]&&this.sh_aT>0)?this.sh_aT:sh_bb[0][4];var sh_aK=''.concat(this.sh_aX);var sh_al=this.sh_aj;var sh_bj='';sh_bj=sh_bj.concat('<DIV id="').concat(sh_aK).concat('_child" style="position:absolute;top:0px;left:0px;width:').concat(sh_bb[0][3]).concat('px;height:').concat(sh_bb[0][4]).concat('px;">');sh_bj=sh_bj.concat(sh_h(sh_bb[0],this.sh_aU,this.sh_aT,false,sh_aK));sh_bj=sh_bj.concat('</DIV>');sh_t(sh_aK).innerHTML=sh_bj;sh_z(sh_aK,true);if(this.sh_bg)setTimeout(function(){sh_k(sh_bb,0,sh_aK,sh_al,sh_aU,sh_aT)},sh_al);};adlistshow.prototype.sh_bQ=function(sh_bb){if(sh_bb.length<=0)return;var sh_aU=(this.sh_aU<sh_bb[0][3]&&this.sh_aU>0)?this.sh_aU:sh_bb[0][3];var sh_aT=(this.sh_aT<sh_bb[0][4]&&this.sh_aT>0)?this.sh_aT:sh_bb[0][4];var sh_aK=''.concat(this.sh_aX);var sh_al=this.sh_aj;document.write('<DIV id="',sh_aK,'_position" style="position:relative;overflow:hidden;width:'.concat(sh_aU),'px;height:'.concat(sh_aT),'px;"></DIV>');document.write('<DIV id="',sh_aK,'" style="position:absolute;overflow:hidden;z-index:100;top:0px;left:0px;width:'.concat(sh_aU),'px;height:'.concat(sh_aT),'px;">');document.write('</DIV>');document.write('<input type="hidden" id="',sh_aK,'_directionfix" value="',this.direction,'">');document.write('<input type="hidden" id="',sh_aK,'_status" value="0">');var sh_Y=this;setTimeout(function(){sh_Y.sh_bR(sh_bb)},300);};adlistshow.prototype.sh_bR=function(sh_bb){if(sh_bb.length<=0)return;var sh_aU=(this.sh_aU<sh_bb[0][3]&&this.sh_aU>0)?this.sh_aU:sh_bb[0][3];var sh_aT=(this.sh_aT<sh_bb[0][4]&&this.sh_aT>0)?this.sh_aT:sh_bb[0][4];var sh_aK=''.concat(this.sh_aX);var sh_al=this.sh_aj;var sh_bj='';sh_bj=sh_bj.concat('<DIV id="').concat(sh_aK).concat('_child" style="position:absolute;top:0px;left:0px;width:').concat(sh_bb[0][3]).concat('px;height:').concat(sh_bb[0][4]).concat('px;">');sh_bj=sh_bj.concat(sh_h(sh_bb[0],this.sh_aU,this.sh_aT,false,sh_aK));sh_bj=sh_bj.concat('</DIV>');sh_t(sh_aK).innerHTML=sh_bj;sh_z(sh_aK,true);if(sh_bb.length>1){if(this.sh_bg)setTimeout(function(){sh_k(sh_bb,0,sh_aK,sh_al,sh_aU,sh_aT,1)},sh_al);}};function sh_z(id,sh_aA){var sh_aC=true;if(sh_t(id+'_direction')){direction=sh_t(id+'_direction').value;}else if(sh_t(id+'_directionfix')){direction=sh_t(id+'_directionfix').value;sh_aC=false;}else{direction=0;}if(sh_t(id)&&sh_t(id+'_position')){if(sh_aC){var sh_R=sh_u(sh_t(id+'_position'))[1];var sh_Q=sh_u(sh_t(id+'_position'))[0];var sh_P=parseInt(sh_t(id+'_position').offsetHeight);var sh_S=parseInt(sh_t(id+'_position').offsetWidth);var sh_H=parseInt(sh_t(id).offsetHeight);var sh_I=parseInt(sh_t(id).offsetWidth);if(direction==0||direction==1){sh_t(id).style.top=sh_R+'px';}else{sh_t(id).style.top=sh_R-sh_H+sh_P+'px';}if(direction==0||direction==2){sh_t(id).style.left=sh_Q+'px';}else{sh_t(id).style.left=sh_Q-sh_I+sh_S+'px';}}else{}}if(sh_aA==true)sh_s(id);setTimeout(function(){sh_z(id)},100);};function sh_s(id){var sh_aC=true;if(sh_t(id+'_direction')){direction=sh_t(id+'_direction').value;}else if(sh_t(id+'_directionfix')){direction=sh_t(id+'_directionfix').value;sh_aC=false;}else{direction=0;}if(sh_t(id)&&sh_t(id+'_position')){var sh_F=parseInt(sh_t(id+'_child').offsetHeight);var sh_G=parseInt(sh_t(id+'_child').offsetWidth);var sh_T=parseInt(sh_t(id).offsetHeight);var sh_U=parseInt(sh_t(id).offsetWidth);if(direction==0||direction==1){sh_t(id+'_child').style.top=0+'px';}else{sh_t(id+'_child').style.top=sh_T-sh_F+'px';}if(direction==0||direction==2){sh_t(id+'_child').style.left=0+'px';}else{sh_t(id+'_child').style.left=sh_U-sh_G+'px';}}};function sh_a(sh_av,type,sh_az){if(typeof(sh_az)=='undefined'){sh_az=0};var sh_bm,sh_bn;if(type==1||type==3){sh_bm=document.body.clientWidth-178;}else{sh_bm=5;}if(type==2||type==3){sh_bn=document.body.clientHeight;}else{sh_bn=0;}if(document.body.clientWidth<1250){sh_bm=-183};window.sh_bo=function(sh_aD,type,sh_az){var sh_bm,sh_bn;var sh_aZ=(navigator.appName.indexOf("Netscape")!=-1);if(type==1||type==3){sh_bm=document.body.clientWidth-183;}else{sh_bm=5;}if(document.body.clientWidth<1250){sh_aD.style.display='none';}else{sh_aD.style.display='';if(document.documentElement&&document.documentElement.scrollTop)var sh_bd=sh_aZ?pageYOffset:document.documentElement.scrollTop;else if(document.body)var sh_bd=sh_aZ?pageYOffset:document.body.scrollTop;if(type==2||type==3){if(document.documentElement&&document.documentElement.clientHeight)sh_bn=document.documentElement.clientHeight-288;else if(document.body)sh_bn=document.body.clientHeight-288;}else{if(document.body.scrollTop>71){sh_bn=3}else{sh_bn=71-document.body.scrollTop};}sh_aD.y+=(sh_bd+sh_bn-sh_aD.y)/8;sh_aD.style.left=sh_bm+'px';sh_aD.style.top=sh_aD.y+sh_az+'px';}setTimeout(function(){sh_bo(sh_aD,type,sh_az)},15);};var sh_aD=sh_t(sh_av);if(!sh_aD)return;sh_aD.x=sh_bm;sh_aD.y=sh_bn;sh_bo(sh_aD,type,sh_az);};function expandselfbanner(sh_ac,sh_aU,sh_aT){sh_t(sh_ac).style.zIndex="120";sh_t(sh_ac+'_status').value=1;if(sh_t(sh_ac+'_directionfix')){var sh_bq=sh_t(sh_ac+'_child').style.top;var sh_aR=sh_t(sh_ac+'_child').style.left;sh_t(sh_ac).style.height=sh_aT+'px';sh_t(sh_ac).style.width=sh_aU+'px';sh_t(sh_ac).style.top=sh_bq;sh_t(sh_ac).style.left=sh_aR;sh_t(sh_ac+'_child').style.top='0px';sh_t(sh_ac+'_child').style.left='0px';}else{if(sh_t(sh_ac+'_position')){sh_t(sh_ac).style.height=sh_aT+'px';sh_t(sh_ac).style.width=sh_aU+'px';sh_z(sh_ac);sh_s(sh_ac);return;}var sh_C=parseInt(sh_t(sh_ac).offsetHeight);var sh_D=parseInt(sh_t(sh_ac).offsetWidth);if((sh_C<sh_aT-10)||(sh_D<sh_aU-10)){if(sh_C<sh_aT-10){sh_t(sh_ac).style.height=sh_C+10+'px';}else{sh_t(sh_ac).style.height=sh_aT+'px';}if(sh_D<sh_aU-10){sh_t(sh_ac).style.width=sh_D+10+'px';}else{sh_t(sh_ac).style.width=sh_aU+'px';}sh_z(sh_ac);sh_s(sh_ac);setTimeout(function(){expandselfbanner(sh_ac,sh_aU,sh_aT)},5);return;}else{sh_t(sh_ac).style.height=sh_aT+'px';sh_t(sh_ac).style.width=sh_aU+'px';sh_z(sh_ac);sh_s(sh_ac);}}};function collapselfbanner(sh_ac,sh_aU,sh_aT){sh_t(sh_ac).style.zIndex="100";if(sh_t(sh_ac+'_directionfix')){var sh_br=sh_t(sh_ac).style.top;var sh_aS=sh_t(sh_ac).style.left;sh_t(sh_ac).style.height=sh_aT+'px';sh_t(sh_ac).style.width=sh_aU+'px';sh_t(sh_ac).style.top='0px';sh_t(sh_ac).style.left='0px';sh_t(sh_ac+'_child').style.top=sh_br;sh_t(sh_ac+'_child').style.left=sh_aS;}else{if(sh_t(sh_ac+'_position')){sh_t(sh_ac).style.height=sh_aT+'px';sh_t(sh_ac).style.width=sh_aU+'px';sh_z(sh_ac);sh_s(sh_ac);return;}var sh_C=parseInt(sh_t(sh_ac).offsetHeight);var sh_D=parseInt(sh_t(sh_ac).offsetWidth);if((sh_C>sh_aT+10)||(sh_D>sh_aU+10)){if(sh_C>sh_aT+10){sh_t(sh_ac).style.height=sh_C-10+'px';}else{sh_t(sh_ac).style.height=sh_aT+'px';}if(sh_D>sh_aU+10){sh_t(sh_ac).style.width=sh_D-10+'px';}else{sh_t(sh_ac).style.width=sh_aU+'px';}sh_z(sh_ac);sh_s(sh_ac);setTimeout(function(){collapselfbanner(sh_ac,sh_aU,sh_aT)},5);return;}else{sh_t(sh_ac).style.height=sh_aT+'px';sh_t(sh_ac).style.width=sh_aU+'px';sh_z(sh_ac);sh_s(sh_ac);sh_t(sh_ac+'_status').value=0;}}};function sh_y(sh_bb,index,sh_ac,sh_al,sh_aU,sh_aT){var sh_aD=sh_t(sh_ac);if(!sh_aD)return;var sh_bd=parseInt(sh_aD.style.top);sh_bd=sh_bd-Math.round(parseInt(sh_aD.style.top)/8)-1;if(sh_bd>0){sh_aD.style.top=sh_bd;setTimeout(function(){sh_y(sh_bb,index,sh_ac,sh_al,sh_aU,sh_aT)},10);}else{sh_aD.style.top=0;setTimeout(function(){sh_p(sh_bb,index,sh_ac,sh_al,sh_aU,sh_aT)},sh_al);}};function sh_p(sh_bb,index,sh_ac,sh_al,sh_aU,sh_aT){var sh_aD=sh_t(sh_ac);if(!sh_aD)return;var sh_bd=parseInt(sh_aD.style.top);sh_bd=sh_bd+Math.round((sh_aT-parseInt(sh_aD.style.top))/8)+1;if(sh_bd<sh_aT){sh_aD.style.top=sh_bd;setTimeout(function(){sh_p(sh_bb,index,sh_ac,sh_al,sh_aU,sh_aT)},10);}else{sh_aD.style.top=sh_aT;if(index==sh_bb.length-1){index=0;}else{index++;}sh_t(sh_ac).innerHTML=sh_h(sh_bb[index],sh_aU,sh_aT);setTimeout(function(){sh_y(sh_bb,index,sh_ac,sh_al,sh_aU,sh_aT)},5000);}};function sh_h(sh_bb,sh_aU,sh_aT,sh_ag,zoneid){if(!sh_bb){return ''}var sh_bj='';var sh_bh=(sh_c(sh_bb[0],7).toLowerCase()=='http://')?sh_bb[0]:sh_J.concat(sh_bb[0]);if(typeof(sh_ag)=="undefined")sh_ag=true;var sh_aN=(sh_aU<sh_bb[3]&&sh_aU>0&&sh_ag)?sh_aU:sh_bb[3];var sh_aM=(sh_aT<sh_bb[4]&&sh_aT>0&&sh_ag)?sh_aT:sh_bb[4];if(sh_bb[0].toLowerCase().indexOf('ngoisao_extendbanner')>0&&sh_bb[1].toLowerCase()=='http://sohoa.net'){sh_bj=sh_bj.concat('<IFRAME MARGINWIDTH="0" MARGINHEIGHT="0" HSPACE="0" VSPACE="0" FRAMEBORDER="0" SCROLLING="no" ');sh_bj=sh_bj.concat(' WIDTH="').concat(sh_bb[3]).concat('" HEIGHT="').concat(sh_bb[4]).concat('" ');sh_bj=sh_bj.concat(' SRC="/Customize/ExtendBanner/').concat(Trim(sh_bb[2].split(',')[12])).concat('.htm"></IFRAME>');}else{if(sh_e(sh_bb[0],4).toLowerCase()=='.swf'){sh_bj=sh_bj.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(sh_aN).concat(' height=').concat(sh_aM).concat('>');sh_bj=sh_bj.concat('<param name="movie" value="').concat(sh_bh).concat('?link=').concat(escape(sh_g(sh_bb[2].substring(sh_bb[2].lastIndexOf(',')+2),sh_bb[1],false))).concat('&zoneid=').concat(zoneid).concat('">');sh_bj=sh_bj.concat('<param name="AllowScriptAccess" value="always">');sh_bj=sh_bj.concat('<param name="quality" value="High">');sh_bj=sh_bj.concat('<param name="wmode" value="transparent">');sh_bj=sh_bj.concat('<embed src="').concat(sh_bh).concat('?link=').concat(escape(sh_g(sh_bb[2].substring(sh_bb[2].lastIndexOf(',')+2),sh_bb[1],false))).concat('&zoneid=').concat(zoneid).concat('" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" AllowScriptAccess="always" width=').concat(sh_aN).concat(' height=').concat(sh_aM).concat('>');sh_bj=sh_bj.concat('</object>');}else{if(sh_bb[1]!=''){sh_bj='<img src="'.concat(sh_bh).concat('" onClick="return sh_v(\'').concat(sh_bb[1]).concat('\', ').concat(sh_bb[2]).concat(', 1)" style="cursor:pointer;" border=0 width=').concat(sh_aN).concat(' height=').concat(sh_aM).concat('>');}else{sh_bj='<img src="'.concat(sh_bh).concat('" border=0 width=').concat(sh_aN).concat(' height=').concat(sh_aM).concat('>');}}}return sh_bj;};adlistshow.prototype.sh_af=function(sh_bb){var sh_ae=false;var sh_aF;if(this.sh_bl==8){sh_aF=sh_bb[9];}else{sh_aF=sh_bb[6];}if(sh_aF==3&&this.sh_ah<4)sh_ae=true;else if(sh_aF==this.sh_ah||sh_aF==0)sh_ae=true;if(sh_ae&&this.sh_bl==7){sh_ae=false;if(typeof(sh_ax)=='undefined')return;var sh_aw=new Date(sh_bb[7]);var sh_ay=new Date(sh_bb[8]);var sh_aG=(sh_ax.getTime()-sh_aw.getTime())/1000;var sh_aJ=(sh_ay.getTime()-sh_ax.getTime())/1000;if(sh_aG<5*86400&&sh_aG>=0&&sh_aJ>5*86400&&sh_aJ>=0){sh_ae=true;}}return sh_ae;};function sh_x(){return(Math.random()*10000)-5000;};function sh_w(sh_bA,vLink,sh_bI,sh_bG,sh_bM,sh_bx,sh_bL,sh_bC,sh_by){if(typeof(sh_by)=='undefined'){sh_by=false;}if(sh_by){var sh_be=open('/Library/PopupUnder.Aspx?sh_bA='.concat(escape(sh_bA)).concat('&vLink=').concat(escape(vLink)).concat('&sh_bI=').concat(escape(sh_bI)),'Popup_'.concat(sh_d(sh_bI,' ','_')),'status=no,resizable=no,scrollbars='.concat(sh_bG).concat(',toolbar=no,location=no,fullscreen=no,titlebar=no,height=').concat(sh_bx).concat(',').concat('width=').concat(sh_bM).concat(',').concat('top=').concat(0).concat(',').concat('left=').concat(0));var sh_O=vLink;window.focus();if(sh_be){sh_be.blur()};return sh_be;}else{return open('/Library/Popup.Aspx?sh_bA='.concat(escape(sh_bA)).concat('&vLink=').concat(escape(vLink)).concat('&sh_bI=').concat(escape(sh_bI)),'Popup_'.concat(sh_d(sh_bI,' ','_')),'status=no,resizable=no,scrollbars=no,toolbar=no,location=no,fullscreen=no,titlebar=yes,height='.concat(sh_bx).concat(',').concat('width=').concat(sh_bM).concat(',').concat('top=').concat(sh_bL).concat(',').concat('left=').concat(sh_bC));}};function sh_v(vLink,sh_bH,sh_bF,sh_bG,sh_bK,sh_bD,sh_bw,sh_bJ,sh_bu,sh_bx,sh_bM,sh_bL,sh_bC,sh_bz,sh_bv){var sh_bi=(typeof(vLink.href)=='undefined')?vLink:vLink.href;sh_bN='';sh_bN=sh_bN.concat('status=').concat((sh_bH)?'yes':'no').concat(',');sh_bN=sh_bN.concat('resizable=').concat((sh_bF)?'yes':'no').concat(',');sh_bN=sh_bN.concat('scrollbars=').concat((sh_bG)?'yes':'no').concat(',');sh_bN=sh_bN.concat('toolbar=').concat((sh_bK)?'yes':'no').concat(',');sh_bN=sh_bN.concat('location=').concat((sh_bD)?'yes':'no').concat(',');sh_bN=sh_bN.concat('fullscreen=').concat((sh_bw)?'yes':'no').concat(',');sh_bN=sh_bN.concat('titlebar=').concat((sh_bJ)?'yes':'no').concat(',');sh_bN=sh_bN.concat('height=').concat(sh_bx-140).concat(',');sh_bN=sh_bN.concat('width=').concat(sh_bM).concat(',');if(sh_bu){sh_bN=sh_bN.concat('top=').concat((screen.height-sh_bx)/2).concat(',');sh_bN=sh_bN.concat('left=').concat((screen.width-sh_bM)/2);}else{sh_bN=sh_bN.concat('top=').concat(sh_bL).concat(',');sh_bN=sh_bN.concat('left=').concat(sh_bC);}if(typeof(sh_bv)=='undefined'){sh_bv=0;}if(typeof(sh_bz)=='undefined'){sh_bz=0;}if(sh_bv){sh_bi=sh_g(sh_bz,sh_bi,true);}open(sh_bi,'_blank',sh_bN);if(typeof(vLink.href)!='undefined'){return false;}};function sh_g(sh_bz,vLink,sh_bE){if(sh_bE==true){return 'http://sohoa.vnexpress.net/Service/Counter/?n='.concat(sh_bz).concat('&u=').concat(escape(vLink)).concat('&r=').concat(Math.random());}else{return 'http://sohoa.vnexpress.net/Service/Counter/?n='.concat(sh_bz).concat('&u=').concat(escape(vLink));}};function sh_b(sh_av,type,sh_az){if(typeof(sh_az)=='undefined'){sh_az=0};var sh_bm,sh_bn;if(type==1){sh_bm=document.body.clientWidth-115;}else{sh_bm=5;}if(type==2){sh_bn=document.body.clientHeight;}else{sh_bn=0;}if(document.body.clientWidth<980){sh_bm=-115};window.sh_bo=function(sh_aD,type,sh_az){var sh_bm,sh_bn;var sh_aZ=(navigator.appName.indexOf("Netscape")!=-1);if(type==1){sh_bm=document.body.clientWidth-115;}else{sh_bm=5;}if(document.body.clientWidth<980){sh_aD.style.display='none';}else{sh_aD.style.display='';if(document.documentElement&&document.documentElement.scrollTop)var sh_bd=sh_aZ?pageYOffset:document.documentElement.scrollTop;else if(document.body)var sh_bd=sh_aZ?pageYOffset:document.body.scrollTop;if(type==2){sh_bn=document.body.clientHeight-183;}else{if(document.body.scrollTop>71){sh_bn=3}else{sh_bn=71-document.body.scrollTop};}sh_aD.y+=(sh_bd+sh_bn-sh_aD.y)/8;sh_aD.style.left=sh_bm;sh_aD.style.top=sh_aD.y+sh_az;}setTimeout(function(){sh_bo(sh_aD,type,sh_az)},15);};var sh_aD=sh_t(sh_av);if(!sh_aD)return;sh_aD.x=sh_bm;sh_aD.y=sh_bn;sh_bo(sh_aD,type,sh_az);};function sh_t(sh_aW){if(document.getElementById){m=document.getElementById(sh_aW)}else if(document.all){m=document.all[sh_aW]}else if(document.layers){m=document[sh_aW]}return m;};function sh_u(sh_bb,sh_bc){var p=sh_bc?sh_bc.slice(0):[0,0];while(sh_bb){p[0]+=sh_bb.offsetLeft;p[1]+=sh_bb.offsetTop;if(sh_bb.tagName.toUpperCase()=="BODY")break;sh_bb=sh_bb.offsetParent;}return p;};function sh_c(sh_bp,n){if(n<=0)return "";else if(n>String(sh_bp).length)return sh_bp;else return String(sh_bp).substring(0,n);};function sh_e(sh_bp,n){if(n<=0)return "";else if(n>String(sh_bp).length)return sh_bp;else{var sh_aH=String(sh_bp).length;return String(sh_bp).substring(sh_aH,sh_aH-n);}};function sh_d(sh_aI,sh_bs,sh_bt){var i=0,sh_ba='',j=sh_bs.length;while(i<sh_aI.length){if(sh_aI.substr(i,j)==sh_bs){sh_ba+=sh_bt;i+=j}else{sh_ba+=sh_aI.charAt(i);i++;}}return sh_ba;}