//Thoi gian thay doi banner tim bien this.ar=20000
var S;S='';function adlistshow(J,K,N,af,U,W,V,ae,T){this.bb=K;this.ap=N;this.aY=W;this.aX=V;this.bp=af;this.face=U;this.ar=10000;this.as=100;if(typeof(ae)=='undefined'){this.bk=true;}else{this.bk=ae;};if(typeof(T)=='undefined'){this.direction=0;}else{this.direction=T;};switch(af){case 0:case 4:case 5:case 6:case 9:case 10:this.bj=0;break;case 8:this.bj=2;break;default:this.bj=1;break;}var ah=new Array();var ai=new Array();var i,j,k,bc,aR,bo;i=0;j=-1;k=0;bc=-1;aR=0;bo=1;if(this.bj==0){for(i=0,j=0;i<J.length;i++){if(this.an(J[i])){ah[j]=J[i];j++;}}ah.sort(G);this.aV=j+1;this.aZ=ah;}else if(this.bj==1){ah[0]=new Array();ah[1]=new Array();for(i=0;i<J.length;i++){if(J[i][5]<=100){if(J[i][5]!=bc){bc=J[i][5];aR=0;j++;k=0;}else{k++;}}else{if(J[i][5]!=bc||J.length<=10){if(bc<=100)j=-1;bc=J[i][5];aR=1;j++;k=0;bo=0;}else{if(bo>=bc-100){j++;k=0;bo=0;}else{k++;}}}if(this.an(J[i])){if(k==0)ah[aR][j]=new Array();ah[aR][j][k]=J[i];bo++;}}for(i=0;i<ah.length;i++){if(i==1){ah[i].sort(G)};for(j=0;j<ah[i].length;j++){ah[i][j].sort(G);}}k=0;for(i=0;i<ah.length;i++){for(j=0;j<ah[i].length;j++){ai[k]=ah[i][j];k++;}}this.aZ=ai;this.aV=k;}else if(this.bj==2){for(i=0,j=0;i<J.length;i++){if(this.an(J[i])){ah[j]=new Array();ah[j][0]=new Array();ah[j][0][0]=J[i][0];ah[j][0][1]=J[i][2];ah[j][0][2]=J[i][3];ah[j][0][3]=J[i][4];ah[j][0][4]=J[i][5];ah[j][1]=new Array();ah[j][1][0]=J[i][1];ah[j][1][1]=J[i][2];ah[j][1][2]=J[i][3];ah[j][1][3]=J[i][6];ah[j][1][4]=J[i][7];j++;}}ah.sort(G);this.aV=j+1;this.aZ=ah;}this.aU();};adlistshow.prototype.aU=function(){switch(this.bp){case 0:this.aA();break;case 1:case 7:case 11:this.ay();break;case 2:this.aw(0);break;case 3:this.aw(1);break;case 4:this.aw(2);break;case 5:this.az(false);break;case 6:this.az(true);break;case 8:this.av();break;case 9:this.aB();break;case 10:this.ax();break;default:break;}};adlistshow.prototype.al=function(index){if(this.bj==0){return true;}else{if(this.aZ.length==index+1){return true;}else{return false;}}};adlistshow.prototype.aA=function(){document.write('<table ',(this.aY>0)?'width='.concat(this.aY):'',' cellspacing=0 cellpadding=0 border=0 align=center>');this.bW(this.aZ,0);document.write('</table>');};adlistshow.prototype.ay=function(){if(this.face==0||this.face==3){document.write('<table ',(this.aY>0)?'width='.concat(this.aY):'',' cellspacing=0 cellpadding=0 border=0 align=center>');}else if(this.face==2){document.write('<table ',(this.aY>0)?'width='.concat(this.aY):'',' cellspacing=0 cellpadding=0 border=0 align=center><tr>');}for(var i=0;i<this.aZ.length;i++){this.bW(this.aZ[i],i,this.al(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.al(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.aw=function(type){if(type==2){document.write('<DIV id="floatdiv',this.bb,'" style="position:absolute;overflow:hidden;top:0;left:-200;',(this.aX>0)?'height:'.concat(this.aX):'180',';',(this.aY>0)?'width:'.concat(this.aY):'115',';">');this.bR(this.aZ);}else{document.write('<DIV id="floatdiv',this.bb,'" style="position:absolute;top:0;left:-200;',(this.aY>0)?'width:'.concat(this.aY):'115',';">');this.ay();}document.write('</DIV>');if(this.aZ.length>0){c('floatdiv'.concat(this.bb),type);}};adlistshow.prototype.az=function(type){bE=this.aZ[0][2].lastIndexOf(',');bC=this.aZ[0][2].substr(bE+2);bm=g(bC,this.aZ[0][1],true);var aj=this.aZ[0][2].split(",");F(this.aZ[0][0],bm,'Advertisment',aj[2],aj[9],aj[8],screen.height-aj[9]-80,(screen.width-770)/2+410-5,type);};adlistshow.prototype.av=function(){document.write('<table align=center ',(this.aY>0)?'width='.concat(this.aY):'',' cellspacing=0 cellpadding=0 border=0>');this.bS(this.aZ,0);document.write('</table>');};adlistshow.prototype.aB=function(){document.write('<table align=center ',(this.aY>0)?'width='.concat(this.aY):'',' cellspacing=0 cellpadding=0 border=0>');this.bX(this.aZ,0);document.write('</table>');};adlistshow.prototype.ax=function(){document.write('<table align=center ',(this.aY>0)?'width='.concat(this.aY):'',' cellspacing=0 cellpadding=0 border=0>');this.bT(this.aZ,0);document.write('</table>');};adlistshow.prototype.bW=function(bf,index,aW){if(this.face==1){document.write('<tr><td id="',this.bb,'_',index,'" style="padding:4px;">');}else if(this.face==2){document.write('<td id="',this.bb,'_',index,'" style="padding:4px;">');}else{document.write('<tr><td id="',this.bb,'_',index,'">');}document.write(l(bf[0],this.aY,this.aX));if(bf.length>1){var aQ=''.concat(this.bb).concat('_').concat(index);var at=this.ar;var au=this.as;var aY=this.aY;var aX=this.aX;if(this.bp==11){if(this.bk){var aq=0;setTimeout(function(){changebannerWC(bf,aQ,au,aY,aX,0)},0);setTimeout(function(){checkFlagWC(bf,aQ,au,aY,aX,aq,0)},0);}}else{if(this.bk)setTimeout(function(){o(bf,0,aQ,at,aY,aX)},at);}}if(this.face==2){document.write('</td>');}else{if(bf.length>1&&this.bp==11){document.write('</td></tr>');document.write('<tr><td>');document.write('	<input type="hidden" value="0" id="hidFlag_'+aQ+'" name="hidFlag_'+aQ+'" />');document.write('	<input type="hidden" value="0" id="hidLoop_'+aQ+'" name="hidLoop_'+aQ+'" />');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<bf.length;i++){document.write('<div id="numb'+aQ+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="B(\'hidLoop_'+aQ+'\').value ='+i+'; B(\'hidFlag_'+aQ+'\').value = 100;">'+(i+1)+'</div>');}document.write('		</div>');document.write('	<div class="divArrowL" onmouseover="B(\'divArrowL_'+aQ+'\').className = \'divArrowL_Active\';" onmouseout="gmobj(\'divArrowL_'+aQ+'\').className = \'divArrowL\';" onclick="gmobj(\'hidFlag_'+aQ+'\').value = -1;" id="divArrowL_'+aQ+'">&nbsp;</div>');document.write('	<div style="float:left;width:4px;">&nbsp;</div>');document.write('	<div class="divArrowR" onmouseover="B(\'divArrowR_'+aQ+'\').className = \'divArrowR_Active\';" onmouseout="gmobj(\'divArrowR_'+aQ+'\').className = \'divArrowR\';" onclick="gmobj(\'hidFlag_'+aQ+'\').value = 1;" id="divArrowR_'+aQ+'">&nbsp;</div>');document.write('</td></tr>');}}};adlistshow.prototype.bV=function(bf,aW){for(var i=0;i<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(l(bf[i],this.aY,this.aX));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<bf.length-1)){document.write('<tr><td height="1" bgcolor="#808080"></td></tr>');}}};adlistshow.prototype.bR=function(bf){document.write('<DIV id="subdiv',this.bb,'" style="position:absolute;',(this.aX>0)?'top:'.concat(this.aX):'180',';',(this.aY>0)?'width:'.concat(this.aY):'115',';',(this.aX>0)?'height:'.concat(this.aX):'180',';">');document.write(l(bf[0],this.aY,this.aX));var aQ='subdiv'.concat(this.bb);var at=this.ar;var aY=this.aY;var aX=this.aX;setTimeout(function(){H(bf,0,aQ,at,aY,aX)},500);document.write('</DIV>');};adlistshow.prototype.bS=function(bf){if(bf.length<=0)return;var aY=this.aY;var aX=this.aX;var aQ=''.concat(this.bb);var at=this.ar;document.write('<tr><td>');document.write('<DIV id="',aQ,'" style="position:related;overflow:hidden;width:'.concat(bf[0][0][3]),';height:'.concat(bf[0][0][4]),';">');document.write(l(bf[0][0],this.aY,this.aX));if(bf.length>1){}document.write('</DIV></td></tr>');document.write('<tr><td align=center id="',aQ,'_extend"><font face="Arial" size="1"><b>');document.write('<span id="',aQ,'_expandcollap" style="cursor:pointer;">M&#7903; r&#7897;ng</span>&nbsp;-&nbsp;');document.write('<span id="',aQ,'_close" style="cursor:pointer;">&#272;&#243;ng</span>');document.write('<input type="hidden" id="',this.bb,'_hidden">');document.write('</td></tr>');B(aQ+'_hidden').value=0;B(aQ).onmouseover=function(){z(bf,aQ,aY,aX)};B(aQ+'_expandcollap').onclick=function(){z(bf,aQ,aY,aX)};B(aQ+'_close').onclick=function(){t(aQ)};};function z(bf,ak,aY,aX){var index=B(ak+'_hidden').value;if(parseInt(B(ak).offsetHeight)<bf[index][1][4]){B(ak).style.height=parseInt(B(ak).offsetHeight)+10;setTimeout(function(){z(bf,ak,aY,aX)},5);return;}B(ak).onmouseover='undefine';B(ak+'_expandcollap').innerHTML='Thu nh&#7887;';B(ak+'_expandcollap').onclick=function(){v(bf,ak,aY,aX)};B(ak).innerHTML=l(bf[index][1],aY,aX);};function v(bf,ak,aY,aX){var index=B(ak+'_hidden').value;if(parseInt(B(ak).offsetHeight)>bf[index][0][4]){B(ak).style.height=parseInt(B(ak).offsetHeight)-10;setTimeout(function(){v(bf,ak,aY,aX)},5);return;}B(ak).onmouseover=function(){z(bf,ak,aY,aX)};B(ak+'_expandcollap').innerHTML='M&#7903; r&#7897;ng';B(ak+'_expandcollap').onclick=function(){z(bf,ak,aY,aX)};B(ak).innerHTML=l(bf[index][0],aY,aX);};function t(ak){B(ak).style.display='none';B(ak+'_extend').style.display='none';};function o(bf,index,ak,at,aY,aX){if(index==bf.length-1){index=0;}else{index++;}B(ak).innerHTML=l(bf[index],aY,aX);setTimeout(function(){o(bf,index,ak,at,aY,aX)},at);};function checkFlagWC(bf,ak,au,aY,aX,aq,loop){var aK;aK=B("hidFlag_"+ak).value;if(aK==0){if(aq==au){loop++;setTimeout(function(){changebannerWC(bf,ak,au,aY,aX,loop)},0);}}else if(aK==1){loop++;setTimeout(function(){changebannerWC(bf,ak,au,aY,aX,loop)},0);B("hidFlag_"+ak).value=0;aq=0;}else if(aK==-1){loop--;setTimeout(function(){changebannerWC(bf,ak,au,aY,aX,loop)},0);B("hidFlag_"+ak).value=0;aq=0;}else{loop=B('hidLoop_'+ak).value;setTimeout(function(){changebannerWC(bf,ak,au,aY,aX,loop)},0);B("hidFlag_"+ak).value=0;B('hidLoop_'+ak).value=0;aq=0;}aq++;if(aq>au){aq=0;}if(loop==bf.length){loop=0;}if(loop<0){loop=(bf.length-1);}setTimeout(function(){checkFlagWC(bf,ak,au,aY,aX,aq,loop)},100);};function changebannerWC(bf,ak,au,aY,aX,aI){B(ak).innerHTML=l(bf[aI],aY,aX);var k;for(k=0;k<bf.length;k++){if(k==aI){document.getElementById("numb"+ak+k).style.backgroundColor="2879ca";document.getElementById("numb"+ak+k).style.border="solid 2px #cccccc";}else{document.getElementById("numb"+ak+k).style.backgroundColor="0066cc";document.getElementById("numb"+ak+k).style.border="solid 2px #0066cc";}}};function r(bf,index,ak,at,aY,aX){if(B(ak+'_status').value=='0'){if(index==bf.length-1){index=0;}else{index++;}B(ak).innerHTML=l(bf[index],aY,aX,false,ak);}setTimeout(function(){r(bf,index,ak,at,aY,aX)},at);};adlistshow.prototype.bX=function(bf){if(bf.length<=0)return;var aY=(this.aY<bf[0][3]&&this.aY>0)?this.aY:bf[0][3];var aX=(this.aX<bf[0][4]&&this.aX>0)?this.aX:bf[0][4];var aQ=''.concat(this.bb);var at=this.ar;document.write('<tr><td>');document.write('<DIV id="',aQ,'" style="position:relative;overflow:hidden;width:'.concat(aY),'px;height:'.concat(aX),'px;">');document.write(l(bf[0],this.aY,this.aX,false,aQ));document.write('</DIV>');document.write('<input type="hidden" id="',aQ,'_status" value="0">');document.write('</td></tr>');if(this.bk)setTimeout(function(){r(bf,0,aQ,at,aY,aX)},at);};adlistshow.prototype.bT=function(bf){if(bf.length<=0)return;var aY=(this.aY<bf[0][3]&&this.aY>0)?this.aY:bf[0][3];var aX=(this.aX<bf[0][4]&&this.aX>0)?this.aX:bf[0][4];var aQ=''.concat(this.bb);var at=this.ar;document.write('<tr><td>');document.write('<DIV id="',aQ,'_position" style="position:relative;overflow:hidden;width:'.concat(aY),'px;height:'.concat(aX),'px;"></DIV>');document.write('<DIV id="',aQ,'" style="position:absolute;overflow:hidden;top:0px;left:-1000px;width:'.concat(aY),'px;height:'.concat(aX),'px;">');document.write('</DIV>');document.write('<input type="hidden" id="',aQ,'_direction" value="',this.direction,'">');document.write('<input type="hidden" id="',aQ,'_status" value="0">');document.write('</td></tr>');var ag=this;if(window.addEventListener)window.addEventListener("load",function(){ag.bU(bf)},false);else if(window.attachEvent)window.attachEvent("onload",function(){ag.bU(bf)});else if(document.getElementById)setTimeout(function(){ag.bU(bf)},500);};adlistshow.prototype.bU=function(bf){if(bf.length<=0)return;var aY=(this.aY<bf[0][3]&&this.aY>0)?this.aY:bf[0][3];var aX=(this.aX<bf[0][4]&&this.aX>0)?this.aX:bf[0][4];var aQ=''.concat(this.bb);var at=this.ar;var bn='';bn=bn.concat('<DIV id="').concat(aQ).concat('_child" style="position:absolute;top:0px;left:0px;width:').concat(bf[0][3]).concat('px;height:').concat(bf[0][4]).concat('px;">');bn=bn.concat(l(bf[0],this.aY,this.aX,false,aQ));bn=bn.concat('</DIV>');B(aQ).innerHTML=bn;I(aQ,true);if(this.bk)setTimeout(function(){r(bf,0,aQ,at,aY,aX)},at);};function I(id,aH){if(B(id+'_direction')){direction=B(id+'_direction').value;}else{direction=0;}if(B(id)&&B(id+'_position')){var aa=C(B(id+'_position'))[1];var Z=C(B(id+'_position'))[0];var Y=parseInt(B(id+'_position').offsetHeight);var ab=parseInt(B(id+'_position').offsetWidth);var Q=parseInt(B(id).offsetHeight);var R=parseInt(B(id).offsetWidth);if(direction==0||direction==1){B(id).style.top=aa;}else{B(id).style.top=aa-Q+Y;}if(direction==0||direction==2){B(id).style.left=Z;}else{B(id).style.left=Z-R+ab;}}if(aH==true)A(id);setTimeout(function(){I(id)},100);};function A(id){if(B(id+'_direction')){direction=B(id+'_direction').value;}else{direction=0;}if(B(id)&&B(id+'_position')){var O=parseInt(B(id+'_child').offsetHeight);var P=parseInt(B(id+'_child').offsetWidth);var ac=parseInt(B(id).offsetHeight);var ad=parseInt(B(id).offsetWidth);if(direction==0||direction==1){B(id+'_child').style.top=0;}else{B(id+'_child').style.top=ac-O;}if(direction==0||direction==2){B(id+'_child').style.left=0;}else{B(id+'_child').style.left=ad-P;}}};function expandselfbanner(ak,aY,aX){B(ak+'_status').value=1;if(B(ak+'_position')){B(ak).style.height=aX;B(ak).style.width=aY;I(ak);A(ak);return;}var L=parseInt(B(ak).offsetHeight);var M=parseInt(B(ak).offsetWidth);if((L<aX-10)||(M<aY-10)){if(L<aX-10){B(ak).style.height=L+10+'px';}else{B(ak).style.height=aX;}if(M<aY-10){B(ak).style.width=M+10+'px';}else{B(ak).style.width=aY;}I(ak);A(ak);setTimeout(function(){expandselfbanner(ak,aY,aX)},5);return;}else{B(ak).style.height=aX;B(ak).style.width=aY;I(ak);A(ak);}};function collapselfbanner(ak,aY,aX){if(B(ak+'_position')){B(ak).style.height=aX;B(ak).style.width=aY;I(ak);A(ak);return;}var L=parseInt(B(ak).offsetHeight);var M=parseInt(B(ak).offsetWidth);if((L>aX+10)||(M>aY+10)){if(L>aX+10){B(ak).style.height=L-10+'px';}else{B(ak).style.height=aX;}if(M>aY+10){B(ak).style.width=M-10+'px';}else{B(ak).style.width=aY;}I(ak);A(ak);setTimeout(function(){collapselfbanner(ak,aY,aX)},5);return;}else{B(ak).style.height=aX;B(ak).style.width=aY;I(ak);A(ak);B(ak+'_status').value=0;}};function H(bf,index,ak,at,aY,aX){var aJ=B(ak);if(!aJ)return;var bh=parseInt(aJ.style.top);bh=bh-Math.round(parseInt(aJ.style.top)/8)-1;if(bh>0){aJ.style.top=bh;setTimeout(function(){H(bf,index,ak,at,aY,aX)},10);}else{aJ.style.top=0;setTimeout(function(){w(bf,index,ak,at,aY,aX)},at);}};function w(bf,index,ak,at,aY,aX){var aJ=B(ak);if(!aJ)return;var bh=parseInt(aJ.style.top);bh=bh+Math.round((aX-parseInt(aJ.style.top))/8)+1;if(bh<aX){aJ.style.top=bh;setTimeout(function(){w(bf,index,ak,at,aY,aX)},10);}else{aJ.style.top=aX;if(index==bf.length-1){index=0;}else{index++;}B(ak).innerHTML=l(bf[index],aY,aX);setTimeout(function(){H(bf,index,ak,at,aY,aX)},5000);}};function l(bf,aY,aX,ao,zoneid){if(!bf){return ''}var bn='';var bl=(d(bf[0],7).toLowerCase()=='http://')?bf[0]:S.concat(bf[0]);if(typeof(ao)=="undefined")ao=true;var aT=(aY<bf[3]&&aY>0&&ao)?aY:bf[3];var aS=(aX<bf[4]&&aX>0&&ao)?aX:bf[4];if(f(bf[0],4).toLowerCase()=='.swf'){bn=bn.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(aT).concat(' height=').concat(aS).concat('>');bn=bn.concat('<param name="movie" value="').concat(bl).concat('?link=').concat(escape(g(bf[2].substring(bf[2].lastIndexOf(',')+2),bf[1],false))).concat('&zoneid=').concat(zoneid).concat('">');bn=bn.concat('<param name="AllowScriptAccess" value="always">');bn=bn.concat('<param name="quality" value="High">');bn=bn.concat('<param name="wmode" value="transparent">');bn=bn.concat('<embed src="').concat(bl).concat('?link=').concat(escape(g(bf[2].substring(bf[2].lastIndexOf(',')+2),bf[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(aT).concat(' height=').concat(aS).concat('>');bn=bn.concat('</object>');}else{if(bf[1]!=''){bn='<img src="'.concat(bl).concat('" onClick="return D(\'').concat(bf[1]).concat('\', ').concat(bf[2]).concat(', 1)" style="cursor:pointer;" border=0 width=').concat(aT).concat(' height=').concat(aS).concat('>');}else{bn='<img src="'.concat(bl).concat('" border=0 width=').concat(aT).concat(' height=').concat(aS).concat('>');}}return bn;};adlistshow.prototype.an=function(bf){var am=false;var aL;if(this.bp==8){aL=bf[9];}else{aL=bf[6];}if(aL==3&&this.ap<4)am=true;else if(aL==this.ap||aL==0)am=true;if(am&&this.bp==7){am=false;if(typeof(aE)=='undefined')return;var aD=new Date(bf[7]);var aF=new Date(bf[8]);var aM=(aE.getTime()-aD.getTime())/1000;var aP=(aF.getTime()-aE.getTime())/1000;if(aM<5*86400&&aM>=0&&aP>5*86400&&aP>=0){am=true;}}return am;};function G(){return(Math.random()*10000)-5000;};function F(bD,vLink,bL,bJ,bP,bA,bO,bF,bB){if(typeof(bB)=='undefined'){bB=false;}if(bB){var bi=open('/Library/PopupUnder.Asp?bD='.concat(escape(bD)).concat('&vLink=').concat(escape(vLink)).concat('&bL=').concat(escape(bL)),'Popup_'.concat(e(bL,' ','_')),'status=bc,resizable=bc,scrollbars='.concat(bJ).concat(',toolbar=bc,location=bc,fullscreen=bc,titlebar=bc,height=').concat(bA).concat(',').concat('width=').concat(bP).concat(',').concat('top=').concat(0).concat(',').concat('left=').concat(0));var X=vLink;window.focus();if(bi){bi.blur()};return bi;}else{return open('/Library/Popup.Asp?bD='.concat(escape(bD)).concat('&vLink=').concat(escape(vLink)).concat('&bL=').concat(escape(bL)),'Popup_'.concat(e(bL,' ','_')),'status=bc,resizable=bc,scrollbars=bc,toolbar=bc,location=bc,fullscreen=bc,titlebar=yes,height='.concat(bA).concat(',').concat('width=').concat(bP).concat(',').concat('top=').concat(bO).concat(',').concat('left=').concat(bF));}};function D(vLink,bK,bI,bJ,bN,bG,bz,bM,bx,bA,bP,bO,bF,bC,by){var bm=(typeof(vLink.href)=='undefined')?vLink:vLink.href;bQ='';bQ=bQ.concat('status=').concat((bK)?'yes':'bc').concat(',');bQ=bQ.concat('resizable=').concat((bI)?'yes':'bc').concat(',');bQ=bQ.concat('scrollbars=').concat((bJ)?'yes':'bc').concat(',');bQ=bQ.concat('toolbar=').concat((bN)?'yes':'bc').concat(',');bQ=bQ.concat('location=').concat((bG)?'yes':'bc').concat(',');bQ=bQ.concat('fullscreen=').concat((bz)?'yes':'bc').concat(',');bQ=bQ.concat('titlebar=').concat((bM)?'yes':'bc').concat(',');bQ=bQ.concat('height=').concat(bA-140).concat(',');bQ=bQ.concat('width=').concat(bP).concat(',');if(bx){bQ=bQ.concat('top=').concat((screen.height-bA)/2).concat(',');bQ=bQ.concat('left=').concat((screen.width-bP)/2);}else{bQ=bQ.concat('top=').concat(bO).concat(',');bQ=bQ.concat('left=').concat(bF);}if(typeof(by)=='undefined'){by=0;}if(typeof(bC)=='undefined'){bC=0;}if(by){bm=g(bC,bm,true);}open(bm,'_self',bQ);if(typeof(vLink.href)!='undefined'){return false;}};function g(bC,vLink,bH){if(bH==true){return vLink;}else{return vLink;}};function c(aC,type,aG){if(typeof(aG)=='undefined'){aG=0};var bq,bs;if(type==1){bq=document.body.clientWidth-115;}else{bq=5;}if(type==2){bs=document.body.clientHeight;}else{bs=0;}if(document.body.clientWidth<980){bq=-115};window.bt=function(aJ,type,aG){var bq,bs;var bd=(navigator.appName.indexOf("Netscape")!=-1);if(type==1){bq=document.body.clientWidth-115;}else{bq=5;}if(document.body.clientWidth<980){aJ.style.display='none';}else{aJ.style.display='';if(document.documentElement&&document.documentElement.scrollTop)var bh=bd?pageYOffset:document.documentElement.scrollTop;else if(document.body)var bh=bd?pageYOffset:document.body.scrollTop;if(type==2){bs=document.body.clientHeight-183;}else{if(document.body.scrollTop>71){bs=3}else{bs=71-document.body.scrollTop};}aJ.y+=(bh+bs-aJ.y)/8;aJ.style.left=bq;aJ.style.top=aJ.y+aG;}setTimeout(function(){bt(aJ,type,aG)},15);};var aJ=B(aC);if(!aJ)return;aJ.x=bq;aJ.y=bs;bt(aJ,type,aG);};function B(ba){if(document.getElementById){m=document.getElementById(ba)}else if(document.all){m=document.all[ba]}else if(document.layers){m=document[ba]}return m;};function C(bf,bg){var p=bg?bg.slice(0):[0,0];while(bf){p[0]+=bf.offsetLeft;p[1]+=bf.offsetTop;if(bf.tagName.toUpperCase()=="BODY")break;bf=bf.offsetParent;}return p;};function d(bu,n){if(n<=0)return "";else if(n>String(bu).length)return bu;else return String(bu).substring(0,n);};function f(bu,n){if(n<=0)return "";else if(n>String(bu).length)return bu;else{var aN=String(bu).length;return String(bu).substring(aN,aN-n);}};function e(aO,bv,bw){var i=0,be='',j=bv.length;while(i<aO.length){if(aO.substr(i,j)==bv){be+=bw;i+=j}else{be+=aO.charAt(i);i++;}}return be;}

//MEDIUM_RECTANGLE
function ShowBannerMediumRectangle(vAd,RefBanner,width_oj,height_oj,idbn)
{
	
	
	/*if (vAd!=0)
	{
		document.writeln('<table cellspacing=0 cellpadding=0 border=0>');
		document.writeln('<tr><td style="padding-top:3px;"><a href="/Advertising/"><img src="/Images/Advertisment.gif" border="0"></a></td></tr>');
		document.writeln('</table>');
	}

	if (RefBanner.length==0)
	{
		
		document.writeln(ShowFlashObject('MEDIUM_RECTANGLE'+idbn, 'images/300x250.swf', width_oj, height_oj));
		return;
	}*/	
	
	if (RefBanner.length>0)
	{
		
		document.writeln('<table cellspacing=0 cellpadding=0 border=0 width='+width_oj+'>');	
		//document.writeln('<tr><td height=3></td></tr>');
		document.writeln('<tr><td style=\"padding-bottom:5px\">');
		
		new adlistshow(RefBanner,'MEDIUM_RECTANGLE_'+idbn,0,0,0,width_oj,height_oj);
		document.writeln('</td></tr>');
		document.writeln('</table>');
	}
}
		
function ShowFlashObject(objName, objFileName, objWidth, objHeight) {
	var sHTML = '';
	sHTML = sHTML.concat('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="').concat(objWidth).concat('" HEIGHT="').concat(objHeight).concat('">');	
	sHTML = sHTML.concat('	<PARAM NAME=movie VALUE="').concat('').concat(objFileName).concat('">');
	sHTML = sHTML.concat('	<PARAM NAME=quality VALUE=high>');
	sHTML = sHTML.concat('	<PARAM NAME=bgcolor VALUE=#FFFFFF>');	
	sHTML = sHTML.concat('	<EMBED src="').concat('').concat(objFileName).concat('" quality=high bgcolor=#FFFFFF WIDTH="').concat(objWidth).concat('" HEIGHT="').concat(objHeight).concat('" NAME="').concat(objName).concat('" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
	sHTML = sHTML.concat('</OBJECT>');
	return sHTML;		
}