var req=false;function $(id){return document.getElementById(id);}
function timestamp(){var d=new Date();return parseInt(d.getTime()/1000);}
window.onload=function(){commonLoad();};function commonLoad(){if(practice_mode){checkOrient(true);}
setTimeout(scrollTo,1,0,1);setTimeout(function(){if(practice_mode){checkOrient(false);}
setInterval(checkOrient,300,false);},0);};var is_landscape=false;function checkOrient(aa){currentWidth=window.innerWidth;if(native_mode){return;}
if(currentWidth==320){if(is_landscape||aa){setTimeout(scrollTo,0,0,1);if(native_mode){document.body.style.height='100%';}
else{document.body.style.height='420px';}}
is_landscape=false;}
else{if(!is_landscape||aa){setTimeout(scrollTo,0,0,1);document.body.style.height='268px';}
is_landscape=true;}}
function hide(ba){if($(ba)){$(ba).className='hidden';}}
function show(ca){if($(ca)){$(ca).className='';}}
function showMenu(){hide('main_content');show('menu');}
function showMain(){hide('menu');show('main_content');}
function loadXMLDoc(da,ea,fa,ga){req=false;if(window.XMLHttpRequest){try{req=new XMLHttpRequest();}
catch(e){req=false;}}
else if(window.ActiveXObject){try{req=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{req=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e){req=false;}}}
if(req){req.onreadystatechange=fa;req.open(ea,da,true);if(ea=='POST'){req.setRequestHeader('Content-Type','application/x-www-form-urlencoded');}
if(!ga){ga="";}
req.send(ga);}}
function processReqChange(){if(req.readyState==4){if(req.status==200){}
else{}}}
