window.scriptForNode_0=function(){GoogleMaps.load()};window.scriptForNode_1=function(){var __toplevel_func___home_index_271=function(){var data_graph___home_index_297={block:true,type:"toplevel",children:[{type:"partial",block:true,exclusive:true,partial_name:"location_search_box",children:[{type:"define_2",block:true,children:[{type:"once",block:true,children:[],hidden:true,id:"__home_index_14"},{type:"content",content:"&lt;form onsubmit=&quot;return false;&quot; &gt;\n\t\t\t"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_16"},{type:"animate",block:true,children:[{type:"content",content:"&lt;input class=&quot;__home_index_274&quot; type=&quot;submit&quot; &gt;&lt;/input&gt;"}],hidden:true,id:"__home_index_19"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"animate",block:true,children:[{type:"content",content:"&lt;div class=&quot;errorMsg&quot; &gt;\n\t\t\t\t\t\t&lt;span class=&quot;__home_index_290&quot; &gt;\u00a0&lt;/span&gt;\n\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t"}],hidden:true,id:"__home_index_29"}],hidden:true,recordInParent:true,id:"__home_index_27"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_34"}],id:"__home_index_26"},{type:"content",content:"&lt;/form&gt;\n\t"}],hidden:true,id:"__home_index_4"}],recordInParent:true,id:"__home_index_2"},{type:"content",content:"&lt;!-- \n\t\tinline location edit box, with 'go' button.  Used internally.\n\t--&gt;"},{type:"partial",block:true,exclusive:true,partial_name:"location_single_edit",children:[{type:"define_2",block:true,children:[{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_43"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_45"}],hidden:true,id:"__home_index_39"}],recordInParent:true,id:"__home_index_37"},{type:"partial",block:true,exclusive:true,partial_name:"location_search",children:[{type:"define_2",block:true,children:[{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_54"}],hidden:true,id:"__home_index_50"}],recordInParent:true,id:"__home_index_48"},{type:"content",content:"&lt;!--\n\t\tA dropdown that lets you pick an address or create a new one.\n\t--&gt;"},{type:"partial",block:true,exclusive:true,partial_name:"location_chooser",children:[{type:"define_2",block:true,children:[{type:"content",content:"&lt;div &gt;\n\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_66"}],hidden:true,recordInParent:true,id:"__home_index_64"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_69"}],id:"__home_index_63"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div style=&quot;display: inline; margin-left: 10px;&quot; &gt;\n\t\t\t\t\t"},{type:"define_2",block:true,children:[{type:"content",content:"&lt;span class=&quot;fake_link __home_index_275&quot; &gt;Add location&lt;/span&gt;\n\t\t\t\t\t"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_78"}],hidden:true,id:"__home_index_74"},{type:"content",content:"&lt;/div&gt;\n\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_72"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_80"}],id:"__home_index_71"},{type:"content",content:"&lt;/div&gt;\n\n\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div &gt;\n\t\t\t\t&lt;!-- small context-menu box for entering initial search address --&gt;\n\t\t\t\t("},{type:"call",block:true,skipChildren:true,children:[{type:"content_for",block:true,children:[{type:"define_2",block:true,children:[{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_90"}],hidden:true,id:"__home_index_88"}],id:"__home_index_86"}],id:"__home_index_85"},{type:"content",content:"\n)\n\t\t\t&lt;/div&gt;\n\t\t"}],hidden:true,recordInParent:true,id:"__home_index_83"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_93"}],id:"__home_index_82"}],hidden:true,id:"__home_index_59"}],recordInParent:true,id:"__home_index_57"},{type:"content",content:"&lt;!--\n\t\tA link that shows the address.  Click to enter fire up a context menu - allowing you to new address or choose from an existing address\n\t--&gt;"},{type:"partial",block:true,exclusive:true,partial_name:"location_edit_link",children:[{type:"define_2",block:true,children:[{type:"define_2",block:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"call",block:true,skipChildren:true,children:[{type:"content_for",block:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\t\t\t&lt;span class=&quot;__home_index_295&quot; &gt;\u00a0&lt;/span&gt;\n\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_117"},{type:"else",block:true,exclusive:true,children:[{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_123"}],hidden:true,recordInParent:true,id:"__home_index_121"}],id:"__home_index_116"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\t\t\t\u00a0&lt;span class=&quot;fake_link location_mgr_address_link __home_index_276&quot; style=&quot;font-size:12px; font-weight:normal&quot; &gt;&lt;span class=&quot;__home_index_288&quot; &gt;\u00a0&lt;/span&gt;&lt;/span&gt;\n\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_128"},{type:"else",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\t\t\t(&lt;span class=&quot;fake_link location_mgr_address_link __home_index_277&quot; style=&quot;font-size:12px; font-weight:normal&quot; &gt;&lt;span class=&quot;__home_index_293&quot; &gt;\u00a0&lt;/span&gt; location&lt;/span&gt;)\n\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_134"}],id:"__home_index_127"}],id:"__home_index_112"},{type:"content_for",block:true,children:[{type:"define_2",block:true,children:[{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_146"}],hidden:true,id:"__home_index_144"}],id:"__home_index_142"}],id:"__home_index_109"}],hidden:true,recordInParent:true,id:"__home_index_107"},{type:"else",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t&lt;span class=&quot;__home_index_296&quot; &gt;\u00a0&lt;/span&gt;\n\t\t"}],hidden:true,recordInParent:true,id:"__home_index_150"}],id:"__home_index_106"}],hidden:true,id:"__home_index_104"}],hidden:true,id:"__home_index_98"}],recordInParent:true,id:"__home_index_96"},{type:"partial",block:true,exclusive:true,partial_name:"LocationManager.prototype.popup",children:[{type:"content",content:"&lt;div class=&quot;__home_index_278&quot; style=&quot;display:none;&quot; &gt;\n\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_163"}],hidden:true,recordInParent:true,id:"__home_index_161"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_165"}],id:"__home_index_160"},{type:"content",content:"&lt;/div&gt;\n\t"}],recordInParent:true,id:"__home_index_156"},{type:"partial",block:true,exclusive:true,partial_name:"LocationManager.prototype.popup_ui",children:[{type:"content",content:"&lt;div &gt;\n\t\t\t&lt;div class=&quot;right&quot; &gt;\n\t\t\t\t&lt;div class=&quot;__home_index_279&quot; style=&quot;width:350px;height:200px;&quot; &gt;\n\t\t\t\t&lt;/div&gt;\n\t\t\t&lt;/div&gt;\n\t\t\t\n\t\t\t&lt;div class=&quot;main_page&quot; &gt;\n\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;!-- This will be a page with a search box and a map. if we need to enter details, so be it. --&gt;"},{type:"once",block:true,children:[],hidden:true,id:"__home_index_175"},{type:"define_2",block:true,children:[{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_179"},{type:"content",content:"&lt;div class=&quot;finish_button&quot; &gt;\n\t\t\t\t\t\t&lt;input class=&quot;__home_index_281&quot; type=&quot;button&quot; &gt;&lt;/input&gt;&lt;/div&gt;\n\t\t\t\t\t\n\t\t\t\t"}],hidden:true,id:"__home_index_177"}],hidden:true,recordInParent:true,id:"__home_index_173"},{type:"elseif",block:true,exclusive:true,children:[{type:"once",block:true,children:[],hidden:true,id:"__home_index_189"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\t\t\tWe found multiple matching street addresses - please choose the correct one:\n\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_192"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_194"}],id:"__home_index_191"},{type:"iterator",block:true,children:[{type:"iterator_inner",block:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div class=&quot;selected_address&quot; &gt;\n\t\t\t\t\t\t\t\t&lt;span class=&quot;__home_index_289&quot; &gt;\u00a0&lt;/span&gt;\n\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_200"},{type:"else",block:true,exclusive:true,children:[{type:"content",content:"&lt;div class=&quot;unselected_address __home_index_282&quot; &gt;\n\t\t\t\t\t\t\t&lt;span class=&quot;__home_index_291&quot; &gt;\u00a0&lt;/span&gt;\n\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_204"}],id:"__home_index_199"}],hidden:true,recordInParent:true,id:"__home_index_197"}],hidden:true,id:"__home_index_196"},{type:"content",content:"&lt;input class=&quot;__home_index_283&quot; value=&quot;Back&quot; type=&quot;button&quot; &gt;&lt;/input&gt;&lt;input class=&quot;__home_index_284&quot; value=&quot;Choose&quot; type=&quot;button&quot; &gt;&lt;/input&gt;"}],hidden:true,recordInParent:true,id:"__home_index_187"},{type:"elseif",block:true,exclusive:true,children:[{type:"content",content:"&lt;!-- Add the apt # here, too --&gt;&lt;div class=&quot;details&quot; &gt;\n\t\t\t\t\t\t&lt;form onsubmit=&quot;return false;&quot; &gt;\n\t\t\t\t\t\t\t"},{type:"call",block:true,skipChildren:true,children:[{type:"content_for",block:true,children:[{type:"content",content:"&lt;div class=&quot;form_item&quot; &gt;\n\t\t\t\t\t\t\t\t\t&lt;label &gt;Phone Number&lt;/label&gt;\n\t\t\t\t\t\t\t\t\t&lt;span &gt;"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_221"},{type:"content",content:"&lt;/span&gt;\n\t\t\t\t\t\t\t\t\t&lt;div style=&quot;clear: left;&quot; &gt;&lt;/div&gt;\n\t\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t\t\t&lt;div class=&quot;form_item&quot; &gt;\n\t\t\t\t\t\t\t\t\t&lt;label &gt;Building type&lt;/label&gt;&lt;br &gt;&lt;/br&gt;"},{type:"iterator",block:true,children:[{type:"iterator_inner",block:true,children:[{type:"content",content:"&lt;div &gt;&lt;input name=&quot;building_type&quot; class=&quot;__home_index_285&quot; type=&quot;RADIO&quot; &gt;&lt;/input&gt;&lt;span class=&quot;__home_index_294&quot; &gt;\u00a0&lt;/span&gt;&lt;/div&gt;\n\t\t\t\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_224"}],hidden:true,id:"__home_index_223"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_231"},{type:"content",content:"&lt;div style=&quot;clear: left;&quot; &gt;&lt;/div&gt;\n\t\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"animate",block:true,children:[{type:"content",content:"&lt;div class=&quot;form_item&quot; &gt;\n\t\t\t\t\t\t\t\t\t\t\t&lt;label &gt;&lt;span class=&quot;__home_index_292&quot; &gt;\u00a0&lt;/span&gt;&lt;/label&gt;\n\t\t\t\t\t\t\t\t\t\t\t&lt;span &gt;"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_240"},{type:"content",content:"&lt;/span&gt;\n\t\t\t\t\t\t\t\t\t\t\t&lt;div style=&quot;clear: left;&quot; &gt;&lt;/div&gt;\n\t\t\t\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t\t\t\t"}],hidden:true,id:"__home_index_236"}],hidden:true,recordInParent:true,id:"__home_index_234"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_244"}],id:"__home_index_233"},{type:"content",content:"&lt;div class=&quot;form_item&quot; &gt;\n\t\t\t\t\t\t\t\t\t&lt;label &gt;Nearest cross-street:&lt;/label&gt;\n\t\t\t\t\t\t\t\t\t&lt;span &gt;"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_246"},{type:"content",content:"&lt;/span&gt;\n\t\t\t\t\t\t\t\t\t&lt;div style=&quot;clear: left;&quot; &gt;&lt;/div&gt;\n\t\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t\t\t&lt;div class=&quot;form_item&quot; &gt;\n\t\t\t\t\t\t\t\t\t&lt;label class=&quot;unrequired&quot; &gt;Any special delivery instructions&lt;/label&gt;\n\t\t\t\t\t\t\t\t\t"},{type:"define_2",block:true,children:[{type:"content",content:"&lt;span &gt;"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_251"},{type:"content",content:"&lt;/span&gt;\n\t\t\t\t\t\t\t\t\t&lt;div style=&quot;clear: left;&quot; &gt;&lt;/div&gt;\n\t\t\t\t\t\t\t\t"}],hidden:true,id:"__home_index_249"},{type:"content",content:"&lt;/div&gt;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;input class=&quot;__home_index_286&quot; value=&quot;Back&quot; type=&quot;button&quot; &gt;&lt;/input&gt;"}],hidden:true,recordInParent:true,id:"__home_index_255"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_259"}],id:"__home_index_254"},{type:"content",content:"&lt;input class=&quot;__home_index_287&quot; value=&quot;Done&quot; type=&quot;submit&quot; &gt;&lt;/input&gt;"}],id:"__home_index_219"}],id:"__home_index_218"},{type:"content",content:"&lt;/form&gt;\n\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_216"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_266"}],id:"__home_index_172"},{type:"content",content:"&lt;/div&gt;\n\t\t&lt;/div&gt;\n\t\t"},{type:"once",block:true,children:[],hidden:true,id:"__home_index_268"}],recordInParent:true,id:"__home_index_168"}],id:"__home_index_0"};Jolt.inst.registerDataGraph(data_graph___home_index_297);var dom_node_hash___home_index_298={__home_index_279:{variable_attributes:{"class":{variables:["__jv__home_index_170"],template:"__jv__home_index_170"}},var_binding:"var___home_index_280"},__home_index_291:{variable_content:"__jv__home_index_208"},__home_index_281:{variable_attributes:{value:{variables:["__jv__home_index_183"],template:"__jv__home_index_183"},disabled:{variables:["__jv__home_index_181"],template:"__jv__home_index_181"}},closures:{click:"__jolt_closure____home_index_185__"}},__home_index_292:{variable_content:"__jv__home_index_238"},__home_index_282:{closures:{click:"__jolt_closure____home_index_206__"}},__home_index_293:{variable_content:"__jv__home_index_138"},__home_index_283:{closures:{click:"__jolt_closure____home_index_212__"}},__home_index_294:{variable_content:"__jv__home_index_228"},__home_index_284:{closures:{click:"__jolt_closure____home_index_214__"}},__home_index_295:{variable_content:"__jv__home_index_119"},__home_index_274:{variable_attributes:{value:{variables:["__jv__home_index_21"],template:"__jv__home_index_21"}},closures:{click:"__jolt_closure____home_index_23__"}},__home_index_285:{variable_attributes:{value:{variables:["__jv__home_index_226"],template:"__jv__home_index_226"}}},__home_index_296:{variable_content:"__jv__home_index_152"},__home_index_275:{closures:{click:"__jolt_closure____home_index_76__"}},__home_index_286:{closures:{click:"__jolt_closure____home_index_257__"}},__home_index_276:{closures:{click:"__jolt_closure____home_index_130__"}},__home_index_287:{variable_attributes:{disabled:{variables:["__jv__home_index_261"],template:"__jv__home_index_261"}},closures:{click:"__jolt_closure____home_index_263__"}},__home_index_277:{closures:{click:"__jolt_closure____home_index_136__"}},__home_index_288:{variable_content:"__jv__home_index_132"},__home_index_278:{variable_attributes:{id:{variables:["__jv__home_index_158"],template:"__jv__home_index_158"}}},__home_index_289:{variable_content:"__jv__home_index_202"},__home_index_290:{variable_content:"__jv__home_index_31"}};Jolt.inst.registerDomNodeHash(dom_node_hash___home_index_298);var func___home_index_2=function(){var self=this;var __jolt_blk___home_index_2=Jolt.inst.pushBlock("__home_index_2");if(__jolt_blk___home_index_2){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var mgr=arguments[0];var callback=arguments[1];var options=arguments[2];var __jolt_yields=[];var __jolt_blk___home_index_4=Jolt.inst.pushBlock("__home_index_4");if(__jolt_blk___home_index_4){var __define_struct___home_index_4=Jolt.inst.currentDefinition();if(!__define_struct___home_index_4){__define_struct___home_index_4={};(function(){with(this){var _addr=options&&options.loc?Location.toAddress(options.loc):options&&options.addr;this["addr"]=_addr;var _errored=false;this["errored"]=_errored;var _errorMsg="";this["errorMsg"]=_errorMsg;var _setAddr=function(data){addr=data;errored=false;if(options){options.edited=true;options.addr=data}};this["setAddr"]=_setAddr;var _submitCallback=function(status,foundLocs){if(status==LocationManager.STATUS_NOT_FOUND||(status==LocationManager.STATUS_FOUND_MULTIPLE&&options&&options.noMultiple)){errored=true;if(valid(foundLocs)){errorMsg="You need a more specific location!"}else{errorMsg="Location not found!"}}else{if(status==LocationManager.STATUS_FOUND){addr=foundLocs[0].address}}if(options){options.edited=false}callback(status,foundLocs)};this["submitCallback"]=_submitCallback}}).call(__define_struct___home_index_4);Jolt.inst.registerDefinition(__define_struct___home_index_4)}with(__define_struct___home_index_4){var __jolt_blk___home_index_14=Jolt.inst.pushBlock("__home_index_14");if(__jolt_blk___home_index_14){if(!Jolt.inst.executedOnce()){Jolt.inst.markExecutedOnce();if(options&&options.loc){mgr.search(addr,submitCallback,options)}}Jolt.inst.popBlock()}var __jolt_blk___home_index_16=Jolt.inst.pushBlock("__home_index_16");if(__jolt_blk___home_index_16){var __define_struct___home_index_16=Jolt.inst.currentDefinition();if(!__define_struct___home_index_16){__define_struct___home_index_16={node___home_index_17:new SerializerNode,node_local___home_index_17:new SerializerNode};__define_struct___home_index_16.node_local___home_index_17.connect(__define_struct___home_index_16.node___home_index_17);Jolt.inst.registerDefinition(__define_struct___home_index_16)}with(__define_struct___home_index_16){var __jolt_serializer____home_index_17___original=addr;var __jolt_serializer____home_index_17___ui=__jolt_serializer____home_index_17___original;var serializer_node___home_index_17=null;if(__jolt_serializer____home_index_17___original instanceof SerializerNode){serializer_node___home_index_17=__jolt_serializer____home_index_17___original;__jolt_serializer____home_index_17___original=serializer_node___home_index_17.consume();__jolt_serializer____home_index_17___ui=__jolt_serializer____home_index_17___original}if(node_local___home_index_17.lastDataVal!=__jolt_serializer____home_index_17___original){node_local___home_index_17.lastDataVal=__jolt_serializer____home_index_17___original;node_local___home_index_17.write(__jolt_serializer____home_index_17___ui)}ui.text_input_hint("address",node___home_index_17,$merge({className:"wideInput",emptyString:options&&options.emptyString||"Address or Zip"},options));if(node_local___home_index_17.last!=node_local___home_index_17.current){var __jolt_serializer____home_index_17__=node_local___home_index_17.consume();if(serializer_node___home_index_17){serializer_node___home_index_17.write(__jolt_serializer____home_index_17__);node_local___home_index_17.lastDataVal=__jolt_serializer____home_index_17__}else{setAddr(__jolt_serializer____home_index_17__);node_local___home_index_17.lastDataVal=addr}}}Jolt.inst.popBlock()}var __jolt_blk___home_index_19=Jolt.inst.pushBlock("__home_index_19");if(__jolt_blk___home_index_19){if(!Jolt.inst.animationDefined("__home_index_19")){__jolt_blk___home_index_2.tickCounter=__jolt_blk___home_index_2.tickCounter||Jolt.inst.currentTickCounter;Jolt.inst.registerAnimation("in","__home_index_19",function(_rangeNode_,animFirstTime){return function(){var effect=null;var options___home_index_299={afterSetupCallback:function(effect){if(effect.element){effect.element.setStyle("visibility: inherit")}},from:0,duration:0.5};for(var _self_=_rangeNode_.beginElement();_self_!=_rangeNode_.endElement();_self_=_self_.next()){if(_self_.nodeName!="SCRIPT"&&_self_.nodeName!="jolt:block"&&_self_.nodeName!="META"){if(animFirstTime&&!options___home_index_299.initialPlay){options___home_index_299.delay=0;options___home_index_299.duration=0.01}options___home_index_299.queue={scope:"__home_index_19",position:"end"};var effect2=new Effect.Appear(_self_,options___home_index_299);effect=effect||effect2}}return effect}}(Jolt.inst.currentBlockRangeNode(),__jolt_blk___home_index_2.tickCounter==Jolt.inst.currentTickCounter))}else{if(__jolt_blk___home_index_19.parent.animatingOut){__jolt_blk___home_index_19.parent.animatingOut=false;var old_in=__jolt_blk___home_index_19.animations&&__jolt_blk___home_index_19.animations.old_in;if(old_in){old_in()}else{Effect.Queues.get("__home_index_19").each(function(x){x.cancel()})}}}if(!closureActive){var __jv__home_index_21=(options&&options.buttonLabel)||"ok";Jolt.inst.bindVariable(__jolt_blk___home_index_19,"__jv__home_index_21",__jv__home_index_21)}if(closure=="__jolt_closure____home_index_23__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;mgr.search(addr,submitCallback,options);closure=null}Jolt.inst.popBlock()}var __jolt_blk___home_index_26=Jolt.inst.pushBlock("__home_index_26");if(__jolt_blk___home_index_26){if((errored)){var __jolt_blk___home_index_27=Jolt.inst.pushBlock("__home_index_27");if(__jolt_blk___home_index_27){var __jolt_blk___home_index_29=Jolt.inst.pushBlock("__home_index_29");if(__jolt_blk___home_index_29){if(!Jolt.inst.animationDefined("__home_index_29")){__jolt_blk___home_index_26.tickCounter=__jolt_blk___home_index_26.tickCounter||Jolt.inst.currentTickCounter;Jolt.inst.registerAnimation("in","__home_index_29",function(_rangeNode_,animFirstTime){return function(){var effect=null;var options___home_index_300={afterSetupCallback:function(effect){if(effect.element){effect.element.setStyle("visibility: inherit")}},from:0,duration:0.5};for(var _self_=_rangeNode_.beginElement();_self_!=_rangeNode_.endElement();_self_=_self_.next()){if(_self_.nodeName!="SCRIPT"&&_self_.nodeName!="jolt:block"&&_self_.nodeName!="META"){if(animFirstTime&&!options___home_index_300.initialPlay){options___home_index_300.delay=0;options___home_index_300.duration=0.01}options___home_index_300.queue={scope:"__home_index_29",position:"end"};var effect2=new Effect.Appear(_self_,options___home_index_300);effect=effect||effect2}}return effect}}(Jolt.inst.currentBlockRangeNode(),__jolt_blk___home_index_26.tickCounter==Jolt.inst.currentTickCounter));__jolt_blk___home_index_26.tickCounter=__jolt_blk___home_index_26.tickCounter||Jolt.inst.currentTickCounter;Jolt.inst.registerAnimation("out","__home_index_29",function(_rangeNode_,animFirstTime){return function(){var effect=null;var options___home_index_301={afterSetupCallback:function(effect){if(effect.element){effect.element.setStyle("visibility: inherit")}},duration:0.3};for(var _self_=_rangeNode_.beginElement();_self_!=_rangeNode_.endElement();_self_=_self_.next()){if(_self_.nodeName!="SCRIPT"&&_self_.nodeName!="jolt:block"&&_self_.nodeName!="META"){options___home_index_301.revert=true;options___home_index_301.queue={scope:"__home_index_29",position:"end"};var effect2=new Effect.Fade(_self_,options___home_index_301);effect=effect||effect2}}return effect}}(Jolt.inst.currentBlockRangeNode(),__jolt_blk___home_index_26.tickCounter==Jolt.inst.currentTickCounter))}else{if(__jolt_blk___home_index_29.parent.animatingOut){__jolt_blk___home_index_29.parent.animatingOut=false;var old_in=__jolt_blk___home_index_29.animations&&__jolt_blk___home_index_29.animations.old_in;if(old_in){old_in()}else{Effect.Queues.get("__home_index_29").each(function(x){x.cancel()})}}}if(!closureActive){var __jv__home_index_31=errorMsg;Jolt.inst.bindVariable(__jolt_blk___home_index_29,"__jv__home_index_31",__jv__home_index_31)}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_34=Jolt.inst.pushBlock("__home_index_34");if(__jolt_blk___home_index_34){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};location_search_box=func___home_index_2;Jolt.inst.registerPartial("location_search_box",func___home_index_2);var func___home_index_37=function(){var self=this;var __jolt_blk___home_index_37=Jolt.inst.pushBlock("__home_index_37");if(__jolt_blk___home_index_37){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var mgr=arguments[0];var callback=arguments[1];var options=arguments[2];var __jolt_yields=[];var __jolt_blk___home_index_39=Jolt.inst.pushBlock("__home_index_39");if(__jolt_blk___home_index_39){var __define_struct___home_index_39=Jolt.inst.currentDefinition();if(!__define_struct___home_index_39){__define_struct___home_index_39={};(function(){with(this){var _showingPopup=false;this["showingPopup"]=_showingPopup;var _submitCallback=function(status,foundLocs){if(status==LocationManager.STATUS_FOUND){callback(status,foundLocs);mgr.dismissPopup()}else{if(status==LocationManager.STATUS_FOUND_MULTIPLE){mgr.createPopup({mode:"choose_address",callback:submitCallback,foundLocs:foundLocs})}else{if(status==LocationManager.CANCEL){mgr.dismissPopup();callback(status)}}}};this["submitCallback"]=_submitCallback}}).call(__define_struct___home_index_39);Jolt.inst.registerDefinition(__define_struct___home_index_39)}with(__define_struct___home_index_39){var __jolt_blk___home_index_43=Jolt.inst.pushBlock("__home_index_43");if(__jolt_blk___home_index_43){location_search_box(mgr,submitCallback,options);Jolt.inst.popBlock()}var __jolt_blk___home_index_45=Jolt.inst.pushBlock("__home_index_45");if(__jolt_blk___home_index_45){mgr.popup();Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};location_single_edit=func___home_index_37;Jolt.inst.registerPartial("location_single_edit",func___home_index_37);var func___home_index_48=function(){var self=this;var __jolt_blk___home_index_48=Jolt.inst.pushBlock("__home_index_48");if(__jolt_blk___home_index_48){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var options=arguments[0];var __jolt_yields=[];var __jolt_blk___home_index_50=Jolt.inst.pushBlock("__home_index_50");if(__jolt_blk___home_index_50){var __define_struct___home_index_50=Jolt.inst.currentDefinition();if(!__define_struct___home_index_50){__define_struct___home_index_50={};(function(){with(this){var _mgr=new LocationManager;this["mgr"]=_mgr;var _callback=function(status,foundLocs){if(status==LocationManager.STATUS_FOUND){var loc=mgr.addNewLocation(foundLocs[0]);if(options&&options.serialize){options.serialize.write(loc.uuid)}if(options&&options.callback){options.callback(loc)}}};this["callback"]=_callback}}).call(__define_struct___home_index_50);Jolt.inst.registerDefinition(__define_struct___home_index_50)}with(__define_struct___home_index_50){var __jolt_blk___home_index_54=Jolt.inst.pushBlock("__home_index_54");if(__jolt_blk___home_index_54){location_single_edit(mgr,callback,options);Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};location_search=func___home_index_48;Jolt.inst.registerPartial("location_search",func___home_index_48);var func___home_index_57=function(){var self=this;var __jolt_blk___home_index_57=Jolt.inst.pushBlock("__home_index_57");if(__jolt_blk___home_index_57){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var options=arguments[0];var __jolt_yields=[];var __jolt_blk___home_index_59=Jolt.inst.pushBlock("__home_index_59");if(__jolt_blk___home_index_59){var __define_struct___home_index_59=Jolt.inst.currentDefinition();if(!__define_struct___home_index_59){__define_struct___home_index_59={};(function(){with(this){var _mgr=new LocationManager;this["mgr"]=_mgr}}).call(__define_struct___home_index_59);Jolt.inst.registerDefinition(__define_struct___home_index_59)}with(__define_struct___home_index_59){var dropDownItems=mgr.getDropDownLocations(options);var __jolt_blk___home_index_63=Jolt.inst.pushBlock("__home_index_63");if(__jolt_blk___home_index_63){if((dropDownItems.length>0)){var __jolt_blk___home_index_64=Jolt.inst.pushBlock("__home_index_64");if(__jolt_blk___home_index_64){var __jolt_blk___home_index_66=Jolt.inst.pushBlock("__home_index_66");if(__jolt_blk___home_index_66){var __define_struct___home_index_66=Jolt.inst.currentDefinition();if(!__define_struct___home_index_66){__define_struct___home_index_66={node___home_index_67:new SerializerNode,node_local___home_index_67:new SerializerNode};__define_struct___home_index_66.node_local___home_index_67.connect(__define_struct___home_index_66.node___home_index_67);Jolt.inst.registerDefinition(__define_struct___home_index_66)}with(__define_struct___home_index_66){var __jolt_serializer____home_index_67___original=options.serialize;var __jolt_serializer____home_index_67___ui=__jolt_serializer____home_index_67___original;var serializer_node___home_index_67=null;if(__jolt_serializer____home_index_67___original instanceof SerializerNode){serializer_node___home_index_67=__jolt_serializer____home_index_67___original;__jolt_serializer____home_index_67___original=serializer_node___home_index_67.consume();__jolt_serializer____home_index_67___ui=__jolt_serializer____home_index_67___original}if(node_local___home_index_67.lastDataVal!=__jolt_serializer____home_index_67___original){node_local___home_index_67.lastDataVal=__jolt_serializer____home_index_67___original;node_local___home_index_67.write(__jolt_serializer____home_index_67___ui)}ui.dropdown(dropDownItems,node___home_index_67,{disabled:options&&options.disabled});if(node_local___home_index_67.last!=node_local___home_index_67.current){var __jolt_serializer____home_index_67__=node_local___home_index_67.consume();if(serializer_node___home_index_67){serializer_node___home_index_67.write(__jolt_serializer____home_index_67__);node_local___home_index_67.lastDataVal=__jolt_serializer____home_index_67__}else{options.serialize=__jolt_serializer____home_index_67__;node_local___home_index_67.lastDataVal=options.serialize}}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_69=Jolt.inst.pushBlock("__home_index_69");if(__jolt_blk___home_index_69){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_71=Jolt.inst.pushBlock("__home_index_71");if(__jolt_blk___home_index_71){if((options.fullEdit)){var __jolt_blk___home_index_72=Jolt.inst.pushBlock("__home_index_72");if(__jolt_blk___home_index_72){var __jolt_blk___home_index_74=Jolt.inst.pushBlock("__home_index_74");if(__jolt_blk___home_index_74){var __define_struct___home_index_74=Jolt.inst.currentDefinition();if(!__define_struct___home_index_74){__define_struct___home_index_74={};(function(){with(this){var _submitCallback=function(status,foundLocs){console.log("status is "+status.toString());if(status==LocationManager.STATUS_FINISHED){console.log(foundLocs);options.serialize.write(foundLocs.uuid)}mgr.dismissPopup()};this["submitCallback"]=_submitCallback}}).call(__define_struct___home_index_74);Jolt.inst.registerDefinition(__define_struct___home_index_74)}with(__define_struct___home_index_74){if(closure=="__jolt_closure____home_index_76__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;mgr.createPopup({mode:"create_new",forDelivery:options.forDelivery,callback:submitCallback});closure=null}var __jolt_blk___home_index_78=Jolt.inst.pushBlock("__home_index_78");if(__jolt_blk___home_index_78){mgr.popup();Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_80=Jolt.inst.pushBlock("__home_index_80");if(__jolt_blk___home_index_80){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_82=Jolt.inst.pushBlock("__home_index_82");if(__jolt_blk___home_index_82){if((!options.fullEdit)){var __jolt_blk___home_index_83=Jolt.inst.pushBlock("__home_index_83");if(__jolt_blk___home_index_83){var __jolt_blk___home_index_85=Jolt.inst.pushBlock("__home_index_85");if(__jolt_blk___home_index_85){var retval___home_index_85=(ui.inline_edit("new location"))||0;for(var i___home_index_85=0,len___home_index_85=retval___home_index_85.length;i___home_index_85<len___home_index_85;i___home_index_85++){var item___home_index_85=retval___home_index_85[i___home_index_85];var identifier___home_index_85=item___home_index_85[0];var yieldBlock___home_index_85=item___home_index_85.pop();switch(identifier___home_index_85){case"default":Jolt.inst.pushActivateBlock(yieldBlock___home_index_85);var __jolt_blk___home_index_86=Jolt.inst.pushBlock("__home_index_86");if(__jolt_blk___home_index_86){var resp=item___home_index_85[0+1];var __jolt_blk___home_index_88=Jolt.inst.pushBlock("__home_index_88");if(__jolt_blk___home_index_88){var __define_struct___home_index_88=Jolt.inst.currentDefinition();if(!__define_struct___home_index_88){__define_struct___home_index_88={};(function(){with(this){var _callback=function(status,foundLocs){if(status==LocationManager.STATUS_FOUND){resp.showing=false;var loc=mgr.addNewLocation(foundLocs[0]);if(options&&options.serialize){options.serialize.write(loc.uuid)}}else{if(status==LocationManager.CANCEL){resp.showing=false}}};this["callback"]=_callback}}).call(__define_struct___home_index_88);Jolt.inst.registerDefinition(__define_struct___home_index_88)}with(__define_struct___home_index_88){var __jolt_blk___home_index_90=Jolt.inst.pushBlock("__home_index_90");if(__jolt_blk___home_index_90){location_single_edit(mgr,callback,options);Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}Jolt.inst.popBlock();break}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_93=Jolt.inst.pushBlock("__home_index_93");if(__jolt_blk___home_index_93){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};location_chooser=func___home_index_57;Jolt.inst.registerPartial("location_chooser",func___home_index_57);var func___home_index_96=function(){var self=this;var __jolt_blk___home_index_96=Jolt.inst.pushBlock("__home_index_96");if(__jolt_blk___home_index_96){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var defaultLoc=arguments[0];var options=arguments[1];var __jolt_yields=[];var __jolt_blk___home_index_98=Jolt.inst.pushBlock("__home_index_98");if(__jolt_blk___home_index_98){var __define_struct___home_index_98=Jolt.inst.currentDefinition();if(!__define_struct___home_index_98){__define_struct___home_index_98={};(function(){with(this){var _mgr=(options&&options.locMgr)||new LocationManager;this["mgr"]=_mgr}}).call(__define_struct___home_index_98);Jolt.inst.registerDefinition(__define_struct___home_index_98)}with(__define_struct___home_index_98){var defaultText=(!options||!options.forDelivery||(defaultLoc&&Location.getAccuracy(defaultLoc)>=8))?(defaultLoc.address1||defaultLoc.city||defaultLoc.zip||defaultLoc):"";var userLocations=mgr.getUserLocations(options);var __jolt_blk___home_index_104=Jolt.inst.pushBlock("__home_index_104");if(__jolt_blk___home_index_104){var __define_struct___home_index_104=Jolt.inst.currentDefinition();if(!__define_struct___home_index_104){__define_struct___home_index_104={};(function(){with(this){var _renderingBig=false;this["renderingBig"]=_renderingBig}}).call(__define_struct___home_index_104);Jolt.inst.registerDefinition(__define_struct___home_index_104)}with(__define_struct___home_index_104){var __jolt_blk___home_index_106=Jolt.inst.pushBlock("__home_index_106");if(__jolt_blk___home_index_106){if((!options||!options.disabled)){var __jolt_blk___home_index_107=Jolt.inst.pushBlock("__home_index_107");if(__jolt_blk___home_index_107){var __jolt_blk___home_index_109=Jolt.inst.pushBlock("__home_index_109");if(__jolt_blk___home_index_109){var retval___home_index_109=(ui.inline_edit(null,{content_class:"inline_location_content",link_class:"invisible_link",noLinkClick:true}))||0;for(var i___home_index_109=0,len___home_index_109=retval___home_index_109.length;i___home_index_109<len___home_index_109;i___home_index_109++){var item___home_index_109=retval___home_index_109[i___home_index_109];var identifier___home_index_109=item___home_index_109[0];var yieldBlock___home_index_109=item___home_index_109.pop();switch(identifier___home_index_109){case"default":Jolt.inst.pushActivateBlock(yieldBlock___home_index_109);var __jolt_blk___home_index_142=Jolt.inst.pushBlock("__home_index_142");if(__jolt_blk___home_index_142){var resp=item___home_index_109[0+1];var __jolt_blk___home_index_144=Jolt.inst.pushBlock("__home_index_144");if(__jolt_blk___home_index_144){var __define_struct___home_index_144=Jolt.inst.currentDefinition();if(!__define_struct___home_index_144){__define_struct___home_index_144={};(function(){with(this){var _callback=function(status,foundLocs){if(status==LocationManager.STATUS_FOUND){resp.showing=false;var loc=mgr.addNewLocation(foundLocs[0]);if(options&&options.serialize){options.serialize.write(loc.uuid)}}else{if(status==LocationManager.CANCEL){resp.showing=false}}};this["callback"]=_callback}}).call(__define_struct___home_index_144);Jolt.inst.registerDefinition(__define_struct___home_index_144)}with(__define_struct___home_index_144){var __jolt_blk___home_index_146=Jolt.inst.pushBlock("__home_index_146");if(__jolt_blk___home_index_146){location_single_edit(mgr,callback,options);Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}Jolt.inst.popBlock();break;case"link":Jolt.inst.pushActivateBlock(yieldBlock___home_index_109);var __jolt_blk___home_index_112=Jolt.inst.pushBlock("__home_index_112");if(__jolt_blk___home_index_112){var resp=item___home_index_109[0+1];var skipDropdown=userLocations.length==0||(userLocations.length==1&&defaultLoc&&defaultLoc.point&&Location.compare(defaultLoc,userLocations[0]));var __jolt_blk___home_index_116=Jolt.inst.pushBlock("__home_index_116");if(__jolt_blk___home_index_116){if((skipDropdown)){var __jolt_blk___home_index_117=Jolt.inst.pushBlock("__home_index_117");if(__jolt_blk___home_index_117){if(!closureActive){var __jv__home_index_119=defaultText;Jolt.inst.bindVariable(__jolt_blk___home_index_117,"__jv__home_index_119",__jv__home_index_119)}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_121=Jolt.inst.pushBlock("__home_index_121");if(__jolt_blk___home_index_121){var __jolt_blk___home_index_123=Jolt.inst.pushBlock("__home_index_123");if(__jolt_blk___home_index_123){var __define_struct___home_index_123=Jolt.inst.currentDefinition();if(!__define_struct___home_index_123){__define_struct___home_index_123={node___home_index_124:new SerializerNode,node_local___home_index_124:new SerializerNode};__define_struct___home_index_123.node_local___home_index_124.connect(__define_struct___home_index_123.node___home_index_124);Jolt.inst.registerDefinition(__define_struct___home_index_123)}with(__define_struct___home_index_123){var __jolt_serializer____home_index_124___original=options.serialize;var __jolt_serializer____home_index_124___ui=__jolt_serializer____home_index_124___original;var serializer_node___home_index_124=null;if(__jolt_serializer____home_index_124___original instanceof SerializerNode){serializer_node___home_index_124=__jolt_serializer____home_index_124___original;__jolt_serializer____home_index_124___original=serializer_node___home_index_124.consume();__jolt_serializer____home_index_124___ui=__jolt_serializer____home_index_124___original}if(node_local___home_index_124.lastDataVal!=__jolt_serializer____home_index_124___original){node_local___home_index_124.lastDataVal=__jolt_serializer____home_index_124___original;node_local___home_index_124.write(__jolt_serializer____home_index_124___ui)}ui.dropdown(mgr.getDropDownLocations(options),node___home_index_124,{disabled:options&&options.disabled});if(node_local___home_index_124.last!=node_local___home_index_124.current){var __jolt_serializer____home_index_124__=node_local___home_index_124.consume();if(serializer_node___home_index_124){serializer_node___home_index_124.write(__jolt_serializer____home_index_124__);node_local___home_index_124.lastDataVal=__jolt_serializer____home_index_124__}else{options.serialize=__jolt_serializer____home_index_124__;node_local___home_index_124.lastDataVal=options.serialize}}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_127=Jolt.inst.pushBlock("__home_index_127");if(__jolt_blk___home_index_127){if((options.alternateLinkText)){var __jolt_blk___home_index_128=Jolt.inst.pushBlock("__home_index_128");if(__jolt_blk___home_index_128){if(closure=="__jolt_closure____home_index_130__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;resp.showing=true;closure=null}if(!closureActive){var __jv__home_index_132=options.alternateLinkText;Jolt.inst.bindVariable(__jolt_blk___home_index_128,"__jv__home_index_132",__jv__home_index_132)}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_134=Jolt.inst.pushBlock("__home_index_134");if(__jolt_blk___home_index_134){if(closure=="__jolt_closure____home_index_136__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;resp.showing=true;closure=null}if(!closureActive){var __jv__home_index_138=when(skipDropdown,"change","new");Jolt.inst.bindVariable(__jolt_blk___home_index_134,"__jv__home_index_138",__jv__home_index_138)}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}Jolt.inst.popBlock();break}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_150=Jolt.inst.pushBlock("__home_index_150");if(__jolt_blk___home_index_150){if(!closureActive){var __jv__home_index_152=defaultText;Jolt.inst.bindVariable(__jolt_blk___home_index_150,"__jv__home_index_152",__jv__home_index_152)}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};location_edit_link=func___home_index_96;Jolt.inst.registerPartial("location_edit_link",func___home_index_96);var func___home_index_156=function(){var self=this;var __jolt_blk___home_index_156=Jolt.inst.pushBlock("__home_index_156");if(__jolt_blk___home_index_156){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var __jolt_yields=[];if(!closureActive){var __jv__home_index_158=self.id();Jolt.inst.bindVariable(__jolt_blk___home_index_156,"__jv__home_index_158",__jv__home_index_158)}var __jolt_blk___home_index_160=Jolt.inst.pushBlock("__home_index_160");if(__jolt_blk___home_index_160){if((self.popupEnabled)){var __jolt_blk___home_index_161=Jolt.inst.pushBlock("__home_index_161");if(__jolt_blk___home_index_161){var __jolt_blk___home_index_163=Jolt.inst.pushBlock("__home_index_163");if(__jolt_blk___home_index_163){self.popup_ui();Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_165=Jolt.inst.pushBlock("__home_index_165");if(__jolt_blk___home_index_165){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};LocationManager.prototype.popup=func___home_index_156;Jolt.inst.registerPartial("LocationManager.prototype.popup",func___home_index_156);var func___home_index_168=function(){var self=this;var __jolt_blk___home_index_168=Jolt.inst.pushBlock("__home_index_168");if(__jolt_blk___home_index_168){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var __jolt_yields=[];var map=__jolt_blk___home_index_168.variableBindings.var___home_index_280;if(!closureActive){var __jv__home_index_170="map_hidden".when(!self.mapVisible());Jolt.inst.bindVariable(__jolt_blk___home_index_168,"__jv__home_index_170",__jv__home_index_170)}var __jolt_blk___home_index_172=Jolt.inst.pushBlock("__home_index_172");if(__jolt_blk___home_index_172){if((self.page=="enter_address")){var __jolt_blk___home_index_173=Jolt.inst.pushBlock("__home_index_173");if(__jolt_blk___home_index_173){var __jolt_blk___home_index_175=Jolt.inst.pushBlock("__home_index_175");if(__jolt_blk___home_index_175){if(!Jolt.inst.executedOnce()){Jolt.inst.markExecutedOnce();if(self.chosenLocation){self.updateMapCoords(self.chosenLocation.point.coordinates,map)}}Jolt.inst.popBlock()}var __jolt_blk___home_index_177=Jolt.inst.pushBlock("__home_index_177");if(__jolt_blk___home_index_177){var __define_struct___home_index_177=Jolt.inst.currentDefinition();if(!__define_struct___home_index_177){__define_struct___home_index_177={};(function(){with(this){var _submitCallback=function(status,foundLocs){if(status==LocationManager.STATUS_FOUND){self.googleLocation=foundLocs[0];self.updateMapCoords(self.googleLocation.Point.coordinates,map)}else{if(status==LocationManager.STATUS_FOUND_MULTIPLE){self.page="choose_address";self.foundLocs=foundLocs;self.chooseCallback=self.enterCallback}}};this["submitCallback"]=_submitCallback}}).call(__define_struct___home_index_177);Jolt.inst.registerDefinition(__define_struct___home_index_177)}with(__define_struct___home_index_177){var __jolt_blk___home_index_179=Jolt.inst.pushBlock("__home_index_179");if(__jolt_blk___home_index_179){location_search_box(self,submitCallback,this.popupOptions);Jolt.inst.popBlock()}if(!closureActive){var __jv__home_index_181=!self.googleLocation||this.popupOptions.edited;Jolt.inst.bindVariable(__jolt_blk___home_index_177,"__jv__home_index_181",__jv__home_index_181)}if(!closureActive){var __jv__home_index_183=when(self.popupMode=="enter_address","Choose","Next");Jolt.inst.bindVariable(__jolt_blk___home_index_177,"__jv__home_index_183",__jv__home_index_183)}if(closure=="__jolt_closure____home_index_185__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;self.enterCallback(LocationManager.STATUS_FOUND,[self.googleLocation]);closure=null}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{if(self.page=="choose_address"){var __jolt_blk___home_index_187=Jolt.inst.pushBlock("__home_index_187");if(__jolt_blk___home_index_187){var __jolt_blk___home_index_189=Jolt.inst.pushBlock("__home_index_189");if(__jolt_blk___home_index_189){if(!Jolt.inst.executedOnce()){Jolt.inst.markExecutedOnce();if(self.mapIdx>=self.foundLocs.length){self.mapIdx=0}self.updateMapCoords(self.foundLocs[self.mapIdx].Point.coordinates,map)}Jolt.inst.popBlock()}var __jolt_blk___home_index_191=Jolt.inst.pushBlock("__home_index_191");if(__jolt_blk___home_index_191){if((self.foundLocs.length>1)){var __jolt_blk___home_index_192=Jolt.inst.pushBlock("__home_index_192");if(__jolt_blk___home_index_192){Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_194=Jolt.inst.pushBlock("__home_index_194");if(__jolt_blk___home_index_194){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_196=Jolt.inst.pushBlock("__home_index_196");if(__jolt_blk___home_index_196){Jolt.inst.callbackStore=Jolt.inst.closureActive?[]:__jolt_blk___home_index_196.iteration;self.foundLocs.length.times(Jolt.inst.iteratorCallback);var __collection___home_index_196=Jolt.inst.callbackStore;for(var i___home_index_196=0,len___home_index_196=__collection___home_index_196.length;i___home_index_196<len___home_index_196;i___home_index_196++){var __el___home_index_196=__collection___home_index_196[i___home_index_196];var locIdx=__el___home_index_196[0];var blockName___home_index_196=(i___home_index_196);if(!Jolt.inst.closureActive){__jolt_blk___home_index_196.iteratorScopes.push(blockName___home_index_196)}var __jolt_blk___home_index_197=Jolt.inst.pushBlock("__home_index_197",blockName___home_index_196);if(__jolt_blk___home_index_197){var __jolt_blk___home_index_199=Jolt.inst.pushBlock("__home_index_199");if(__jolt_blk___home_index_199){if((self.mapIdx==locIdx)){var __jolt_blk___home_index_200=Jolt.inst.pushBlock("__home_index_200");if(__jolt_blk___home_index_200){if(!closureActive){var __jv__home_index_202=self.foundLocs[locIdx].address;Jolt.inst.bindVariable(__jolt_blk___home_index_200,"__jv__home_index_202",__jv__home_index_202)}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_204=Jolt.inst.pushBlock("__home_index_204");if(__jolt_blk___home_index_204){if(closure=="__jolt_closure____home_index_206__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;self.mapIdx=locIdx;self.updateMapCoords(self.foundLocs[self.mapIdx].Point.coordinates,map);closure=null}if(!closureActive){var __jv__home_index_208=self.foundLocs[locIdx].address;Jolt.inst.bindVariable(__jolt_blk___home_index_204,"__jv__home_index_208",__jv__home_index_208)}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}if(closure=="__jolt_closure____home_index_212__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;self.chooseBackCallback();closure=null}if(closure=="__jolt_closure____home_index_214__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;self.chooseCallback(LocationManager.STATUS_FOUND,[self.foundLocs[self.mapIdx]]);closure=null}Jolt.inst.popBlock()}}else{if(self.page=="enter_details"){var __jolt_blk___home_index_216=Jolt.inst.pushBlock("__home_index_216");if(__jolt_blk___home_index_216){var __jolt_blk___home_index_218=Jolt.inst.pushBlock("__home_index_218");if(__jolt_blk___home_index_218){var retval___home_index_218=(ui.form_for(self.chosenLocation))||0;for(var i___home_index_218=0,len___home_index_218=retval___home_index_218.length;i___home_index_218<len___home_index_218;i___home_index_218++){var item___home_index_218=retval___home_index_218[i___home_index_218];var identifier___home_index_218=item___home_index_218[0];var yieldBlock___home_index_218=item___home_index_218.pop();switch(identifier___home_index_218){case"default":Jolt.inst.pushActivateBlock(yieldBlock___home_index_218);var __jolt_blk___home_index_219=Jolt.inst.pushBlock("__home_index_219");if(__jolt_blk___home_index_219){var form=item___home_index_218[0+1];var __jolt_blk___home_index_221=Jolt.inst.pushBlock("__home_index_221");if(__jolt_blk___home_index_221){ui.simple_form_input("phone",Validate.phone);Jolt.inst.popBlock()}var __jolt_blk___home_index_223=Jolt.inst.pushBlock("__home_index_223");if(__jolt_blk___home_index_223){Jolt.inst.callbackStore=Jolt.inst.closureActive?[]:__jolt_blk___home_index_223.iteration;Location.BUILDING_TYPES.each(Jolt.inst.iteratorCallback);var __collection___home_index_223=Jolt.inst.callbackStore;for(var i___home_index_223=0,len___home_index_223=__collection___home_index_223.length;i___home_index_223<len___home_index_223;i___home_index_223++){var __el___home_index_223=__collection___home_index_223[i___home_index_223];var item=__el___home_index_223[0];var blockName___home_index_223=(i___home_index_223);if(!Jolt.inst.closureActive){__jolt_blk___home_index_223.iteratorScopes.push(blockName___home_index_223)}var __jolt_blk___home_index_224=Jolt.inst.pushBlock("__home_index_224",blockName___home_index_223);if(__jolt_blk___home_index_224){if(!closureActive){var __jv__home_index_226=item.value;Jolt.inst.bindVariable(__jolt_blk___home_index_224,"__jv__home_index_226",__jv__home_index_226)}if(!closureActive){var __jv__home_index_228=item.name;Jolt.inst.bindVariable(__jolt_blk___home_index_224,"__jv__home_index_228",__jv__home_index_228)}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_231=Jolt.inst.pushBlock("__home_index_231");if(__jolt_blk___home_index_231){ui.simple_form_input("building_type",null,{type:"radiobuttongroup"});Jolt.inst.popBlock()}var __jolt_blk___home_index_233=Jolt.inst.pushBlock("__home_index_233");if(__jolt_blk___home_index_233){if((form.building_type=="appt"||form.building_type=="office")){var __jolt_blk___home_index_234=Jolt.inst.pushBlock("__home_index_234");if(__jolt_blk___home_index_234){var __jolt_blk___home_index_236=Jolt.inst.pushBlock("__home_index_236");if(__jolt_blk___home_index_236){if(!Jolt.inst.animationDefined("__home_index_236")){__jolt_blk___home_index_233.tickCounter=__jolt_blk___home_index_233.tickCounter||Jolt.inst.currentTickCounter;Jolt.inst.registerAnimation("in","__home_index_236",function(_rangeNode_,animFirstTime){return function(){var effect=null;var options___home_index_302={afterSetupCallback:function(effect){if(effect.element){effect.element.setStyle("visibility: inherit")}},duration:0.3};for(var _self_=_rangeNode_.beginElement();_self_!=_rangeNode_.endElement();_self_=_self_.next()){if(_self_.nodeName!="SCRIPT"&&_self_.nodeName!="jolt:block"&&_self_.nodeName!="META"){if(animFirstTime&&!options___home_index_302.initialPlay){options___home_index_302.delay=0;options___home_index_302.duration=0.01}options___home_index_302.queue={scope:"__home_index_236",position:"end"};var effect2=new Effect.BlindDown(_self_,options___home_index_302);effect=effect||effect2}}return effect}}(Jolt.inst.currentBlockRangeNode(),__jolt_blk___home_index_233.tickCounter==Jolt.inst.currentTickCounter));__jolt_blk___home_index_233.tickCounter=__jolt_blk___home_index_233.tickCounter||Jolt.inst.currentTickCounter;Jolt.inst.registerAnimation("out","__home_index_236",function(_rangeNode_,animFirstTime){return function(){var effect=null;var options___home_index_303={afterSetupCallback:function(effect){if(effect.element){effect.element.setStyle("visibility: inherit")}},duration:0.3};for(var _self_=_rangeNode_.beginElement();_self_!=_rangeNode_.endElement();_self_=_self_.next()){if(_self_.nodeName!="SCRIPT"&&_self_.nodeName!="jolt:block"&&_self_.nodeName!="META"){options___home_index_303.revert=true;options___home_index_303.queue={scope:"__home_index_236",position:"end"};var effect2=new Effect.BlindUp(_self_,options___home_index_303);effect=effect||effect2}}return effect}}(Jolt.inst.currentBlockRangeNode(),__jolt_blk___home_index_233.tickCounter==Jolt.inst.currentTickCounter))}else{if(__jolt_blk___home_index_236.parent.animatingOut){__jolt_blk___home_index_236.parent.animatingOut=false;var old_in=__jolt_blk___home_index_236.animations&&__jolt_blk___home_index_236.animations.old_in;if(old_in){old_in()}else{Effect.Queues.get("__home_index_236").each(function(x){x.cancel()})}}}if(!closureActive){var __jv__home_index_238=when(form.building_type=="appt","Apt #","Suite #");Jolt.inst.bindVariable(__jolt_blk___home_index_236,"__jv__home_index_238",__jv__home_index_238)}var __jolt_blk___home_index_240=Jolt.inst.pushBlock("__home_index_240");if(__jolt_blk___home_index_240){var __define_struct___home_index_240=Jolt.inst.currentDefinition();if(!__define_struct___home_index_240){__define_struct___home_index_240={node___home_index_241:new SerializerNode,node_local___home_index_241:new SerializerNode};__define_struct___home_index_240.node_local___home_index_241.connect(__define_struct___home_index_240.node___home_index_241);Jolt.inst.registerDefinition(__define_struct___home_index_240)}with(__define_struct___home_index_240){var __jolt_serializer____home_index_241___original=form.address2;var __jolt_serializer____home_index_241___ui=__jolt_serializer____home_index_241___original;var serializer_node___home_index_241=null;if(__jolt_serializer____home_index_241___original instanceof SerializerNode){serializer_node___home_index_241=__jolt_serializer____home_index_241___original;__jolt_serializer____home_index_241___original=serializer_node___home_index_241.consume();__jolt_serializer____home_index_241___ui=__jolt_serializer____home_index_241___original}if(node_local___home_index_241.lastDataVal!=__jolt_serializer____home_index_241___original){node_local___home_index_241.lastDataVal=__jolt_serializer____home_index_241___original;node_local___home_index_241.write(__jolt_serializer____home_index_241___ui)}ui.form_input({name:"address2",serialize:node___home_index_241,form:form});if(node_local___home_index_241.last!=node_local___home_index_241.current){var __jolt_serializer____home_index_241__=node_local___home_index_241.consume();if(serializer_node___home_index_241){serializer_node___home_index_241.write(__jolt_serializer____home_index_241__);node_local___home_index_241.lastDataVal=__jolt_serializer____home_index_241__}else{form.address2=__jolt_serializer____home_index_241__;node_local___home_index_241.lastDataVal=form.address2}}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_244=Jolt.inst.pushBlock("__home_index_244");if(__jolt_blk___home_index_244){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_246=Jolt.inst.pushBlock("__home_index_246");if(__jolt_blk___home_index_246){var __define_struct___home_index_246=Jolt.inst.currentDefinition();if(!__define_struct___home_index_246){__define_struct___home_index_246={node___home_index_247:new SerializerNode,node_local___home_index_247:new SerializerNode};__define_struct___home_index_246.node_local___home_index_247.connect(__define_struct___home_index_246.node___home_index_247);Jolt.inst.registerDefinition(__define_struct___home_index_246)}with(__define_struct___home_index_246){var __jolt_serializer____home_index_247___original=form.cross_street;var __jolt_serializer____home_index_247___ui=__jolt_serializer____home_index_247___original;var serializer_node___home_index_247=null;if(__jolt_serializer____home_index_247___original instanceof SerializerNode){serializer_node___home_index_247=__jolt_serializer____home_index_247___original;__jolt_serializer____home_index_247___original=serializer_node___home_index_247.consume();__jolt_serializer____home_index_247___ui=__jolt_serializer____home_index_247___original}if(node_local___home_index_247.lastDataVal!=__jolt_serializer____home_index_247___original){node_local___home_index_247.lastDataVal=__jolt_serializer____home_index_247___original;node_local___home_index_247.write(__jolt_serializer____home_index_247___ui)}ui.form_input({name:"cross_street",serialize:node___home_index_247,form:form,validate:Validate.nonBlank,showErrors:true});if(node_local___home_index_247.last!=node_local___home_index_247.current){var __jolt_serializer____home_index_247__=node_local___home_index_247.consume();if(serializer_node___home_index_247){serializer_node___home_index_247.write(__jolt_serializer____home_index_247__);node_local___home_index_247.lastDataVal=__jolt_serializer____home_index_247__}else{form.cross_street=__jolt_serializer____home_index_247__;node_local___home_index_247.lastDataVal=form.cross_street}}}Jolt.inst.popBlock()}var __jolt_blk___home_index_249=Jolt.inst.pushBlock("__home_index_249");if(__jolt_blk___home_index_249){var __define_struct___home_index_249=Jolt.inst.currentDefinition();if(!__define_struct___home_index_249){__define_struct___home_index_249={};(function(){with(this){var _validateInstructions=function(comments,field){if(valid(comments)&&comments.length>96){field.addError("comments","You are limited to 96 characters");return(false)}field.clearError("comments");return true};this["validateInstructions"]=_validateInstructions}}).call(__define_struct___home_index_249);Jolt.inst.registerDefinition(__define_struct___home_index_249)}with(__define_struct___home_index_249){var __jolt_blk___home_index_251=Jolt.inst.pushBlock("__home_index_251");if(__jolt_blk___home_index_251){var __define_struct___home_index_251=Jolt.inst.currentDefinition();if(!__define_struct___home_index_251){__define_struct___home_index_251={node___home_index_252:new SerializerNode,node_local___home_index_252:new SerializerNode};__define_struct___home_index_251.node_local___home_index_252.connect(__define_struct___home_index_251.node___home_index_252);Jolt.inst.registerDefinition(__define_struct___home_index_251)}with(__define_struct___home_index_251){var __jolt_serializer____home_index_252___original=form.comments;var __jolt_serializer____home_index_252___ui=__jolt_serializer____home_index_252___original;var serializer_node___home_index_252=null;if(__jolt_serializer____home_index_252___original instanceof SerializerNode){serializer_node___home_index_252=__jolt_serializer____home_index_252___original;__jolt_serializer____home_index_252___original=serializer_node___home_index_252.consume();__jolt_serializer____home_index_252___ui=__jolt_serializer____home_index_252___original}if(node_local___home_index_252.lastDataVal!=__jolt_serializer____home_index_252___original){node_local___home_index_252.lastDataVal=__jolt_serializer____home_index_252___original;node_local___home_index_252.write(__jolt_serializer____home_index_252___ui)}ui.form_input({name:"comments",serialize:node___home_index_252,validate:validateInstructions,form:form,opts:{type:"textarea"}});if(node_local___home_index_252.last!=node_local___home_index_252.current){var __jolt_serializer____home_index_252__=node_local___home_index_252.consume();if(serializer_node___home_index_252){serializer_node___home_index_252.write(__jolt_serializer____home_index_252__);node_local___home_index_252.lastDataVal=__jolt_serializer____home_index_252__}else{form.comments=__jolt_serializer____home_index_252__;node_local___home_index_252.lastDataVal=form.comments}}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_254=Jolt.inst.pushBlock("__home_index_254");if(__jolt_blk___home_index_254){if((self.detailsBackCallback)){var __jolt_blk___home_index_255=Jolt.inst.pushBlock("__home_index_255");if(__jolt_blk___home_index_255){if(closure=="__jolt_closure____home_index_257__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;self.detailsBackCallback();closure=null}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_259=Jolt.inst.pushBlock("__home_index_259");if(__jolt_blk___home_index_259){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}if(!closureActive){var __jv__home_index_261=!form.valid()||!form.building_type||form.building_type=="unknown";Jolt.inst.bindVariable(__jolt_blk___home_index_219,"__jv__home_index_261",__jv__home_index_261)}if(closure=="__jolt_closure____home_index_263__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;form.commit();self.detailsCallback(LocationManager.STATUS_FINISHED);closure=null}Jolt.inst.popBlock()}Jolt.inst.popBlock();break}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_266=Jolt.inst.pushBlock("__home_index_266");if(__jolt_blk___home_index_266){Jolt.inst.popBlock()}}}}Jolt.inst.popBlock()}var __jolt_blk___home_index_268=Jolt.inst.pushBlock("__home_index_268");if(__jolt_blk___home_index_268){if(!Jolt.inst.executedOnce()){Jolt.inst.markExecutedOnce();document.observe("lightview:hidden",function(event){console.log("hey!");if(self.popupEnabled){self.cancelCallback(LocationManager.CANCEL);self.dismissPopup()}});Modalbox.lightViewShow({href:"#"+self.id(),title:"Edit Location",options:{autoFocusing:false,backgroundColor:"#F9F9F9",width:800,height:300}})}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};LocationManager.prototype.popup_ui=func___home_index_168;Jolt.inst.registerPartial("LocationManager.prototype.popup_ui",func___home_index_168)};if(document.loaded){__toplevel_func___home_index_271()}else{Jolt.inst.registerDomLoadedCallback(__toplevel_func___home_index_271)}};window.scriptForNode_2=function(){Restaurant.fetchCounts=function(){if(!Restaurant.fetchingCounts&&!Restaurant.fetchedCounts){Restaurant.fetchingCounts=true;Database.find("restaurant/user-summaries",{group:true},function(a){Restaurant.fetchingCounts=false;Restaurant.fetchedCounts=false;Restaurant.countResults={};a.each(function(b){Restaurant.countResults[b.key]=b.value})})}}};window.scriptForNode_3=function(){ui.input=function(b,a){switch(b){case"dropdown":return ui.dropdown(a.items,a.value||a.serialize,a);break;case"radiobuttongroup":return ui.radiobuttongroup(a.name,a.value||a.serialize);break;case"checkbox":a.checked=a.checked||a.serialize;return ui.input.checkbox(a);break;case"textarea":a.value=a.value||a.serialize;return ui.input.textarea(a);break;case"password":a.value=a.value||a.serialize;return ui.input.password(a);break;case"input":case"text":a.value=a.value||a.serialize;return ui.input.text(a);break}};ui.input.baseAttributes={"class":true,id:true,style:true,title:true,disabled:true,name:true,highlightField:true};ui.input.attributeTypes={text:$merge({value:true},ui.input.baseAttributes),textarea:$merge({value:true},ui.input.baseAttributes),password:$merge({value:true},ui.input.baseAttributes),checkbox:$merge({checked:true},ui.input.baseAttributes),radiobuttongroup:ui.input.baseAttributes,dropdown:ui.input.baseAttributes}};window.scriptForNode_4=function(){var __toplevel_func___home_index_815=function(){var data_graph___home_index_819={block:true,type:"toplevel",children:[{type:"partial",block:true,exclusive:true,partial_name:"ui.form",children:[{type:"define",block:true,children:[{type:"yield",block:true,children:[],id:"__home_index_734"}],hidden:true,id:"__home_index_730"}],recordInParent:true,id:"__home_index_728"},{type:"partial",block:true,exclusive:true,partial_name:"ui.form_for",children:[{type:"define_2",block:true,children:[{type:"call",block:true,skipChildren:true,children:[{type:"content_for",block:true,children:[{type:"yield",block:true,children:[],id:"__home_index_751"}],id:"__home_index_749"}],id:"__home_index_748"}],hidden:true,id:"__home_index_740"}],recordInParent:true,id:"__home_index_738"},{type:"partial",block:true,exclusive:true,partial_name:"ui.simple_form_input",children:[{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_759"}],recordInParent:true,id:"__home_index_755"},{type:"partial",block:true,exclusive:true,partial_name:"ui.form_input",children:[{type:"define",block:true,children:[{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_769"},{type:"once",block:true,children:[],hidden:true,id:"__home_index_774"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div class=&quot;form_element_error&quot; &gt;\n\t\t\t\t\t\t&lt;span class=&quot;__home_index_816&quot; &gt;\u00a0&lt;/span&gt;\n\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_782"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_786"}],id:"__home_index_781"}],hidden:true,recordInParent:true,id:"__home_index_779"},{type:"else",block:true,exclusive:true,children:[{type:"yield",block:true,children:[],id:"__home_index_790"}],hidden:true,recordInParent:true,id:"__home_index_788"}],id:"__home_index_778"}],hidden:true,id:"__home_index_765"}],recordInParent:true,id:"__home_index_763"},{type:"partial",block:true,exclusive:true,partial_name:"ui.simple_validator_error",children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div class=&quot;error_msg&quot; &gt;\n\t\t\t\t\t&lt;div class=&quot;msg_title&quot; &gt;&lt;span class=&quot;__home_index_818&quot; &gt;\u00a0&lt;/span&gt;&lt;/div&gt;\n\t\t\t\t&lt;/div&gt;\n\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_803"},{type:"else",block:true,exclusive:true,children:[{type:"content",content:"&lt;div class=&quot;form_element_error&quot; &gt;\n\t\t\t\t\t&lt;span class=&quot;__home_index_817&quot; &gt;\u00a0&lt;/span&gt;\n\t\t\t\t&lt;/div&gt;\n\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_807"}],id:"__home_index_802"}],hidden:true,recordInParent:true,id:"__home_index_800"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_812"}],id:"__home_index_799"}],recordInParent:true,id:"__home_index_795"}],id:"__home_index_726"};Jolt.inst.registerDataGraph(data_graph___home_index_819);var dom_node_hash___home_index_820={__home_index_818:{variable_content:"__jv__home_index_805"},__home_index_816:{variable_content:"__jv__home_index_784"},__home_index_817:{variable_content:"__jv__home_index_809"}};Jolt.inst.registerDomNodeHash(dom_node_hash___home_index_820);var func___home_index_728=function(){var self=this;var __jolt_blk___home_index_728=Jolt.inst.pushBlock("__home_index_728");if(__jolt_blk___home_index_728){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var inForm=arguments[0];var __jolt_yields=[];var __jolt_blk___home_index_730=Jolt.inst.pushBlock("__home_index_730");if(__jolt_blk___home_index_730){var __define_struct___home_index_730=Jolt.inst.currentDefinition();if(!__define_struct___home_index_730){__define_struct___home_index_730={form:inForm||new FormObject};for(var key___home_index_730 in __define_struct___home_index_730){var val___home_index_730=__define_struct___home_index_730[key___home_index_730];if(typeof(val___home_index_730)=="function"){__define_struct___home_index_730[key___home_index_730]=(function(struct,func){return function(){return func.apply(struct,arguments)}})(__define_struct___home_index_730,val___home_index_730)}}Jolt.inst.registerDefinition(__define_struct___home_index_730)}with(__define_struct___home_index_730){form.activate();var __jolt_blk___home_index_734=Jolt.inst.pushBlock("__home_index_734");if(__jolt_blk___home_index_734){var args___home_index_734=["default",form,__jolt_blk___home_index_734];__jolt_yields.push(args___home_index_734);Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};ui.form=func___home_index_728;Jolt.inst.registerPartial("ui.form",func___home_index_728);var func___home_index_738=function(){var self=this;var __jolt_blk___home_index_738=Jolt.inst.pushBlock("__home_index_738");if(__jolt_blk___home_index_738){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var object=arguments[0];var name=arguments[1];var lock=arguments[2];var __jolt_yields=[];var __jolt_blk___home_index_740=Jolt.inst.pushBlock("__home_index_740");if(__jolt_blk___home_index_740){var __define_struct___home_index_740=Jolt.inst.currentDefinition();if(!__define_struct___home_index_740){__define_struct___home_index_740={};(function(){with(this){var _formName=name;this["formName"]=_formName}}).call(__define_struct___home_index_740);Jolt.inst.registerDefinition(__define_struct___home_index_740)}with(__define_struct___home_index_740){var formLookup=object&&$d(object,"form");var form=(formName&&formLookup&&formLookup.form&&formLookup.form(formName))?formLookup.form(formName):new BoundForm(object,name,lock);formName=form.__name;var __jolt_blk___home_index_748=Jolt.inst.pushBlock("__home_index_748");if(__jolt_blk___home_index_748){var retval___home_index_748=(ui.form(form))||0;for(var i___home_index_748=0,len___home_index_748=retval___home_index_748.length;i___home_index_748<len___home_index_748;i___home_index_748++){var item___home_index_748=retval___home_index_748[i___home_index_748];var identifier___home_index_748=item___home_index_748[0];var yieldBlock___home_index_748=item___home_index_748.pop();switch(identifier___home_index_748){case"default":Jolt.inst.pushActivateBlock(yieldBlock___home_index_748);var __jolt_blk___home_index_749=Jolt.inst.pushBlock("__home_index_749");if(__jolt_blk___home_index_749){var __jolt_blk___home_index_751=Jolt.inst.pushBlock("__home_index_751");if(__jolt_blk___home_index_751){var args___home_index_751=["default",form,__jolt_blk___home_index_751];__jolt_yields.push(args___home_index_751);Jolt.inst.popBlock()}Jolt.inst.popBlock()}Jolt.inst.popBlock();break}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};ui.form_for=func___home_index_738;Jolt.inst.registerPartial("ui.form_for",func___home_index_738);var func___home_index_755=function(){var self=this;var __jolt_blk___home_index_755=Jolt.inst.pushBlock("__home_index_755");if(__jolt_blk___home_index_755){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var name=arguments[0];var validate=arguments[1];var opts=arguments[2];var __jolt_yields=[];var form=FormObject.getCurrent();var __jolt_blk___home_index_759=Jolt.inst.pushBlock("__home_index_759");if(__jolt_blk___home_index_759){var __define_struct___home_index_759=Jolt.inst.currentDefinition();if(!__define_struct___home_index_759){__define_struct___home_index_759={node___home_index_760:new SerializerNode,node_local___home_index_760:new SerializerNode};__define_struct___home_index_759.node_local___home_index_760.connect(__define_struct___home_index_759.node___home_index_760);Jolt.inst.registerDefinition(__define_struct___home_index_759)}with(__define_struct___home_index_759){var __jolt_serializer____home_index_760___original=form[name];var __jolt_serializer____home_index_760___ui=__jolt_serializer____home_index_760___original;var serializer_node___home_index_760=null;if(__jolt_serializer____home_index_760___original instanceof SerializerNode){serializer_node___home_index_760=__jolt_serializer____home_index_760___original;__jolt_serializer____home_index_760___original=serializer_node___home_index_760.consume();__jolt_serializer____home_index_760___ui=__jolt_serializer____home_index_760___original}if(node_local___home_index_760.lastDataVal!=__jolt_serializer____home_index_760___original){node_local___home_index_760.lastDataVal=__jolt_serializer____home_index_760___original;node_local___home_index_760.write(__jolt_serializer____home_index_760___ui)}ui.form_input({serialize:node___home_index_760,opts:opts,classes:(opts?opts.className:""),name:name,validate:validate,showErrors:true});if(node_local___home_index_760.last!=node_local___home_index_760.current){var __jolt_serializer____home_index_760__=node_local___home_index_760.consume();if(serializer_node___home_index_760){serializer_node___home_index_760.write(__jolt_serializer____home_index_760__);node_local___home_index_760.lastDataVal=__jolt_serializer____home_index_760__}else{form[name]=__jolt_serializer____home_index_760__;node_local___home_index_760.lastDataVal=form[name]}}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};ui.simple_form_input=func___home_index_755;Jolt.inst.registerPartial("ui.simple_form_input",func___home_index_755);var func___home_index_763=function(){var self=this;var __jolt_blk___home_index_763=Jolt.inst.pushBlock("__home_index_763");if(__jolt_blk___home_index_763){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var serialize=arguments[0]["serialize"];var form=arguments[0]["form"];var validate=arguments[0]["validate"];var classes=arguments[0]["classes"];var validateArgs=arguments[0]["validateArgs"];var name=arguments[0]["name"];var showErrors=arguments[0]["showErrors"];var opts=arguments[0]["opts"];var __jolt_yields=[];var __jolt_blk___home_index_765=Jolt.inst.pushBlock("__home_index_765");if(__jolt_blk___home_index_765){var __define_struct___home_index_765=Jolt.inst.currentDefinition();if(!__define_struct___home_index_765){__define_struct___home_index_765={value:new SerializerNode(serialize),formElement:null,baseOpts:{},type:(opts&&opts.type?opts.type:"input"),transformFunction:(opts&&opts.transform)?opts.transform:null,myValidate:function(data){if(!this.formElement){return true}if(valid(data)){this.formElement.fieldEdited()}if(validate){var args=[data,this.formElement];if(validateArgs){args=args.concat(validateArgs)}var success=validate.apply(null,args)}else{success=true}if(success){this.formElement.setCurrent(data)}this.formElement.setActual(data);return success}};for(var key___home_index_765 in __define_struct___home_index_765){var val___home_index_765=__define_struct___home_index_765[key___home_index_765];if(typeof(val___home_index_765)=="function"){__define_struct___home_index_765[key___home_index_765]=(function(struct,func){return function(){return func.apply(struct,arguments)}})(__define_struct___home_index_765,val___home_index_765)}}Jolt.inst.registerDefinition(__define_struct___home_index_765)}with(__define_struct___home_index_765){var nopts=opts||{};var __jolt_blk___home_index_769=Jolt.inst.pushBlock("__home_index_769");if(__jolt_blk___home_index_769){var __define_struct___home_index_769=Jolt.inst.currentDefinition();if(!__define_struct___home_index_769){__define_struct___home_index_769={node___home_index_770:new SerializerNode,node_local___home_index_770:new SerializerNode};__define_struct___home_index_769.node_local___home_index_770.connect(__define_struct___home_index_769.node___home_index_770);Jolt.inst.registerDefinition(__define_struct___home_index_769)}with(__define_struct___home_index_769){var __jolt_serializer____home_index_770___original=value;var __jolt_serializer____home_index_770___ui=__jolt_serializer____home_index_770___original;var serializer_node___home_index_770=null;if(__jolt_serializer____home_index_770___original instanceof SerializerNode){serializer_node___home_index_770=__jolt_serializer____home_index_770___original;__jolt_serializer____home_index_770___original=serializer_node___home_index_770.consume();__jolt_serializer____home_index_770___ui=__jolt_serializer____home_index_770___original}if(transformFunction){__jolt_serializer____home_index_770___ui=transformFunction(__jolt_serializer____home_index_770___original,false)}if(node_local___home_index_770.lastDataVal!=__jolt_serializer____home_index_770___original){node_local___home_index_770.lastDataVal=__jolt_serializer____home_index_770___original;node_local___home_index_770.write(__jolt_serializer____home_index_770___ui)}ui.input(type,$mergeN(baseOpts,nopts,{type:type||"text",name:name,serialize:node___home_index_770,"class":classes}));if(node_local___home_index_770.last!=node_local___home_index_770.current){var __jolt_serializer____home_index_770__=node_local___home_index_770.consume();if(transformFunction){__jolt_serializer____home_index_770__=transformFunction(__jolt_serializer____home_index_770__,true)}var validated___home_index_770=myValidate(__jolt_serializer____home_index_770__);if(validated___home_index_770){if(serializer_node___home_index_770){serializer_node___home_index_770.write(__jolt_serializer____home_index_770__);node_local___home_index_770.lastDataVal=__jolt_serializer____home_index_770__}else{value=__jolt_serializer____home_index_770__;node_local___home_index_770.lastDataVal=value}}}}Jolt.inst.popBlock()}formElement=FormObject.getCurrent().registerInput(formElement,baseOpts.input,name);var __jolt_blk___home_index_774=Jolt.inst.pushBlock("__home_index_774");if(__jolt_blk___home_index_774){if(!Jolt.inst.executedOnce()){Jolt.inst.markExecutedOnce();myValidate(value.current)}Jolt.inst.popBlock()}if(baseOpts.input){if(opts&&opts.highlightField){focusInput(baseOpts.input)}}var __jolt_blk___home_index_778=Jolt.inst.pushBlock("__home_index_778");if(__jolt_blk___home_index_778){if((showErrors)){var __jolt_blk___home_index_779=Jolt.inst.pushBlock("__home_index_779");if(__jolt_blk___home_index_779){var __jolt_blk___home_index_781=Jolt.inst.pushBlock("__home_index_781");if(__jolt_blk___home_index_781){if((formElement.displayErrors())){var __jolt_blk___home_index_782=Jolt.inst.pushBlock("__home_index_782");if(__jolt_blk___home_index_782){if(!closureActive){var __jv__home_index_784=formElement.errorString();Jolt.inst.bindVariable(__jolt_blk___home_index_782,"__jv__home_index_784",__jv__home_index_784)}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_786=Jolt.inst.pushBlock("__home_index_786");if(__jolt_blk___home_index_786){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_788=Jolt.inst.pushBlock("__home_index_788");if(__jolt_blk___home_index_788){var __jolt_blk___home_index_790=Jolt.inst.pushBlock("__home_index_790");if(__jolt_blk___home_index_790){var args___home_index_790=["default",formElement,__jolt_blk___home_index_790];__jolt_yields.push(args___home_index_790);Jolt.inst.popBlock()}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};ui.form_input=func___home_index_763;Jolt.inst.registerPartial("ui.form_input",func___home_index_763);var func___home_index_795=function(){var self=this;var __jolt_blk___home_index_795=Jolt.inst.pushBlock("__home_index_795");if(__jolt_blk___home_index_795){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var errored=arguments[0];var uiElement=arguments[1];var errorString=arguments[2];var blockElem=arguments[3];var __jolt_yields=[];if(errored){FormValidator.registerErrorField(uiElement)}var __jolt_blk___home_index_799=Jolt.inst.pushBlock("__home_index_799");if(__jolt_blk___home_index_799){if((errored&&FormValidator.hasShownErrors())){var __jolt_blk___home_index_800=Jolt.inst.pushBlock("__home_index_800");if(__jolt_blk___home_index_800){var __jolt_blk___home_index_802=Jolt.inst.pushBlock("__home_index_802");if(__jolt_blk___home_index_802){if((blockElem)){var __jolt_blk___home_index_803=Jolt.inst.pushBlock("__home_index_803");if(__jolt_blk___home_index_803){if(!closureActive){var __jv__home_index_805=errorString;Jolt.inst.bindVariable(__jolt_blk___home_index_803,"__jv__home_index_805",__jv__home_index_805)}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_807=Jolt.inst.pushBlock("__home_index_807");if(__jolt_blk___home_index_807){if(!closureActive){var __jv__home_index_809=errorString;Jolt.inst.bindVariable(__jolt_blk___home_index_807,"__jv__home_index_809",__jv__home_index_809)}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_812=Jolt.inst.pushBlock("__home_index_812");if(__jolt_blk___home_index_812){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};ui.simple_validator_error=func___home_index_795;Jolt.inst.registerPartial("ui.simple_validator_error",func___home_index_795)};if(document.loaded){__toplevel_func___home_index_815()}else{Jolt.inst.registerDomLoadedCallback(__toplevel_func___home_index_815)}};window.scriptForNode_5=function(){var __toplevel_func___home_index_722=function(){var data_graph___home_index_724={block:true,type:"toplevel",children:[{type:"partial",block:true,exclusive:true,partial_name:"ui.global_search_box",children:[{type:"define_2",block:true,children:[{type:"content",content:"&lt;div class=&quot;search_form&quot; &gt;\n\t\t\t&lt;form onsubmit=&quot;return false;&quot; &gt;\n\t\t\t\t&lt;div class=&quot;right&quot; &gt;\n\t\t\t\t\t&lt;input class=&quot;button __home_index_723&quot; value=&quot;GO&quot; type=&quot;submit&quot; &gt;&lt;/input&gt;&lt;/div&gt;\n\t\t\t\t&lt;div class=&quot;right&quot; style=&quot;margin-right: 4px&quot; &gt;\n\t\t\t\t\t"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_718"},{type:"content",content:"&lt;/div&gt;\n\t\t\t\t&lt;div class=&quot;clear&quot; &gt;&lt;/div&gt;\n\t\t\t&lt;/form&gt;\n\t\t&lt;/div&gt;\n\t"}],hidden:true,id:"__home_index_714"}],recordInParent:true,id:"__home_index_712"}],id:"__home_index_710"};Jolt.inst.registerDataGraph(data_graph___home_index_724);var dom_node_hash___home_index_725={__home_index_723:{closures:{click:"__jolt_closure____home_index_716__"}}};Jolt.inst.registerDomNodeHash(dom_node_hash___home_index_725);var func___home_index_712=function(){var self=this;var __jolt_blk___home_index_712=Jolt.inst.pushBlock("__home_index_712");if(__jolt_blk___home_index_712){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var __jolt_yields=[];var __jolt_blk___home_index_714=Jolt.inst.pushBlock("__home_index_714");if(__jolt_blk___home_index_714){var __define_struct___home_index_714=Jolt.inst.currentDefinition();if(!__define_struct___home_index_714){__define_struct___home_index_714={};(function(){with(this){var _searchText="";this["searchText"]=_searchText}}).call(__define_struct___home_index_714);Jolt.inst.registerDefinition(__define_struct___home_index_714)}with(__define_struct___home_index_714){if(closure=="__jolt_closure____home_index_716__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;var url=Application.controllerUrl({controller:"restaurant",action:"search"});url=Application.buildURL(url,{q:searchText});Application.navigateTo(url);closure=null}var __jolt_blk___home_index_718=Jolt.inst.pushBlock("__home_index_718");if(__jolt_blk___home_index_718){var __define_struct___home_index_718=Jolt.inst.currentDefinition();if(!__define_struct___home_index_718){__define_struct___home_index_718={node___home_index_719:new SerializerNode,node_local___home_index_719:new SerializerNode};__define_struct___home_index_718.node_local___home_index_719.connect(__define_struct___home_index_718.node___home_index_719);Jolt.inst.registerDefinition(__define_struct___home_index_718)}with(__define_struct___home_index_718){var __jolt_serializer____home_index_719___original=searchText;var __jolt_serializer____home_index_719___ui=__jolt_serializer____home_index_719___original;var serializer_node___home_index_719=null;if(__jolt_serializer____home_index_719___original instanceof SerializerNode){serializer_node___home_index_719=__jolt_serializer____home_index_719___original;__jolt_serializer____home_index_719___original=serializer_node___home_index_719.consume();__jolt_serializer____home_index_719___ui=__jolt_serializer____home_index_719___original}if(node_local___home_index_719.lastDataVal!=__jolt_serializer____home_index_719___original){node_local___home_index_719.lastDataVal=__jolt_serializer____home_index_719___original;node_local___home_index_719.write(__jolt_serializer____home_index_719___ui)}ui.text_input_hint("search",node___home_index_719,{fieldName:"q",className:"search_box",emptyString:"Search"});if(node_local___home_index_719.last!=node_local___home_index_719.current){var __jolt_serializer____home_index_719__=node_local___home_index_719.consume();if(serializer_node___home_index_719){serializer_node___home_index_719.write(__jolt_serializer____home_index_719__);node_local___home_index_719.lastDataVal=__jolt_serializer____home_index_719__}else{searchText=__jolt_serializer____home_index_719__;node_local___home_index_719.lastDataVal=searchText}}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};ui.global_search_box=func___home_index_712;Jolt.inst.registerPartial("ui.global_search_box",func___home_index_712)};if(document.loaded){__toplevel_func___home_index_722()}else{Jolt.inst.registerDomLoadedCallback(__toplevel_func___home_index_722)}};window.scriptForNode_6=function(){var __toplevel_func___home_index_1267=function(){var data_graph___home_index_1313={block:true,type:"toplevel",children:[{type:"partial",block:true,exclusive:true,partial_name:"Order.prototype.feast_tracker_ui",children:[{type:"content",content:"&lt;div class=&quot;active_order&quot; style=&quot;margin-left: auto; margin-right: auto; display:inline-block;&quot; &gt;\n\t\t\t"},{type:"iterator",block:true,children:[{type:"iterator_inner",block:true,children:[{type:"content",content:"&lt;div class=&quot;left&quot; &gt;\n\t\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div class=&quot;__home_index_1269&quot; &gt;\n\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_831"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_835"}],id:"__home_index_830"},{type:"content",content:"&lt;div class=&quot;__home_index_1270&quot; &gt;\n\t\t\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div class=&quot;__home_index_1271&quot; &gt;\n\t\t\t\t\t\t\t\t&lt;b &gt;&lt;span class=&quot;__home_index_1303&quot; &gt;\u00a0&lt;/span&gt;&lt;/b&gt;\n\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;img src=&quot;/images/loading-med_onblue.gif&quot; style=&quot;margin-top: -2px&quot; &gt;&lt;/img&gt;"}],hidden:true,recordInParent:true,id:"__home_index_851"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_853"}],id:"__home_index_850"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div style=&quot;font-size:12px&quot; &gt;\n\t\t\t\t\t\t\t\t\t&lt;span class=&quot;__home_index_1309&quot; &gt;\u00a0&lt;/span&gt;\n\t\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_856"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_860"}],id:"__home_index_855"}],hidden:true,recordInParent:true,id:"__home_index_844"},{type:"else",block:true,exclusive:true,children:[{type:"content",content:"&lt;div &gt;\n\t\t\t\t\t\t\t\t&lt;b &gt;&lt;span class=&quot;__home_index_1306&quot; &gt;\u00a0&lt;/span&gt;&lt;/b&gt;\n\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t\t&lt;div &gt;\n\t\t\t\t\t\t\t\t&lt;b &gt;&lt;span class=&quot;__home_index_1298&quot; &gt;\u00a0&lt;/span&gt;&lt;/b&gt;\n\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_862"}],id:"__home_index_843"},{type:"content",content:"&lt;/div&gt;\n\t\t\t\t&lt;/div&gt;\n\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_828"}],hidden:true,id:"__home_index_827"},{type:"content",content:"&lt;div class=&quot;clear&quot; &gt;&lt;/div&gt;\n\t\t&lt;/div&gt;\n\t"}],recordInParent:true,id:"__home_index_823"},{type:"partial",block:true,exclusive:true,partial_name:"Order.prototype.problem_too_expensive_ui",children:[{type:"define_2",block:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div &gt;\n\t\t\t\tHow much did the meal end up costing?\n\t\t\t\t"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_878"},{type:"content",content:"&lt;/div&gt;\n\t\t\t"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_881"},{type:"content",content:"&lt;input class=&quot;__home_index_1272&quot; value=&quot;Submit&quot; type=&quot;submit&quot; &gt;&lt;/input&gt;"}],hidden:true,recordInParent:true,id:"__home_index_876"},{type:"else",block:true,exclusive:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\tWe're sorry - being overcharged in a recession is no fun.&lt;br &gt;&lt;/br&gt;\n\t\t\t\tIn the future, you can check the box on the checkout screen entitled 'Notify me if my order costs more than...'.  If your meal ends up being more expensive than anticipated,\n\t\t\t\twe will first confirm with you before going ahead and placing your order.\n\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_890"},{type:"else",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\tWe're sorry - being overcharged in a recession is no fun.&lt;br &gt;&lt;/br&gt;\n\t\t\t\tWe'll get to the bottom of this, never fear.  We'll assign someone to investigate your problem, and you should\n\t\t\t\treceive a follow-up email ASAP.\n\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_892"}],id:"__home_index_889"}],hidden:true,recordInParent:true,id:"__home_index_887"}],id:"__home_index_875"}],hidden:true,id:"__home_index_873"}],recordInParent:true,id:"__home_index_871"},{type:"partial",block:true,exclusive:true,partial_name:"Order.prototype.problem_additional_ui",children:[{type:"content",content:"\n\n\t\tAdditional notes (optional):\n\t\t&lt;div &gt;"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_899"},{type:"content",content:"&lt;/div&gt;\n\t"}],recordInParent:true,id:"__home_index_897"},{type:"partial",block:true,exclusive:true,partial_name:"Order.prototype.problem_cart_items",children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"iterator",block:true,children:[{type:"iterator_inner",block:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"define_2",block:true,children:[{type:"content",content:"&lt;div class=&quot;cart_item_full2&quot; &gt;\n\t\t\t\t\t\t&lt;div class=&quot;left&quot; &gt;\n\t\t\t\t\t\t\t"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_920"},{type:"content",content:"\n&lt;span class=&quot;__home_index_1301&quot; &gt;\u00a0&lt;/span&gt;"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_925"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_927"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div class=&quot;summary_note&quot; &gt;\n\t\t\t\t\t\t\t\t\t&lt;span class=&quot;__home_index_1305&quot; &gt;\u00a0&lt;/span&gt;\n\t\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_930"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_934"}],id:"__home_index_929"},{type:"content",content:"&lt;/div&gt;"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div class=&quot;left&quot; style=&quot;margin-left: 4px&quot; &gt;\n\t\t\t\t\t\t\t\t(x&lt;span class=&quot;__home_index_1310&quot; &gt;\u00a0&lt;/span&gt;)\n\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_937"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_941"}],id:"__home_index_936"},{type:"content",content:"\n\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t&lt;div class=&quot;clear&quot; &gt;&lt;/div&gt;\n\t\t\t\t"}],hidden:true,id:"__home_index_918"}],hidden:true,recordInParent:true,id:"__home_index_916"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_943"}],id:"__home_index_915"}],hidden:true,recordInParent:true,id:"__home_index_911"}],hidden:true,id:"__home_index_910"}],hidden:true,recordInParent:true,id:"__home_index_908"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_946"}],id:"__home_index_907"}],recordInParent:true,id:"__home_index_903"},{type:"partial",block:true,exclusive:true,partial_name:"Order.prototype.problem_missing_items_ui",children:[{type:"content",content:"&lt;div &gt;\n\t\t\tWe're sorry to hear that some items in your order had problems. Please mark the items that were missing or incorrect, and add any additional comments below.\n\t\t&lt;/div&gt;\n\t\t&lt;div &gt;\n\t\t\t"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_951"},{type:"content",content:"&lt;/div&gt;\n\t\t"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_953"},{type:"content",content:"&lt;input class=&quot;__home_index_1273&quot; value=&quot;Submit&quot; type=&quot;submit&quot; &gt;&lt;/input&gt;"}],recordInParent:true,id:"__home_index_949"},{type:"partial",block:true,exclusive:true,partial_name:"Order.prototype.problem_never_delivered_ui",children:[{type:"define_2",block:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\tWe know you're hungry!  The restaurant may be running a bit late - it hasn't been that long since we expected the order to be ready.  We suggest waiting another\n\t\t\t\tfew minutes to see if the food arrives.&lt;br &gt;&lt;/br&gt;&lt;br &gt;&lt;/br&gt;&lt;input class=&quot;__home_index_1274&quot; value=&quot;Ok&quot; type=&quot;button&quot; &gt;&lt;/input&gt;"}],hidden:true,recordInParent:true,id:"__home_index_968"},{type:"else",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\tWe're so sorry your food didn't arrive.  It's possible the restaurant may just be running very late - or there was some\n\t\t\t\tother kind of snafu.  Which option do you prefer:\n\t\t\t\t&lt;ol &gt;&lt;li &gt;&lt;a class=&quot;__home_index_1275&quot; &gt;Have an agent investigate what happened to your order&lt;/a&gt;&lt;/li&gt; \n\t\t\t\t\t&lt;li &gt;&lt;a class=&quot;__home_index_1276&quot; &gt;Call the restaurant yourself&lt;/a&gt;&lt;/li&gt; \n\t\t\t\t\t\n\n\t\t\t\t&lt;/ol&gt;"}],hidden:true,recordInParent:true,id:"__home_index_972"}],id:"__home_index_967"}],hidden:true,recordInParent:true,id:"__home_index_963"},{type:"elseif",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\tPlease give us more details about the problem:\n\t\t\t&lt;div &gt;"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_981"},{type:"content",content:"&lt;/div&gt;\n\t\t\t&lt;input class=&quot;__home_index_1277&quot; value=&quot;Submit&quot; type=&quot;submit&quot; &gt;&lt;/input&gt;"}],hidden:true,recordInParent:true,id:"__home_index_979"},{type:"elseif",block:true,exclusive:true,children:[{type:"once",block:true,children:[],hidden:true,id:"__home_index_990"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\tLoading...\n\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_993"},{type:"else",block:true,exclusive:true,children:[{type:"content",content:"&lt;div style=&quot;font-size:14px&quot; &gt;\n\t\t\t\t\tPhone: &lt;span class=&quot;__home_index_1312&quot; &gt;\u00a0&lt;/span&gt;\n\t\t\t\t&lt;/div&gt;&lt;br &gt;&lt;/br&gt;&lt;br &gt;&lt;/br&gt;&lt;b &gt;How did it go?&lt;/b&gt;\n\t\t\t\t&lt;ol &gt;&lt;li &gt;&lt;a class=&quot;__home_index_1278&quot; &gt;Everything worked out OK&lt;/a&gt; &lt;/li&gt;\n\t\t\t\t\t&lt;li &gt;&lt;a class=&quot;__home_index_1279&quot; &gt;The restaurant never got the order&lt;/a&gt; &lt;/li&gt;\n\t\t\t\t\t&lt;li &gt;&lt;a class=&quot;__home_index_1280&quot; &gt;I couldn't get ahold of the restaurant or I changed my mind - let me try something else.&lt;/a&gt; &lt;/li&gt;\n\t\t\t\t&lt;/ol&gt;"}],hidden:true,recordInParent:true,id:"__home_index_995"}],id:"__home_index_992"}],hidden:true,recordInParent:true,id:"__home_index_988"},{type:"else",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\tWe're sorry - we know what it's like when you're not satisfied with your dining experience.  Your business is important to us.  We'll assign someone to investigate your problem, and you should\n\t\t\treceive a follow-up email ASAP.\n\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1006"}],id:"__home_index_962"}],hidden:true,id:"__home_index_960"}],recordInParent:true,id:"__home_index_958"},{type:"partial",block:true,exclusive:true,partial_name:"Order.prototype.problem_other_ui",children:[{type:"define_2",block:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\tDescription:\n\t\t\t&lt;div &gt;"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_1017"},{type:"content",content:"&lt;/div&gt;\n\t\t\t&lt;input class=&quot;__home_index_1281&quot; value=&quot;Submit&quot; type=&quot;submit&quot; &gt;&lt;/input&gt;"}],hidden:true,recordInParent:true,id:"__home_index_1015"},{type:"else",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\tWe're sorry - we know what it's like when you're not satisfied with your dining experience.  Your business is important to us.  We'll assign someone to investigate your problem, and you should\n\t\t\treceive a follow-up email ASAP.\n\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1024"}],id:"__home_index_1014"}],hidden:true,id:"__home_index_1012"}],recordInParent:true,id:"__home_index_1010"},{type:"partial",block:true,exclusive:true,partial_name:"Order.prototype.problem_too_long_ui",children:[{type:"define_2",block:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\tHow long did the order take to arrive?\n\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;span style=&quot;font-size:11px&quot; &gt;\n\t\t\t\t\t(If it hasn't arrived yet, &lt;a class=&quot;__home_index_1282&quot; &gt;click here&lt;/a&gt;)\n\t\t\t\t&lt;/span&gt;\n\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1036"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1040"}],id:"__home_index_1035"},{type:"content",content:"&lt;div &gt;\n\t\t\t\t"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_1042"},{type:"content",content:"\n\n\t\t\t\tHours and\n\t\t\t\t"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_1045"},{type:"content",content:"\n\n\t\t\t\tminutes\n\t\t\t&lt;/div&gt;\n\t\t\t&lt;br &gt;&lt;/br&gt;"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_1050"},{type:"content",content:"&lt;input class=&quot;__home_index_1283&quot; value=&quot;Submit&quot; type=&quot;button&quot; &gt;&lt;/input&gt;"}],hidden:true,recordInParent:true,id:"__home_index_1033"},{type:"elseif",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\tThank you for your feedback.\n\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\tWhile we did notify you earlier that your order would take longer than normal, we understand what it's like to be hungry!  We will record your feedback\n\t\t\t\tfor future reference to help provide you with better service.\n\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1059"},{type:"elseif",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\tWe're sorry - we understand what it's like to be hungry!&lt;br &gt;&lt;/br&gt;\n\t\t\t\tIn the future, you can check the box on the checkout screen entitled 'Notify me if my order takes longer than...'.  If the restaurant is busy and your order\n\t\t\t\tis going to take longer than normal, we will first confirm with you before going ahead and placing your order.\n\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1061"},{type:"else",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\tWe're sorry - we understand what it's like to be hungry!&lt;br &gt;&lt;/br&gt;\n\t\t\t\tWhile we can't be responsible for anticipated delays on the part of the restaurant, your business is important to us!  We'll assign someone to investigate the problem, and you should\n\t\t\t\treceive a follow-up email ASAP.\n\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1063"}],id:"__home_index_1058"}],hidden:true,recordInParent:true,id:"__home_index_1056"},{type:"elseif",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\tPlease wait for your order to arrive - or if it doesn't show up at all, change the problem to 'Food was never delivered'\n\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1066"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1068"}],id:"__home_index_1032"}],hidden:true,id:"__home_index_1030"}],recordInParent:true,id:"__home_index_1028"},{type:"partial",block:true,exclusive:true,partial_name:"Order.prototype.problem_popup_ui",children:[{type:"content",content:"&lt;h3 &gt;Report a problem&lt;/h3&gt;\n\t\t"},{type:"define_2",block:true,children:[{type:"call",block:true,skipChildren:true,children:[{type:"content_for",block:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;p &gt;What was the problem with your order?&lt;/p&gt;\n\t\t\t\t"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_1083"}],hidden:true,recordInParent:true,id:"__home_index_1081"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1086"}],id:"__home_index_1080"},{type:"content",content:"&lt;div class=&quot;problem_details&quot; &gt;\n\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_1093"}],hidden:true,recordInParent:true,id:"__home_index_1091"},{type:"elseif",block:true,exclusive:true,children:[{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_1097"}],hidden:true,recordInParent:true,id:"__home_index_1095"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1099"}],id:"__home_index_1090"},{type:"content",content:"&lt;/div&gt;\n\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;input class=&quot;__home_index_1284&quot; value=&quot;Ok&quot; type=&quot;button&quot; &gt;&lt;/input&gt;"}],hidden:true,recordInParent:true,id:"__home_index_1102"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1106"}],id:"__home_index_1101"}],id:"__home_index_1078"}],id:"__home_index_1077"}],hidden:true,id:"__home_index_1073"}],recordInParent:true,id:"__home_index_1071"},{type:"partial",block:true,exclusive:true,partial_name:"Order.prototype.user_summary_active_body_ui",children:[{type:"content",content:"&lt;div class=&quot;order_body&quot; &gt;\n\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_1115"}],hidden:true,recordInParent:true,id:"__home_index_1113"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1117"}],id:"__home_index_1112"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div &gt;\n\t\t\t\t\t&lt;div style=&quot;margin-left: auto; margin-right: auto; display:inline-block;text-align:left;margin-top:8px&quot; &gt;\n\t\t\t\t\t\t\tTotal: &lt;span class=&quot;__home_index_1302&quot; &gt;\u00a0&lt;/span&gt;\n\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t&lt;/div&gt;\n\t\t\t\t&lt;div class=&quot;placed_order&quot; &gt;\t\t\t\t\t\n\t\t\t\t\t&lt;a class=&quot;__home_index_1285&quot; &gt;&lt;span class=&quot;__home_index_1311&quot; &gt;\u00a0&lt;/span&gt;&lt;/a&gt; \n\t\t\t\t&lt;/div&gt;\n\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1120"},{type:"elseif",block:true,exclusive:true,children:[{type:"content",content:"&lt;div style=&quot;margin-left: auto; margin-right: auto; display:inline-block;text-align:left;margin-top:8px&quot; &gt;\n\t\t\t\t\t&lt;div &gt;\n\t\t\t\t\t\t&lt;span class=&quot;__home_index_1307&quot; &gt;\u00a0&lt;/span&gt; &lt;span class=&quot;__home_index_1308&quot; &gt;\u00a0&lt;/span&gt;\n\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\n\t\t\t\t\t"},{type:"define_2",block:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;ul class=&quot;action_link&quot; style=&quot;list-style:none&quot; &gt;"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;li &gt;\n\t\t\t\t\t\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;a class=&quot;__home_index_1286&quot; &gt;Yes&lt;/a&gt; \n\t\t\t\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1147"},{type:"else",block:true,exclusive:true,children:[{type:"content",content:"&lt;a class=&quot;__home_index_1287&quot; &gt;Yes&lt;/a&gt;\n\t\t\t\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1151"}],id:"__home_index_1146"},{type:"content",content:"&lt;/li&gt;\n\t\t\t\t\t\t\t\t&lt;li &gt;&lt;a class=&quot;__home_index_1288&quot; &gt;No, cancel the order&lt;/a&gt;&lt;/li&gt;\n\t\t\t\t\t\t\t\t&lt;li &gt;&lt;a class=&quot;__home_index_1289&quot; &gt;I need to make changes to the order first&lt;/a&gt;&lt;/li&gt;\n\t\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1142"},{type:"else",block:true,exclusive:true,children:[{type:"content",content:"&lt;li &gt;&lt;a class=&quot;__home_index_1290&quot; &gt;Yes&lt;/a&gt;&lt;/li&gt;\n\t\t\t\t\t\t\t\t&lt;li &gt;&lt;a class=&quot;__home_index_1291&quot; &gt;No, cancel the order&lt;/a&gt;&lt;/li&gt;\n\t\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1164"}],id:"__home_index_1141"},{type:"content",content:"&lt;/ul&gt;"}],hidden:true,recordInParent:true,id:"__home_index_1139"},{type:"else",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\t\t\tLoading...\n\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1173"}],id:"__home_index_1138"}],hidden:true,id:"__home_index_1136"},{type:"content",content:"&lt;/div&gt;\n\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1130"},{type:"elseif",block:true,exclusive:true,children:[{type:"content",content:"&lt;div &gt;\n\t\t\t\t&lt;br &gt;&lt;/br&gt;\n\n\t\t\t\t\t&lt;span class=&quot;__home_index_1300&quot; &gt;\u00a0&lt;/span&gt;\t&lt;span class=&quot;action_link&quot; &gt;&lt;a class=&quot;__home_index_1292&quot; &gt;Try another restaurant?&lt;/a&gt; &lt;/span&gt;\n\t\t\t\t&lt;/div&gt;\n\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1176"},{type:"elseif",block:true,exclusive:true,children:[{type:"content",content:"&lt;div class=&quot;queue_cancel&quot; &gt;\n\t\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;a class=&quot;__home_index_1293&quot; &gt;View order details&lt;/a&gt;\n\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1189"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1195"}],id:"__home_index_1188"},{type:"content",content:"&lt;a class=&quot;__home_index_1294&quot; &gt;Cancel this order&lt;/a&gt;\n\t\t\t\t&lt;/div&gt;\n\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1186"},{type:"elseif",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1199"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1201"}],id:"__home_index_1119"},{type:"content",content:"&lt;/div&gt;\n\t"}],recordInParent:true,id:"__home_index_1110"},{type:"partial",block:true,exclusive:true,partial_name:"Order.prototype.user_summary_ui",children:[{type:"content",content:"&lt;div class=&quot;__home_index_1295&quot; &gt;\n\t\t\t&lt;div style=&quot;padding:0px 8px;&quot; &gt;\n\t\t\t\t&lt;div class=&quot;op_icon_container left&quot; &gt;\n\t\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div class=&quot;left op_icon close __home_index_1296&quot; &gt;\t\t\t\t\n\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1213"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1217"}],id:"__home_index_1212"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div class=&quot;__home_index_1297&quot; &gt;\t\t\t\t\n\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1220"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1226"}],id:"__home_index_1219"},{type:"content",content:"&lt;div class=&quot;clear&quot; &gt;&lt;/div&gt;\n\t\t\t\t&lt;/div&gt;\n\t\t\t\t&lt;div class=&quot;title_summary&quot; &gt;\n\t\t\t\t\tYour order from &lt;span class=&quot;name&quot; &gt;&lt;span class=&quot;__home_index_1299&quot; &gt;\u00a0&lt;/span&gt;&lt;/span&gt; &lt;span class=&quot;__home_index_1304&quot; &gt;\u00a0&lt;/span&gt;\n\t\t\t\t&lt;/div&gt;\n\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"animate",block:true,children:[{type:"content",content:"&lt;div &gt;\n\t\t\t\t\t\t\t"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_1237"},{type:"content",content:"&lt;/div&gt;\t\t\t\t\t\n\t\t\t\t\t"}],hidden:true,id:"__home_index_1235"}],hidden:true,recordInParent:true,id:"__home_index_1233"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1240"}],id:"__home_index_1232"},{type:"content",content:"&lt;/div&gt;\n\t\t&lt;/div&gt;\n\t\t&lt;div class=&quot;clear&quot; &gt;&lt;/div&gt;\n\t"}],recordInParent:true,id:"__home_index_1204"},{type:"partial",block:true,exclusive:true,partial_name:"Order.active_order_ui",children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"animate",block:true,children:[{type:"content",content:"&lt;div class=&quot;active_orders&quot; &gt;\n\t\t\t\t\t"},{type:"iterator",block:true,children:[{type:"iterator_inner",block:true,parent_has_scope:true,children:[{type:"animate",block:true,children:[{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_1259"}],hidden:false,id:"__home_index_1257"}],hidden:true,recordInParent:true,id:"__home_index_1253"}],hidden:true,id:"__home_index_1252"},{type:"content",content:"&lt;/div&gt;\n\t\t\t"}],hidden:false,id:"__home_index_1250"}],hidden:true,recordInParent:true,id:"__home_index_1248"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1264"}],id:"__home_index_1247"}],recordInParent:true,id:"__home_index_1243"}],id:"__home_index_821"};Jolt.inst.registerDataGraph(data_graph___home_index_1313);var dom_node_hash___home_index_1314={__home_index_1270:{variable_attributes:{"class":{variables:["__jv__home_index_837","__jv__home_index_839","__jv__home_index_841"],template:"left history_item round __jv__home_index_837 __jv__home_index_839 __jv__home_index_841"}}},__home_index_1281:{variable_attributes:{disabled:{variables:["__jv__home_index_1020"],template:"__jv__home_index_1020"}},closures:{click:"__jolt_closure____home_index_1022__"}},__home_index_1292:{variable_attributes:{href:{variables:["__jv__home_index_1182"],template:"__jv__home_index_1182"}},closures:{click:"__jolt_closure____home_index_1184__"}},__home_index_1303:{variable_content:"__jv__home_index_848"},__home_index_1271:{variable_attributes:{"class":{variables:["__jv__home_index_846"],template:"__jv__home_index_846"}}},__home_index_1282:{closures:{click:"__jolt_closure____home_index_1038__"}},__home_index_1293:{variable_attributes:{href:{variables:["__jv__home_index_1191"],template:"__jv__home_index_1191"}},closures:{click:"__jolt_closure____home_index_1193__"}},__home_index_1304:{variable_content:"__jv__home_index_1230"},__home_index_1272:{variable_attributes:{disabled:{variables:["__jv__home_index_883"],template:"__jv__home_index_883"}},closures:{click:"__jolt_closure____home_index_885__"}},__home_index_1283:{variable_attributes:{disabled:{variables:["__jv__home_index_1054"],template:"__jv__home_index_1054"}},closures:{click:"__jolt_closure____home_index_1052__"}},__home_index_1294:{closures:{click:"__jolt_closure____home_index_1197__"}},__home_index_1305:{variable_content:"__jv__home_index_932"},__home_index_1273:{closures:{click:"__jolt_closure____home_index_955__"}},__home_index_1284:{closures:{click:"__jolt_closure____home_index_1104__"}},__home_index_1295:{variable_attributes:{"class":{variables:["__jv__home_index_1210"],template:"rounder order order_status___jv__home_index_1210"}}},__home_index_1306:{variable_content:"__jv__home_index_864"},__home_index_1274:{closures:{click:"__jolt_closure____home_index_970__"}},__home_index_1285:{closures:{click:"__jolt_closure____home_index_1126__"}},__home_index_1296:{closures:{click:"__jolt_closure____home_index_1215__"}},__home_index_1307:{variable_content:"__jv__home_index_1132"},__home_index_1275:{closures:{click:"__jolt_closure____home_index_974__"}},__home_index_1286:{closures:{click:"__jolt_closure____home_index_1149__"}},__home_index_1297:{variable_attributes:{"class":{variables:["__jv__home_index_1222"],template:"left op_icon __jv__home_index_1222"}},closures:{click:"__jolt_closure____home_index_1224__"}},__home_index_1308:{variable_content:"__jv__home_index_1134"},__home_index_1276:{closures:{click:"__jolt_closure____home_index_976__"}},__home_index_1287:{variable_attributes:{href:{variables:["__jv__home_index_1153"],template:"__jv__home_index_1153"}},closures:{click:"__jolt_closure____home_index_1155__"}},__home_index_1298:{variable_content:"__jv__home_index_866"},__home_index_1309:{variable_content:"__jv__home_index_858"},__home_index_1277:{variable_attributes:{disabled:{variables:["__jv__home_index_984"],template:"__jv__home_index_984"}},closures:{click:"__jolt_closure____home_index_986__"}},__home_index_1288:{closures:{click:"__jolt_closure____home_index_1158__"}},__home_index_1299:{variable_content:"__jv__home_index_1228"},__home_index_1310:{variable_content:"__jv__home_index_939"},__home_index_1278:{closures:{click:"__jolt_closure____home_index_999__"}},__home_index_1289:{variable_attributes:{href:{variables:["__jv__home_index_1160"],template:"__jv__home_index_1160"}},closures:{click:"__jolt_closure____home_index_1162__"}},__home_index_1300:{variable_content:"__jv__home_index_1180"},__home_index_1311:{variable_content:"__jv__home_index_1128"},__home_index_1279:{closures:{click:"__jolt_closure____home_index_1001__"}},__home_index_1290:{variable_attributes:{href:{variables:["__jv__home_index_1166"],template:"__jv__home_index_1166"}},closures:{click:"__jolt_closure____home_index_1168__"}},__home_index_1301:{variable_content:"__jv__home_index_923"},__home_index_1312:{variable_content:"__jv__home_index_997"},__home_index_1269:{variable_attributes:{"class":{variables:["__jv__home_index_833"],template:"left separator __jv__home_index_833"}}},__home_index_1280:{closures:{click:"__jolt_closure____home_index_1003__"}},__home_index_1291:{closures:{click:"__jolt_closure____home_index_1170__"}},__home_index_1302:{variable_content:"__jv__home_index_1124"}};Jolt.inst.registerDomNodeHash(dom_node_hash___home_index_1314);var func___home_index_823=function(){var self=this;var __jolt_blk___home_index_823=Jolt.inst.pushBlock("__home_index_823");if(__jolt_blk___home_index_823){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var liveStatus=arguments[0];var __jolt_yields=[];var time=Utils.realTime();var __jolt_blk___home_index_827=Jolt.inst.pushBlock("__home_index_827");if(__jolt_blk___home_index_827){Jolt.inst.callbackStore=Jolt.inst.closureActive?[]:__jolt_blk___home_index_827.iteration;self.recentStatusHistory().eachWithIndex(Jolt.inst.iteratorCallback);var __collection___home_index_827=Jolt.inst.callbackStore;for(var i___home_index_827=0,len___home_index_827=__collection___home_index_827.length;i___home_index_827<len___home_index_827;i___home_index_827++){var __el___home_index_827=__collection___home_index_827[i___home_index_827];var status=__el___home_index_827[0];var index=__el___home_index_827[1];var blockName___home_index_827=(i___home_index_827);if(!Jolt.inst.closureActive){__jolt_blk___home_index_827.iteratorScopes.push(blockName___home_index_827)}var __jolt_blk___home_index_828=Jolt.inst.pushBlock("__home_index_828",blockName___home_index_827);if(__jolt_blk___home_index_828){var __jolt_blk___home_index_830=Jolt.inst.pushBlock("__home_index_830");if(__jolt_blk___home_index_830){if((!status.first)){var __jolt_blk___home_index_831=Jolt.inst.pushBlock("__home_index_831");if(__jolt_blk___home_index_831){if(!closureActive){var __jv__home_index_833="fake".when(status.fake);Jolt.inst.bindVariable(__jolt_blk___home_index_831,"__jv__home_index_833",__jv__home_index_833)}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_835=Jolt.inst.pushBlock("__home_index_835");if(__jolt_blk___home_index_835){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}if(!closureActive){var __jv__home_index_837="fake".when(status.fake);Jolt.inst.bindVariable(__jolt_blk___home_index_828,"__jv__home_index_837",__jv__home_index_837)}if(!closureActive){var __jv__home_index_839="last".when(status.last);Jolt.inst.bindVariable(__jolt_blk___home_index_828,"__jv__home_index_839",__jv__home_index_839)}if(!closureActive){var __jv__home_index_841="future".when(status.future);Jolt.inst.bindVariable(__jolt_blk___home_index_828,"__jv__home_index_841",__jv__home_index_841)}var __jolt_blk___home_index_843=Jolt.inst.pushBlock("__home_index_843");if(__jolt_blk___home_index_843){if((!status.future)){var __jolt_blk___home_index_844=Jolt.inst.pushBlock("__home_index_844");if(__jolt_blk___home_index_844){if(!closureActive){var __jv__home_index_846="fake".when(status.fake);Jolt.inst.bindVariable(__jolt_blk___home_index_844,"__jv__home_index_846",__jv__home_index_846)}if(!closureActive){var __jv__home_index_848=status.status;Jolt.inst.bindVariable(__jolt_blk___home_index_844,"__jv__home_index_848",__jv__home_index_848)}var __jolt_blk___home_index_850=Jolt.inst.pushBlock("__home_index_850");if(__jolt_blk___home_index_850){if((status.status=="processing")){var __jolt_blk___home_index_851=Jolt.inst.pushBlock("__home_index_851");if(__jolt_blk___home_index_851){Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_853=Jolt.inst.pushBlock("__home_index_853");if(__jolt_blk___home_index_853){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_855=Jolt.inst.pushBlock("__home_index_855");if(__jolt_blk___home_index_855){if((!status.fake&&status.time)){var __jolt_blk___home_index_856=Jolt.inst.pushBlock("__home_index_856");if(__jolt_blk___home_index_856){if(!closureActive){var __jv__home_index_858=status.time?status.time.relativeTime({time:time,suffix:status.future?"":"ago"}):"";Jolt.inst.bindVariable(__jolt_blk___home_index_856,"__jv__home_index_858",__jv__home_index_858)}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_860=Jolt.inst.pushBlock("__home_index_860");if(__jolt_blk___home_index_860){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_862=Jolt.inst.pushBlock("__home_index_862");if(__jolt_blk___home_index_862){if(!closureActive){var __jv__home_index_864=when(self.method=="delivery","delivery ETA:","ready for pickup");Jolt.inst.bindVariable(__jolt_blk___home_index_862,"__jv__home_index_864",__jv__home_index_864)}if(!closureActive){var __jv__home_index_866=status.time<time?when(self.method=="delivery","any time now","now"):when(self.method=="delivery","","in ")+status.time.relativeTime();Jolt.inst.bindVariable(__jolt_blk___home_index_862,"__jv__home_index_866",__jv__home_index_866)}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};Order.prototype.feast_tracker_ui=func___home_index_823;Jolt.inst.registerPartial("Order.prototype.feast_tracker_ui",func___home_index_823);var func___home_index_871=function(){var self=this;var __jolt_blk___home_index_871=Jolt.inst.pushBlock("__home_index_871");if(__jolt_blk___home_index_871){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var form=arguments[0];var problem=arguments[1];var __jolt_yields=[];var __jolt_blk___home_index_873=Jolt.inst.pushBlock("__home_index_873");if(__jolt_blk___home_index_873){var __define_struct___home_index_873=Jolt.inst.currentDefinition();if(!__define_struct___home_index_873){__define_struct___home_index_873={};(function(){with(this){var _page="ask";this["page"]=_page}}).call(__define_struct___home_index_873);Jolt.inst.registerDefinition(__define_struct___home_index_873)}with(__define_struct___home_index_873){var __jolt_blk___home_index_875=Jolt.inst.pushBlock("__home_index_875");if(__jolt_blk___home_index_875){if((page=="ask")){var __jolt_blk___home_index_876=Jolt.inst.pushBlock("__home_index_876");if(__jolt_blk___home_index_876){var __jolt_blk___home_index_878=Jolt.inst.pushBlock("__home_index_878");if(__jolt_blk___home_index_878){var __define_struct___home_index_878=Jolt.inst.currentDefinition();if(!__define_struct___home_index_878){__define_struct___home_index_878={node___home_index_879:new SerializerNode,node_local___home_index_879:new SerializerNode};__define_struct___home_index_878.node_local___home_index_879.connect(__define_struct___home_index_878.node___home_index_879);Jolt.inst.registerDefinition(__define_struct___home_index_878)}with(__define_struct___home_index_878){var __jolt_serializer____home_index_879___original=form.cost;var __jolt_serializer____home_index_879___ui=__jolt_serializer____home_index_879___original;var serializer_node___home_index_879=null;if(__jolt_serializer____home_index_879___original instanceof SerializerNode){serializer_node___home_index_879=__jolt_serializer____home_index_879___original;__jolt_serializer____home_index_879___original=serializer_node___home_index_879.consume();__jolt_serializer____home_index_879___ui=__jolt_serializer____home_index_879___original}if(node_local___home_index_879.lastDataVal!=__jolt_serializer____home_index_879___original){node_local___home_index_879.lastDataVal=__jolt_serializer____home_index_879___original;node_local___home_index_879.write(__jolt_serializer____home_index_879___ui)}ui.form_input({serialize:node___home_index_879,form:form,name:"cost",opts:{transform:Transforms.cost}});if(node_local___home_index_879.last!=node_local___home_index_879.current){var __jolt_serializer____home_index_879__=node_local___home_index_879.consume();if(serializer_node___home_index_879){serializer_node___home_index_879.write(__jolt_serializer____home_index_879__);node_local___home_index_879.lastDataVal=__jolt_serializer____home_index_879__}else{form.cost=__jolt_serializer____home_index_879__;node_local___home_index_879.lastDataVal=form.cost}}}Jolt.inst.popBlock()}var __jolt_blk___home_index_881=Jolt.inst.pushBlock("__home_index_881");if(__jolt_blk___home_index_881){self.problem_additional_ui(form,problem);Jolt.inst.popBlock()}if(!closureActive){var __jv__home_index_883=isNaN(form.cost)||form.cost<0;Jolt.inst.bindVariable(__jolt_blk___home_index_876,"__jv__home_index_883",__jv__home_index_883)}if(closure=="__jolt_closure____home_index_885__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;page="confirm";form.commit();problem.order().notifyProblem(problem);closure=null}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_887=Jolt.inst.pushBlock("__home_index_887");if(__jolt_blk___home_index_887){var __jolt_blk___home_index_889=Jolt.inst.pushBlock("__home_index_889");if(__jolt_blk___home_index_889){if((!self.bounce_conditions.cost&&form.cost<self.bounce_conditions.max_cost)){var __jolt_blk___home_index_890=Jolt.inst.pushBlock("__home_index_890");if(__jolt_blk___home_index_890){Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_892=Jolt.inst.pushBlock("__home_index_892");if(__jolt_blk___home_index_892){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};Order.prototype.problem_too_expensive_ui=func___home_index_871;Jolt.inst.registerPartial("Order.prototype.problem_too_expensive_ui",func___home_index_871);var func___home_index_897=function(){var self=this;var __jolt_blk___home_index_897=Jolt.inst.pushBlock("__home_index_897");if(__jolt_blk___home_index_897){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var form=arguments[0];var problem=arguments[1];var __jolt_yields=[];var __jolt_blk___home_index_899=Jolt.inst.pushBlock("__home_index_899");if(__jolt_blk___home_index_899){var __define_struct___home_index_899=Jolt.inst.currentDefinition();if(!__define_struct___home_index_899){__define_struct___home_index_899={node___home_index_900:new SerializerNode,node_local___home_index_900:new SerializerNode};__define_struct___home_index_899.node_local___home_index_900.connect(__define_struct___home_index_899.node___home_index_900);Jolt.inst.registerDefinition(__define_struct___home_index_899)}with(__define_struct___home_index_899){var __jolt_serializer____home_index_900___original=form.notes;var __jolt_serializer____home_index_900___ui=__jolt_serializer____home_index_900___original;var serializer_node___home_index_900=null;if(__jolt_serializer____home_index_900___original instanceof SerializerNode){serializer_node___home_index_900=__jolt_serializer____home_index_900___original;__jolt_serializer____home_index_900___original=serializer_node___home_index_900.consume();__jolt_serializer____home_index_900___ui=__jolt_serializer____home_index_900___original}if(node_local___home_index_900.lastDataVal!=__jolt_serializer____home_index_900___original){node_local___home_index_900.lastDataVal=__jolt_serializer____home_index_900___original;node_local___home_index_900.write(__jolt_serializer____home_index_900___ui)}ui.input.textarea({value:node___home_index_900,"class":"big"});if(node_local___home_index_900.last!=node_local___home_index_900.current){var __jolt_serializer____home_index_900__=node_local___home_index_900.consume();if(serializer_node___home_index_900){serializer_node___home_index_900.write(__jolt_serializer____home_index_900__);node_local___home_index_900.lastDataVal=__jolt_serializer____home_index_900__}else{form.notes=__jolt_serializer____home_index_900__;node_local___home_index_900.lastDataVal=form.notes}}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};Order.prototype.problem_additional_ui=func___home_index_897;Jolt.inst.registerPartial("Order.prototype.problem_additional_ui",func___home_index_897);var func___home_index_903=function(){var self=this;var __jolt_blk___home_index_903=Jolt.inst.pushBlock("__home_index_903");if(__jolt_blk___home_index_903){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var __jolt_yields=[];var cartSummary=$d(self.cart).summary=self.cart.savedSummary;var __jolt_blk___home_index_907=Jolt.inst.pushBlock("__home_index_907");if(__jolt_blk___home_index_907){if((cartSummary)){var __jolt_blk___home_index_908=Jolt.inst.pushBlock("__home_index_908");if(__jolt_blk___home_index_908){var __jolt_blk___home_index_910=Jolt.inst.pushBlock("__home_index_910");if(__jolt_blk___home_index_910){Jolt.inst.callbackStore=Jolt.inst.closureActive?[]:__jolt_blk___home_index_910.iteration;self.cart.bucketOrder.each(Jolt.inst.iteratorCallback);var __collection___home_index_910=Jolt.inst.callbackStore;for(var i___home_index_910=0,len___home_index_910=__collection___home_index_910.length;i___home_index_910<len___home_index_910;i___home_index_910++){var __el___home_index_910=__collection___home_index_910[i___home_index_910];var bucketIndex=__el___home_index_910[0];var blockName___home_index_910=(i___home_index_910);if(!Jolt.inst.closureActive){__jolt_blk___home_index_910.iteratorScopes.push(blockName___home_index_910)}var __jolt_blk___home_index_911=Jolt.inst.pushBlock("__home_index_911",blockName___home_index_910);if(__jolt_blk___home_index_911){var items=self.cart.buckets[bucketIndex];var item=items[0];var itemSummary=cartSummary[bucketIndex];var __jolt_blk___home_index_915=Jolt.inst.pushBlock("__home_index_915");if(__jolt_blk___home_index_915){if((itemSummary)){var __jolt_blk___home_index_916=Jolt.inst.pushBlock("__home_index_916");if(__jolt_blk___home_index_916){var __jolt_blk___home_index_918=Jolt.inst.pushBlock("__home_index_918");if(__jolt_blk___home_index_918){var __define_struct___home_index_918=Jolt.inst.currentDefinition();if(!__define_struct___home_index_918){__define_struct___home_index_918={};(function(){with(this){var _ch=false;this["ch"]=_ch}}).call(__define_struct___home_index_918);Jolt.inst.registerDefinition(__define_struct___home_index_918)}with(__define_struct___home_index_918){var __jolt_blk___home_index_920=Jolt.inst.pushBlock("__home_index_920");if(__jolt_blk___home_index_920){var __define_struct___home_index_920=Jolt.inst.currentDefinition();if(!__define_struct___home_index_920){__define_struct___home_index_920={node___home_index_921:new SerializerNode,node_local___home_index_921:new SerializerNode};__define_struct___home_index_920.node_local___home_index_921.connect(__define_struct___home_index_920.node___home_index_921);Jolt.inst.registerDefinition(__define_struct___home_index_920)}with(__define_struct___home_index_920){var __jolt_serializer____home_index_921___original=ch;var __jolt_serializer____home_index_921___ui=__jolt_serializer____home_index_921___original;var serializer_node___home_index_921=null;if(__jolt_serializer____home_index_921___original instanceof SerializerNode){serializer_node___home_index_921=__jolt_serializer____home_index_921___original;__jolt_serializer____home_index_921___original=serializer_node___home_index_921.consume();__jolt_serializer____home_index_921___ui=__jolt_serializer____home_index_921___original}if(node_local___home_index_921.lastDataVal!=__jolt_serializer____home_index_921___original){node_local___home_index_921.lastDataVal=__jolt_serializer____home_index_921___original;node_local___home_index_921.write(__jolt_serializer____home_index_921___ui)}ui.input.checkbox({serialize:node___home_index_921});if(node_local___home_index_921.last!=node_local___home_index_921.current){var __jolt_serializer____home_index_921__=node_local___home_index_921.consume();if(serializer_node___home_index_921){serializer_node___home_index_921.write(__jolt_serializer____home_index_921__);node_local___home_index_921.lastDataVal=__jolt_serializer____home_index_921__}else{ch=__jolt_serializer____home_index_921__;node_local___home_index_921.lastDataVal=ch}}}Jolt.inst.popBlock()}if(!closureActive){var __jv__home_index_923=itemSummary.friendlySectionName;Jolt.inst.bindVariable(__jolt_blk___home_index_918,"__jv__home_index_923",__jv__home_index_923)}var __jolt_blk___home_index_925=Jolt.inst.pushBlock("__home_index_925");if(__jolt_blk___home_index_925){cart_item_summary_hierarchy_prefix(itemSummary);Jolt.inst.popBlock()}var __jolt_blk___home_index_927=Jolt.inst.pushBlock("__home_index_927");if(__jolt_blk___home_index_927){cart_item_summary_hierarchy_children(itemSummary);Jolt.inst.popBlock()}var __jolt_blk___home_index_929=Jolt.inst.pushBlock("__home_index_929");if(__jolt_blk___home_index_929){if((item.note)){var __jolt_blk___home_index_930=Jolt.inst.pushBlock("__home_index_930");if(__jolt_blk___home_index_930){if(!closureActive){var __jv__home_index_932=item.note;Jolt.inst.bindVariable(__jolt_blk___home_index_930,"__jv__home_index_932",__jv__home_index_932)}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_934=Jolt.inst.pushBlock("__home_index_934");if(__jolt_blk___home_index_934){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_936=Jolt.inst.pushBlock("__home_index_936");if(__jolt_blk___home_index_936){if((items.length>1)){var __jolt_blk___home_index_937=Jolt.inst.pushBlock("__home_index_937");if(__jolt_blk___home_index_937){if(!closureActive){var __jv__home_index_939=items.length;Jolt.inst.bindVariable(__jolt_blk___home_index_937,"__jv__home_index_939",__jv__home_index_939)}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_941=Jolt.inst.pushBlock("__home_index_941");if(__jolt_blk___home_index_941){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_943=Jolt.inst.pushBlock("__home_index_943");if(__jolt_blk___home_index_943){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_946=Jolt.inst.pushBlock("__home_index_946");if(__jolt_blk___home_index_946){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};Order.prototype.problem_cart_items=func___home_index_903;Jolt.inst.registerPartial("Order.prototype.problem_cart_items",func___home_index_903);var func___home_index_949=function(){var self=this;var __jolt_blk___home_index_949=Jolt.inst.pushBlock("__home_index_949");if(__jolt_blk___home_index_949){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var form=arguments[0];var problem=arguments[1];var __jolt_yields=[];var __jolt_blk___home_index_951=Jolt.inst.pushBlock("__home_index_951");if(__jolt_blk___home_index_951){self.problem_cart_items();Jolt.inst.popBlock()}var __jolt_blk___home_index_953=Jolt.inst.pushBlock("__home_index_953");if(__jolt_blk___home_index_953){self.problem_additional_ui(form,problem);Jolt.inst.popBlock()}if(closure=="__jolt_closure____home_index_955__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;page="confirm";form.commit();problem.order().notifyProblem(problem);closure=null}Jolt.inst.popBlock()}return __jolt_yields};Order.prototype.problem_missing_items_ui=func___home_index_949;Jolt.inst.registerPartial("Order.prototype.problem_missing_items_ui",func___home_index_949);var func___home_index_958=function(){var self=this;var __jolt_blk___home_index_958=Jolt.inst.pushBlock("__home_index_958");if(__jolt_blk___home_index_958){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var form=arguments[0];var problem=arguments[1];var __jolt_yields=[];var __jolt_blk___home_index_960=Jolt.inst.pushBlock("__home_index_960");if(__jolt_blk___home_index_960){var __define_struct___home_index_960=Jolt.inst.currentDefinition();if(!__define_struct___home_index_960){__define_struct___home_index_960={};(function(){with(this){var _page="ask";this["page"]=_page}}).call(__define_struct___home_index_960);Jolt.inst.registerDefinition(__define_struct___home_index_960)}with(__define_struct___home_index_960){var __jolt_blk___home_index_962=Jolt.inst.pushBlock("__home_index_962");if(__jolt_blk___home_index_962){if((page=="ask")){var __jolt_blk___home_index_963=Jolt.inst.pushBlock("__home_index_963");if(__jolt_blk___home_index_963){var timeSinceReady=Utils.realTime().getTime()-self.getReadyTime().getTime();var __jolt_blk___home_index_967=Jolt.inst.pushBlock("__home_index_967");if(__jolt_blk___home_index_967){if((timeSinceReady<60*1000*15)){var __jolt_blk___home_index_968=Jolt.inst.pushBlock("__home_index_968");if(__jolt_blk___home_index_968){if(closure=="__jolt_closure____home_index_970__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;Lightview.hide();closure=null}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_972=Jolt.inst.pushBlock("__home_index_972");if(__jolt_blk___home_index_972){if(closure=="__jolt_closure____home_index_974__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;problem.investigate=true;page="notes";closure=null}if(closure=="__jolt_closure____home_index_976__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;page="restaurant";closure=null}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{if(page=="notes"){var __jolt_blk___home_index_979=Jolt.inst.pushBlock("__home_index_979");if(__jolt_blk___home_index_979){var __jolt_blk___home_index_981=Jolt.inst.pushBlock("__home_index_981");if(__jolt_blk___home_index_981){var __define_struct___home_index_981=Jolt.inst.currentDefinition();if(!__define_struct___home_index_981){__define_struct___home_index_981={node___home_index_982:new SerializerNode,node_local___home_index_982:new SerializerNode};__define_struct___home_index_981.node_local___home_index_982.connect(__define_struct___home_index_981.node___home_index_982);Jolt.inst.registerDefinition(__define_struct___home_index_981)}with(__define_struct___home_index_981){var __jolt_serializer____home_index_982___original=form.notes;var __jolt_serializer____home_index_982___ui=__jolt_serializer____home_index_982___original;var serializer_node___home_index_982=null;if(__jolt_serializer____home_index_982___original instanceof SerializerNode){serializer_node___home_index_982=__jolt_serializer____home_index_982___original;__jolt_serializer____home_index_982___original=serializer_node___home_index_982.consume();__jolt_serializer____home_index_982___ui=__jolt_serializer____home_index_982___original}if(node_local___home_index_982.lastDataVal!=__jolt_serializer____home_index_982___original){node_local___home_index_982.lastDataVal=__jolt_serializer____home_index_982___original;node_local___home_index_982.write(__jolt_serializer____home_index_982___ui)}ui.input.textarea({value:node___home_index_982,"class":"big"});if(node_local___home_index_982.last!=node_local___home_index_982.current){var __jolt_serializer____home_index_982__=node_local___home_index_982.consume();if(serializer_node___home_index_982){serializer_node___home_index_982.write(__jolt_serializer____home_index_982__);node_local___home_index_982.lastDataVal=__jolt_serializer____home_index_982__}else{form.notes=__jolt_serializer____home_index_982__;node_local___home_index_982.lastDataVal=form.notes}}}Jolt.inst.popBlock()}if(!closureActive){var __jv__home_index_984=!valid(form.notes);Jolt.inst.bindVariable(__jolt_blk___home_index_979,"__jv__home_index_984",__jv__home_index_984)}if(closure=="__jolt_closure____home_index_986__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;page="confirm";form.commit();problem.order().notifyProblem(problem);closure=null}Jolt.inst.popBlock()}}else{if(page=="restaurant"){var __jolt_blk___home_index_988=Jolt.inst.pushBlock("__home_index_988");if(__jolt_blk___home_index_988){var __jolt_blk___home_index_990=Jolt.inst.pushBlock("__home_index_990");if(__jolt_blk___home_index_990){if(!Jolt.inst.executedOnce()){Jolt.inst.markExecutedOnce();self.restaurant.fetch()}Jolt.inst.popBlock()}var __jolt_blk___home_index_992=Jolt.inst.pushBlock("__home_index_992");if(__jolt_blk___home_index_992){if((Database.loading("my_active"+self.id()))){var __jolt_blk___home_index_993=Jolt.inst.pushBlock("__home_index_993");if(__jolt_blk___home_index_993){Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_995=Jolt.inst.pushBlock("__home_index_995");if(__jolt_blk___home_index_995){if(!closureActive){var __jv__home_index_997=formatPhone(self.restaurant.phone);Jolt.inst.bindVariable(__jolt_blk___home_index_995,"__jv__home_index_997",__jv__home_index_997)}if(closure=="__jolt_closure____home_index_999__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;Lightview.hide();closure=null}if(closure=="__jolt_closure____home_index_1001__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;problem.restaurant_did_not_get_order=true;page="notes";closure=null}if(closure=="__jolt_closure____home_index_1003__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;page="ask";closure=null}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1006=Jolt.inst.pushBlock("__home_index_1006");if(__jolt_blk___home_index_1006){Jolt.inst.popBlock()}}}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};Order.prototype.problem_never_delivered_ui=func___home_index_958;Jolt.inst.registerPartial("Order.prototype.problem_never_delivered_ui",func___home_index_958);var func___home_index_1010=function(){var self=this;var __jolt_blk___home_index_1010=Jolt.inst.pushBlock("__home_index_1010");if(__jolt_blk___home_index_1010){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var form=arguments[0];var problem=arguments[1];var __jolt_yields=[];var __jolt_blk___home_index_1012=Jolt.inst.pushBlock("__home_index_1012");if(__jolt_blk___home_index_1012){var __define_struct___home_index_1012=Jolt.inst.currentDefinition();if(!__define_struct___home_index_1012){__define_struct___home_index_1012={};(function(){with(this){var _page="ask";this["page"]=_page}}).call(__define_struct___home_index_1012);Jolt.inst.registerDefinition(__define_struct___home_index_1012)}with(__define_struct___home_index_1012){var __jolt_blk___home_index_1014=Jolt.inst.pushBlock("__home_index_1014");if(__jolt_blk___home_index_1014){if((page=="ask")){var __jolt_blk___home_index_1015=Jolt.inst.pushBlock("__home_index_1015");if(__jolt_blk___home_index_1015){var __jolt_blk___home_index_1017=Jolt.inst.pushBlock("__home_index_1017");if(__jolt_blk___home_index_1017){var __define_struct___home_index_1017=Jolt.inst.currentDefinition();if(!__define_struct___home_index_1017){__define_struct___home_index_1017={node___home_index_1018:new SerializerNode,node_local___home_index_1018:new SerializerNode};__define_struct___home_index_1017.node_local___home_index_1018.connect(__define_struct___home_index_1017.node___home_index_1018);Jolt.inst.registerDefinition(__define_struct___home_index_1017)}with(__define_struct___home_index_1017){var __jolt_serializer____home_index_1018___original=form.notes;var __jolt_serializer____home_index_1018___ui=__jolt_serializer____home_index_1018___original;var serializer_node___home_index_1018=null;if(__jolt_serializer____home_index_1018___original instanceof SerializerNode){serializer_node___home_index_1018=__jolt_serializer____home_index_1018___original;__jolt_serializer____home_index_1018___original=serializer_node___home_index_1018.consume();__jolt_serializer____home_index_1018___ui=__jolt_serializer____home_index_1018___original}if(node_local___home_index_1018.lastDataVal!=__jolt_serializer____home_index_1018___original){node_local___home_index_1018.lastDataVal=__jolt_serializer____home_index_1018___original;node_local___home_index_1018.write(__jolt_serializer____home_index_1018___ui)}ui.input.textarea({value:node___home_index_1018,"class":"big"});if(node_local___home_index_1018.last!=node_local___home_index_1018.current){var __jolt_serializer____home_index_1018__=node_local___home_index_1018.consume();if(serializer_node___home_index_1018){serializer_node___home_index_1018.write(__jolt_serializer____home_index_1018__);node_local___home_index_1018.lastDataVal=__jolt_serializer____home_index_1018__}else{form.notes=__jolt_serializer____home_index_1018__;node_local___home_index_1018.lastDataVal=form.notes}}}Jolt.inst.popBlock()}if(!closureActive){var __jv__home_index_1020=!valid(form.notes);Jolt.inst.bindVariable(__jolt_blk___home_index_1015,"__jv__home_index_1020",__jv__home_index_1020)}if(closure=="__jolt_closure____home_index_1022__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;page="confirm";form.commit();problem.order().notifyProblem(problem);closure=null}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1024=Jolt.inst.pushBlock("__home_index_1024");if(__jolt_blk___home_index_1024){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};Order.prototype.problem_other_ui=func___home_index_1010;Jolt.inst.registerPartial("Order.prototype.problem_other_ui",func___home_index_1010);var func___home_index_1028=function(){var self=this;var __jolt_blk___home_index_1028=Jolt.inst.pushBlock("__home_index_1028");if(__jolt_blk___home_index_1028){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var form=arguments[0];var problem=arguments[1];var __jolt_yields=[];var __jolt_blk___home_index_1030=Jolt.inst.pushBlock("__home_index_1030");if(__jolt_blk___home_index_1030){var __define_struct___home_index_1030=Jolt.inst.currentDefinition();if(!__define_struct___home_index_1030){__define_struct___home_index_1030={};(function(){with(this){var _page="ask";this["page"]=_page}}).call(__define_struct___home_index_1030);Jolt.inst.registerDefinition(__define_struct___home_index_1030)}with(__define_struct___home_index_1030){var __jolt_blk___home_index_1032=Jolt.inst.pushBlock("__home_index_1032");if(__jolt_blk___home_index_1032){if((page=="ask")){var __jolt_blk___home_index_1033=Jolt.inst.pushBlock("__home_index_1033");if(__jolt_blk___home_index_1033){var __jolt_blk___home_index_1035=Jolt.inst.pushBlock("__home_index_1035");if(__jolt_blk___home_index_1035){if((self.method=="delivery")){var __jolt_blk___home_index_1036=Jolt.inst.pushBlock("__home_index_1036");if(__jolt_blk___home_index_1036){if(closure=="__jolt_closure____home_index_1038__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;page="later";closure=null}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1040=Jolt.inst.pushBlock("__home_index_1040");if(__jolt_blk___home_index_1040){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_1042=Jolt.inst.pushBlock("__home_index_1042");if(__jolt_blk___home_index_1042){var __define_struct___home_index_1042=Jolt.inst.currentDefinition();if(!__define_struct___home_index_1042){__define_struct___home_index_1042={node___home_index_1043:new SerializerNode,node_local___home_index_1043:new SerializerNode};__define_struct___home_index_1042.node_local___home_index_1043.connect(__define_struct___home_index_1042.node___home_index_1043);Jolt.inst.registerDefinition(__define_struct___home_index_1042)}with(__define_struct___home_index_1042){var __jolt_serializer____home_index_1043___original=form.hours;var __jolt_serializer____home_index_1043___ui=__jolt_serializer____home_index_1043___original;var serializer_node___home_index_1043=null;if(__jolt_serializer____home_index_1043___original instanceof SerializerNode){serializer_node___home_index_1043=__jolt_serializer____home_index_1043___original;__jolt_serializer____home_index_1043___original=serializer_node___home_index_1043.consume();__jolt_serializer____home_index_1043___ui=__jolt_serializer____home_index_1043___original}if(node_local___home_index_1043.lastDataVal!=__jolt_serializer____home_index_1043___original){node_local___home_index_1043.lastDataVal=__jolt_serializer____home_index_1043___original;node_local___home_index_1043.write(__jolt_serializer____home_index_1043___ui)}ui.form_input({serialize:node___home_index_1043,form:form,name:"hours",opts:{transform:Transforms.integer}});if(node_local___home_index_1043.last!=node_local___home_index_1043.current){var __jolt_serializer____home_index_1043__=node_local___home_index_1043.consume();if(serializer_node___home_index_1043){serializer_node___home_index_1043.write(__jolt_serializer____home_index_1043__);node_local___home_index_1043.lastDataVal=__jolt_serializer____home_index_1043__}else{form.hours=__jolt_serializer____home_index_1043__;node_local___home_index_1043.lastDataVal=form.hours}}}Jolt.inst.popBlock()}var __jolt_blk___home_index_1045=Jolt.inst.pushBlock("__home_index_1045");if(__jolt_blk___home_index_1045){var __define_struct___home_index_1045=Jolt.inst.currentDefinition();if(!__define_struct___home_index_1045){__define_struct___home_index_1045={node___home_index_1046:new SerializerNode,node_local___home_index_1046:new SerializerNode};__define_struct___home_index_1045.node_local___home_index_1046.connect(__define_struct___home_index_1045.node___home_index_1046);Jolt.inst.registerDefinition(__define_struct___home_index_1045)}with(__define_struct___home_index_1045){var __jolt_serializer____home_index_1046___original=form.minutes;var __jolt_serializer____home_index_1046___ui=__jolt_serializer____home_index_1046___original;var serializer_node___home_index_1046=null;if(__jolt_serializer____home_index_1046___original instanceof SerializerNode){serializer_node___home_index_1046=__jolt_serializer____home_index_1046___original;__jolt_serializer____home_index_1046___original=serializer_node___home_index_1046.consume();__jolt_serializer____home_index_1046___ui=__jolt_serializer____home_index_1046___original}if(node_local___home_index_1046.lastDataVal!=__jolt_serializer____home_index_1046___original){node_local___home_index_1046.lastDataVal=__jolt_serializer____home_index_1046___original;node_local___home_index_1046.write(__jolt_serializer____home_index_1046___ui)}ui.form_input({serialize:node___home_index_1046,form:form,name:"minutes",opts:{transform:Transforms.integer}});if(node_local___home_index_1046.last!=node_local___home_index_1046.current){var __jolt_serializer____home_index_1046__=node_local___home_index_1046.consume();if(serializer_node___home_index_1046){serializer_node___home_index_1046.write(__jolt_serializer____home_index_1046__);node_local___home_index_1046.lastDataVal=__jolt_serializer____home_index_1046__}else{form.minutes=__jolt_serializer____home_index_1046__;node_local___home_index_1046.lastDataVal=form.minutes}}}Jolt.inst.popBlock()}var takeTime=(isNaN(form.hours)?0:form.hours)*60+(isNaN(form.minutes)?0:form.minutes);var askedAboutTime=self.error_filters["eta_minutes_"+self.method]||!self.bounce_conditions.time;var __jolt_blk___home_index_1050=Jolt.inst.pushBlock("__home_index_1050");if(__jolt_blk___home_index_1050){self.problem_additional_ui(form);Jolt.inst.popBlock()}if(closure=="__jolt_closure____home_index_1052__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;page="confirm";form.commit();problem.order().notifyProblem(problem);closure=null}if(!closureActive){var __jv__home_index_1054=!(takeTime>0);Jolt.inst.bindVariable(__jolt_blk___home_index_1033,"__jv__home_index_1054",__jv__home_index_1054)}Jolt.inst.popBlock()}}else{if(page=="confirm"){var __jolt_blk___home_index_1056=Jolt.inst.pushBlock("__home_index_1056");if(__jolt_blk___home_index_1056){var __jolt_blk___home_index_1058=Jolt.inst.pushBlock("__home_index_1058");if(__jolt_blk___home_index_1058){if((self.error_filters["eta_minutes_"+self.method])){var __jolt_blk___home_index_1059=Jolt.inst.pushBlock("__home_index_1059");if(__jolt_blk___home_index_1059){Jolt.inst.popBlock()}}else{if(!self.bounce_conditions.time){var __jolt_blk___home_index_1061=Jolt.inst.pushBlock("__home_index_1061");if(__jolt_blk___home_index_1061){Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1063=Jolt.inst.pushBlock("__home_index_1063");if(__jolt_blk___home_index_1063){Jolt.inst.popBlock()}}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{if(page=="later"){var __jolt_blk___home_index_1066=Jolt.inst.pushBlock("__home_index_1066");if(__jolt_blk___home_index_1066){Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1068=Jolt.inst.pushBlock("__home_index_1068");if(__jolt_blk___home_index_1068){Jolt.inst.popBlock()}}}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};Order.prototype.problem_too_long_ui=func___home_index_1028;Jolt.inst.registerPartial("Order.prototype.problem_too_long_ui",func___home_index_1028);var func___home_index_1071=function(){var self=this;var __jolt_blk___home_index_1071=Jolt.inst.pushBlock("__home_index_1071");if(__jolt_blk___home_index_1071){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var __jolt_yields=[];var __jolt_blk___home_index_1073=Jolt.inst.pushBlock("__home_index_1073");if(__jolt_blk___home_index_1073){var __define_struct___home_index_1073=Jolt.inst.currentDefinition();if(!__define_struct___home_index_1073){__define_struct___home_index_1073={};(function(){with(this){var _problem=new OrderProblem({db_parent:self});this["problem"]=_problem;var _problems=problem.problemOptions();this["problems"]=_problems}}).call(__define_struct___home_index_1073);Jolt.inst.registerDefinition(__define_struct___home_index_1073)}with(__define_struct___home_index_1073){var __jolt_blk___home_index_1077=Jolt.inst.pushBlock("__home_index_1077");if(__jolt_blk___home_index_1077){var retval___home_index_1077=(ui.form_for(problem))||0;for(var i___home_index_1077=0,len___home_index_1077=retval___home_index_1077.length;i___home_index_1077<len___home_index_1077;i___home_index_1077++){var item___home_index_1077=retval___home_index_1077[i___home_index_1077];var identifier___home_index_1077=item___home_index_1077[0];var yieldBlock___home_index_1077=item___home_index_1077.pop();switch(identifier___home_index_1077){case"default":Jolt.inst.pushActivateBlock(yieldBlock___home_index_1077);var __jolt_blk___home_index_1078=Jolt.inst.pushBlock("__home_index_1078");if(__jolt_blk___home_index_1078){var form=item___home_index_1077[0+1];var __jolt_blk___home_index_1080=Jolt.inst.pushBlock("__home_index_1080");if(__jolt_blk___home_index_1080){if((!problem.submitted)){var __jolt_blk___home_index_1081=Jolt.inst.pushBlock("__home_index_1081");if(__jolt_blk___home_index_1081){var __jolt_blk___home_index_1083=Jolt.inst.pushBlock("__home_index_1083");if(__jolt_blk___home_index_1083){var __define_struct___home_index_1083=Jolt.inst.currentDefinition();if(!__define_struct___home_index_1083){__define_struct___home_index_1083={node___home_index_1084:new SerializerNode,node_local___home_index_1084:new SerializerNode};__define_struct___home_index_1083.node_local___home_index_1084.connect(__define_struct___home_index_1083.node___home_index_1084);Jolt.inst.registerDefinition(__define_struct___home_index_1083)}with(__define_struct___home_index_1083){var __jolt_serializer____home_index_1084___original=form.code;var __jolt_serializer____home_index_1084___ui=__jolt_serializer____home_index_1084___original;var serializer_node___home_index_1084=null;if(__jolt_serializer____home_index_1084___original instanceof SerializerNode){serializer_node___home_index_1084=__jolt_serializer____home_index_1084___original;__jolt_serializer____home_index_1084___original=serializer_node___home_index_1084.consume();__jolt_serializer____home_index_1084___ui=__jolt_serializer____home_index_1084___original}if(node_local___home_index_1084.lastDataVal!=__jolt_serializer____home_index_1084___original){node_local___home_index_1084.lastDataVal=__jolt_serializer____home_index_1084___original;node_local___home_index_1084.write(__jolt_serializer____home_index_1084___ui)}ui.dropdown(problems,node___home_index_1084);if(node_local___home_index_1084.last!=node_local___home_index_1084.current){var __jolt_serializer____home_index_1084__=node_local___home_index_1084.consume();if(serializer_node___home_index_1084){serializer_node___home_index_1084.write(__jolt_serializer____home_index_1084__);node_local___home_index_1084.lastDataVal=__jolt_serializer____home_index_1084__}else{form.code=__jolt_serializer____home_index_1084__;node_local___home_index_1084.lastDataVal=form.code}}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1086=Jolt.inst.pushBlock("__home_index_1086");if(__jolt_blk___home_index_1086){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var uiString="problem_"+form.code+"_ui";var __jolt_blk___home_index_1090=Jolt.inst.pushBlock("__home_index_1090");if(__jolt_blk___home_index_1090){if((self[uiString])){var __jolt_blk___home_index_1091=Jolt.inst.pushBlock("__home_index_1091");if(__jolt_blk___home_index_1091){var __jolt_blk___home_index_1093=Jolt.inst.pushBlock("__home_index_1093");if(__jolt_blk___home_index_1093){self[uiString](form,problem);Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{if(valid(form.code)){var __jolt_blk___home_index_1095=Jolt.inst.pushBlock("__home_index_1095");if(__jolt_blk___home_index_1095){var __jolt_blk___home_index_1097=Jolt.inst.pushBlock("__home_index_1097");if(__jolt_blk___home_index_1097){self.problem_additional_ui(form,problem);Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1099=Jolt.inst.pushBlock("__home_index_1099");if(__jolt_blk___home_index_1099){Jolt.inst.popBlock()}}}Jolt.inst.popBlock()}var __jolt_blk___home_index_1101=Jolt.inst.pushBlock("__home_index_1101");if(__jolt_blk___home_index_1101){if((problem.submitted)){var __jolt_blk___home_index_1102=Jolt.inst.pushBlock("__home_index_1102");if(__jolt_blk___home_index_1102){if(closure=="__jolt_closure____home_index_1104__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;PopupManager.hide();closure=null}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1106=Jolt.inst.pushBlock("__home_index_1106");if(__jolt_blk___home_index_1106){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}Jolt.inst.popBlock();break}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};Order.prototype.problem_popup_ui=func___home_index_1071;Jolt.inst.registerPartial("Order.prototype.problem_popup_ui",func___home_index_1071);var func___home_index_1110=function(){var self=this;var __jolt_blk___home_index_1110=Jolt.inst.pushBlock("__home_index_1110");if(__jolt_blk___home_index_1110){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var liveStatus=arguments[0];var __jolt_yields=[];var __jolt_blk___home_index_1112=Jolt.inst.pushBlock("__home_index_1112");if(__jolt_blk___home_index_1112){if((liveStatus==Order.PLACED||liveStatus==Order.QUEUED||liveStatus==Order.PLACING)){var __jolt_blk___home_index_1113=Jolt.inst.pushBlock("__home_index_1113");if(__jolt_blk___home_index_1113){var __jolt_blk___home_index_1115=Jolt.inst.pushBlock("__home_index_1115");if(__jolt_blk___home_index_1115){self.feast_tracker_ui(liveStatus);Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1117=Jolt.inst.pushBlock("__home_index_1117");if(__jolt_blk___home_index_1117){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_1119=Jolt.inst.pushBlock("__home_index_1119");if(__jolt_blk___home_index_1119){if((liveStatus==Order.PLACED)){var __jolt_blk___home_index_1120=Jolt.inst.pushBlock("__home_index_1120");if(__jolt_blk___home_index_1120){var tt=self.getReadyTime();if(!closureActive){var __jv__home_index_1124=formatPrice(self.total_cost||self.calculatedTotal,false);Jolt.inst.bindVariable(__jolt_blk___home_index_1120,"__jv__home_index_1124",__jv__home_index_1124)}if(closure=="__jolt_closure____home_index_1126__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;self.dismiss();closure=null}if(!closureActive){var __jv__home_index_1128=when(self.method=="delivery","My order arrived","I picked up my order");Jolt.inst.bindVariable(__jolt_blk___home_index_1120,"__jv__home_index_1128",__jv__home_index_1128)}Jolt.inst.popBlock()}}else{if(liveStatus==Order.PROBLEM_PROCEED){var __jolt_blk___home_index_1130=Jolt.inst.pushBlock("__home_index_1130");if(__jolt_blk___home_index_1130){if(!closureActive){var __jv__home_index_1132=self.getErrorDesc();Jolt.inst.bindVariable(__jolt_blk___home_index_1130,"__jv__home_index_1132",__jv__home_index_1132)}if(!closureActive){var __jv__home_index_1134=self.getErrorQuestion();Jolt.inst.bindVariable(__jolt_blk___home_index_1130,"__jv__home_index_1134",__jv__home_index_1134)}var __jolt_blk___home_index_1136=Jolt.inst.pushBlock("__home_index_1136");if(__jolt_blk___home_index_1136){var __define_struct___home_index_1136=Jolt.inst.currentDefinition();if(!__define_struct___home_index_1136){__define_struct___home_index_1136={};(function(){with(this){var _loading=false;this["loading"]=_loading}}).call(__define_struct___home_index_1136);Jolt.inst.registerDefinition(__define_struct___home_index_1136)}with(__define_struct___home_index_1136){var __jolt_blk___home_index_1138=Jolt.inst.pushBlock("__home_index_1138");if(__jolt_blk___home_index_1138){if((!loading)){var __jolt_blk___home_index_1139=Jolt.inst.pushBlock("__home_index_1139");if(__jolt_blk___home_index_1139){var __jolt_blk___home_index_1141=Jolt.inst.pushBlock("__home_index_1141");if(__jolt_blk___home_index_1141){if((self.getError().dest_url)){var __jolt_blk___home_index_1142=Jolt.inst.pushBlock("__home_index_1142");if(__jolt_blk___home_index_1142){var dest_url=self.getError().dest_url;var __jolt_blk___home_index_1146=Jolt.inst.pushBlock("__home_index_1146");if(__jolt_blk___home_index_1146){if((dest_url=="confirm")){var __jolt_blk___home_index_1147=Jolt.inst.pushBlock("__home_index_1147");if(__jolt_blk___home_index_1147){if(closure=="__jolt_closure____home_index_1149__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;loading=true;self.confirmProblem();closure=null}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1151=Jolt.inst.pushBlock("__home_index_1151");if(__jolt_blk___home_index_1151){if(!closureActive){var __jv__home_index_1153=self.editPathTo(dest_url);Jolt.inst.bindVariable(__jolt_blk___home_index_1151,"__jv__home_index_1153",__jv__home_index_1153)}if(closure=="__jolt_closure____home_index_1155__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;var __abort_nav=false;if(!__abort_nav){Application.navigateTo((event.currentTarget?event.currentTarget.href:Event.findElement(event,"a")))}closure=null}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}if(closure=="__jolt_closure____home_index_1158__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;self.cancel();closure=null}if(!closureActive){var __jv__home_index_1160=self.editPathTo("active");Jolt.inst.bindVariable(__jolt_blk___home_index_1142,"__jv__home_index_1160",__jv__home_index_1160)}if(closure=="__jolt_closure____home_index_1162__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;var __abort_nav=false;if(!__abort_nav){Application.navigateTo((event.currentTarget?event.currentTarget.href:Event.findElement(event,"a")))}closure=null}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1164=Jolt.inst.pushBlock("__home_index_1164");if(__jolt_blk___home_index_1164){if(!closureActive){var __jv__home_index_1166=self.editPathTo("active");Jolt.inst.bindVariable(__jolt_blk___home_index_1164,"__jv__home_index_1166",__jv__home_index_1166)}if(closure=="__jolt_closure____home_index_1168__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;var __abort_nav=false;if(!__abort_nav){Application.navigateTo((event.currentTarget?event.currentTarget.href:Event.findElement(event,"a")))}closure=null}if(closure=="__jolt_closure____home_index_1170__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;self.cancel();closure=null}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1173=Jolt.inst.pushBlock("__home_index_1173");if(__jolt_blk___home_index_1173){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{if(liveStatus==Order.FAILED){var __jolt_blk___home_index_1176=Jolt.inst.pushBlock("__home_index_1176");if(__jolt_blk___home_index_1176){var url=Application.controllerUrl({controller:"restaurant",action:"index"});url+="#searchType="+(self.method=="delivery"?"delivers_to_me":"carryout")+"&sort=rating";if(!closureActive){var __jv__home_index_1180=self.isLive()?self.getErrorDesc():self.getErrorDescPastTense();Jolt.inst.bindVariable(__jolt_blk___home_index_1176,"__jv__home_index_1180",__jv__home_index_1180)}if(!closureActive){var __jv__home_index_1182=url;Jolt.inst.bindVariable(__jolt_blk___home_index_1176,"__jv__home_index_1182",__jv__home_index_1182)}if(closure=="__jolt_closure____home_index_1184__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;self.dismiss();self.save();DatabaseQuery.regenerate();var __abort_nav=false;if(!__abort_nav){Application.navigateTo((event.currentTarget?event.currentTarget.href:Event.findElement(event,"a")))}closure=null}Jolt.inst.popBlock()}}else{if(liveStatus==Order.QUEUED){var __jolt_blk___home_index_1186=Jolt.inst.pushBlock("__home_index_1186");if(__jolt_blk___home_index_1186){var __jolt_blk___home_index_1188=Jolt.inst.pushBlock("__home_index_1188");if(__jolt_blk___home_index_1188){if((!(Application.controller=="order"&&(Application.action=="thanks"||Application.action=="view")))){var __jolt_blk___home_index_1189=Jolt.inst.pushBlock("__home_index_1189");if(__jolt_blk___home_index_1189){if(!closureActive){var __jv__home_index_1191=self.viewPathTo();Jolt.inst.bindVariable(__jolt_blk___home_index_1189,"__jv__home_index_1191",__jv__home_index_1191)}if(closure=="__jolt_closure____home_index_1193__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;var __abort_nav=false;if(!__abort_nav){Application.navigateTo((event.currentTarget?event.currentTarget.href:Event.findElement(event,"a")))}closure=null}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1195=Jolt.inst.pushBlock("__home_index_1195");if(__jolt_blk___home_index_1195){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}if(closure=="__jolt_closure____home_index_1197__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;self.cancel();closure=null}Jolt.inst.popBlock()}}else{if(liveStatus==Order.PLACING){var __jolt_blk___home_index_1199=Jolt.inst.pushBlock("__home_index_1199");if(__jolt_blk___home_index_1199){Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1201=Jolt.inst.pushBlock("__home_index_1201");if(__jolt_blk___home_index_1201){Jolt.inst.popBlock()}}}}}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};Order.prototype.user_summary_active_body_ui=func___home_index_1110;Jolt.inst.registerPartial("Order.prototype.user_summary_active_body_ui",func___home_index_1110);var func___home_index_1204=function(){var self=this;var __jolt_blk___home_index_1204=Jolt.inst.pushBlock("__home_index_1204");if(__jolt_blk___home_index_1204){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var __jolt_yields=[];var liveStatus=self.liveStatus();var allowCollapse=!Breadcrumbs.findNode().alwaysExpandLiveOrders;var collapsed=allowCollapse&&self.collapsed();if(!closureActive){var __jv__home_index_1210=liveStatus;Jolt.inst.bindVariable(__jolt_blk___home_index_1204,"__jv__home_index_1210",__jv__home_index_1210)}var __jolt_blk___home_index_1212=Jolt.inst.pushBlock("__home_index_1212");if(__jolt_blk___home_index_1212){if((self.dismissable())){var __jolt_blk___home_index_1213=Jolt.inst.pushBlock("__home_index_1213");if(__jolt_blk___home_index_1213){if(closure=="__jolt_closure____home_index_1215__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;self.dismiss();closure=null}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1217=Jolt.inst.pushBlock("__home_index_1217");if(__jolt_blk___home_index_1217){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_1219=Jolt.inst.pushBlock("__home_index_1219");if(__jolt_blk___home_index_1219){if((allowCollapse)){var __jolt_blk___home_index_1220=Jolt.inst.pushBlock("__home_index_1220");if(__jolt_blk___home_index_1220){if(!closureActive){var __jv__home_index_1222=collapsed?"maximize":"minimize";Jolt.inst.bindVariable(__jolt_blk___home_index_1220,"__jv__home_index_1222",__jv__home_index_1222)}if(closure=="__jolt_closure____home_index_1224__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;self.toggleCollapsed();closure=null}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1226=Jolt.inst.pushBlock("__home_index_1226");if(__jolt_blk___home_index_1226){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}if(!closureActive){var __jv__home_index_1228=self.restaurant.name;Jolt.inst.bindVariable(__jolt_blk___home_index_1204,"__jv__home_index_1228",__jv__home_index_1228)}if(!closureActive){var __jv__home_index_1230=self.userFriendlyStatus(liveStatus);Jolt.inst.bindVariable(__jolt_blk___home_index_1204,"__jv__home_index_1230",__jv__home_index_1230)}var __jolt_blk___home_index_1232=Jolt.inst.pushBlock("__home_index_1232");if(__jolt_blk___home_index_1232){if((!collapsed)){var __jolt_blk___home_index_1233=Jolt.inst.pushBlock("__home_index_1233");if(__jolt_blk___home_index_1233){var __jolt_blk___home_index_1235=Jolt.inst.pushBlock("__home_index_1235");if(__jolt_blk___home_index_1235){if(!Jolt.inst.animationDefined("__home_index_1235")){__jolt_blk___home_index_1232.tickCounter=__jolt_blk___home_index_1232.tickCounter||Jolt.inst.currentTickCounter;Jolt.inst.registerAnimation("in","__home_index_1235",function(_rangeNode_,animFirstTime){return function(){var effect=null;var options___home_index_1315={afterSetupCallback:function(effect){if(effect.element){effect.element.setStyle("visibility: inherit")}},duration:0.2};for(var _self_=_rangeNode_.beginElement();_self_!=_rangeNode_.endElement();_self_=_self_.next()){if(_self_.nodeName!="SCRIPT"&&_self_.nodeName!="jolt:block"&&_self_.nodeName!="META"){if(animFirstTime&&!options___home_index_1315.initialPlay){options___home_index_1315.delay=0;options___home_index_1315.duration=0.01}options___home_index_1315.queue={scope:"__home_index_1235",position:"end"};var effect2=new Effect.BlindDown(_self_,options___home_index_1315);effect=effect||effect2}}return effect}}(Jolt.inst.currentBlockRangeNode(),__jolt_blk___home_index_1232.tickCounter==Jolt.inst.currentTickCounter));__jolt_blk___home_index_1232.tickCounter=__jolt_blk___home_index_1232.tickCounter||Jolt.inst.currentTickCounter;Jolt.inst.registerAnimation("out","__home_index_1235",function(_rangeNode_,animFirstTime){return function(){var effect=null;var options___home_index_1316={afterSetupCallback:function(effect){if(effect.element){effect.element.setStyle("visibility: inherit")}},duration:0.2};for(var _self_=_rangeNode_.beginElement();_self_!=_rangeNode_.endElement();_self_=_self_.next()){if(_self_.nodeName!="SCRIPT"&&_self_.nodeName!="jolt:block"&&_self_.nodeName!="META"){options___home_index_1316.revert=true;options___home_index_1316.queue={scope:"__home_index_1235",position:"end"};var effect2=new Effect.BlindUp(_self_,options___home_index_1316);effect=effect||effect2}}return effect}}(Jolt.inst.currentBlockRangeNode(),__jolt_blk___home_index_1232.tickCounter==Jolt.inst.currentTickCounter))}else{if(__jolt_blk___home_index_1235.parent.animatingOut){__jolt_blk___home_index_1235.parent.animatingOut=false;var old_in=__jolt_blk___home_index_1235.animations&&__jolt_blk___home_index_1235.animations.old_in;if(old_in){old_in()}else{Effect.Queues.get("__home_index_1235").each(function(x){x.cancel()})}}}var __jolt_blk___home_index_1237=Jolt.inst.pushBlock("__home_index_1237");if(__jolt_blk___home_index_1237){self.user_summary_active_body_ui(liveStatus);Jolt.inst.popBlock()}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1240=Jolt.inst.pushBlock("__home_index_1240");if(__jolt_blk___home_index_1240){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};Order.prototype.user_summary_ui=func___home_index_1204;Jolt.inst.registerPartial("Order.prototype.user_summary_ui",func___home_index_1204);var func___home_index_1243=function(){var self=this;var __jolt_blk___home_index_1243=Jolt.inst.pushBlock("__home_index_1243");if(__jolt_blk___home_index_1243){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var __jolt_yields=[];$d(Order).activeOrders=$d(Order).activeOrders||Database.query(function(item){if(item.type=="order"&&item.isLive()){var func=Breadcrumbs.findNode().showLiveOrders;if(typeof(func)!="function"||func(item)){return item}}});var orders=$d(Order).activeOrders;if(valid(Application.dynamic_params.order_info.order_alerts)){Order.loaded_active_orders=Order.loaded_active_orders||new Date().getTime();if(new Date().getTime()-Order.loaded_active_orders>(1).minutes()){Order.loaded_active_orders=new Date().getTime();Database.find("order/all-live-orders-user",{key:User.current().id()})}}var __jolt_blk___home_index_1247=Jolt.inst.pushBlock("__home_index_1247");if(__jolt_blk___home_index_1247){if((valid(orders))){var __jolt_blk___home_index_1248=Jolt.inst.pushBlock("__home_index_1248");if(__jolt_blk___home_index_1248){var __jolt_blk___home_index_1250=Jolt.inst.pushBlock("__home_index_1250");if(__jolt_blk___home_index_1250){if(!Jolt.inst.animationDefined("__home_index_1250")){__jolt_blk___home_index_1247.tickCounter=__jolt_blk___home_index_1247.tickCounter||Jolt.inst.currentTickCounter;Jolt.inst.registerAnimation("out","__home_index_1250",function(_rangeNode_,animFirstTime){return function(){var effect=null;var options___home_index_1317={afterSetupCallback:function(effect){if(effect.element){effect.element.setStyle("visibility: inherit")}},duration:0.3};for(var _self_=_rangeNode_.beginElement();_self_!=_rangeNode_.endElement();_self_=_self_.next()){if(_self_.nodeName!="SCRIPT"&&_self_.nodeName!="jolt:block"&&_self_.nodeName!="META"){options___home_index_1317.revert=true;options___home_index_1317.queue={scope:"__home_index_1250",position:"end"};var effect2=new Effect.Fade(_self_,options___home_index_1317);effect=effect||effect2}}return effect}}(Jolt.inst.currentBlockRangeNode(),__jolt_blk___home_index_1247.tickCounter==Jolt.inst.currentTickCounter))}else{if(__jolt_blk___home_index_1250.parent.animatingOut){__jolt_blk___home_index_1250.parent.animatingOut=false;var old_in=__jolt_blk___home_index_1250.animations&&__jolt_blk___home_index_1250.animations.old_in;if(old_in){old_in()}else{Effect.Queues.get("__home_index_1250").each(function(x){x.cancel()})}}}var __jolt_blk___home_index_1252=Jolt.inst.pushBlock("__home_index_1252");if(__jolt_blk___home_index_1252){Jolt.inst.callbackStore=Jolt.inst.closureActive?[]:__jolt_blk___home_index_1252.iteration;orders.each(Jolt.inst.iteratorCallback);var __collection___home_index_1252=Jolt.inst.callbackStore;for(var i___home_index_1252=0,len___home_index_1252=__collection___home_index_1252.length;i___home_index_1252<len___home_index_1252;i___home_index_1252++){var __el___home_index_1252=__collection___home_index_1252[i___home_index_1252];var order=__el___home_index_1252[0];var blockName___home_index_1252=(order.id());if(!Jolt.inst.closureActive){__jolt_blk___home_index_1252.iteratorScopes.push(blockName___home_index_1252)}var __jolt_blk___home_index_1253=Jolt.inst.pushBlock("__home_index_1253",blockName___home_index_1252);if(__jolt_blk___home_index_1253){var __jolt_blk___home_index_1257=Jolt.inst.pushBlock("__home_index_1257");if(__jolt_blk___home_index_1257){if(!Jolt.inst.animationDefined("__home_index_1257")){__jolt_blk___home_index_1252.tickCounter=__jolt_blk___home_index_1252.tickCounter||Jolt.inst.currentTickCounter;Jolt.inst.registerAnimation("out","__home_index_1257",function(_rangeNode_,animFirstTime){return function(){var effect=null;var options___home_index_1318={afterSetupCallback:function(effect){if(effect.element){effect.element.setStyle("visibility: inherit")}},duration:0.3};for(var _self_=_rangeNode_.beginElement();_self_!=_rangeNode_.endElement();_self_=_self_.next()){if(_self_.nodeName!="SCRIPT"&&_self_.nodeName!="jolt:block"&&_self_.nodeName!="META"){options___home_index_1318.revert=true;options___home_index_1318.queue={scope:"__home_index_1257",position:"end"};var effect2=new Effect.Fade(_self_,options___home_index_1318);effect=effect||effect2}}return effect}}(Jolt.inst.currentBlockRangeNode(),__jolt_blk___home_index_1252.tickCounter==Jolt.inst.currentTickCounter))}else{if(__jolt_blk___home_index_1257.parent.animatingOut){__jolt_blk___home_index_1257.parent.animatingOut=false;var old_in=__jolt_blk___home_index_1257.animations&&__jolt_blk___home_index_1257.animations.old_in;if(old_in){old_in()}else{Effect.Queues.get("__home_index_1257").each(function(x){x.cancel()})}}}var __jolt_blk___home_index_1259=Jolt.inst.pushBlock("__home_index_1259");if(__jolt_blk___home_index_1259){order.user_summary_ui();Jolt.inst.popBlock()}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1264=Jolt.inst.pushBlock("__home_index_1264");if(__jolt_blk___home_index_1264){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};Order.active_order_ui=func___home_index_1243;Jolt.inst.registerPartial("Order.active_order_ui",func___home_index_1243)};if(document.loaded){__toplevel_func___home_index_1267()}else{Jolt.inst.registerDomLoadedCallback(__toplevel_func___home_index_1267)}};window.scriptForNode_7=function(){Database.blocking=true;Restaurant.fetchCounts();Database.blocking=false;Database.registerBlockingWait(Jolt.inst.waitForSignalBeforeTick())};window.scriptForNode_8=function(){var __toplevel_func___home_index_533=function(){var data_graph___home_index_555={block:true,type:"toplevel",children:[{type:"partial",block:true,exclusive:true,partial_name:"ui.input.textarea",children:[{type:"content",content:"&lt;textarea class=&quot;__home_index_534&quot; &gt;&lt;/textarea&gt;"}],recordInParent:true,id:"__home_index_356"},{type:"partial",block:true,exclusive:true,partial_name:"ui.input.text",children:[{type:"content",content:"&lt;input class=&quot;__home_index_536&quot; type=&quot;text&quot; &gt;&lt;/input&gt;"}],recordInParent:true,id:"__home_index_361"},{type:"partial",block:true,exclusive:true,partial_name:"ui.input.checkbox",children:[{type:"content",content:"&lt;input class=&quot;__home_index_538&quot; type=&quot;checkbox&quot; &gt;&lt;/input&gt;"}],recordInParent:true,id:"__home_index_366"},{type:"partial",block:true,exclusive:true,partial_name:"ui.input.password",children:[{type:"content",content:"&lt;input class=&quot;__home_index_540&quot; type=&quot;password&quot; &gt;&lt;/input&gt;"}],recordInParent:true,id:"__home_index_371"},{type:"partial",block:true,exclusive:true,partial_name:"ui.notice",children:[{type:"define_2",block:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"animate",block:true,children:[{type:"content",content:"&lt;div class=&quot;__home_index_542&quot; &gt;\n\t\t\t\t\t"},{type:"yield",block:true,children:[],id:"__home_index_389"},{type:"content",content:"&lt;/div&gt;\n\t\t\t"}],hidden:true,id:"__home_index_385"}],hidden:true,recordInParent:true,id:"__home_index_383"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_392"}],id:"__home_index_382"}],hidden:true,id:"__home_index_378"}],recordInParent:true,id:"__home_index_376"},{type:"partial",block:true,exclusive:true,partial_name:"ui.lightview_naked",children:[{type:"define_2",block:true,children:[{type:"content",content:"&lt;div style=&quot;display:none&quot; &gt;\n\t\t\t &lt;div class=&quot;__home_index_543&quot; &gt;\n\t\t\t\t"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_401"},{type:"content",content:"&lt;/div&gt;\n\t\t&lt;/div&gt;\n\t\t"},{type:"once",block:true,children:[],hidden:true,id:"__home_index_403"}],hidden:true,id:"__home_index_397"}],recordInParent:true,id:"__home_index_395"},{type:"partial",block:true,exclusive:true,partial_name:"ui.lightview",children:[{type:"define_2",block:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"define_2",block:true,children:[{type:"content",content:"&lt;div style=&quot;display:none&quot; &gt;\n\t\t\t\t &lt;div class=&quot;__home_index_544&quot; &gt;\n\t\t\t\t\t"},{type:"yield",block:true,children:[],id:"__home_index_423"},{type:"content",content:"&lt;/div&gt;\n\t\t\t&lt;/div&gt;\n\t\t\t"},{type:"once",block:true,children:[],hidden:true,id:"__home_index_425"}],hidden:true,id:"__home_index_419"}],hidden:true,recordInParent:true,id:"__home_index_415"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_427"}],id:"__home_index_414"}],hidden:true,id:"__home_index_408"}],recordInParent:true,id:"__home_index_406"},{type:"partial",block:true,exclusive:true,partial_name:"ui.radiobuttongroup",children:[{type:"define",block:true,children:[],hidden:true,id:"__home_index_432"}],recordInParent:true,id:"__home_index_430"},{type:"partial",block:true,exclusive:true,partial_name:"ui.simple_input",children:[{type:"content",content:"&lt;input class=&quot;__home_index_545&quot; &gt;&lt;/input&gt;"}],recordInParent:true,id:"__home_index_438"},{type:"partial",block:true,exclusive:true,partial_name:"ui.dropdown",children:[{type:"define",block:true,children:[{type:"content",content:"&lt;select class=&quot;__home_index_547&quot; &gt;&lt;/select&gt;"},{type:"once",block:true,children:[],hidden:true,id:"__home_index_465"}],hidden:true,id:"__home_index_451"}],recordInParent:true,id:"__home_index_449"},{type:"partial",block:true,exclusive:true,partial_name:"ui.error_icon_tooltip",children:[{type:"content",content:"&lt;span class=&quot;bad_item_container&quot; &gt;\n\t\t\t&lt;a href=&quot;#help&quot; class=&quot;tooltip __home_index_549&quot; &gt;\n\t\t\t\t&lt;span class=&quot;food_warning&quot; &gt;!&lt;/span&gt;\n\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div class=&quot;tooltip_contents&quot; &gt;\n\t\t\t\t\t\t"},{type:"yield",block:true,children:[],id:"__home_index_478"},{type:"content",content:"&lt;/div&gt;\n\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_476"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_480"}],id:"__home_index_475"},{type:"content",content:"&lt;/a&gt;\n\t\t&lt;/span&gt;\n\t"}],recordInParent:true,id:"__home_index_469"},{type:"partial",block:true,exclusive:true,partial_name:"ui.inline_edit",children:[{type:"define_2",block:true,children:[{type:"content",content:"&lt;div class=&quot;__home_index_550&quot; style=&quot;position:relative; z-index: 3000&quot; &gt;\n\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\t&lt;span class=&quot;__home_index_554&quot; &gt;\u00a0&lt;/span&gt;\n\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_500"},{type:"else",block:true,exclusive:true,children:[{type:"yield",block:true,children:[],id:"__home_index_506"}],hidden:true,recordInParent:true,id:"__home_index_504"}],id:"__home_index_499"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"once",block:true,children:[],hidden:true,id:"__home_index_512"},{type:"content",content:"&lt;div class=&quot;__home_index_551&quot; &gt;\n\t\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div class=&quot;ie_close_button __home_index_553&quot; &gt;\n\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_517"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_521"}],id:"__home_index_516"},{type:"content",content:"&lt;div class=&quot;content_region&quot; &gt;\n\t\t\t\t\t\t"},{type:"yield",block:true,children:[],id:"__home_index_523"},{type:"content",content:"&lt;/div&gt;\n\t\t\t\t&lt;/div&gt;\n\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_510"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_527"}],id:"__home_index_509"},{type:"content",content:"&lt;/div&gt;\n\t"}],hidden:true,id:"__home_index_485"}],recordInParent:true,id:"__home_index_483"}],id:"__home_index_354"};Jolt.inst.registerDataGraph(data_graph___home_index_555);var dom_node_hash___home_index_556={__home_index_543:{variable_attributes:{id:{variables:["__jv__home_index_399"],template:"__jv__home_index_399"}}},__home_index_554:{variable_content:"__jv__home_index_502"},__home_index_544:{variable_attributes:{id:{variables:["__jv__home_index_421"],template:"__jv__home_index_421"}}},__home_index_534:{var_binding:"var___home_index_535"},__home_index_545:{variable_attributes:{"class":{variables:["__jv__home_index_444"],template:"__jv__home_index_444"},type:{variables:["__jv__home_index_440"],template:"__jv__home_index_440"}},var_binding:"var___home_index_546",serializers:{value:"__jolt_serializer____home_index_442__"}},__home_index_536:{var_binding:"var___home_index_537"},__home_index_547:{variable_attributes:{"class":{variables:["__jv__home_index_461"],template:"__jv__home_index_461"},disabled:{variables:["__jv__home_index_459"],template:"__jv__home_index_459"}},var_binding:"var___home_index_548",closures:{keydown:"__jolt_closure____home_index_455__",change:"__jolt_closure____home_index_457__"}},__home_index_538:{var_binding:"var___home_index_539"},__home_index_549:{closures:{mouseout:"__jolt_closure____home_index_471__",mouseover:"__jolt_closure____home_index_473__"}},__home_index_550:{variable_attributes:{"class":{variables:["__jv__home_index_495"],template:"__jv__home_index_495"}},closures:{click:"__jolt_closure____home_index_497__"}},__home_index_540:{var_binding:"var___home_index_541"},__home_index_551:{variable_attributes:{"class":{variables:["__jv__home_index_514"],template:"inline_edit_contents __jv__home_index_514"}},var_binding:"var___home_index_552"},__home_index_542:{closures:{click:"__jolt_closure____home_index_387__"}},__home_index_553:{closures:{click:"__jolt_closure____home_index_519__"}}};Jolt.inst.registerDomNodeHash(dom_node_hash___home_index_556);var func___home_index_356=function(){var self=this;var __jolt_blk___home_index_356=Jolt.inst.pushBlock("__home_index_356");if(__jolt_blk___home_index_356){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var options=arguments[0];var __jolt_yields=[];var input=__jolt_blk___home_index_356.variableBindings.var___home_index_535;Jolt.inst.bindAttributes(input,options,ui.input.attributeTypes.textarea,__jolt_yields);options.input=input;Jolt.inst.popBlock()}return __jolt_yields};ui.input.textarea=func___home_index_356;Jolt.inst.registerPartial("ui.input.textarea",func___home_index_356);var func___home_index_361=function(){var self=this;var __jolt_blk___home_index_361=Jolt.inst.pushBlock("__home_index_361");if(__jolt_blk___home_index_361){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var options=arguments[0];var __jolt_yields=[];var input=__jolt_blk___home_index_361.variableBindings.var___home_index_537;Jolt.inst.bindAttributes(input,options,ui.input.attributeTypes.text,__jolt_yields);options.input=input;Jolt.inst.popBlock()}return __jolt_yields};ui.input.text=func___home_index_361;Jolt.inst.registerPartial("ui.input.text",func___home_index_361);var func___home_index_366=function(){var self=this;var __jolt_blk___home_index_366=Jolt.inst.pushBlock("__home_index_366");if(__jolt_blk___home_index_366){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var options=arguments[0];var __jolt_yields=[];var input=__jolt_blk___home_index_366.variableBindings.var___home_index_539;Jolt.inst.bindAttributes(input,options,ui.input.attributeTypes.checkbox,__jolt_yields);options.input=input;Jolt.inst.popBlock()}return __jolt_yields};ui.input.checkbox=func___home_index_366;Jolt.inst.registerPartial("ui.input.checkbox",func___home_index_366);var func___home_index_371=function(){var self=this;var __jolt_blk___home_index_371=Jolt.inst.pushBlock("__home_index_371");if(__jolt_blk___home_index_371){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var options=arguments[0];var __jolt_yields=[];var input=__jolt_blk___home_index_371.variableBindings.var___home_index_541;Jolt.inst.bindAttributes(input,options,ui.input.attributeTypes.password,__jolt_yields);options.input=input;Jolt.inst.popBlock()}return __jolt_yields};ui.input.password=func___home_index_371;Jolt.inst.registerPartial("ui.input.password",func___home_index_371);var func___home_index_376=function(){var self=this;var __jolt_blk___home_index_376=Jolt.inst.pushBlock("__home_index_376");if(__jolt_blk___home_index_376){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var duration=arguments[0];var should=arguments[1];var __jolt_yields=[];var __jolt_blk___home_index_378=Jolt.inst.pushBlock("__home_index_378");if(__jolt_blk___home_index_378){var __define_struct___home_index_378=Jolt.inst.currentDefinition();if(!__define_struct___home_index_378){__define_struct___home_index_378={};(function(){with(this){var _startTime=new Date().getTime();this["startTime"]=_startTime}}).call(__define_struct___home_index_378);Jolt.inst.registerDefinition(__define_struct___home_index_378)}with(__define_struct___home_index_378){var doIt=typeof(should)=="undefined"?true:should;var exec=false;if(doIt&&startTime&&(new Date().getTime())-startTime<duration){exec=true}else{startTime=0}var __jolt_blk___home_index_382=Jolt.inst.pushBlock("__home_index_382");if(__jolt_blk___home_index_382){if((exec)){var __jolt_blk___home_index_383=Jolt.inst.pushBlock("__home_index_383");if(__jolt_blk___home_index_383){var __jolt_blk___home_index_385=Jolt.inst.pushBlock("__home_index_385");if(__jolt_blk___home_index_385){if(!Jolt.inst.animationDefined("__home_index_385")){__jolt_blk___home_index_382.tickCounter=__jolt_blk___home_index_382.tickCounter||Jolt.inst.currentTickCounter;Jolt.inst.registerAnimation("in","__home_index_385",function(_rangeNode_,animFirstTime){return function(){var effect=null;var options___home_index_557={afterSetupCallback:function(effect){if(effect.element){effect.element.setStyle("visibility: inherit")}},from:0,duration:0.5,initialPlay:true};for(var _self_=_rangeNode_.beginElement();_self_!=_rangeNode_.endElement();_self_=_self_.next()){if(_self_.nodeName!="SCRIPT"&&_self_.nodeName!="jolt:block"&&_self_.nodeName!="META"){if(animFirstTime&&!options___home_index_557.initialPlay){options___home_index_557.delay=0;options___home_index_557.duration=0.01}options___home_index_557.queue={scope:"__home_index_385",position:"end"};var effect2=new Effect.Appear(_self_,options___home_index_557);effect=effect||effect2}}return effect}}(Jolt.inst.currentBlockRangeNode(),__jolt_blk___home_index_382.tickCounter==Jolt.inst.currentTickCounter));__jolt_blk___home_index_382.tickCounter=__jolt_blk___home_index_382.tickCounter||Jolt.inst.currentTickCounter;Jolt.inst.registerAnimation("out","__home_index_385",function(_rangeNode_,animFirstTime){return function(){var effect=null;var options___home_index_558={afterSetupCallback:function(effect){if(effect.element){effect.element.setStyle("visibility: inherit")}},duration:0.5};for(var _self_=_rangeNode_.beginElement();_self_!=_rangeNode_.endElement();_self_=_self_.next()){if(_self_.nodeName!="SCRIPT"&&_self_.nodeName!="jolt:block"&&_self_.nodeName!="META"){options___home_index_558.revert=true;options___home_index_558.queue={scope:"__home_index_385",position:"end"};var effect2=new Effect.Fade(_self_,options___home_index_558);effect=effect||effect2}}return effect}}(Jolt.inst.currentBlockRangeNode(),__jolt_blk___home_index_382.tickCounter==Jolt.inst.currentTickCounter))}else{if(__jolt_blk___home_index_385.parent.animatingOut){__jolt_blk___home_index_385.parent.animatingOut=false;var old_in=__jolt_blk___home_index_385.animations&&__jolt_blk___home_index_385.animations.old_in;if(old_in){old_in()}else{Effect.Queues.get("__home_index_385").each(function(x){x.cancel()})}}}if(closure=="__jolt_closure____home_index_387__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;event.stop();startTime=0;closure=null}var __jolt_blk___home_index_389=Jolt.inst.pushBlock("__home_index_389");if(__jolt_blk___home_index_389){var args___home_index_389=["default",__jolt_blk___home_index_389];__jolt_yields.push(args___home_index_389);Jolt.inst.popBlock()}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_392=Jolt.inst.pushBlock("__home_index_392");if(__jolt_blk___home_index_392){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};ui.notice=func___home_index_376;Jolt.inst.registerPartial("ui.notice",func___home_index_376);var func___home_index_395=function(){var self=this;var __jolt_blk___home_index_395=Jolt.inst.pushBlock("__home_index_395");if(__jolt_blk___home_index_395){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var proc=arguments[0];var options=arguments[1];var __jolt_yields=[];var __jolt_blk___home_index_397=Jolt.inst.pushBlock("__home_index_397");if(__jolt_blk___home_index_397){var __define_struct___home_index_397=Jolt.inst.currentDefinition();if(!__define_struct___home_index_397){__define_struct___home_index_397={};(function(){with(this){var _id=Marshal.uniqueId();this["id"]=_id}}).call(__define_struct___home_index_397);Jolt.inst.registerDefinition(__define_struct___home_index_397)}with(__define_struct___home_index_397){if(!closureActive){var __jv__home_index_399=id;Jolt.inst.bindVariable(__jolt_blk___home_index_397,"__jv__home_index_399",__jv__home_index_399)}var __jolt_blk___home_index_401=Jolt.inst.pushBlock("__home_index_401");if(__jolt_blk___home_index_401){proc();Jolt.inst.popBlock()}var __jolt_blk___home_index_403=Jolt.inst.pushBlock("__home_index_403");if(__jolt_blk___home_index_403){if(!Jolt.inst.executedOnce()){Jolt.inst.markExecutedOnce();Lightview.show({href:"#"+id,title:(options&&options.title)||"",options:$merge({width:(options&&options.width)||700,height:(options&&options.height)||300},options)});document.observe("lightview:hidden",function(event){if(options&&options.hideCallback){options.hideCallback()}})}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};ui.lightview_naked=func___home_index_395;Jolt.inst.registerPartial("ui.lightview_naked",func___home_index_395);var func___home_index_406=function(){var self=this;var __jolt_blk___home_index_406=Jolt.inst.pushBlock("__home_index_406");if(__jolt_blk___home_index_406){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var show=arguments[0];var options=arguments[1];var __jolt_yields=[];var __jolt_blk___home_index_408=Jolt.inst.pushBlock("__home_index_408");if(__jolt_blk___home_index_408){var __define_struct___home_index_408=Jolt.inst.currentDefinition();if(!__define_struct___home_index_408){__define_struct___home_index_408={};(function(){with(this){var _wasShowing=show;this["wasShowing"]=_wasShowing;var _dismissed=false;this["dismissed"]=_dismissed}}).call(__define_struct___home_index_408);Jolt.inst.registerDefinition(__define_struct___home_index_408)}with(__define_struct___home_index_408){if(wasShowing!=show){if(!show){if(!dismissed){dismissed=true;Lightview.hide()}}else{dismissed=false}wasShowing=show}var __jolt_blk___home_index_414=Jolt.inst.pushBlock("__home_index_414");if(__jolt_blk___home_index_414){if((show&&!dismissed)){var __jolt_blk___home_index_415=Jolt.inst.pushBlock("__home_index_415");if(__jolt_blk___home_index_415){wasShowing=true;var __jolt_blk___home_index_419=Jolt.inst.pushBlock("__home_index_419");if(__jolt_blk___home_index_419){var __define_struct___home_index_419=Jolt.inst.currentDefinition();if(!__define_struct___home_index_419){__define_struct___home_index_419={};(function(){with(this){var _id=Marshal.uniqueId();this["id"]=_id}}).call(__define_struct___home_index_419);Jolt.inst.registerDefinition(__define_struct___home_index_419)}with(__define_struct___home_index_419){if(!closureActive){var __jv__home_index_421=id;Jolt.inst.bindVariable(__jolt_blk___home_index_419,"__jv__home_index_421",__jv__home_index_421)}var __jolt_blk___home_index_423=Jolt.inst.pushBlock("__home_index_423");if(__jolt_blk___home_index_423){var args___home_index_423=["default",__jolt_blk___home_index_423];__jolt_yields.push(args___home_index_423);Jolt.inst.popBlock()}var __jolt_blk___home_index_425=Jolt.inst.pushBlock("__home_index_425");if(__jolt_blk___home_index_425){if(!Jolt.inst.executedOnce()){Jolt.inst.markExecutedOnce();Lightview.show({href:"#"+id,title:(options&&options.title)||"",options:{width:(options&&options.width)||700,height:(options&&options.height)||300}});document.observe("lightview:hidden",function(event){if(options&&options.hideCallback){options.hideCallback()}dismissed=true})}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_427=Jolt.inst.pushBlock("__home_index_427");if(__jolt_blk___home_index_427){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};ui.lightview=func___home_index_406;Jolt.inst.registerPartial("ui.lightview",func___home_index_406);var func___home_index_430=function(){var self=this;var __jolt_blk___home_index_430=Jolt.inst.pushBlock("__home_index_430");if(__jolt_blk___home_index_430){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var groupName=arguments[0];var serializer=arguments[1];var __jolt_yields=[];var __jolt_blk___home_index_432=Jolt.inst.pushBlock("__home_index_432");if(__jolt_blk___home_index_432){var __define_struct___home_index_432=Jolt.inst.currentDefinition();if(!__define_struct___home_index_432){__define_struct___home_index_432={radioUI:null,nodes:null,lastData:null};for(var key___home_index_432 in __define_struct___home_index_432){var val___home_index_432=__define_struct___home_index_432[key___home_index_432];if(typeof(val___home_index_432)=="function"){__define_struct___home_index_432[key___home_index_432]=(function(struct,func){return function(){return func.apply(struct,arguments)}})(__define_struct___home_index_432,val___home_index_432)}}Jolt.inst.registerDefinition(__define_struct___home_index_432)}with(__define_struct___home_index_432){if(!nodes||nodes.length==0){nodes=$$("[name='"+groupName+"']")}if(serializer.current!=lastData){var currentData=serializer.consume();lastData=currentData;if(radioUI!=currentData){radioUI=currentData;for(var i=0,len=nodes.length;i<len;i++){var node=nodes[i];var checkState=(node.value==currentData);if(node.checked!=checkState){node.checked=checkState}}}}else{var currentValue;for(var i=0,len=nodes.length;i<len;i++){var node=nodes[i];if(node.checked){currentValue=node.value;break}}if(currentValue!=radioUI){radioUI=currentValue;serializer.write(currentValue)}}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};ui.radiobuttongroup=func___home_index_430;Jolt.inst.registerPartial("ui.radiobuttongroup",func___home_index_430);var func___home_index_438=function(){var self=this;var __jolt_blk___home_index_438=Jolt.inst.pushBlock("__home_index_438");if(__jolt_blk___home_index_438){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var serializer=arguments[0];var options=arguments[1];var __jolt_yields=[];var inputField=__jolt_blk___home_index_438.variableBindings.var___home_index_546;if(!closureActive){var __jv__home_index_440=(options&&options.type?options.type:"text");Jolt.inst.bindVariable(__jolt_blk___home_index_438,"__jv__home_index_440",__jv__home_index_440)}if(!closureActive){var __jolt_serializer____home_index_442___original=serializer;var serializer_node___home_index_442=null;if(__jolt_serializer____home_index_442___original instanceof SerializerNode){serializer_node___home_index_442=__jolt_serializer____home_index_442___original;__jolt_serializer____home_index_442___original=serializer_node___home_index_442.consume()}var __jolt_serializer____home_index_442___ui=null;var record___jolt_serializer____home_index_442__=Jolt.inst.serialize(__jolt_blk___home_index_438,"__jolt_serializer____home_index_442__",__jolt_serializer____home_index_442___original,__jolt_serializer____home_index_442___ui);if(record___jolt_serializer____home_index_442__){var __jolt_serializer____home_index_442__=record___jolt_serializer____home_index_442__.lastUiVal;if(serializer_node___home_index_442){serializer_node___home_index_442.write(__jolt_serializer____home_index_442__);record___jolt_serializer____home_index_442__.lastDataVal=__jolt_serializer____home_index_442__}else{serializer=__jolt_serializer____home_index_442__;record___jolt_serializer____home_index_442__.lastDataVal=(serializer)}}}if(!closureActive){var __jv__home_index_444=options&&options.className;Jolt.inst.bindVariable(__jolt_blk___home_index_438,"__jv__home_index_444",__jv__home_index_444)}if(inputField){if(options&&options.highlightField){focusInput(inputField)}}Jolt.inst.popBlock()}return __jolt_yields};ui.simple_input=func___home_index_438;Jolt.inst.registerPartial("ui.simple_input",func___home_index_438);var func___home_index_449=function(){var self=this;var __jolt_blk___home_index_449=Jolt.inst.pushBlock("__home_index_449");if(__jolt_blk___home_index_449){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var items=arguments[0];var serializer=arguments[1];var options=arguments[2];var __jolt_yields=[];var __jolt_blk___home_index_451=Jolt.inst.pushBlock("__home_index_451");if(__jolt_blk___home_index_451){var __define_struct___home_index_451=Jolt.inst.currentDefinition();if(!__define_struct___home_index_451){__define_struct___home_index_451={lastData:null,liveBind:false,modifying:0};for(var key___home_index_451 in __define_struct___home_index_451){var val___home_index_451=__define_struct___home_index_451[key___home_index_451];if(typeof(val___home_index_451)=="function"){__define_struct___home_index_451[key___home_index_451]=(function(struct,func){return function(){return func.apply(struct,arguments)}})(__define_struct___home_index_451,val___home_index_451)}}Jolt.inst.registerDefinition(__define_struct___home_index_451)}with(__define_struct___home_index_451){var input=__jolt_blk___home_index_451.variableBindings.var___home_index_548;var uiChanged=false;if(closure=="__jolt_closure____home_index_455__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;if(true){liveBind=true}closure=null}if(closure=="__jolt_closure____home_index_457__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;uiChanged=true;serializer.write(event.element().value);closure=null}if(!closureActive){var __jv__home_index_459=options&&options.disabled?"true":"";Jolt.inst.bindVariable(__jolt_blk___home_index_451,"__jv__home_index_459",__jv__home_index_459)}if(!closureActive){var __jv__home_index_461=options?options.classes:"";Jolt.inst.bindVariable(__jolt_blk___home_index_451,"__jv__home_index_461",__jv__home_index_461)}var options=input.options;var addCount=items.length-options.length;var selectedIndex=input.selectedIndex;if(addCount>0){for(var i=options.length;i<items.length;i++){var item=items[i];var option=document.createElement("option");option.text=item.name||item;option.value=item.value||item;try{input.add(option,null)}catch(err){input.add(option)}}if(addCount==items.length){if(serializer.current==lastData){serializer.write(options[input.selectedIndex].value);modifying=2}}}else{if(addCount<0){for(var i=options.length-1;i>=items.length;i--){liveBind=true;input.remove(i)}}}var rebindIndex=(addCount>0?items.length-addCount:items.length);for(var i=0;i<rebindIndex;i++){var item=items[i];var option=options[i];var newText=item.name||item;if(newText!=option.text){option.text=newText}var newValue=item.value||item;if(newValue!=option.value){option.value=newValue;if(selectedIndex==i){input.value=newValue;serializer.write(newValue);modifying=2}}}var found=false;for(var i=0,len=options.length;i<len;i++){if(options[i].value==serializer.current){found=true;break}}if(!found){serializer.last=null;serializer.write(options[input.selectedIndex].value);modifying=2}var wroteFromData=false;if(modifying==0){if(!liveBind&&!uiChanged&&serializer.current!=lastData){var currentData=serializer.consume();lastData=currentData;input.value=currentData;wroteFromData=true}else{if(liveBind&&!closureActive){liveBind=false;serializer.write(input.value)}}}else{--modifying}var __jolt_blk___home_index_465=Jolt.inst.pushBlock("__home_index_465");if(__jolt_blk___home_index_465){if(!Jolt.inst.executedOnce()){Jolt.inst.markExecutedOnce();if(!wroteFromData){liveBind=true}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};ui.dropdown=func___home_index_449;Jolt.inst.registerPartial("ui.dropdown",func___home_index_449);var func___home_index_469=function(){var self=this;var __jolt_blk___home_index_469=Jolt.inst.pushBlock("__home_index_469");if(__jolt_blk___home_index_469){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var item=arguments[0];var __jolt_yields=[];if(closure=="__jolt_closure____home_index_471__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;item.__bad_hover=false;closure=null}if(closure=="__jolt_closure____home_index_473__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;item.__bad_hover=true;closure=null}var __jolt_blk___home_index_475=Jolt.inst.pushBlock("__home_index_475");if(__jolt_blk___home_index_475){if((item.__bad_hover)){var __jolt_blk___home_index_476=Jolt.inst.pushBlock("__home_index_476");if(__jolt_blk___home_index_476){var __jolt_blk___home_index_478=Jolt.inst.pushBlock("__home_index_478");if(__jolt_blk___home_index_478){var args___home_index_478=["default",__jolt_blk___home_index_478];__jolt_yields.push(args___home_index_478);Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_480=Jolt.inst.pushBlock("__home_index_480");if(__jolt_blk___home_index_480){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};ui.error_icon_tooltip=func___home_index_469;Jolt.inst.registerPartial("ui.error_icon_tooltip",func___home_index_469);var func___home_index_483=function(){var self=this;var __jolt_blk___home_index_483=Jolt.inst.pushBlock("__home_index_483");if(__jolt_blk___home_index_483){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var label=arguments[0];var options=arguments[1];var __jolt_yields=[];var __jolt_blk___home_index_485=Jolt.inst.pushBlock("__home_index_485");if(__jolt_blk___home_index_485){var __define_struct___home_index_485=Jolt.inst.currentDefinition();if(!__define_struct___home_index_485){__define_struct___home_index_485={};(function(){with(this){var _data={showing:false};this["data"]=_data;var _inlineContent=null;this["inlineContent"]=_inlineContent;var _overlay=null;this["overlay"]=_overlay;var _hide=function(){data.showing=false};this["hide"]=_hide;var _linkClick=function(event){if((!options||!options.noLinkClick)&&(!inlineContent||!event.target.descendantOf($(inlineContent)))){data.showing=true}};this["linkClick"]=_linkClick}}).call(__define_struct___home_index_485);Jolt.inst.registerDefinition(__define_struct___home_index_485)}with(__define_struct___home_index_485){if(!closureActive){var __jv__home_index_495=options&&options.link_class?options.link_class:"fake_link";Jolt.inst.bindVariable(__jolt_blk___home_index_485,"__jv__home_index_495",__jv__home_index_495)}if(closure=="__jolt_closure____home_index_497__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;linkClick(event);event.stop();closure=null}var __jolt_blk___home_index_499=Jolt.inst.pushBlock("__home_index_499");if(__jolt_blk___home_index_499){if((label)){var __jolt_blk___home_index_500=Jolt.inst.pushBlock("__home_index_500");if(__jolt_blk___home_index_500){if(!closureActive){var __jv__home_index_502=label;Jolt.inst.bindVariable(__jolt_blk___home_index_500,"__jv__home_index_502",__jv__home_index_502)}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_504=Jolt.inst.pushBlock("__home_index_504");if(__jolt_blk___home_index_504){var __jolt_blk___home_index_506=Jolt.inst.pushBlock("__home_index_506");if(__jolt_blk___home_index_506){var args___home_index_506=["link",data,__jolt_blk___home_index_506];__jolt_yields.push(args___home_index_506);Jolt.inst.popBlock()}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_509=Jolt.inst.pushBlock("__home_index_509");if(__jolt_blk___home_index_509){if((data.showing)){var __jolt_blk___home_index_510=Jolt.inst.pushBlock("__home_index_510");if(__jolt_blk___home_index_510){var myInlineContent=__jolt_blk___home_index_510.variableBindings.var___home_index_552;var __jolt_blk___home_index_512=Jolt.inst.pushBlock("__home_index_512");if(__jolt_blk___home_index_512){if(!Jolt.inst.executedOnce()){Jolt.inst.markExecutedOnce();if(!Prototype.Browser.IE){overlay=new Element("div",{"class":"inline_content_overlay",style:"opacity:0.0"});$(document.body).insert({top:overlay});$(overlay).observe("click",hide)}}Jolt.inst.popBlock()}if(!closureActive){var __jv__home_index_514=options&&options.content_class;Jolt.inst.bindVariable(__jolt_blk___home_index_510,"__jv__home_index_514",__jv__home_index_514)}var __jolt_blk___home_index_516=Jolt.inst.pushBlock("__home_index_516");if(__jolt_blk___home_index_516){if((Prototype.Browser.IE)){var __jolt_blk___home_index_517=Jolt.inst.pushBlock("__home_index_517");if(__jolt_blk___home_index_517){if(closure=="__jolt_closure____home_index_519__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;hide();closure=null}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_521=Jolt.inst.pushBlock("__home_index_521");if(__jolt_blk___home_index_521){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_523=Jolt.inst.pushBlock("__home_index_523");if(__jolt_blk___home_index_523){var args___home_index_523=["default",data,__jolt_blk___home_index_523];__jolt_yields.push(args___home_index_523);Jolt.inst.popBlock()}inlineContent=myInlineContent;Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_527=Jolt.inst.pushBlock("__home_index_527");if(__jolt_blk___home_index_527){if(overlay){$(overlay).stopObserving("click",hide);$(overlay).remove();overlay=null}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};ui.inline_edit=func___home_index_483;Jolt.inst.registerPartial("ui.inline_edit",func___home_index_483)};if(document.loaded){__toplevel_func___home_index_533()}else{Jolt.inst.registerDomLoadedCallback(__toplevel_func___home_index_533)}};window.scriptForNode_9=function(){var __toplevel_func___home_index_584=function(){var data_graph___home_index_585={block:true,type:"toplevel",children:[{type:"content",content:"&lt;!-- \n\t  options:\n\t    {\n\t      fieldName: string\n\t      emptyString: string (default is fieldName)\n\t      className: string (css class)\n\t      isPassword: bool\n\t\t\tisTextArea: bool\n\t    }\n\t//--&gt;"},{type:"partial",block:true,exclusive:true,partial_name:"ui.text_input_hint",children:[{type:"define_2",block:true,children:[{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_575"}],hidden:true,id:"__home_index_563"}],recordInParent:true,id:"__home_index_561"}],id:"__home_index_559"};Jolt.inst.registerDataGraph(data_graph___home_index_585);var dom_node_hash___home_index_586={};Jolt.inst.registerDomNodeHash(dom_node_hash___home_index_586);var func___home_index_561=function(){var self=this;var __jolt_blk___home_index_561=Jolt.inst.pushBlock("__home_index_561");if(__jolt_blk___home_index_561){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var fieldName=arguments[0];var serializer=arguments[1];var options=arguments[2];var __jolt_yields=[];var __jolt_blk___home_index_563=Jolt.inst.pushBlock("__home_index_563");if(__jolt_blk___home_index_563){var __define_struct___home_index_563=Jolt.inst.currentDefinition();if(!__define_struct___home_index_563){__define_struct___home_index_563={};(function(){with(this){var _serializerIntermediate=new SerializerNode(serializer);this["serializerIntermediate"]=_serializerIntermediate;var _emptyString=(options&&options.emptyString)?" "+options.emptyString:("( "+fieldName+" )");this["emptyString"]=_emptyString;var _hasFocus=false;this["hasFocus"]=_hasFocus;var _inputType=(function(){if(options){if(options.isTextArea){return"textarea"}else{if(options.isPassword){return"password"}}}return"text"})();this["inputType"]=_inputType;var _validateFunc=function(val){return val!=emptyString};this["validateFunc"]=_validateFunc;var _updateWatermark=function(){if(!hasFocus&&!valid(serializer.current)){serializerIntermediate.current=emptyString}else{if(hasFocus&&serializerIntermediate.current==emptyString){serializerIntermediate.write("")}}};this["updateWatermark"]=_updateWatermark}}).call(__define_struct___home_index_563);Jolt.inst.registerDefinition(__define_struct___home_index_563)}with(__define_struct___home_index_563){var __jolt_blk___home_index_575=Jolt.inst.pushBlock("__home_index_575");if(__jolt_blk___home_index_575){var __define_struct___home_index_575=Jolt.inst.currentDefinition();if(!__define_struct___home_index_575){__define_struct___home_index_575={node___home_index_576:new SerializerNode,node_local___home_index_576:new SerializerNode,node___home_index_577:new ClosureNode,node___home_index_578:new ClosureNode,node___home_index_579:new ClosureNode};__define_struct___home_index_575.node_local___home_index_576.connect(__define_struct___home_index_575.node___home_index_576);Jolt.inst.registerDefinition(__define_struct___home_index_575)}with(__define_struct___home_index_575){var __jolt_serializer____home_index_576___original=serializerIntermediate;var __jolt_serializer____home_index_576___ui=__jolt_serializer____home_index_576___original;var serializer_node___home_index_576=null;if(__jolt_serializer____home_index_576___original instanceof SerializerNode){serializer_node___home_index_576=__jolt_serializer____home_index_576___original;__jolt_serializer____home_index_576___original=serializer_node___home_index_576.consume();__jolt_serializer____home_index_576___ui=__jolt_serializer____home_index_576___original}if(node_local___home_index_576.lastDataVal!=__jolt_serializer____home_index_576___original){node_local___home_index_576.lastDataVal=__jolt_serializer____home_index_576___original;node_local___home_index_576.write(__jolt_serializer____home_index_576___ui)}ui.input(inputType,{name:fieldName,title:emptyString,"class":"input-text "+((options&&options.className)||"")+" watermark".when(!hasFocus&&serializerIntermediate.current==emptyString),keydown:node___home_index_577,focus:node___home_index_578,blur:node___home_index_579,output:options&&options.output,value:node___home_index_576,highlightField:(options&&options.highlightField)});if(node_local___home_index_576.last!=node_local___home_index_576.current){var __jolt_serializer____home_index_576__=node_local___home_index_576.consume();var validated___home_index_576=validateFunc(__jolt_serializer____home_index_576__);if(validated___home_index_576){if(serializer_node___home_index_576){serializer_node___home_index_576.write(__jolt_serializer____home_index_576__);node_local___home_index_576.lastDataVal=__jolt_serializer____home_index_576__}else{serializerIntermediate=__jolt_serializer____home_index_576__;node_local___home_index_576.lastDataVal=serializerIntermediate}}}if(node___home_index_577.triggered){var args___home_index_577=node___home_index_577.clearTrigger();var event=args___home_index_577[args___home_index_577.length-1];hasFocus=true;closure=null}if(node___home_index_578.triggered){var args___home_index_578=node___home_index_578.clearTrigger();var event=args___home_index_578[args___home_index_578.length-1];hasFocus=true;closure=null}if(node___home_index_579.triggered){var args___home_index_579=node___home_index_579.clearTrigger();var event=args___home_index_579[args___home_index_579.length-1];hasFocus=false;closure=null}}Jolt.inst.popBlock()}updateWatermark()}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};ui.text_input_hint=func___home_index_561;Jolt.inst.registerPartial("ui.text_input_hint",func___home_index_561)};if(document.loaded){__toplevel_func___home_index_584()}else{Jolt.inst.registerDomLoadedCallback(__toplevel_func___home_index_584)}};window.scriptForNode_10=function(){var __toplevel_func___home_index_698=function(){var data_graph___home_index_708={block:true,type:"toplevel",children:[{type:"partial",block:true,exclusive:true,partial_name:"ui.error_tooltip",children:[{type:"content",content:"&lt;div class=&quot;icon_error_container&quot; style=&quot;display:inline&quot; &gt;\n\t\t\t\t"},{type:"call",block:true,skipChildren:true,children:[{type:"content_for",block:true,children:[{type:"content",content:"&lt;span class=&quot;icon_error&quot; &gt;!&lt;/span&gt;\n\t\t\t\t\t"}],id:"__home_index_596"},{type:"content_for",block:true,children:[{type:"yield",block:true,children:[],id:"__home_index_601"}],id:"__home_index_599"}],id:"__home_index_593"},{type:"content",content:"&lt;/div&gt;\n\t\t\t"}],recordInParent:true,id:"__home_index_589"},{type:"partial",block:true,exclusive:true,partial_name:"ui.bug_tooltip",children:[{type:"content",content:"&lt;div class=&quot;__home_index_699&quot; style=&quot;display:inline&quot; &gt;\n\t\t\t\t"},{type:"call",block:true,skipChildren:true,children:[{type:"content_for",block:true,children:[{type:"content",content:"&lt;span class=&quot;__home_index_700&quot; &gt;?&lt;/span&gt;\n\t\t\t\t\t"}],id:"__home_index_617"},{type:"content_for",block:true,children:[{type:"yield",block:true,children:[],id:"__home_index_624"}],id:"__home_index_622"}],id:"__home_index_614"},{type:"content",content:"&lt;/div&gt;\n\t\t\t"}],recordInParent:true,id:"__home_index_608"},{type:"partial",block:true,exclusive:true,partial_name:"ui.warning_tooltip",children:[{type:"content",content:"&lt;div class=&quot;icon_warning_container __home_index_701&quot; style=&quot;display:inline&quot; &gt;\n\t\t\t\t"},{type:"call",block:true,skipChildren:true,children:[{type:"content_for",block:true,children:[{type:"content",content:"&lt;span class=&quot;icon_warning&quot; &gt;?&lt;/span&gt;\n\t\t\t\t\t"}],id:"__home_index_640"},{type:"content_for",block:true,children:[{type:"yield",block:true,children:[],id:"__home_index_645"}],id:"__home_index_643"}],id:"__home_index_637"},{type:"content",content:"&lt;/div&gt;\n\t\t\t"}],recordInParent:true,id:"__home_index_631"},{type:"partial",block:true,exclusive:true,partial_name:"ui.context_menu",children:[{type:"define",block:true,children:[{type:"content",content:"&lt;a class=&quot;__home_index_702&quot; style=&quot;position:relative&quot; &gt;\n\t\t\t\t\t\t&lt;span class=&quot;__home_index_703&quot; &gt;\n\t\t\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\t\t\t\t&lt;span class=&quot;__home_index_707&quot; &gt;\u00a0&lt;/span&gt;\t\t\t\n\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_667"},{type:"else",block:true,exclusive:true,children:[{type:"yield",block:true,children:[],id:"__home_index_673"}],hidden:true,recordInParent:true,id:"__home_index_671"}],id:"__home_index_666"},{type:"content",content:"&lt;/span&gt;"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"once",block:true,children:[],hidden:true,id:"__home_index_681"},{type:"content",content:"&lt;div class=&quot;tooltip_contents __home_index_705&quot; &gt;\n\t\t\t\t\t\t\t\t"},{type:"yield",block:true,children:[],id:"__home_index_683"},{type:"content",content:"&lt;/div&gt;\n\t\t\t\t\t\t\t"},{type:"once",block:true,children:[],hidden:true,id:"__home_index_685"}],hidden:true,recordInParent:true,id:"__home_index_679"},{type:"else",block:true,exclusive:true,children:[{type:"once",block:true,children:[],hidden:true,id:"__home_index_689"},{type:"yield",block:true,children:[],id:"__home_index_691"}],hidden:true,recordInParent:true,id:"__home_index_687"}],id:"__home_index_678"},{type:"content",content:"\n\t\t\t\t\t\t&lt;/a&gt;\n\t\t\t\t"}],hidden:true,id:"__home_index_656"}],recordInParent:true,id:"__home_index_652"}],id:"__home_index_587"};Jolt.inst.registerDataGraph(data_graph___home_index_708);var dom_node_hash___home_index_709={__home_index_699:{variable_attributes:{"class":{variables:["__jv__home_index_612"],template:"icon_warning_container __jv__home_index_612"}}},__home_index_700:{variable_attributes:{"class":{variables:["__jv__home_index_619"],template:"icon_warning __jv__home_index_619"}}},__home_index_701:{closures:{click:"__jolt_closure____home_index_635__"}},__home_index_702:{variable_attributes:{"class":{variables:["__jv__home_index_664"],template:"__jv__home_index_664"}},closures:{mouseout:"__jolt_closure____home_index_660__",mouseover:"__jolt_closure____home_index_662__",click:"__jolt_closure____home_index_658__"}},__home_index_703:{var_binding:"var___home_index_704"},__home_index_705:{var_binding:"var___home_index_706"},__home_index_707:{variable_content:"__jv__home_index_669"}};Jolt.inst.registerDomNodeHash(dom_node_hash___home_index_709);var func___home_index_589=function(){var self=this;var __jolt_blk___home_index_589=Jolt.inst.pushBlock("__home_index_589");if(__jolt_blk___home_index_589){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var __jolt_yields=[];Jolt.inst.pushStripWhitespace();var __jolt_blk___home_index_593=Jolt.inst.pushBlock("__home_index_593");if(__jolt_blk___home_index_593){var retval___home_index_593=(ui.context_menu(null,{aClass:"icon_container_link"}))||0;for(var i___home_index_593=0,len___home_index_593=retval___home_index_593.length;i___home_index_593<len___home_index_593;i___home_index_593++){var item___home_index_593=retval___home_index_593[i___home_index_593];var identifier___home_index_593=item___home_index_593[0];var yieldBlock___home_index_593=item___home_index_593.pop();switch(identifier___home_index_593){case"default":Jolt.inst.pushActivateBlock(yieldBlock___home_index_593);var __jolt_blk___home_index_599=Jolt.inst.pushBlock("__home_index_599");if(__jolt_blk___home_index_599){var data=item___home_index_593[0+1];var __jolt_blk___home_index_601=Jolt.inst.pushBlock("__home_index_601");if(__jolt_blk___home_index_601){var args___home_index_601=["default",data,__jolt_blk___home_index_601];__jolt_yields.push(args___home_index_601);Jolt.inst.popBlock()}Jolt.inst.popBlock()}Jolt.inst.popBlock();break;case"link":Jolt.inst.pushActivateBlock(yieldBlock___home_index_593);var __jolt_blk___home_index_596=Jolt.inst.pushBlock("__home_index_596");if(__jolt_blk___home_index_596){var data=item___home_index_593[0+1];Jolt.inst.popBlock()}Jolt.inst.popBlock();break}}Jolt.inst.popBlock()}Jolt.inst.popStripWhitespace();Jolt.inst.popBlock()}return __jolt_yields};ui.error_tooltip=func___home_index_589;Jolt.inst.registerPartial("ui.error_tooltip",func___home_index_589);var func___home_index_608=function(){var self=this;var __jolt_blk___home_index_608=Jolt.inst.pushBlock("__home_index_608");if(__jolt_blk___home_index_608){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var activeBugs=arguments[0];var __jolt_yields=[];Jolt.inst.pushStripWhitespace();if(!closureActive){var __jv__home_index_612="inactive".when(!activeBugs);Jolt.inst.bindVariable(__jolt_blk___home_index_608,"__jv__home_index_612",__jv__home_index_612)}var __jolt_blk___home_index_614=Jolt.inst.pushBlock("__home_index_614");if(__jolt_blk___home_index_614){var retval___home_index_614=(ui.context_menu(null,{aClass:"icon_container_link"}))||0;for(var i___home_index_614=0,len___home_index_614=retval___home_index_614.length;i___home_index_614<len___home_index_614;i___home_index_614++){var item___home_index_614=retval___home_index_614[i___home_index_614];var identifier___home_index_614=item___home_index_614[0];var yieldBlock___home_index_614=item___home_index_614.pop();switch(identifier___home_index_614){case"default":Jolt.inst.pushActivateBlock(yieldBlock___home_index_614);var __jolt_blk___home_index_622=Jolt.inst.pushBlock("__home_index_622");if(__jolt_blk___home_index_622){var data=item___home_index_614[0+1];var __jolt_blk___home_index_624=Jolt.inst.pushBlock("__home_index_624");if(__jolt_blk___home_index_624){var args___home_index_624=["default",data,__jolt_blk___home_index_624];__jolt_yields.push(args___home_index_624);Jolt.inst.popBlock()}Jolt.inst.popBlock()}Jolt.inst.popBlock();break;case"link":Jolt.inst.pushActivateBlock(yieldBlock___home_index_614);var __jolt_blk___home_index_617=Jolt.inst.pushBlock("__home_index_617");if(__jolt_blk___home_index_617){var data=item___home_index_614[0+1];if(!closureActive){var __jv__home_index_619="inactive".when(!activeBugs);Jolt.inst.bindVariable(__jolt_blk___home_index_617,"__jv__home_index_619",__jv__home_index_619)}Jolt.inst.popBlock()}Jolt.inst.popBlock();break}}Jolt.inst.popBlock()}Jolt.inst.popStripWhitespace();Jolt.inst.popBlock()}return __jolt_yields};ui.bug_tooltip=func___home_index_608;Jolt.inst.registerPartial("ui.bug_tooltip",func___home_index_608);var func___home_index_631=function(){var self=this;var __jolt_blk___home_index_631=Jolt.inst.pushBlock("__home_index_631");if(__jolt_blk___home_index_631){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var __jolt_yields=[];Jolt.inst.pushStripWhitespace();if(closure=="__jolt_closure____home_index_635__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;event.stop();closure=null}var __jolt_blk___home_index_637=Jolt.inst.pushBlock("__home_index_637");if(__jolt_blk___home_index_637){var retval___home_index_637=(ui.context_menu(null,{aClass:"icon_container_link"}))||0;for(var i___home_index_637=0,len___home_index_637=retval___home_index_637.length;i___home_index_637<len___home_index_637;i___home_index_637++){var item___home_index_637=retval___home_index_637[i___home_index_637];var identifier___home_index_637=item___home_index_637[0];var yieldBlock___home_index_637=item___home_index_637.pop();switch(identifier___home_index_637){case"default":Jolt.inst.pushActivateBlock(yieldBlock___home_index_637);var __jolt_blk___home_index_643=Jolt.inst.pushBlock("__home_index_643");if(__jolt_blk___home_index_643){var data=item___home_index_637[0+1];var __jolt_blk___home_index_645=Jolt.inst.pushBlock("__home_index_645");if(__jolt_blk___home_index_645){var args___home_index_645=["default",data,__jolt_blk___home_index_645];__jolt_yields.push(args___home_index_645);Jolt.inst.popBlock()}Jolt.inst.popBlock()}Jolt.inst.popBlock();break;case"link":Jolt.inst.pushActivateBlock(yieldBlock___home_index_637);var __jolt_blk___home_index_640=Jolt.inst.pushBlock("__home_index_640");if(__jolt_blk___home_index_640){var data=item___home_index_637[0+1];Jolt.inst.popBlock()}Jolt.inst.popBlock();break}}Jolt.inst.popBlock()}Jolt.inst.popStripWhitespace();Jolt.inst.popBlock()}return __jolt_yields};ui.warning_tooltip=func___home_index_631;Jolt.inst.registerPartial("ui.warning_tooltip",func___home_index_631);var func___home_index_652=function(){var self=this;var __jolt_blk___home_index_652=Jolt.inst.pushBlock("__home_index_652");if(__jolt_blk___home_index_652){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var label=arguments[0];var options=arguments[1];var __jolt_yields=[];Jolt.inst.pushStripWhitespace();var __jolt_blk___home_index_656=Jolt.inst.pushBlock("__home_index_656");if(__jolt_blk___home_index_656){var __define_struct___home_index_656=Jolt.inst.currentDefinition();if(!__define_struct___home_index_656){__define_struct___home_index_656={showed:false,data:{showing:options&&options.initialShow,keepAlive:options&&options.keepAlive},id:options&&options.id,cancelText:(options&&options.cancelText)||"Cancel",lnk:null};for(var key___home_index_656 in __define_struct___home_index_656){var val___home_index_656=__define_struct___home_index_656[key___home_index_656];if(typeof(val___home_index_656)=="function"){__define_struct___home_index_656[key___home_index_656]=(function(struct,func){return function(){return func.apply(struct,arguments)}})(__define_struct___home_index_656,val___home_index_656)}}Jolt.inst.registerDefinition(__define_struct___home_index_656)}with(__define_struct___home_index_656){var contextLink=__jolt_blk___home_index_656.variableBindings.var___home_index_704;if(closure=="__jolt_closure____home_index_658__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;if(event.target&&lnk&&event.target.descendantOf(lnk)){if(!options||!options.onHover){data.showing=!data.showing}}event.noPreventDefault=true;closure=null}if(closure=="__jolt_closure____home_index_660__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;if(options&&options.onHover){data.showing=false}closure=null}if(closure=="__jolt_closure____home_index_662__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;if(options&&options.onHover){data.showing=true}closure=null}if(!closureActive){var __jv__home_index_664=options?options.aClass:"";Jolt.inst.bindVariable(__jolt_blk___home_index_656,"__jv__home_index_664",__jv__home_index_664)}var __jolt_blk___home_index_666=Jolt.inst.pushBlock("__home_index_666");if(__jolt_blk___home_index_666){if((label)){var __jolt_blk___home_index_667=Jolt.inst.pushBlock("__home_index_667");if(__jolt_blk___home_index_667){if(!closureActive){var __jv__home_index_669=when(!data.showing,label,cancelText);Jolt.inst.bindVariable(__jolt_blk___home_index_667,"__jv__home_index_669",__jv__home_index_669)}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_671=Jolt.inst.pushBlock("__home_index_671");if(__jolt_blk___home_index_671){var __jolt_blk___home_index_673=Jolt.inst.pushBlock("__home_index_673");if(__jolt_blk___home_index_673){var args___home_index_673=["link",data,__jolt_blk___home_index_673];__jolt_yields.push(args___home_index_673);Jolt.inst.popBlock()}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}lnk=contextLink;var __jolt_blk___home_index_678=Jolt.inst.pushBlock("__home_index_678");if(__jolt_blk___home_index_678){if((data.showing)){var __jolt_blk___home_index_679=Jolt.inst.pushBlock("__home_index_679");if(__jolt_blk___home_index_679){var contextMenu=__jolt_blk___home_index_679.variableBindings.var___home_index_706;var __jolt_blk___home_index_681=Jolt.inst.pushBlock("__home_index_681");if(__jolt_blk___home_index_681){if(!Jolt.inst.executedOnce()){Jolt.inst.markExecutedOnce();showed=true;var parent=null;if(ui.context_menu.currentContextMenuData&&ui.context_menu.currentContextMenuData!=data){if(!ui.context_menu.currentContextMenuData.keepAlive){ui.context_menu.currentContextMenuData.showing=false}else{parent=ui.context_menu.currentContextMenuData}}ui.context_menu.currentContextMenuData=data;ui.context_menu.currentContextMenuData.parent=parent}Jolt.inst.popBlock()}var __jolt_blk___home_index_683=Jolt.inst.pushBlock("__home_index_683");if(__jolt_blk___home_index_683){var args___home_index_683=["default",data,__jolt_blk___home_index_683];__jolt_yields.push(args___home_index_683);Jolt.inst.popBlock()}var __jolt_blk___home_index_685=Jolt.inst.pushBlock("__home_index_685");if(__jolt_blk___home_index_685){if(!Jolt.inst.executedOnce()){Jolt.inst.markExecutedOnce();new Draggable($(contextMenu))}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_687=Jolt.inst.pushBlock("__home_index_687");if(__jolt_blk___home_index_687){var __jolt_blk___home_index_689=Jolt.inst.pushBlock("__home_index_689");if(__jolt_blk___home_index_689){if(!Jolt.inst.executedOnce()){Jolt.inst.markExecutedOnce();if(showed&&options&&options.cancelCallback){options.cancelCallback()}if(showed&&data&&data.parent){data.parent.showing=false}}Jolt.inst.popBlock()}var __jolt_blk___home_index_691=Jolt.inst.pushBlock("__home_index_691");if(__jolt_blk___home_index_691){var args___home_index_691=["hidden",data,__jolt_blk___home_index_691];__jolt_yields.push(args___home_index_691);Jolt.inst.popBlock()}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popStripWhitespace();Jolt.inst.popBlock()}return __jolt_yields};ui.context_menu=func___home_index_652;Jolt.inst.registerPartial("ui.context_menu",func___home_index_652)};if(document.loaded){__toplevel_func___home_index_698()}else{Jolt.inst.registerDomLoadedCallback(__toplevel_func___home_index_698)}};window.scriptForNode_11=function(){var __toplevel_func___home_index_1519=function(){var data_graph___home_index_1540={block:true,type:"toplevel",children:[{type:"content",content:"&lt;div id=&quot;header_container&quot; &gt;\n\t\t&lt;div class=&quot;grid_16&quot; &gt;\n\n\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_1324"}],hidden:true,recordInParent:true,id:"__home_index_1322"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1326"}],id:"__home_index_1321"},{type:"content",content:"&lt;a href=&quot;/&quot; alt=&quot;Magnifeast&quot; style=&quot;width: 390px&quot; &gt;\n\t\t\t\t&lt;div class=&quot;left&quot; style=&quot;width: 145px; height: 120px&quot; &gt;&lt;/div&gt;\n\t\t\t\t&lt;div class=&quot;left&quot; style=&quot;width: 190px; height: 80px&quot; &gt;&lt;/div&gt;\n\t\t\t&lt;/a&gt;\n\t\t\t&lt;div class=&quot;header_top&quot; &gt;\n\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"animate",block:true,children:[{type:"content",content:"&lt;div class=&quot;left orders_in_progress&quot; &gt;\n\t\t\t\t\t\t\t&lt;div style=&quot;text-align:center&quot; &gt;Orders in progress&lt;/div&gt;\n\t\t\t\t\t\t\t"},{type:"once",block:true,children:[],hidden:true,id:"__home_index_1333"},{type:"iterator",block:true,children:[{type:"iterator_inner",block:true,parent_has_scope:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"animate",block:true,children:[{type:"content",content:"&lt;div &gt;\n\t\t\t\t\t\t\t\t\t\t\t&lt;div class=&quot;icon_close __home_index_1521&quot; &gt;\n\t\t\t\t\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t\t\t\t\t\t&lt;div class=&quot;order_in_progress&quot; &gt;&lt;a class=&quot;__home_index_1522&quot; &gt;&lt;span class=&quot;__home_index_1536&quot; &gt;\u00a0&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;\n\t\t\t\t\t\t\t\t\t\t\t&lt;div class=&quot;clear&quot; &gt;&lt;/div&gt;\n\t\t\t\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t\t\t\t"}],hidden:false,id:"__home_index_1343"}],hidden:true,recordInParent:true,id:"__home_index_1341"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1354"}],id:"__home_index_1340"}],hidden:true,recordInParent:true,id:"__home_index_1336"}],hidden:true,id:"__home_index_1335"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;a class=&quot;__home_index_1523&quot; &gt;More...&lt;/a&gt;\n\t\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1358"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1364"}],id:"__home_index_1357"},{type:"content",content:"&lt;/div&gt;\n\t\t\t\t\t"}],hidden:false,id:"__home_index_1331"}],hidden:true,recordInParent:true,id:"__home_index_1329"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1367"}],id:"__home_index_1328"},{type:"content",content:"&lt;div class=&quot;right&quot; &gt;\n\t\t\t\t\t&lt;div class=&quot;user_control_panel&quot; &gt;\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t"},{type:"define_2",block:true,children:[{type:"content",content:"&lt;div class=&quot;hello&quot; &gt;\n\t\t\t\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\t\t\t\t\t&lt;span class=&quot;__home_index_1535&quot; &gt;\u00a0&lt;/span&gt;\n\t\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1384"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1388"}],id:"__home_index_1383"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"animate",block:true,children:[{type:"content",content:"&lt;div &gt;\n\t\t\t\t\t\t\t\t\t\t&lt;div &gt;\n\t\t\t\t\t\t              &lt;form onsubmit=&quot;return false;&quot; &gt;\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;label for=&quot;login_email&quot; &gt;Email&lt;/label&gt;\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;input class=&quot;login_input email __home_index_1524&quot; id=&quot;login_email&quot; type=&quot;text&quot; &gt;&lt;/input&gt;&lt;label for=&quot;login_password&quot; &gt;Password&lt;/label&gt;\n\t\t\t\t\t\t\t\t\t\t\t\t&lt;input class=&quot;login_input password __home_index_1525&quot; id=&quot;login_password&quot; type=&quot;password&quot; &gt;&lt;/input&gt;&lt;!-- NOTE: the setTimout() is because roboform's &quot;fill &amp; submit&quot; crashes otherwise.  //--&gt;&lt;input class=&quot;button __home_index_1526&quot; value=&quot;Log in&quot; type=&quot;submit&quot; &gt;&lt;/input&gt;&lt;/form&gt;\n\t\t\t\t\t\t\t\t\t\t&lt;/div&gt;\n\n\t\t\t\t\t\t\t\t\t\t&lt;div class=&quot;header_links&quot; &gt;\n\t\t\t\t\t\t\t\t\t\t\t&lt;span style=&quot;font-size: 0.8em&quot; &gt;\n\t\t\t\t\t\t\t\t\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;span class=&quot;logging_in&quot; &gt;logging in&lt;/span&gt;\n\t\t\t\t\t\t\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1409"},{type:"elseif",block:true,exclusive:true,children:[{type:"content",content:"&lt;b &gt; \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tCheck your e-mail for password-reset instructions.\n\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;/b&gt;\n\t\t\t\t  \t\t\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1413"},{type:"elseif",block:true,exclusive:true,children:[{type:"content",content:"&lt;span class=&quot;login_error&quot; &gt; \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&lt;span class=&quot;__home_index_1533&quot; &gt;\u00a0&lt;/span&gt;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\u00a0-\n&lt;a href=&quot;/user_ui/request_password_reset&quot; class=&quot;__home_index_1527&quot; &gt;forgot password?&lt;/a&gt;\t\t\t\t\t\t\t\t\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1422"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1426"}],id:"__home_index_1421"},{type:"content",content:"&lt;/span&gt;\n\t\t\t\t\t\t\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1415"},{type:"else",block:true,exclusive:true,children:[{type:"content",content:"&lt;a href=&quot;/user_ui/request_password_reset&quot; class=&quot;__home_index_1528&quot; &gt;Forgot password?&lt;/a&gt;\n\t\t\t\t\t\t\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1428"}],id:"__home_index_1408"},{type:"content",content:"&lt;/span&gt;\n\t\t\t\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t\t\t\t"}],hidden:true,id:"__home_index_1396"}],hidden:true,recordInParent:true,id:"__home_index_1394"},{type:"else",block:true,exclusive:true,children:[{type:"animate",block:true,children:[{type:"content",content:"&lt;div &gt;\n\t\t\t\t\t\t\t\t\t\t\tReturning User?\n&lt;a class=&quot;__home_index_1529&quot; id=&quot;login_link&quot; &gt;Login&lt;/a&gt;\t\t\t\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t\t\t\t\t&lt;div class=&quot;header_links&quot; &gt;&lt;/div&gt;\n\t\t\t\t\t\t\t\t\t"}],hidden:false,id:"__home_index_1436"}],hidden:true,recordInParent:true,id:"__home_index_1434"}],id:"__home_index_1393"}],hidden:true,recordInParent:true,id:"__home_index_1391"},{type:"else",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\t\t\t\t\tHello, &lt;a href=&quot;/user_ui/profile_page&quot; &gt;&lt;span class=&quot;__home_index_1532&quot; &gt;\u00a0&lt;/span&gt;&lt;/a&gt;\n\t\t\t\t\t\t\t\t&lt;div class=&quot;header_links&quot; &gt;\n\t\t\t\t\t\t\t\t\t&lt;div class=&quot;right&quot; &gt;\n\t\t\t\t\t\t\t\t\t\t\t&lt;a href=&quot;/user/signout&quot; &gt;SIGN OUT&lt;/a&gt;\n\t\t\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t\t\t\t&lt;div class=&quot;right&quot; &gt;&lt;span class=&quot;header_text_alt&quot; style=&quot;margin: 0 3px&quot; &gt;|&lt;/span&gt;&lt;/div&gt;\n\t\t\t\t\t\t\t\t\t&lt;div class=&quot;right&quot; &gt;\n\t\t\t\t\t\t\t\t\t\t&lt;a href=&quot;/order/mine&quot; &gt;MY ORDERS&lt;/a&gt;\n\t\t\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div class=&quot;right&quot; &gt;&lt;span class=&quot;header_text_alt&quot; style=&quot;margin: 0 3px&quot; &gt;|&lt;/span&gt;&lt;/div&gt;\n\t\t\t\t\t\t\t\t\t\t&lt;div class=&quot;right&quot; &gt;\n\t\t\t\t\t\t\t\t\t\t\t&lt;div class=&quot;right&quot; &gt;\n\t\t\t\t\t\t\t\t\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"call",block:true,skipChildren:true,children:[{type:"content_for",block:true,children:[{type:"content",content:"&lt;img src=&quot;/images/fugue/chevron-expand.png&quot; style=&quot;padding-left: 3px; vertical-align: text-bottom&quot; &gt;&lt;/img&gt;"}],id:"__home_index_1455"},{type:"content_for",block:true,children:[{type:"content",content:"&lt;div &gt; &lt;a href=&quot;/restaurant_admin&quot; &gt;Restaurant Admin&lt;/a&gt; &lt;/div&gt;\n&lt;div &gt; &lt;a href=&quot;/admin/site&quot; &gt;Site Admin&lt;/a&gt; &lt;/div&gt;\n&lt;div &gt; &lt;a href=&quot;/order_admin&quot; &gt;Order Admin&lt;/a&gt; &lt;/div&gt;\n&lt;div &gt; &lt;a href=&quot;/user_ui/user_admin&quot; &gt;User Admin&lt;/a&gt; &lt;/div&gt;\n&lt;div &gt; &lt;a href=&quot;/order_admin/get_order_for_placing&quot; &gt;Order Placer&lt;/a&gt; &lt;/div&gt;\n&lt;div &gt; &lt;a href=&quot;/ugc_admin&quot; &gt;UGC Admin&lt;/a&gt; &lt;/div&gt;\n&lt;div &gt; &lt;a href=&quot;/admin/edit_secure&quot; &gt;Secure Docs&lt;/a&gt; &lt;/div&gt;\n&lt;div &gt; &lt;a href=&quot;/user_ui/manage_invites&quot; &gt;Invites&lt;/a&gt; &lt;/div&gt;\n&lt;div &gt; &lt;a href=&quot;/user_ui/invite_codes&quot; &gt;Invite codes&lt;/a&gt; &lt;/div&gt;\n&lt;div &gt; &lt;a href=&quot;/user_ui/coupon_codes&quot; &gt;Coupon codes&lt;/a&gt; &lt;/div&gt;\n&lt;div &gt; &lt;a href=&quot;/home/sitemap&quot; &gt;Sitemap&lt;/a&gt; &lt;/div&gt;\n\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t"}],id:"__home_index_1458"}],id:"__home_index_1452"}],hidden:true,recordInParent:true,id:"__home_index_1450"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1462"}],id:"__home_index_1449"},{type:"content",content:"&lt;/div&gt;\n\t\t\t\t\t\t\t\t\t\t\t&lt;a href=&quot;/admin&quot; &gt;ADMIN&lt;/a&gt;\n\t\t\t\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1447"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1464"}],id:"__home_index_1446"},{type:"content",content:"&lt;div class=&quot;clear&quot; &gt;&lt;/div&gt;\n\t\t\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1442"}],id:"__home_index_1390"},{type:"content",content:"&lt;/div&gt;\n\t\t\t\t\t"}],hidden:true,id:"__home_index_1369"},{type:"content",content:"&lt;/div&gt;&lt;div &gt;\n\t\t\t\t\t\t"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_1467"},{type:"content",content:"&lt;/div&gt;\n\t\t\t\t\t\n\t\t\t\t&lt;/div&gt;\n\t\t\t&lt;/div&gt;&lt;div class=&quot;header_bottom left&quot; &gt;\n\t\t\t\t&lt;div class=&quot;left&quot; id=&quot;los_angeles&quot; &gt;\n\t\t\t\t\t"},{type:"once",block:true,children:[],hidden:true,id:"__home_index_1469"},{type:"content",content:"&lt;a href=&quot;/restaurant&quot; &gt;LOS ANGELES&lt;/a&gt;\n\t\t\t\t\t&lt;span class=&quot;__home_index_1539&quot; &gt;\u00a0&lt;/span&gt;\n\n\t\t\t\t\t"},{type:"iterator",block:true,children:[{type:"iterator_inner",block:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\t\t\t\t\t&lt;span class=&quot;__home_index_1531&quot; &gt;\u00a0&lt;/span&gt;\n\t\t\t\t\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;a class=&quot;__home_index_1530&quot; &gt;&lt;span class=&quot;__home_index_1534&quot; &gt;\u00a0&lt;/span&gt;&lt;/a&gt;\n\t\t\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1489"},{type:"else",block:true,exclusive:true,children:[{type:"content",content:"\n\n\t\t\t\t\t\t\t\t\t&lt;span class=&quot;__home_index_1538&quot; &gt;\u00a0&lt;/span&gt;\n\t\t\t\t\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1495"}],id:"__home_index_1488"}],hidden:true,recordInParent:true,id:"__home_index_1484"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1500"}],id:"__home_index_1483"}],hidden:true,recordInParent:true,id:"__home_index_1479"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1502"}],id:"__home_index_1478"}],hidden:true,recordInParent:true,id:"__home_index_1476"}],hidden:true,id:"__home_index_1475"},{type:"content",content:"&lt;/div&gt;\n\t\t\t\t&lt;div class=&quot;clear&quot; &gt;&lt;/div&gt;\n\t\t\t&lt;/div&gt;\n\t\t\t\n\t\t\t&lt;div class=&quot;clear&quot; &gt;&lt;/div&gt;\n\t\t&lt;/div&gt;\n\t\t&lt;div class=&quot;clear&quot; &gt;&lt;/div&gt;\n\t&lt;/div&gt;\n\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div class=&quot;active_orders_container&quot; &gt;\n\t\t\t"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_1508"},{type:"content",content:"&lt;/div&gt;\n\t"}],hidden:true,recordInParent:true,id:"__home_index_1506"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1510"}],id:"__home_index_1505"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div class=&quot;error_msg flash_notice&quot; &gt;\n\t\t\t&lt;span class=&quot;msg_title&quot; &gt;\n\t\t\t\t&lt;span class=&quot;__home_index_1537&quot; &gt;\u00a0&lt;/span&gt;\n\t\t\t&lt;/span&gt;\n\t\t&lt;/div&gt;\n\t"}],hidden:true,recordInParent:true,id:"__home_index_1513"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1517"}],id:"__home_index_1512"},{type:"content",content:"&lt;div class=&quot;clear&quot; &gt;&lt;/div&gt;\n"}],id:"__home_index_1319"};Jolt.inst.registerDataGraph(data_graph___home_index_1540);var dom_node_hash___home_index_1541={__home_index_1523:{variable_attributes:{href:{variables:["__jv__home_index_1360"],template:"__jv__home_index_1360"}},closures:{click:"__jolt_closure____home_index_1362__"}},__home_index_1534:{variable_content:"__jv__home_index_1493"},__home_index_1524:{variable_attributes:{disabled:{variables:["__jv__home_index_1398"],template:"__jv__home_index_1398"}},serializers:{value:"__jolt_serializer____home_index_1400__"}},__home_index_1535:{variable_content:"__jv__home_index_1386"},__home_index_1525:{variable_attributes:{disabled:{variables:["__jv__home_index_1404"],template:"__jv__home_index_1404"}},serializers:{value:"__jolt_serializer____home_index_1402__"}},__home_index_1536:{variable_content:"__jv__home_index_1351"},__home_index_1526:{closures:{click:"__jolt_closure____home_index_1406__"}},__home_index_1537:{variable_content:"__jv__home_index_1515"},__home_index_1527:{closures:{click:"__jolt_closure____home_index_1424__"}},__home_index_1538:{variable_content:"__jv__home_index_1497"},__home_index_1528:{closures:{click:"__jolt_closure____home_index_1430__"}},__home_index_1539:{variable_content:"__jv__home_index_1473"},__home_index_1529:{closures:{click:"__jolt_closure____home_index_1438__"}},__home_index_1530:{variable_attributes:{href:{variables:["__jv__home_index_1491"],template:"__jv__home_index_1491"}}},__home_index_1531:{variable_content:"__jv__home_index_1486"},__home_index_1521:{closures:{click:"__jolt_closure____home_index_1345__"}},__home_index_1532:{variable_content:"__jv__home_index_1444"},__home_index_1522:{variable_attributes:{href:{variables:["__jv__home_index_1347"],template:"__jv__home_index_1347"}},closures:{click:"__jolt_closure____home_index_1349__"}},__home_index_1533:{variable_content:"__jv__home_index_1419"}};Jolt.inst.registerDomNodeHash(dom_node_hash___home_index_1541);var id="__home_index_1319_ctx_1";var idStart=id+"-start";var idEnd=id+"-end";var node;var container=$("header");if(!container){return}node=new Element("script",{id:idStart});$("header").appendChild(node);node=new Element("script",{id:idEnd});$("header").appendChild(node);Jolt.inst.registerCode(function(closure,closureActive){var __jolt_blk___home_index_1319=Jolt.inst.pushBlock("__home_index_1319");if(__jolt_blk___home_index_1319){var __jolt_blk___home_index_1321=Jolt.inst.pushBlock("__home_index_1321");if(__jolt_blk___home_index_1321){if((PopupManager.showing)){var __jolt_blk___home_index_1322=Jolt.inst.pushBlock("__home_index_1322");if(__jolt_blk___home_index_1322){var __jolt_blk___home_index_1324=Jolt.inst.pushBlock("__home_index_1324");if(__jolt_blk___home_index_1324){ui.lightview_naked(PopupManager.showCallback,PopupManager.showOptions);Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1326=Jolt.inst.pushBlock("__home_index_1326");if(__jolt_blk___home_index_1326){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_1328=Jolt.inst.pushBlock("__home_index_1328");if(__jolt_blk___home_index_1328){if((valid(Order.ordersInProgress()))){var __jolt_blk___home_index_1329=Jolt.inst.pushBlock("__home_index_1329");if(__jolt_blk___home_index_1329){var __jolt_blk___home_index_1331=Jolt.inst.pushBlock("__home_index_1331");if(__jolt_blk___home_index_1331){if(!Jolt.inst.animationDefined("__home_index_1331")){__jolt_blk___home_index_1328.tickCounter=__jolt_blk___home_index_1328.tickCounter||Jolt.inst.currentTickCounter;Jolt.inst.registerAnimation("out","__home_index_1331",function(_rangeNode_,animFirstTime){return function(){var effect=null;var options___home_index_1542={afterSetupCallback:function(effect){if(effect.element){effect.element.setStyle("visibility: inherit")}},duration:0.3,delay:0.3};for(var _self_=_rangeNode_.beginElement();_self_!=_rangeNode_.endElement();_self_=_self_.next()){if(_self_.nodeName!="SCRIPT"&&_self_.nodeName!="jolt:block"&&_self_.nodeName!="META"){options___home_index_1542.revert=true;options___home_index_1542.queue={scope:"__home_index_1331",position:"end"};var effect2=new Effect.Fade(_self_,options___home_index_1542);effect=effect||effect2}}return effect}}(Jolt.inst.currentBlockRangeNode(),__jolt_blk___home_index_1328.tickCounter==Jolt.inst.currentTickCounter))}else{if(__jolt_blk___home_index_1331.parent.animatingOut){__jolt_blk___home_index_1331.parent.animatingOut=false;var old_in=__jolt_blk___home_index_1331.animations&&__jolt_blk___home_index_1331.animations.old_in;if(old_in){old_in()}else{Effect.Queues.get("__home_index_1331").each(function(x){x.cancel()})}}}var __jolt_blk___home_index_1333=Jolt.inst.pushBlock("__home_index_1333");if(__jolt_blk___home_index_1333){if(!Jolt.inst.executedOnce()){Jolt.inst.markExecutedOnce()}Jolt.inst.popBlock()}var __jolt_blk___home_index_1335=Jolt.inst.pushBlock("__home_index_1335");if(__jolt_blk___home_index_1335){Jolt.inst.callbackStore=Jolt.inst.closureActive?[]:__jolt_blk___home_index_1335.iteration;Order.ordersInProgress().slice(0,2).each(Jolt.inst.iteratorCallback);var __collection___home_index_1335=Jolt.inst.callbackStore;for(var i___home_index_1335=0,len___home_index_1335=__collection___home_index_1335.length;i___home_index_1335<len___home_index_1335;i___home_index_1335++){var __el___home_index_1335=__collection___home_index_1335[i___home_index_1335];var order=__el___home_index_1335[0];var blockName___home_index_1335=(order.id());if(!Jolt.inst.closureActive){__jolt_blk___home_index_1335.iteratorScopes.push(blockName___home_index_1335)}var __jolt_blk___home_index_1336=Jolt.inst.pushBlock("__home_index_1336",blockName___home_index_1335);if(__jolt_blk___home_index_1336){var __jolt_blk___home_index_1340=Jolt.inst.pushBlock("__home_index_1340");if(__jolt_blk___home_index_1340){if((!$d(order).noLongerInProgress)){var __jolt_blk___home_index_1341=Jolt.inst.pushBlock("__home_index_1341");if(__jolt_blk___home_index_1341){var __jolt_blk___home_index_1343=Jolt.inst.pushBlock("__home_index_1343");if(__jolt_blk___home_index_1343){if(!Jolt.inst.animationDefined("__home_index_1343")){__jolt_blk___home_index_1340.tickCounter=__jolt_blk___home_index_1340.tickCounter||Jolt.inst.currentTickCounter;Jolt.inst.registerAnimation("out","__home_index_1343",function(_rangeNode_,animFirstTime){return function(){var effect=null;var options___home_index_1543={afterSetupCallback:function(effect){if(effect.element){effect.element.setStyle("visibility: inherit")}},duration:0.3};for(var _self_=_rangeNode_.beginElement();_self_!=_rangeNode_.endElement();_self_=_self_.next()){if(_self_.nodeName!="SCRIPT"&&_self_.nodeName!="jolt:block"&&_self_.nodeName!="META"){options___home_index_1543.revert=true;options___home_index_1543.queue={scope:"__home_index_1343",position:"end"};var effect2=new Effect.Fade(_self_,options___home_index_1543);effect=effect||effect2}}return effect}}(Jolt.inst.currentBlockRangeNode(),__jolt_blk___home_index_1340.tickCounter==Jolt.inst.currentTickCounter))}else{if(__jolt_blk___home_index_1343.parent.animatingOut){__jolt_blk___home_index_1343.parent.animatingOut=false;var old_in=__jolt_blk___home_index_1343.animations&&__jolt_blk___home_index_1343.animations.old_in;if(old_in){old_in()}else{Effect.Queues.get("__home_index_1343").each(function(x){x.cancel()})}}}if(closure=="__jolt_closure____home_index_1345__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;order.removeOrderInProgress();closure=null}if(!closureActive){var __jv__home_index_1347=order.editPathTo("active");Jolt.inst.bindVariable(__jolt_blk___home_index_1343,"__jv__home_index_1347",__jv__home_index_1347)}if(closure=="__jolt_closure____home_index_1349__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;var __abort_nav=false;if(!__abort_nav){Application.navigateTo((event.currentTarget?event.currentTarget.href:Event.findElement(event,"a")))}closure=null}if(!closureActive){var __jv__home_index_1351=order.restaurant.name;Jolt.inst.bindVariable(__jolt_blk___home_index_1343,"__jv__home_index_1351",__jv__home_index_1351)}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1354=Jolt.inst.pushBlock("__home_index_1354");if(__jolt_blk___home_index_1354){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_1357=Jolt.inst.pushBlock("__home_index_1357");if(__jolt_blk___home_index_1357){if((Order.ordersInProgress().length>2)){var __jolt_blk___home_index_1358=Jolt.inst.pushBlock("__home_index_1358");if(__jolt_blk___home_index_1358){if(!closureActive){var __jv__home_index_1360=Application.controllerUrl({controller:"order",action:"mine"});Jolt.inst.bindVariable(__jolt_blk___home_index_1358,"__jv__home_index_1360",__jv__home_index_1360)}if(closure=="__jolt_closure____home_index_1362__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;var __abort_nav=false;if(!__abort_nav){Application.navigateTo((event.currentTarget?event.currentTarget.href:Event.findElement(event,"a")))}closure=null}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1364=Jolt.inst.pushBlock("__home_index_1364");if(__jolt_blk___home_index_1364){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1367=Jolt.inst.pushBlock("__home_index_1367");if(__jolt_blk___home_index_1367){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_1369=Jolt.inst.pushBlock("__home_index_1369");if(__jolt_blk___home_index_1369){var __define_struct___home_index_1369=Jolt.inst.currentDefinition();if(!__define_struct___home_index_1369){__define_struct___home_index_1369={};(function(){with(this){var _showingLoginForm=false;this["showingLoginForm"]=_showingLoginForm;var _email="";this["email"]=_email;var _password="";this["password"]=_password;var _errorMsg=null;this["errorMsg"]=_errorMsg;var _emailsReset=[];this["emailsReset"]=_emailsReset;var _loginFail=function(msg){errorMsg=msg;errorMsgEmail=email;errorMsgPassword=password;if(msg=="Invalid password"){focusInput("login_password",100)}else{focusInput("login_email",100)}};this["loginFail"]=_loginFail;var _doLogin=function(){login(email,password,loginFail)};this["doLogin"]=_doLogin}}).call(__define_struct___home_index_1369);Jolt.inst.registerDefinition(__define_struct___home_index_1369)}with(__define_struct___home_index_1369){var __jolt_blk___home_index_1383=Jolt.inst.pushBlock("__home_index_1383");if(__jolt_blk___home_index_1383){if(((Application.config.showFPS===true)||(Application.config.showFPS==Application.site_mode))){var __jolt_blk___home_index_1384=Jolt.inst.pushBlock("__home_index_1384");if(__jolt_blk___home_index_1384){if(!closureActive){var __jv__home_index_1386=Math.floor(Jolt.inst.fps);Jolt.inst.bindVariable(__jolt_blk___home_index_1384,"__jv__home_index_1386",__jv__home_index_1386)}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1388=Jolt.inst.pushBlock("__home_index_1388");if(__jolt_blk___home_index_1388){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_1390=Jolt.inst.pushBlock("__home_index_1390");if(__jolt_blk___home_index_1390){if((!User.current().isRegistered())){var __jolt_blk___home_index_1391=Jolt.inst.pushBlock("__home_index_1391");if(__jolt_blk___home_index_1391){var __jolt_blk___home_index_1393=Jolt.inst.pushBlock("__home_index_1393");if(__jolt_blk___home_index_1393){if((showingLoginForm)){var __jolt_blk___home_index_1394=Jolt.inst.pushBlock("__home_index_1394");if(__jolt_blk___home_index_1394){var __jolt_blk___home_index_1396=Jolt.inst.pushBlock("__home_index_1396");if(__jolt_blk___home_index_1396){if(!Jolt.inst.animationDefined("__home_index_1396")){__jolt_blk___home_index_1393.tickCounter=__jolt_blk___home_index_1393.tickCounter||Jolt.inst.currentTickCounter;Jolt.inst.registerAnimation("in","__home_index_1396",function(_rangeNode_,animFirstTime){return function(){var effect=null;var options___home_index_1544={afterSetupCallback:function(effect){if(effect.element){effect.element.setStyle("visibility: inherit")}},from:0,delay:0.3,duration:0.2};for(var _self_=_rangeNode_.beginElement();_self_!=_rangeNode_.endElement();_self_=_self_.next()){if(_self_.nodeName!="SCRIPT"&&_self_.nodeName!="jolt:block"&&_self_.nodeName!="META"){if(animFirstTime&&!options___home_index_1544.initialPlay){options___home_index_1544.delay=0;options___home_index_1544.duration=0.01}options___home_index_1544.queue={scope:"__home_index_1396",position:"end"};var effect2=new Effect.Appear(_self_,options___home_index_1544);effect=effect||effect2}}return effect}}(Jolt.inst.currentBlockRangeNode(),__jolt_blk___home_index_1393.tickCounter==Jolt.inst.currentTickCounter))}else{if(__jolt_blk___home_index_1396.parent.animatingOut){__jolt_blk___home_index_1396.parent.animatingOut=false;var old_in=__jolt_blk___home_index_1396.animations&&__jolt_blk___home_index_1396.animations.old_in;if(old_in){old_in()}else{Effect.Queues.get("__home_index_1396").each(function(x){x.cancel()})}}}if(!closureActive){var __jv__home_index_1398=isBusyLoggingInOrOut||User.current().isRegistered();Jolt.inst.bindVariable(__jolt_blk___home_index_1396,"__jv__home_index_1398",__jv__home_index_1398)}if(!closureActive){var __jolt_serializer____home_index_1400___original=email;var serializer_node___home_index_1400=null;if(__jolt_serializer____home_index_1400___original instanceof SerializerNode){serializer_node___home_index_1400=__jolt_serializer____home_index_1400___original;__jolt_serializer____home_index_1400___original=serializer_node___home_index_1400.consume()}var __jolt_serializer____home_index_1400___ui=null;var record___jolt_serializer____home_index_1400__=Jolt.inst.serialize(__jolt_blk___home_index_1396,"__jolt_serializer____home_index_1400__",__jolt_serializer____home_index_1400___original,__jolt_serializer____home_index_1400___ui);if(record___jolt_serializer____home_index_1400__){var __jolt_serializer____home_index_1400__=record___jolt_serializer____home_index_1400__.lastUiVal;if(serializer_node___home_index_1400){serializer_node___home_index_1400.write(__jolt_serializer____home_index_1400__);record___jolt_serializer____home_index_1400__.lastDataVal=__jolt_serializer____home_index_1400__}else{(function(data){email=data;errorMsg=null})(__jolt_serializer____home_index_1400__);record___jolt_serializer____home_index_1400__.lastDataVal=(email)}}}if(!closureActive){var __jolt_serializer____home_index_1402___original=password;var serializer_node___home_index_1402=null;if(__jolt_serializer____home_index_1402___original instanceof SerializerNode){serializer_node___home_index_1402=__jolt_serializer____home_index_1402___original;__jolt_serializer____home_index_1402___original=serializer_node___home_index_1402.consume()}var __jolt_serializer____home_index_1402___ui=null;var record___jolt_serializer____home_index_1402__=Jolt.inst.serialize(__jolt_blk___home_index_1396,"__jolt_serializer____home_index_1402__",__jolt_serializer____home_index_1402___original,__jolt_serializer____home_index_1402___ui);if(record___jolt_serializer____home_index_1402__){var __jolt_serializer____home_index_1402__=record___jolt_serializer____home_index_1402__.lastUiVal;if(serializer_node___home_index_1402){serializer_node___home_index_1402.write(__jolt_serializer____home_index_1402__);record___jolt_serializer____home_index_1402__.lastDataVal=__jolt_serializer____home_index_1402__}else{(function(data){password=data;errorMsg=null})(__jolt_serializer____home_index_1402__);record___jolt_serializer____home_index_1402__.lastDataVal=(password)}}}if(!closureActive){var __jv__home_index_1404=isBusyLoggingInOrOut||User.current().isRegistered();Jolt.inst.bindVariable(__jolt_blk___home_index_1396,"__jv__home_index_1404",__jv__home_index_1404)}if(closure=="__jolt_closure____home_index_1406__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;setTimeout(doLogin,100);closure=null}var __jolt_blk___home_index_1408=Jolt.inst.pushBlock("__home_index_1408");if(__jolt_blk___home_index_1408){if((isBusyLoggingInOrOut||User.current().isRegistered())){var __jolt_blk___home_index_1409=Jolt.inst.pushBlock("__home_index_1409");if(__jolt_blk___home_index_1409){loggingInShowing=true;Jolt.inst.popBlock()}}else{if(emailsReset.include(email)){var __jolt_blk___home_index_1413=Jolt.inst.pushBlock("__home_index_1413");if(__jolt_blk___home_index_1413){Jolt.inst.popBlock()}}else{if(valid(errorMsg)){var __jolt_blk___home_index_1415=Jolt.inst.pushBlock("__home_index_1415");if(__jolt_blk___home_index_1415){var msgToDisplay=errorMsg;var showForgotLink=false;if(errorMsg=="Invalid password"){msgToDisplay="Wrong password";showForgotLink=true}if(!closureActive){var __jv__home_index_1419=msgToDisplay;Jolt.inst.bindVariable(__jolt_blk___home_index_1415,"__jv__home_index_1419",__jv__home_index_1419)}var __jolt_blk___home_index_1421=Jolt.inst.pushBlock("__home_index_1421");if(__jolt_blk___home_index_1421){if((showForgotLink)){var __jolt_blk___home_index_1422=Jolt.inst.pushBlock("__home_index_1422");if(__jolt_blk___home_index_1422){if(closure=="__jolt_closure____home_index_1424__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;emailsReset.push(email);sendPasswordResetRequest(email);var __abort_nav=(true);if(!__abort_nav){Application.navigateTo((event.currentTarget?event.currentTarget.href:Event.findElement(event,"a")))}closure=null}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1426=Jolt.inst.pushBlock("__home_index_1426");if(__jolt_blk___home_index_1426){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1428=Jolt.inst.pushBlock("__home_index_1428");if(__jolt_blk___home_index_1428){if(closure=="__jolt_closure____home_index_1430__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;var __abort_nav=false;if(!__abort_nav){Application.navigateTo((event.currentTarget?event.currentTarget.href:Event.findElement(event,"a")))}closure=null}Jolt.inst.popBlock()}}}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1434=Jolt.inst.pushBlock("__home_index_1434");if(__jolt_blk___home_index_1434){var __jolt_blk___home_index_1436=Jolt.inst.pushBlock("__home_index_1436");if(__jolt_blk___home_index_1436){if(!Jolt.inst.animationDefined("__home_index_1436")){__jolt_blk___home_index_1393.tickCounter=__jolt_blk___home_index_1393.tickCounter||Jolt.inst.currentTickCounter;Jolt.inst.registerAnimation("out","__home_index_1436",function(_rangeNode_,animFirstTime){return function(){var effect=null;var options___home_index_1545={afterSetupCallback:function(effect){if(effect.element){effect.element.setStyle("visibility: inherit")}},duration:0.3};for(var _self_=_rangeNode_.beginElement();_self_!=_rangeNode_.endElement();_self_=_self_.next()){if(_self_.nodeName!="SCRIPT"&&_self_.nodeName!="jolt:block"&&_self_.nodeName!="META"){options___home_index_1545.revert=true;options___home_index_1545.queue={scope:"__home_index_1436",position:"end"};var effect2=new Effect.Fade(_self_,options___home_index_1545);effect=effect||effect2}}return effect}}(Jolt.inst.currentBlockRangeNode(),__jolt_blk___home_index_1393.tickCounter==Jolt.inst.currentTickCounter))}else{if(__jolt_blk___home_index_1436.parent.animatingOut){__jolt_blk___home_index_1436.parent.animatingOut=false;var old_in=__jolt_blk___home_index_1436.animations&&__jolt_blk___home_index_1436.animations.old_in;if(old_in){old_in()}else{Effect.Queues.get("__home_index_1436").each(function(x){x.cancel()})}}}if(closure=="__jolt_closure____home_index_1438__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;focusInput("login_email",1000,false,false,true);showingLoginForm=true;closure=null}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1442=Jolt.inst.pushBlock("__home_index_1442");if(__jolt_blk___home_index_1442){if(!closureActive){var __jv__home_index_1444=User.current().name;Jolt.inst.bindVariable(__jolt_blk___home_index_1442,"__jv__home_index_1444",__jv__home_index_1444)}var __jolt_blk___home_index_1446=Jolt.inst.pushBlock("__home_index_1446");if(__jolt_blk___home_index_1446){if((User.current().isAdmin()&&Application.config.showAdminLink)){var __jolt_blk___home_index_1447=Jolt.inst.pushBlock("__home_index_1447");if(__jolt_blk___home_index_1447){var __jolt_blk___home_index_1449=Jolt.inst.pushBlock("__home_index_1449");if(__jolt_blk___home_index_1449){if((User.current().isSuperAdmin())){var __jolt_blk___home_index_1450=Jolt.inst.pushBlock("__home_index_1450");if(__jolt_blk___home_index_1450){var __jolt_blk___home_index_1452=Jolt.inst.pushBlock("__home_index_1452");if(__jolt_blk___home_index_1452){var retval___home_index_1452=(ui.context_menu())||0;for(var i___home_index_1452=0,len___home_index_1452=retval___home_index_1452.length;i___home_index_1452<len___home_index_1452;i___home_index_1452++){var item___home_index_1452=retval___home_index_1452[i___home_index_1452];var identifier___home_index_1452=item___home_index_1452[0];var yieldBlock___home_index_1452=item___home_index_1452.pop();switch(identifier___home_index_1452){case"default":Jolt.inst.pushActivateBlock(yieldBlock___home_index_1452);var __jolt_blk___home_index_1458=Jolt.inst.pushBlock("__home_index_1458");if(__jolt_blk___home_index_1458){Jolt.inst.popBlock()}Jolt.inst.popBlock();break;case"link":Jolt.inst.pushActivateBlock(yieldBlock___home_index_1452);var __jolt_blk___home_index_1455=Jolt.inst.pushBlock("__home_index_1455");if(__jolt_blk___home_index_1455){Jolt.inst.popBlock()}Jolt.inst.popBlock();break}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1462=Jolt.inst.pushBlock("__home_index_1462");if(__jolt_blk___home_index_1462){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1464=Jolt.inst.pushBlock("__home_index_1464");if(__jolt_blk___home_index_1464){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_1467=Jolt.inst.pushBlock("__home_index_1467");if(__jolt_blk___home_index_1467){ui.global_search_box();Jolt.inst.popBlock()}var __jolt_blk___home_index_1469=Jolt.inst.pushBlock("__home_index_1469");if(__jolt_blk___home_index_1469){if(!Jolt.inst.executedOnce()){Jolt.inst.markExecutedOnce();Breadcrumbs.updateTitle()}Jolt.inst.popBlock()}var join=new Joiner(">");if(!closureActive){var __jv__home_index_1473=join.delimiter();Jolt.inst.bindVariable(__jolt_blk___home_index_1319,"__jv__home_index_1473",__jv__home_index_1473)}var __jolt_blk___home_index_1475=Jolt.inst.pushBlock("__home_index_1475");if(__jolt_blk___home_index_1475){Jolt.inst.callbackStore=Jolt.inst.closureActive?[]:__jolt_blk___home_index_1475.iteration;Breadcrumbs.crumbs.eachWithIndex(Jolt.inst.iteratorCallback);var __collection___home_index_1475=Jolt.inst.callbackStore;for(var i___home_index_1475=0,len___home_index_1475=__collection___home_index_1475.length;i___home_index_1475<len___home_index_1475;i___home_index_1475++){var __el___home_index_1475=__collection___home_index_1475[i___home_index_1475];var crumb=__el___home_index_1475[0];var index=__el___home_index_1475[1];var blockName___home_index_1475=(i___home_index_1475);if(!Jolt.inst.closureActive){__jolt_blk___home_index_1475.iteratorScopes.push(blockName___home_index_1475)}var __jolt_blk___home_index_1476=Jolt.inst.pushBlock("__home_index_1476",blockName___home_index_1475);if(__jolt_blk___home_index_1476){var __jolt_blk___home_index_1478=Jolt.inst.pushBlock("__home_index_1478");if(__jolt_blk___home_index_1478){if((crumb.visible==undefined||crumb.visible)){var __jolt_blk___home_index_1479=Jolt.inst.pushBlock("__home_index_1479");if(__jolt_blk___home_index_1479){var crumbName=(new Template(crumb.name)).evaluate(Breadcrumbs.data);var __jolt_blk___home_index_1483=Jolt.inst.pushBlock("__home_index_1483");if(__jolt_blk___home_index_1483){if((valid(crumbName))){var __jolt_blk___home_index_1484=Jolt.inst.pushBlock("__home_index_1484");if(__jolt_blk___home_index_1484){if(!closureActive){var __jv__home_index_1486=join.delimiter();Jolt.inst.bindVariable(__jolt_blk___home_index_1484,"__jv__home_index_1486",__jv__home_index_1486)}var __jolt_blk___home_index_1488=Jolt.inst.pushBlock("__home_index_1488");if(__jolt_blk___home_index_1488){if((valid(crumb.url)&&(index!=Breadcrumbs.crumbs.length-1))){var __jolt_blk___home_index_1489=Jolt.inst.pushBlock("__home_index_1489");if(__jolt_blk___home_index_1489){if(!closureActive){var __jv__home_index_1491=(new Template(crumb.url)).evaluate(Breadcrumbs.data);Jolt.inst.bindVariable(__jolt_blk___home_index_1489,"__jv__home_index_1491",__jv__home_index_1491)}if(!closureActive){var __jv__home_index_1493=crumbName;Jolt.inst.bindVariable(__jolt_blk___home_index_1489,"__jv__home_index_1493",__jv__home_index_1493)}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1495=Jolt.inst.pushBlock("__home_index_1495");if(__jolt_blk___home_index_1495){if(!closureActive){var __jv__home_index_1497=crumbName;Jolt.inst.bindVariable(__jolt_blk___home_index_1495,"__jv__home_index_1497",__jv__home_index_1497)}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1500=Jolt.inst.pushBlock("__home_index_1500");if(__jolt_blk___home_index_1500){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1502=Jolt.inst.pushBlock("__home_index_1502");if(__jolt_blk___home_index_1502){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_1505=Jolt.inst.pushBlock("__home_index_1505");if(__jolt_blk___home_index_1505){if((Breadcrumbs.findNode().showLiveOrders)){var __jolt_blk___home_index_1506=Jolt.inst.pushBlock("__home_index_1506");if(__jolt_blk___home_index_1506){var __jolt_blk___home_index_1508=Jolt.inst.pushBlock("__home_index_1508");if(__jolt_blk___home_index_1508){Order.active_order_ui();Jolt.inst.popBlock()}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1510=Jolt.inst.pushBlock("__home_index_1510");if(__jolt_blk___home_index_1510){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}var __jolt_blk___home_index_1512=Jolt.inst.pushBlock("__home_index_1512");if(__jolt_blk___home_index_1512){if((Application.dynamic_params.flash_notice)){var __jolt_blk___home_index_1513=Jolt.inst.pushBlock("__home_index_1513");if(__jolt_blk___home_index_1513){if(!closureActive){var __jv__home_index_1515=Application.dynamic_params.flash_notice;Jolt.inst.bindVariable(__jolt_blk___home_index_1513,"__jv__home_index_1515",__jv__home_index_1515)}Jolt.inst.popBlock()}}else{var __jolt_blk___home_index_1517=Jolt.inst.pushBlock("__home_index_1517");if(__jolt_blk___home_index_1517){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}})};if(document.loaded){__toplevel_func___home_index_1519()}else{Jolt.inst.registerDomLoadedCallback(__toplevel_func___home_index_1519)}};window.scriptForNode_12=function(){var __toplevel_func___home_index_322=function(){var data_graph___home_index_325={block:true,type:"toplevel",children:[{type:"partial",block:true,exclusive:true,partial_name:"ui.twitter_content",children:[{type:"once",block:true,children:[],hidden:true,id:"__home_index_308"},{type:"content",content:"&lt;div id=&quot;twtr-search-widget&quot; &gt;&lt;/div&gt;\n\t\n\t\t"},{type:"define_2",block:true,children:[],hidden:true,id:"__home_index_310"}],recordInParent:true,id:"__home_index_306"},{type:"partial",block:true,exclusive:true,partial_name:"ui.restaurant_counts",children:[{type:"content",content:"&lt;div class=&quot;restaurant_counts&quot; &gt;\n\t\t\t&lt;div class=&quot;restaurant_count&quot; &gt;&lt;span class=&quot;__home_index_323&quot; &gt;\u00a0&lt;/span&gt;&lt;/div&gt;\n\t\t\t&lt;div class=&quot;text&quot; &gt;&lt;span class=&quot;__home_index_324&quot; &gt;\u00a0&lt;/span&gt;&lt;/div&gt;\n\t\t&lt;/div&gt;\n\t"}],recordInParent:true,id:"__home_index_315"}],id:"__home_index_304"};Jolt.inst.registerDataGraph(data_graph___home_index_325);var dom_node_hash___home_index_326={__home_index_323:{variable_content:"__jv__home_index_317"},__home_index_324:{variable_content:"__jv__home_index_319"}};Jolt.inst.registerDomNodeHash(dom_node_hash___home_index_326);var func___home_index_306=function(){var self=this;var __jolt_blk___home_index_306=Jolt.inst.pushBlock("__home_index_306");if(__jolt_blk___home_index_306){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var __jolt_yields=[];var __jolt_blk___home_index_308=Jolt.inst.pushBlock("__home_index_308");if(__jolt_blk___home_index_308){if(!Jolt.inst.executedOnce()){Jolt.inst.markExecutedOnce();TwitterWidget.create()}Jolt.inst.popBlock()}var __jolt_blk___home_index_310=Jolt.inst.pushBlock("__home_index_310");if(__jolt_blk___home_index_310){var __define_struct___home_index_310=Jolt.inst.currentDefinition();if(!__define_struct___home_index_310){__define_struct___home_index_310={};(function(){with(this){var _twitter_obj=null;this["twitter_obj"]=_twitter_obj}}).call(__define_struct___home_index_310);Jolt.inst.registerDefinition(__define_struct___home_index_310)}with(__define_struct___home_index_310){if(!twitter_obj&&TwitterWidget.ready()){twitter_obj=new TWTR.Widget({profile:true,id:"twtr-search-widget",loop:false,width:250,height:300,theme:{shell:{background:"#3082af",color:"#ffffff"},tweets:{background:"#ffffff",color:"#444444",links:"#1985b5"}}}).render().setProfile("magnifeast").start()}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}return __jolt_yields};ui.twitter_content=func___home_index_306;Jolt.inst.registerPartial("ui.twitter_content",func___home_index_306);var func___home_index_315=function(){var self=this;var __jolt_blk___home_index_315=Jolt.inst.pushBlock("__home_index_315");if(__jolt_blk___home_index_315){var closureActive=Jolt.inst.closureActive;var closure=closureActive;var type=arguments[0];var text=arguments[1];var __jolt_yields=[];if(!closureActive){var __jv__home_index_317=Restaurant.countResults[type];Jolt.inst.bindVariable(__jolt_blk___home_index_315,"__jv__home_index_317",__jv__home_index_317)}if(!closureActive){var __jv__home_index_319=text;Jolt.inst.bindVariable(__jolt_blk___home_index_315,"__jv__home_index_319",__jv__home_index_319)}Jolt.inst.popBlock()}return __jolt_yields};ui.restaurant_counts=func___home_index_315;Jolt.inst.registerPartial("ui.restaurant_counts",func___home_index_315)};if(document.loaded){__toplevel_func___home_index_322()}else{Jolt.inst.registerDomLoadedCallback(__toplevel_func___home_index_322)}};window.scriptForNode_13=function(){var __toplevel_func___home_index_346=function(){var data_graph___home_index_352={block:true,type:"toplevel",children:[{type:"define",block:true,children:[{type:"content",content:"&lt;div class=&quot;homepage&quot; &gt;\n\t\t&lt;div class=&quot;top&quot; &gt;\n\t\t\t&lt;div class=&quot;prefix_3 grid_10&quot; &gt;\n\t\t\t\t&lt;div &gt;\n\t\t\t\t\t&lt;h3 &gt;Find restaurants delivering to you &lt;span style=&quot;color:darkRed&quot; &gt;right now&lt;/span&gt;&lt;/h3&gt;\n\t\t\t\t\t&lt;h1 &gt;Order delivery online&lt;/h1&gt;\n\t\t\t\t\t"},{type:"define_2",block:true,children:[{type:"content",content:"&lt;div style=&quot;text-align:center&quot; &gt;\n\t\t\t\t\t\t"},{type:"define_2",block:true,children:[{type:"content",content:"&lt;div style=&quot;min-height:36px&quot; &gt;\n\t\t\t\t\t\t\t&lt;div style=&quot;background-color:white&quot; &gt;\n\t\t\t\t\t\t\t\t"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_335"},{type:"content",content:"&lt;/div&gt;\n\t\t\t\t\t\t&lt;/div&gt;\n\t\t\t\t\t"}],hidden:true,id:"__home_index_333"},{type:"content",content:"&lt;/div&gt;\n\t\t\t\t"}],hidden:true,id:"__home_index_331"},{type:"content",content:"&lt;/div&gt;\n\t\t\t&lt;/div&gt;\n\t\t\t&lt;div class=&quot;clear&quot; &gt;&lt;/div&gt;\n\t\t&lt;/div&gt;\n\t\t\n\t\t\n\t\t&lt;div class=&quot;splash&quot; &gt;\n\t\t\t&lt;div &gt;\n\t\t\t\tMagnifeast provides &lt;a href=&quot;/restaurant&quot; class=&quot;__home_index_349&quot; &gt;online ordering&lt;/a&gt; from hundreds of delivery and take-out restaurants in Los Angeles.\n\t\t\t&lt;/div&gt;\n\t\t\t&lt;div &gt;\n\t\t\t\t24 hours a day, 7 days a week.\n\t\t\t&lt;/div&gt;\n\t\t&lt;/div&gt;\n\t\t\n\t\t&lt;div class=&quot;right&quot; &gt;\n\t\t\t"},{type:"call",block:true,skipChildren:true,children:[],id:"__home_index_339"},{type:"content",content:"&lt;/div&gt;\n\t\t\n\n\t\t&lt;div class=&quot;block what&quot; &gt;\n\t\t\t&lt;h1 &gt;\n\t\t\t\tWhat to Eat??\n\t\t\t&lt;/h1&gt;\n\t\t\t&lt;div &gt;\n\t\t\t\t&lt;p &gt;\n\t\t\t\t\tWhat's \n\t\t\t\t\t&lt;a href=&quot;/restaurant?searchType=all&quot; class=&quot;__home_index_350&quot; &gt;open right now&lt;/a&gt;?\n\t\t\t\t&lt;/p&gt;\n\t\t\t\t&lt;p &gt;\n\t\t\t\t\tInteractive menus let you quickly search, sort, and browse for your favorite dishes.\n\t\t\t\t&lt;/p&gt;\n\t\t\t\t&lt;p &gt;\n\t\t\t\t\tRatings and reviews on menu items lead you straight to each restaurant's very best offerings.\n\t\t\t\t&lt;/p&gt;\n\t\t\t&lt;/div&gt;\n\t\t&lt;/div&gt;\n\n\t\t&lt;div class=&quot;block ordering&quot; &gt;\n\t\t\t&lt;h1 &gt;\n\t\t\t\tOnline Ordering is Awesome\n\t\t\t&lt;/h1&gt;\n\t\t\t&lt;div &gt;\n\t\t\t\t&lt;p &gt;\n\t\t\t\t\tPlace your order and have food delivered with just a few clicks.\n\t\t\t\t&lt;/p&gt;\n\t\t\t\t&lt;p &gt;\n\t\t\t\t\tNo busy signals.  Never stuck on hold. \n\t\t\t\t&lt;/p&gt;\n\t\t\t\t&lt;p &gt;\n\t\t\t\t\tRe-order your favorite &lt;a href=&quot;/order/mine&quot; class=&quot;__home_index_351&quot; &gt;past orders&lt;/a&gt; even faster!\n\t\t\t\t&lt;/p&gt;\n\t\t\t&lt;/div&gt;\n\t\t&lt;/div&gt;\n\n\t&lt;/div&gt;\n\n\t"}],hidden:true,id:"__home_index_329"}],id:"__home_index_327"};Jolt.inst.registerDataGraph(data_graph___home_index_352);var dom_node_hash___home_index_353={__home_index_349:{closures:{click:"__jolt_closure____home_index_337__"}},__home_index_350:{closures:{click:"__jolt_closure____home_index_341__"}},__home_index_351:{closures:{click:"__jolt_closure____home_index_343__"}}};Jolt.inst.registerDomNodeHash(dom_node_hash___home_index_353);var id="__home_index_327_ctx_1";var idStart=id+"-start";var idEnd=id+"-end";var node;var container=$("main");if(!container){return}node=new Element("script",{id:idStart});$("main").appendChild(node);node=new Element("script",{id:idEnd});$("main").appendChild(node);Jolt.inst.registerCode(function(closure,closureActive){var __jolt_blk___home_index_327=Jolt.inst.pushBlock("__home_index_327");if(__jolt_blk___home_index_327){var __jolt_blk___home_index_329=Jolt.inst.pushBlock("__home_index_329");if(__jolt_blk___home_index_329){var __define_struct___home_index_329=Jolt.inst.currentDefinition();if(!__define_struct___home_index_329){__define_struct___home_index_329={};for(var key___home_index_329 in __define_struct___home_index_329){var val___home_index_329=__define_struct___home_index_329[key___home_index_329];if(typeof(val___home_index_329)=="function"){__define_struct___home_index_329[key___home_index_329]=(function(struct,func){return function(){return func.apply(struct,arguments)}})(__define_struct___home_index_329,val___home_index_329)}}Jolt.inst.registerDefinition(__define_struct___home_index_329)}with(__define_struct___home_index_329){var __jolt_blk___home_index_331=Jolt.inst.pushBlock("__home_index_331");if(__jolt_blk___home_index_331){var __define_struct___home_index_331=Jolt.inst.currentDefinition();if(!__define_struct___home_index_331){__define_struct___home_index_331={};(function(){with(this){var _navigating=null;this["navigating"]=_navigating}}).call(__define_struct___home_index_331);Jolt.inst.registerDefinition(__define_struct___home_index_331)}with(__define_struct___home_index_331){var __jolt_blk___home_index_333=Jolt.inst.pushBlock("__home_index_333");if(__jolt_blk___home_index_333){var __define_struct___home_index_333=Jolt.inst.currentDefinition();if(!__define_struct___home_index_333){__define_struct___home_index_333={};(function(){with(this){var _callback=function(loc){Application.navigateTo(Application.controllerUrl({controller:"restaurant"}));navigating=true};this["callback"]=_callback}}).call(__define_struct___home_index_333);Jolt.inst.registerDefinition(__define_struct___home_index_333)}with(__define_struct___home_index_333){var __jolt_blk___home_index_335=Jolt.inst.pushBlock("__home_index_335");if(__jolt_blk___home_index_335){location_search({buttonLabel:"Search",callback:callback});Jolt.inst.popBlock()}}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}if(closure=="__jolt_closure____home_index_337__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;var __abort_nav=false;if(!__abort_nav){Application.navigateTo((event.currentTarget?event.currentTarget.href:Event.findElement(event,"a")))}closure=null}var __jolt_blk___home_index_339=Jolt.inst.pushBlock("__home_index_339");if(__jolt_blk___home_index_339){ui.twitter_content();Jolt.inst.popBlock()}if(closure=="__jolt_closure____home_index_341__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;var __abort_nav=false;if(!__abort_nav){Application.navigateTo((event.currentTarget?event.currentTarget.href:Event.findElement(event,"a")))}closure=null}if(closure=="__jolt_closure____home_index_343__"&&Jolt.inst.isCurrentBlockActive()){var event=Jolt.inst.currentEvent;var __abort_nav=false;if(!__abort_nav){Application.navigateTo((event.currentTarget?event.currentTarget.href:Event.findElement(event,"a")))}closure=null}}Jolt.inst.popBlock()}Jolt.inst.popBlock()}})};if(document.loaded){__toplevel_func___home_index_346()}else{Jolt.inst.registerDomLoadedCallback(__toplevel_func___home_index_346)}};window.scriptForNode_14=function(){var a=function(){var g={block:true,type:"toplevel",children:[{type:"content",content:"&lt;div class=&quot;hr&quot; &gt;&lt;/div&gt;\n\n\t&lt;div class=&quot;grid_16 links&quot; &gt;\n\t\t&lt;div class=&quot;grid_3 suffix_1 alpha&quot; style=&quot;text-align: center&quot; &gt;\n\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;!-- BEGIN: trust-guard code //--&gt;&lt;a href=&quot;https://secure.trust-guard.com/certificates/www.magnifeast.com&quot; name=&quot;trustlink&quot; onclick=&quot;var nonwin=navigator.appName!='Microsoft Internet Explorer'?'yes':'no'; window.open(this.href,'welcome','location='+nonwin+',scrollbars=yes,width=517,height='+screen.availHeight+',menubar=no,toolbar=no'); return false;&quot; target=&quot;_blank&quot; &gt;\n\t\t\t\t&lt;img name=&quot;trust-seal&quot; src=&quot;https://secure.trust-guard.com/seals/2167/scanned/large/gray&quot; border=&quot;0&quot; alt=&quot;Security Seal&quot; &gt;&lt;/img&gt;&lt;/a&gt;\n\t\t\t\t&lt;!-- END: trust-guard code //--&gt;\n\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1549"},{type:"else",block:true,exclusive:true,children:[{type:"content",content:"&lt;a href=&quot;http://aws.amazon.com/&quot; class=&quot;__home_index_1598&quot; &gt;\t\t\t\t\t&lt;img src=&quot;/images/badges/aws.jpg&quot; alt=&quot;Powered by Amazon Web Services&quot; style=&quot;margin: 6px 0 0 0&quot; &gt;&lt;/img&gt;&lt;/a&gt;\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1551"}],id:"__home_index_1548"},{type:"content",content:"&lt;/div&gt;\n\t\t&lt;div class=&quot;grid_2&quot; &gt;\n\t\t\t&lt;div class=&quot;column_header&quot; &gt;\n\t\t\t\tRestaurants\n\t\t\t&lt;/div&gt;\n\t\t\t&lt;div &gt;\n\t\t\t\t&lt;div &gt; &lt;a href=&quot;/restaurant?searchType=delivers_to_me&quot; class=&quot;__home_index_1599&quot; &gt;Delivering&lt;/a&gt;\t&lt;/div&gt;\n\t\t\t\t&lt;div &gt; &lt;a href=&quot;/restaurant?searchType=all&quot; class=&quot;__home_index_1600&quot; &gt;Open Now&lt;/a&gt;\t&lt;/div&gt;\n\t\t\t\t&lt;div &gt; &lt;a href=&quot;/restaurant?searchType=browse_all&quot; class=&quot;__home_index_1601&quot; &gt;Browse All&lt;/a&gt;\t&lt;/div&gt;\n\t\t\t&lt;/div&gt;\n\t\t&lt;/div&gt;\n\t\t&lt;div class=&quot;grid_2&quot; &gt;\n\t\t\t&lt;div class=&quot;column_header&quot; &gt;\n\t\t\t\tYour Account\n\t\t\t&lt;/div&gt;\n\t\t\t&lt;div &gt;\n\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div &gt; &lt;a href=&quot;/user_ui/profile_page&quot; class=&quot;__home_index_1602&quot; &gt;Your Account&lt;/a&gt;\t&lt;/div&gt;\n\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1563"},{type:"else",block:true,exclusive:true,children:[{type:"content",content:"&lt;div &gt; &lt;a href=&quot;/user_ui/signup_page&quot; class=&quot;__home_index_1603&quot; &gt;Sign Up&lt;/a&gt;\t&lt;/div&gt;\n\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1567"}],id:"__home_index_1562"},{type:"content",content:"&lt;div &gt; &lt;a href=&quot;/order/mine&quot; class=&quot;__home_index_1604&quot; &gt;Past Orders&lt;/a&gt;\t&lt;/div&gt;\n\t\t\t\t"},{type:"cond",block:true,children:[{type:"if",block:true,exclusive:true,children:[{type:"content",content:"&lt;div &gt; &lt;a href=&quot;/user/signout&quot; class=&quot;__home_index_1605&quot; &gt;Sign Out&lt;/a&gt;\t&lt;/div&gt;\n\t\t\t\t"}],hidden:true,recordInParent:true,id:"__home_index_1575"},{type:"else",block:true,exclusive:true,children:[],hidden:true,recordInParent:true,id:"__home_index_1579"}],id:"__home_index_1574"},{type:"content",content:"&lt;/div&gt;\n\t\t&lt;/div&gt;\n\t\t&lt;div class=&quot;grid_2&quot; &gt;\n\t\t\t&lt;div class=&quot;column_header&quot; &gt;\n\t\t\t\tOur Service\n\t\t\t&lt;/div&gt;\n\t\t\t&lt;div &gt;\n\t\t\t\t&lt;div &gt; &lt;a href=&quot;/about&quot; class=&quot;__home_index_1606&quot; &gt;About Us&lt;/a&gt;\t&lt;/div&gt;\n\t\t\t\t&lt;div &gt; &lt;a href=&quot;/about/tos&quot; class=&quot;__home_index_1607&quot; &gt;Terms of Use&lt;/a&gt;\t&lt;/div&gt;\n\t\t\t\t&lt;div &gt; &lt;a href=&quot;/about/privacy&quot; class=&quot;__home_index_1608&quot; &gt;Privacy Policy&lt;/a&gt;\t&lt;/div&gt;\n\t\t\t&lt;/div&gt;\n\t\t&lt;/div&gt;\n\t\t&lt;div class=&quot;grid_2&quot; &gt;\n\t\t\t&lt;div class=&quot;column_header&quot; &gt;\n\t\t\t\tThe Company\n\t\t\t&lt;/div&gt;\n\t\t\t&lt;div &gt;\n\t\t\t\t&lt;div &gt; &lt;a href=&quot;/about/team&quot; class=&quot;__home_index_1609&quot; &gt;Our Team&lt;/a&gt;\t&lt;/div&gt;\n\t\t\t\t&lt;div &gt; &lt;a href=&quot;/about/tech&quot; class=&quot;__home_index_1610&quot; &gt;Technology&lt;/a&gt;\t&lt;/div&gt;\n\t\t\t\t&lt;div &gt; &lt;a href=&quot;/about/contact&quot; class=&quot;__home_index_1611&quot; &gt;Contact Info&lt;/a&gt;\t&lt;/div&gt;\n\t\t\t&lt;/div&gt;\n\t\t&lt;/div&gt;\n\t\t&lt;div class=&quot;prefix_1 grid_3 omega&quot; &gt;\n\t\t\t&lt;div class=&quot;column_header&quot; &gt;\n\t\t\t\tFollow us on\n\t\t\t&lt;/div&gt;\n\t\t\t&lt;div &gt;\n\t\t\t\t&lt;a href=&quot;http://www.twitter.com/magnifeast&quot; class=&quot;__home_index_1612&quot; &gt;&lt;img src=&quot;/images/social_twitter.gif&quot; alt=&quot;Magnifeast on Twitter&quot; &gt;&lt;/img&gt;&lt;/a&gt;\n\t\t\t\t&lt;a href=&quot;http://www.facebook.com/Magnifeast&quot; class=&quot;__home_index_1613&quot; &gt;&lt;img src=&quot;/images/social_facebook.gif&quot; alt=&quot;Magnifeast on Facebook&quot; &gt;&lt;/img&gt;&lt;/a&gt;\n\t\t\t&lt;/div&gt;\n\t\t&lt;/div&gt;\n\t&lt;/div&gt;\n\t&lt;div class=&quot;clear&quot; &gt;&lt;/div&gt;\n\n\t&lt;div class=&quot;hr&quot; &gt;&lt;/div&gt;\n\n\t&lt;div style=&quot;color: #787878; padding-top: 6px&quot; &gt;\n\t\t&lt;div &gt;\n\t\t\t5870 Melrose Ave. Suite 3424 Los Angeles, CA 90038 \u00a0-\u00a0 (310) 295-1840\n\t\t&lt;/div&gt;\n\n\t\t&lt;div &gt;\n\t\t\t\u00a9 2009 Magnifeast, Inc.\n\t\t&lt;/div&gt;\n\t&lt;/div&gt;\n\n"}],id:"__home_index_1546"};Jolt.inst.registerDataGraph(g);var c={__home_index_1604:{closures:{click:"__jolt_closure____home_index_1572__"}},__home_index_1605:{closures:{click:"__jolt_closure____home_index_1577__"}},__home_index_1606:{closures:{click:"__jolt_closure____home_index_1581__"}},__home_index_1607:{closures:{click:"__jolt_closure____home_index_1583__"}},__home_index_1608:{closures:{click:"__jolt_closure____home_index_1585__"}},__home_index_1609:{closures:{click:"__jolt_closure____home_index_1587__"}},__home_index_1610:{closures:{click:"__jolt_closure____home_index_1589__"}},__home_index_1600:{closures:{click:"__jolt_closure____home_index_1558__"}},__home_index_1611:{closures:{click:"__jolt_closure____home_index_1591__"}},__home_index_1601:{closures:{click:"__jolt_closure____home_index_1560__"}},__home_index_1612:{closures:{click:"__jolt_closure____home_index_1593__"}},__home_index_1598:{closures:{click:"__jolt_closure____home_index_1553__"}},__home_index_1602:{closures:{click:"__jolt_closure____home_index_1565__"}},__home_index_1613:{closures:{click:"__jolt_closure____home_index_1595__"}},__home_index_1599:{closures:{click:"__jolt_closure____home_index_1556__"}},__home_index_1603:{closures:{click:"__jolt_closure____home_index_1569__"}}};Jolt.inst.registerDomNodeHash(c);var h="__home_index_1546_ctx_1";var d=h+"-start";var f=h+"-end";var e;var b=$("footer");if(!b){return}e=new Element("script",{id:d});$("footer").appendChild(e);e=new Element("script",{id:f});$("footer").appendChild(e);Jolt.inst.registerCode(function(n,i){var t=Jolt.inst.pushBlock("__home_index_1546");if(t){var r=Jolt.inst.pushBlock("__home_index_1548");if(r){if((Application.trustguard_enabled)){var p=Jolt.inst.pushBlock("__home_index_1549");if(p){Jolt.inst.popBlock()}}else{var q=Jolt.inst.pushBlock("__home_index_1551");if(q){if(n=="__jolt_closure____home_index_1553__"&&Jolt.inst.isCurrentBlockActive()){var k=Jolt.inst.currentEvent;var v=false;if(!v){Application.navigateTo((k.currentTarget?k.currentTarget.href:Event.findElement(k,"a")))}n=null}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}if(n=="__jolt_closure____home_index_1556__"&&Jolt.inst.isCurrentBlockActive()){var k=Jolt.inst.currentEvent;var v=false;if(!v){Application.navigateTo((k.currentTarget?k.currentTarget.href:Event.findElement(k,"a")))}n=null}if(n=="__jolt_closure____home_index_1558__"&&Jolt.inst.isCurrentBlockActive()){var k=Jolt.inst.currentEvent;var v=false;if(!v){Application.navigateTo((k.currentTarget?k.currentTarget.href:Event.findElement(k,"a")))}n=null}if(n=="__jolt_closure____home_index_1560__"&&Jolt.inst.isCurrentBlockActive()){var k=Jolt.inst.currentEvent;var v=false;if(!v){Application.navigateTo((k.currentTarget?k.currentTarget.href:Event.findElement(k,"a")))}n=null}var m=Jolt.inst.pushBlock("__home_index_1562");if(m){if((User.current().isRegistered())){var l=Jolt.inst.pushBlock("__home_index_1563");if(l){if(n=="__jolt_closure____home_index_1565__"&&Jolt.inst.isCurrentBlockActive()){var k=Jolt.inst.currentEvent;var v=false;if(!v){Application.navigateTo((k.currentTarget?k.currentTarget.href:Event.findElement(k,"a")))}n=null}Jolt.inst.popBlock()}}else{var j=Jolt.inst.pushBlock("__home_index_1567");if(j){if(n=="__jolt_closure____home_index_1569__"&&Jolt.inst.isCurrentBlockActive()){var k=Jolt.inst.currentEvent;var v=false;if(!v){Application.navigateTo((k.currentTarget?k.currentTarget.href:Event.findElement(k,"a")))}n=null}Jolt.inst.popBlock()}}Jolt.inst.popBlock()}if(n=="__jolt_closure____home_index_1572__"&&Jolt.inst.isCurrentBlockActive()){var k=Jolt.inst.currentEvent;var v=false;if(!v){Application.navigateTo((k.currentTarget?k.currentTarget.href:Event.findElement(k,"a")))}n=null}var u=Jolt.inst.pushBlock("__home_index_1574");if(u){if((User.current().isRegistered())){var s=Jolt.inst.pushBlock("__home_index_1575");if(s){if(n=="__jolt_closure____home_index_1577__"&&Jolt.inst.isCurrentBlockActive()){var k=Jolt.inst.currentEvent;var v=false;if(!v){Application.navigateTo((k.currentTarget?k.currentTarget.href:Event.findElement(k,"a")))}n=null}Jolt.inst.popBlock()}}else{var o=Jolt.inst.pushBlock("__home_index_1579");if(o){Jolt.inst.popBlock()}}Jolt.inst.popBlock()}if(n=="__jolt_closure____home_index_1581__"&&Jolt.inst.isCurrentBlockActive()){var k=Jolt.inst.currentEvent;var v=false;if(!v){Application.navigateTo((k.currentTarget?k.currentTarget.href:Event.findElement(k,"a")))}n=null}if(n=="__jolt_closure____home_index_1583__"&&Jolt.inst.isCurrentBlockActive()){var k=Jolt.inst.currentEvent;var v=false;if(!v){Application.navigateTo((k.currentTarget?k.currentTarget.href:Event.findElement(k,"a")))}n=null}if(n=="__jolt_closure____home_index_1585__"&&Jolt.inst.isCurrentBlockActive()){var k=Jolt.inst.currentEvent;var v=false;if(!v){Application.navigateTo((k.currentTarget?k.currentTarget.href:Event.findElement(k,"a")))}n=null}if(n=="__jolt_closure____home_index_1587__"&&Jolt.inst.isCurrentBlockActive()){var k=Jolt.inst.currentEvent;var v=false;if(!v){Application.navigateTo((k.currentTarget?k.currentTarget.href:Event.findElement(k,"a")))}n=null}if(n=="__jolt_closure____home_index_1589__"&&Jolt.inst.isCurrentBlockActive()){var k=Jolt.inst.currentEvent;var v=false;if(!v){Application.navigateTo((k.currentTarget?k.currentTarget.href:Event.findElement(k,"a")))}n=null}if(n=="__jolt_closure____home_index_1591__"&&Jolt.inst.isCurrentBlockActive()){var k=Jolt.inst.currentEvent;var v=false;if(!v){Application.navigateTo((k.currentTarget?k.currentTarget.href:Event.findElement(k,"a")))}n=null}if(n=="__jolt_closure____home_index_1593__"&&Jolt.inst.isCurrentBlockActive()){var k=Jolt.inst.currentEvent;var v=false;if(!v){Application.navigateTo((k.currentTarget?k.currentTarget.href:Event.findElement(k,"a")))}n=null}if(n=="__jolt_closure____home_index_1595__"&&Jolt.inst.isCurrentBlockActive()){var k=Jolt.inst.currentEvent;var v=false;if(!v){Application.navigateTo((k.currentTarget?k.currentTarget.href:Event.findElement(k,"a")))}n=null}Jolt.inst.popBlock()}})};if(document.loaded){a()}else{Jolt.inst.registerDomLoadedCallback(a)}};
registerHTML( "<script type=\"text/javascript\" charset=\"utf-8\">scriptForNode_0();</script>\n<script type=\"text/javascript\">scriptForNode_1();</script>\n<script type=\"text/javascript\" charset=\"utf-8\">scriptForNode_2();</script>\n<script type=\"text/javascript\" charset=\"utf-8\">scriptForNode_3();</script>\n<script type=\"text/javascript\">scriptForNode_4();</script>\n<script type=\"text/javascript\">scriptForNode_5();</script>\n<script type=\"text/javascript\">scriptForNode_6();</script>\n<script type=\"text/javascript\" charset=\"utf-8\">scriptForNode_7();</script>\n<script type=\"text/javascript\">scriptForNode_8();</script>\n<script type=\"text/javascript\">scriptForNode_9();</script>\n<script type=\"text/javascript\">scriptForNode_10();</script>\n<!-- FACEBOOK_ENABLE>\n<fb:login-button onLogin='User.fbLogin()' ></fb:login-button>\n< -->\n<script type=\"text/javascript\">scriptForNode_11();</script>\n<script type=\"text/javascript\">scriptForNode_12();</script>\n<script type=\"text/javascript\">scriptForNode_13();</script>\n<script type=\"text/javascript\">scriptForNode_14();</script>" );
