var _baseAraleConfig={debug:false,combo_path:"/min/?b=arale-trunk&f=",combo_host:"localhost",module_path:"/arale-trunk",locale:"zh-cn",waitTime:100,corex:false};if(window["araleConfig"])(function(){for(var _name in _baseAraleConfig)if(_baseAraleConfig.hasOwnProperty(_name)&&!araleConfig.hasOwnProperty(_name))araleConfig[_name]=_baseAraleConfig[_name]})();else var araleConfig=_baseAraleConfig; var arale=arale||{version:"2010625",debug:araleConfig.debug||false,cache:{},env:{combo_host:araleConfig.combo_host,combo_path:araleConfig.combo_path,locale:araleConfig.locale},registerCoboPath:function(comboPath){arale.env.combo_path=comboPath},registerComboHost:function(moduleHost){arale.env.combo_host=moduleHost},getComboPath:function(){var env=arale.env;if(env.combo_host.indexOf("http")==-1)env.combo_host="http://"+env.combo_host;return env.combo_host+env.combo_path},$try:function(){for(var i= 0,l=arguments.length;i<l;i++)try{return arguments[i]()}catch(e){}return null},implement:function(objects,properties){if(!arale.isArray(objects))objects=[objects];for(var i=0,l=objects.length;i<l;i++)for(var p in properties)objects[i].prototype[p]=properties[p]},namespace:function(namespace,root){var parts=namespace.split("."),current=root||window;if(!(parts[0]in window))window[parts[0]]={};for(var part;parts.length&&(part=parts.shift());){if(!current[part])current[part]={};current[part]._parentModule|| (current[part]._parentModule=current);current=current[part];current._moduleName=part}return current},parseNamespace:function(ns){var arr=ns.split("."),obj;for(var i=0;i<arr.length;i++)obj=arr[i]},module:function(module,obj,alias){var current=this.namespace(module),root=window;if(arale.isFunction(obj))obj=obj.call(arale,obj);if(arale.isFunction(obj)){alias&&(root[alias]=obj);current._parentModule[current._moduleName]=obj}else{arale._mixin(current,obj);if(!root[alias])root[alias]={};alias&&arale._mixin(root[alias], obj)}},_mixin:function(target,src,override){if(!target)target={};for(var name in src)if(src.hasOwnProperty(name))if(target[name]==undefined||override)target[name]=src[name];return target},extend:function(obj){var temp=function(){};temp.prototype=obj;return new temp},inherits:function(childCtor,parentCtor){function tempCtor(){}tempCtor.prototype=parentCtor.prototype;childCtor.superClass=parentCtor.prototype;childCtor.superCouns=parentCtor;childCtor.prototype=new tempCtor;childCtor.prototype.constructor= childCtor},augment:function(receivingClass,obj){for(methodName in obj)if(obj.hasOwnProperty(methodName))if(!receivingClass.prototype.hasOwnProperty(methodName))receivingClass.prototype[methodName]=obj[methodName]},dblPrototype:function(obj,init){var Middle=function(){};Middle.prototype=obj;var First=function(){if(init)init.apply(this,arguments);this[0]=arguments[0]};First.prototype=new Middle;First.prototype.toString=function(){return true};First.prototype.valueOf=function(){return true};return First}, typeOf:function(value){var s=typeof value;if(s=="object")if(value){if(value instanceof Array||!(value instanceof Object)&&Object.prototype.toString.call(value)=="[object Array]"||typeof value.length=="number"&&typeof value.splice!="undefined"&&typeof value.propertyIsEnumerable!="undefined"&&!value.propertyIsEnumerable("splice"))return"array";if(!(value instanceof Object)&&(Object.prototype.toString.call(value)=="[object Function]"||typeof value.call!="undefined"&&typeof value.propertyIsEnumerable!= "undefined"&&!value.propertyIsEnumerable("call")))return"function"}else return"null";else if(s=="function"&&typeof value.call=="undefined")return"object";return s},isUndefined:function(val){return typeof val==="undefined"},isNull:function(val){return val===null},isFunction:function(val){return arale.typeOf(val)=="function"},isArray:function(val){return arale.typeOf(val)=="array"},isNumber:function(val){return arale.typeOf(val)=="number"},isString:function(val){return arale.typeOf(val)=="string"}, isObject:function(val){var type=arale.typeOf(val);return type=="object"||type=="array"||type=="function"},isDate:function(val){return arale.isObject(val)&&arale.isFunction(val.getMonth)},isNativeObject:function(ufo){return arale.isString(ufo)||arale.isObject(ufo)||arale.isFunction(ufo)||arale.isDate(ufo)},unique:function(arr){if(arr.constructor!==Array)arale.error("type error: "+arr+" must be an Array!");var r=new Array;o:for(var i=0,n=arr.length;i<n;i++){for(var x=0,y=r.length;x<y;x++)if(r[x]==arr[i])continue o; r[r.length]=arr[i]}return r},$random:function(min,max){return Math.floor(Math.random()*(max-min+1)+min)},parseJSON:function(data){function validJSON(data){if(typeof data!=="string"||!data)return false;data=data.replace(/^\s+|\s+$/g,"");return/^[\],:{}\s]*$/.test(data.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))}function W3CParse(data){if(validJSON(data))return window.JSON.parse(data); else{return null;arale.error("Invalid JSON: "+data)}}function defaultParse(data){if(validJSON(data))return(new Function("return "+data))();else{return null;arale.error("Invalid JSON: "+data)}}var ok_wrong_json=function(){try{JSON.parse("{ a : 1 }");return true}catch(x){return false}};if(window.JSON&&window.JSON.parse&&ok_wrong_json())this.parseJSON=function(data){return W3CParse.call(this,data)};else this.parseJSON=function(data){return defaultParse.call(this,data)};return this.parseJSON(data)},error:function(str){arale.log("error:"+ str)},exec:function(text){if(!text)return text;if(window.execScript)window.execScript(text);else{var script=document.createElement("script");script.setAttribute("type","text/javascript");script[arale.browser.Engine.webkit&&arale.browser.Engine.ver<420?"innerText":"text"]=text;document.getElementsByTagName("head")[0].appendChild(script);document.getElementsByTagName("head")[0].removeChild(script)}return text},hitch:function(scope,method){if(!method){method=scope;scope=null}if(arale.isString(method)){scope= scope||window;if(!scope[method])throw['arlea.hitch: scope["',method,'"] is null (scope="',scope,'")'].join("");return function(){return scope[method].apply(scope,arguments||[])}}return!scope?method:function(){return method.apply(scope,arguments||[])}},now:function(){return(new Date).getTime()},logError:function(sev,msg){var img=new Image;img.src="sev="+encodeURIComponent(sev)+"&msg="+encodeURIComponent(msg)},log:function(){if(araleConfig.debug&&"console"in window)console.log.apply(console,arguments)}, getUniqueId:function(str){var id=arale.getUniqueId._id||1;arale.getUniqueId._id=++id;return str?str+id:id}}; arale.range=function(start,end,step){var matrix=[];var inival,endval,plus;var walker=step||1;var chars=false;if(!isNaN(start)&&!isNaN(end)){inival=start;endval=end}else if(isNaN(start)&&isNaN(end)){chars=true;inival=start.charCodeAt(0);endval=end.charCodeAt(0)}else{inival=isNaN(start)?0:start;endval=isNaN(end)?0:end}plus=inival>endval?false:true;if(plus)while(inival<=endval){matrix.push(chars?String.fromCharCode(inival):inival);inival+=walker}else while(inival>=endval){matrix.push(chars?String.fromCharCode(inival): inival);inival-=walker}return matrix};arale._extraNames=["hasOwnProperty","valueOf","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","constructor"];arale.mixin=arale._mixin; arale.browser=function(){var engine={ie:0,gecko:0,webkit:0,khtml:0,opera:0,ver:null};var browser={ie:0,firefox:0,safari:0,konq:0,opera:0,chrome:0,safari:0,ver:null};var system={win:false,mac:false,x11:false,iphone:false,ipod:false,nokiaN:false,winMobile:false,macMobile:false,wii:false,ps:false};var ua=navigator.userAgent;if(window.opera){engine.ver=browser.ver=window.opera.version();engine.opera=browser.opera=parseFloat(engine.ver)}else if(/AppleWebKit\/(\S+)/.test(ua)){engine.ver=RegExp["$1"];engine.webkit= parseFloat(engine.ver);if(/Chrome\/(\S+)/.test(ua)){browser.ver=RegExp["$1"];browser.chrome=parseFloat(browser.ver)}else if(/Version\/(\S+)/.test(ua)){browser.ver=RegExp["$1"];browser.safari=parseFloat(browser.ver)}else{var safariVersion=1;if(engine.webkit<100)safariVersion=1;else if(engine.webkit<312)safariVersion=1.2;else if(engine.webkit<412)safariVersion=1.3;else safariVersion=2;browser.safari=browser.ver=safariVersion}}else if(/KHTML\/(\S+)/.test(ua)||/Konqueror\/([^;]+)/.test(ua)){engine.ver= browser.ver=RegExp["$1"];engine.khtml=browser.konq=parseFloat(engine.ver)}else if(/rv:([^\)]+)\) Gecko\/\d{8}/.test(ua)){engine.ver=RegExp["$1"];engine.gecko=parseFloat(engine.ver);if(/Firefox\/(\S+)/.test(ua)){browser.ver=RegExp["$1"];browser.firefox=parseFloat(browser.ver)}}else if(/MSIE ([^;]+)/.test(ua)){engine.ver=browser.ver=RegExp["$1"];engine.ie=browser.ie=parseFloat(engine.ver)}browser.ie=engine.ie;browser.opera=engine.opera;var p=navigator.platform;system.win=p.indexOf("Win")==0;system.mac= p.indexOf("Mac")==0;system.x11=p=="X11"||p.indexOf("Linux")==0;if(system.win)if(/Win(?:dows )?([^do]{2})\s?(\d+\.\d+)?/.test(ua))if(RegExp["$1"]=="NT")switch(RegExp["$2"]){case "5.0":system.win="2000";break;case "5.1":system.win="XP";break;case "6.0":system.win="Vista";break;default:system.win="NT";break}else if(RegExp["$1"]=="9x")system.win="ME";else system.win=RegExp["$1"];system.iphone=ua.indexOf("iPhone")>-1;system.ipod=ua.indexOf("iPod")>-1;system.nokiaN=ua.indexOf("NokiaN")>-1;system.winMobile= system.win=="CE";system.macMobile=system.iphone||system.ipod;system.wii=ua.indexOf("Wii")>-1;system.ps=/playstation/i.test(ua);arale.isIE=function(){return browser.ie>0};arale.isIE6=function(){return browser.ie==6};arale.isFF=function(){return browser.firefox>0};arale.isChrome=function(){return browser.chrome>0};arale.isSafari=function(){return browser.safari>0};arale.isOpera=function(){return browser.opera>0};arale.isMac=function(){return system.mac};browser.name=arale.isIE()?"ie":arale.isFF()?"firefox": arale.isChrome()?"chrome":arale.isSafari()?"safari":arale.isOpera()?"opera":"unknown";var s=system;system.name=s.win?"win":s.mac?"mac":s.x11?"x11":s.iphone?"iphone":s.ipod?"ipod":s.nokiaN?"nokiaN":s.winMobile?"winMobile":s.macMobile?"macMobile":s.wii?"wii":s.ps?"ps":"unknown";var e=engine;engine.name=e.ie?"ie":e.gecko?"gecko":e.webkit?"webkit":e.khtml?"khtml":e.opera?"opera":"unknown";return{name:browser.name,Engine:engine,Browser:browser,System:system,ver:function(){return this.Browser.ver},Request:function(){if(typeof XMLHttpRequest!= "undefined")return new XMLHttpRequest;else if(typeof ActiveXObject!="undefined"){if(typeof arguments.callee.activeXString!="string"){var versions=["MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP","MSXML2.XMLHttp.6.0"];for(var i=0,len=versions.length;i<len;i++)try{var xhr=new ActiveXObject(versions[i]);arguments.callee.activeXString=versions[i];return xhr}catch(ex){}}return new ActiveXObject(arguments.callee.activeXString)}else throw new Error("No XHR object available.");}}}(); arale.module("arale.array",function(){var CArray=arale.dblPrototype(Array.prototype,function(arr){this.arr=arr});arale.augment(CArray,{each:function(fn,bind){for(var i=0,len=this.arr.length;i<len;i++)fn.call(bind,this.arr[i],i,this.arr)},every:function(fn,bind){for(var i=0,len=this.arr.length;i<len;i++)if(!fn.call(bind,this.arr[i],i,this.arr))return false;return true},filter:function(fn,bind){var results=[];for(var i=0,len=this.arr.length;i<len;i++)if(fn.call(bind,this.arr[i],i,this.arr))results.push(this.arr[i]); return results},clean:function(){var fn=function(obj){return obj!=undefined};return this.filter(fn)},map:function(fn,bind){var results=[];for(var i=0,len=this.arr.length;i<len;i++)results[i]=fn.call(bind,this.arr[i],i,this.arr);return results},some:function(fn,bind){for(var i=0,len=this.arr.length;i<len;i++)if(fn.call(bind,this.arr[i],i,this.arr))return true;return false},associate:function(keys){var obj={},length=Math.min(this.arr.length,keys.length);for(var i=0,len=this.arr.length;i<len;i++)obj[keys[i]]= this.arr[i];return obj},indexOf:function(item,from){var len=this.arr.length;for(var i=from<0?Math.max(0,len+from):from||0;i<len;i++)if(this.arr[i]===item)return i;return-1},contains:function(item,from){return this.indexOf(item,from)!=-1},extend:function(array){for(var i=0,j=array.length;i<j;i++)this.arr.push(array[i]);return this.arr},last:function(){return this.arr.length?this.arr[this.arr.length-1]:null},random:function(){return this.arr.length?this.arr[arale.$random(0,this.arr.length-1)]:null}, include:function(item){if(!this.contains(item))this.arr.push(item);return this.arr},combine:function(array){for(var i=0,len=array.length;i<len;i++)arr=this.include(array[i]);return arr},erase:function(item){for(var i=this.arr.length;i--;i)if(this.arr[i]===item)this.arr.splice(i,1);return this.arr},empty:function(){this.arr.length=0;return this.arr},flatten:function(ac){var array=[];var group=this.arr;if(ac)group=ac;for(var i=0;i<group.length;i++)if(group[i]instanceof Array)array=array.concat(this.flatten(group[i])); else array=array.concat(group[i]);return array},hexToRgb:function(array){if(this.arr.length!=3)return null;var rgb=this.map(function(value){if(value.length==1)value+=value;return $S(value).toInt(16)});return array?rgb:"rgb("+rgb+")"},rgbToHex:function(array){if(this.arr.length<3)return null;if(this.arr.length==4&&this.arr[3]==0&&!array)return"transparent";var hex=[];for(var i=0;i<3;i++){var bit=(this.arr[i]-0).toString(16);hex.push(bit.length==1?"0"+bit:bit)}return array?hex:"#"+hex.join("")},inject:function(memo, iterator,context){this.each(function(value,index){memo=iterator.call(context,memo,value,index)});return memo},remove:function(item){var index=this.indexOf(item);if(index>-1)this.arr.splice(index,1)}});CArray.prototype["toString"]=function(){return this.arr.toString()};CArray.prototype["valueOf"]=function(){return this.arr.valueOf()};var ArrayFactory=function(arr){return new CArray(arr)};ArrayFactory.fn=CArray.prototype;return ArrayFactory},"$A");A=$A; arale.module("arale.string",function(){var _encodeUriRegExp=/^[a-zA-Z0-9\-_.!~*'()]*$/;var _amperRe=/&/g;var _ltRe=/</g;var _gtRe=/>/g;var _quotRe=/\"/g;var _allRe=/[&<>\"]/;var character={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;"};var entity={quot:'"',lt:"<",gt:">"};var CString=arale.dblPrototype("",function(strr){this.str=strr;this.length=strr.length});arale.augment(CString,{trim:function(){var str=this.str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--)if(/\S/.test(str.charAt(i))){str= str.substring(0,i+1);break}return str},clean:function(){return this.trim(this.str.replace(/\s+/g," "))},camelCase:function(){var str=this.str.replace(/-\D/g,function(match){return match.charAt(1).toUpperCase()});return str},hyphenate:function(){var str=this.str.replace(/[A-Z]/g,function(match){return"-"+match.charAt(0).toLowerCase()});return str},escapeRegExp:function(){return this.str.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")},toInt:function(base){return parseInt(this.str,base||10)},toFloat:function(){return parseFloat(this.str)}, hexToRgb:function(array){var hex=this.str.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);return hex?$A(hex.slice(1)).hexToRgb(array):null},rgbToHex:function(array){var rgb=this.str.match(/\d{1,3}/g);return rgb?$A(rgb).rgbToHex(array):null},parseColor:function(co){if(this.str.slice(0,4)=="rgb(")var color=this.rgbToHex();else{var color="#";if(this.str.slice(0,1)=="#"){if(this.str.length==4)for(var i=1;i<4;i++)color+=(this.str.charAt(i)+this.str.charAt(i)).toLowerCase();if(this.str.length==7)color=this.str.toLowerCase()}}return color.length== 7?color:$S(co)||this.str},stripScripts:function(option,override){var scripts="";var text=this.str.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi,function(){scripts+=arguments[1];return""});if(option===true)arale.exec(scripts);else if(typeof option=="function")option.call(override,scripts,text);return text},substitute:function(object,regexp){var str=this.str.replace(regexp||/\$\{([^}]+)\}/mg,function(match,name){return object[name]!=undefined?object[name]:""});return str},trimLeft:function(){return this.str.replace(/^[\s\xa0]+/, "")},trimRight:function(){return this.str.replace(/[\s\xa0]+$/,"")},urlEncode:function(){this.str=String(this.str);if(!_encodeUriRegExp.test(this.str))return encodeURIComponent(this.str);return this.str},urlDecode:function(){return decodeURIComponent(this.str.replace(/\+/g," "))},escapeHTML:function(){if(!_allRe.test(this.str))return this.str;if(this.str.indexOf("&")!=-1)this.str=this.str.replace(_amperRe,"&amp;");if(this.str.indexOf("<")!=-1)this.str=this.str.replace(_ltRe,"&lt;");if(this.str.indexOf(">")!= -1)this.str=this.str.replace(_gtRe,"&gt;");if(this.str.indexOf('"')!=-1)this.str=this.str.replace(_quotRe,"&quot;");return this.str},unescapeHTML:function(){if(!this.trim().length)return this.str;var htmlNode=document.createElement("DIV");htmlNode.innerHTML=this.str;if(htmlNode.innerText)return htmlNode.innerText;return htmlNode.textContent},contains:function(string,separator){return separator?(separator+this.str+separator).indexOf(separator+string+separator)>-1:this.str.indexOf(string)>-1},rep:function(num, text){if(text)this.str=text;if(num<=0||!this.str)return"";var buf=[];for(;;){if(num&1)buf.push(this.str);if(!(num>>=1))break;this.str+=this.str}return buf.join("")},pad:function(size,ch,end){if(!ch)ch="0";var out=String(this.str);var pad=this.rep(Math.ceil((size-out.length)/ch.length),ch);return end?out+pad:pad+out},capitalize:function(){var str=this.str.replace(/\b[a-z]/g,function(match){return match.toUpperCase()});return str}});CString.prototype["toString"]=function(){return this.str};var StringFactory= function(strr){return new CString(strr)};StringFactory.fn=CString.prototype;return StringFactory},"$S");S=$S; arale.module("arale.hash",function(){var CHash=arale.dblPrototype({},function(obj){this.obj=obj});arale.augment(CHash,{each:function(fn,context){for(var key in this.obj)if(this.obj.hasOwnProperty(key))fn.call(context,key,this.obj[key],this.obj)},set:function(key,value){if(!this.obj[key]||this.obj.hasOwnProperty(key))this.obj[key]=value;return this},extend:function(properties){$H(properties||{}).each(function(key,value){this.set(key,value)},this);return this},getLength:function(){var length=0;for(var key in this.obj)if(this.obj.hasOwnProperty(key))length++; return length},has:function(key){return this.obj.hasOwnProperty(key)},keyOf:function(value){var keys=[];for(var key in this.obj)if(this.obj.hasOwnProperty(key)&&this.obj[key]==value)keys.push(key);return keys.length?keys:null},hasValue:function(value){return this.keyOf(value)!==null},removeKey:function(key){if(this.obj.hasOwnProperty(key))delete this.obj[key];return this},getKeys:function(){var keys=[];this.each(function(key,value){keys.push(key)});return keys},getValues:function(){var values=[]; this.each(function(key,value){values.push(value)});return values},toQueryString:function(){var queryString=[];this.each(function(key,value){queryString.push(key+"="+value)});return queryString.join("&")},sort:function(){var result={};var keys=this.getKeys();keys.sort();for(var key;key=keys.shift();)result[key]=this.obj[key];return $H(result)}});CHash.prototype["toString"]=function(){var str=[];for(var key in this.obj)str.push(key+" : "+this.obj[key]);return"{ "+str.join(",")+" }"};var HashFactory= function(obj){return new CHash(obj)};HashFactory.fn=CHash.prototype;return HashFactory},"$H");H=$H; arale.module("arale.dom",function(){var isIE=arale.browser.Engine.trident;var isOpera=arale.browser.Engine.presto;var isSafari=arale.browser.Engine.webkit;var isBody=function(element){return/^(?:body|html)$/i.test(element.tagName)};var tagWrap={option:["select"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","thead","tr"],legend:["fieldset"],caption:["table"],colgroup:["table"],col:["table","colgroup"],li:["ul"]},reTag=/<\s*([\w\:]+)/,masterNode= {},masterNum=0,masterName="__araleToDomId";for(var param in tagWrap){var tw=tagWrap[param];tw.pre=param=="option"?'<select multiple="multiple">':"<"+tw.join("><")+">";tw.post="</"+tw.reverse().join("></")+">"}var specialAttr=$H({appendTo:function(node,value){value.appendChild(node.node)},innerHTML:function(node,value){node.setHtml(value)},style:function(node,value){node.setStyle(value)},"class":function(node,value){node.addClass(value)}});return{getViewportHeight:function(element){element=element|| window;element=element.node?element.node:element;if(element==window||element==document||isBody(element)){var height=self.innerHeight,mode=document["compatMode"];if((mode||isIE)&&!isOpera)height=mode=="CSS1Compat"?document.documentElement.clientHeight:document.body.clientHeight;return height}return element.offsetHeight},getViewportWidth:function(element){element=element||window;element=element.node?element.node:element;if(element==window||element==document||isBody(element)){var width=self.innerWidth, mode=document["compatMode"];if(mode||isIE)width=mode=="CSS1Compat"?document.documentElement.clientWidth:document.body.clientWidth;return width}return element.offsetWidth},getDocumentHeight:function(element){element=element||window;element=element.node?element.node:element;if(element==window||element==document||isBody(element)){var scrollHeight=document["compatMode"]!="CSS1Compat"||isSafari?document.body.scrollHeight:document.documentElement.scrollHeight,h=Math.max(scrollHeight,$D.getViewportHeight()); return h}return element.scrollHeight},getDocumentWidth:function(element){element=element||window;element=element.node?element.node:element;if(element==window||element==document||isBody(element)){var scrollWidth=document["compatMode"]!="CSS1Compat"||isSafari?document.body.scrollWidth:document.documentElement.scrollWidth,w=Math.max(scrollWidth,$D.getViewportWidth());return w}return element.scrollWidth},getScroll:function(element){element=element||document;element=element.node?element.node:element;if(element== window||element==document||isBody(element))return{left:Math.max(document["documentElement"].scrollLeft,document.body.scrollLeft),top:Math.max(document["documentElement"].scrollTop,document.body.scrollTop)};return{left:element.scrollLeft,top:element.scrollTop}},getScrolls:function(element){element=element||document;element=element.node?element.node:element;var position={left:0,top:0};while(element&&!isBody(element)){position.left+=element.scrollLeft;position.top+=element.scrollTop;element=element.parentNode}return position}, getOffsets:function(element){element=element.node?element.node:element;var getNextAncestor=function(node){var actualStyle;if(window.getComputedStyle)actualStyle=getComputedStyle(node,null).position;else if(node.currentStyle)actualStyle=node.currentStyle.position;else actualStyle=node.style.position;if(actualStyle=="absolute"||actualStyle=="fixed")return node.offsetParent;return node.parentNode};if(typeof element.offsetParent!="undefined"){var originalElement=element;for(var posX=0,posY=0;element;element= element.offsetParent){posX+=element.offsetLeft;posY+=element.offsetTop}if(!originalElement.parentNode||!originalElement.style||typeof originalElement.scrollTop=="undefined")return{left:posX,top:posY};element=getNextAncestor(originalElement);while(element&&element!=document.body&&element!=document.documentElement){posX-=element.scrollLeft;posY-=element.scrollTop;element=getNextAncestor(element)}return{left:posX,top:posY}}else return{left:element.x,top:element.y}},getPosition:function(element,relative){if(!element)return null; element=element.node?element.node:element;relative=relative||$D.getOffsetParent(element);if(isBody(element))return{left:0,top:0};var offset=$D.getOffsets(element),scroll=$D.getScrolls(element);var position={left:parseInt(offset.left)-parseInt(scroll.left),top:parseInt(offset.top)-parseInt(scroll.top)};var relativePosition=relative?$D.getPosition(relative):{left:0,top:0};return{left:parseInt(position.left)-parseInt(relativePosition.left),top:parseInt(position.top)-parseInt(relativePosition.top)}}, getOffsetParent:function(element){element=element.node?element.node:element;if(isBody(element))return null;if(!arale.isIE())return element.offsetParent;while((element=element.parentNode)&&!isBody(element))if(styleString(element,"position")!="static")return element;return null},toDom:function(frag){doc=document;var masterId=doc[masterName];if(!masterId){doc[masterName]=masterId=++masterNum+"";masterNode[masterId]=doc.createElement("div")}frag+="";var match=frag.match(reTag),tag=match?match[1].toLowerCase(): "",master=masterNode[masterId],wrap,i,fc,df;if(match&&tagWrap[tag]){wrap=tagWrap[tag];master.innerHTML=wrap.pre+frag+wrap.post;for(i=wrap.length;i;--i)master=master.firstChild}else master.innerHTML=frag;if(master.childNodes.length==1)return master.removeChild(master.firstChild);else{var elem=master.removeChild(master.firstChild);while(elem.nodeType==3)elem=master.removeChild(master.firstChild);return elem}},replace:function(refNode,node){refNode=refNode.node?refNode.node:refNode;node=node.node?node.node: node;refNode.parentNode.replaceChild(node,refNode)},create:function(type,param){var node=$(document.createElement(type));if(type=="script"||type=="iframe")if(param["callback"]){if(node.node.attachEvent)node.node.attachEvent("onload",param["callback"]);else node.node.onload=param["callback"];delete param["callback"]}var temp={};specialAttr.each(function(attr){param[attr]&&(temp[attr]=param[attr]);delete param[attr]});node.setAttributes(param);$H(temp).each(function(attr,value){specialAttr.obj[attr](node, value)});return node},setStyles:function(nodes,style){$A(nodes).each(function(node){$(node).setStyle(style)})}}},"$D");D=$D; arale.module("arale.node",function(){var attributes={html:"innerHTML","class":"className","for":"htmlFor",defaultValue:"defaultValue",text:arale.browser.Engine.trident||arale.browser.Engine.webkit&&arale.browser.Engine.version<420?"innerText":"textContent"};var inserters={before:function(context,element){if(context.nodeType=="NODE")context=context.element;if(element.nodeType=="NODE")element=element.element;if(context.parentNode)context.parentNode.insertBefore(element,context)},after:function(context, element){if(context.nodeType=="NODE")context=context.element;if(element.nodeType=="NODE")element=element.element;if(!context.parentNode)return;var next=context.nextSibling;next?next.parentNode.insertBefore(element,next):context.parentNode.appendChild(element)},bottom:function(context,element){if(context.nodeType=="NODE")context=context.element;if(element.nodeType=="NODE")element=element.element;context.appendChild(element)},top:function(context,element){if(context.nodeType=="NODE")context=context.element; if(element.nodeType=="NODE")element=element.element;var first=context.firstChild;first?context.insertBefore(element,first):context.appendChild(element)}};var match=function(element,selector){return!selector||selector==element||$A($A($$(selector,element.parentNode)).map(function(item){return item.node})).contains(element)};var Node=arale.dblPrototype(document.createElement("div"),function(node){this.node=node;this.noded=true});var isTable=function(nodeName){};arale.augment(Node,{walk:function(walk, start,tag,all){var el=this.node[start||walk];var elements=[];while(el){if(el.nodeType==1&&(!tag||match(el,tag))){if(!all)return el;elements.push($(el))}el=el[walk]}return all?elements:null},adopt:function(){var that=this;arguments=Array.prototype.slice.call(arguments);$A(arguments).each(function(el){if(el){el=el.node||el;that.node.appendChild(el)}});return this},inject:function(el,where){el=el.node||el;inserters[where||"bottom"](el,this.node);return this},prev:function(match){return this.walk("previousSibling", null,match,false)},prevAll:function(match){return this.walk("previousSibling",null,match,true)},next:function(match){return this.walk("nextSibling",null,match,false)},nextAll:function(match){return this.walk("nextSibling",null,match,true)},first:function(match){return $(this.walk("nextSibling","firstChild",match,false))},last:function(match){return $(this.walk("previousSibling","lastChild",match,false))},parent:function(match){return $(this.walk("parentNode",null,match,false))},parents:function(match){return this.walk("parentNode", null,match,true)},nodes:function(match){return this.walk("nextSibling","firstChild",match,true)},attr:function(key,value){if(key){if(attributes[key])key=attributes[key];if(value){if(key=="class"||key=="className")this.node.className=value;else{this.node[key]=value;this.node.setAttribute(key,value)}return $Node(this.node)}else{if(key=="class"||key=="className")return this.node.className;return!arale.isUndefined(this.node[key])?this.node[key]:this.node.getAttribute(key)}}return this},attrs:function(attries){for(var attr in attries){if(attributes[attr])attr= attributes[attr];if(attr=="class"||attr=="className")this.node.className=attries[attr];else{this.node[attr]=attries[attr];this.node.setAttribute(attr,attries[attr])}}return this},setAttributes:function(attries){return this.attrs(attries)},getAttrs:function(){var that=this;var args=$A(arguments).map(function(arg){if(attributes[arg])arg=attributes[arg];if(arg=="class"||arg=="className")return that.node.className;else return!arale.isUndefined(this.node[key])?this.node[key]:that.node.getAttribute(arg)}); return $A(args).associate(arguments)},getAttributes:function(){return this.getAttrs.apply(this,arguments)},removeAttrs:function(){var that=this;$A(arguments).each(function(arg){return that.node.removeAttribute(arg)});return this},removeAttributes:function(){return this.removeAttrs.apply(this,arguments)},hasClass:function(className){return $S(this.node.className).contains(className)},addClass:function(className){if(!this.hasClass(className))this.node.className=$S(this.node.className+" "+className).clean(); return this},removeClass:function(className){this.node.className=this.node.className.replace(new RegExp("(^|\\s)"+className+"(?:\\s|$)"),"$1");return this},toggleClass:function(className){return this.hasClass(className)?this.removeClass(className):this.addClass(className)},clone:function(contents,keepid){contents=contents!==false;var props={input:"checked",option:"selected",textarea:arale.browser.Engine.webkit&&arale.browser.Engine.version<420?"innerHTML":"value"};var clone=this.node.cloneNode(contents); var clean=function(cn,el){if(!keepid)cn.removeAttribute("id");if(arale.browser.Engine.trident){cn.mergeAttributes(el);if(cn.options){var no=cn.options,eo=el.options;for(var j=no.length;j--;)no[j].selected=eo[j].selected}var prop=props[el.tagName.toLowerCase()];if(prop&&el[prop])cn[prop]=el[prop]}};if(contents){var ce=clone.getElementsByTagName("*"),te=this.node.getElementsByTagName("*");for(var i=ce.length;i--;)clean(ce[i],te[i])}clean(clone,this.node);return $Node(clone)},scrollTo:function(x,y){if(/^(?:body|html)$/i.test(this.node.tagName))this.node.ownerDocument.window.scrollTo(x, y);else{this.node.scrollLeft=x;this.node.scrollTop=y}return this},getStyle:function(){var that=this;var get_style=function(style){if(style=="float")style=arale.isIE()?"styleFloat":"cssFloat";style=$S(style).camelCase();var value=that.node.style[style];if(!value||value=="auto")value=that.getComputedStyle(style);var color=/rgba?\([\d\s,]+\)/.exec(value);if(color)value=value.replace(color[0],$S(color[0]).rgbToHex());if(style=="opacity")try{return parseFloat(value)}catch(e){return 1}return value=="auto"? null:value};if(!arguments.length)return null;if(arguments.length>1){var result={};for(var i=0;i<arguments.length;i++)result[arguments[i]]=get_style(arguments[i]);return result}return get_style(arguments[0])},getOpacity:function(){return this.getStyle("opacity")},setStyle:function(styles){var match;if(arale.isString(styles)&&arguments.length==2){var tmp={};tmp[arguments[0]]=arguments[1];styles=tmp}for(var property in styles)if(property=="opacity")this.setOpacity(styles[property]);else if(property== "class"||property=="className")this.className=new String(property);else this.node.style[property=="float"||property=="cssFloat"?arale.isUndefined(this.node.style.styleFloat)?"cssFloat":"styleFloat":property]=styles[property];return this},setOpacity:function(value){if(value>1||value<0)return this;if(arale.isIE())this.node.style.filter="alpha(opacity="+value*100+")";this.node.style.opacity=value<1.0E-5?0:value;return this},getViewportSize:function(){return{width:$D.getViewportWidth(this.node),height:$D.getViewportHeight(this.node)}}, getDocumentSize:function(){return{width:$D.getDocumentWidth(this.node),height:$D.getDocumentHeight(this.node)}},getScroll:function(){return $D.getScroll(this.node)},getScrolls:function(){return $D.getScrolls(this.node)},region:function(){var position=this.getOffsets();var obj={left:position.left,top:position.top,width:$D.getViewportWidth(this.node),height:$D.getViewportHeight(this.node)};obj.right=obj.left+obj.width;obj.bottom=obj.top+obj.height;return obj},border:function(){var fix=this._toFixPx; return{l:fix(this.getStyle("border-left-width")),t:fix(this.getStyle("border-top-width")),r:fix(this.getStyle("border-right-width")),b:fix(this.getStyle("border-bottom-width"))}},_toFixPx:function(value){return parseFloat(value)||0},getComputedStyle:function(property){if(this.node.currentStyle)return this.node.currentStyle[$S(property).camelCase()];var computed=this.node.ownerDocument.defaultView.getComputedStyle(this.node,null);return computed?computed[$S(property).camelCase()]:null},getPosition:function(relative){return $D.getPosition(this.node, relative)},getOffsetParent:function(){return $D.getOffsetParent(this.node)},getOffsets:function(){return $D.getOffsets(this.node)},setPosition:function(pos){var obj={left:new String(parseInt(pos.left)-(parseInt(this.getComputedStyle("margin-left"))||0))+"px",top:new String(parseInt(pos.top)-(parseInt(this.getComputedStyle("margin-top"))||0))+"px"};return this.setStyle(obj)},query:function(match){return $$(match,this.node)},dispose:function(){return this.node.parentNode?$Node(this.node.parentNode.removeChild(this.node)): $Node(this.node)},empty:function(){while(this.node.firstChild)this.node.removeChild(this.node.firstChild)},setHtml:function(html){if(this._isTableInIe(this.node.nodeName)){var tempnode=$D.toDom(html);this.empty();this.node.appendChild(tempnode)}else this.node.innerHTML=html;return this},_isTableInIe:function(nodeName){return arale.isIE()&&$A(["tbody","thead","tr","td"]).indexOf(nodeName.toLowerCase())>-1},getHtml:function(){return $S(this.node.innerHTML).unescapeHTML()},replace:function(node){node= node.node||node;this.node.parentNode.replaceChild(node,this.node)}});Node.prototype["toString"]=function(){return this.node.toString()};Node.prototype["valueOf"]=function(){return this.node.valueOf()};var NodeFactory=function(node){if(node.noded)return node;if(arale.isString(node))node=document.createElement(node);return new Node(node)};NodeFactory.fn=Node.prototype;return NodeFactory},"$Node"); $A(("blur focus focusin focusout load resize scroll unload click dblclick "+"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave "+"change select submit keydown keypress keyup error").split(" ")).each(function(key){$Node.fn[key]=function(context,method){$E.connect(this,"on"+key,arale.hitch(context,method));return this}});$Node.fn["trigger"]=function(type,data){$E.trigger(this,type,data)};Node=$Node; (function(){var chunker=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,done=0,toString=Object.prototype.toString,hasDuplicate=false,baseHasDuplicate=true;[0,0].sort(function(){baseHasDuplicate=false;return 0});var Sizzle=function(selector,context,results,seed){results=results||[];context=context||document;var origContext=context;if(context.nodeType!==1&&context.nodeType!==9)return[];if(!selector||typeof selector!== "string")return results;var parts=[],m,set,checkSet,extra,prune=true,contextXML=Sizzle.isXML(context),soFar=selector,ret,cur,pop,i;do{chunker.exec("");m=chunker.exec(soFar);if(m){soFar=m[3];parts.push(m[1]);if(m[2]){extra=m[3];break}}}while(m);if(parts.length>1&&origPOS.exec(selector))if(parts.length===2&&Expr.relative[parts[0]])set=posProcess(parts[0]+parts[1],context);else{set=Expr.relative[parts[0]]?[context]:Sizzle(parts.shift(),context);while(parts.length){selector=parts.shift();if(Expr.relative[selector])selector+= parts.shift();set=posProcess(selector,set)}}else{if(!seed&&parts.length>1&&context.nodeType===9&&!contextXML&&Expr.match.ID.test(parts[0])&&!Expr.match.ID.test(parts[parts.length-1])){ret=Sizzle.find(parts.shift(),context,contextXML);context=ret.expr?Sizzle.filter(ret.expr,ret.set)[0]:ret.set[0]}if(context){ret=seed?{expr:parts.pop(),set:makeArray(seed)}:Sizzle.find(parts.pop(),parts.length===1&&(parts[0]==="~"||parts[0]==="+")&&context.parentNode?context.parentNode:context,contextXML);set=ret.expr? Sizzle.filter(ret.expr,ret.set):ret.set;if(parts.length>0)checkSet=makeArray(set);else prune=false;while(parts.length){cur=parts.pop();pop=cur;if(!Expr.relative[cur])cur="";else pop=parts.pop();if(pop==null)pop=context;Expr.relative[cur](checkSet,pop,contextXML)}}else checkSet=parts=[]}if(!checkSet)checkSet=set;if(!checkSet)Sizzle.error(cur||selector);if(toString.call(checkSet)==="[object Array]")if(!prune)results.push.apply(results,checkSet);else if(context&&context.nodeType===1)for(i=0;checkSet[i]!= null;i++){if(checkSet[i]&&(checkSet[i]===true||checkSet[i].nodeType===1&&Sizzle.contains(context,checkSet[i])))results.push(set[i])}else for(i=0;checkSet[i]!=null;i++){if(checkSet[i]&&checkSet[i].nodeType===1)results.push(set[i])}else makeArray(checkSet,results);if(extra){Sizzle(extra,origContext,results,seed);Sizzle.uniqueSort(results)}return results};Sizzle.uniqueSort=function(results){if(sortOrder){hasDuplicate=baseHasDuplicate;results.sort(sortOrder);if(hasDuplicate)for(var i=1;i<results.length;i++)if(results[i]=== results[i-1])results.splice(i--,1)}return results};Sizzle.matches=function(expr,set){return Sizzle(expr,null,null,set)};Sizzle.find=function(expr,context,isXML){var set;if(!expr)return[];for(var i=0,l=Expr.order.length;i<l;i++){var type=Expr.order[i],match;if(match=Expr.leftMatch[type].exec(expr)){var left=match[1];match.splice(1,1);if(left.substr(left.length-1)!=="\\"){match[1]=(match[1]||"").replace(/\\/g,"");set=Expr.find[type](match,context,isXML);if(set!=null){expr=expr.replace(Expr.match[type], "");break}}}}if(!set)set=context.getElementsByTagName("*");return{set:set,expr:expr}};Sizzle.filter=function(expr,set,inplace,not){var old=expr,result=[],curLoop=set,match,anyFound,isXMLFilter=set&&set[0]&&Sizzle.isXML(set[0]);while(expr&&set.length){for(var type in Expr.filter)if((match=Expr.leftMatch[type].exec(expr))!=null&&match[2]){var filter=Expr.filter[type],found,item,left=match[1];anyFound=false;match.splice(1,1);if(left.substr(left.length-1)==="\\")continue;if(curLoop===result)result=[]; if(Expr.preFilter[type]){match=Expr.preFilter[type](match,curLoop,inplace,result,not,isXMLFilter);if(!match)anyFound=found=true;else if(match===true)continue}if(match)for(var i=0;(item=curLoop[i])!=null;i++)if(item){found=filter(item,match,i,curLoop);var pass=not^!!found;if(inplace&&found!=null)if(pass)anyFound=true;else curLoop[i]=false;else if(pass){result.push(item);anyFound=true}}if(found!==undefined){if(!inplace)curLoop=result;expr=expr.replace(Expr.match[type],"");if(!anyFound)return[];break}}if(expr=== old)if(anyFound==null)Sizzle.error(expr);else break;old=expr}return curLoop};Sizzle.error=function(msg){throw"Syntax error, unrecognized expression: "+msg;};var Expr=Sizzle.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/, POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(elem){return elem.getAttribute("href")}},relative:{"+":function(checkSet,part){var isPartStr=typeof part==="string",isTag=isPartStr&&!/\W/.test(part),isPartStrNotTag=isPartStr&&!isTag;if(isTag)part=part.toLowerCase();for(var i=0,l=checkSet.length,elem;i<l;i++)if(elem= checkSet[i]){while((elem=elem.previousSibling)&&elem.nodeType!==1);checkSet[i]=isPartStrNotTag||elem&&elem.nodeName.toLowerCase()===part?elem||false:elem===part}if(isPartStrNotTag)Sizzle.filter(part,checkSet,true)},">":function(checkSet,part){var isPartStr=typeof part==="string",elem,i=0,l=checkSet.length;if(isPartStr&&!/\W/.test(part)){part=part.toLowerCase();for(;i<l;i++){elem=checkSet[i];if(elem){var parent=elem.parentNode;checkSet[i]=parent.nodeName.toLowerCase()===part?parent:false}}}else{for(;i< l;i++){elem=checkSet[i];if(elem)checkSet[i]=isPartStr?elem.parentNode:elem.parentNode===part}if(isPartStr)Sizzle.filter(part,checkSet,true)}},"":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck,nodeCheck;if(typeof part==="string"&&!/\W/.test(part)){part=part.toLowerCase();nodeCheck=part;checkFn=dirNodeCheck}checkFn("parentNode",part,doneName,checkSet,nodeCheck,isXML)},"~":function(checkSet,part,isXML){var doneName=done++,checkFn=dirCheck,nodeCheck;if(typeof part==="string"&&!/\W/.test(part)){part= part.toLowerCase();nodeCheck=part;checkFn=dirNodeCheck}checkFn("previousSibling",part,doneName,checkSet,nodeCheck,isXML)}},find:{ID:function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?[m]:[]}},NAME:function(match,context){if(typeof context.getElementsByName!=="undefined"){var ret=[],results=context.getElementsByName(match[1]);for(var i=0,l=results.length;i<l;i++)if(results[i].getAttribute("name")===match[1])ret.push(results[i]); return ret.length===0?null:ret}},TAG:function(match,context){return context.getElementsByTagName(match[1])}},preFilter:{CLASS:function(match,curLoop,inplace,result,not,isXML){match=" "+match[1].replace(/\\/g,"")+" ";if(isXML)return match;for(var i=0,elem;(elem=curLoop[i])!=null;i++)if(elem)if(not^(elem.className&&(" "+elem.className+" ").replace(/[\t\n]/g," ").indexOf(match)>=0)){if(!inplace)result.push(elem)}else if(inplace)curLoop[i]=false;return false},ID:function(match){return match[1].replace(/\\/g, "")},TAG:function(match,curLoop){return match[1].toLowerCase()},CHILD:function(match){if(match[1]==="nth"){var test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(match[2]==="even"&&"2n"||match[2]==="odd"&&"2n+1"||!/\D/.test(match[2])&&"0n+"+match[2]||match[2]);match[2]=test[1]+(test[2]||1)-0;match[3]=test[3]-0}match[0]=done++;return match},ATTR:function(match,curLoop,inplace,result,not,isXML){var name=match[1].replace(/\\/g,"");if(!isXML&&Expr.attrMap[name])match[1]=Expr.attrMap[name];if(match[2]==="~=")match[4]= " "+match[4]+" ";return match},PSEUDO:function(match,curLoop,inplace,result,not){if(match[1]==="not")if((chunker.exec(match[3])||"").length>1||/^\w/.test(match[3]))match[3]=Sizzle(match[3],null,null,curLoop);else{var ret=Sizzle.filter(match[3],curLoop,inplace,true^not);if(!inplace)result.push.apply(result,ret);return false}else if(Expr.match.POS.test(match[0])||Expr.match.CHILD.test(match[0]))return true;return match},POS:function(match){match.unshift(true);return match}},filters:{enabled:function(elem){return elem.disabled=== false&&elem.type!=="hidden"},disabled:function(elem){return elem.disabled===true},checked:function(elem){return elem.checked===true},selected:function(elem){elem.parentNode.selectedIndex;return elem.selected===true},parent:function(elem){return!!elem.firstChild},empty:function(elem){return!elem.firstChild},has:function(elem,i,match){return!!Sizzle(match[3],elem).length},header:function(elem){return/h\d/i.test(elem.nodeName)},text:function(elem){return"text"===elem.type},radio:function(elem){return"radio"=== elem.type},checkbox:function(elem){return"checkbox"===elem.type},file:function(elem){return"file"===elem.type},password:function(elem){return"password"===elem.type},submit:function(elem){return"submit"===elem.type},image:function(elem){return"image"===elem.type},reset:function(elem){return"reset"===elem.type},button:function(elem){return"button"===elem.type||elem.nodeName.toLowerCase()==="button"},input:function(elem){return/input|select|textarea|button/i.test(elem.nodeName)}},setFilters:{first:function(elem, i){return i===0},last:function(elem,i,match,array){return i===array.length-1},even:function(elem,i){return i%2===0},odd:function(elem,i){return i%2===1},lt:function(elem,i,match){return i<match[3]-0},gt:function(elem,i,match){return i>match[3]-0},nth:function(elem,i,match){return match[3]-0===i},eq:function(elem,i,match){return match[3]-0===i}},filter:{PSEUDO:function(elem,match,i,array){var name=match[1],filter=Expr.filters[name];if(filter)return filter(elem,i,match,array);else if(name==="contains")return(elem.textContent|| elem.innerText||Sizzle.getText([elem])||"").indexOf(match[3])>=0;else if(name==="not"){var not=match[3];for(var j=0,l=not.length;j<l;j++)if(not[j]===elem)return false;return true}else Sizzle.error("Syntax error, unrecognized expression: "+name)},CHILD:function(elem,match){var type=match[1],node=elem;switch(type){case "only":case "first":while(node=node.previousSibling)if(node.nodeType===1)return false;if(type==="first")return true;node=elem;case "last":while(node=node.nextSibling)if(node.nodeType=== 1)return false;return true;case "nth":var first=match[2],last=match[3];if(first===1&&last===0)return true;var doneName=match[0],parent=elem.parentNode;if(parent&&(parent.sizcache!==doneName||!elem.nodeIndex)){var count=0;for(node=parent.firstChild;node;node=node.nextSibling)if(node.nodeType===1)node.nodeIndex=++count;parent.sizcache=doneName}var diff=elem.nodeIndex-last;if(first===0)return diff===0;else return diff%first===0&&diff/first>=0}},ID:function(elem,match){return elem.nodeType===1&&elem.getAttribute("id")=== match},TAG:function(elem,match){return match==="*"&&elem.nodeType===1||elem.nodeName.toLowerCase()===match},CLASS:function(elem,match){return(" "+(elem.className||elem.getAttribute("class"))+" ").indexOf(match)>-1},ATTR:function(elem,match){var name=match[1],result=Expr.attrHandle[name]?Expr.attrHandle[name](elem):elem[name]!=null?elem[name]:elem.getAttribute(name),value=result+"",type=match[2],check=match[4];return result==null?type==="!=":type==="="?value===check:type==="*="?value.indexOf(check)>= 0:type==="~="?(" "+value+" ").indexOf(check)>=0:!check?value&&result!==false:type==="!="?value!==check:type==="^="?value.indexOf(check)===0:type==="$="?value.substr(value.length-check.length)===check:type==="|="?value===check||value.substr(0,check.length+1)===check+"-":false},POS:function(elem,match,i,array){var name=match[2],filter=Expr.setFilters[name];if(filter)return filter(elem,i,match,array)}}};var origPOS=Expr.match.POS,fescape=function(all,num){return"\\"+(num-0+1)};for(var type in Expr.match){Expr.match[type]= new RegExp(Expr.match[type].source+/(?![^\[]*\])(?![^\(]*\))/.source);Expr.leftMatch[type]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Expr.match[type].source.replace(/\\(\d+)/g,fescape))}var makeArray=function(array,results){array=Array.prototype.slice.call(array,0);if(results){results.push.apply(results,array);return results}return array};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType}catch(e){makeArray=function(array,results){var ret=results||[],i=0;if(toString.call(array)=== "[object Array]")Array.prototype.push.apply(ret,array);else if(typeof array.length==="number")for(var l=array.length;i<l;i++)ret.push(array[i]);else for(;array[i];i++)ret.push(array[i]);return ret}}var sortOrder;if(document.documentElement.compareDocumentPosition)sortOrder=function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition){if(a==b)hasDuplicate=true;return a.compareDocumentPosition?-1:1}var ret=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(ret===0)hasDuplicate=true;return ret}; else if("sourceIndex"in document.documentElement)sortOrder=function(a,b){if(!a.sourceIndex||!b.sourceIndex){if(a==b)hasDuplicate=true;return a.sourceIndex?-1:1}var ret=a.sourceIndex-b.sourceIndex;if(ret===0)hasDuplicate=true;return ret};else if(document.createRange)sortOrder=function(a,b){if(!a.ownerDocument||!b.ownerDocument){if(a==b)hasDuplicate=true;return a.ownerDocument?-1:1}var aRange=a.ownerDocument.createRange(),bRange=b.ownerDocument.createRange();aRange.setStart(a,0);aRange.setEnd(a,0); bRange.setStart(b,0);bRange.setEnd(b,0);var ret=aRange.compareBoundaryPoints(Range.START_TO_END,bRange);if(ret===0)hasDuplicate=true;return ret};Sizzle.getText=function(elems){var ret="",elem;for(var i=0;elems[i];i++){elem=elems[i];if(elem.nodeType===3||elem.nodeType===4)ret+=elem.nodeValue;else if(elem.nodeType!==8)ret+=Sizzle.getText(elem.childNodes)}return ret};(function(){var form=document.createElement("div"),id="script"+(new Date).getTime();form.innerHTML="<a name='"+id+"'/>";var root=document.documentElement; root.insertBefore(form,root.firstChild);if(document.getElementById(id)){Expr.find.ID=function(match,context,isXML){if(typeof context.getElementById!=="undefined"&&!isXML){var m=context.getElementById(match[1]);return m?m.id===match[1]||typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id").nodeValue===match[1]?[m]:undefined:[]}};Expr.filter.ID=function(elem,match){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return elem.nodeType===1&&node&&node.nodeValue=== match}}root.removeChild(form);root=form=null})();(function(){var div=document.createElement("div");div.appendChild(document.createComment(""));if(div.getElementsByTagName("*").length>0)Expr.find.TAG=function(match,context){var results=context.getElementsByTagName(match[1]);if(match[1]==="*"){var tmp=[];for(var i=0;results[i];i++)if(results[i].nodeType===1)tmp.push(results[i]);results=tmp}return results};div.innerHTML="<a href='#'></a>";if(div.firstChild&&typeof div.firstChild.getAttribute!=="undefined"&& div.firstChild.getAttribute("href")!=="#")Expr.attrHandle.href=function(elem){return elem.getAttribute("href",2)};div=null})();if(document.querySelectorAll)(function(){var oldSizzle=Sizzle,div=document.createElement("div");div.innerHTML="<p class='TEST'></p>";if(div.querySelectorAll&&div.querySelectorAll(".TEST").length===0)return;Sizzle=function(query,context,extra,seed){context=context||document;if(!seed&&context.nodeType===9&&!Sizzle.isXML(context))try{return makeArray(context.querySelectorAll(query), extra)}catch(e){}return oldSizzle(query,context,extra,seed)};for(var prop in oldSizzle)Sizzle[prop]=oldSizzle[prop];div=null})();(function(){var div=document.createElement("div");div.innerHTML="<div class='test e'></div><div class='test'></div>";if(!div.getElementsByClassName||div.getElementsByClassName("e").length===0)return;div.lastChild.className="e";if(div.getElementsByClassName("e").length===1)return;Expr.order.splice(1,0,"CLASS");Expr.find.CLASS=function(match,context,isXML){if(typeof context.getElementsByClassName!== "undefined"&&!isXML)return context.getElementsByClassName(match[1])};div=null})();function dirNodeCheck(dir,cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break}if(elem.nodeType===1&&!isXML){elem.sizcache=doneName;elem.sizset=i}if(elem.nodeName.toLowerCase()===cur){match=elem;break}elem=elem[dir]}checkSet[i]=match}}}function dirCheck(dir, cur,doneName,checkSet,nodeCheck,isXML){for(var i=0,l=checkSet.length;i<l;i++){var elem=checkSet[i];if(elem){elem=elem[dir];var match=false;while(elem){if(elem.sizcache===doneName){match=checkSet[elem.sizset];break}if(elem.nodeType===1){if(!isXML){elem.sizcache=doneName;elem.sizset=i}if(typeof cur!=="string"){if(elem===cur){match=true;break}}else if(Sizzle.filter(cur,[elem]).length>0){match=elem;break}}elem=elem[dir]}checkSet[i]=match}}}Sizzle.contains=document.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)& 16)}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)};Sizzle.isXML=function(elem){var documentElement=(elem?elem.ownerDocument||elem:0).documentElement;return documentElement?documentElement.nodeName!=="HTML":false};var posProcess=function(selector,context){var tmpSet=[],later="",match,root=context.nodeType?[context]:context;while(match=Expr.match.PSEUDO.exec(selector)){later+=match[0];selector=selector.replace(Expr.match.PSEUDO,"")}selector=Expr.relative[selector]?selector+"*":selector; for(var i=0,l=root.length;i<l;i++)Sizzle(selector,root[i],tmpSet);return Sizzle.filter(later,tmpSet)};window.$$=function(selector,context,results,seed){if(context)context=context.node?context.node:context;var results=Sizzle(selector,context,results,seed);var nodes=[];$A(results).each(function(elem){nodes.push($Node(elem))});return nodes};window.$=function(id){if(!id)return null;if(id.node)return id;if(!arale.isString(id)&&id.nodeType)return $Node(id);var node=document.getElementById(id);if(node)return $Node(node); return null}})(); arale.module("arale.event.store",function(arale){var array=arale.array,arr=Array.prototype;var store=function(){this.targets={};this.handlers={}};arale.augment(store,{addHandler:function(id,type,fn){this._getHandlerList(id,type).push(fn);return fn},_getHandlerList:function(id,type){var handlers=this.handlers;var handlersForId=handlers[id]||(handlers[id]={});return handlersForId[type]||(handlersForId[type]=[])},removeHandler:function(id,type,fn){var handlers=this.handlers,shandler;if(!handlers[id])return; shandler=handlers[id];if(!shandler[type])return;shandler[type]=$A(shandler[type]).filter(function(f){return f!=fn});if(shandler[type].length===0)delete handlers[id][type]},removeAllHandler:function(id,type){var handlers=this.handlers;if(handlers[id]&&handlers[id][type]){handlers[id][type]=null;delete handlers[id][type]}},invoke:function(id,type,e){var handlers=this.getHandlers(id,type),params=arr.slice.call(arguments,2);$A(handlers).each(function(fn){fn.apply(null,params)})},getHandlers:function(id, type){if(this.handlers[id]===undefined)return[];if(this.handlers[id][type]===undefined)return this.handlers[id][type]=[];return this.handlers[id][type]},getTarget:function(id){return this.targets[id]},setTarget:function(target){this.targets[id]=target}});return{getStore:function(){return new store}}}(arale),"$E"); arale.module("arale.event.core",function(arale){var slice=Array.prototype.slice,array=arale.array,dom=arale.dom,store=arale.event.store.getStore(),doc=document;var STORE_GUID="storeTargetId",SId=arale.now();var getId=function(target){return target[STORE_GUID]||(target[STORE_GUID]=++SId)};var allEvents="blur focus focusin focusout load resize scroll"+" unload click dblclick mousedown mouseup mousemove mouseover mouseout "+" mouseenter mouseleave change select submit keydown keypress keyup error";var fixEvent= function(method){if(allEvents.indexOf(method)>-1)return"on"+method;return method};var getDispatcher=function(store,source,method){var serId=getId(source);if(isElement(source))return function(e){e=e||window.event;var params=[serId,method].concat(e,slice.call(arguments,1));params[2]=$E.getEventObject(source,params[2]);store.invoke.apply(store,params)};else return function(){var c=arguments.callee,t=c.target,params=[serId,method].concat(slice.call(arguments));var r=t&&t.apply(null,arguments);store.invoke.apply(store, params);return r}};var isElement=function(obj){return obj&&(obj.nodeType||obj.attachEvent||obj.addEventListener)};var _topics={};var keys={BACKSPACE:8,TAB:9,CLEAR:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,META:arale.isSafari()?91:224,PAUSE:19,CAPS_LOCK:20,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,INSERT:45,DELETE:46,HELP:47,LEFT_WINDOW:91,RIGHT_WINDOW:92,SELECT:93,NUMPAD_0:96,NUMPAD_1:97,NUMPAD_2:98,NUMPAD_3:99,NUMPAD_4:100,NUMPAD_5:101, NUMPAD_6:102,NUMPAD_7:103,NUMPAD_8:104,NUMPAD_9:105,NUMPAD_MULTIPLY:106,NUMPAD_PLUS:107,NUMPAD_ENTER:108,NUMPAD_MINUS:109,NUMPAD_PERIOD:110,NUMPAD_DIVIDE:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,NUM_LOCK:144,SCROLL_LOCK:145,copyKey:arale.isMac()?arale.isSafari()?91:224:17};return{connect:function(obj,event,context,method){event=fixEvent(event);if(arale.isArray(obj)){var results=[],that=this;var callback=arale.hitch(context, method);$A(obj).each(function(o){results.push(that._connect(o,event,callback))});return results}else return this._connect(obj,event,arale.hitch(context,method))},on:function(){return this.connect.apply(this,arguments)},_connect:function(source,method,handler){source=arale.isString(source)?$(source):source;if(source===null)return null;if(source.node)source=source.node;var f=source[method],d;if(!f||!source[STORE_GUID]){d=source[method]=getDispatcher(store,source,method);d.target=f}var serId=getId(source); store.addHandler(serId,method,handler);return[serId,method,handler]},disConnect:function(handler){if(handler===null)return;if(arale.isArray(handler[0][0])){var that=this;$A(handler).each(function(h){that._disConnect.apply(that,h)})}else this._disConnect.apply(this,handler)},off:function(){this.disConnect.apply(this,arguments)},_disConnect:function(serId,method,handler){method=fixEvent(method);store.removeHandler(serId,method,handler)},disAllConnect:function(obj,method){var serId=getId(obj);if(obj.node){obj= obj.node;obj[method]=null}method=fixEvent(method);store.removeAllHandler(serId,method)},subscribe:function(topic,context,method){var serId=getId(_topics);return[serId,topic,store.addHandler(serId,topic,arale.hitch(context,method))]},unsubscribe:function(handler){if(handler)store.removeHandler.apply(store,handler)},publish:function(topic,args){var serId=getId(_topics);var f=store.getHandlers(serId,topic);if(f)store.invoke.apply(store,[serId,topic].concat(args||[]))},connectPublisher:function(topic, context,event){var pf=function(){$E.publish(topic,arguments)};return this.connect(context,event,pf)},trigger:function(elem,type,data){if(elem.node)elem=elem.node;var fn=getDispatcher(store,elem,type);var event=$E.getEventObject(elem,type);fn.apply(null,[event].concat(data));var parent=elem.parentNode||elem.ownerDocument;if(!event.isPropagationStopped()&&parent)$E.trigger(parent,type)},delegate:function(domNode,eventType,handler,selector){if(domNode.node)domNode=domNode.node;var that=this,newHandler= handler;if(selector)newHandler=function(e){var target=e.target;var match=$A($$(selector,domNode)).some(function(node){if(target==node.node)return true;var inChain=that._isInDomChain(target,node.node,domNode);if(inChain){target=inChain;return true}else return false});if(match)handler.call(that,target,e)};else newHandler=function(e){handler.call(this,domNode,e)};return $E.connect(domNode,eventType,newHandler)},_isInDomChain:function(target,parent,ancestor){if(target==ancestor)return false;if(target== parent)return target;var i=0;while(target!=ancestor&&target!=null){i++;target=target.parentNode;if(target==parent)return target;if(i>5)return false}return false},keys:keys,domReady:function(fn){var core=arale.event.core;if(core.domReady.loaded)fn();core.domReady.observers=core.domReady.observers||[];var observers=core.domReady.observers;observers[observers.length]=fn;if(core.domReady.callback)return;core.domReady.callback=function(){if(core.domReady.loaded)return;core.domReady.loaded=true;if(core.domReady.timer){clearInterval(core.domReady.timer); core.domReady.timer=null}for(var i=0,length=observers.length;i<length;i++){var fn=observers[i];observers[i]=null;fn()}core.domReady.callback=core.domReady.observers=null};if(document.readyState&&arale.browser.Engine.webkit)core.domReady.timer=setInterval(function(){var state=document.readyState;if(state=="loaded"||state=="complete")core.domReady.callback()},50);else if(document.readyState&&arale.browser.Engine.trident){var src=window.location.protocol=="https:"?"://0":"javascript:void(0)";document.write('<script type="text/javascript" defer="defer" src="'+ src+'" '+"onreadystatechange=\"if (this.readyState == 'complete') $E.domReady.callback();\""+"><\/script>")}else if(window.addEventListener){document.addEventListener("DOMContentLoaded",core.domReady.callback,false);window.addEventListener("load",core.domReady.callback,false)}else if(window.attachEvent)window.attachEvent("onload",core.domReady.callback);else{var fn=window.onload;window.onload=function(){core.domReady.callback();if(fn)fn()}}}}}(arale),"$E");E=$E; arale.module("arale.event.object",function(arale){var doc=document,props="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" ");var EventObject=function(target,domEvent){var that=this;that.currentTarget=target; that.originalEvent=domEvent||{};if(domEvent&&domEvent.type){that.type=domEvent.type;that._fix(that)}else{that.type=domEvent;that.target=target}};function returnFalse(){return false}function returnTrue(){return true}arale.augment(EventObject,{_fix:function(event){var that=this,originalEvent=that.originalEvent,l=props.length,prop,ct=that.currentTarget,ownerDoc=ct.nodeType===9?ct:ct.ownerDocument||doc;while(l){prop=props[--l];that[prop]=originalEvent[prop]}if(!that.target)that.target=that.srcElement|| doc;if(that.target.nodeType===3)that.target=that.target.parentNode;if(!that.relatedTarget&&that.fromElement)that.relatedTarget=that.fromElement===that.target?that.toElement:that.fromElement;if(that.pageX===undefined&&that.clientX!==undefined){var docEl=ownerDoc.documentElement,bd=ownerDoc.body;that.pageX=that.clientX+(docEl&&docEl.scrollLeft||bd&&bd.scrollLeft||0)-(docEl&&docEl.clientLeft||bd&&bd.clientLeft||0);that.pageY=that.clientY+(docEl&&docEl.scrollTop||bd&&bd.scrollTop||0)-(docEl&&docEl.clientTop|| bd&&bd.clientTop||0)}if(!that.which)that.which=that.charCode?that.charCode:that.keyCode;if(that.metaKey===undefined)that.metaKey=that.ctrlKey;if(!that.which&&that.button!==undefined)that.which=that.button&1?1:that.button&2?3:that.button&4?2:0},preventDefault:function(){this.isDefaultPrevented=returnTrue;var e=this.originalEvent;if(!e)return;if(e.preventDefault)e.preventDefault();else e.returnValue=false;this.isDefaultPrevented=true},stopPropagation:function(){this.isPropagationStopped=returnTrue; var e=this.originalEvent;if(!e)return;if(e.stopPropagation)e.stopPropagation();else e.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=returnTrue;this.stopPropagation()},halt:function(immediate){if(immediate)this.stopImmediatePropagation();else this.stopPropagation();this.preventDefault()},stopEvent:function(evt){this.stopPropagation();this.preventDefault()},isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse}); return{getEventObject:function(target,event){return new EventObject(target,event)}}}(arale),"$E"); arale.deps=function(){var all_modules={};var LOAD={unload:0,loading:1,loaded:2};var Dependency=function(path,key,deps){this.path=path;this.key=key;this.deps=deps||[];this.status=LOAD.unload};Dependency.prototype={moduleStatus:function(status){if(status)this.status=status;return this.status},isLoad:function(){return this.status>0},getDepsPath:function(vers,moduleName){var paths=[],moudleName,module,i,len,tempPath;if(this.path.length>0)paths.unshift(this.path.join(","));if(this.deps.length>0)for(i= 0,len=this.deps.length;i<len;i++){moduleName=this.deps[i];module=arale.deps.getModule(moduleName);if(!module.isLoad()){tempPath=module.getDepsPath(vers,moduleName);if(tempPath.length>0)paths.unshift(tempPath.join(","))}}return paths},getDeps:function(){return this.deps},getPath:function(){return this.path}};return{addDependency:function(paths,moduleName,deps){if(!arale.isArray(paths))paths=[paths];all_modules[moduleName]=new Dependency(paths,moduleName,deps)},getModule:function(moduleName){return all_modules[moduleName]}, LOAD:LOAD,__getAllModule:function(){return all_modules}}}();arale.deps.addDependency(["arale/class/declare.js"],"arale.class",[]);arale.deps.addDependency(["arale/lang/aspect.js","arale/lang/md5.js","arale/lang/uri.js","arale/lang/tmpl.js","arale/lang/date.js","arale/lang/number.js"],"arale.lang");arale.deps.addDependency(["arale/http/jsonp.js","arale/http/ajax.js","arale/http/core.js"],"arale.http");arale.deps.addDependency(["arale/event/event-chain.js"],"arale.event.chain"); arale.deps.addDependency(["arale/fx/animator.js"],"arale.fx");arale.deps.addDependency([],"arale.corex",["arale.lang","arale.http","arale.event.chain","arale.class","arale.fx"]);arale.deps.addDependency(["aralex/widget.js","aralex/tplwidget.js","aralex/view.js"],"aralex.widget",["arale.corex"]);arale.deps.addDependency(["aralex/xbox/xbox.js","aralex/xbox/domxbox.js","aralex/xbox/iframexbox.js","aralex/xbox/stringxbox.js"],"aralex.xbox",["aralex.widget"]); arale.deps.addDependency(["aralex/tab/tab.js"],"aralex.tab",["aralex.widget"]);arale.deps.addDependency(["aralex/calculator/calculator.js"],"aralex.calculator",["aralex.widget"]);arale.deps.addDependency(["aralex/cityhint/cityhint.js"],"aralex.cityhint",["aralex.widget"]);arale.deps.addDependency(["aralex/cityhint/localcityhint.js"],"aralex.localcityhint",["aralex.cityhint"]);arale.deps.addDependency(["aralex/countdown/countdown.js"],"aralex.countdown",["aralex.widget"]); arale.deps.addDependency(["aralex/slider/slider.js"],"aralex.slider",["aralex.widget"]);arale.deps.addDependency(["aralex/slider/switchslider.js"],"aralex.switchslider",["aralex.slider"]);arale.deps.addDependency(["aralex/validator/validator.js"],"aralex.validator",["aralex.widget"]);arale.deps.addDependency(["aralex/validator/classicvalidator.js"],"aralex.classicvalidator",["aralex.validator"]);arale.deps.addDependency(["aralex/confirmbox/confirmbox.js"],"aralex.confirmbox",["aralex.widget"]); arale.deps.addDependency(["aralex/dropdown/dropdown.js"],"aralex.dropdown",["aralex.widget"]);arale.deps.addDependency(["aralex/dropdown/animdropdown.js"],"aralex.animdropdown",["aralex.dropdown"]);arale.deps.addDependency(["aralex/cascadingcheckbox/cascadingcheckbox.js"],"aralex.cascadingcheckbox",["aralex.widget"]);arale.deps.addDependency(["aralex/calendar/calendar.js"],"aralex.calendar",["aralex.widget"]); arale.deps.addDependency(["aralex/contacts/picker.js","aralex/contacts/multipicker.js","aralex/contacts/cdropdown.js"],"aralex.contacts",["aralex.widget"]);arale.deps.addDependency(["aralex/apop/tallyremarkpop.js"],"aralex.tallyRemarkPop",["aralex.widget"]);arale.deps.addDependency(["aralex/interfaces/switchable/switchable.js"],"aralex.switchable",["aralex.widget"]);arale.deps.addDependency(["aralex/slider/fadeslider.js"],"aralex.fadeslider",["aralex.switchable"]); arale.module("arale.loader",function(){var LOADER_LOADED="/moduleloaded/",deps=arale.deps;var loadScriptDomElement=function(url,onload){var domscript=document.createElement("script");domscript.charset="UTF-8";domscript.src=url;if(onload){domscript.onloadDone=false;domscript.onload=onload;domscript.onreadystatechange=function(){if(("loaded"===domscript.readyState||"complete"===domscript.readyState)&&!domscript.onloadDone){domscript.onloadDone=true;domscript.onload()}}}document.getElementsByTagName("head")[0].appendChild(domscript)}; var loadCssDomElement=function(href){var cssFile=document.createElement("link");cssFile.setAttribute("rel","stylesheet");cssFile.setAttribute("type","text/css");cssFile.setAttribute("href",href);document.getElementsByTagName("head")[0].appendChild(cssFile)};var loadScriptDocWriter=function(url,onload){document.write("<scr"+'ipt src="'+url+'" type="text/javascript"></scr'+"ipt>");if(onload)$E.connect(window,"onload",onload)};var loaderScript=loadScriptDomElement;var loading=null,cssLoading,readyLoader= {},cssReadyLoader=[],callbacks=[];var context=arale.getComboPath(),watiTime=araleConfig.waitTime;var getPaths=function(paths){var path=context+paths.join(",");if(arale.debug)path=path+"&date="+(new Date).getTime()+"&debug=1";return path};var moduleLoaded=function(moduleName,isLoaded){return deps.getModule(moduleName).moduleStatus(isLoaded)};var startLoader=function(){if(loading)clearTimeout(loading);loading=setTimeout(function(){var paths=[],modules=[],moduleList=readyLoader;readyLoader={},subscribes= [];for(var moduleName in moduleList)if(moduleList.hasOwnProperty(moduleName)){modules.push(moduleName);if(moduleList[moduleName])paths=paths.concat(moduleList[moduleName])}if(paths.length===0)return;loaderScript(getPaths(paths),function(){for(var i=0,len=modules.length;i<len;i++){deps.getModule(modules[i]).moduleStatus(deps.LOAD.loaded);$A(callbacks).each(function(callback){callback()});$A(callbacks).empty()}})},watiTime)};var getModules=function(module,moduleList){$A(module.getDeps()).each(function(m){var module= deps.getModule(m);getModules(module,moduleList);if(moduleList.indexOf(m)<0)moduleList.arr.push(m)})};var loader=function(modules,callback){var moduleList=$A([]);if(!callback)callback=function(){};if(arale.isString(modules))modules=[modules];modules=$A(modules);modules.each(function(m){var module=deps.getModule(m);getModules(module,moduleList);moduleList.arr.push(m)});var success=true;moduleList.each(function(moduleName){var module=deps.getModule(moduleName);switch(module.moduleStatus()){case deps.LOAD.loaded:break; case deps.LOAD.loading:success=false;break;case deps.LOAD.unload:module.moduleStatus(deps.LOAD.loading);if(module.getPath().length>0)readyLoader[moduleName]=module.getPath().join(",");else readyLoader[moduleName]="";success=false;break}});if(success)callback();else{callbacks.push(callback);startLoader()}};var loadCss=function(){if(cssLoading)clearTimeout(cssLoading);cssLoading=setTimeout(function(){if(cssReadyLoader.length>0){loadCssDomElement(getPaths(cssReadyLoader));cssReadyLoader=[]}},50)};return{use:loader, waituse:function(){var params=[].slice.call(arguments,0);$E.domReady(function(){loader.apply(null,params)})},css:function(cssPath){if(cssPath){cssReadyLoader.push(cssPath);loadCss()}}}},"$Loader");Loader=$Loader;if(araleConfig.corex)Loader.use("arale.corex");

