var ospodlanguage=new object();ospodlanguage.availablelanguages={'de':'german','en':'english','en-au':'english (australia)','en-ca':'english (canadian)','en-uk':'english (united kingdom)','es':'spanish','fr':'french','it':'italian','ja':'japanese','ko':'korean','ru':'russian','th':'thai','zh':'chinese traditional','zh-cn':'chinese simplified'};ospodlanguage.defaultlanguage="zh-cn";ospodlanguage.getactivelanguage=function(){var suserlang;var localecookie="_cmslocale";var arr=document.cookie.match(new regexp("(^| )"+localecookie+"=([^;]*)(;|$)"));if(arr!=null){suserlang=unescape(arr[2]);};if(suserlang!=null&&suserlang!=""){if(suserlang.length>2){var re=/_/;suserlang=suserlang.replace(re,"-");};return suserlang.tolowercase();};if(navigator.userlanguage)suserlang=navigator.userlanguage.tolowercase();else if(navigator.language)suserlang=navigator.language.tolowercase();else{return this.defaultlanguage;};if(suserlang.length>=5){suserlang=suserlang.substr(0,5);if(this.availablelanguages[suserlang])return suserlang;};if(suserlang.length>=2){suserlang=suserlang.substr(0,2);if(this.availablelanguages[suserlang])return suserlang;};return this.defaultlanguage;};ospodlanguage.loadlanguage=function(url){document.write('";break;case 5:str="";};return str;};function adfloatdiv(id){this.id=id;this.divname="";this.status=true;this.virgin=true;this.aditems=new array();this.currentad=null;this.htmldiv=null;this.floattype=1;this.divwidth=100;this.divheight=100;this.left=-1;this.top=-1;this.dx=2*(math.random()>0.5?1:-1);this.dy=1*(math.random()>0.5?1:-1);this.counter=0;this.timer=null;this.step=1;this.rate=10;this.delay=3000;this.setaditem=float_setaditem;this.adstart=adstart;this.showdiv=float_showdiv;this.floatdiv=float_floatdiv;this.pausemove=float_pausemove;this.continuemove=float_continuemove;this.divinvisible=float_invisible;this.getcurrentad=getrandomobj;this.initdiv=float_initdiv;this.popwindow=pop_window;};function adstart(){if(this.floattype<=10){this.showdiv();}else if(this.floattype>10){this.popwindow();}};function float_initdiv(){if(this.virgin==false)return;this.virgin=false;if(this.floattype==1||this.floattype==2||this.floattype==3||this.floattype==4){if(this.left<0){this.left=500+500*math.random()*(math.random()>0.5?1:-1);};if(this.top<0){this.top=300+300*math.random()*(math.random()>0.5?1:-1);}}else if(this.floattype==5||this.floattype==6){if(this.left==-1){this.left=(window.document.body.offsetwidth-this.divwidth)/2;}else if(this.left==-2){this.left=window.document.body.offsetwidth-this.divwidth;};var sheight=document.documentelement.clientheight||document.body.clientheight;if(this.top==-1){this.top=(sheight-this.divheight-this.dy-22)/2;}else if(this.top==-2){this.top=sheight-this.divheight-this.dy*2-22;}};if(this.left>(window.document.body.offsetwidth-this.divwidth)){this.left=(window.document.body.offsetwidth-this.divwidth)/window.screen.width*this.left;if(this.left>(window.document.body.offsetwidth-this.divwidth)){this.left=(window.document.body.offsetwidth-this.divwidth);}};if(this.top>(window.document.body.offsetheight-this.divheight-this.dy*2-22)){this.top=(window.document.body.offsetheight-this.divheight-this.dy*2-22)/window.screen.width*this.top;if(this.top>(window.document.body.offsetheight-this.divheight-this.dy*2-22)){this.top=(window.document.body.offsetheight-this.divheight-this.dy*2-22);}}};function float_floatdiv(){screenx=document.documentelement.scrollleft||document.body.scrollleft;screeny=document.documentelement.scrolltop||document.body.scrolltop;screenw=document.documentelement.clientwidth||document.body.clientwidth;screenw=screenw-this.divwidth;screenh=document.documentelement.clientheight||document.body.clientheight;screenh=screenh-this.divheight-this.dy*2;this.initdiv();var theleft,thetop;if(this.floattype==1){theleft=this.left+this.dx*this.step;thetop=this.top+this.dy*this.step;if((theleft>=screenw&&this.dx>0)||(theleft<=0&&this.dx<0))this.dx=-1*this.dx;if((thetop>=screenh&&this.dy>0)||(thetop<=0&&this.dy<0))this.dy=-1*this.dy;}else if(this.floattype==2){if(this.counter>=(200/this.rate)){this.dx=(this.dx>0?1:-1)*math.random()*5;this.dy=(this.dy>0?1:-1)*math.random()*5;this.counter=0;};this.counter+=1;theleft=this.left;thetop=this.top+this.dy*this.step;if((theleft>=screenw&&this.dx>0)||(theleft<=0&&this.dx<0))this.dx=-1*this.dx;if((thetop>=screenh&&this.dy>0)||(thetop<=0&&this.dy<0))this.dy=-1*this.dy;}else if(this.floattype==3){this.dx=0;theleft=this.left+this.dx*this.step;thetop=this.top+this.dy*this.step;if((theleft>=screenw)||(theleft<=0)){this.left=this.left+this.currentad.reswidth;};if((thetop>=screenh&&this.dy>0)||(thetop<=0&&this.dy<0))this.dy=-1*this.dy;}else if(this.floattype==4){this.dy=0;theleft=this.left+this.dx*this.step;thetop=this.top+this.dy*this.step;if((theleft<=0)){this.dx=-1*this.dx;};if((theleft>=screenw&&this.dx>0)){this.dx=-1*this.dx;}}else if(this.floattype==5){this.dx=0;this.dy=0;}else if(this.floattype=6){if(document.all){this.htmldiv.style.pixelleft=this.left;this.htmldiv.style.pixeltop=this.top;}else{this.htmldiv.style.left=this.left+"px";this.htmldiv.style.top=this.top+"px";};this.htmldiv.timer=settimeout(this.id+".divinvisible()",this.delay);return;};this.left=this.left+this.dx*this.step;this.top=this.top+this.dy*this.step;if(document.all){this.htmldiv.style.pixelleft=this.left+screenx;this.htmldiv.style.pixeltop=this.top+screeny;}else{this.htmldiv.style.left=this.left+screenx+"px";this.htmldiv.style.top=this.top+screeny+"px";};var delay=80/this.rate;cleartimeout(this.htmldiv.timer);this.htmldiv.timer=settimeout(this.id+".floatdiv()",delay);};function float_showdiv(){this.currentad=this.getcurrentad(this.aditems);this.divheight=this.currentad.resheight;this.divwidth=this.currentad.reswidth;if(this.currentad==null||this.currentad=="")return;this.divname="adf_"+this.id;this.divheight=this.divheight+22;var str="
";}else{str+=this.divwidth+"; height:"+this.divheight+"; left:"+this.left+"px;top:"+this.top+"px'>";};str+=this.currentad.gethtml();str+=""+i18n.adclose+" ";str+="
";document.write(str);this.htmldiv=$oe(this.divname).get(0);this.floatdiv();};function float_pausemove(){cleartimeout(this.htmldiv.timer);};function float_continuemove(){if(this.status)this.floatdiv();};function float_setaditem(itemobj){var thisline=this.aditems.length;this.aditems[thisline]=new array(itemobj,itemobj.power);};function float_invisible(){cleartimeout(this.htmldiv.timer);this.htmldiv.style.visibility="hidden";this.status=false;};function pop_window(){var popc=getcookie("_cmspopad");if(popc&&popc>0){return;};this.currentad=this.getcurrentad(this.aditems);this.divheight=this.currentad.resheight;this.divwidth=this.currentad.reswidth;if(this.currentad==null||this.currentad=="")return;var str="width="+this.divwidth+"px,height="+this.divheight+"px,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,";str+="top="+this.top+",left="+this.left;var url="http://"+window.location.host+_contextpath+"/cad?_cmsadc="+this.currentad.id;if(this.floattype==11){window.open(url,"",str);}else if(this.floattype==12){window.open(url,"",str);window.focus();}else if(this.floattype==13){if(browser.isns){window.open(url,"","modal=yes,"+str);}else{if(browser.isie7){str="dialogwidth:"+this.divwidth+"px;dialogheight:"+this.divheight+"px;dialogleft:"+this.left+"px;dialogtop:"+this.top+"px;";}else if(browser.isie){str="dialogwidth:"+(this.divwidth+6)+"px;dialogheight:"+(this.divheight+56)+"px;dialogleft:"+this.left+"px;dialogtop:"+this.top+"px;";}else{str="dialogwidth:"+this.divwidth+"px;dialogheight:"+this.divheight+"px;dialogleft:"+this.left+"px;dialogtop:"+this.top+"px;";};window.showmodaldialog(url,window,str);}};setcookie("_cmspopad",this.delay,this.delay);};function getrandomobj(array){var totalpower=0;var start=0;for(ii=0;iiarray[ii][2]&&theselected";var result=[];for(var i=0;i