'; eval(StoryMenu.Text)+''; } } } MenuInit(); function NewGame() { TimeToFade = 100; closeWinds(); isPlay=1; playerDiv.innerHTML = ''; printDiv.innerHTML = ''; printAdd.innerHTML = ''; scroll(0,0); CurLocation = ''; NoBack(); asm_var0=undefined; asm_cur0=undefined; asm_prev0=undefined; asm_var1=undefined; asm_cur1=undefined; asm_prev1=undefined; asm_var2=undefined; asm_cur2=undefined; asm_prev2=undefined; asm_var3=undefined; asm_cur3=undefined; asm_prev3=undefined; asm_var4=undefined; asm_cur4=undefined; asm_prev4=undefined; asm_var5=undefined; asm_cur5=undefined; asm_prev5=undefined; asm_var6=undefined; asm_cur6=undefined; asm_prev6=undefined; asm_var7=undefined; asm_cur7=undefined; asm_prev7=undefined; asm_var8=undefined; asm_cur8=undefined; asm_prev8=undefined; asm_var9=undefined; asm_cur9=undefined; asm_prev9=undefined; asm_var10=undefined; asm_cur10=undefined; asm_prev10=undefined; asm_var11=undefined; asm_cur11=undefined; asm_prev11=undefined; asm_var12=undefined; asm_cur12=undefined; asm_prev12=undefined; asm_var13=undefined; asm_cur13=undefined; asm_prev13=undefined; stopAllEvents(); var StoryAuthor = GetLocation('StoryAuthor'); if (StoryAuthor!=false) { if (Trim(StoryAuthor.Text)!='') { StoryAuthor.Text=StoryAuthor.Text.replace(/<[^<>]+?>/g,' '); printDiv.innerHTML=""+StoryAuthor.Text+'
'; } } var StoryTitle = GetLocation('StoryTitle'); if (StoryTitle!=false) { StoryTitle.Text=StoryTitle.Text.replace(/<[^<>]+?>/g,' '); try { document.getElementsByTagName('title')[0].innerHTML=StoryTitle.Text; } catch (error) {} printDiv.innerHTML+="
"+StoryTitle.Text+'
'; } var StorySubtitle = GetLocation('StorySubtitle'); if (StorySubtitle!=false) { printDiv.innerHTML+=''+StorySubtitle.Text+'
'; } CurLocation = GetLocation('Start'); if (CurLocation==false) { CurLocation = GetLocation('StartPassages'); } if (CurLocation!=false) { printDiv.opacity = 0; printDiv.innerHTML+=''; eval(CurLocation.Text); fade('print'); } else { LocNotFound('Start'); } } NewGame(); } catch (error) { printDiv.innerHTML='Произошла ошибка кода:'+error.name+'
'+error.message; }