var X = new Object();

var OptFontSize= new Array();
var OptHelpPath = new Array();

var myLanguagePackPath = "/LanguagePacks/"

expires = new Date();
expires.setTime(expires.getTime() + (365 * 24 * 60 * 60 * 1000));

function getLanguageCookie(name) {
    var start = document.cookie.indexOf(name+"=");
    var len = start+name.length+1;
    if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
    if (start == -1) return null;
    var end = document.cookie.indexOf(";",len);
    if (end == -1) end = document.cookie.length;
    return unescape(document.cookie.substring(len,end));
}

function setLanguageCookie(name,value,expires,domain,path,secure) {
    document.cookie = name + "=" +escape(value) +
        ( (expires) ? ";expires=" + expires.toGMTString() : "") +
        ( (path) ? ";path=" + path : "") + 
        ( (domain) ? ";domain=" + domain : "") +
        ( (secure) ? ";secure" : "");
}

function changeLanguage(choice) {
  myLanguage = choice.options[choice.selectedIndex].value;
  if (myLanguage != "") {
    setLanguageCookie('language',myLanguage,expires,null,"/");
   	self.location.href=self.location.href
  }
}

function w(x){
	document.write(x)
}

// set charsets for all possible languages here - add more as needed
// see http://www.w3.org/International/O-charset-list.html for list
var myCharset="UTF-8"
var myLanguage = getLanguageCookie('language');
if (myLanguage=="English") myCharset="ISO-8859-1"
if (myLanguage=="German") myCharset="ISO-8859-1"
if (myLanguage=="French") myCharset="ISO-8859-1"
if (myLanguage=="Dutch") myCharset="ISO-8859-1"
if (myLanguage=="Spanish") myCharset="UTF-8"
if (myLanguage=="Japanese") myCharset="Shift-JIS"
if (myLanguage=="Chinese") myCharset="GB2312"
if (myLanguage=="Korean") myCharset="EUC-KR"

if(!myLanguage || myLanguage=='') myLanguage=myDefaultLanguage
document.write('\n<s'+'cript type="text/javascript" charset='+myCharset+' language="JavaScript" src="'+ myLanguagePackPath +  myLanguage + '.js"></s'+'cript>\n');







