var mover=document.getElementById("wrap");var d="";var e="";var b="";var root=0;var firstload=1;var querystring="";var back;var content;var old;var inv;var giver;var receiver;var deadX="";var deadEvent="";var noLinks=0;var noBack=0;var scrollPosition;var invText="";var noInv=0;var meta;var noWait=0;var wait=0;var dCount=1;var f=[];f.dc="start";f.back="start";f.place="start";var fname=["dc","back","place","cycle","timer","inv","noBack","inv2","isRoot","giver","receiver","endTimer","givenUp","jonCombat","cellMessages","d3SeenScars","d3SeenDome","dTrigger1","dTrigger2","dTrigger3","dTrigger4","dTrigger5","dCount","d1Seen","d2Seen","d3Seen","d4Seen","d5Seen","whiteCollar","phaseShift","moreMemory","memBody","interfere","purseOpened","memRoomServiceNumber","memMenuItems","memHerRoom","memSniperRoom","memGroundSniperRoom","memJonathan","memFather","noWayWander","purification","newMessage","doorMan","girlHasPurse","sandwichChosen","orderedRoomService","foodSentToRoom","sniperOutCold","lampOn","tryEnterSide","chefGone","haveRifle","haveBriefcase","gunInCase","caseInDumpster","knocked","leaveMeAlone","havePurse","haveKeyCard","haveCellPhone","haveMenu","haveSandwich","idn","moves"];var fnameReset=["newMessage","doorMan","girlHasPurse","sandwichChosen","orderedRoomService","foodSentToRoom","sniperOutCold","lampOn","tryEnterSide","chefGone","haveRifle","haveBriefcase","gunInCase","caseInDumpster","knocked","leaveMeAlone","havePurse","haveKeyCard","haveCellPhone","haveMenu","haveSandwich"];for(i in fname){f[fname[i]]=0}function createDeadLinks(c){deadxLinkNum=c.split("{").length-1;for(var g=0;g"+ysplit[0]+"";y="{"+y+"}";c=c.replace(y,parsedUrl)}return c}function convertDeadLinks(c){deadxLinkNum=c.split("<").length-1;for(var g=0;g.*$/,"$1");parsedUrl="";y="<"+y+">";c=c.replace(y,parsedUrl)}return c}function createLinks(a){var h=a.split("{").length-1;for(var c=0;c"+g[0]+"";y="{"+y+"}";a=a.replace(y,parsedUrl)}return a}function pageHeight(){return window.innerHeight!=null?window.innerHeight:document.body!=null?document.body.clientHeight:null}function process(a){if(!ie){$.scrollTo("-=1px")}scrollPosition=window.pageYOffset;if(!firstload){document.getElementById("new").innerHTML=createDeadLinks(deadX);document.getElementById("new").setAttribute("class","old");document.getElementById("new").removeAttribute("id")}inv=0;f.dc=a;if(a!=back){f.back=back}root=0;if(firstload){query=window.location.search.substring(1);f.dc="start";f.back="start";f.place="start"}if(query&&firstload){document.getElementById("title").setAttribute("id","inner");var l=query.split("|");for(var j=0;j<=fname.length;j++){if(l[j]=="0"){l[j]=0}f[fname[j]]=l[j]}a=f.dc}else{if(firstload&&!query){document.getElementById("startScreenInner").innerHTML="

thebinary

";if(readCookie("state")){document.getElementById("startScreenInner").innerHTML+='

Do you want to continue or start a new game?

'}else{document.getElementById("startScreenInner").innerHTML+='

Start a new game

'}}}var k=a+"|";for(var j=1;j'+e+""}if(b){b='
'+b+"
"}if(noLinks){d=createDeadLinks(d)}d=b+d+e;if(query&&firstload){d="

Save/Restore Point:

Bookmark this page to return here later.

The game also automatically saves your progress: you can leave the game and click 'continue' from the start page at a later time. (Cookies need to be enabled)


"+d}if(root){f.place=a}deadX=d;if(!noWait&&root&&!noLinks||wait){d+='

{Wait|'+f.place+"}

"}if(!noBack&&!root&&!noLinks){build('

{Back|')+build(f.place)+build("}

")}d=createLinks(d);document.getElementById("content").innerHTML+='
';document.getElementById("new").innerHTML+=d;d="";e="";b="";includeInv();if(noLinks||noWait){invText=createDeadLinks(invText);document.getElementById("rail").innerHTML="

You are carrying:

"+invText+"
"}else{if(inv||root&&!noLinks){var n=invText.split("{").length-1;for(var j=0;j"+m[0]+"";y="{"+y+"}";invText=invText.replace(y,parsedUrl)}build(invText);var g;if(inv){g="

Use:

"+d+"
"}else{g="

You are carrying:

"+d+"
"}if(!noInv){document.getElementById("rail").innerHTML=g}}else{if(!noInv){invText=createDeadLinks(invText);document.getElementById("rail").innerHTML="

You are carrying:

"+invText+"
"}}}invText="";d="";if(f.moves<2||query){saveLink="Save Game"}else{saveLink='Save Game '}document.getElementById("meta").innerHTML='Restart '+saveLink+createLinks("{About|about}")+createLinks("{Hints|hints}")+"Powered by Blink!";f.giver=0;f.receiver=0;f.back=0;noBack=0;noLinks=0;meta=0;noInv=0;if(firstload&&!query){toggleLayer("wrap")}if(firstload){firstload=0;query=0}$.scrollTo($("#new"),300);resize();jsprettify.prettify()}window.onresize=resize;function restore(){document.getElementById("title").setAttribute("id","inner");var a=readCookie("state");var g=a.split("|");for(var c=0;c<=fname.length;c++){f[fname[c]]=g[c]}toggleLayer("wrap");toggleLayer("startScreen");deadX="

Restored game

";process(f.dc);$.scrollTo($("#new"),500)}function setCookie(j,h,g){var c=new Date();var a=new Date();if(g==null||g==0){g=1}a.setTime(c.getTime()+3600000*24*g);document.cookie=j+"="+escape(h)+";expires="+a.toGMTString()}function readCookie(h){var c=" "+document.cookie;var g=c.indexOf(" "+h+"=");if(g==-1){g=c.indexOf(";"+h+"=")}if(g==-1||h==""){return""}var a=c.indexOf(";",g+1);if(a==-1){a=c.length}return unescape(c.substring(g+h.length+2,a))}function toggleLayer(g){var a,c;if(document.getElementById){a=document.getElementById(g)}else{if(document.all){a=document.all[g]}else{if(document.layers){a=document.layers[g]}}}c=a.style;if(c.display==""&&a.offsetWidth!=undefined&&a.offsetHeight!=undefined){c.display=(a.offsetWidth!=0&&a.offsetHeight!=0)?"block":"none"}c.display=(c.display==""||c.display=="block")?"none":"block"}function newGame(){document.getElementById("title").setAttribute("id","inner");toggleLayer("wrap");toggleLayer("startScreen");document.getElementById("content").innerHTML='

New Game

'+document.getElementById("content").innerHTML;$.scrollTo($("#new"),500)}function resize(){var c;var a;if(typeof window.innerWidth!="undefined"){c=window.innerWidth,a=window.innerHeight}else{if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0){c=document.documentElement.clientWidth,a=document.documentElement.clientHeight}else{c=document.getElementsByTagName("body")[0].clientWidth,a=document.getElementsByTagName("body")[0].clientHeight}}document.getElementById("list").style.maxHeight=a-120+"px";document.getElementById("content").style.minHeight=a-60+"px"}function t(c){if(f[c]==1){return true}else{return false}}function scroll(){}function inventory(h,g,j){if(inv){f.giver=h;f.receiver=g}process(h)}function build(c){d=d+c}function buildInv(c){invText=invText+c}function event(c){e=e+c}function buildNew(c){d=c}function pageWidth(){return window.innerWidth!=null?window.innerWidth:document.body!=null?document.body.clientWidth:null}function pageHeight(){return window.innerHeight!=null?window.innerHeight:document.body!=null?document.body.clientHeight:null}function form_params(g){var h=new Array();var c=g.elements.length;for(var a=0;a0){switch(a[h].type){case"select-one":m=true;case"select-multiple":for(c=0;c