/**--cssrender.js--**/ var Ext = {version: '2.2'}; var ua = navigator.userAgent.toLowerCase(); var isStrict = document.compatMode == "CSS1Compat", isOpera = ua.indexOf("opera") > -1, isChrome = ua.indexOf("chrome") > -1, isSafari = (/webkit|khtml/).test(ua), isSafari3 = isSafari && ua.indexOf('webkit/5') != -1, isIE = !isOpera && ua.indexOf("msie") > -1, isIE7 = !isOpera && ua.indexOf("msie 7") > -1, isIE9 = !isOpera && ua.indexOf("msie 9") > -1, isIE8 = !isOpera && (ua.indexOf("msie 8") > -1 || ua.indexOf("msie 9") > -1), isIE6 = !isOpera && !isIE7 && ua.indexOf("msie 6") > -1, isGecko = !isSafari && ua.indexOf("gecko") > -1, isGecko2 = isGecko && ua.indexOf("firefox/2") > -1, isGecko3 = !isSafari && ua.indexOf("rv:1.9") > -1, isSecure = window.location.href.toLowerCase().indexOf("https") === 0; // remove css image flicker if(isIE && !isIE7){ try{ document.execCommand("BackgroundImageCache", false, true); }catch(e){} } var vars = ['isStrict', 'isOpera', 'isChrome', 'isSafari', 'isSafari3', 'isIE', 'isIE7', 'isIE8', 'isIE6', 'isGecko', 'isGecko2', 'isGecko3', 'isSecure']; for(var i=0;i= 0; i--) { var li = arr[i]; if (!(li && li[0] == el && li[1] == name && li[2] == fn))continue; arr.splice(i, 1); li[0] = null; return true; } return false; } var arr = Event.observers || []; for (var i = arr.length - 1; i >= 0; i--) { var li = arr[i]; if (!(li && li[0] == el && li[1] == name && li[2] == fn))continue; arr.splice(i, 1); this._stopObserving(el, name, fn); return true; } return false; }, stopAllObserving : function (el, name){ if(!(el = $(el)))return; if(name=='unload' || (!name && el==window)){ Event.unloadListeners = false; if(name=='unload')return; } var arr = Event.observers || []; for (var i = arr.length - 1; i >= 0; i--) { if(arr[i][0] != el)continue; if(name!=null && name!=arr[i][1])continue; Event._stopObserving.apply(Event, arr[i]); arr[i][0] = null; arr.splice(i, 1); } } }); Event._observe(window, 'unload', Event.unloadCache); Event.observe(window, 'unload', function(){ delete Function.prototype.bind; delete Object.extend; delete Object.clone; delete Object.deepClone; }); var m_genId = 0; function genExtId(){ return 'myext-'+(++m_genId); } Ext.myEvent = function(){} function extEvent(ev){ var rst = new Ext.myEvent(); Ext.apply(rst, { browserEvent : ev, type : ev.type, target : Event.element(ev), blurTarget : Event.blurElement(ev), within : function(el){ var t = Event.element(ev); while(t && t.tagName!='BODY'){ if(t==el)return true; t = t.parentNode; } return false; }, stop : function(){ Event.stop(ev); }, pointer : [Event.pointerX(ev), Event.pointerY(ev)], button : rst.button0 ? rst.button0(ev) : 0 }); return rst; } var m_extListeners = {}; function addFxWrap(id, evName, fn, scope, wrap){ var es, ls; m_extListeners[id] = es = m_extListeners[id] || {}; es[evName] = ls = es[evName] || []; ls.push({fn:fn,scope:scope,wrap:wrap}); } function removeFxWrap(id, evName, fn, scope){ var es = m_extListeners[id]; if(!es)return; var ls = es[evName], l; if(!ls)return; for(var i = 0, len = ls.length; i < len; i++){ l = ls[i]; if(l.fn == fn && (!scope || l.scope == scope)){ wrap = l.wrap; ls.splice(i, 1); return wrap; } } } Ext.myEl = function(){} Ext.fly = Ext.get = function(el){ el = $(el); if(!el.id)el.id = genExtId(); var id = el.id, rst = new Ext.myEl(); Ext.apply(rst, { dom : el, on : function(evName, f, scope){ function h(ev){ ev = ev || window.event; var nev = extEvent(ev); f.call(scope, nev, nev.target); } addFxWrap(id, evName, f, scope, h); Event.observe(id, evName, h); }, un : function(evName, f, scope){ var h = removeFxWrap(id, evName, f, scope); if(h==null)return; Event.stopObserving(id, evName, h); } }); return rst; } function lbinit(){ Ext.SSL_SECURE_URL = "javascript:false"; Ext.isSecure = window.location.href.toLowerCase().indexOf("https") === 0; Ext.blankUrl = Ext.isSecure ? Ext.SSL_SECURE_URL : ""; var ua = navigator.userAgent.toLowerCase(); var isOpera = ua.indexOf("opera") > -1; Ext.isIE = !isOpera && ua.indexOf("msie") > -1; isIE7 = !isOpera && ua.indexOf("msie 7") > -1; Ext.isIE6 = !isOpera && !isIE7 && ua.indexOf("msie 6") > -1; }; lbinit(); //\u517C\u5BB9ff\u7684\u90E8\u5206\u65B9\u6CD5 (function(){ if(window.navigator.userAgent.toLowerCase().indexOf("msie")>=1) return; var _emptyTags = { "IMG": true, "BR": true, "INPUT": true, "META": true, "LINK": true, "PARAM": true, "HR": true }; HTMLElement.prototype.__defineGetter__("innerText",function(){ var text=null; text = this.ownerDocument.createRange(); text.selectNodeContents(this); text = text.toString(); return text; }); HTMLElement.prototype.__defineGetter__("outerHTML", function () { var attrs = this.attributes; var str = "<" + this.tagName; for (var i = 0; i < attrs.length; i++) str += " " + attrs[i].name + "=\"" + attrs[i].value + "\""; if (_emptyTags[this.tagName]) return str + "/>"; return str + ">" + this.innerHTML + ""; }); HTMLElement.prototype.__defineSetter__("outerHTML", function (sHTML) { var r = this.ownerDocument.createRange(); r.setStartBefore(this); var df = r.createContextualFragment(sHTML); this.parentNode.replaceChild(df, this); }); })(); window.DOM = window.DOM || {}; Ext.apply(window.DOM,(function(){ (function(){ if (document.addEventListener) { document.addEventListener( "DOMContentLoaded", function(){ document.removeEventListener( "DOMContentLoaded", arguments.callee, false );//\u6E05\u9664\u52A0\u8F7D\u51FD\u6570 fireReady(); }, false ); }else{//ie if (document.getElementById) { document.write("