')),this.library.container.append(this.panels[e[0]]),this.panels.active=e[0]}})}(jQuery),function(t,e){var n=/([-\w\s_]+)(\.[\w]+(\.js)?)?$/,i=/\.js$/,o=function(){throw new FatalError("Parchment could not load the story. Check your connection, and that the URL is correct.")},a=function(r){e(".load").detach();var n=t.runner=new(t[r[2].vm.runner]||Runner)(parchment.options,r[2].vm.engine),i=location.hash;n.toParchment=function(t){r[2].library.fromRunner(n,t)},n.fromParchment({code:"load",data:new parchment.lib.Story(r[2].responseArray).data}),i&&"#"!=i?n.fromParchment({code:"restore",data:file.base64_decode(i.slice(1))}):n.fromParchment({code:"restart"})};parchment.lib.Story=IFF.subClass({init:function(t,r){if(this.title=r,9>t[0])this._super(),this.chunks.push({type:"ZCOD",data:t}),this.data=t;else if("Glul"==IFF.text_from(t,0))this._super(),this.chunks.push({type:"GLUL",data:t}),this.data=t;else if("FORM"==IFF.text_from(t,0)&&(this._super(t),"IFRS"==this.type))for(var n=0,i=this.chunks.length;i>n;n++){var o=this.chunks[n].type;if("ZCOD"!=o||this.zcode)if("GLUL"!=o||this.glulx){if("IFmd"==o){this.metadata=file.array_to_text(this.chunks[n].data);var a=e(this.metadata);a&&(e("title",a)&&(this.title=e("title",a).text()),e("ifid",a)&&(this.ifid=e("ifid",a).text()),e("release",a)&&(this.release=e("release",a).text()))}}else this.data=this.chunks[n].data;else this.data=this.chunks[n].data}}});var s=Object.subClass({add:function(t){this[t.ifid]=t,t.url&&(this.url[t.url]=t)},url:{}}),c=Object.subClass({init:function(){this.container=e(parchment.options.container),this.ui=new parchment.lib.UI(this)},load:function(){var i,o,a=this,s=parchment.options,c=r.story,h=r.vm,l=0;if(s.lock_story){if(c=s.default_story,!c)throw new FatalError("Story file not specified")}else{if(!s.default_story&&!c)return this.ui.load_panels();c=c||s.default_story}if(e("#about").remove(),e("body").append(a.ui.load_indicator),e.isArray(c)||(c=[c,0]),o=c[0],a.url=o,i=n.exec(o),i=i?i[1]+" - Parchment":"Parchment",s.page_title&&(t.document.title=i),h)h=parchment.vms[h];else for(;parchment.vms.length>l;l++)if(parchment.vms[l].match.test(o)){h=parchment.vms[l];break}if(!h)throw new FatalError("File type is not supported!");try{this.launch(h,c)}catch(u){throw new FatalError(u)}},launch:function(t,r){var n=this,s=[e.ajax(r[0],{dataType:"binary",legacy:r[1]}).done(function(e,r,i){i.library=n,i.vm=t}).fail(o)],c=[e.Deferred()],h=function(){if(0==t.files.length)return c[0].resolve(),void 0;var r=parchment.options.lib_path+t.files.shift();i.test(r)?e.getScript(r,h):(parchment.library.ui.stylesheet_add(r),h())};t.loaded||(t.loaded=1,h(),s[1]=e.when.apply(1,c)),e.when.apply(1,s).done(a)},fromRunner:function(t,e){var r=e.code,n=location.hash;"save"==r&&(location.hash=file.base64_encode(e.data)),"restore"==r&&n&&"#"!=n&&(e.data=file.base64_decode(n.slice(1))),t.fromParchment(e)},stories:new s,savefiles:{}});parchment.lib.Library=c,parchment.vms=[],parchment.add_vm=function(t){parchment.vms.push(t),parchment.vms[t.id]=t}}(t,jQuery),parchment.add_vm({id:"quixe",match:/(ulx|glb|(g|glulx.+)(blorb|blb))(.js)?$/i,files:["glkote.min.js","quixe.min.js","glkote.min.css"],runner:"QuixeRunner"}),parchment.add_vm({id:"zvm",match:/(z[58]|zlb|(z|zcode.+)(blorb|blb))(.js)?$/i,files:["zvm.min.js"],engine:"ZVM"}),parchment.add_vm({id:"gnusto",match:/(z[1-8]|zlb|(z|zcode.+)(blorb|blb))(.js)?$/i,files:["gnusto.min.js"],runner:"GnustoRunner"}),e(function(){var n;t.parchment_options&&e.extend(parchment.options,parchment_options),!parchment.options.lock_options&&r.options&&e.extend(parchment.options,e.parseJSON(r.options)),parchment.options.debug=r.debug,n=new parchment.lib.Library,parchment.library=n,n.load(),-1!=location.href.indexOf("iplayif.com")&&e.getScript("http://google-analytics.com/ga.js",function(){_gat._getTracker("UA-7949545-3")._trackPageview()})})})(this,jQuery);var QuixeRunner=Object.subClass({init:function(t){jQuery(t.container).html('
...
')},fromParchment:function(t){var e=t.code;"load"==e&&GiLoad.load_run({set_page_title:!0},t.data,"array")}});
\ No newline at end of file
+(function(){"use strict";var t,e,r=0,n=/xyz/.test(function(){})?/\b_super\b/:/.*/;for(e in{toString:1})t=1;Object.subClass=function(e){var i,o,a,s=this.prototype,c=!/native code/.test(""+e.toString)&&e.toString,h=function(t,e){return function(){var r,n=this._super;return this._super=s[t],r=e.apply(this,arguments),this._super=n,r}};r=1,i=new this,r=0;for(o in e)i[o]="function"==typeof e[o]&&"function"==typeof s[o]&&n.test(e[o])?h(o,e[o]):e[o];return!t&&c&&(i.toString=n.test(c)?h("toString",c):c),a=i.init?function(){r||this.init.apply(this,arguments)}:function(){},a.prototype=i,a.constructor=a,a.subClass=Object.subClass,a},window.Class=Object})(),function(){function t(t,e){return t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]}function e(t){return[255&t>>24,255&t>>16,255&t>>8,255&t]}function r(t,e){return String.fromCharCode(t[e],t[e+1],t[e+2],t[e+3])}function n(t){return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]}var i=Object.subClass({init:function(e){if(this.type="",this.chunks=[],e){if("FORM"!=r(e,0))throw Error("Not an IFF file");this.type=r(e,8);for(var n=12,i=e.length;i>n;){var o=t(e,n+4);if(0>o||o+n>i)throw Error("IFF: Chunk out of range");this.chunks.push({type:r(e,n),offset:n,data:e.slice(n+8,n+8+o)}),n+=8+o,o%2&&n++}}},write:function(){for(var t=n(this.type),r=0,i=this.chunks.length;i>r;r++){var o=this.chunks[r],a=o.data,s=a.length;t=t.concat(n(o.type),e(s),a),s%2&&t.push(0)}return n("FORM").concat(e(t.length),t)}});i.num_from=t,i.num_to_word=e,i.text_from=r,i.text_to_word=n,window.IFF=i}();var extend=function(t,e){for(var r in e)t[r]=e[r];return t},rBadBackground=/inh|tra|(\d+, ?){3}0/,$window=$(window),$doc=$(document),$body,bodylineheight;$(function(){$body=$("body");var t=$("").appendTo($body);bodylineheight=t.height(),t.remove()}),extend($.cssHooks,{bgcolor:{get:function(t){var e=$(t),r=e.css("background-color");return rBadBackground.test(r)?e.parent().css("bgcolor"):r},set:function(t,e){var r=$(t),n=r.parent();r.css("background-color",e),rBadBackground.test(n.css("background-color"))&&n.css("bgcolor",e)}}});var scrollPages=window.scrollByPages||function(t){var e=document.documentElement.clientHeight,r=e-Math.min(e/10,2*bodylineheight);scrollBy(0,r*t)},selection=window.getSelection||function(){return document.selection?document.selection.createRange().text:""},TextInput=Object.subClass({init:function(t){var e=this,r=$("",{"class":"TextInput",autocapitalize:"off",keydown:function(t){var r,n=e.keyCode=t.which;if("line"==e.mode)return 38==n&&(e.prev_next(1),r=1),40==n&&(e.prev_next(-1),r=1),33==n&&(scrollPages(-1),r=1),34==n&&(scrollPages(1),r=1),13==n&&(e.submitLine(),r=1),t.stopPropagation(),r?!1:void 0},keypress:function(t){return"char"==e.mode?(e.charCode=t.which,e.submitChar(),!1):void 0},keyup:function(){"char"==e.mode&&e.submitChar()}});e.lastinput=$('').appendTo(t),$doc.on("click.TextInput keydown.TextInput",function(t){if("INPUT"!=t.target.nodeName&&""==selection())if($window.scrollTop()+$window.height()-r.offset().top>-60)window.scrollTo(0,9e9),t.target=r[0],r.focus().trigger(t),t.stopPropagation();else if("keydown"==t.type&&8==t.which)return!1}),e.history=[],e.input=r,e.container=t,e.statuswin=$("
')),this.library.container.append(this.panels[e[0]]),this.panels.active=e[0]}})}(jQuery),function(t,e){var n=/([-\w\s_]+)(\.[\w]+(\.js)?)?$/,i=/\.js$/,o=function(){throw new FatalError("Parchment could not load the story. Check your connection, and that the URL is correct.")},a=function(r){e(".load").detach();var n=t.runner=new(t[r[2].vm.runner]||Runner)(parchment.options,r[2].vm.engine),i=location.hash;n.toParchment=function(t){r[2].library.fromRunner(n,t)},n.fromParchment({code:"load",data:new parchment.lib.Story(r[2].responseArray).data}),i&&"#"!=i?n.fromParchment({code:"restore",data:file.base64_decode(i.slice(1))}):n.fromParchment({code:"restart"})};parchment.lib.Story=IFF.subClass({init:function(t,r){if(this.title=r,9>t[0])this._super(),this.chunks.push({type:"ZCOD",data:t}),this.data=t;else if("Glul"==IFF.text_from(t,0))this._super(),this.chunks.push({type:"GLUL",data:t}),this.data=t;else if("FORM"==IFF.text_from(t,0)&&(this._super(t),"IFRS"==this.type))for(var n=0,i=this.chunks.length;i>n;n++){var o=this.chunks[n].type;if("ZCOD"!=o||this.zcode)if("GLUL"!=o||this.glulx){if("IFmd"==o){this.metadata=file.array_to_text(this.chunks[n].data);var a=e(this.metadata);a&&(e("title",a)&&(this.title=e("title",a).text()),e("ifid",a)&&(this.ifid=e("ifid",a).text()),e("release",a)&&(this.release=e("release",a).text()))}}else this.data=this.chunks[n].data;else this.data=this.chunks[n].data}}});var s=Object.subClass({add:function(t){this[t.ifid]=t,t.url&&(this.url[t.url]=t)},url:{}}),c=Object.subClass({init:function(){this.container=e(parchment.options.container),this.ui=new parchment.lib.UI(this)},load:function(){var i,o,a=this,s=parchment.options,c=r.story,h=r.vm,l=0;if(s.lock_story){if(c=s.default_story,!c)throw new FatalError("Story file not specified")}else{if(!s.default_story&&!c)return this.ui.load_panels();c=c||s.default_story}if(e("#about").remove(),e("body").append(a.ui.load_indicator),e.isArray(c)||(c=[c,0]),o=c[0],a.url=o,i=n.exec(o),i=i?i[1]+" - Parchment":"Parchment",s.page_title&&(t.document.title=i),h)h=parchment.vms[h];else for(;parchment.vms.length>l;l++)if(parchment.vms[l].match.test(o)){h=parchment.vms[l];break}if(!h)throw new FatalError("File type is not supported!");try{this.launch(h,c)}catch(u){throw new FatalError(u)}},launch:function(t,r){var n=this,s=[e.ajax(r[0],{dataType:"binary",legacy:r[1]}).done(function(e,r,i){i.library=n,i.vm=t}).fail(o)],c=[e.Deferred()],h=function(){if(0==t.files.length)return c[0].resolve(),void 0;var r=parchment.options.lib_path+t.files.shift();i.test(r)?e.getScript(r,h):(parchment.library.ui.stylesheet_add(r),h())};t.loaded||(t.loaded=1,h(),s[1]=e.when.apply(1,c)),e.when.apply(1,s).done(a)},fromRunner:function(t,e){var r=e.code,n=location.hash;"save"==r&&(location.hash=file.base64_encode(e.data)),"restore"==r&&n&&"#"!=n&&(e.data=file.base64_decode(n.slice(1))),t.fromParchment(e)},stories:new s,savefiles:{}});parchment.lib.Library=c,parchment.vms=[],parchment.add_vm=function(t){parchment.vms.push(t),parchment.vms[t.id]=t}}(t,jQuery),parchment.add_vm({id:"quixe",match:/(ulx|glb|(g|glulx.+)(blorb|blb))(.js)?$/i,files:["glkote.min.js","quixe.min.js","glkote.min.css"],runner:"QuixeRunner"}),parchment.add_vm({id:"zvm",match:/(z[58]|zlb|(z|zcode.+)(blorb|blb))(.js)?$/i,files:["zvm.min.js"],engine:"ZVM"}),parchment.add_vm({id:"gnusto",match:/(z[1-8]|zlb|(z|zcode.+)(blorb|blb))(.js)?$/i,files:["gnusto.min.js"],runner:"GnustoRunner"}),e(function(){var n;t.parchment_options&&e.extend(parchment.options,parchment_options),!parchment.options.lock_options&&r.options&&e.extend(parchment.options,e.parseJSON(r.options)),parchment.options.debug=r.debug,n=new parchment.lib.Library,parchment.library=n,n.load(),-1!=location.href.indexOf("iplayif.com")&&e.getScript("http://google-analytics.com/ga.js",function(){_gat._getTracker("UA-7949545-3")._trackPageview()})})})(this,jQuery);var QuixeRunner=Object.subClass({init:function(t){jQuery(t.container).html('