<script type="text/javascript">
if (navigator.browserLanguage){language=navigator.browserLanguage}
if (navigator.userLanguage){language=navigator.userLanguage}
if (navigator.systemLanguage){language=navigator.systemLanguage}
if (navigator.language){language=navigator.language}
if (language.indexOf('-')==2) {language=language.substring(0,2);}
if (language=='en') { document.write("Hello there!"); }
else if (language=='jp') { document.write("Konichiwa!"); }
else if (language=='fr') { document.write("Bonjour!"); }
</script>