(function(){var S=this,Y,ah=S.jQuery,G=S.$,R=S.jQuery=S.$=function(b,a){return new R.fn.init(b,a);
},ae=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,X=/^.[^:#\[\.,]*$/;
R.fn=R.prototype={init:function(d,b){d=d||document;
if(d.nodeType){this[0]=d;
this.length=1;
this.context=d;
return this;
}if(typeof d==="string"){var c=ae.exec(d);
if(c&&(c[1]||!b)){if(c[1]){d=R.clean([c[1]],b);
}else{var a=document.getElementById(c[3]);
if(a&&a.id!=c[3]){return R().find(d);
}var e=R(a||[]);
e.context=document;
e.selector=d;
return e;
}}else{return R(b).find(d);
}}else{if(R.isFunction(d)){return R(document).ready(d);
}}if(d.selector&&d.context){this.selector=d.selector;
this.context=d.context;
}return this.setArray(R.isArray(d)?d:R.makeArray(d));
},selector:"",jquery:"1.3.2",size:function(){return this.length;
},get:function(a){return a===Y?Array.prototype.slice.call(this):this[a];
},pushStack:function(a,b,d){var c=R(a);
c.prevObject=this;
c.context=this.context;
if(b==="find"){c.selector=this.selector+(this.selector?" ":"")+d;
}else{if(b){c.selector=this.selector+"."+b+"("+d+")";
}}return c;
},setArray:function(a){this.length=0;
Array.prototype.push.apply(this,a);
return this;
},each:function(a,b){return R.each(this,a,b);
},index:function(a){return R.inArray(a&&a.jquery?a[0]:a,this);
},attr:function(a,b,c){var d=a;
if(typeof a==="string"){if(b===Y){return this[0]&&R[c||"attr"](this[0],a);
}else{d={};
d[a]=b;
}}return this.each(function(e){for(a in d){R.attr(c?this.style:this,a,R.prop(this,d[a],c,e,a));
}});
},css:function(b,a){if((b=="width"||b=="height")&&parseFloat(a)<0){a=Y;
}return this.attr(b,a,"curCSS");
},text:function(a){if(typeof a!=="object"&&a!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(a));
}var b="";
R.each(a||this,function(){R.each(this.childNodes,function(){if(this.nodeType!=8){b+=this.nodeType!=1?this.nodeValue:R.fn.text([this]);
}});
});
return b;
},wrapAll:function(b){if(this[0]){var a=R(b,this[0].ownerDocument).clone();
if(this[0].parentNode){a.insertBefore(this[0]);
}a.map(function(){var c=this;
while(c.firstChild){c=c.firstChild;
}return c;
}).append(this);
}return this;
},wrapInner:function(a){return this.each(function(){R(this).contents().wrapAll(a);
});
},wrap:function(a){return this.each(function(){R(this).wrapAll(a);
});
},append:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.appendChild(a);
}});
},prepend:function(){return this.domManip(arguments,true,function(a){if(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||R([]);
},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var a=this.pushStack([],"find",b);
a.length=0;
R.find(b,this[0],a);
return a;
}else{return this.pushStack(R.unique(R.map(this,function(c){return R.find(b,c);
})),"find",b);
}},clone:function(b){var d=this.map(function(){if(!R.support.noCloneEvent&&!R.isXMLDoc(this)){var e=this.outerHTML;
if(!e){var f=this.ownerDocument.createElement("div");
f.appendChild(this.cloneNode(true));
e=f.innerHTML;
}return R.clean([e.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0];
}else{return this.cloneNode(true);
}});
if(b===true){var a=this.find("*").andSelf(),c=0;
d.find("*").andSelf().each(function(){if(this.nodeName!==a[c].nodeName){return;
}var f=R.data(a[c],"events");
for(var e in f){for(var g in f[e]){R.event.add(this,e,f[e][g],f[e][g].data);
}}c++;
});
}return d;
},filter:function(a){return this.pushStack(R.isFunction(a)&&R.grep(this,function(c,b){return a.call(c,b);
})||R.multiFilter(a,R.grep(this,function(b){return b.nodeType===1;
})),"filter",a);
},closest:function(c){var b=R.expr.match.POS.test(c)?R(c):null,a=0;
return this.map(function(){var d=this;
while(d&&d.ownerDocument){if(b?b.index(d)>-1:R(d).is(c)){R.data(d,"closest",a);
return d;
}d=d.parentNode;
a++;
}});
},not:function(b){if(typeof b==="string"){if(X.test(b)){return this.pushStack(R.multiFilter(b,this,true),"not",b);
}else{b=R.multiFilter(b,this);
}}var a=b.length&&b[b.length-1]!==Y&&!b.nodeType;
return this.filter(function(){return a?R.inArray(this,b)<0:this!=b;
});
},add:function(a){return this.pushStack(R.unique(R.merge(this.get(),typeof a==="string"?R(a):R.makeArray(a))));
},is:function(a){return !!a&&R.multiFilter(a,this).length>0;
},hasClass:function(a){return !!a&&this.is("."+a);
},val:function(a){if(a===Y){var h=this[0];
if(h){if(R.nodeName(h,"option")){return(h.attributes.value||{}).specified?h.value:h.text;
}if(R.nodeName(h,"select")){var c=h.selectedIndex,d=[],e=h.options,b=h.type=="select-one";
if(c<0){return null;
}for(var f=b?c:0,i=b?c+1:e.length;
f<i;
f++){var g=e[f];
if(g.selected){a=R(g).val();
if(b){return a;
}d.push(a);
}}return d;
}return(h.value||"").replace(/\r/g,"");
}return Y;
}if(typeof a==="number"){a+="";
}return this.each(function(){if(this.nodeType!=1){return;
}if(R.isArray(a)&&/radio|checkbox/.test(this.type)){this.checked=(R.inArray(this.value,a)>=0||R.inArray(this.name,a)>=0);
}else{if(R.nodeName(this,"select")){var j=R.makeArray(a);
R("option",this).each(function(){this.selected=(R.inArray(this.value,j)>=0||R.inArray(this.text,j)>=0);
});
if(!j.length){this.selectedIndex=-1;
}}else{this.value=a;
}}});
},html:function(a){return a===Y?(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(a){return this.pushStack(R.map(this,function(c,b){return a.call(c,b,c);
}));
},andSelf:function(){return this.add(this.prevObject);
},domManip:function(i,e,d){if(this[0]){var c=(this[0].ownerDocument||this[0]).createDocumentFragment(),f=R.clean(i,(this[0].ownerDocument||this[0]),c),b=c.firstChild;
if(b){for(var g=0,h=this.length;
g<h;
g++){d.call(a(this[g],b),this.length>1||g>0?c.cloneNode(true):c);
}}if(f){R.each(f,af);
}}return this;
function a(j,k){return e&&R.nodeName(j,"table")&&R.nodeName(k,"tr")?(j.getElementsByTagName("tbody")[0]||j.appendChild(j.ownerDocument.createElement("tbody"))):j;
}}};
R.fn.init.prototype=R.fn;
function af(b,a){if(a.src){R.ajax({url:a.src,async:false,dataType:"script"});
}else{R.globalEval(a.text||a.textContent||a.innerHTML||"");
}if(a.parentNode){a.parentNode.removeChild(a);
}}function aa(){return +new Date;
}R.extend=R.fn.extend=function(){var h=arguments[0]||{},b=1,c=arguments.length,g=false,f;
if(typeof h==="boolean"){g=h;
h=arguments[1]||{};
b=2;
}if(typeof h!=="object"&&!R.isFunction(h)){h={};
}if(c==b){h=this;
--b;
}for(;
b<c;
b++){if((f=arguments[b])!=null){for(var e in f){var a=h[e],d=f[e];
if(h===d){continue;
}if(g&&d&&typeof d==="object"&&!d.nodeType){h[e]=R.extend(g,a||(d.length!=null?[]:{}),d);
}else{if(d!==Y){h[e]=d;
}}}}}return h;
};
var U=/z-?index|font-?weight|opacity|zoom|line-?height/i,H=document.defaultView||{},F=Object.prototype.toString;
R.extend({noConflict:function(a){S.$=G;
if(a){S.jQuery=ah;
}return R;
},isFunction:function(a){return F.call(a)==="[object Function]";
},isArray:function(a){return F.call(a)==="[object Array]";
},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&R.isXMLDoc(a.ownerDocument);
},globalEval:function(b){if(b&&/\S/.test(b)){var a=document.getElementsByTagName("head")[0]||document.documentElement,c=document.createElement("script");
c.type="text/javascript";
if(R.support.scriptEval){c.appendChild(document.createTextNode(b));
}else{c.text=b;
}a.insertBefore(c,a.firstChild);
a.removeChild(c);
}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase();
},each:function(b,a,c){var d,g=0,f=b.length;
if(c){if(f===Y){for(d in b){if(a.apply(b[d],c)===false){break;
}}}else{for(;
g<f;
){if(a.apply(b[g++],c)===false){break;
}}}}else{if(f===Y){for(d in b){if(a.call(b[d],d,b[d])===false){break;
}}}else{for(var e=b[0];
g<f&&a.call(e,g,e)!==false;
e=b[++g]){}}}return b;
},prop:function(b,c,d,a,e){if(R.isFunction(c)){c=c.call(b,a);
}return typeof c==="number"&&d=="curCSS"&&!U.test(e)?c+"px":c;
},className:{add:function(b,a){R.each((a||"").split(/\s+/),function(d,c){if(b.nodeType==1&&!R.className.has(b.className,c)){b.className+=(b.className?" ":"")+c;
}});
},remove:function(b,a){if(b.nodeType==1){b.className=a!==Y?R.grep(b.className.split(/\s+/),function(c){return !R.className.has(a,c);
}).join(" "):"";
}},has:function(a,b){return a&&R.inArray(b,(a.className||a).toString().split(/\s+/))>-1;
}},swap:function(b,c,a){var d={};
for(var e in c){d[e]=b.style[e];
b.style[e]=c[e];
}a.call(b);
for(var e in c){b.style[e]=d[e];
}},css:function(b,e,h,g){if(e=="width"||e=="height"){var d,f={position:"absolute",visibility:"hidden",display:"block"},a=e=="width"?["Left","Right"]:["Top","Bottom"];
function c(){d=e=="width"?b.offsetWidth:b.offsetHeight;
if(g==="border"){return;
}R.each(a,function(){if(!g){d-=parseFloat(R.curCSS(b,"padding"+this,true))||0;
}if(g==="margin"){d+=parseFloat(R.curCSS(b,"margin"+this,true))||0;
}else{d-=parseFloat(R.curCSS(b,"border"+this+"Width",true))||0;
}});
}if(b.offsetWidth!==0){c();
}else{R.swap(b,f,c);
}return Math.max(0,Math.round(d));
}return R.curCSS(b,e,h);
},curCSS:function(c,f,g){var d,h=c.style;
if(f=="opacity"&&!R.support.opacity){d=R.attr(h,"opacity");
return d==""?"1":d;
}if(f.match(/float/i)){f=J;
}if(!g&&h&&h[f]){d=h[f];
}else{if(H.getComputedStyle){if(f.match(/float/i)){f="float";
}f=f.replace(/([A-Z])/g,"-$1").toLowerCase();
var e=H.getComputedStyle(c,null);
if(e){d=e.getPropertyValue(f);
}if(f=="opacity"&&d==""){d="1";
}}else{if(c.currentStyle){var i=f.replace(/\-(\w)/g,function(j,k){return k.toUpperCase();
});
d=c.currentStyle[f]||c.currentStyle[i];
if(!/^\d+(px)?$/i.test(d)&&/^\d/.test(d)){var b=h.left,a=c.runtimeStyle.left;
c.runtimeStyle.left=c.currentStyle.left;
h.left=d||0;
d=h.pixelLeft+"px";
h.left=b;
c.runtimeStyle.left=a;
}}}}return d;
},clean:function(e,a,c){a=a||document;
if(typeof a.createElement==="undefined"){a=a.ownerDocument||a[0]&&a[0].ownerDocument||document;
}if(!c&&e.length===1&&typeof e[0]==="string"){var b=/^<(\w+)\s*\/?>$/.exec(e[0]);
if(b){return[a.createElement(b[1])];
}}var f=[],g=[],d=a.createElement("div");
R.each(e,function(m,l){if(typeof l==="number"){l+="";
}if(!l){return;
}if(typeof l==="string"){l=l.replace(/(<(\w+)[^>]*?)\/>/g,function(r,p,q){return q.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?r:p+"></"+q+">";
});
var k=l.replace(/^\s+/,"").substring(0,10).toLowerCase();
var n=!k.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!k.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||k.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!k.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!k.indexOf("<td")||!k.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!k.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!R.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];
d.innerHTML=n[1]+l+n[2];
while(n[0]--){d=d.lastChild;
}if(!R.support.tbody){var j=/<tbody/i.test(l),i=!k.indexOf("<table")&&!j?d.firstChild&&d.firstChild.childNodes:n[1]=="<table>"&&!j?d.childNodes:[];
for(var o=i.length-1;
o>=0;
--o){if(R.nodeName(i[o],"tbody")&&!i[o].childNodes.length){i[o].parentNode.removeChild(i[o]);
}}}if(!R.support.leadingWhitespace&&/^\s/.test(l)){d.insertBefore(a.createTextNode(l.match(/^\s*/)[0]),d.firstChild);
}l=R.makeArray(d.childNodes);
}if(l.nodeType){f.push(l);
}else{f=R.merge(f,l);
}});
if(c){for(var h=0;
f[h];
h++){if(R.nodeName(f[h],"script")&&(!f[h].type||f[h].type.toLowerCase()==="text/javascript")){g.push(f[h].parentNode?f[h].parentNode.removeChild(f[h]):f[h]);
}else{if(f[h].nodeType===1){f.splice.apply(f,[h+1,0].concat(R.makeArray(f[h].getElementsByTagName("script"))));
}c.appendChild(f[h]);
}}return g;
}return f;
},attr:function(h,f,a){if(!h||h.nodeType==3||h.nodeType==8){return Y;
}var b=!R.isXMLDoc(h),d=a!==Y;
f=b&&R.props[f]||f;
if(h.tagName){var e=/href|src|style/.test(f);
if(f=="selected"&&h.parentNode){h.parentNode.selectedIndex;
}if(f in h&&b&&!e){if(d){if(f=="type"&&R.nodeName(h,"input")&&h.parentNode){throw"type property can't be changed";
}h[f]=a;
}if(R.nodeName(h,"form")&&h.getAttributeNode(f)){return h.getAttributeNode(f).nodeValue;
}if(f=="tabIndex"){var c=h.getAttributeNode("tabIndex");
return c&&c.specified?c.value:h.nodeName.match(/(button|input|object|select|textarea)/i)?0:h.nodeName.match(/^(a|area)$/i)&&h.href?0:Y;
}return h[f];
}if(!R.support.style&&b&&f=="style"){return R.attr(h.style,"cssText",a);
}if(d){h.setAttribute(f,""+a);
}var g=!R.support.hrefNormalized&&b&&e?h.getAttribute(f,2):h.getAttribute(f);
return g===null?Y:g;
}if(!R.support.opacity&&f=="opacity"){if(d){h.zoom=1;
h.filter=(h.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(a)+""=="NaN"?"":"alpha(opacity="+a*100+")");
}return h.filter&&h.filter.indexOf("opacity=")>=0?(parseFloat(h.filter.match(/opacity=([^)]*)/)[1])/100)+"":"";
}f=f.replace(/-([a-z])/ig,function(j,i){return i.toUpperCase();
});
if(d){h[f]=a;
}return h[f];
},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"");
},makeArray:function(b){var c=[];
if(b!=null){var a=b.length;
if(a==null||typeof b==="string"||R.isFunction(b)||b.setInterval){c[0]=b;
}else{while(a){c[--a]=b[a];
}}}return c;
},inArray:function(b,a){for(var d=0,c=a.length;
d<c;
d++){if(a[d]===b){return d;
}}return -1;
},merge:function(b,d){var a=0,c,e=b.length;
if(!R.support.getAll){while((c=d[a++])!=null){if(c.nodeType!=8){b[e++]=c;
}}}else{while((c=d[a++])!=null){b[e++]=c;
}}return b;
},unique:function(a){var b=[],d={};
try{for(var c=0,g=a.length;
c<g;
c++){var f=R.data(a[c]);
if(!d[f]){d[f]=true;
b.push(a[c]);
}}}catch(e){b=a;
}return b;
},grep:function(a,f,d){var b=[];
for(var e=0,c=a.length;
e<c;
e++){if(!d!=!f(a[e],e)){b.push(a[e]);
}}return b;
},map:function(d,f){var a=[];
for(var b=0,e=d.length;
b<e;
b++){var c=f(d[b],b);
if(c!=null){a[a.length]=c;
}}return a.concat.apply([],a);
}});
var ac=navigator.userAgent.toLowerCase();
R.browser={version:(ac.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(ac),opera:/opera/.test(ac),msie:/msie/.test(ac)&&!/opera/.test(ac),mozilla:/mozilla/.test(ac)&&!/(compatible|webkit)/.test(ac)};
R.each({parent:function(a){return a.parentNode;
},parents:function(a){return R.dir(a,"parentNode");
},next:function(a){return R.nth(a,2,"nextSibling");
},prev:function(a){return R.nth(a,2,"previousSibling");
},nextAll:function(a){return R.dir(a,"nextSibling");
},prevAll:function(a){return R.dir(a,"previousSibling");
},siblings:function(a){return R.sibling(a.parentNode.firstChild,a);
},children:function(a){return R.sibling(a.firstChild);
},contents:function(a){return R.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:R.makeArray(a.childNodes);
}},function(b,a){R.fn[b]=function(d){var c=R.map(this,a);
if(d&&typeof d=="string"){c=R.multiFilter(d,c);
}return this.pushStack(R.unique(c),b,d);
};
});
R.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,a){R.fn[b]=function(d){var h=[],f=R(d);
for(var c=0,g=f.length;
c<g;
c++){var e=(c>0?this.clone(true):this).get();
R.fn[a].apply(R(f[c]),e);
h=h.concat(e);
}return this.pushStack(h,b,d);
};
});
R.each({removeAttr:function(a){R.attr(this,a,"");
if(this.nodeType==1){this.removeAttribute(a);
}},addClass:function(a){R.className.add(this,a);
},removeClass:function(a){R.className.remove(this,a);
},toggleClass:function(a,b){if(typeof b!=="boolean"){b=!R.className.has(this,a);
}R.className[b?"add":"remove"](this,a);
},remove:function(a){if(!a||R.filter(a,[this]).length){R("*",this).add([this]).each(function(){R.event.remove(this);
R.removeData(this);
});
if(this.parentNode){this.parentNode.removeChild(this);
}}},empty:function(){R(this).children().remove();
while(this.firstChild){this.removeChild(this.firstChild);
}}},function(b,a){R.fn[b]=function(){return this.each(a,arguments);
};
});
function M(b,a){return b[0]&&parseInt(R.curCSS(b[0],a,true),10)||0;
}var O="jQuery"+aa(),I=0,ad={};
R.extend({cache:{},data:function(a,c,b){a=a==S?ad:a;
var d=a[O];
if(!d){d=a[O]=++I;
}if(c&&!R.cache[d]){R.cache[d]={};
}if(b!==Y){R.cache[d][c]=b;
}return c?R.cache[d][c]:d;
},removeData:function(a,d){a=a==S?ad:a;
var b=a[O];
if(d){if(R.cache[b]){delete R.cache[b][d];
d="";
for(d in R.cache[b]){break;
}if(!d){R.removeData(a);
}}}else{try{delete a[O];
}catch(c){if(a.removeAttribute){a.removeAttribute(O);
}}delete R.cache[b];
}},queue:function(a,d,b){if(a){d=(d||"fx")+"queue";
var c=R.data(a,d);
if(!c||R.isArray(b)){c=R.data(a,d,R.makeArray(b));
}else{if(b){c.push(b);
}}}return c;
},dequeue:function(b,c){var d=R.queue(b,c),a=d.shift();
if(!c||c==="fx"){a=d[0];
}if(a!==Y){a.call(b);
}}});
R.fn.extend({data:function(d,b){var a=d.split(".");
a[1]=a[1]?"."+a[1]:"";
if(b===Y){var c=this.triggerHandler("getData"+a[1]+"!",[a[0]]);
if(c===Y&&this.length){c=R.data(this[0],d);
}return c===Y&&a[1]?this.data(a[0]):c;
}else{return this.trigger("setData"+a[1]+"!",[a[0],b]).each(function(){R.data(this,d,b);
});
}},removeData:function(a){return this.each(function(){R.removeData(this,a);
});
},queue:function(b,a){if(typeof b!=="string"){a=b;
b="fx";
}if(a===Y){return R.queue(this[0],b);
}return this.each(function(){var c=R.queue(this,b,a);
if(b=="fx"&&c.length==1){c[0].call(this);
}});
},dequeue:function(a){return this.each(function(){R.dequeue(this,a);
});
}});
(function(){var j=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,f=0,b=Object.prototype.toString;
var h=function(v,ai,A,r){A=A||[];
ai=ai||document;
if(ai.nodeType!==1&&ai.nodeType!==9){return[];
}if(!v||typeof v!=="string"){return A;
}var t=[],C,p,z,D,s,B,u=true;
j.lastIndex=0;
while((C=j.exec(v))!==null){t.push(C[1]);
if(C[2]){B=RegExp.rightContext;
break;
}}if(t.length>1&&g.exec(v)){if(t.length===2&&c.relative[t[0]]){p=o(t[0]+t[1],ai);
}else{p=c.relative[t[0]]?[ai]:h(t.shift(),ai);
while(t.length){v=t.shift();
if(c.relative[v]){v+=t.shift();
}p=o(v,p);
}}}else{var w=r?{expr:t.pop(),set:m(r)}:h.find(t.pop(),t.length===1&&ai.parentNode?ai.parentNode:ai,n(ai));
p=h.filter(w.expr,w.set);
if(t.length>0){z=m(p);
}else{u=false;
}while(t.length){var y=t.pop(),q=y;
if(!c.relative[y]){y="";
}else{q=t.pop();
}if(q==null){q=ai;
}c.relative[y](z,q,n(ai));
}}if(!z){z=p;
}if(!z){throw"Syntax error, unrecognized expression: "+(y||v);
}if(b.call(z)==="[object Array]"){if(!u){A.push.apply(A,z);
}else{if(ai.nodeType===1){for(var aj=0;
z[aj]!=null;
aj++){if(z[aj]&&(z[aj]===true||z[aj].nodeType===1&&a(ai,z[aj]))){A.push(p[aj]);
}}}else{for(var aj=0;
z[aj]!=null;
aj++){if(z[aj]&&z[aj].nodeType===1){A.push(p[aj]);
}}}}}else{m(z,A);
}if(B){h(B,ai,A,r);
if(i){hasDuplicate=false;
A.sort(i);
if(hasDuplicate){for(var aj=1;
aj<A.length;
aj++){if(A[aj]===A[aj-1]){A.splice(aj--,1);
}}}}}return A;
};
h.matches=function(p,q){return h(p,null,null,q);
};
h.find=function(p,w,t){var q,r;
if(!p){return[];
}for(var v=0,u=c.order.length;
v<u;
v++){var s=c.order[v],r;
if((r=c.match[s].exec(p))){var y=RegExp.leftContext;
if(y.substr(y.length-1)!=="\\"){r[1]=(r[1]||"").replace(/\\/g,"");
q=c.find[s](r,w,t);
if(q!=null){p=p.replace(c.match[s],"");
break;
}}}}if(!q){q=w.getElementsByTagName("*");
}return{set:q,expr:p};
};
h.filter=function(p,A,D,C){var B=p,y=[],q=A,v,aj,t=A&&A[0]&&n(A[0]);
while(p&&A.length){for(var s in c.filter){if((v=c.match[s].exec(p))!=null){var ai=c.filter[s],w,z;
aj=false;
if(q==y){y=[];
}if(c.preFilter[s]){v=c.preFilter[s](v,q,D,y,C,t);
if(!v){aj=w=true;
}else{if(v===true){continue;
}}}if(v){for(var u=0;
(z=q[u])!=null;
u++){if(z){w=ai(z,v,u,q);
var r=C^!!w;
if(D&&w!=null){if(r){aj=true;
}else{q[u]=false;
}}else{if(r){y.push(z);
aj=true;
}}}}}if(w!==Y){if(!D){q=y;
}p=p.replace(c.match[s],"");
if(!aj){return[];
}break;
}}}if(p==B){if(aj==null){throw"Syntax error, unrecognized expression: "+p;
}else{break;
}}B=p;
}return q;
};
var c=h.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(p){return p.getAttribute("href");
}},relative:{"+":function(p,w,q){var r=typeof w==="string",t=r&&!/\W/.test(w),s=r&&!t;
if(t&&!q){w=w.toUpperCase();
}for(var v=0,u=p.length,y;
v<u;
v++){if((y=p[v])){while((y=y.previousSibling)&&y.nodeType!==1){}p[v]=s||y&&y.nodeName===w?y||false:y===w;
}}if(s){h.filter(w,p,true);
}},">":function(q,w,p){var r=typeof w==="string";
if(r&&!/\W/.test(w)){w=p?w:w.toUpperCase();
for(var t=0,v=q.length;
t<v;
t++){var s=q[t];
if(s){var u=s.parentNode;
q[t]=u.nodeName===w?u:false;
}}}else{for(var t=0,v=q.length;
t<v;
t++){var s=q[t];
if(s){q[t]=r?s.parentNode:s.parentNode===w;
}}if(r){h.filter(w,q,true);
}}},"":function(s,u,t){var r=f++,q=k;
if(!u.match(/\W/)){var p=u=t?u:u.toUpperCase();
q=l;
}q("parentNode",u,r,s,p,t);
},"~":function(s,u,t){var r=f++,q=k;
if(typeof u==="string"&&!u.match(/\W/)){var p=u=t?u:u.toUpperCase();
q=l;
}q("previousSibling",u,r,s,p,t);
}},find:{ID:function(s,p,q){if(typeof p.getElementById!=="undefined"&&!q){var r=p.getElementById(s[1]);
return r?[r]:[];
}},NAME:function(s,u,r){if(typeof u.getElementsByName!=="undefined"){var v=[],t=u.getElementsByName(s[1]);
for(var q=0,p=t.length;
q<p;
q++){if(t[q].getAttribute("name")===s[1]){v.push(t[q]);
}}return v.length===0?null:v;
}},TAG:function(p,q){return q.getElementsByTagName(p[1]);
}},preFilter:{CLASS:function(u,w,t,v,q,p){u=" "+u[1].replace(/\\/g,"")+" ";
if(p){return u;
}for(var r=0,s;
(s=w[r])!=null;
r++){if(s){if(q^(s.className&&(" "+s.className+" ").indexOf(u)>=0)){if(!t){v.push(s);
}}else{if(t){w[r]=false;
}}}}return false;
},ID:function(p){return p[1].replace(/\\/g,"");
},TAG:function(r,q){for(var p=0;
q[p]===false;
p++){}return q[p]&&n(q[p])?r[1]:r[1].toUpperCase();
},CHILD:function(p){if(p[1]=="nth"){var q=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(p[2]=="even"&&"2n"||p[2]=="odd"&&"2n+1"||!/\D/.test(p[2])&&"0n+"+p[2]||p[2]);
p[2]=(q[1]+(q[2]||1))-0;
p[3]=q[3]-0;
}p[0]=f++;
return p;
},ATTR:function(t,v,s,u,r,q){var p=t[1].replace(/\\/g,"");
if(!q&&c.attrMap[p]){t[1]=c.attrMap[p];
}if(t[2]==="~="){t[4]=" "+t[4]+" ";
}return t;
},PSEUDO:function(s,u,r,t,q){if(s[1]==="not"){if(s[3].match(j).length>1||/^\w/.test(s[3])){s[3]=h(s[3],null,null,u);
}else{var p=h.filter(s[3],u,r,true^q);
if(!r){t.push.apply(t,p);
}return false;
}}else{if(c.match.POS.test(s[0])||c.match.CHILD.test(s[0])){return true;
}}return s;
},POS:function(p){p.unshift(true);
return p;
}},filters:{enabled:function(p){return p.disabled===false&&p.type!=="hidden";
},disabled:function(p){return p.disabled===true;
},checked:function(p){return p.checked===true;
},selected:function(p){p.parentNode.selectedIndex;
return p.selected===true;
},parent:function(p){return !!p.firstChild;
},empty:function(p){return !p.firstChild;
},has:function(p,r,q){return !!h(q[3],p).length;
},header:function(p){return/h\d/i.test(p.nodeName);
},text:function(p){return"text"===p.type;
},radio:function(p){return"radio"===p.type;
},checkbox:function(p){return"checkbox"===p.type;
},file:function(p){return"file"===p.type;
},password:function(p){return"password"===p.type;
},submit:function(p){return"submit"===p.type;
},image:function(p){return"image"===p.type;
},reset:function(p){return"reset"===p.type;
},button:function(p){return"button"===p.type||p.nodeName.toUpperCase()==="BUTTON";
},input:function(p){return/input|select|textarea|button/i.test(p.nodeName);
}},setFilters:{first:function(q,p){return p===0;
},last:function(p,s,r,q){return s===q.length-1;
},even:function(q,p){return p%2===0;
},odd:function(q,p){return p%2===1;
},lt:function(p,r,q){return r<q[3]-0;
},gt:function(p,r,q){return r>q[3]-0;
},nth:function(p,r,q){return q[3]-0==r;
},eq:function(p,r,q){return q[3]-0==r;
}},filter:{PSEUDO:function(q,t,u,p){var w=t[1],r=c.filters[w];
if(r){return r(q,u,t,p);
}else{if(w==="contains"){return(q.textContent||q.innerText||"").indexOf(t[3])>=0;
}else{if(w==="not"){var s=t[3];
for(var u=0,v=s.length;
u<v;
u++){if(s[u]===q){return false;
}}return true;
}}}},CHILD:function(w,v){var q=v[1],y=w;
switch(q){case"only":case"first":while(y=y.previousSibling){if(y.nodeType===1){return false;
}}if(q=="first"){return true;
}y=w;
case"last":while(y=y.nextSibling){if(y.nodeType===1){return false;
}}return true;
case"nth":var u=v[2],p=v[3];
if(u==1&&p==0){return true;
}var s=v[0],t=w.parentNode;
if(t&&(t.sizcache!==s||!w.nodeIndex)){var r=0;
for(y=t.firstChild;
y;
y=y.nextSibling){if(y.nodeType===1){y.nodeIndex=++r;
}}t.sizcache=s;
}var z=w.nodeIndex-p;
if(u==0){return z==0;
}else{return(z%u==0&&z/u>=0);
}}},ID:function(q,p){return q.nodeType===1&&q.getAttribute("id")===p;
},TAG:function(q,p){return(p==="*"&&q.nodeType===1)||q.nodeName===p;
},CLASS:function(q,p){return(" "+(q.className||q.getAttribute("class"))+" ").indexOf(p)>-1;
},ATTR:function(u,t){var s=t[1],r=c.attrHandle[s]?c.attrHandle[s](u):u[s]!=null?u[s]:u.getAttribute(s),q=r+"",p=t[2],v=t[4];
return r==null?p==="!=":p==="="?q===v:p==="*="?q.indexOf(v)>=0:p==="~="?(" "+q+" ").indexOf(v)>=0:!v?q&&r!==false:p==="!="?q!=v:p==="^="?q.indexOf(v)===0:p==="$="?q.substr(q.length-v.length)===v:p==="|="?q===v||q.substr(0,v.length+1)===v+"-":false;
},POS:function(s,u,r,t){var q=u[2],p=c.setFilters[q];
if(p){return p(s,r,u,t);
}}}};
var g=c.match.POS;
for(var e in c.match){c.match[e]=RegExp(c.match[e].source+/(?![^\[]*\])(?![^\(]*\))/.source);
}var m=function(q,p){q=Array.prototype.slice.call(q);
if(p){p.push.apply(p,q);
return p;
}return q;
};
try{Array.prototype.slice.call(document.documentElement.childNodes);
}catch(d){m=function(r,q){var t=q||[];
if(b.call(r)==="[object Array]"){Array.prototype.push.apply(t,r);
}else{if(typeof r.length==="number"){for(var p=0,s=r.length;
p<s;
p++){t.push(r[p]);
}}else{for(var p=0;
r[p];
p++){t.push(r[p]);
}}}return t;
};
}var i;
if(document.documentElement.compareDocumentPosition){i=function(r,q){var p=r.compareDocumentPosition(q)&4?-1:r===q?0:1;
if(p===0){hasDuplicate=true;
}return p;
};
}else{if("sourceIndex" in document.documentElement){i=function(r,q){var p=r.sourceIndex-q.sourceIndex;
if(p===0){hasDuplicate=true;
}return p;
};
}else{if(document.createRange){i=function(r,t){var q=r.ownerDocument.createRange(),s=t.ownerDocument.createRange();
q.selectNode(r);
q.collapse(true);
s.selectNode(t);
s.collapse(true);
var p=q.compareBoundaryPoints(Range.START_TO_END,s);
if(p===0){hasDuplicate=true;
}return p;
};
}}}(function(){var r=document.createElement("form"),p="script"+(new Date).getTime();
r.innerHTML="<input name='"+p+"'/>";
var q=document.documentElement;
q.insertBefore(r,q.firstChild);
if(!!document.getElementById(p)){c.find.ID=function(u,v,s){if(typeof v.getElementById!=="undefined"&&!s){var t=v.getElementById(u[1]);
return t?t.id===u[1]||typeof t.getAttributeNode!=="undefined"&&t.getAttributeNode("id").nodeValue===u[1]?[t]:Y:[];
}};
c.filter.ID=function(u,t){var s=typeof u.getAttributeNode!=="undefined"&&u.getAttributeNode("id");
return u.nodeType===1&&s&&s.nodeValue===t;
};
}q.removeChild(r);
})();
(function(){var p=document.createElement("div");
p.appendChild(document.createComment(""));
if(p.getElementsByTagName("*").length>0){c.find.TAG=function(u,t){var s=t.getElementsByTagName(u[1]);
if(u[1]==="*"){var r=[];
for(var q=0;
s[q];
q++){if(s[q].nodeType===1){r.push(s[q]);
}}s=r;
}return s;
};
}p.innerHTML="<a href='#'></a>";
if(p.firstChild&&typeof p.firstChild.getAttribute!=="undefined"&&p.firstChild.getAttribute("href")!=="#"){c.attrHandle.href=function(q){return q.getAttribute("href",2);
};
}})();
if(document.querySelectorAll){(function(){var p=h,q=document.createElement("div");
q.innerHTML="<p class='TEST'></p>";
if(q.querySelectorAll&&q.querySelectorAll(".TEST").length===0){return;
}h=function(v,u,t,s){u=u||document;
if(!s&&u.nodeType===9&&!n(u)){try{return m(u.querySelectorAll(v),t);
}catch(r){}}return p(v,u,t,s);
};
h.find=p.find;
h.filter=p.filter;
h.selectors=p.selectors;
h.matches=p.matches;
})();
}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var p=document.createElement("div");
p.innerHTML="<div class='test e'></div><div class='test'></div>";
if(p.getElementsByClassName("e").length===0){return;
}p.lastChild.className="e";
if(p.getElementsByClassName("e").length===1){return;
}c.order.splice(1,0,"CLASS");
c.find.CLASS=function(s,q,r){if(typeof q.getElementsByClassName!=="undefined"&&!r){return q.getElementsByClassName(s[1]);
}};
})();
}function l(A,s,u,p,q,v){var r=A=="previousSibling"&&!v;
for(var y=0,w=p.length;
y<w;
y++){var z=p[y];
if(z){if(r&&z.nodeType===1){z.sizcache=u;
z.sizset=y;
}z=z[A];
var t=false;
while(z){if(z.sizcache===u){t=p[z.sizset];
break;
}if(z.nodeType===1&&!v){z.sizcache=u;
z.sizset=y;
}if(z.nodeName===s){t=z;
break;
}z=z[A];
}p[y]=t;
}}}function k(A,s,u,p,q,v){var r=A=="previousSibling"&&!v;
for(var y=0,w=p.length;
y<w;
y++){var z=p[y];
if(z){if(r&&z.nodeType===1){z.sizcache=u;
z.sizset=y;
}z=z[A];
var t=false;
while(z){if(z.sizcache===u){t=p[z.sizset];
break;
}if(z.nodeType===1){if(!v){z.sizcache=u;
z.sizset=y;
}if(typeof s!=="string"){if(z===s){t=true;
break;
}}else{if(h.filter(s,[z]).length>0){t=z;
break;
}}}z=z[A];
}p[y]=t;
}}}var a=document.compareDocumentPosition?function(q,p){return q.compareDocumentPosition(p)&16;
}:function(q,p){return q!==p&&(q.contains?q.contains(p):true);
};
var n=function(p){return p.nodeType===9&&p.documentElement.nodeName!=="HTML"||!!p.ownerDocument&&n(p.ownerDocument);
};
var o=function(v,p){var u=[],r="",s,t=p.nodeType?[p]:p;
while((s=c.match.PSEUDO.exec(v))){r+=s[0];
v=v.replace(c.match.PSEUDO,"");
}v=c.relative[v]?v+"*":v;
for(var q=0,w=t.length;
q<w;
q++){h(v,t[q],u);
}return h.filter(r,u);
};
R.find=h;
R.filter=h.filter;
R.expr=h.selectors;
R.expr[":"]=R.expr.filters;
h.selectors.filters.hidden=function(p){return p.offsetWidth===0||p.offsetHeight===0;
};
h.selectors.filters.visible=function(p){return p.offsetWidth>0||p.offsetHeight>0;
};
h.selectors.filters.animated=function(p){return R.grep(R.timers,function(q){return p===q.elem;
}).length;
};
R.multiFilter=function(p,q,r){if(r){p=":not("+p+")";
}return h.matches(p,q);
};
R.dir=function(p,s){var r=[],q=p[s];
while(q&&q!=document){if(q.nodeType==1){r.push(q);
}q=q[s];
}return r;
};
R.nth=function(r,s,q,p){s=s||1;
var t=0;
for(;
r;
r=r[q]){if(r.nodeType==1&&++t==s){break;
}}return r;
};
R.sibling=function(p,r){var q=[];
for(;
p;
p=p.nextSibling){if(p.nodeType==1&&p!=r){q.push(p);
}}return q;
};
return;
S.Sizzle=h;
})();
R.event={add:function(c,a,b,g){if(c.nodeType==3||c.nodeType==8){return;
}if(c.setInterval&&c!=S){c=S;
}if(!b.guid){b.guid=this.guid++;
}if(g!==Y){var d=b;
b=this.proxy(d);
b.data=g;
}var e=R.data(c,"events")||R.data(c,"events",{}),f=R.data(c,"handle")||R.data(c,"handle",function(){return typeof R!=="undefined"&&!R.event.triggered?R.event.handle.apply(arguments.callee.elem,arguments):Y;
});
f.elem=c;
R.each(a.split(/\s+/),function(k,h){var i=h.split(".");
h=i.shift();
b.type=i.slice().sort().join(".");
var j=e[h];
if(R.event.specialAll[h]){R.event.specialAll[h].setup.call(c,g,i);
}if(!j){j=e[h]={};
if(!R.event.special[h]||R.event.special[h].setup.call(c,g,i)===false){if(c.addEventListener){c.addEventListener(h,f,false);
}else{if(c.attachEvent){c.attachEvent("on"+h,f);
}}}}j[b.guid]=b;
R.event.global[h]=true;
});
c=null;
},guid:1,global:{},remove:function(a,b,h){if(a.nodeType==3||a.nodeType==8){return;
}var f=R.data(a,"events"),e,g;
if(f){if(b===Y||(typeof b==="string"&&b.charAt(0)==".")){for(var c in f){this.remove(a,c+(b||""));
}}else{if(b.type){h=b.handler;
b=b.type;
}R.each(b.split(/\s+/),function(m,k){var l=k.split(".");
k=l.shift();
var j=RegExp("(^|\\.)"+l.slice().sort().join(".*\\.")+"(\\.|$)");
if(f[k]){if(h){delete f[k][h.guid];
}else{for(var i in f[k]){if(j.test(f[k][i].type)){delete f[k][i];
}}}if(R.event.specialAll[k]){R.event.specialAll[k].teardown.call(a,l);
}for(e in f[k]){break;
}if(!e){if(!R.event.special[k]||R.event.special[k].teardown.call(a,l)===false){if(a.removeEventListener){a.removeEventListener(k,R.data(a,"handle"),false);
}else{if(a.detachEvent){a.detachEvent("on"+k,R.data(a,"handle"));
}}}e=null;
delete f[k];
}}});
}for(e in f){break;
}if(!e){var d=R.data(a,"handle");
if(d){d.elem=null;
}R.removeData(a,"events");
R.removeData(a,"handle");
}}},trigger:function(c,a,b,g){var f=c.type||c;
if(!g){c=typeof c==="object"?c[O]?c:R.extend(R.Event(f),c):R.Event(f);
if(f.indexOf("!")>=0){c.type=f=f.slice(0,-1);
c.exclusive=true;
}if(!b){c.stopPropagation();
if(this.global[f]){R.each(R.cache,function(){if(this.events&&this.events[f]){R.event.trigger(c,a,this.handle.elem);
}});
}}if(!b||b.nodeType==3||b.nodeType==8){return Y;
}c.result=Y;
c.target=b;
a=R.makeArray(a);
a.unshift(c);
}c.currentTarget=b;
var h=R.data(b,"handle");
if(h){h.apply(b,a);
}if((!b[f]||(R.nodeName(b,"a")&&f=="click"))&&b["on"+f]&&b["on"+f].apply(b,a)===false){c.result=false;
}if(!g&&b[f]&&!c.isDefaultPrevented()&&!(R.nodeName(b,"a")&&f=="click")){this.triggered=true;
try{b[f]();
}catch(d){}}this.triggered=false;
if(!c.isPropagationStopped()){var e=b.parentNode||b.ownerDocument;
if(e){R.event.trigger(c,a,e,true);
}}},handle:function(a){var h,g;
a=arguments[0]=R.event.fix(a||S.event);
a.currentTarget=this;
var d=a.type.split(".");
a.type=d.shift();
h=!d.length&&!a.exclusive;
var c=RegExp("(^|\\.)"+d.slice().sort().join(".*\\.")+"(\\.|$)");
g=(R.data(this,"events")||{})[a.type];
for(var f in g){var b=g[f];
if(h||c.test(b.type)){a.handler=b;
a.data=b.data;
var e=b.apply(this,arguments);
if(e!==Y){a.result=e;
if(e===false){a.preventDefault();
a.stopPropagation();
}}if(a.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[O]){return b;
}var a=b;
b=R.Event(a);
for(var c=this.props.length,f;
c;
){f=this.props[--c];
b[f]=a[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 e=document.documentElement,d=document.body;
b.pageX=b.clientX+(e&&e.scrollLeft||d&&d.scrollLeft||0)-(e.clientLeft||0);
b.pageY=b.clientY+(e&&e.scrollTop||d&&d.scrollTop||0)-(e.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(a,b){b=b||function(){return a.apply(this,arguments);
};
b.guid=a.guid=a.guid||b.guid||this.guid++;
return b;
},special:{ready:{setup:ab,teardown:function(){}}},specialAll:{live:{setup:function(b,a){R.event.add(this,a[0],V);
},teardown:function(b){if(b.length){var c=0,a=RegExp("(^|\\.)"+b[0]+"(\\.|$)");
R.each((R.data(this,"events").live||{}),function(){if(a.test(this.type)){c++;
}});
if(c<1){R.event.remove(this,b[0],V);
}}}}}};
R.Event=function(a){if(!this.preventDefault){return new R.Event(a);
}if(a&&a.type){this.originalEvent=a;
this.type=a.type;
}else{this.type=a;
}this.timeStamp=aa();
this[O]=true;
};
function N(){return false;
}function L(){return true;
}R.Event.prototype={preventDefault:function(){this.isDefaultPrevented=L;
var a=this.originalEvent;
if(!a){return;
}if(a.preventDefault){a.preventDefault();
}a.returnValue=false;
},stopPropagation:function(){this.isPropagationStopped=L;
var a=this.originalEvent;
if(!a){return;
}if(a.stopPropagation){a.stopPropagation();
}a.cancelBubble=true;
},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=L;
this.stopPropagation();
},isDefaultPrevented:N,isPropagationStopped:N,isImmediatePropagationStopped:N};
var W=function(a){var c=a.relatedTarget;
while(c&&c!=this){try{c=c.parentNode;
}catch(b){c=this;
}}if(c!=this){a.type=a.data;
R.event.handle.apply(this,arguments);
}};
R.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,b){R.event.special[b]={setup:function(){R.event.add(this,a,W,b);
},teardown:function(){R.event.remove(this,a,W);
}};
});
R.fn.extend({bind:function(a,b,c){return a=="unload"?this.one(a,b,c):this.each(function(){R.event.add(this,a,c||b,c&&b);
});
},one:function(b,a,c){var d=R.event.proxy(c||a,function(e){R(this).unbind(e,d);
return(c||a).apply(this,arguments);
});
return this.each(function(){R.event.add(this,b,d,c&&a);
});
},unbind:function(a,b){return this.each(function(){R.event.remove(this,a,b);
});
},trigger:function(b,a){return this.each(function(){R.event.trigger(b,a,this);
});
},triggerHandler:function(c,b){if(this[0]){var a=R.Event(c);
a.preventDefault();
a.stopPropagation();
R.event.trigger(a,b,this[0]);
return a.result;
}},toggle:function(b){var c=arguments,a=1;
while(a<c.length){R.event.proxy(b,c[a++]);
}return this.click(R.event.proxy(b,function(d){this.lastToggle=(this.lastToggle||0)%a;
d.preventDefault();
return c[this.lastToggle++].apply(this,arguments)||false;
}));
},hover:function(b,a){return this.mouseenter(b).mouseleave(a);
},ready:function(a){ab();
if(R.isReady){a.call(document,R);
}else{R.readyList.push(a);
}return this;
},live:function(b,a){var c=R.event.proxy(a);
c.guid+=this.selector+b;
R(document).bind(P(b,this.selector),this.selector,c);
return this;
},die:function(a,b){R(document).unbind(P(a,this.selector),b?{guid:b.guid+this.selector+a}:null);
return this;
}});
function V(b){var d=RegExp("(^|\\.)"+b.type+"(\\.|$)"),c=true,a=[];
R.each(R.data(this,"events").live||[],function(f,g){if(d.test(g.type)){var e=R(b.target).closest(g.data)[0];
if(e){a.push({elem:e,fn:g});
}}});
a.sort(function(f,e){return R.data(f.elem,"closest")-R.data(e.elem,"closest");
});
R.each(a,function(){if(this.fn.call(this.elem,b,this.fn.data)===false){return(c=false);
}});
return c;
}function P(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".");
}R.extend({isReady:false,readyList:[],ready:function(){if(!R.isReady){R.isReady=true;
if(R.readyList){R.each(R.readyList,function(){this.call(document,R);
});
R.readyList=null;
}R(document).triggerHandler("ready");
}}});
var ag=false;
function ab(){if(ag){return;
}ag=true;
if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);
R.ready();
},false);
}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);
R.ready();
}});
if(document.documentElement.doScroll&&S==S.top){(function(){if(R.isReady){return;
}try{document.documentElement.doScroll("left");
}catch(a){setTimeout(arguments.callee,0);
return;
}R.ready();
})();
}}}R.event.add(S,"load",R.ready);
}R.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(a,b){R.fn[b]=function(c){return c?this.bind(b,c):this.trigger(b);
};
});
R(S).bind("unload",function(){for(var a in R.cache){if(a!=1&&R.cache[a].handle){R.event.remove(R.cache[a].handle.elem);
}}});
(function(){R.support={};
var a=document.documentElement,b=document.createElement("script"),g=document.createElement("div"),f="script"+(new Date).getTime();
g.style.display="none";
g.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';
var e=g.getElementsByTagName("*"),d=g.getElementsByTagName("a")[0];
if(!e||!e.length||!d){return;
}R.support={leadingWhitespace:g.firstChild.nodeType==3,tbody:!g.getElementsByTagName("tbody").length,objectAll:!!g.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!g.getElementsByTagName("link").length,style:/red/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:d.style.opacity==="0.5",cssFloat:!!d.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};
b.type="text/javascript";
try{b.appendChild(document.createTextNode("window."+f+"=1;"));
}catch(c){}a.insertBefore(b,a.firstChild);
if(S[f]){R.support.scriptEval=true;
delete S[f];
}a.removeChild(b);
if(g.attachEvent&&g.fireEvent){g.attachEvent("onclick",function(){R.support.noCloneEvent=false;
g.detachEvent("onclick",arguments.callee);
});
g.cloneNode(true).fireEvent("onclick");
}R(function(){var h=document.createElement("div");
h.style.width=h.style.paddingLeft="1px";
document.body.appendChild(h);
R.boxModel=R.support.boxModel=h.offsetWidth===2;
document.body.removeChild(h).style.display="none";
});
})();
var J=R.support.cssFloat?"cssFloat":"styleFloat";
R.props={"for":"htmlFor","class":"className","float":J,cssFloat:J,styleFloat:J,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};
R.fn.extend({_load:R.fn.load,load:function(b,g,a){if(typeof b!=="string"){return this._load(b);
}var c=b.indexOf(" ");
if(c>=0){var d=b.slice(c,b.length);
b=b.slice(0,c);
}var f="GET";
if(g){if(R.isFunction(g)){a=g;
g=null;
}else{if(typeof g==="object"){g=R.param(g);
f="POST";
}}}var e=this;
R.ajax({url:b,type:f,dataType:"html",data:g,complete:function(i,h){if(h=="success"||h=="notmodified"){e.html(d?R("<div/>").append(i.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(d):i.responseText);
}if(a){e.each(a,[i.responseText,h,i]);
}}});
return this;
},serialize:function(){return R.param(this.serializeArray());
},serializeArray:function(){return this.map(function(){return this.elements?R.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(c,a){var b=R(this).val();
return b==null?null:R.isArray(b)?R.map(b,function(e,d){return{name:a.name,value:e};
}):{name:a.name,value:b};
}).get();
}});
R.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,a){R.fn[a]=function(c){return this.bind(a,c);
};
});
var E=aa();
R.extend({get:function(d,b,a,c){if(R.isFunction(b)){a=b;
b=null;
}return R.ajax({type:"GET",url:d,data:b,success:a,dataType:c});
},getScript:function(b,a){return R.get(b,null,a,"script");
},getJSON:function(c,a,b){return R.get(c,a,b,"json");
},post:function(d,b,a,c){if(R.isFunction(b)){a=b;
b={};
}return R.ajax({type:"POST",url:d,data:b,success:a,dataType:c});
},ajaxSetup:function(a){R.extend(R.ajaxSettings,a);
},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return S.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(p){p=R.extend(true,p,R.extend(true,{},R.ajaxSettings,p));
var f,q=/=\?(&|$)/g,a,e,r=p.type.toUpperCase();
if(p.data&&p.processData&&typeof p.data!=="string"){p.data=R.param(p.data);
}if(p.dataType=="jsonp"){if(r=="GET"){if(!p.url.match(q)){p.url+=(p.url.match(/\?/)?"&":"?")+(p.jsonp||"callback")+"=?";
}}else{if(!p.data||!p.data.match(q)){p.data=(p.data?p.data+"&":"")+(p.jsonp||"callback")+"=?";
}}p.dataType="json";
}if(p.dataType=="json"&&(p.data&&p.data.match(q)||p.url.match(q))){f="jsonp"+E++;
if(p.data){p.data=(p.data+"").replace(q,"="+f+"$1");
}p.url=p.url.replace(q,"="+f+"$1");
p.dataType="script";
S[f]=function(t){e=t;
l();
o();
S[f]=Y;
try{delete S[f];
}catch(u){}if(k){k.removeChild(g);
}};
}if(p.dataType=="script"&&p.cache==null){p.cache=false;
}if(p.cache===false&&r=="GET"){var s=aa();
var h=p.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+s+"$2");
p.url=h+((h==p.url)?(p.url.match(/\?/)?"&":"?")+"_="+s:"");
}if(p.data&&r=="GET"){p.url+=(p.url.match(/\?/)?"&":"?")+p.data;
p.data=null;
}if(p.global&&!R.active++){R.event.trigger("ajaxStart");
}var d=/^(\w+:)?\/\/([^\/?#]+)/.exec(p.url);
if(p.dataType=="script"&&r=="GET"&&d&&(d[1]&&d[1]!=location.protocol||d[2]!=location.host)){var k=document.getElementsByTagName("head")[0];
var g=document.createElement("script");
g.src=p.url;
if(p.scriptCharset){g.charset=p.scriptCharset;
}if(!f){var n=false;
g.onload=g.onreadystatechange=function(){if(!n&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){n=true;
l();
o();
g.onload=g.onreadystatechange=null;
k.removeChild(g);
}};
}k.appendChild(g);
return Y;
}var j=false;
var i=p.xhr();
if(p.username){i.open(r,p.url,p.async,p.username,p.password);
}else{i.open(r,p.url,p.async);
}try{if(p.data){i.setRequestHeader("Content-Type",p.contentType);
}if(p.ifModified){i.setRequestHeader("If-Modified-Since",R.lastModified[p.url]||"Thu, 01 Jan 1970 00:00:00 GMT");
}i.setRequestHeader("X-Requested-With","XMLHttpRequest");
i.setRequestHeader("Accept",p.dataType&&p.accepts[p.dataType]?p.accepts[p.dataType]+", */*":p.accepts._default);
}catch(b){}if(p.beforeSend&&p.beforeSend(i,p)===false){if(p.global&&!--R.active){R.event.trigger("ajaxStop");
}i.abort();
return false;
}if(p.global){R.event.trigger("ajaxSend",[i,p]);
}var m=function(u){if(i.readyState==0){if(c){clearInterval(c);
c=null;
if(p.global&&!--R.active){R.event.trigger("ajaxStop");
}}}else{if(!j&&i&&(i.readyState==4||u=="timeout")){j=true;
if(c){clearInterval(c);
c=null;
}a=u=="timeout"?"timeout":!R.httpSuccess(i)?"error":p.ifModified&&R.httpNotModified(i,p.url)?"notmodified":"success";
if(a=="success"){try{e=R.httpData(i,p.dataType,p);
}catch(t){a="parsererror";
}}if(a=="success"){var v;
try{v=i.getResponseHeader("Last-Modified");
}catch(t){}if(p.ifModified&&v){R.lastModified[p.url]=v;
}if(!f){l();
}}else{R.handleError(p,i,a);
}o();
if(u){i.abort();
}if(p.async){i=null;
}}}};
if(p.async){var c=setInterval(m,13);
if(p.timeout>0){setTimeout(function(){if(i&&!j){m("timeout");
}},p.timeout);
}}try{i.send(p.data);
}catch(b){R.handleError(p,i,null,b);
}if(!p.async){m();
}function l(){if(p.success){p.success(e,a);
}if(p.global){R.event.trigger("ajaxSuccess",[i,p]);
}}function o(){if(p.complete){p.complete(i,a);
}if(p.global){R.event.trigger("ajaxComplete",[i,p]);
}if(p.global&&!--R.active){R.event.trigger("ajaxStop");
}}return i;
},handleError:function(a,b,d,c){if(a.error){a.error(b,d,c);
}if(a.global){R.event.trigger("ajaxError",[b,a,c]);
}},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 a=b.getResponseHeader("Last-Modified");
return b.status==304||a==R.lastModified[d];
}catch(c){}return false;
},httpData:function(f,b,c){var a=f.getResponseHeader("content-type"),d=b=="xml"||!b&&a&&a.indexOf("xml")>=0,e=d?f.responseXML:f.responseText;
if(d&&e.documentElement.tagName=="parsererror"){throw"parsererror";
}if(c&&c.dataFilter){e=c.dataFilter(e,b);
}if(typeof e==="string"){if(b=="script"){R.globalEval(e);
}if(b=="json"){e=S["eval"]("("+e+")");
}}return e;
},param:function(d){var b=[];
function a(e,f){b[b.length]=encodeURIComponent(e)+"="+encodeURIComponent(f);
}if(R.isArray(d)||d.jquery){R.each(d,function(){a(this.name,this.value);
});
}else{for(var c in d){if(R.isArray(d[c])){R.each(d[c],function(){a(c,this);
});
}else{a(c,R.isFunction(d[c])?d[c]():d[c]);
}}}return b.join("&").replace(/%20/g,"+");
}});
var T={},Q,Z=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];
function K(a,c){var b={};
R.each(Z.concat.apply([],Z.slice(0,c)),function(){b[this]=a;
});
return b;
}R.fn.extend({show:function(h,d){if(h){return this.animate(K("show",3),h,d);
}else{for(var b=0,e=this.length;
b<e;
b++){var g=R.data(this[b],"olddisplay");
this[b].style.display=g||"";
if(R.css(this[b],"display")==="none"){var f=this[b].tagName,a;
if(T[f]){a=T[f];
}else{var c=R("<"+f+" />").appendTo("body");
a=c.css("display");
if(a==="none"){a="block";
}c.remove();
T[f]=a;
}R.data(this[b],"olddisplay",a);
}}for(var b=0,e=this.length;
b<e;
b++){this[b].style.display=R.data(this[b],"olddisplay")||"";
}return this;
}},hide:function(b,c){if(b){return this.animate(K("hide",3),b,c);
}else{for(var d=0,a=this.length;
d<a;
d++){var e=R.data(this[d],"olddisplay");
if(!e&&e!=="none"){R.data(this[d],"olddisplay",R.css(this[d],"display"));
}}for(var d=0,a=this.length;
d<a;
d++){this[d].style.display="none";
}return this;
}},_toggle:R.fn.toggle,toggle:function(b,a){var c=typeof b==="boolean";
return R.isFunction(b)&&R.isFunction(a)?this._toggle.apply(this,arguments):b==null||c?this.each(function(){var d=c?b:R(this).is(":hidden");
R(this)[d?"show":"hide"]();
}):this.animate(K("toggle",3),b,a);
},fadeTo:function(c,b,a){return this.animate({opacity:b},c,a);
},animate:function(c,a,b,d){var e=R.speed(a,b,d);
return this[e.queue===false?"each":"queue"](function(){var f=R.extend({},e),h,g=this.nodeType==1&&R(this).is(":hidden"),i=this;
for(h in c){if(c[h]=="hide"&&g||c[h]=="show"&&!g){return f.complete.call(this);
}if((h=="height"||h=="width")&&this.style){f.display=R.css(this,"display");
f.overflow=this.style.overflow;
}}if(f.overflow!=null){this.style.overflow="hidden";
}f.curAnim=R.extend({},c);
R.each(c,function(n,m){var l=new R.fx(i,f,n);
if(/toggle|show|hide/.test(m)){l[m=="toggle"?g?"show":"hide":m](c);
}else{var o=m.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),p=l.cur(true)||0;
if(o){var k=parseFloat(o[2]),j=o[3]||"px";
if(j!="px"){i.style[n]=(k||1)+j;
p=((k||1)/l.cur(true))*p;
i.style[n]=p+j;
}if(o[1]){k=((o[1]=="-="?-1:1)*k)+p;
}l.custom(p,k,j);
}else{l.custom(p,m,"");
}}});
return true;
});
},stop:function(a,c){var b=R.timers;
if(a){this.queue([]);
}this.each(function(){for(var d=b.length-1;
d>=0;
d--){if(b[d].elem==this){if(c){b[d](true);
}b.splice(d,1);
}}});
if(!c){this.dequeue();
}return this;
}});
R.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,a){R.fn[b]=function(d,c){return this.animate(a,d,c);
};
});
R.extend({speed:function(b,a,c){var d=typeof b==="object"?b:{complete:c||!c&&a||R.isFunction(b)&&b,duration:b,easing:c&&a||a&&!R.isFunction(a)&&a};
d.duration=R.fx.off?0:typeof d.duration==="number"?d.duration:R.fx.speeds[d.duration]||R.fx.speeds._default;
d.old=d.complete;
d.complete=function(){if(d.queue!==false){R(this).dequeue();
}if(R.isFunction(d.old)){d.old.call(this);
}};
return d;
},easing:{linear:function(b,a,d,c){return d+c*b;
},swing:function(b,a,d,c){return((-Math.cos(b*Math.PI)/2)+0.5)*c+d;
}},timers:[],fx:function(a,c,b){this.options=c;
this.elem=a;
this.prop=b;
if(!c.orig){c.orig={};
}}});
R.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this);
}(R.fx.step[this.prop]||R.fx.step._default)(this);
if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block";
}},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop];
}var b=parseFloat(R.css(this.elem,this.prop,a));
return b&&b>-10000?b:parseFloat(R.curCSS(this.elem,this.prop))||0;
},custom:function(c,b,d){this.startTime=aa();
this.start=c;
this.end=b;
this.unit=d||this.unit||"px";
this.now=this.start;
this.pos=this.state=0;
var e=this;
function a(f){return e.step(f);
}a.elem=this.elem;
if(a()&&R.timers.push(a)&&!Q){Q=setInterval(function(){var f=R.timers;
for(var g=0;
g<f.length;
g++){if(!f[g]()){f.splice(g--,1);
}}if(!f.length){clearInterval(Q);
Q=Y;
}},13);
}},show:function(){this.options.orig[this.prop]=R.attr(this.elem.style,this.prop);
this.options.show=true;
this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());
R(this.elem).show();
},hide:function(){this.options.orig[this.prop]=R.attr(this.elem.style,this.prop);
this.options.hide=true;
this.custom(this.cur(),0);
},step:function(b){var c=aa();
if(b||c>=this.options.duration+this.startTime){this.now=this.end;
this.pos=this.state=1;
this.update();
this.options.curAnim[this.prop]=true;
var d=true;
for(var a in this.options.curAnim){if(this.options.curAnim[a]!==true){d=false;
}}if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;
this.elem.style.display=this.options.display;
if(R.css(this.elem,"display")=="none"){this.elem.style.display="block";
}}if(this.options.hide){R(this.elem).hide();
}if(this.options.hide||this.options.show){for(var f in this.options.curAnim){R.attr(this.elem.style,f,this.options.orig[f]);
}}this.options.complete.call(this.elem);
}return false;
}else{var e=c-this.startTime;
this.state=e/this.options.duration;
this.pos=R.easing[this.options.easing||(R.easing.swing?"swing":"linear")](this.state,e,0,1,this.options.duration);
this.now=this.start+((this.end-this.start)*this.pos);
this.update();
}return true;
}};
R.extend(R.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){R.attr(a.elem.style,"opacity",a.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){R.fn.offset=function(){if(!this[0]){return{top:0,left:0};
}if(this[0]===this[0].ownerDocument.body){return R.offset.bodyOffset(this[0]);
}var f=this[0].getBoundingClientRect(),h=this[0].ownerDocument,e=h.body,g=h.documentElement,d=g.clientTop||e.clientTop||0,a=g.clientLeft||e.clientLeft||0,c=f.top+(self.pageYOffset||R.boxModel&&g.scrollTop||e.scrollTop)-d,b=f.left+(self.pageXOffset||R.boxModel&&g.scrollLeft||e.scrollLeft)-a;
return{top:c,left:b};
};
}else{R.fn.offset=function(){if(!this[0]){return{top:0,left:0};
}if(this[0]===this[0].ownerDocument.body){return R.offset.bodyOffset(this[0]);
}R.offset.initialized||R.offset.initialize();
var k=this[0],i=k.offsetParent,h=k,e=k.ownerDocument,g,b=e.documentElement,a=e.body,f=e.defaultView,j=f.getComputedStyle(k,null),d=k.offsetTop,c=k.offsetLeft;
while((k=k.parentNode)&&k!==a&&k!==b){g=f.getComputedStyle(k,null);
d-=k.scrollTop,c-=k.scrollLeft;
if(k===i){d+=k.offsetTop,c+=k.offsetLeft;
if(R.offset.doesNotAddBorder&&!(R.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(k.tagName))){d+=parseInt(g.borderTopWidth,10)||0,c+=parseInt(g.borderLeftWidth,10)||0;
}h=i,i=k.offsetParent;
}if(R.offset.subtractsBorderForOverflowNotVisible&&g.overflow!=="visible"){d+=parseInt(g.borderTopWidth,10)||0,c+=parseInt(g.borderLeftWidth,10)||0;
}j=g;
}if(j.position==="relative"||j.position==="static"){d+=a.offsetTop,c+=a.offsetLeft;
}if(j.position==="fixed"){d+=Math.max(b.scrollTop,a.scrollTop),c+=Math.max(b.scrollLeft,a.scrollLeft);
}return{top:d,left:c};
};
}R.offset={initialize:function(){if(this.initialized){return;
}var e=document.body,g=document.createElement("div"),b,h,d,c,f,i,j=e.style.marginTop,a='<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>';
f={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};
for(i in f){g.style[i]=f[i];
}g.innerHTML=a;
e.insertBefore(g,e.firstChild);
b=g.firstChild,h=b.firstChild,c=b.nextSibling.firstChild.firstChild;
this.doesNotAddBorder=(h.offsetTop!==5);
this.doesAddBorderForTableAndCells=(c.offsetTop===5);
b.style.overflow="hidden",b.style.position="relative";
this.subtractsBorderForOverflowNotVisible=(h.offsetTop===-5);
e.style.marginTop="1px";
this.doesNotIncludeMarginInBodyOffset=(e.offsetTop===0);
e.style.marginTop=j;
e.removeChild(g);
this.initialized=true;
},bodyOffset:function(c){R.offset.initialized||R.offset.initialize();
var b=c.offsetTop,a=c.offsetLeft;
if(R.offset.doesNotIncludeMarginInBodyOffset){b+=parseInt(R.curCSS(c,"marginTop",true),10)||0,a+=parseInt(R.curCSS(c,"marginLeft",true),10)||0;
}return{top:b,left:a};
}};
R.fn.extend({position:function(){var c=0,b=0,a;
if(this[0]){var d=this.offsetParent(),f=this.offset(),e=/^body|html$/i.test(d[0].tagName)?{top:0,left:0}:d.offset();
f.top-=M(this,"marginTop");
f.left-=M(this,"marginLeft");
e.top+=M(d,"borderTopWidth");
e.left+=M(d,"borderLeftWidth");
a={top:f.top-e.top,left:f.left-e.left};
}return a;
},offsetParent:function(){var a=this[0].offsetParent||document.body;
while(a&&(!/^body|html$/i.test(a.tagName)&&R.css(a,"position")=="static")){a=a.offsetParent;
}return R(a);
}});
R.each(["Left","Top"],function(a,c){var b="scroll"+c;
R.fn[b]=function(d){if(!this[0]){return null;
}return d!==Y?this.each(function(){this==S||this==document?S.scrollTo(!a?d:R(S).scrollLeft(),a?d:R(S).scrollTop()):this[b]=d;
}):this[0]==S||this[0]==document?self[a?"pageYOffset":"pageXOffset"]||R.boxModel&&document.documentElement[b]||document.body[b]:this[0][b];
};
});
R.each(["Height","Width"],function(c,b){var d=c?"Left":"Top",a=c?"Right":"Bottom",e=b.toLowerCase();
R.fn["inner"+b]=function(){return this[0]?R.css(this[0],e,false,"padding"):null;
};
R.fn["outer"+b]=function(g){return this[0]?R.css(this[0],e,false,g?"margin":"border"):null;
};
var f=b.toLowerCase();
R.fn[f]=function(g){return this[0]==S?document.compatMode=="CSS1Compat"&&document.documentElement["client"+b]||document.body["client"+b]:this[0]==document?Math.max(document.documentElement["client"+b],document.body["scroll"+b],document.documentElement["scroll"+b],document.body["offset"+b],document.documentElement["offset"+b]):g===Y?(this.length?R.css(this[0],f):null):this.css(f,typeof g==="string"?g:g+"px");
};
});
})();
if(document.all&&document.styleSheets&&document.styleSheets[0]&&document.styleSheets[0].addRule){document.styleSheets[0].addRule("#headerBg","behavior: url(/img/iepngfix/iepngfix.htc)");
document.styleSheets[0].addRule("img.fixedPng","behavior: url(/img/iepngfix/iepngfix.htc)");
}jQuery.fn.outerHtml=function(a){return(a)?this.before(a).remove():jQuery(document.createElement("p")).append(this.eq(0).clone()).html();
};
$.ajaxSetup({type:"POST",contentType:"application/x-www-form-urlencoded; charset=UTF-8"});
$(function(){if($("#mainMenu").length>0){$("#mainMenu").rb_menu();
}});
function isNumberKey(a){if(a>=48&&a<=57){return true;
}return false;
}function addCommas(b){b+="";
x=b.split(".");
x1=x[0];
x2=x.length>1?"."+x[1]:"";
var a=/(\d+)(\d{3})/;
while(a.test(x1)){x1=x1.replace(a,"$1,$2");
}return x1+x2;
}function onlyEnglish(){if((window.event.keyCode>=48&&window.event.keyCode<=57)||(window.event.keyCode>=65&&window.event.keyCode<=90)||(window.event.keyCode>=97&&window.event.keyCode<=122)||(window.event.keyCode==45)){return true;
}else{alert("กรุณใส่เฉพาะภาษาอังกฤษ, ตัวเลข, หรือ - เท่านั้น (A-Z, a-z, 0-9, หรือ -)");
return false;
}}function closeWindow(){window.open("","_self","");
window.close();
}function defaultButton(a,d){var b=a?a:window.event;
var c=document.getElementById(d);
if(c){if(b.keyCode==13){c.click();
return false;
}}}function showProps(b,d){var c="";
for(var a in b){c+=d+"."+a+" = "+b[a]+"\n";
}return c;
}function limitChars(a,f,c){var b=a.value;
var e=b.length;
var d=document.getElementById(c);
if(e>f){d.innerHTML="คุณไม่สามารถเขียนมากกว่า "+f+" ตัวอักษร!";
a.value=b.substr(0,f);
return false;
}else{d.innerHTML="คุณสามารถเขียนได้อีก "+(f-e)+" ตัวอักษร";
return true;
}}function validateLength(b,a){if($(b).val().length>=a){return true;
}else{alert("กรุณาใส่ตัวอักษรอย่างน้อย "+a+" ตัวอักษร");
return false;
}}(function(a){a.fn.fixOverflow=function(){if(a.browser.msie){return this.each(function(){if(this.scrollWidth>this.offsetWidth){a(this).css({"padding-bottom":"20px","overflow-y":"hidden"});
}});
}else{return this;
}};
})(jQuery);
function thailandpost_alpha(b){var a=b.charCode?b.charCode:b.keyCode;
var c;
switch(a){case 13:c=13;
break;
case 48:c=48;
break;
case 3671:c=48;
break;
case 49:c=49;
break;
case 43:c=49;
break;
case 50:c=50;
break;
case 3665:c=50;
break;
case 51:c=51;
break;
case 3666:c=51;
break;
case 52:c=52;
break;
case 3667:c=52;
break;
case 53:c=53;
break;
case 3668:c=53;
break;
case 54:c=54;
break;
case 3641:c=54;
break;
case 55:c=55;
break;
case 3647:c=55;
break;
case 56:c=56;
break;
case 3669:c=56;
break;
case 57:c=57;
break;
case 3670:c=57;
break;
case 3592:c=48;
break;
case 3653:c=49;
break;
case 47:c=50;
break;
case 45:c=51;
break;
case 3616:c=52;
break;
case 3606:c=53;
break;
case 3640:c=54;
break;
case 3638:c=55;
break;
case 3588:c=56;
break;
case 3605:c=57;
break;
case 3615:c=65;
break;
case 3620:c=65;
break;
case 3636:c=66;
break;
case 3642:c=66;
break;
case 3649:c=67;
break;
case 3593:c=67;
break;
case 3585:c=68;
break;
case 3599:c=68;
break;
case 3635:c=69;
break;
case 3598:c=69;
break;
case 3604:c=70;
break;
case 3650:c=70;
break;
case 3648:c=71;
break;
case 3596:c=71;
break;
case 3657:c=72;
break;
case 3655:c=72;
break;
case 3619:c=73;
break;
case 3603:c=73;
break;
case 3656:c=74;
break;
case 3659:c=74;
break;
case 3634:c=75;
break;
case 3625:c=75;
break;
case 3626:c=76;
break;
case 3624:c=76;
break;
case 3607:c=77;
break;
case 63:c=77;
break;
case 3639:c=78;
break;
case 3660:c=78;
break;
case 3609:c=79;
break;
case 3631:c=79;
break;
case 3618:c=80;
break;
case 3597:c=80;
break;
case 3654:c=81;
break;
case 3664:c=81;
break;
case 3614:c=82;
break;
case 3601:c=82;
break;
case 3627:c=83;
break;
case 3590:c=83;
break;
case 3632:c=84;
break;
case 3608:c=84;
break;
case 3637:c=85;
break;
case 3658:c=85;
break;
case 3629:c=86;
break;
case 3630:c=86;
break;
case 3652:c=87;
break;
case 34:c=87;
break;
case 3611:c=88;
break;
case 41:c=88;
break;
case 3633:c=89;
break;
case 3661:c=89;
break;
case 3612:c=90;
break;
case 40:c=90;
break;
case 97:c=65;
break;
case 98:c=66;
break;
case 99:c=67;
break;
case 100:c=68;
break;
case 101:c=69;
break;
case 102:c=70;
break;
case 103:c=71;
break;
case 104:c=72;
break;
case 105:c=73;
break;
case 106:c=74;
break;
case 107:c=75;
break;
case 108:c=76;
break;
case 109:c=77;
break;
case 110:c=78;
break;
case 111:c=79;
break;
case 112:c=80;
break;
case 113:c=81;
break;
case 114:c=82;
break;
case 115:c=83;
break;
case 116:c=84;
break;
case 117:c=85;
break;
case 118:c=86;
break;
case 119:c=87;
break;
case 120:c=88;
break;
case 121:c=89;
break;
case 122:c=90;
break;
case 65:c=65;
break;
case 66:c=66;
break;
case 67:c=67;
break;
case 68:c=68;
break;
case 69:c=69;
break;
case 70:c=70;
break;
case 71:c=71;
break;
case 72:c=72;
break;
case 73:c=73;
break;
case 74:c=74;
break;
case 75:c=75;
break;
case 76:c=76;
break;
case 77:c=77;
break;
case 78:c=78;
break;
case 79:c=79;
break;
case 80:c=80;
break;
case 81:c=81;
break;
case 82:c=82;
break;
case 83:c=83;
break;
case 84:c=84;
break;
case 85:c=85;
break;
case 86:c=86;
break;
case 87:c=87;
break;
case 88:c=88;
break;
case 89:c=89;
break;
case 90:c=90;
break;
default:c=0;
}return(b.charCode?b.charCode=c:b.keyCode=c);
}(function(b){b.ifixpng=function(c){b.ifixpng.pixel=c;
};
b.ifixpng.getPixel=function(){return b.ifixpng.pixel||"images/pixel.gif";
};
var a={ltie7:b.browser.msie&&b.browser.version<7,filter:function(c){return"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+c+"')";
}};
b.fn.ifixpng=a.ltie7?function(){return this.each(function(){var e=b(this);
var f=b("base").attr("href");
if(f){f=f.replace(/\/[^\/]+$/,"/");
}if(e.is("img")||e.is("input")){if(e.attr("src")){if(e.attr("src").match(/.*\.png([?].*)?$/i)){var c=(f&&e.attr("src").search(/^(\/|http:)/i))?f+e.attr("src"):e.attr("src");
e.css({filter:a.filter(c),width:e.width(),height:e.height()}).attr({src:b.ifixpng.getPixel()}).positionFix();
}}}else{var d=e.css("backgroundImage");
if(d.match(/^url\(["']?(.*\.png([?].*)?)["']?\)$/i)){d=RegExp.$1;
d=(f&&d.substring(0,1)!="/")?f+d:d;
e.css({backgroundImage:"none",filter:a.filter(d)}).children().children().positionFix();
}}});
}:function(){return this;
};
b.fn.iunfixpng=a.ltie7?function(){return this.each(function(){var c=b(this);
var d=c.css("filter");
if(d.match(/src=["']?(.*\.png([?].*)?)["']?/i)){d=RegExp.$1;
if(c.is("img")||c.is("input")){c.attr({src:d}).css({filter:""});
}else{c.css({filter:"",background:"url("+d+")"});
}}});
}:function(){return this;
};
b.fn.positionFix=function(){return this.each(function(){var d=b(this);
var c=d.css("position");
if(c!="absolute"&&c!="relative"){d.css({position:"relative"});
}});
};
})(jQuery);
jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,g,h,a){return jQuery.easing[jQuery.easing.def](e,f,g,h,a);
},easeInQuad:function(e,f,g,h,a){return h*(f/=a)*f+g;
},easeOutQuad:function(e,f,g,h,a){return -h*(f/=a)*(f-2)+g;
},easeInOutQuad:function(e,f,g,h,a){if((f/=a/2)<1){return h/2*f*f+g;
}return -h/2*((--f)*(f-2)-1)+g;
},easeInCubic:function(e,f,g,h,a){return h*(f/=a)*f*f+g;
},easeOutCubic:function(e,f,g,h,a){return h*((f=f/a-1)*f*f+1)+g;
},easeInOutCubic:function(e,f,g,h,a){if((f/=a/2)<1){return h/2*f*f*f+g;
}return h/2*((f-=2)*f*f+2)+g;
},easeInQuart:function(e,f,g,h,a){return h*(f/=a)*f*f*f+g;
},easeOutQuart:function(e,f,g,h,a){return -h*((f=f/a-1)*f*f*f-1)+g;
},easeInOutQuart:function(e,f,g,h,a){if((f/=a/2)<1){return h/2*f*f*f*f+g;
}return -h/2*((f-=2)*f*f*f-2)+g;
},easeInQuint:function(e,f,g,h,a){return h*(f/=a)*f*f*f*f+g;
},easeOutQuint:function(e,f,g,h,a){return h*((f=f/a-1)*f*f*f*f+1)+g;
},easeInOutQuint:function(e,f,g,h,a){if((f/=a/2)<1){return h/2*f*f*f*f*f+g;
}return h/2*((f-=2)*f*f*f*f+2)+g;
},easeInSine:function(e,f,g,h,a){return -h*Math.cos(f/a*(Math.PI/2))+h+g;
},easeOutSine:function(e,f,g,h,a){return h*Math.sin(f/a*(Math.PI/2))+g;
},easeInOutSine:function(e,f,g,h,a){return -h/2*(Math.cos(Math.PI*f/a)-1)+g;
},easeInExpo:function(e,f,g,h,a){return(f==0)?g:h*Math.pow(2,10*(f/a-1))+g;
},easeOutExpo:function(e,f,g,h,a){return(f==a)?g+h:h*(-Math.pow(2,-10*f/a)+1)+g;
},easeInOutExpo:function(e,f,g,h,a){if(f==0){return g;
}if(f==a){return g+h;
}if((f/=a/2)<1){return h/2*Math.pow(2,10*(f-1))+g;
}return h/2*(-Math.pow(2,-10*--f)+2)+g;
},easeInCirc:function(e,f,g,h,a){return -h*(Math.sqrt(1-(f/=a)*f)-1)+g;
},easeOutCirc:function(e,f,g,h,a){return h*Math.sqrt(1-(f=f/a-1)*f)+g;
},easeInOutCirc:function(e,f,g,h,a){if((f/=a/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+g;
}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+g;
},easeInElastic:function(k,g,h,i,l){var e=1.70158;
var f=0;
var j=i;
if(g==0){return h;
}if((g/=l)==1){return h+i;
}if(!f){f=l*0.3;
}if(j<Math.abs(i)){j=i;
var e=f/4;
}else{var e=f/(2*Math.PI)*Math.asin(i/j);
}return -(j*Math.pow(2,10*(g-=1))*Math.sin((g*l-e)*(2*Math.PI)/f))+h;
},easeOutElastic:function(k,g,h,i,l){var e=1.70158;
var f=0;
var j=i;
if(g==0){return h;
}if((g/=l)==1){return h+i;
}if(!f){f=l*0.3;
}if(j<Math.abs(i)){j=i;
var e=f/4;
}else{var e=f/(2*Math.PI)*Math.asin(i/j);
}return j*Math.pow(2,-10*g)*Math.sin((g*l-e)*(2*Math.PI)/f)+i+h;
},easeInOutElastic:function(k,g,h,i,l){var e=1.70158;
var f=0;
var j=i;
if(g==0){return h;
}if((g/=l/2)==2){return h+i;
}if(!f){f=l*(0.3*1.5);
}if(j<Math.abs(i)){j=i;
var e=f/4;
}else{var e=f/(2*Math.PI)*Math.asin(i/j);
}if(g<1){return -0.5*(j*Math.pow(2,10*(g-=1))*Math.sin((g*l-e)*(2*Math.PI)/f))+h;
}return j*Math.pow(2,-10*(g-=1))*Math.sin((g*l-e)*(2*Math.PI)/f)*0.5+i+h;
},easeInBack:function(f,g,h,i,a,e){if(e==undefined){e=1.70158;
}return i*(g/=a)*g*((e+1)*g-e)+h;
},easeOutBack:function(f,g,h,i,a,e){if(e==undefined){e=1.70158;
}return i*((g=g/a-1)*g*((e+1)*g+e)+1)+h;
},easeInOutBack:function(f,g,h,i,a,e){if(e==undefined){e=1.70158;
}if((g/=a/2)<1){return i/2*(g*g*(((e*=(1.525))+1)*g-e))+h;
}return i/2*((g-=2)*g*(((e*=(1.525))+1)*g+e)+2)+h;
},easeInBounce:function(e,f,g,h,a){return h-jQuery.easing.easeOutBounce(e,a-f,0,h,a)+g;
},easeOutBounce:function(e,f,g,h,a){if((f/=a)<(1/2.75)){return h*(7.5625*f*f)+g;
}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+g;
}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+g;
}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+g;
}}}},easeInOutBounce:function(e,f,g,h,a){if(f<a/2){return jQuery.easing.easeInBounce(e,f*2,0,h,a)*0.5+g;
}return jQuery.easing.easeOutBounce(e,f*2-a,0,h,a)*0.5+h*0.5+g;
}});
(function(b){b.dimensions={version:"1.2"};
b.each(["Height","Width"],function(c,d){b.fn["inner"+d]=function(){if(!this[0]){return;
}var f=d=="Height"?"Top":"Left",e=d=="Height"?"Bottom":"Right";
return this.is(":visible")?this[0]["client"+d]:a(this,d.toLowerCase())+a(this,"padding"+f)+a(this,"padding"+e);
};
b.fn["outer"+d]=function(e){if(!this[0]){return;
}var h=d=="Height"?"Top":"Left",f=d=="Height"?"Bottom":"Right";
e=b.extend({margin:false},e||{});
var g=this.is(":visible")?this[0]["offset"+d]:a(this,d.toLowerCase())+a(this,"border"+h+"Width")+a(this,"border"+f+"Width")+a(this,"padding"+h)+a(this,"padding"+f);
return g+(e.margin?(a(this,"margin"+h)+a(this,"margin"+f)):0);
};
});
b.each(["Left","Top"],function(c,d){b.fn["scroll"+d]=function(e){if(!this[0]){return;
}return e!=undefined?this.each(function(){this==window||this==document?window.scrollTo(d=="Left"?e:b(window)["scrollLeft"](),d=="Top"?e:b(window)["scrollTop"]()):this["scroll"+d]=e;
}):this[0]==window||this[0]==document?self[(d=="Left"?"pageXOffset":"pageYOffset")]||b.boxModel&&document.documentElement["scroll"+d]||document.body["scroll"+d]:this[0]["scroll"+d];
};
});
b.fn.extend({position:function(){var d=0,f=0,e=this[0],c,i,g,h;
if(e){g=this.offsetParent();
c=this.offset();
i=g.offset();
c.top-=a(e,"marginTop");
c.left-=a(e,"marginLeft");
i.top+=a(g,"borderTopWidth");
i.left+=a(g,"borderLeftWidth");
h={top:c.top-i.top,left:c.left-i.left};
}return h;
},offsetParent:function(){var c=this[0].offsetParent;
while(c&&(!/^body|html$/i.test(c.tagName)&&b.css(c,"position")=="static")){c=c.offsetParent;
}return b(c);
}});
function a(c,d){return parseInt(b.curCSS(c.jquery?c[0]:c,d,true))||0;
}})(jQuery);
var queryObject=function(e,c){var b=this;
b.keys={};
b.destructive=c===true?true:false;
if(e.queryObject){jQuery.each(e.keys,function(a,f){b.destructiveSet(a,f);
});
}else{var d=""+e;
d=d.replace(/^\?/,"");
d=d.replace(/\&$/,"");
jQuery.each(d.split("&"),function(){var a=this.split("=")[0];
var f=this.split("=")[1];
if(/^[0-9.]+$/.test(f)){f=parseFloat(f);
}else{if(/^[0-9]+$/.test(f)){f=parseInt(f);
}}b.destructiveSet(a,f);
});
}return b;
};
queryObject.prototype={queryObject:true,get:function(a){return this.keys[a];
},destructiveSet:function(a,b){if(b==undefined||b===null){this.destructiveRemove(a);
}else{this[a]=this.keys[a]=b;
}return this;
},set:function(a,c,d){var b=((d===true?true:this.destructive)===true)?this:this.copy();
return b.destructiveSet(a,c);
},destructiveRemove:function(a){if(typeof this.keys[a]!="undefined"){delete this.keys[a];
delete this[a];
}return this;
},remove:function(a,c){var b=((c===true?true:this.destructive)===true)?this:this.copy();
return b.destructiveRemove(a);
},destructiveEmpty:function(){var a=this;
jQuery.each(a.keys,function(b,c){delete a.keys[b];
delete a[b];
});
return a;
},copy:function(){return new queryObject(this);
},empty:function(b){var a=((b===true?true:this.destructive)===true)?this:this.copy();
return a.destructiveEmpty();
},toString:function(){var a=0,b=[];
jQuery.each(this.keys,function(c,e){var d=[];
if(e!==false){if(a++==0){d.push("?");
}d.push(c);
if(e!==true){d.push("=");
d.push(encodeURIComponent(e));
}}b.push(d.join(""));
});
return b.join("&");
}};
jQuery.query=new queryObject(location.search);
function setQString(c,d){var e=getQString(c);
c=c.replace(e,"");
var a=new queryObject(e);
for(var b=0;
b<d.length;
++b){a.set(d[b].key,d[b].value,true);
}c+=a.toString();
return c;
}function getQString(a,b){var c=a.indexOf("?");
var d="";
if(c>-1){if(b===true){c++;
}d=a.substring(c);
}return d;
}function getUrlNoQString(a){var b=a.indexOf("?");
if(b>-1){return a.substring(b);
}return a;
}(function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(type,name){this.defaults.type=type;
this.defaults.name=name;
},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);
if(!settings.single.length){settings.single="metadata";
}var data=$.data(elem,settings.single);
if(data){return data;
}data="{}";
var getData=function(data){if(typeof data!="string"){return data;
}if(data.indexOf("{")<0){data=eval("("+data+")");
}};
var getObject=function(data){if(typeof data!="string"){return data;
}data=eval("("+data+")");
return data;
};
if(settings.type=="html5"){var object={};
$(elem.attributes).each(function(){var name=this.nodeName;
if(name.match(/^data-/)){name=name.replace(/^data-/,"");
}else{return true;
}object[name]=getObject(this.nodeValue);
});
}else{if(settings.type=="class"){var m=settings.cre.exec(elem.className);
if(m){data=m[1];
}}else{if(settings.type=="elem"){if(!elem.getElementsByTagName){return;
}var e=elem.getElementsByTagName(settings.name);
if(e.length){data=$.trim(e[0].innerHTML);
}}else{if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);
if(attr){data=attr;
}}}}object=getObject(data.indexOf("{")<0?"{"+data+"}":data);
}$.data(elem,settings.single,object);
return object;
}}});
$.fn.metadata=function(opts){return $.metadata.get(this[0],opts);
};
})(jQuery);
(function(h){var g,b,a,j,f,d;
var c={menuStyle:{listStyle:"none",padding:"1px",margin:"0px",backgroundColor:"#fff",border:"1px solid #999",width:"100px"},itemStyle:{margin:"0px",color:"#000",display:"block",cursor:"default",padding:"3px",border:"1px solid #fff",backgroundColor:"transparent"},itemHoverStyle:{border:"1px solid #0a246a",backgroundColor:"#b6bdd2"},eventPosX:"pageX",eventPosY:"pageY",shadow:true,onContextMenu:null,onShowMenu:null};
h.fn.contextMenu=function(m,k){if(!g){g=h('<div id="jqContextMenu"></div>').hide().css({position:"absolute",zIndex:"500"}).appendTo("body").bind("click",function(n){n.stopPropagation();
});
}if(!b){b=h("<div></div>").css({backgroundColor:"#000",position:"absolute",opacity:0.2,zIndex:499}).appendTo("body").hide();
}f=f||[];
f.push({id:m,menuStyle:h.extend({},c.menuStyle,k.menuStyle||{}),itemStyle:h.extend({},c.itemStyle,k.itemStyle||{}),itemHoverStyle:h.extend({},c.itemHoverStyle,k.itemHoverStyle||{}),bindings:k.bindings||{},shadow:k.shadow||k.shadow===false?k.shadow:c.shadow,onContextMenu:k.onContextMenu||c.onContextMenu,onShowMenu:k.onShowMenu||c.onShowMenu,eventPosX:k.eventPosX||c.eventPosX,eventPosY:k.eventPosY||c.eventPosY});
var l=f.length-1;
h(this).bind("click",function(o){var n=(!!f[l].onContextMenu)?f[l].onContextMenu(o):true;
if(n){i(l,this,o,k);
}return false;
});
return this;
};
function i(n,o,l,m){var k=f[n];
j=h("#"+k.id).find("ul:first").clone(true);
j.css(k.menuStyle).find("li").css(k.itemStyle).hover(function(){h(this).css(k.itemHoverStyle);
},function(){h(this).css(k.itemStyle);
}).find("img").css({verticalAlign:"middle",paddingRight:"2px"});
g.html(j);
if(!!k.onShowMenu){g=k.onShowMenu(l,g);
}h.each(k.bindings,function(q,p){h("#"+q,g).bind("click",function(r){e();
p(o,d);
});
});
g.css({left:l[k.eventPosX],top:l[k.eventPosY]}).show();
if(k.shadow){b.css({width:g.width(),height:g.height(),left:l.pageX+2,top:l.pageY+2}).show();
}h(document).one("click",e);
}function e(){g.hide();
b.hide();
}h.contextMenu={defaults:function(k){h.each(k,function(l,m){if(typeof m=="object"&&c[l]){h.extend(c[l],m);
}else{c[l]=m;
}});
}};
h(function(){h("div.contextMenu").hide();
});
})(jQuery);
(function(d){d.ec=d.ec||{};
d.extend(d.ec,{save:function(e,g){for(var f=0;
f<g.length;
f++){if(g[f]!==null){d.data(e[0],"ec.storage."+g[f],e.css(g[f]));
}}},restore:function(e,g){for(var f=0;
f<g.length;
f++){if(g[f]!==null){e.css(g[f],d.data(e[0],"ec.storage."+g[f]));
}}},setMode:function(e,f){if(f=="toggle"){f=e.is(":hidden")?"show":"hide";
}return f;
},getBaseline:function(h,e){var g,f;
switch(h[0]){case"top":g=0;
break;
case"middle":g=0.5;
break;
case"bottom":g=1;
break;
default:g=h[0]/e.height;
}switch(h[1]){case"left":f=0;
break;
case"center":f=0.5;
break;
case"right":f=1;
break;
default:f=h[1]/e.width;
}return{x:f,y:g};
},createWrapper:function(e){if(e.parent().attr("id")=="fxWrapper"){return e;
}var i={width:e.outerWidth({margin:true}),height:e.outerHeight({margin:true}),"float":e.css("float")};
e.wrap('<div id="fxWrapper"></div>');
var f=e.parent();
if(e.css("position")=="static"){f.css({position:"relative"});
e.css({position:"relative"});
}else{var h=parseInt(e.css("top"),10);
if(h.constructor!=Number){h="auto";
}var g=parseInt(e.css("left"),10);
if(g.constructor!=Number){g="auto";
}f.css({position:e.css("position"),top:h,left:g,zIndex:e.css("z-index")}).show();
e.css({position:"relative",top:0,left:0});
}f.css(i);
return f;
},removeWrapper:function(e){if(e.parent().attr("id")=="fxWrapper"){return e.parent().replaceWith(e);
}return e;
},setTransition:function(e,g,f,h){h=h||{};
d.each(g,function(j,k){unit=e.cssUnit(k);
if(unit[0]>0){h[k]=unit[0]*f+unit[1];
}});
return h;
},animateClass:function(j,i,g,e){var h=(typeof g=="function"?g:(e?e:null));
var f=(typeof g=="object"?g:null);
this.each(function(){var k={};
var m=d(this);
var l=m.attr("style")||"";
if(typeof l=="object"){l=l.cssText;
}if(j.toggle){m.hasClass(j.toggle)?j.remove=j.toggle:j.add=j.toggle;
}var p=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));
if(j.add){m.addClass(j.add);
}if(j.remove){m.removeClass(j.remove);
}var q=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));
if(j.add){m.removeClass(j.add);
}if(j.remove){m.addClass(j.remove);
}for(var o in q){if(typeof q[o]!="function"&&q[o]&&o.indexOf("Moz")==-1&&o.indexOf("length")==-1&&q[o]!=p[o]&&(o.match(/color/i)||(!o.match(/color/i)&&!isNaN(parseInt(q[o],10))))&&(p.position!="static"||(p.position=="static"&&!o.match(/left|top|bottom|right/)))){k[o]=q[o];
}}m.animate(k,i,f,function(){if(typeof d(this).attr("style")=="object"){d(this).attr("style")["cssText"]="";
d(this).attr("style")["cssText"]=l;
}else{d(this).attr("style",l);
}if(j.add){d(this).addClass(j.add);
}if(j.remove){d(this).removeClass(j.remove);
}if(h){h.apply(this,arguments);
}});
});
}});
d.fn.extend({_show:d.fn.show,_hide:d.fn.hide,_toggle:d.fn.toggle,_addClass:d.fn.addClass,_removeClass:d.fn.removeClass,_toggleClass:d.fn.toggleClass,effect:function(g,h,f,e){return d.ec[g]?d.ec[g].call(this,{method:g,options:h||{},duration:f,callback:e}):null;
},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|fast)/.test(arguments[0]))){return this._show.apply(this,arguments);
}else{var e=arguments[1]||{};
e.mode="show";
return this.effect.apply(this,[arguments[0],e,arguments[2]||e.duration,arguments[3]||e.callback]);
}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|fast)/.test(arguments[0]))){return this._hide.apply(this,arguments);
}else{var e=arguments[1]||{};
e.mode="hide";
return this.effect.apply(this,[arguments[0],e,arguments[2]||e.duration,arguments[3]||e.callback]);
}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||/(slow|fast)/.test(arguments[0]))){return this._toggle.apply(this,arguments);
}else{var e=arguments[1]||{};
e.mode="toggle";
return this.effect.apply(this,[arguments[0],e,arguments[2]||e.duration,arguments[3]||e.callback]);
}},addClass:function(h,f,g,e){return f?d.ec.animateClass.apply(this,[{add:h},f,g,e]):this._addClass(h);
},removeClass:function(h,f,g,e){return f?d.ec.animateClass.apply(this,[{remove:h},f,g,e]):this._removeClass(h);
},toggleClass:function(h,f,g,e){return f?d.ec.animateClass.apply(this,[{toggle:h},f,g,e]):this._toggleClass(h);
},morph:function(e,i,f,g,h){return d.ec.animateClass.apply(this,[{add:i,remove:e},f,g,h]);
},switchClass:function(){this.morph.apply(this,arguments);
},cssUnit:function(e){var f=this.css(e),g=[];
d.each(["em","px","%","pt"],function(h,j){if(f.indexOf(j)>0){g=[parseFloat(f),j];
}});
return g;
}});
jQuery.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(e,f){jQuery.fx.step[f]=function(g){if(g.state==0){g.start=b(g.elem,f);
g.end=a(g.end);
}g.elem.style[f]="rgb("+[Math.max(Math.min(parseInt((g.pos*(g.end[0]-g.start[0]))+g.start[0]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[1]-g.start[1]))+g.start[1]),255),0),Math.max(Math.min(parseInt((g.pos*(g.end[2]-g.start[2]))+g.start[2]),255),0)].join(",")+")";
};
});
function a(f){var e;
if(f&&f.constructor==Array&&f.length==3){return f;
}if(e=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(f)){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])];
}if(e=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(f)){return[parseFloat(e[1])*2.55,parseFloat(e[2])*2.55,parseFloat(e[3])*2.55];
}if(e=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(f)){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)];
}if(e=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(f)){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)];
}if(e=/rgba\(0, 0, 0, 0\)/.exec(f)){return c.transparent;
}return c[jQuery.trim(f).toLowerCase()];
}function b(e,g){var f;
do{f=jQuery.curCSS(e,g);
if(f!=""&&f!="transparent"||jQuery.nodeName(e,"body")){break;
}g="backgroundColor";
}while(e=e.parentNode);
return a(f);
}var c={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};
})(jQuery);
(function(a){a.ec.slide=function(b){return this.queue(function(){var f=a(this),e=["position","top","left"];
var h=a.ec.setMode(f,b.options.mode||"show");
var c=b.options.direction||"left";
a.ec.save(f,e);
f.show();
a.ec.createWrapper(f).css({overflow:"hidden"});
var d=(c=="up"||c=="down")?"top":"left";
var i=(c=="up"||c=="left")?"pos":"neg";
var g=b.options.distance||(d=="top"?f.outerHeight({margin:true}):f.outerWidth({margin:true}));
if(h=="show"){f.css(d,i=="pos"?-g:g);
}var j={};
j[d]=(h=="show"?(i=="pos"?"+=":"-="):(i=="pos"?"-=":"+="))+g;
f.animate(j,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(h=="hide"){f.hide();
}a.ec.restore(f,e);
a.ec.removeWrapper(f);
if(b.callback){b.callback.apply(this,arguments);
}f.dequeue();
}});
});
};
})(jQuery);
(function(a){a.fn.rb_menu=function(c){var b=this;
b.options={transition:"easeOutBounce",triggerEvent:"mouseover",loadHideDelay:1000,blurHideDelay:500,effectDuration:500,hideOnLoad:true,autoHide:true};
if(c){a.extend(b.options,c);
}return this.each(function(){var e=a(this).find(".rb_menu");
var d=a(this).find(".rb_toggle span");
if(b.options.hideOnLoad){setTimeout(function(){e._hide();
d.hover(function(){a(this).addClass("hover");
},function(){a(this).removeClass("hover");
});
},b.options.loadHideDelay);
}d.bind(b.options.triggerEvent,function(){if((b.options.triggerEvent=="click"||b.options.triggerEvent=="dblclick")&&!b.closed){e._hide();
}else{e._show();
}});
e._hide=function(){if(!b.closed){this.toggle("slide",{direction:"left",easing:b.options.transition},b.options.effectDuration,function(){b.closed=true;
b.unbind();
});
}};
e._show=function(){if(b.closed){this.show("slide",{direction:"left",easing:b.options.transition},b.options.effectDuration,function(){b.closed=false;
if(b.options.autoHide){b.hover(function(){clearTimeout(b.timeout);
},function(){b.timeout=setTimeout(function(){e._hide();
},b.options.blurHideDelay);
});
}});
}};
});
};
})(jQuery);
(function(c){var b=c.scrollTo=function(f,e,d){c(window).scrollTo(f,e,d);
};
b.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};
b.window=function(d){return c(window)._scrollable();
};
c.fn._scrollable=function(){return this.map(function(){var d=this,e=!d.nodeName||c.inArray(d.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;
if(!e){return d;
}var f=(d.contentWindow||d).document||d.ownerDocument||d;
return c.browser.safari||f.compatMode=="BackCompat"?f.body:f.documentElement;
});
};
c.fn.scrollTo=function(f,e,d){if(typeof e=="object"){d=e;
e=0;
}if(typeof d=="function"){d={onAfter:d};
}if(f=="max"){f=9000000000;
}d=c.extend({},b.defaults,d);
e=e||d.speed||d.duration;
d.queue=d.queue&&d.axis.length>1;
if(d.queue){e/=2;
}d.offset=a(d.offset);
d.over=a(d.over);
return this._scrollable().each(function(){var j=this,i=c(j),g=f,k,m={},h=i.is("html,body");
switch(typeof g){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(g)){g=a(g);
break;
}g=c(g,this);
case"object":if(g.is||g.style){k=(g=c(g)).offset();
}}c.each(d.axis.split(""),function(r,o){var q=o=="x"?"Left":"Top",s=q.toLowerCase(),u="scroll"+q,n=j[u],p=b.max(j,o);
if(k){m[u]=k[s]+(h?0:n-i.offset()[s]);
if(d.margin){m[u]-=parseInt(g.css("margin"+q))||0;
m[u]-=parseInt(g.css("border"+q+"Width"))||0;
}m[u]+=d.offset[s]||0;
if(d.over[s]){m[u]+=g[o=="x"?"width":"height"]()*d.over[s];
}}else{var t=g[s];
m[u]=t.slice&&t.slice(-1)=="%"?parseFloat(t)/100*p:t;
}if(/^\d+$/.test(m[u])){m[u]=m[u]<=0?0:Math.min(m[u],p);
}if(!r&&d.queue){if(n!=m[u]){l(d.onAfterFirst);
}delete m[u];
}});
l(d.onAfter);
function l(n){i.animate(m,e,d.easing,n&&function(){n.call(this,f,d);
});
}}).end();
};
b.max=function(g,j){var e=j=="x"?"Width":"Height",i="scroll"+e;
if(!c(g).is("html,body")){return g[i]-c(g)[e.toLowerCase()]();
}var d="client"+e,f=g.ownerDocument.documentElement,h=g.ownerDocument.body;
return Math.max(f[i],h[i])-Math.min(f[d],h[d]);
};
function a(d){return typeof d=="object"?d:{top:d,left:d};
}})(jQuery);
function getNextPrice(e,b,a){var c=parseInt((e-b)/a,10);
c++;
var d=b+(a*c);
if(d>99999999){c--;
d=b+(a*c);
}return d;
}function getPreviousPrice(e,b,a){var c=parseInt((e-b)/a,10);
var d=(e-b)%a;
if(d==0){c--;
}return b+(a*c);
}function autoBid(h,e,d,i,c,f){var b;
if(f){if(e==0){b=d;
}else{if(e+i>d){b=e+i;
}else{b=d;
}}}else{if(e==0){b=d;
e=d;
}else{b=e+i;
}}var g=parseInt(h.value,10);
if(isNaN(g)){g=0;
}if(g<b){h.value=b;
}else{if(c){h.value=getNextPrice(g,e,i);
}else{var a=getPreviousPrice(g,e,i);
if(a<b){a=b;
}h.value=a;
}}h.select();
return false;
}$(function(){$(".pagingControl a").click(function(){if($(this).attr("href")!=undefined){return true;
}return false;
});
$(".pagingControl form").submit(function(){var a=$(this).attr("action");
location.href=a.replace(/._p./,$(".pageNumber",this).val());
return false;
});
});
(function(a){a.bindUserMenu=function(){if(a("#userMenu").length==0){var b='<div class="contextMenu hide" id="userMenu"><ul><li id="email">อีเมล์</li><li id="auctionList">รายการตั้งประมูล</li><li id="bidList">รายการร่วมประมูล</li><li id="feedbackList">คำติชมต่างๆ</li></ul></div>';
a("body").append(b);
}a("a.userName").contextMenu("userMenu",{bindings:{email:function(c){location.href="mailto:"+a(c).metadata().email;
},auctionList:function(c){window.open("/ProfileAuction/OwnedItems/"+a(c).metadata().userID);
},bidList:function(c){window.open("/ProfileAuction/ParticipatedItems/"+a(c).metadata().userID);
},feedbackList:function(c){window.open("/Feedback/List/"+a(c).metadata().userID);
}},onContextMenu:function(c){a("#email",".contextMenu").attr("title",a(c.target).metadata().email);
return true;
},onShowMenu:function(c,d){a(d).prepend('<div class="contextMenuHeader important">['+a(c.target).html()+"]</div>");
return d;
},itemStyle:{color:"#000",background:"#ccc",borderColor:"#ccc",cursor:"pointer"}});
};
})(jQuery);
