/* Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojox.secure.sandbox"]){dojo._hasResource["dojox.secure.sandbox"]=true;dojo.provide("dojox.secure.sandbox");dojo.require("dojox.secure.DOM");dojo.require("dojox.secure.capability");dojo.require("dojo.NodeList-fx");(function(){var _1=setTimeout;var _2=setInterval;if({}.__proto__){var _3=function(_4){var _5=Array.prototype[_4];if(_5&&!_5.fixed){(Array.prototype[_4]=function(){if(this==window){throw new TypeError("Called with wrong this");}return _5.apply(this,arguments);}).fixed=true;}};_3("concat");_3("reverse");_3("sort");_3("slice");_3("forEach");_3("filter");_3("reduce");_3("reduceRight");_3("every");_3("map");_3("some");}var _6=function(){return dojo.xhrGet.apply(dojo,arguments);};dojox.secure.sandbox=function(_7){var _8=dojox.secure.DOM(_7);_7=_8(_7);var _9=_7.ownerDocument;var _a,_b=dojox.secure._safeDojoFunctions(_7,_8);var _c=[];var _d=["isNaN","isFinite","parseInt","parseFloat","escape","unescape","encodeURI","encodeURIComponent","decodeURI","decodeURIComponent","alert","confirm","prompt","Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","Date","RegExp","Number","Object","Array","String","Math","setTimeout","setInterval","clearTimeout","clearInterval","dojo","get","set","forEach","load","evaluate"];for(var i in _b){_d.push(i);_c.push("var "+i+"=dojo."+i);}eval(_c.join(";"));function _e(_f,_10){_10=""+_10;if(dojox.secure.badProps.test(_10)){throw new Error("bad property access");}if(_f.__get__){return _f.__get__(_10);}return _f[_10];};function set(obj,_11,_12){_11=""+_11;_e(obj,_11);if(obj.__set){return obj.__set(_11);}obj[_11]=_12;return _12;};function _13(obj,fun){if(typeof fun!="function"){throw new TypeError();}if("length" in obj){if(obj.__get__){var len=obj.__get__("length");for(var i=0;i