var lang = "en"; var page = ""; function init() { lang = path.substring(0,2); page = path.substr(3); //var flags = document.getElementById("flags"); //flags.style.visibility = "hidden"; if (usetranbuttons) { inittran(); } } function langclick(newlang) { if (newlang != lang) { window.location.href = 'http://'+window.location.host+'/'+newlang+'/'+page; } } function buttclick(e) { var elm = e.target; var id = parseInt(elm.id.substring(3)); if (buttpage[id].length == 0) { history.back(); } else { window.location.href = buttpage[id]; } } function buttenter(e) { var elm = e.target; elm.style.opacity = "0.3"; } function buttleave(e) { var elm = e.target; elm.style.opacity = "0"; } function touchenter(e) { var elm = e.target; elm.style.opacity = "0.3"; } function touchleave(e) { var elm = e.target; elm.style.opacity = "0"; } var hframe = null; function windresize(e) { if (hframe != null) { var height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; height = height * 70.0 / 100.0; var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; width = width * 95.0 / 100.0; hframe.height = height; hframe.width = width; } } function inittran() { var img = document.getElementById("image"); hframe = document.getElementById("helpframe"); var hdiv = document.getElementById("helpdiv"); var hrow = document.getElementById("helprow"); var shot = document.getElementById("shot"); if (domanual) { var height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; height = height * 70.0 / 100.0; var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; width = width * 95.0 / 100.0; hframe.height = height; hframe.width = width; hframe.src = "help_manual.html#"+manoffset; if (window.attachEvent) { window.attachEvent("onresize", windresize); } else if (window.addEventListener) { window.addEventListener("resize", windresize); } shot = null; } else { var sz = 0; if (butt_left != null) { sz = butt_left.length; } if (sz > 0) { butt = new Array(sz); for (var i = 0; i