var _ghlc=4;function _ghlp(a){return _ge("id_hlp_"+a)}function _ghlt(a){return _ge("id_hlt_"+a)}function _gishide(a){return a.style.display=="none"}function _gisshow(a){return!_gishide(a)}function _gshow(a){a.style.display="block"}function _ghide(a){a.style.display="none"}function _gbbc(a,b){a.style.borderBottomColor=b}function _gc(a,b){a.className=b}var hd_auto_timeMS=6e3,hd_auto_id=null;function NewsOnLoad(){sl_init();start_hd()}function GetScrollY(){var a=0;if(typeof window.pageYOffset=="number")a=window.pageYOffset;else if(document.body&&(document.body.scrollLeft||document.body.scrollTop))a=document.body.scrollTop;else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop))a=document.documentElement.scrollTop;return a}function SetAlertFormCookie(a){var b=a.toString().substring(0,1);_d.cookie="RTSCHALT="+b;return true}var bChPos=false,altfmId="NewsAlertDropDownButton";function ShowAlertForm(){var a=_ge(altfmId),b=a.parentNode;if(!bChPos){var c=b.parentNode;if(c!=null){c.removeChild(b);document.body.appendChild(b);bChPos=true}}a.parentNode.style.top=GetScrollY()+175+"px";var e=_ge("sw_page");a.parentNode.style.left=e.offsetLeft+200+"px";SetAlertFormCookie("1");if(a.className!="on"){a.className="on";var d=function(){_d.onclick=function(b){if(!b||b.button!=2){_d.onclick=null;return _CloseAltfm(a)}}};setTimeout(d,1)}}function StopBubClk(a){if(!a)var a=window.event;a.cancelBubble=true;a.stopPropagation&&a.stopPropagation();return true}function _CloseAltfm(a){a.className="";SetAlertFormCookie("0");return false}function CloseAltfm(){return _CloseAltfm(_ge(altfmId))}function makehp(){var f="FORM=NWBWHP",b;b=window.location.href;b=b.split("#")[0];var e;e=b.split("?");var g;g=e[0];var a;if(e.length>1){var c;c=b.split("?")[1].split("&");for(var d=0;d<c.length;d++)if(c[d].substr(0,5).toLowerCase()!="form=")if(a==null)a=c[d];else a+="&"+c[d]}if(a==null)a=f;else a+="&"+f;b=g+"?"+a;document.body.style.behavior="url(#default#homepage)";document.body.setHomePage(b)}function hdl_move(b){_gshow(_ghlp(b));_gc(_ghlt(b),"t c");for(var a=0;a<_ghlc;a++)if(b!=a){_ghide(_ghlp(a));_gc(_ghlt(a),"t")}}function _jump_hd(){for(var a=0;a<_ghlc;a++)if(_gisshow(_ghlp(a))){hdl_move((a+1)%_ghlc);break}stop_hd();start_hd()}function start_hd(){if(hd_auto_id==null)hd_auto_id=setTimeout("_jump_hd()",hd_auto_timeMS)}function stop_hd(){if(hd_auto_id!=null){clearTimeout(hd_auto_id);hd_auto_id=null}}var g_SL_UpdateTime=30,g_SL_TotalTime=400,g_SL_Timer=null;function sl_OnTimer(e,c,d,b){var h=new Date,f=h.getTime(),g=e.parentNode,a=b;if(f<c+g_SL_TotalTime)a=d+(b-d)*(f-c)/g_SL_TotalTime;e.style.left=a+"px";if(a==b){clearInterval(g_SL_Timer);g_SL_Timer=null;sl_setBtnStat(g.parentNode)}}function sl_setBtnStat(c){var d=sl_getChildByClass(c,"sl_frame"),a=sl_getChildByClass(d,"sl_slider");if(a==null)return;var b="sl_ctrl";if(a.offsetLeft!=0)b+=" hasL";if(a.clientWidth+a.offsetLeft>d.clientWidth)b+=" hasR";c.className=b}function sl_getChildByClass(a,c){if(a==null)return null;for(var b=0;b<a.childNodes.length;b++)if(a.childNodes[b].className==c)return a.childNodes[b];return null}function sl_Move(i,g,d){if(g_SL_Timer!=null)return;var f=sl_getChildByClass(i,"sl_frame"),b=sl_getChildByClass(f,"sl_slider");if(b==null)return;var a=f.clientWidth;if(d>0&&a>d)a=Math.floor(a/d)*d;var e=b.offsetLeft,c;if(g){if(b.clientWidth+b.offsetLeft<=f.clientWidth)return;c=e-a}else{if(e>=0)return;c=e+a;if(c>0)c=0}var j=new Date,h=function(){sl_OnTimer(b,j.getTime(),e,c)};g_SL_Timer=setInterval(h,g_SL_UpdateTime)}function sl_init(){if(window.sl_setBtnStat!=undefined){var a=_ge("sl_ctrl1");a!=null&&sl_setBtnStat(a);var b=_ge("sl_ctrl2");b!=null&&sl_setBtnStat(b)}}function pin_clk(g,f){for(var c=g.parentNode.parentNode,a=0,e=0,a=0;a<c.childNodes.length;a++){var d=c.childNodes[a];if(d.tagName!="LI")continue;if(e!=f)d.className="";else d.className="t_show";e++}var b=null;c=c.parentNode;for(a=0;a<c.childNodes.length;a++)if(c.childNodes[a].className=="sn_pinD"){b=c.childNodes[a];break}if(b==null)return false;b=b.childNodes[0];if(b.tagName!="DIV")return false;e=0;for(a=0;a<b.childNodes.length;a++){var d=b.childNodes[a];if(d.tagName!="DIV")continue;if(e!=f)d.className="sp";else d.className="sp t_show";e++}return false}function getCSS(a,b){return document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null)[b]:a.currentStyle?a.currentStyle[b]:a.style[b]}function setCSS(c,b,a){c.style[b]=a}function animate(e,c,a,b,d){a!=b&&implementsAniamte(e,c,a,b,20,Math.floor(d/20),0)}function implementsAniamte(g,d,c,f,e,b,a){var i=f-c,h=Math.ceil(c+Math.pow(1/b*a,2)*i);setCSS(g,d,h+"px");a++;a<=b&&setTimeout(function(){implementsAniamte(g,d,c,f,e,b,a)},e)}function CreateSlideController(c,e,b,d){var a={};a={width:0,controllBtns:b,currentPosition:0,body:e,size:0,duration:1e3,direction:1,autoRun:0,displayWindow:c,autoSwitchInterval:0,init:function(f,e){a.width=d.match(/\d+/);a.size=a.controllBtns.length-2;setCSS(a.controllBtns[a.controllBtns.length-1],"backgroundPosition","-75px 0px");for(var c=1;c<a.controllBtns.length-1;c++){a.controllBtns[c].setAttribute("targetIndex",c-1);a.controllBtns[c].onclick=function(){a.toIndex(this.getAttribute("targetIndex")-0)};a.controllBtns[c].onmouseover=function(){setCSS(this,"backgroundPosition","0 -25px")};a.controllBtns[c].onmouseout=function(){setCSS(this,"backgroundPosition",a.currentPosition==this.getAttribute("targetIndex")-0?"0 -25px":"-8px -25px")}}a.controllBtns[0].onclick=a.toLeft;a.controllBtns[a.controllBtns.length-1].onclick=a.toRight;if(f)a.duration=f;setCSS(b[1],"backgroundPosition","0px -25px");if(e){a.autoSwitchInterval=e;a.autoRun=window.setInterval(function(){a.autoSwitch()},a.autoSwitchInterval);a.displayWindow.onmouseover=function(){window.clearInterval(a.autoRun)};a.displayWindow.onmouseout=function(){a.autoRun=window.setInterval(function(){a.autoSwitch()},a.autoSwitchInterval)}}},autoSwitch:function(){var b=a.toIndex(a.currentPosition+a.direction);if(b==-1){a.direction=0-a.direction;a.toIndex(a.currentPosition+a.direction)}},toIndex:function(b){if(a.currentPosition==b||b<0||b>=a.size)return-1;setCSS(a.controllBtns[0],"backgroundPosition",b==0?"0px 0":"-50px 0");setCSS(a.controllBtns[a.controllBtns.length-1],"backgroundPosition",b==a.size-1?"-25px 0":"-75px 0");setCSS(a.controllBtns[a.currentPosition+1],"backgroundPosition","-8px -25px");a.animateMove(a.currentPosition,b,a.duration);a.currentPosition=b;setCSS(a.controllBtns[a.currentPosition+1],"backgroundPosition","0px -25px")},toLeft:function(){a.toIndex(a.currentPosition-1)},toRight:function(){a.toIndex(a.currentPosition+1)},animateMove:function(c,d,b){animate(a.body,"marginLeft",0-c*a.width,0-d*a.width,b)}};return a}
