2019-07-17 20:08:50 +00:00
/ *
2019-07-17 20:16:19 +00:00
Copyright ( c ) 2009 , Yahoo ! Inc . All rights reserved .
2019-07-17 20:08:50 +00:00
Code licensed under the BSD License :
http : //developer.yahoo.net/yui/license.txt
2019-07-17 20:16:19 +00:00
version : 2.7 . 0
2019-07-17 20:08:50 +00:00
* /
2019-07-17 20:16:19 +00:00
if ( typeof YAHOO == "undefined" || ! YAHOO ) { var YAHOO = { } ; } YAHOO . namespace = function ( ) { var A = arguments , E = null , C , B , D ; for ( C = 0 ; C < A . length ; C = C + 1 ) { D = ( "" + A [ C ] ) . split ( "." ) ; E = YAHOO ; for ( B = ( D [ 0 ] == "YAHOO" ) ? 1 : 0 ; B < D . length ; B = B + 1 ) { E [ D [ B ] ] = E [ D [ B ] ] || { } ; E = E [ D [ B ] ] ; } } return E ; } ; YAHOO . log = function ( D , A , C ) { var B = YAHOO . widget . Logger ; if ( B && B . log ) { return B . log ( D , A , C ) ; } else { return false ; } } ; YAHOO . register = function ( A , E , D ) { var I = YAHOO . env . modules , B , H , G , F , C ; if ( ! I [ A ] ) { I [ A ] = { versions : [ ] , builds : [ ] } ; } B = I [ A ] ; H = D . version ; G = D . build ; F = YAHOO . env . listeners ; B . name = A ; B . version = H ; B . build = G ; B . versions . push ( H ) ; B . builds . push ( G ) ; B . mainClass = E ; for ( C = 0 ; C < F . length ; C = C + 1 ) { F [ C ] ( B ) ; } if ( E ) { E . VERSION = H ; E . BUILD = G ; } else { YAHOO . log ( "mainClass is undefined for module " + A , "warn" ) ; } } ; YAHOO . env = YAHOO . env || { modules : [ ] , listeners : [ ] } ; YAHOO . env . getVersion = function ( A ) { return YAHOO . env . modules [ A ] || null ; } ; YAHOO . env . ua = function ( ) { var C = { ie : 0 , opera : 0 , gecko : 0 , webkit : 0 , mobile : null , air : 0 , caja : 0 } , B = navigator . userAgent , A ; if ( ( /KHTML/ ) . test ( B ) ) { C . webkit = 1 ; } A = B . match ( /AppleWebKit\/([^\s]*)/ ) ; if ( A && A [ 1 ] ) { C . webkit = parseFloat ( A [ 1 ] ) ; if ( / Mobile\// . test ( B ) ) { C . mobile = "Apple" ; } else { A = B . match ( /NokiaN[^\/]*/ ) ; if ( A ) { C . mobile = A [ 0 ] ; } } A = B . match ( /AdobeAIR\/([^\s]*)/ ) ; if ( A ) { C . air = A [ 0 ] ; } } if ( ! C . webkit ) { A = B . match ( /Opera[\s\/]([^\s]*)/ ) ; if ( A && A [ 1 ] ) { C . opera = parseFloat ( A [ 1 ] ) ; A = B . match ( /Opera Mini[^;]*/ ) ; if ( A ) { C . mobile = A [ 0 ] ; } } else { A = B . match ( /MSIE\s([^;]*)/ ) ; if ( A && A [ 1 ] ) { C . ie = parseFloat ( A [ 1 ] ) ; } else { A = B . match ( /Gecko\/([^\s]*)/ ) ; if ( A ) { C . gecko = 1 ; A = B . match ( /rv:([^\s\)]*)/ ) ; if ( A && A [ 1 ] ) { C . gecko = parseFloat ( A [ 1 ] ) ; } } } } } A = B . match ( /Caja\/([^\s]*)/ ) ; if ( A && A [ 1 ] ) { C . caja = parseFloat ( A [ 1 ] ) ; } return C ; } ( ) ; ( function ( ) { YAHOO . namespace ( "util" , "widget" , "example" ) ; if ( "undefined" !== typeof YAHOO _config ) { var B = YAHOO _config . listener , A = YAHOO . env . listeners , D = true , C ; if ( B ) { for ( C = 0 ; C < A . length ; C = C + 1 ) { if ( A [ C ] == B ) { D = false ; break ; } } if ( D ) { A . push ( B ) ; } } } } ) ( ) ; YAHOO . lang = YAHOO . lang || { } ; ( function ( ) { var B = YAHOO . lang , F = "[object Array]" , C = "[object Function]" , A = Object . prototype , E = [ "toString" , "valueOf" ] , D = { isArray : function ( G ) { return A . toString . apply ( G ) === F ; } , isBoolean : function ( G ) { return typeof G === "boolean" ; } , isFunction : function ( G ) { return A . toString . apply ( G ) === C ; } , isNull : function ( G ) { return G === null ; } , isNumber : function ( G ) { return typeof G === "number" && isFinite ( G ) ; } , isObject : function ( G ) { return ( G && ( typeof G === "object" || B . isFunction ( G ) ) ) || false ; } , isString : function ( G ) { return typeof G === "string" ; } , isUndefined : function ( G ) { return typeof G === "undefined" ; } , _IEEnumFix : ( YAHOO . env . ua . ie ) ? function ( I , H ) { var G , K , J ; for ( G = 0 ; G < E . length ; G = G + 1 ) { K = E [ G ] ; J = H [ K ] ; if ( B . isFunction ( J ) && J != A [ K ] ) { I [ K ] = J ; } } } : function ( ) { } , extend : function ( J , K , I ) { if ( ! K || ! J ) { throw new Error ( "extend failed, please check that " + "all dependencies are included." ) ; } var H = function ( ) { } , G ; H . prototype = K . prototype ; J . prototype = new H ( ) ; J . prototype . constructor = J ; J . superclass = K . prototype ; if ( K . prototype . constructor == A . constructor ) { K . prototype . constructor = K ; } if ( I ) { for ( G in I ) { if ( B . hasOwnProperty ( I , G ) ) { J . prototype [ G ] = I [ G ] ; } } B . _IEEnumFix ( J . prototype , I ) ; } } , augmentObject : function ( K , J ) { if ( ! J || ! K ) { throw new Error ( "Absorb failed, verify dependencies." ) ; } var G = arguments , I , L , H = G [ 2 ] ; if ( H && H !== true ) { for ( I = 2 ; I < G . length ; I = I + 1 ) { K [ G [ I ] ] = J [ G [ I ] ] ; } } else { for ( L in J ) { if ( H || ! ( L in K ) ) { K [ L ] = J [ L ] ; } } B . _IEEnumFix ( K , J ) ; } } , augmentProto : function ( J , I ) { if ( ! I || ! J ) { throw new Error ( "Augment failed, verify dependencies." ) ; } var G = [ J . prototype , I . prototype ] , H ; for ( H = 2 ; H < arguments . length ; H = H + 1 ) { G . push ( arguments [ H ] ) ; } B . augmentObject . apply ( this , G ) ; } , dump : function ( G , L ) { var I , K , N = [ ] , O = "{...}" , H = "f(){...}" , M = ", " , J = " => " ; if ( ! B . isObject ( G ) ) { return G + "" ; } else { if ( G instanceof Date || ( "nodeType" in G && "tagName" in G ) ) { return G ; } else { if ( B . isFunction ( G ) ) { return H ; } } } L = ( B . isNumber ( L ) ) ? L : 3 ; if ( B . isArray ( G ) ) { N . push ( "[" ) ; for ( I = 0 , K = G . length ; I < K ; I = I + 1 ) { if ( B . isObject ( G [ I ] ) ) { N . push ( ( L > 0 ) ? B . dump ( G [ I ] , L - 1 ) : O ) ; } else { N . push ( G [ I ] ) ; } N . push ( M ) ; } if ( N . length > 1 ) { N . pop ( ) ; } N . push ( "]" ) ; } else { N . push ( "{" ) ; for ( I in G ) { if ( B . hasOwnProperty ( G , I ) ) { N . push ( I + J ) ; if ( B . isObject ( G [ I ] ) ) { N . push ( ( L > 0 ) ? B . dump ( G [ I ] , L - 1 ) : O ) ; } else { N . push ( G [ I ] ) ; } N . push ( M ) ; } } if ( N . length > 1 ) { N . pop ( ) ; } N . push ( "}" ) ; } return N . join ( "" ) ; } , substitute : function ( V , H ,
} ; var P = function ( T , U , W ) { var V = W || "utf-8" ; return J ( "script" , { "id" : "yui__dyn_" + ( R ++ ) , "type" : "text/javascript" , "charset" : V , "src" : T } , U ) ; } ; var A = function ( T , U ) { return { tId : T . tId , win : T . win , data : T . data , nodes : T . nodes , msg : U , purge : function ( ) { D ( this . tId ) ; } } ; } ; var B = function ( T , W ) { var U = M [ W ] , V = ( S . isString ( T ) ) ? U . win . document . getElementById ( T ) : T ; if ( ! V ) { Q ( W , "target node not found: " + T ) ; } return V ; } ; var Q = function ( W , V ) { var T = M [ W ] ; if ( T . onFailure ) { var U = T . scope || T . win ; T . onFailure . call ( U , A ( T , V ) ) ; } } ; var C = function ( W ) { var T = M [ W ] ; T . finished = true ; if ( T . aborted ) { var V = "transaction " + W + " was aborted" ; Q ( W , V ) ; return ; } if ( T . onSuccess ) { var U = T . scope || T . win ; T . onSuccess . call ( U , A ( T ) ) ; } } ; var O = function ( V ) { var T = M [ V ] ; if ( T . onTimeout ) { var U = T . scope || T ; T . onTimeout . call ( U , A ( T ) ) ; } } ; var G = function ( V , Z ) { var U = M [ V ] ; if ( U . timer ) { U . timer . cancel ( ) ; } if ( U . aborted ) { var X = "transaction " + V + " was aborted" ; Q ( V , X ) ; return ; } if ( Z ) { U . url . shift ( ) ; if ( U . varName ) { U . varName . shift ( ) ; } } else { U . url = ( S . isString ( U . url ) ) ? [ U . url ] : U . url ; if ( U . varName ) { U . varName = ( S . isString ( U . varName ) ) ? [ U . varName ] : U . varName ; } } var c = U . win , b = c . document , a = b . getElementsByTagName ( "head" ) [ 0 ] , W ; if ( U . url . length === 0 ) { if ( U . type === "script" && N . webkit && N . webkit < 420 && ! U . finalpass && ! U . varName ) { var Y = P ( null , U . win , U . charset ) ; Y . innerHTML = 'YAHOO.util.Get._finalize("' + V + '");' ; U . nodes . push ( Y ) ; a . appendChild ( Y ) ; } else { C ( V ) ; } return ; } var T = U . url [ 0 ] ; if ( ! T ) { U . url . shift ( ) ; return G ( V ) ; } if ( U . timeout ) { U . timer = S . later ( U . timeout , U , O , V ) ; } if ( U . type === "script" ) { W = P ( T , c , U . charset ) ; } else { W = I ( T , c , U . charset ) ; } F ( U . type , W , V , T , c , U . url . length ) ; U . nodes . push ( W ) ; if ( U . insertBefore ) { var e = B ( U . insertBefore , V ) ; if ( e ) { e . parentNode . insertBefore ( W , e ) ; } } else { a . appendChild ( W ) ; } if ( ( N . webkit || N . gecko ) && U . type === "css" ) { G ( V , T ) ; } } ; var K = function ( ) { if ( E ) { return ; } E = true ; for ( var T in M ) { var U = M [ T ] ; if ( U . autopurge && U . finished ) { D ( U . tId ) ; delete M [ T ] ; } } E = false ; } ; var D = function ( a ) { var X = M [ a ] ; if ( X ) { var Z = X . nodes , T = Z . length , Y = X . win . document , W = Y . getElementsByTagName ( "head" ) [ 0 ] ; if ( X . insertBefore ) { var V = B ( X . insertBefore , a ) ; if ( V ) { W = V . parentNode ; } } for ( var U = 0 ; U < T ; U = U + 1 ) { W . removeChild ( Z [ U ] ) ; } X . nodes = [ ] ; } } ; var H = function ( U , T , V ) { var X = "q" + ( L ++ ) ; V = V || { } ; if ( L % YAHOO . util . Get . PURGE _THRESH === 0 ) { K ( ) ; } M [ X ] = S . merge ( V , { tId : X , type : U , url : T , finished : false , aborted : false , nodes : [ ] } ) ; var W = M [ X ] ; W . win = W . win || window ; W . scope = W . scope || W . win ; W . autopurge = ( "autopurge" in W ) ? W . autopurge : ( U === "script" ) ? true : false ; S . later ( 0 , W , G , X ) ; return { tId : X } ; } ; var F = function ( c , X , W , U , Y , Z , b ) { var a = b || G ; if ( N . ie ) { X . onreadystatechange = function ( ) { var d = this . readyState ; if ( "loaded" === d || "complete" === d ) { X . onreadystatechange = null ; a ( W , U ) ; } } ; } else { if ( N . webkit ) { if ( c === "script" ) { if ( N . webkit >= 420 ) { X . addEventListener ( "load" , function ( ) { a ( W , U ) ; } ) ; } else { var T = M [ W ] ; if ( T . varName ) { var V = YAHOO . util . Get . POLL _FREQ ; T . maxattempts = YAHOO . util . Get . TIMEOUT / V ; T . attempts = 0 ; T . _cache = T . varName [ 0 ] . split ( "." ) ; T . timer = S . later ( V , T , function ( j ) { var f = this . _cache , e = f . length , d = this . win , g ; for ( g = 0 ; g < e ; g = g + 1 ) { d = d [ f [ g ] ] ; if ( ! d ) { this . attempts ++ ; if ( this . attempts ++ > this . maxattempts ) { var h = "Over retry limit, giving up" ; T . timer . cancel ( ) ; Q ( W , h ) ; } else { } return ; } } T . timer . cancel ( ) ; a ( W , U ) ; } , null , true ) ; } else { S . later ( YAHOO . util . Get . POLL _FREQ , null , a , [ W , U ] ) ; } } } } else { X . onload = function ( ) { a ( W , U ) ; } ; } } } ; return { POLL _FREQ : 10 , PURGE _THRESH : 20 , TIMEOUT : 2000 , _finalize : function ( T ) { S . later ( 0 , null , C , T ) ; } , abort : function ( U ) { var V = ( S . isString ( U ) ) ? U : U . tId ; var T = M [ V ] ; if ( T ) { T . aborted = true ; } } , script : function ( T , U ) { return H ( "script" , T , U ) ; } , css : function ( T , U ) { return H ( "css" , T , U ) ; } } ; } ( ) ; YAHOO . register ( "get" , YAHOO . util . Get , { version : "2.7.0" , build : "1799" } ) ; ( function ( ) { var Y = YAHOO , util = Y . util , lang = Y . lang , env = Y . env , PROV = "_provides" , SUPER = "_supersedes" , REQ = "expanded" , AFTER = "_after" ; var YUI = { dupsAllowed : { "yahoo" : true , "get" : true } , info : { "root" : "2.7.0/build/" , "base" : "http://yui.yahooapis.com/2.7.0/build/" , "comboBase" : "http://yui.yahooapis.com/combo?" , "skin" : { "defaultSkin" : "sam" , "base" : "assets/skins/" , "path" : "skin.css" , "after" : [ "reset" , "fonts" , "grids" , "base" ] , "rollup" : 3 } , dupsAllowed : [ "yahoo" , "get" ] , "moduleInfo" : { "animation" : { "type" : "js" , "path" : "animation/animation-min.js" , "requires" : [ "dom" , "event" ] } , "autocomplete" : { "type" : "js" , "path"
2019-07-17 20:08:50 +00:00
i < a . length ; i = i + 1 ) { o [ a [ i ] ] = true ; } } } , keys : function ( o , ordered ) { var a = [ ] , i ; for ( i in o ) { if ( lang . hasOwnProperty ( o , i ) ) { a . push ( i ) ; } } return a ; } } , ArrayUtil : { appendArray : function ( a1 , a2 ) { Array . prototype . push . apply ( a1 , a2 ) ; } , indexOf : function ( a , val ) { for ( var i = 0 ; i < a . length ; i = i + 1 ) { if ( a [ i ] === val ) { return i ; } } return - 1 ; } , toObject : function ( a ) { var o = { } ; for ( var i = 0 ; i < a . length ; i = i + 1 ) { o [ a [ i ] ] = true ; } return o ; } , uniq : function ( a ) { return YUI . ObjectUtil . keys ( YUI . ArrayUtil . toObject ( a ) ) ; } } } ; YAHOO . util . YUILoader = function ( o ) { this . _internalCallback = null ; this . _useYahooListener = false ; this . onSuccess = null ; this . onFailure = Y . log ; this . onProgress = null ; this . onTimeout = null ; this . scope = this ; this . data = null ; this . insertBefore = null ; this . charset = null ; this . varName = null ; this . base = YUI . info . base ; this . comboBase = YUI . info . comboBase ; this . combine = false ; this . root = YUI . info . root ; this . timeout = 0 ; this . ignore = null ; this . force = null ; this . allowRollup = true ; this . filter = null ; this . required = { } ; this . moduleInfo = lang . merge ( YUI . info . moduleInfo ) ; this . rollups = null ; this . loadOptional = false ; this . sorted = [ ] ; this . loaded = { } ; this . dirty = true ; this . inserted = { } ; var self = this ; env . listeners . push ( function ( m ) { if ( self . _useYahooListener ) { self . loadNext ( m . name ) ; } } ) ; this . skin = lang . merge ( YUI . info . skin ) ; this . _config ( o ) ; } ; Y . util . YUILoader . prototype = { FILTERS : { RAW : { "searchExp" : "-min\\.js" , "replaceStr" : ".js" } , DEBUG : { "searchExp" : "-min\\.js" , "replaceStr" : "-debug.js" } } , SKIN _PREFIX : "skin-" , _config : function ( o ) { if ( o ) { for ( var i in o ) { if ( lang . hasOwnProperty ( o , i ) ) { if ( i == "require" ) { this . require ( o [ i ] ) ; } else { this [ i ] = o [ i ] ; } } } } var f = this . filter ; if ( lang . isString ( f ) ) { f = f . toUpperCase ( ) ; if ( f === "DEBUG" ) { this . require ( "logger" ) ; } if ( ! Y . widget . LogWriter ) { Y . widget . LogWriter = function ( ) { return Y ; } ; } this . filter = this . FILTERS [ f ] ; } } , addModule : function ( o ) { if ( ! o || ! o . name || ! o . type || ( ! o . path && ! o . fullpath ) ) { return false ; } o . ext = ( "ext" in o ) ? o . ext : true ; o . requires = o . requires || [ ] ; this . moduleInfo [ o . name ] = o ; this . dirty = true ; return true ; } , require : function ( what ) { var a = ( typeof what === "string" ) ? arguments : what ; this . dirty = true ; YUI . ObjectUtil . appendArray ( this . required , a ) ; } , _addSkin : function ( skin , mod ) { var name = this . formatSkin ( skin ) , info = this . moduleInfo , sinf = this . skin , ext = info [ mod ] && info [ mod ] . ext ; if ( ! info [ name ] ) { this . addModule ( { "name" : name , "type" : "css" , "path" : sinf . base + skin + "/" + sinf . path , "after" : sinf . after , "rollup" : sinf . rollup , "ext" : ext } ) ; } if ( mod ) { name = this . formatSkin ( skin , mod ) ; if ( ! info [ name ] ) { var mdef = info [ mod ] , pkg = mdef . pkg || mod ; this . addModule ( { "name" : name , "type" : "css" , "after" : sinf . after , "path" : pkg + "/" + sinf . base + skin + "/" + mod + ".css" , "ext" : ext } ) ; } } return name ; } , getRequires : function ( mod ) { if ( ! mod ) { return [ ] ; } if ( ! this . dirty && mod . expanded ) { return mod . expanded ; } mod . requires = mod . requires || [ ] ; var i , d = [ ] , r = mod . requires , o = mod . optional , info = this . moduleInfo , m ; for ( i = 0 ; i < r . length ; i = i + 1 ) { d . push ( r [ i ] ) ; m = info [ r [ i ] ] ; YUI . ArrayUtil . appendArray ( d , this . getRequires ( m ) ) ; } if ( o && this . loadOptional ) { for ( i = 0 ; i < o . length ; i = i + 1 ) { d . push ( o [ i ] ) ; YUI . ArrayUtil . appendArray ( d , this . getRequires ( info [ o [ i ] ] ) ) ; } } mod . expanded = YUI . ArrayUtil . uniq ( d ) ; return mod . expanded ; } , getProvides : function ( name , notMe ) { var addMe = ! ( notMe ) , ckey = ( addMe ) ? PROV : SUPER , m = this . moduleInfo [ name ] , o = { } ; if ( ! m ) { return o ; } if ( m [ ckey ] ) { return m [ ckey ] ; } var s = m . supersedes , done = { } , me = this ; var add = function ( mm ) { if ( ! done [ mm ] ) { done [ mm ] = true ; lang . augmentObject ( o , me . getProvides ( mm ) ) ; } } ; if ( s ) { for ( var i = 0 ; i < s . length ; i = i + 1 ) { add ( s [ i ] ) ; } } m [ SUPER ] = o ; m [ PROV ] = lang . merge ( o ) ; m [ PROV ] [ name ] = true ; return m [ ckey ] ; } , calculate : function ( o ) { if ( o || this . dirty ) { this . _config ( o ) ; this . _setup ( ) ; this . _explode ( ) ; if ( this . allowRollup ) { this . _rollup ( ) ; } this . _reduce ( ) ; this . _sort ( ) ; this . dirty = false ; } } , _setup : function ( ) { var info = this . moduleInfo , name , i , j ; for ( name in info ) { if ( lang . hasOwnProperty ( info , name ) ) { var m = info [ name ] ; if ( m && m . skinnable ) { var o = this . skin . overrides , smod ; if ( o && o [ name ] ) { for ( i = 0 ; i < o [ name ] . length ; i = i + 1 ) { smod = this . _addSkin ( o [ name ] [ i ] , name ) ; } } else { smod = this . _addSkin ( this . skin . defaultSkin , name ) ; } m . requires . push ( smod ) ; } } } var l = lang . merge ( this . inserted ) ; if ( ! this . _sandbox ) { l = lang . merge ( l , env . modules ) ; } if ( this . ignore ) { YUI . ObjectUtil . appendArray ( l , this . ignore ) ; } if ( this . force ) { for ( i = 0 ; i < this . force .
2019-07-17 20:16:19 +00:00
} } , _onTimeout : function ( ) { YAHOO . log ( "Timeout" , "info" , "loader" ) ; var f = this . onTimeout ; if ( f ) { f . call ( this . scope , { msg : "timeout" , data : this . data , success : false } ) ; } } , _sort : function ( ) { var s = [ ] , info = this . moduleInfo , loaded = this . loaded , checkOptional = ! this . loadOptional , me = this ; var requires = function ( aa , bb ) { var mm = info [ aa ] ; if ( loaded [ bb ] || ! mm ) { return false ; } var ii , rr = mm . expanded , after = mm . after , other = info [ bb ] , optional = mm . optional ; if ( rr && YUI . ArrayUtil . indexOf ( rr , bb ) > - 1 ) { return true ; } if ( after && YUI . ArrayUtil . indexOf ( after , bb ) > - 1 ) { return true ; } if ( checkOptional && optional && YUI . ArrayUtil . indexOf ( optional , bb ) > - 1 ) { return true ; } var ss = info [ bb ] && info [ bb ] . supersedes ; if ( ss ) { for ( ii = 0 ; ii < ss . length ; ii = ii + 1 ) { if ( requires ( aa , ss [ ii ] ) ) { return true ; } } } if ( mm . ext && mm . type == "css" && ! other . ext && other . type == "css" ) { return true ; } return false ; } ; for ( var i in this . required ) { if ( lang . hasOwnProperty ( this . required , i ) ) { s . push ( i ) ; } } var p = 0 ; for ( ; ; ) { var l = s . length , a , b , j , k , moved = false ; for ( j = p ; j < l ; j = j + 1 ) { a = s [ j ] ; for ( k = j + 1 ; k < l ; k = k + 1 ) { if ( requires ( a , s [ k ] ) ) { b = s . splice ( k , 1 ) ; s . splice ( j , 0 , b [ 0 ] ) ; moved = true ; break ; } } if ( moved ) { break ; } else { p = p + 1 ; } } if ( ! moved ) { break ; } } this . sorted = s ; } , toString : function ( ) { var o = { type : "YUILoader" , base : this . base , filter : this . filter , required : this . required , loaded : this . loaded , inserted : this . inserted } ; lang . dump ( o , 1 ) ; } , _combine : function ( ) { this . _combining = [ ] ; var self = this , s = this . sorted , len = s . length , js = this . comboBase , css = this . comboBase , target , startLen = js . length , i , m , type = this . loadType ; YAHOO . log ( "type " + type ) ; for ( i = 0 ; i < len ; i = i + 1 ) { m = this . moduleInfo [ s [ i ] ] ; if ( m && ! m . ext && ( ! type || type === m . type ) ) { target = this . root + m . path ; target += "&" ; if ( m . type == "js" ) { js += target ; } else { css += target ; } this . _combining . push ( s [ i ] ) ; } } if ( this . _combining . length ) { YAHOO . log ( "Attempting to combine: " + this . _combining , "info" , "loader" ) ; var callback = function ( o ) { var c = this . _combining , len = c . length , i , m ; for ( i = 0 ; i < len ; i = i + 1 ) { this . inserted [ c [ i ] ] = true ; } this . loadNext ( o . data ) ; } , loadScript = function ( ) { if ( js . length > startLen ) { YAHOO . util . Get . script ( self . _filter ( js ) , { data : self . _loading , onSuccess : callback , onFailure : self . _onFailure , onTimeout : self . _onTimeout , insertBefore : self . insertBefore , charset : self . charset , timeout : self . timeout , scope : self } ) ; } } ; if ( css . length > startLen ) { YAHOO . util . Get . css ( this . _filter ( css ) , { data : this . _loading , onSuccess : loadScript , onFailure : this . _onFailure , onTimeout : this . _onTimeout , insertBefore : this . insertBefore , charset : this . charset , timeout : this . timeout , scope : self } ) ; } else { loadScript ( ) ; } return ; } else { this . loadNext ( this . _loading ) ; } } , insert : function ( o , type ) { this . calculate ( o ) ; this . _loading = true ; this . loadType = type ; if ( this . combine ) { return this . _combine ( ) ; } if ( ! type ) { var self = this ; this . _internalCallback = function ( ) { self . _internalCallback = null ; self . insert ( null , "js" ) ; } ; this . insert ( null , "css" ) ; return ; } this . loadNext ( ) ; } , sandbox : function ( o , type ) { this . _config ( o ) ; if ( ! this . onSuccess ) { throw new Error ( "You must supply an onSuccess handler for your sandbox" ) ; } this . _sandbox = true ; var self = this ; if ( ! type || type !== "js" ) { this . _internalCallback = function ( ) { self . _internalCallback = null ; self . sandbox ( null , "js" ) ; } ; this . insert ( null , "css" ) ; return ; } if ( ! util . Connect ) { var ld = new YAHOO . util . YUILoader ( ) ; ld . insert ( { base : this . base , filter : this . filter , require : "connection" , insertBefore : this . insertBefore , charset : this . charset , onSuccess : function ( ) { this . sandbox ( null , "js" ) ; } , scope : this } , "js" ) ; return ; } this . _scriptText = [ ] ; this . _loadCount = 0 ; this . _stopCount = this . sorted . length ; this . _xhr = [ ] ; this . calculate ( ) ; var s = this . sorted , l = s . length , i , m , url ; for ( i = 0 ; i < l ; i = i + 1 ) { m = this . moduleInfo [ s [ i ] ] ; if ( ! m ) { this . _onFailure ( "undefined module " + m ) ; for ( var j = 0 ; j < this . _xhr . length ; j = j + 1 ) { this . _xhr [ j ] . abort ( ) ; } return ; } if ( m . type !== "js" ) { this . _loadCount ++ ; continue ; } url = m . fullpath ; url = ( url ) ? this . _filter ( url ) : this . _url ( m . path ) ; var xhrData = { success : function ( o ) { var idx = o . argument [ 0 ] , name = o . argument [ 2 ] ; this . _scriptText [ idx ] = o . responseText ; if ( this . onProgress ) { this . onProgress . call ( this . scope , { name : name , scriptText : o . responseText , xhrResponse : o , data : this . data } ) ; } this . _loadCount ++ ; if ( this . _loadCount >= this . _stopCount ) { var v = this . varName || "YAHOO" ; var t = "(function() {\n" ; var b = "\nreturn " + v + ";\n})();" ; var ref = eval (
( function ( ) { YAHOO . env . _id _counter = YAHOO . env . _id _counter || 0 ; var E = YAHOO . util , L = YAHOO . lang , m = YAHOO . env . ua , A = YAHOO . lang . trim , d = { } , h = { } , N = /^t(?:able|d|h)$/i , X = /color$/i , K = window . document , W = K . documentElement , e = "ownerDocument" , n = "defaultView" , v = "documentElement" , t = "compatMode" , b = "offsetLeft" , P = "offsetTop" , u = "offsetParent" , Z = "parentNode" , l = "nodeType" , C = "tagName" , O = "scrollLeft" , i = "scrollTop" , Q = "getBoundingClientRect" , w = "getComputedStyle" , a = "currentStyle" , M = "CSS1Compat" , c = "BackCompat" , g = "class" , F = "className" , J = "" , B = " " , s = "(?:^|\\s)" , k = "(?= |$)" , U = "g" , p = "position" , f = "fixed" , V = "relative" , j = "left" , o = "top" , r = "medium" , q = "borderLeftWidth" , R = "borderTopWidth" , D = m . opera , I = m . webkit , H = m . gecko , T = m . ie ; E . Dom = { CUSTOM _ATTRIBUTES : ( ! W . hasAttribute ) ? { "for" : "htmlFor" , "class" : F } : { "htmlFor" : "for" , "className" : g } , get : function ( y ) { var AA , Y , z , x , G ; if ( y ) { if ( y [ l ] || y . item ) { return y ; } if ( typeof y === "string" ) { AA = y ; y = K . getElementById ( y ) ; if ( y && y . id === AA ) { return y ; } else { if ( y && K . all ) { y = null ; Y = K . all [ AA ] ; for ( x = 0 , G = Y . length ; x < G ; ++ x ) { if ( Y [ x ] . id === AA ) { return Y [ x ] ; } } } } return y ; } if ( y . DOM _EVENTS ) { y = y . get ( "element" ) ; } if ( "length" in y ) { z = [ ] ; for ( x = 0 , G = y . length ; x < G ; ++ x ) { z [ z . length ] = E . Dom . get ( y [ x ] ) ; } return z ; } return y ; } return null ; } , getComputedStyle : function ( G , Y ) { if ( window [ w ] ) { return G [ e ] [ n ] [ w ] ( G , null ) [ Y ] ; } else { if ( G [ a ] ) { return E . Dom . IE _ComputedStyle . get ( G , Y ) ; } } } , getStyle : function ( G , Y ) { return E . Dom . batch ( G , E . Dom . _getStyle , Y ) ; } , _getStyle : function ( ) { if ( window [ w ] ) { return function ( G , y ) { y = ( y === "float" ) ? y = "cssFloat" : E . Dom . _toCamel ( y ) ; var x = G . style [ y ] , Y ; if ( ! x ) { Y = G [ e ] [ n ] [ w ] ( G , null ) ; if ( Y ) { x = Y [ y ] ; } } return x ; } ; } else { if ( W [ a ] ) { return function ( G , y ) { var x ; switch ( y ) { case "opacity" : x = 100 ; try { x = G . filters [ "DXImageTransform.Microsoft.Alpha" ] . opacity ; } catch ( z ) { try { x = G . filters ( "alpha" ) . opacity ; } catch ( Y ) { } } return x / 100 ; case "float" : y = "styleFloat" ; default : y = E . Dom . _toCamel ( y ) ; x = G [ a ] ? G [ a ] [ y ] : null ; return ( G . style [ y ] || x ) ; } } ; } } } ( ) , setStyle : function ( G , Y , x ) { E . Dom . batch ( G , E . Dom . _setStyle , { prop : Y , val : x } ) ; } , _setStyle : function ( ) { if ( T ) { return function ( Y , G ) { var x = E . Dom . _toCamel ( G . prop ) , y = G . val ; if ( Y ) { switch ( x ) { case "opacity" : if ( L . isString ( Y . style . filter ) ) { Y . style . filter = "alpha(opacity=" + y * 100 + ")" ; if ( ! Y [ a ] || ! Y [ a ] . hasLayout ) { Y . style . zoom = 1 ; } } break ; case "float" : x = "styleFloat" ; default : Y . style [ x ] = y ; } } else { } } ; } else { return function ( Y , G ) { var x = E . Dom . _toCamel ( G . prop ) , y = G . val ; if ( Y ) { if ( x == "float" ) { x = "cssFloat" ; } Y . style [ x ] = y ; } else { } } ; } } ( ) , getXY : function ( G ) { return E . Dom . batch ( G , E . Dom . _getXY ) ; } , _canPosition : function ( G ) { return ( E . Dom . _getStyle ( G , "display" ) !== "none" && E . Dom . _inDoc ( G ) ) ; } , _getXY : function ( ) { if ( K [ v ] [ Q ] ) { return function ( y ) { var z , Y , AA , AF , AE , AD , AC , G , x , AB = Math . floor , AG = false ; if ( E . Dom . _canPosition ( y ) ) { AA = y [ Q ] ( ) ; AF = y [ e ] ; z = E . Dom . getDocumentScrollLeft ( AF ) ; Y = E . Dom . getDocumentScrollTop ( AF ) ; AG = [ AB ( AA [ j ] ) , AB ( AA [ o ] ) ] ; if ( T && m . ie < 8 ) { AE = 2 ; AD = 2 ; AC = AF [ t ] ; G = S ( AF [ v ] , q ) ; x = S ( AF [ v ] , R ) ; if ( m . ie === 6 ) { if ( AC !== c ) { AE = 0 ; AD = 0 ; } } if ( ( AC == c ) ) { if ( G !== r ) { AE = parseInt ( G , 10 ) ; } if ( x !== r ) { AD = parseInt ( x , 10 ) ; } } AG [ 0 ] -= AE ; AG [ 1 ] -= AD ; } if ( ( Y || z ) ) { AG [ 0 ] += z ; AG [ 1 ] += Y ; } AG [ 0 ] = AB ( AG [ 0 ] ) ; AG [ 1 ] = AB ( AG [ 1 ] ) ; } else { } return AG ; } ; } else { return function ( y ) { var x , Y , AA , AB , AC , z = false , G = y ; if ( E . Dom . _canPosition ( y ) ) { z = [ y [ b ] , y [ P ] ] ; x = E . Dom . getDocumentScrollLeft ( y [ e ] ) ; Y = E . Dom . getDocumentScrollTop ( y [ e ] ) ; AC = ( ( H || m . webkit > 519 ) ? true : false ) ; while ( ( G = G [ u ] ) ) { z [ 0 ] += G [ b ] ; z [ 1 ] += G [ P ] ; if ( AC ) { z = E . Dom . _calcBorders ( G , z ) ; } } if ( E . Dom . _getStyle ( y , p ) !== f ) { G = y ; while ( ( G = G [ Z ] ) && G [ C ] ) { AA = G [ i ] ; AB = G [ O ] ; if ( H && ( E . Dom . _getStyle ( G , "overflow" ) !== "visible" ) ) { z = E . Dom . _calcBorders ( G , z ) ; } if ( AA || AB ) { z [ 0 ] -= AB ; z [ 1 ] -= AA ; } } z [ 0 ] += x ; z [ 1 ] += Y ; } else { if ( D ) { z [ 0 ] -= x ; z [ 1 ] -= Y ; } else { if ( I || H ) { z [ 0 ] += x ; z [ 1 ] += Y ; } } } z [ 0 ] = Math . floor ( z [ 0 ] ) ; z [ 1 ] = Math . floor ( z [ 1 ] ) ; } else { } return z ; } ; } } ( ) , getX : function ( G ) { var Y = function ( x ) { return E . Dom . getXY ( x ) [ 0 ] ; } ; return E . Dom . batch ( G , Y , E . Dom , true ) ; } , getY : function ( G ) { var Y = function ( x ) { return E . Dom . getXY ( x ) [ 1 ] ; } ; return E . Dom . batch ( G , Y , E . Dom , true ) ; } , setXY : function ( G , x , Y ) { E . Dom . batch ( G , E . Dom . _setXY , { pos : x , noRetry : Y } ) ; } , _setXY : function ( G , z ) { var AA = E . Dom . _getStyle ( G , p ) , y = E . Dom . setStyle , AD = z . pos , Y = z . noRetry , AB = [ parseInt ( E . Dom . getComputedStyle ( G , j ) , 10 ) , parseInt ( E . Dom . getComputedStyle ( G , o ) , 10 ) ] , AC , x ; if ( AA == "static" ) { AA = V ; y ( G , p , AA ) ; } AC =
} , _replaceClass : function ( y , x ) { var Y , AB , AA , G = false , z ; if ( y && x ) { AB = x . from ; AA = x . to ; if ( ! AA ) { G = false ; } else { if ( ! AB ) { G = E . Dom . _addClass ( y , x . to ) ; } else { if ( AB !== AA ) { z = E . Dom . getAttribute ( y , F ) || J ; Y = ( B + z . replace ( E . Dom . _getClassRegex ( AB ) , B + AA ) ) . split ( E . Dom . _getClassRegex ( AA ) ) ; Y . splice ( 1 , 0 , B + AA ) ; E . Dom . setAttribute ( y , F , A ( Y . join ( J ) ) ) ; G = true ; } } } } else { } return G ; } , generateId : function ( G , x ) { x = x || "yui-gen" ; var Y = function ( y ) { if ( y && y . id ) { return y . id ; } var z = x + YAHOO . env . _id _counter ++ ; if ( y ) { if ( y [ e ] . getElementById ( z ) ) { return E . Dom . generateId ( y , z + x ) ; } y . id = z ; } return z ; } ; return E . Dom . batch ( G , Y , E . Dom , true ) || Y . apply ( E . Dom , arguments ) ; } , isAncestor : function ( Y , x ) { Y = E . Dom . get ( Y ) ; x = E . Dom . get ( x ) ; var G = false ; if ( ( Y && x ) && ( Y [ l ] && x [ l ] ) ) { if ( Y . contains && Y !== x ) { G = Y . contains ( x ) ; } else { if ( Y . compareDocumentPosition ) { G = ! ! ( Y . compareDocumentPosition ( x ) & 16 ) ; } } } else { } return G ; } , inDocument : function ( G , Y ) { return E . Dom . _inDoc ( E . Dom . get ( G ) , Y ) ; } , _inDoc : function ( Y , x ) { var G = false ; if ( Y && Y [ C ] ) { x = x || Y [ e ] ; G = E . Dom . isAncestor ( x [ v ] , Y ) ; } else { } return G ; } , getElementsBy : function ( Y , AF , AB , AD , y , AC , AE ) { AF = AF || "*" ; AB = ( AB ) ? E . Dom . get ( AB ) : null || K ; if ( ! AB ) { return [ ] ; } var x = [ ] , G = AB . getElementsByTagName ( AF ) ; for ( var z = 0 , AA = G . length ; z < AA ; ++ z ) { if ( Y ( G [ z ] ) ) { if ( AE ) { x = G [ z ] ; break ; } else { x [ x . length ] = G [ z ] ; } } } if ( AD ) { E . Dom . batch ( x , AD , y , AC ) ; } return x ; } , getElementBy : function ( x , G , Y ) { return E . Dom . getElementsBy ( x , G , Y , null , null , null , true ) ; } , batch : function ( x , AB , AA , z ) { var y = [ ] , Y = ( z ) ? AA : window ; x = ( x && ( x [ C ] || x . item ) ) ? x : E . Dom . get ( x ) ; if ( x && AB ) { if ( x [ C ] || x . length === undefined ) { return AB . call ( Y , x , AA ) ; } for ( var G = 0 ; G < x . length ; ++ G ) { y [ y . length ] = AB . call ( Y , x [ G ] , AA ) ; } } else { return false ; } return y ; } , getDocumentHeight : function ( ) { var Y = ( K [ t ] != M || I ) ? K . body . scrollHeight : W . scrollHeight , G = Math . max ( Y , E . Dom . getViewportHeight ( ) ) ; return G ; } , getDocumentWidth : function ( ) { var Y = ( K [ t ] != M || I ) ? K . body . scrollWidth : W . scrollWidth , G = Math . max ( Y , E . Dom . getViewportWidth ( ) ) ; return G ; } , getViewportHeight : function ( ) { var G = self . innerHeight , Y = K [ t ] ; if ( ( Y || T ) && ! D ) { G = ( Y == M ) ? W . clientHeight : K . body . clientHeight ; } return G ; } , getViewportWidth : function ( ) { var G = self . innerWidth , Y = K [ t ] ; if ( Y || T ) { G = ( Y == M ) ? W . clientWidth : K . body . clientWidth ; } return G ; } , getAncestorBy : function ( G , Y ) { while ( ( G = G [ Z ] ) ) { if ( E . Dom . _testElement ( G , Y ) ) { return G ; } } return null ; } , getAncestorByClassName : function ( Y , G ) { Y = E . Dom . get ( Y ) ; if ( ! Y ) { return null ; } var x = function ( y ) { return E . Dom . hasClass ( y , G ) ; } ; return E . Dom . getAncestorBy ( Y , x ) ; } , getAncestorByTagName : function ( Y , G ) { Y = E . Dom . get ( Y ) ; if ( ! Y ) { return null ; } var x = function ( y ) { return y [ C ] && y [ C ] . toUpperCase ( ) == G . toUpperCase ( ) ; } ; return E . Dom . getAncestorBy ( Y , x ) ; } , getPreviousSiblingBy : function ( G , Y ) { while ( G ) { G = G . previousSibling ; if ( E . Dom . _testElement ( G , Y ) ) { return G ; } } return null ; } , getPreviousSibling : function ( G ) { G = E . Dom . get ( G ) ; if ( ! G ) { return null ; } return E . Dom . getPreviousSiblingBy ( G ) ; } , getNextSiblingBy : function ( G , Y ) { while ( G ) { G = G . nextSibling ; if ( E . Dom . _testElement ( G , Y ) ) { return G ; } } return null ; } , getNextSibling : function ( G ) { G = E . Dom . get ( G ) ; if ( ! G ) { return null ; } return E . Dom . getNextSiblingBy ( G ) ; } , getFirstChildBy : function ( G , x ) { var Y = ( E . Dom . _testElement ( G . firstChild , x ) ) ? G . firstChild : null ; return Y || E . Dom . getNextSiblingBy ( G . firstChild , x ) ; } , getFirstChild : function ( G , Y ) { G = E . Dom . get ( G ) ; if ( ! G ) { return null ; } return E . Dom . getFirstChildBy ( G ) ; } , getLastChildBy : function ( G , x ) { if ( ! G ) { return null ; } var Y = ( E . Dom . _testElement ( G . lastChild , x ) ) ? G . lastChild : null ; return Y || E . Dom . getPreviousSiblingBy ( G . lastChild , x ) ; } , getLastChild : function ( G ) { G = E . Dom . get ( G ) ; return E . Dom . getLastChildBy ( G ) ; } , getChildrenBy : function ( Y , y ) { var x = E . Dom . getFirstChildBy ( Y , y ) , G = x ? [ x ] : [ ] ; E . Dom . getNextSiblingBy ( x , function ( z ) { if ( ! y || y ( z ) ) { G [ G . length ] = z ; } return false ; } ) ; return G ; } , getChildren : function ( G ) { G = E . Dom . get ( G ) ; if ( ! G ) { } return E . Dom . getChildrenBy ( G ) ; } , getDocumentScrollLeft : function ( G ) { G = G || K ; return Math . max ( G [ v ] . scrollLeft , G . body . scrollLeft ) ; } , getDocumentScrollTop : function ( G ) { G = G || K ; return Math . max ( G [ v ] . scrollTop , G . body . scrollTop ) ; } , insertBefore : function ( Y , G ) { Y = E . Dom . get ( Y ) ; G = E . Dom . get ( G ) ; if ( ! Y || ! G || ! G [ Z ] ) { return null ; } return G [ Z ] . insertBefore ( Y , G ) ; } , insertAfter : function ( Y , G ) { Y = E . Dom . get ( Y ) ; G = E . Dom . get ( G ) ; if ( ! Y || ! G || ! G [ Z ] ) { return null ; } if ( G . nextSibling ) { retur
} else { return null ; } } ; YAHOO . util . Region . prototype . union = function ( E ) { var C = Math . min ( this . top , E . top ) , D = Math . max ( this . right , E . right ) , A = Math . max ( this . bottom , E . bottom ) , B = Math . min ( this . left , E . left ) ; return new YAHOO . util . Region ( C , D , A , B ) ; } ; YAHOO . util . Region . prototype . toString = function ( ) { return ( "Region {" + "top: " + this . top + ", right: " + this . right + ", bottom: " + this . bottom + ", left: " + this . left + ", height: " + this . height + ", width: " + this . width + "}" ) ; } ; YAHOO . util . Region . getRegion = function ( D ) { var F = YAHOO . util . Dom . getXY ( D ) , C = F [ 1 ] , E = F [ 0 ] + D . offsetWidth , A = F [ 1 ] + D . offsetHeight , B = F [ 0 ] ; return new YAHOO . util . Region ( C , E , A , B ) ; } ; YAHOO . util . Point = function ( A , B ) { if ( YAHOO . lang . isArray ( A ) ) { B = A [ 1 ] ; A = A [ 0 ] ; } YAHOO . util . Point . superclass . constructor . call ( this , B , A , B , A ) ; } ; YAHOO . extend ( YAHOO . util . Point , YAHOO . util . Region ) ; ( function ( ) { var B = YAHOO . util , A = "clientTop" , F = "clientLeft" , J = "parentNode" , K = "right" , W = "hasLayout" , I = "px" , U = "opacity" , L = "auto" , D = "borderLeftWidth" , G = "borderTopWidth" , P = "borderRightWidth" , V = "borderBottomWidth" , S = "visible" , Q = "transparent" , N = "height" , E = "width" , H = "style" , T = "currentStyle" , R = /^width|height$/ , O = /^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i , M = { get : function ( X , Z ) { var Y = "" , a = X [ T ] [ Z ] ; if ( Z === U ) { Y = B . Dom . getStyle ( X , U ) ; } else { if ( ! a || ( a . indexOf && a . indexOf ( I ) > - 1 ) ) { Y = a ; } else { if ( B . Dom . IE _COMPUTED [ Z ] ) { Y = B . Dom . IE _COMPUTED [ Z ] ( X , Z ) ; } else { if ( O . test ( a ) ) { Y = B . Dom . IE . ComputedStyle . getPixel ( X , Z ) ; } else { Y = a ; } } } } return Y ; } , getOffset : function ( Z , e ) { var b = Z [ T ] [ e ] , X = e . charAt ( 0 ) . toUpperCase ( ) + e . substr ( 1 ) , c = "offset" + X , Y = "pixel" + X , a = "" , d ; if ( b == L ) { d = Z [ c ] ; if ( d === undefined ) { a = 0 ; } a = d ; if ( R . test ( e ) ) { Z [ H ] [ e ] = d ; if ( Z [ c ] > d ) { a = d - ( Z [ c ] - d ) ; } Z [ H ] [ e ] = L ; } } else { if ( ! Z [ H ] [ Y ] && ! Z [ H ] [ e ] ) { Z [ H ] [ e ] = b ; } a = Z [ H ] [ Y ] ; } return a + I ; } , getBorderWidth : function ( X , Z ) { var Y = null ; if ( ! X [ T ] [ W ] ) { X [ H ] . zoom = 1 ; } switch ( Z ) { case G : Y = X [ A ] ; break ; case V : Y = X . offsetHeight - X . clientHeight - X [ A ] ; break ; case D : Y = X [ F ] ; break ; case P : Y = X . offsetWidth - X . clientWidth - X [ F ] ; break ; } return Y + I ; } , getPixel : function ( Y , X ) { var a = null , b = Y [ T ] [ K ] , Z = Y [ T ] [ X ] ; Y [ H ] [ K ] = Z ; a = Y [ H ] . pixelRight ; Y [ H ] [ K ] = b ; return a + I ; } , getMargin : function ( Y , X ) { var Z ; if ( Y [ T ] [ X ] == L ) { Z = 0 + I ; } else { Z = B . Dom . IE . ComputedStyle . getPixel ( Y , X ) ; } return Z ; } , getVisibility : function ( Y , X ) { var Z ; while ( ( Z = Y [ T ] ) && Z [ X ] == "inherit" ) { Y = Y [ J ] ; } return ( Z ) ? Z [ X ] : S ; } , getColor : function ( Y , X ) { return B . Dom . Color . toRGB ( Y [ T ] [ X ] ) || Q ; } , getBorderColor : function ( Y , X ) { var Z = Y [ T ] , a = Z [ X ] || Z . color ; return B . Dom . Color . toRGB ( B . Dom . Color . toHex ( a ) ) ; } } , C = { } ; C . top = C . right = C . bottom = C . left = C [ E ] = C [ N ] = M . getOffset ; C . color = M . getColor ; C [ G ] = C [ P ] = C [ V ] = C [ D ] = M . getBorderWidth ; C . marginTop = C . marginRight = C . marginBottom = C . marginLeft = M . getMargin ; C . visibility = M . getVisibility ; C . borderColor = C . borderTopColor = C . borderRightColor = C . borderBottomColor = C . borderLeftColor = M . getBorderColor ; B . Dom . IE _COMPUTED = C ; B . Dom . IE _ComputedStyle = M ; } ) ( ) ; ( function ( ) { var C = "toString" , A = parseInt , B = RegExp , D = YAHOO . util ; D . Dom . Color = { KEYWORDS : { black : "000" , silver : "c0c0c0" , gray : "808080" , white : "fff" , maroon : "800000" , red : "f00" , purple : "800080" , fuchsia : "f0f" , green : "008000" , lime : "0f0" , olive : "808000" , yellow : "ff0" , navy : "000080" , blue : "00f" , teal : "008080" , aqua : "0ff" } , re _RGB : /^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i , re _hex : /^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i , re _hex3 : /([0-9A-F])/gi , toRGB : function ( E ) { if ( ! D . Dom . Color . re _RGB . test ( E ) ) { E = D . Dom . Color . toHex ( E ) ; } if ( D . Dom . Color . re _hex . exec ( E ) ) { E = "rgb(" + [ A ( B . $1 , 16 ) , A ( B . $2 , 16 ) , A ( B . $3 , 16 ) ] . join ( ", " ) + ")" ; } return E ; } , toHex : function ( H ) { H = D . Dom . Color . KEYWORDS [ H ] || H ; if ( D . Dom . Color . re _RGB . exec ( H ) ) { var G = ( B . $1 . length === 1 ) ? "0" + B . $1 : Number ( B . $1 ) , F = ( B . $2 . length === 1 ) ? "0" + B . $2 : Number ( B . $2 ) , E = ( B . $3 . length === 1 ) ? "0" + B . $3 : Number ( B . $3 ) ; H = [ G [ C ] ( 16 ) , F [ C ] ( 16 ) , E [ C ] ( 16 ) ] . join ( "" ) ; } if ( H . length < 6 ) { H = H . replace ( D . Dom . Color . re _hex3 , "$1$1" ) ; } if ( H !== "transparent" && H . indexOf ( "#" ) < 0 ) { H = "#" + H ; } return H . toLowerCase ( ) ; } } ; } ( ) ) ; YAHOO . register ( "dom" , YAHOO . util . Dom , { version : "2.7.0" , build : "1799" } ) ; YAHOO . util . CustomEvent = function ( D , C , B , A ) { this . type = D ; this . scope = C || window ; this . silent = B ; this . signature = A || YAHOO . util . CustomEvent . LIST ; this . subscribers = [ ] ; if ( ! this . silent ) { } var E = "_YUICEOnSubscribe" ; if ( D !== E ) { this . subscribeEvent = new YAHOO . util . Custom
I . splice ( S , 1 ) ; return true ; } , getTarget : function ( O , N ) { var M = O . target || O . srcElement ; return this . resolveTextNode ( M ) ; } , resolveTextNode : function ( N ) { try { if ( N && 3 == N . nodeType ) { return N . parentNode ; } } catch ( M ) { } return N ; } , getPageX : function ( N ) { var M = N . pageX ; if ( ! M && 0 !== M ) { M = N . clientX || 0 ; if ( this . isIE ) { M += this . _getScrollLeft ( ) ; } } return M ; } , getPageY : function ( M ) { var N = M . pageY ; if ( ! N && 0 !== N ) { N = M . clientY || 0 ; if ( this . isIE ) { N += this . _getScrollTop ( ) ; } } return N ; } , getXY : function ( M ) { return [ this . getPageX ( M ) , this . getPageY ( M ) ] ; } , getRelatedTarget : function ( N ) { var M = N . relatedTarget ; if ( ! M ) { if ( N . type == "mouseout" ) { M = N . toElement ; } else { if ( N . type == "mouseover" ) { M = N . fromElement ; } } } return this . resolveTextNode ( M ) ; } , getTime : function ( O ) { if ( ! O . time ) { var N = new Date ( ) . getTime ( ) ; try { O . time = N ; } catch ( M ) { this . lastError = M ; return N ; } } return O . time ; } , stopEvent : function ( M ) { this . stopPropagation ( M ) ; this . preventDefault ( M ) ; } , stopPropagation : function ( M ) { if ( M . stopPropagation ) { M . stopPropagation ( ) ; } else { M . cancelBubble = true ; } } , preventDefault : function ( M ) { if ( M . preventDefault ) { M . preventDefault ( ) ; } else { M . returnValue = false ; } } , getEvent : function ( O , M ) { var N = O || window . event ; if ( ! N ) { var P = this . getEvent . caller ; while ( P ) { N = P . arguments [ 0 ] ; if ( N && Event == N . constructor ) { break ; } P = P . caller ; } } return N ; } , getCharCode : function ( N ) { var M = N . keyCode || N . charCode || 0 ; if ( YAHOO . env . ua . webkit && ( M in D ) ) { M = D [ M ] ; } return M ; } , _getCacheIndex : function ( Q , R , P ) { for ( var O = 0 , N = I . length ; O < N ; O = O + 1 ) { var M = I [ O ] ; if ( M && M [ this . FN ] == P && M [ this . EL ] == Q && M [ this . TYPE ] == R ) { return O ; } } return - 1 ; } , generateId : function ( M ) { var N = M . id ; if ( ! N ) { N = "yuievtautoid-" + A ; ++ A ; M . id = N ; } return N ; } , _isValidCollection : function ( N ) { try { return ( N && typeof N !== "string" && N . length && ! N . tagName && ! N . alert && typeof N [ 0 ] !== "undefined" ) ; } catch ( M ) { return false ; } } , elCache : { } , getEl : function ( M ) { return ( typeof M === "string" ) ? document . getElementById ( M ) : M ; } , clearCache : function ( ) { } , DOMReadyEvent : new YAHOO . util . CustomEvent ( "DOMReady" , this ) , _load : function ( N ) { if ( ! H ) { H = true ; var M = YAHOO . util . Event ; M . _ready ( ) ; M . _tryPreloadAttach ( ) ; } } , _ready : function ( N ) { var M = YAHOO . util . Event ; if ( ! M . DOMReady ) { M . DOMReady = true ; M . DOMReadyEvent . fire ( ) ; M . _simpleRemove ( document , "DOMContentLoaded" , M . _ready ) ; } } , _tryPreloadAttach : function ( ) { if ( F . length === 0 ) { C = 0 ; if ( this . _interval ) { clearInterval ( this . _interval ) ; this . _interval = null ; } return ; } if ( this . locked ) { return ; } if ( this . isIE ) { if ( ! this . DOMReady ) { this . startInterval ( ) ; return ; } } this . locked = true ; var S = ! H ; if ( ! S ) { S = ( C > 0 && F . length > 0 ) ; } var R = [ ] ; var T = function ( V , W ) { var U = V ; if ( W . overrideContext ) { if ( W . overrideContext === true ) { U = W . obj ; } else { U = W . overrideContext ; } } W . fn . call ( U , W . obj ) ; } ; var N , M , Q , P , O = [ ] ; for ( N = 0 , M = F . length ; N < M ; N = N + 1 ) { Q = F [ N ] ; if ( Q ) { P = this . getEl ( Q . id ) ; if ( P ) { if ( Q . checkReady ) { if ( H || P . nextSibling || ! S ) { O . push ( Q ) ; F [ N ] = null ; } } else { T ( P , Q ) ; F [ N ] = null ; } } else { R . push ( Q ) ; } } } for ( N = 0 , M = O . length ; N < M ; N = N + 1 ) { Q = O [ N ] ; T ( this . getEl ( Q . id ) , Q ) ; } C -- ; if ( S ) { for ( N = F . length - 1 ; N > - 1 ; N -- ) { Q = F [ N ] ; if ( ! Q || ! Q . id ) { F . splice ( N , 1 ) ; } } this . startInterval ( ) ; } else { if ( this . _interval ) { clearInterval ( this . _interval ) ; this . _interval = null ; } } this . locked = false ; } , purgeElement : function ( Q , R , T ) { var O = ( YAHOO . lang . isString ( Q ) ) ? this . getEl ( Q ) : Q ; var S = this . getListeners ( O , T ) , P , M ; if ( S ) { for ( P = S . length - 1 ; P > - 1 ; P -- ) { var N = S [ P ] ; this . removeListener ( O , N . type , N . fn ) ; } } if ( R && O && O . childNodes ) { for ( P = 0 , M = O . childNodes . length ; P < M ; ++ P ) { this . purgeElement ( O . childNodes [ P ] , R , T ) ; } } } , getListeners : function ( O , M ) { var R = [ ] , N ; if ( ! M ) { N = [ I , J ] ; } else { if ( M === "unload" ) { N = [ J ] ; } else { N = [ I ] ; } } var T = ( YAHOO . lang . isString ( O ) ) ? this . getEl ( O ) : O ; for ( var Q = 0 ; Q < N . length ; Q = Q + 1 ) { var V = N [ Q ] ; if ( V ) { for ( var S = 0 , U = V . length ; S < U ; ++ S ) { var P = V [ S ] ; if ( P && P [ this . EL ] === T && ( ! M || M === P [ this . TYPE ] ) ) { R . push ( { type : P [ this . TYPE ] , fn : P [ this . FN ] , obj : P [ this . OBJ ] , adjust : P [ this . OVERRIDE ] , scope : P [ this . ADJ _SCOPE ] , index : S } ) ; } } } } return ( R . length ) ? R : null ; } , _unload : function ( T ) { var N = YAHOO . util . Event , Q , P , O , S , R , U = J . slice ( ) , M ; for ( Q = 0 , S = J . length ; Q < S ; ++ Q ) { O = U [ Q ] ; if ( O ) { M = window ; if ( O [ N . ADJ _SCOPE ] ) { if ( O [ N . ADJ _SCOPE ] === true ) { M = O [ N . UNLOAD _OBJ ] ; } else { M = O [ N . ADJ _SCOPE ] ; } } O [ N . FN ] . call ( M , N . getEvent ( T , O [ N . EL ] ) , O [ N . UNLOAD _OBJ ] ) ; U [ Q ] = null ; } } O = null ; M = null ; J = null ; if ( I ) { for ( P = I . length - 1 ; P > - 1 ; P -- ) { O = I [ P ] ; if ( O ) { N . removeListener ( O [ N . EL ] , O [ N . TYPE ] , O
2019-07-17 20:08:50 +00:00
/* DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller */
2019-07-17 20:16:19 +00:00
if ( EU . isIE ) { YAHOO . util . Event . onDOMReady ( YAHOO . util . Event . _tryPreloadAttach , YAHOO . util . Event , true ) ; var n = document . createElement ( "p" ) ; EU . _dri = setInterval ( function ( ) { try { n . doScroll ( "left" ) ; clearInterval ( EU . _dri ) ; EU . _dri = null ; EU . _ready ( ) ; n = null ; } catch ( ex ) { } } , EU . POLL _INTERVAL ) ; } else { if ( EU . webkit && EU . webkit < 525 ) { EU . _dri = setInterval ( function ( ) { var rs = document . readyState ; if ( "loaded" == rs || "complete" == rs ) { clearInterval ( EU . _dri ) ; EU . _dri = null ; EU . _ready ( ) ; } } , EU . POLL _INTERVAL ) ; } else { EU . _simpleAdd ( document , "DOMContentLoaded" , EU . _ready ) ; } } EU . _simpleAdd ( window , "load" , EU . _load ) ; EU . _simpleAdd ( window , "unload" , EU . _unload ) ; EU . _tryPreloadAttach ( ) ; } ) ( ) ; } YAHOO . util . EventProvider = function ( ) { } ; YAHOO . util . EventProvider . prototype = { _ _yui _events : null , _ _yui _subscribers : null , subscribe : function ( A , C , F , E ) { this . _ _yui _events = this . _ _yui _events || { } ; var D = this . _ _yui _events [ A ] ; if ( D ) { D . subscribe ( C , F , E ) ;
} else { this . _ _yui _subscribers = this . _ _yui _subscribers || { } ; var B = this . _ _yui _subscribers ; if ( ! B [ A ] ) { B [ A ] = [ ] ; } B [ A ] . push ( { fn : C , obj : F , overrideContext : E } ) ; } } , unsubscribe : function ( C , E , G ) { this . _ _yui _events = this . _ _yui _events || { } ; var A = this . _ _yui _events ; if ( C ) { var F = A [ C ] ; if ( F ) { return F . unsubscribe ( E , G ) ; } } else { var B = true ; for ( var D in A ) { if ( YAHOO . lang . hasOwnProperty ( A , D ) ) { B = B && A [ D ] . unsubscribe ( E , G ) ; } } return B ; } return false ; } , unsubscribeAll : function ( A ) { return this . unsubscribe ( A ) ; } , createEvent : function ( G , D ) { this . _ _yui _events = this . _ _yui _events || { } ; var A = D || { } ; var I = this . _ _yui _events ; if ( I [ G ] ) { } else { var H = A . scope || this ; var E = ( A . silent ) ; var B = new YAHOO . util . CustomEvent ( G , H , E , YAHOO . util . CustomEvent . FLAT ) ; I [ G ] = B ; if ( A . onSubscribeCallback ) { B . subscribeEvent . subscribe ( A . onSubscribeCallback ) ; } this . _ _yui _subscribers = this . _ _yui _subscribers || { } ; var F = this . _ _yui _subscribers [ G ] ; if ( F ) { for ( var C = 0 ; C < F . length ; ++ C ) { B . subscribe ( F [ C ] . fn , F [ C ] . obj , F [ C ] . overrideContext ) ; } } } return I [ G ] ; } , fireEvent : function ( E , D , A , C ) { this . _ _yui _events = this . _ _yui _events || { } ; var G = this . _ _yui _events [ E ] ; if ( ! G ) { return null ; } var B = [ ] ; for ( var F = 1 ; F < arguments . length ; ++ F ) { B . push ( arguments [ F ] ) ; } return G . fire . apply ( G , B ) ; } , hasEvent : function ( A ) { if ( this . _ _yui _events ) { if ( this . _ _yui _events [ A ] ) { return true ; } } return false ; } } ; ( function ( ) { var A = YAHOO . util . Event , C = YAHOO . lang ; YAHOO . util . KeyListener = function ( D , I , E , F ) { if ( ! D ) { } else { if ( ! I ) { } else { if ( ! E ) { } } } if ( ! F ) { F = YAHOO . util . KeyListener . KEYDOWN ; } var G = new YAHOO . util . CustomEvent ( "keyPressed" ) ; this . enabledEvent = new YAHOO . util . CustomEvent ( "enabled" ) ; this . disabledEvent = new YAHOO . util . CustomEvent ( "disabled" ) ; if ( C . isString ( D ) ) { D = document . getElementById ( D ) ; } if ( C . isFunction ( E ) ) { G . subscribe ( E ) ; } else { G . subscribe ( E . fn , E . scope , E . correctScope ) ; } function H ( O , N ) { if ( ! I . shift ) { I . shift = false ; } if ( ! I . alt ) { I . alt = false ; } if ( ! I . ctrl ) { I . ctrl = false ; } if ( O . shiftKey == I . shift && O . altKey == I . alt && O . ctrlKey == I . ctrl ) { var J , M = I . keys , L ; if ( YAHOO . lang . isArray ( M ) ) { for ( var K = 0 ; K < M . length ; K ++ ) { J = M [ K ] ; L = A . getCharCode ( O ) ; if ( J == L ) { G . fire ( L , O ) ; break ; } } } else { L = A . getCharCode ( O ) ; if ( M == L ) { G . fire ( L , O ) ; } } } } this . enable = function ( ) { if ( ! this . enabled ) { A . on ( D , F , H ) ; this . enabledEvent . fire ( I ) ; } this . enabled = true ; } ; this . disable = function ( ) { if ( this . enabled ) { A . removeListener ( D , F , H ) ; this . disabledEvent . fire ( I ) ; } this . enabled = false ; } ; this . toString = function ( ) { return "KeyListener [" + I . keys + "] " + D . tagName + ( D . id ? "[" + D . id + "]" : "" ) ; } ; } ; var B = YAHOO . util . KeyListener ; B . KEYDOWN = "keydown" ; B . KEYUP = "keyup" ; B . KEY = { ALT : 18 , BACK _SPACE : 8 , CAPS _LOCK : 20 , CONTROL : 17 , DELETE : 46 , DOWN : 40 , END : 35 , ENTER : 13 , ESCAPE : 27 , HOME : 36 , LEFT : 37 , META : 224 , NUM _LOCK : 144 , PAGE _DOWN : 34 , PAGE _UP : 33 , PAUSE : 19 , PRINTSCREEN : 44 , RIGHT : 39 , SCROLL _LOCK : 145 , SHIFT : 16 , SPACE : 32 , TAB : 9 , UP : 38 } ; } ) ( ) ; YAHOO . register ( "event" , YAHOO . util . Event , { version : "2.7.0" , build : "1799" } ) ; YAHOO . util . Connect = { _msxml _progid : [ "Microsoft.XMLHTTP" , "MSXML2.XMLHTTP.3.0" , "MSXML2.XMLHTTP" ] , _http _headers : { } , _has _http _headers : false , _use _default _post _header : true , _default _post _header : "application/x-www-form-urlencoded; charset=UTF-8" , _default _form _header : "application/x-www-form-urlencoded" , _use _default _xhr _header : true , _default _xhr _header : "XMLHttpRequest" , _has _default _headers : true , _default _headers : { } , _isFormSubmit : false , _isFileUpload : false , _formNode : null , _sFormData : null , _poll : { } , _timeOut : { } , _polling _interval : 50 , _transaction _id : 0 , _submitElementValue : null , _hasSubmitListener : ( function ( ) { if ( YAHOO . util . Event ) { YAHOO . util . Event . addListener ( document , "click" , function ( C ) { var B = YAHOO . util . Event . getTarget ( C ) , A = B . nodeName . toLowerCase ( ) ; if ( ( A === "input" || A === "button" ) && ( B . type && B . type . toLowerCase ( ) == "submit" ) ) { YAHOO . util . Connect . _submitElementValue = encodeURIComponent ( B . name ) + "=" + encodeURIComponent ( B . value ) ; } } ) ; return true ; } return false ; } ) ( ) , startEvent : new YAHOO . util . CustomEvent ( "start" ) , completeEvent : new YAHOO . util . CustomEvent ( "complete" ) , successEvent : new YAHOO . util . CustomEvent ( "success" ) , failureEvent : new YAHOO . util . CustomEvent ( "failure" ) , uploadEvent : new YAHOO . util . CustomEvent ( "upload" ) , abortEvent : new YAHOO . util . CustomEvent ( "abort" ) , _customEvents : { onStart : [ "startEvent" , "start" ] , onComplete : [ "completeEvent" , "complete" ] , onSuccess : [ "successEvent" ,
} else { this . _has _http _headers = true ; } } , setHeader : function ( A ) { var B ; if ( this . _has _default _headers ) { for ( B in this . _default _headers ) { if ( YAHOO . lang . hasOwnProperty ( this . _default _headers , B ) ) { A . conn . setRequestHeader ( B , this . _default _headers [ B ] ) ; } } } if ( this . _has _http _headers ) { for ( B in this . _http _headers ) { if ( YAHOO . lang . hasOwnProperty ( this . _http _headers , B ) ) { A . conn . setRequestHeader ( B , this . _http _headers [ B ] ) ; } } delete this . _http _headers ; this . _http _headers = { } ; this . _has _http _headers = false ; } } , resetDefaultHeaders : function ( ) { delete this . _default _headers ; this . _default _headers = { } ; this . _has _default _headers = false ; } , setForm : function ( M , H , C ) { var L , B , K , I , P , J = false , F = [ ] , O = 0 , E , G , D , N , A ; this . resetFormState ( ) ; if ( typeof M == "string" ) { L = ( document . getElementById ( M ) || document . forms [ M ] ) ; } else { if ( typeof M == "object" ) { L = M ; } else { return ; } } if ( H ) { this . createFrame ( C ? C : null ) ; this . _isFormSubmit = true ; this . _isFileUpload = true ; this . _formNode = L ; return ; } for ( E = 0 , G = L . elements . length ; E < G ; ++ E ) { B = L . elements [ E ] ; P = B . disabled ; K = B . name ; if ( ! P && K ) { K = encodeURIComponent ( K ) + "=" ; I = encodeURIComponent ( B . value ) ; switch ( B . type ) { case "select-one" : if ( B . selectedIndex > - 1 ) { A = B . options [ B . selectedIndex ] ; F [ O ++ ] = K + encodeURIComponent ( ( A . attributes . value && A . attributes . value . specified ) ? A . value : A . text ) ; } break ; case "select-multiple" : if ( B . selectedIndex > - 1 ) { for ( D = B . selectedIndex , N = B . options . length ; D < N ; ++ D ) { A = B . options [ D ] ; if ( A . selected ) { F [ O ++ ] = K + encodeURIComponent ( ( A . attributes . value && A . attributes . value . specified ) ? A . value : A . text ) ; } } } break ; case "radio" : case "checkbox" : if ( B . checked ) { F [ O ++ ] = K + I ; } break ; case "file" : case undefined : case "reset" : case "button" : break ; case "submit" : if ( J === false ) { if ( this . _hasSubmitListener && this . _submitElementValue ) { F [ O ++ ] = this . _submitElementValue ; } J = true ; } break ; default : F [ O ++ ] = K + I ; } } } this . _isFormSubmit = true ; this . _sFormData = F . join ( "&" ) ; this . initHeader ( "Content-Type" , this . _default _form _header ) ; return this . _sFormData ; } , resetFormState : function ( ) { this . _isFormSubmit = false ; this . _isFileUpload = false ; this . _formNode = null ; this . _sFormData = "" ; } , createFrame : function ( A ) { var B = "yuiIO" + this . _transaction _id ; var C ; if ( YAHOO . env . ua . ie ) { C = document . createElement ( '<iframe id="' + B + '" name="' + B + '" />' ) ; if ( typeof A == "boolean" ) { C . src = "javascript:false" ; } } else { C = document . createElement ( "iframe" ) ; C . id = B ; C . name = B ; } C . style . position = "absolute" ; C . style . top = "-1000px" ; C . style . left = "-1000px" ; document . body . appendChild ( C ) ; } , appendPostData : function ( A ) { var D = [ ] , B = A . split ( "&" ) , C , E ; for ( C = 0 ; C < B . length ; C ++ ) { E = B [ C ] . indexOf ( "=" ) ; if ( E != - 1 ) { D [ C ] = document . createElement ( "input" ) ; D [ C ] . type = "hidden" ; D [ C ] . name = decodeURIComponent ( B [ C ] . substring ( 0 , E ) ) ; D [ C ] . value = decodeURIComponent ( B [ C ] . substring ( E + 1 ) ) ; this . _formNode . appendChild ( D [ C ] ) ; } } return D ; } , uploadFile : function ( D , N , E , C ) { var I = "yuiIO" + D . tId , J = "multipart/form-data" , L = document . getElementById ( I ) , O = this , K = ( N && N . argument ) ? N . argument : null , M , H , B , G ; var A = { action : this . _formNode . getAttribute ( "action" ) , method : this . _formNode . getAttribute ( "method" ) , target : this . _formNode . getAttribute ( "target" ) } ; this . _formNode . setAttribute ( "action" , E ) ; this . _formNode . setAttribute ( "method" , "POST" ) ; this . _formNode . setAttribute ( "target" , I ) ; if ( YAHOO . env . ua . ie ) { this . _formNode . setAttribute ( "encoding" , J ) ; } else { this . _formNode . setAttribute ( "enctype" , J ) ; } if ( C ) { M = this . appendPostData ( C ) ; } this . _formNode . submit ( ) ; this . startEvent . fire ( D , K ) ; if ( D . startEvent ) { D . startEvent . fire ( D , K ) ; } if ( N && N . timeout ) { this . _timeOut [ D . tId ] = window . setTimeout ( function ( ) { O . abort ( D , N , true ) ; } , N . timeout ) ; } if ( M && M . length > 0 ) { for ( H = 0 ; H < M . length ; H ++ ) { this . _formNode . removeChild ( M [ H ] ) ; } } for ( B in A ) { if ( YAHOO . lang . hasOwnProperty ( A , B ) ) { if ( A [ B ] ) { this . _formNode . setAttribute ( B , A [ B ] ) ; } else { this . _formNode . removeAttribute ( B ) ; } } } this . resetFormState ( ) ; var F = function ( ) { if ( N && N . timeout ) { window . clearTimeout ( O . _timeOut [ D . tId ] ) ; delete O . _timeOut [ D . tId ] ; } O . completeEvent . fire ( D , K ) ; if ( D . completeEvent ) { D . completeEvent . fire ( D , K ) ; } G = { tId : D . tId , argument : N . argument } ; try { G . responseText = L . contentWindow . document . body ? L . contentWindow . document . body . innerHTML : L . contentWindow . document . documentElement . textContent ; G . responseXML = L . contentWindow . document . XMLDocument ? L . contentWindow . document . XMLDocument : L . contentWindow . d
} return null ; } ; B . getAttribute = function ( E ) { var G = this . getEl ( ) ; if ( this . patterns . color . test ( E ) ) { var I = YAHOO . util . Dom . getStyle ( G , E ) ; var H = this ; if ( this . patterns . transparent . test ( I ) ) { var F = YAHOO . util . Dom . getAncestorBy ( G , function ( J ) { return ! H . patterns . transparent . test ( I ) ; } ) ; if ( F ) { I = C . Dom . getStyle ( F , E ) ; } else { I = A . DEFAULT _BGCOLOR ; } } } else { I = D . getAttribute . call ( this , E ) ; } return I ; } ; B . doMethod = function ( F , J , G ) { var I ; if ( this . patterns . color . test ( F ) ) { I = [ ] ; for ( var H = 0 , E = J . length ; H < E ; ++ H ) { I [ H ] = D . doMethod . call ( this , F , J [ H ] , G [ H ] ) ; } I = "rgb(" + Math . floor ( I [ 0 ] ) + "," + Math . floor ( I [ 1 ] ) + "," + Math . floor ( I [ 2 ] ) + ")" ; } else { I = D . doMethod . call ( this , F , J , G ) ; } return I ; } ; B . setRuntimeAttribute = function ( F ) { D . setRuntimeAttribute . call ( this , F ) ; if ( this . patterns . color . test ( F ) ) { var H = this . attributes ; var J = this . parseColor ( this . runtimeAttributes [ F ] . start ) ; var G = this . parseColor ( this . runtimeAttributes [ F ] . end ) ; if ( typeof H [ F ] [ "to" ] === "undefined" && typeof H [ F ] [ "by" ] !== "undefined" ) { G = this . parseColor ( H [ F ] . by ) ; for ( var I = 0 , E = J . length ; I < E ; ++ I ) { G [ I ] = J [ I ] + G [ I ] ; } } this . runtimeAttributes [ F ] . start = J ; this . runtimeAttributes [ F ] . end = G ; } } ; C . ColorAnim = A ; } ) ( ) ;
2019-07-17 20:08:50 +00:00
/ *
TERMS OF USE - EASING EQUATIONS
Open source under the BSD License .
Copyright 2001 Robert Penner All rights reserved .
Redistribution and use in source and binary forms , with or without modification , are permitted provided that the following conditions are met :
* Redistributions of source code must retain the above copyright notice , this list of conditions and the following disclaimer .
* Redistributions in binary form must reproduce the above copyright notice , this list of conditions and the following disclaimer in the documentation and / or other materials provided with the distribution .
* Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission .
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT LIMITED TO , THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED . IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT , INDIRECT , INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE , DATA , OR PROFITS ; OR BUSINESS INTERRUPTION ) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING NEGLIGENCE OR OTHERWISE ) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE , EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE .
* /
2019-07-17 20:16:19 +00:00
YAHOO . 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 - YAHOO . 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 ; } } } return D * ( 7.5625 * ( B -= ( 2.625 / 2.75 ) ) * B + 0.984375 ) + A ; } , bounceBoth : function ( B , A , D , C ) { if ( B < C / 2 ) { return YAHOO . util . Easing . bounceIn ( B * 2 , 0 , D , C ) * 0.5 + A ; } return YAHOO . util . Easing . bounceOut ( B * 2 - C , 0 , D , C ) * 0.5 + D * 0.5 + A ; } } ; ( function ( ) { var A = function ( H , G , I , J ) { if ( H ) { A . superclass . constructor . call ( this , H , G , I , J ) ; } } ; A . NAME = "Motion" ; var E = YAHOO . util ; YAHOO . extend ( A , E . ColorAnim ) ; var F = A . superclass ; var C = A . prototype ; C . patterns . points = /^points$/i ; C . setAttribute = function ( G , I , H ) { if ( this . patterns . points . test ( G ) ) { H = H || "px" ; F . setAttribute . call ( this , "left" , I [ 0 ] , H ) ; F . setAttribute . call ( this , "top" , I [ 1 ] , H ) ; } else { F . setAttribute . call ( this , G , I , H ) ; } } ; C . getAttribute = function ( G ) { if ( this . patterns . points . test ( G ) ) { var H = [ F . getAttribute . call ( this , "left" ) , F . getAttribute . call ( this , "top" ) ] ; } else { H = F . getAttribute . call ( this , G ) ; } return H ; } ; C . doMethod = function ( G , K , H ) { var J = null ; if ( this . patterns . points . test ( G ) ) { var I = this . method ( this . currentFrame , 0 , 100 , this . totalFrames ) / 100 ; J = E . Bezier . getPosition ( this . runtimeAttributes [ G ] , I ) ; } else { J = F . doMethod . call ( this , G , K , H ) ; } return J ; } ; C . setRuntimeAttribute = function ( P ) { if ( this . patterns . points . test ( P ) ) { var H = this . getEl ( ) ; var J = this . attributes ; var G ; var L = J [ "points" ] [ "control" ] || [ ] ; var I ; var M , O ; if ( L . length > 0 && ! ( L [ 0 ] instanceof Array ) ) { L = [ L ] ; } else { var K = [ ] ; for ( M = 0 , O = L . length ; M < O ; ++ M ) { K [ M ] = L [ M ] ; } L = K ; } if ( E . Dom . getStyle ( H , "position" ) == "static" ) { E . Dom . setStyle ( H , "position" , "relative" ) ; } if ( D ( J [ "points" ] [ "from" ] ) ) { E . Dom . setXY ( H , J [ "points" ] [ "from" ] ) ;
} else { E . Dom . setXY ( H , E . Dom . getXY ( H ) ) ; } G = this . getAttribute ( "points" ) ; if ( D ( J [ "points" ] [ "to" ] ) ) { I = B . call ( this , J [ "points" ] [ "to" ] , G ) ; var N = E . Dom . getXY ( this . getEl ( ) ) ; for ( M = 0 , O = L . length ; M < O ; ++ M ) { L [ M ] = B . call ( this , L [ M ] , G ) ; } } else { if ( D ( J [ "points" ] [ "by" ] ) ) { I = [ G [ 0 ] + J [ "points" ] [ "by" ] [ 0 ] , G [ 1 ] + J [ "points" ] [ "by" ] [ 1 ] ] ; for ( M = 0 , O = L . length ; M < O ; ++ M ) { L [ M ] = [ G [ 0 ] + L [ M ] [ 0 ] , G [ 1 ] + L [ M ] [ 1 ] ] ; } } } this . runtimeAttributes [ P ] = [ G ] ; if ( L . length > 0 ) { this . runtimeAttributes [ P ] = this . runtimeAttributes [ P ] . concat ( L ) ; } this . runtimeAttributes [ P ] [ this . runtimeAttributes [ P ] . length ] = I ; } else { F . setRuntimeAttribute . call ( this , P ) ; } } ; var B = function ( G , I ) { var H = E . Dom . getXY ( this . getEl ( ) ) ; G = [ G [ 0 ] - H [ 0 ] + I [ 0 ] , G [ 1 ] - H [ 1 ] + I [ 1 ] ] ; return G ; } ; var D = function ( G ) { return ( typeof G !== "undefined" ) ; } ; E . Motion = A ; } ) ( ) ; ( function ( ) { var D = function ( F , E , G , H ) { if ( F ) { D . superclass . constructor . call ( this , F , E , G , H ) ; } } ; D . NAME = "Scroll" ; var B = YAHOO . util ; YAHOO . extend ( D , B . ColorAnim ) ; var C = D . superclass ; var A = D . prototype ; A . doMethod = function ( E , H , F ) { var G = null ; if ( E == "scroll" ) { G = [ this . method ( this . currentFrame , H [ 0 ] , F [ 0 ] - H [ 0 ] , this . totalFrames ) , this . method ( this . currentFrame , H [ 1 ] , F [ 1 ] - H [ 1 ] , this . totalFrames ) ] ; } else { G = C . doMethod . call ( this , E , H , F ) ; } return G ; } ; A . getAttribute = function ( E ) { var G = null ; var F = this . getEl ( ) ; if ( E == "scroll" ) { G = [ F . scrollLeft , F . scrollTop ] ; } else { G = C . getAttribute . call ( this , E ) ; } return G ; } ; A . setAttribute = function ( E , H , G ) { var F = this . getEl ( ) ; if ( E == "scroll" ) { F . scrollLeft = H [ 0 ] ; F . scrollTop = H [ 1 ] ; } else { C . setAttribute . call ( this , E , H , G ) ; } } ; B . Scroll = D ; } ) ( ) ; YAHOO . register ( "animation" , YAHOO . util . Anim , { version : "2.7.0" , build : "1799" } ) ; if ( ! YAHOO . util . DragDropMgr ) { YAHOO . util . DragDropMgr = function ( ) { var A = YAHOO . util . Event , B = YAHOO . util . Dom ; return { useShim : false , _shimActive : false , _shimState : false , _debugShim : false , _createShim : function ( ) { var C = document . createElement ( "div" ) ; C . id = "yui-ddm-shim" ; if ( document . body . firstChild ) { document . body . insertBefore ( C , document . body . firstChild ) ; } else { document . body . appendChild ( C ) ; } C . style . display = "none" ; C . style . backgroundColor = "red" ; C . style . position = "absolute" ; C . style . zIndex = "99999" ; B . setStyle ( C , "opacity" , "0" ) ; this . _shim = C ; A . on ( C , "mouseup" , this . handleMouseUp , this , true ) ; A . on ( C , "mousemove" , this . handleMouseMove , this , true ) ; A . on ( window , "scroll" , this . _sizeShim , this , true ) ; } , _sizeShim : function ( ) { if ( this . _shimActive ) { var C = this . _shim ; C . style . height = B . getDocumentHeight ( ) + "px" ; C . style . width = B . getDocumentWidth ( ) + "px" ; C . style . top = "0" ; C . style . left = "0" ; } } , _activateShim : function ( ) { if ( this . useShim ) { if ( ! this . _shim ) { this . _createShim ( ) ; } this . _shimActive = true ; var C = this . _shim , D = "0" ; if ( this . _debugShim ) { D = ".5" ; } B . setStyle ( C , "opacity" , D ) ; this . _sizeShim ( ) ; C . style . display = "block" ; } } , _deactivateShim : function ( ) { this . _shim . style . display = "none" ; this . _shimActive = false ; } , _shim : null , ids : { } , handleIds : { } , dragCurrent : null , dragOvers : { } , deltaX : 0 , deltaY : 0 , preventDefault : true , stopPropagation : true , initialized : false , locked : false , interactionInfo : null , init : function ( ) { this . initialized = true ; } , POINT : 0 , INTERSECT : 1 , STRICT _INTERSECT : 2 , mode : 0 , _execOnAll : function ( E , D ) { for ( var F in this . ids ) { for ( var C in this . ids [ F ] ) { var G = this . ids [ F ] [ C ] ; if ( ! this . isTypeOfDD ( G ) ) { continue ; } G [ E ] . apply ( G , D ) ; } } } , _onLoad : function ( ) { this . init ( ) ; A . on ( document , "mouseup" , this . handleMouseUp , this , true ) ; A . on ( document , "mousemove" , this . handleMouseMove , this , true ) ; A . on ( window , "unload" , this . _onUnload , this , true ) ; A . on ( window , "resize" , this . _onResize , this , true ) ; } , _onResize : function ( C ) { this . _execOnAll ( "resetConstraints" , [ ] ) ; } , lock : function ( ) { this . locked = true ; } , unlock : function ( ) { this . locked = false ; } , isLocked : function ( ) { return this . locked ; } , locationCache : { } , useCache : true , clickPixelThresh : 3 , clickTimeThresh : 1000 , dragThreshMet : false , clickTimeout : null , startX : 0 , startY : 0 , fromTimeout : false , regDragDrop : function ( D , C ) { if ( ! this . initialized ) { this . init ( ) ; } if ( ! this . ids [ C ] ) { this . ids [ C ] = { } ; } this . ids [ C ] [ D . id ] = D ; } , removeDDFromGroup : function ( E , C ) { if ( ! this . ids [ C ] ) { this . ids [ C ] = { } ; } var D = this . ids [ C ] ; if ( D && D [ E . id ] ) { delete D [ E . id ] ; } } , _remove : function ( E ) { for ( var D in E . groups ) { if ( D ) { var C = this . ids [ D ] ; if ( C && C [ E . id ] ) { delete C [ E . id ] ; } } } delete this . handleIds [ E . id ] ; } , regHandle : function ( D , C ) { if ( ! this . handleIds [ D ] ) { this . handleIds [ D ] = { } ; } this
2019-07-17 20:08:50 +00:00
} if ( ! this . isOverTarget ( P , d , this . mode , U ) ) { c . outEvts . push ( d ) ; } I [ S ] = true ; delete this . dragOvers [ S ] ; } for ( var R in a . groups ) { if ( "string" != typeof R ) { continue ; } for ( S in this . ids [ R ] ) { var G = this . ids [ R ] [ S ] ; if ( ! this . isTypeOfDD ( G ) ) { continue ; } if ( G . isTarget && ! G . isLocked ( ) && G != a ) { if ( this . isOverTarget ( P , G , this . mode , U ) ) { D [ R ] = true ; if ( L ) { c . dropEvts . push ( G ) ; } else { if ( ! I [ G . id ] ) { c . enterEvts . push ( G ) ; } else { c . overEvts . push ( G ) ; } this . dragOvers [ G . id ] = G ; } } } } } this . interactionInfo = { out : c . outEvts , enter : c . enterEvts , over : c . overEvts , drop : c . dropEvts , point : P , draggedRegion : U , sourceRegion : this . locationCache [ a . id ] , validDrop : L } ; for ( var C in D ) { Q . push ( C ) ; } if ( L && ! c . dropEvts . length ) { this . interactionInfo . validDrop = false ; if ( a . events . invalidDrop ) { a . onInvalidDrop ( V ) ; a . fireEvent ( "invalidDropEvent" , { e : V } ) ; } } for ( S = 0 ; S < E . length ; S ++ ) { var Y = null ; if ( c [ E [ S ] + "Evts" ] ) { Y = c [ E [ S ] + "Evts" ] ; } if ( Y && Y . length ) { var H = E [ S ] . charAt ( 0 ) . toUpperCase ( ) + E [ S ] . substr ( 1 ) , X = "onDrag" + H , J = "b4Drag" + H , O = "drag" + H + "Event" , W = "drag" + H ; if ( this . mode ) { if ( a . events [ J ] ) { a [ J ] ( V , Y , Q ) ; a . fireEvent ( J + "Event" , { event : V , info : Y , group : Q } ) ; } if ( a . events [ W ] ) { a [ X ] ( V , Y , Q ) ; a . fireEvent ( O , { event : V , info : Y , group : Q } ) ; } } else { for ( var Z = 0 , T = Y . length ; Z < T ; ++ Z ) { if ( a . events [ J ] ) { a [ J ] ( V , Y [ Z ] . id , Q [ 0 ] ) ; a . fireEvent ( J + "Event" , { event : V , info : Y [ Z ] . id , group : Q [ 0 ] } ) ; } if ( a . events [ W ] ) { a [ X ] ( V , Y [ Z ] . id , Q [ 0 ] ) ; a . fireEvent ( O , { event : V , info : Y [ Z ] . id , group : Q [ 0 ] } ) ; } } } } } } , getBestMatch : function ( E ) { var G = null ; var D = E . length ; if ( D == 1 ) { G = E [ 0 ] ; } else { for ( var F = 0 ; F < D ; ++ F ) { var C = E [ F ] ; if ( this . mode == this . INTERSECT && C . cursorIsOver ) { G = C ; break ; } else { if ( ! G || ! G . overlap || ( C . overlap && G . overlap . getArea ( ) < C . overlap . getArea ( ) ) ) { G = C ; } } } } return G ; } , refreshCache : function ( D ) { var F = D || this . ids ; for ( var C in F ) { if ( "string" != typeof C ) { continue ; } for ( var E in this . ids [ C ] ) { var G = this . ids [ C ] [ E ] ; if ( this . isTypeOfDD ( G ) ) { var H = this . getLocation ( G ) ; if ( H ) { this . locationCache [ G . id ] = H ; } else { delete this . locationCache [ G . id ] ; } } } } } , verifyEl : function ( D ) { try { if ( D ) { var C = D . offsetParent ; if ( C ) { return true ; } } } catch ( E ) { } return false ; } , getLocation : function ( H ) { if ( ! this . isTypeOfDD ( H ) ) { return null ; } var F = H . getEl ( ) , K , E , D , M , L , N , C , J , G ; try { K = YAHOO . util . Dom . getXY ( F ) ; } catch ( I ) { } if ( ! K ) { return null ; } E = K [ 0 ] ; D = E + F . offsetWidth ; M = K [ 1 ] ; L = M + F . offsetHeight ; N = M - H . padding [ 0 ] ; C = D + H . padding [ 1 ] ; J = L + H . padding [ 2 ] ; G = E - H . padding [ 3 ] ; return new YAHOO . util . Region ( N , C , J , G ) ; } , isOverTarget : function ( K , C , E , F ) { var G = this . locationCache [ C . id ] ; if ( ! G || ! this . useCache ) { G = this . getLocation ( C ) ; this . locationCache [ C . id ] = G ; } if ( ! G ) { return false ; } C . cursorIsOver = G . contains ( K ) ; var J = this . dragCurrent ; if ( ! J || ( ! E && ! J . constrainX && ! J . constrainY ) ) { return C . cursorIsOver ; } C . overlap = null ; if ( ! F ) { var H = J . getTargetCoord ( K . x , K . y ) ; var D = J . getDragEl ( ) ; F = new YAHOO . util . Region ( H . y , H . x + D . offsetWidth , H . y + D . offsetHeight , H . x ) ; } var I = F . intersect ( G ) ; if ( I ) { C . overlap = I ; return ( E ) ? true : C . cursorIsOver ; } else { return false ; } } , _onUnload : function ( D , C ) { this . unregAll ( ) ; } , unregAll : function ( ) { if ( this . dragCurrent ) { this . stopDrag ( ) ; this . dragCurrent = null ; } this . _execOnAll ( "unreg" , [ ] ) ; this . ids = { } ; } , elementCache : { } , getElWrapper : function ( D ) { var C = this . elementCache [ D ] ; if ( ! C || ! C . el ) { C = this . elementCache [ D ] = new this . ElementWrapper ( YAHOO . util . Dom . get ( D ) ) ; } return C ; } , getElement : function ( C ) { return YAHOO . util . Dom . get ( C ) ; } , getCss : function ( D ) { var C = YAHOO . util . Dom . get ( D ) ; return ( C ) ? C . style : null ; } , ElementWrapper : function ( C ) { this . el = C || null ; this . id = this . el && C . id ; this . css = this . el && C . style ; } , getPosX : function ( C ) { return YAHOO . util . Dom . getX ( C ) ; } , getPosY : function ( C ) { return YAHOO . util . Dom . getY ( C ) ; } , swapNode : function ( E , C ) { if ( E . swapNode ) { E . swapNode ( C ) ; } else { var F = C . parentNode ; var D = C . nextSibling ; if ( D == E ) { F . insertBefore ( E , C ) ; } else { if ( C == E . nextSibling ) { F . insertBefore ( C , E ) ; } else { E . parentNode . replaceChild ( C , E ) ; F . insertBefore ( E , D ) ; } } } } , getScroll : function ( ) { var E , C , F = document . documentElement , D = document . body ; if ( F && ( F . scrollTop || F . scrollLeft ) ) { E = F . scrollTop ; C = F . scrollLeft ; } else { if ( D ) { E = D . scrollTop ; C = D . scrollLeft ; } else { } } return { top : E , left : C } ; } , getStyle : function ( D , C ) { return YAHOO . util . Dom . getStyle ( D , C ) ; } , getScrollTop : function ( ) { return this . getScroll ( ) . top ; } , getScrollLeft : function ( ) { return this . getScroll ( ) . left ; } , moveToEl : function ( C , E ) { var D = YAHOO . u
2019-07-17 20:16:19 +00:00
} return this . _domRef ; } , getDragEl : function ( ) { return B . get ( this . dragElId ) ; } , init : function ( F , C , D ) { this . initTarget ( F , C , D ) ; A . on ( this . _domRef || this . id , "mousedown" , this . handleMouseDown , this , true ) ; for ( var E in this . events ) { this . createEvent ( E + "Event" ) ; } } , initTarget : function ( E , C , D ) { this . config = D || { } ; this . events = { } ; this . DDM = YAHOO . util . DDM ; this . groups = { } ; if ( typeof E !== "string" ) { this . _domRef = E ; E = B . generateId ( E ) ; } this . id = E ; this . addToGroup ( ( C ) ? C : "default" ) ; this . handleElId = E ; A . onAvailable ( E , this . handleOnAvailable , this , true ) ; this . setDragElId ( E ) ; this . invalidHandleTypes = { A : "A" } ; this . invalidHandleIds = { } ; this . invalidHandleClasses = [ ] ; this . applyConfig ( ) ; } , applyConfig : function ( ) { this . events = { mouseDown : true , b4MouseDown : true , mouseUp : true , b4StartDrag : true , startDrag : true , b4EndDrag : true , endDrag : true , drag : true , b4Drag : true , invalidDrop : true , b4DragOut : true , dragOut : true , dragEnter : true , b4DragOver : true , dragOver : true , b4DragDrop : true , dragDrop : true } ; if ( this . config . events ) { for ( var C in this . config . events ) { if ( this . config . events [ C ] === false ) { this . events [ C ] = false ; } } } this . padding = this . config . padding || [ 0 , 0 , 0 , 0 ] ; this . isTarget = ( this . config . isTarget !== false ) ; this . maintainOffset = ( this . config . maintainOffset ) ; this . primaryButtonOnly = ( this . config . primaryButtonOnly !== false ) ; this . dragOnly = ( ( this . config . dragOnly === true ) ? true : false ) ; this . useShim = ( ( this . config . useShim === true ) ? true : false ) ; } , handleOnAvailable : function ( ) { this . available = true ; this . resetConstraints ( ) ; this . onAvailable ( ) ; } , setPadding : function ( E , C , F , D ) { if ( ! C && 0 !== C ) { this . padding = [ E , E , E , E ] ; } else { if ( ! F && 0 !== F ) { this . padding = [ E , C , E , C ] ; } else { this . padding = [ E , C , F , D ] ; } } } , setInitPosition : function ( F , E ) { var G = this . getEl ( ) ; if ( ! this . DDM . verifyEl ( G ) ) { if ( G && G . style && ( G . style . display == "none" ) ) { } else { } return ; } var D = F || 0 ; var C = E || 0 ; var H = B . getXY ( G ) ; this . initPageX = H [ 0 ] - D ; this . initPageY = H [ 1 ] - C ; this . lastPageX = H [ 0 ] ; this . lastPageY = H [ 1 ] ; this . setStartPosition ( H ) ; } , setStartPosition : function ( D ) { var C = D || B . getXY ( this . getEl ( ) ) ; this . deltaSetXY = null ; this . startPageX = C [ 0 ] ; this . startPageY = C [ 1 ] ; } , addToGroup : function ( C ) { this . groups [ C ] = true ; this . DDM . regDragDrop ( this , C ) ; } , removeFromGroup : function ( C ) { if ( this . groups [ C ] ) { delete this . groups [ C ] ; } this . DDM . removeDDFromGroup ( this , C ) ; } , setDragElId : function ( C ) { this . dragElId = C ; } , setHandleElId : function ( C ) { if ( typeof C !== "string" ) { C = B . generateId ( C ) ; } this . handleElId = C ; this . DDM . regHandle ( this . id , C ) ; } , setOuterHandleElId : function ( C ) { if ( typeof C !== "string" ) { C = B . generateId ( C ) ; } A . on ( C , "mousedown" , this . handleMouseDown , this , true ) ; this . setHandleElId ( C ) ; this . hasOuterHandles = true ; } , unreg : function ( ) { A . removeListener ( this . id , "mousedown" , this . handleMouseDown ) ; this . _domRef = null ; this . DDM . _remove ( this ) ; } , isLocked : function ( ) { return ( this . DDM . isLocked ( ) || this . locked ) ; } , handleMouseDown : function ( J , I ) { var D = J . which || J . button ; if ( this . primaryButtonOnly && D > 1 ) { return ; } if ( this . isLocked ( ) ) { return ; } var C = this . b4MouseDown ( J ) , F = true ; if ( this . events . b4MouseDown ) { F = this . fireEvent ( "b4MouseDownEvent" , J ) ; } var E = this . onMouseDown ( J ) , H = true ; if ( this . events . mouseDown ) { H = this . fireEvent ( "mouseDownEvent" , J ) ; } if ( ( C === false ) || ( E === false ) || ( F === false ) || ( H === false ) ) { return ; } this . DDM . refreshCache ( this . groups ) ; var G = new YAHOO . util . Point ( A . getPageX ( J ) , A . getPageY ( J ) ) ; if ( ! this . hasOuterHandles && ! this . DDM . isOverTarget ( G , this ) ) { } else { if ( this . clickValidator ( J ) ) { this . setStartPosition ( ) ; this . DDM . handleMouseDown ( J , this ) ; this . DDM . stopEvent ( J ) ; } else { } } } , clickValidator : function ( D ) { var C = YAHOO . util . Event . getTarget ( D ) ; return ( this . isValidHandleChild ( C ) && ( this . id == this . handleElId || this . DDM . handleWasClicked ( C , this . id ) ) ) ; } , getTargetCoord : function ( E , D ) { var C = E - this . deltaX ; var F = D - this . deltaY ; if ( this . constrainX ) { if ( C < this . minX ) { C = this . minX ; } if ( C > this . maxX ) { C = this . maxX ; } } if ( this . constrainY ) { if ( F < this . minY ) { F = this . minY ; } if ( F > this . maxY ) { F = this . maxY ; } } C = this . getTick ( C , this . xTicks ) ; F = this . getTick ( F , this . yTicks ) ; return { x : C , y : F } ; } , addInvalidHandleType : function ( C ) { var D = C . toUpperCase ( ) ; this . invalidHandleTypes [ D ] = D ; } , addInvalidHandleId : function ( C ) { if ( typeof C !== "string" ) { C = B . generateId ( C ) ; } this . invalidHandleIds [ C ] = C ; } , addInvalidHandleClass : function ( C ) { this . invalidHandleClasses . push ( C ) ; } , removeInvalidHa
} this . constrainY = true ; } , resetConstraints : function ( ) { if ( this . initPageX || this . initPageX === 0 ) { var D = ( this . maintainOffset ) ? this . lastPageX - this . initPageX : 0 ; var C = ( this . maintainOffset ) ? this . lastPageY - this . initPageY : 0 ; this . setInitPosition ( D , C ) ; } else { this . setInitPosition ( ) ; } if ( this . constrainX ) { this . setXConstraint ( this . leftConstraint , this . rightConstraint , this . xTickSize ) ; } if ( this . constrainY ) { this . setYConstraint ( this . topConstraint , this . bottomConstraint , this . yTickSize ) ; } } , getTick : function ( I , F ) { if ( ! F ) { return I ; } else { if ( F [ 0 ] >= I ) { return F [ 0 ] ; } else { for ( var D = 0 , C = F . length ; D < C ; ++ D ) { var E = D + 1 ; if ( F [ E ] && F [ E ] >= I ) { var H = I - F [ D ] ; var G = F [ E ] - I ; return ( G > H ) ? F [ D ] : F [ E ] ; } } return F [ F . length - 1 ] ; } } } , toString : function ( ) { return ( "DragDrop " + this . id ) ; } } ; YAHOO . augment ( YAHOO . util . DragDrop , YAHOO . util . EventProvider ) ; } ) ( ) ; YAHOO . util . DD = function ( C , A , B ) { if ( C ) { this . init ( C , A , B ) ; } } ; YAHOO . extend ( YAHOO . util . DD , YAHOO . util . DragDrop , { scroll : true , autoOffset : function ( C , B ) { var A = C - this . startPageX ; var D = B - this . startPageY ; this . setDelta ( A , D ) ; } , setDelta : function ( B , A ) { this . deltaX = B ; this . deltaY = A ; } , setDragElPos : function ( C , B ) { var A = this . getDragEl ( ) ; this . alignElWithMouse ( A , C , B ) ; } , alignElWithMouse : function ( C , G , F ) { var E = this . getTargetCoord ( G , F ) ; if ( ! this . deltaSetXY ) { var H = [ E . x , E . y ] ; YAHOO . util . Dom . setXY ( C , H ) ; var D = parseInt ( YAHOO . util . Dom . getStyle ( C , "left" ) , 10 ) ; var B = parseInt ( YAHOO . util . Dom . getStyle ( C , "top" ) , 10 ) ; this . deltaSetXY = [ D - E . x , B - E . y ] ; } else { YAHOO . util . Dom . setStyle ( C , "left" , ( E . x + this . deltaSetXY [ 0 ] ) + "px" ) ; YAHOO . util . Dom . setStyle ( C , "top" , ( E . y + this . deltaSetXY [ 1 ] ) + "px" ) ; } this . cachePosition ( E . x , E . y ) ; var A = this ; setTimeout ( function ( ) { A . autoScroll . call ( A , E . x , E . y , C . offsetHeight , C . offsetWidth ) ; } , 0 ) ; } , cachePosition : function ( B , A ) { if ( B ) { this . lastPageX = B ; this . lastPageY = A ; } else { var C = YAHOO . util . Dom . getXY ( this . getEl ( ) ) ; this . lastPageX = C [ 0 ] ; this . lastPageY = C [ 1 ] ; } } , autoScroll : function ( J , I , E , K ) { if ( this . scroll ) { var L = this . DDM . getClientHeight ( ) ; var B = this . DDM . getClientWidth ( ) ; var N = this . DDM . getScrollTop ( ) ; var D = this . DDM . getScrollLeft ( ) ; var H = E + I ; var M = K + J ; var G = ( L + N - I - this . deltaY ) ; var F = ( B + D - J - this . deltaX ) ; var C = 40 ; var A = ( document . all ) ? 80 : 30 ; if ( H > L && G < C ) { window . scrollTo ( D , N + A ) ; } if ( I < N && N > 0 && I - N < C ) { window . scrollTo ( D , N - A ) ; } if ( M > B && F < C ) { window . scrollTo ( D + A , N ) ; } if ( J < D && D > 0 && J - D < C ) { window . scrollTo ( D - A , N ) ; } } } , applyConfig : function ( ) { YAHOO . util . DD . superclass . applyConfig . call ( this ) ; this . scroll = ( this . config . scroll !== false ) ; } , b4MouseDown : function ( A ) { this . setStartPosition ( ) ; this . autoOffset ( YAHOO . util . Event . getPageX ( A ) , YAHOO . util . Event . getPageY ( A ) ) ; } , b4Drag : function ( A ) { this . setDragElPos ( YAHOO . util . Event . getPageX ( A ) , YAHOO . util . Event . getPageY ( A ) ) ; } , toString : function ( ) { return ( "DD " + this . id ) ; } } ) ; YAHOO . util . DDProxy = function ( C , A , B ) { if ( C ) { this . init ( C , A , B ) ; this . initFrame ( ) ; } } ; YAHOO . util . DDProxy . dragElId = "ygddfdiv" ; YAHOO . extend ( YAHOO . util . DDProxy , YAHOO . util . DD , { resizeFrame : true , centerFrame : false , createFrame : function ( ) { var B = this , A = document . body ; if ( ! A || ! A . firstChild ) { setTimeout ( function ( ) { B . createFrame ( ) ; } , 50 ) ; return ; } var F = this . getDragEl ( ) , E = YAHOO . util . Dom ; if ( ! F ) { F = document . createElement ( "div" ) ; F . id = this . dragElId ; var D = F . style ; D . position = "absolute" ; D . visibility = "hidden" ; D . cursor = "move" ; D . border = "2px solid #aaa" ; D . zIndex = 999 ; D . height = "25px" ; D . width = "25px" ; var C = document . createElement ( "div" ) ; E . setStyle ( C , "height" , "100%" ) ; E . setStyle ( C , "width" , "100%" ) ; E . setStyle ( C , "background-color" , "#ccc" ) ; E . setStyle ( C , "opacity" , "0" ) ; F . appendChild ( C ) ; A . insertBefore ( F , A . firstChild ) ; } } , initFrame : function ( ) { this . createFrame ( ) ; } , applyConfig : function ( ) { YAHOO . util . DDProxy . superclass . applyConfig . call ( this ) ; this . resizeFrame = ( this . config . resizeFrame !== false ) ; this . centerFrame = ( this . config . centerFrame ) ; this . setDragElId ( this . config . dragElId || YAHOO . util . DDProxy . dragElId ) ; } , showFrame : function ( E , D ) { var C = this . getEl ( ) ; var A = this . getDragEl ( ) ; var B = A . style ; this . _resizeProxy ( ) ; if ( this . centerFrame ) { this . setDelta ( Math . round ( parseInt ( B . width , 10 ) / 2 ) , Math . round ( parseInt ( B . height , 10 ) / 2 ) ) ; } this . setDragElPos ( E , D ) ; YAHOO . util . Dom . setStyle ( A , "visibility" , "visible" ) ; } , _resizeProxy : function ( ) { if ( this . resizeFrame ) { var H = YAHOO . util . Dom ; var B = this . getEl ( ) ; var C = this . getDragEl ( ) ; va
F = ( F && F . get ) ? F . get ( "element" ) : B . get ( F ) ; var D = this . get ( "element" ) ; if ( ! D ) { return false ; } if ( ! E ) { return false ; } if ( D . parent != E ) { if ( F ) { E . insertBefore ( D , F ) ; } else { E . appendChild ( D ) ; } } this . fireEvent ( "appendTo" , { type : "appendTo" , target : E } ) ; return D ; } , get : function ( D ) { var F = this . _configs || { } , E = F . element ; if ( E && ! F [ D ] && ! YAHOO . lang . isUndefined ( E . value [ D ] ) ) { this . _setHTMLAttrConfig ( D ) ; } return C . prototype . get . call ( this , D ) ; } , setAttributes : function ( J , G ) { var E = { } , H = this . _configOrder ; for ( var I = 0 , D = H . length ; I < D ; ++ I ) { if ( J [ H [ I ] ] !== undefined ) { E [ H [ I ] ] = true ; this . set ( H [ I ] , J [ H [ I ] ] , G ) ; } } for ( var F in J ) { if ( J . hasOwnProperty ( F ) && ! E [ F ] ) { this . set ( F , J [ F ] , G ) ; } } } , set : function ( E , G , D ) { var F = this . get ( "element" ) ; if ( ! F ) { this . _queue [ this . _queue . length ] = [ "set" , arguments ] ; if ( this . _configs [ E ] ) { this . _configs [ E ] . value = G ; } return ; } if ( ! this . _configs [ E ] && ! YAHOO . lang . isUndefined ( F [ E ] ) ) { this . _setHTMLAttrConfig ( E ) ; } return C . prototype . set . apply ( this , arguments ) ; } , setAttributeConfig : function ( D , E , F ) { this . _configOrder . push ( D ) ; C . prototype . setAttributeConfig . apply ( this , arguments ) ; } , createEvent : function ( E , D ) { this . _events [ E ] = true ; return C . prototype . createEvent . apply ( this , arguments ) ; } , init : function ( E , D ) { this . _initElement ( E , D ) ; } , destroy : function ( ) { var D = this . get ( "element" ) ; YAHOO . util . Event . purgeElement ( D , true ) ; this . unsubscribeAll ( ) ; if ( D && D . parentNode ) { D . parentNode . removeChild ( D ) ; } this . _queue = [ ] ; this . _events = { } ; this . _configs = { } ; this . _configOrder = [ ] ; } , _initElement : function ( F , E ) { this . _queue = this . _queue || [ ] ; this . _events = this . _events || { } ; this . _configs = this . _configs || { } ; this . _configOrder = [ ] ; E = E || { } ; E . element = E . element || F || null ; var H = false ; var D = A . DOM _EVENTS ; this . DOM _EVENTS = this . DOM _EVENTS || { } ; for ( var G in D ) { if ( D . hasOwnProperty ( G ) ) { this . DOM _EVENTS [ G ] = D [ G ] ; } } if ( typeof E . element === "string" ) { this . _setHTMLAttrConfig ( "id" , { value : E . element } ) ; } if ( B . get ( E . element ) ) { H = true ; this . _initHTMLElement ( E ) ; this . _initContent ( E ) ; } YAHOO . util . Event . onAvailable ( E . element , function ( ) { if ( ! H ) { this . _initHTMLElement ( E ) ; } this . fireEvent ( "available" , { type : "available" , target : B . get ( E . element ) } ) ; } , this , true ) ; YAHOO . util . Event . onContentReady ( E . element , function ( ) { if ( ! H ) { this . _initContent ( E ) ; } this . fireEvent ( "contentReady" , { type : "contentReady" , target : B . get ( E . element ) } ) ; } , this , true ) ; } , _initHTMLElement : function ( D ) { this . setAttributeConfig ( "element" , { value : B . get ( D . element ) , readOnly : true } ) ; } , _initContent : function ( D ) { this . initAttributes ( D ) ; this . setAttributes ( D , true ) ; this . fireQueue ( ) ; } , _setHTMLAttrConfig : function ( D , F ) { var E = this . get ( "element" ) ; F = F || { } ; F . name = D ; F . setter = F . setter || this . DEFAULT _HTML _SETTER ; F . getter = F . getter || this . DEFAULT _HTML _GETTER ; F . value = F . value || E [ D ] ; this . _configs [ D ] = new YAHOO . util . Attribute ( F , this ) ; } } ; YAHOO . augment ( A , C ) ; YAHOO . util . Element = A ; } ) ( ) ; YAHOO . register ( "element" , YAHOO . util . Element , { version : "2.7.0" , build : "1799" } ) ; YAHOO . register ( "utilities" , YAHOO , { version : "2.7.0" , build : "1799" } ) ;