/* *###################################### * eWebEditor v3.80 - Advanced online web based WYSIWYG HTML editor. * Copyright (c) 2003-2006 eWebSoft.com * * For further information go to http://www.ewebsoft.com/ * This copyright notice MUST stay intact for use. *###################################### */ var lang = new Object() ; var AvailableLangs = new Object() ; AvailableLangs["en"] = true ; AvailableLangs["zh-cn"] = true ; AvailableLangs["zh-tw"] = true ; AvailableLangs["en-th"] = true ; AvailableLangs.GetActiveLanguage = function(){ if ( config.AutoDetectLanguage=="1" ){ var sUserLang = navigator.userLanguage.toLowerCase() ; if ( this[sUserLang] ) return sUserLang ; else if ( sUserLang.length > 2 ){ sUserLang = sUserLang.substr(0,2) ; if ( this[sUserLang] ) return sUserLang ; } } return config.DefaultLanguage ; } AvailableLangs["Active"] = AvailableLangs.GetActiveLanguage(); document.write('