| <!DOCTYPE HTML> |
| <html> |
| <head> |
| <title>Apache HTTP Server Test Page powered by CentOS</title> |
| <body> |
| <script type="text/javascript"> |
| var lang = navigator.language; |
| var match = 0; |
| var locales = ["es_ES"]; |
| |
| |
| for(locale in locales) |
| { |
| if(lang == locales[locale]) |
| { |
| match = 1; |
| break; |
| } |
| } |
| |
| |
| if(match == 0) |
| { |
| for(locale in locales) |
| { |
| var loc_lang = locales[locale].substring(0,2); |
| var language = lang.substring(0,2); |
| |
| if(loc_lang == language) |
| { |
| lang = locales[locale]; |
| match = 1; |
| break; |
| } |
| } |
| } |
| |
| |
| if(match == 0) |
| { |
| lang = 'en_US'; |
| } |
| |
| window.location = lang + "/index.html"; |
| </script> |
| </body> |
| </html> |