var ygPos=new function(){this.getPos=function(D){var G=[D.offsetLeft,D.offsetTop];
var F=D.offsetParent;
var E={x:null,y:null};
if(F!=D){while(F){
	switch(C){
		case"ie":
			if(A(F,"position")=="relative"&&A(D,"width")=="auto"&&(A(D,"position")=="static")){
				return[D.offsetLeft,D.offsetTop];
			}else{
				if(A(F,"width")!="auto"||A(D.parentNode,"position")!="static"){
					E.x=parseInt(A(F,"borderLeftWidth"));
					E.y=parseInt(A(F,"borderTopWidth"));
					if(!isNaN(E.x)){G[0]+=E.x}if(!isNaN(E.y)){G[1]+=E.y}
				}
			}
		break;
		case"gecko":
			if(A(F,"position")=="relative"){E.x=parseInt(A(F,"border-left-width"));
			E.y=parseInt(A(F,"border-top-width"));
			if(!isNaN(E.x)){G[0]+=E.x}
			if(!isNaN(E.y)){G[1]+=E.y}}
		break
	}
	G[0]+=F.offsetLeft;
	G[1]+=F.offsetTop;
	F=F.offsetParent
	}
}
if(C=="ie"&&A(D,"width")!="auto"&&A(D.offsetParent,"width")=="auto"&&A(D.offsetParent,"position")=="relative"){
	F=D.parentNode;
	while(F.tagName!="HTML"){E.x=parseInt(A(F,"marginLeft"));
	E.y=parseInt(A(F,"paddingLeft"));
	if(!isNaN(E.x)){G[0]-=E.x}if(!isNaN(E.y)){G[0]-=E.y}F=F.parentNode}}return G};
	this.getX=function(D){return this.getPos(D)[0]};
	this.getY=function(D){return this.getPos(D)[1]};
	this.setPos=function(E,D){var H=[0,0];
	var I={x:0,y:0};
	var G=A(E,"position");
	if(G=="static"){E.style.position="relative";
	G="relative"}if(E.offsetWidth){if(G=="relative"){H=this.getPos(E);
var F={x:A(E,"left"),y:A(E,"top")};
I.x=(F.x&&F.x.indexOf("px")!=-1)?parseInt(F.x):0;
I.y=(F.y&&F.y.indexOf("px")!=-1)?parseInt(F.y):0}else{H=this.getPos(E.offsetParent);
var F={x:A(E,"margin-left"),y:A(E,"margin-top")};
I.x=(F.x&&F.x.indexOf("px")!=-1)?0-parseInt(F.x):0;
I.y=(F.y&&F.y.indexOf("px")!=-1)?0-parseInt(F.y):0}}if(C=="safari"){if(E.offsetParent&&E.offsetParent.tagName=="BODY"){if(A(E,"position")=="relative"){I.x-=document.body.offsetLeft;
I.y-=document.body.offsetTop}else{if(A(E,"position")=="absolute"||A(E,"position")=="fixed"){I.x+=document.body.offsetLeft;
I.y+=document.body.offsetTop}}}}if(D[0]!==null){E.style.left=D[0]-H[0]+I.x+"px"}if(D[1]!==null){E.style.top=D[1]-H[1]+I.y+"px"}};
this.setX=function(E,D){this.setPos(E,[D,null])};
this.setY=function(D,E){this.setPos(D,[null,E])};
this.getRegion=function(D){return new yui.Region.getRegion(D)};
var A=function(D,F){var E=document.defaultView;
if(D.style[F]){return D.style[F]}else{if(D.currentStyle){if(F.indexOf("-")!=-1){F=F.split("-");
F[1]=F[1].toUpperCase().charAt(0)+F[1].substr(1);
F=F.join("")}if(D.currentStyle[F]){return D.currentStyle[F]}}else{if(E&&E.getComputedStyle(D,"")&&E.getComputedStyle(D,"").getPropertyValue(F)){return E.getComputedStyle(D,"").getPropertyValue(F)}}}return null};
var B=function(){var D=navigator.userAgent.toLowerCase();
if(D.indexOf("opera")!=-1){return"opera"}else{if(D.indexOf("msie")!=-1){return"ie"}else{if(D.indexOf("safari")!=-1){return"safari"}else{if(D.indexOf("gecko")!=-1){return"gecko"}else{return false}}}}};
var C=B()};
yui=window.yui||{};
yui.Region=function(C,D,A,B){this.top=C;
this.right=D;

this.bottom=A;

this.left=B};

yui.Region.prototype.contains=function(A){return(A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom)};

yui.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left))};
yui.Region.prototype.intersect=function(E){var C=Math.max(this.top,E.top);
var D=Math.min(this.right,E.right);
var A=Math.min(this.bottom,E.bottom);
var B=Math.max(this.left,E.left);
if(A>=C&&D>=B){return new yui.Region(C,D,A,B)}else{return null}};
yui.Region.prototype.union=function(E){var C=Math.min(this.top,E.top);
var D=Math.max(this.right,E.right);
var A=Math.max(this.bottom,E.bottom);
var B=Math.min(this.left,E.left);
return new yui.Region(C,D,A,B)};
yui.Region.prototype.toString=function(){return("Region {  t: "+this.top+", r: "+this.right+", b: "+this.bottom+", l: "+this.left+"}")};

yui.Region.getRegion=function(D){var F=ygPos.getPos(D);

var C=F[1];

var E=F[0]+D.offsetWidth;

var A=F[1]+D.offsetHeight;

var B=F[0];

return new yui.Region(C,E,A,B)};
yui.Point=function(A,B){this.x=A;
this.y=B;
this.top=B;
this.right=A;
this.bottom=B;
this.left=A};
yui.Point.prototype=new yui.Region();
window.SCROLLER=window.SCROLLER||{};
SCROLLER.namespace=function(B){if(!B||!B.length){return null}var D=B.split(".");
var C=SCROLLER;
for(var A=(D[0]=="SCROLLER")?1:0;
A<D.length;
++A){C[D[A]]=C[D[A]]||{};
C=C[D[A]]}return C};
SCROLLER.log=function(D,C,B){var A=SCROLLER.widget.Logger;
if(A&&A.log){return A.log(D,C,B)}else{return false}};
SCROLLER.extend=function(A,C){var B=function(){};
B.prototype=C.prototype;
A.prototype=new B();
A.prototype.constructor=A;
A.superclass=C.prototype;
if(C.prototype.constructor==Object.prototype.constructor){C.prototype.constructor=C}};
SCROLLER.namespace("util");
SCROLLER.namespace("widget");


