code: function setBrowserLangDirection() {
  		
  		var lang;
  		if (window.dojoConfig) {
  			lang = window.dojoConfig.locale;
  		}
  		if (!lang) {
  			lang = navigator.languages ? navigator.languages[0] : navigator.language || navigator.userLanguage;
  		}
  		var isBidi = lang && "ar iw he".indexOf(lang.substring(0, 2)) !== - 1;
  
  		if (isBidi && isBidiEnabled()) {
  			var htmlElement = document.getElementsByTagName("html")[0];
  			if (htmlElement){ //should be always true
  				htmlElement.setAttribute ("dir", "rtl");
  			}
  		}
  	}
docs: $NON-NLS-0$