/* Copyright (c) 2004-2005 The Dojo Foundation, Licensed under the Academic Free License version 2.1 or above */if(typeof djConfig=="undefined"){var djConfig={};}var dojo;if(typeof dojo=="undefined"){dojo={};}var dj_global=this;function dj_debug(){var _1=arguments;if(typeof dojo.hostenv.println!="function"){dj_throw("attempt to call dj_debug when there is no dojo.hostenv println implementation (yet?)");}if(!dojo.hostenv.is_debug_){return;}var _2=dj_global["jum"];var s=_2?"":"DEBUG: ";for(var i=0;i<_1.length;++i){s+=_1[i];}if(_2){jum.debug(s);}else{dojo.hostenv.println(s);}}function dj_throw(_5){if((typeof dojo.hostenv!="undefined")&&(typeof dojo.hostenv.println!="undefined")){dojo.hostenv.println("fatal error: "+_5);}throw Error(_5);}function dj_error_to_string(_6){return (typeof _6.message!=="undefined"?_6.message:(typeof _6.description!=="undefined"?_6.description:_6));}function dj_rethrow(_5,_6){var _7=dj_error_to_string(_6);dj_throw(_5+": "+_7);}function dj_eval(s){return eval(s);}function dj_unimplemented(_9,_10){var _11="No implementation of function '"+_9+"'";if((typeof _10!="undefined")&&(_10)){_11+=" "+_10;}_11+=" (host environment '"+dojo.hostenv.getName()+"')";dj_throw(_11);}function dj_inherits(_12,_13){if(typeof _13!="function"){dj_throw("eek: superclass not a function: "+_13+"\nsubclass is: "+_12);}_12.prototype=new _13();_12.prototype.constructor=_12;_12["super"]=_13;}dojo.render={name:"",ver:0,os:{win:false,linux:false,osx:false},html:{capable:false,support:{builtin:false,plugin:false},ie:false,opera:false,khtml:false,safari:false,moz:false},svg:{capable:false,support:{builtin:false,plugin:false},corel:false,adobe:false,batik:false},swf:{capable:false,support:{builtin:false,plugin:false},mm:false},swt:{capable:false,support:{builtin:false,plugin:false},ibm:false}};dojo.hostenv={is_debug_:((typeof djConfig["isDebug"]=="undefined")?false:djConfig["isDebug"]),base_script_uri_:((typeof djConfig["baseScriptUri"]=="undefined")?undefined:djConfig["baseScriptUri"]),base_relative_path_:((typeof djConfig["baseRelativePath"]=="undefined")?"":djConfig["baseRelativePath"]),library_script_uri_:((typeof djConfig["libraryScriptUri"]=="undefined")?"":djConfig["libraryScriptUri"]),auto_build_widgets_:((typeof djConfig["parseWidgets"]=="undefined")?true:djConfig["parseWidgets"]),loading_modules_:{},addedToLoadingCount:[],removedFromLoadingCount:[],inFlightCount:0,modules_:{}};dojo.hostenv.name_="(unset)";dojo.hostenv.version_="(unset)";dojo.hostenv.pkgFileName="__package__";dojo.hostenv.getName=function(){return this.name_;};dojo.hostenv.getVersion=function(){return this.version_;};dojo.hostenv.getText=function(uri){dj_unimplemented("dojo.hostenv.getText","uri="+uri);};dojo.hostenv.getLibraryScriptUri=function(){dj_unimplemented("dojo.hostenv.getLibraryScriptUri","");};dojo.hostenv.getBaseScriptUri=function(){if(typeof this.base_script_uri_!="undefined"){return this.base_script_uri_;}var uri=this.library_script_uri_;if(!uri){uri=this.library_script_uri_=this.getLibraryScriptUri();if(!uri){dj_throw("Nothing returned by getLibraryScriptUri(): "+uri);}}var _15=uri.lastIndexOf("/");this.base_script_uri_=this.base_relative_path_;return this.base_script_uri_;};dojo.hostenv.normPath=function(_16){_16=_16.replace(/(\/\/)(\/)+/,"/");_16=_16.replace(/(\.\.)(\.)+/,"..");_16=_16.replace(/^(\.)+(\/)/,"");if(_16.indexOf("..")>=0){var _17=_16.split("/");var _18=[];for(var x=0;x<_17.length;x++){if(_17[x]==".."){if(_18.length){_18.pop();}else{_18.push("..");}}else{_18.push(_17[x]);}}return _18.join("/");}};dojo.hostenv.setBaseScriptUri=function(uri){this.base_script_uri_=uri;};dojo.hostenv.loadPath=function(_21,_22,cb){if(!_21){dj_throw("Missing relpath argument");}if((_21.charAt(0)=="/")||(_21.match(/^\w+:/))){dj_throw("Illegal argument '"+_21+"'; must be relative path");}var _24=this.getBaseScriptUri();var uri=_24+_21;try{var ok;if(!_22){ok=this.loadUri(uri);}else{ok=this.loadUriAndCheck(uri,_22);}return ok;}catch(e){return false;}};dojo.hostenv.loadUri=function(uri,cb){if(dojo.hostenv.loadedUris[uri]){return;}var _27=this.getText(uri,null,true);if(_27==null){return 0;}var _28=dj_eval(_27);return 1;};dojo.hostenv.getDepsForEval=function(_29){if(!_29){_29="";}var _30=[];var tmp=_29.match(/dojo.hostenv.loadModule\(.*?\)/mg);if(tmp){for(var x=0;x0){dj_debug("couldn't initialize, there are files still in flight");return;}this.modulesLoadedFired=true;var mll=this.modulesLoadedListeners;for(var x=0;x=0)||(html.AV.indexOf("Safari")>=0))?true:false;html.safari=(html.AV.indexOf("Safari")>=0)?true:false;html.moz=((html.UA.indexOf("Gecko")>=0)&&(!html.khtml))?true:false;html.ie=((document.all)&&(!html.opera))?true:false;html.ie50=html.ie&&html.AV.indexOf("MSIE 5.0")>=0;html.ie55=html.ie&&html.AV.indexOf("MSIE 5.5")>=0;html.ie60=html.ie&&html.AV.indexOf("MSIE 6.0")>=0;}dojo.hostenv.startPackage("dojo.hostenv");dojo.hostenv.name_="browser";var DJ_XMLHTTP_PROGIDS=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"];dojo.hostenv.getXmlhttpObject=function(){var _56=null;var _57=null;try{_56=new XMLHttpRequest();}catch(e){}if(!_56){for(var i=0;i<3;++i){var _59=DJ_XMLHTTP_PROGIDS[i];try{_56=new ActiveXObject(_59);}catch(e){_57=e;}if(_56){DJ_XMLHTTP_PROGIDS=[_59];dj_debug("successfully made an ActiveXObject using progid ",_59);break;}else{}}}if((_57)&&(!_56)){dj_rethrow("Could not create a new ActiveXObject using any of the progids "+DJ_XMLHTTP_PROGIDS.join(", "),_57);}else{if(!_56){return dj_throw("No XMLHTTP implementation available, for uri "+uri);}}return _56;};dojo.hostenv.getText=function(uri,_60,_61){var _62=this.getXmlhttpObject();if(_60){_62.onreadystatechange=function(){if((4==_62.readyState)&&(_62["status"])){if(_62.status==200){dj_debug("LOADED URI: "+uri);_60(_62.responseText);}}};}_62.open("GET",uri,_60?true:false);_62.send(null);if(_60){return null;}return _62.responseText;};function dj_last_script_src(){var _63=window.document.getElementsByTagName("script");if(_63.length<1){dj_throw("No script elements in window.document, so can't figure out my script src");}var _64=_63[_63.length-1];var src=_64.src;if(!src){dj_throw("Last script element (out of "+_63.length+") has no src");}return src;}if(!dojo.hostenv["library_script_uri_"]){dojo.hostenv.library_script_uri_=dj_last_script_src();}dojo.hostenv.println=function(s){try{var ti=document.createElement("div");document.body.appendChild(ti);ti.innerHTML=s;}catch(e){}};window.onload=function(evt){dojo.hostenv.modulesLoaded();};dojo.hostenv.modulesLoadedListeners.push(function(){if(dojo.hostenv.auto_build_widgets_){if(dj_eval_object_path("dojo.webui.widgets.Parse")){try{var _68=new dojo.xml.Parse();var _69=_68.parseElement(document.body,null,true);var _70=new dojo.webui.widgets.Parse(_69);_70.createComponents(_69);}catch(e){dj_debug(e);}}}});document.write("");dojo.hostenv.conditionalLoadModule=function(_71){var _72=_71["common"]||[];var _73=(_71[dojo.hostenv.name_])?_72.concat(_71[dojo.hostenv.name_]||[]):_72.concat(_71["default"]||[]);for(var x=0;x<_73.length;x++){var _75=_73[x];if(_75.constructor==Array){dojo.hostenv.loadModule.apply(dojo.hostenv,_75);}else{dojo.hostenv.loadModule(_75);}}};dojo.hostenv.require=dojo.hostenv.loadModule;dojo.hostenv.provide=dojo.hostenv.startPackage;dj_debug("Using host environment: ",dojo.hostenv.name_);dj_debug("getBaseScriptUri()=",dojo.hostenv.getBaseScriptUri());dojo.hostenv.startPackage("dojo.io.IO");dojo.io.transports=[];dojo.io.hdlrFuncNames=["load","error"];dojo.io.Event=function(_76,_77){this.type=_76||"unknown";this.data=_77;};dojo.io.Error=function(msg,_76,num){this.message=msg;this.type=_76||"unknown";this.number=num||0;};dojo.io.transports.addTransport=function(_80){this.push(_80);this[_80]=dojo.io[_80];};dojo.io.bind=function(_81){if(!_81["mimetype"]){_81.mimetype="text/plain";}if(!_81["method"]){_81.method="get";}if(!_81["handle"]){_81.handle=function(){};}for(var x=0;x=0;_106=_106-1){tvar+=dojo.io.buildFormGetString(_98.childNodes.item(_106));}}return tvar;};dojo.io.createIFrame=function(_107){if(window[_107]){return window[_107];}if(window.frames[_107]){return window.frames[_107];}var r=dojo.render.html;var _109=null;_109=document.createElement((((r.ie)&&(r.win))?"