SCROLLER.util.Dom=function(){
	var B=navigator.userAgent.toLowerCase();
	var C=(B.indexOf("opera")>-1);
	var H=(B.indexOf("safari")>-1);
	var D=(window.ActiveXObject);
	var E=0;
	var F=SCROLLER.util;
	var A={};
	var I=function(K){
		var L=function(N){
			var M=/(-[a-z])/i.exec(N);
			return N.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());
		};
		while(K.indexOf("-")>-1){
			K=L(K);
		}
		return K
	};
	var G=function(M){
		if(M.indexOf("-")>-1){return M}var N="";
			for(var L=0,K=M.length;L<K;++L){
				if(M.charAt(L)==M.charAt(L).toUpperCase()){
					N=N+"-"+M.charAt(L).toLowerCase();
				}
				else{
					N=N+M.charAt(L);
				}
			}
		return N;
	};
	var J=function(K){
		A[K]={
			camel:I(K),hyphen:G(K)
		}
	};
	return{
		get:function(M){
			if(!M){
				return null
			}
		if(typeof M!="string"&&!(M instanceof Array)){
			return M
		}
		if(typeof M=="string"){
			return document.getElementById(M);
		}else{
			var N=[];
			for(var L=0,K=M.length;L<K;++L){
				N[N.length]=F.Dom.get(M[L]);
			}
			return N
			}
			return null
		},
		getStyle:function(K,M){
			var L=function(P){
				var S=null;
				var O=document.defaultView;
				if(!A[M]){
					J(M)
				}
				var N=A[M]["camel"];
			var R=A[M]["hyphen"];
			if(M=="opacity"&&P.filters){
				S=1;
				try{
					S=P.filters.item("DXImageTransform.Microsoft.Alpha").opacity/100;
					}
					catch(T){
						try{
							S=P.filters.item("alpha").opacity/100
							}
							catch(T){}
							}
					}
					else{
						if(P.style[N]){
							S=P.style[N];
						}
						else{
							if(D&&P.currentStyle&&P.currentStyle[N]){
								S=P.currentStyle[N]
							}else{
								if(O&&O.getComputedStyle){
									var Q=O.getComputedStyle(P,"");
									if(Q&&Q.getPropertyValue(R)){
										S=Q.getPropertyValue(R);
									}
								}
							}
						}
					}
					return S
				};
			return F.Dom.batch(K,L,F.Dom,true)
		},
		setStyle:function(L,N,O){if(!A[N]){J(N)}
		var K=A[N]["camel"];
		var M=function(P){
			switch(N){
				case"opacity":
					if(D&&typeof P.style.filter=="string"){
						P.style.filter="alpha(opacity="+O*100+")";
						if(!P.currentStyle||!P.currentStyle.hasLayout){
							P.style.zoom=1;
						}
					}
					else{
						P.style.opacity=O;
						P.style["-moz-opacity"]=O;
						P.style["-khtml-opacity"]=O;
					}
				break;
				default:
				P.style[K]=O
			}
		};
		F.Dom.batch(L,M,F.Dom,true)
	},
	getXY:function(K){
		var L=function(N){
			if(N.offsetParent===null||this.getStyle(N,"display")=="none"){return false}
			var M=null;
			var S=[];
			var O;
			if(N.getBoundingClientRect){
				O=N.getBoundingClientRect();
				var Q=document;
				if(!this.inDocument(N)&&parent.document!=document){
					Q=parent.document;
					if(!this.isAncestor(Q.documentElement,N)){return false}
				}
				var P=Math.max(Q.documentElement.scrollTop,Q.body.scrollTop);
				var R=Math.max(Q.documentElement.scrollLeft,Q.body.scrollLeft);
				return[O.left+R,O.top+P]
			}else{
				S=[N.offsetLeft,N.offsetTop];
				M=N.offsetParent;if(M!=N){
					while(M){
						S[0]+=M.offsetLeft;
						S[1]+=M.offsetTop;
						M=M.offsetParent
					}
				}
				if(H&&this.getStyle(N,"position")=="absolute"){
					S[0]-=document.body.offsetLeft;S[1]-=document.body.offsetTop
					}
				}if(N.parentNode){
					M=N.parentNode
				}else{M=null}
				while(M&&M.tagName.toUpperCase()!="BODY"&&M.tagName.toUpperCase()!="HTML"){
					if(F.Dom.getStyle(M,"display")!="inline"){
						S[0]-=M.scrollLeft;
						S[1]-=M.scrollTop;
					}
					if(M.parentNode){
						M=M.parentNode;
					}
					else{M=null}
				}
				return S;
			};
			return F.Dom.batch(K,L,F.Dom,true);
		},
		getX:function(K){
			var L=function(M){
				return F.Dom.getXY(M)[0];
			};
			return F.Dom.batch(K,L,F.Dom,true)
		},
		getY:function(K){
			var L=function(M){
				return F.Dom.getXY(M)[1];
			};
			return F.Dom.batch(K,L,F.Dom,true);
		},
		setXY:function(K,N,M){
			var L=function(Q){
				var P=this.getStyle(Q,"position");
				if(P=="static"){
					this.setStyle(Q,"position","relative");
					P="relative";
				}
				var S=this.getXY(Q);
				if(S===false){
					return false;
				}
				var R=[parseInt(this.getStyle(Q,"left"),10),parseInt(this.getStyle(Q,"top"),10)];
				if(isNaN(R[0])){
					R[0]=(P=="relative")?0:Q.offsetLeft;
				}
				if(isNaN(R[1])){
					R[1]=(P=="relative")?0:Q.offsetTop;
				}
				if(N[0]!==null){
					Q.style.left=N[0]-S[0]+R[0]+"px";
				}
				if(N[1]!==null){
					Q.style.top=N[1]-S[1]+R[1]+"px";
				}
				var O=this.getXY(Q);
				if(!M&&(O[0]!=N[0]||O[1]!=N[1])){
					this.setXY(Q,N,true);
				}
			};
			F.Dom.batch(K,L,F.Dom,true)
		},
		setX:function(L,K){
			F.Dom.setXY(L,[K,null])
		},
		setY:function(K,L){
			F.Dom.setXY(K,[null,L])
		},
		getRegion:function(K){
			var L=function(M){
				var N=new SCROLLER.util.Region.getRegion(M);return N
			};
			return F.Dom.batch(K,L,F.Dom,true)
		},
		getClientWidth:function(){
			return F.Dom.getViewportWidth();
		},
		getClientHeight:function(){
			return F.Dom.getViewportHeight();
		},
		getElementsByClassName:function(M,K,L){
			var N=function(O){return F.Dom.hasClass(O,M)};
			return F.Dom.getElementsBy(N,K,L)
		},
		hasClass:function(M,L){
			var K=new RegExp("(?:^|\\s+)"+L+"(?:\\s+|$)");
			var N=function(O){return K.test(O.className)};
			return F.Dom.batch(M,N,F.Dom,true)
		},
		addClass:function(L,K){
			var M=function(N){if(this.hasClass(N,K)){return }N.className=[N.className,K].join(" ")};
			F.Dom.batch(L,M,F.Dom,true)
		},
		removeClass:function(M,L){var K=new RegExp("(?:^|\\s+)"+L+"(?:\\s+|$)","g");var N=function(O){if(!this.hasClass(O,L)){return }var P=O.className;O.className=P.replace(K," ");if(this.hasClass(O,L)){this.removeClass(O,L)}};F.Dom.batch(M,N,F.Dom,true)},replaceClass:function(N,L,K){if(L===K){return false}var M=new RegExp("(?:^|\\s+)"+L+"(?:\\s+|$)","g");var O=function(P){if(!this.hasClass(P,L)){this.addClass(P,K);return }P.className=P.className.replace(M," "+K+" ");if(this.hasClass(P,L)){this.replaceClass(P,L,K)}};F.Dom.batch(N,O,F.Dom,true)},generateId:function(K,M){M=M||"yui-gen";K=K||{};var L=function(N){if(N){N=F.Dom.get(N)}else{N={}}if(!N.id){N.id=M+E++}return N.id};return F.Dom.batch(K,L,F.Dom,true)},isAncestor:function(L,M){L=F.Dom.get(L);if(!L||!M){return false}var K=function(O){if(L.contains&&!H){return L.contains(O)}else{if(L.compareDocumentPosition){return !!(L.compareDocumentPosition(O)&16)}else{var N=O.parentNode;while(N){if(N==L){return true}else{if(!N.tagName||N.tagName.toUpperCase()=="HTML"){return false}}N=N.parentNode}return false}}};return F.Dom.batch(M,K,F.Dom,true)},inDocument:function(K){var L=function(M){return this.isAncestor(document.documentElement,M)};return F.Dom.batch(K,L,F.Dom,true)},getElementsBy:function(Q,L,M){L=L||"*";M=F.Dom.get(M)||document;var N=[];var P=M.getElementsByTagName(L);if(!P.length&&(L=="*"&&M.all)){P=M.all}for(var O=0,K=P.length;O<K;++O){if(Q(P[O])){N[N.length]=P[O]}}return N},batch:function(O,K,N,M){var L=O;O=F.Dom.get(O);var S=(M)?N:window;if(!O||O.tagName||!O.length){if(!O){return false}return K.call(S,O,N)}var Q=[];for(var P=0,R=O.length;P<R;++P){if(!O[P]){L=L[P]}Q[Q.length]=K.call(S,O[P],N)}return Q},getDocumentHeight:function(){var L=-1,Q=-1,P=-1;var M=parseInt(F.Dom.getStyle(document.body,"marginTop"),10);var O=parseInt(F.Dom.getStyle(document.body,"marginBottom"),10);var N=document.compatMode;if((N||D)&&!C){switch(N){case"CSS1Compat":L=((window.innerHeight&&window.scrollMaxY)?window.innerHeight+window.scrollMaxY:-1);Q=[document.documentElement.clientHeight,self.innerHeight||-1].sort(function(S,R){return(S-R)})[1];P=document.body.offsetHeight+M+O;break;default:L=document.body.scrollHeight;P=document.body.clientHeight}}else{L=document.documentElement.scrollHeight;Q=self.innerHeight;P=document.documentElement.clientHeight}var K=[L,Q,P].sort(function(S,R){return(S-R)});return K[2]},getDocumentWidth:function(){var N=-1,K=-1,M=-1;var P=parseInt(F.Dom.getStyle(document.body,"marginRight"),10);var O=parseInt(F.Dom.getStyle(document.body,"marginLeft"),10);var Q=document.compatMode;if(Q||D){switch(Q){case"CSS1Compat":N=document.documentElement.clientWidth;K=document.body.offsetWidth+O+P;break;default:K=document.body.clientWidth;N=document.body.scrollWidth;break}}else{N=document.documentElement.clientWidth;K=document.body.offsetWidth+O+P}var L=Math.max(N,K);return L},getViewportHeight:function(){var K=-1;var L=document.compatMode;if((L||D)&&!C){switch(L){case"CSS1Compat":K=document.documentElement.clientHeight;break;default:K=document.body.clientHeight}}else{K=self.innerHeight}return K},getViewportWidth:function(){var K=-1;var L=document.compatMode;if(L||D){switch(L){case"CSS1Compat":K=document.documentElement.clientWidth;break;default:K=document.body.clientWidth}}else{K=self.innerWidth}return K}}}();
				
				
				SCROLLER.util.CustomEvent=function(C,B,A){this.type=C;this.scope=B||window;this.silent=A;this.subscribers=[];if(!this.silent){}};SCROLLER.util.CustomEvent.prototype={subscribe:function(C,B,A){this.subscribers.push(new SCROLLER.util.Subscriber(C,B,A))},unsubscribe:function(F,C){var B=false;for(var D=0,A=this.subscribers.length;D<A;++D){var E=this.subscribers[D];if(E&&E.contains(F,C)){this._delete(D);B=true}}return B},fire:function(){var A=this.subscribers.length;if(!A&&this.silent){return }var E=[];for(var B=0;B<arguments.length;++B){E.push(arguments[B])}if(!this.silent){}for(B=0;B<A;++B){var C=this.subscribers[B];if(C){if(!this.silent){}var D=(C.override)?C.obj:this.scope;C.fn.call(D,this.type,E,C.obj)}}},unsubscribeAll:function(){for(var B=0,A=this.subscribers.length;B<A;++B){this._delete(A-1-B)}},_delete:function(B){var A=this.subscribers[B];if(A){delete A.fn;delete A.obj}this.subscribers.splice(B,1)},toString:function(){return"CustomEvent: '"+this.type+"', scope: "+this.scope}};SCROLLER.util.Subscriber=function(B,C,A){this.fn=B;this.obj=C||null;this.override=(A)};SCROLLER.util.Subscriber.prototype.contains=function(A,B){return(this.fn==A&&this.obj==B)};SCROLLER.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+(this.obj||"")+", override: "+(this.override||"no")+" }"};if(!SCROLLER.util.Event){SCROLLER.util.Event=function(){var G=false;var E=[];var C=[];var F=[];var D=[];var B=[];var A=0;var J=[];var I=[];var H=0;return{POLL_RETRYS:200,POLL_INTERVAL:50,EL:0,TYPE:1,FN:2,WFN:3,SCOPE:3,ADJ_SCOPE:4,isSafari:(/Safari|Konqueror|KHTML/gi).test(navigator.userAgent),isIE:(!this.isSafari&&!navigator.userAgent.match(/opera/gi)&&navigator.userAgent.match(/msie/gi)),addDelayedListener:function(O,M,N,L,K){C[C.length]=[O,M,N,L,K];if(G){A=this.POLL_RETRYS;this.startTimeout(0)}},startTimeout:function(M){var N=(M||M===0)?M:this.POLL_INTERVAL;var L=this;var K=function(){L._tryPreloadAttach()};this.timeout=setTimeout(K,N)},onAvailable:function(N,M,L,K){J.push({id:N,fn:M,obj:L,override:K});A=this.POLL_RETRYS;this.startTimeout(0)},addListener:function(M,S,V,Q,T){if(!V||!V.call){return false}if(this._isValidCollection(M)){var W=true;for(var R=0,U=M.length;R<U;++R){W=(this.on(M[R],S,V,Q,T)&&W)}return W}else{if(typeof M=="string"){var P=this.getEl(M);if(G&&P){M=P}else{this.addDelayedListener(M,S,V,Q,T);return true}}}if(!M){return false}if("unload"==S&&Q!==this){F[F.length]=[M,S,V,Q,T];return true}var O=(T)?Q:M;var N=function(Y){return V.call(O,SCROLLER.util.Event.getEvent(Y),Q)};var X=[M,S,V,N,O];var L=E.length;E[L]=X;if(this.useLegacyEvent(M,S)){var K=this.getLegacyIndex(M,S);if(K==-1||M!=D[K][0]){K=D.length;I[M.id+S]=K;D[K]=[M,S,M["on"+S]];B[K]=[];M["on"+S]=function(Y){SCROLLER.util.Event.fireLegacyEvent(SCROLLER.util.Event.getEvent(Y),K)}}B[K].push(L)}else{if(M.addEventListener){M.addEventListener(S,N,false)}else{if(M.attachEvent){M.attachEvent("on"+S,N)}}}return true},fireLegacyEvent:function(R,M){var S=true;var L=B[M];for(var O=0,P=L.length;O<P;++O){var N=L[O];if(N){var T=E[N];if(T&&T[this.WFN]){var K=T[this.ADJ_SCOPE];var Q=T[this.WFN].call(K,R);S=(S&&Q)}else{delete L[O]}}}return S},getLegacyIndex:function(M,K){var L=this.generateId(M)+K;if(typeof I[L]=="undefined"){return -1}else{return I[L]}},useLegacyEvent:function(L,K){if(!L.addEventListener&&!L.attachEvent){return true}else{if(this.isSafari){if("click"==K||"dblclick"==K){return true}}}return false},removeListener:function(K,R,O,Q){if(!O||!O.call){return false}if(typeof K=="string"){K=this.getEl(K)}else{if(this._isValidCollection(K)){var P=true;for(var L=0,M=K.length;L<M;++L){P=(this.removeListener(K[L],R,O)&&P)}return P}}if("unload"==R){for(L=0,M=F.length;L<M;L++){var S=F[L];if(S&&S[0]==K&&S[1]==R&&S[2]==O){F.splice(L,1);return true}}return false}var N=null;if("undefined"==typeof Q){Q=this._getCacheIndex(K,R,O)}if(Q>=0){N=E[Q]}if(!K||!N){return false}if(K.removeEventListener){K.removeEventListener(R,N[this.WFN],false)}else{if(K.detachEvent){K.detachEvent("on"+R,N[this.WFN])}}delete E[Q][this.WFN];delete E[Q][this.FN];E.splice(Q,1);return true},getTarget:function(L,M){var K=L.target||L.srcElement;return this.resolveTextNode(K)},resolveTextNode:function(K){if(K&&K.nodeName&&"#TEXT"==K.nodeName.toUpperCase()){return K.parentNode}else{return K}},getPageX:function(L){var K=L.pageX;if(!K&&0!==K){K=L.clientX||0;if(this.isIE){K+=this._getScrollLeft()}}return K},getPageY:function(K){var L=K.pageY;if(!L&&0!==L){L=K.clientY||0;if(this.isIE){L+=this._getScrollTop()}}return L},getXY:function(K){return[this.getPageX(K),this.getPageY(K)]},getRelatedTarget:function(L){var K=L.relatedTarget;if(!K){if(L.type=="mouseout"){K=L.toElement}else{if(L.type=="mouseover"){K=L.fromElement}}}return this.resolveTextNode(K)},getTime:function(L){if(!L.time){var K=new Date().getTime();try{L.time=K}catch(M){return K}}return L.time},stopEvent:function(K){this.stopPropagation(K);this.preventDefault(K)},stopPropagation:function(K){if(K.stopPropagation){K.stopPropagation()}else{K.cancelBubble=true}},preventDefault:function(K){if(K.preventDefault){K.preventDefault()}else{K.returnValue=false}},getEvent:function(L){var K=L||window.event;if(!K){var M=this.getEvent.caller;while(M){K=M.arguments[0];if(K&&Event==K.constructor){break}M=M.caller}}return K},getCharCode:function(K){return K.charCode||((K.type=="keypress")?K.keyCode:0)},_getCacheIndex:function(P,M,O){for(var N=0,L=E.length;N<L;++N){var K=E[N];if(K&&K[this.FN]==O&&K[this.EL]==P&&K[this.TYPE]==M){return N}}return -1},generateId:function(K){var L=K.id;if(!L){L="yuievtautoid-"+H;++H;K.id=L}return L},_isValidCollection:function(K){return(K&&K.length&&typeof K!="string"&&!K.tagName&&!K.alert&&typeof K[0]!="undefined")},elCache:{},getEl:function(K){return document.getElementById(K)},clearCache:function(){},_load:function(K){G=true},_tryPreloadAttach:function(){if(this.locked){return false}this.locked=true;var Q=!G;if(!Q){Q=(A>0)}var O=[];for(var P=0,R=C.length;P<R;++P){var S=C[P];if(S){var K=this.getEl(S[this.EL]);if(K){this.on(K,S[this.TYPE],S[this.FN],S[this.SCOPE],S[this.ADJ_SCOPE]);delete C[P]}else{O.push(S)}}}C=O;var N=[];for(P=0,R=J.length;P<R;++P){var M=J[P];if(M){K=this.getEl(M.id);if(K){var L=(M.override)?M.obj:K;M.fn.call(L,M.obj);delete J[P]}else{N.push(M)}}}A=(O.length===0&&N.length===0)?0:A-1;if(Q){this.startTimeout()}this.locked=false;return true},purgeElement:function(Q,P,O){var M=this.getListeners(Q,O);if(M){for(var N=0,K=M.length;N<K;++N){var L=M[N];this.removeListener(Q,L.type,L.fn)}}if(P&&Q&&Q.childNodes){for(N=0,K=Q.childNodes.length;N<K;++N){this.purgeElement(Q.childNodes[N],P,O)}}},getListeners:function(P,N){var M=[];if(E&&E.length>0){for(var O=0,K=E.length;O<K;++O){var L=E[O];if(L&&L[this.EL]===P&&(!N||N===L[this.TYPE])){M.push({type:L[this.TYPE],fn:L[this.FN],obj:L[this.SCOPE],adjust:L[this.ADJ_SCOPE],index:O})}}}return(M.length)?M:null},_unload:function(Q,O){for(var N=0,K=F.length;N<K;++N){var L=F[N];if(L){var R=(L[this.ADJ_SCOPE])?L[this.SCOPE]:window;L[this.FN].call(R,this.getEvent(Q),L[this.SCOPE])}}if(E&&E.length>0){var M=E.length;while(M){var P=M-1;L=E[P];if(L){this.removeListener(L[this.EL],L[this.TYPE],L[this.FN],P)}M=M-1}this.clearCache()}for(N=0,K=D.length;N<K;++N){delete D[N][0];delete D[N]}},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var K=document.documentElement,L=document.body;if(K&&K.scrollTop){return[K.scrollTop,K.scrollLeft]}else{if(L){return[L.scrollTop,L.scrollLeft]}else{return[0,0]}}}}}();SCROLLER.util.Event.on=SCROLLER.util.Event.addListener;if(document&&document.body){SCROLLER.util.Event._load()}else{SCROLLER.util.Event.on(window,"load",SCROLLER.util.Event._load,SCROLLER.util.Event,true)}SCROLLER.util.Event.on(window,"unload",SCROLLER.util.Event._unload,SCROLLER.util.Event,true);SCROLLER.util.Event._tryPreloadAttach()}SCROLLER.util.Anim=function(B,A,C,D){if(B){this.init(B,A,C,D)}};SCROLLER.util.Anim.prototype={toString:function(){var A=this.getEl();var B=A.id||A.tagName;return("Anim "+B)},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(A,C,B){return this.method(this.currentFrame,C,B-C,this.totalFrames)},setAttribute:function(A,C,B){if(this.patterns.noNegatives.test(A)){C=(C>0)?C:0}SCROLLER.util.Dom.setStyle(this.getEl(),A,C+B)},getAttribute:function(A){var C=this.getEl();var E=SCROLLER.util.Dom.getStyle(C,A);if(E!=="auto"&&!this.patterns.offsetUnit.test(E)){return parseFloat(E)}var B=this.patterns.offsetAttribute.exec(A)||[];var F=!!(B[3]);var D=!!(B[2]);if(D||(SCROLLER.util.Dom.getStyle(C,"position")=="absolute"&&F)){E=C["offset"+B[0].charAt(0).toUpperCase()+B[0].substr(1)]}else{E=0}return E},getDefaultUnit:function(A){if(this.patterns.defaultUnit.test(A)){return"px"}return""},setRuntimeAttribute:function(B){var G;var C;var D=this.attributes;this.runtimeAttributes[B]={};var F=function(H){return(typeof H!=="undefined")};if(!F(D[B]["to"])&&!F(D[B]["by"])){return false}G=(F(D[B]["from"]))?D[B]["from"]:this.getAttribute(B);if(F(D[B]["to"])){C=D[B]["to"]}else{if(F(D[B]["by"])){if(G.constructor==Array){C=[];for(var E=0,A=G.length;E<A;++E){C[E]=G[E]+D[B]["by"][E]}}else{C=G+D[B]["by"]}}}this.runtimeAttributes[B].start=G;this.runtimeAttributes[B].end=C;this.runtimeAttributes[B].unit=(F(D[B].unit))?D[B]["unit"]:this.getDefaultUnit(B)},init:function(C,H,G,A){var B=false;var D=null;var F=0;C=SCROLLER.util.Dom.get(C);this.attributes=H||{};this.duration=G||1;this.method=A||SCROLLER.util.Easing.easeNone;this.useSeconds=true;this.currentFrame=0;this.totalFrames=SCROLLER.util.AnimMgr.fps;this.getEl=function(){return C};this.isAnimated=function(){return B};this.getStartTime=function(){return D};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated()){return false}this.currentFrame=0;this.totalFrames=(this.useSeconds)?Math.ceil(SCROLLER.util.AnimMgr.fps*this.duration):this.duration;SCROLLER.util.AnimMgr.registerElement(this)};this.stop=function(){SCROLLER.util.AnimMgr.stop(this)};var J=function(){this.onStart.fire();for(var K in this.attributes){this.setRuntimeAttribute(K)}B=true;F=0;D=new Date()};var I=function(){var M={duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame};M.toString=function(){return("duration: "+M.duration+", currentFrame: "+M.currentFrame)};this.onTween.fire(M);var L=this.runtimeAttributes;for(var K in L){this.setAttribute(K,this.doMethod(K,L[K].start,L[K].end),L[K].unit)}F+=1};var E=function(){var K=(new Date()-D)/1000;var L={duration:K,frames:F,fps:F/K};L.toString=function(){return("duration: "+L.duration+", frames: "+L.frames+", fps: "+L.fps)};B=false;F=0;this.onComplete.fire(L)};this._onStart=new SCROLLER.util.CustomEvent("_start",this,true);this.onStart=new SCROLLER.util.CustomEvent("start",this);this.onTween=new SCROLLER.util.CustomEvent("tween",this);this._onTween=new SCROLLER.util.CustomEvent("_tween",this,true);this.onComplete=new SCROLLER.util.CustomEvent("complete",this);this._onComplete=new SCROLLER.util.CustomEvent("_complete",this,true);this._onStart.subscribe(J);this._onTween.subscribe(I);this._onComplete.subscribe(E)}};SCROLLER.util.AnimMgr=new function(){var C=null;var B=[];var A=0;this.fps=200;this.delay=1;this.registerElement=function(F){B[B.length]=F;A+=1;F._onStart.fire();this.start()};this.unRegister=function(G,F){G._onComplete.fire();F=F||E(G);if(F!=-1){B.splice(F,1)}A-=1;if(A<=0){this.stop()}};this.start=function(){if(C===null){C=setInterval(this.run,this.delay)}};this.stop=function(H){if(!H){clearInterval(C);for(var G=0,F=B.length;G<F;++G){if(B[G].isAnimated()){this.unRegister(H,G)}}B=[];C=null;A=0}else{this.unRegister(H)}};this.run=function(){for(var H=0,F=B.length;H<F;++H){var G=B[H];if(!G||!G.isAnimated()){continue}if(G.currentFrame<G.totalFrames||G.totalFrames===null){G.currentFrame+=1;if(G.useSeconds){D(G)}G._onTween.fire()}else{SCROLLER.util.AnimMgr.stop(G,H)}}};var E=function(H){for(var G=0,F=B.length;G<F;++G){if(B[G]==H){return G}}return -1};var D=function(G){var J=G.totalFrames;var I=G.currentFrame;var H=(G.currentFrame*G.duration*1000/G.totalFrames);var F=(new Date()-G.getStartTime());var K=0;if(F<G.duration*1000){K=Math.round((F/H-1)*G.currentFrame)}else{K=J-(I+1)}if(K>0&&isFinite(K)){if(G.currentFrame+K>=J){K=J-(I+1)}G.currentFrame+=K}}};SCROLLER.util.Bezier=new function(){this.getPosition=function(E,D){var F=E.length;var C=[];for(var B=0;B<F;++B){C[B]=[E[B][0],E[B][1]]}for(var A=1;A<F;++A){for(B=0;B<F-A;++B){C[B][0]=(1-D)*C[B][0]+D*C[parseInt(B+1,10)][0];C[B][1]=(1-D)*C[B][1]+D*C[parseInt(B+1,10)][1]}}return[C[0][0],C[0][1]]}};(function(){SCROLLER.util.ColorAnim=function(E,D,F,G){SCROLLER.util.ColorAnim.superclass.constructor.call(this,E,D,F,G)};SCROLLER.extend(SCROLLER.util.ColorAnim,SCROLLER.util.Anim);var B=SCROLLER.util;var C=B.ColorAnim.superclass;var A=B.ColorAnim.prototype;A.toString=function(){var D=this.getEl();var E=D.id||D.tagName;return("ColorAnim "+E)};A.patterns.color=/color$/i;A.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;A.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;A.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;A.parseColor=function(D){if(D.length==3){return D}var E=this.patterns.hex.exec(D);if(E&&E.length==4){return[parseInt(E[1],16),parseInt(E[2],16),parseInt(E[3],16)]}E=this.patterns.rgb.exec(D);if(E&&E.length==4){return[parseInt(E[1],10),parseInt(E[2],10),parseInt(E[3],10)]}E=this.patterns.hex3.exec(D);if(E&&E.length==4){return[parseInt(E[1]+E[1],16),parseInt(E[2]+E[2],16),parseInt(E[3]+E[3],16)]}return null};A.getAttribute=function(D){var F=this.getEl();if(this.patterns.color.test(D)){var G=SCROLLER.util.Dom.getStyle(F,D);if(G=="transparent"){var E=F.parentNode;G=B.Dom.getStyle(E,D);while(E&&G=="transparent"){E=E.parentNode;G=B.Dom.getStyle(E,D);if(E.tagName.toUpperCase()=="HTML"){G="ffffff"}}}}else{G=C.getAttribute.call(this,D)}return G};A.doMethod=function(E,I,F){var H;if(this.patterns.color.test(E)){H=[];for(var G=0,D=I.length;G<D;++G){H[G]=C.doMethod.call(this,E,I[G],F[G])}H="rgb("+Math.floor(H[0])+","+Math.floor(H[1])+","+Math.floor(H[2])+")"}else{H=C.doMethod.call(this,E,I,F)}return H};A.setRuntimeAttribute=function(E){C.setRuntimeAttribute.call(this,E);if(this.patterns.color.test(E)){var G=this.attributes;var I=this.parseColor(this.runtimeAttributes[E].start);var F=this.parseColor(this.runtimeAttributes[E].end);if(typeof G[E]["to"]==="undefined"&&typeof G[E]["by"]!=="undefined"){F=this.parseColor(G[E].by);for(var H=0,D=I.length;H<D;++H){F[H]=I[H]+F[H]}}this.runtimeAttributes[E].start=I;this.runtimeAttributes[E].end=F}}})();SCROLLER.util.Easing={easeNone:function(B,A,D,C){return D*B/C+A},easeIn:function(B,A,D,C){return D*(B/=C)*B+A},easeOut:function(B,A,D,C){return -D*(B/=C)*(B-2)+A},easeBoth:function(B,A,D,C){if((B/=C/2)<1){return D/2*B*B+A}return -D/2*((--B)*(B-2)-1)+A},easeInStrong:function(B,A,D,C){return D*(B/=C)*B*B*B+A},easeOutStrong:function(B,A,D,C){return -D*((B=B/C-1)*B*B*B-1)+A},easeBothStrong:function(B,A,D,C){if((B/=C/2)<1){return D/2*B*B*B*B+A}return -D/2*((B-=2)*B*B*B-2)+A},elasticIn:function(C,A,G,F,B,E){if(C==0){return A}if((C/=F)==1){return A+G}if(!E){E=F*0.3}if(!B||B<Math.abs(G)){B=G;var D=E/4}else{var D=E/(2*Math.PI)*Math.asin(G/B)}return -(B*Math.pow(2,10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E))+A},elasticOut:function(C,A,G,F,B,E){if(C==0){return A}if((C/=F)==1){return A+G}if(!E){E=F*0.3}if(!B||B<Math.abs(G)){B=G;var D=E/4}else{var D=E/(2*Math.PI)*Math.asin(G/B)}return B*Math.pow(2,-10*C)*Math.sin((C*F-D)*(2*Math.PI)/E)+G+A},elasticBoth:function(C,A,G,F,B,E){if(C==0){return A}if((C/=F/2)==2){return A+G}if(!E){E=F*(0.3*1.5)}if(!B||B<Math.abs(G)){B=G;var D=E/4}else{var D=E/(2*Math.PI)*Math.asin(G/B)}if(C<1){return -0.5*(B*Math.pow(2,10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E))+A}return B*Math.pow(2,-10*(C-=1))*Math.sin((C*F-D)*(2*Math.PI)/E)*0.5+G+A},backIn:function(B,A,E,D,C){if(typeof C=="undefined"){C=1.70158}return E*(B/=D)*B*((C+1)*B-C)+A},backOut:function(B,A,E,D,C){if(typeof C=="undefined"){C=1.70158}return E*((B=B/D-1)*B*((C+1)*B+C)+1)+A},backBoth:function(B,A,E,D,C){if(typeof C=="undefined"){C=1.70158}if((B/=D/2)<1){return E/2*(B*B*(((C*=(1.525))+1)*B-C))+A}return E/2*((B-=2)*B*(((C*=(1.525))+1)*B+C)+2)+A},bounceIn:function(B,A,D,C){return D-SCROLLER.util.Easing.bounceOut(C-B,0,D,C)+A},bounceOut:function(B,A,D,C){if((B/=C)<(1/2.75)){return D*(7.5625*B*B)+A}else{if(B<(2/2.75)){return D*(7.5625*(B-=(1.5/2.75))*B+0.75)+A}else{if(B<(2.5/2.75)){return D*(7.5625*(B-=(2.25/2.75))*B+0.9375)+A}else{return D*(7.5625*(B-=(2.625/2.75))*B+0.984375)+A}}}},bounceBoth:function(B,A,D,C){if(B<C/2){return SCROLLER.util.Easing.bounceIn(B*2,0,D,C)*0.5+A}return SCROLLER.util.Easing.bounceOut(B*2-C,0,D,C)*0.5+D*0.5+A}};(function(){SCROLLER.util.Scroll=function(E,D,F,G){if(E){SCROLLER.util.Scroll.superclass.constructor.call(this,E,D,F,G)}};SCROLLER.extend(SCROLLER.util.Scroll,SCROLLER.util.ColorAnim);var B=SCROLLER.util;var C=B.Scroll.superclass;var A=B.Scroll.prototype;A.toString=function(){var D=this.getEl();var E=D.id||D.tagName;return("Scroll "+E)};A.doMethod=function(D,G,E){var F=null;if(D=="scroll"){F=[this.method(this.currentFrame,G[0],E[0]-G[0],this.totalFrames),this.method(this.currentFrame,G[1],E[1]-G[1],this.totalFrames)]}else{F=C.doMethod.call(this,D,G,E)}return F};A.getAttribute=function(D){var F=null;var E=this.getEl();if(D=="scroll"){F=[E.scrollLeft,E.scrollTop]}else{F=C.getAttribute.call(this,D)}return F};A.setAttribute=function(D,G,F){var E=this.getEl();if(D=="scroll"){E.scrollLeft=G[0];E.scrollTop=G[1]}else{C.setAttribute.call(this,D,G,F)}}})();SCROLLER.util.Connect={};SCROLLER.util.Config=function(A){if(A){this.init(A)}};SCROLLER.util.Config.prototype={owner:null,configChangedEvent:null,queueInProgress:false,addProperty:function(B,A){},getConfig:function(){},getProperty:function(A){},resetProperty:function(A){},setProperty:function(B,C,A){},queueProperty:function(A,B){},refireEvent:function(A){},applyConfig:function(A,B){},refresh:function(){},fireQueue:function(){},subscribeToConfigEvent:function(B,C,D,A){},unsubscribeFromConfigEvent:function(A,B,C){},checkBoolean:function(A){if(typeof A=="boolean"){return true}else{return false}},checkNumber:function(A){if(isNaN(A)){return false}else{return true}}};SCROLLER.util.Config.prototype.init=function(A){this.owner=A;this.configChangedEvent=new SCROLLER.util.CustomEvent("configChanged");this.queueInProgress=false;var C={};var E={};var B=[];var D=function(F,H){F=F.toLowerCase();var G=C[F];if(typeof G!="undefined"&&G.event){G.event.fire(H)}};this.addProperty=function(G,F){G=G.toLowerCase();C[G]=F;F.event=new SCROLLER.util.CustomEvent(G);F.key=G;if(F.handler){F.event.subscribe(F.handler,this.owner,true)}this.setProperty(G,F.value,true);if(!F.suppressEvent){this.queueProperty(G,F.value)}};this.getConfig=function(){var F={};for(var H in C){var G=C[H];if(typeof G!="undefined"&&G.event){F[H]=G.value}}return F};this.getProperty=function(F){F=F.toLowerCase();var G=C[F];if(typeof G!="undefined"&&G.event){return G.value}else{return undefined}};this.resetProperty=function(F){F=F.toLowerCase();var G=C[F];if(typeof G!="undefined"&&G.event){this.setProperty(F,E[F].value)}else{return undefined}};this.setProperty=function(G,I,F){G=G.toLowerCase();if(this.queueInProgress&&!F){this.queueProperty(G,I);return true}else{var H=C[G];if(typeof H!="undefined"&&H.event){if(H.validator&&!H.validator(I)){return false}else{H.value=I;if(!F){D(G,I);this.configChangedEvent.fire([G,I])}return true}}else{return false}}};this.queueProperty=function(R,O){R=R.toLowerCase();var Q=C[R];if(typeof Q!="undefined"&&Q.event){if(typeof O!="undefined"&&Q.validator&&!Q.validator(O)){return false}else{if(typeof O!="undefined"){Q.value=O}else{O=Q.value}var K=false;for(var L=0;L<B.length;L++){var H=B[L];if(H){var I=H[0];var J=H[1];if(I.toLowerCase()==R){B[L]=null;B.push([R,(typeof O!="undefined"?O:J)]);K=true;break}}}if(!K&&typeof O!="undefined"){B.push([R,O])}}if(Q.supercedes){for(var S=0;S<Q.supercedes.length;S++){var P=Q.supercedes[S];for(var G=0;G<B.length;G++){var M=B[G];if(M){var N=M[0];var F=M[1];if(N.toLowerCase()==P.toLowerCase()){B.push([N,F]);B[G]=null;break}}}}}return true}else{return false}};this.refireEvent=function(F){F=F.toLowerCase();var G=C[F];if(typeof G!="undefined"&&G.event&&typeof G.value!="undefined"){if(this.queueInProgress){this.queueProperty(F)}else{D(F,G.value)}}};this.applyConfig=function(F,G){if(G){E=F}for(var H in F){this.queueProperty(H,F[H])}};this.refresh=function(){for(var F in C){this.refireEvent(F)}};this.fireQueue=function(){this.queueInProgress=true;for(var G=0;G<B.length;G++){var J=B[G];if(J){var F=J[0];var I=J[1];var H=C[F];H.value=I;D(F,I)}}this.queueInProgress=false;B=[]};this.subscribeToConfigEvent=function(G,H,J,F){G=G.toLowerCase();var I=C[G];if(typeof I!="undefined"&&I.event){if(!SCROLLER.util.Config.alreadySubscribed(I.event,H,J)){I.event.subscribe(H,J,F)}return true}else{return false}};this.unsubscribeFromConfigEvent=function(F,G,I){F=F.toLowerCase();var H=C[F];if(typeof H!="undefined"&&H.event){return H.event.unsubscribe(G,I)}else{return false}};this.toString=function(){var F="Config";if(this.owner){F+=" ["+this.owner.toString()+"]"}return F};this.outputEventQueue=function(){var F="";for(var G=0;G<B.length;G++){var H=B[G];if(H){F+=H[0]+"="+H[1]+", "}}return F}};SCROLLER.util.Config.alreadySubscribed=function(B,C,E){for(var D=0;D<B.subscribers.length;D++){var A=B.subscribers[D];if(A&&A.obj==E&&A.fn==C){return true}}return false};SCROLLER.widget.Module=function(B,A){if(B){this.init(B,A)}};SCROLLER.widget.Module.IMG_ROOT="http://us.i1.yimg.com/us.yimg.com/i/";SCROLLER.widget.Module.IMG_ROOT_SSL="https://a248.e.akamai.net/sec.yimg.com/i/";SCROLLER.widget.Module.CSS_MODULE="module";SCROLLER.widget.Module.CSS_HEADER="hd";SCROLLER.widget.Module.CSS_BODY="bd";SCROLLER.widget.Module.CSS_FOOTER="ft";SCROLLER.widget.Module.RESIZE_MONITOR_SECURE_URL="javascript:false";SCROLLER.widget.Module.prototype={constructor:SCROLLER.widget.Module,element:null,header:null,body:null,footer:null,id:null,childNodesInDOM:null,imageRoot:SCROLLER.widget.Module.IMG_ROOT,beforeInitEvent:null,initEvent:null,appendEvent:null,beforeRenderEvent:null,renderEvent:null,changeHeaderEvent:null,changeBodyEvent:null,changeFooterEvent:null,changeContentEvent:null,destroyEvent:null,beforeShowEvent:null,showEvent:null,beforeHideEvent:null,hideEvent:null,initEvents:function(){this.beforeInitEvent=new SCROLLER.util.CustomEvent("beforeInit");this.initEvent=new SCROLLER.util.CustomEvent("init");this.appendEvent=new SCROLLER.util.CustomEvent("append");this.beforeRenderEvent=new SCROLLER.util.CustomEvent("beforeRender");this.renderEvent=new SCROLLER.util.CustomEvent("render");this.changeHeaderEvent=new SCROLLER.util.CustomEvent("changeHeader");this.changeBodyEvent=new SCROLLER.util.CustomEvent("changeBody");this.changeFooterEvent=new SCROLLER.util.CustomEvent("changeFooter");this.changeContentEvent=new SCROLLER.util.CustomEvent("changeContent");this.destroyEvent=new SCROLLER.util.CustomEvent("destroy");this.beforeShowEvent=new SCROLLER.util.CustomEvent("beforeShow");this.showEvent=new SCROLLER.util.CustomEvent("show");this.beforeHideEvent=new SCROLLER.util.CustomEvent("beforeHide");this.hideEvent=new SCROLLER.util.CustomEvent("hide")},platform:function(){var A=navigator.userAgent.toLowerCase();if(A.indexOf("windows")!=-1||A.indexOf("win32")!=-1){return"windows"}else{if(A.indexOf("macintosh")!=-1){return"mac"}else{return false}}}(),browser:function(){var A=navigator.userAgent.toLowerCase();if(A.indexOf("opera")!=-1){return"opera"}else{if(A.indexOf("msie 7")!=-1){return"ie7"}else{if(A.indexOf("msie")!=-1){return"ie"}else{if(A.indexOf("safari")!=-1){return"safari"}else{if(A.indexOf("gecko")!=-1){return"gecko"}else{return false}}}}}}(),isSecure:function(){if(window.location.href.toLowerCase().indexOf("https")===0){return true}else{return false}}(),initDefaultConfig:function(){this.cfg.addProperty("visible",{value:true,handler:this.configVisible,validator:this.cfg.checkBoolean});this.cfg.addProperty("effect",{suppressEvent:true,supercedes:["visible"]});this.cfg.addProperty("monitorresize",{value:true,handler:this.configMonitorResize})},init:function(D,C){this.initEvents();this.beforeInitEvent.fire(SCROLLER.widget.Module);this.cfg=new SCROLLER.util.Config(this);if(this.isSecure){this.imageRoot=SCROLLER.widget.Module.IMG_ROOT_SSL}if(typeof D=="string"){var A=D;D=document.getElementById(D);if(!D){D=document.createElement("DIV");D.id=A}}this.element=D;if(D.id){this.id=D.id}var E=this.element.childNodes;if(E){for(var B=0;B<E.length;B++){var F=E[B];switch(F.className){case SCROLLER.widget.Module.CSS_HEADER:this.header=F;break;case SCROLLER.widget.Module.CSS_BODY:this.body=F;break;case SCROLLER.widget.Module.CSS_FOOTER:this.footer=F;break}}}this.initDefaultConfig();SCROLLER.util.Dom.addClass(this.element,SCROLLER.widget.Module.CSS_MODULE);if(C){this.cfg.applyConfig(C,true)}if(!SCROLLER.util.Config.alreadySubscribed(this.renderEvent,this.cfg.fireQueue,this.cfg)){this.renderEvent.subscribe(this.cfg.fireQueue,this.cfg,true)}this.initEvent.fire(SCROLLER.widget.Module)},initResizeMonitor:function(){if(this.browser!="opera"){var E=document.getElementById("_yuiResizeMonitor");if(!E){E=document.createElement("iframe");var A=(this.browser.indexOf("ie")===0);if(this.isSecure&&SCROLLER.widget.Module.RESIZE_MONITOR_SECURE_URL&&A){E.src=SCROLLER.widget.Module.RESIZE_MONITOR_SECURE_URL}E.id="_yuiResizeMonitor";E.style.visibility="hidden";document.body.appendChild(E);E.style.width="10em";E.style.height="10em";E.style.position="absolute";var C=-1*E.offsetWidth,B=-1*E.offsetHeight;E.style.top=B+"px";E.style.left=C+"px";E.style.borderStyle="none";E.style.borderWidth="0";SCROLLER.util.Dom.setStyle(E,"opacity","0");E.style.visibility="visible";if(!A){var D=E.contentWindow.document;D.open();D.close()}}if(E&&E.contentWindow){this.resizeMonitor=E;SCROLLER.util.Event.addListener(this.resizeMonitor.contentWindow,"resize",this.onDomResize,this,true)}}},onDomResize:function(D,C){var B=-1*this.resizeMonitor.offsetWidth,A=-1*this.resizeMonitor.offsetHeight;this.resizeMonitor.style.top=A+"px";this.resizeMonitor.style.left=B+"px"},setHeader:function(A){if(!this.header){this.header=document.createElement("DIV");this.header.className=SCROLLER.widget.Module.CSS_HEADER}if(typeof A=="string"){this.header.innerHTML=A}else{this.header.innerHTML="";this.header.appendChild(A)}this.changeHeaderEvent.fire(A);this.changeContentEvent.fire()},appendToHeader:function(A){if(!this.header){this.header=document.createElement("DIV");this.header.className=SCROLLER.widget.Module.CSS_HEADER}this.header.appendChild(A);this.changeHeaderEvent.fire(A);this.changeContentEvent.fire()},setBody:function(A){if(!this.body){this.body=document.createElement("DIV");this.body.className=SCROLLER.widget.Module.CSS_BODY}if(typeof A=="string"){this.body.innerHTML=A}else{this.body.innerHTML="";this.body.appendChild(A)}this.changeBodyEvent.fire(A);this.changeContentEvent.fire()},appendToBody:function(A){if(!this.body){this.body=document.createElement("DIV");this.body.className=SCROLLER.widget.Module.CSS_BODY}this.body.appendChild(A);this.changeBodyEvent.fire(A);this.changeContentEvent.fire()},setFooter:function(A){if(!this.footer){this.footer=document.createElement("DIV");this.footer.className=SCROLLER.widget.Module.CSS_FOOTER}if(typeof A=="string"){this.footer.innerHTML=A}else{this.footer.innerHTML="";this.footer.appendChild(A)}this.changeFooterEvent.fire(A);this.changeContentEvent.fire()},appendToFooter:function(A){if(!this.footer){this.footer=document.createElement("DIV");this.footer.className=SCROLLER.widget.Module.CSS_FOOTER}this.footer.appendChild(A);this.changeFooterEvent.fire(A);this.changeContentEvent.fire()},render:function(C,A){this.beforeRenderEvent.fire();if(!A){A=this.element}var D=this;var B=function(F){if(typeof F=="string"){F=document.getElementById(F)}if(F){F.appendChild(D.element);D.appendEvent.fire()}};if(C){B(C)}else{if(!SCROLLER.util.Dom.inDocument(this.element)){return false}}if(this.header&&!SCROLLER.util.Dom.inDocument(this.header)){var E=A.firstChild;if(E){A.insertBefore(this.header,E)}else{A.appendChild(this.header)}}if(this.body&&!SCROLLER.util.Dom.inDocument(this.body)){if(this.footer&&SCROLLER.util.Dom.isAncestor(this.moduleElement,this.footer)){A.insertBefore(this.body,this.footer)}else{A.appendChild(this.body)}}if(this.footer&&!SCROLLER.util.Dom.inDocument(this.footer)){A.appendChild(this.footer)}this.renderEvent.fire();return true},destroy:function(){if(this.element){var A=this.element.parentNode}if(A){A.removeChild(this.element)}this.element=null;this.header=null;this.body=null;this.footer=null;this.destroyEvent.fire()},show:function(){this.cfg.setProperty("visible",true)},hide:function(){this.cfg.setProperty("visible",false)},configVisible:function(B,A,C){var D=A[0];if(D){this.beforeShowEvent.fire();SCROLLER.util.Dom.setStyle(this.element,"display","block");this.showEvent.fire()}else{this.beforeHideEvent.fire();SCROLLER.util.Dom.setStyle(this.element,"display","none");this.hideEvent.fire()}},configMonitorResize:function(C,B,D){var A=B[0];if(A){this.initResizeMonitor()}else{SCROLLER.util.Event.removeListener(this.resizeMonitor,"resize",this.onDomResize);this.resizeMonitor=null}}};SCROLLER.widget.Module.prototype.toString=function(){return"Module "+this.id};SCROLLER.widget.Overlay=function(B,A){SCROLLER.widget.Overlay.superclass.constructor.call(this,B,A)};SCROLLER.extend(SCROLLER.widget.Overlay,SCROLLER.widget.Module);SCROLLER.widget.Overlay.IFRAME_SRC="promo/m/irs/blank.gif";SCROLLER.widget.Overlay.TOP_LEFT="tl";SCROLLER.widget.Overlay.TOP_RIGHT="tr";SCROLLER.widget.Overlay.BOTTOM_LEFT="bl";SCROLLER.widget.Overlay.BOTTOM_RIGHT="br";SCROLLER.widget.Overlay.CSS_OVERLAY="overlay";SCROLLER.widget.Overlay.prototype.beforeMoveEvent=null;SCROLLER.widget.Overlay.prototype.moveEvent=null;SCROLLER.widget.Overlay.prototype.init=function(B,A){SCROLLER.widget.Overlay.superclass.init.call(this,B);this.beforeInitEvent.fire(SCROLLER.widget.Overlay);SCROLLER.util.Dom.addClass(this.element,SCROLLER.widget.Overlay.CSS_OVERLAY);if(A){this.cfg.applyConfig(A,true)}if(this.platform=="mac"&&this.browser=="gecko"){if(!SCROLLER.util.Config.alreadySubscribed(this.showEvent,this.showMacGeckoScrollbars,this)){this.showEvent.subscribe(this.showMacGeckoScrollbars,this,true)}if(!SCROLLER.util.Config.alreadySubscribed(this.hideEvent,this.hideMacGeckoScrollbars,this)){this.hideEvent.subscribe(this.hideMacGeckoScrollbars,this,true)}}this.initEvent.fire(SCROLLER.widget.Overlay)};SCROLLER.widget.Overlay.prototype.initEvents=function(){SCROLLER.widget.Overlay.superclass.initEvents.call(this);this.beforeMoveEvent=new SCROLLER.util.CustomEvent("beforeMove",this);this.moveEvent=new SCROLLER.util.CustomEvent("move",this)};SCROLLER.widget.Overlay.prototype.initDefaultConfig=function(){SCROLLER.widget.Overlay.superclass.initDefaultConfig.call(this);this.cfg.addProperty("x",{handler:this.configX,validator:this.cfg.checkNumber,suppressEvent:true,supercedes:["iframe"]});this.cfg.addProperty("y",{handler:this.configY,validator:this.cfg.checkNumber,suppressEvent:true,supercedes:["iframe"]});this.cfg.addProperty("xy",{handler:this.configXY,suppressEvent:true,supercedes:["iframe"]});this.cfg.addProperty("context",{handler:this.configContext,suppressEvent:true,supercedes:["iframe"]});this.cfg.addProperty("fixedcenter",{value:false,handler:this.configFixedCenter,validator:this.cfg.checkBoolean,supercedes:["iframe","visible"]});this.cfg.addProperty("width",{handler:this.configWidth,suppressEvent:true,supercedes:["iframe"]});this.cfg.addProperty("height",{handler:this.configHeight,suppressEvent:true,supercedes:["iframe"]});this.cfg.addProperty("zIndex",{value:null,handler:this.configzIndex});this.cfg.addProperty("constraintoviewport",{value:false,handler:this.configConstrainToViewport,validator:this.cfg.checkBoolean,supercedes:["iframe","x","y","xy"]});this.cfg.addProperty("iframe",{value:(this.browser=="ie"?true:false),handler:this.configIframe,validator:this.cfg.checkBoolean,supercedes:["zIndex"]})};SCROLLER.widget.Overlay.prototype.moveTo=function(A,B){this.cfg.setProperty("xy",[A,B])};SCROLLER.widget.Overlay.prototype.hideMacGeckoScrollbars=function(){SCROLLER.util.Dom.removeClass(this.element,"show-scrollbars");SCROLLER.util.Dom.addClass(this.element,"hide-scrollbars")};SCROLLER.widget.Overlay.prototype.showMacGeckoScrollbars=function(){SCROLLER.util.Dom.removeClass(this.element,"hide-scrollbars");SCROLLER.util.Dom.addClass(this.element,"show-scrollbars")};SCROLLER.widget.Overlay.prototype.configVisible=function(J,I,E){var B=I[0];var M=SCROLLER.util.Dom.getStyle(this.element,"visibility");var L=this.cfg.getProperty("effect");var N=[];if(L){if(L instanceof Array){for(var F=0;F<L.length;F++){var A=L[F];N[N.length]=A.effect(this,A.duration)}}else{N[N.length]=L.effect(this,L.duration)}}var K=(this.platform=="mac"&&this.browser=="gecko");if(B){if(K){this.showMacGeckoScrollbars()}if(L){if(B){if(M!="visible"){this.beforeShowEvent.fire();for(var D=0;D<N.length;D++){var H=N[D];if(D===0&&!SCROLLER.util.Config.alreadySubscribed(H.animateInCompleteEvent,this.showEvent.fire,this.showEvent)){H.animateInCompleteEvent.subscribe(this.showEvent.fire,this.showEvent,true)}H.animateIn()}}}}else{if(M!="visible"){this.beforeShowEvent.fire();SCROLLER.util.Dom.setStyle(this.element,"visibility","visible");this.cfg.refireEvent("iframe");this.showEvent.fire()}}}else{if(K){this.hideMacGeckoScrollbars()}if(L){if(M=="visible"){this.beforeHideEvent.fire();for(var C=0;C<N.length;C++){var G=N[C];if(C===0&&!SCROLLER.util.Config.alreadySubscribed(G.animateOutCompleteEvent,this.hideEvent.fire,this.hideEvent)){G.animateOutCompleteEvent.subscribe(this.hideEvent.fire,this.hideEvent,true)}G.animateOut()}}}else{if(M=="visible"){this.beforeHideEvent.fire();SCROLLER.util.Dom.setStyle(this.element,"visibility","hidden");this.cfg.refireEvent("iframe");this.hideEvent.fire()}}}};SCROLLER.widget.Overlay.prototype.doCenterOnDOMEvent=function(){if(this.cfg.getProperty("visible")){this.center()}};SCROLLER.widget.Overlay.prototype.configFixedCenter=function(B,A,C){var D=A[0];if(D){this.center();if(!SCROLLER.util.Config.alreadySubscribed(this.beforeShowEvent,this.center,this)){this.beforeShowEvent.subscribe(this.center,this,true)}if(!SCROLLER.util.Config.alreadySubscribed(SCROLLER.widget.Overlay.windowResizeEvent,this.doCenterOnDOMEvent,this)){SCROLLER.widget.Overlay.windowResizeEvent.subscribe(this.doCenterOnDOMEvent,this,true)}if(!SCROLLER.util.Config.alreadySubscribed(SCROLLER.widget.Overlay.windowScrollEvent,this.doCenterOnDOMEvent,this)){SCROLLER.widget.Overlay.windowScrollEvent.subscribe(this.doCenterOnDOMEvent,this,true)}}else{SCROLLER.widget.Overlay.windowResizeEvent.unsubscribe(this.doCenterOnDOMEvent,this);SCROLLER.widget.Overlay.windowScrollEvent.unsubscribe(this.doCenterOnDOMEvent,this)}};SCROLLER.widget.Overlay.prototype.configHeight=function(D,B,E){var A=B[0];var C=this.element;SCROLLER.util.Dom.setStyle(C,"height",A);this.cfg.refireEvent("iframe")};SCROLLER.widget.Overlay.prototype.configWidth=function(D,A,E){var C=A[0];var B=this.element;SCROLLER.util.Dom.setStyle(B,"width",C);this.cfg.refireEvent("iframe")};SCROLLER.widget.Overlay.prototype.configzIndex=function(C,A,D){var E=A[0];var B=this.element;if(!E){E=SCROLLER.util.Dom.getStyle(B,"zIndex");if(!E||isNaN(E)){E=0}}if(this.iframe){if(E<=0){E=1}SCROLLER.util.Dom.setStyle(this.iframe,"zIndex",(E-1))}SCROLLER.util.Dom.setStyle(B,"zIndex",E);this.cfg.setProperty("zIndex",E,true)};SCROLLER.widget.Overlay.prototype.configXY=function(C,B,D){var F=B[0];var A=F[0];var E=F[1];this.cfg.setProperty("x",A);this.cfg.setProperty("y",E);this.beforeMoveEvent.fire([A,E]);A=this.cfg.getProperty("x");E=this.cfg.getProperty("y");this.cfg.refireEvent("iframe");this.moveEvent.fire([A,E])};SCROLLER.widget.Overlay.prototype.configX=function(C,B,D){var A=B[0];var E=this.cfg.getProperty("y");this.cfg.setProperty("x",A,true);this.cfg.setProperty("y",E,true);this.beforeMoveEvent.fire([A,E]);A=this.cfg.getProperty("x");E=this.cfg.getProperty("y");SCROLLER.util.Dom.setX(this.element,A,true);this.cfg.setProperty("xy",[A,E],true);this.cfg.refireEvent("iframe");this.moveEvent.fire([A,E])};SCROLLER.widget.Overlay.prototype.configY=function(C,B,D){var A=this.cfg.getProperty("x");var E=B[0];this.cfg.setProperty("x",A,true);this.cfg.setProperty("y",E,true);this.beforeMoveEvent.fire([A,E]);A=this.cfg.getProperty("x");E=this.cfg.getProperty("y");SCROLLER.util.Dom.setY(this.element,E,true);this.cfg.setProperty("xy",[A,E],true);this.cfg.refireEvent("iframe");this.moveEvent.fire([A,E])};SCROLLER.widget.Overlay.prototype.showIframe=function(){if(this.iframe){this.iframe.style.display="block"}};SCROLLER.widget.Overlay.prototype.hideIframe=function(){if(this.iframe){this.iframe.style.display="none"}};SCROLLER.widget.Overlay.prototype.configIframe=function(F,E,D){var B=E[0];if(B){if(!SCROLLER.util.Config.alreadySubscribed(this.showEvent,this.showIframe,this)){this.showEvent.subscribe(this.showIframe,this,true)}if(!SCROLLER.util.Config.alreadySubscribed(this.hideEvent,this.hideIframe,this)){this.hideEvent.subscribe(this.hideIframe,this,true)}var H=this.cfg.getProperty("x");var G=this.cfg.getProperty("y");if(!H||!G){this.syncPosition();H=this.cfg.getProperty("x");G=this.cfg.getProperty("y")}if(!isNaN(H)&&!isNaN(G)){if(!this.iframe){this.iframe=document.createElement("iframe");if(this.isSecure){this.iframe.src=this.imageRoot+SCROLLER.widget.Overlay.IFRAME_SRC}var I=this.element.parentNode;if(I){I.appendChild(this.iframe)}else{document.body.appendChild(this.iframe)}SCROLLER.util.Dom.setStyle(this.iframe,"position","absolute");SCROLLER.util.Dom.setStyle(this.iframe,"border","none");SCROLLER.util.Dom.setStyle(this.iframe,"margin","0");SCROLLER.util.Dom.setStyle(this.iframe,"padding","0");SCROLLER.util.Dom.setStyle(this.iframe,"opacity","0");if(this.cfg.getProperty("visible")){this.showIframe()}else{this.hideIframe()}}var C=SCROLLER.util.Dom.getStyle(this.iframe,"display");if(C=="none"){this.iframe.style.display="block"}SCROLLER.util.Dom.setXY(this.iframe,[H,G]);var A=this.element.clientWidth;var J=this.element.clientHeight;SCROLLER.util.Dom.setStyle(this.iframe,"width",(A+2)+"px");SCROLLER.util.Dom.setStyle(this.iframe,"height",(J+2)+"px");if(C=="none"){this.iframe.style.display="none"}}}else{if(this.iframe){this.iframe.style.display="none"}this.showEvent.unsubscribe(this.showIframe,this);this.hideEvent.unsubscribe(this.hideIframe,this)}};SCROLLER.widget.Overlay.prototype.configConstrainToViewport=function(B,A,C){var D=A[0];if(D){if(!SCROLLER.util.Config.alreadySubscribed(this.beforeMoveEvent,this.enforceConstraints,this)){this.beforeMoveEvent.subscribe(this.enforceConstraints,this,true)}}else{this.beforeMoveEvent.unsubscribe(this.enforceConstraints,this)}};SCROLLER.widget.Overlay.prototype.configContext=function(C,B,E){var G=B[0];if(G){var D=G[0];var F=G[1];var A=G[2];if(D){if(typeof D=="string"){this.cfg.setProperty("context",[document.getElementById(D),F,A],true)}if(F&&A){this.align(F,A)}}}};SCROLLER.widget.Overlay.prototype.align=function(B,I){var H=this.cfg.getProperty("context");if(H){var A=H[0];var C=this.element;var F=this;if(!B){B=H[1]}if(!I){I=H[2]}if(C&&A){var D=SCROLLER.util.Dom.getRegion(C);var G=SCROLLER.util.Dom.getRegion(A);var E=function(J,K){switch(B){case SCROLLER.widget.Overlay.TOP_LEFT:F.moveTo(K,J);break;case SCROLLER.widget.Overlay.TOP_RIGHT:F.moveTo(K-C.offsetWidth,J);break;case SCROLLER.widget.Overlay.BOTTOM_LEFT:F.moveTo(K,J-C.offsetHeight);break;case SCROLLER.widget.Overlay.BOTTOM_RIGHT:F.moveTo(K-C.offsetWidth,J-C.offsetHeight);break}};switch(I){case SCROLLER.widget.Overlay.TOP_LEFT:E(G.top,G.left);break;case SCROLLER.widget.Overlay.TOP_RIGHT:E(G.top,G.right);break;case SCROLLER.widget.Overlay.BOTTOM_LEFT:E(G.bottom,G.left);break;case SCROLLER.widget.Overlay.BOTTOM_RIGHT:E(G.bottom,G.right);break}}}};SCROLLER.widget.Overlay.prototype.enforceConstraints=function(I,H,E){var K=H[0];var M=K[0];var L=K[1];var B=this.element.offsetHeight;var G=this.element.offsetWidth;var J=SCROLLER.util.Dom.getViewportWidth();var D=SCROLLER.util.Dom.getViewportHeight();var P=document.documentElement.scrollLeft||document.body.scrollLeft;var N=document.documentElement.scrollTop||document.body.scrollTop;var C=N+10;var F=P+10;var A=N+D-B-10;var O=P+J-G-10;if(M<F){M=F}else{if(M>O){M=O}}if(L<C){L=C}else{if(L>A){L=A}}this.cfg.setProperty("x",M,true);this.cfg.setProperty("y",L,true);this.cfg.setProperty("xy",[M,L],true)};SCROLLER.widget.Overlay.prototype.center=function(){var G=document.documentElement.scrollLeft||document.body.scrollLeft;var E=document.documentElement.scrollTop||document.body.scrollTop;var B=SCROLLER.util.Dom.getClientWidth();var F=SCROLLER.util.Dom.getClientHeight();var D=this.element.offsetWidth;var C=this.element.offsetHeight;var A=(B/2)-(D/2)+G;var H=(F/2)-(C/2)+E;this.element.style.left=parseInt(A,10)+"px";this.element.style.top=parseInt(H,10)+"px";this.syncPosition();this.cfg.refireEvent("iframe")};SCROLLER.widget.Overlay.prototype.syncPosition=function(){var A=SCROLLER.util.Dom.getXY(this.element);this.cfg.setProperty("x",A[0],true);this.cfg.setProperty("y",A[1],true);this.cfg.setProperty("xy",A,true)};SCROLLER.widget.Overlay.prototype.onDomResize=function(B,A){SCROLLER.widget.Overlay.superclass.onDomResize.call(this,B,A);this.cfg.refireEvent("iframe")};SCROLLER.widget.Overlay.prototype.destroy=function(){if(this.iframe){this.iframe.parentNode.removeChild(this.iframe)}this.iframe=null;SCROLLER.widget.Overlay.superclass.destroy.call(this)};SCROLLER.widget.Overlay.prototype.toString=function(){return"Overlay "+this.id};SCROLLER.widget.Overlay.windowScrollEvent=new SCROLLER.util.CustomEvent("windowScroll");SCROLLER.widget.Overlay.windowResizeEvent=new SCROLLER.util.CustomEvent("windowResize");SCROLLER.widget.Overlay.windowScrollHandler=function(A){SCROLLER.widget.Overlay.windowScrollEvent.fire()};SCROLLER.widget.Overlay.windowResizeHandler=function(A){SCROLLER.widget.Overlay.windowResizeEvent.fire()};SCROLLER.widget.Overlay._initialized=null;if(SCROLLER.widget.Overlay._initialized===null){SCROLLER.util.Event.addListener(window,"scroll",SCROLLER.widget.Overlay.windowScrollHandler);SCROLLER.util.Event.addListener(window,"resize",SCROLLER.widget.Overlay.windowResizeHandler);SCROLLER.widget.Overlay._initialized=true}SCROLLER.widget.OverlayManager=function(A){this.init(A)};SCROLLER.widget.OverlayManager.CSS_FOCUSED="focused";SCROLLER.widget.OverlayManager.prototype={constructor:SCROLLER.widget.OverlayManager,overlays:null,initDefaultConfig:function(){this.cfg.addProperty("overlays",{suppressEvent:true});this.cfg.addProperty("focusevent",{value:"mousedown"})},getActive:function(){},focus:function(A){},remove:function(A){},blurAll:function(){},init:function(C){this.cfg=new SCROLLER.util.Config(this);this.initDefaultConfig();if(C){this.cfg.applyConfig(C,true)}this.cfg.fireQueue();var B=null;this.getActive=function(){return B};this.focus=function(D){var F=this.find(D);if(F){this.blurAll();B=F;SCROLLER.util.Dom.addClass(B.element,SCROLLER.widget.OverlayManager.CSS_FOCUSED);this.overlays.sort(this.compareZIndexDesc);var E=SCROLLER.util.Dom.getStyle(this.overlays[0].element,"zIndex");if(!isNaN(E)&&this.overlays[0]!=D){B.cfg.setProperty("zIndex",(parseInt(E,10)+2))}this.overlays.sort(this.compareZIndexDesc)}};this.remove=function(E){var F=this.find(E);if(F){var D=SCROLLER.util.Dom.getStyle(F.element,"zIndex");F.cfg.setProperty("zIndex",-1000,true);this.overlays.sort(this.compareZIndexDesc);this.overlays=this.overlays.slice(0,this.overlays.length-1);F.cfg.setProperty("zIndex",D,true);F.cfg.setProperty("manager",null);F.focusEvent=null;F.blurEvent=null;F.focus=null;F.blur=null}};this.blurAll=function(){B=null;for(var D=0;D<this.overlays.length;D++){SCROLLER.util.Dom.removeClass(this.overlays[D].element,SCROLLER.widget.OverlayManager.CSS_FOCUSED)}};var A=this.cfg.getProperty("overlays");if(!this.overlays){this.overlays=[]}if(A){this.register(A);this.overlays.sort(this.compareZIndexDesc)}},register:function(A){if(A instanceof SCROLLER.widget.Overlay){A.cfg.addProperty("manager",{value:this});A.focusEvent=new SCROLLER.util.CustomEvent("focus");A.blurEvent=new SCROLLER.util.CustomEvent("blur");var F=this;A.focus=function(){F.focus(this);this.focusEvent.fire()};A.blur=function(){F.blurAll();this.blurEvent.fire()};var E=function(I,H){A.focus()};var D=this.cfg.getProperty("focusevent");SCROLLER.util.Event.addListener(A.element,D,E,this,true);var G=SCROLLER.util.Dom.getStyle(A.element,"zIndex");if(!isNaN(G)){A.cfg.setProperty("zIndex",parseInt(G,10))}else{A.cfg.setProperty("zIndex",0)}this.overlays.push(A);return true}else{if(A instanceof Array){var C=0;for(var B=0;B<A.length;B++){if(this.register(A[B])){C++}}if(C>0){return true}}else{return false}}},find:function(A){if(A instanceof SCROLLER.widget.Overlay){for(var C=0;C<this.overlays.length;C++){if(this.overlays[C]==A){return this.overlays[C]}}}else{if(typeof A=="string"){for(var B=0;B<this.overlays.length;B++){if(this.overlays[B].id==A){return this.overlays[B]}}}}return null},compareZIndexDesc:function(D,C){var B=D.cfg.getProperty("zIndex");var A=C.cfg.getProperty("zIndex");if(B>A){return -1}else{if(B<A){return 1}else{return 0}}},showAll:function(){for(var A=0;A<this.overlays.length;A++){this.overlays[A].show()}},hideAll:function(){for(var A=0;A<this.overlays.length;A++){this.overlays[A].hide()}},toString:function(){return"OverlayManager"}};SCROLLER.util.KeyListener=function(A,F,B,C){if(!C){C=SCROLLER.util.KeyListener.KEYDOWN}var D=new SCROLLER.util.CustomEvent("keyPressed");this.enabledEvent=new SCROLLER.util.CustomEvent("enabled");this.disabledEvent=new SCROLLER.util.CustomEvent("disabled");if(typeof A=="string"){A=document.getElementById(A)}if(typeof B=="function"){D.subscribe(B)}else{D.subscribe(B.fn,B.scope,B.correctScope)}function E(J,I){var G=J.charCode||J.keyCode;if(!F.shift){F.shift=false}if(!F.alt){F.alt=false}if(!F.ctrl){F.ctrl=false}if(J.shiftKey==F.shift&&J.altKey==F.alt&&J.ctrlKey==F.ctrl){if(F.keys instanceof Array){for(var H=0;H<F.keys.length;H++){if(G==F.keys[H]){D.fire(G,J);break}}}else{if(G==F.keys){D.fire(G,J)}}}}this.enable=function(){if(!this.enabled){SCROLLER.util.Event.addListener(A,C,E);this.enabledEvent.fire(F)}this.enabled=true};this.disable=function(){if(this.enabled){SCROLLER.util.Event.removeListener(A,C,E);this.disabledEvent.fire(F)}this.enabled=false};this.toString=function(){return"KeyListener ["+F.keys+"] "+A.tagName+(A.id?"["+A.id+"]":"")}};SCROLLER.util.KeyListener.KEYDOWN="keydown";SCROLLER.util.KeyListener.KEYUP="keyup";SCROLLER.util.KeyListener.prototype.enabled=null;SCROLLER.util.KeyListener.prototype.enable=function(){};SCROLLER.util.KeyListener.prototype.disable=function(){};SCROLLER.util.KeyListener.prototype.enabledEvent=null;SCROLLER.util.KeyListener.prototype.disabledEvent=null;SCROLLER.widget.Tooltip=function(B,A){SCROLLER.widget.Tooltip.superclass.constructor.call(this,B,A)};SCROLLER.extend(SCROLLER.widget.Tooltip,SCROLLER.widget.Overlay);SCROLLER.widget.Tooltip.CSS_TOOLTIP="tt";SCROLLER.widget.Tooltip.prototype.init=function(B,A){if(document.readyState&&document.readyState!="complete"){var C=function(){this.init(B,A)};SCROLLER.util.Event.addListener(window,"load",C,this,true)}else{SCROLLER.widget.Tooltip.superclass.init.call(this,B);this.beforeInitEvent.fire(SCROLLER.widget.Tooltip);SCROLLER.util.Dom.addClass(this.element,SCROLLER.widget.Tooltip.CSS_TOOLTIP);if(A){this.cfg.applyConfig(A,true)}this.cfg.queueProperty("visible",false);this.cfg.queueProperty("constraintoviewport",true);this.setBody("");this.render(this.cfg.getProperty("container"));this.initEvent.fire(SCROLLER.widget.Tooltip)}};SCROLLER.widget.Tooltip.prototype.initDefaultConfig=function(){SCROLLER.widget.Tooltip.superclass.initDefaultConfig.call(this);this.cfg.addProperty("preventoverlap",{value:true,validator:this.cfg.checkBoolean,supercedes:["x","y","xy"]});this.cfg.addProperty("showdelay",{value:200,handler:this.configShowDelay,validator:this.cfg.checkNumber});this.cfg.addProperty("autodismissdelay",{value:5000,handler:this.configAutoDismissDelay,validator:this.cfg.checkNumber});this.cfg.addProperty("hidedelay",{value:250,handler:this.configHideDelay,validator:this.cfg.checkNumber});this.cfg.addProperty("text",{handler:this.configText,suppressEvent:true});this.cfg.addProperty("container",{value:document.body,handler:this.configContainer})};SCROLLER.widget.Tooltip.prototype.configText=function(B,A,C){var D=A[0];if(D){this.setBody(D)}};SCROLLER.widget.Tooltip.prototype.configContainer=function(C,B,D){var A=B[0];if(typeof A=="string"){this.cfg.setProperty("container",document.getElementById(A),true)}};SCROLLER.widget.Tooltip.prototype.configContext=function(E,B,F){var C=B[0];if(C){if(!(C instanceof Array)){if(typeof C=="string"){this.cfg.setProperty("context",[document.getElementById(C)],true)}else{this.cfg.setProperty("context",[C],true)}C=this.cfg.getProperty("context")}if(this._context){for(var H=0;H<this._context.length;++H){var D=this._context[H];SCROLLER.util.Event.removeListener(D,"mouseover",this.onContextMouseOver);SCROLLER.util.Event.removeListener(D,"mousemove",this.onContextMouseMove);SCROLLER.util.Event.removeListener(D,"mouseout",this.onContextMouseOut)}}this._context=C;for(var G=0;G<this._context.length;++G){var A=this._context[G];SCROLLER.util.Event.addListener(A,"mouseover",this.onContextMouseOver,this);SCROLLER.util.Event.addListener(A,"mousemove",this.onContextMouseMove,this);SCROLLER.util.Event.addListener(A,"mouseout",this.onContextMouseOut,this)}}};SCROLLER.widget.Tooltip.prototype.onContextMouseMove=function(B,A){A.pageX=SCROLLER.util.Event.getPageX(B);A.pageY=SCROLLER.util.Event.getPageY(B)};SCROLLER.widget.Tooltip.prototype.onContextMouseOver=function(C,B){if(B.hideProcId){clearTimeout(B.hideProcId);B.hideProcId=null}var A=this;SCROLLER.util.Event.addListener(A,"mousemove",B.onContextMouseMove,B);if(A.title){B._tempTitle=A.title;A.title=""}B.showProcId=B.doShow(C,A)};SCROLLER.widget.Tooltip.prototype.onContextMouseOut=function(C,B){var A=this;if(B._tempTitle){A.title=B._tempTitle;B._tempTitle=null}if(B.showProcId){clearTimeout(B.showProcId);B.showProcId=null}if(B.hideProcId){clearTimeout(B.hideProcId);B.hideProcId=null}B.hideProcId=setTimeout(function(){B.hide()},B.cfg.getProperty("hidedelay"))};SCROLLER.widget.Tooltip.prototype.doShow=function(C,A){var D=25;if(this.browser=="opera"&&A.tagName=="A"){D+=12}var B=this;return setTimeout(function(){if(B._tempTitle){B.setBody(B._tempTitle)}else{B.cfg.refireEvent("text")}B.moveTo(B.pageX,B.pageY+D);if(B.cfg.getProperty("preventoverlap")){B.preventOverlap(B.pageX,B.pageY)}SCROLLER.util.Event.removeListener(A,"mousemove",B.onContextMouseMove);B.show();B.hideProcId=B.doHide()},this.cfg.getProperty("showdelay"))};SCROLLER.widget.Tooltip.prototype.doHide=function(){var A=this;return setTimeout(function(){A.hide()},this.cfg.getProperty("autodismissdelay"))};SCROLLER.widget.Tooltip.prototype.preventOverlap=function(E,D){var A=this.element.offsetHeight;var B=SCROLLER.util.Dom.getRegion(this.element);B.top-=5;B.left-=5;B.right+=5;B.bottom+=5;var C=new SCROLLER.util.Point(E,D);if(B.contains(C)){this.cfg.setProperty("y",(D-A-5))}};SCROLLER.widget.Tooltip.prototype.toString=function(){return"Tooltip "+this.id};SCROLLER.widget.Panel=function(B,A){SCROLLER.widget.Panel.superclass.constructor.call(this,B,A)};SCROLLER.extend(SCROLLER.widget.Panel,SCROLLER.widget.Overlay);SCROLLER.widget.Panel.CSS_PANEL="panel";SCROLLER.widget.Panel.CSS_PANEL_CONTAINER="panel-container";SCROLLER.widget.Panel.prototype.showMaskEvent=null;SCROLLER.widget.Panel.prototype.hideMaskEvent=null;SCROLLER.widget.Panel.prototype.init=function(B,A){SCROLLER.widget.Panel.superclass.init.call(this,B);this.beforeInitEvent.fire(SCROLLER.widget.Panel);SCROLLER.util.Dom.addClass(this.element,SCROLLER.widget.Panel.CSS_PANEL);this.buildWrapper();if(A){this.cfg.applyConfig(A,true)}this.beforeRenderEvent.subscribe(function(){var D=this.cfg.getProperty("draggable");if(D){if(!this.header){this.setHeader("&nbsp;")}}},this,true);var C=this;this.showMaskEvent.subscribe(function(){var D=function(E){if(E.tagName=="A"||E.tagName=="BUTTON"||E.tagName=="SELECT"||E.tagName=="INPUT"||E.tagName=="TEXTAREA"||E.tagName=="FORM"){if(!SCROLLER.util.Dom.isAncestor(C.element,E)){SCROLLER.util.Event.addListener(E,"focus",E.blur);return true}}else{return false}};this.focusableElements=SCROLLER.util.Dom.getElementsBy(D)},this,true);this.hideMaskEvent.subscribe(function(){for(var E=0;E<this.focusableElements.length;E++){var D=this.focusableElements[E];SCROLLER.util.Event.removeListener(D,"focus",D.blur)}},this,true);this.initEvent.fire(SCROLLER.widget.Panel)};SCROLLER.widget.Panel.prototype.initEvents=function(){SCROLLER.widget.Panel.superclass.initEvents.call(this);this.showMaskEvent=new SCROLLER.util.CustomEvent("showMask");this.hideMaskEvent=new SCROLLER.util.CustomEvent("hideMask");this.dragEvent=new SCROLLER.util.CustomEvent("drag")};SCROLLER.widget.Panel.prototype.initDefaultConfig=function(){SCROLLER.widget.Panel.superclass.initDefaultConfig.call(this);this.cfg.addProperty("close",{value:true,handler:this.configClose,validator:this.cfg.checkBoolean,supercedes:["visible"]});this.cfg.addProperty("draggable",{value:true,handler:this.configDraggable,validator:this.cfg.checkBoolean,supercedes:["visible"]});this.cfg.addProperty("underlay",{value:"shadow",handler:this.configUnderlay,supercedes:["visible"]});this.cfg.addProperty("modal",{value:false,handler:this.configModal,validator:this.cfg.checkBoolean,supercedes:["visible"]});this.cfg.addProperty("keylisteners",{handler:this.configKeyListeners,suppressEvent:true,supercedes:["visible"]})};SCROLLER.widget.Panel.prototype.configClose=function(B,A,D){var E=A[0];var C=function(G,F){F.hide()};if(E){if(!this.close){this.close=document.createElement("DIV");SCROLLER.util.Dom.addClass(this.close,"close");if(this.isSecure){SCROLLER.util.Dom.addClass(this.close,"secure")}else{SCROLLER.util.Dom.addClass(this.close,"nonsecure")}this.close.innerHTML="&nbsp;";this.innerElement.appendChild(this.close);SCROLLER.util.Event.addListener(this.close,"click",C,this)}else{this.close.style.display="block"}}else{if(this.close){this.close.style.display="none"}}};SCROLLER.widget.Panel.prototype.configDraggable=function(B,A,C){var D=A[0];if(D){if(this.header){SCROLLER.util.Dom.setStyle(this.header,"cursor","move");this.registerDragDrop()}}else{if(this.dd){this.dd.unreg()}if(this.header){SCROLLER.util.Dom.setStyle(this.header,"cursor","auto")}}};SCROLLER.widget.Panel.prototype.configUnderlay=function(B,A,C){var D=A[0];switch(D.toLowerCase()){case"shadow":SCROLLER.util.Dom.removeClass(this.element,"matte");SCROLLER.util.Dom.addClass(this.element,"shadow");if(!this.underlay){this.underlay=document.createElement("DIV");this.underlay.className="underlay";this.underlay.innerHTML="&nbsp;";this.element.appendChild(this.underlay)}this.sizeUnderlay();break;case"matte":SCROLLER.util.Dom.removeClass(this.element,"shadow");SCROLLER.util.Dom.addClass(this.element,"matte");break;default:SCROLLER.util.Dom.removeClass(this.element,"shadow");SCROLLER.util.Dom.removeClass(this.element,"matte");break}};SCROLLER.widget.Panel.prototype.configModal=function(B,A,D){var C=A[0];if(C){this.buildMask();if(!SCROLLER.util.Config.alreadySubscribed(this.showEvent,this.showMask,this)){this.showEvent.subscribe(this.showMask,this,true)}if(!SCROLLER.util.Config.alreadySubscribed(this.hideEvent,this.hideMask,this)){this.hideEvent.subscribe(this.hideMask,this,true)}if(!SCROLLER.util.Config.alreadySubscribed(SCROLLER.widget.Overlay.windowResizeEvent,this.sizeMask,this)){SCROLLER.widget.Overlay.windowResizeEvent.subscribe(this.sizeMask,this,true)}}else{this.beforeShowEvent.unsubscribe(this.showMask,this);this.hideEvent.unsubscribe(this.hideMask,this);SCROLLER.widget.Overlay.windowResizeEvent.unsubscribe(this.sizeMask)}};SCROLLER.widget.Panel.prototype.configKeyListeners=function(D,A,F){var C=A[0];if(C){if(C instanceof Array){for(var B=0;B<C.length;B++){var E=C[B];if(!SCROLLER.util.Config.alreadySubscribed(this.showEvent,E.enable,E)){this.showEvent.subscribe(E.enable,E,true)}if(!SCROLLER.util.Config.alreadySubscribed(this.hideEvent,E.disable,E)){this.hideEvent.subscribe(E.disable,E,true);this.destroyEvent.subscribe(E.disable,E,true)}}}else{if(!SCROLLER.util.Config.alreadySubscribed(this.showEvent,C.enable,C)){this.showEvent.subscribe(C.enable,C,true)}if(!SCROLLER.util.Config.alreadySubscribed(this.hideEvent,C.disable,C)){this.hideEvent.subscribe(C.disable,C,true);this.destroyEvent.subscribe(C.disable,C,true)}}}};SCROLLER.widget.Panel.prototype.buildWrapper=function(){var F=this.element.parentNode;var A=this.element.cloneNode(true);this.innerElement=A;this.innerElement.style.visibility="inherit";SCROLLER.util.Dom.addClass(this.innerElement,SCROLLER.widget.Panel.CSS_PANEL);var E=document.createElement("DIV");E.className=SCROLLER.widget.Panel.CSS_PANEL_CONTAINER;E.id=A.id+"_c";E.appendChild(A);if(F){F.replaceChild(E,this.element)}this.element=E;var C=this.innerElement.childNodes;if(C){for(var B=0;B<C.length;B++){var D=C[B];switch(D.className){case SCROLLER.widget.Module.CSS_HEADER:this.header=D;break;case SCROLLER.widget.Module.CSS_BODY:this.body=D;break;case SCROLLER.widget.Module.CSS_FOOTER:this.footer=D;break}}}this.initDefaultConfig()};SCROLLER.widget.Panel.prototype.sizeUnderlay=function(){if(this.underlay&&this.browser!="gecko"&&this.browser!="safari"){this.underlay.style.width=this.innerElement.offsetWidth+"px";this.underlay.style.height=this.innerElement.offsetHeight+"px"}};SCROLLER.widget.Panel.prototype.onDomResize=function(C,B){SCROLLER.widget.Panel.superclass.onDomResize.call(this,C,B);var A=this;setTimeout(function(){A.sizeUnderlay()},0)};SCROLLER.widget.Panel.prototype.registerDragDrop=function(){if(this.header){this.dd=new SCROLLER.util.DD(this.element.id,this.id);if(!this.header.id){this.header.id=this.id+"_h"}this.mask.style.display="block";this.showMaskEvent.fire()}};SCROLLER.widget.Dialog=function(B,A){SCROLLER.widget.Dialog.superclass.constructor.call(this,B,A)};SCROLLER.extend(SCROLLER.widget.Dialog,SCROLLER.widget.Panel);SCROLLER.widget.Dialog.CSS_DIALOG="dialog";SCROLLER.widget.Dialog.prototype.beforeSubmitEvent=null;SCROLLER.widget.Dialog.prototype.submitEvent=null;SCROLLER.widget.Dialog.prototype.manualSubmitEvent=null;SCROLLER.widget.Dialog.prototype.asyncSubmitEvent=null;SCROLLER.widget.Dialog.prototype.initDefaultConfig=function(){SCROLLER.widget.Dialog.superclass.initDefaultConfig.call(this);this.callback={success:null,failure:null,argument:null};this.doSubmit=function(){};this.cfg.addProperty("postmethod",{value:"async",validator:function(A){if(A!="form"&&A!="async"&&A!="none"&&A!="manual"){return false}else{return true}}});this.cfg.addProperty("buttons",{value:"none",handler:this.configButtons})};SCROLLER.widget.Dialog.prototype.initEvents=function(){SCROLLER.widget.Dialog.superclass.initEvents.call(this);this.beforeSubmitEvent=new SCROLLER.util.CustomEvent("beforeSubmit");this.submitEvent=new SCROLLER.util.CustomEvent("submit");this.manualSubmitEvent=new SCROLLER.util.CustomEvent("manualSubmit");this.asyncSubmitEvent=new SCROLLER.util.CustomEvent("asyncSubmit");this.formSubmitEvent=new SCROLLER.util.CustomEvent("formSubmit");this.cancelEvent=new SCROLLER.util.CustomEvent("cancel")};SCROLLER.widget.Dialog.prototype.init=function(B,A){SCROLLER.widget.Dialog.superclass.init.call(this,B);this.beforeInitEvent.fire(SCROLLER.widget.Dialog);SCROLLER.util.Dom.addClass(this.element,SCROLLER.widget.Dialog.CSS_DIALOG);this.cfg.setProperty("visible",false);if(A){this.cfg.applyConfig(A,true)}this.renderEvent.subscribe(this.registerForm,this,true);this.showEvent.subscribe(this.focusFirst,this,true);this.beforeHideEvent.subscribe(this.blurButtons,this,true);this.beforeRenderEvent.subscribe(function(){var C=this.cfg.getProperty("buttons");if(C&&C!="none"){if(!this.footer){this.setFooter("")}}},this,true);this.initEvent.fire(SCROLLER.widget.Dialog)};SCROLLER.widget.Dialog.prototype.registerForm=function(){var D=this.element.getElementsByTagName("FORM")[0];this.form=D;if(this.cfg.getProperty("modal")&&this.form){var C=this;var B=this.firstFormElement||this.firstButton;if(B){this.preventBackTab=new SCROLLER.util.KeyListener(B,{shift:true,keys:9},{fn:C.focusLast,scope:C,correctScope:true});this.showEvent.subscribe(this.preventBackTab.enable,this.preventBackTab,true);this.hideEvent.subscribe(this.preventBackTab.disable,this.preventBackTab,true)}var E=this.lastButton||this.lastFormElement;if(E){this.preventTabOut=new SCROLLER.util.KeyListener(E,{shift:false,keys:9},{fn:C.focusFirst,scope:C,correctScope:true});this.showEvent.subscribe(this.preventTabOut.enable,this.preventTabOut,true);this.hideEvent.subscribe(this.preventTabOut.disable,this.preventTabOut,true)}}};SCROLLER.widget.Dialog.prototype.configButtons=function(D,B,G){var E=B[0];if(E!="none"){this.buttonSpan=null;this.buttonSpan=document.createElement("SPAN");this.buttonSpan.className="button-group";for(var A=0;A<E.length;A++){var C=E[A];var F=document.createElement("BUTTON");F.setAttribute("type","button");if(C.isDefault){F.className="default";this.defaultHtmlButton=F}F.appendChild(document.createTextNode(C.text));SCROLLER.util.Event.addListener(F,"click",C.handler,this,true);this.buttonSpan.appendChild(F);C.htmlButton=F;if(A===0){this.firstButton=C.htmlButton}if(A==(E.length-1)){this.lastButton=C.htmlButton}}this.setFooter(this.buttonSpan);this.cfg.refireEvent("iframe");this.cfg.refireEvent("underlay")}else{if(this.buttonSpan){if(this.buttonSpan.parentNode){this.buttonSpan.parentNode.removeChild(this.buttonSpan)}this.buttonSpan=null;this.firstButton=null;this.lastButton=null;this.defaultHtmlButton=null}}};SCROLLER.widget.Dialog.prototype.configOnSuccess=function(B,A,C){};SCROLLER.widget.Dialog.prototype.configOnFailure=function(B,A,C){};SCROLLER.widget.Dialog.prototype.doSubmit=function(){};SCROLLER.widget.Dialog.prototype.focusFirst=function(B,A,D){if(A){var C=A[1];if(C){SCROLLER.util.Event.stopEvent(C)}}if(this.firstFormElement){this.firstFormElement.focus()}else{this.focusDefaultButton()}};SCROLLER.widget.Dialog.prototype.focusLast=function(B,A,E){if(A){var D=A[1];if(D){SCROLLER.util.Event.stopEvent(D)}}var C=this.cfg.getProperty("buttons");if(C&&C instanceof Array){this.focusLastButton()}else{if(this.lastFormElement){this.lastFormElement.focus()}}};SCROLLER.widget.Dialog.prototype.focusDefaultButton=function(){if(this.defaultHtmlButton){this.defaultHtmlButton.focus()}};SCROLLER.widget.Dialog.prototype.blurButtons=function(){var B=this.cfg.getProperty("buttons");if(B&&B instanceof Array){var A=B[0].htmlButton;if(A){A.blur()}}};SCROLLER.widget.Dialog.prototype.focusFirstButton=function(){var B=this.cfg.getProperty("buttons");if(B&&B instanceof Array){var A=B[0].htmlButton;if(A){A.focus()}}};SCROLLER.widget.Dialog.prototype.focusLastButton=function(){var B=this.cfg.getProperty("buttons");if(B&&B instanceof Array){var A=B[B.length-1].htmlButton;if(A){A.focus()}}};SCROLLER.widget.Dialog.prototype.validate=function(){return true};SCROLLER.widget.Dialog.prototype.submit=function(){if(this.validate()){this.beforeSubmitEvent.fire();this.doSubmit();this.submitEvent.fire();this.hide();return true}else{return false}};SCROLLER.widget.Dialog.prototype.cancel=function(){this.cancelEvent.fire();this.hide()};SCROLLER.widget.Dialog.prototype.getData=function(){var C=this.form;var G={};if(C){for(var H in this.form){var L=C[H];if(L){if(L.tagName){switch(L.tagName){case"INPUT":switch(L.type){case"checkbox":G[H]=L.checked;break;case"textbox":case"text":case"hidden":G[H]=L.value;break}break;case"TEXTAREA":G[H]=L.value;break;case"SELECT":var F=[];for(var M=0;M<L.options.length;M++){var I=L.options[M];if(I.selected){var J=I.value;if(!J||J===""){J=I.text}F[F.length]=J}}G[H]=F;break}}else{if(L[0]&&L[0].tagName){switch(L[0].tagName){case"INPUT":switch(L[0].type){case"radio":for(var A=0;A<L.length;A++){var D=L[A];if(D.checked){G[D.name]=D.value;break}}break;case"checkbox":var E=[];for(var K=0;K<L.length;K++){var B=L[K];if(B.checked){E[E.length]=B.value}}G[L[0].name]=E;break}}}}}}}return G};SCROLLER.widget.Dialog.prototype.toString=function(){return"Dialog "+this.id};SCROLLER.widget.SimpleDialog=function(B,A){SCROLLER.widget.SimpleDialog.superclass.constructor.call(this,B,A)};SCROLLER.extend(SCROLLER.widget.SimpleDialog,SCROLLER.widget.Dialog);SCROLLER.widget.SimpleDialog.ICON_BLOCK="nt/ic/ut/bsc/blck16_1.gif";SCROLLER.widget.SimpleDialog.ICON_ALARM="nt/ic/ut/bsc/alrt16_1.gif";SCROLLER.widget.SimpleDialog.ICON_HELP="nt/ic/ut/bsc/hlp16_1.gif";SCROLLER.widget.SimpleDialog.ICON_INFO="nt/ic/ut/bsc/info16_1.gif";SCROLLER.widget.SimpleDialog.ICON_WARN="nt/ic/ut/bsc/warn16_1.gif";SCROLLER.widget.SimpleDialog.ICON_TIP="nt/ic/ut/bsc/tip16_1.gif";SCROLLER.widget.SimpleDialog.CSS_SIMPLEDIALOG="simple-dialog";SCROLLER.widget.SimpleDialog.prototype.initDefaultConfig=function(){SCROLLER.widget.SimpleDialog.superclass.initDefaultConfig.call(this);this.cfg.addProperty("icon",{value:"none",handler:this.configIcon,suppressEvent:true});this.cfg.addProperty("text",{value:"",handler:this.configText,suppressEvent:true,supercedes:["icon"]})};SCROLLER.widget.SimpleDialog.prototype.init=function(B,A){SCROLLER.widget.SimpleDialog.superclass.init.call(this,B);this.beforeInitEvent.fire(SCROLLER.widget.SimpleDialog);SCROLLER.util.Dom.addClass(this.element,SCROLLER.widget.SimpleDialog.CSS_SIMPLEDIALOG);this.cfg.queueProperty("postmethod","manual");if(A){this.cfg.applyConfig(A,true)}this.beforeRenderEvent.subscribe(function(){if(!this.body){this.setBody("")}},this,true);this.initEvent.fire(SCROLLER.widget.SimpleDialog)};SCROLLER.widget.SimpleDialog.prototype.registerForm=function(){SCROLLER.widget.SimpleDialog.superclass.registerForm.call(this);this.form.innerHTML+='<input type="hidden" name="'+this.id+'" value=""/>'};SCROLLER.widget.SimpleDialog.prototype.configIcon=function(C,A,E){var B=A[0];if(B&&B!="none"){var D='<img src="'+this.imageRoot+B+'" class="icon" />';this.body.innerHTML=D+this.body.innerHTML}};SCROLLER.widget.SimpleDialog.prototype.configText=function(B,A,C){var D=A[0];if(D){this.setBody(D);this.cfg.refireEvent("icon")}};SCROLLER.widget.SimpleDialog.prototype.toString=function(){return"SimpleDialog "+this.id};SCROLLER.widget.ContainerEffect=function(B,E,D,A,C){if(!C){C=SCROLLER.util.Anim}this.overlay=B;this.attrIn=E;this.attrOut=D;this.targetElement=A||B.element;this.animClass=C};SCROLLER.widget.ContainerEffect.prototype.init=function(){this.beforeAnimateInEvent=new SCROLLER.util.CustomEvent("beforeAnimateIn");this.beforeAnimateOutEvent=new SCROLLER.util.CustomEvent("beforeAnimateOut");this.animateInCompleteEvent=new SCROLLER.util.CustomEvent("animateInComplete");this.animateOutCompleteEvent=new SCROLLER.util.CustomEvent("animateOutComplete");this.animIn=new this.animClass(this.targetElement,this.attrIn.attributes,this.attrIn.duration,this.attrIn.method);this.animIn.onStart.subscribe(this.handleStartAnimateIn,this);this.animIn.onTween.subscribe(this.handleTweenAnimateIn,this);this.animIn.onComplete.subscribe(this.handleCompleteAnimateIn,this);this.animOut=new this.animClass(this.targetElement,this.attrOut.attributes,this.attrOut.duration,this.attrOut.method);this.animOut.onStart.subscribe(this.handleStartAnimateOut,this);this.animOut.onTween.subscribe(this.handleTweenAnimateOut,this);this.animOut.onComplete.subscribe(this.handleCompleteAnimateOut,this)};SCROLLER.widget.ContainerEffect.prototype.animateIn=function(){this.beforeAnimateInEvent.fire();this.animIn.animate()};SCROLLER.widget.ContainerEffect.prototype.animateOut=function(){this.beforeAnimateOutEvent.fire();this.animOut.animate()};SCROLLER.widget.ContainerEffect.prototype.handleStartAnimateIn=function(B,A,C){};SCROLLER.widget.ContainerEffect.prototype.handleTweenAnimateIn=function(B,A,C){};SCROLLER.widget.ContainerEffect.prototype.handleCompleteAnimateIn=function(B,A,C){};SCROLLER.widget.ContainerEffect.prototype.handleStartAnimateOut=function(B,A,C){};SCROLLER.widget.ContainerEffect.prototype.handleTweenAnimateOut=function(B,A,C){};SCROLLER.widget.ContainerEffect.prototype.handleCompleteAnimateOut=function(B,A,C){};SCROLLER.widget.ContainerEffect.prototype.toString=function(){var A="ContainerEffect";if(this.overlay){A+=" ["+this.overlay.toString()+"]"}return A};SCROLLER.widget.ContainerEffect.FADE=function(A,B){var C=new SCROLLER.widget.ContainerEffect(A,{attributes:{opacity:{from:0,to:1}},duration:B,method:SCROLLER.util.Easing.easeIn},{attributes:{opacity:{to:0}},duration:B,method:SCROLLER.util.Easing.easeOut},A.element);C.handleStartAnimateIn=function(E,D,F){SCROLLER.util.Dom.addClass(F.overlay.element,"hide-select");if(!F.overlay.underlay){F.overlay.cfg.refireEvent("underlay")}if(F.overlay.underlay){F.initialUnderlayOpacity=SCROLLER.util.Dom.getStyle(F.overlay.underlay,"opacity");F.overlay.underlay.style.filter=null}SCROLLER.util.Dom.setStyle(F.overlay.element,"visibility","visible");SCROLLER.util.Dom.setStyle(F.overlay.element,"opacity",0)};C.handleCompleteAnimateIn=function(E,D,F){SCROLLER.util.Dom.removeClass(F.overlay.element,"hide-select");if(F.overlay.element.style.filter){F.overlay.element.style.filter=null}if(F.overlay.underlay){SCROLLER.util.Dom.setStyle(F.overlay.underlay,"opacity",F.initialUnderlayOpacity)}F.overlay.cfg.refireEvent("iframe");F.animateInCompleteEvent.fire()};C.handleStartAnimateOut=function(E,D,F){SCROLLER.util.Dom.addClass(F.overlay.element,"hide-select");if(F.overlay.underlay){F.overlay.underlay.style.filter=null}};C.handleCompleteAnimateOut=function(E,D,F){SCROLLER.util.Dom.removeClass(F.overlay.element,"hide-select");if(F.overlay.element.style.filter){F.overlay.element.style.filter=null}SCROLLER.util.Dom.setStyle(F.overlay.element,"visibility","hidden");SCROLLER.util.Dom.setStyle(F.overlay.element,"opacity",1);F.overlay.cfg.refireEvent("iframe");F.animateOutCompleteEvent.fire()};C.init();return C};SCROLLER.widget.ContainerEffect.SLIDE=function(C,E){var B=C.cfg.getProperty("x")||SCROLLER.util.Dom.getX(C.element);var G=C.cfg.getProperty("y")||SCROLLER.util.Dom.getY(C.element);var F=SCROLLER.util.Dom.getClientWidth();var D=C.element.offsetWidth;var A=new SCROLLER.widget.ContainerEffect(C,{attributes:{points:{to:[B,G]}},duration:E,method:SCROLLER.util.Easing.easeIn},{attributes:{points:{to:[(F+25),G]}},duration:E,method:SCROLLER.util.Easing.easeOut},C.element,SCROLLER.util.Motion);A.handleStartAnimateIn=function(I,H,J){J.overlay.element.style.left=(-25-D)+"px";J.overlay.element.style.top=G+"px"};A.handleTweenAnimateIn=function(K,J,L){var M=SCROLLER.util.Dom.getXY(L.overlay.element);var I=M[0];var H=M[1];if(SCROLLER.util.Dom.getStyle(L.overlay.element,"visibility")=="hidden"&&I<B){SCROLLER.util.Dom.setStyle(L.overlay.element,"visibility","visible")}L.overlay.cfg.setProperty("xy",[I,H],true);L.overlay.cfg.refireEvent("iframe")};A.handleCompleteAnimateIn=function(I,H,J){J.overlay.cfg.setProperty("xy",[B,G],true);J.startX=B;J.startY=G;J.overlay.cfg.refireEvent("iframe");J.animateInCompleteEvent.fire()};A.handleStartAnimateOut=function(K,J,L){var M=SCROLLER.util.Dom.getViewportWidth();var O=SCROLLER.util.Dom.getXY(L.overlay.element);var I=O[0];var N=O[1];var H=L.animOut.attributes.points.to;L.animOut.attributes.points.to=[(M+25),N]};A.handleTweenAnimateOut=function(J,I,K){var M=SCROLLER.util.Dom.getXY(K.overlay.element);var H=M[0];var L=M[1];K.overlay.cfg.setProperty("xy",[H,L],true);K.overlay.cfg.refireEvent("iframe")};A.handleCompleteAnimateOut=function(J,H,K){SCROLLER.util.Dom.setStyle(K.overlay.element,"visibility","hidden");var I=K.overlay.element.offsetWidth;K.overlay.cfg.setProperty("xy",[B,G]);K.animateOutCompleteEvent.fire()};A.init();return A};(function(){var A=false;SCROLLER.namespace("News");SCROLLER.News.Reload=function(){if(A==false){this.refreshpage=setTimeout("location.reload(false)",600000);SCROLLER.util.Event.addListener(window,"blur",function(){clearTimeout(this.refreshpage);A=false});A=true}};SCROLLER.util.Event.addListener(window,"focus",SCROLLER.News.Reload)})();yui=window.yui||{};yui.CustomEvent=function(B,A){this.type=B;this.scope=A||window;this.subscribers=[];if(yui.Event){yui.Event.regCE(this)}};yui.CustomEvent.prototype.subscribe=function(B,A){this.subscribers.push(new yui.Subscriber(B,A))};yui.CustomEvent.prototype.unsubscribe=function(D,B){for(var A=0;A<this.subscribers.length;++A){var C=this.subscribers[A];if(C&&C.contains(D,B)){this._delete(A)}}};yui.CustomEvent.prototype.fire=function(){for(var A=0;A<this.subscribers.length;++A){var B=this.subscribers[A];if(B){B.fn.call(this.scope,this.type,arguments,B.obj)}}};yui.CustomEvent.prototype.unsubscribeAll=function(){for(var A=0;A<this.subscribers.length;++A){this._delete(A)}};yui.CustomEvent.prototype._delete=function(A){var B=this.subscribers[A];if(B){delete B.fn;delete B.obj}delete this.subscribers[A]};yui.Subscriber=function(B,A){this.fn=B;this.obj=A||null};yui.Subscriber.prototype.contains=function(A,B){return(this.fn==A&&this.obj==B)};yui=window.yui||{};yui.Event=new function(){var A=this;this.loadComplete=false;this.listeners=[];this.delayedListeners=[];this.unloadListeners=[];this.customEvents=[];this.legacyEvents=[];this.legacyHandlers=[];this.EL=0;this.TYPE=1;this.FN=2;this.WFN=3;this.SCOPE=3;this.isSafari=(navigator.userAgent.match(/safari/gi));this.isIE=(!this.isSafari&&navigator.userAgent.match(/msie/gi));this.addListener=function(C,G,I,F){if(this._isValidCollection(C)){for(var H=0;H<C.length;++H){this.on(C[H],G,I,F)}return }else{if(typeof C=="string"){if(this.loadComplete){C=this.getEl(C)}else{this.delayedListeners[this.delayedListeners.length]=[C,G,I,F];return }}}if(!C){return }if("unload"==G&&F!==this){this.unloadListeners[this.unloadListeners.length]=[C,G,I,F];return }var E=function(K){return I.call(C,A.getEvent(K),F)};var J=[C,G,I,E];var D=this.listeners.length;this.listeners[D]=J;if(this.useLegacyEvent(C,G)){var B=this.getLegacyIndex(C,G);if(B==-1){B=this.legacyEvents.length;this.legacyEvents[B]=[C,G,C["on"+G]];this.legacyHandlers[B]=[];C["on"+G]=function(K){A.fireLegacyEvent(A.getEvent(K),B)}}this.legacyHandlers[B].push(D)}else{if(C.addEventListener){C.addEventListener(G,E,false)}else{if(C.attachEvent){C.attachEvent("on"+G,E)}}}};this.on=this.addListener;this.fireLegacyEvent=function(G,B){var E=true;var F=A.legacyEvents[0];var D=A.legacyHandlers[B];for(i=0;i<D.length;++i){var H=D[i];if(H){var C=A.listeners[H][A.WFN].call(F,G);E=(E&&C)}}return E};this.getLegacyIndex=function(D,E){for(var C=0;C<this.legacyEvents.length;++C){var B=this.legacyEvents[C];if(B&&B[0]==D&&B[1]==E){return C}}return -1};this.useLegacyEvent=function(B,C){return((!B.addEventListener&&!B.attachEvent)||(C=="click"&&this.isSafari))};this.removeListener=function(G,F,E){if(typeof G=="string"){G=this.getEl(G)}else{if(this._isValidCollection(G)){for(var D=0;D<G.length;++D){this.removeListener(G[D],F,E)}return }}var C=null;var B=this._getCacheIndex(G,F,E);if(B>=0){C=this.listeners[B]}if(!G||!C){return false}if(G.removeEventListener){G.removeEventListener(F,C[this.WFN],false)}else{if(G.detachEvent){G.detachEvent("on"+F,C[this.WFN])}}delete this.listeners[B][this.WFN];delete this.listeners[B][this.FN];delete this.listeners[B];return true};this.getTarget=function(D,B){var C=D.target||D.srcElement;if(B&&C&&"#text"==C.nodeName){return C.parentNode}else{return C}};this.getPageX=function(C){var B=C.pageX;if(!B&&0!==B){B=C.clientX||0;if(this.isIE){B+=this._getScrollLeft()}}return B};this.getPageY=function(B){var C=B.pageY;if(!C&&0!==C){C=B.clientY||0;if(this.isIE){C+=this._getScrollTop()}}return C};this.getRelatedTarget=function(C){var B=C.relatedTarget;if(!B){if(C.type=="mouseout"){B=C.toElement}else{if(C.type=="mouseover"){B=C.fromElement}}}return B};this.getTime=function(C){if(!C.time){var B=new Date().getTime();try{C.time=B}catch(D){return B}}return C.time};this.stopEvent=function(B){this.stopPropagation(B);this.preventDefault(B)};this.stopPropagation=function(B){if(B.stopPropagation){B.stopPropagation()}else{B.cancelBubble=true}};this.preventDefault=function(B){if(B.preventDefault){B.preventDefault()}else{B.returnValue=false}};this.getEvent=function(C){var B=C||window.event;if(!B){var D=this.getEvent.caller;while(D){B=D.arguments[0];if(B&&Event==B.constructor){break}D=D.caller}}return B};this.getCharCode=function(B){return B.charCode||(B.type=="keypress")?B.keyCode:0};this._getCacheIndex=function(E,F,D){for(var C=0;C<this.listeners.length;++C){var B=this.listeners[C];if(B&&B[this.FN]==D&&B[this.EL]==E&&B[this.TYPE]==F){return C}}return -1};this._isValidCollection=function(B){return(B&&B.length&&typeof B!="string"&&!B.alert&&!B.name&&!B.id&&typeof B[0]!="undefined")};this.elCache={};this.getEl=function(B){return document.getElementById(B)};this.clearCache=function(){for(i in this.elCache){delete this.elCache[i]}};this.regCE=function(B){this.customEvents.push(B)};this._load=function(B){A.loadComplete=true};this._tryPreloadAttach=function(){var D=!this.loadComplete;for(var B=0;B<this.delayedListeners.length;++B){var E=this.delayedListeners[B];if(E){var C=this.getEl(E[this.EL]);if(C){this.on(C,E[this.TYPE],E[this.FN],E[this.SCOPE]);delete this.delayedListeners[B]}}}if(D){setTimeout("yui.Event._tryPreloadAttach()",50)}};this._unload=function(E,D){for(var C=0;C<D.unloadListeners.length;++C){var B=D.unloadListeners[C];if(B){B[D.FN](D.getEvent(E),B[D.SCOPE])}}if(D.listeners&&D.listeners.length>0){for(C=0;C<D.listeners.length;++C){B=D.listeners[C];if(B){D.removeListener(B[D.EL],B[D.TYPE],B[D.FN])}}D.clearCache()}for(C=0;C<D.customEvents.length;++C){D.customEvents[C].unsubscribeAll();delete D.customEvents[C]}for(C=0;C<D.legacyEvents.length;++C){delete D.legacyEvents[C][0];delete D.legacyEvents[C]}};this._getScrollLeft=function(){return this._getScroll()[1]};this._getScrollTop=function(){return this._getScroll()[0]};this._getScroll=function(){var B=document.documentElement;db=document.body;if(B&&B.scrollTop){return[B.scrollTop,B.scrollLeft]}else{if(db){return[db.scrollTop,db.scrollLeft]}else{return[0,0]}}}};if(document&&document.body){yui.Event._load()}else{yui.Event.on(window,"load",yui.Event._load,yui.Event)}yui.Event.on(window,"unload",yui.Event._unload,yui.Event);yui.Event._tryPreloadAttach();
				
				
				SCROLLER.namespace("News");
				SCROLLER.News.Scroller=function(H){H=H||{};
				this.viewableArea=document.getElementById(H.viewableArea)||"ynscrollviewable";
				this.scrollerContainer=H.scrollerContainer||"ynscroll";
				this.indicatorContainer=H.indicatorContainer||"ynindcont";
				this.scrollButtonContainer=H.scrollButtonContainer||"scrollButtonContainer";
				this.delayTime=H.delayTime||10000;
				this.currentPane=0;
				this.autoScroll=null;
				//this.autoScrollOn=true;
				this.autoScrollOn=false;
				this.sclBtnLft="sclBtnLft";
				this.sclBtnRgt="sclBtnRgt";
				this.sclBtnClassOff="buttonOff";
				this.sclBtnClassOn="buttonOn";
				this.indicatorClassOff="off";
				this.indicatorClassOn="on";
				this.speed = 0.5;
				this.w=this.viewableArea.offsetWidth;
				this.viewableArea.scrollLeft="0px";
				var C=document.getElementById(this.scrollerContainer);
				var I=C.getElementsByTagName("div");
				var E=0;
				var G=I.length;
				for(var J=0;J<G;J++){
					var D=I[J].getAttribute("name");
					if((J===0)&&(D=="container")){
						var B=I[J];
					}
					if(D=="container"){
						var A=I[J].id;
						E++;
					}
				}
				this.maxpanes=E-1;
				this.max_width=this.w*this.maxpanes;
				var F=B.cloneNode(true);
				F.removeAttribute("id");
				F.setAttribute("name","duplicate");
				document.getElementById(this.scrollerContainer).appendChild(F);

document.write('<div class="dline_vert"></div>');
document.write('<div id="'+this.scrollButtonContainer+'">');
document.write('<div class="fscleft">');
document.write('<a href="/" class="'+this.sclBtnClassOff+'"><strong>Left Arrow</strong></a>');
document.write("</div>");
document.write('<div class="fscright">');
if(this.maxpanes>0){
	document.write('<a href="/" class="'+this.sclBtnClassOn+'"><strong>Right Arrow</strong></a>')
}else{
	if(this.maxpanes==0){
		document.write('<a href="/" class="'+this.sclBtnClassOff+'"><strong>Right Arrow</strong></a>')
	}
}
document.write("</div>");
document.write("</div>");

document.write('<div id="'+this.indicatorContainer+'" class="dots">');
	for(J=0;J<=this.maxpanes;J++){
		if(J==0){
			document.write('<a href="/" id="'+this.indicatorContainer+J+'" class="'+this.indicatorClassOn+'"><strong>Pane '+J+"</strong></a>")
			}
		else{
			document.write('<a href="/" id="'+this.indicatorContainer+J+'" class="'+this.indicatorClassOff+'"><strong>Pane '+J+"</strong></a>")
			}
	}
document.write("</div>");

SCROLLER.util.Event.onAvailable(this.scrollerContainer,this.init,this,true)};

