var Fe=Fe||{version:"20080809",emptyFn:function(){}};if(Object.prototype.propertyIsEnumerable){Fe.propertyIsEnumerable=function(A,B){return Object.prototype.propertyIsEnumerable.call(A,B)}}else{Fe.propertyIsEnumerable=function(A,C){if(C in A){for(var B in A){if(B==C){return true}}}return false}}Fe.isArray=function(A){return(A&&typeof A.length=="number"&&typeof A.splice!="undefined"&&!Fe.propertyIsEnumerable(A,"length"))};Fe.each=function(E,A){if(typeof A!="function"){return E}if(E){if(E.length===undefined){for(var B in E){A.call(E[B],E[B],B)}}else{for(var C=0,D=E.length;C<D;C++){A.call(E[C],E[C],C)}}}return E};window.FeBrowser=Fe.Browser;Fe.isGecko=(navigator.userAgent.indexOf("Gecko")>-1&&navigator.userAgent.indexOf("KHTML")==-1&&/rv\:(\d+(\.\d+)?)/.test(navigator.userAgent))?RegExp.$1:0;Fe.isStrict=(document.compatMode=="CSS1Compat");Fe.isIE=/MSIE (\d+(\.\d+)?)/.test(navigator.userAgent)?RegExp.$1:0;Fe.isFirefox=/Firefox(\s|\/)(\d+(\.\d+)?)/.test(navigator.userAgent)?RegExp.$2:0;Fe.isSafari=(navigator.userAgent.indexOf("Safari")>-1&&/Version\/(\d+(\.\d+)?)/.test(navigator.userAgent))?RegExp.$1:0;Fe.isWebkit=(navigator.userAgent.indexOf("KHTML")>-1&&/AppleWebKit\/([^\s]*)/.test(navigator.userAgent))?RegExp.$1:0;Fe.isOpera=(window.opera&&/Opera(\s|\/)(\d+(\.\d+)?)/.test(navigator.userAgent))?RegExp.$2:0;Fe.G=function(){for(var A=[],B=arguments.length-1;B>-1;B--){var C=arguments[B];A[B]=null;if(typeof C=="object"&&C&&C.dom){A[B]=C.dom}else{if((typeof C=="object"&&C&&C.tagName)||C==window||C==document){A[B]=C}else{if(typeof C=="string"&&(C=document.getElementById(C))){A[B]=C}}}}return A.length<2?A[0]:A};Fe.rc=Fe.removeClassName;Fe.body=function(){var A=0,J=0,E=0,C=0,B=0,K=0;var F=window,D=document,I=D.documentElement;A=I.clientWidth||D.body.clientWidth;J=F.innerHeight||I.clientHeight||D.body.clientHeight;C=D.body.scrollTop||I.scrollTop;E=D.body.scrollLeft||I.scrollLeft;B=Math.max(D.body.scrollWidth,I.scrollWidth||0);K=Math.max(D.body.scrollHeight,I.scrollHeight||0,J);return{scrollTop:C,scrollLeft:E,documentWidth:B,documentHeight:K,viewWidth:A,viewHeight:J}};Fe.on=function(C,B,A){if(!(C=Fe.G(C))){return C}B=B.replace(/^on/,"").toLowerCase();if(C.attachEvent){C[B+A]=function(){A.call(C,window.event)};C.attachEvent("on"+B,C[B+A])}else{C.addEventListener(B,A,false)}return C};var SlideEffect=(function(){this.config={width:100,speed:10,auto:true};var L=10;var E=0;var H=0;var O=false;var Q=null;var P=null;var Y="right";var N,D,C,B,T;var Z,V,L,K;function U(a){var a=a||{};Z=a.width||config.width;V=a.speed||config.speed;if(a.auto===false){K=false}else{K=config.auto}H=D.offsetWidth;if(H>=N.offsetWidth){C.innerHTML=D.innerHTML}}function X(f,c,b,h,a,d){if(f!=""&&Fe.G(f)){N=Fe.G(f)}else{return}if(c!=""&&Fe.G(c)){D=Fe.G(c)}else{return}if(b!=""&&Fe.G(b)){C=Fe.G(b)}else{return}if(h!=""&&Fe.G(h)){B=Fe.G(h)}else{return}if(a!=""&&Fe.G(a)){T=Fe.G(a)}else{return}U(d);if(H>=N.offsetWidth){Fe.on(B,"mousedown",W);Fe.on(B,"mouseup",I);Fe.on(B,"mouseout",I);Fe.on(T,"mousedown",M);Fe.on(T,"mouseup",A);Fe.on(T,"mouseout",A);if(K){N.onmouseover=function(){clearInterval(P)};N.onmouseout=S;S()}}}function W(){clearInterval(Q);if(O){return}if(K){clearInterval(P)}O=true;Y="left";Q=setInterval(J,V)}function J(){if(N.scrollLeft<=0){N.scrollLeft=H}N.scrollLeft-=L}function I(){if(Y=="right"){return}clearInterval(Q);if(N.scrollLeft%Z!=0){E=-(N.scrollLeft%Z);F()}else{O=false}if(K){S()}}function M(){clearInterval(Q);if(O){return}if(K){clearInterval(P)}O=true;Y="right";R();Q=setInterval(R,V)}function R(){if(N.scrollLeft>=H){N.scrollLeft=0}N.scrollLeft+=L}function A(){if(Y=="left"){return}clearInterval(Q);if(N.scrollLeft%Z!=0){E=Z-N.scrollLeft%Z;F()}else{O=false}if(K){S()}}function S(){clearInterval(P);P=setInterval(function(){M();A()},3000)}function F(){if(E==0){O=false;return}var a,b=L;if(Math.abs(E)<Z/2){b=Math.round(Math.abs(E/L));if(b<1){b=1}}if(E<0){if(E<-b){E+=b;a=b}else{a=-E;E=0}N.scrollLeft-=a;setTimeout(F,V)}else{if(E>b){E-=b;a=b}else{a=E;E=0}N.scrollLeft+=a;setTimeout(F,V)}}return{play:X,autoPlay:S,moveUp:W,moveUpStop:I,moveUpStop:I,moveDown:M,moveDownStop:A,moveDownStop:A}})();
