(function (window, undefined){ '$:nomunge'; var $ = window.jQuery || window.Cowboy || (window.Cowboy = { } ), jq_getObject; $.getObject = jq_getObject = function (parts, create, obj){ if (typeof parts === 'string') { parts = parts.split('.'); } if (typeof create !== 'boolean') { obj = create; create = undefined; } obj = obj || window; var p; while (obj && _AN_Read_length('length', parts)){ p = parts.shift(); if (obj[p] === undefined && create) { obj[p] = { } ; } obj = obj[p]; } return obj; } ; $.setObject = function (name, value, context){ var parts = name.split('.'), prop = parts.pop(), obj = jq_getObject(parts, true , context); return obj && typeof obj === 'object' && prop? (obj[prop] = value): undefined; } ; $.exists = function (name, context){ return jq_getObject(name, context) !== undefined; } ; } )(this);