SCROLLER.News.Scroller.prototype={
	init:function(){
		var E=document.getElementById(this.scrollButtonContainer);
		var G=E.getElementsByTagName("a");
		var D=G.length;
		for(var I=0;I<D;I++){
			if(I==0){
				var B=G[I];
				SCROLLER.util.Event.addListener(B,"click",this.prev,this,true);
			}
			else
			{
				if(I==1){
					var C=G[I];
					SCROLLER.util.Event.addListener(C,"click",this.next,this,true);
					}
			}
		}
		var F=document.getElementById(this.indicatorContainer);
		var J=F.getElementsByTagName("a");
		var H=J.length;
		for(var A=0;A<H;A++){
			J[A].cp=A;
			SCROLLER.util.Event.addListener(J[A],"click",this.indicators,this,true);
		}
		if(this.maxpanes!=0){
			this.autoStart()
		}
	},
	indicators:function(A){
		if(this.maxpanes!=0){
			this.stopInterval();
			this.currentPane=SCROLLER.util.Event.getTarget(A).cp;
			this.scrollToPane(this.currentPane)
		}
		SCROLLER.util.Event.preventDefault(A)
	},
	prev:function(A){
		if(this.currentPane<0){
			this.currentPane=0;
			SCROLLER.util.Event.preventDefault(A);
			return 
		}
		this.stopInterval();
		this.currentPane--;
		this.scrollToPane(this.currentPane);
		SCROLLER.util.Event.preventDefault(A)
	},
	next:function(A){
		if(this.currentPane==this.maxpanes){
			this.currentPane=this.maxpanes;
			SCROLLER.util.Event.preventDefault(A);
			return 
		}
		this.stopInterval();
		this.currentPane++;
		this.scrollToPane(this.currentPane);
		SCROLLER.util.Event.preventDefault(A)
	},
	changeStates:function(F){
		if(F==0){
			this.changeButtons("f")
		}
		else{
			this.changeButtons("m")
		}
		if(F>0){
			this.changeButtons("m")
		}
		if(F==this.maxpanes){
			this.changeButtons("l")
		}
		var D=0;
		while(D<=this.maxpanes){
			var A=this.indicatorContainer+D;
			var E=document.getElementById(A);
			E.className=this.indicatorClassOff;
			E.setAttribute("class",this.indicatorClassOff);
			D++
		}
		if(F>this.maxpanes){
			F=0;
			this.currentPane=0;
			this.changeButtons("f")
		}
		var B=this.indicatorContainer+F;
		var C=document.getElementById(B);
		C.className=this.indicatorClassOn;
		C.setAttribute("class",this.indicatorClassOn)
	},
	changeButtons:function(A){
		switch(A){
			case"f":
				this.bgPos(this.sclBtnLft,"off");
				this.bgPos(this.sclBtnRgt,"on");
			break;
			case"m":
				this.bgPos(this.sclBtnLft,"on");
				this.bgPos(this.sclBtnRgt,"on");
			break;
			case"l":
				this.bgPos(this.sclBtnLft,"on");
				this.bgPos(this.sclBtnRgt,"off");
			break;
			default:
				this.bgPos(this.sclBtnLft,"off");
				this.bgPos(this.sclBtnRgt,"on")
		}
	},
	bgPos:function(D,C){
		var E=document.getElementById(this.scrollButtonContainer);
		var A=E.getElementsByTagName("a");
		if(D==this.sclBtnLft){
			var B=A[0]
		}
		else{
			if(D==this.sclBtnRgt){
				var B=A[1]
			}
		}
		if(C=="off"){
			B.className=this.sclBtnClassOff+" "+this.classNm;
			B.setAttribute("class",this.sclBtnClassOff+" "+this.classNm)
		}
		else{
			if(C=="on"){
				B.className=this.sclBtnClassOn+" "+D;
				B.setAttribute("class",this.sclBtnClassOn+" "+this.classNm)}
		}
	},
	scrollToPane:function(A){
		if(A==-1){
			return 
		}
		this.currentPane=A;
		this.animate(A);
		this.changeStates(A)
	},
	animate:function(D){
		var A=D*this.w;
		var B={
			scroll:{
				to:[A,0]
			}
		};
		var C=new SCROLLER.util.Scroll(this.viewableArea,B,this.speed,SCROLLER.util.Easing.easeOut);
		if((this.autoScrollOn===true)&&(D>this.maxpanes)){
			C.onComplete.subscribe(this.setToZero);
			this.stopInterval();
			this.currentPane=0;
			this.changeStates(this.currentPane)
		}
		C.animate();
		return false
	},
	setToZero:function(){
			var A=this.getEl();
			A.scrollLeft=0
	},
	autoStart:function(){
		if(this.autoScrollOn){
			var A=function(B){
				return function(){
					B.scrollToPane(B.currentPane+1);
					B.autoStart()
				}
			};
		clearTimeout(this.autoScroll);
		this.autoScroll=setTimeout(A(this),this.delayTime)
		}
	},
	stopInterval:function(){
		if(this.autoScrollOn===true){
			clearTimeout(this.autoScroll);
			this.autoScrollOn=false
		}
	}
};
