以下是 支付宝生活助手导航代码 的示例演示效果:
部分效果截图:
HTML代码(index.html):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="keywords" content="JS代码,菜单导航,JS广告代码,JS特效代码" />
<meta name="description" content="此代码内容为支付宝生活助手导航代码,属于站长常用代码" />
<title>支付宝生活助手导航代码</title>
<link rel=stylesheet type=text/css href="css/lanrentuku.css">
</head>
<body>
<div id=container>
<div class=content>
<div class=svc-title>支付宝页面代码</div>
<div class=svc>
<div class=nav-left><a href="#"><em>1</em>/2</a>
</div>
<div class=container>
<div class=content>
<ul>
<li class="first current"><a class="svc-payment icon1" hidefocus href="#" seed="lf-index-payment" data-type="svc-04">我要付款</a> </li>
<li><a class="svc-gathering icon1" hidefocus href="#" seed="lf-index-gathering" data-type="svc-03">我要收款</a> </li>
<li><a class="svc-weg icon1" hidefocus href="#" seed="lf-index-jiaofei" data-type="svc-01">水电煤</a> </li>
<li><a class="svc-tx icon1" hidefocus href="#" seed="lf-index-tx" data-type="svc-10">通讯费</a> </li>
<li><a class="svc-credit icon1" hidefocus href="#" seed="lf-index-credit" data-type="svc-02">信用卡还款</a> </li>
<li><a class="svc-aa icon1" hidefocus href="#" seed="lf-index-aa" data-type="svc-08">aa收款</a> </li>
<li><a class="svc-donate icon1" hidefocus href="#" seed="lf-index-donate" data-type="svc-09">爱心捐赠</a> </li>
<li><a class="svc-mobile icon2" hidefocus href="#" seed="lf-index-mobile" data-type="svc-15">手机费</a> </li>
<li><a class="svc-escore icon1" hidefocus href="#" seed="lf-index-escore" data-type="svc-05">担保交易收款</a> </li>
<li><a class="svc-rent icon1" hidefocus href="#" seed="lf-index-rent" data-type="svc-06">交房租</a> </li>
<li><a class="svc-cashgift icon1" hidefocus href="#" seed="lf-index-cashgift" data-type="svc-07">送礼金</a> </li>
<li><a class="svc-insurance icon2" hidefocus href="#" seed="lf-index-insurance" data-type="svc-16">买保险</a> </li>
<li><a class="svc-flight icon2" hidefocus href="#" seed="lf-index-flight" data-type="svc-13">买机票</a> </li>
<li><a class="svc-hotel icon2" hidefocus href="#" seed="lf-index-hotel" data-type="svc-11">订酒店</a> </li>
<li><a class="svc-game icon2" hidefocus href="#" seed="lf-index-game" data-type="svc-14">游戏点卡</a> </li>
<li><a class="svc-lottery icon2" hidefocus href="#" seed="lf-index-lottery" data-type="svc-12">买彩票</a> </li></ul></div></div>
<div class=nav-right><a href="#"><em>1</em>/2</a>
</div>
</div>
</div>
</div>
<script src="js/arale.js" charset=utf-8></script>
<script>
E.onDOMReady(function(){
//初始化当前产品的内容,默认为全部隐藏
var currentLink = D.query('.svc .content li.current a');
if(currentLink.length >0){
var currentCont = currentLink[0].getAttribute('data-type');
D.removeClass(D.get(currentCont),'fn-hide');
}
//根据icon显示相应的信息
function showinfo(li){
var target = D.getChildren(li)[0].getAttribute('data-type');
D.addClass(D.query('.svc-content .item:not(.fn-hide)'),'fn-hide');
D.removeClass(D.get(target),'fn-hide');
D.removeClass(D.query('.svc .content li.current'),'current');
D.addClass(li,'current');
}
//点击icon显示相应内容
E.on(D.query('.svc .content li'),'mouseover',function(e){
E.preventDefault(e);
showinfo(this);
});
//点击左右的滑动效果
var index = 1;
var end = D.query('.svc .container')[0].offsetWidth;
var content = D.query('.svc .content')[0];
var list = D.query('li',content);
content.style.width = ( list[0].offsetWidth + 7 ) * list.length + 'px';
var left = new YAHOO.util.Anim(content,{left:{to:0}},1,YAHOO.util.Easing.easeOut);
var right = new YAHOO.util.Anim(content,{left:{to:-end}},1,YAHOO.util.Easing.easeOut);
E.on(D.query('.nav-left a'),'click',function(e){
E.preventDefault(e);
if(index == 2){
index = 1;
left.animate();
D.query('.svc em').forEach(function(o){
o.innerHTML = index;
});
showinfo(list[0]);
}
});
E.on(D.query('.nav-right a'),'click',function(e){
E.preventDefault(e);
if(index == 1){
index = 2;
right.animate();
D.query('.svc em').forEach(function(o){
o.innerHTML = index;
});
if(list.length >= 10){ //如果第二排的第一个存在,则选中第一个
showinfo(list[9]);
}
}
});
});
</script>
<!-- 个人版框架底部CMS 开始 -->
</body>
</html>
JS代码(arale.js):
/* * Project Arale - Alipay Javascript library based on YUI 2.8.0. * Copyright (c) 2009 Alipay.com * @namespace AP * @version 0.1 alpha * @author Dc * Special thanks to Sizzle! */
/*Copyright (c) 2009,Yahoo! Inc. All rights reserved.Code licensed under the BSD License:http://developer.yahoo.net/yui/license.txtversion:2.8.0*/
if(typeof YAHOO=="undefined"||!YAHOO){
var YAHOO={
}
}
YAHOO.namespace=function(){
var a=arguments,b=null,d,f,c;
for(d=0;
d<a.length;
d=d+1){
c=a[d].split(".");
b=YAHOO;
for(f=(c[0]=="YAHOO")?1:0;
f<c.length;
f=f+1){
b[c[f]]=b[c[f]]||{
}
;
b=b[c[f]]}
}
return b}
;
YAHOO.log=function(b,a,c){
var d=YAHOO.widget.Logger;
if(d&&d.log){
return d.log(b,a,c)}
else{
return false}
}
;
YAHOO.register=function(d,k,a){
var f=YAHOO.env.modules;
if(!f[d]){
f[d]={
versions:[],builds:[]}
}
var c=f[d],g=a.version,h=a.build,j=YAHOO.env.listeners;
c.name=d;
c.version=g;
c.build=h;
c.versions.push(g);
c.builds.push(h);
c.mainClass=k;
for(var b=0;
b<j.length;
b=b+1){
j[b](c)}
if(k){
k.VERSION=g;
k.BUILD=h}
else{
YAHOO.log("mainClass is undefined for module "+d,"warn")}
}
;
YAHOO.env=YAHOO.env||{
modules:[],listeners:[]}
;
YAHOO.env.getVersion=function(a){
return YAHOO.env.modules[a]||null}
;
YAHOO.env.ua=function(){
var b={
ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0}
;
var c=navigator.userAgent,a;
if((/KHTML/).test(c)){
b.webkit=1}
a=c.match(/AppleWebKit\/([^\s]*)/);
if(a&&a[1]){
b.webkit=parseFloat(a[1]);
if(/ Mobile\//.test(c)){
b.mobile="Apple"}
else{
a=c.match(/NokiaN[^\/]*/
);
if(a){
b.mobile=a[0]}
}
a=c.match(/AdobeAIR\/([^\s]*)/);
if(a){
b.air=a[0]}
}
if(!b.webkit){
a=c.match(/Opera[\s\/]([^\s]*)/);
if(a&&a[1]){
b.opera=parseFloat(a[1]);
a=c.match(/Opera Mini[^;
]*/
);
if(a){
b.mobile=a[0]}
}
else{
a=c.match(/MSIE\s([^;
]*)/);
if(a&&a[1]){
b.ie=parseFloat(a[1])}
else{
a=c.match(/Gecko\/([^\s]*)/);
if(a){
b.gecko=1;
a=c.match(/rv:([^\s\)]*)/);
if(a&&a[1]){
b.gecko=parseFloat(a[1])}
}
}
}
}
return b}
();
(function(){
YAHOO.namespace("util","widget","example");
if("undefined"!==typeof YAHOO_config){
var d=YAHOO_config.listener,a=YAHOO.env.listeners,b=true,c;
if(d){
for(c=0;
c<a.length;
c=c+1){
if(a[c]==d){
b=false;
break}
}
if(b){
a.push(d)}
}
}
}
)();
YAHOO.lang=YAHOO.lang||{
}
;
(function(){
var a=YAHOO.lang,b=["toString","valueOf"],c={
isArray:function(d){
if(d){
return a.isNumber(d.length)&&a.isFunction(d.splice)}
return false}
,isBoolean:function(d){
return typeof d==="boolean"}
,isFunction:function(d){
return typeof d==="function"}
,isNull:function(d){
return d===null}
,isNumber:function(d){
return typeof d==="number"&&isFinite(d)}
,isObject:function(d){
return(d&&(typeof d==="object"||a.isFunction(d)))||false}
,isString:function(d){
return typeof d==="string"}
,isUndefined:function(d){
return typeof d==="undefined"}
,_IEEnumFix:(YAHOO.env.ua.ie)?function(g,h){
for(var j=0;
j<b.length;
j=j+1){
var d=b[j],f=h[d];
if(a.isFunction(f)&&f!=Object.prototype[d]){
g[d]=f}
}
}
:function(){
}
,extend:function(f,d,g){
if(!d||!f){
throw new Error("extend failed,please check that all dependencies are included.")}
var h=function(){
}
;
h.prototype=d.prototype;
f.prototype=new h();
f.prototype.constructor=f;
f.superclass=d.prototype;
if(d.prototype.constructor==Object.prototype.constructor){
d.prototype.constructor=d}
if(g){
for(var j in g){
if(a.hasOwnProperty(g,j)){
f.prototype[j]=g[j]}
}
a._IEEnumFix(f.prototype,g)}
}
,augmentObject:function(f,g){
if(!g||!f){
throw new Error("Absorb failed,verify dependencies.")}
var k=arguments,h,d,j=k[2];
if(j&&j!==true){
for(h=2;
h<k.length;
h=h+1){
f[k[h]]=g[k[h]]}
}
else{
for(d in g){
if(j||!(d in f)){
f[d]=g[d]}
}
a._IEEnumFix(f,g)}
}
,augmentProto:function(d,f){
if(!f||!d){
throw new Error("Augment failed,verify dependencies.")}
var h=[d.prototype,f.prototype];
for(var g=2;
g<arguments.length;
g=g+1){
h.push(arguments[g])}
a.augmentObject.apply(this,h)}
,dump:function(d,j){
var m,k,g=[],f="{
...}
",n="f(){
...}
",h=",",l=" => ";
if(!a.isObject(d)){
return d+""}
else{
if(d instanceof Date||("nodeType" in d&&"tagName" in d)){
return d}
else{
if(a.isFunction(d)){
return n}
}
}
j=(a.isNumber(j))?j:3;
if(a.isArray(d)){
g.push("[");
for(m=0,k=d.length;
m<k;
m=m+1){
if(a.isObject(d[m])){
g.push((j>0)?a.dump(d[m],j-1):f)}
else{
g.push(d[m])}
g.push(h)}
if(g.length>1){
g.pop()}
g.push("]")}
else{
g.push("{
");
for(m in d){
if(a.hasOwnProperty(d,m)){
g.push(m+l);
if(a.isObject(d[m])){
g.push((j>0)?a.dump(d[m],j-1):f)}
else{
g.push(d[m])}
g.push(h)}
}
if(g.length>1){
g.pop()}
g.push("}
")}
return g.join("")}
,substitute:function(f,w,n){
var r,t,u,k,j,g,l=[],v,q="dump",m=" ",d="{
",h="}
";
for(;
;
){
r=f.lastIndexOf(d);
if(r<0){
break}
t=f.indexOf(h,r);
if(r+1>=t){
break}
v=f.substring(r+1,t);
k=v;
g=null;
u=k.indexOf(m);
if(u>-1){
g=k.substring(u+1);
k=k.substring(0,u)}
j=w[k];
if(n){
j=n(k,j,g)}
if(a.isObject(j)){
if(a.isArray(j)){
j=a.dump(j,parseInt(g,10))}
else{
g=g||"";
var o=g.indexOf(q);
if(o>-1){
g=g.substring(4)}
if(j.toString===Object.prototype.toString||o>-1){
j=a.dump(j,parseInt(g,10))}
else{
j=j.toString()}
}
}
else{
if(!a.isString(j)&&!a.isNumber(j)){
j="~-"+l.length+"-~";
l[l.length]=v}
}
f=f.substring(0,r)+j+f.substring(t+1)}
for(r=l.length-1;
r>=0;
r=r-1){
f=f.replace(new RegExp("~-"+r+"-~"),"{
"+l[r]+"}
","g")}
return f}
,trim:function(f){
try{
return f.replace(/^\s+|\s+$/g,"")}
catch(d){
return f}
}
,merge:function(){
var d={
}
,g=arguments;
for(var f=0,h=g.length;
f<h;
f=f+1){
a.augmentObject(d,g[f],true)}
return d}
,later:function(g,n,f,l,k){
g=g||0;
n=n||{
}
;
var m=f,h=l,j,d;
if(a.isString(f)){
m=n[f]}
if(!m){
throw new TypeError("method undefined")}
if(!a.isArray(h)){
h=[l]}
j=function(){
m.apply(n,h)}
;
d=(k)?setInterval(j,g):setTimeout(j,g);
return{
interval:k,cancel:function(){
if(this.interval){
clearInterval(d)}
else{
clearTimeout(d)}
}
}
}
,isValue:function(d){
return(a.isObject(d)||a.isString(d)||a.isNumber(d)||a.isBoolean(d))}
}
;
a.hasOwnProperty=(Object.prototype.hasOwnProperty)?function(f,d){
return f&&f.hasOwnProperty(d)}
:function(f,d){
return !a.isUndefined(f[d])&&f.constructor.prototype[d]!==f[d]}
;
c.augmentObject(a,c,true);
YAHOO.util.Lang=a;
a.augment=a.augmentProto;
YAHOO.augment=a.augmentProto;
YAHOO.extend=a.extend}
)();
YAHOO.register("yahoo",YAHOO,{
version:"2.6.0",build:"1321"}
);
(function(){
var c=YAHOO.util,r=YAHOO.lang,k,m,l={
}
,q={
}
,h=window.document;
YAHOO.env._id_counter=YAHOO.env._id_counter||0;
var b=YAHOO.env.ua.opera,j=YAHOO.env.ua.webkit,d=YAHOO.env.ua.gecko,o=YAHOO.env.ua.ie;
var t={
HYPHEN:/(-[a-z])/i,ROOT_TAG:/^body|html$/i,OP_SCROLL:/^(?:inline|table-row)$/i}
;
var g=function(v){
if(!t.HYPHEN.test(v)){
return v}
if(l[v]){
return l[v]}
var u=v;
while(t.HYPHEN.exec(u)){
u=u.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase())}
l[v]=u;
return u}
;
var f=function(u){
var v=q[u];
if(!v){
v=new RegExp("(?:^|\\s+)"+u+"(?:\\s+|$)");
q[u]=v}
return v}
;
if(h.defaultView&&h.defaultView.getComputedStyle){
k=function(y,u){
var v=null;
if(u=="float"){
u="cssFloat"}
var w=y.ownerDocument.defaultView.getComputedStyle(y,"");
if(w){
v=w[g(u)]}
return y.style[u]||v}
}
else{
if(h.documentElement.currentStyle&&o){
k=function(z,w){
switch(g(w)){
case"opacity":var u=100;
try{
u=z.filters["DXImageTransform.Microsoft.Alpha"].opacity}
catch(v){
try{
u=z.filters("alpha").opacity}
catch(v){
}
}
return u/100;
case"float":w="styleFloat";
default:var y=z.currentStyle?z.currentStyle[w]:null;
return(z.style[w]||y)}
}
}
else{
k=function(v,u){
return v.style[u]}
}
}
if(o){
m=function(w,v,u){
switch(v){
case"opacity":if(r.isString(w.style.filter)){
w.style.filter="alpha(opacity="+u*100+")";
if(!w.currentStyle||!w.currentStyle.hasLayout){
w.style.zoom=1}
}
break;
case"float":v="styleFloat";
default:w.style[v]=u}
}
}
else{
m=function(w,v,u){
if(v=="float"){
v="cssFloat"}
w.style[v]=u}
}
var a=function(v,u){
return v&&v.nodeType==1&&(!u||u(v))}
;
YAHOO.util.Dom={
get:function(v){
if(v){
if(v.nodeType||v.item){
return v}
if(typeof v==="string"){
return h.getElementById(v)}
if("length" in v){
var u=[];
for(var w=0,y=v.length;
w<y;
++w){
u[u.length]=c.Dom.get(v[w])}
return u}
return v}
return null}
,getStyle:function(w,u){
u=g(u);
var v=function(y){
return k(y,u)}
;
return c.Dom.batch(w,v,c.Dom,true)}
,setStyle:function(y,v,u){
v=g(v);
var w=function(z){
m(z,v,u)}
;
c.Dom.batch(y,w,c.Dom,true)}
,getXY:function(v){
var u=function(w){
if((w.parentNode===null||w.offsetParent===null||this.getStyle(w,"display")=="none")&&w!=w.ownerDocument.body){
return false}
return n(w)}
;
return c.Dom.batch(v,u,c.Dom,true)}
,getX:function(v){
var u=function(w){
return c.Dom.getXY(w)[0]}
;
return c.Dom.batch(v,u,c.Dom,true)}
,getY:function(v){
var u=function(w){
return c.Dom.getXY(w)[1]}
;
return c.Dom.batch(v,u,c.Dom,true)}
,setXY:function(y,u,v){
var w=function(z){
var A=this.getStyle(z,"position");
if(A=="static"){
this.setStyle(z,"position","relative");
A="relative"}
var C=this.getXY(z);
if(C===false){
return false}
var F=[parseInt(this.getStyle(z,"left"),10),parseInt(this.getStyle(z,"top"),10)];
if(isNaN(F[0])){
F[0]=(A=="relative")?0:z.offsetLeft}
if(isNaN(F[1])){
F[1]=(A=="relative")?0:z.offsetTop}
if(u[0]!==null){
z.style.left=u[0]-C[0]+F[0]+"px"}
if(u[1]!==null){
z.style.top=u[1]-C[1]+F[1]+"px"}
if(!v){
var B=this.getXY(z);
if((u[0]!==null&&B[0]!=u[0])||(u[1]!==null&&B[1]!=u[1])){
this.setXY(z,u,true)}
}
}
;
c.Dom.batch(y,w,c.Dom,true)}
,setX:function(u,v){
c.Dom.setXY(u,[v,null])}
,setY:function(v,u){
c.Dom.setXY(v,[null,u])}
,getRegion:function(v){
var u=function(y){
if((y.parentNode===null||y.offsetParent===null||this.getStyle(y,"display")=="none")&&y!=y.ownerDocument.body){
return false}
var w=c.Region.getRegion(y);
return w}
;
return c.Dom.batch(v,u,c.Dom,true)}
,getClientWidth:function(){
return c.Dom.getViewportWidth()}
,getClientHeight:function(){
return c.Dom.getViewportHeight()}
,getElementsByClassName:function(z,u,y,w){
z=r.trim(z);
u=u||"*";
y=(y)?c.Dom.get(y):null||h;
if(!y){
return[]}
var C=[],F=y.getElementsByTagName(u),v=f(z);
for(var B=0,A=F.length;
B<A;
++B){
if(v.test(F[B].className)){
C[C.length]=F[B];
if(w){
w.call(F[B],F[B])}
}
}
return C}
,hasClass:function(v,w){
var y=f(w);
var u=function(z){
return y.test(z.className)}
;
return c.Dom.batch(v,u,c.Dom,true)}
,addClass:function(v,w){
var u=function(y){
if(this.hasClass(y,w)){
return false}
y.className=r.trim([y.className,w].join(" "));
return true}
;
return c.Dom.batch(v,u,c.Dom,true)}
,removeClass:function(v,w){
var y=f(w);
var u=function(z){
var A=false,C=z.className;
if(w&&C&&this.hasClass(z,w)){
z.className=C.replace(y," ");
if(this.hasClass(z,w)){
this.removeClass(z,w)}
z.className=r.trim(z.className);
if(z.className===""){
var B=(z.hasAttribute)?"class":"className";
z.removeAttribute(B)}
A=true}
return A}
;
return c.Dom.batch(v,u,c.Dom,true)}
,replaceClass:function(v,y,z){
if(!z||y===z){
return false}
var w=f(y);
var u=function(A){
if(!this.hasClass(A,y)){
this.addClass(A,z);
return true}
A.className=A.className.replace(w," "+z+" ");
if(this.hasClass(A,y)){
this.removeClass(A,y)}
A.className=r.trim(A.className);
return true}
;
return c.Dom.batch(v,u,c.Dom,true)}
,generateId:function(w,u){
u=u||"yui-gen";
var v=function(z){
if(z&&z.id){
return z.id}
var y=u+YAHOO.env._id_counter++;
if(z){
z.id=y}
return y}
;
return c.Dom.batch(w,v,c.Dom,true)||v.apply(c.Dom,arguments)}
,isAncestor:function(v,u){
v=c.Dom.get(v);
u=c.Dom.get(u);
var w=false;
if((v&&u)&&(v.nodeType&&u.nodeType)){
if(v.contains&&v!==u){
w=v.contains(u)}
else{
if(v.compareDocumentPosition){
w=!!(v.compareDocumentPosition(u)&16)}
}
}
else{
}
return w}
,inDocument:function(u){
return this.isAncestor(h.documentElement,u)}
,getElementsBy:function(C,A,z,w){
A=A||"*";
z=(z)?c.Dom.get(z):null||h;
if(!z){
return[]}
var y=[],u=z.getElementsByTagName(A);
for(var v=0,B=u.length;
v<B;
++v){
if(C(u[v])){
y[y.length]=u[v];
if(w){
w(u[v])}
}
}
return y}
,batch:function(w,C,u,z){
w=(w&&(w.tagName||w.item))?w:c.Dom.get(w);
if(!w||!C){
return false}
var y=(z)?u:window;
if(w.tagName||w.length===undefined){
return C.call(y,w,u)}
var v=[];
for(var A=0,B=w.length;
A<B;
++A){
v[v.length]=C.call(y,w[A],u)}
return v}
,getDocumentHeight:function(){
var u=(h.compatMode!="CSS1Compat")?h.body.scrollHeight:h.documentElement.scrollHeight;
var v=Math.max(u,c.Dom.getViewportHeight());
return v}
,getDocumentWidth:function(){
var u=(h.compatMode!="CSS1Compat")?h.body.scrollWidth:h.documentElement.scrollWidth;
var v=Math.max(u,c.Dom.getViewportWidth());
return v}
,getViewportHeight:function(){
var v=self.innerHeight;
var u=h.compatMode;
if((u||o)&&!b){
v=(u=="CSS1Compat")?h.documentElement.clientHeight:h.body.clientHeight}
return v}
,getViewportWidth:function(){
var v=self.innerWidth;
var u=h.compatMode;
if(u||o){
v=(u=="CSS1Compat")?h.documentElement.clientWidth:h.body.clientWidth}
return v}
,getAncestorBy:function(v,u){
while((v=v.parentNode)){
if(a(v,u)){
return v}
}
return null}
,getAncestorByClassName:function(v,w){
v=c.Dom.get(v);
if(!v){
return null}
var u=function(y){
return c.Dom.hasClass(y,w)}
;
return c.Dom.getAncestorBy(v,u)}
,getAncestorByTagName:function(v,w){
v=c.Dom.get(v);
if(!v){
return null}
var u=function(y){
return y.tagName&&y.tagName.toUpperCase()==w.toUpperCase()}
;
return c.Dom.getAncestorBy(v,u)}
,getPreviousSiblingBy:function(v,u){
while(v){
v=v.previousSibling;
if(a(v,u)){
return v}
}
return null}
,getPreviousSibling:function(u){
u=c.Dom.get(u);
if(!u){
return null}
return c.Dom.getPreviousSiblingBy(u)}
,getNextSiblingBy:function(v,u){
while(v){
v=v.nextSibling;
if(a(v,u)){
return v}
}
return null}
,getNextSibling:function(u){
u=c.Dom.get(u);
if(!u){
return null}
return c.Dom.getNextSiblingBy(u)}
,getFirstChildBy:function(w,u){
var v=(a(w.firstChild,u))?w.firstChild:null;
return v||c.Dom.getNextSiblingBy(w.firstChild,u)}
,getFirstChild:function(v,u){
v=c.Dom.get(v);
if(!v){
return null}
return c.Dom.getFirstChildBy(v)}
,getLastChildBy:function(w,u){
if(!w){
return null}
var v=(a(w.lastChild,u))?w.lastChild:null;
return v||c.Dom.getPreviousSiblingBy(w.lastChild,u)}
,getLastChild:function(u){
u=c.Dom.get(u);
return c.Dom.getLastChildBy(u)}
,getChildrenBy:function(w,u){
var v=c.Dom.getFirstChildBy(w,u);
var y=v?[v]:[];
c.Dom.getNextSiblingBy(v,function(z){
if(!u||u(z)){
y[y.length]=z}
return false}
);
return y}
,getChildren:function(u){
u=c.Dom.get(u);
if(!u){
}
return c.Dom.getChildrenBy(u)}
,getDocumentScrollLeft:function(u){
u=u||h;
return Math.max(u.documentElement.scrollLeft,u.body.scrollLeft)}
,getDocumentScrollTop:function(u){
u=u||h;
return Math.max(u.documentElement.scrollTop,u.body.scrollTop)}
,insertBefore:function(u,v){
u=c.Dom.get(u);
v=c.Dom.get(v);
if(!u||!v||!v.parentNode){
return null}
return v.parentNode.insertBefore(u,v)}
,insertAfter:function(u,v){
u=c.Dom.get(u);
v=c.Dom.get(v);
if(!u||!v||!v.parentNode){
return null}
if(v.nextSibling){
return v.parentNode.insertBefore(u,v.nextSibling)}
else{
return v.parentNode.appendChild(u)}
}
,getClientRegion:function(){
var v=c.Dom.getDocumentScrollTop(),w=c.Dom.getDocumentScrollLeft(),u=c.Dom.getViewportWidth()+w,y=c.Dom.getViewportHeight()+v;
return new c.Region(v,u,y,w)}
}
;
var n=function(){
if(h.documentElement.getBoundingClientRect){
return function(v){
var u=v.getBoundingClientRect(),w=Math.round;
var y=v.ownerDocument;
return[w(u.left+c.Dom.getDocumentScrollLeft(y)),w(u.top+c.Dom.getDocumentScrollTop(y))]}
}
else{
return function(v){
var u=[v.offsetLeft,v.offsetTop];
var w=v.offsetParent;
var y=(j&&c.Dom.getStyle(v,"position")=="absolute"&&v.offsetParent==v.ownerDocument.body);
if(w!=v){
while(w){
u[0]+=w.offsetLeft;
u[1]+=w.offsetTop;
if(!y&&j&&c.Dom.getStyle(w,"position")=="absolute"){
y=true}
w=w.offsetParent}
}
if(y){
u[0]-=v.ownerDocument.body.offsetLeft;
u[1]-=v.ownerDocument.body.offsetTop}
w=v.parentNode;
while(w.tagName&&!t.ROOT_TAG.test(w.tagName)){
if(w.scrollTop||w.scrollLeft){
u[0]-=w.scrollLeft;
u[1]-=w.scrollTop}
w=w.parentNode}
return u}
}
}
()}
)();
YAHOO.util.Region=function(c,b,a,d){
this.top=c;
this[1]=c;
this.right=b;
this.bottom=a;
this.left=d;
this[0]=d}
;
YAHOO.util.Region.prototype.contains=function(a){
return(a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom)}
;
YAHOO.util.Region.prototype.getArea=function(){
return((this.bottom-this.top)*(this.right-this.left))}
;
YAHOO.util.Region.prototype.intersect=function(b){
var d=Math.max(this.top,b.top);
var c=Math.min(this.right,b.right);
var a=Math.min(this.bottom,b.bottom);
var f=Math.max(this.left,b.left);
if(a>=d&&c>=f){
return new YAHOO.util.Region(d,c,a,f)}
else{
return null}
}
;
YAHOO.util.Region.prototype.union=function(b){
var d=Math.min(this.top,b.top);
var c=Math.max(this.right,b.right);
var a=Math.max(this.bottom,b.bottom);
var f=Math.min(this.left,b.left);
return new YAHOO.util.Region(d,c,a,f)}
;
YAHOO.util.Region.prototype.toString=function(){
return("Region{
top:"+this.top+",right:"+this.right+",bottom:"+this.bottom+",left:"+this.left+"}
")}
;
YAHOO.util.Region.getRegion=function(d){
var b=YAHOO.util.Dom.getXY(d);
var f=b[1];
var c=b[0]+d.offsetWidth;
var a=b[1]+d.offsetHeight;
var g=b[0];
return new YAHOO.util.Region(f,c,a,g)}
;
YAHOO.util.Point=function(a,b){
if(YAHOO.lang.isArray(a)){
b=a[1];
a=a[0]}
this.x=this.right=this.left=this[0]=a;
this.y=this.top=this.bottom=this[1]=b}
;
YAHOO.util.Point.prototype=new YAHOO.util.Region();
YAHOO.register("dom",YAHOO.util.Dom,{
version:"2.6.0",build:"1321"}
);
YAHOO.util.CustomEvent=function(c,f,d,a){
this.type=c;
this.scope=f||window;
this.silent=d;
this.signature=a||YAHOO.util.CustomEvent.LIST;
this.subscribers=[];
if(!this.silent){
}
var b="_YUICEOnSubscribe";
if(c!==b){
this.subscribeEvent=new YAHOO.util.CustomEvent(b,this,true)}
this.lastError=null}
;
YAHOO.util.CustomEvent.LIST=0;
YAHOO.util.CustomEvent.FLAT=1;
YAHOO.util.CustomEvent.prototype={
subscribe:function(c,b,a){
if(!c){
throw new Error("Invalid callback for subscriber to '"+this.type+"'")}
if(this.subscribeEvent){
this.subscribeEvent.fire(c,b,a)}
this.subscribers.push(new YAHOO.util.Subscriber(c,b,a))}
,unsubscribe:function(d,b){
if(!d){
return this.unsubscribeAll()}
var c=false;
for(var g=0,a=this.subscribers.length;
g<a;
++g){
var f=this.subscribers[g];
if(f&&f.contains(d,b)){
this._delete(g);
c=true}
}
return c}
,fire:function(){
this.lastError=null;
var h=[],o=this.subscribers.length;
if(!o&&this.silent){
return true}
var k=[].slice.call(arguments,0),m=true,a,j=false;
if(!this.silent){
}
var b=this.subscribers.slice(),d=YAHOO.util.Event.throwErrors;
for(a=0;
a<o;
++a){
var f=b[a];
if(!f){
j=true}
else{
if(!this.silent){
}
var g=f.getScope(this.scope);
if(this.signature==YAHOO.util.CustomEvent.FLAT){
var c=null;
if(k.length>0){
c=k[0]}
try{
m=f.fn.call(g,c,f.obj)}
catch(n){
this.lastError=n;
if(d){
throw n}
}
}
else{
try{
m=f.fn.call(g,this.type,k,f.obj)}
catch(l){
this.lastError=l;
if(d){
throw l}
}
}
if(false===m){
if(!this.silent){
}
break}
}
}
return(m!==false)}
,unsubscribeAll:function(){
for(var a=this.subscribers.length-1;
a>-1;
a--){
this._delete(a)}
this.subscribers=[];
return a}
,_delete:function(a){
var b=this.subscribers[a];
if(b){
delete b.fn;
delete b.obj}
this.subscribers.splice(a,1)}
,toString:function(){
return"CustomEvent:'"+this.type+"',scope:"+this.scope}
}
;
YAHOO.util.Subscriber=function(c,b,a){
this.fn=c;
this.obj=YAHOO.lang.isUndefined(b)?null:b;
this.override=a}
;
YAHOO.util.Subscriber.prototype.getScope=function(a){
if(this.override){
if(this.override===true){
return this.obj}
else{
return this.override}
}
return a}
;
YAHOO.util.Subscriber.prototype.contains=function(a,b){
if(b){
return(this.fn==a&&this.obj==b)}
else{
return(this.fn==a)}
}
;
YAHOO.util.Subscriber.prototype.toString=function(){
return"Subscriber{
obj:"+this.obj+",override:"+(this.override||"no")+"}
"}
;
if(!YAHOO.util.Event){
YAHOO.util.Event=function(){
var k=false;
var j=[];
var h=[];
var l=[];
var n=[];
var b=0;
var m=[];
var c=[];
var d=0;
var a={
63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9}
;
var g=YAHOO.env.ua.ie?"focusin":"focus";
var f=YAHOO.env.ua.ie?"focusout":"blur";
return{
POLL_RETRYS:2000,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,CAPTURE:7,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:false,throwErrors:false,startInterval:function(){
if(!this._interval){
var q=this;
var o=function(){
q._tryPreloadAttach()}
;
this._interval=setInterval(o,this.POLL_INTERVAL)}
}
,onAvailable:function(q,u,o,r,t){
var w=(YAHOO.lang.isString(q))?[q]:q;
for(var v=0;
v<w.length;
v=v+1){
m.push({
id:w[v],fn:u,obj:o,override:r,checkReady:t}
)}
b=this.POLL_RETRYS;
this.startInterval()}
,onContentReady:function(q,t,o,r){
this.onAvailable(q,t,o,r,true)}
,onDOMReady:function(r,o,q){
if(this.DOMReady){
setTimeout(function(){
var t=window;
if(q){
if(q===true){
t=o}
else{
t=q}
}
r.call(t,"DOMReady",[],o)}
,0)}
else{
this.DOMReadyEvent.subscribe(r,o,q)}
}
,_addListener:function(C,G,r,y,F,I){
if(!r||!r.call){
return false}
if(this._isValidCollection(C)){
var q=true;
for(var w=0,u=C.length;
w<u;
++w){
q=this._addListener(C[w],G,r,y,F,I)&&q}
return q}
else{
if(YAHOO.lang.isString(C)){
var z=this.getEl(C);
if(z){
C=z}
else{
this.onAvailable(C,function(){
YAHOO.util.Event._addListener(C,G,r,y,F,I)}
);
return true}
}
}
if(!C){
return false}
if("unload"==G&&y!==this){
h[h.length]=[C,G,r,y,F,I];
return true}
var H=C;
if(F){
if(F===true){
H=y}
else{
H=F}
}
var B=function(J){
return r.call(H,YAHOO.util.Event.getEvent(J,C),y)}
;
var o=[C,G,r,B,H,y,F,I];
var v=j.length;
j[v]=o;
if(this.useLegacyEvent(C,G)){
var A=this.getLegacyIndex(C,G);
if(A==-1||C!=l[A][0]){
A=l.length;
c[C.id+G]=A;
l[A]=[C,G,C["on"+G]];
n[A]=[];
C["on"+G]=function(J){
YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(J),A)}
}
n[A].push(o)}
else{
try{
this._simpleAdd(C,G,B,I)}
catch(t){
this.lastError=t;
this._removeListener(C,G,r,I);
return false}
}
return true}
,addListener:function(r,o,t,q,u){
return this._addListener(r,o,t,q,u,false)}
,addFocusListener:function(q,r,o,t){
return this._addListener(q,g,r,o,t,true)}
,removeFocusListener:function(o,q){
return this._removeListener(o,g,q,true)}
,addBlurListener:function(q,r,o,t){
return this._addListener(q,f,r,o,t,true)}
,removeBlurListener:function(o,q){
return this._removeListener(o,f,q,true)}
,fireLegacyEvent:function(v,y){
var t=true,A,q,r,o,u;
q=n[y].slice();
for(var z=0,w=q.length;
z<w;
++z){
r=q[z];
if(r&&r[this.WFN]){
o=r[this.ADJ_SCOPE];
u=r[this.WFN].call(o,v);
t=(t&&u)}
}
A=l[y];
if(A&&A[2]){
A[2](v)}
return t}
,getLegacyIndex:function(q,o){
var r=this.generateId(q)+o;
if(typeof c[r]=="undefined"){
return -1}
else{
return c[r]}
}
,useLegacyEvent:function(q,o){
return(this.webkit&&this.webkit<419&&("click"==o||"dblclick"==o))}
,_removeListener:function(C,F,t,o){
var z,v,q;
if(typeof C=="string"){
C=this.getEl(C)}
else{
if(this._isValidCollection(C)){
var r=true;
for(z=C.length-1;
z>-1;
z--){
r=(this._removeListener(C[z],F,t,o)&&r)}
return r}
}
if(!t||!t.call){
return this.purgeElement(C,false,F)}
if("unload"==F){
for(z=h.length-1;
z>-1;
z--){
q=h[z];
if(q&&q[0]==C&&q[1]==F&&q[2]==t){
h.splice(z,1);
return true}
}
return false}
var y=null;
var w=arguments[4];
if("undefined"===typeof w){
w=this._getCacheIndex(C,F,t)}
if(w>=0){
y=j[w]}
if(!C||!y){
return false}
if(this.useLegacyEvent(C,F)){
var A=this.getLegacyIndex(C,F);
var B=n[A];
if(B){
for(z=0,v=B.length;
z<v;
++z){
q=B[z];
if(q&&q[this.EL]==C&&q[this.TYPE]==F&&q[this.FN]==t){
B.splice(z,1);
break}
}
}
}
else{
try{
this._simpleRemove(C,F,y[this.WFN],o)}
catch(u){
this.lastError=u;
return false}
}
delete j[w][this.WFN];
delete j[w][this.FN];
j.splice(w,1);
return true}
,removeListener:function(q,o,r){
return this._removeListener(q,o,r,false)}
,getTarget:function(o,q){
var r=o.target||o.srcElement;
return this.resolveTextNode(r)}
,resolveTextNode:function(o){
try{
if(o&&3==o.nodeType){
return o.parentNode}
}
catch(q){
}
return o}
,getPageX:function(o){
var q=o.pageX;
if(!q&&0!==q){
q=o.clientX||0;
if(this.isIE){
q+=this._getScrollLeft()}
}
return q}
,getPageY:function(q){
var o=q.pageY;
if(!o&&0!==o){
o=q.clientY||0;
if(this.isIE){
o+=this._getScrollTop()}
}
return o}
,getXY:function(o){
return[this.getPageX(o),this.getPageY(o)]}
,getRelatedTarget:function(o){
var q=o.relatedTarget;
if(!q){
if(o.type=="mouseout"){
q=o.toElement}
else{
if(o.type=="mouseover"){
q=o.fromElement}
}
}
return this.resolveTextNode(q)}
,getTime:function(o){
if(!o.time){
var q=new Date().getTime();
try{
o.time=q}
catch(r){
this.lastError=r;
return q}
}
return o.time}
,stopEvent:function(o){
this.stopPropagation(o);
this.preventDefault(o)}
,stopPropagation:function(o){
if(o.stopPropagation){
o.stopPropagation()}
else{
o.cancelBubble=true}
}
,preventDefault:function(o){
if(o.preventDefault){
o.preventDefault()}
else{
o.returnValue=false}
}
,getEvent:function(q,t){
var r=q||window.event;
if(!r){
var o=this.getEvent.caller;
while(o){
r=o.arguments[0];
if(r&&Event==r.constructor){
break}
o=o.caller}
}
return r}
,getCharCode:function(o){
var q=o.keyCode||o.charCode||0;
if(YAHOO.env.ua.webkit&&(q in a)){
q=a[q]}
return q}
,_getCacheIndex:function(q,o,r){
for(var t=0,u=j.length;
t<u;
t=t+1){
var v=j[t];
if(v&&v[this.FN]==r&&v[this.EL]==q&&v[this.TYPE]==o){
return t}
}
return -1}
,generateId:function(q){
var o=q.id;
if(!o){
o="yuievtautoid-"+d;
++d;
q.id=o}
return o}
,_isValidCollection:function(o){
try{
return(o&&typeof o!=="string"&&o.length&&!o.tagName&&!o.alert&&typeof o[0]!=="undefined")}
catch(q){
return false}
}
,elCache:{
}
,getEl:function(o){
return(typeof o==="string")?document.getElementById(o):o}
,clearCache:function(){
}
,DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(o){
if(!k){
k=true;
var q=YAHOO.util.Event;
q._ready();
q._tryPreloadAttach()}
}
,_ready:function(o){
var q=YAHOO.util.Event;
if(!q.DOMReady){
q.DOMReady=true;
q.DOMReadyEvent.fire();
q._simpleRemove(document,"DOMContentLoaded",q._ready)}
}
,_tryPreloadAttach:function(){
if(m.length===0){
b=0;
clearInterval(this._interval);
this._interval=null;
return}
if(this.locked){
return}
if(this.isIE){
if(!this.DOMReady){
this.startInterval();
return}
}
this.locked=true;
var q=!k;
if(!q){
q=(b>0&&m.length>0)}
var r=[];
var o=function(A,z){
var B=A;
if(z.override){
if(z.override===true){
B=z.obj}
else{
B=z.override}
}
z.fn.call(B,z.obj)}
;
var w,y,t,u,v=[];
for(w=0,y=m.length;
w<y;
w=w+1){
t=m[w];
if(t){
u=this.getEl(t.id);
if(u){
if(t.checkReady){
if(k||u.nextSibling||!q){
v.push(t);
m[w]=null}
}
else{
o(u,t);
m[w]=null}
}
else{
r.push(t)}
}
}
for(w=0,y=v.length;
w<y;
w=w+1){
t=v[w];
o(this.getEl(t.id),t)}
b--;
if(q){
for(w=m.length-1;
w>-1;
w--){
t=m[w];
if(!t||!t.id){
m.splice(w,1)}
}
this.startInterval()}
else{
clearInterval(this._interval);
this._interval=null}
this.locked=false}
,purgeElement:function(t,r,o){
var v=(YAHOO.lang.isString(t))?this.getEl(t):t;
var q=this.getListeners(v,o),u,y;
if(q){
for(u=q.length-1;
u>-1;
u--){
var w=q[u];
this._removeListener(v,w.type,w.fn,w.capture)}
}
if(r&&v&&v.childNodes){
for(u=0,y=v.childNodes.length;
u<y;
++u){
this.purgeElement(v.childNodes[u],r,o)}
}
}
,getListeners:function(y,A){
var u=[],z;
if(!A){
z=[j,h]}
else{
if(A==="unload"){
z=[h]}
else{
z=[j]}
}
var r=(YAHOO.lang.isString(y))?this.getEl(y):y;
for(var v=0;
v<z.length;
v=v+1){
var o=z[v];
if(o){
for(var t=0,q=o.length;
t<q;
++t){
var w=o[t];
if(w&&w[this.EL]===r&&(!A||A===w[this.TYPE])){
u.push({
type:w[this.TYPE],fn:w[this.FN],obj:w[this.OBJ],adjust:w[this.OVERRIDE],scope:w[this.ADJ_SCOPE],capture:w[this.CAPTURE],index:t}
)}
}
}
}
return(u.length)?u:null}
,_unload:function(r){
var z=YAHOO.util.Event,v,w,y,t,u,q=h.slice();
for(v=0,t=h.length;
v<t;
++v){
y=q[v];
if(y){
var o=window;
if(y[z.ADJ_SCOPE]){
if(y[z.ADJ_SCOPE]===true){
o=y[z.UNLOAD_OBJ]}
else{
o=y[z.ADJ_SCOPE]}
}
y[z.FN].call(o,z.getEvent(r,y[z.EL]),y[z.UNLOAD_OBJ]);
q[v]=null;
y=null;
o=null}
}
h=null;
if(j){
for(w=j.length-1;
w>-1;
w--){
y=j[w];
if(y){
z._removeListener(y[z.EL],y[z.TYPE],y[z.FN],y[z.CAPTURE],w)}
}
y=null}
l=null;
z._simpleRemove(window,"unload",z._unload)}
,_getScrollLeft:function(){
return this._getScroll()[1]}
,_getScrollTop:function(){
return this._getScroll()[0]}
,_getScroll:function(){
var q=document.documentElement,o=document.body;
if(q&&(q.scrollTop||q.scrollLeft)){
return[q.scrollTop,q.scrollLeft]}
else{
if(o){
return[o.scrollTop,o.scrollLeft]}
else{
return[0,0]}
}
}
,regCE:function(){
}
,_simpleAdd:function(){
if(window.addEventListener){
return function(q,o,r,t){
q.addEventListener(o,r,(t))}
}
else{
if(window.attachEvent){
return function(q,o,r,t){
q.attachEvent("on"+o,r)}
}
else{
return function(){
}
}
}
}
(),_simpleRemove:function(){
if(window.removeEventListener){
return function(q,o,r,t){
q.removeEventListener(o,r,(t))}
}
else{
if(window.detachEvent){
return function(q,o,r){
q.detachEvent("on"+o,r)}
}
else{
return function(){
}
}
}
}
()}
}
();
(function(){
var a=YAHOO.util.Event;
a.on=a.addListener;
a.onFocus=a.addFocusListener;
a.onBlur=a.addBlurListener;
if(a.isIE){
YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);
var b=document.createElement("p");
a._dri=setInterval(function(){
try{
b.doScroll("left");
clearInterval(a._dri);
a._dri=null;
a._ready();
b=null}
catch(c){
}
}
,a.POLL_INTERVAL)}
else{
if(a.webkit&&a.webkit<525){
a._dri=setInterval(function(){
var c=document.readyState;
if("loaded"==c||"complete"==c){
clearInterval(a._dri);
a._dri=null;
a._ready()}
}
,a.POLL_INTERVAL)}
else{
a._simpleAdd(document,"DOMContentLoaded",a._ready)}
}
a._simpleAdd(window,"load",a._load);
a._simpleAdd(window,"unload",a._unload);
a._tryPreloadAttach()}
)()}
YAHOO.util.EventProvider=function(){
}
;
YAHOO.util.EventProvider.prototype={
__yui_events:null,__yui_subscribers:null,subscribe:function(a,f,b,c){
this.__yui_events=this.__yui_events||{
}
;
var d=this.__yui_events[a];
if(d){
d.subscribe(f,b,c)}
else{
this.__yui_subscribers=this.__yui_subscribers||{
}
;
var g=this.__yui_subscribers;
if(!g[a]){
g[a]=[]}
g[a].push({
fn:f,obj:b,override:c}
)}
}
,unsubscribe:function(g,d,b){
this.__yui_events=this.__yui_events||{
}
;
var a=this.__yui_events;
if(g){
var c=a[g];
if(c){
return c.unsubscribe(d,b)}
}
else{
var h=true;
for(var f in a){
if(YAHOO.lang.hasOwnProperty(a,f)){
h=h&&a[f].unsubscribe(d,b)}
}
return h}
return false}
,unsubscribeAll:function(a){
return this.unsubscribe(a)}
,createEvent:function(h,a){
this.__yui_events=this.__yui_events||{
}
;
var d=a||{
}
;
var f=this.__yui_events;
if(f[h]){
}
else{
var g=d.scope||this;
var k=(d.silent);
var c=new YAHOO.util.CustomEvent(h,g,k,YAHOO.util.CustomEvent.FLAT);
f[h]=c;
if(d.onSubscribeCallback){
c.subscribeEvent.subscribe(d.onSubscribeCallback)}
this.__yui_subscribers=this.__yui_subscribers||{
}
;
var j=this.__yui_subscribers[h];
if(j){
for(var b=0;
b<j.length;
++b){
c.subscribe(j[b].fn,j[b].obj,j[b].override)}
}
}
return f[h]}
,fireEvent:function(d,f,a,g){
this.__yui_events=this.__yui_events||{
}
;
var b=this.__yui_events[d];
if(!b){
return null}
var h=[];
for(var c=1;
c<arguments.length;
++c){
h.push(arguments[c])}
return b.fire.apply(b,h)}
,hasEvent:function(a){
if(this.__yui_events){
if(this.__yui_events[a]){
return true}
}
return false}
}
;
YAHOO.util.KeyListener=function(a,b,g,f){
if(!a){
}
else{
if(!b){
}
else{
if(!g){
}
}
}
if(!f){
f=YAHOO.util.KeyListener.KEYDOWN}
var d=new YAHOO.util.CustomEvent("keyPressed");
this.enabledEvent=new YAHOO.util.CustomEvent("enabled");
this.disabledEvent=new YAHOO.util.CustomEvent("disabled");
if(typeof a=="string"){
a=document.getElementById(a)}
if(typeof g=="function"){
d.subscribe(g)}
else{
d.subscribe(g.fn,g.scope,g.correctScope)}
function c(h,j){
if(!b.shift){
b.shift=false}
if(!b.alt){
b.alt=false}
if(!b.ctrl){
b.ctrl=false}
if(h.shiftKey==b.shift&&h.altKey==b.alt&&h.ctrlKey==b.ctrl){
var l;
if(b.keys instanceof Array){
for(var k=0;
k<b.keys.length;
k++){
l=b.keys[k];
if(l==h.charCode){
d.fire(h.charCode,h);
break}
else{
if(l==h.keyCode){
d.fire(h.keyCode,h);
break}
}
}
}
else{
l=b.keys;
if(l==h.charCode){
d.fire(h.charCode,h)}
else{
if(l==h.keyCode){
d.fire(h.keyCode,h)}
}
}
}
}
this.enable=function(){
if(!this.enabled){
YAHOO.util.Event.addListener(a,f,c);
this.enabledEvent.fire(b)}
this.enabled=true}
;
this.disable=function(){
if(this.enabled){
YAHOO.util.Event.removeListener(a,f,c);
this.disabledEvent.fire(b)}
this.enabled=false}
;
this.toString=function(){
return"KeyListener ["+b.keys+"] "+a.tagName+(a.id?"["+a.id+"]":"")}
}
;
YAHOO.util.KeyListener.KEYDOWN="keydown";
YAHOO.util.KeyListener.KEYUP="keyup";
YAHOO.util.KeyListener.KEY={
ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38}
;
YAHOO.register("event",YAHOO.util.Event,{
version:"2.6.0",build:"1321"}
);
YAHOO.register("yahoo-dom-event",YAHOO,{
version:"2.6.0",build:"1321"}
);
(function(){
var b=YAHOO.util;
var a=function(f,g,d,c){
if(!f){
}
this.init(f,g,d,c)}
;
a.NAME="Anim";
a.prototype={
toString:function(){
var d=this.getEl()||{
}
;
var c=d.id||d.tagName;
return(this.constructor.NAME+":"+c)}
,patterns:{
noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i}
,doMethod:function(f,c,d){
return this.method(this.currentFrame,c,d-c,this.totalFrames)}
,setAttribute:function(f,c,d){
if(this.patterns.noNegatives.test(f)){
c=(c>0)?c:0}
b.Dom.setStyle(this.getEl(),f,c+d)}
,getAttribute:function(j){
var g=this.getEl();
var d=b.Dom.getStyle(g,j);
if(d!=="auto"&&!this.patterns.offsetUnit.test(d)){
return parseFloat(d)}
var h=this.patterns.offsetAttribute.exec(j)||[];
var c=!!(h[3]);
var f=!!(h[2]);
if(f||(b.Dom.getStyle(g,"position")=="absolute"&&c)){
d=g["offset"+h[0].charAt(0).toUpperCase()+h[0].substr(1)]}
else{
d=0}
return d}
,getDefaultUnit:function(c){
if(this.patterns.defaultUnit.test(c)){
return"px"}
return""}
,setRuntimeAttribute:function(j){
var c;
var h;
var g=this.attributes;
this.runtimeAttributes[j]={
}
;
var d=function(l){
return(typeof l!=="undefined")}
;
if(!d(g[j]["to"])&&!d(g[j]["by"])){
return false}
c=(d(g[j]["from"]))?g[j]["from"]:this.getAttribute(j);
if(d(g[j]["to"])){
h=g[j]["to"]}
else{
if(d(g[j]["by"])){
if(c.constructor==Array){
h=[];
for(var f=0,k=c.length;
f<k;
++f){
h[f]=c[f]+g[j]["by"][f]*1}
}
else{
h=c+g[j]["by"]*1}
}
}
this.runtimeAttributes[j].start=c;
this.runtimeAttributes[j].end=h;
this.runtimeAttributes[j].unit=(d(g[j].unit))?g[j]["unit"]:this.getDefaultUnit(j);
return true}
,init:function(n,h,j,d){
var c=false;
var m=null;
var k=0;
n=b.Dom.get(n);
this.attributes=h||{
}
;
this.duration=!YAHOO.lang.isUndefined(j)?j:1;
this.method=d||b.Easing.easeNone;
this.useSeconds=true;
this.currentFrame=0;
this.totalFrames=b.AnimMgr.fps;
this.setEl=function(o){
n=b.Dom.get(o)}
;
this.getEl=function(){
return n}
;
this.isAnimated=function(){
return c}
;
this.getStartTime=function(){
return m}
;
this.runtimeAttributes={
}
;
this.animate=function(){
if(this.isAnimated()){
return false}
this.currentFrame=0;
this.totalFrames=(this.useSeconds)?Math.ceil(b.AnimMgr.fps*this.duration):this.duration;
if(this.duration===0&&this.useSeconds){
this.totalFrames=1}
b.AnimMgr.registerElement(this);
return true}
;
this.stop=function(o){
if(!this.isAnimated()){
return false}
if(o){
this.currentFrame=this.totalFrames;
this._onTween.fire()}
b.AnimMgr.stop(this)}
;
var f=function(){
this.onStart.fire();
this.runtimeAttributes={
}
;
for(var o in this.attributes){
this.setRuntimeAttribute(o)}
c=true;
k=0;
m=new Date()}
;
var g=function(){
var o={
duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame}
;
o.toString=function(){
return("duration:"+o.duration+",currentFrame:"+o.currentFrame)}
;
this.onTween.fire(o);
var q=this.runtimeAttributes;
for(var r in q){
this.setAttribute(r,this.doMethod(r,q[r].start,q[r].end),q[r].unit)}
k+=1}
;
var l=function(){
var q=(new Date()-m)/1000;
var o={
duration:q,frames:k,fps:k/q}
;
o.toString=function(){
return("duration:"+o.duration+",frames:"+o.frames+",fps:"+o.fps)}
;
c=false;
k=0;
this.onComplete.fire(o)}
;
this._onStart=new b.CustomEvent("_start",this,true);
this.onStart=new b.CustomEvent("start",this);
this.onTween=new b.CustomEvent("tween",this);
this._onTween=new b.CustomEvent("_tween",this,true);
this.onComplete=new b.CustomEvent("complete",this);
this._onComplete=new b.CustomEvent("_complete",this,true);
this._onStart.subscribe(f);
this._onTween.subscribe(g);
this._onComplete.subscribe(l)}
}
;
b.Anim=a}
)();
YAHOO.util.AnimMgr=new function(){
var d=null;
var f=[];
var a=0;
this.fps=1000;
this.delay=1;
this.registerElement=function(g){
f[f.length]=g;
a+=1;
g._onStart.fire();
this.start()}
;
this.unRegister=function(g,h){
h=h||b(g);
if(!g.isAnimated()||h==-1){
return false}
g._onComplete.fire();
f.splice(h,1);
a-=1;
if(a<=0){
this.stop()}
return true}
;
this.start=function(){
if(d===null){
d=setInterval(this.run,this.delay)}
}
;
this.stop=function(g){
if(!g){
clearInterval(d);
for(var h=0,j=f.length;
h<j;
++h){
this.unRegister(f[0],0)}
f=[];
d=null;
a=0}
else{
this.unRegister(g)}
}
;
this.run=function(){
for(var g=0,j=f.length;
g<j;
++g){
var h=f[g];
if(!h||!h.isAnimated()){
continue}
if(h.currentFrame<h.totalFrames||h.totalFrames===null){
h.currentFrame+=1;
if(h.useSeconds){
c(h)}
h._onTween.fire()}
else{
YAHOO.util.AnimMgr.stop(h,g)}
}
}
;
var b=function(g){
for(var h=0,j=f.length;
h<j;
++h){
if(f[h]==g){
return h}
}
return -1}
;
var c=function(l){
var h=l.totalFrames;
var j=l.currentFrame;
var k=(l.currentFrame*l.duration*1000/l.totalFrames);
var m=(new Date()-l.getStartTime());
var g=0;
if(m<l.duration*1000){
g=Math.round((m/k-1)*l.currentFrame)}
else{
g=h-(j+1)}
if(g>0&&isFinite(g)){
if(l.currentFrame+g>=h){
g=h-(j+1)}
l.currentFrame+=g}
}
}
;
YAHOO.util.Bezier=new function(){
this.getPosition=function(c,d){
var b=c.length;
var f=[];
for(var g=0;
g<b;
++g){
f[g]=[c[g][0],c[g][1]]}
for(var a=1;
a<b;
++a){
for(g=0;
g<b-a;
++g){
f[g][0]=(1-d)*f[g][0]+d*f[parseInt(g+1,10)][0];
f[g][1]=(1-d)*f[g][1]+d*f[parseInt(g+1,10)][1]}
}
return[f[0][0],f[0][1]]}
}
;
(function(){
var a=function(h,j,g,f){
a.superclass.constructor.call(this,h,j,g,f)}
;
a.NAME="ColorAnim";
a.DEFAULT_BGCOLOR="#fff";
var c=YAHOO.util;
YAHOO.extend(a,c.Anim);
var b=a.superclass;
var d=a.prototype;
d.patterns.color=/color$/i;
d.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;
d.patterns.hex=/^#?([0-9A-F]{
2}
)([0-9A-F]{
2}
)([0-9A-F]{
2}
)$/i;
d.patterns.hex3=/^#?([0-9A-F]{
1}
)([0-9A-F]{
1}
)([0-9A-F]{
1}
)$/i;
d.patterns.transparent=/^transparent|rgba\(0,0,0,0\)$/;
d.parseColor=function(g){
if(g.length==3){
return g}
var f=this.patterns.hex.exec(g);
if(f&&f.length==4){
return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}
f=this.patterns.rgb.exec(g);
if(f&&f.length==4){
return[parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10)]}
f=this.patterns.hex3.exec(g);
if(f&&f.length==4){
return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}
return null}
;
d.getAttribute=function(k){
var h=this.getEl();
if(this.patterns.color.test(k)){
var f=YAHOO.util.Dom.getStyle(h,k);
var g=this;
if(this.patterns.transparent.test(f)){
var j=YAHOO.util.Dom.getAncestorBy(h,function(l){
return !g.patterns.transparent.test(f)}
);
if(j){
f=c.Dom.getStyle(j,k)}
else{
f=a.DEFAULT_BGCOLOR}
}
}
else{
f=b.getAttribute.call(this,k)}
return f}
;
d.doMethod=function(k,f,j){
var g;
if(this.patterns.color.test(k)){
g=[];
for(var h=0,l=f.length;
h<l;
++h){
g[h]=b.doMethod.call(this,k,f[h],j[h])}
g="rgb("+Math.floor(g[0])+","+Math.floor(g[1])+","+Math.floor(g[2])+")"}
else{
g=b.doMethod.call(this,k,f,j)}
return g}
;
d.setRuntimeAttribute=function(k){
b.setRuntimeAttribute.call(this,k);
if(this.patterns.color.test(k)){
var h=this.attributes;
var f=this.parseColor(this.runtimeAttributes[k].start);
var j=this.parseColor(this.runtimeAttributes[k].end);
if(typeof h[k]["to"]==="undefined"&&typeof h[k]["by"]!=="undefined"){
j=this.parseColor(h[k].by);
for(var g=0,l=f.length;
g<l;
++g){
j[g]=f[g]+j[g]}
}
this.runtimeAttributes[k].start=f;
this.runtimeAttributes[k].end=j}
}
;
c.ColorAnim=a}
)();
YAHOO.util.Easing={
easeNone:function(d,a,b,c){
return b*d/c+a}
,easeIn:function(d,a,b,c){
return b*(d/=c)*d+a}
,easeOut:function(d,a,b,c){
return -b*(d/=c)*(d-2)+a}
,easeBoth:function(d,a,b,c){
if((d/=c/2)<1){
return b/2*d*d+a}
return -b/2*((--d)*(d-2)-1)+a}
,easeInStrong:function(d,a,b,c){
return b*(d/=c)*d*d*d+a}
,easeOutStrong:function(d,a,b,c){
return -b*((d=d/c-1)*d*d*d-1)+a}
,easeBothStrong:function(d,a,b,c){
if((d/=c/2)<1){
return b/2*d*d*d*d+a}
return -b/2*((d-=2)*d*d*d-2)+a}
,elasticIn:function(g,a,b,c,h,d){
if(g==0){
return a}
if((g/=c)==1){
return a+b}
if(!d){
d=c*0.3}
if(!h||h<Math.abs(b)){
h=b;
var f=d/4}
else{
var f=d/(2*Math.PI)*Math.asin(b/h)}
return -(h*Math.pow(2,10*(g-=1))*Math.sin((g*c-f)*(2*Math.PI)/d))+a}
,elasticOut:function(g,a,b,c,h,d){
if(g==0){
return a}
if((g/=c)==1){
return a+b}
if(!d){
d=c*0.3}
if(!h||h<Math.abs(b)){
h=b;
var f=d/4}
else{
var f=d/(2*Math.PI)*Math.asin(b/h)}
return h*Math.pow(2,-10*g)*Math.sin((g*c-f)*(2*Math.PI)/d)+b+a}
,elasticBoth:function(g,a,b,c,h,d){
if(g==0){
return a}
if((g/=c/2)==2){
return a+b}
if(!d){
d=c*(0.3*1.5)}
if(!h||h<Math.abs(b)){
h=b;
var f=d/4}
else{
var f=d/(2*Math.PI)*Math.asin(b/h)}
if(g<1){
return -0.5*(h*Math.pow(2,10*(g-=1))*Math.sin((g*c-f)*(2*Math.PI)/d))+a}
return h*Math.pow(2,-10*(g-=1))*Math.sin((g*c-f)*(2*Math.PI)/d)*0.5+b+a}
,backIn:function(f,a,b,c,d){
if(typeof d=="undefined"){
d=1.70158}
return b*(f/=c)*f*((d+1)*f-d)+a}
,backOut:function(f,a,b,c,d){
if(typeof d=="undefined"){
d=1.70158}
return b*((f=f/c-1)*f*((d+1)*f+d)+1)+a}
,backBoth:function(f,a,b,c,d){
if(typeof d=="undefined"){
d=1.70158}
if((f/=c/2)<1){
return b/2*(f*f*(((d*=(1.525))+1)*f-d))+a}
return b/2*((f-=2)*f*(((d*=(1.525))+1)*f+d)+2)+a}
,bounceIn:function(d,a,b,c){
return b-YAHOO.util.Easing.bounceOut(c-d,0,b,c)+a}
,bounceOut:function(d,a,b,c){
if((d/=c)<(1/2.75)){
return b*(7.5625*d*d)+a}
else{
if(d<(2/2.75)){
return b*(7.5625*(d-=(1.5/2.75))*d+0.75)+a}
else{
if(d<(2.5/2.75)){
return b*(7.5625*(d-=(2.25/2.75))*d+0.9375)+a}
}
}
return b*(7.5625*(d-=(2.625/2.75))*d+0.984375)+a}
,bounceBoth:function(d,a,b,c){
if(d<c/2){
return YAHOO.util.Easing.bounceIn(d*2,0,b,c)*0.5+a}
return YAHOO.util.Easing.bounceOut(d*2-c,0,b,c)*0.5+b*0.5+a}
}
;
(function(){
var a=function(k,l,j,h){
if(k){
a.superclass.constructor.call(this,k,l,j,h)}
}
;
a.NAME="Motion";
var c=YAHOO.util;
YAHOO.extend(a,c.ColorAnim);
var b=a.superclass;
var f=a.prototype;
f.patterns.points=/^points$/i;
f.setAttribute=function(k,h,j){
if(this.patterns.points.test(k)){
j=j||"px";
b.setAttribute.call(this,"left",h[0],j);
b.setAttribute.call(this,"top",h[1],j)}
else{
b.setAttribute.call(this,k,h,j)}
}
;
f.getAttribute=function(j){
if(this.patterns.points.test(j)){
var h=[b.getAttribute.call(this,"left"),b.getAttribute.call(this,"top")]}
else{
h=b.getAttribute.call(this,j)}
return h}
;
f.doMethod=function(m,h,l){
var j=null;
if(this.patterns.points.test(m)){
var k=this.method(this.currentFrame,0,100,this.totalFrames)/100;
j=c.Bezier.getPosition(this.runtimeAttributes[m],k)}
else{
j=b.doMethod.call(this,m,h,l)}
return j}
;
f.setRuntimeAttribute=function(h){
if(this.patterns.points.test(h)){
var r=this.getEl();
var o=this.attributes;
var t;
var m=o.points["control"]||[];
var q;
var l,j;
if(m.length>0&&!(m[0] instanceof Array)){
m=[m]}
else{
var n=[];
for(l=0,j=m.length;
l<j;
++l){
n[l]=m[l]}
m=n}
if(c.Dom.getStyle(r,"position")=="static"){
c.Dom.setStyle(r,"position","relative")}
if(d(o.points["from"])){
c.Dom.setXY(r,o.points["from"])}
else{
c.Dom.setXY(r,c.Dom.getXY(r))}
t=this.getAttribute("points");
if(d(o.points["to"])){
q=g.call(this,o.points["to"],t);
var k=c.Dom.getXY(this.getEl());
for(l=0,j=m.length;
l<j;
++l){
m[l]=g.call(this,m[l],t)}
}
else{
if(d(o.points["by"])){
q=[t[0]+o.points["by"][0],t[1]+o.points["by"][1]];
for(l=0,j=m.length;
l<j;
++l){
m[l]=[t[0]+m[l][0],t[1]+m[l][1]]}
}
}
this.runtimeAttributes[h]=[t];
if(m.length>0){
this.runtimeAttributes[h]=this.runtimeAttributes[h].concat(m)}
this.runtimeAttributes[h][this.runtimeAttributes[h].length]=q}
else{
b.setRuntimeAttribute.call(this,h)}
}
;
var g=function(k,h){
var j=c.Dom.getXY(this.getEl());
k=[k[0]-j[0]+h[0],k[1]-j[1]+h[1]];
return k}
;
var d=function(h){
return(typeof h!=="undefined")}
;
c.Motion=a}
)();
(function(){
var b=function(h,j,g,f){
if(h){
b.superclass.constructor.call(this,h,j,g,f)}
}
;
b.NAME="Scroll";
var d=YAHOO.util;
YAHOO.extend(b,d.ColorAnim);
var c=b.superclass;
var a=b.prototype;
a.doMethod=function(j,f,h){
var g=null;
if(j=="scroll"){
g=[this.method(this.currentFrame,f[0],h[0]-f[0],this.totalFrames),this.method(this.currentFrame,f[1],h[1]-f[1],this.totalFrames)]}
else{
g=c.doMethod.call(this,j,f,h)}
return g}
;
a.getAttribute=function(h){
var f=null;
var g=this.getEl();
if(h=="scroll"){
f=[g.scrollLeft,g.scrollTop]}
else{
f=c.getAttribute.call(this,h)}
return f}
;
a.setAttribute=function(j,f,g){
var h=this.getEl();
if(j=="scroll"){
h.scrollLeft=f[0];
h.scrollTop=f[1]}
else{
c.setAttribute.call(this,j,f,g)}
}
;
d.Scroll=b}
)();
YAHOO.register("animation",YAHOO.util.Anim,{
version:"2.6.0",build:"1321"}
);
YAHOO.util.Get=function(){
var h={
}
,j=0,b=0,r=false,g=YAHOO.env.ua,a=YAHOO.lang;
var l=function(y,B,G){
var A=G||window,F=A.document,C=F.createElement(y);
for(var z in B){
if(B[z]&&YAHOO.lang.hasOwnProperty(B,z)){
C.setAttribute(z,B[z])}
}
return C}
;
var m=function(A,z,B){
var y={
id:"yui__dyn_"+(b++),type:"text/css",rel:"stylesheet",href:A}
;
if(B){
a.augmentObject(y,B)}
return l("link",y,z)}
;
var d=function(A,z,B){
var y={
id:"yui__dyn_"+(b++),type:"text/javascript",src:A}
;
if(B){
a.augmentObject(y,B)}
return l("script",y,z)}
;
var w=function(z,y){
return{
tId:z.tId,win:z.win,data:z.data,nodes:z.nodes,msg:y,purge:function(){
t(this.tId)}
}
}
;
var v=function(B,y){
var A=h[y],z=(a.isString(B))?A.win.document.getElementById(B):B;
if(!z){
c(y,"target node not found:"+B)}
return z}
;
var c=function(y,z){
var B=h[y];
if(B.onFailure){
var A=B.scope||B.win;
B.onFailure.call(A,w(B,z))}
}
;
var u=function(y){
var B=h[y];
B.finished=true;
if(B.aborted){
var z="transaction "+y+" was aborted";
c(y,z);
return}
if(B.onSuccess){
var A=B.scope||B.win;
B.onSuccess.call(A,w(B))}
}
;
var f=function(y){
var A=h[y];
if(A.onTimeout){
var z=A.scope||A;
A.onTimeout.call(z,w(A))}
}
;
var o=function(C,y){
var F=h[C];
if(F.timer){
F.timer.cancel()}
if(F.aborted){
var A="transaction "+C+" was aborted";
c(C,A);
return}
if(y){
F.url.shift();
if(F.varName){
F.varName.shift()}
}
else{
F.url=(a.isString(F.url))?[F.url]:F.url;
if(F.varName){
F.varName=(a.isString(F.varName))?[F.varName]:F.varName}
}
var I=F.win,J=I.document,K=J.getElementsByTagName("head")[0],B;
if(F.url.length===0){
if(F.type==="script"&&g.webkit&&g.webkit<420&&!F.finalpass&&!F.varName){
var z=d(null,F.win,F.attributes);
z.innerHTML='YAHOO.util.Get._finalize("'+C+'");
';
F.nodes.push(z);
K.appendChild(z)}
else{
u(C)}
return}
var G=F.url[0];
if(!G){
F.url.shift();
return o(C)}
if(F.timeout){
F.timer=a.later(F.timeout,F,f,C)}
if(F.type==="script"){
B=d(G,I,F.attributes)}
else{
B=m(G,I,F.attributes)}
q(F.type,B,C,G,I,F.url.length);
F.nodes.push(B);
if(F.insertBefore){
var H=v(F.insertBefore,C);
if(H){
H.parentNode.insertBefore(B,H)}
}
else{
K.appendChild(B)}
if((g.webkit||g.gecko)&&F.type==="css"){
o(C,G)}
}
;
var k=function(){
if(r){
return}
r=true;
for(var z in h){
var y=h[z];
if(y.autopurge&&y.finished){
t(y.tId);
delete h[z]}
}
r=false}
;
var t=function(y){
if(h[y]){
var G=h[y],F=G.nodes,A=F.length,H=G.win.document,J=H.getElementsByTagName("head")[0],C,z,B,I;
if(G.insertBefore){
C=v(G.insertBefore,y);
if(C){
J=C.parentNode}
}
for(z=0;
z<A;
z=z+1){
B=F[z];
if(B.clearAttributes){
B.clearAttributes()}
else{
for(I in B){
delete B[I]}
}
J.removeChild(B)}
G.nodes=[]}
}
;
var n=function(A,B,z){
var C="q"+(j++);
z=z||{
}
;
if(j%YAHOO.util.Get.PURGE_THRESH===0){
k()}
h[C]=a.merge(z,{
tId:C,type:A,url:B,finished:false,aborted:false,nodes:[]}
);
var y=h[C];
y.win=y.win||window;
y.scope=y.scope||y.win;
y.autopurge=("autopurge" in y)?y.autopurge:(A==="script")?true:false;
if(z.charset){
y.attributes=y.attributes||{
}
;
y.attributes.charset=z.charset}
a.later(0,y,o,C);
return{
tId:C}
}
;
var q=function(H,A,B,F,z,y,I){
var J=I||o;
if(g.ie){
A.onreadystatechange=function(){
var K=this.readyState;
if("loaded"===K||"complete"===K){
A.onreadystatechange=null;
J(B,F)}
}
}
else{
if(g.webkit){
if(H==="script"){
if(g.webkit>=420){
A.addEventListener("load",function(){
J(B,F)}
)}
else{
var G=h[B];
if(G.varName){
var C=YAHOO.util.Get.POLL_FREQ;
G.maxattempts=YAHOO.util.Get.TIMEOUT/C;
G.attempts=0;
G._cache=G.varName[0].split(".");
G.timer=a.later(C,G,function(K){
var O=this._cache,P=O.length,Q=this.win,N;
for(N=0;
N<P;
N=N+1){
Q=Q[O[N]];
if(!Q){
this.attempts++;
if(this.attempts++>this.maxattempts){
var M="Over retry limit,giving up";
G.timer.cancel();
c(B,M)}
else{
}
return}
}
G.timer.cancel();
J(B,F)}
,null,true)}
else{
a.later(YAHOO.util.Get.POLL_FREQ,null,J,[B,F])}
}
}
}
else{
A.onload=function(){
J(B,F)}
}
}
}
;
return{
POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(y){
a.later(0,null,u,y)}
,abort:function(z){
var y=(a.isString(z))?z:z.tId;
var A=h[y];
if(A){
A.aborted=true}
}
,script:function(z,y){
return n("script",z,y)}
,css:function(z,y){
return n("css",z,y)}
}
}
();
YAHOO.register("get",YAHOO.util.Get,{
version:"2.8.0r4",build:"2449"}
);
YAHOO.namespace("util");
YAHOO.util.Cookie={
_createCookieString:function(g,d,f,a){
var b=YAHOO.lang;
var c=encodeURIComponent(g)+"="+(f?encodeURIComponent(d):d);
if(b.isObject(a)){
if(a.expires instanceof Date){
c+=";
expires="+a.expires.toGMTString()}
if(b.isString(a.path)&&a.path!=""){
c+=";
path="+a.path}
if(b.isString(a.domain)&&a.domain!=""){
c+=";
domain="+a.domain}
if(a.secure===true){
c+=";
secure"}
}
return c}
,_createCookieHashString:function(d){
var b=YAHOO.lang;
if(!b.isObject(d)){
throw new TypeError("Cookie._createCookieHashString():Argument must be an object.")}
var c=new Array();
for(var a in d){
if(b.hasOwnProperty(d,a)&&!b.isFunction(d[a])&&!b.isUndefined(d[a])){
c.push(encodeURIComponent(a)+"="+encodeURIComponent(String(d[a])))}
}
return c.join("&")}
,_parseCookieHash:function(c){
var d=c.split("&"),b=null,f=new Object();
if(c.length>0){
for(var g=0,a=d.length;
g<a;
g++){
b=d[g].split("=");
f[decodeURIComponent(b[0])]=decodeURIComponent(b[1])}
}
return f}
,_parseCookieString:function(g,d){
var f=new Object();
if(YAHOO.lang.isString(g)&&g.length>0){
var c=(d===false?function(n){
return n}
:decodeURIComponent);
if(/[^=]+=[^=;
]?(?:;
[^=]+=[^=]?)?/.test(g)){
var j=g.split(/;
\s/g),h=null,b=null,m=null;
for(var a=0,l=j.length;
a<l;
a++){
m=j[a].match(/([^=]+)=/i);
if(m instanceof Array){
try{
h=decodeURIComponent(m[1]);
b=c(j[a].substring(m[1].length+1))}
catch(k){
}
}
else{
h=decodeURIComponent(j[a]);
b=h}
f[h]=b}
}
}
return f}
,get:function(a,d){
var b=YAHOO.lang;
var c=this._parseCookieString(document.cookie);
if(!b.isString(a)||a===""){
throw new TypeError("Cookie.get():Cookie name must be a non-empty string.")}
if(b.isUndefined(c[a])){
return null}
if(!b.isFunction(d)){
return c[a]}
else{
return d(c[a])}
}
,getSub:function(a,d,f){
var b=YAHOO.lang;
var c=this.getSubs(a);
if(c!==null){
if(!b.isString(d)||d===""){
throw new TypeError("Cookie.getSub():Subcookie name must be a non-empty string.")}
if(b.isUndefined(c[d])){
return null}
if(!b.isFunction(f)){
return c[d]}
else{
return f(c[d])}
}
else{
return null}
}
,getSubs:function(a){
if(!YAHOO.lang.isString(a)||a===""){
throw new TypeError("Cookie.getSubs():Cookie name must be a non-empty string.")}
var b=this._parseCookieString(document.cookie,false);
if(YAHOO.lang.isString(b[a])){
return this._parseCookieHash(b[a])}
return null}
,remove:function(b,a){
if(!YAHOO.lang.isString(b)||b===""){
throw new TypeError("Cookie.remove():Cookie name must be a non-empty string.")}
a=a||{
}
;
a.expires=new Date(0);
return this.set(b,"",a)}
,removeSub:function(d,b,a){
if(!YAHOO.lang.isString(d)||d===""){
throw new TypeError("Cookie.removeSub():Cookie name must be a non-empty string.")}
if(!YAHOO.lang.isString(b)||b===""){
throw new TypeError("Cookie.removeSub():Subcookie name must be a non-empty string.")}
var c=this.getSubs(d);
if(YAHOO.lang.isObject(c)&&YAHOO.lang.hasOwnProperty(c,b)){
delete c[b];
return this.setSubs(d,c,a)}
else{
return""}
}
,set:function(f,d,a){
var b=YAHOO.lang;
if(!b.isString(f)){
throw new TypeError("Cookie.set():Cookie name must be a string.")}
if(b.isUndefined(d)){
throw new TypeError("Cookie.set():Value cannot be undefined.")}
var c=this._createCookieString(f,d,true,a);
document.cookie=c;
return c}
,setSub:function(g,d,f,a){
var b=YAHOO.lang;
if(!b.isString(g)||g===""){
throw new TypeError("Cookie.setSub():Cookie name must be a non-empty string.")}
if(!b.isString(d)||d===""){
throw new TypeError("Cookie.setSub():Subcookie name must be a non-empty string.")}
if(b.isUndefined(f)){
throw new TypeError("Cookie.setSub():Subcookie value cannot be undefined.")}
var c=this.getSubs(g);
if(!b.isObject(c)){
c=new Object()}
c[d]=f;
return this.setSubs(g,c,a)}
,setSubs:function(f,d,a){
var b=YAHOO.lang;
if(!b.isString(f)){
throw new TypeError("Cookie.setSubs():Cookie name must be a string.")}
if(!b.isObject(d)){
throw new TypeError("Cookie.setSubs():Cookie value must be an object.")}
var c=this._createCookieString(f,this._createCookieHashString(d),false,a);
document.cookie=c;
return c}
}
;
YAHOO.register("cookie",YAHOO.util.Cookie,{
version:"2.7.0",build:"1799"}
);
YAHOO.util.Connect={
_msxml_progid:["Microsoft.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],_http_headers:{
}
,_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded;
charset=UTF-8",_default_form_header:"application/x-www-form-urlencoded;
charset=UTF-8",_use_default_xhr_header:true,_default_xhr_header:"XMLHttpRequest",_has_default_headers:true,_default_headers:{
}
,_isFormSubmit:false,_isFileUpload:false,_formNode:null,_sFormData:null,_poll:{
}
,_timeOut:{
}
,_polling_interval:50,_transaction_id:0,_submitElementValue:null,_hasSubmitListener:(function(){
if(YAHOO.util.Event){
YAHOO.util.Event.addListener(document,"click",function(b){
var a=YAHOO.util.Event.getTarget(b);
if(a.nodeName.toLowerCase()=="input"&&(a.type&&a.type.toLowerCase()=="submit")){
YAHOO.util.Connect._submitElementValue=encodeURIComponent(a.name)+"="+encodeURIComponent(a.value)}
}
);
return true}
return false}
)(),startEvent:new YAHOO.util.CustomEvent("start"),completeEvent:new YAHOO.util.CustomEvent("complete"),successEvent:new YAHOO.util.CustomEvent("success"),failureEvent:new YAHOO.util.CustomEvent("failure"),uploadEvent:new YAHOO.util.CustomEvent("upload"),abortEvent:new YAHOO.util.CustomEvent("abort"),_customEvents:{
onStart:["startEvent","start"],onComplete:["completeEvent","complete"],onSuccess:["successEvent","success"],onFailure:["failureEvent","failure"],onUpload:["uploadEvent","upload"],onAbort:["abortEvent","abort"]}
,setProgId:function(a){
this._msxml_progid.unshift(a)}
,setDefaultPostHeader:function(a){
if(typeof a=="string"){
this._default_post_header=a}
else{
if(typeof a=="boolean"){
this._use_default_post_header=a}
}
}
,setDefaultXhrHeader:function(a){
if(typeof a=="string"){
this._default_xhr_header=a}
else{
this._use_default_xhr_header=a}
}
,setPollingInterval:function(a){
if(typeof a=="number"&&isFinite(a)){
this._polling_interval=a}
}
,createXhrObject:function(g){
var f,a;
try{
a=new XMLHttpRequest();
f={
conn:a,tId:g}
}
catch(d){
for(var b=0;
b<this._msxml_progid.length;
++b){
try{
a=new ActiveXObject(this._msxml_progid[b]);
f={
conn:a,tId:g}
;
break}
catch(c){
}
}
}
finally{
return f}
}
,getConnectionObject:function(a){
var c;
var d=this._transaction_id;
try{
if(!a){
c=this.createXhrObject(d)}
else{
c={
}
;
c.tId=d;
c.isUpload=true}
if(c){
this._transaction_id++}
}
catch(b){
}
finally{
return c}
}
,asyncRequest:function(g,c,f,a){
var d=(this._isFileUpload)?this.getConnectionObject(true):this.getConnectionObject();
var b=(f&&f.argument)?f.argument:null;
if(!d){
return null}
else{
if(f&&f.customevents){
this.initCustomEvents(d,f)}
if(this._isFormSubmit){
if(this._isFileUpload){
this.uploadFile(d,f,c,a);
return d}
if(g.toUpperCase()=="GET"){
if(this._sFormData.length!==0){
c+=((c.indexOf("?")==-1)?"?":"&")+this._sFormData}
}
else{
if(g.toUpperCase()=="POST"){
a=a?this._sFormData+"&"+a:this._sFormData}
}
}
if(g.toUpperCase()=="GET"&&(f&&f.cache===false)){
c+=((c.indexOf("?")==-1)?"?":"&")+"rnd="+new Date().valueOf().toString()}
d.conn.open(g,c,true);
if(this._use_default_xhr_header){
if(!this._default_headers["X-Requested-With"]){
this.initHeader("X-Requested-With",this._default_xhr_header,true)}
}
if((g.toUpperCase()==="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){
this.initHeader("Content-Type",this._default_post_header)}
if(this._has_default_headers||this._has_http_headers){
this.setHeader(d)}
this.handleReadyState(d,f);
d.conn.send(a||"");
if(this._isFormSubmit===true){
this.resetFormState()}
this.startEvent.fire(d,b);
if(d.startEvent){
d.startEvent.fire(d,b)}
return d}
}
,initCustomEvents:function(a,c){
var b;
for(b in c.customevents){
if(this._customEvents[b][0]){
a[this._customEvents[b][0]]=new YAHOO.util.CustomEvent(this._customEvents[b][1],(c.scope)?c.scope:null);
a[this._customEvents[b][0]].subscribe(c.customevents[b])}
}
}
,handleReadyState:function(c,d){
var b=this;
var a=(d&&d.argument)?d.argument:null;
if(d&&d.timeout){
this._timeOut[c.tId]=window.setTimeout(function(){
b.abort(c,d,true)}
,d.timeout)}
this._poll[c.tId]=window.setInterval(function(){
if(c.conn&&c.conn.readyState===4){
window.clearInterval(b._poll[c.tId]);
delete b._poll[c.tId];
if(d&&d.timeout){
window.clearTimeout(b._timeOut[c.tId]);
delete b._timeOut[c.tId]}
try{
b.completeEvent.fire(c,a);
if(c.completeEvent){
c.completeEvent.fire(c,a)}
b.handleTransactionResponse(c,d)}
catch(f){
}
}
}
,this._polling_interval)}
,handleTransactionResponse:function(g,h,a){
var d,c;
var b=(h&&h.argument)?h.argument:null;
try{
if(g.conn.status!==undefined&&g.conn.status!==0){
d=g.conn.status}
else{
d=13030}
}
catch(f){
d=13030}
if(d>=200&&d<300||d===1223){
c=this.createResponseObject(g,b);
if(h&&h.success){
if(!h.scope){
h.success(c)}
else{
h.success.apply(h.scope,[c])}
}
this.successEvent.fire(c);
if(g.successEvent){
g.successEvent.fire(c)}
}
else{
switch(d){
case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:c=this.createExceptionObject(g.tId,b,(a?a:false));
if(h&&h.failure){
if(!h.scope){
h.failure(c)}
else{
h.failure.apply(h.scope,[c])}
}
break;
default:c=this.createResponseObject(g,b);
if(h&&h.failure){
if(!h.scope){
h.failure(c)}
else{
h.failure.apply(h.scope,[c])}
}
}
this.failureEvent.fire(c);
if(g.failureEvent){
g.failureEvent.fire(c)}
}
this.releaseObject(g);
c=null}
,createResponseObject:function(a,h){
var d={
}
;
var k={
}
;
try{
var c=a.conn.getAllResponseHeaders();
var g=c.split("\n");
for(var f=0;
f<g.length;
f++){
var b=g[f].indexOf(":");
if(b!=-1){
k[g[f].substring(0,b)]=g[f].substring(b+2)}
}
}
catch(j){
}
d.tId=a.tId;
d.status=(a.conn.status==1223)?204:a.conn.status;
d.statusText=(a.conn.status==1223)?"No Content":a.conn.statusText;
d.getResponseHeader=k;
d.getAllResponseHeaders=c;
d.responseText=a.conn.responseText;
d.responseXML=a.conn.responseXML;
if(h){
d.argument=h}
return d}
,createExceptionObject:function(j,d,a){
var g=0;
var h="communication failure";
var c=-1;
var b="transaction aborted";
var f={
}
;
f.tId=j;
if(a){
f.status=c;
f.statusText=b}
else{
f.status=g;
f.statusText=h}
if(d){
f.argument=d}
return f}
,initHeader:function(a,d,c){
var b=(c)?this._default_headers:this._http_headers;
b[a]=d;
if(c){
this._has_default_headers=true}
else{
this._has_http_headers=true}
}
,setHeader:function(a){
var b;
if(this._has_default_headers){
for(b in this._default_headers){
if(YAHOO.lang.hasOwnProperty(this._default_headers,b)){
a.conn.setRequestHeader(b,this._default_headers[b])}
}
}
if(this._has_http_headers){
for(b in this._http_headers){
if(YAHOO.lang.hasOwnProperty(this._http_headers,b)){
a.conn.setRequestHeader(b,this._http_headers[b])}
}
delete this._http_headers;
this._http_headers={
}
;
this._has_http_headers=false}
}
,resetDefaultHeaders:function(){
delete this._default_headers;
this._default_headers={
}
;
this._has_default_headers=false}
,setForm:function(q,k,c){
var o,b,n,l,u,m=false,g=[],t=0,f,h,d,r,a;
this.resetFormState();
if(typeof q=="string"){
o=(document.getElementById(q)||document.forms[q])}
else{
if(typeof q=="object"){
o=q}
else{
return}
}
if(k){
this.createFrame(c?c:null);
this._isFormSubmit=true;
this._isFileUpload=true;
this._formNode=o;
return}
for(f=0,h=o.elements.length;
f<h;
++f){
b=o.elements[f];
u=b.disabled;
n=b.name;
if(!u&&n){
n=encodeURIComponent(n)+"=";
l=encodeURIComponent(b.value);
switch(b.type){
case"select-one":if(b.selectedIndex>-1){
a=b.options[b.selectedIndex];
g[t++]=n+encodeURIComponent((a.attributes.value&&a.attributes.value.specified)?a.value:a.text)}
break;
case"select-multiple":if(b.selectedIndex>-1){
for(d=b.selectedIndex,r=b.options.length;
d<r;
++d){
a=b.options[d];
if(a.selected){
g[t++]=n+encodeURIComponent((a.attributes.value&&a.attributes.value.specified)?a.value:a.text)}
}
}
break;
case"radio":case"checkbox":if(b.checked){
g[t++]=n+l}
break;
case"file":case undefined:case"reset":case"button":break;
case"submit":if(m===false){
if(this._hasSubmitListener&&this._submitElementValue){
g[t++]=this._submitElementValue}
else{
g[t++]=n+l}
m=true}
break;
default:g[t++]=n+l}
}
}
this._isFormSubmit=true;
this._sFormData=g.join("&");
this.initHeader("Content-Type",this._default_form_header);
return this._sFormData}
,resetFormState:function(){
this._isFormSubmit=false;
this._isFileUpload=false;
this._formNode=null;
this._sFormData=""}
,createFrame:function(a){
var b="yuiIO"+this._transaction_id;
var c;
if(YAHOO.env.ua.ie){
c=document.createElement('<iframe id="'+b+'" name="'+b+'" />');
if(typeof a=="boolean"){
c.src="javascript:false"}
}
else{
c=document.createElement("iframe");
c.id=b;
c.name=b}
c.style.position="absolute";
c.style.top="-1000px";
c.style.left="-1000px";
document.body.appendChild(c)}
,appendPostData:function(a){
var d=[],b=a.split("&"),c,f;
for(c=0;
c<b.length;
c++){
f=b[c].indexOf("=");
if(f!=-1){
d[c]=document.createElement("input");
d[c].type="hidden";
d[c].name=decodeURIComponent(b[c].substring(0,f));
d[c].value=decodeURIComponent(b[c].substring(f+1));
this._formNode.appendChild(d[c])}
}
return d}
,uploadFile:function(d,r,f,c){
var k="yuiIO"+d.tId,l="multipart/form-data",n=document.getElementById(k),t=this,m=(r&&r.argument)?r.argument:null,q,j,b,h;
var a={
action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")}
;
this._formNode.setAttribute("action",f);
this._formNode.setAttribute("method","POST");
this._formNode.setAttribute("target",k);
if(YAHOO.env.ua.ie){
this._formNode.setAttribute("encoding",l)}
else{
this._formNode.setAttribute("enctype",l)}
if(c){
q=this.appendPostData(c)}
this._formNode.submit();
this.startEvent.fire(d,m);
if(d.startEvent){
d.startEvent.fire(d,m)}
if(r&&r.timeout){
this._timeOut[d.tId]=window.setTimeout(function(){
t.abort(d,r,true)}
,r.timeout)}
if(q&&q.length>0){
for(j=0;
j<q.length;
j++){
this._formNode.removeChild(q[j])}
}
for(b in a){
if(YAHOO.lang.hasOwnProperty(a,b)){
if(a[b]){
this._formNode.setAttribute(b,a[b])}
else{
this._formNode.removeAttribute(b)}
}
}
this.resetFormState();
var g=function(){
if(r&&r.timeout){
window.clearTimeout(t._timeOut[d.tId]);
delete t._timeOut[d.tId]}
t.completeEvent.fire(d,m);
if(d.completeEvent){
d.completeEvent.fire(d,m)}
h={
tId:d.tId,argument:r.argument}
;
try{
h.responseText=n.contentWindow.document.body?n.contentWindow.document.body.innerHTML:n.contentWindow.document.documentElement.textContent;
h.responseXML=n.contentWindow.document.XMLDocument?n.contentWindow.document.XMLDocument:n.contentWindow.document}
catch(o){
}
if(r&&r.upload){
if(!r.scope){
r.upload(h)}
else{
r.upload.apply(r.scope,[h])}
}
t.uploadEvent.fire(h);
if(d.uploadEvent){
d.uploadEvent.fire(h)}
YAHOO.util.Event.removeListener(n,"load",g);
setTimeout(function(){
document.body.removeChild(n);
t.releaseObject(d)}
,100)}
;
YAHOO.util.Event.addListener(n,"load",g)}
,abort:function(f,h,a){
var d;
var b=(h&&h.argument)?h.argument:null;
if(f&&f.conn){
if(this.isCallInProgress(f)){
f.conn.abort();
window.clearInterval(this._poll[f.tId]);
delete this._poll[f.tId];
if(a){
window.clearTimeout(this._timeOut[f.tId]);
delete this._timeOut[f.tId]}
d=true}
}
else{
if(f&&f.isUpload===true){
var c="yuiIO"+f.tId;
var g=document.getElementById(c);
if(g){
YAHOO.util.Event.removeListener(g,"load");
document.body.removeChild(g);
if(a){
window.clearTimeout(this._timeOut[f.tId]);
delete this._timeOut[f.tId]}
d=true}
}
else{
d=false}
}
if(d===true){
this.abortEvent.fire(f,b);
if(f.abortEvent){
f.abortEvent.fire(f,b)}
this.handleTransactionResponse(f,h,true)}
return d}
,isCallInProgress:function(b){
if(b&&b.conn){
return b.conn.readyState!==4&&b.conn.readyState!==0}
else{
if(b&&b.isUpload===true){
var a="yuiIO"+b.tId;
return document.getElementById(a)?true:false}
else{
return false}
}
}
,releaseObject:function(a){
if(a&&a.conn){
a.conn=null;
a=null}
}
}
;
YAHOO.register("connection",YAHOO.util.Connect,{
version:"2.6.0",build:"1321"}
);
YAHOO.lang.JSON=(function(){
var l=YAHOO.lang,_UNICODE_EXCEPTIONS=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,_ESCAPES=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{
4}
)/g,_VALUES=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,_BRACKETS=/(?:^|:|,)(?:\s*\[)+/g,_INVALID=/^[\],:{
}
\s]*$/,_SPECIAL_CHARS=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,_CHARS={
"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"}
;
function _revive(data,reviver){
var walk=function(o,key){
var k,v,value=o[key];
if(value&&typeof value==="object"){
for(k in value){
if(l.hasOwnProperty(value,k)){
v=walk(value,k);
if(v===undefined){
delete value[k]}
else{
value[k]=v}
}
}
}
return reviver.call(o,key,value)}
;
return typeof reviver==="function"?walk({
"":data}
,""):data}
function _char(c){
if(!_CHARS[c]){
_CHARS[c]="\\u"+("0000"+(+(c.charCodeAt(0))).toString(16)).slice(-4)}
return _CHARS[c]}
function _prepare(s){
return s.replace(_UNICODE_EXCEPTIONS,_char)}
function _isValid(str){
return l.isString(str)&&_INVALID.test(str.replace(_ESCAPES,"@").replace(_VALUES,"]").replace(_BRACKETS,""))}
function _string(s){
return'"'+s.replace(_SPECIAL_CHARS,_char)+'"'}
function _stringify(h,key,d,w,pstack){
var o=typeof w==="function"?w.call(h,key,h[key]):h[key],i,len,j,k,v,isArray,a;
if(o instanceof Date){
o=l.JSON.dateToString(o)}
else{
if(o instanceof String||o instanceof Boolean||o instanceof Number){
o=o.valueOf()}
}
switch(typeof o){
case"string":return _string(o);
case"number":return isFinite(o)?String(o):"null";
case"boolean":return String(o);
case"object":if(o===null){
return"null"}
for(i=pstack.length-1;
i>=0;
--i){
if(pstack[i]===o){
return"null"}
}
pstack[pstack.length]=o;
a=[];
isArray=l.isArray(o);
if(d>0){
if(isArray){
for(i=o.length-1;
i>=0;
--i){
a[i]=_stringify(o,i,d-1,w,pstack)||"null"}
}
else{
j=0;
if(l.isArray(w)){
for(i=0,len=w.length;
i<len;
++i){
k=w[i];
v=_stringify(o,k,d-1,w,pstack);
if(v){
a[j++]=_string(k)+":"+v}
}
}
else{
for(k in o){
if(typeof k==="string"&&l.hasOwnProperty(o,k)){
v=_stringify(o,k,d-1,w,pstack);
if(v){
a[j++]=_string(k)+":"+v}
}
}
}
a.sort()}
}
pstack.pop();
return isArray?"["+a.join(",")+"]":"{
"+a.join(",")+"}
"}
return undefined}
return{
isValid:function(s){
return _isValid(_prepare(s))}
,parse:function(s,reviver){
s=_prepare(s);
if(_isValid(s)){
return _revive(eval("("+s+")"),reviver)}
throw new SyntaxError("parseJSON")}
,stringify:function(o,w,d){
if(o!==undefined){
if(l.isArray(w)){
w=(function(a){
var uniq=[],map={
}
,v,i,j,len;
for(i=0,j=0,len=a.length;
i<len;
++i){
v=a[i];
if(typeof v==="string"&&map[v]===undefined){
uniq[(map[v]=j++)]=v}
}
return uniq}
)(w)}
d=d>=0?d:1/0;
return _stringify({
"":o}
,"",d,w,[])}
return undefined}
,dateToString:function(d){
function _zeroPad(v){
return v<10?"0"+v:v}
return d.getUTCFullYear()+"-"+_zeroPad(d.getUTCMonth()+1)+"-"+_zeroPad(d.getUTCDate())+"T"+_zeroPad(d.getUTCHours())+":"+_zeroPad(d.getUTCMinutes())+":"+_zeroPad(d.getUTCSeconds())+"Z"}
,stringToDate:function(str){
if(/^(\d{
4}
)-(\d{
2}
)-(\d{
2}
)T(\d{
2}
):(\d{
2}
):(\d{
2}
)Z$/.test(str)){
var d=new Date();
d.setUTCFullYear(RegExp.$1,(RegExp.$2|0)-1,RegExp.$3);
d.setUTCHours(RegExp.$4,RegExp.$5,RegExp.$6);
return d}
return str}
}
}
)();
YAHOO.register("json",YAHOO.lang.JSON,{
version:"2.6.0",build:"1321"}
);
/* * Sizzle CSS Selector Engine - v0.9.3 * Copyright 2009,The Dojo Foundation * Released under the MIT,BSD,and GPL Licenses. * More information:http://sizzlejs.com/ */
(function(){
var t=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,k=0,f=Object.prototype.toString;
var c=function(B,w,G,H){
G=G||[];
w=w||document;
if(w.nodeType!==1&&w.nodeType!==9){
return[]}
if(!B||typeof B!=="string"){
return G}
var C=[],z,K,O,v,I,y,A=true;
t.lastIndex=0;
while((z=t.exec(B))!==null){
C.push(z[1]);
if(z[2]){
y=RegExp.rightContext;
break}
}
if(C.length>1&&l.exec(B)){
if(C.length===2&&g.relative[C[0]]){
K=h(C[0]+C[1],w)}
else{
K=g.relative[C[0]]?[w]:c(C.shift(),w);
while(C.length){
B=C.shift();
if(g.relative[B]){
B+=C.shift()}
K=h(B,K)}
}
}
else{
var J=H?{
expr:C.pop(),set:b(H)}
:c.find(C.pop(),C.length===1&&w.parentNode?w.parentNode:w,r(w));
K=c.filter(J.expr,J.set);
if(C.length>0){
O=b(K)}
else{
A=false}
while(C.length){
var N=C.pop(),M=N;
if(!g.relative[N]){
N=""}
else{
M=C.pop()}
if(M==null){
M=w}
g.relative[N](O,M,r(w))}
}
if(!O){
O=K}
if(!O){
throw"Syntax error,unrecognized expression:"+(N||B)}
if(f.call(O)==="[object Array]"){
if(!A){
G.push.apply(G,O)}
else{
if(w.nodeType===1){
for(var F=0;
O[F]!=null;
F++){
if(O[F]&&(O[F]===true||O[F].nodeType===1&&j(w,O[F]))){
G.push(K[F])}
}
}
else{
for(var F=0;
O[F]!=null;
F++){
if(O[F]&&O[F].nodeType===1){
G.push(K[F])}
}
}
}
}
else{
b(O,G)}
if(y){
c(y,w,G,H);
if(d){
hasDuplicate=false;
G.sort(d);
if(hasDuplicate){
for(var F=1;
F<G.length;
F++){
if(G[F]===G[F-1]){
G.splice(F--,1)}
}
}
}
}
return G}
;
c.matches=function(v,w){
return c(v,null,null,w)}
;
c.find=function(F,v,G){
var C,A;
if(!F){
return[]}
for(var z=0,y=g.order.length;
z<y;
z++){
var B=g.order[z],A;
if((A=g.match[B].exec(F))){
var w=RegExp.leftContext;
if(w.substr(w.length-1)!=="\\"){
A[1]=(A[1]||"").replace(/\\/g,"");
C=g.find[B](A,v,G);
if(C!=null){
F=F.replace(g.match[B],"");
break}
}
}
}
if(!C){
C=v.getElementsByTagName("*")}
return{
set:C,expr:F}
}
;
c.filter=function(I,H,M,z){
var y=I,O=[],F=H,B,v,C=H&&H[0]&&r(H[0]);
while(I&&H.length){
for(var G in g.filter){
if((B=g.match[G].exec(I))!=null){
var w=g.filter[G],N,K;
v=false;
if(F==O){
O=[]}
if(g.preFilter[G]){
B=g.preFilter[G](B,F,M,O,z,C);
if(!B){
v=N=true}
else{
if(B===true){
continue}
}
}
if(B){
for(var A=0;
(K=F[A])!=null;
A++){
if(K){
N=w(K,B,A,F);
var J=z^!!N;
if(M&&N!=null){
if(J){
v=true}
else{
F[A]=false}
}
else{
if(J){
O.push(K);
v=true}
}
}
}
}
if(N!==undefined){
if(!M){
F=O}
I=I.replace(g.match[G],"");
if(!v){
return[]}
break}
}
}
if(I==y){
if(v==null){
throw"Syntax error,unrecognized expression:"+I}
else{
break}
}
y=I}
return F}
;
var g=c.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\(\)]*)+)\2\))?/}
,attrMap:{
"class":"className","for":"htmlFor"}
,attrHandle:{
href:function(v){
return v.getAttribute("href")}
}
,relative:{
"+":function(F,v,C){
var A=typeof v==="string",G=A&&!/\W/.test(v),B=A&&!G;
if(G&&!C){
v=v.toUpperCase()}
for(var z=0,y=F.length,w;
z<y;
z++){
if((w=F[z])){
while((w=w.previousSibling)&&w.nodeType!==1){
}
F[z]=B||w&&w.nodeName===v?w||false:w===v}
}
if(B){
c.filter(v,F,true)}
}
,">":function(C,w,F){
var A=typeof w==="string";
if(A&&!/\W/.test(w)){
w=F?w:w.toUpperCase();
for(var y=0,v=C.length;
y<v;
y++){
var B=C[y];
if(B){
var z=B.parentNode;
C[y]=z.nodeName===w?z:false}
}
}
else{
for(var y=0,v=C.length;
y<v;
y++){
var B=C[y];
if(B){
C[y]=A?B.parentNode:B.parentNode===w}
}
if(A){
c.filter(w,C,true)}
}
}
,"":function(z,w,B){
var y=k++,v=u;
if(!w.match(/\W/)){
var A=w=B?w:w.toUpperCase();
v=o}
v("parentNode",w,y,z,A,B)}
,"~":function(z,w,B){
var y=k++,v=u;
if(typeof w==="string"&&!w.match(/\W/)){
var A=w=B?w:w.toUpperCase();
v=o}
v("previousSibling",w,y,z,A,B)}
}
,find:{
ID:function(w,y,z){
if(typeof y.getElementById!=="undefined"&&!z){
var v=y.getElementById(w[1]);
return v?[v]:[]}
}
,NAME:function(y,B,C){
if(typeof B.getElementsByName!=="undefined"){
var w=[],A=B.getElementsByName(y[1]);
for(var z=0,v=A.length;
z<v;
z++){
if(A[z].getAttribute("name")===y[1]){
w.push(A[z])}
}
return w.length===0?null:w}
}
,TAG:function(v,w){
return w.getElementsByTagName(v[1])}
}
,preFilter:{
CLASS:function(z,w,y,v,C,F){
z=" "+z[1].replace(/\\/g,"")+" ";
if(F){
return z}
for(var A=0,B;
(B=w[A])!=null;
A++){
if(B){
if(C^(B.className&&(" "+B.className+" ").indexOf(z)>=0)){
if(!y){
v.push(B)}
}
else{
if(y){
w[A]=false}
}
}
}
return false}
,ID:function(v){
return v[1].replace(/\\/g,"")}
,TAG:function(w,v){
for(var y=0;
v[y]===false;
y++){
}
return v[y]&&r(v[y])?w[1]:w[1].toUpperCase()}
,CHILD:function(v){
if(v[1]=="nth"){
var w=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(v[2]=="even"&&"2n"||v[2]=="odd"&&"2n+1"||!/\D/.test(v[2])&&"0n+"+v[2]||v[2]);
v[2]=(w[1]+(w[2]||1))-0;
v[3]=w[3]-0}
v[0]=k++;
return v}
,ATTR:function(A,w,y,v,B,C){
var z=A[1].replace(/\\/g,"");
if(!C&&g.attrMap[z]){
A[1]=g.attrMap[z]}
if(A[2]==="~="){
A[4]=" "+A[4]+" "}
return A}
,PSEUDO:function(A,w,y,v,B){
if(A[1]==="not"){
if(A[3].match(t).length>1||/^\w/.test(A[3])){
A[3]=c(A[3],null,null,w)}
else{
var z=c.filter(A[3],w,y,true^B);
if(!y){
v.push.apply(v,z)}
return false}
}
else{
if(g.match.POS.test(A[0])||g.match.CHILD.test(A[0])){
return true}
}
return A}
,POS:function(v){
v.unshift(true);
return v}
}
,filters:{
enabled:function(v){
return v.disabled===false&&v.type!=="hidden"}
,disabled:function(v){
return v.disabled===true}
,checked:function(v){
return v.checked===true}
,selected:function(v){
v.parentNode.selectedIndex;
return v.selected===true}
,parent:function(v){
return !!v.firstChild}
,empty:function(v){
return !v.firstChild}
,has:function(y,w,v){
return !!c(v[3],y).length}
,header:function(v){
return/h\d/i.test(v.nodeName)}
,text:function(v){
return"text"===v.type}
,radio:function(v){
return"radio"===v.type}
,checkbox:function(v){
return"checkbox"===v.type}
,file:function(v){
return"file"===v.type}
,password:function(v){
return"password"===v.type}
,submit:function(v){
return"submit"===v.type}
,image:function(v){
return"image"===v.type}
,reset:function(v){
return"reset"===v.type}
,button:function(v){
return"button"===v.type||v.nodeName.toUpperCase()==="BUTTON"}
,input:function(v){
return/input|select|textarea|button/i.test(v.nodeName)}
}
,setFilters:{
first:function(w,v){
return v===0}
,last:function(y,w,v,z){
return w===z.length-1}
,even:function(w,v){
return v%2===0}
,odd:function(w,v){
return v%2===1}
,lt:function(y,w,v){
return w<v[3]-0}
,gt:function(y,w,v){
return w>v[3]-0}
,nth:function(y,w,v){
return v[3]-0==w}
,eq:function(y,w,v){
return v[3]-0==w}
}
,filter:{
PSEUDO:function(C,y,z,F){
var w=y[1],A=g.filters[w];
if(A){
return A(C,z,y,F)}
else{
if(w==="contains"){
return(C.textContent||C.innerText||"").indexOf(y[3])>=0}
else{
if(w==="not"){
var B=y[3];
for(var z=0,v=B.length;
z<v;
z++){
if(B[z]===C){
return false}
}
return true}
}
}
}
,CHILD:function(v,z){
var C=z[1],w=v;
switch(C){
case"only":case"first":while(w=w.previousSibling){
if(w.nodeType===1){
return false}
}
if(C=="first"){
return true}
w=v;
case"last":while(w=w.nextSibling){
if(w.nodeType===1){
return false}
}
return true;
case"nth":var y=z[2],H=z[3];
if(y==1&&H==0){
return true}
var B=z[0],G=v.parentNode;
if(G&&(G.sizcache!==B||!v.nodeIndex)){
var A=0;
for(w=G.firstChild;
w;
w=w.nextSibling){
if(w.nodeType===1){
w.nodeIndex=++A}
}
G.sizcache=B}
var F=v.nodeIndex-H;
if(y==0){
return F==0}
else{
return(F%y==0&&F/y>=0)}
}
}
,ID:function(w,v){
return w.nodeType===1&&w.getAttribute("id")===v}
,TAG:function(w,v){
return(v==="*"&&w.nodeType===1)||w.nodeName===v}
,CLASS:function(w,v){
return(" "+(w.className||w.getAttribute("class"))+" ").indexOf(v)>-1}
,ATTR:function(B,z){
var y=z[1],v=g.attrHandle[y]?g.attrHandle[y](B):B[y]!=null?B[y]:B.getAttribute(y),C=v+"",A=z[2],w=z[4];
return v==null?A==="!=":A==="="?C===w:A==="*="?C.indexOf(w)>=0:A==="~="?(" "+C+" ").indexOf(w)>=0:!w?C&&v!==false:A==="!="?C!=w:A==="^="?C.indexOf(w)===0:A==="$="?C.substr(C.length-w.length)===w:A==="|="?C===w||C.substr(0,w.length+1)===w+"-":false}
,POS:function(A,w,y,B){
var v=w[2],z=g.setFilters[v];
if(z){
return z(A,y,w,B)}
}
}
}
;
var l=g.match.POS;
for(var n in g.match){
g.match[n]=RegExp(g.match[n].source+/(?![^\[]*\])(?![^\(]*\))/.source)}
var b=function(w,v){
w=Array.prototype.slice.call(w);
if(v){
v.push.apply(v,w);
return v}
return w}
;
try{
Array.prototype.slice.call(document.documentElement.childNodes)}
catch(m){
b=function(A,z){
var w=z||[];
if(f.call(A)==="[object Array]"){
Array.prototype.push.apply(w,A)}
else{
if(typeof A.length==="number"){
for(var y=0,v=A.length;
y<v;
y++){
w.push(A[y])}
}
else{
for(var y=0;
A[y];
y++){
w.push(A[y])}
}
}
return w}
}
var d;
if(Array.prototype.indexOf){
var q=Array.prototype.indexOf,a=document.getElementsByTagName("*");
d=function(w,v){
var y=q.call(a,w)-q.call(a,v);
if(y===0){
hasDuplicate=true}
return y}
}
else{
if(document.documentElement.sourceIndex===1){
d=function(w,v){
var y=w.sourceIndex-v.sourceIndex;
if(y===0){
hasDuplicate=true}
return y}
}
}
(function(){
var w=document.createElement("form"),y="script"+(new Date).getTime();
w.innerHTML="<input name='"+y+"'/>";
var v=document.documentElement;
v.insertBefore(w,v.firstChild);
if(!!document.getElementById(y)){
g.find.ID=function(A,B,C){
if(typeof B.getElementById!=="undefined"&&!C){
var z=B.getElementById(A[1]);
return z?z.id===A[1]||typeof z.getAttributeNode!=="undefined"&&z.getAttributeNode("id").nodeValue===A[1]?[z]:undefined:[]}
}
;
g.filter.ID=function(B,z){
var A=typeof B.getAttributeNode!=="undefined"&&B.getAttributeNode("id");
return B.nodeType===1&&A&&A.nodeValue===z}
}
v.removeChild(w)}
)();
(function(){
var v=document.createElement("div");
v.appendChild(document.createComment(""));
if(v.getElementsByTagName("*").length>0){
g.find.TAG=function(w,B){
var A=B.getElementsByTagName(w[1]);
if(w[1]==="*"){
var z=[];
for(var y=0;
A[y];
y++){
if(A[y].nodeType===1){
z.push(A[y])}
}
A=z}
return A}
}
v.innerHTML="<a href='#'></a>";
if(v.firstChild&&typeof v.firstChild.getAttribute!=="undefined"&&v.firstChild.getAttribute("href")!=="#"){
g.attrHandle.href=function(w){
return w.getAttribute("href",2)}
}
}
)();
if(document.querySelectorAll){
(function(){
var v=c,w=document.createElement("div");
w.innerHTML="<p class='TEST'></p>";
if(w.querySelectorAll&&w.querySelectorAll(".TEST").length===0){
return}
c=function(B,A,y,z){
A=A||document;
if(!z&&A.nodeType===9&&!r(A)){
try{
return b(A.querySelectorAll(B),y)}
catch(C){
}
}
return v(B,A,y,z)}
;
c.find=v.find;
c.filter=v.filter;
c.selectors=v.selectors;
c.matches=v.matches}
)()}
if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){
(function(){
var v=document.createElement("div");
v.innerHTML="<div class='test e'></div><div class='test'></div>";
if(v.getElementsByClassName("e").length===0){
return}
v.lastChild.className="e";
if(v.getElementsByClassName("e").length===1){
return}
g.order.splice(1,0,"CLASS");
g.find.CLASS=function(w,y,z){
if(typeof y.getElementsByClassName!=="undefined"&&!z){
return y.getElementsByClassName(w[1])}
}
}
)()}
function o(w,C,B,I,F,H){
var G=w=="previousSibling"&&!H;
for(var z=0,y=I.length;
z<y;
z++){
var v=I[z];
if(v){
if(G&&v.nodeType===1){
v.sizcache=B;
v.sizset=z}
v=v[w];
var A=false;
while(v){
if(v.sizcache===B){
A=I[v.sizset];
break}
if(v.nodeType===1&&!H){
v.sizcache=B;
v.sizset=z}
if(v.nodeName===C){
A=v;
break}
v=v[w]}
I[z]=A}
}
}
function u(w,C,B,I,F,H){
var G=w=="previousSibling"&&!H;
for(var z=0,y=I.length;
z<y;
z++){
var v=I[z];
if(v){
if(G&&v.nodeType===1){
v.sizcache=B;
v.sizset=z}
v=v[w];
var A=false;
while(v){
if(v.sizcache===B){
A=I[v.sizset];
break}
if(v.nodeType===1){
if(!H){
v.sizcache=B;
v.sizset=z}
if(typeof C!=="string"){
if(v===C){
A=true;
break}
}
else{
if(c.filter(C,[v]).length>0){
A=v;
break}
}
}
v=v[w]}
I[z]=A}
}
}
var j=document.compareDocumentPosition?function(w,v){
return w.compareDocumentPosition(v)&16}
:function(w,v){
return w!==v&&(w.contains?w.contains(v):true)}
;
var r=function(v){
return v.nodeType===9&&v.documentElement.nodeName!=="HTML"||!!v.ownerDocument&&r(v.ownerDocument)}
;
var h=function(v,F){
var z=[],A="",B,y=F.nodeType?[F]:F;
while((B=g.match.PSEUDO.exec(v))){
A+=B[0];
v=v.replace(g.match.PSEUDO,"")}
v=g.relative[v]?v+"*":v;
for(var C=0,w=y.length;
C<w;
C++){
c(v,y[C],z)}
return c.filter(A,z)}
;
YAHOO.util.Dom.query=c}
)();
var U=YAHOO.util,D=YAHOO.util.Dom,E=YAHOO.util.Event,L=YAHOO.lang;
Arale=YAHOO.namespace("Arale");
Arale.namespace=function(){
var a=Array.prototype.slice.call(arguments,0),b;
for(b=0;
b<a.length;
++b){
if(a[b].indexOf("Arale")!=0){
a[b]="Arale."+a[b]}
}
return YAHOO.namespace.apply(null,a)}
;
Arale.namespace("core","fn","widget","cache","util","ajax","pk");
Arale.PageVar=window.AP&&AP.PageVar||{
}
;
AP=Arale;
AP.widget={
}
;
AP.pk={
}
;
AP.pk.ea={
}
;
AP.pk.pa={
}
;
AP.pk.wow={
}
;
var userAgent=navigator.userAgent.toLowerCase();
AP.env={
url:{
"static":"https://static.alipay.com",img:"https://img.alipay.com"}
,browser:{
v:(userAgent.match(/.+(?:rv|it|ra|ie)[\/:]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent)&&/safari/.test(userAgent)&&!/chrome/.test(userAgent),chrome:/webkit/.test(userAgent)&&/chrome/.test(userAgent),opera:/opera/.test(userAgent),msie:(document.all)?true:false,msie6:/msie 6.0/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)}
,platform:{
windows:/(windows|win32)/.test(userAgent),mac:/macintosh/.test(userAgent)}
,regExp:{
email:/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{
2,4}
)+$/,cnPhone:/^(\d{
3,4}
-)\d{
7,8}
(-\d{
1,6}
)?$/,cnMobile:/^1\d{
10}
$/,yid:/^[a-z][a-z_0-9]{
3,}
(@yahoo\.cn)?$/,date:/^\d{
4}
\-[01]?\d\-[0-3]?\d$|^[01]\d\/[0-3]\d\/\d{
4}
$|^\d{
4}
年[01]?\d月[0-3]?\d[日号]$/,integer:/^[1-9][0-9]*$/,number:/^[+-]?[1-9][0-9]*(\.[0-9]+)?([eE][+-][1-9][0-9]*)?$|^[+-]?0?\.[0-9]+([eE][+-][1-9][0-9]*)?$/,alpha:/^[a-zA-Z]+$/,alphaNum:/^[a-zA-Z0-9_]+$/,urls:/^(http|https):\/\/(\w+:{
0,1}
\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,chinese:/^[\u2E80-\uFE4F]+$/,postal:/^[0-9]{
6}
$/}
,modules:[]}
;
AP.fn={
url:AP.env.url,browser:AP.env.browser,regExp:AP.env.regExp,bind:function(a,b){
return function(){
return b.apply(a,arguments)}
}
,apply:function(c,a){
if(c&&a&&typeof a=="object"){
for(var b in a){
c[b]=a[b]}
}
return c}
,hasEvent:function(c,b){
var a=E.getListeners(c);
if(a==null){
return false}
else{
if(E.getListeners(c,b).length<1){
return false}
else{
return true}
}
}
,Selector:function(d,a,c){
var b=D.get(d);
if(b===null||a){
b=S?S.query(d,a,c):[]}
if(!L.isArray(b)){
b=[b]}
return b}
,eInRegion:function(a,c){
var b=E.getXY(c);
if((!a)||(!c)){
return false}
if(b[0]<a.left||b[0]>a.right){
return false}
if(b[1]<a.top||b[1]>a.bottom){
return false}
return true}
,stripTags:function(a){
return a.replace(/<\/?[^>]+>/gi,"")}
,escapeHTML:function(a){
return a.replace(/&/g,"&
").replace(/</g,"<
").replace(/>/g,">
")}
,unescapeHTML:function(a){
if(a.length<1){
return a}
return AP.fn.stripTags(a).replace(/&
/g,"&").replace(/<
/g,"<").replace(/>
/g,">")}
,getType:function(b){
var a;
return((a=typeof(b))=="object"?Object.prototype.toString.call(b).slice(8,-1):a).toLowerCase()}
}
;
D.setStyles=function(c,a){
if(c.constructor==Array){
c.forEach(function(d){
for(var f in a){
D.setStyle(d,f,a[f])}
}
)}
else{
for(var b in a){
D.setStyle(c,b,a[b])}
}
}
;
AP.extend=YAHOO.extend;
YAHOO.util.Connect.syncRequest=function(g,c,f,a){
var d=(this._isFileUpload)?this.getConnectionObject(true):this.getConnectionObject();
var b=(f&&f.argument)?f.argument:null;
if(!d){
return null}
else{
if(f&&f.customevents){
this.initCustomEvents(d,f)}
if(this._isFormSubmit){
if(this._isFileUpload){
this.uploadFile(d,f,c,a);
return d}
if(g.toUpperCase()=="GET"){
if(this._sFormData.length!==0){
c+=((c.indexOf("?")==-1)?"?":"&")+this._sFormData}
}
else{
if(g.toUpperCase()=="POST"){
a=a?this._sFormData+"&"+a:this._sFormData}
}
}
if(g.toUpperCase()=="GET"&&(f&&f.cache===false)){
c+=((c.indexOf("?")==-1)?"?":"&")+"rnd="+new Date().valueOf().toString()}
d.conn.open(g,c,false);
if(this._use_default_xhr_header){
if(!this._default_headers["X-Requested-With"]){
this.initHeader("X-Requested-With",this._default_xhr_header,true)}
}
if((g.toUpperCase()==="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){
this.initHeader("Content-Type",this._default_post_header)}
if(this._has_default_headers||this._has_http_headers){
this.setHeader(d)}
this.handleReadyState(d,f);
d.conn.send(a||"");
if(this._isFormSubmit===true){
this.resetFormState()}
this.startEvent.fire(d,b);
if(d.startEvent){
d.startEvent.fire(d,b)}
return d}
}
;
AP.ajax=YAHOO.util.Connect;
AP.cache={
}
;
var Element={
create:function(a,b){
this.self=document.createElement(a);
if(b===null){
return this.self}
for(p in b){
if(p=="class"||p=="className"){
this.self.className=b[p]}
else{
if(p=="style"){
for(s in b[p]){
this.self.style[s]=b[p][s]}
}
else{
if(p==="innerHTML"){
this.self.innerHTML=b[p]}
else{
if(p==="event"){
for(e in b[p]){
}
}
else{
if(p==="appendTo"){
b[p].appendChild(this.self)}
else{
if(p==="append"){
this.self.appendChild(b[p])}
else{
this.self.setAttribute([p],b[p])}
}
}
}
}
}
}
return this.self}
,remove:function(c,b){
try{
var a=b||document.body;
var c=typeof(c)=="object"?c:((c.indexOf("#")>-1||c.indexOf(".")>-1||c.indexOf("*")>-1)?D.query(c):D.get(c));
if(D.get(c)){
a.removeChild(D.get(c))}
}
catch(d){
log(d)}
}
}
;
AP.util={
toggleInput:function(a){
E.on(a,"focus",function(){
D.removeClass(this,"i-text-gray");
if(this.value==this.getAttribute("data-default")){
this.value=""}
}
);
E.on(a,"blur",function(){
if(this.value==""||this.value==this.getAttribute("data-default")){
D.addClass(this,"i-text-gray");
this.value=this.getAttribute("data-default")}
else{
D.removeClass(this,"i-text-gray")}
}
)}
,attachHover:function(a){
if(!AP.fn.browser.msie6){
return}
if(a&&a.length>0){
a.forEach(function(c,b){
D.query("."+c).forEach(function(d,f){
E.on(d,"mouseover",function(){
D.addClass(d,c+"-hover")}
);
E.on(d,"mouseout",function(){
D.removeClass(d,c+"-hover")}
)}
)}
)}
}
,cutEmail:function(a){
if(!/^1\d{
10}
$/.test(a)){
if(a.length>30){
var b=a.split("@");
if(b[0].length>17){
b[0]=b[0].substr(0,14)+"..."}
if(b[0].length>12){
b[1]=b[0].substr(0,9)+"..."}
return b[0]+"@"+b[1]}
}
return a}
}
;
function stopEvent(a){
if(!a){
a=window.event}
if(a.stopPropagation){
a.stopPropagation()}
else{
a.cancelBubble=true}
}
function preventDefault(a){
if(a&&a.preventDefault){
a.preventDefault()}
else{
window.event.returnValue=false}
return false}
if(!Array.prototype.indexOf){
Array.prototype.indexOf=function(c,b){
if(b==null){
b=0}
else{
if(b<0){
b=Math.max(0,this.length+b)}
}
for(var a=b;
a<this.length;
a++){
if(this[a]===c){
return a}
}
return -1}
}
if(!Array.prototype.lastIndexOf){
Array.prototype.lastIndexOf=function(c,b){
if(b==null){
b=this.length-1}
else{
if(b<0){
b=Math.max(0,this.length+b)}
}
for(var a=b;
a>=0;
a--){
if(this[a]===c){
return a}
}
return -1}
}
if(!Array.prototype.max){
Array.prototype.max=function(){
var a=this[0];
for(i=0;
i<this.length;
i++){
if(this[i]>a){
a=this[i]}
}
return a}
}
if(!Array.prototype.forEach){
Array.prototype.forEach=function(c,d){
var a=this.length;
for(var b=0;
b<a;
b++){
c.call(d,this[b],b,this)}
}
}
if(!Array.prototype.filter){
Array.prototype.filter=function(d,g){
var a=this.length;
var c=[];
for(var b=0;
b<a;
b++){
if(d.call(g,this[b],b,this)){
c.push(this[b])}
}
return c}
}
if(!Array.prototype.map){
Array.prototype.map=function(d,g){
var a=this.length;
var c=[];
for(var b=0;
b<a;
b++){
c.push(d.call(g,this[b],b,this))}
return c}
}
if(!Array.prototype.some){
Array.prototype.some=function(c,d){
var a=this.length;
for(var b=0;
b<a;
b++){
if(c.call(d,this[b],b,this)){
return true}
}
return false}
}
if(!Array.prototype.every){
Array.prototype.every=function(c,d){
var a=this.length;
for(var b=0;
b<a;
b++){
if(!c.call(d,this[b],b,this)){
return false}
}
return true}
}
if(!Array.prototype.contains){
Array.prototype.contains=function(c){
if(c.constructor===Array){
var a=true,b=this;
c.forEach(function(d){
if(b.indexOf(d)==-1){
a=false}
}
);
return a}
else{
return this.indexOf(c)!=-1}
}
}
if(!Array.prototype.copy){
Array.prototype.copy=function(a){
return this.concat()}
}
if(!Array.prototype.insertAt){
Array.prototype.insertAt=function(b,a){
this.splice(a,0,b)}
}
if(!Array.prototype.insertBefore){
Array.prototype.insertBefore=function(c,b){
var a=this.indexOf(b);
if(a==-1){
this.push(c)}
else{
this.splice(a,0,c)}
}
}
if(!Array.prototype.removeAt){
Array.prototype.removeAt=function(a){
this.splice(a,1)}
}
if(!Array.prototype.remove){
Array.prototype.remove=function(b){
var a=this.indexOf(b);
if(a!=-1){
this.splice(a,1)}
}
}
if(!Array.prototype.has){
Array.prototype.has=function(a){
if(this.indexOf(a)>-1){
return true}
else{
return false}
}
}
if(!Array.prototype.sortNum){
Array.prototype.sortNum=function(a){
return this.sort(function(d,c){
return d-c}
)}
}
if(!Array.prototype.unique){
Array.prototype.unique=function(){
var b=[],c;
this.sort();
for(c=0;
c<this.length;
c++){
if(this[c]!==this[c+1]){
b[b.length]=this[c]}
}
return b}
}
if(!String.prototype.toQueryParams){
String.prototype.toQueryParams=function(){
var g={
}
;
var h=this.indexOf("?")>-1?this.split("?")[1].split("&"):this.split("&");
var d=/([^=]*)=(.*)/;
for(var b=0;
b<h.length;
b++){
var a=d.exec(h[b]);
if(!a){
continue}
var c=decodeURIComponent(a[1]);
var f=a[2]?decodeURIComponent(a[2]):undefined;
if(g[c]!==undefined){
if(g[c].constructor!=Array){
g[c]=[g[c]]}
if(f){
g[c].push(f)}
}
else{
g[c]=f}
}
return g}
}
if(!String.prototype.trim){
String.prototype.trim=function(){
return this.replace(/^\s+|\s+$/g,"")}
}
if(!String.prototype.trimAll){
String.prototype.trimAll=function(){
return this.replace(/^\s+|\s+|\s+$/g,"")}
}
if(!String.prototype.replaceAll){
String.prototype.replaceAll=function(b,a){
return this.replace(new RegExp(b,"gm"),a)}
}
if(!String.prototype.len){
String.prototype.len=function(){
var d=this.toString();
var a=0;
for(var b=0;
b<d.length;
b++){
var f=d.charCodeAt(b);
if(f>128){
a+=2}
else{
a+=1}
}
return a}
}
if(!String.prototype.brief){
String.prototype.brief=function(f){
var a=0;
var b="";
for(var d=0;
d<this.length;
d++){
var g=this.charCodeAt(d);
if(g>128){
a+=2}
else{
a+=1}
if(a<=f){
b+=this.charAt(d)}
else{
return b}
}
return b}
}
if(!String.prototype.unescapeHTML){
String.prototype.unescapeHTML=function(){
if(!this.trim().length){
return this}
var a=document.createElement("DIV");
a.innerHTML=this;
if(a.innerText){
return a.innerText}
return a.textContent}
}
if(!String.prototype.trimChar){
String.prototype.trimChar=function(){
var a="";
for(var b=0;
b<this.length;
b++){
if(this.charCodeAt(b)==12288){
a+=String.fromCharCode(this.charCodeAt(b)-12256);
continue}
if(this.charCodeAt(b)>65280&&this.charCodeAt(b)<65375){
a+=String.fromCharCode(this.charCodeAt(b)-65248)}
else{
a+=String.fromCharCode(this.charCodeAt(b))}
}
return a}
}
if(!String.prototype.escapeHTML){
String.prototype.escapeHTML=function(){
var b=document.createElement("div");
var a=document.createTextNode(this);
b.appendChild(a);
return b.innerHTML.replaceAll('"',""
").replaceAll("'","'
")}
}
if(!Number.prototype.fixDate){
Number.prototype.fixDate=function(){
return this-0<10?"0"+this:this}
}
if(!String.prototype.fixDate){
String.prototype.fixDate=function(){
return this-0<10?"0"+this:this}
}
if(window.AralePreload&&window.AralePreload.length){
E.onDOMReady(function(){
AralePreload.forEach(function(c,a){
try{
c()}
catch(b){
}
}
)}
)}
function log(){
try{
var a=arguments;
var c=[];
if(a.length===1){
if(a[0].constructor===Object){
for(x in a[0]){
console.log(x+":"+a[0][x])}
}
else{
console.log(a[0])}
return}
for(i=0;
i<a.length;
i++){
c.push(a[i])}
if(console&&console.log){
console.log(c.join(","))}
else{
alert(c.join(","))}
}
catch(b){
}
}
(function(){
function c(g){
return(g!=undefined)}
function a(h){
if(!c(h)){
return false}
if(h.htmlElement){
return"element"}
var g=typeof h;
if(g=="object"&&h.nodeName){
switch(h.nodeType){
case 1:return"element";
case 3:return(/\S/).test(h.nodeValue)?"textnode":"whitespace"}
}
if(g=="object"||g=="function"){
switch(h.constructor){
case Array:return"array";
case RegExp:return"regexp";
case AP.Class:return"class"}
if(typeof h.length=="number"){
if(h.item){
return"collection"}
if(h.callee){
return"arguments"}
}
}
return g}
function d(){
var j={
}
;
for(var h=0;
h<arguments.length;
h++){
for(var l in arguments[h]){
var g=arguments[h][l];
var k=j[l];
if(k&&a(g)=="object"&&a(k)=="object"){
j[l]=d(k,g)}
else{
j[l]=g}
}
}
return j}
var b=function(){
var g=arguments;
if(!g[1]){
g=[this,g[0]]}
for(var h in g[1]){
g[0][h]=g[1][h]}
return g[0]}
;
var f=function(){
for(var h=0,g=arguments.length;
h<g;
h++){
arguments[h].extend=function(j){
for(var k in j){
if(!this.prototype[k]){
this.prototype[k]=j[k]}
if(!this[k]){
this[k]=f.generic(k)}
}
}
}
}
;
f.generic=function(g){
return function(h){
return this.prototype[g].apply(h,Array.prototype.slice.call(arguments,1))}
}
;
f(Function,Array,String,Number);
AP.Class=function(h){
var g=function(){
return(arguments[0]!==null&&this.initialize&&a(this.initialize)=="function")?this.initialize.apply(this,arguments):this}
;
b(g,this);
g.prototype=h;
g.constructor=AP.Class;
return g}
;
AP.Class.empty=function(){
}
;
AP.Class.prototype={
extend:function(h){
var j=new this(null);
for(var k in h){
var g=j[k];
j[k]=AP.Class.Merge(g,h[k])}
return new AP.Class(j)}
,implement:function(){
for(var h=0,g=arguments.length;
h<g;
h++){
b(this.prototype,arguments[h])}
}
}
;
AP.Class.Merge=function(j,k){
if(j&&j!=k){
var h=a(k);
if(h!=a(j)){
return k}
switch(h){
case"function":var g=function(){
this.parent=arguments.callee.parent;
return k.apply(this,arguments)}
;
g.parent=j;
return g;
case"object":return d(j,k)}
}
return k}
}
)();
(function(){
function c(g){
return(g!=undefined)}
function a(h){
if(!c(h)){
return false}
if(h.htmlElement){
return"element"}
var g=typeof h;
if(g=="object"&&h.nodeName){
switch(h.nodeType){
case 1:return"element";
case 3:return(/\S/).test(h.nodeValue)?"textnode":"whitespace"}
}
if(g=="object"||g=="function"){
switch(h.constructor){
case Array:return"array";
case RegExp:return"regexp";
case AP.Class:return"class"}
if(typeof h.length=="number"){
if(h.item){
return"collection"}
if(h.callee){
return"arguments"}
}
}
return g}
function d(){
var j={
}
;
for(var h=0;
h<arguments.length;
h++){
for(var l in arguments[h]){
var g=arguments[h][l];
var k=j[l];
if(k&&a(g)=="object"&&a(k)=="object"){
j[l]=d(k,g)}
else{
j[l]=g}
}
}
return j}
var b=AP.hashExtend=function(){
var g=arguments;
if(!g[1]){
g=[this,g[0]]}
for(var h in g[1]){
g[0][h]=g[1][h]}
return g[0]}
;
var f=function(){
for(var h=0,g=arguments.length;
h<g;
h++){
arguments[h].extend=function(j){
for(var k in j){
if(!this.prototype[k]){
this.prototype[k]=j[k]}
if(!this[k]){
this[k]=f.generic(k)}
}
}
}
}
;
f.generic=function(g){
return function(h){
return this.prototype[g].apply(h,Array.prototype.slice.call(arguments,1))}
}
;
f(Function,Array,String,Number);
AP.Class=function(h){
var g=function(){
return(arguments[0]!==null&&this.initialize&&a(this.initialize)=="function")?this.initialize.apply(this,arguments):this}
;
b(g,this);
g.prototype=h;
g.constructor=AP.Class;
return g}
;
AP.Class.empty=function(){
}
;
AP.Class.prototype={
extend:function(h){
var j=new this(null);
for(var k in h){
var g=j[k];
j[k]=AP.Class.Merge(g,h[k])}
return new AP.Class(j)}
,implement:function(){
for(var h=0,g=arguments.length;
h<g;
h++){
b(this.prototype,arguments[h])}
}
}
;
AP.Class.Merge=function(j,k){
if(j&&j!=k){
var h=a(k);
if(h!=a(j)){
return k}
switch(h){
case"function":var g=function(){
this.parent=arguments.callee.parent;
return k.apply(this,arguments)}
;
g.parent=j;
return g;
case"object":return d(j,k)}
}
return k}
}
)();
AP.util.more=function(b,h,d,f){
var j="fn-hide";
var c=(typeof(b)==="string")?D.get(b):b;
var a=(typeof(h)==="string")?D.get(h):h;
var d=(d!=="")?d:"click";
if(c=="undefined"||c==null||a=="undefined"||a==null){
return}
var g=c.innerHTML;
if(d==="hover"){
E.on(c,"click",function(k){
if(c.tagName.uppercase==="A"){
E.preventDefault(k)}
}
);
E.on(c,"mouseover",function(){
D.removeClass(a,j)}
);
E.on(c,"mouseout",function(){
D.addClass(a,j)}
)}
else{
E.on(c,d,function(k){
if(D.hasClass(a,j)){
D.removeClass(a,j);
c.innerHTML=f}
else{
D.addClass(a,j);
c.innerHTML=g}
E.preventDefault(k)}
)}
}
;
AP.util.numFormat=function(a){
E.on(a,"blur",function(){
var d=D.get(a);
var c=d.value.trimAll(),b="";
for(i=0;
i<c.length;
i++){
if((i%4)==0){
b+=" "}
b+=c.charAt(i)}
d.value=b.trim()}
);
E.on(a,"focus",function(){
var b=D.get(a);
b.value=b.value.trimAll()}
)}
;
AP.util.inputHack=function(){
function a(){
var d=this.parentNode||null;
if(!d){
return}
if(D.hasClass(d,"fm-focus")){
return}
D.removeClass(d,"fm-hover");
D.addClass(d,"fm-focus")}
function c(){
if(D.hasClass(this,"btn-ok")){
D.removeClass(this,"btn-ok");
D.addClass(this,"btn-ok-hover")}
var d=this.parentNode||null;
if(!d){
return}
D.addClass(d,"fm-hover")}
function b(f){
if(D.hasClass(this,"btn-ok-hover")){
D.removeClass(this,"btn-ok-hover");
D.addClass(this,"btn-ok")}
var d=this.parentNode||null;
if(!d){
return}
D.removeClass(d,"fm-hover");
if(f.type==="blur"){
D.removeClass(d,"fm-focus")}
}
E.onDOMReady(function(){
var d=D.query("input[type=text]").concat(D.query("textarea")).concat(D.query("span.btn-ok")).concat(D.query("a.btn-ok"));
E.on(D.query("input[type=checkbox]"),"mouseover",function(){
this.style.cursor="pointer"}
);
E.on(D.query("input[type=checkbox]"),"mouseout",function(){
this.style.cursor="default"}
);
E.on(d,"mouseover",c);
E.on(d,"focus",a);
E.on(d,"click",a);
E.on(d,"blur",b);
E.on(d,"mouseout",b)}
)}
;
AP.widget.selBox=function(){
var d=function(f,g){
f.forEach(function(j,h){
j.checked=g}
);
return f}
;
var c=function(g,f){
var k=[];
g.forEach(function(l){
k.push(l.checked)}
);
var j=/false/;
var h=String(k);
if(j.test(h)==false){
f.checked=true}
else{
f.checked=false}
return k}
;
var b=function(f){
if(f.type=="mouseover"){
D.addClass(this,"hover")}
if(f.type=="mouseout"){
D.removeClass(this,"hover")}
}
;
var a=function(h,g){
var j=h.tBodies[0];
var f=j.rows;
if(g==true){
E.on(f,"mouseover",b);
E.on(f,"mouseout",b)}
}
;
return{
sel:function(h){
var f=D.getElementsByClassName(h.boxClass,"input");
var g=D.get(h.selAllBox);
var k=D.get(h.cancelBox);
var j=D.get(h.invertBox);
this.selAll(f,g);
if(g.type=="checkbox"){
E.on(f,"click",function(){
c(f,g)}
)}
this.cancelAll(f,k);
this.invertBox(f,j);
return f}
,selAll:function(g,f){
E.on(f,"click",function(){
if(this.checked){
d(g,true)}
else{
if(this.type=="checkbox"){
d(g,false)}
else{
if(this.className=="set-cancel"){
if(this.tagName=="INPUT"){
if(this.value=="全选"){
this.value="取消所选";
d(g,true)}
else{
this.value="全选";
d(g,false)}
}
else{
if(this.innerHTML=="全选"){
this.innerHTML="取消所选";
d(g,true)}
else{
this.innerHTML="全选";
d(g,false)}
}
}
else{
d(g,true)}
}
}
}
)}
,cancelAll:function(g,f){
E.on(f,"click",function(){
d(g,false)}
)}
,invertBox:function(g,f){
E.on(f,"click",function(){
g.forEach(function(j,h){
if(j.checked){
j.checked=false}
else{
j.checked=true}
}
)}
)}
,rowSelect:function(h,g){
var f=D.get(h);
if(f.constructor==Array){
f.forEach(function(j){
a(j,g)}
)}
else{
a(f,g)}
}
}
}
();
AP.util.scrollPage=function(c,b){
var a=function(g,h,j){
window.scroll(0,h)}
;
var b=b||0.5;
var f=D.getXY(c)[1];
log(f);
var d=new YAHOO.util.Anim(null,{
scroll:{
from:D.getDocumentScrollTop(),to:f}
}
,b,U.Easing.easeOut);
d.setAttribute=a;
d.animate()}
;
AP.util.hideControl=function(b,g,h,f,a){
if(h==undefined){
h=function(){
}
}
var d=function(m){
var l=E.getTarget(m);
var k=false;
var j=new U.CustomEvent("onHiddenEvent");
j.subscribe(h,f,true);
b.forEach(function(n){
if(l==n){
k=true}
}
);
if(!k&&!D.isAncestor(g,l)&&g!=l){
if(a){
g.parentNode.removeChild(g);
j.fire();
return}
D.addClass(g,"fn-hide");
j.fire()}
}
;
var c=false;
if(E.getListeners(document.body)){
E.getListeners(document.body).forEach(function(j){
if(j.fn.toString().trimAll()==d.toString().trimAll()){
c=true}
}
)}
if(!c){
E.on(document.body,"click",d)}
}
;
AP.load=function(a){
if(!D.get("fn-load")){
Element.create("div",{
id:"fn-load",appendTo:document.body}
)}
D.get("fn-load").style.display=a?"":"none"}
;
AP.fn.hideWhenBlur=function(a,b){
E.on(document.body,"click",function(f){
var d=a.constructor===Array?a:[a];
var c=f.target||f.srcElement;
if(c&&(d.has(c)||d.has(c.id))){
return}
else{
b.call(this,f)}
}
)}
;
if(AP.env.browser.msie6){
setTimeout(function(){
var a=["btn-2cn","btn-4cn","btn-fixed","btn-normal","btn-normal-s","btn-ok-s","btn-cancel-s"];
a.forEach(function(b){
E.on(D.query("."+b),"mouseover",function(d,f){
D.addClass(this,f+"-hover")}
,b);
E.on(D.query("."+b),"mouseout",function(d,f){
D.removeClass(this,f+"-hover")}
,b)}
)}
,100)}
AP.util.setXboxWidth=function(b){
try{
if(parent&&parent.D.get("xbox-iframe")){
parent.D.get("xbox-iframe").setAttribute("auto-width",b)}
else{
if(D.get("xbox-iframe")){
D.get("xbox-iframe").setAttribute("auto-width",b)}
}
}
catch(a){
}
}
;
AP.util.handleLongEmail=function(f,a,b){
var g=a||17,d=b||12;
if(f.length>g+d+1){
var c=f.indexOf("@");
f=(f.length-1-c>d)?f.substring(0,c+d-2)+"...":f;
log(f.substring(0,c+1));
f=(c>g)?f.replace(f.substring(0,c+1),f.substring(0,g-3)+"...@"):f}
return f}
;
AP.detected=true;
AP.util.monitorFormError=function(b){
var a=D.get(b);
if(a){
D.query(".fm-error",a).forEach(function(d,c){
var f=D.query(".fm-explain",d);
if(f.length){
f=f[0]}
var g=f.getAttribute("data-error");
if(g){
setTimeout(function(){
window.Tracker&&Tracker.click(g)}
,2000*c);
c++}
}
)}
}
;
AP.cache.hover=AP.cache.hover||{
}
;
E.hover=E.hover||function(d){
var a=arguments[1];
var c=arguments[2];
if(typeof a=="function"&&typeof c=="function"){
E.on(d,"mouseover",c);
E.on(d,"mouseout",a);
return}
var b=function(){
if(AP.cache.hover._e){
if(AP.cache.hover._e[a]!=undefined){
AP.cache.hover._e[a]=AP.cache.hover._d}
else{
if(AP.cache.hover._e.style[a]!=undefined){
AP.cache.hover._e.style[a]=AP.cache.hover._d}
}
}
}
;
E.on(d,"mouseover",function(f){
if(a){
b();
AP.cache.hover={
_e:this,_d:(this[a]==undefined?(this.style[a]==undefined?"":this.style[a]):this[a])}
}
if(typeof c=="function"){
c.call(this,f)}
else{
if(this[a]!=undefined){
this[a]=c}
else{
if(this.style[a]!=undefined){
this.style[a]=c}
}
}
}
);
E.on(d,"mouseout",function(f){
if(a){
b()}
}
)}
;
E.hoverClass=E.hoverClass||function(a,b){
E.hover(a,"className",function(){
D.addClass(this,b)}
)}
;
AP.core.callfromiframe=false;
AP.core.callnum=0;
AP.core.callback=function(){
return{
onComplete:function(a){
if(a){
switch(a.stat){
case"ok":this.onAPISuccessEvent.fire(a);
break;
case"deny":if(AP.core.callfromiframe){
self.parent.location.reload()}
else{
location.href=a.target}
break;
default:this.onAPIFailureEvent.fire(a)}
}
}
,setCustomHandle:function(){
this.onAPIFailureEvent=new U.CustomEvent("onAPIFailureEvent");
this.onAPISuccessEvent=new U.CustomEvent("onAPISuccessEvent")}
,onAPISuccess:function(b,a){
}
,onAPIFailure:function(b,a){
}
}
}
;
AP.core.ajax=new AP.Class({
setOptions:function(a){
var b={
success:this.onComplete,failure:this.onFailure,argument:[this]}
;
if(a.cache){
var b=this.hash_extend(b,{
cache:a.cache}
)}
AP.PageVar=AP.PageVar||{
}
;
return this.hash_extend({
api_url:AP.PageVar.app_domain||"",method:"GET",data:null,format:"json",form_custom:false,onAPIFailure:this.onAPIFailure,onAPISuccess:this.onAPISuccess,callback:b,inframe:false}
,a||{
}
)}
,hash_extend:function(){
var a=arguments;
if(!a[1]){
a=[this,a[0]]}
for(var b in a[1]){
a[0][b]=a[1][b]}
return a[0]}
,initialize:function(method,options,c){
this.connect=AP.ajax;
this.options=this.setOptions(options);
this.jsonp=false;
var current_domain=window.location.hostname;
var parten=/http:\/\/(.*)/;
if(this.options.inframe){
AP.core.callfromiframe=true}
if(parten.test(this.options.api_url)){
if(parten.exec(this.options.api_url)[1].trim().toLowerCase()!=current_domain){
this.options.format="jsonp"}
}
if(this.options.format=="jsonp"){
this.jsonp=true;
this.jcall="AP.core.callback.call_"+AP.core.callnum+1;
eval(this.jcall+" = new AP.core.callback()")}
this.api_url=this.buildURL(method);
this.bindEvents(c);
AP.core.callnum=AP.core.callnum+1}
,buildURL:function(f){
var d=/\/.*\..*/
;
var a=/(\w+)(\/\/)/g;
var b;
var c=(this.options.format=="jsonp")?"json":this.options.format;
this.api_url=this.options.api_url+"/"+f+"."+c;
if(d.test(f)){
b=this.options.api_url+f}
else{
b=this.options.api_url+"/"+f+"."+c}
return b.replace(a,"$1/")}
,bindEvents:function(c){
if(this.jsonp){
eval(this.jcall+".setCustomHandle()");
eval(this.jcall+".onAPIFailureEvent.subscribe(this.options.onAPIFailure,c,true)");
eval(this.jcall+".onAPISuccessEvent.subscribe(this.options.onAPISuccess,c,true)");
return}
this.onAPIFailureEvent=new U.CustomEvent("onAPIFailureEvent");
this.onAPISuccessEvent=new U.CustomEvent("onAPISuccessEvent");
this.onAPIFailureEvent.subscribe(this.options.onAPIFailure,c,true);
this.onAPISuccessEvent.subscribe(this.options.onAPISuccess,c,true)}
,call:function(a){
this.options.data=this.queryString(a);
if(this.jsonp){
this.getJson()}
else{
this.request()}
}
,getJson:function(){
var b=D.query("head")[0];
var a=Element.create("script");
a.src=this.api_url+"?"+this.options.data;
a.charset="gb2312";
b.appendChild(a)}
,submit:function(b){
var a=D.get(b);
var d=this.options.callback;
var c=this.options.method;
if(this.isXbox()){
this.api_url=this.api_url+"?_xbox=true"}
this.connect.setForm(a);
this.connect.asyncRequest(c,this.api_url,d);
this.formObject=a}
,request:function(){
var c=this.options.method;
var b=this.options.callback;
var a=this.options.data;
if(c=="POST"&&!this.jsonp){
if(this.isXbox()){
this.api_url=this.api_url+"?_xbox=true"}
this.connect.asyncRequest(c,this.api_url,b,a)}
else{
this.connect.asyncRequest(c,this.api_url+"?"+a,b,null)}
}
,onComplete:function(a){
var b=a.argument[0];
var a=a.responseText;
var a=L.JSON.parse(a);
if(a){
switch(a.stat){
case"ok":b.onAPISuccessEvent.fire(a);
break;
case"deny":if(AP.core.callfromiframe){
self.parent.location.reload()}
else{
location.href=a.target}
break;
default:if(b.formObject){
b.resetForm()}
if(a.input&&!b.options.form_custom){
b.showInputError(a.input)}
b.onAPIFailureEvent.fire(a);
break}
}
}
,onAPISuccess:function(b,a){
}
,onAPIFailure:function(b,a){
}
,onFailure:function(a){
}
,isXbox:function(){
var b=window.location.search;
if(b.indexOf("?")<0){
return false}
b=b.split("?")[1].split("&");
for(var a=0;
a<b.length;
a++){
if(b[a].split("=")[0]=="_xbox"){
return true}
}
return false}
,queryString:function(b){
var a=[];
b=b||{
}
;
if(this.isXbox()){
b._xbox="true"}
if(this.options.method!="POST"){
b.r=Math.random()*100;
b._input_charset="utf-8"}
if(this.options.format=="jsonp"){
b.r=Math.random()*100;
b._input_charset="utf-8";
b._callback=this.jcall+".onComplete"}
for(tmp_key in b){
a.push(tmp_key+"="+encodeURIComponent(b[tmp_key]))}
return a.join("&")}
}
);
AP.core.api=AP.core.ajax.extend({
onAPIFailure:function(b,a){
if(a[0].msg&&!a[0].input){
new AP.widget.errorXbox({
error_info:a[0].msg,url_info:""}
)}
}
,submiting:function(){
if(!this.formObject){
return}
var a=D.query("input[type=submit]",this.formObject)[0];
var b=D.query(".loading-text",this.formObject)[0];
a.setAttribute("disabled","disabled");
D.addClass(a.parentNode,"btn-ok-disabled");
D.removeClass(a.parentNode,"btn-ok");
D.removeClass(b,"fn-hide")}
,resetForm:function(){
var a=D.query("input[type=submit]",this.formObject)[0];
var b=D.query(".loading-text",this.formObject)[0];
a.removeAttribute("disabled");
D.removeClass(a.parentNode,"btn-ok-disabled");
D.addClass(a.parentNode,"btn-ok");
D.addClass(b,"fn-hide")}
,showInputError:function(c){
for(key in c){
var b=D.get(key).parentNode.parentNode;
var a=D.query(".fm-explain",b)[0];
D.addClass(b,"fm-error");
a.innerHTML=c[key]}
}
,submit:function(b){
this.parent(b);
try{
this.submiting()}
catch(a){
throw"check your submit button dom"}
}
}
);
AP.i18n={
translate:function(c,b){
var a=c;
if(AP.lang&&AP.lang[c]){
a=AP.lang[c]}
return this.printf(a,b)}
,printf:function(d,a){
if(!a){
return d}
var c="";
var f=d.split("%s");
for(var b=0;
b<a.length;
b++){
if(f[b].lastIndexOf("%")==f[b].length-1&&b!=a.length-1){
f[b]+="s"+f.splice(b+1,1)[0]}
c+=f[b]+a[b]}
return c+f[f.length-1]}
,set_lang:function(a){
AP.lang=AP.hashExtend(AP.lang||{
}
,a||{
}
)}
}
;
var _=function(b,a){
return AP.i18n.translate(b,a)}
;
AP.lang={
}
;
AP.lang.zh_CN={
search_from_contacts:"从所有联系人中搜索",please_type_username:"请输入联系人姓名",birthday:"生日",upload:"上传"}
;
AP.lang.tw={
search_from_contacts:"從所有聯系人中搜索",please_type_username:"請輸入聯繫人姓名",birthday:"生日",upload:"上傳"}
;
AP.lang=AP.lang.zh_CN;
CSS代码(lanrentuku.css):
body{padding-right:0px;padding-left:0px;padding-bottom:0px;margin:0px;padding-top:0px;font:12px/1.2 tahoma,helvetica,arial,simsun,sans-serif;}
h1,h2,h3,h4,h5,h6,ul,li,ol,dl,dd,dt{padding-right:0px;padding-left:0px;padding-bottom:0px;margin:0px;padding-top:0px}
em{font-weight:normal;font-style:normal;font-weight:bold;}
body{background:url(../images/index-bg.jpg) repeat-x;overflow-x:hidden}
#container{width:100%;}
.content{margin:0px auto;overflow:hidden;width:950px;zoom:1;position:relative}
.lanrentuku{height:320px;;padding-top:20px;text-align:center;}
.svc-title{padding-left:50px;font-size:14px;color:#676b69;height:30px}
.svc{height:123px}
.svc .nav-left{z-index:99;float:left;width:40px;position:relative;height:100%}
.svc .nav-left a{margin-top:40px;display:block;background:url(../images/index-sprite.png) no-repeat 0px -9px;overflow:hidden;width:24px;color:#828282;text-indent:-99px;line-height:20px;position:absolute;height:23px;text-decoration:none}
.svc .nav-left a:hover{background-position:0px -33px;width:47px;text-indent:18px;text-decoration:none}
.svc .nav-right{z-index:99;float:right;width:40px;position:relative;height:100%}
.svc .nav-right a{margin-top:40px;display:block;right:0px;background:url(../images/index-sprite.png) no-repeat -50px -34px;overflow:hidden;width:24px;color:#828282;text-indent:-99px;line-height:20px;position:absolute;height:23px;text-decoration:none}
.svc .nav-right a:hover{background-position:-27px -10px;width:47px;text-indent:8px}
.svc .nav-right em{color:#009dcf}
.svc .nav-left em{color:#009dcf}
.svc .container{float:left;overflow:hidden;width:870px;position:relative;height:100%}
.svc .content{left:0px;overflow:hidden;zoom:1;position:absolute;top:0px;height:100%}
.svc .content ul{height:100%}
.svc .content li{float:left;margin-left:7px;height:100%;list-style:none;}
.svc .content li.first{margin-left:0px}
.svc .content li.current{background:url(../images/index-sprite.png) no-repeat 5px 113px}
.svc .content a{display:block;float:left;margin:14px auto 0px;width:90px;text-indent:-9999px;background-repeat:no-repeat;height:94px;text-decoration:none;outline:none}
.svc .content a.icon1{background-image:url(../images/index-icon1.jpg)}
.svc .content a.icon2{background-image:url(../images/index-icon2.jpg)}
.svc .content a.svc-weg{background-position:-810px 0px}
.svc .content a.svc-weg:hover{background-position:-810px -94px}
.svc .content a.svc-tx{background-position:-540px 0px}
.svc .content a.svc-tx:hover{background-position:-540px -94px}
.svc .content a.svc-credit{background-position:-270px 0px}
.svc .content a.svc-credit:hover{background-position:-270px -94px}
.svc .content a.svc-gathering{background-position:-720px 0px}
.svc .content a.svc-gathering:hover{background-position:-720px -94px}
.svc .content a.svc-payment{background-position:-630px 0px}
.svc .content a.svc-payment:hover{background-position:-630px -94px}
.svc .content a.svc-escore{background-position:-180px 0px}
.svc .content a.svc-escore:hover{background-position:-180px -94px}
.svc .content a.svc-rent{background-position:-360px 0px}
.svc .content a.svc-rent:hover{background-position:-360px -94px}
.svc .content a.svc-cashgift{background-position:-450px 0px}
.svc .content a.svc-cashgift:hover{background-position:-450px -94px}
.svc .content a.svc-aa{background-position:0px 0px}
.svc .content a.svc-aa:hover{background-position:0px -94px}
.svc .content a.svc-donate{background-position:-90px 0px}
.svc .content a.svc-donate:hover{background-position:-90px -94px}
.svc .content a.svc-hotel{background-position:0px 0px}
.svc .content a.svc-hotel:hover{background-position:0px -94px}
.svc .content a.svc-lottery{background-position:-180px 0px}
.svc .content a.svc-lottery:hover{background-position:-180px -94px}
.svc .content a.svc-flight{background-position:-270px 0px}
.svc .content a.svc-flight:hover{background-position:-270px -94px}
.svc .content a.svc-game{background-position:-450px 0px}
.svc .content a.svc-game:hover{background-position:-450px -94px}
.svc .content a.svc-mobile{background-position:-360px 0px}
.svc .content a.svc-mobile:hover{background-position:-360px -94px}
.svc .content a.svc-insurance{background-position:-90px 0px}
.svc .content a.svc-insurance:hover{background-position:-90px -94px}
.svc-content{padding-right:0px;padding-left:50px;padding-bottom:60px;padding-top:30px}
.svc-content h4{padding-right:20px;font-size:30px;float:left;font-family:"���ź�","����",sans-serif;height:40px}
.svc-content h5{font-size:20px;color:#999;line-height:50px;font-family:"���ź�","����",sans-serif}
.svc-content .exp{font-size:16px;color:#9e9f9f;line-height:40px;height:40px}
.svc-content .exp a{font-size:14px}
.svc-content .exp a.btn{padding-right:10px;padding-left:10px;background:url(../images/index-sprite.png) no-repeat 0px -57px;padding-bottom:5px;color:#fff;padding-top:5px}
.svc-content .exp a.btn:hover{text-decoration:none}
.banner{height:289px}
.banner .ad{padding-left:65px;padding-top:131px}