// JavaScript Document

function simstart(){
if (top.innerWidth <= 99999) {
var W = top.innerWidth;
var H = top.innerHeight;
} else {
var W = document.body.clientWidth;
var H = document.body.clientHeight;
}
//top.location.href="simulator.html";
a = window.navigator.language;
b = window.navigator.systemLanguage;
c = window.navigator.userLanguage;
d = window.navigator.browserLanguage;
e = window.navigator.userAgent;
lang = (a + b + c + d +e).indexOf("ja");
if (Number(lang) < 0) {
 if ((W > 620)&&(H > 430)){top.location.href="http://www.realrailway.com/en/sotetsu/simulator.html";}
 else {alert("Windows size too small");}
} else {
 if ((W > 620)&&(H > 430)){top.location.href="http://www.realrailway.com/sotetsu/simulator.html";}
 else {alert("ウィンドウのサイズが不足しています");}
}
}