function AppendLog(){}function EnableToolTip(n,t){$(n).tooltip({bodyHandler:function(){return t},showURL:!1})}function DisableToolTip(n){$(n).tooltip("disable")}function IsRubyCallbackMgrRunning(){return _rubyCallbackMgr!=null}function RubyCallbackStart(){_waitingOnRuby=!0}function RubyCallbackComplete(){_waitingOnRuby=!1}function IsWaitingOnRuby(){return _waitingOnRuby}function RunCallback(n,t){t=typeof t=="undefined"?!1:t,!t&&IsRubyCallbackMgrRunning()?_callbacks.push(n):(RubyCallbackStart(),window.location=n)}function _ProcessRubyCallBack(){if(!IsWaitingOnRuby()&&_callbacks.length>0){var n=_callbacks.shift();RubyCallbackStart(),window.location=n}}function _RunFunctionUnderSynchronousCallbackMode(n,t){_rubyCallbackMgr=setInterval(function(){_ProcessRubyCallBack()},5),n(t),setTimeout(function(){for(clearInterval(_rubyCallbackMgr),_rubyCallbackMgr=null,i=0;i<_callbacks.length;++i)setTimeout(function(){_ProcessRubyCallBack()},i*10)},500)}function subToolMouseOver(n,t){var u=n,i=$(u),r="images/drawoutlineactive24.png";t=="over"&&(i.fadeOut("fast",function(){switch(u){case"#imgDrawOutline":case"#imgFloorDrawOutline":r="images/drawoutlineactive24.png";break;case"#imgPickWall":case"#imgFloorPickWall":r="images/pickwallactive24.png"}i.attr("src",r)}),i.fadeIn("fast")),t=="out"&&(i.fadeOut("fast",function(){switch(u){case"#imgDrawOutline":case"#imgFloorDrawOutline":r="images/drawoutlineenabled24.png";break;case"#imgPickWall":case"#imgFloorPickWall":r="images/pickwallenabled24.png"}i.attr("src",r)}),i.fadeIn("fast"))}function decimalEq(n,t,i){i=typeof i!="undefined"?i:.01;var r=parseFloat(n),u=parseFloat(t);return Math.abs(r-u)<i}function FixCharsForRuby(n){return n=n.replace(/\s*$/,""),n.replace(/'/g,"`")}function setCookie(n,t,i){var r=new Date,u;r.setDate(r.getDate()+i),u=escape(t)+(i==null?"":"; expires="+r.toUTCString()),document.cookie=n+"="+u}function getCookie(n){if(document.cookie){for(var r,u,i=document.cookie.split(";"),t=0;t<i.length;t++)if(r=i[t].substr(0,i[t].indexOf("=")),u=i[t].substr(i[t].indexOf("=")+1),r=r.replace(/^\s+|\s+$/g,""),r==n)return unescape(u)}else return""}function GetRoofSubToolCookie(){var t=ROOF_GIZMO_NONE,n=getCookie(BE_ROOF_SUBTOOL_COOKIE);return n!==""&&(n===ROOF_GIZMO_DRAW_OUTLINE||n===ROOF_GIZMO_PICK_WALL_DRAW_OUTLINE)&&(t=n),t}function SetRoofSubToolCookie(n){setCookie(BE_ROOF_SUBTOOL_COOKIE,n,1)}function GetFloorSubToolCookie(){var t=FLOOR_GIZMO_NONE,n=getCookie(BE_FLOOR_SUBTOOL_COOKIE);return n!==""&&(n===FLOOR_GIZMO_DRAW_OUTLINE||n===FLOOR_GIZMO_PICK_WALL_DRAW_OUTLINE)&&(t=n),t}function SetFloorSubToolCookie(n){setCookie(BE_FLOOR_SUBTOOL_COOKIE,n,1)}function dummyWait(){var n=$(this).attr("mode");switch(n){case"wall":SaveWallProperties();break;case"roof":SaveRoofProperties();break;case"wall_opening":SaveWallOpeningProperties();break;case"floor":SaveFloorProperties()}}Authentication={NotAuthorized:0,FullVersion:1,FreeVersion:2};var _waitingOnRuby=!1,_callbacks=[],_rubyCallbackMgr=null