rem: d.locale = d.locale || (d.isIE ? n.userLanguage : n.language).toLowerCase(); 
add: d.locale = djConfig.locale || (d.isIE ? n.userLanguage : n.language).toLowerCase(); 
context: 	(function(){		var d = dojo;		// this is a scope protection closure. We set browser versions and grab		// the URL we were loaded from here.		// grab the node we were loaded from		if(document && document.getElementsByTagName){			var scripts = document.getElementsByTagName("script");			var rePkg = /dojo\.js([\?\.]|$)/i;			for(var i = 0; i < scripts.length; i++){				var src = scripts[i].getAttribute("src");				if(!src){ continue; }				var m = src.match(rePkg);				if(m){					// find out where we came from					if(!djConfig["baseUrl"]){						djConfig["baseUrl"] = src.substring(0, m.index);					}					// and find out if we need to modify our behavior					var cfg = scripts[i].getAttribute("djConfig");					if(cfg){						var cfgo = eval("({ "+cfg+" })");						for(var x in cfgo){							djConfig[x] = cfgo[x];						}					}					break; // "first Dojo wins"				}			}		}		d.baseUrl = djConfig["baseUrl"];		// fill in the rendering support information in dojo.render.*		var n = navigator;		var dua = n.userAgent;		var dav = n.appVersion;		var tv = parseFloat(dav);		d.isOpera = (dua.indexOf("Opera") >= 0) ? tv : 0;		d.isKhtml = (dav.indexOf("Konqueror") >= 0)||(dav.indexOf("Safari") >= 0) ? tv : 0;		d.isSafari = (dav.indexOf("Safari") >= 0) ? tv : 0;		var geckoPos = dua.indexOf("Gecko");		d.isMozilla = d.isMoz = ((geckoPos >= 0)&&(!d.isKhtml)) ? tv : 0;		d.isFF = 0;		d.isIE = 0;		try{			if(d.isMoz){				d.isFF = parseFloat(dua.split("Firefox/")[1].split(" ")[0]);			}			if((document.all)&&(!d.isOpera)){				d.isIE = parseFloat(dav.split("MSIE ")[1].split(";")[0]);			}		}catch(e){}		var cm = document["compatMode"];		d.isQuirks = (cm == "BackCompat")||(cm == "QuirksMode")||(d.isIE < 6);		// TODO: is the HTML LANG attribute relevant?		d.locale = d.locale || (d.isIE ? n.userLanguage : n.language).toLowerCase();		d._println = console.debug;		// These are in order of decreasing likelihood; this will change in time.		d._XMLHTTP_PROGIDS = ['Msxml2.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.4.0'];		d._xhrObj= function(){			// summary: 			//		does the work of portably generating a new XMLHTTPRequest			//		object.			var http = null;			var last_e = null;			try{ http = new XMLHttpRequest(); }catch(e){}			if(!http){				for(var i=0; i<3; ++i){					var progid = dojo._XMLHTTP_PROGIDS[i];					try{						http = new ActiveXObject(progid);					}catch(e){						last_e = e;					}					if(http){						dojo._XMLHTTP_PROGIDS = [progid];  // so faster next time						break;					}				}			}			if(!http){				throw new Error("XMLHTTP not available: "+last_e);			}			return http; // XMLHTTPRequest instance		}		d._isDocumentOk = function(http){			var stat = http["status"];			return Boolean(	((stat>=200)&&(stat<300))|| 	// allow any 2XX response code				(stat==304)|| 						// get it out of the cache				(stat==1223)|| 						// Internet Explorer mangled the status code				(location.protocol=="file:" && (stat==0 || stat==undefined))||				(location.protocol=="chrome:" && (stat==0 || stat==undefined))			);		}		d._getText = function(uri, fail_ok){			// summary: Read the contents of the specified uri and return those contents.			// uri:			//		A relative or absolute uri. If absolute, it still must be in			//		the same "domain" as we are.			// fail_ok:			//		Default false. If fail_ok and loading fails, return null			//		instead of throwing.			// alert("_getText: " + uri);			// NOTE: must be declared before scope switches ie. this._xhrObj()			var http = this._xhrObj();			if(dojo._Url){				uri = (new dojo._Url(window.location, uri)).toString();			}			/*			console.debug("_getText:", uri);			console.debug(window.location+"");			alert(uri);			*/			http.open('GET', uri, false);			try{				http.send(null);				if(!d._isDocumentOk(http)){					var err = Error("Unable to load "+uri+" status:"+ http.status);					err.status = http.status;					err.responseText = http.responseText;					throw err;				}			}catch(e){				// console.debug(e);				if(fail_ok){ return null; }				throw e;			}			return http.responseText; // String		}	})();
meta: 4497	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4497/4b2d6c5429edb0f96ee6e163ba3f54eafca77491/hostenv_browser.js/clean/_base/_loader/hostenv_browser.js