var timespan=navigator.useragent.indexof("firefox")>0?15:10;var adconfig=false;function addevent(f,e,d){if(f.addeventlistener){f.addeventlistener(e,d,false)}else{if(f.attachevent){f.attachevent("on"+e,d)}}}function adconfiginit(){adconfig=new object();adconfig.left=0;adconfig.top=0;adconfig.width=0;adconfig.height=0;adconfig.scroll=function(){if(document.documentelement&&document.documentelement.scrollleft){adconfig.left=document.documentelement.scrollleft}else{if(document.body){adconfig.left=document.body.scrollleft}}if(document.documentelement&&document.documentelement.scrolltop){adconfig.top=document.documentelement.scrolltop}else{if(document.body){adconfig.top=document.body.scrolltop}}};adconfig.resize=function(){if(document.documentelement&&document.documentelement.clientheight&&document.body&&document.body.clientheight){adconfig.width=(document.documentelement.clientwidth>document.body.clientwidth)?document.body.clientwidth:document.documentelement.clientwidth;adconfig.height=(document.documentelement.clientheight>document.body.clientheight)?document.body.clientheight:document.documentelement.clientheight}else{if(document.documentelement&&document.documentelement.clientheight){adconfig.width=document.documentelement.clientwidth;adconfig.height=document.documentelement.clientheight}else{if(document.body){adconfig.width=document.body.clientwidth;adconfig.height=document.body.clientheight}}}};adconfig.scroll();adconfig.resize();addevent(window,"scroll",adconfig.scroll);addevent(window,"resize",adconfig.resize)}function adpopup(r,o,k,m,l,q,j,p){var n=window.open("","win"+r,"width="+m+", height="+l+", top="+q+", left="+j);n.document.write("
");n.document.write(o);n.document.write("");n.document.write(k);n.document.write("")}function adfloat(n,v,m,p,t,l,u,r){var o=1;var q=1;n.move=function(){if(l+m>=adconfig.left+adconfig.width){l=adconfig.left+adconfig.width-m;o=-1}else{if(l<=adconfig.left){l=adconfig.left;o=1}}if(t+p>=adconfig.top+adconfig.height){t=adconfig.top+adconfig.height-p;q=-1}else{if(t<=adconfig.top){t=adconfig.top;q=1}}l+=o;t+=q;n.style.left=l+"px";n.style.top=t+"px"};var s=window.setinterval(n.move,timespan);n.onmouseover=function(){window.clearinterval(s)};n.onmouseout=function(){s=window.setinterval(n.move,timespan)};if(u=="true"){n.onclick=function(){window.clearinterval(s);n.style.display="none"}}if(r){v.onclick=function(){window.clearinterval(s);n.style.display="none"}}}function adhangleft(j,l,i,g,h){j.move=function(){var a=parseint(j.style.top,10);if(a+5adconfig.top+i){j.style.top=(a-5)+"px"}}};var k=window.setinterval(j.move,timespan);if(g=="true"){j.onclick=function(){window.clearinterval(k);j.style.display="none"}}if(h){l.onclick=function(){window.clearinterval(k);j.style.display="none"}}}function adhangright(j,l,i,g,h){j.move=function(){var a=parseint(j.style.top,10);if(a+5adconfig.top+i){j.style.top=(a-5)+"px"}}};var k=window.setinterval(j.move,timespan);if(g=="true"){j.onclick=function(){window.clearinterval(k);j.style.display="none"}}if(h){l.onclick=function(){window.clearinterval(k);j.style.display="none"}}}function adhangbottom(h,j,f,g,i){if(g=="true"){h.onclick=function(){h.style.display="none"}}if(i){j.onclick=function(){h.style.display="none"}}}function adprepare(d,c,u,t,b,p,x,z,s,w,a){if(!adconfig){adconfiginit()}var r=adcontent(u,b,p,x);if(t=="popup"){adpopup(d,c,r,p,x,z,s,w);return}var q="";if(t=="hangb"){q="";if(a==1){q=q+""}if(a==2){q=q+""}}else{q="";if(a==1){q=q+""}else{if(a==2){q=q+""}}}q=q+r+"";document.writeln(q);var y=document.getelementbyid("adver_"+d);var v=document.getelementbyid("shut_"+d);switch(t){case"float":adfloat(y,v,p,x,z,s,w,a);break;case"hangl":adhangleft(y,v,z,w,a);break;case"hangr":adhangright(y,v,z,w,a);break;case"hangb":adhangbottom(y,v,z,w,a);break}}function adcontent(j,h,i,l){var g=h.substr(h.lastindexof(".")+1).tolowercase();var k;if(g=="swf"){k="";if(j!=""){k=""+k}else{k=""+k}}else{k="";if(j!=""){k=""+k+""}}return k};