function ScriptResolver(name) { var xh; if(typeof(XMLHttpRequest)!="undefined") xh=new XMLHttpRequest(); else xh=new ActiveXObject("Microsoft.XMLHTTP"); //xh.open("GET",__cc_urlbase+name+".js?_random="+new Date().getTime(),false);//no cache xh.open("GET",__cc_urlbase+name+".js",false); xh.send(""); if(xh.status!=200) { throw(new Error("unable to load library "+name)); } return xh.responseText; } function ScriptExecutor(script,name) { if(window.execScript) window.execScript(script,"JavaScript"); else eval(script); } // var OxOfd99=["message"," \x0D\x0AinnerError: ","innerError","Object \x27","\x27 Is Null.","prototype","return this.ConvertTo(\x27","\x27).",".apply(this,arguments);","MethodName",".","SkipStackTrace","Method","string","Name"," Not Implement Interface Method : ","TypeDefine"," Is Protected","_instproto","this","{","}","typename","Type \x27","\x27 Not Found.","_sl_state","_convert_to_","Type","Class","length","Instance","ThisInterfaces","Can Not Convert \x27","\x27 To \x27","\x27","\x3Cpre\x3E","\x3C/pre\x3E","//****************************************************************","//for class ","thefunc=function _SL_CreateInstance_Core(){","var state={InternalToString:_SL_State_InternalToString,_sl_type:typeDef}","var InstanceConstructor=new Function(\x27\x27,\x27\x27);","Prototype","var PrototypeWrapper=new Function(\x27\x27,\x27\x27);","PrototypeWrapper.prototype=typeDef.Prototype;","var _instproto=InstanceConstructor.prototype=new PrototypeWrapper();","var _instproto=InstanceConstructor.prototype","_instproto.toString=_SL_Call_ToString;","_instproto.GetType=_SL_Object_GetType;","_instproto.ConvertAs=_SL_Object_ConvertAs;","_instproto.ConvertTo=_SL_Object_ConvertTo;","state.Instance=new InstanceConstructor();","_instproto._sl_state=state;","_instproto._sl_instance=state.Instance;","","//Define Interface Instances","state.ThisInterfaces=[];","ClassLevel","Interfaces","var interface","=new InstanceConstructor();//let interface has the default methods","state.ThisInterfaces[","]=interface",";//","BaseType","//Define this and base","Interceptor","//","var this","=new InstanceConstructor();","state[\x27","\x27]=this",";","//Define methods , from child to parent","Methods","var method_","_","=__SL_Script_CreateMethod(",",MethodDefs[","]);","method_","_instproto.","=method_","Public","state.Instance.","=StaticItems[","];//not public","//Define base methods , from child to parent","Override","BaseMethod",".base_","//Override interface methods","!","InterfaceMap","interface","=__SL_Script_CreateInterfaceImplement(",",InterfaceMap[","=__SL_Script_CreateInterfaceDefault(interface",",Interfaces[","].Methods[","])","];//NotImplement","//_SL_CreateInterfaces_Core","\x0D\x0A"," ","//Call constructors","Constructor",".base_constructor=__SL_Script_CreateConstructor(",",Constructors[","this1.base_constructor=_SL_ObjectConstructor;","return [state,","] ]","//end class ","base_constructor","className","ConstructFunction","\x27 Is Not Class.","IsAbstract","\x27 Is Abstract.","obj","baseType","Interface","name","descriptor","Object"," \x27","\x27 Is Not Class","SimpleType \x27","\x27 Already Exists","\x27 Already Exists.","Descriptor","descriptor not saved","method","Class \x27","\x27 Already Have Constructor","interceptor","reflector","Reflector","modifier"," Already Contains Method \x27","Abstract","Virtual","Protected","Can Not Define \x27public\x27 after \x27protected\x27","Can Not Define \x27protected\x27 after \x27public\x27","Can Not Define \x27virtual\x27 after \x27abstract\x27","Can Not Define \x27virtual\x27 after \x27override\x27","Can Not Define \x27override\x27 after \x27virtual\x27","Can Not Define \x27override\x27 after \x27abstract\x27","Unknown Modifier \x27","override","abstract","virtual","protected","public","Access","Method \x27","\x27 Must Define As \x27public\x27 Or \x27protected\x27"," Already Contains Virtual Method \x27","\x27 Must Have Same Access With Base Method Definition (\x27","\x27)","VirtualIndex","Base Type Have Not Contains Overridable Method \x27","getMethod","Get","Set","Properties","\x27 Is Not Interface.","Implement \x27","\x27 Beore Implement \x27","ClassName","interfaceName","methodName","InterfaceMap \x27","\x27.\x27","\x27 Already Defined","Interface Should Not Have Base Types , Implement Them Instead","undefined","ScriptExecutor Is Not Defined","ScriptResolver Is Not Defined","Library \x27","\x27 Already Loaded","_sl_instance","ctor","\x27 Not Found","core","IEventSource","AttachEvent","DetachEvent","GetEventHandlers","FireEvent","_IEventSource_maps","constructor","IAttributeParser","ParseAttribute","IChildrenParser","AppendChild","IXmlDataParser","ParseXmlData","ISupportInit","BeginInit","EndInit","IXmlClass","-1","1","on","yes","true","boolean","^","Error parsing expression:","~","$","TEXT_","Microsoft.XMLHTTP","GET","onreadystatechange","readyState","status","statusText",":","responseXML","errorCode","parseError","documentElement","Unknown Error","childNodes","nodeType","tagName","*","item","text","textContent","nodeValue","xml","Fragment","public virtual","Parent","_parent","_enable","rootOrDom","object","parent","Arguments","_On","On","/","parentNode","Invalid Element:","OnEvent","Property","Execute","Scripts","Error parsing code : ","TypeName","String","Value","Unknown Literal Type:","Number","_class","_property","null","No Parent Object For _property:","Invalid _property:","Literal","XmlData","attributes","nodeName","REM_","No Parent Object For _member:","Invalid Attribute:","_member","_global","AttrNames","AttrValues","Code","Modifiers","Constructor Already Defined","GetCode","SetCode","_DynamicConstructor","Text","this.base_constructor","this.base_constructor.apply(this,arguments);\x0D\x0A","_Constructor_Code","_Get","value","_Set","Error parsing code for ","GetCaller","caller","(","anonymous function"," ... (recursive)","function"," .., (recursive)","\x0A","\x26#39;","quot;","\x26gt;","\x26lt;","\x26amp;","write","\x3Chtml\x3E\x3Ctitle\x3ECLASSES\x3C/title\x3E\x3Cbody\x3E","\x3Cspan style=\x27color:red;font-weight:bold\x27 onclick=\x27var s=div_class_",".style;s.display=s.display?\x22\x22:\x22none\x22;\x27\x3E","\x3C/span\x3E"," - ","\x3Cdiv id=div_class_"," style=\x27display:none\x27\x3E","Interfaces:","\x3Cbr/\x3E"," ","Properties:","Methods:","\x3Cspan style=\x27color:#666666;font-weight:bold\x27 title=\x22","\x22 onclick=\x27alert(this.title)\x27\x3E","public ","protected ","abstract ","virtual ","override ","\x3C/div\x3E","\x3Chr\x3E","\x3C/body\x3E\x3C/html\x3E","document","about:blank"];var _SL_Debug=false;var _SL_Debug_PreEmit=false;var _SL_Debug_InstanceCount_=0x0;var _SL_Debug_MethodInvoke_=0x0;var _SL_SaveDescriptor=true;var _SL_Debug_EmitScriptTime_=0x0;var _SL_Debug_AllocationTime_=0x0;var _SL_Debug_ConstructTime_=0x0;var _SL_Debug_AllPublic=false;var _SL_Debug_WriteScript=false; function _SL_Debug_Write(Ox6b){ document.write(Ox6b) ;} ;if(!_SL_Debug){ _SL_Debug_AllPublic=false ; _SL_Debug_WriteScript=false ;} ;var _SL_GlobalObject=this;var __SL_Variables={}; function _SL_Eval(Oxba){return eval(Oxba);} ; function _SL_SetVariable(Oxf,Oxbc){ __SL_Variables[Oxf]=Oxbc ;} ; function _SL_GetVariable(Oxf){return __SL_Variables[Oxf];} ; function _SL_ExpandVariables(Oxbf){return Oxbf.replace(/\%(.+)\%/g,_SL_ExpandVariables_Replace);} ; function _SL_ExpandVariables_Replace(Oxc1,Oxc2,Ox12){return __SL_Variables[Oxc2]||Oxc1;} ; function _SL_CreateException(Ox75,Oxc4){if(Oxc4){ Ox75+=OxOfd99[0x1]+Oxc4[OxOfd99[0x0]] ;} ;var Oxc5= new Error(Ox75); Oxc5[OxOfd99[0x2]]=Oxc4 ;return Oxc5;} ; function _SL_CheckNullException(Oxc7,Oxf){if(Oxc7==null){throw (_SL_CreateException(OxOfd99[0x3]+Oxf+OxOfd99[0x4]));} ;} ; function _SL_ApplyConstructor(ctor,Ox33){ function Oxca(){} ; Oxca[OxOfd99[0x5]]=ctor[OxOfd99[0x5]] ;var obj= new Oxca();return ctor.apply(obj,Ox33||[])||obj;} ;var _SL_SimpleTypes={};var _SL_Types={};var _SL_Libs={}; function _SL_CreateInterfaceMethodWrapper(Oxd0,Oxd1){var func= new Function(OxOfd99[0x6]+Oxd0+OxOfd99[0x7]+Oxd1+OxOfd99[0x8]); func[OxOfd99[0x9]]=Oxd0+OxOfd99[0xa]+Oxd1 ;return func;} ; function __SL_Script_CreateConstructor(Oxd4,Oxd5){ Oxd6[OxOfd99[0xb]]=true ;return Oxd6; function Oxd6(){var Oxd7=Oxd5; _SL_Debug_MethodInvoke_++ ;return Oxd7.apply(Oxd4,arguments);} ;} ;var showed=false; function __SL_Script_CreateMethod(Oxd4,methodDef){ Oxdb[OxOfd99[0xb]]=true ;return Oxdb; function Oxdb(){var Oxd7=methodDef[OxOfd99[0xc]]; _SL_Debug_MethodInvoke_++ ;return Oxd7.apply(Oxd4,arguments);} ;} ; function __SL_Script_CreateInterfaceDefault(Oxdd,methodDef){ Oxde[OxOfd99[0xb]]=true ;return Oxde; function Oxde(){var Oxd7=methodDef[OxOfd99[0xc]];if( typeof (Oxd7)==OxOfd99[0xd]){ Oxd7=_SL_Eval(Oxd7) ;} ; _SL_Debug_MethodInvoke_++ ;return Oxd7.apply(Oxdd,arguments);} ;} ; function __SL_Script_CreateInterfaceImplement(Oxd4,Oxd5){ Oxe0[OxOfd99[0xb]]=true ;return Oxe0; function Oxe0(){var Oxd7=Oxd5;if( typeof (Oxd7)==OxOfd99[0xd]){ Oxd7=_SL_Eval(Oxd7) ;} ; _SL_Debug_MethodInvoke_++ ;return Oxd7.apply(Oxd4,arguments);} ;} ; function __SL_Script_CreateNotImplementMethod(intfdef,Ox4b){ Oxe3[OxOfd99[0xb]]=true ;return Oxe3; function Oxe3(){throw (_SL_CreateException(typeDef[OxOfd99[0xe]]+OxOfd99[0xf]+intfdef[OxOfd99[0xe]]+OxOfd99[0xa]+Ox4b));} ;} ; function __SL_Script_CreateNonPublicErrorMethod(methodDef){ Oxe5[OxOfd99[0xb]]=true ;return Oxe5; function Oxe5(){throw (_SL_CreateException(methodDef[OxOfd99[0x10]][OxOfd99[0xe]]+OxOfd99[0xa]+methodDef[OxOfd99[0xe]]+OxOfd99[0x11]));} ;} ; function __SL_Script_GetThisName(level){if(level==0x0){return OxOfd99[0x12];} ;return OxOfd99[0x13]+level;} ; function _SL_CreateInstance_ConstructFunction(typeDef){var StaticItems=[];var Classes=[];var Interfaces=[];var InterfaceMap=[];var MethodDefs=[];var Constructors=[];var Interceptors=null; function _SL_Call_ToString(){return OxOfd99[0x14]+typeDef[OxOfd99[0xe]]+OxOfd99[0x15];} ; function _SL_State_InternalToString(){return OxOfd99[0x14]+typeDef[OxOfd99[0xe]]+OxOfd99[0x15];} ; function _SL_Object_GetType(){return typeDef;} ; function _SL_Object_ConvertAs(typename){ _SL_CheckNullException(typename,OxOfd99[0x16]) ;var def=_SL_Types[typename];if(def==null){throw (_SL_CreateException(OxOfd99[0x17]+typename+OxOfd99[0x18]));} ;var state=this[OxOfd99[0x19]];var obj=state[OxOfd99[0x1a]+typename];if(obj){if(obj==0x0){return null;} ;return obj;} ;if(def[OxOfd99[0x1b]]==OxOfd99[0x1c]){for(var level=0x0;level=0x0;level--){var thisdef=Classes[level]; script1[script1[OxOfd99[0x1d]]]=OxOfd99[0x43]+Classes[level][OxOfd99[0xe]] ;for(var i=0x0;i=0x0;level--){var thisdef=Classes[level];for(var i=0x0;i=0x0;level--){var thisdef=Classes[level];var func=thisdef[OxOfd99[0x5d]][intfdef[OxOfd99[0xe]]+OxOfd99[0x5c]+intfmethod];if(func!=null){ script2[script2[OxOfd99[0x1d]]]=OxOfd99[0x5e]+n+OxOfd99[0xa]+intfmethod+OxOfd99[0x5f]+__SL_Script_GetThisName(level)+OxOfd99[0x60]+InterfaceMap[OxOfd99[0x1d]]+OxOfd99[0x4f] ; InterfaceMap[InterfaceMap[OxOfd99[0x1d]]]=func ; hasimpl=true ;break ;} ;} ;if(!hasimpl){if(methodDef[OxOfd99[0xc]]){ script2[script2[OxOfd99[0x1d]]]=OxOfd99[0x5e]+n+OxOfd99[0xa]+intfmethod+OxOfd99[0x61]+n+OxOfd99[0x62]+n+OxOfd99[0x63]+m+OxOfd99[0x64] ;} else { script2[script2[OxOfd99[0x1d]]]=OxOfd99[0x5e]+n+OxOfd99[0xa]+intfmethod+OxOfd99[0x55]+StaticItems[OxOfd99[0x1d]]+OxOfd99[0x65] ; StaticItems[StaticItems[OxOfd99[0x1d]]]=__SL_Script_CreateNotImplementMethod(intfdef,intfmethod) ;} ;} ;} ;} ; script1[script1[OxOfd99[0x1d]]]=OxOfd99[0x36] ; script1[script1[OxOfd99[0x1d]]]=OxOfd99[0x66] ; script1[script1[OxOfd99[0x1d]]]=OxOfd99[0x36] ; script1[script1[OxOfd99[0x1d]]]=OxOfd99[0x68]+script2.join(OxOfd99[0x67]) ;} ; script1[script1[OxOfd99[0x1d]]]=OxOfd99[0x36] ; script1[script1[OxOfd99[0x1d]]]=OxOfd99[0x69] ; script1[script1[OxOfd99[0x1d]]]=OxOfd99[0x36] ;for(var level=Classes[OxOfd99[0x1d]]-0x1;level>=0x0;level--){var ctor=Classes[level][OxOfd99[0x6a]];if(ctor!=null){ Constructors[level]=ctor ;} else { Constructors[level]=_SL_DefaultConstructor ;} ;if(level>0x1){ script1[script1[OxOfd99[0x1d]]]=__SL_Script_GetThisName(level)+OxOfd99[0x6b]+__SL_Script_GetThisName(level-0x1)+OxOfd99[0x6c]+(level-0x1)+OxOfd99[0x4f] ;} ;} ;if(Classes[OxOfd99[0x1d]]>0x1){ script1[script1[OxOfd99[0x1d]]]=OxOfd99[0x6d] ;} ; script1[script1[OxOfd99[0x1d]]]=OxOfd99[0x6e]+__SL_Script_GetThisName(Classes[Classes[OxOfd99[0x1d]]-0x1].ClassLevel)+OxOfd99[0x6c]+(Classes[OxOfd99[0x1d]]-0x1)+OxOfd99[0x6f] ; script1[script1[OxOfd99[0x1d]]]=OxOfd99[0x15] ; script1[script1[OxOfd99[0x1d]]]=OxOfd99[0x70]+typeDef[OxOfd99[0xe]] ; script1[script1[OxOfd99[0x1d]]]=OxOfd99[0x25] ;return script1.join(OxOfd99[0x67]);} ;} ; function _SL_ObjectConstructor(){} ; function _SL_DefaultConstructor(){if(this[OxOfd99[0x71]]){ this[OxOfd99[0x71]].apply(this,arguments) ;} ;} ; function _SL_CreateInstance(Oxeb,Ox33){ _SL_CheckNullException(Oxeb,OxOfd99[0x72]) ;var typeDef=_SL_Types[Oxeb];if(typeDef==null){throw (_SL_CreateException(OxOfd99[0x17]+Oxeb+OxOfd99[0x18]));} ;var Oxed,Oxee;if(!typeDef[OxOfd99[0x73]]){if(typeDef[OxOfd99[0x1b]]!=OxOfd99[0x1c]){throw (_SL_CreateException(OxOfd99[0x17]+Oxeb+OxOfd99[0x74]));} ;if(typeDef[OxOfd99[0x75]]){throw (_SL_CreateException(OxOfd99[0x17]+Oxeb+OxOfd99[0x76]));} ;if(_SL_Debug){ Oxed= new Date().getTime() ;} ; typeDef[OxOfd99[0x73]]=_SL_CreateInstance_ConstructFunction(typeDef) ; typeDef[OxOfd99[0x73]][OxOfd99[0xb]]=true ;if(_SL_Debug){ _SL_Debug_EmitScriptTime_+=( new Date().getTime())-Oxed ;} ;} ; _SL_Debug_InstanceCount_++ ;if(_SL_Debug){ Oxed= new Date().getTime() ;} ;var Oxef=typeDef.ConstructFunction();if(_SL_Debug){ time2= new Date().getTime() ; _SL_Debug_AllocationTime_+=time2-Oxed ; Oxed=time2 ;} ;var ctor=__SL_Script_CreateConstructor(Oxef[0x1],Oxef[0x2]); ctor[OxOfd99[0xb]]=true ; ctor.apply(null,Ox33||[]) ;if(_SL_Debug){ _SL_Debug_ConstructTime_+=( new Date().getTime()-Oxed) ;} ;return Oxef[0x0][OxOfd99[0x1e]];} ; function _SL_GetClassName(obj){ _SL_CheckNullException(obj,OxOfd99[0x77]) ;return obj.GetType()[OxOfd99[0xe]];} ; function _SL_GetClassNames(Oxeb){ _SL_CheckNullException(Oxeb,OxOfd99[0x72]) ;var typeDef=_SL_Types[Oxeb];if(typeDef==null){throw (_SL_CreateException(OxOfd99[0x17]+Oxeb+OxOfd99[0x18]));} ;var Ox3f=[];while(typeDef!=null){ Ox3f[Ox3f[OxOfd99[0x1d]]]=typeDef[OxOfd99[0xe]] ; typeDef=typeDef[OxOfd99[0x40]] ;} ;return Ox3f;} ; function _SL_IsClassInherits(Oxeb,Oxf3){ _SL_CheckNullException(Oxeb,OxOfd99[0x72]) ; _SL_CheckNullException(Oxf3,OxOfd99[0x78]) ;var typeDef=_SL_Types[Oxeb];if(typeDef==null){throw (_SL_CreateException(OxOfd99[0x17]+Oxeb+OxOfd99[0x18]));} ;var Oxf4=_SL_Types[Oxf3];if(Oxf4==null){throw (_SL_CreateException(OxOfd99[0x17]+Oxf3+OxOfd99[0x18]));} ;if(Oxeb==Oxf3){return false;} ;if(typeDef[OxOfd99[0x1b]]==OxOfd99[0x1c]){if(Oxf4[OxOfd99[0x1b]]==OxOfd99[0x79]){return !!typeDef.FindInterface(Oxf3);} ;if(Oxf4[OxOfd99[0x1b]]==OxOfd99[0x1c]){for(var Oxf5=typeDef[OxOfd99[0x40]];Oxf5!=null;Oxf5=Oxf5[OxOfd99[0x40]]){if(Oxf5[OxOfd99[0xe]]==Oxf3){return true;} ;} ;} ;} ;if(typeDef[OxOfd99[0x1b]]==OxOfd99[0x79]){if(Oxf4[OxOfd99[0x1b]]==OxOfd99[0x1c]){return false;} ;if(Oxf4[OxOfd99[0x1b]]==OxOfd99[0x79]){return !!typeDef.FindInterface(Oxf3);} ;} ;return false;} ; function _SL_Class(Oxf,Oxf7,Oxf8){ _SL_CheckNullException(Oxf,OxOfd99[0x7a]) ; _SL_CheckNullException(Oxf7,OxOfd99[0x7b]) ;if(Oxf8==null&&Oxf!=OxOfd99[0x7c]){ Oxf8=OxOfd99[0x7c] ;} ;var Oxf4;if(Oxf8!=null){ Oxf4=_SL_Types[Oxf8] ;if(Oxf4==null){throw (_SL_CreateException(OxOfd99[0x17]+Oxf8+OxOfd99[0x18]));} ;if(Oxf4[OxOfd99[0x1b]]!=OxOfd99[0x1c]){throw (_SL_CreateException(Oxf4[OxOfd99[0x1b]]+OxOfd99[0x7d]+Oxf4[OxOfd99[0xe]]+OxOfd99[0x7e]));} ;} ;if(_SL_SimpleTypes[Oxf]){throw (_SL_CreateException(OxOfd99[0x7f]+Oxf+OxOfd99[0x80]));} ;var typeDef=_SL_Types[Oxf];if(typeDef){throw (_SL_CreateException(typeDef[OxOfd99[0x1b]]+OxOfd99[0x7d]+Oxf+OxOfd99[0x81]));} ;var typeDef={Name:Oxf,Type:OxOfd99[0x1c],ClassLevel:Oxf4==null?0x0:Oxf4[OxOfd99[0x39]]+0x1,BaseType:Oxf4,Prototype:(Oxf4?Oxf4[OxOfd99[0x2a]]:null),Methods:[],Properties:[],Interfaces:[],InterfaceMap:{},FindMethod:function Oxf9(Oxf){ _SL_CheckNullException(Oxf,OxOfd99[0x7a]) ;for(var i=0x0;i0xc8){break ;} ;var Ox19a=Ox199[OxOfd99[0x9]];if(!Ox19a){ Ox19a=Ox199+OxOfd99[0x36] ; Ox19a=Ox19a.substr(0x9,Ox19a.indexOf(OxOfd99[0x123])-0x9) ;} ;if(Ox199[OxOfd99[0xaa]]){ Ox19a=Ox199[OxOfd99[0xaa]]+OxOfd99[0xa]+Ox19a ;} ;if(Ox19a==OxOfd99[0x36]){ Ox19a=OxOfd99[0x124] ;} ;var Ox19b=Ox196[Ox19a];if(!Ox19b){ Ox196[Ox19a]=Ox199 ;} else {if(Ox199==Ox19b){ Ox15b+=Ox19a+OxOfd99[0x125] ;break ;} else {if( typeof (Ox19b)==OxOfd99[0x126]){ Ox196[Ox19a]=[Ox19b,Ox199] ;} else {var Ox8d=false;for(var i=0x0;i/g,OxOfd99[0x12b]).replace(/\x22/g,OxOfd99[0x12a]).replace(/\x27/g,OxOfd99[0x129]);} ;var Ox3f=[];var Ox19e=Ox3f; Ox19e[OxOfd99[0x12e]]=function (Ox15b){for(var i=0x0;i/g,OxO3b5c[0x3d]).replace(/\x22/g,OxO3b5c[0x3c]).replace(/\x27/g,OxO3b5c[0x3b]).replace(/\n/g,OxO3b5c[0x3a]).replace(/\r/g,OxO3b5c[0x30]);if(!Html_Encode_Temp_Div){ Html_Encode_Temp_Div=window[OxO3b5c[0x41]].createElement(OxO3b5c[0x40]) ;} ;if(Html_IsGecko){ Html_Encode_Temp_Div[OxO3b5c[0x42]]=OxO3b5c[0x30] ; Html_Encode_Temp_Div.appendChild(window[OxO3b5c[0x41]].createTextNode(Ox6b)) ;} else { Html_Encode_Temp_Div[OxO3b5c[0x43]]=Ox6b ;} ;return Html_Encode_Temp_Div[OxO3b5c[0x42]].replace(/\n/g,OxO3b5c[0x3a]);} ; function Html_GetDocumentSize(){var Ox1cb=window[OxO3b5c[0x41]][OxO3b5c[0x45]][OxO3b5c[0x44]];var Ox1cc=window[OxO3b5c[0x41]][OxO3b5c[0x45]][OxO3b5c[0x46]];if(window[OxO3b5c[0x41]][OxO3b5c[0x47]]==OxO3b5c[0x48]){ Ox1cb=window[OxO3b5c[0x41]][OxO3b5c[0x49]][OxO3b5c[0x44]] ; Ox1cc=window[OxO3b5c[0x41]][OxO3b5c[0x49]][OxO3b5c[0x46]] ;} ;if(Ox1cc<0xc8){if(Html_IsGecko){var Ox1cd=document.createElement(OxO3b5c[0x40]);if(Html_IsGecko){ Ox1cd[OxO3b5c[0x2c]][OxO3b5c[0x4a]]=OxO3b5c[0x4b] ; Ox1cd[OxO3b5c[0x2c]][OxO3b5c[0x4c]]=OxO3b5c[0x4d] ; Ox1cd[OxO3b5c[0x2c]][OxO3b5c[0x4e]]=OxO3b5c[0x4d] ; Ox1cd[OxO3b5c[0x2c]][OxO3b5c[0x4f]]=OxO3b5c[0x50] ; Ox1cd[OxO3b5c[0x2c]][OxO3b5c[0x51]]=OxO3b5c[0x50] ;} else { Ox1cd[OxO3b5c[0x2c]][OxO3b5c[0x2b]]=OxO3b5c[0x52] ;} ; document[OxO3b5c[0x45]].appendChild(Ox1cd) ; Ox1cb=Ox1cd[OxO3b5c[0x53]] ; Ox1cc=Ox1cd[OxO3b5c[0x54]] ; document[OxO3b5c[0x45]].removeChild(Ox1cd) ;} ;} ;return {width:Ox1cb,height:Ox1cc};} ; function Html_Contains(Ox19f,Ox12){if(Ox12==null){return false;} ;if(Ox19f==Ox12){return true;} ;for(;Ox12;Ox12=Ox12[OxO3b5c[0x55]]){if(Ox19f==Ox12){return true;} ;} ;return false;} ; function Html_SelectElements(Ox1d0,Ox1d1){ Ox1d1=Ox1d1||OxO3b5c[0x56] ;var Ox3f=[];var Ox1d2=Ox1d0[OxO3b5c[0x57]];var Ox1d3=Ox1d2[OxO3b5c[0x2e]];if(Ox1d1==OxO3b5c[0x56]){for(var i=0x0;i=Ox30[OxO3b5c[0x2e]]-0x1){if(Ox30[OxO3b5c[0x2e]]-0x1==i){return ;} ; Ox30.splice(i,0x1) ; Ox30[Ox30[OxO3b5c[0x2e]]]=Ox1dc ; this.GetContentElement().appendChild(Ox1dc[OxO3b5c[0x6e]]._element) ;} else {if(Ox2ab==i){return ;} ;var Ox2b0=Ox30[Ox2ab]; Ox30.splice(i,0x1) ; Ox30.splice(Ox2ab,0x0,Ox1dc) ; this.GetContentElement().insertBefore(Ox1dc[OxO3b5c[0x6e]][OxO3b5c[0x6d]],Ox30[Ox2ab+0x1][OxO3b5c[0x6e]]._element) ;} ; this.InternalPerformLayout(null) ;return ;} ;} ;} ; function HtmlComplexControl_SuspendLayout(){if(this[OxO3b5c[0x174]]>0x0){ this[OxO3b5c[0x174]]++ ;} else { this[OxO3b5c[0x174]]=0x1 ;} ;} ; function HtmlComplexControl_ResumeLayout(Ox2b3,Ox2b4){if(!this[OxO3b5c[0x174]]){if(Html_Debug){ alert(OxO3b5c[0x175]+GetStackTrace()) ;} ;return ;} ; this[OxO3b5c[0x174]]-- ; this.PerformLayout(Ox2b3,Ox2b4) ;} ; function HtmlComplexControl_PerformLayout(Ox2b3,Ox2b4){if(!this[OxO3b5c[0x174]]){var Ox2b6=(this[OxO3b5c[0x176]]||Ox2b3);if(Ox2b6){ this.InternalPerformLayout(null,true) ;} ;if(this[OxO3b5c[0x6e]][OxO3b5c[0x16e]]&&!Ox2b4){for(var i=0x0;i0x0;} ; function HtmlComplexControl_InternalPerformLayout(Ox1d6,Ox2b9){if(this[OxO3b5c[0x6e]][OxO3b5c[0xf2]]==null){return ;} ;if(this[OxO3b5c[0x174]]){ this[OxO3b5c[0x176]]=(this[OxO3b5c[0x176]]||0x0)+0x1 ;return ;} ;for(var Ox19f=this[OxO3b5c[0x6e]][OxO3b5c[0x8a]];Ox19f;Ox19f=Ox19f[OxO3b5c[0x6e]][OxO3b5c[0x8a]]){if(Ox19f.IsSuspendLayout()){ this[OxO3b5c[0x176]]=(this[OxO3b5c[0x176]]||0x0)+0x1 ;return ;} ;} ; this.InternalDoPerformLayout(Ox1d6,Ox2b9) ;} ; function HtmlComplexControl_InternalDoPerformLayout(Ox1d6,Ox2b9){ this[OxO3b5c[0x176]]=0x0 ;if(this[OxO3b5c[0x6e]][OxO3b5c[0x16e]]==null){return ;} ;var Ox1dd=0x0,Oxf5=0x0,Ox2bb=this.GetClientWidth(),Ox2bc=this.GetClientHeight();var Ox2a7=this[OxO3b5c[0x6e]][OxO3b5c[0x170]]||Html__ZeroPaddings; Ox1dd+=Ox2a7[OxO3b5c[0x4f]] ; Oxf5+=Ox2a7[OxO3b5c[0x51]] ; Ox2bb-=Ox2a7[OxO3b5c[0x4f]]+Ox2a7[OxO3b5c[0x101]] ; Ox2bc-=Ox2a7[OxO3b5c[0x51]]+Ox2a7[OxO3b5c[0x100]] ;var Ox2bd;var Ox2be;var Ox2bf=null;for(var i=0x0;iOx2bb){ this[OxO3b5c[0x6e]][OxO3b5c[0x6d]][OxO3b5c[0x2c]][OxO3b5c[0x4c]]=Ox2bb*0x2-this[OxO3b5c[0x6e]][OxO3b5c[0x6d]][OxO3b5c[0x53]]+OxO3b5c[0xf6] ;} ;var Ox2bc=this.GetCurrentHeight();if(this[OxO3b5c[0x6e]][OxO3b5c[0x6d]][OxO3b5c[0x54]]>Ox2bc){ this[OxO3b5c[0x6e]][OxO3b5c[0x6d]][OxO3b5c[0x2c]][OxO3b5c[0x4e]]=Ox2bc*0x2-this[OxO3b5c[0x6e]][OxO3b5c[0x6d]][OxO3b5c[0x54]]+OxO3b5c[0xf6] ;} ;} ;} ; function HtmlComplexControl_Activate(Ox26b){if(Ox26b){ this.base_Activate(Ox26b) ;} else {if(this[OxO3b5c[0x6e]][OxO3b5c[0x173]]){ this[OxO3b5c[0x6e]][OxO3b5c[0x173]].Activate(false) ;} ;} ;} ; function HtmlComplexControl_GetActiveControl(){return this[OxO3b5c[0x6e]][OxO3b5c[0x173]];} ; function HtmlComplexControl_InternalSetActiveControl(Ox1dc){ this[OxO3b5c[0x6e]][OxO3b5c[0x173]]=Ox1dc ;var Ox19f=this[OxO3b5c[0x6e]][OxO3b5c[0x8a]];if(Ox19f){ Ox19f.InternalSetActiveControl(PublicInstance(this)) ;} ;} ; function HtmlComplexControl_InternalAttachDesktop(){ this.base_InternalAttachDesktop() ;var Ox30=this[OxO3b5c[0x6e]][OxO3b5c[0x16e]];if(Ox30==null){return ;} ;for(var i=0x0;i" document.body.appendChild(frame); framebody=frame.firstChild; } else { frame=document.createElement("IFRAME"); if(location.href.substr(0,6)=="https:") { frame.src="blank.html"; } else { frame.src="about:blank"; } frame.frameBorder=0; document.body.appendChild(frame); //TODO:IE5 don't support contentWindow.. var framewin=frame.contentWindow; if(framewin==null) { framedoc=frame.contentDocument; } else { framedoc=framewin.document; } framedoc.open(); framedoc.write(""); framedoc.close(); framebody=framedoc.body; } Html_SetCssText(frame,"visibility:hidden;position:absolute;background-color:white;padding:0px;border:0px;width:90px;height:90px;overflow:visible;"); frame.style.zIndex=menuitem.zIndex; var table=framedoc.createElement("TABLE"); table.border=0; table.cellSpacing=0; table.cellPadding=0; Html_SetCssText(table,"cursor:default;width:100%;overflow:visible;"); for(var i=0;i"+childitem.html+""; tablehtml+=""+childitem.hotkey+""; } else { tablehtml+=""+childitem.html+""; } if(true) { tablehtml+=" 4 "; else tablehtml+=";font-family:arial;font-size:14px;'> > "; } else { if(childitem.items.length==0&&childitem.oninitialize!=null) { tablehtml+=" 4 "; else tablehtml+=";font-family:arial;font-size:14px;'> > "; } } tablehtml+=""; var itemdiv=framedoc.createElement("DIV"); childitem.itemdiv=itemdiv; Html_SetCssText(itemdiv,"cursor:default;margin:1px;width:100%;overflow:visible;"+(childitem.enable?"":"filter:alpha(opacity=40);")); if(!childitem.enable)itemdiv.style.MozOpacity=0.4; itemdiv.innerHTML=tablehtml; if(Html_IsGecko || Html_IsOpera) { itemdiv.onmousedown=new Function("event","event.cancelBubble=true;"); } if(childitem.enable) { itemdiv.onmouseover=Create_MenuItemDiv_OnMouseOver(childitem); itemdiv.onmouseout=Create_MenuItemDiv_OnMouseOut(childitem); itemdiv.onclick=Create_MenuItemDiv_OnClick(childitem); if(childitem.onclick) { itemdiv.style.cursor='hand'; } } else { //itemdiv.disabled=!childitem.enable; } cell.appendChild(itemdiv); } framebody.appendChild(table); frame.style.width=table.offsetWidth+16+"px"; frame.style.height=table.offsetHeight+6+"px"; return frame; } function MenuClass() { var frame=null; var menu=this; menu.menu=menu; menu.items=[]; menu.zIndex=8000; menu.closed=true; function OnWindowBlur() { setTimeout(CloseIt,250); function CloseIt() { if(menu.Close) menu.Close(); } } function OnDocumentClick() { if(menu.Close) menu.Close(); } function OnWindowUnload() { if(menu.Close) menu.Close(); } menu.Show=function menu_Show(target,offsetX,offsetY) { if(_menuclass_currentmenu) _menuclass_currentmenu.Close(); menu.Close(); window.focus(); if(menu.frame==null) { menu.frame=MenuClass_CreateFrame(menu); } Menu_ShowFrame(menu.frame,target,offsetX,offsetY); _menuclass_currentmenu=menu; //Html_AttachEvent(window,"blur",OnWindowBlur); Html_AttachEvent(document,"mousedown",OnDocumentClick); Html_AttachEvent(window,"beforeunload",OnWindowUnload); menu.opened=true; } menu.Close=function() { if(!menu.opened)return; menu.opened=false; //Html_DetachEvent(window,"blur",OnWindowBlur); Html_DetachEvent(document,"mousedown",OnDocumentClick); Html_DetachEvent(window,"beforeunload",OnWindowUnload); if(_menuclass_currentmenu==menu) _menuclass_currentmenu=null; if(menu.frame==null) return; menu.frame.style.display='none'; if(menu.openitem) menu.openitem.Close(); //Dispose on close.. Dispose(); } menu.HideByClick=function() { if(menu.frame) { menu.frame.style.display='none'; } if(menu.openitem) menu.openitem.Close(); } menu.Dispose=function() { menu.Close(); Dispose(); } function Dispose() { if(menu.isdisposed)return; menu.isdisposed=true; for(var i=0;i0?true:false; childmenu.html=html; childmenu.imgurl=imgurl==null?null:(imgurl.indexOf('.')==-1?(menuimagebase+imgurl+".gif"):imgurl); childmenu.onclick=onclick; childmenu.oninitialize=oninitialize; menu.items[menu.items.length]=childmenu; return childmenu; } function ChildMenuClass() { var menuitem=this; menuitem.items=[]; menuitem.AddSpliter=function() { if(menuitem.items.length==0||menuitem.items[menuitem.items.length-1].html!='-') return menuitem.AddMenuItem(1,"-"); return menuitem.items[menuitem.items.length-1]; } menuitem.AddMenuItem= menuitem.Add=function(state,html,imgurl,onclick,oninitialize) { var childmenu=new ChildMenuClass(); childmenu.zIndex=menuitem.zIndex+1; childmenu.menu=menu; childmenu.owner=menuitem; childmenu.enable=state>0?true:false; childmenu.html=html; childmenu.imgurl=imgurl==null?null:(imgurl.indexOf('.')==-1?(menuimagebase+imgurl+".gif"):imgurl); childmenu.onclick=onclick; childmenu.oninitialize=oninitialize; menuitem.items[menuitem.items.length]=childmenu; return childmenu; } menuitem.Show=function(target,offsetX,offsetY) { if(menuitem.isopen)return; if(menuitem.frame==null) { menuitem.frame=MenuClass_CreateFrame(menuitem); } Menu_ShowFrame(menuitem.frame,target,offsetX,offsetY); menuitem.owner.openitem=menuitem; menuitem.isopen=true; } menuitem.Close=function() { if(!menuitem.isopen)return; if(menuitem.openitem) menuitem.openitem.Close(); MenuItemDiv_OnMouseOut(menuitem.itemdiv); menuitem.frame.style.display='none'; menuitem.frame.style.top='0px' menuitem.frame.style.left='0px' menuitem.owner.openitem=null; menuitem.isopen=false; } menuitem.Dispose=function() { if(menuitem.isdisposed)return; menuitem.isdisposed=true; for(var i=0;i