/*
YUI 3.6.0pr3 (build 1)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("attribute-complex",function(b){var a=b.Object,c=".";b.Attribute.Complex=function(){};b.Attribute.Complex.prototype={_normAttrVals:function(g){var i={},h={},j,d,f,e;if(g){for(e in g){if(g.hasOwnProperty(e)){if(e.indexOf(c)!==-1){j=e.split(c);d=j.shift();f=h[d]=h[d]||[];f[f.length]={path:j,value:g[e]};}else{i[e]=g[e];}}}return{simple:i,complex:h};}else{return null;}},_getAttrInitVal:function(o,m,r){var g=m.value,q=m.valueFn,e,k=false,d,f,j,h,s,p,n;if(!m.readOnly&&r){d=r.simple;if(d&&d.hasOwnProperty(o)){g=d[o];k=true;}}if(q&&!k){if(!q.call){q=this[q];}if(q){e=q.call(this,o);g=e;}}if(!m.readOnly&&r){f=r.complex;if(f&&f.hasOwnProperty(o)&&(g!==undefined)&&(g!==null)){n=f[o];for(j=0,h=n.length;j<h;++j){s=n[j].path;p=n[j].value;a.setValue(g,s,p);}}}return g;}};b.mix(b.Attribute,b.Attribute.Complex,true,null,1);b.AttributeComplex=b.Attribute.Complex;},"3.6.0pr3",{requires:["attribute-base"]});