/**
 * alzui-mini JavaScript Framework, v__VERSION__
 * Copyright (c) 2009 wmingjian@gmail.com. All rights reserved.
 *
 * Licensed under the GNU General Public License v2.
 * For details, see: http://code.google.com/p/alzui/
 */
(function(__global){var __start=new Date().getTime();var _p=Function.prototype;if(!_p.apply){_p.apply=function(thisObj,args){var a=[];if(args){for(var i=0,len=args.length;i<len;i++){a[i]="args["+i+"]";}}
thisObj.__apply__=this;a="thisObj.__apply__("+a.join(",")+")";var r=eval(a);delete thisObj.__apply__;return r;};}
if(!_p.call){_p.call=function(thisObj){var args=[];for(var i=1,len=arguments.length;i<len;i++){args[i-1]=arguments[i];}
return this.apply(thisObj,args);};}
_p=null;var __inDeclare=false;function __newClass(){return function(){if(__inDeclare)return;if(!this._init)
throw"类 "+name+" 定义中缺少构造函数 _init";this._init.apply(this,arguments);if(arguments.length!=0){if(this.create)
this.create.apply(this,arguments);}};}
function __contextImp(){this.alz={};this._init=function(){this.__pkgname="anonymous";this.__context=this;this.runtime=null;this.application=null;};this._class=function(sClass,superClass,classImp){if(!superClass)
superClass=Object;var proto="prototype";var clazz=__newClass();clazz.constructor=clazz;clazz.toString=function(){return"[class "+sClass+"]"};clazz._super=superClass[proto];clazz._clazzImp=classImp;__inDeclare=true;clazz[proto]=new superClass();__inDeclare=false;clazz[proto]._className=sClass;clazz[proto]._clazz=clazz;this.alz[sClass]=clazz;this[sClass]=clazz;if(typeof(classImp)=="function")
classImp.apply(clazz[proto]);};this._import=function(className){this[className]=this.alz[className];};this._package=function(sPackage){};}
var Context=__newClass();__contextImp.apply(Context.prototype);var context=new Context();context.alz.Context=Context;context.Context=Context;with(context){_package("alz.lang");_class("AObject",null,function(){var _super=AObject._super;this._init=function(){this._disposed=false;};this.dispose=function(){this._disposed=true;};this.toString=function(){if(this._className)
return"[object "+this._className+"]";return"[object Object]";};});_package("alz.core");_class("WebAppRuntime",AObject,function(){var _super=WebAppRuntime._super;var __exts=[];WebAppRuntime.regExt=function(ExtClass){var o=new ExtClass();__exts.push(o);for(var k in o){if(k!="init"&&k!="dispose")
WebAppRuntime.prototype[k]=o[k];}
o.init.call(runtime);o=null;};this._init=function(){_super._init.call(this);this._version="1.01.0001";this._startTime=__start;this._debug=false;this._name="__init__";this._parentRuntime=null;this._hostenv="";this._win=__global;this._doc=this._win.document;this.ie=false;this.ff=false;this.ns=false;this.opera=false;this.safari=false;this.chrome=false;this.moz=false;this.ie6=false;this.ie7=false;this.max=false;this.tt=false;this._checkBrowser();this.inGadget=!!(this._win.System&&this._win.System.Gadget);this.option={timer:2000,newMailNum:0};this._boxModel=this.ie?0:1;this._domScript=null;this._config={};this._srvFiles={};this.pathSep="/";this.pathApp="/alzui/";this.pathAui="/alzui/";this.classpath=this.pathAui+"classes/";this.pathLib=this.pathAui+"lib/";this.pathSrv=this.pathAui+"data/";this.pathHtml=this.pathAui+"html/";this.pathImg=this.pathLib+"src/";this.pathIcon=this.pathLib+"src/icon/";this.pathSkin=this.pathLib+"skin/win2k/";this.pathPlugin=this.pathAui+"plugins/";this._conf={};this._info=null;this._testDiv=null;this._zIndex=0;this._components=[];this._libLoader=null;this._librarys={};this._contextList={};this._context=null;this._funs=[];this._apps=[];for(var i=0,len=__exts.length;i<len;i++){__exts[i].init.call(this,arguments);}
this._inited=false;};this.init=function(){var _this=this;function __eventHandle(ev){_this.eventHandle(ev||_this._win.event);}
this.exportInterface(this._win);this._checkHostEnv();this._pathCss=this._config["pathcss"];this.pathPlugin=this._config["pathplugin"];if(this._config["skin"])
this._doc.write("<link rel=\"stylesheet\" type=\"text/css\" href=\""+this.pathLib+"skin/"+this._config["skin"]+"/skin.css\" />");this._preLoadFile("css",this._pathCss,this._config["css"].split(","));if(this._config["plugin"]){var plugins=this._config["plugin"].split(",");for(var i=0,len=plugins.length;i<len;i++){this._preLoadFile("css",this.pathPlugin+plugins[i]+"/css/",[plugins[i]+".css"]);this._preLoadFile("js",this.pathPlugin+plugins[i]+"/js/",[plugins[i]+".js"]);}
plugins=null;}
if(this._config["autotest"])
this._doc.write('<script type="text/javascript" src="'+this._config["autotest"]+'" charset=\"utf-8\"></script>');if(this._doc.attachEvent){try{this._doc.execCommand("BackgroundImageCache",false,true);}catch(ex){}
this._doc.attachEvent("onreadystatechange",__eventHandle);}else{this._doc.addEventListener("DOMContentLoaded",__eventHandle,false);}
if(this.safari||this.chrome)
this.bindEventListener(this._win,"load",__eventHandle);this.bindEventListener(this._win,"unload",__eventHandle);this.bindEventListener(this._win,"resize",__eventHandle);this.bindEventListener(this._doc,"mousedown",__eventHandle);this.bindEventListener(this._doc,"mousemove",__eventHandle);this.bindEventListener(this._doc,"mouseup",__eventHandle);this.bindEventListener(this._doc,"contextmenu",__eventHandle);if(this._config["runmode"]=="11"){this.onContentLoaded();}
if(this._win.onKernelLoaded)
this._win.onKernelLoaded();};this.onContentLoaded=function(bNewWorkspace){if(this._inited)return;this._inited=true;this._newWorkspace=bNewWorkspace;if(this.ie)
this.eventHandle({type:"resize"});this._boxModel=this._testBoxModel();this._libLoader=new LibLoader();this._libLoader.init(this._config["lib"],this._config["codeprovider"],this,"onLibLoad");};this.dispose=function(){if(this._disposed)return;for(var i=0,len=__exts.length;i<len;i++){__exts[i].dispose.apply(this,arguments);}
this._context=null;for(var i=0,len=this._components.length;i<len;i++){this._components[i].dispose();this._components[i]=null;}
this._components=[];this._libLoader.dispose();this._libLoader=null;for(var i=0,len=this._apps.length;i<len;i++){this._apps[i].dispose();this._apps[i]=null;}
this._apps=[];this._testDiv=null;this._info=null;this._domScript=null;this._doc=null;this._win=null;this._parentRuntime=null;_super.dispose.apply(this);};this.getHostenv=function(nav){var re={"ie":/MSIE\x20(\d+(?:\.\d+)+)/,"ff":/Firefox\/(\d+(?:\.\d+)+)/,"ns":/Netscape\/(\d+(?:\.\d+)+)/,"opera":/Opera\/(\d+(?:\.\d+)+)/,"safari":/Version\/(\d+(?:\.\d+)+)Safari\/(\d+(?:\.\d+)+)/,"chrome":/Chrome\/(\d+(?:\.\d+)+)Safari\/(\d+(?:\.\d+)+)/};for(var k in re){if(re[k].test(nav.userAgent)){return k;}}};this._checkBrowser=function(){var nav=this._win.navigator;this._hostenv=this.getHostenv(nav);this.ie=this._hostenv=="ie";this.ff=this._hostenv=="ff";this.ns=this._hostenv=="ns";this.opera=this._hostenv=="opera";this.safari=this._hostenv=="safari";this.chrome=this._hostenv=="chrome";this.moz=this.ns||this.ff;this.ie6=nav.userAgent.indexOf("MSIE 6.0")!=-1;this.ie7=nav.userAgent.indexOf("MSIE 7.0")!=-1;this.max=nav.userAgent.indexOf("Maxthon")!=-1;this.tt=nav.userAgent.indexOf("TencentTraveler")!=-1;};this._checkHostEnv=function(){if(!this._domScript){var ol=this._doc.getElementsByTagName("script");this._domScript=ol[ol.length-1];}
if(this._domScript.src.indexOf(this._name)==-1){while(true){this._domScript=this._domScript.nextSibling;if(this._domScript.nodeType==1&&this._domScript.tagName=="SCRIPT")
break;}}
var keys=["src","lib","skin","runmode","autotest","pathlib","pathapp","pathcss","pathimg","pathplugin","css","skinid","codeprovider","action","conf","plugin"];for(var i=0,len=keys.length;i<len;i++){var key=keys[i];var value=this._domScript.getAttribute(key);this._config[keys[i]]=value!=null?value:"";}
this._conf=this.parseJson(this._config["conf"]||"{}");var rt=this.getMainWindow().runtime;if(rt&&this._config["skinid"]==""){this._config["skinid"]=rt._config["skinid"];}
if(rt&&this._config["codeprovider"]==""){this._config["codeprovider"]=rt._config["codeprovider"];}
rt=null;var config=this._config;for(var k in config){if(typeof config[k]=="string"){config[k]=config[k].replace(/\{\$(\w+)\}/g,function($0,$1){if($1 in config){if($1=="skinid")
return"00"+(parseInt(config[$1])+1);else
return config[$1];}else
return $0;});}}
config=null;var path=this._config["src"];var arr=(/^(.+)(\\|\/)[^\\\/]+$/ig).exec(path);if(arr){this.pathSep=arr[2];this.pathAui=arr[1]+arr[2];this._setPathAui(path.substring(0,path.lastIndexOf(this.pathSep)+1).replace(/lib\/$/,""));}else{this.showException("未能正确定位 alzui 系统位置");return;}
var url=""+window.location;this.pathApp=url.substr(0,url.lastIndexOf("/")+1);this._extendSystemObject();};this._preLoadFile=function(ext,path,files){for(var i=0,len=files.length;i<len;i++){if(ext=="css"){this._doc.write('<link rel="stylesheet" type="text/css" media="all" href="'+path+files[i]+'" />');}else if(ext=="js"){this._doc.write('<script type="text/javascript" charset=\"utf-8\" src="'+path+files[i]+'"></script>');}}};this._testCrossDomainWindow=function(win,type){try{switch(type){case 0:var p=win.parent;break;case 1:if(win.__main__flag)
return true;else
return false;case 2:win.__main__flag=true;break;case 3:win.locaiton.pathname.indexOf("/");break;}
return true;}catch(ex){return false;}};this._getSameDomainTopWindow=function(win){var w,p;while(true){w=p||win;if(!this._testCrossDomainWindow(w,0)){return null;}
p=w.parent;if(p==null)break;if(p==w){if(this._testCrossDomainWindow(w,1)){return w;}
if(this._testCrossDomainWindow(w,2)){return w;}else{return null;}}
if(!this._testCrossDomainWindow(p,2)){if(this._testCrossDomainWindow(w,2)){return w;}else{return null;}}
p.__main__flag=null;}
return w;};this.getMainWindow=function(){var win=this._getSameDomainTopWindow(window);if(!this.inGadget){try{while(win.opener!=null){var w=this._getSameDomainTopWindow(win.opener);if(!w){return win;}
if((this.chrome||this.safari)&&!this._testCrossDomainWindow(w,3)){return win;}
win=w;}}catch(ex){}}else{win=System.Gadget.document.parentWindow;win.__main__flag=true;}
return win;};this._setPathAui=function(v){this.pathAui=v;this.classpath=v+"classes/";this.pathLib=this._config["pathlib"]||v+"lib/";this.pathSrv=v+"data/";var ext=this._win&&this._win.location.port=="8081"?".jsp":".asp";this._srvFiles["service"]="service"+ext;this._srvFiles["tool"]="tool"+ext;this._srvFiles["vfs"]="vfs"+ext;this.pathHtml=v+"html/";this.pathImg=this.pathLib+"src/";this.pathIcon=this.pathLib+"src/icon/";this.pathSkin=this.pathLib+"skin/win2k/";};this._extendSystemObject=function(){var _p=Array.prototype;_p.removeAt=function(i){this.splice(i,1);};if(!_p.pop){_p.pop=function(){var UNDEFINED;if(this.length===0){return UNDEFINED;}
return this[--this.length];};}
if(!_p.push){_p.push=function(){for(var i=0,len=arguments.length;i<len;i++){this[this.length]=arguments[i];}
return this.length;};}
_p.indexOf=function(o){for(var i=0,len=this.length;i<len;i++){if(this[i]==o)return i;}
return-1;};_p=Date.prototype;_p.toMyString=function(type){var y=this.getFullYear();var m=this.getMonth()+1;var d=this.getDate();var h=this.getHours();var n=this.getMinutes();var s=this.getSeconds();switch(type){case 1:return y+"年"+m+"月"+d+"日";case 2:return y+"-"+m+"-"+d;case 3:return h+":"+n+":"+s;case 4:return n+":"+s;case 5:return y
+"-"+(m<10?"0"+m:m)
+"-"+(d<10?"0"+d:d);case 6:return(""+y).substr(2)+(m<10?"0"+m:m);case 7:return""+(h<10?"0"+h:h)
+(n<10?"0"+n:n)
+(s<10?"0"+s:s);case 8:return n+":"+s+" "+this.getMilliseconds();case 9:return y+"年"+m+"月"+d+"日 "
+h+"时"
+(n<10?"0"+n:n)+"分"
+(s<10?"0"+s:s)+"秒";case 10:return y+"年"+m+"月"+d+"日"
+"(星期"+("日一二三四五六".charAt(this.getDay()))+") "
+(["上午","下午"][this.getHours()<12?0:1])
+(h<10?"0"+h:h)+":"
+(n<10?"0"+n:n);case 0:default:return y+"-"+m+"-"+d+" "+h+":"+n+":"+s;}};if(this.moz){_p=HTMLElement.prototype;_p.__defineGetter__("outerHTML",function(){var str="<"+this.tagName;var a=this.attributes;for(var i=0,len=a.length;i<len;i++){if(a[i].specified)
str+=" "+a[i].name+'="'+a[i].value+'"';}
if(!this.canHaveChildren)
return str+" />";return str+">"+this.innerHTML+"</"+this.tagName+">";});_p.__defineSetter__("outerHTML",function(s){var r=this.ownerDocument.createRange();r.setStartBefore(this);var df=r.createContextualFragment(s);this.parentNode.replaceChild(df,this);return s;});_p.__defineGetter__("canHaveChildren",function(){return!/^(area|base|basefont|col|frame|hr|img|br|input|isindex|link|meta|param)$/.test(this.tagName.toLowerCase());});_p=Event.prototype;_p.__defineSetter__("cancelBubble",function(b){if(b)this.stopPropagation();return b;});_p.__defineGetter__("offsetX",function(){return this.layerX;});_p.__defineGetter__("offsetY",function(){return this.layerY;});_p.__defineGetter__("srcElement",function(){var n=this.target;while(n.nodeType!=1)n=n.parentNode;return n;});XMLDocument.prototype.selectNodes=Element.prototype.selectNodes=function(xpath){var xpe=new XPathEvaluator();var nsResolver=xpe.createNSResolver(this.ownerDocument==null?this.documentElement:this.ownerDocument.documentElement);var result=xpe.evaluate(xpath,this,nsResolver,0,null);var found=[];var res;while(res=result.iterateNext())
found.push(res);return found;};XMLDocument.prototype.selectSingleNode=Element.prototype.selectSingleNode=function(xpath){var x=this.selectNodes(xpath);if(!x||x.length<1)return null;return x[0];};}
_p=null;};this.addOnLoad=function(fun){this._funs.push(fun);};this.bindEventListener=function(obj,type,eventHandle){if(obj.attachEvent){obj.attachEvent("on"+type,eventHandle);}else if(obj.addEventListener){obj.addEventListener(type,eventHandle,false);}else{throw"该浏览器无法对 DOM 元素绑定事件";}};this.eventHandle=function(ev){switch(ev.type){case"load":if(!(this.safari||this.chrome))break;case"readystatechange":if(this._win.attachEvent&&this._doc.readyState!="complete")
return;case"DOMContentLoaded":if(this._inited)return;this.onContentLoaded();break;case"unload":try{this.dispose();}catch(ex){}
break;case"resize":if(this.onResize)
this.onResize(ev);break;case"contextmenu":break;case"mousedown":case"mousemove":case"mouseup":if(this._workspace&&this._workspace.eventHandle)
this._workspace.eventHandle(ev);break;default:break;}};this.getConfigData=function(key){return this._config[key];};this.setConfigData=function(key,value){this._config[key]=value;};this.getConfData=function(key){return this._conf[key];};this.setConfData=function(key,value){this._conf[key]=value;};this.getThemeName=function(){return"skin001";};this.getWindow=function(){return this._win;};this.setWindow=function(v){this._win=v;};this.getDocument=function(){return this._doc;};this.setDocument=function(v){this._doc=v;};this.getContext=function(){return this._context;};this.setContext=function(v){this._context=v;};this.createContext=function(name){if(name in this._contextList){this._win.alert("上下文环境 "+name+" 已经存在，请检查是否重名？");return null;}else{var cxt=new Context();cxt.__pkgname=name;cxt.runtime=this;for(var k in this._context.alz){if(!(k in cxt))
cxt[k]=this._context.alz[k];}
this._contextList[name]=cxt;return cxt;}};this.regLib=function(name,lib){if(this._librarys[name]){this._win.alert("库 "+name+" 已经存在，请检查是否重名？");return;}
this._librarys[name]=lib;};this.onLibLoad=function(libName){var lib=this._librarys[libName];if(lib){if(typeof(lib)=="function")
lib();else if(typeof(lib)=="object"&&typeof(lib["init"])=="function")
lib["init"].apply(this);}else{if(typeof(this.onLoad)=="function")
this.onLoad();for(var i=0,len=this._funs.length;i<len;i++){this._funs[i]();}
for(var i=0,len=this._apps.length;i<len;i++){if(this._apps[i].init)
this._apps[i].init();}
for(var i=0,len=this._apps.length;i<len;i++){this._apps[i].onContentLoad();}
this.eventHandle({type:"resize"});if(typeof this._win.onContentLoaded=="function")
this._win.onContentLoaded();else if(this._win.__webpage__){new this._win.__webpage__().main();}}
lib=null;};this.log=function(str){};this.warning=function(str){};this.error=function(str){};this.exportInterface=function(scope){scope.runtime=this;scope.$get=function(id){return this.runtime.getComponentById(id);};scope.$init=function(ids){return this.runtime.initComponents(ids);};};this.getBoxModel=function(){return this._boxModel;};this._createTestDiv=function(){var obj=this._doc.createElement("div");obj.style.position="absolute";obj.style.left="-2000px";obj.style.top="-2000px";return this._doc.body.appendChild(obj);};this._testBoxModel=function(){if(!this._doc.body)
throw"'document.body' have not ready now";if(!this._testDiv){this._testDiv=this._createTestDiv();}
this._testDiv.style.width="100px";this._testDiv.style.height="100px";this._testDiv.style.border="1px solid #000000";this._testDiv.style.padding="1px";var nType=this._testDiv.offsetWidth==104?1:0;this._testDiv.style.width="";this._testDiv.style.height="";this._testDiv.style.border="";this._testDiv.style.padding="";return nType;};this.getTextSize=function(text,font){if(!this._testDiv){this._testDiv=this._createTestDiv();}
this._testDiv.style.font=font||"8pt tahoma";this._testDiv.innerHTML=text;return{w:this._testDiv.offsetWidth,h:this._testDiv.offsetHeight};};this.getParentRuntime=function(){if(!this._parentRuntime){if(!this._win.parent){return null;}
if(this._win.parent==this._win){return null;}
this._parentRuntime=this._win.parent.runtime;}
return this._parentRuntime;};this.getElement=function(id){return this._doc.getElementById(id);};this.getBody=function(){if(this.inGadget)
return this._doc.body;else
return this.getElement("body")||this._doc.body;};this.getUser=function(){if(this.getContext()&&this.getContext().getUser)
return this.getContext().getUser();else
return this.getParentRuntime().getContext().getUser();};this.getNextZIndex=function(){return++this._zIndex;};this.createApp=function(appClassName,parentApp,len){var app=new alz[appClassName](parentApp,len);this._apps.push(app);return app;};this.getAppByClassName=function(className){for(var i=0,len=this._apps.length;i<len;i++){if(this._apps[i]._className==className)
return this._apps[i];}
return null;};this.getRandomColor=function(){var a=[];for(var i=0;i<3;i++){a[i]=Math.round(191+64*Math.random()).toString(16);if(a[i].length<2)a[i]="0"+a[i];}
return"#"+a.join("");};this.getViewPort=function(element){var rect={x:element.scrollLeft,y:element.scrollTop,w:element.clientWidth,h:Math.max(element.clientHeight,element.parentNode.clientHeight)};rect.w=Math.max(element.clientWidth,element.parentNode.clientWidth);rect.h=Math.max(element.clientHeight,element.parentNode.clientHeight);return rect;};this.parseJson=function(data){if(data=="")return null;try{return eval("("+data+")");}catch(ex){if(this._debug){this.showException(ex,"parse json data error");}
return null;}};this.toJsString=function(str){if(typeof str!="string")return"";return str.replace(/[\\\'\"\r\n]/g,function(_0){switch(_0){case"\\":return"\\\\";case"\'":return"\\\'";case"\"":return"\\\"";case"\n":return"\\n";case"\r":return"\\r";}});};this.parseTemplate=function(code){var sBegin="<"+"%",sEnd="%"+">";var sb=[];sb.push("function(){");sb.push("\nvar __sb = [];\n");var p1=code.indexOf(sBegin);var p2=-2;while(p1!=-1){if(p1>p2+2){sb.push("__sb.push(\""+this.toJsString(code.substring(p2+2,p1))+"\");");}
p2=code.indexOf(sEnd,p1+2);if(p2!=-1){switch(code.charAt(p1+2)){case'=':sb.push("__sb.push("+code.substring(p1+3,p2)+");");break;default:sb.push(code.substring(p1+2,p2));break;}}else{return"模板中的'"+sBegin+"'与'"+sEnd+"'不匹配！";}
p1=code.indexOf(sBegin,p2+2);}
if(p2!=-2&&p2+2<code.length){sb.push("__sb.push(\""+this.toJsString(code.substr(p2+2))+"\");");}
sb.push("return __sb.join(\"\");");sb.push("\n}");return sb.join("");};});_package("alz.core");_class("LibLoader",AObject,function(){var _super=LibLoader._super;this._init=function(){_super._init.call(this);this._rt=null;this._libs=[];this._libExt=".lib.js";this._codeProvider="";this._index=0;this._agent=null;this._funName="";};this.dispose=function(){this._agent=null;this._libs=[];this._rt=null;_super.dispose.apply(this);};this.init=function(libList,codeProvider,agent,funName){this._rt=agent;this._libs=libList==""?[]:libList.split(",");this._codeProvider=codeProvider;this._agent=agent;this._funName=funName;this._start();};this._start=function(){var _this=this;this._rt._win.setTimeout(function(){_this._loadLib();},10);};this.getUrlByName=function(name){var src;if(this._codeProvider!=""){src=this._codeProvider.replace(/\{libname\}/g,name.substr(0,1)!="#"?name:name.substr(1));}else{if(name.substr(0,1)!="#")
src=this._rt.pathLib+name+this._libExt;else
src=(this._rt._config["pathapp"]||this._rt.pathApp+"lib/")+name.substr(1)+this._libExt;}
return src;};this._loadLib=function(){if(this._index>=this._libs.length){this._agent[this._funName]();return;}
this.loadLibScript(this._libs[this._index]);};this.loadLibScript=function(libName,callback){var obj=this._rt._doc.createElement("script");obj.type="text/javascript";obj.charset="utf-8";obj.src=this.getUrlByName(libName);var _this=this;obj[this._rt.ie?"onreadystatechange":"onload"]=function(){if(_this._rt.ie&&this.readyState!="loaded"&&this.readyState!="complete")return;if(callback)
callback();else
_this._onLoad();this[_this._rt.ie?"onreadystatechange":"onload"]=null;};this._rt._domScript.parentNode.appendChild(obj,this._rt._domScript);obj=null;};this._onLoad=function(){this._agent[this._funName](this._libs[this._index].replace(/#/g,""));this._index++;if(this._index<this._libs.length)
this._start();else
this._agent[this._funName]();};});WebAppRuntime.regExt(function(){this.init=function(){};this.dispose=function(){};this.addMethods=function(destination,source){for(var property in source){destination[property]=source[property];}
return destination;};this.toArray=function(iterable){if(!iterable)return[];if(iterable.toArray){return iterable.toArray();}else{var results=[];for(var i=0,len=iterable.length;i<len;i++)
results.push(iterable[i]);return results;}};this.forIn=function(obj){if(typeof(obj)=="string")return[obj];var a=[];for(var k in obj){a.push(k+"="+(typeof(obj[k])=="function"?"[function]":obj[k]));}
return a;};this.showException=function(e,info){var a=this.forIn(e);if(info)a.push(info);this._win.alert(a.join("\n"));};this.showInfo=function(info){if(!this._info){var body=this.getBody();var obj=this._doc.createElement("div");obj.className="wui-Loging";obj.style.display="none";this._info=body.appendChild(obj);obj=null;body=null;}
this._info.innerHTML=info;if(this._info.style.display=="none"){this._info.style.display="block";this._info.style.width=(this.getBody().offsetWidth-20)+"px";}};this.hideInfo=function(){if(this._info)
this._info.style.display="none";};});var rt=new alz.WebAppRuntime();runtime=rt;rt._contextList[rt._name]=__context;rt.setContext(__context);rt.init();if(rt.getDocument().body)rt.onContentLoaded();rt=null;}})(this);
