/*
	Copyright (c) 2004-2011, 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
*/


window[esri._dojoScopeName||"dojo"]._xdResourceLoaded(function(_1,_2,_3){return {depends:[["provide","dojo.robotx"],["require","dojo.robot"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dojo.robotx"]){_4._hasResource["dojo.robotx"]=true;_4.provide("dojo.robotx");_4.require("dojo.robot");_4.experimental("dojo.robotx");(function(){var _7=null;var _8=_4.connect(doh,"_groupStarted",function(){_4.disconnect(_8);_7.style.visibility="visible";});var _9=function(){_4.addOnLoad(function(){var _a={overflow:_4.isWebKit?"hidden":"visible",margin:"0px",borderWidth:"0px",height:"100%",width:"100%"};_4.style(document.documentElement,_a);_4.style(document.body,_a);document.body.appendChild(_7);var _b=document.createElement("base");_b.href=_7.src;document.getElementsByTagName("head")[0].appendChild(_b);});};var _c=false;var _d=null;var _e=doh.robot._run;doh.robot._run=function(_f){_c=true;_d=_f;doh.robot._run=_e;if(_7.src){_9();}};var _10=function(){doh.robot._updateDocument();_10=null;var _11=(document.compatMode=="BackCompat")?document.body:document.documentElement;var _12=document.getElementById("robotconsole").offsetHeight;if(_12){_7.style.height=(_11.clientHeight-_12)+"px";}if(_7.contentWindow.dojo){_7.contentWindow.dojo.addOnLoad(function(){doh.robot._run(_d);});}else{doh.robot._run(_d);}};var _13=function(){if(_10){_10();}var _14=_4.connect(_4.body(),"onunload",function(){_4.global=window;_4.doc=document;_4.disconnect(_14);});};_4.config.debugContainerId="robotconsole";_4.config.debugHeight=_4.config.debugHeight||200;document.write("<div id=\"robotconsole\" style=\"position:absolute;left:0px;bottom:0px;width:100%;\"></div>");_7=document.createElement("iframe");_7.setAttribute("ALLOWTRANSPARENCY","true");_7.scrolling=_4.isIE?"yes":"auto";_4.style(_7,{visibility:"hidden",border:"0px none",padding:"0px",margin:"0px",position:"absolute",left:"0px",top:"0px",width:"100%",height:"100%"});if(_7["attachEvent"]!==undefined){_7.attachEvent("onload",_13);}else{_4.connect(_7,"onload",_13);}_4.mixin(doh.robot,{_updateDocument:function(){_4.setContext(_7.contentWindow,_7.contentWindow.document);var win=_4.global;if(win["dojo"]){_4._topics=win.dojo._topics;}},initRobot:function(url){_7.src=url;if(_c){_9();}},waitForPageToLoad:function(_15){var d=new doh.Deferred();_10=function(){_10=null;doh.robot._updateDocument();d.callback(true);};_15();return d;}});})();}}};});