
(function()
{
var c=this,
b,
B=c.jQuery,
E=c.$,
a=c.jQuery=c.$=function(b,c)
{
return new a.fn.init(b,c)
},
y=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
z=/^.[^:#\[\.,]*$/;
a.fn=a.prototype={init:function(b,d)
{
b=b||document;
if(b.nodeType)
{
this[0]=b;
this.length=1;
this.context=b;
return this
}
if(typeof b==="string")
{
var c=y.exec(b);
if(c&&(c[1]||!d))
if(c[1])
b=a.clean([c[1]],d);
else
{
var e=document.getElementById(c[3]);
if(e&&e.id!=c[3])
return a().find(b);
var f=a(e||[]);
f.context=document;
f.selector=b;
return f
}
else
return a(d).find(b)
}
else
if(a.isFunction(b))
return a(document).ready(b);
if(b.selector&&b.context)
{
this.selector=b.selector;
this.context=b.context
}
return this.setArray(a.isArray(b)?b:a.makeArray(b))
},selector:"",jquery:"1.3.2",size:function()
{
return this.length
},"get":function(a)
{
return a==b?Array.prototype.slice.call(this):this[a]
},pushStack:function(e,c,d)
{
var b=a(e);
b.prevObject=this;
b.context=this.context;
if(c==="find")
b.selector=this.selector+(this.selector?" ":"")+d;
else
if(c)
b.selector=this.selector+"."+c+"("+d+")";
return b
},setArray:function(a)
{
this.length=0;
Array.prototype.push.apply(this,a);
return this
},each:function(b,c)
{
return a.each(this,b,c)
},index:function(b)
{
return a.inArray(b&&b.jquery?b[0]:b,this)
},attr:function(c,f,e)
{
var d=c;
if(typeof c==="string")
if(f===b)
return this[0]&&a[e||"attr"](this[0],c);
else
{
d={};
d[c]=f
}
return this.each(function(b)
{
for(c in d)
a.attr(e?this.style:this,c,a.prop(this,d[c],e,b,c))
})
},css:function(c,a)
{
if((c=="width"||c=="height")&&parseFloat(a)<0)
a=b;
return this.attr(c,a,"curCSS")
},text:function(b)
{
if(typeof b!=="object"&&b!=null)
return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(b));
var c="";
a.each(b||this,function()
{
a.each(this.childNodes,function()
{
if(this.nodeType!=8)
c+=this.nodeType!=1?this.nodeValue:a.fn.text([this])
})
});
return c
},wrapAll:function(c)
{
if(this[0])
{
var b=a(c,this[0].ownerDocument).clone();
this[0].parentNode&&
b.insertBefore(this[0]);
b.map(function()
{
var a=this;
while(a.firstChild)
a=a.firstChild;
return a
}).append(this)
}
return this
},wrapInner:function(b)
{
return this.each(function()
{
a(this).contents().wrapAll(b)
})
},wrap:function(b)
{
return this.each(function()
{
a(this).wrapAll(b)
})
},append:function()
{
return this.domManip(arguments,true,function(a)
{
this.nodeType==1&&
this.appendChild(a)
})
},prepend:function()
{
return this.domManip(arguments,true,function(a)
{
this.nodeType==1&&
this.insertBefore(a,this.firstChild)
})
},before:function()
{
return this.domManip(arguments,false,function(a)
{
this.parentNode.insertBefore(a,this)
})
},after:function()
{
return this.domManip(arguments,false,function(a)
{
this.parentNode.insertBefore(a,this.nextSibling)
})
},end:function()
{
return this.prevObject||a([])
},push:[].push,sort:[].sort,splice:[].splice,find:function(b)
{
if(this.length===1)
{
var c=this.pushStack([],"find",b);
c.length=0;
a.find(b,this[0],c);
return c
}
else
return this.pushStack(a.unique(a.map(this,function(c)
{
return a.find(b,c)
})),"find",b)
},clone:function(e)
{
var d=this.map(function()
{
if(!a.support.noCloneEvent&&!a.isXMLDoc(this))
{
var b=this.outerHTML;
if(!b)
{
var c=this.ownerDocument.createElement("div");
c.appendChild(this.cloneNode(true));
b=c.innerHTML
}
return a.clean([b.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]
}
else
return this.cloneNode(true)
});
if(e===true)
{
var c=this.find("*").andSelf(),
b=0;
d.find("*").andSelf().each(function()
{
if(this.nodeName!==c[b].nodeName)
return;
var d=a.data(c[b],"events");
for(var e in d)
for(var f in d[e])
a.event.add(this,e,d[e][f],d[e][f].data);
b++
})
}
return d
},filter:function(b)
{
return this.pushStack(a.isFunction(b)&&a.grep(this,function(a,c)
{
return b.call(a,c)
})||a.multiFilter(b,a.grep(this,function(a)
{
return a.nodeType===1
})),"filter",b)
},closest:function(b)
{
var d=a.expr.match.POS.test(b)?a(b):null,
c=0;
return this.map(function()
{
var e=this;
while(e&&e.ownerDocument)
{
if(d?d.index(e)>-1:a(e).is(b))
{
a.data(e,"closest",c);
return e
}
e=e.parentNode;
c++
}
})
},not:function(c)
{
if(typeof c==="string")
if(z.test(c))
return this.pushStack(a.multiFilter(c,this,true),"not",c);
else
c=a.multiFilter(c,this);
var d=c.length&&c[c.length-1]!==b&&!c.nodeType;
return this.filter(function()
{
return d?a.inArray(this,c)<0:this!=c
})
},add:function(b)
{
return this.pushStack(a.unique(a.merge(this.get(),typeof b==="string"?a(b):a.makeArray(b))))
},is:function(b)
{
return!!b&&a.multiFilter(b,this).length>0
},hasClass:function(a)
{
return!!a&&this.is("."+a)
},val:function(c)
{
if(c===b)
{
var d=this[0];
if(d)
{
if(a.nodeName(d,"option"))
return(d.attributes.value||{}).specified?d.value:d.text;
if(a.nodeName(d,"select"))
{
var e=d.selectedIndex,
j=[],
h=d.options,
f=d.type=="select-one";
if(e<0)
return null;
for(var g=f?e:0,
k=f?e+1:h.length;g<k;g++)
{
var i=h[g];
if(i.selected)
{
c=a(i).val();
if(f)
return c;
j.push(c)
}
}
return j
}
return(d.value||"").replace(/\r/g,"")
}
return b
}
if(typeof c==="number")
c+="";
return this.each(function()
{
if(this.nodeType!=1)
return;
if(a.isArray(c)&&/radio|checkbox/.test(this.type))
this.checked=a.inArray(this.value,c)>=0||a.inArray(this.name,c)>=0;
else
if(a.nodeName(this,"select"))
{
var b=a.makeArray(c);
a("option",this).each(function()
{
this.selected=a.inArray(this.value,b)>=0||a.inArray(this.text,b)>=0
});
if(!b.length)
this.selectedIndex=-1
}
else
this.value=c
})
},html:function(a)
{
return a===b?this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null:this.empty().append(a)
},replaceWith:function(a)
{
return this.after(a).remove()
},eq:function(a)
{
return this.slice(a,+a+1)
},slice:function()
{
return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))
},map:function(b)
{
return this.pushStack(a.map(this,function(a,c)
{
return b.call(a,c,a)
}))
},andSelf:function()
{
return this.add(this.prevObject)
},domManip:function(h,g,f)
{
if(this[0])
{
var b=(this[0].ownerDocument||this[0]).createDocumentFragment(),
d=a.clean(h,this[0].ownerDocument||this[0],b),
e=b.firstChild;
if(e)
for(var c=0,
j=this.length;c<j;c++)
f.call(i(this[c],e),this.length>1||c>0?b.cloneNode(true):b);
d&&
a.each(d,x)
}
return this;
function i(b,c)
{
return g&&a.nodeName(b,"table")&&a.nodeName(c,"tr")?b.getElementsByTagName("tbody")[0]||b.appendChild(b.ownerDocument.createElement("tbody")):b
}
}};
a.fn.init.prototype=a.fn;
function x(c,b)
{
if(b.src)
a.ajax({url:b.src,async:false,dataType:"script"});
else
a.globalEval(b.text||b.textContent||b.innerHTML||"");
b.parentNode&&
b.parentNode.removeChild(b)
}
function h()
{
return+new Date
}
a.extend=a.fn.extend=function()
{
var c=arguments[0]||{},
e=1,
i=arguments.length,
h=false,
g;
if(typeof c==="boolean")
{
h=c;
c=arguments[1]||{};
e=2
}
if(typeof c!=="object"&&!a.isFunction(c))
c={};
if(i==e)
{
c=this;
--e
}
for(;e<i;e++)
if((g=arguments[e])!=null)
for(var f in g)
{
var j=c[f],
d=g[f];
if(c===d)
continue;
if(h&&d&&typeof d==="object"&&!d.nodeType)
c[f]=a.extend(h,j||(d.length!=null?[]:{}),d);
else
if(d!==b)
c[f]=d
}
return c
};
var A=/z-?index|font-?weight|opacity|zoom|line-?height/i,
p=document.defaultView||{},
v=Object.prototype.toString;
a.extend({noConflict:function(b)
{
c.$=E;
if(b)
c.jQuery=B;
return a
},isFunction:function(a)
{
return v.call(a)==="[object Function]"
},isArray:function(a)
{
return v.call(a)==="[object Array]"
},isXMLDoc:function(b)
{
return b.nodeType===9&&b.documentElement.nodeName!=="HTML"||!!b.ownerDocument&&a.isXMLDoc(b.ownerDocument)
},globalEval:function(c)
{
if(c&&/\S/.test(c))
{
var d=document.getElementsByTagName("head")[0]||document.documentElement,
b=document.createElement("script");
b.type="text/javascript";
if(a.support.scriptEval)
b.appendChild(document.createTextNode(c));
else
b.text=c;
d.insertBefore(b,d.firstChild);
d.removeChild(b)
}
},nodeName:function(a,b)
{
return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase()
},each:function(a,e,h)
{
var c,
d=0,
f=a.length;
if(h)
{
if(f===b)
{
for(c in a)
if(e.apply(a[c],h)===false)
break
}
else
for(;d<f;)
if(e.apply(a[d++],h)===false)
break
}
else
if(f===b)
{
for(c in a)
if(e.call(a[c],c,a[c])===false)
break
}
else
for(var g=a[0];d<f&&e.call(g,d,g)!==false;g=a[++d]);
return a
},prop:function(c,b,e,f,d)
{
if(a.isFunction(b))
b=b.call(c,f);
return typeof b==="number"&&e=="curCSS"&&!A.test(d)?b+"px":b
},className:{add:function(b,c)
{
a.each((c||"").split(/\s+/),function(d,c)
{
if(b.nodeType==1&&!a.className.has(b.className,c))
b.className+=(b.className?" ":"")+c
})
},remove:function(c,d)
{
if(c.nodeType==1)
c.className=d!==b?a.grep(c.className.split(/\s+/),function(b)
{
return!a.className.has(d,b)
}).join(" "):""
},has:function(b,c)
{
return b&&a.inArray(c,(b.className||b).toString().split(/\s+/))>-1
}},swap:function(b,c,e)
{
var d={};
for(var a in c)
{
d[a]=b.style[a];
b.style[a]=c[a]
}
e.call(b);
for(var a in c)
b.style[a]=d[a]
},css:function(b,c,g,e)
{
if(c=="width"||c=="height")
{
var d,
h={position:"absolute",visibility:"hidden",display:"block"},
i=c=="width"?["Left","Right"]:["Top","Bottom"];
function f()
{
d=c=="width"?b.offsetWidth:b.offsetHeight;
if(e==="border")
return;
a.each(i,function()
{
if(!e)
d-=parseFloat(a.curCSS(b,"padding"+this,true))||0;
if(e==="margin")
d+=parseFloat(a.curCSS(b,"margin"+this,true))||0;
else
d-=parseFloat(a.curCSS(b,"border"+this+"Width",true))||0
})
}
if(b.offsetWidth!==0)
f();
else
a.swap(b,h,f);
return Math.max(0,Math.round(d))
}
return a.curCSS(b,c,g)
},curCSS:function(d,b,j)
{
var c,
e=d.style;
if(b=="opacity"&&!a.support.opacity)
{
c=a.attr(e,"opacity");
return c==""?"1":c
}
if(b.match(/float/i))
b=i;
if(!j&&e&&e[b])
c=e[b];
else
if(p.getComputedStyle)
{
if(b.match(/float/i))
b="float";
b=b.replace(/([A-Z])/g,"-$1").toLowerCase();
var f=p.getComputedStyle(d,null);
if(f)
c=f.getPropertyValue(b);
if(b=="opacity"&&c=="")
c="1"
}
else
if(d.currentStyle)
{
var g=b.replace(/\-(\w)/g,function(b,a)
{
return a.toUpperCase()
});
c=d.currentStyle[b]||d.currentStyle[g];
if(!/^\d+(px)?$/i.test(c)&&/^\d/.test(c))
{
var k=e.left,
h=d.runtimeStyle.left;
d.runtimeStyle.left=d.currentStyle.left;
e.left=c||0;
c=e.pixelLeft+"px";
e.left=k;
d.runtimeStyle.left=h
}
}
return c
},clean:function(f,d,g)
{
d=d||document;
if(typeof d.createElement==="undefined")
d=d.ownerDocument||d[0]&&d[0].ownerDocument||document;
if(!g&&f.length===1&&typeof f[0]==="string")
{
var i=/^<(\w+)\s*\/?>$/.exec(f[0]);
if(i)
return[d.createElement(i[1])]
}
var b=[],
h=[],
e=d.createElement("div");
a.each(f,function(k,c)
{
if(typeof c==="number")
c+="";
if(!c)
return;
if(typeof c==="string")
{
c=c.replace(/(<(\w+)[^>]*?)\/>/g,function(c,b,a)
{
return a.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?c:b+"></"+a+">"
});
var f=c.replace(/^\s+/,"").substring(0,10).toLowerCase(),
i=!f.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!f.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||f.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!f.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!f.indexOf("<td")||!f.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!f.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!a.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];
e.innerHTML=i[1]+c+i[2];
while(i[0]--)
e=e.lastChild;
if(!a.support.tbody)
for(var j=/<tbody/i.test(c),
h=!f.indexOf("<table")&&!j?e.firstChild&&e.firstChild.childNodes:i[1]=="<table>"&&!j?e.childNodes:[],
g=h.length-1;g>=0;--g)
a.nodeName(h[g],"tbody")&&!h[g].childNodes.length&&
h[g].parentNode.removeChild(h[g]);
!a.support.leadingWhitespace&&/^\s/.test(c)&&
e.insertBefore(d.createTextNode(c.match(/^\s*/)[0]),e.firstChild);
c=a.makeArray(e.childNodes)
}
if(c.nodeType)
b.push(c);
else
b=a.merge(b,c)
});
if(g)
{
for(var c=0;b[c];c++)
if(a.nodeName(b[c],"script")&&(!b[c].type||b[c].type.toLowerCase()==="text/javascript"))
h.push(b[c].parentNode?b[c].parentNode.removeChild(b[c]):b[c]);
else
{
b[c].nodeType===1&&
b.splice.apply(b,[c+1,0].concat(a.makeArray(b[c].getElementsByTagName("script"))));
g.appendChild(b[c])
}
return h
}
return b
},attr:function(c,d,e)
{
if(!c||c.nodeType==3||c.nodeType==8)
return b;
var f=!a.isXMLDoc(c),
g=e!==b;
d=f&&a.props[d]||d;
if(c.tagName)
{
var i=/href|src|style/.test(d);
if(d=="selected"&&c.parentNode)
c.parentNode.selectedIndex;
if(d in c&&f&&!i)
{
if(g)
{
if(d=="type"&&a.nodeName(c,"input")&&c.parentNode)
throw"type property can't be changed";
c[d]=e
}
if(a.nodeName(c,"form")&&c.getAttributeNode(d))
return c.getAttributeNode(d).nodeValue;
if(d=="tabIndex")
{
var h=c.getAttributeNode("tabIndex");
return h&&h.specified?h.value:c.nodeName.match(/(button|input|object|select|textarea)/i)?0:c.nodeName.match(/^(a|area)$/i)&&c.href?0:b
}
return c[d]
}
if(!a.support.style&&f&&d=="style")
return a.attr(c.style,"cssText",e);
g&&
c.setAttribute(d,""+e);
var j=!a.support.hrefNormalized&&f&&i?c.getAttribute(d,2):c.getAttribute(d);
return j===null?b:j
}
if(!a.support.opacity&&d=="opacity")
{
if(g)
{
c.zoom=1;
c.filter=(c.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(e)+""=="NaN"?"":"alpha(opacity="+e*100+")")
}
return c.filter&&c.filter.indexOf("opacity=")>=0?parseFloat(c.filter.match(/opacity=([^)]*)/)[1])/100+"":""
}
d=d.replace(/-([a-z])/ig,function(b,a)
{
return a.toUpperCase()
});
if(g)
c[d]=e;
return c[d]
},trim:function(a)
{
return(a||"").replace(/^\s+|\s+$/g,"")
},makeArray:function(b)
{
var d=[];
if(b!=null)
{
var c=b.length;
if(c==null||typeof b==="string"||a.isFunction(b)||b.setInterval)
d[0]=b;
else
while(c)
d[--c]=b[c]
}
return d
},inArray:function(d,b)
{
for(var a=0,
c=b.length;a<c;a++)
if(b[a]===d)
return a;
return-1
},merge:function(c,d)
{
var f=0,
b,
e=c.length;
if(!a.support.getAll)
{
while((b=d[f++])!=null)
if(b.nodeType!=8)
c[e++]=b
}
else
while((b=d[f++])!=null)
c[e++]=b;
return c
},unique:function(b)
{
var d=[],
e={};
try
{
for(var c=0,
g=b.length;c<g;c++)
{
var f=a.data(b[c]);
if(!e[f])
{
e[f]=true;
d.push(b[c])
}
}
}
catch(h)
{
d=b
}
return d
},grep:function(b,d,f)
{
for(var c=[],
a=0,
e=b.length;a<e;a++)
!f!=!d(b[a],a)&&
c.push(b[a]);
return c
},map:function(c,e)
{
for(var a=[],
b=0,
f=c.length;b<f;b++)
{
var d=e(c[b],b);
if(d!=null)
a[a.length]=d
}
return a.concat.apply([],a)
}});
var e=navigator.userAgent.toLowerCase();
a.browser={version:(e.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(e),opera:/opera/.test(e),msie:/msie/.test(e)&&!/opera/.test(e),mozilla:/mozilla/.test(e)&&!/(compatible|webkit)/.test(e)};
a.each({parent:function(a)
{
return a.parentNode
}},function(b,c)
{
a.fn[b]=function(d)
{
var e=a.map(this,c);
if(d&&typeof d=="string")
e=a.multiFilter(d,e);
return this.pushStack(a.unique(e),b,d)
}
});
a.each({parents:function(b)
{
return a.dir(b,"parentNode")
}},function(b,c)
{
a.fn[b]=function(d)
{
var e=a.map(this,c);
if(d&&typeof d=="string")
e=a.multiFilter(d,e);
return this.pushStack(a.unique(e),b,d)
}
});
a.each({next:function(b)
{
return a.nth(b,2,"nextSibling")
}},function(b,c)
{
a.fn[b]=function(d)
{
var e=a.map(this,c);
if(d&&typeof d=="string")
e=a.multiFilter(d,e);
return this.pushStack(a.unique(e),b,d)
}
});
a.each({prev:function(b)
{
return a.nth(b,2,"previousSibling")
}},function(b,c)
{
a.fn[b]=function(d)
{
var e=a.map(this,c);
if(d&&typeof d=="string")
e=a.multiFilter(d,e);
return this.pushStack(a.unique(e),b,d)
}
});
a.each({nextAll:function(b)
{
return a.dir(b,"nextSibling")
}},function(b,c)
{
a.fn[b]=function(d)
{
var e=a.map(this,c);
if(d&&typeof d=="string")
e=a.multiFilter(d,e);
return this.pushStack(a.unique(e),b,d)
}
});
a.each({prevAll:function(b)
{
return a.dir(b,"previousSibling")
}},function(b,c)
{
a.fn[b]=function(d)
{
var e=a.map(this,c);
if(d&&typeof d=="string")
e=a.multiFilter(d,e);
return this.pushStack(a.unique(e),b,d)
}
});
a.each({siblings:function(b)
{
return a.sibling(b.parentNode.firstChild,b)
}},function(b,c)
{
a.fn[b]=function(d)
{
var e=a.map(this,c);
if(d&&typeof d=="string")
e=a.multiFilter(d,e);
return this.pushStack(a.unique(e),b,d)
}
});
a.each({children:function(b)
{
return a.sibling(b.firstChild)
}},function(b,c)
{
a.fn[b]=function(d)
{
var e=a.map(this,c);
if(d&&typeof d=="string")
e=a.multiFilter(d,e);
return this.pushStack(a.unique(e),b,d)
}
});
a.each({contents:function(b)
{
return a.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:a.makeArray(b.childNodes)
}},function(b,c)
{
a.fn[b]=function(d)
{
var e=a.map(this,c);
if(d&&typeof d=="string")
e=a.multiFilter(d,e);
return this.pushStack(a.unique(e),b,d)
}
});
a.fn.appendTo=function(d)
{
for(var c=[],
e=a(d),
b=0,
g=e.length;b<g;b++)
{
var f=(b>0?this.clone(true):this).get();
a.fn.append.apply(a(e[b]),f);
c=c.concat(f)
}
return this.pushStack(c,"appendTo",d)
};
a.fn.prependTo=function(d)
{
for(var c=[],
e=a(d),
b=0,
g=e.length;b<g;b++)
{
var f=(b>0?this.clone(true):this).get();
a.fn.prepend.apply(a(e[b]),f);
c=c.concat(f)
}
return this.pushStack(c,"prependTo",d)
};
a.fn.insertBefore=function(d)
{
for(var c=[],
e=a(d),
b=0,
g=e.length;b<g;b++)
{
var f=(b>0?this.clone(true):this).get();
a.fn.before.apply(a(e[b]),f);
c=c.concat(f)
}
return this.pushStack(c,"insertBefore",d)
};
a.fn.insertAfter=function(d)
{
for(var c=[],
e=a(d),
b=0,
g=e.length;b<g;b++)
{
var f=(b>0?this.clone(true):this).get();
a.fn.after.apply(a(e[b]),f);
c=c.concat(f)
}
return this.pushStack(c,"insertAfter",d)
};
a.fn.replaceAll=function(d)
{
for(var c=[],
e=a(d),
b=0,
g=e.length;b<g;b++)
{
var f=(b>0?this.clone(true):this).get();
a.fn.replaceWith.apply(a(e[b]),f);
c=c.concat(f)
}
return this.pushStack(c,"replaceAll",d)
};
a.fn.removeAttr=function()
{
return this.each(function(b)
{
a.attr(this,b,"");
this.nodeType==1&&
this.removeAttribute(b)
},arguments)
};
a.fn.addClass=function()
{
return this.each(function(b)
{
a.className.add(this,b)
},arguments)
};
a.fn.removeClass=function()
{
return this.each(function(b)
{
a.className.remove(this,b)
},arguments)
};
a.fn.toggleClass=function()
{
return this.each(function(c,b)
{
if(typeof b!=="boolean")
b=!a.className.has(this,c);
a.className[b?"add":"remove"](this,c)
},arguments)
};
a.fn.remove=function()
{
return this.each(function(b)
{
if(!b||a.filter(b,[this]).length)
{
a("*",this).add([this]).each(function()
{
a.event.remove(this);
a.removeData(this)
});
this.parentNode&&
this.parentNode.removeChild(this)
}
},arguments)
};
a.fn.empty=function()
{
return this.each(function()
{
a(this).children().remove();
while(this.firstChild)
this.removeChild(this.firstChild)
},arguments)
};
function k(b,c)
{
return b[0]&&parseInt(a.curCSS(b[0],c,true),10)||0
}
var d="jQuery"+h(),
C=0,
t={};
a.extend({cache:{},data:function(f,g,h)
{
f=f==c?t:f;
var e=f[d];
if(!e)
e=f[d]=++C;
if(g&&!a.cache[e])
a.cache[e]={};
if(h!==b)
a.cache[e][g]=h;
return g?a.cache[e][g]:e
},removeData:function(b,e)
{
b=b==c?t:b;
var f=b[d];
if(e)
{
if(a.cache[f])
{
delete a.cache[f][e];
e="";
for(e in a.cache[f])
break;
!e&&
a.removeData(b)
}
}
else
{
try
{
delete b[d]
}
catch(g)
{
b.removeAttribute&&
b.removeAttribute(d)
}
delete a.cache[f]
}
},queue:function(e,c,b)
{
if(e)
{
c=(c||"fx")+"queue";
var d=a.data(e,c);
if(!d||a.isArray(b))
d=a.data(e,c,a.makeArray(b));
else
b&&
d.push(b)
}
return d
},dequeue:function(f,c)
{
var e=a.queue(f,c),
d=e.shift();
if(!c||c==="fx")
d=e[0];
d!==b&&
d.call(f)
}});
a.fn.extend({data:function(f,e)
{
var c=f.split(".");
c[1]=c[1]?"."+c[1]:"";
if(e===b)
{
var d=this.triggerHandler("getData"+c[1]+"!",[c[0]]);
if(d===b&&this.length)
d=a.data(this[0],f);
return d===b&&c[1]?this.data(c[0]):d
}
else
return this.trigger("setData"+c[1]+"!",[c[0],e]).each(function()
{
a.data(this,f,e)
})
},removeData:function(b)
{
return this.each(function()
{
a.removeData(this,b)
})
},queue:function(c,d)
{
if(typeof c!=="string")
{
d=c;
c="fx"
}
return d===b?a.queue(this[0],c):this.each(function()
{
var b=a.queue(this,c,d);
c=="fx"&&b.length==1&&
b[0].call(this)
})
},dequeue:function(b)
{
return this.each(function()
{
a.dequeue(this,b)
})
}});
/*
 * 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 i=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,
j=0,
n=Object.prototype.toString,
e=function(m,j,k,u)
{
k=k||[];
j=j||document;
if(j.nodeType!==1&&j.nodeType!==9)
return[];
if(!m||typeof m!=="string")
return k;
var a=[],
v,
o,
c,
y,
z,
t,
w=true;
i.lastIndex=0;
while((v=i.exec(m))!==null)
{
a.push(v[1]);
if(v[2])
{
t=RegExp.rightContext;
break
}
}
if(a.length>1&&q.exec(m))
if(a.length===2&&d.relative[a[0]])
o=l(a[0]+a[1],j);
else
{
o=d.relative[a[0]]?[j]:e(a.shift(),j);
while(a.length)
{
m=a.shift();
if(d.relative[m])
m+=a.shift();
o=l(m,o)
}
}
else
{
var x=u?{expr:a.pop(),"set":g(u)}:e.find(a.pop(),a.length===1&&j.parentNode?j.parentNode:j,f(j));
o=e.filter(x.expr,x.set);
if(a.length>0)
c=g(o);
else
w=false;
while(a.length)
{
var r=a.pop(),
s=r;
if(!d.relative[r])
r="";
else
s=a.pop();
if(s==null)
s=j;
d.relative[r](c,s,f(j))
}
}
if(!c)
c=o;
if(!c)
throw"Syntax error, unrecognized expression: "+(r||m);
if(n.call(c)==="[object Array]")
if(!w)
k.push.apply(k,c);
else
if(j.nodeType===1)
for(var b=0;c[b]!=null;b++)
c[b]&&(c[b]===true||c[b].nodeType===1&&p(j,c[b]))&&
k.push(o[b]);
else
for(var b=0;c[b]!=null;b++)
c[b]&&c[b].nodeType===1&&
k.push(o[b]);
else
g(c,k);
if(t)
{
e(t,j,k,u);
if(h)
{
hasDuplicate=false;
k.sort(h);
if(hasDuplicate)
for(var b=1;b<k.length;b++)
k[b]===k[b-1]&&
k.splice(b--,1)
}
}
return k
};
e.matches=function(a,b)
{
return e(a,null,null,b)
};
e.find=function(a,g,i)
{
var b,
c;
if(!a)
return[];
for(var f=0,
j=d.order.length;f<j;f++)
{
var e=d.order[f],
c;
if(c=d.match[e].exec(a))
{
var h=RegExp.leftContext;
if(h.substr(h.length-1)!=="\\")
{
c[1]=(c[1]||"").replace(/\\/g,"");
b=d.find[e](c,g,i);
if(b!=null)
{
a=a.replace(d.match[e],"");
break
}
}
}
}
if(!b)
b=g.getElementsByTagName("*");
return{"set":b,expr:a}
};
e.filter=function(a,k,n,p)
{
var q=a,
h=[],
c=k,
e,
g,
r=k&&k[0]&&f(k[0]);
while(a&&k.length)
{
for(var j in d.filter)
if((e=d.match[j].exec(a))!=null)
{
var s=d.filter[j],
i,
l;
g=false;
if(c==h)
h=[];
if(d.preFilter[j])
{
e=d.preFilter[j](e,c,n,h,p,r);
if(!e)
g=i=true;
else
if(e===true)
continue
}
if(e)
for(var m=0;(l=c[m])!=null;m++)
if(l)
{
i=s(l,e,m,c);
var o=p^!!i;
if(n&&i!=null)
if(o)
g=true;
else
c[m]=false;
else
if(o)
{
h.push(l);
g=true
}
}
if(i!==b)
{
if(!n)
c=h;
a=a.replace(d.match[j],"");
if(!g)
return[];
break
}
}
if(a==q)
if(g==null)
throw"Syntax error, unrecognized expression: "+a;
else
break;
q=a
}
return c
};
var d=e.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(a)
{
return a.getAttribute("href")
}},relative:{"+":function(c,b,i)
{
var g=typeof b==="string",
h=g&&!/\W/.test(b),
f=g&&!h;
if(h&&!i)
b=b.toUpperCase();
for(var d=0,
j=c.length,
a;d<j;d++)
if(a=c[d])
{
while((a=a.previousSibling)&&a.nodeType!==1);
c[d]=f||a&&a.nodeName===b?a||false:a===b
}
f&&
e.filter(b,c,true)
},">":function(c,a,i)
{
var f=typeof a==="string";
if(f&&!/\W/.test(a))
{
a=i?a:a.toUpperCase();
for(var b=0,
h=c.length;b<h;b++)
{
var d=c[b];
if(d)
{
var g=d.parentNode;
c[b]=g.nodeName===a?g:false
}
}
}
else
{
for(var b=0,
h=c.length;b<h;b++)
{
var d=c[b];
if(d)
c[b]=f?d.parentNode:d.parentNode===a
}
f&&
e.filter(a,c,true)
}
},"":function(e,a,c)
{
var f=j++,
b=m;
if(!a.match(/\W/))
{
var d=a=c?a:a.toUpperCase();
b=k
}
b("parentNode",a,f,e,d,c)
},"~":function(e,a,c)
{
var f=j++,
b=m;
if(typeof a==="string"&&!a.match(/\W/))
{
var d=a=c?a:a.toUpperCase();
b=k
}
b("previousSibling",a,f,e,d,c)
}},find:{ID:function(d,a,c)
{
if(typeof a.getElementById!=="undefined"&&!c)
{
var b=a.getElementById(d[1]);
return b?[b]:[]
}
},NAME:function(e,d)
{
if(typeof d.getElementsByName!=="undefined")
{
for(var c=[],
b=d.getElementsByName(e[1]),
a=0,
f=b.length;a<f;a++)
b[a].getAttribute("name")===e[1]&&
c.push(b[a]);
return c.length===0?null:c
}
},TAG:function(b,a)
{
return a.getElementsByTagName(b[1])
}},preFilter:{CLASS:function(b,d,e,f,h,g)
{
b=" "+b[1].replace(/\\/g,"")+" ";
if(g)
return b;
for(var c=0,
a;(a=d[c])!=null;c++)
if(a)
if(h^(a.className&&(" "+a.className+" ").indexOf(b)>=0))
!e&&
f.push(a);
else
if(e)
d[c]=false;
return false
},ID:function(a)
{
return a[1].replace(/\\/g,"")
},TAG:function(c,b)
{
for(var a=0;b[a]===false;a++);
return b[a]&&f(b[a])?c[1]:c[1].toUpperCase()
},CHILD:function(a)
{
if(a[1]=="nth")
{
var b=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(a[2]=="even"&&"2n"||a[2]=="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);
a[2]=b[1]+(b[2]||1)-0;
a[3]=b[3]-0
}
a[0]=j++;
return a
},ATTR:function(a,e,f,g,h,c)
{
var b=a[1].replace(/\\/g,"");
if(!c&&d.attrMap[b])
a[1]=d.attrMap[b];
if(a[2]==="~=")
a[4]=" "+a[4]+" ";
return a
},PSEUDO:function(a,b,c,f,g)
{
if(a[1]==="not")
if(a[3].match(i).length>1||/^\w/.test(a[3]))
a[3]=e(a[3],null,null,b);
else
{
var h=e.filter(a[3],b,c,true^g);
!c&&
f.push.apply(f,h);
return false
}
else
if(d.match.POS.test(a[0])||d.match.CHILD.test(a[0]))
return true;
return a
},POS:function(a)
{
a.unshift(true);
return a
}},filters:{enabled:function(a)
{
return a.disabled===false&&a.type!=="hidden"
},disabled:function(a)
{
return a.disabled===true
},checked:function(a)
{
return a.checked===true
},selected:function(a)
{
a.parentNode.selectedIndex;
return a.selected===true
},parent:function(a)
{
return!!a.firstChild
},empty:function(a)
{
return!a.firstChild
},has:function(b,c,a)
{
return!!e(a[3],b).length
},header:function(a)
{
return/h\d/i.test(a.nodeName)
},text:function(a)
{
return"text"===a.type
},radio:function(a)
{
return"radio"===a.type
},checkbox:function(a)
{
return"checkbox"===a.type
},file:function(a)
{
return"file"===a.type
},password:function(a)
{
return"password"===a.type
},submit:function(a)
{
return"submit"===a.type
},image:function(a)
{
return"image"===a.type
},reset:function(a)
{
return"reset"===a.type
},button:function(a)
{
return"button"===a.type||a.nodeName.toUpperCase()==="BUTTON"
},input:function(a)
{
return/input|select|textarea|button/i.test(a.nodeName)
}},setFilters:{first:function(b,a)
{
return a===0
},last:function(d,b,c,a)
{
return b===a.length-1
},even:function(b,a)
{
return a%2===0
},odd:function(b,a)
{
return a%2===1
},lt:function(c,b,a)
{
return b<a[3]-0
},gt:function(c,b,a)
{
return b>a[3]-0
},nth:function(c,b,a)
{
return a[3]-0==b
},eq:function(c,b,a)
{
return a[3]-0==b
}},filter:{PSEUDO:function(b,a,c,h)
{
var e=a[1],
f=d.filters[e];
if(f)
return f(b,c,a,h);
else
if(e==="contains")
return(b.textContent||b.innerText||"").indexOf(a[3])>=0;
else
if(e==="not")
{
for(var g=a[3],
c=0,
i=g.length;c<i;c++)
if(g[c]===b)
return false;
return true
}
},CHILD:function(b,e)
{
var i=e[1],
a=b;
switch(i)
{
case"only":
case"first":
while(a=a.previousSibling)
if(a.nodeType===1)
return false;
if(i=="first")
return true;
a=b;
case"last":
while(a=a.nextSibling)
if(a.nodeType===1)
return false;
return true;
case"nth":
var d=e[2],
h=e[3];
if(d==1&&h==0)
return true;
var g=e[0],
c=b.parentNode;
if(c&&(c.sizcache!==g||!b.nodeIndex))
{
var j=0;
for(a=c.firstChild;a;a=a.nextSibling)
if(a.nodeType===1)
a.nodeIndex=++j;
c.sizcache=g
}
var f=b.nodeIndex-h;
return d==0?f==0:f%d==0&&f/d>=0
}
},ID:function(a,b)
{
return a.nodeType===1&&a.getAttribute("id")===b
},TAG:function(b,a)
{
return a==="*"&&b.nodeType===1||b.nodeName===a
},CLASS:function(a,b)
{
return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1
},ATTR:function(f,h)
{
var e=h[1],
g=d.attrHandle[e]?d.attrHandle[e](f):f[e]!=null?f[e]:f.getAttribute(e),
b=g+"",
c=h[2],
a=h[4];
return g==null?c==="!=":c==="="?b===a:c==="*="?b.indexOf(a)>=0:c==="~="?(" "+b+" ").indexOf(a)>=0:!a?b&&g!==false:c==="!="?b!=a:c==="^="?b.indexOf(a)===0:c==="$="?b.substr(b.length-a.length)===a:c==="|="?b===a||b.substr(0,a.length+1)===a+"-":false
},POS:function(e,b,g,c)
{
var f=b[2],
a=d.setFilters[f];
if(a)
return a(e,g,b,c)
}}},
q=d.match.POS;
for(var o in d.match)
d.match[o]=RegExp(d.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source);
var g=function(b,a)
{
b=Array.prototype.slice.call(b);
if(a)
{
a.push.apply(a,b);
return a
}
return b
};
try
{
Array.prototype.slice.call(document.documentElement.childNodes)
}
catch(r)
{
g=function(a,d)
{
var c=d||[];
if(n.call(a)==="[object Array]")
Array.prototype.push.apply(c,a);
else
if(typeof a.length==="number")
for(var b=0,
e=a.length;b<e;b++)
c.push(a[b]);
else
for(var b=0;a[b];b++)
c.push(a[b]);
return c
}
}
var h;
if(document.documentElement.compareDocumentPosition)
h=function(b,c)
{
var a=b.compareDocumentPosition(c)&4?-1:b===c?0:1;
if(a===0)
hasDuplicate=true;
return a
};
else
if("sourceIndex"in document.documentElement)
h=function(b,c)
{
var a=b.sourceIndex-c.sourceIndex;
if(a===0)
hasDuplicate=true;
return a
};
else
if(document.createRange)
h=function(d,e)
{
var a=d.ownerDocument.createRange(),
b=e.ownerDocument.createRange();
a.selectNode(d);
a.collapse(true);
b.selectNode(e);
b.collapse(true);
var c=a.compareBoundaryPoints(Range.START_TO_END,b);
if(c===0)
hasDuplicate=true;
return c
};
(function()
{
d.find.ID=function(c,d,e)
{
if(typeof d.getElementById!=="undefined"&&!e)
{
var a=d.getElementById(c[1]);
return a?a.id===c[1]||typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id").nodeValue===c[1]?[a]:b:[]
}
};
d.filter.ID=function(a,c)
{
var b=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");
return a.nodeType===1&&b&&b.nodeValue===c
}
})();
(function()
{
d.find.TAG=function(c,e)
{
var a=e.getElementsByTagName(c[1]);
if(c[1]==="*")
{
for(var d=[],
b=0;a[b];b++)
a[b].nodeType===1&&
d.push(a[b]);
a=d
}
return a
};
d.attrHandle.href=function(a)
{
return a.getAttribute("href",2)
}
})();
document.querySelectorAll&&
(function()
{
var a=e,
b=document.createElement("div");
b.innerHTML="<p class='TEST'></p>";
if(b.querySelectorAll&&b.querySelectorAll(".TEST").length===0)
return;
e=function(d,b,c,e)
{
b=b||document;
if(!e&&b.nodeType===9&&!f(b))
try
{
return g(b.querySelectorAll(d),c)
}
catch(h)
{
}
return a(d,b,c,e)
};
e.find=a.find;
e.filter=a.filter;
e.selectors=a.selectors;
e.matches=a.matches
})();
document.getElementsByClassName&&document.documentElement.getElementsByClassName&&
(function()
{
var a=document.createElement("div");
a.innerHTML="<div class='test e'></div><div class='test'></div>";
if(a.getElementsByClassName("e").length===0)
return;
a.lastChild.className="e";
if(a.getElementsByClassName("e").length===1)
return;
d.order.splice(1,0,"CLASS");
d.find.CLASS=function(c,a,b)
{
if(typeof a.getElementsByClassName!=="undefined"&&!b)
return a.getElementsByClassName(c[1])
}
})();
function k(f,i,d,c,k,g)
{
for(var h=f=="previousSibling"&&!g,
b=0,
j=c.length;b<j;b++)
{
var a=c[b];
if(a)
{
if(h&&a.nodeType===1)
{
a.sizcache=d;
a.sizset=b
}
a=a[f];
var e=false;
while(a)
{
if(a.sizcache===d)
{
e=c[a.sizset];
break
}
if(a.nodeType===1&&!g)
{
a.sizcache=d;
a.sizset=b
}
if(a.nodeName===i)
{
e=a;
break
}
a=a[f]
}
c[b]=e
}
}
}
function m(h,g,f,c,l,i)
{
for(var j=h=="previousSibling"&&!i,
b=0,
k=c.length;b<k;b++)
{
var a=c[b];
if(a)
{
if(j&&a.nodeType===1)
{
a.sizcache=f;
a.sizset=b
}
a=a[h];
var d=false;
while(a)
{
if(a.sizcache===f)
{
d=c[a.sizset];
break
}
if(a.nodeType===1)
{
if(!i)
{
a.sizcache=f;
a.sizset=b
}
if(typeof g!=="string")
{
if(a===g)
{
d=true;
break
}
}
else
if(e.filter(g,[a]).length>0)
{
d=a;
break
}
}
a=a[h]
}
c[b]=d
}
}
}
var p=document.compareDocumentPosition?function(a,b)
{
return a.compareDocumentPosition(b)&16
}:function(a,b)
{
return a!==b&&(a.contains?a.contains(b):true)
},
f=function(a)
{
return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&f(a.ownerDocument)
},
l=function(a,b)
{
var f=[],
g="",
h,
i=b.nodeType?[b]:b;
while(h=d.match.PSEUDO.exec(a))
{
g+=h[0];
a=a.replace(d.match.PSEUDO,"")
}
a=d.relative[a]?a+"*":a;
for(var c=0,
j=i.length;c<j;c++)
e(a,i[c],f);
return e.filter(g,f)
};
a.find=e;
a.filter=e.filter;
a.expr=e.selectors;
a.expr[":"]=a.expr.filters;
e.selectors.filters.hidden=function(a)
{
return a.offsetWidth===0||a.offsetHeight===0
};
e.selectors.filters.visible=function(a)
{
return a.offsetWidth>0||a.offsetHeight>0
};
e.selectors.filters.animated=function(b)
{
return a.grep(a.timers,function(a)
{
return b===a.elem
}).length
};
a.multiFilter=function(a,b,c)
{
if(c)
a=":not("+a+")";
return e.matches(a,b)
};
a.dir=function(d,c)
{
var b=[],
a=d[c];
while(a&&a!=document)
{
a.nodeType==1&&
b.push(a);
a=a[c]
}
return b
};
a.nth=function(a,b,c)
{
b=b||1;
for(var d=0;a;a=a[c])
if(a.nodeType==1&&++d==b)
break;
return a
};
a.sibling=function(a,c)
{
for(var b=[];a;a=a.nextSibling)
a.nodeType==1&&a!=c&&
b.push(a);
return b
};
return;
c.Sizzle=e
})();
a.event={add:function(d,i,e,f)
{
if(d.nodeType==3||d.nodeType==8)
return;
if(d.setInterval&&d!=c)
d=c;
if(!e.guid)
e.guid=this.guid++;
if(f!==b)
{
var j=e;
e=this.proxy(j);
e.data=f
}
var h=a.data(d,"events")||a.data(d,"events",{}),
g=a.data(d,"handle")||a.data(d,"handle",function()
{
return typeof a!=="undefined"&&!a.event.triggered?a.event.handle.apply(arguments.callee.elem,arguments):b
});
g.elem=d;
a.each(i.split(/\s+/),function(j,b)
{
var c=b.split(".");
b=c.shift();
e.type=c.slice().sort().join(".");
var i=h[b];
a.event.specialAll[b]&&
a.event.specialAll[b].setup.call(d,f,c);
if(!i)
{
i=h[b]={};
if(!a.event.special[b]||a.event.special[b].setup.call(d,f,c)===false)
if(d.addEventListener)
d.addEventListener(b,g,false);
else
d.attachEvent&&
d.attachEvent("on"+b,g)
}
i[e.guid]=e;
a.event.global[b]=true
});
d=null
},guid:1,global:{},remove:function(c,e,g)
{
if(c.nodeType==3||c.nodeType==8)
return;
var d=a.data(c,"events"),
f,
j;
if(d)
{
if(e===b||typeof e==="string"&&e.charAt(0)==".")
for(var i in d)
this.remove(c,i+(e||""));
else
{
if(e.type)
{
g=e.handler;
e=e.type
}
a.each(e.split(/\s+/),function(j,b)
{
var e=b.split(".");
b=e.shift();
var i=RegExp("(^|\\.)"+e.slice().sort().join(".*\\.")+"(\\.|$)");
if(d[b])
{
if(g)
delete d[b][g.guid];
else
for(var h in d[b])
if(i.test(d[b][h].type))
delete d[b][h];
a.event.specialAll[b]&&
a.event.specialAll[b].teardown.call(c,e);
for(f in d[b])
break;
if(!f)
{
if(!a.event.special[b]||a.event.special[b].teardown.call(c,e)===false)
if(c.removeEventListener)
c.removeEventListener(b,a.data(c,"handle"),false);
else
c.detachEvent&&
c.detachEvent("on"+b,a.data(c,"handle"));
f=null;
delete d[b]
}
}
})
}
for(f in d)
break;
if(!f)
{
var h=a.data(c,"handle");
if(h)
h.elem=null;
a.removeData(c,"events");
a.removeData(c,"handle")
}
}
},trigger:function(c,g,e,h)
{
var f=c.type||c;
if(!h)
{
c=typeof c==="object"?c[d]?c:a.extend(a.Event(f),c):a.Event(f);
if(f.indexOf("!")>=0)
{
c.type=f=f.slice(0,-1);
c.exclusive=true
}
if(!e)
{
c.stopPropagation();
this.global[f]&&
a.each(a.cache,function()
{
this.events&&this.events[f]&&
a.event.trigger(c,g,this.handle.elem)
})
}
if(!e||e.nodeType==3||e.nodeType==8)
return b;
c.result=b;
c.target=e;
g=a.makeArray(g);
g.unshift(c)
}
c.currentTarget=e;
var i=a.data(e,"handle");
i&&
i.apply(e,g);
if((!e[f]||a.nodeName(e,"a")&&f=="click")&&e["on"+f]&&e["on"+f].apply(e,g)===false)
c.result=false;
if(!h&&e[f]&&!c.isDefaultPrevented()&&!(a.nodeName(e,"a")&&f=="click"))
{
this.triggered=true;
try
{
e[f]()
}
catch(k)
{
}
}
this.triggered=false;
if(!c.isPropagationStopped())
{
var j=e.parentNode||e.ownerDocument;
j&&
a.event.trigger(c,g,j,true)
}
},handle:function(d)
{
var i,
g;
d=arguments[0]=a.event.fix(d||c.event);
d.currentTarget=this;
var f=d.type.split(".");
d.type=f.shift();
i=!f.length&&!d.exclusive;
var j=RegExp("(^|\\.)"+f.slice().sort().join(".*\\.")+"(\\.|$)");
g=(a.data(this,"events")||{})[d.type];
for(var k in g)
{
var e=g[k];
if(i||j.test(e.type))
{
d.handler=e;
d.data=e.data;
var h=e.apply(this,arguments);
if(h!==b)
{
d.result=h;
if(h===false)
{
d.preventDefault();
d.stopPropagation()
}
}
if(d.isImmediatePropagationStopped())
break
}
}
},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(b)
{
if(b[d])
return b;
var g=b;
b=a.Event(g);
for(var h=this.props.length,
f;h;)
{
f=this.props[--h];
b[f]=g[f]
}
if(!b.target)
b.target=b.srcElement||document;
if(b.target.nodeType==3)
b.target=b.target.parentNode;
if(!b.relatedTarget&&b.fromElement)
b.relatedTarget=b.fromElement==b.target?b.toElement:b.fromElement;
if(b.pageX==null&&b.clientX!=null)
{
var c=document.documentElement,
e=document.body;
b.pageX=b.clientX+(c&&c.scrollLeft||e&&e.scrollLeft||0)-(c.clientLeft||0);
b.pageY=b.clientY+(c&&c.scrollTop||e&&e.scrollTop||0)-(c.clientTop||0)
}
if(!b.which&&(b.charCode||b.charCode===0?b.charCode:b.keyCode))
b.which=b.charCode||b.keyCode;
if(!b.metaKey&&b.ctrlKey)
b.metaKey=b.ctrlKey;
if(!b.which&&b.button)
b.which=b.button&1?1:b.button&2?3:b.button&4?2:0;
return b
},proxy:function(b,a)
{
a=a||function()
{
return b.apply(this,arguments)
};
a.guid=b.guid=b.guid||a.guid||this.guid++;
return a
},special:{ready:{setup:u,teardown:function()
{
}}},specialAll:{live:{setup:function(c,b)
{
a.event.add(this,b[0],r)
},teardown:function(b)
{
if(b.length)
{
var c=0,
d=RegExp("(^|\\.)"+b[0]+"(\\.|$)");
a.each(a.data(this,"events").live||{},function()
{
if(d.test(this.type))
c++
});
c<1&&
a.event.remove(this,b[0],r)
}
}}}};
a.Event=function(b)
{
if(!this.preventDefault)
return new a.Event(b);
if(b&&b.type)
{
this.originalEvent=b;
this.type=b.type
}
else
this.type=b;
this.timeStamp=h();
this[d]=true
};
function m()
{
return false
}
function n()
{
return true
}
a.Event.prototype={preventDefault:function()
{
this.isDefaultPrevented=n;
var a=this.originalEvent;
if(!a)
return;
a.preventDefault&&
a.preventDefault();
a.returnValue=false
},stopPropagation:function()
{
this.isPropagationStopped=n;
var a=this.originalEvent;
if(!a)
return;
a.stopPropagation&&
a.stopPropagation();
a.cancelBubble=true
},stopImmediatePropagation:function()
{
this.isImmediatePropagationStopped=n;
this.stopPropagation()
},isDefaultPrevented:m,isPropagationStopped:m,isImmediatePropagationStopped:m};
var o=function(c)
{
var b=c.relatedTarget;
while(b&&b!=this)
try
{
b=b.parentNode
}
catch(d)
{
b=this
}
if(b!=this)
{
c.type=c.data;
a.event.handle.apply(this,arguments)
}
};
a.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(b,c)
{
a.event.special[c]={setup:function()
{
a.event.add(this,b,o,c)
},teardown:function()
{
a.event.remove(this,b,o)
}}
});
a.fn.extend({bind:function(c,b,d)
{
return c=="unload"?this.one(c,b,d):this.each(function()
{
a.event.add(this,c,d||b,d&&b)
})
},one:function(e,b,c)
{
var d=a.event.proxy(c||b,function(e)
{
a(this).unbind(e,d);
return(c||b).apply(this,arguments)
});
return this.each(function()
{
a.event.add(this,e,d,c&&b)
})
},unbind:function(b,c)
{
return this.each(function()
{
a.event.remove(this,b,c)
})
},trigger:function(c,b)
{
return this.each(function()
{
a.event.trigger(c,b,this)
})
},triggerHandler:function(d,c)
{
if(this[0])
{
var b=a.Event(d);
b.preventDefault();
b.stopPropagation();
a.event.trigger(b,c,this[0]);
return b.result
}
},toggle:function(d)
{
var b=arguments,
c=1;
while(c<b.length)
a.event.proxy(d,b[c++]);
return this.click(a.event.proxy(d,function(a)
{
this.lastToggle=(this.lastToggle||0)%c;
a.preventDefault();
return b[this.lastToggle++].apply(this,arguments)||false
}))
},hover:function(a,b)
{
return this.mouseenter(a).mouseleave(b)
},ready:function(b)
{
u();
if(a.isReady)
b.call(document,a);
else
a.readyList.push(b);
return this
},live:function(c,d)
{
var b=a.event.proxy(d);
b.guid+=this.selector+c;
a(document).bind(q(c,this.selector),this.selector,b);
return this
},die:function(b,c)
{
a(document).unbind(q(b,this.selector),c?{guid:c.guid+this.selector+b}:null);
return this
}});
function r(c)
{
var e=RegExp("(^|\\.)"+c.type+"(\\.|$)"),
d=true,
b=[];
a.each(a.data(this,"events").live||[],function(g,d)
{
if(e.test(d.type))
{
var f=a(c.target).closest(d.data)[0];
f&&
b.push({elem:f,fn:d})
}
});
b.sort(function(b,c)
{
return a.data(b.elem,"closest")-a.data(c.elem,"closest")
});
a.each(b,function()
{
if(this.fn.call(this.elem,c,this.fn.data)===false)
return d=false
});
return d
}
function q(b,a)
{
return["live",b,a.replace(/\./g,"`").replace(/ /g,"|")].join(".")
}
a.extend({isReady:false,readyList:[],ready:function()
{
if(!a.isReady)
{
a.isReady=true;
if(a.readyList)
{
a.each(a.readyList,function()
{
this.call(document,a)
});
a.readyList=null
}
a(document).triggerHandler("ready")
}
}});
var s=false;
function u()
{
if(s)
return;
s=true;
if(document.addEventListener)
document.addEventListener("DOMContentLoaded",function()
{
document.removeEventListener("DOMContentLoaded",arguments.callee,false);
a.ready()
},false);
else
if(document.attachEvent)
{
document.attachEvent("onreadystatechange",function()
{
if(document.readyState==="complete")
{
document.detachEvent("onreadystatechange",arguments.callee);
a.ready()
}
});
document.documentElement.doScroll&&c==c.top&&
(function()
{
if(a.isReady)
return;
try
{
document.documentElement.doScroll("left")
}
catch(b)
{
setTimeout(arguments.callee,0);
return
}
a.ready()
})()
}
a.event.add(c,"load",a.ready)
}
a.each("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error".split(","),function(c,b)
{
a.fn[b]=function(a)
{
return a?this.bind(b,a):this.trigger(b)
}
});
a.fn.blur=function(a)
{
return a?this.bind("blur",a):this.trigger(name)
};
a.fn.focus=function(a)
{
return a?this.bind("focus",a):this.trigger(name)
};
a.fn.load=function(a)
{
return a?this.bind("load",a):this.trigger(name)
};
a.fn.resize=function(a)
{
return a?this.bind("resize",a):this.trigger(name)
};
a.fn.scroll=function(a)
{
return a?this.bind("scroll",a):this.trigger(name)
};
a.fn.unload=function(a)
{
return a?this.bind("unload",a):this.trigger(name)
};
a.fn.click=function(a)
{
return a?this.bind("click",a):this.trigger(name)
};
a.fn.dblclick=function(a)
{
return a?this.bind("dblclick",a):this.trigger(name)
};
a.fn.mousedown=function(a)
{
return a?this.bind("mousedown",a):this.trigger(name)
};
a.fn.mouseup=function(a)
{
return a?this.bind("mouseup",a):this.trigger(name)
};
a.fn.mousemove=function(a)
{
return a?this.bind("mousemove",a):this.trigger(name)
};
a.fn.mouseover=function(a)
{
return a?this.bind("mouseover",a):this.trigger(name)
};
a.fn.mouseout=function(a)
{
return a?this.bind("mouseout",a):this.trigger(name)
};
a.fn.mouseenter=function(a)
{
return a?this.bind("mouseenter",a):this.trigger(name)
};
a.fn.mouseleave=function(a)
{
return a?this.bind("mouseleave",a):this.trigger(name)
};
a.fn.change=function(a)
{
return a?this.bind("change",a):this.trigger(name)
};
a.fn.select=function(a)
{
return a?this.bind("select",a):this.trigger(name)
};
a.fn.submit=function(a)
{
return a?this.bind("submit",a):this.trigger(name)
};
a.fn.keydown=function(a)
{
return a?this.bind("keydown",a):this.trigger(name)
};
a.fn.keypress=function(a)
{
return a?this.bind("keypress",a):this.trigger(name)
};
a.fn.keyup=function(a)
{
return a?this.bind("keyup",a):this.trigger(name)
};
a.fn.error=function(a)
{
return a?this.bind("error",a):this.trigger(name)
};
a(c).bind("unload",function()
{
for(var b in a.cache)
b!=1&&a.cache[b].handle&&
a.event.remove(a.cache[b].handle.elem)
});
(function()
{
a.support={};
a.support={leadingWhitespace:false,tbody:false,objectAll:false,htmlSerialize:false,style:false,hrefNormalized:false,opacity:false,cssFloat:false,scriptEval:false,noCloneEvent:false,boxModel:false}
})();
var i="styleFloat";
a.props={"for":"htmlFor","class":"className","float":i,cssFloat:i,styleFloat:i,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};
a.fn.extend({_load:a.fn.load,load:function(c,b,d)
{
if(typeof c!=="string")
return this._load(c);
var e=c.indexOf(" ");
if(e>=0)
{
var f=c.slice(e,c.length);
c=c.slice(0,e)
}
var h="GET";
if(b)
if(a.isFunction(b))
{
d=b;
b=null
}
else
if(typeof b==="object")
{
b=a.param(b);
h="POST"
}
var g=this;
a.ajax({url:c,type:h,dataType:"html",data:b,complete:function(b,c)
{
(c=="success"||c=="notmodified")&&
g.html(f?a("<div/>").append(b.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(f):b.responseText);
d&&
g.each(d,[b.responseText,c,b])
}});
return this
},serialize:function()
{
return a.param(this.serializeArray())
},serializeArray:function()
{
return this.map(function()
{
return this.elements?a.makeArray(this.elements):this
}).filter(function()
{
return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))
}).map(function(d,c)
{
var b=a(this).val();
return b==null?null:a.isArray(b)?a.map(b,function(a)
{
return{name:c.name,value:a}
}):{name:c.name,value:b}
}).get()
}});
a.fn.ajaxStart=function()
{
return this.bind("ajaxStart",f)
};
a.fn.ajaxStop=function()
{
return this.bind("ajaxStop",f)
};
a.fn.ajaxComplete=function()
{
return this.bind("ajaxComplete",f)
};
a.fn.ajaxError=function()
{
return this.bind("ajaxError",f)
};
a.fn.ajaxSuccess=function()
{
return this.bind("ajaxSuccess",f)
};
a.fn.ajaxSend=function()
{
return this.bind("ajaxSend",f)
};
var D=h();
a.extend({"get":function(e,b,c,d)
{
if(a.isFunction(b))
{
c=b;
b=null
}
return a.ajax({type:"GET",url:e,data:b,success:c,dataType:d})
},getScript:function(c,b)
{
return a.get(c,null,b,"script")
},getJSON:function(d,c,b)
{
return a.get(d,c,b,"json")
},post:function(e,b,c,d)
{
if(a.isFunction(b))
{
c=b;
b={}
}
return a.ajax({type:"POST",url:e,data:b,success:c,dataType:d})
},ajaxSetup:function(b)
{
a.extend(a.ajaxSettings,b)
},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function()
{
return c.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest
},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(d)
{
d=a.extend(true,d,a.extend(true,{},a.ajaxSettings,d));
var g,
k=/=\?(&|$)/g,
i,
s,
l=d.type.toUpperCase();
if(d.data&&d.processData&&typeof d.data!=="string")
d.data=a.param(d.data);
if(d.dataType=="jsonp")
{
if(l=="GET")
{
if(!d.url.match(k))
d.url+=(d.url.match(/\?/)?"&":"?")+(d.jsonp||"callback")+"=?"
}
else
if(!d.data||!d.data.match(k))
d.data=(d.data?d.data+"&":"")+(d.jsonp||"callback")+"=?";
d.dataType="json"
}
if(d.dataType=="json"&&(d.data&&d.data.match(k)||d.url.match(k)))
{
g="jsonp"+D++;
if(d.data)
d.data=(d.data+"").replace(k,"="+g+"$1");
d.url=d.url.replace(k,"="+g+"$1");
d.dataType="script";
c[g]=function(a)
{
s=a;
r();
q();
c[g]=b;
try
{
delete c[g]
}
catch(d)
{
}
n&&
n.removeChild(f)
}
}
if(d.dataType=="script"&&d.cache==null)
d.cache=false;
if(d.cache===false&&l=="GET")
{
var v=h(),
u=d.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+v+"$2");
d.url=u+(u==d.url?(d.url.match(/\?/)?"&":"?")+"_="+v:"")
}
if(d.data&&l=="GET")
{
d.url+=(d.url.match(/\?/)?"&":"?")+d.data;
d.data=null
}
d.global&&!a.active++&&
a.event.trigger("ajaxStart");
var m=/^(\w+:)?\/\/([^\/?#]+)/.exec(d.url);
if(d.dataType=="script"&&l=="GET"&&m&&(m[1]&&m[1]!=location.protocol||m[2]!=location.host))
{
var n=document.getElementsByTagName("head")[0],
f=document.createElement("script");
f.src=d.url;
if(d.scriptCharset)
f.charset=d.scriptCharset;
if(!g)
{
var t=false;
f.onload=f.onreadystatechange=function()
{
if(!t&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete"))
{
t=true;
r();
q();
f.onload=f.onreadystatechange=null;
n.removeChild(f)
}
}
}
n.appendChild(f);
return b
}
var p=false,
e=d.xhr();
if(d.username)
e.open(l,d.url,d.async,d.username,d.password);
else
e.open(l,d.url,d.async);
try
{
d.data&&
e.setRequestHeader("Content-Type",d.contentType);
d.ifModified&&
e.setRequestHeader("If-Modified-Since",a.lastModified[d.url]||"Thu, 01 Jan 1970 00:00:00 GMT");
e.setRequestHeader("X-Requested-With","XMLHttpRequest");
e.setRequestHeader("Accept",d.dataType&&d.accepts[d.dataType]?d.accepts[d.dataType]+", */*":d.accepts._default)
}
catch(w)
{
}
if(d.beforeSend&&d.beforeSend(e,d)===false)
{
d.global&&!--a.active&&
a.event.trigger("ajaxStop");
e.abort();
return false
}
d.global&&
a.event.trigger("ajaxSend",[e,d]);
var o=function(b)
{
if(e.readyState==0)
{
if(j)
{
clearInterval(j);
j=null;
d.global&&!--a.active&&
a.event.trigger("ajaxStop")
}
}
else
if(!p&&e&&(e.readyState==4||b=="timeout"))
{
p=true;
if(j)
{
clearInterval(j);
j=null
}
i=b=="timeout"?"timeout":!a.httpSuccess(e)?"error":d.ifModified&&a.httpNotModified(e,d.url)?"notmodified":"success";
if(i=="success")
try
{
s=a.httpData(e,d.dataType,d)
}
catch(f)
{
i="parsererror"
}
if(i=="success")
{
var c;
try
{
c=e.getResponseHeader("Last-Modified")
}
catch(f)
{
}
if(d.ifModified&&c)
a.lastModified[d.url]=c;
!g&&
r()
}
else
a.handleError(d,e,i);
q();
b&&
e.abort();
if(d.async)
e=null
}
};
if(d.async)
{
var j=setInterval(o,13);
d.timeout>0&&
setTimeout(function()
{
e&&!p&&
o("timeout")
},d.timeout)
}
try
{
e.send(d.data)
}
catch(w)
{
a.handleError(d,e,null,w)
}
!d.async&&
o();
function r()
{
d.success&&
d.success(s,i);
d.global&&
a.event.trigger("ajaxSuccess",[e,d])
}
function q()
{
d.complete&&
d.complete(e,i);
d.global&&
a.event.trigger("ajaxComplete",[e,d]);
d.global&&!--a.active&&
a.event.trigger("ajaxStop")
}
return e
},handleError:function(b,c,e,d)
{
b.error&&
b.error(c,e,d);
b.global&&
a.event.trigger("ajaxError",[c,b,d])
},active:0,httpSuccess:function(a)
{
try
{
return!a.status&&location.protocol=="file:"||a.status>=200&&a.status<300||a.status==304||a.status==1223
}
catch(b)
{
}
return false
},httpNotModified:function(b,d)
{
try
{
var c=b.getResponseHeader("Last-Modified");
return b.status==304||c==a.lastModified[d]
}
catch(e)
{
}
return false
},httpData:function(e,d,f)
{
var h=e.getResponseHeader("content-type"),
g=d=="xml"||!d&&h&&h.indexOf("xml")>=0,
b=g?e.responseXML:e.responseText;
if(g&&b.documentElement.tagName=="parsererror")
throw"parsererror";
if(f&&f.dataFilter)
b=f.dataFilter(b,d);
if(typeof b==="string")
{
d=="script"&&
a.globalEval(b);
if(d=="json")
b=c.eval("("+b+")")
}
return b
},param:function(b)
{
var e=[];
function d(b,a)
{
e[e.length]=encodeURIComponent(b)+"="+encodeURIComponent(a)
}
if(a.isArray(b)||b.jquery)
a.each(b,function()
{
d(this.name,this.value)
});
else
for(var c in b)
if(a.isArray(b[c]))
a.each(b[c],function()
{
d(c,this)
});
else
d(c,a.isFunction(b[c])?b[c]():b[c]);
return e.join("&").replace(/%20/g,"+")
}});
var l={},
j,
w=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];
function g(c,d)
{
var b={};
a.each(w.concat.apply([],w.slice(0,d)),function()
{
b[this]=c
});
return b
}
a.fn.extend({show:function(e,i)
{
if(e)
return this.animate(g("show",3),e,i);
else
{
for(var b=0,
h=this.length;b<h;b++)
{
var j=a.data(this[b],"olddisplay");
this[b].style.display=j||"";
if(a.css(this[b],"display")==="none")
{
var d=this[b].tagName,
c;
if(l[d])
c=l[d];
else
{
var f=a("<"+d+" />").appendTo("body");
c=f.css("display");
if(c==="none")
c="block";
f.remove();
l[d]=c
}
a.data(this[b],"olddisplay",c)
}
}
for(var b=0,
h=this.length;b<h;b++)
this[b].style.display=a.data(this[b],"olddisplay")||"";
return this
}
},hide:function(c,f)
{
if(c)
return this.animate(g("hide",3),c,f);
else
{
for(var b=0,
e=this.length;b<e;b++)
{
var d=a.data(this[b],"olddisplay");
!d&&d!=="none"&&
a.data(this[b],"olddisplay",a.css(this[b],"display"))
}
for(var b=0,
e=this.length;b<e;b++)
this[b].style.display="none";
return this
}
},_toggle:a.fn.toggle,toggle:function(b,d)
{
var c=typeof b==="boolean";
return a.isFunction(b)&&a.isFunction(d)?this._toggle.apply(this,arguments):b==null||c?this.each(function()
{
var d=c?b:a(this).is(":hidden");
a(this)[d?"show":"hide"]()
}):this.animate(g("toggle",3),b,d)
},fadeTo:function(b,c,a)
{
return this.animate({opacity:c},b,a)
},animate:function(b,f,e,d)
{
var c=a.speed(f,e,d);
return this[c.queue===false?"each":"queue"](function()
{
var d=a.extend({},c),
e,
f=this.nodeType==1&&a(this).is(":hidden"),
g=this;
for(e in b)
{
if(b[e]=="hide"&&f||b[e]=="show"&&!f)
return d.complete.call(this);
if((e=="height"||e=="width")&&this.style)
{
d.display=a.css(this,"display");
d.overflow=this.style.overflow
}
}
if(d.overflow!=null)
this.style.overflow="hidden";
d.curAnim=a.extend({},b);
a.each(b,function(l,i)
{
var j=new a.fx(g,d,l);
if(/toggle|show|hide/.test(i))
j[i=="toggle"?f?"show":"hide":i](b);
else
{
var e=i.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),
c=j.cur(true)||0;
if(e)
{
var h=parseFloat(e[2]),
k=e[3]||"px";
if(k!="px")
{
g.style[l]=(h||1)+k;
c=(h||1)/j.cur(true)*c;
g.style[l]=c+k
}
if(e[1])
h=(e[1]=="-="?-1:1)*h+c;
j.custom(c,h,k)
}
else
j.custom(c,i,"")
}
});
return true
})
},stop:function(d,c)
{
var b=a.timers;
d&&
this.queue([]);
this.each(function()
{
for(var a=b.length-1;a>=0;a--)
if(b[a].elem==this)
{
c&&
b[a](true);
b.splice(a,1)
}
});
!c&&
this.dequeue();
return this
}});
a.fn.slideDown=function(b,a)
{
return this.animate(g("show",1),b,a)
};
a.fn.slideUp=function(b,a)
{
return this.animate(g("hide",1),b,a)
};
a.fn.slideToggle=function(b,a)
{
return this.animate(g("toggle",1),b,a)
};
a.fn.fadeIn=function(b,a)
{
return this.animate({opacity:"show"},b,a)
};
a.fn.fadeOut=function(b,a)
{
return this.animate({opacity:"hide"},b,a)
};
a.extend({speed:function(d,c,e)
{
var b=typeof d==="object"?d:{complete:e||!e&&c||a.isFunction(d)&&d,duration:d,easing:e&&c||c&&!a.isFunction(c)&&c};
b.duration=a.fx.off?0:typeof b.duration==="number"?b.duration:a.fx.speeds[b.duration]||a.fx.speeds._default;
b.old=b.complete;
b.complete=function()
{
b.queue!==false&&
a(this).dequeue();
a.isFunction(b.old)&&
b.old.call(this)
};
return b
},easing:{linear:function(c,d,a,b)
{
return a+b*c
},swing:function(c,d,a,b)
{
return(-Math.cos(c*Math.PI)/2+.5)*b+a
}},timers:[],fx:function(b,a,c)
{
this.options=a;
this.elem=b;
this.prop=c;
if(!a.orig)
a.orig={}
}});
a.fx.prototype={update:function()
{
this.options.step&&
this.options.step.call(this.elem,this.now,this);
(a.fx.step[this.prop]||a.fx.step._default)(this);
if((this.prop=="height"||this.prop=="width")&&this.elem.style)
this.elem.style.display="block"
},cur:function(c)
{
if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))
return this.elem[this.prop];
var b=parseFloat(a.css(this.elem,this.prop,c));
return b&&b>-1e4?b:parseFloat(a.curCSS(this.elem,this.prop))||0
},custom:function(d,g,f)
{
this.startTime=h();
this.start=d;
this.end=g;
this.unit=f||this.unit||"px";
this.now=this.start;
this.pos=this.state=0;
var e=this;
function c(a)
{
return e.step(a)
}
c.elem=this.elem;
if(c()&&a.timers.push(c)&&!j)
j=setInterval(function()
{
for(var c=a.timers,
d=0;d<c.length;d++)
!c[d]()&&
c.splice(d--,1);
if(!c.length)
{
clearInterval(j);
j=b
}
},13)
},show:function()
{
this.options.orig[this.prop]=a.attr(this.elem.style,this.prop);
this.options.show=true;
this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());
a(this.elem).show()
},hide:function()
{
this.options.orig[this.prop]=a.attr(this.elem.style,this.prop);
this.options.hide=true;
this.custom(this.cur(),0)
},step:function(f)
{
var e=h();
if(f||e>=this.options.duration+this.startTime)
{
this.now=this.end;
this.pos=this.state=1;
this.update();
this.options.curAnim[this.prop]=true;
var b=true;
for(var g in this.options.curAnim)
if(this.options.curAnim[g]!==true)
b=false;
if(b)
{
if(this.options.display!=null)
{
this.elem.style.overflow=this.options.overflow;
this.elem.style.display=this.options.display;
if(a.css(this.elem,"display")=="none")
this.elem.style.display="block"
}
this.options.hide&&
a(this.elem).hide();
if(this.options.hide||this.options.show)
for(var d in this.options.curAnim)
a.attr(this.elem.style,d,this.options.orig[d]);
this.options.complete.call(this.elem)
}
return false
}
else
{
var c=e-this.startTime;
this.state=c/this.options.duration;
this.pos=a.easing[this.options.easing||(a.easing.swing?"swing":"linear")](this.state,c,0,1,this.options.duration);
this.now=this.start+(this.end-this.start)*this.pos;
this.update()
}
return true
}};
a.extend(a.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b)
{
a.attr(b.elem.style,"opacity",b.now)
},_default:function(a)
{
if(a.elem.style&&a.elem.style[a.prop]!=null)
a.elem.style[a.prop]=a.now+a.unit;
else
a.elem[a.prop]=a.now
}}});
if(document.documentElement.getBoundingClientRect)
a.fn.offset=function()
{
if(!this[0])
return{top:0,left:0};
if(this[0]===this[0].ownerDocument.body)
return a.offset.bodyOffset(this[0]);
var d=this[0].getBoundingClientRect(),
e=this[0].ownerDocument,
c=e.body,
b=e.documentElement,
g=b.clientTop||c.clientTop||0,
f=b.clientLeft||c.clientLeft||0,
i=d.top+(self.pageYOffset||a.boxModel&&b.scrollTop||c.scrollTop)-g,
h=d.left+(self.pageXOffset||a.boxModel&&b.scrollLeft||c.scrollLeft)-f;
return{top:i,left:h}
};
else
a.fn.offset=function()
{
if(!this[0])
return{top:0,left:0};
if(this[0]===this[0].ownerDocument.body)
return a.offset.bodyOffset(this[0]);
a.offset.initialized||a.offset.initialize();
var b=this[0],
h=b.offsetParent,
l=b,
j=b.ownerDocument,
c,
i=j.documentElement,
f=j.body,
k=j.defaultView,
g=k.getComputedStyle(b,null),
e=b.offsetTop,
d=b.offsetLeft;
while((b=b.parentNode)&&b!==f&&b!==i)
{
c=k.getComputedStyle(b,null);
e-=b.scrollTop,d-=b.scrollLeft;
if(b===h)
{
e+=b.offsetTop,d+=b.offsetLeft;
if(a.offset.doesNotAddBorder&&!(a.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.tagName)))
e+=parseInt(c.borderTopWidth,10)||0,d+=parseInt(c.borderLeftWidth,10)||0;
l=h,h=b.offsetParent
}
if(a.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible")
e+=parseInt(c.borderTopWidth,10)||0,d+=parseInt(c.borderLeftWidth,10)||0;
g=c
}
if(g.position==="relative"||g.position==="static")
e+=f.offsetTop,d+=f.offsetLeft;
if(g.position==="fixed")
e+=Math.max(i.scrollTop,f.scrollTop),d+=Math.max(i.scrollLeft,f.scrollLeft);
return{top:e,left:d}
};
a.offset={initialize:function()
{
if(this.initialized)
return;
var a=document.body,
b=document.createElement("div"),
c,
d,
j,
g,
e,
f,
h=a.style.marginTop,
i='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"cellpadding="0"cellspacing="0"><tr><td></td></tr></table>';
e={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};
for(f in e)
b.style[f]=e[f];
b.innerHTML=i;
a.insertBefore(b,a.firstChild);
c=b.firstChild,d=c.firstChild,g=c.nextSibling.firstChild.firstChild;
this.doesNotAddBorder=d.offsetTop!==5;
this.doesAddBorderForTableAndCells=g.offsetTop===5;
c.style.overflow="hidden",c.style.position="relative";
this.subtractsBorderForOverflowNotVisible=d.offsetTop===-5;
a.style.marginTop="1px";
this.doesNotIncludeMarginInBodyOffset=a.offsetTop===0;
a.style.marginTop=h;
a.removeChild(b);
this.initialized=true
},bodyOffset:function(b)
{
a.offset.initialized||a.offset.initialize();
var d=b.offsetTop,
c=b.offsetLeft;
if(a.offset.doesNotIncludeMarginInBodyOffset)
d+=parseInt(a.curCSS(b,"marginTop",true),10)||0,c+=parseInt(a.curCSS(b,"marginLeft",true),10)||0;
return{top:d,left:c}
}};
a.fn.extend({position:function()
{
var e=0,
f=0,
d;
if(this[0])
{
var a=this.offsetParent(),
c=this.offset(),
b=/^body|html$/i.test(a[0].tagName)?{top:0,left:0}:a.offset();
c.top-=k(this,"marginTop");
c.left-=k(this,"marginLeft");
b.top+=k(a,"borderTopWidth");
b.left+=k(a,"borderLeftWidth");
d={top:c.top-b.top,left:c.left-b.left}
}
return d
},offsetParent:function()
{
var b=this[0].offsetParent||document.body;
while(b&&(!/^body|html$/i.test(b.tagName)&&a.css(b,"position")=="static"))
b=b.offsetParent;
return a(b)
}});
a.each(["Left"],function(e,f)
{
var d="scroll"+f;
a.fn[d]=function(f)
{
return!this[0]?null:f!==b?this.each(function()
{
this==c||this==document?c.scrollTo(!e?f:a(c).scrollLeft(),e?f:a(c).scrollTop()):(this[d]=f)
}):this[0]==c||this[0]==document?self[e?"pageYOffset":"pageXOffset"]||a.boxModel&&document.documentElement[d]||document.body[d]:this[0][d]
}
});
a.each(["Top"],function(e,f)
{
var d="scroll"+f;
a.fn[d]=function(f)
{
return!this[0]?null:f!==b?this.each(function()
{
this==c||this==document?c.scrollTo(!e?f:a(c).scrollLeft(),e?f:a(c).scrollTop()):(this[d]=f)
}):this[0]==c||this[0]==document?self[e?"pageYOffset":"pageXOffset"]||a.boxModel&&document.documentElement[d]||document.body[d]:this[0][d]
}
});
a.each(["Height"],function(g,d)
{
var i=g?"Left":"Top",
h=g?"Right":"Bottom",
f=d.toLowerCase();
a.fn["inner"+d]=function()
{
return this[0]?a.css(this[0],f,false,"padding"):null
};
a.fn["outer"+d]=function(b)
{
return this[0]?a.css(this[0],f,false,b?"margin":"border"):null
};
var e=d.toLowerCase();
a.fn[e]=function(f)
{
return this[0]==c?document.compatMode=="CSS1Compat"&&document.documentElement["client"+d]||document.body["client"+d]:this[0]==document?Math.max(document.documentElement["client"+d],document.body["scroll"+d],document.documentElement["scroll"+d],document.body["offset"+d],document.documentElement["offset"+d]):f===b?this.length?a.css(this[0],e):null:this.css(e,typeof f==="string"?f:f+"px")
}
});
a.each(["Width"],function(g,d)
{
var i=g?"Left":"Top",
h=g?"Right":"Bottom",
f=d.toLowerCase();
a.fn["inner"+d]=function()
{
return this[0]?a.css(this[0],f,false,"padding"):null
};
a.fn["outer"+d]=function(b)
{
return this[0]?a.css(this[0],f,false,b?"margin":"border"):null
};
var e=d.toLowerCase();
a.fn[e]=function(f)
{
return this[0]==c?document.compatMode=="CSS1Compat"&&document.documentElement["client"+d]||document.body["client"+d]:this[0]==document?Math.max(document.documentElement["client"+d],document.body["scroll"+d],document.documentElement["scroll"+d],document.body["offset"+d],document.documentElement["offset"+d]):f===b?this.length?a.css(this[0],e):null:this.css(e,typeof f==="string"?f:f+"px")
}
})
})()
