var type=navigator.appName
if (type=="Netscape"){
	var lang = navigator.language
}
else{
	var lang = navigator.userLanguage
}

//cut down to first 2 chars of country code
var lang = lang.substr(0,2)


if (lang == "en")
window.location.replace('en/index.html')
else if (lang == "de")
window.location.replace('de/index.html')
else if (lang == "es")
window.location.replace('es/index.html')
else if (lang == "fr")
document.location.href='fr/index.html';

