var X = new Object();

var myWebMailHost=self.location.hostname;
var hostPath="";
<!--ICAL.BeginSSL-->
  <!--ICAL.BeginIfCurrentDomainIsAVirtualDomain-->
    hostPath="https://"+myWebMailHost+":<!--ICAL.IMailSSLServerPort-->/";
  <!--ICAL.ElseBeginIfCurrentDomainIsAVirtualDomain-->
    hostPath="https://"+myWebMailHost+":<!--ICAL.IMailSSLServerPort-->/";
  <!--ICAL.EndBeginIfCurrentDomainIsAVirtualDomain-->
<!--ICAL.ElseBeginSSL-->
  <!--ICAL.BeginIfCurrentDomainIsAVirtualDomain-->
    hostPath="http://"+myWebMailHost+":<!--ICAL.IMailServerPort-->/";
  <!--ICAL.ElseBeginIfCurrentDomainIsAVirtualDomain-->
    hostPath="http://"+myWebMailHost+":<!--ICAL.IMailServerPort-->/";
  <!--ICAL.EndBeginIfCurrentDomainIsAVirtualDomain-->
 <!--ICAL.EndBeginSSL-->
 
var myLanguagePackPath = hostPath+"LanguagePacks/"

function Get_Cookie2(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 w(x){
	document.write(x)
}

var myCharset="UTF-8"
var myLanguage = Get_Cookie2('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('<s'+'cript type="text/javascript" charset='+myCharset+' language="JavaScript" src="'+ myLanguagePackPath +  myLanguage + '.js"></s'+'cript>');


