_=document;_.id=function(A){return this.getElementById(A)};_.tags=function(A){return this.getElementsByTagName(A)};_.el=function(A){return this.createElement(A)};Array.prototype.indexOf=function(C){var B=-1;for(var A=0;A<this.length;A++){if(this[A]==C){B=A;break}}return B};if(window.Node&&window.XMLSerializer){Node.prototype.__defineGetter__("outerHTML",function(){return new XMLSerializer().serializeToString(this)});Node.prototype.__defineSetter__("outerHTML",function(B){var A=_.createRange();A.selectNode(this);var C=A.createContextualFragment(B);this.parentNode.replaceChild(C,this);return B})}String.prototype.trim=function(){var B=this.replace(/^\s+/,"");for(var A=B.length-1;A>=0;A--){if(/\S/.test(B.charAt(A))){B=B.substring(0,A+1);break}}return B};var fwAdd=false,fwEditor=false;var fw={isAD:false,startList:new Array(),onLoadList:new Array(),_ie:
/*@cc_on!@*/
false,__isstr:function(A){return typeof A=="string"},__unbind_test:function(node,type,listener){if(node.removeEventListener){node.removeEventListener(type,listener,false);
/*@cc_on node.detachEvent('on' + type, listener); @*/
}},init:function(){fw.browser();if(window.location.pathname.substr(0,3)=="/ad"){this.isAD=true}},addStart:function(A){this.startList[this.startList.length]=A},addonLoad:function(A){this.onLoadList[this.onLoadList.length]=A},submitclick:function(B,A){B.value=A;B.className+="onclick";var C=_.createElement("input");C.value=fw.scrollTop();C.name="scroll";C.type="hidden";B.parentNode.insertBefore(C,B);return true},error:function(A){if(window.location.protocol=="file:"){fw.cl("===== "+A.text+" =====");fw.cl("--параметры--");fw.dump(A.param);fw.cl("--объект--");fw.dump(A.obj)}},browser:function(){this.isOpera=this.isSafari=this.isFF=this.isIE=this.isKhtml=this.isAIR=this.isMoz=false;var B=navigator.userAgent;var D=navigator.appVersion;var A=parseFloat(D);if(B.indexOf("Opera")>=0){this.isOpera=A}var C=Math.max(D.indexOf("WebKit"),D.indexOf("Safari"),0);if(C){this.isSafari=parseFloat(D.split("Version/")[1])||(parseFloat(D.substr(C+7))>419.3)?3:2}if(B.indexOf("AdobeAIR")>=0){this.isAIR=1}if(D.indexOf("Konqueror")>=0||this.isSafari){this.isKhtml=A}if(B.indexOf("Gecko")>=0&&!this.isKhtml){this.isMoz=A}if(this.isMoz){this.isFF=parseFloat(B.split("Firefox/")[1])||parseFloat(B.split("Shiretoko/")[1])||undefined}if(_.all&&!this.isOpera){this.isIE=parseFloat(D.split("MSIE ")[1])||undefined}},parseInt:function(A){return parseInt(A)+""=="NaN"?0:parseInt(A)},getParam:function(D){var I,H,G,C,E,F,B,A=new Array();I=D.split(";");for(E=0;E<I.length;E++){if(I[E].indexOf(":")>-1){H=I[E].split(":");if(H[1].indexOf(",")>-1){G=H[1].split(",")}else{G=[H[1]]}F=H[0].trim();A[F]=new Array();for(C=0;C<G.length;C++){B=G[C].trim();if(B){A[F][A[F].length]=B}}}}return A},mouse:function(B){if(!B){B=window.event}var C={x:0,y:0};if(B.pageX){C.x=B.pageX;C.y=B.pageY}else{if(B.clientX){var A=(_.compatMode&&_.compatMode=="CSS1Compat")?_.documentElement:_.body;C.x=B.clientX+A.scrollLeft-A.clientLeft;C.y=B.clientY+A.scrollTop-A.clientTop}}return C},scrollTop:function(){return self.pageYOffset||(_.documentElement&&_.documentElement.scrollTop)||(_.body&&_.body.scrollTop)},scrollLeft:function(){return self.pageXOffset||(_.documentElement&&_.documentElement.scrollLeft)||(_.body&&_.body.scrollLeft)},docHeight:function(){return Math.max(_.compatMode!="CSS1Compat"?_.body.scrollHeight:_.documentElement.scrollHeight,fw.viewDocHeight())},docWidth:function(){return Math.max(_.compatMode!="CSS1Compat"?_.body.scrollWidth:_.documentElement.scrollWidth,fw.viewDocWidth())},viewDocHeight:function(){return((_.compatMode||fw.isIE)&&!fw.isOpera)?(_.compatMode=="CSS1Compat")?_.documentElement.clientHeight:_.body.clientHeight:(_.parentWindow||_.defaultView).innerHeight},viewDocWidth:function(){return((_.compatMode||fw.isIE)&&!fw.isOpera)?(_.compatMode=="CSS1Compat")?_.documentElement.clientWidth:_.body.clientWidth:(_.parentWindow||_.defaultView).innerWidth},attr:function(B,A){return B.attributes.getNamedItem(A)?B.attributes.getNamedItem(A).value:null},style:function(G,F){if(typeof F=="string"){var A=false;if(F=="opacity"){A=100;if(G.style.opacity){A=G.style.opacity*100}if(G.style.MozOpacity){A=G.style.MozOpacity*100}if(G.style.KhtmlOpacity){A=G.style.KhtmlOpacity*100}if(G.style.filter){A=G.style.filter.match(/opacity=(\d*)/)[1]}}else{var E=F;if(F=="backgroundPositionLeft"||F=="backgroundPositionTop"){if(fw.isIE){F=(F=="backgroundPositionLeft"?"backgroundPositionX":"backgroundPositionY")}else{F="backgroundPosition"}}if(G&&G.currentStyle){A=G.currentStyle[F];if(A=="auto"&&G[F]){A=G[F]}}else{if(_.defaultView&&_.defaultView.getComputedStyle){if(F.match(/[A-Z]/)){F=F.replace(/([A-Z])/g,"-$1").toLowerCase()}A=_.defaultView.getComputedStyle(G,"").getPropertyValue(F)}else{if(G[F]){A=G[F]}}}if(E=="backgroundPositionLeft"||E=="backgroundPositionTop"&&A){if(!fw.isIE){A=(E=="backgroundPositionLeft"?A.split(" ")[0]:A.split(" ")[1])}}}return A}else{if(typeof F=="object"){for(var C in F){if(C=="opacity"){if(typeof G.style.opacity!="undefined"){G.style.opacity=(F[C]/100)}if(typeof G.style.MozOpacity!="undefined"){G.style.MozOpacity=(F[C]/100)}if(typeof G.style.KhtmlOpacity!="undefined"){G.style.KhtmlOpacity=(F[C]/100)}if(typeof G.style.filter!="undefined"){G.style.filter="alpha(opacity="+F[C]+")"}}else{if(C=="backgroundPositionLeft"||C=="backgroundPositionTop"){if(fw.isIE){G.style[(C=="backgroundPositionLeft"?"backgroundPositionX":"backgroundPositionY")]=F[C]}else{var B=fw.style(G,"backgroundPosition").split(" ");B[C=="backgroundPositionLeft"?0:1]=F[C];G.style.backgroundPosition=B.join(" ")}}else{try{G.style[C]=F[C]}catch(D){fw.error({obj:G,param:D,text:"установка стиля: "+C+" = "+F[C]})}}}}}}},anim:{_d:function(D){if(!D){return}var C={};var B,F,A=0;D.animParam.counter--;for(var E in D.animParam.properties){if(D.animParam.counter){B=D.animParam.properties[E].step;D.animParam.properties[E].cur+=B;C[E]=parseInt(D.animParam.properties[E].cur)+D.animParam.properties[E].unit}else{C[E]=D.animParam.properties[E].end+D.animParam.properties[E].unit}}fw.style(D,C);if(D.animParam.counter){D.anim=setTimeout(function(){fw.anim._d(D)},D.animParam.rate)}else{if(typeof D.animParam.onEnd!="undefined"){D.anim=false;D.animParam.onEnd()}}},p:function(A){obj=A.node;delete (A.node);A.duration=typeof A.duration=="undefined"?1000:A.duration;A.rate=typeof A.rate=="undefined"?50:A.rate;A.easing=typeof A.easing=="undefined"?1:A.easing;A.loop=Math.ceil(A.duration/A.rate);A.counter=A.loop;for(var B in A.properties){if(typeof A.properties[B]!="object"){A.properties[B]={start:parseInt(fw.style(obj,B)),end:A.properties[B],unit:"px"};if(B=="opacity"){A.properties[B].unit=""}}else{if(!A.properties[B].unit){A.properties[B].unit="px";if(B=="opacity"){A.properties[B].unit=""}}}A.properties[B].step=(parseInt(A.properties[B].end)-parseInt(A.properties[B].start))/A.loop;A.properties[B].cur=parseInt(A.properties[B].start);if(isNaN(A.properties[B].step)){fw.error({obj:A.node,param:A.properties[B],text:"анимация NaN для свойства: "+B})}}obj.animParam=A;if(obj.anim){fw.anim.s(obj)}fw.anim._d(obj)},s:function(A){clearTimeout(A.anim);A.anim=false}},bind:function(C,A,B){if(window.addEventListener){C.addEventListener(A,function(D){B(this,D)},false)}else{if(window.attachEvent){C.attachEvent("on"+A,function(D){B(D.srcElement,D)})}else{C.onmouseover=function(D){B(this,D)}}}},htmlToStr:function(A){A=A.replace(/<(\w\w*)(\s?[^>]*)>([^<]*)?(<\/\w\w*>)?/gi,'<span style="color:#0A8DAC">&lt;$1</span><span style="color:#B73D00">$2</span><span style="color:#0A8DAC">&gt;</span><span class="taginner">$3</span><span style="color:#0A8DAC">$4</span>');A=A.replace(/\r/gi,"");A=A.replace(/\n/gi,"<br>");return A},cl:function(A){if(typeof this.consoleDiv=="undefined"){this.consoleDiv=_.el("div");_.body.appendChild(this.consoleDiv)}this.consoleDiv.innerHTML+="<div>"+A+"</div>"},coords:function(D){var C=D;var A=h=l=t=0;try{A=C.offsetWidth;h=C.offsetHeight;while(C){l+=C.offsetLeft;t+=C.offsetTop;C=C.offsetParent}}catch(B){}return{x:l,y:t,w:A,h:h}},dump:function(E,A){var D=[];A=typeof A=="undefined"?"":A;for(var B in E){D.push("<li>"+A+"."+B+"=");try{D.push(E[B])}catch(C){D.push('<span style="color: red;">'+C+"</span>")}D.push("</li>")}this.cl(D.join(""))},gallery:{resrc:/(.+)\/prev\d+\/(.+)/g,divPrev:null,preloadImg:new Image,preloadImg2:new Image,imgLoaded:new Array(),padding:0,border:10,color:"#fff",init:function(B){if(_.body.innerHTML.indexOf("/prev")==-1){return}if(B){this.preloadImg.src=B.preload?B.preload:"/image_cms/preload_big.gif";this.padding=B.padding?B.padding:this.padding;this.border=B.border?B.border:this.border;this.color=B.color?B.color:this.color}else{this.preloadImg.src="/image_cms/preload_big.gif"}this.preloadImg2.src="/image_cms/preload_small.gif";var E="";var D=_.id("content");var A=D.getElementsByTagName("img");for(var C=0;C<A.length;C++){if(!A[C].src.match(this.resrc)){continue}fw.bind(A[C],"load",function(G,F){fw.bind(G,"mouseover",function(I,H){fw.gallery.imageSet(I)})});E=A[C].src;A[C].src="";A[C].src=E}},imageSet:function(B){var C=_.el("div");C.imgsrc=B.src.replace(this.resrc,"$1/$2");C.coord=fw.coords(B);C.coord.mw=0;C.coord.mh=0;C.coord.mx=C.coord.x;C.coord.my=C.coord.y;C.coord.w=fw.parseInt(B.width);C.coord.h=fw.parseInt(B.height);C.coord.x=C.coord.x-this.border-this.padding+(fw.parseInt(fw.style(B,"borderLeftWidth"))+fw.parseInt(fw.style(B,"paddingLeft")));C.coord.y=C.coord.y-this.border-this.padding+(fw.parseInt(fw.style(B,"borderTopWidth"))+fw.parseInt(fw.style(B,"paddingTop")));fw.style(C,{position:"absolute",padding:this.padding+"px",backgroundColor:"#000000",borderWidth:this.border+"px",borderColor:this.color,borderStyle:"solid"});fw.style(C,{opacity:0,width:C.coord.w+"px",height:C.coord.h+"px",top:C.coord.y+"px",left:C.coord.x+"px"});_.body.appendChild(C);diva=_.el("a");if(B.parentNode.nodeName.toLowerCase()=="a"){diva.href=B.parentNode.href;diva.target=B.parentNode.target}else{diva.href=C.imgsrc;diva.target="_blank"}fw.style(diva,{display:"block"});C.appendChild(diva);var A=this.imgLoaded.indexOf(C.imgsrc);divimg=_.el("img");divimg.src=A>-1?C.imgsrc:B.src;fw.style(divimg,{display:"block",opacity:A>-1?50:0,borderWidth:"0px",borderStyle:"none",width:"100%",height:"100%"});diva.appendChild(divimg);C.loadImg=new Image;fw.bind(C.loadImg,"load",function(E,D){fw.gallery.onLoadImage(C)});if(this.divPrev){this.onMouseOut(this.divPrev)}this.divPrev=C;fw.anim.p({node:C,duration:500,rate:20,properties:{opacity:80},onEnd:function(){if(fw.gallery.imgLoaded.indexOf(C.imgsrc)==-1){var D=false;if(fw.gallery.preloadImg.width<C.coord.w&&fw.gallery.preloadImg.height<C.coord.h){D=fw.gallery.preloadImg}else{if(fw.gallery.preloadImg2.width<C.coord.w&&fw.gallery.preloadImg2.height<C.coord.h){D=fw.gallery.preloadImg2}}if(D){var E=_.el("img");E.src=D.src;fw.style(E,{opacity:100,zIndex:"-1",position:"absolute",borderWidth:"0px",borderStyle:"none",display:"block",top:parseInt(fw.gallery.padding+(C.coord.h-D.height)/2)+"px",left:parseInt(fw.gallery.padding+(C.coord.w-D.width)/2)+"px"});C.insertBefore(E,C.firstChild)}if(fw.isOpera||!D){fw.style(divimg,{cursor:"wait"})}}C.loadImg.src=C.imgsrc}});fw.bind(divimg,"mouseout",function(E,D){var F=E.parentNode.parentNode;fw.gallery.onMouseOut(F)})},onMouseOut:function(A){fw.anim.s(A);fw.anim.p({node:A,duration:300,rate:30,properties:{left:A.coord.x,top:A.coord.y,width:A.coord.w,height:A.coord.h,opacity:0},onEnd:function(){if(fw.gallery.divPrev==A){fw.gallery.divPrev=null}A.parentNode.removeChild(A)}})},onLoadImage:function(B){this.imgLoaded.push(B.loadImg.src);if(B.childNodes.length==2){B.removeChild(B.firstChild)}B.coord.mw=B.loadImg.width;B.coord.mh=B.loadImg.height;var A=B.firstChild.firstChild;A.src=B.imgsrc;fw.anim.p({node:A,duration:100,rate:20,properties:{opacity:100},onEnd:function(){fw.gallery.zommDo(B)}})},zommDo:function(B){var H=B.coord.mw;var D=B.coord.mh;var A=fw.viewDocWidth()-10-(this.border+this.padding)*2;var G=fw.viewDocHeight()-10-(this.border+this.padding)*2;var F=H/A;var E=D/G;var J=1;if(F>1||E>1){J=F>E?F:E}H=parseInt(H/J);D=parseInt(D/J);var C=(fw.viewDocWidth()-H)/2+fw.scrollLeft()-5;var I=(fw.viewDocHeight()-D)/2+fw.scrollTop()-5;if(!(I<B.coord.y&&I+D>B.coord.y+B.coord.h)){if(I>B.coord.y){I=B.coord.y}else{I=B.coord.y+B.coord.h-D}}if(!(C<B.coord.x&&C+H>B.coord.x+B.coord.w)){if(C>B.coord.x){C=B.coord.x}else{C=B.coord.x+B.coord.w-H}}fw.style(B,{zIndex:"1000"});fw.anim.p({node:B,duration:500,rate:25,properties:{left:{start:B.coord.x,end:C,unit:"px"},top:{start:B.coord.y,end:I,unit:"px"},width:{start:B.coord.w,end:H,unit:"px"},height:{start:B.coord.h,end:D,unit:"px"},opacity:100}})}},news:{news:{},firstNews:{},scrollNews:function(){this.news.scrollTop+=1;if(this.news.scrollTop<this.firstNews.scrollHeight){}else{this.news.appendChild(this.firstNews);this.news.scrollTop=0;this.firstNews=this.news.getElementsByTagName("div")[0]}fw.news.news.anim=setTimeout("fw.news.scrollNews()",50)},init:function(B){this.news=_.id(B.id);if(!this.news){return}fw.style(this.news,{overflow:"hidden"});var A=this.news.getElementsByTagName("a");var C=A.length;for(i=0;i<C;i++){fw.bind(A[i],"mouseover",function(E,D){clearTimeout(fw.news.news.anim)});fw.bind(A[i],"mouseout",function(E,D){fw.news.scrollNews()})}this.firstNews=this.news.getElementsByTagName("div")[0];fw.news.scrollNews()}},tabControl:{base:{},select:"0",isTextControl:false,getSelect:function(A){return A.id.substr(2)},isSelect:function(A){return fw.tabControl.getSelect(A)==fw.tabControl.select},openTab:function(A){var B=_.id("tb"+A);if(B){B.className="tbso";if("tb"+fw.tabControl.select!=B.id){_.id("tb"+fw.tabControl.select).className="tb"}fw.style(_.id("tabContent"+fw.tabControl.select),{display:"none"});fw.tabControl.select=fw.tabControl.getSelect(B);fw.style(_.id("tabContent"+fw.tabControl.select),{display:""})}},init:function(D){this.base=_.id(D.id);if(!this.base){return}this.isTextControl=(D.mode=="image"?false:true);at=null;var G,F,E,C;var A=fw.tabControl;C=0;var B=new Array();G=this.base.firstChild;while(G){if(G.nodeType==1){G.id="tabContent"+C;B[C]=G;if(C){fw.style(G,{display:"none"})}if(G.className=="active"){this.select=""+C;G.className=""}C++}G=G.nextSibling}if(this.select!="0"){fw.style(_.id("tabContent0"),{display:"none"});fw.style(_.id("tabContent"+fw.tabControl.select),{display:""})}G=_.el("div");G.id="tabPanel";this.base.insertBefore(G,this.base.firstChild);for(E=0;E<B.length;E++){G.appendChild(B[E])}tabButton=_.el("div");tabButton.id="tabButton";this.base.insertBefore(tabButton,this.base.firstChild);for(E=0;E<B.length;E++){F=_.el("div");if(this.isTextControl){F.innerHTML=B[E].title}else{F.innerHTML='<input type="button" value=" " class="l" /><input class="t" type="submit" value="'+B[E].title+'" /><input type="button" value=" " class="r" />'}B[E].title="";F.id="tb"+E;F.className=A.isSelect(F)?"tbs":"tb";tabButton.appendChild(F);fw.bind(F,"mouseover",function(I,H){while(!I.id){I=I.parentNode}I.className=A.isSelect(I)?"tbso":"tbo"});fw.bind(F,"mouseout",function(I,H){while(!I.id){I=I.parentNode}I.className=A.isSelect(I)?"tbs":"tb"});fw.bind(F,"click",function(J,I){if(!fw.tabControl.isTextControl){while(!J.id){J=J.parentNode}var H=J.firstChild;while(H){H.blur();H=H.nextSibling}if(A.isSelect(J)){return}}fw.tabControl.openTab(J.id.substr(2))})}}},stripyTable:{init:function(){var C=_.tags("table");for(var B=0;B<C.length;B++){if(C[B].className.toLowerCase().indexOf("stripy")>-1){var D=C[B].getElementsByTagName("tr");for(var A=0;A<D.length;A++){D[A].className+=((A%2)==0?"oddRow":"evenRow")}}}}},openingList:{init:function(A){this.li=A.li;var C=_.tags(A.node);for(var B=0;B<C.length;B++){if(C[B].className.indexOf(A.className)>-1){this.make(C[B])}}},make:function(G){var A=new Array();var F=new Array();var E=G.firstChild;while(E){if(E.nodeType==1){if(E.nodeName.toLowerCase()==this.li){A.push(E)}else{if(A.length>F.length){F[A.length-1]=new Array()}if(F.length){F[F.length-1][F[F.length-1].length]=E}}}E=E.nextSibling}if(A.length){fw.fwLastOpeningListObj=null}for(var C=0;C<A.length;C++){var B=_.createElement("div");fw.style(B,{display:"none"});A[C].parentNode.insertBefore(B,A[C].nextSibling);for(var D=0;D<F[C].length;D++){B.appendChild(F[C][D])}fw.style(A[C],{cursor:"pointer"});fw.bind(A[C],"mouseover",function(I,H){I.className="openingListOver"});fw.bind(A[C],"mouseout",function(I,H){I.className=""});fw.bind(A[C],"click",function(I,H){if(fw.fwLastOpeningListObj&&fw.fwLastOpeningListObj!=I.nextSibling){fw.fwLastOpeningListObj.style.display="none"}I.nextSibling.style.display=I.nextSibling.style.display=="none"?"":"none";fw.fwLastOpeningListObj=I.nextSibling})}}},textGradient:{init:function(D,C,J){if(fw.isAD){return}var N,M,H,E,G,S,L="",Q,B=[[],[]],I,K,A;var F=function(V){var T=[0,0,0];if(typeof V=="string"){for(var U=0;U<3;U++){T[U]=parseInt(V.substr(U*2,2),16)}return T}return null};B[0]=F(J[0]);B[1]=F(J[1]);N=_.tags(D);for(var R=0;R<N.length;R++){if(C){if(N[R].className.indexOf(C)==-1){continue}}M=N[R].innerText?N[R].innerText:N[R].textContent;E=this.getList(N[R]);H=0;for(var P=0;P<E.length;P++){G=E[P][0];if(G.nodeType!=3){continue}L="";for(var O=0;O<G.nodeValue.length;O++){Q=E[P][0].nodeValue.charAt(O);if(Q==" "){L+=" ";continue}I=parseInt(B[0][0]+(B[1][0]-B[0][0])*(H/M.length));K=parseInt(B[0][1]+(B[1][1]-B[0][1])*(H/M.length));A=parseInt(B[0][2]+(B[1][2]-B[0][2])*(H/M.length));L+='<span style="color: RGB('+I+","+K+","+A+')">'+Q+"</span>";H++}S=_.el("span");S.innerHTML=L;G.parentNode.replaceChild(S,G)}}},getList:function(A,E,F){var D,C;if(typeof E=="undefined"){E=new Array()}if(typeof F=="undefined"){F=0}F++;for(var B=0;B<A.childNodes.length;B++){D=A.childNodes[B];C=E.length;E[C]=new Array();E[C][0]=D;E[C][1]=F;this.getList(D,E,F)}return E}},scaleimage:{direct:false,duration:200,init:function(B){var D=null;if(B==undefined){D=_.id("content");if(!D){return}}else{D=_;if(B.baseid!=undefined){D=_.id(B.baseid)}if(B.direction==undefined){B.direction="m"}if(B.duration!=undefined){this.duration=B.duration}this.direct=B.direction}this.rate=parseInt(this.duration/5);if(this.rate<10){this.rate=10}if(this.rate>50){this.rate=50}var A=D.getElementsByTagName("img");for(var C=0;C<A.length;C++){A[C].className.split(" ");if(B!=undefined&&A[C].className.split(" ")[0]!=B.cname){continue}if(A[C].src.match(fw.gallery.resrc)){continue}fw.bind(A[C],"load",function(L,N){var G=new Image;G.src=L.src;var E=parseInt(G.width);var O=parseInt(G.height);var M=parseInt(L.width);var H=parseInt(L.height);if(E>M||O>H){var F=_.el("div");if(L.parentNode.tagName.toLowerCase()=="a"){L.parentNode.parentNode.insertBefore(F,L.parentNode);F.appendChild(L.parentNode)}else{L.parentNode.insertBefore(F,L);F.appendChild(L)}var J=fw.style(L,"float");if(J=="none"&&fw.style(L.parentNode,"textAlign")=="center"){fw.style(F,{margin:"auto"})}fw.style(F,{position:"relative",display:"block",zIndex:0,cssFloat:J,left:"0px",top:"0px",width:fw.style(L,"width"),height:fw.style(L,"height")});fw.style(L,{position:"relative",display:"block",cssFloat:"none",left:"0px",top:"0px"});var I="m";if(fw.scaleimage.direct){I=fw.scaleimage.direct}else{switch(J){case"right":I="l";break;case"left":I="r";break}}var K=L.className.split(" ");if(K.length==2){I=K[1]}L.p={width:[M,E-M,E],height:[H,O-H,O],direct:I,div:F};fw.bind(L,"mouseover",function(R,Q){fw.style(R.p.div,{zIndex:1});fw.style(R,{position:"absolute"});var P={width:R.p.width[2],height:R.p.height[2]};switch(R.p.direct){case"t":P.left=-R.p.width[1]/2;P.top=-R.p.height[1];break;case"tr":P.left=0;P.top=-R.p.height[1];break;case"r":P.left=0;P.top=-R.p.height[1]/2;break;case"br":P.left=0;P.top=0;break;case"b":P.left=-R.p.width[1]/2;P.top=0;break;case"bl":P.left=-R.p.width[1];P.top=0;break;case"l":P.left=-R.p.width[1];P.top=-R.p.height[1]/2;break;case"tl":P.left=-R.p.width[1];P.top=-R.p.height[1];break;case"m":P.left=-R.p.width[1]/2;P.top=-R.p.height[1]/2;break}fw.anim.p({node:R,duration:fw.scaleimage.duration,rate:fw.scaleimage.rate,properties:P})});fw.bind(L,"mouseout",function(S,R){fw.style(S.p.div,{zIndex:0});fw.anim.s(S);var P=parseInt(fw.style(S,"width"));var Q=parseInt(fw.style(S,"height"));var T=fw.scaleimage.duration;if(S.p.width[0]<P){T=parseInt(T*(P-S.p.width[0])/S.p.width[1])}else{if(S.p.height[0]<Q){T=parseInt(T*(Q-S.p.height[0])/S.p.height[1])}}fw.anim.p({node:S,duration:T,rate:fw.scaleimage.rate,properties:{width:S.p.width[0],height:S.p.height[0],left:0,top:0},onEnd:function(){fw.style(S,{position:"relative"})}})})}});A[C].src=A[C].src}}},slideshow:{loadImg:new Image,loadImgTimer:0,path:"",ext:"",count:0,delay:0,duration:0,showList:false,isWork:false,img:null,imgBack:null,init:function(A){this.img=_.id(A.id);if(!this.img){return}if(this.img.tagName.toLowerCase()!="img"){return}var B;if(A.list){B=this.img.src.match("^(.+/).+.[jpgifn]{3}$");if(!B){return}this.showList=A.list.split(" ")}else{if(A.count){B=this.img.src.match("^(.+)[0-9]{1,2}.([jpgifn]{3})$");if(!B){return}this.imgBack=_.createElement("img");fw.style(this.imgBack,{position:"absolute"});this.imgBack.src=this.img.src;this.imgBack.width=this.img.width;this.imgBack.height=this.img.height;var C=_.createElement("div");fw.style(C,{position:"relative"});this.img.parentNode.replaceChild(C,this.img);C.appendChild(this.imgBack);this.img=_.createElement("img");fw.style(this.img,{position:"relative"});this.img.src=this.imgBack.src;this.img.width=this.imgBack.width;this.img.height=this.imgBack.height;C.appendChild(this.img);this.ext=B[2];this.count=parseInt(A.count)}else{return}}this.path=B[1];this.duration=parseInt(A.duration);this.delay=parseInt(A.delay);this.isWork=true;setTimeout("fw.slideshow.nextSlide()",this.delay);fw.bind(this.loadImg,"load",function(F,E){var D=fw.slideshow;clearTimeout(D.loadImgTimer);if(D.showList){fw.anim.p({node:D.img,duration:D.duration,rate:20,properties:{opacity:{start:100,end:0}},onEnd:function(){if(D.isWork){D.img.src=D.loadImg.src;D.img.height=D.loadImg.height;D.img.width=D.loadImg.width;fw.anim.p({node:D.img,duration:D.duration,rate:20,properties:{opacity:{start:0,end:100}},onEnd:function(){if(D.isWork){setTimeout("fw.slideshow.nextSlide()",D.delay)}}})}}})}else{D.imgBack.src=D.img.src;fw.anim.p({node:D.img,duration:500,rate:100,properties:{opacity:{start:100,end:0}},onEnd:function(){D.img.src=D.loadImg.src;fw.anim.p({node:D.img,duration:D.duration,rate:20,properties:{opacity:{start:0,end:100}},onEnd:function(){if(D.isWork){setTimeout("fw.slideshow.nextSlide()",D.delay)}}})}})}})},nextSlide:function(){if(!this.isWork){return}if(this.showList){if(this.count+1<this.showList.length){this.count++}else{this.count=0}this.loadImg.src=this.path+this.showList[this.count]}else{var A=this.loadImg.src;while(A==this.loadImg.src){A=this.path+Math.ceil(Math.random()*this.count)+"."+this.ext}this.loadImg.src=A}this.loadImgTimer=setTimeout("fw.slideshow.nextSlide()",this.delay*3)},stop:function(){clearTimeout(this.loadImgTimer);this.isWork=false},reloadFade:function(A){this.isWork=true;this.count=0;this.showList=A.split(" ");setTimeout("fw.slideshow.nextSlide()",this.delay)}}};DOMLoaded=function(func){var already=false;ready=function(){if(!already){func();already=true}if(fw.onLoadList.length){for(var i=0;i<fw.onLoadList.length;i++){setTimeout(fw.onLoadList[i],1)}}};if(_.addEventListener){_.addEventListener("DOMContentLoaded",ready,false)}if(_.readyState){timer=setInterval(function(){if(/loaded|complete/.test(_.readyState)){clearInterval(timer);ready()}},1);
/*@cc_on @*/
/*@if (@_win32)
	_.write("<script id=__ie_onload defer src=javascript:void(0)>");
	_.write("<\/script>");
	var script = _.id("__ie_onload");
	script.onreadystatechange = function() {
	    if (this.readyState == "complete") {
	        ready();
	    }
	};
	/*@end @*/
}window.onload=function(){ready()}};new DOMLoaded(function(){fw.init();if(fwAdd){fwAdd.init()}if(fw.startList.length){for(var B=0;B<fw.startList.length;B++){setTimeout(fw.startList[B],1)}}if(!fw.isAD){fw.stripyTable.init();var A=_.id("scroll");if(A){parent.scroll(0,A.value)}}var C=_.id("forum");if(C){C.innerHTML=C.innerHTML.replace(/(([\w\.]+)?[\w\-]+\.[a-z]{2,3}\/[\w\.\/\-_%&]+)/g,'<a href="http://$1">$1</a>')}});