var user;
var host;
var topDomain;
var language;

function spamBlock(user, host, topDomain) {
 document.write('<a href="'+'mailto:'+user+'@'+host+'.'+topDomain+'">' +
 user + '@' + host + '.' + topDomain + '</a>');
}

function lang() {
  if(language = navigator.language) {
    language = language.substring(0,2);
  }
//One, easy way for Moz/NS above. 3 times the fun for Microsoft IE:
  else if(language = navigator.browserLanguage) {
    language = language.substring(0,2);
  }
  else if(language = navigator.systemLanguage) {
    language = language.substring(0,2);
  }
  else if(language = navigator.userLanguage) {
    language = language.substring(0,2);
  }
  else { language="en"; }	//English by default
  language.toLowerCase();
  switch (language) {
  case "de" : //Deutsch
      window.location="index.html.de";
      break;
  case "de" : //Francais
      window.location="index.html.fr";
      break;
  case "es" :	//Espanol
      window.location="index.html.es";
      break;
  case "it" :	//Italiano
      window.location="index.html.it";
      break;
  case "no" :	//Norge
      window.location="index.html.no";
      break;
  case "pt" :	//Portugese
      window.location="index.html.pt";
      break;
  case "ru" :	//Russian
      window.location="index.html.ru.utf8";
      break;
  case "zh" :	//Chinese
      window.location="index.html.zh-tw.big5";
      break;

//   case "nl" :	//Dutch
//   case "sv" :	//Swedish
    default :
      window.location="index.html.en";	//English by default
  }
}

