(function(){var W=this,ab,F=W.jQuery,S=W.$,T=W.jQuery=W.$=function(b,a){return new T.fn.init(b,a)
},M=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,ac=/^.[^:#\[\.,]*$/;
T.fn=T.prototype={init:function(e,b){e=e||document;
if(e.nodeType){this[0]=e;
this.length=1;
this.context=e;
return this
}if(typeof e==="string"){var c=M.exec(e);
if(c&&(c[1]||!b)){if(c[1]){e=T.clean([c[1]],b)
}else{var a=document.getElementById(c[3]);
if(a&&a.id!=c[3]){return T().find(e)
}var d=T(a||[]);
d.context=document;
d.selector=e;
return d
}}else{return T(b).find(e)
}}else{if(T.isFunction(e)){return T(document).ready(e)
}}if(e.selector&&e.context){this.selector=e.selector;
this.context=e.context
}return this.setArray(T.isArray(e)?e:T.makeArray(e))
},selector:"",jquery:"1.3.2",size:function(){return this.length
},get:function(a){return a===ab?Array.prototype.slice.call(this):this[a]
},pushStack:function(c,a,d){var b=T(c);
b.prevObject=this;
b.context=this.context;
if(a==="find"){b.selector=this.selector+(this.selector?" ":"")+d
}else{if(a){b.selector=this.selector+"."+a+"("+d+")"
}}return b
},setArray:function(a){this.length=0;
Array.prototype.push.apply(this,a);
return this
},each:function(a,b){return T.each(this,a,b)
},index:function(a){return T.inArray(a&&a.jquery?a[0]:a,this)
},attr:function(c,a,b){var d=c;
if(typeof c==="string"){if(a===ab){return this[0]&&T[b||"attr"](this[0],c)
}else{d={};
d[c]=a
}}return this.each(function(e){for(c in d){T.attr(b?this.style:this,c,T.prop(this,d[c],b,e,c))
}})
},css:function(b,a){if((b=="width"||b=="height")&&parseFloat(a)<0){a=ab
}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="";
T.each(a||this,function(){T.each(this.childNodes,function(){if(this.nodeType!=8){b+=this.nodeType!=1?this.nodeValue:T.fn.text([this])
}})
});
return b
},wrapAll:function(b){if(this[0]){var a=T(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(){T(this).contents().wrapAll(a)
})
},wrap:function(a){return this.each(function(){T(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||T([])
},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var a=this.pushStack([],"find",b);
a.length=0;
T.find(b,this[0],a);
return a
}else{return this.pushStack(T.unique(T.map(this,function(c){return T.find(b,c)
})),"find",b)
}},clone:function(b){var d=this.map(function(){if(!T.support.noCloneEvent&&!T.isXMLDoc(this)){var f=this.outerHTML;
if(!f){var e=this.ownerDocument.createElement("div");
e.appendChild(this.cloneNode(true));
f=e.innerHTML
}return T.clean([f.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 g=T.data(a[c],"events");
for(var e in g){for(var f in g[e]){T.event.add(this,e,g[e][f],g[e][f].data)
}}c++
})
}return d
},filter:function(a){return this.pushStack(T.isFunction(a)&&T.grep(this,function(b,c){return a.call(b,c)
})||T.multiFilter(a,T.grep(this,function(b){return b.nodeType===1
})),"filter",a)
},closest:function(c){var a=T.expr.match.POS.test(c)?T(c):null,b=0;
return this.map(function(){var d=this;
while(d&&d.ownerDocument){if(a?a.index(d)>-1:T(d).is(c)){T.data(d,"closest",b);
return d
}d=d.parentNode;
b++
}})
},not:function(b){if(typeof b==="string"){if(ac.test(b)){return this.pushStack(T.multiFilter(b,this,true),"not",b)
}else{b=T.multiFilter(b,this)
}}var a=b.length&&b[b.length-1]!==ab&&!b.nodeType;
return this.filter(function(){return a?T.inArray(this,b)<0:this!=b
})
},add:function(a){return this.pushStack(T.unique(T.merge(this.get(),typeof a==="string"?T(a):T.makeArray(a))))
},is:function(a){return !!a&&T.multiFilter(a,this).length>0
},hasClass:function(a){return !!a&&this.is("."+a)
},val:function(c){if(c===ab){var j=this[0];
if(j){if(T.nodeName(j,"option")){return(j.attributes.value||{}).specified?j.value:j.text
}if(T.nodeName(j,"select")){var e=j.selectedIndex,b=[],a=j.options,f=j.type=="select-one";
if(e<0){return null
}for(var h=f?e:0,d=f?e+1:a.length;
h<d;
h++){var g=a[h];
if(g.selected){c=T(g).val();
if(f){return c
}b.push(c)
}}return b
}return(j.value||"").replace(/\r/g,"")
}return ab
}if(typeof c==="number"){c+=""
}return this.each(function(){if(this.nodeType!=1){return
}if(T.isArray(c)&&/radio|checkbox/.test(this.type)){this.checked=(T.inArray(this.value,c)>=0||T.inArray(this.name,c)>=0)
}else{if(T.nodeName(this,"select")){var k=T.makeArray(c);
T("option",this).each(function(){this.selected=(T.inArray(this.value,k)>=0||T.inArray(this.text,k)>=0)
});
if(!k.length){this.selectedIndex=-1
}}else{this.value=c
}}})
},html:function(a){return a===ab?(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(T.map(this,function(b,c){return a.call(b,c,b)
}))
},andSelf:function(){return this.add(this.prevObject)
},domManip:function(d,a,b){if(this[0]){var e=(this[0].ownerDocument||this[0]).createDocumentFragment(),h=T.clean(d,(this[0].ownerDocument||this[0]),e),f=e.firstChild;
if(f){for(var g=0,j=this.length;
g<j;
g++){b.call(c(this[g],f),this.length>1||g>0?e.cloneNode(true):e)
}}if(h){T.each(h,E)
}}return this;
function c(l,k){return a&&T.nodeName(l,"table")&&T.nodeName(k,"tr")?(l.getElementsByTagName("tbody")[0]||l.appendChild(l.ownerDocument.createElement("tbody"))):l
}}};
T.fn.init.prototype=T.fn;
function E(b,a){if(a.src){T.ajax({url:a.src,async:false,dataType:"script"})
}else{T.globalEval(a.text||a.textContent||a.innerHTML||"")
}if(a.parentNode){a.parentNode.removeChild(a)
}}function ad(){return +new Date
}T.extend=T.fn.extend=function(){var c=arguments[0]||{},e=1,d=arguments.length,h=false,f;
if(typeof c==="boolean"){h=c;
c=arguments[1]||{};
e=2
}if(typeof c!=="object"&&!T.isFunction(c)){c={}
}if(d==e){c=this;
--e
}for(;
e<d;
e++){if((f=arguments[e])!=null){for(var g in f){var b=c[g],a=f[g];
if(c===a){continue
}if(h&&a&&typeof a==="object"&&!a.nodeType){c[g]=T.extend(h,b||(a.length!=null?[]:{}),a)
}else{if(a!==ab){c[g]=a
}}}}}return c
};
var ag=/z-?index|font-?weight|opacity|zoom|line-?height/i,Q=document.defaultView||{},L=Object.prototype.toString;
T.extend({noConflict:function(a){W.$=S;
if(a){W.jQuery=F
}return T
},isFunction:function(a){return L.call(a)==="[object Function]"
},isArray:function(a){return L.call(a)==="[object Array]"
},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&T.isXMLDoc(a.ownerDocument)
},globalEval:function(a){if(a&&/\S/.test(a)){var b=document.getElementsByTagName("head")[0]||document.documentElement,c=document.createElement("script");
c.type="text/javascript";
if(T.support.scriptEval){c.appendChild(document.createTextNode(a))
}else{c.text=a
}b.insertBefore(c,b.firstChild);
b.removeChild(c)
}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase()
},each:function(e,a,f){var g,d=0,c=e.length;
if(f){if(c===ab){for(g in e){if(a.apply(e[g],f)===false){break
}}}else{for(;
d<c;
){if(a.apply(e[d++],f)===false){break
}}}}else{if(c===ab){for(g in e){if(a.call(e[g],g,e[g])===false){break
}}}else{for(var b=e[0];
d<c&&a.call(b,d,b)!==false;
b=e[++d]){}}}return e
},prop:function(b,a,c,d,e){if(T.isFunction(a)){a=a.call(b,d)
}return typeof a==="number"&&c=="curCSS"&&!ag.test(e)?a+"px":a
},className:{add:function(b,a){T.each((a||"").split(/\s+/),function(d,c){if(b.nodeType==1&&!T.className.has(b.className,c)){b.className+=(b.className?" ":"")+c
}})
},remove:function(b,a){if(b.nodeType==1){b.className=a!==ab?T.grep(b.className.split(/\s+/),function(c){return !T.className.has(a,c)
}).join(" "):""
}},has:function(a,b){return a&&T.inArray(b,(a.className||a).toString().split(/\s+/))>-1
}},swap:function(b,c,a){var e={};
for(var d in c){e[d]=b.style[d];
b.style[d]=c[d]
}a.call(b);
for(var d in c){b.style[d]=e[d]
}},css:function(e,g,c,h){if(g=="width"||g=="height"){var a,f={position:"absolute",visibility:"hidden",display:"block"},b=g=="width"?["Left","Right"]:["Top","Bottom"];
function d(){a=g=="width"?e.offsetWidth:e.offsetHeight;
if(h==="border"){return
}T.each(b,function(){if(!h){a-=parseFloat(T.curCSS(e,"padding"+this,true))||0
}if(h==="margin"){a+=parseFloat(T.curCSS(e,"margin"+this,true))||0
}else{a-=parseFloat(T.curCSS(e,"border"+this+"Width",true))||0
}})
}if(e.offsetWidth!==0){d()
}else{T.swap(e,f,d)
}return Math.max(0,Math.round(a))
}return T.curCSS(e,g,c)
},curCSS:function(e,h,g){var b,j=e.style;
if(h=="opacity"&&!T.support.opacity){b=T.attr(j,"opacity");
return b==""?"1":b
}if(h.match(/float/i)){h=H
}if(!g&&j&&j[h]){b=j[h]
}else{if(Q.getComputedStyle){if(h.match(/float/i)){h="float"
}h=h.replace(/([A-Z])/g,"-$1").toLowerCase();
var a=Q.getComputedStyle(e,null);
if(a){b=a.getPropertyValue(h)
}if(h=="opacity"&&b==""){b="1"
}}else{if(e.currentStyle){var d=h.replace(/\-(\w)/g,function(l,k){return k.toUpperCase()
});
b=e.currentStyle[h]||e.currentStyle[d];
if(!/^\d+(px)?$/i.test(b)&&/^\d/.test(b)){var f=j.left,c=e.runtimeStyle.left;
e.runtimeStyle.left=e.currentStyle.left;
j.left=b||0;
b=j.pixelLeft+"px";
j.left=f;
e.runtimeStyle.left=c
}}}}return b
},clean:function(g,b,d){b=b||document;
if(typeof b.createElement==="undefined"){b=b.ownerDocument||b[0]&&b[0].ownerDocument||document
}if(!d&&g.length===1&&typeof g[0]==="string"){var e=/^<(\w+)\s*\/?>$/.exec(g[0]);
if(e){return[b.createElement(e[1])]
}}var f=[],h=[],a=b.createElement("div");
T.each(g,function(m,j){if(typeof j==="number"){j+=""
}if(!j){return
}if(typeof j==="string"){j=j.replace(/(<(\w+)[^>]*?)\/>/g,function(s,r,t){return t.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?s:r+"></"+t+">"
});
var o=j.replace(/^\s+/,"").substring(0,10).toLowerCase();
var l=!o.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!o.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||o.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!o.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!o.indexOf("<td")||!o.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!o.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!T.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];
a.innerHTML=l[1]+j+l[2];
while(l[0]--){a=a.lastChild
}if(!T.support.tbody){var k=/<tbody/i.test(j),p=!o.indexOf("<table")&&!k?a.firstChild&&a.firstChild.childNodes:l[1]=="<table>"&&!k?a.childNodes:[];
for(var q=p.length-1;
q>=0;
--q){if(T.nodeName(p[q],"tbody")&&!p[q].childNodes.length){p[q].parentNode.removeChild(p[q])
}}}if(!T.support.leadingWhitespace&&/^\s/.test(j)){a.insertBefore(b.createTextNode(j.match(/^\s*/)[0]),a.firstChild)
}j=T.makeArray(a.childNodes)
}if(j.nodeType){f.push(j)
}else{f=T.merge(f,j)
}});
if(d){for(var c=0;
f[c];
c++){if(T.nodeName(f[c],"script")&&(!f[c].type||f[c].type.toLowerCase()==="text/javascript")){h.push(f[c].parentNode?f[c].parentNode.removeChild(f[c]):f[c])
}else{if(f[c].nodeType===1){f.splice.apply(f,[c+1,0].concat(T.makeArray(f[c].getElementsByTagName("script"))))
}d.appendChild(f[c])
}}return h
}return f
},attr:function(c,f,b){if(!c||c.nodeType==3||c.nodeType==8){return ab
}var e=!T.isXMLDoc(c),a=b!==ab;
f=e&&T.props[f]||f;
if(c.tagName){var g=/href|src|style/.test(f);
if(f=="selected"&&c.parentNode){c.parentNode.selectedIndex
}if(f in c&&e&&!g){if(a){if(f=="type"&&T.nodeName(c,"input")&&c.parentNode){throw"type property can't be changed"
}c[f]=b
}if(T.nodeName(c,"form")&&c.getAttributeNode(f)){return c.getAttributeNode(f).nodeValue
}if(f=="tabIndex"){var d=c.getAttributeNode("tabIndex");
return d&&d.specified?d.value:c.nodeName.match(/(button|input|object|select|textarea)/i)?0:c.nodeName.match(/^(a|area)$/i)&&c.href?0:ab
}return c[f]
}if(!T.support.style&&e&&f=="style"){return T.attr(c.style,"cssText",b)
}if(a){c.setAttribute(f,""+b)
}var h=!T.support.hrefNormalized&&e&&g?c.getAttribute(f,2):c.getAttribute(f);
return h===null?ab:h
}if(!T.support.opacity&&f=="opacity"){if(a){c.zoom=1;
c.filter=(c.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(b)+""=="NaN"?"":"alpha(opacity="+b*100+")")
}return c.filter&&c.filter.indexOf("opacity=")>=0?(parseFloat(c.filter.match(/opacity=([^)]*)/)[1])/100)+"":""
}f=f.replace(/-([a-z])/ig,function(k,j){return j.toUpperCase()
});
if(a){c[f]=b
}return c[f]
},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")
},makeArray:function(a){var c=[];
if(a!=null){var b=a.length;
if(b==null||typeof a==="string"||T.isFunction(a)||a.setInterval){c[0]=a
}else{while(b){c[--b]=a[b]
}}}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,e){var d=0,c,a=b.length;
if(!T.support.getAll){while((c=e[d++])!=null){if(c.nodeType!=8){b[a++]=c
}}}else{while((c=e[d++])!=null){b[a++]=c
}}return b
},unique:function(a){var f=[],g={};
try{for(var e=0,d=a.length;
e<d;
e++){var b=T.data(a[e]);
if(!g[b]){g[b]=true;
f.push(a[e])
}}}catch(c){f=a
}return f
},grep:function(e,a,f){var d=[];
for(var c=0,b=e.length;
c<b;
c++){if(!f!=!a(e[c],c)){d.push(e[c])
}}return d
},map:function(f,a){var e=[];
for(var d=0,c=f.length;
d<c;
d++){var b=a(f[d],d);
if(b!=null){e[e.length]=b
}}return e.concat.apply([],e)
}});
var O=navigator.userAgent.toLowerCase();
T.browser={version:(O.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(O),opera:/opera/.test(O),msie:/msie/.test(O)&&!/opera/.test(O),mozilla:/mozilla/.test(O)&&!/(compatible|webkit)/.test(O)};
T.each({parent:function(a){return a.parentNode
},parents:function(a){return T.dir(a,"parentNode")
},next:function(a){return T.nth(a,2,"nextSibling")
},prev:function(a){return T.nth(a,2,"previousSibling")
},nextAll:function(a){return T.dir(a,"nextSibling")
},prevAll:function(a){return T.dir(a,"previousSibling")
},siblings:function(a){return T.sibling(a.parentNode.firstChild,a)
},children:function(a){return T.sibling(a.firstChild)
},contents:function(a){return T.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:T.makeArray(a.childNodes)
}},function(b,a){T.fn[b]=function(d){var c=T.map(this,a);
if(d&&typeof d=="string"){c=T.multiFilter(d,c)
}return this.pushStack(T.unique(c),b,d)
}
});
T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,a){T.fn[b]=function(h){var e=[],c=T(h);
for(var d=0,g=c.length;
d<g;
d++){var f=(d>0?this.clone(true):this).get();
T.fn[a].apply(T(c[d]),f);
e=e.concat(f)
}return this.pushStack(e,b,h)
}
});
T.each({removeAttr:function(a){T.attr(this,a,"");
if(this.nodeType==1){this.removeAttribute(a)
}},addClass:function(a){T.className.add(this,a)
},removeClass:function(a){T.className.remove(this,a)
},toggleClass:function(a,b){if(typeof b!=="boolean"){b=!T.className.has(this,a)
}T.className[b?"add":"remove"](this,a)
},remove:function(a){if(!a||T.filter(a,[this]).length){T("*",this).add([this]).each(function(){T.event.remove(this);
T.removeData(this)
});
if(this.parentNode){this.parentNode.removeChild(this)
}}},empty:function(){T(this).children().remove();
while(this.firstChild){this.removeChild(this.firstChild)
}}},function(b,a){T.fn[b]=function(){return this.each(a,arguments)
}
});
function Y(b,a){return b[0]&&parseInt(T.curCSS(b[0],a,true),10)||0
}var aa="jQuery"+ad(),I=0,R={};
T.extend({cache:{},data:function(c,d,b){c=c==W?R:c;
var a=c[aa];
if(!a){a=c[aa]=++I
}if(d&&!T.cache[a]){T.cache[a]={}
}if(b!==ab){T.cache[a][d]=b
}return d?T.cache[a][d]:a
},removeData:function(c,d){c=c==W?R:c;
var a=c[aa];
if(d){if(T.cache[a]){delete T.cache[a][d];
d="";
for(d in T.cache[a]){break
}if(!d){T.removeData(c)
}}}else{try{delete c[aa]
}catch(b){if(c.removeAttribute){c.removeAttribute(aa)
}}delete T.cache[a]
}},queue:function(c,d,a){if(c){d=(d||"fx")+"queue";
var b=T.data(c,d);
if(!b||T.isArray(a)){b=T.data(c,d,T.makeArray(a))
}else{if(a){b.push(a)
}}}return b
},dequeue:function(a,b){var d=T.queue(a,b),c=d.shift();
if(!b||b==="fx"){c=d[0]
}if(c!==ab){c.call(a)
}}});
T.fn.extend({data:function(d,b){var a=d.split(".");
a[1]=a[1]?"."+a[1]:"";
if(b===ab){var c=this.triggerHandler("getData"+a[1]+"!",[a[0]]);
if(c===ab&&this.length){c=T.data(this[0],d)
}return c===ab&&a[1]?this.data(a[0]):c
}else{return this.trigger("setData"+a[1]+"!",[a[0],b]).each(function(){T.data(this,d,b)
})
}},removeData:function(a){return this.each(function(){T.removeData(this,a)
})
},queue:function(b,a){if(typeof b!=="string"){a=b;
b="fx"
}if(a===ab){return T.queue(this[0],b)
}return this.each(function(){var c=T.queue(this,b,a);
if(b=="fx"&&c.length==1){c[0].call(this)
}})
},dequeue:function(a){return this.each(function(){T.dequeue(this,a)
})
}});
(function(){var b=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,h=0,m=Object.prototype.toString;
var p=function(t,x,ak,aj){ak=ak||[];
x=x||document;
if(x.nodeType!==1&&x.nodeType!==9){return[]
}if(!t||typeof t!=="string"){return ak
}var s=[],v,C,z,y,ai,w,u=true;
b.lastIndex=0;
while((v=b.exec(t))!==null){s.push(v[1]);
if(v[2]){w=RegExp.rightContext;
break
}}if(s.length>1&&g.exec(t)){if(s.length===2&&l.relative[s[0]]){C=k(s[0]+s[1],x)
}else{C=l.relative[s[0]]?[x]:p(s.shift(),x);
while(s.length){t=s.shift();
if(l.relative[t]){t+=s.shift()
}C=k(t,C)
}}}else{var D=aj?{expr:s.pop(),set:q(aj)}:p.find(s.pop(),s.length===1&&x.parentNode?x.parentNode:x,c(x));
C=p.filter(D.expr,D.set);
if(s.length>0){z=q(C)
}else{u=false
}while(s.length){var A=s.pop(),B=A;
if(!l.relative[A]){A=""
}else{B=s.pop()
}if(B==null){B=x
}l.relative[A](z,B,c(x))
}}if(!z){z=C
}if(!z){throw"Syntax error, unrecognized expression: "+(A||t)
}if(m.call(z)==="[object Array]"){if(!u){ak.push.apply(ak,z)
}else{if(x.nodeType===1){for(var r=0;
z[r]!=null;
r++){if(z[r]&&(z[r]===true||z[r].nodeType===1&&j(x,z[r]))){ak.push(C[r])
}}}else{for(var r=0;
z[r]!=null;
r++){if(z[r]&&z[r].nodeType===1){ak.push(C[r])
}}}}}else{q(z,ak)
}if(w){p(w,x,ak,aj);
if(o){hasDuplicate=false;
ak.sort(o);
if(hasDuplicate){for(var r=1;
r<ak.length;
r++){if(ak[r]===ak[r-1]){ak.splice(r--,1)
}}}}}return ak
};
p.matches=function(s,r){return p(s,null,null,r)
};
p.find=function(r,y,z){var s,u;
if(!r){return[]
}for(var v=0,w=l.order.length;
v<w;
v++){var t=l.order[v],u;
if((u=l.match[t].exec(r))){var x=RegExp.leftContext;
if(x.substr(x.length-1)!=="\\"){u[1]=(u[1]||"").replace(/\\/g,"");
s=l.find[t](u,y,z);
if(s!=null){r=r.replace(l.match[t],"");
break
}}}}if(!s){s=y.getElementsByTagName("*")
}return{set:s,expr:r}
};
p.filter=function(ai,aj,B,v){var w=ai,z=[],r=aj,t,y,s=aj&&aj[0]&&c(aj[0]);
while(ai&&aj.length){for(var ak in l.filter){if((t=l.match[ak].exec(ai))!=null){var x=l.filter[ak],A,C;
y=false;
if(r==z){z=[]
}if(l.preFilter[ak]){t=l.preFilter[ak](t,r,B,z,v,s);
if(!t){y=A=true
}else{if(t===true){continue
}}}if(t){for(var u=0;
(C=r[u])!=null;
u++){if(C){A=x(C,t,u,r);
var D=v^!!A;
if(B&&A!=null){if(D){y=true
}else{r[u]=false
}}else{if(D){z.push(C);
y=true
}}}}}if(A!==ab){if(!B){r=z
}ai=ai.replace(l.match[ak],"");
if(!y){return[]
}break
}}}if(ai==w){if(y==null){throw"Syntax error, unrecognized expression: "+ai
}else{break
}}w=ai
}return r
};
var l=p.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(r){return r.getAttribute("href")
}},relative:{"+":function(r,y,s){var u=typeof y==="string",z=u&&!/\W/.test(y),t=u&&!z;
if(z&&!s){y=y.toUpperCase()
}for(var v=0,w=r.length,x;
v<w;
v++){if((x=r[v])){while((x=x.previousSibling)&&x.nodeType!==1){}r[v]=t||x&&x.nodeName===y?x||false:x===y
}}if(t){p.filter(y,r,true)
}},">":function(w,t,v){var y=typeof t==="string";
if(y&&!/\W/.test(t)){t=v?t:t.toUpperCase();
for(var s=0,u=w.length;
s<u;
s++){var x=w[s];
if(x){var r=x.parentNode;
w[s]=r.nodeName===t?r:false
}}}else{for(var s=0,u=w.length;
s<u;
s++){var x=w[s];
if(x){w[s]=y?x.parentNode:x.parentNode===t
}}if(y){p.filter(t,w,true)
}}},"":function(r,t,v){var s=h++,u=a;
if(!t.match(/\W/)){var w=t=v?t:t.toUpperCase();
u=d
}u("parentNode",t,s,r,w,v)
},"~":function(r,t,v){var s=h++,u=a;
if(typeof t==="string"&&!t.match(/\W/)){var w=t=v?t:t.toUpperCase();
u=d
}u("previousSibling",t,s,r,w,v)
}},find:{ID:function(t,s,r){if(typeof s.getElementById!=="undefined"&&!r){var u=s.getElementById(t[1]);
return u?[u]:[]
}},NAME:function(s,w,v){if(typeof w.getElementsByName!=="undefined"){var t=[],x=w.getElementsByName(s[1]);
for(var r=0,u=x.length;
r<u;
r++){if(x[r].getAttribute("name")===s[1]){t.push(x[r])
}}return t.length===0?null:t
}},TAG:function(s,r){return r.getElementsByTagName(s[1])
}},preFilter:{CLASS:function(r,t,s,u,w,v){r=" "+r[1].replace(/\\/g,"")+" ";
if(v){return r
}for(var y=0,x;
(x=t[y])!=null;
y++){if(x){if(w^(x.className&&(" "+x.className+" ").indexOf(r)>=0)){if(!s){u.push(x)
}}else{if(s){t[y]=false
}}}}return false
},ID:function(r){return r[1].replace(/\\/g,"")
},TAG:function(s,t){for(var r=0;
t[r]===false;
r++){}return t[r]&&c(t[r])?s[1]:s[1].toUpperCase()
},CHILD:function(s){if(s[1]=="nth"){var r=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(s[2]=="even"&&"2n"||s[2]=="odd"&&"2n+1"||!/\D/.test(s[2])&&"0n+"+s[2]||s[2]);
s[2]=(r[1]+(r[2]||1))-0;
s[3]=r[3]-0
}s[0]=h++;
return s
},ATTR:function(x,t,s,u,w,v){var r=x[1].replace(/\\/g,"");
if(!v&&l.attrMap[r]){x[1]=l.attrMap[r]
}if(x[2]==="~="){x[4]=" "+x[4]+" "
}return x
},PSEUDO:function(w,t,s,u,v){if(w[1]==="not"){if(w[3].match(b).length>1||/^\w/.test(w[3])){w[3]=p(w[3],null,null,t)
}else{var r=p.filter(w[3],t,s,true^v);
if(!s){u.push.apply(u,r)
}return false
}}else{if(l.match.POS.test(w[0])||l.match.CHILD.test(w[0])){return true
}}return w
},POS:function(r){r.unshift(true);
return r
}},filters:{enabled:function(r){return r.disabled===false&&r.type!=="hidden"
},disabled:function(r){return r.disabled===true
},checked:function(r){return r.checked===true
},selected:function(r){r.parentNode.selectedIndex;
return r.selected===true
},parent:function(r){return !!r.firstChild
},empty:function(r){return !r.firstChild
},has:function(r,s,t){return !!p(t[3],r).length
},header:function(r){return/h\d/i.test(r.nodeName)
},text:function(r){return"text"===r.type
},radio:function(r){return"radio"===r.type
},checkbox:function(r){return"checkbox"===r.type
},file:function(r){return"file"===r.type
},password:function(r){return"password"===r.type
},submit:function(r){return"submit"===r.type
},image:function(r){return"image"===r.type
},reset:function(r){return"reset"===r.type
},button:function(r){return"button"===r.type||r.nodeName.toUpperCase()==="BUTTON"
},input:function(r){return/input|select|textarea|button/i.test(r.nodeName)
}},setFilters:{first:function(r,s){return s===0
},last:function(s,t,u,r){return t===r.length-1
},even:function(r,s){return s%2===0
},odd:function(r,s){return s%2===1
},lt:function(r,s,t){return s<t[3]-0
},gt:function(r,s,t){return s>t[3]-0
},nth:function(r,s,t){return t[3]-0==s
},eq:function(r,s,t){return t[3]-0==s
}},filter:{PSEUDO:function(w,s,r,v){var t=s[1],y=l.filters[t];
if(y){return y(w,r,s,v)
}else{if(t==="contains"){return(w.textContent||w.innerText||"").indexOf(s[3])>=0
}else{if(t==="not"){var x=s[3];
for(var r=0,u=x.length;
r<u;
r++){if(x[r]===w){return false
}}return true
}}}},CHILD:function(y,v){var s=v[1],x=y;
switch(s){case"only":case"first":while(x=x.previousSibling){if(x.nodeType===1){return false
}}if(s=="first"){return true
}x=y;
case"last":while(x=x.nextSibling){if(x.nodeType===1){return false
}}return true;
case"nth":var w=v[2],z=v[3];
if(w==1&&z==0){return true
}var t=v[0],A=y.parentNode;
if(A&&(A.sizcache!==t||!y.nodeIndex)){var u=0;
for(x=A.firstChild;
x;
x=x.nextSibling){if(x.nodeType===1){x.nodeIndex=++u
}}A.sizcache=t
}var r=y.nodeIndex-z;
if(w==0){return r==0
}else{return(r%w==0&&r/w>=0)
}}},ID:function(r,s){return r.nodeType===1&&r.getAttribute("id")===s
},TAG:function(r,s){return(s==="*"&&r.nodeType===1)||r.nodeName===s
},CLASS:function(r,s){return(" "+(r.className||r.getAttribute("class"))+" ").indexOf(s)>-1
},ATTR:function(w,r){var s=r[1],u=l.attrHandle[s]?l.attrHandle[s](w):w[s]!=null?w[s]:w.getAttribute(s),v=u+"",x=r[2],t=r[4];
return u==null?x==="!=":x==="="?v===t:x==="*="?v.indexOf(t)>=0:x==="~="?(" "+v+" ").indexOf(t)>=0:!t?v&&u!==false:x==="!="?v!=t:x==="^="?v.indexOf(t)===0:x==="$="?v.substr(v.length-t.length)===t:x==="|="?v===t||v.substr(0,t.length+1)===t+"-":false
},POS:function(w,t,s,v){var u=t[2],r=l.setFilters[u];
if(r){return r(w,s,t,v)
}}}};
var g=l.match.POS;
for(var e in l.match){l.match[e]=RegExp(l.match[e].source+/(?![^\[]*\])(?![^\(]*\))/.source)
}var q=function(r,s){r=Array.prototype.slice.call(r);
if(s){s.push.apply(s,r);
return s
}return r
};
try{Array.prototype.slice.call(document.documentElement.childNodes)
}catch(f){q=function(v,r){var t=r||[];
if(m.call(v)==="[object Array]"){Array.prototype.push.apply(t,v)
}else{if(typeof v.length==="number"){for(var s=0,u=v.length;
s<u;
s++){t.push(v[s])
}}else{for(var s=0;
v[s];
s++){t.push(v[s])
}}}return t
}
}var o;
if(document.documentElement.compareDocumentPosition){o=function(s,t){var r=s.compareDocumentPosition(t)&4?-1:s===t?0:1;
if(r===0){hasDuplicate=true
}return r
}
}else{if("sourceIndex" in document.documentElement){o=function(s,t){var r=s.sourceIndex-t.sourceIndex;
if(r===0){hasDuplicate=true
}return r
}
}else{if(document.createRange){o=function(r,t){var s=r.ownerDocument.createRange(),u=t.ownerDocument.createRange();
s.selectNode(r);
s.collapse(true);
u.selectNode(t);
u.collapse(true);
var v=s.compareBoundaryPoints(Range.START_TO_END,u);
if(v===0){hasDuplicate=true
}return v
}
}}}(function(){var s=document.createElement("form"),r="script"+(new Date).getTime();
s.innerHTML="<input name='"+r+"'/>";
var t=document.documentElement;
t.insertBefore(s,t.firstChild);
if(!!document.getElementById(r)){l.find.ID=function(x,w,v){if(typeof w.getElementById!=="undefined"&&!v){var u=w.getElementById(x[1]);
return u?u.id===x[1]||typeof u.getAttributeNode!=="undefined"&&u.getAttributeNode("id").nodeValue===x[1]?[u]:ab:[]
}};
l.filter.ID=function(v,u){var w=typeof v.getAttributeNode!=="undefined"&&v.getAttributeNode("id");
return v.nodeType===1&&w&&w.nodeValue===u
}
}t.removeChild(s)
})();
(function(){var r=document.createElement("div");
r.appendChild(document.createComment(""));
if(r.getElementsByTagName("*").length>0){l.find.TAG=function(u,v){var w=v.getElementsByTagName(u[1]);
if(u[1]==="*"){var s=[];
for(var t=0;
w[t];
t++){if(w[t].nodeType===1){s.push(w[t])
}}w=s
}return w
}
}r.innerHTML="<a href='#'></a>";
if(r.firstChild&&typeof r.firstChild.getAttribute!=="undefined"&&r.firstChild.getAttribute("href")!=="#"){l.attrHandle.href=function(s){return s.getAttribute("href",2)
}
}})();
if(document.querySelectorAll){(function(){var s=p,r=document.createElement("div");
r.innerHTML="<p class='TEST'></p>";
if(r.querySelectorAll&&r.querySelectorAll(".TEST").length===0){return
}p=function(w,x,u,t){x=x||document;
if(!t&&x.nodeType===9&&!c(x)){try{return q(x.querySelectorAll(w),u)
}catch(v){}}return s(w,x,u,t)
};
p.find=s.find;
p.filter=s.filter;
p.selectors=s.selectors;
p.matches=s.matches
})()
}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var r=document.createElement("div");
r.innerHTML="<div class='test e'></div><div class='test'></div>";
if(r.getElementsByClassName("e").length===0){return
}r.lastChild.className="e";
if(r.getElementsByClassName("e").length===1){return
}l.order.splice(1,0,"CLASS");
l.find.CLASS=function(u,t,s){if(typeof t.getElementsByClassName!=="undefined"&&!s){return t.getElementsByClassName(u[1])
}}
})()
}function d(x,s,t,z,r,A){var B=x=="previousSibling"&&!A;
for(var v=0,w=z.length;
v<w;
v++){var y=z[v];
if(y){if(B&&y.nodeType===1){y.sizcache=t;
y.sizset=v
}y=y[x];
var u=false;
while(y){if(y.sizcache===t){u=z[y.sizset];
break
}if(y.nodeType===1&&!A){y.sizcache=t;
y.sizset=v
}if(y.nodeName===s){u=y;
break
}y=y[x]
}z[v]=u
}}}function a(x,s,t,z,r,A){var B=x=="previousSibling"&&!A;
for(var v=0,w=z.length;
v<w;
v++){var y=z[v];
if(y){if(B&&y.nodeType===1){y.sizcache=t;
y.sizset=v
}y=y[x];
var u=false;
while(y){if(y.sizcache===t){u=z[y.sizset];
break
}if(y.nodeType===1){if(!A){y.sizcache=t;
y.sizset=v
}if(typeof s!=="string"){if(y===s){u=true;
break
}}else{if(p.filter(s,[y]).length>0){u=y;
break
}}}y=y[x]
}z[v]=u
}}}var j=document.compareDocumentPosition?function(r,s){return r.compareDocumentPosition(s)&16
}:function(r,s){return r!==s&&(r.contains?r.contains(s):true)
};
var c=function(r){return r.nodeType===9&&r.documentElement.nodeName!=="HTML"||!!r.ownerDocument&&c(r.ownerDocument)
};
var k=function(u,w){var r=[],y="",x,s=w.nodeType?[w]:w;
while((x=l.match.PSEUDO.exec(u))){y+=x[0];
u=u.replace(l.match.PSEUDO,"")
}u=l.relative[u]?u+"*":u;
for(var v=0,t=s.length;
v<t;
v++){p(u,s[v],r)
}return p.filter(y,r)
};
T.find=p;
T.filter=p.filter;
T.expr=p.selectors;
T.expr[":"]=T.expr.filters;
p.selectors.filters.hidden=function(r){return r.offsetWidth===0||r.offsetHeight===0
};
p.selectors.filters.visible=function(r){return r.offsetWidth>0||r.offsetHeight>0
};
p.selectors.filters.animated=function(r){return T.grep(T.timers,function(s){return r===s.elem
}).length
};
T.multiFilter=function(r,t,s){if(s){r=":not("+r+")"
}return p.matches(r,t)
};
T.dir=function(s,t){var u=[],r=s[t];
while(r&&r!=document){if(r.nodeType==1){u.push(r)
}r=r[t]
}return u
};
T.nth=function(v,u,s,r){u=u||1;
var t=0;
for(;
v;
v=v[s]){if(v.nodeType==1&&++t==u){break
}}return v
};
T.sibling=function(r,s){var t=[];
for(;
r;
r=r.nextSibling){if(r.nodeType==1&&r!=s){t.push(r)
}}return t
};
return;
W.Sizzle=p
})();
T.event={add:function(c,f,d,a){if(c.nodeType==3||c.nodeType==8){return
}if(c.setInterval&&c!=W){c=W
}if(!d.guid){d.guid=this.guid++
}if(a!==ab){var e=d;
d=this.proxy(e);
d.data=a
}var g=T.data(c,"events")||T.data(c,"events",{}),b=T.data(c,"handle")||T.data(c,"handle",function(){return typeof T!=="undefined"&&!T.event.triggered?T.event.handle.apply(arguments.callee.elem,arguments):ab
});
b.elem=c;
T.each(f.split(/\s+/),function(l,k){var j=k.split(".");
k=j.shift();
d.type=j.slice().sort().join(".");
var h=g[k];
if(T.event.specialAll[k]){T.event.specialAll[k].setup.call(c,a,j)
}if(!h){h=g[k]={};
if(!T.event.special[k]||T.event.special[k].setup.call(c,a,j)===false){if(c.addEventListener){c.addEventListener(k,b,false)
}else{if(c.attachEvent){c.attachEvent("on"+k,b)
}}}}h[d.guid]=d;
T.event.global[k]=true
});
c=null
},guid:1,global:{},remove:function(b,e,c){if(b.nodeType==3||b.nodeType==8){return
}var f=T.data(b,"events"),g,h;
if(f){if(e===ab||(typeof e==="string"&&e.charAt(0)==".")){for(var d in f){this.remove(b,d+(e||""))
}}else{if(e.type){c=e.handler;
e=e.type
}T.each(e.split(/\s+/),function(o,l){var j=l.split(".");
l=j.shift();
var m=RegExp("(^|\\.)"+j.slice().sort().join(".*\\.")+"(\\.|$)");
if(f[l]){if(c){delete f[l][c.guid]
}else{for(var k in f[l]){if(m.test(f[l][k].type)){delete f[l][k]
}}}if(T.event.specialAll[l]){T.event.specialAll[l].teardown.call(b,j)
}for(g in f[l]){break
}if(!g){if(!T.event.special[l]||T.event.special[l].teardown.call(b,j)===false){if(b.removeEventListener){b.removeEventListener(l,T.data(b,"handle"),false)
}else{if(b.detachEvent){b.detachEvent("on"+l,T.data(b,"handle"))
}}}g=null;
delete f[l]
}}})
}for(g in f){break
}if(!g){var a=T.data(b,"handle");
if(a){a.elem=null
}T.removeData(b,"events");
T.removeData(b,"handle")
}}},trigger:function(d,b,e,h){var f=d.type||d;
if(!h){d=typeof d==="object"?d[aa]?d:T.extend(T.Event(f),d):T.Event(f);
if(f.indexOf("!")>=0){d.type=f=f.slice(0,-1);
d.exclusive=true
}if(!e){d.stopPropagation();
if(this.global[f]){T.each(T.cache,function(){if(this.events&&this.events[f]){T.event.trigger(d,b,this.handle.elem)
}})
}}if(!e||e.nodeType==3||e.nodeType==8){return ab
}d.result=ab;
d.target=e;
b=T.makeArray(b);
b.unshift(d)
}d.currentTarget=e;
var c=T.data(e,"handle");
if(c){c.apply(e,b)
}if((!e[f]||(T.nodeName(e,"a")&&f=="click"))&&e["on"+f]&&e["on"+f].apply(e,b)===false){d.result=false
}if(!h&&e[f]&&!d.isDefaultPrevented()&&!(T.nodeName(e,"a")&&f=="click")){this.triggered=true;
try{e[f]()
}catch(a){}}this.triggered=false;
if(!d.isPropagationStopped()){var g=e.parentNode||e.ownerDocument;
if(g){T.event.trigger(d,b,g,true)
}}},handle:function(b){var c,h;
b=arguments[0]=T.event.fix(b||W.event);
b.currentTarget=this;
var a=b.type.split(".");
b.type=a.shift();
c=!a.length&&!b.exclusive;
var d=RegExp("(^|\\.)"+a.slice().sort().join(".*\\.")+"(\\.|$)");
h=(T.data(this,"events")||{})[b.type];
for(var f in h){var e=h[f];
if(c||d.test(e.type)){b.handler=e;
b.data=e.data;
var g=e.apply(this,arguments);
if(g!==ab){b.result=g;
if(g===false){b.preventDefault();
b.stopPropagation()
}}if(b.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(c){if(c[aa]){return c
}var e=c;
c=T.Event(e);
for(var d=this.props.length,a;
d;
){a=this.props[--d];
c[a]=e[a]
}if(!c.target){c.target=c.srcElement||document
}if(c.target.nodeType==3){c.target=c.target.parentNode
}if(!c.relatedTarget&&c.fromElement){c.relatedTarget=c.fromElement==c.target?c.toElement:c.fromElement
}if(c.pageX==null&&c.clientX!=null){var b=document.documentElement,f=document.body;
c.pageX=c.clientX+(b&&b.scrollLeft||f&&f.scrollLeft||0)-(b.clientLeft||0);
c.pageY=c.clientY+(b&&b.scrollTop||f&&f.scrollTop||0)-(b.clientTop||0)
}if(!c.which&&((c.charCode||c.charCode===0)?c.charCode:c.keyCode)){c.which=c.charCode||c.keyCode
}if(!c.metaKey&&c.ctrlKey){c.metaKey=c.ctrlKey
}if(!c.which&&c.button){c.which=(c.button&1?1:(c.button&2?3:(c.button&4?2:0)))
}return c
},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:P,teardown:function(){}}},specialAll:{live:{setup:function(b,a){T.event.add(this,a[0],af)
},teardown:function(a){if(a.length){var c=0,b=RegExp("(^|\\.)"+a[0]+"(\\.|$)");
T.each((T.data(this,"events").live||{}),function(){if(b.test(this.type)){c++
}});
if(c<1){T.event.remove(this,a[0],af)
}}}}}};
T.Event=function(a){if(!this.preventDefault){return new T.Event(a)
}if(a&&a.type){this.originalEvent=a;
this.type=a.type
}else{this.type=a
}this.timeStamp=ad();
this[aa]=true
};
function X(){return false
}function J(){return true
}T.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;
var a=this.originalEvent;
if(!a){return
}if(a.preventDefault){a.preventDefault()
}a.returnValue=false
},stopPropagation:function(){this.isPropagationStopped=J;
var a=this.originalEvent;
if(!a){return
}if(a.stopPropagation){a.stopPropagation()
}a.cancelBubble=true
},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;
this.stopPropagation()
},isDefaultPrevented:X,isPropagationStopped:X,isImmediatePropagationStopped:X};
var ah=function(b){var c=b.relatedTarget;
while(c&&c!=this){try{c=c.parentNode
}catch(a){c=this
}}if(c!=this){b.type=b.data;
T.event.handle.apply(this,arguments)
}};
T.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,b){T.event.special[b]={setup:function(){T.event.add(this,a,ah,b)
},teardown:function(){T.event.remove(this,a,ah)
}}
});
T.fn.extend({bind:function(b,a,c){return b=="unload"?this.one(b,a,c):this.each(function(){T.event.add(this,b,c||a,c&&a)
})
},one:function(b,a,c){var d=T.event.proxy(c||a,function(e){T(this).unbind(e,d);
return(c||a).apply(this,arguments)
});
return this.each(function(){T.event.add(this,b,d,c&&a)
})
},unbind:function(a,b){return this.each(function(){T.event.remove(this,a,b)
})
},trigger:function(b,a){return this.each(function(){T.event.trigger(b,a,this)
})
},triggerHandler:function(c,a){if(this[0]){var b=T.Event(c);
b.preventDefault();
b.stopPropagation();
T.event.trigger(b,a,this[0]);
return b.result
}},toggle:function(a){var c=arguments,b=1;
while(b<c.length){T.event.proxy(a,c[b++])
}return this.click(T.event.proxy(a,function(d){this.lastToggle=(this.lastToggle||0)%b;
d.preventDefault();
return c[this.lastToggle++].apply(this,arguments)||false
}))
},hover:function(b,a){return this.mouseenter(b).mouseleave(a)
},ready:function(a){P();
if(T.isReady){a.call(document,T)
}else{T.readyList.push(a)
}return this
},live:function(a,b){var c=T.event.proxy(b);
c.guid+=this.selector+a;
T(document).bind(Z(a,this.selector),this.selector,c);
return this
},die:function(a,b){T(document).unbind(Z(a,this.selector),b?{guid:b.guid+this.selector+a}:null);
return this
}});
function af(a){var d=RegExp("(^|\\.)"+a.type+"(\\.|$)"),b=true,c=[];
T.each(T.data(this,"events").live||[],function(g,f){if(d.test(f.type)){var e=T(a.target).closest(f.data)[0];
if(e){c.push({elem:e,fn:f})
}}});
c.sort(function(e,f){return T.data(e.elem,"closest")-T.data(f.elem,"closest")
});
T.each(c,function(){if(this.fn.call(this.elem,a,this.fn.data)===false){return(b=false)
}});
return b
}function Z(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".")
}T.extend({isReady:false,readyList:[],ready:function(){if(!T.isReady){T.isReady=true;
if(T.readyList){T.each(T.readyList,function(){this.call(document,T)
});
T.readyList=null
}T(document).triggerHandler("ready")
}}});
var G=false;
function P(){if(G){return
}G=true;
if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);
T.ready()
},false)
}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);
T.ready()
}});
if(document.documentElement.doScroll&&W==W.top){(function(){if(T.isReady){return
}try{document.documentElement.doScroll("left")
}catch(a){setTimeout(arguments.callee,0);
return
}T.ready()
})()
}}}T.event.add(W,"load",T.ready)
}T.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){T.fn[b]=function(c){return c?this.bind(b,c):this.trigger(b)
}
});
T(W).bind("unload",function(){for(var a in T.cache){if(a!=1&&T.cache[a].handle){T.event.remove(T.cache[a].handle.elem)
}}});
(function(){T.support={};
var f=document.documentElement,e=document.createElement("script"),a=document.createElement("div"),b="script"+(new Date).getTime();
a.style.display="none";
a.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 d=a.getElementsByTagName("*"),g=a.getElementsByTagName("a")[0];
if(!d||!d.length||!g){return
}T.support={leadingWhitespace:a.firstChild.nodeType==3,tbody:!a.getElementsByTagName("tbody").length,objectAll:!!a.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/red/.test(g.getAttribute("style")),hrefNormalized:g.getAttribute("href")==="/a",opacity:g.style.opacity==="0.5",cssFloat:!!g.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};
e.type="text/javascript";
try{e.appendChild(document.createTextNode("window."+b+"=1;"))
}catch(c){}f.insertBefore(e,f.firstChild);
if(W[b]){T.support.scriptEval=true;
delete W[b]
}f.removeChild(e);
if(a.attachEvent&&a.fireEvent){a.attachEvent("onclick",function(){T.support.noCloneEvent=false;
a.detachEvent("onclick",arguments.callee)
});
a.cloneNode(true).fireEvent("onclick")
}T(function(){var h=document.createElement("div");
h.style.width=h.style.paddingLeft="1px";
document.body.appendChild(h);
T.boxModel=T.support.boxModel=h.offsetWidth===2;
document.body.removeChild(h).style.display="none"
})
})();
var H=T.support.cssFloat?"cssFloat":"styleFloat";
T.props={"for":"htmlFor","class":"className","float":H,cssFloat:H,styleFloat:H,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};
T.fn.extend({_load:T.fn.load,load:function(e,b,a){if(typeof e!=="string"){return this._load(e)
}var c=e.indexOf(" ");
if(c>=0){var g=e.slice(c,e.length);
e=e.slice(0,c)
}var d="GET";
if(b){if(T.isFunction(b)){a=b;
b=null
}else{if(typeof b==="object"){b=T.param(b);
d="POST"
}}}var f=this;
T.ajax({url:e,type:d,dataType:"html",data:b,complete:function(j,h){if(h=="success"||h=="notmodified"){f.html(g?T("<div/>").append(j.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(g):j.responseText)
}if(a){f.each(a,[j.responseText,h,j])
}}});
return this
},serialize:function(){return T.param(this.serializeArray())
},serializeArray:function(){return this.map(function(){return this.elements?T.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,b){var a=T(this).val();
return a==null?null:T.isArray(a)?T.map(a,function(d,e){return{name:b.name,value:d}
}):{name:b.name,value:a}
}).get()
}});
T.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,a){T.fn[a]=function(c){return this.bind(a,c)
}
});
var N=ad();
T.extend({get:function(d,b,a,c){if(T.isFunction(b)){a=b;
b=null
}return T.ajax({type:"GET",url:d,data:b,success:a,dataType:c})
},getScript:function(b,a){return T.get(b,null,a,"script")
},getJSON:function(c,b,a){return T.get(c,b,a,"json")
},post:function(d,b,a,c){if(T.isFunction(b)){a=b;
b={}
}return T.ajax({type:"POST",url:d,data:b,success:a,dataType:c})
},ajaxSetup:function(a){T.extend(T.ajaxSettings,a)
},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return W.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(l){l=T.extend(true,l,T.extend(true,{},T.ajaxSettings,l));
var a,t=/=\?(&|$)/g,f,b,s=l.type.toUpperCase();
if(l.data&&l.processData&&typeof l.data!=="string"){l.data=T.param(l.data)
}if(l.dataType=="jsonp"){if(s=="GET"){if(!l.url.match(t)){l.url+=(l.url.match(/\?/)?"&":"?")+(l.jsonp||"callback")+"=?"
}}else{if(!l.data||!l.data.match(t)){l.data=(l.data?l.data+"&":"")+(l.jsonp||"callback")+"=?"
}}l.dataType="json"
}if(l.dataType=="json"&&(l.data&&l.data.match(t)||l.url.match(t))){a="jsonp"+N++;
if(l.data){l.data=(l.data+"").replace(t,"="+a+"$1")
}l.url=l.url.replace(t,"="+a+"$1");
l.dataType="script";
W[a]=function(w){b=w;
q();
m();
W[a]=ab;
try{delete W[a]
}catch(v){}if(r){r.removeChild(d)
}}
}if(l.dataType=="script"&&l.cache==null){l.cache=false
}if(l.cache===false&&s=="GET"){var u=ad();
var c=l.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+u+"$2");
l.url=c+((c==l.url)?(l.url.match(/\?/)?"&":"?")+"_="+u:"")
}if(l.data&&s=="GET"){l.url+=(l.url.match(/\?/)?"&":"?")+l.data;
l.data=null
}if(l.global&&!T.active++){T.event.trigger("ajaxStart")
}var g=/^(\w+:)?\/\/([^\/?#]+)/.exec(l.url);
if(l.dataType=="script"&&s=="GET"&&g&&(g[1]&&g[1]!=location.protocol||g[2]!=location.host)){var r=document.getElementsByTagName("head")[0];
var d=document.createElement("script");
d.src=l.url;
if(l.scriptCharset){d.charset=l.scriptCharset
}if(!a){var j=false;
d.onload=d.onreadystatechange=function(){if(!j&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){j=true;
q();
m();
d.onload=d.onreadystatechange=null;
r.removeChild(d)
}}
}r.appendChild(d);
return ab
}var o=false;
var p=l.xhr();
if(l.username){p.open(s,l.url,l.async,l.username,l.password)
}else{p.open(s,l.url,l.async)
}try{if(l.data){p.setRequestHeader("Content-Type",l.contentType)
}if(l.ifModified){p.setRequestHeader("If-Modified-Since",T.lastModified[l.url]||"Thu, 01 Jan 1970 00:00:00 GMT")
}p.setRequestHeader("X-Requested-With","XMLHttpRequest");
p.setRequestHeader("Accept",l.dataType&&l.accepts[l.dataType]?l.accepts[l.dataType]+", */*":l.accepts._default)
}catch(e){}if(l.beforeSend&&l.beforeSend(p,l)===false){if(l.global&&!--T.active){T.event.trigger("ajaxStop")
}p.abort();
return false
}if(l.global){T.event.trigger("ajaxSend",[p,l])
}var k=function(x){if(p.readyState==0){if(h){clearInterval(h);
h=null;
if(l.global&&!--T.active){T.event.trigger("ajaxStop")
}}}else{if(!o&&p&&(p.readyState==4||x=="timeout")){o=true;
if(h){clearInterval(h);
h=null
}f=x=="timeout"?"timeout":!T.httpSuccess(p)?"error":l.ifModified&&T.httpNotModified(p,l.url)?"notmodified":"success";
if(f=="success"){try{b=T.httpData(p,l.dataType,l)
}catch(v){f="parsererror"
}}if(f=="success"){var w;
try{w=p.getResponseHeader("Last-Modified")
}catch(v){}if(l.ifModified&&w){T.lastModified[l.url]=w
}if(!a){q()
}}else{T.handleError(l,p,f)
}m();
if(x){p.abort()
}if(l.async){p=null
}}}};
if(l.async){var h=setInterval(k,13);
if(l.timeout>0){setTimeout(function(){if(p&&!o){k("timeout")
}},l.timeout)
}}try{p.send(l.data)
}catch(e){T.handleError(l,p,null,e)
}if(!l.async){k()
}function q(){if(l.success){l.success(b,f)
}if(l.global){T.event.trigger("ajaxSuccess",[p,l])
}}function m(){if(l.complete){l.complete(p,f)
}if(l.global){T.event.trigger("ajaxComplete",[p,l])
}if(l.global&&!--T.active){T.event.trigger("ajaxStop")
}}return p
},handleError:function(c,a,d,b){if(c.error){c.error(a,d,b)
}if(c.global){T.event.trigger("ajaxError",[a,c,b])
}},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==T.lastModified[d]
}catch(c){}return false
},httpData:function(a,c,d){var e=a.getResponseHeader("content-type"),f=c=="xml"||!c&&e&&e.indexOf("xml")>=0,b=f?a.responseXML:a.responseText;
if(f&&b.documentElement.tagName=="parsererror"){throw"parsererror"
}if(d&&d.dataFilter){b=d.dataFilter(b,c)
}if(typeof b==="string"){if(c=="script"){T.globalEval(b)
}if(c=="json"){b=W["eval"]("("+b+")")
}}return b
},param:function(d){var b=[];
function a(f,e){b[b.length]=encodeURIComponent(f)+"="+encodeURIComponent(e)
}if(T.isArray(d)||d.jquery){T.each(d,function(){a(this.name,this.value)
})
}else{for(var c in d){if(T.isArray(d[c])){T.each(d[c],function(){a(c,this)
})
}else{a(c,T.isFunction(d[c])?d[c]():d[c])
}}}return b.join("&").replace(/%20/g,"+")
}});
var V={},U,ae=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];
function K(b,c){var a={};
T.each(ae.concat.apply([],ae.slice(0,c)),function(){a[this]=b
});
return a
}T.fn.extend({show:function(c,a){if(c){return this.animate(K("show",3),c,a)
}else{for(var e=0,g=this.length;
e<g;
e++){var h=T.data(this[e],"olddisplay");
this[e].style.display=h||"";
if(T.css(this[e],"display")==="none"){var f=this[e].tagName,b;
if(V[f]){b=V[f]
}else{var d=T("<"+f+" />").appendTo("body");
b=d.css("display");
if(b==="none"){b="block"
}d.remove();
V[f]=b
}T.data(this[e],"olddisplay",b)
}}for(var e=0,g=this.length;
e<g;
e++){this[e].style.display=T.data(this[e],"olddisplay")||""
}return this
}},hide:function(b,a){if(b){return this.animate(K("hide",3),b,a)
}else{for(var c=0,d=this.length;
c<d;
c++){var e=T.data(this[c],"olddisplay");
if(!e&&e!=="none"){T.data(this[c],"olddisplay",T.css(this[c],"display"))
}}for(var c=0,d=this.length;
c<d;
c++){this[c].style.display="none"
}return this
}},_toggle:T.fn.toggle,toggle:function(a,b){var c=typeof a==="boolean";
return T.isFunction(a)&&T.isFunction(b)?this._toggle.apply(this,arguments):a==null||c?this.each(function(){var d=c?a:T(this).is(":hidden");
T(this)[d?"show":"hide"]()
}):this.animate(K("toggle",3),a,b)
},fadeTo:function(c,a,b){return this.animate({opacity:a},c,b)
},animate:function(a,d,b,c){var e=T.speed(d,b,c);
return this[e.queue===false?"each":"queue"](function(){var g=T.extend({},e),j,f=this.nodeType==1&&T(this).is(":hidden"),h=this;
for(j in a){if(a[j]=="hide"&&f||a[j]=="show"&&!f){return g.complete.call(this)
}if((j=="height"||j=="width")&&this.style){g.display=T.css(this,"display");
g.overflow=this.style.overflow
}}if(g.overflow!=null){this.style.overflow="hidden"
}g.curAnim=T.extend({},a);
T.each(a,function(q,l){var m=new T.fx(h,g,q);
if(/toggle|show|hide/.test(l)){m[l=="toggle"?f?"show":"hide":l](a)
}else{var o=l.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),k=m.cur(true)||0;
if(o){var r=parseFloat(o[2]),p=o[3]||"px";
if(p!="px"){h.style[q]=(r||1)+p;
k=((r||1)/m.cur(true))*k;
h.style[q]=k+p
}if(o[1]){r=((o[1]=="-="?-1:1)*r)+k
}m.custom(k,r,p)
}else{m.custom(k,l,"")
}}});
return true
})
},stop:function(b,c){var a=T.timers;
if(b){this.queue([])
}this.each(function(){for(var d=a.length-1;
d>=0;
d--){if(a[d].elem==this){if(c){a[d](true)
}a.splice(d,1)
}}});
if(!c){this.dequeue()
}return this
}});
T.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,a){T.fn[b]=function(d,c){return this.animate(a,d,c)
}
});
T.extend({speed:function(b,a,c){var d=typeof b==="object"?b:{complete:c||!c&&a||T.isFunction(b)&&b,duration:b,easing:c&&a||a&&!T.isFunction(a)&&a};
d.duration=T.fx.off?0:typeof d.duration==="number"?d.duration:T.fx.speeds[d.duration]||T.fx.speeds._default;
d.old=d.complete;
d.complete=function(){if(d.queue!==false){T(this).dequeue()
}if(T.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(b,c,a){this.options=c;
this.elem=b;
this.prop=a;
if(!c.orig){c.orig={}
}}});
T.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)
}(T.fx.step[this.prop]||T.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(T.css(this.elem,this.prop,a));
return b&&b>-10000?b:parseFloat(T.curCSS(this.elem,this.prop))||0
},custom:function(a,b,c){this.startTime=ad();
this.start=a;
this.end=b;
this.unit=c||this.unit||"px";
this.now=this.start;
this.pos=this.state=0;
var e=this;
function d(f){return e.step(f)
}d.elem=this.elem;
if(d()&&T.timers.push(d)&&!U){U=setInterval(function(){var f=T.timers;
for(var g=0;
g<f.length;
g++){if(!f[g]()){f.splice(g--,1)
}}if(!f.length){clearInterval(U);
U=ab
}},13)
}},show:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);
this.options.show=true;
this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());
T(this.elem).show()
},hide:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);
this.options.hide=true;
this.custom(this.cur(),0)
},step:function(c){var d=ad();
if(c||d>=this.options.duration+this.startTime){this.now=this.end;
this.pos=this.state=1;
this.update();
this.options.curAnim[this.prop]=true;
var f=true;
for(var e in this.options.curAnim){if(this.options.curAnim[e]!==true){f=false
}}if(f){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;
this.elem.style.display=this.options.display;
if(T.css(this.elem,"display")=="none"){this.elem.style.display="block"
}}if(this.options.hide){T(this.elem).hide()
}if(this.options.hide||this.options.show){for(var b in this.options.curAnim){T.attr(this.elem.style,b,this.options.orig[b])
}}this.options.complete.call(this.elem)
}return false
}else{var a=d-this.startTime;
this.state=a/this.options.duration;
this.pos=T.easing[this.options.easing||(T.easing.swing?"swing":"linear")](this.state,a,0,1,this.options.duration);
this.now=this.start+((this.end-this.start)*this.pos);
this.update()
}return true
}};
T.extend(T.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){T.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){T.fn.offset=function(){if(!this[0]){return{top:0,left:0}
}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])
}var f=this[0].getBoundingClientRect(),c=this[0].ownerDocument,g=c.body,h=c.documentElement,a=h.clientTop||g.clientTop||0,b=h.clientLeft||g.clientLeft||0,d=f.top+(self.pageYOffset||T.boxModel&&h.scrollTop||g.scrollTop)-a,e=f.left+(self.pageXOffset||T.boxModel&&h.scrollLeft||g.scrollLeft)-b;
return{top:d,left:e}
}
}else{T.fn.offset=function(){if(!this[0]){return{top:0,left:0}
}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])
}T.offset.initialized||T.offset.initialize();
var f=this[0],j=f.offsetParent,k=f,a=f.ownerDocument,c,h=a.documentElement,e=a.body,d=a.defaultView,l=d.getComputedStyle(f,null),b=f.offsetTop,g=f.offsetLeft;
while((f=f.parentNode)&&f!==e&&f!==h){c=d.getComputedStyle(f,null);
b-=f.scrollTop,g-=f.scrollLeft;
if(f===j){b+=f.offsetTop,g+=f.offsetLeft;
if(T.offset.doesNotAddBorder&&!(T.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(f.tagName))){b+=parseInt(c.borderTopWidth,10)||0,g+=parseInt(c.borderLeftWidth,10)||0
}k=j,j=f.offsetParent
}if(T.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"){b+=parseInt(c.borderTopWidth,10)||0,g+=parseInt(c.borderLeftWidth,10)||0
}l=c
}if(l.position==="relative"||l.position==="static"){b+=e.offsetTop,g+=e.offsetLeft
}if(l.position==="fixed"){b+=Math.max(h.scrollTop,e.scrollTop),g+=Math.max(h.scrollLeft,e.scrollLeft)
}return{top:b,left:g}
}
}T.offset={initialize:function(){if(this.initialized){return
}var c=document.body,j=document.createElement("div"),g,h,a,f,b,k,e=c.style.marginTop,d='<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>';
b={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};
for(k in b){j.style[k]=b[k]
}j.innerHTML=d;
c.insertBefore(j,c.firstChild);
g=j.firstChild,h=g.firstChild,f=g.nextSibling.firstChild.firstChild;
this.doesNotAddBorder=(h.offsetTop!==5);
this.doesAddBorderForTableAndCells=(f.offsetTop===5);
g.style.overflow="hidden",g.style.position="relative";
this.subtractsBorderForOverflowNotVisible=(h.offsetTop===-5);
c.style.marginTop="1px";
this.doesNotIncludeMarginInBodyOffset=(c.offsetTop===0);
c.style.marginTop=e;
c.removeChild(j);
this.initialized=true
},bodyOffset:function(c){T.offset.initialized||T.offset.initialize();
var a=c.offsetTop,b=c.offsetLeft;
if(T.offset.doesNotIncludeMarginInBodyOffset){a+=parseInt(T.curCSS(c,"marginTop",true),10)||0,b+=parseInt(T.curCSS(c,"marginLeft",true),10)||0
}return{top:a,left:b}
}};
T.fn.extend({position:function(){var b=0,c=0,e;
if(this[0]){var d=this.offsetParent(),a=this.offset(),f=/^body|html$/i.test(d[0].tagName)?{top:0,left:0}:d.offset();
a.top-=Y(this,"marginTop");
a.left-=Y(this,"marginLeft");
f.top+=Y(d,"borderTopWidth");
f.left+=Y(d,"borderLeftWidth");
e={top:a.top-f.top,left:a.left-f.left}
}return e
},offsetParent:function(){var a=this[0].offsetParent||document.body;
while(a&&(!/^body|html$/i.test(a.tagName)&&T.css(a,"position")=="static")){a=a.offsetParent
}return T(a)
}});
T.each(["Left","Top"],function(b,c){var a="scroll"+c;
T.fn[a]=function(d){if(!this[0]){return null
}return d!==ab?this.each(function(){this==W||this==document?W.scrollTo(!b?d:T(W).scrollLeft(),b?d:T(W).scrollTop()):this[a]=d
}):this[0]==W||this[0]==document?self[b?"pageYOffset":"pageXOffset"]||T.boxModel&&document.documentElement[a]||document.body[a]:this[0][a]
}
});
T.each(["Height","Width"],function(b,d){var f=b?"Left":"Top",c=b?"Right":"Bottom",e=d.toLowerCase();
T.fn["inner"+d]=function(){return this[0]?T.css(this[0],e,false,"padding"):null
};
T.fn["outer"+d]=function(g){return this[0]?T.css(this[0],e,false,g?"margin":"border"):null
};
var a=d.toLowerCase();
T.fn[a]=function(g){return this[0]==W?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]):g===ab?(this.length?T.css(this[0],a):null):this.css(a,typeof g==="string"?g:g+"px")
}
})
})();
(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="{}";
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
}}}}if(data.indexOf("{")<0){data="{"+data+"}"
}data=eval("("+data+")");
$.data(elem,settings.single,data);
return data
}}});
$.fn.metadata=function(opts){return $.metadata.get(this[0],opts)
}
})(jQuery);
if(window.jQuery){(function(a){if(a.browser.msie){try{document.execCommand("BackgroundImageCache",false,true)
}catch(b){}}a.fn.rating=function(d){if(this.length==0){return this
}if(typeof arguments[0]=="string"){if(this.length>1){var c=arguments;
return this.each(function(){a.fn.rating.apply(a(this),c)
})
}a.fn.rating[arguments[0]].apply(this,a.makeArray(arguments).slice(1)||[]);
return this
}var d=a.extend({},a.fn.rating.options,d||{});
a.fn.rating.calls++;
this.not(".star-rating-applied").addClass("star-rating-applied").each(function(){var g,m=a(this);
var e=(this.name||"unnamed-rating").replace(/\[|\]/g,"_").replace(/^\_+|\_+$/g,"");
var f=a(this.form||document.body);
var l=f.data("rating");
if(!l||l.call!=a.fn.rating.calls){l={count:0,call:a.fn.rating.calls}
}var p=l[e];
if(p){g=p.data("rating")
}if(p&&g){g.count++
}else{g=a.extend({},d||{},(a.metadata?m.metadata():(a.meta?m.data():null))||{},{count:0,stars:[],inputs:[]});
g.serial=l.count++;
p=a('<span class="star-rating-control"/>');
m.before(p);
p.addClass("rating-to-be-drawn");
if(m.attr("disabled")){g.readOnly=true
}}var k=a('<div class="star-rating rater-'+g.serial+'"><a title="'+(this.title||this.value)+'">'+this.value+"</a></div>");
p.append(k);
if(this.id){k.attr("id",this.id)
}if(this.className){k.addClass(this.className)
}if(g.half){g.split=2
}if(typeof g.split=="number"&&g.split>0){var j=(a.fn.width?k.width():0)||g.starWidth;
var h=(g.count%g.split),o=Math.floor(j/g.split);
k.width(o).find("a").css({"margin-left":"-"+(h*o)+"px"})
}if(g.readOnly){k.addClass("star-rating-readonly")
}else{k.addClass("star-rating-live").mouseover(function(){a(this).rating("fill");
a(this).rating("focus")
}).mouseout(function(){a(this).rating("draw");
a(this).rating("blur")
}).click(function(){a(this).rating("select")
})
}if(this.checked){g.current=k
}m.hide();
m.change(function(){a(this).rating("select")
});
k.data("rating.input",m.data("rating.star",k));
g.stars[g.stars.length]=k[0];
g.inputs[g.inputs.length]=m[0];
g.rater=l[e]=p;
g.context=f;
m.data("rating",g);
p.data("rating",g);
k.data("rating",g);
f.data("rating",l)
});
a(".rating-to-be-drawn").rating("draw").removeClass("rating-to-be-drawn");
return this
};
a.extend(a.fn.rating,{calls:0,focus:function(){var d=this.data("rating");
if(!d){return this
}if(!d.focus){return this
}var c=a(this).data("rating.input")||a(this.tagName=="INPUT"?this:null);
if(d.focus){d.focus.apply(c[0],[c.val(),a("a",c.data("rating.star"))[0]])
}},blur:function(){var d=this.data("rating");
if(!d){return this
}if(!d.blur){return this
}var c=a(this).data("rating.input")||a(this.tagName=="INPUT"?this:null);
if(d.blur){d.blur.apply(c[0],[c.val(),a("a",c.data("rating.star"))[0]])
}},fill:function(){var c=this.data("rating");
if(!c){return this
}if(c.readOnly){return
}this.rating("drain");
this.prevAll().andSelf().filter(".rater-"+c.serial).addClass("star-rating-hover")
},drain:function(){var c=this.data("rating");
if(!c){return this
}if(c.readOnly){return
}c.rater.children().filter(".rater-"+c.serial).removeClass("star-rating-on").removeClass("star-rating-hover")
},draw:function(){var c=this.data("rating");
if(!c){return this
}this.rating("drain");
if(c.current){c.current.data("rating.input").attr("checked","checked");
c.current.prevAll().andSelf().filter(".rater-"+c.serial).addClass("star-rating-on")
}else{a(c.inputs).removeAttr("checked")
}this.siblings()[c.readOnly?"addClass":"removeClass"]("star-rating-readonly")
},select:function(d){var e=this.data("rating");
if(!e){return this
}if(e.readOnly){return
}e.current=null;
if(typeof d!="undefined"){if(typeof d=="number"){return a(e.stars[d]).rating("select")
}if(typeof d=="string"){a.each(e.stars,function(){if(a(this).data("rating.input").val()==d){a(this).rating("select")
}})
}}else{e.current=this[0].tagName=="INPUT"?this.data("rating.star"):(this.is(".rater-"+e.serial)?this:null)
}this.data("rating",e);
this.rating("draw");
var c=a(e.current?e.current.data("rating.input"):null);
if(e.callback){e.callback.apply(c[0],[c.val(),a("a",e.current)[0]])
}},readOnly:function(c,d){var e=this.data("rating");
if(!e){return this
}e.readOnly=c||c==undefined?true:false;
if(d){a(e.inputs).attr("disabled","disabled")
}else{a(e.inputs).removeAttr("disabled")
}this.data("rating",e);
this.rating("draw")
},disable:function(){this.rating("readOnly",true,true)
},enable:function(){this.rating("readOnly",false,false)
}});
a.fn.rating.options={cancel:"Cancel Rating",cancelValue:"",split:0,starWidth:16};
a(function(){a("input[type=radio].star").rating()
})
})(jQuery)
}(function(a){a.extend(a.fn,{validate:function(b){if(!this.length){b&&b.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");
return
}var c=a.data(this[0],"validator");
if(c){return c
}c=new a.validator(b,this[0]);
a.data(this[0],"validator",c);
if(c.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){c.cancelSubmit=true
});
if(c.settings.submitHandler){this.find("input, button").filter(":submit").click(function(){c.submitButton=this
})
}this.submit(function(d){if(c.settings.debug){d.preventDefault()
}function e(){if(c.settings.submitHandler){if(c.submitButton){var f=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(c.submitButton.value).appendTo(c.currentForm)
}c.settings.submitHandler.call(c,c.currentForm);
if(c.submitButton){f.remove()
}return false
}return true
}if(c.cancelSubmit){c.cancelSubmit=false;
return e()
}if(c.form()){if(c.pendingRequest){c.formSubmitted=true;
return false
}return e()
}else{c.focusInvalid();
return false
}})
}return c
},valid:function(){if(a(this[0]).is("form")){return this.validate().form()
}else{var c=true;
var b=a(this[0].form).validate();
this.each(function(){c&=b.element(this)
});
return c
}},removeAttrs:function(d){var b={},c=this;
a.each(d.split(/\s/),function(e,f){b[f]=c.attr(f);
c.removeAttr(f)
});
return b
},rules:function(e,b){var g=this[0];
if(e){var d=a.data(g.form,"validator").settings;
var j=d.rules;
var k=a.validator.staticRules(g);
switch(e){case"add":a.extend(k,a.validator.normalizeRule(b));
j[g.name]=k;
if(b.messages){d.messages[g.name]=a.extend(d.messages[g.name],b.messages)
}break;
case"remove":if(!b){delete j[g.name];
return k
}var h={};
a.each(b.split(/\s/),function(l,m){h[m]=k[m];
delete k[m]
});
return h
}}var f=a.validator.normalizeRules(a.extend({},a.validator.metadataRules(g),a.validator.classRules(g),a.validator.attributeRules(g),a.validator.staticRules(g)),g);
if(f.required){var c=f.required;
delete f.required;
f=a.extend({required:c},f)
}return f
}});
a.extend(a.expr[":"],{blank:function(b){return !a.trim(b.value)
},filled:function(b){return !!a.trim(b.value)
},unchecked:function(b){return !b.checked
}});
a.validator=function(b,c){this.settings=a.extend({},a.validator.defaults,b);
this.currentForm=c;
this.init()
};
a.validator.format=function(b,c){if(arguments.length==1){return function(){var d=a.makeArray(arguments);
d.unshift(b);
return a.validator.format.apply(this,d)
}
}if(arguments.length>2&&c.constructor!=Array){c=a.makeArray(arguments).slice(1)
}if(c.constructor!=Array){c=[c]
}a.each(c,function(d,e){b=b.replace(new RegExp("\\{"+d+"\\}","g"),e)
});
return b
};
a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(b){this.lastActive=b;
if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,b,this.settings.errorClass,this.settings.validClass);
this.errorsFor(b).hide()
}},onfocusout:function(b){if(!this.checkable(b)&&(b.name in this.submitted||!this.optional(b))){this.element(b)
}},onkeyup:function(b){if(b.name in this.submitted||b==this.lastElement){this.element(b)
}},onclick:function(b){if(b.name in this.submitted){this.element(b)
}},highlight:function(d,b,c){a(d).addClass(b).removeClass(c)
},unhighlight:function(d,b,c){a(d).removeClass(b).addClass(c)
}},setDefaults:function(b){a.extend(a.validator.defaults,b)
},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",dateDE:"Bitte geben Sie ein gültiges Datum ein.",number:"Please enter a valid number.",numberDE:"Bitte geben Sie eine Nummer ein.",digits:"Please enter only digits",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=a(this.settings.errorLabelContainer);
this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm);
this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer);
this.submitted={};
this.valueCache={};
this.pendingRequest=0;
this.pending={};
this.invalid={};
this.reset();
var b=(this.groups={});
a.each(this.settings.groups,function(e,f){a.each(f.split(/\s/),function(h,g){b[g]=e
})
});
var d=this.settings.rules;
a.each(d,function(e,f){d[e]=a.validator.normalizeRule(f)
});
function c(f){var e=a.data(this[0].form,"validator");
e.settings["on"+f.type]&&e.settings["on"+f.type].call(e,this[0])
}a(this.currentForm).delegate("focusin focusout keyup",":text, :password, :file, select, textarea",c).delegate("click",":radio, :checkbox",c);
if(this.settings.invalidHandler){a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)
}},form:function(){this.checkForm();
a.extend(this.submitted,this.errorMap);
this.invalid=a.extend({},this.errorMap);
if(!this.valid()){a(this.currentForm).triggerHandler("invalid-form",[this])
}this.showErrors();
return this.valid()
},checkForm:function(){this.prepareForm();
for(var b=0,c=(this.currentElements=this.elements());
c[b];
b++){this.check(c[b])
}return this.valid()
},element:function(c){c=this.clean(c);
this.lastElement=c;
this.prepareElement(c);
this.currentElements=a(c);
var b=this.check(c);
if(b){delete this.invalid[c.name]
}else{this.invalid[c.name]=true
}if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers)
}this.showErrors();
return b
},showErrors:function(c){if(c){a.extend(this.errorMap,c);
this.errorList=[];
for(var b in c){this.errorList.push({message:c[b],element:this.findByName(b)[0]})
}this.successList=a.grep(this.successList,function(d){return !(d.name in c)
})
}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()
},resetForm:function(){if(a.fn.resetForm){a(this.currentForm).resetForm()
}this.submitted={};
this.prepareForm();
this.hideErrors();
this.elements().removeClass(this.settings.errorClass)
},numberOfInvalids:function(){return this.objectLength(this.invalid)
},objectLength:function(d){var c=0;
for(var b in d){c++
}return c
},hideErrors:function(){this.addWrapper(this.toHide).hide()
},valid:function(){return this.size()==0
},size:function(){return this.errorList.length
},focusInvalid:function(){if(this.settings.focusInvalid){try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus()
}catch(b){}}},findLastActive:function(){var b=this.lastActive;
return b&&a.grep(this.errorList,function(c){return c.element.name==b.name
}).length==1&&b
},elements:function(){var c=this,b={};
return a([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&c.settings.debug&&window.console&&console.error("%o has no name assigned",this);
if(this.name in b||!c.objectLength(a(this).rules())){return false
}b[this.name]=true;
return true
})
},clean:function(b){return a(b)[0]
},errors:function(){return a(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)
},reset:function(){this.successList=[];
this.errorList=[];
this.errorMap={};
this.toShow=a([]);
this.toHide=a([]);
this.formSubmitted=false;
this.currentElements=a([])
},prepareForm:function(){this.reset();
this.toHide=this.errors().add(this.containers)
},prepareElement:function(b){this.reset();
this.toHide=this.errorsFor(b)
},check:function(c){c=this.clean(c);
if(this.checkable(c)){c=this.findByName(c.name)[0]
}var h=a(c).rules();
var d=false;
for(method in h){var g={method:method,parameters:h[method]};
try{var b=a.validator.methods[method].call(this,c.value.replace(/\r/g,""),c,g.parameters);
if(b=="dependency-mismatch"){d=true;
continue
}d=false;
if(b=="pending"){this.toHide=this.toHide.not(this.errorsFor(c));
return
}if(!b){this.formatAndAdd(c,g);
return false
}}catch(f){this.settings.debug&&window.console&&console.log("exception occured when checking element "+c.id+", check the '"+g.method+"' method");
throw f
}}if(d){return
}if(this.objectLength(h)){this.successList.push(c)
}return true
},customMetaMessage:function(b,d){if(!a.metadata){return
}var c=this.settings.meta?a(b).metadata()[this.settings.meta]:a(b).metadata();
return c&&c.messages&&c.messages[d]
},customMessage:function(c,d){var b=this.settings.messages[c];
return b&&(b.constructor==String?b:b[d])
},findDefined:function(){for(var b=0;
b<arguments.length;
b++){if(arguments[b]!==undefined){return arguments[b]
}}return undefined
},defaultMessage:function(b,c){return this.findDefined(this.customMessage(b.name,c),this.customMetaMessage(b,c),!this.settings.ignoreTitle&&b.title||undefined,a.validator.messages[c],"<strong>Warning: No message defined for "+b.name+"</strong>")
},formatAndAdd:function(b,d){var c=this.defaultMessage(b,d.method);
if(typeof c=="function"){c=c.call(this,d.parameters,b)
}this.errorList.push({message:c,element:b});
this.errorMap[b.name]=c;
this.submitted[b.name]=c
},addWrapper:function(b){if(this.settings.wrapper){b=b.add(b.parent(this.settings.wrapper))
}return b
},defaultShowErrors:function(){for(var c=0;
this.errorList[c];
c++){var b=this.errorList[c];
this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass);
this.showLabel(b.element,b.message)
}if(this.errorList.length){this.toShow=this.toShow.add(this.containers)
}if(this.settings.success){for(var c=0;
this.successList[c];
c++){this.showLabel(this.successList[c])
}}if(this.settings.unhighlight){for(var c=0,d=this.validElements();
d[c];
c++){this.settings.unhighlight.call(this,d[c],this.settings.errorClass,this.settings.validClass)
}}this.toHide=this.toHide.not(this.toShow);
this.hideErrors();
this.addWrapper(this.toShow).show()
},validElements:function(){return this.currentElements.not(this.invalidElements())
},invalidElements:function(){return a(this.errorList).map(function(){return this.element
})
},showLabel:function(c,d){var b=this.errorsFor(c);
if(b.length){b.removeClass().addClass(this.settings.errorClass);
b.attr("generated")&&b.html(d)
}else{b=a("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(c),generated:true}).addClass(this.settings.errorClass).html(d||"");
if(this.settings.wrapper){b=b.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()
}if(!this.labelContainer.append(b).length){this.settings.errorPlacement?this.settings.errorPlacement(b,a(c)):b.insertAfter(c)
}}if(!d&&this.settings.success){b.text("");
typeof this.settings.success=="string"?b.addClass(this.settings.success):this.settings.success(b)
}this.toShow=this.toShow.add(b)
},errorsFor:function(b){return this.errors().filter("[for='"+this.idOrName(b)+"']")
},idOrName:function(b){return this.groups[b.name]||(this.checkable(b)?b.name:b.id||b.name)
},checkable:function(b){return/radio|checkbox/i.test(b.type)
},findByName:function(b){var c=this.currentForm;
return a(document.getElementsByName(b)).map(function(d,e){return e.form==c&&e.name==b&&e||null
})
},getLength:function(c,b){switch(b.nodeName.toLowerCase()){case"select":return a("option:selected",b).length;
case"input":if(this.checkable(b)){return this.findByName(b.name).filter(":checked").length
}}return c.length
},depend:function(c,b){return this.dependTypes[typeof c]?this.dependTypes[typeof c](c,b):true
},dependTypes:{"boolean":function(c,b){return c
},string:function(c,b){return !!a(c,b.form).length
},"function":function(c,b){return c(b)
}},optional:function(b){return !a.validator.methods.required.call(this,a.trim(b.value),b)&&"dependency-mismatch"
},startRequest:function(b){if(!this.pending[b.name]){this.pendingRequest++;
this.pending[b.name]=true
}},stopRequest:function(b,c){this.pendingRequest--;
if(this.pendingRequest<0){this.pendingRequest=0
}delete this.pending[b.name];
if(c&&this.pendingRequest==0&&this.formSubmitted&&this.form()){a(this.currentForm).submit()
}else{if(!c&&this.pendingRequest==0&&this.formSubmitted){a(this.currentForm).triggerHandler("invalid-form",[this])
}}},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",previous={old:null,valid:true,message:this.defaultMessage(b,"remote")})
}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(b,c){b.constructor==String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)
},classRules:function(c){var d={};
var b=a(c).attr("class");
b&&a.each(b.split(" "),function(){if(this in a.validator.classRuleSettings){a.extend(d,a.validator.classRuleSettings[this])
}});
return d
},attributeRules:function(c){var e={};
var b=a(c);
for(method in a.validator.methods){var d=b.attr(method);
if(d){e[method]=d
}}if(e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)){delete e.maxlength
}return e
},metadataRules:function(b){if(!a.metadata){return{}
}var c=a.data(b.form,"validator").settings.meta;
return c?a(b).metadata()[c]:a(b).metadata()
},staticRules:function(c){var d={};
var b=a.data(c.form,"validator");
if(b.settings.rules){d=a.validator.normalizeRule(b.settings.rules[c.name])||{}
}return d
},normalizeRules:function(c,b){a.each(c,function(f,e){if(e===false){delete c[f];
return
}if(e.param||e.depends){var d=true;
switch(typeof e.depends){case"string":d=!!a(e.depends,b.form).length;
break;
case"function":d=e.depends.call(b,b);
break
}if(d){c[f]=e.param!==undefined?e.param:true
}else{delete c[f]
}}});
a.each(c,function(d,e){c[d]=a.isFunction(e)?e(b):e
});
a.each(["minlength","maxlength","min","max"],function(){if(c[this]){c[this]=Number(c[this])
}});
a.each(["rangelength","range"],function(){if(c[this]){c[this]=[Number(c[this][0]),Number(c[this][1])]
}});
if(a.validator.autoCreateRanges){if(c.min&&c.max){c.range=[c.min,c.max];
delete c.min;
delete c.max
}if(c.minlength&&c.maxlength){c.rangelength=[c.minlength,c.maxlength];
delete c.minlength;
delete c.maxlength
}}if(c.messages){delete c.messages
}return c
},normalizeRule:function(c){if(typeof c=="string"){var b={};
a.each(c.split(/\s/),function(){b[this]=true
});
c=b
}return c
},addMethod:function(b,d,c){a.validator.methods[b]=d;
a.validator.messages[b]=c||a.validator.messages[b];
if(d.length<3){a.validator.addClassRules(b,a.validator.normalizeRule(b))
}},methods:{required:function(d,c,e){if(!this.depend(e,c)){return"dependency-mismatch"
}switch(c.nodeName.toLowerCase()){case"select":var b=a("option:selected",c);
return b.length>0&&(c.type=="select-multiple"||(a.browser.msie&&!(b[0].attributes.value.specified)?b[0].text:b[0].value).length>0);
case"input":if(this.checkable(c)){return this.getLength(d,c)>0
}default:return a.trim(d).length>0
}},remote:function(f,c,g){if(this.optional(c)){return"dependency-mismatch"
}var d=this.previousValue(c);
if(!this.settings.messages[c.name]){this.settings.messages[c.name]={}
}this.settings.messages[c.name].remote=typeof d.message=="function"?d.message(f):d.message;
g=typeof g=="string"&&{url:g}||g;
if(d.old!==f){d.old=f;
var b=this;
this.startRequest(c);
var e={};
e[c.name]=f;
a.ajax(a.extend(true,{url:g,mode:"abort",port:"validate"+c.name,dataType:"json",data:e,success:function(j){var k=j===true;
if(k){var h=b.formSubmitted;
b.prepareElement(c);
b.formSubmitted=h;
b.successList.push(c);
b.showErrors()
}else{var l={};
l[c.name]=d.message=j||b.defaultMessage(c,"remote");
b.showErrors(l)
}d.valid=k;
b.stopRequest(c,k)
}},g));
return"pending"
}else{if(this.pending[c.name]){return"pending"
}}return d.valid
},minlength:function(c,b,d){return this.optional(b)||this.getLength(a.trim(c),b)>=d
},maxlength:function(c,b,d){return this.optional(b)||this.getLength(a.trim(c),b)<=d
},rangelength:function(d,b,e){var c=this.getLength(a.trim(d),b);
return this.optional(b)||(c>=e[0]&&c<=e[1])
},min:function(c,b,d){return this.optional(b)||c>=d
},max:function(c,b,d){return this.optional(b)||c<=d
},range:function(c,b,d){return this.optional(b)||(c>=d[0]&&c<=d[1])
},email:function(c,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(c)
},url:function(c,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(c)
},date:function(c,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(c))
},dateISO:function(c,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(c)
},dateDE:function(c,b){return this.optional(b)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(c)
},number:function(c,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(c)
},numberDE:function(c,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(c)
},digits:function(c,b){return this.optional(b)||/^\d+$/.test(c)
},creditcard:function(f,c){if(this.optional(c)){return"dependency-mismatch"
}if(/[^0-9-]+/.test(f)){return false
}var g=0,e=0,b=false;
f=f.replace(/\D/g,"");
for(n=f.length-1;
n>=0;
n--){var d=f.charAt(n);
var e=parseInt(d,10);
if(b){if((e*=2)>9){e-=9
}}g+=e;
b=!b
}return(g%10)==0
},accept:function(c,b,d){d=typeof d=="string"?d.replace(/,/g,"|"):"png|jpe?g|gif";
return this.optional(b)||c.match(new RegExp(".("+d+")$","i"))
},equalTo:function(c,b,d){return c==a(d).val()
}}});
a.format=a.validator.format
})(jQuery);
(function(c){var b=c.ajax;
var a={};
c.ajax=function(e){e=c.extend(e,c.extend({},c.ajaxSettings,e));
var d=e.port;
if(e.mode=="abort"){if(a[d]){a[d].abort()
}return(a[d]=b.apply(this,arguments))
}return b.apply(this,arguments)
}
})(jQuery);
(function(a){a.each({focus:"focusin",blur:"focusout"},function(c,b){a.event.special[b]={setup:function(){if(a.browser.msie){return false
}this.addEventListener(c,a.event.special[b].handler,true)
},teardown:function(){if(a.browser.msie){return false
}this.removeEventListener(c,a.event.special[b].handler,true)
},handler:function(d){arguments[0]=a.event.fix(d);
arguments[0].type=b;
return a.event.handle.apply(this,arguments)
}}
});
a.extend(a.fn,{delegate:function(d,c,b){return this.bind(d,function(e){var f=a(e.target);
if(f.is(c)){return b.apply(f,arguments)
}})
},triggerEvent:function(b,c){return this.triggerHandler(b,[a.event.fix({type:b,target:c})])
}})
})(jQuery);
(function(b){b.fn.ajaxSubmit=function(t){if(!this.length){a("ajaxSubmit: skipping submit process - no element selected");
return this
}if(typeof t=="function"){t={success:t}
}var e=b.trim(this.attr("action"));
if(e){e=(e.match(/^([^#]+)/)||[])[1]
}e=e||window.location.href||"";
t=b.extend({url:e,type:this.attr("method")||"GET"},t||{});
var v={};
this.trigger("form-pre-serialize",[this,t,v]);
if(v.veto){a("ajaxSubmit: submit vetoed via form-pre-serialize trigger");
return this
}if(t.beforeSerialize&&t.beforeSerialize(this,t)===false){a("ajaxSubmit: submit aborted via beforeSerialize callback");
return this
}var o=this.formToArray(t.semantic);
if(t.data){t.extraData=t.data;
for(var f in t.data){if(t.data[f] instanceof Array){for(var g in t.data[f]){o.push({name:f,value:t.data[f][g]})
}}else{o.push({name:f,value:t.data[f]})
}}}if(t.beforeSubmit&&t.beforeSubmit(o,this,t)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");
return this
}this.trigger("form-submit-validate",[o,this,t,v]);
if(v.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");
return this
}var d=b.param(o);
if(t.type.toUpperCase()=="GET"){t.url+=(t.url.indexOf("?")>=0?"&":"?")+d;
t.data=null
}else{t.data=d
}var u=this,m=[];
if(t.resetForm){m.push(function(){u.resetForm()
})
}if(t.clearForm){m.push(function(){u.clearForm()
})
}if(!t.dataType&&t.target){var r=t.success||function(){};
m.push(function(j){b(t.target).html(j).each(r,arguments)
})
}else{if(t.success){m.push(t.success)
}}t.success=function(w,k){for(var q=0,j=m.length;
q<j;
q++){m[q].apply(t,[w,k,u])
}};
var c=b("input:file",this).fieldValue();
var s=false;
for(var l=0;
l<c.length;
l++){if(c[l]){s=true
}}var h=false;
if(t.iframe||s||h){if(t.closeKeepAlive){b.get(t.closeKeepAlive,p)
}else{p()
}}else{b.ajax(t)
}this.trigger("form-submit-notify",[this,t]);
return this;
function p(){var x=u[0];
if(b(":input[name=submit]",x).length){alert('Error: Form elements must not be named "submit".');
return
}var q=b.extend({},b.ajaxSettings,t);
var H=b.extend(true,{},b.extend(true,{},b.ajaxSettings),q);
var w="jqFormIO"+(new Date().getTime());
var D=b('<iframe id="'+w+'" name="'+w+'" src="about:blank" />');
var F=D[0];
D.css({position:"absolute",top:"-1000px",left:"-1000px"});
var G={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;
D.attr("src","about:blank")
}};
var E=q.global;
if(E&&!b.active++){b.event.trigger("ajaxStart")
}if(E){b.event.trigger("ajaxSend",[G,q])
}if(H.beforeSend&&H.beforeSend(G,H)===false){H.global&&b.active--;
return
}if(G.aborted){return
}var k=0;
var z=0;
var j=x.clk;
if(j){var y=j.name;
if(y&&!j.disabled){t.extraData=t.extraData||{};
t.extraData[y]=j.value;
if(j.type=="image"){t.extraData[name+".x"]=x.clk_x;
t.extraData[name+".y"]=x.clk_y
}}}setTimeout(function(){var K=u.attr("target"),I=u.attr("action");
x.setAttribute("target",w);
if(x.getAttribute("method")!="POST"){x.setAttribute("method","POST")
}if(x.getAttribute("action")!=q.url){x.setAttribute("action",q.url)
}if(!t.skipEncodingOverride){u.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})
}if(q.timeout){setTimeout(function(){z=true;
A()
},q.timeout)
}var J=[];
try{if(t.extraData){for(var L in t.extraData){J.push(b('<input type="hidden" name="'+L+'" value="'+t.extraData[L]+'" />').appendTo(x)[0])
}}D.appendTo("body");
F.attachEvent?F.attachEvent("onload",A):F.addEventListener("load",A,false);
x.submit()
}finally{x.setAttribute("action",I);
K?x.setAttribute("target",K):u.removeAttr("target");
b(J).remove()
}},10);
var B=0;
function A(){if(k++){return
}F.detachEvent?F.detachEvent("onload",A):F.removeEventListener("load",A,false);
var J=true;
try{if(z){throw"timeout"
}var K,M;
M=F.contentWindow?F.contentWindow.document:F.contentDocument?F.contentDocument:F.document;
if((M.body==null||M.body.innerHTML=="")&&!B){B=1;
k--;
setTimeout(A,100);
return
}G.responseText=M.body?M.body.innerHTML:null;
G.responseXML=M.XMLDocument?M.XMLDocument:M;
G.getResponseHeader=function(O){var N={"content-type":q.dataType};
return N[O]
};
if(q.dataType=="json"||q.dataType=="script"){var I=M.getElementsByTagName("textarea")[0];
G.responseText=I?I.value:G.responseText
}else{if(q.dataType=="xml"&&!G.responseXML&&G.responseText!=null){G.responseXML=C(G.responseText)
}}K=b.httpData(G,q.dataType)
}catch(L){J=false;
b.handleError(q,G,"error",L)
}if(J){q.success(K,"success");
if(E){b.event.trigger("ajaxSuccess",[G,q])
}}if(E){b.event.trigger("ajaxComplete",[G,q])
}if(E&&!--b.active){b.event.trigger("ajaxStop")
}if(q.complete){q.complete(G,J?"success":"error")
}setTimeout(function(){D.remove();
G.responseXML=null
},100)
}function C(I,J){if(window.ActiveXObject){J=new ActiveXObject("Microsoft.XMLDOM");
J.async="false";
J.loadXML(I)
}else{J=(new DOMParser()).parseFromString(I,"text/xml")
}return(J&&J.documentElement&&J.documentElement.tagName!="parsererror")?J:null
}}};
b.fn.ajaxForm=function(c){return this.ajaxFormUnbind().bind("submit.form-plugin",function(){b(this).ajaxSubmit(c);
return false
}).each(function(){b(":submit,input:image",this).bind("click.form-plugin",function(f){var d=this.form;
d.clk=this;
if(this.type=="image"){if(f.offsetX!=undefined){d.clk_x=f.offsetX;
d.clk_y=f.offsetY
}else{if(typeof b.fn.offset=="function"){var g=b(this).offset();
d.clk_x=f.pageX-g.left;
d.clk_y=f.pageY-g.top
}else{d.clk_x=f.pageX-this.offsetLeft;
d.clk_y=f.pageY-this.offsetTop
}}}setTimeout(function(){d.clk=d.clk_x=d.clk_y=null
},10)
})
})
};
b.fn.ajaxFormUnbind=function(){this.unbind("submit.form-plugin");
return this.each(function(){b(":submit,input:image",this).unbind("click.form-plugin")
})
};
b.fn.formToArray=function(q){var p=[];
if(this.length==0){return p
}var d=this[0];
var h=q?d.getElementsByTagName("*"):d.elements;
if(!h){return p
}for(var k=0,m=h.length;
k<m;
k++){var e=h[k];
var f=e.name;
if(!f){continue
}if(q&&d.clk&&e.type=="image"){if(!e.disabled&&d.clk==e){p.push({name:f,value:b(e).val()});
p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})
}continue
}var r=b.fieldValue(e,true);
if(r&&r.constructor==Array){for(var g=0,c=r.length;
g<c;
g++){p.push({name:f,value:r[g]})
}}else{if(r!==null&&typeof r!="undefined"){p.push({name:f,value:r})
}}}if(!q&&d.clk){var l=b(d.clk),o=l[0],f=o.name;
if(f&&!o.disabled&&o.type=="image"){p.push({name:f,value:l.val()});
p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})
}}return p
};
b.fn.formSerialize=function(c){return b.param(this.formToArray(c))
};
b.fn.fieldSerialize=function(d){var c=[];
this.each(function(){var h=this.name;
if(!h){return
}var f=b.fieldValue(this,d);
if(f&&f.constructor==Array){for(var g=0,e=f.length;
g<e;
g++){c.push({name:h,value:f[g]})
}}else{if(f!==null&&typeof f!="undefined"){c.push({name:this.name,value:f})
}}});
return b.param(c)
};
b.fn.fieldValue=function(h){for(var g=[],e=0,c=this.length;
e<c;
e++){var f=this[e];
var d=b.fieldValue(f,h);
if(d===null||typeof d=="undefined"||(d.constructor==Array&&!d.length)){continue
}d.constructor==Array?b.merge(g,d):g.push(d)
}return g
};
b.fieldValue=function(c,j){var e=c.name,p=c.type,q=c.tagName.toLowerCase();
if(typeof j=="undefined"){j=true
}if(j&&(!e||c.disabled||p=="reset"||p=="button"||(p=="checkbox"||p=="radio")&&!c.checked||(p=="submit"||p=="image")&&c.form&&c.form.clk!=c||q=="select"&&c.selectedIndex==-1)){return null
}if(q=="select"){var k=c.selectedIndex;
if(k<0){return null
}var m=[],d=c.options;
var g=(p=="select-one");
var l=(g?k+1:d.length);
for(var f=(g?k:0);
f<l;
f++){var h=d[f];
if(h.selected){var o=h.value;
if(!o){o=(h.attributes&&h.attributes.value&&!(h.attributes.value.specified))?h.text:h.value
}if(g){return o
}m.push(o)
}}return m
}return c.value
};
b.fn.clearForm=function(){return this.each(function(){b("input,select,textarea",this).clearFields()
})
};
b.fn.clearFields=b.fn.clearInputs=function(){return this.each(function(){var d=this.type,c=this.tagName.toLowerCase();
if(d=="text"||d=="password"||c=="textarea"){this.value=""
}else{if(d=="checkbox"||d=="radio"){this.checked=false
}else{if(c=="select"){this.selectedIndex=-1
}}}})
};
b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()
}})
};
b.fn.enable=function(c){if(c==undefined){c=true
}return this.each(function(){this.disabled=!c
})
};
b.fn.selected=function(c){if(c==undefined){c=true
}return this.each(function(){var d=this.type;
if(d=="checkbox"||d=="radio"){this.checked=c
}else{if(this.tagName.toLowerCase()=="option"){var e=b(this).parent("select");
if(c&&e[0]&&e[0].type=="select-one"){e.find("option").selected(false)
}this.selected=c
}}})
};
function a(){if(b.fn.ajaxSubmit.debug&&window.console&&window.console.log){window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))
}}})(jQuery);
/*
 * jquery.qtip. The jQuery tooltip plugin
 *
 * Copyright (c) 2009 Craig Thompson
 * http://craigsworks.com
 *
 * Licensed under MIT
 * http://www.opensource.org/licenses/mit-license.php
 *
 * Launch  : February 2009
 * Version : 1.0.0-rc3
 * Released: Tuesday 12th May, 2009 - 00:00
 * Debug: jquery.qtip.debug.js
 */
(function(f){f.fn.qtip=function(C,v){var z,u,B,t,y,x,w,A;
if(typeof C=="string"){if(typeof f(this).data("qtip")!=="object"){f.fn.qtip.log.error.call(self,1,f.fn.qtip.constants.NO_TOOLTIP_PRESENT,false)
}if(C=="api"){return f(this).data("qtip").interfaces[f(this).data("qtip").current]
}else{if(C=="interfaces"){return f(this).data("qtip").interfaces
}}}else{if(!C){C={}
}if(typeof C.content!=="object"||(C.content.jquery&&C.content.length>0)){C.content={text:C.content}
}if(typeof C.content.title!=="object"){C.content.title={text:C.content.title}
}if(typeof C.position!=="object"){C.position={corner:C.position}
}if(typeof C.position.corner!=="object"){C.position.corner={target:C.position.corner,tooltip:C.position.corner}
}if(typeof C.show!=="object"){C.show={when:C.show}
}if(typeof C.show.when!=="object"){C.show.when={event:C.show.when}
}if(typeof C.show.effect!=="object"){C.show.effect={type:C.show.effect}
}if(typeof C.hide!=="object"){C.hide={when:C.hide}
}if(typeof C.hide.when!=="object"){C.hide.when={event:C.hide.when}
}if(typeof C.hide.effect!=="object"){C.hide.effect={type:C.hide.effect}
}if(typeof C.style!=="object"){C.style={name:C.style}
}C.style=c(C.style);
t=f.extend(true,{},f.fn.qtip.defaults,C);
t.style=a.call({options:t},t.style);
t.user=f.extend(true,{},C)
}return f(this).each(function(){if(typeof C=="string"){x=C.toLowerCase();
B=f(this).qtip("interfaces");
if(typeof B=="object"){if(v===true&&x=="destroy"){while(B.length>0){B[B.length-1].destroy()
}}else{if(v!==true){B=[f(this).qtip("api")]
}for(z=0;
z<B.length;
z++){if(x=="destroy"){B[z].destroy()
}else{if(B[z].status.rendered===true){if(x=="show"){B[z].show()
}else{if(x=="hide"){B[z].hide()
}else{if(x=="focus"){B[z].focus()
}else{if(x=="disable"){B[z].disable(true)
}else{if(x=="enable"){B[z].disable(false)
}}}}}}}}}}}else{w=f.extend(true,{},t);
w.hide.effect.length=t.hide.effect.length;
w.show.effect.length=t.show.effect.length;
if(w.position.container===false){w.position.container=f(document.body)
}if(w.position.target===false){w.position.target=f(this)
}if(w.show.when.target===false){w.show.when.target=f(this)
}if(w.hide.when.target===false){w.hide.when.target=f(this)
}u=f.fn.qtip.interfaces.length;
for(z=0;
z<u;
z++){if(typeof f.fn.qtip.interfaces[z]=="undefined"){u=z;
break
}}y=new d(f(this),w,u);
f.fn.qtip.interfaces[u]=y;
if(typeof f(this).data("qtip")=="object"){if(typeof f(this).attr("qtip")==="undefined"){f(this).data("qtip").current=f(this).data("qtip").interfaces.length
}f(this).data("qtip").interfaces.push(y)
}else{f(this).data("qtip",{current:0,interfaces:[y]})
}if(w.content.prerender===false&&w.show.when.event!==false&&w.show.ready!==true){w.show.when.target.bind(w.show.when.event+".qtip-"+u+"-create",{qtip:u},function(D){A=f.fn.qtip.interfaces[D.data.qtip];
A.options.show.when.target.unbind(A.options.show.when.event+".qtip-"+D.data.qtip+"-create");
A.cache.mouse={x:D.pageX,y:D.pageY};
q.call(A);
A.options.show.when.target.trigger(A.options.show.when.event)
})
}else{y.cache.mouse={x:w.show.when.target.offset().left,y:w.show.when.target.offset().top};
q.call(y)
}}})
};
function d(v,u,w){var t=this;
t.id=w;
t.options=u;
t.status={animated:false,rendered:false,disabled:false,focused:false};
t.elements={target:v.addClass(t.options.style.classes.target),tooltip:null,wrapper:null,content:null,contentWrapper:null,title:null,button:null,tip:null,bgiframe:null};
t.cache={mouse:{},position:{},toggle:0};
t.timers={};
f.extend(t,t.options.api,{show:function(z){var y,A;
if(!t.status.rendered){return f.fn.qtip.log.error.call(t,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"show")
}if(t.elements.tooltip.css("display")!=="none"){return t
}t.elements.tooltip.stop(true,false);
y=t.beforeShow.call(t,z);
if(y===false){return t
}function x(){if(t.options.position.type!=="static"){t.focus()
}t.onShow.call(t,z);
if(f.browser.msie){t.elements.tooltip.get(0).style.removeAttribute("filter")
}}t.cache.toggle=1;
if(t.options.position.type!=="static"){t.updatePosition(z,(t.options.show.effect.length>0))
}if(typeof t.options.show.solo=="object"){A=f(t.options.show.solo)
}else{if(t.options.show.solo===true){A=f("div.qtip").not(t.elements.tooltip)
}}if(A){A.each(function(){if(f(this).qtip("api").status.rendered===true){f(this).qtip("api").hide()
}})
}if(typeof t.options.show.effect.type=="function"){t.options.show.effect.type.call(t.elements.tooltip,t.options.show.effect.length);
t.elements.tooltip.queue(function(){x();
f(this).dequeue()
})
}else{switch(t.options.show.effect.type.toLowerCase()){case"fade":t.elements.tooltip.fadeIn(t.options.show.effect.length,x);
break;
case"slide":t.elements.tooltip.slideDown(t.options.show.effect.length,function(){x();
if(t.options.position.type!=="static"){t.updatePosition(z,true)
}});
break;
case"grow":t.elements.tooltip.show(t.options.show.effect.length,x);
break;
default:t.elements.tooltip.show(null,x);
break
}t.elements.tooltip.addClass(t.options.style.classes.active)
}return f.fn.qtip.log.error.call(t,1,f.fn.qtip.constants.EVENT_SHOWN,"show")
},hide:function(z){var y;
if(!t.status.rendered){return f.fn.qtip.log.error.call(t,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"hide")
}else{if(t.elements.tooltip.css("display")==="none"){return t
}}clearTimeout(t.timers.show);
t.elements.tooltip.stop(true,false);
y=t.beforeHide.call(t,z);
if(y===false){return t
}function x(){t.onHide.call(t,z)
}t.cache.toggle=0;
if(typeof t.options.hide.effect.type=="function"){t.options.hide.effect.type.call(t.elements.tooltip,t.options.hide.effect.length);
t.elements.tooltip.queue(function(){x();
f(this).dequeue()
})
}else{switch(t.options.hide.effect.type.toLowerCase()){case"fade":t.elements.tooltip.fadeOut(t.options.hide.effect.length,x);
break;
case"slide":t.elements.tooltip.slideUp(t.options.hide.effect.length,x);
break;
case"grow":t.elements.tooltip.hide(t.options.hide.effect.length,x);
break;
default:t.elements.tooltip.hide(null,x);
break
}t.elements.tooltip.removeClass(t.options.style.classes.active)
}return f.fn.qtip.log.error.call(t,1,f.fn.qtip.constants.EVENT_HIDDEN,"hide")
},updatePosition:function(x,y){var D,H,M,K,I,F,z,J,C,E,L,B,G,A;
if(!t.status.rendered){return f.fn.qtip.log.error.call(t,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updatePosition")
}else{if(t.options.position.type=="static"){return f.fn.qtip.log.error.call(t,1,f.fn.qtip.constants.CANNOT_POSITION_STATIC,"updatePosition")
}}H={position:{left:0,top:0},dimensions:{height:0,width:0},corner:t.options.position.corner.target};
M={position:t.getPosition(),dimensions:t.getDimensions(),corner:t.options.position.corner.tooltip};
if(t.options.position.target!=="mouse"){if(t.options.position.target.get(0).nodeName.toLowerCase()=="area"){K=t.options.position.target.attr("coords").split(",");
for(D=0;
D<K.length;
D++){K[D]=parseInt(K[D])
}I=t.options.position.target.parent("map").attr("name");
F=f('img[usemap="#'+I+'"]:first').offset();
H.position={left:Math.floor(F.left+K[0]),top:Math.floor(F.top+K[1])};
switch(t.options.position.target.attr("shape").toLowerCase()){case"rect":H.dimensions={width:Math.ceil(Math.abs(K[2]-K[0])),height:Math.ceil(Math.abs(K[3]-K[1]))};
break;
case"circle":H.dimensions={width:K[2]+1,height:K[2]+1};
break;
case"poly":H.dimensions={width:K[0],height:K[1]};
for(D=0;
D<K.length;
D++){if(D%2==0){if(K[D]>H.dimensions.width){H.dimensions.width=K[D]
}if(K[D]<K[0]){H.position.left=Math.floor(F.left+K[D])
}}else{if(K[D]>H.dimensions.height){H.dimensions.height=K[D]
}if(K[D]<K[1]){H.position.top=Math.floor(F.top+K[D])
}}}H.dimensions.width=H.dimensions.width-(H.position.left-F.left);
H.dimensions.height=H.dimensions.height-(H.position.top-F.top);
break;
default:return f.fn.qtip.log.error.call(t,4,f.fn.qtip.constants.INVALID_AREA_SHAPE,"updatePosition");
break
}H.dimensions.width-=2;
H.dimensions.height-=2
}else{if(t.options.position.target.add(document.body).length===1){H.position={left:f(document).scrollLeft(),top:f(document).scrollTop()};
H.dimensions={height:f(window).height(),width:f(window).width()}
}else{if(typeof t.options.position.target.attr("qtip")!=="undefined"){H.position=t.options.position.target.qtip("api").cache.position
}else{H.position=t.options.position.target.offset()
}H.dimensions={height:t.options.position.target.outerHeight(),width:t.options.position.target.outerWidth()}
}}z=f.extend({},H.position);
if(H.corner.search(/right/i)!==-1){z.left+=H.dimensions.width
}if(H.corner.search(/bottom/i)!==-1){z.top+=H.dimensions.height
}if(H.corner.search(/((top|bottom)Middle)|center/)!==-1){z.left+=(H.dimensions.width/2)
}if(H.corner.search(/((left|right)Middle)|center/)!==-1){z.top+=(H.dimensions.height/2)
}}else{H.position=z={left:t.cache.mouse.x,top:t.cache.mouse.y};
H.dimensions={height:1,width:1}
}if(M.corner.search(/right/i)!==-1){z.left-=M.dimensions.width
}if(M.corner.search(/bottom/i)!==-1){z.top-=M.dimensions.height
}if(M.corner.search(/((top|bottom)Middle)|center/)!==-1){z.left-=(M.dimensions.width/2)
}if(M.corner.search(/((left|right)Middle)|center/)!==-1){z.top-=(M.dimensions.height/2)
}J=(f.browser.msie)?1:0;
C=(f.browser.msie&&parseInt(f.browser.version.charAt(0))===6)?1:0;
if(t.options.style.border.radius>0){if(M.corner.search(/Left/)!==-1){z.left-=t.options.style.border.radius
}else{if(M.corner.search(/Right/)!==-1){z.left+=t.options.style.border.radius
}}if(M.corner.search(/Top/)!==-1){z.top-=t.options.style.border.radius
}else{if(M.corner.search(/Bottom/)!==-1){z.top+=t.options.style.border.radius
}}}if(J){if(M.corner.search(/top/)!==-1){z.top-=J
}else{if(M.corner.search(/bottom/)!==-1){z.top+=J
}}if(M.corner.search(/left/)!==-1){z.left-=J
}else{if(M.corner.search(/right/)!==-1){z.left+=J
}}if(M.corner.search(/leftMiddle|rightMiddle/)!==-1){z.top-=1
}}if(t.options.position.adjust.screen===true){z=p.call(t,z,H,M)
}if(t.options.position.target==="mouse"&&t.options.position.adjust.mouse===true){if(t.options.position.adjust.screen===true&&t.elements.tip){L=t.elements.tip.attr("rel")
}else{L=t.options.position.corner.tooltip
}z.left+=(L.search(/right/i)!==-1)?-6:6;
z.top+=(L.search(/bottom/i)!==-1)?-6:6
}if(!t.elements.bgiframe&&f.browser.msie&&parseInt(f.browser.version.charAt(0))==6){f("select, object").each(function(){B=f(this).offset();
B.bottom=B.top+f(this).height();
B.right=B.left+f(this).width();
if(z.top+M.dimensions.height>=B.top&&z.left+M.dimensions.width>=B.left){k.call(t)
}})
}z.left+=t.options.position.adjust.x;
z.top+=t.options.position.adjust.y;
G=t.getPosition();
if(z.left!=G.left||z.top!=G.top){A=t.beforePositionUpdate.call(t,x);
if(A===false){return t
}t.cache.position=z;
if(y===true){t.status.animated=true;
t.elements.tooltip.animate(z,200,"swing",function(){t.status.animated=false
})
}else{t.elements.tooltip.css(z)
}t.onPositionUpdate.call(t,x);
if(typeof x!=="undefined"&&x.type&&x.type!=="mousemove"){f.fn.qtip.log.error.call(t,1,f.fn.qtip.constants.EVENT_POSITION_UPDATED,"updatePosition")
}}return t
},updateWidth:function(x){var y;
if(!t.status.rendered){return f.fn.qtip.log.error.call(t,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateWidth")
}else{if(x&&typeof x!=="number"){return f.fn.qtip.log.error.call(t,2,"newWidth must be of type number","updateWidth")
}}y=t.elements.contentWrapper.siblings().add(t.elements.tip).add(t.elements.button);
if(!x){if(typeof t.options.style.width.value=="number"){x=t.options.style.width.value
}else{t.elements.tooltip.css({width:"auto"});
y.hide();
if(f.browser.msie){t.elements.wrapper.add(t.elements.contentWrapper.children()).css({zoom:"normal"})
}x=t.getDimensions().width+1;
if(!t.options.style.width.value){if(x>t.options.style.width.max){x=t.options.style.width.max
}if(x<t.options.style.width.min){x=t.options.style.width.min
}}}}if(x%2!==0){x-=1
}t.elements.tooltip.width(x);
y.show();
if(t.options.style.border.radius){t.elements.tooltip.find(".qtip-betweenCorners").each(function(z){f(this).width(x-(t.options.style.border.radius*2))
})
}if(f.browser.msie){t.elements.wrapper.add(t.elements.contentWrapper.children()).css({zoom:"1"});
t.elements.wrapper.width(x);
if(t.elements.bgiframe){t.elements.bgiframe.width(x).height(t.getDimensions.height)
}}return f.fn.qtip.log.error.call(t,1,f.fn.qtip.constants.EVENT_WIDTH_UPDATED,"updateWidth")
},updateStyle:function(x){var A,B,y,z,C;
if(!t.status.rendered){return f.fn.qtip.log.error.call(t,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateStyle")
}else{if(typeof x!=="string"||!f.fn.qtip.styles[x]){return f.fn.qtip.log.error.call(t,2,f.fn.qtip.constants.STYLE_NOT_DEFINED,"updateStyle")
}}t.options.style=a.call(t,f.fn.qtip.styles[x],t.options.user.style);
t.elements.content.css(r(t.options.style));
if(t.options.content.title.text!==false){t.elements.title.css(r(t.options.style.title,true))
}t.elements.contentWrapper.css({borderColor:t.options.style.border.color});
if(t.options.style.tip.corner!==false){if(f("<canvas>").get(0).getContext){A=t.elements.tooltip.find(".qtip-tip canvas:first");
y=A.get(0).getContext("2d");
y.clearRect(0,0,300,300);
z=A.parent("div[rel]:first").attr("rel");
C=b(z,t.options.style.tip.size.width,t.options.style.tip.size.height);
h.call(t,A,C,t.options.style.tip.color||t.options.style.border.color)
}else{if(f.browser.msie){A=t.elements.tooltip.find('.qtip-tip [nodeName="shape"]');
A.attr("fillcolor",t.options.style.tip.color||t.options.style.border.color)
}}}if(t.options.style.border.radius>0){t.elements.tooltip.find(".qtip-betweenCorners").css({backgroundColor:t.options.style.border.color});
if(f("<canvas>").get(0).getContext){B=g(t.options.style.border.radius);
t.elements.tooltip.find(".qtip-wrapper canvas").each(function(){y=f(this).get(0).getContext("2d");
y.clearRect(0,0,300,300);
z=f(this).parent("div[rel]:first").attr("rel");
s.call(t,f(this),B[z],t.options.style.border.radius,t.options.style.border.color)
})
}else{if(f.browser.msie){t.elements.tooltip.find('.qtip-wrapper [nodeName="arc"]').each(function(){f(this).attr("fillcolor",t.options.style.border.color)
})
}}}return f.fn.qtip.log.error.call(t,1,f.fn.qtip.constants.EVENT_STYLE_UPDATED,"updateStyle")
},updateContent:function(B,z){var A,y,x;
if(!t.status.rendered){return f.fn.qtip.log.error.call(t,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateContent")
}else{if(!B){return f.fn.qtip.log.error.call(t,2,f.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateContent")
}}A=t.beforeContentUpdate.call(t,B);
if(typeof A=="string"){B=A
}else{if(A===false){return
}}if(f.browser.msie){t.elements.contentWrapper.children().css({zoom:"normal"})
}if(B.jquery&&B.length>0){B.clone(true).appendTo(t.elements.content).show()
}else{t.elements.content.html(B)
}y=t.elements.content.find("img[complete=false]");
if(y.length>0){x=0;
y.each(function(D){f('<img src="'+f(this).attr("src")+'" />').load(function(){if(++x==y.length){C()
}})
})
}else{C()
}function C(){t.updateWidth();
if(z!==false){if(t.options.position.type!=="static"){t.updatePosition(t.elements.tooltip.is(":visible"),true)
}if(t.options.style.tip.corner!==false){o.call(t)
}}}t.onContentUpdate.call(t);
return f.fn.qtip.log.error.call(t,1,f.fn.qtip.constants.EVENT_CONTENT_UPDATED,"loadContent")
},loadContent:function(x,A,B){var z;
if(!t.status.rendered){return f.fn.qtip.log.error.call(t,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"loadContent")
}z=t.beforeContentLoad.call(t);
if(z===false){return t
}if(B=="post"){f.post(x,A,y)
}else{f.get(x,A,y)
}function y(C){t.onContentLoad.call(t);
f.fn.qtip.log.error.call(t,1,f.fn.qtip.constants.EVENT_CONTENT_LOADED,"loadContent");
t.updateContent(C)
}return t
},updateTitle:function(x){if(!t.status.rendered){return f.fn.qtip.log.error.call(t,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateTitle")
}else{if(!x){return f.fn.qtip.log.error.call(t,2,f.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateTitle")
}}returned=t.beforeTitleUpdate.call(t);
if(returned===false){return t
}if(t.elements.button){t.elements.button=t.elements.button.clone(true)
}t.elements.title.html(x);
if(t.elements.button){t.elements.title.prepend(t.elements.button)
}t.onTitleUpdate.call(t);
return f.fn.qtip.log.error.call(t,1,f.fn.qtip.constants.EVENT_TITLE_UPDATED,"updateTitle")
},focus:function(B){var z,y,x,A;
if(!t.status.rendered){return f.fn.qtip.log.error.call(t,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"focus")
}else{if(t.options.position.type=="static"){return f.fn.qtip.log.error.call(t,1,f.fn.qtip.constants.CANNOT_FOCUS_STATIC,"focus")
}}z=parseInt(t.elements.tooltip.css("z-index"));
y=6000+f("div.qtip[qtip]").length-1;
if(!t.status.focused&&z!==y){A=t.beforeFocus.call(t,B);
if(A===false){return t
}f("div.qtip[qtip]").not(t.elements.tooltip).each(function(){if(f(this).qtip("api").status.rendered===true){x=parseInt(f(this).css("z-index"));
if(typeof x=="number"&&x>-1){f(this).css({zIndex:parseInt(f(this).css("z-index"))-1})
}f(this).qtip("api").status.focused=false
}});
t.elements.tooltip.css({zIndex:y});
t.status.focused=true;
t.onFocus.call(t,B);
f.fn.qtip.log.error.call(t,1,f.fn.qtip.constants.EVENT_FOCUSED,"focus")
}return t
},disable:function(x){if(!t.status.rendered){return f.fn.qtip.log.error.call(t,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"disable")
}if(x){if(!t.status.disabled){t.status.disabled=true;
f.fn.qtip.log.error.call(t,1,f.fn.qtip.constants.EVENT_DISABLED,"disable")
}else{f.fn.qtip.log.error.call(t,1,f.fn.qtip.constants.TOOLTIP_ALREADY_DISABLED,"disable")
}}else{if(t.status.disabled){t.status.disabled=false;
f.fn.qtip.log.error.call(t,1,f.fn.qtip.constants.EVENT_ENABLED,"disable")
}else{f.fn.qtip.log.error.call(t,1,f.fn.qtip.constants.TOOLTIP_ALREADY_ENABLED,"disable")
}}return t
},destroy:function(){var x,y,z;
y=t.beforeDestroy.call(t);
if(y===false){return t
}if(t.status.rendered){t.options.show.when.target.unbind("mousemove.qtip",t.updatePosition);
t.options.show.when.target.unbind("mouseout.qtip",t.hide);
t.options.show.when.target.unbind(t.options.show.when.event+".qtip");
t.options.hide.when.target.unbind(t.options.hide.when.event+".qtip");
t.elements.tooltip.unbind(t.options.hide.when.event+".qtip");
t.elements.tooltip.unbind("mouseover.qtip",t.focus);
t.elements.tooltip.remove()
}else{t.options.show.when.target.unbind(t.options.show.when.event+".qtip-create")
}if(typeof t.elements.target.data("qtip")=="object"){z=t.elements.target.data("qtip").interfaces;
if(typeof z=="object"&&z.length>0){for(x=0;
x<z.length-1;
x++){if(z[x].id==t.id){z.splice(x,1)
}}}}delete f.fn.qtip.interfaces[t.id];
if(typeof z=="object"&&z.length>0){t.elements.target.data("qtip").current=z.length-1
}else{t.elements.target.removeData("qtip")
}t.onDestroy.call(t);
f.fn.qtip.log.error.call(t,1,f.fn.qtip.constants.EVENT_DESTROYED,"destroy");
return t.elements.target
},getPosition:function(){var x,y;
if(!t.status.rendered){return f.fn.qtip.log.error.call(t,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getPosition")
}x=(t.elements.tooltip.css("display")!=="none")?false:true;
if(x){t.elements.tooltip.css({visiblity:"hidden"}).show()
}y=t.elements.tooltip.offset();
if(x){t.elements.tooltip.css({visiblity:"visible"}).hide()
}return y
},getDimensions:function(){var x,y;
if(!t.status.rendered){return f.fn.qtip.log.error.call(t,2,f.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getDimensions")
}x=(!t.elements.tooltip.is(":visible"))?true:false;
if(x){t.elements.tooltip.css({visiblity:"hidden"}).show()
}y={height:t.elements.tooltip.outerHeight(),width:t.elements.tooltip.outerWidth()};
if(x){t.elements.tooltip.css({visiblity:"visible"}).hide()
}return y
}})
}function q(){var t,x,v,u,w,z,y;
t=this;
t.beforeRender.call(t);
t.status.rendered=true;
t.elements.tooltip='<div qtip="'+t.id+'" class="qtip '+(t.options.style.classes.tooltip||t.options.style)+'"style="display:none; -moz-border-radius:0; -webkit-border-radius:0; border-radius:0;position:'+t.options.position.type+';">  <div class="qtip-wrapper" style="position:relative; overflow:hidden; text-align:left;">    <div class="qtip-contentWrapper" style="overflow:hidden;">       <div class="qtip-content '+t.options.style.classes.content+'"></div></div></div></div>';
t.elements.tooltip=f(t.elements.tooltip);
t.elements.tooltip.appendTo(t.options.position.container);
t.elements.tooltip.data("qtip",{current:0,interfaces:[t]});
t.elements.wrapper=t.elements.tooltip.children("div:first");
t.elements.contentWrapper=t.elements.wrapper.children("div:first").css({background:t.options.style.background});
t.elements.content=t.elements.contentWrapper.children("div:first").css(r(t.options.style));
if(f.browser.msie){t.elements.wrapper.add(t.elements.content).css({zoom:1})
}if(t.options.hide.when.event=="unfocus"){t.elements.tooltip.attr("unfocus",true)
}if(typeof t.options.style.width.value=="number"){t.updateWidth()
}if(f("<canvas>").get(0).getContext||f.browser.msie){if(t.options.style.border.radius>0){m.call(t)
}else{t.elements.contentWrapper.css({border:t.options.style.border.width+"px solid "+t.options.style.border.color})
}if(t.options.style.tip.corner!==false){e.call(t)
}}else{t.elements.contentWrapper.css({border:t.options.style.border.width+"px solid "+t.options.style.border.color});
t.options.style.border.radius=0;
t.options.style.tip.corner=false;
f.fn.qtip.log.error.call(t,2,f.fn.qtip.constants.CANVAS_VML_NOT_SUPPORTED,"render")
}if((typeof t.options.content.text=="string"&&t.options.content.text.length>0)||(t.options.content.text.jquery&&t.options.content.text.length>0)){v=t.options.content.text
}else{if(typeof t.elements.target.attr("title")=="string"&&t.elements.target.attr("title").length>0){v=t.elements.target.attr("title").replace("\\n","<br />");
t.elements.target.attr("title","")
}else{if(typeof t.elements.target.attr("alt")=="string"&&t.elements.target.attr("alt").length>0){v=t.elements.target.attr("alt").replace("\\n","<br />");
t.elements.target.attr("alt","")
}else{v=" ";
f.fn.qtip.log.error.call(t,1,f.fn.qtip.constants.NO_VALID_CONTENT,"render")
}}}if(t.options.content.title.text!==false){j.call(t)
}t.updateContent(v);
l.call(t);
if(t.options.show.ready===true){t.show()
}if(t.options.content.url!==false){u=t.options.content.url;
w=t.options.content.data;
z=t.options.content.method||"get";
t.loadContent(u,w,z)
}t.onRender.call(t);
f.fn.qtip.log.error.call(t,1,f.fn.qtip.constants.EVENT_RENDERED,"render")
}function m(){var G,A,u,C,y,F,v,H,E,z,x,D,B,t,w;
G=this;
G.elements.wrapper.find(".qtip-borderBottom, .qtip-borderTop").remove();
u=G.options.style.border.width;
C=G.options.style.border.radius;
y=G.options.style.border.color||G.options.style.tip.color;
F=g(C);
v={};
for(A in F){v[A]='<div rel="'+A+'" style="'+((A.search(/Left/)!==-1)?"left":"right")+":0; position:absolute; height:"+C+"px; width:"+C+'px; overflow:hidden; line-height:0.1px; font-size:1px">';
if(f("<canvas>").get(0).getContext){v[A]+='<canvas height="'+C+'" width="'+C+'" style="vertical-align: top"></canvas>'
}else{if(f.browser.msie){H=C*2+3;
v[A]+='<v:arc stroked="false" fillcolor="'+y+'" startangle="'+F[A][0]+'" endangle="'+F[A][1]+'" style="width:'+H+"px; height:"+H+"px; margin-top:"+((A.search(/bottom/)!==-1)?-2:-1)+"px; margin-left:"+((A.search(/Right/)!==-1)?F[A][2]-3.5:-1)+'px; vertical-align:top; display:inline-block; behavior:url(#default#VML)"></v:arc>'
}}v[A]+="</div>"
}E=G.getDimensions().width-(Math.max(u,C)*2);
z='<div class="qtip-betweenCorners" style="height:'+C+"px; width:"+E+"px; overflow:hidden; background-color:"+y+'; line-height:0.1px; font-size:1px;">';
x='<div class="qtip-borderTop" dir="ltr" style="height:'+C+"px; margin-left:"+C+'px; line-height:0.1px; font-size:1px; padding:0;">'+v.topLeft+v.topRight+z;
G.elements.wrapper.prepend(x);
D='<div class="qtip-borderBottom" dir="ltr" style="height:'+C+"px; margin-left:"+C+'px; line-height:0.1px; font-size:1px; padding:0;">'+v.bottomLeft+v.bottomRight+z;
G.elements.wrapper.append(D);
if(f("<canvas>").get(0).getContext){G.elements.wrapper.find("canvas").each(function(){B=F[f(this).parent("[rel]:first").attr("rel")];
s.call(G,f(this),B,C,y)
})
}else{if(f.browser.msie){G.elements.tooltip.append('<v:image style="behavior:url(#default#VML);"></v:image>')
}}t=Math.max(C,(C+(u-C)));
w=Math.max(u-C,0);
G.elements.contentWrapper.css({border:"0px solid "+y,borderWidth:w+"px "+t+"px"})
}function s(v,x,t,u){var w=v.get(0).getContext("2d");
w.fillStyle=u;
w.beginPath();
w.arc(x[0],x[1],t,0,Math.PI*2,false);
w.fill()
}function e(w){var u,t,y,v,x;
u=this;
if(u.elements.tip!==null){u.elements.tip.remove()
}t=u.options.style.tip.color||u.options.style.border.color;
if(u.options.style.tip.corner===false){return
}else{if(!w){w=u.options.style.tip.corner
}}y=b(w,u.options.style.tip.size.width,u.options.style.tip.size.height);
u.elements.tip='<div class="'+u.options.style.classes.tip+'" dir="ltr" rel="'+w+'" style="position:absolute; height:'+u.options.style.tip.size.height+"px; width:"+u.options.style.tip.size.width+'px; margin:0 auto; line-height:0.1px; font-size:1px;">';
if(f("<canvas>").get(0).getContext){u.elements.tip+='<canvas height="'+u.options.style.tip.size.height+'" width="'+u.options.style.tip.size.width+'"></canvas>'
}else{if(f.browser.msie){v=u.options.style.tip.size.width+","+u.options.style.tip.size.height;
x="m"+y[0][0]+","+y[0][1];
x+=" l"+y[1][0]+","+y[1][1];
x+=" "+y[2][0]+","+y[2][1];
x+=" xe";
u.elements.tip+='<v:shape fillcolor="'+t+'" stroked="false" filled="true" path="'+x+'" coordsize="'+v+'" style="width:'+u.options.style.tip.size.width+"px; height:"+u.options.style.tip.size.height+"px; line-height:0.1px; display:inline-block; behavior:url(#default#VML); vertical-align:"+((w.search(/top/)!==-1)?"bottom":"top")+'"></v:shape>';
u.elements.tip+='<v:image style="behavior:url(#default#VML);"></v:image>';
u.elements.contentWrapper.css("position","relative")
}}u.elements.tooltip.prepend(u.elements.tip+"</div>");
u.elements.tip=u.elements.tooltip.find("."+u.options.style.classes.tip).eq(0);
if(f("<canvas>").get(0).getContext){h.call(u,u.elements.tip.find("canvas:first"),y,t)
}if(w.search(/top/)!==-1&&f.browser.msie&&parseInt(f.browser.version.charAt(0))===6){u.elements.tip.css({marginTop:-4})
}o.call(u,w)
}function h(u,w,t){var v=u.get(0).getContext("2d");
v.fillStyle=t;
v.beginPath();
v.moveTo(w[0][0],w[0][1]);
v.lineTo(w[1][0],w[1][1]);
v.lineTo(w[2][0],w[2][1]);
v.fill()
}function o(v){var u,x,t,y,w;
u=this;
if(u.options.style.tip.corner===false||!u.elements.tip){return
}if(!v){v=u.elements.tip.attr("rel")
}x=positionAdjust=(f.browser.msie)?1:0;
u.elements.tip.css(v.match(/left|right|top|bottom/)[0],0);
if(v.search(/top|bottom/)!==-1){if(f.browser.msie){if(parseInt(f.browser.version.charAt(0))===6){positionAdjust=(v.search(/top/)!==-1)?-3:1
}else{positionAdjust=(v.search(/top/)!==-1)?1:2
}}if(v.search(/Middle/)!==-1){u.elements.tip.css({left:"50%",marginLeft:-(u.options.style.tip.size.width/2)})
}else{if(v.search(/Left/)!==-1){u.elements.tip.css({left:u.options.style.border.radius-x})
}else{if(v.search(/Right/)!==-1){u.elements.tip.css({right:u.options.style.border.radius+x})
}}}if(v.search(/top/)!==-1){u.elements.tip.css({top:-positionAdjust})
}else{u.elements.tip.css({bottom:positionAdjust})
}}else{if(v.search(/left|right/)!==-1){if(f.browser.msie){positionAdjust=(parseInt(f.browser.version.charAt(0))===6)?1:((v.search(/left/)!==-1)?1:2)
}if(v.search(/Middle/)!==-1){u.elements.tip.css({top:"50%",marginTop:-(u.options.style.tip.size.height/2)})
}else{if(v.search(/Top/)!==-1){u.elements.tip.css({top:u.options.style.border.radius-x})
}else{if(v.search(/Bottom/)!==-1){u.elements.tip.css({bottom:u.options.style.border.radius+x})
}}}if(v.search(/left/)!==-1){u.elements.tip.css({left:-positionAdjust})
}else{u.elements.tip.css({right:positionAdjust})
}}}t="padding-"+v.match(/left|right|top|bottom/)[0];
y=u.options.style.tip.size[(t.search(/left|right/)!==-1)?"width":"height"];
u.elements.tooltip.css("padding",0);
u.elements.tooltip.css(t,y);
if(f.browser.msie&&parseInt(f.browser.version.charAt(0))==6){w=parseInt(u.elements.tip.css("margin-top"))||0;
w+=parseInt(u.elements.content.css("margin-top"))||0;
u.elements.tip.css({marginTop:w})
}}function j(){var t=this;
if(t.elements.title!==null){t.elements.title.remove()
}t.elements.title=f('<div class="'+t.options.style.classes.title+'">').css(r(t.options.style.title,true)).css({zoom:(f.browser.msie)?1:0}).prependTo(t.elements.contentWrapper);
if(t.options.content.title.text){t.updateTitle.call(t,t.options.content.title.text)
}if(t.options.content.title.button!==false&&typeof t.options.content.title.button=="string"){t.elements.button=f('<a class="'+t.options.style.classes.button+'" style="float:right; position: relative"></a>').css(r(t.options.style.button,true)).html(t.options.content.title.button).prependTo(t.elements.title).click(function(u){if(!t.status.disabled){t.hide(u)
}})
}}function l(){var u,w,v,t;
u=this;
w=u.options.show.when.target;
v=u.options.hide.when.target;
if(u.options.hide.fixed){v=v.add(u.elements.tooltip)
}if(u.options.hide.when.event=="inactive"){t=["click","dblclick","mousedown","mouseup","mousemove","mouseout","mouseenter","mouseleave","mouseover"];
function z(A){if(u.status.disabled===true){return
}clearTimeout(u.timers.inactive);
u.timers.inactive=setTimeout(function(){f(t).each(function(){v.unbind(this+".qtip-inactive");
u.elements.content.unbind(this+".qtip-inactive")
});
u.hide(A)
},u.options.hide.delay)
}}else{if(u.options.hide.fixed===true){u.elements.tooltip.bind("mouseover.qtip",function(){if(u.status.disabled===true){return
}clearTimeout(u.timers.hide)
})
}}function y(A){if(u.status.disabled===true){return
}if(u.options.hide.when.event=="inactive"){f(t).each(function(){v.bind(this+".qtip-inactive",z);
u.elements.content.bind(this+".qtip-inactive",z)
});
z()
}clearTimeout(u.timers.show);
clearTimeout(u.timers.hide);
u.timers.show=setTimeout(function(){u.show(A)
},u.options.show.delay)
}function x(A){if(u.status.disabled===true){return
}if(u.options.hide.fixed===true&&u.options.hide.when.event.search(/mouse(out|leave)/i)!==-1&&f(A.relatedTarget).parents("div.qtip[qtip]").length>0){A.stopPropagation();
A.preventDefault();
clearTimeout(u.timers.hide);
return false
}clearTimeout(u.timers.show);
clearTimeout(u.timers.hide);
u.elements.tooltip.stop(true,true);
u.timers.hide=setTimeout(function(){u.hide(A)
},u.options.hide.delay)
}if((u.options.show.when.target.add(u.options.hide.when.target).length===1&&u.options.show.when.event==u.options.hide.when.event&&u.options.hide.when.event!=="inactive")||u.options.hide.when.event=="unfocus"){u.cache.toggle=0;
w.bind(u.options.show.when.event+".qtip",function(A){if(u.cache.toggle==0){y(A)
}else{x(A)
}})
}else{w.bind(u.options.show.when.event+".qtip",y);
if(u.options.hide.when.event!=="inactive"){v.bind(u.options.hide.when.event+".qtip",x)
}}if(u.options.position.type.search(/(fixed|absolute)/)!==-1){u.elements.tooltip.bind("mouseover.qtip",u.focus)
}if(u.options.position.target==="mouse"&&u.options.position.type!=="static"){w.bind("mousemove.qtip",function(A){u.cache.mouse={x:A.pageX,y:A.pageY};
if(u.status.disabled===false&&u.options.position.adjust.mouse===true&&u.options.position.type!=="static"&&u.elements.tooltip.css("display")!=="none"){u.updatePosition(A)
}})
}}function p(v,w,B){var A,t,y,z,u,x;
A=this;
if(B.corner=="center"){return w.position
}t=f.extend({},v);
z={x:false,y:false};
u={left:(t.left<f.fn.qtip.cache.screen.scroll.left),right:(t.left+B.dimensions.width+2>=f.fn.qtip.cache.screen.width+f.fn.qtip.cache.screen.scroll.left),top:(t.top<f.fn.qtip.cache.screen.scroll.top),bottom:(t.top+B.dimensions.height+2>=f.fn.qtip.cache.screen.height+f.fn.qtip.cache.screen.scroll.top)};
y={left:(u.left&&(B.corner.search(/right/i)!=-1||(B.corner.search(/right/i)==-1&&!u.right))),right:(u.right&&(B.corner.search(/left/i)!=-1||(B.corner.search(/left/i)==-1&&!u.left))),top:(u.top&&B.corner.search(/top/i)==-1),bottom:(u.bottom&&B.corner.search(/bottom/i)==-1)};
if(y.left){if(A.options.position.target!=="mouse"){t.left=w.position.left+w.dimensions.width
}else{t.left=A.cache.mouse.x
}z.x="Left"
}else{if(y.right){if(A.options.position.target!=="mouse"){t.left=w.position.left-B.dimensions.width
}else{t.left=A.cache.mouse.x-B.dimensions.width
}z.x="Right"
}}if(y.top){if(A.options.position.target!=="mouse"){t.top=w.position.top+w.dimensions.height
}else{t.top=A.cache.mouse.y
}z.y="top"
}else{if(y.bottom){if(A.options.position.target!=="mouse"){t.top=w.position.top-B.dimensions.height
}else{t.top=A.cache.mouse.y-B.dimensions.height
}z.y="bottom"
}}if(t.left<0){t.left=v.left;
z.x=false
}if(t.top<0){t.top=v.top;
z.y=false
}if(A.options.style.tip.corner!==false){t.corner=new String(B.corner);
if(z.x!==false){t.corner=t.corner.replace(/Left|Right|Middle/,z.x)
}if(z.y!==false){t.corner=t.corner.replace(/top|bottom/,z.y)
}if(t.corner!==A.elements.tip.attr("rel")){e.call(A,t.corner)
}}return t
}function r(v,u){var w,t;
w=f.extend(true,{},v);
for(t in w){if(u===true&&t.search(/(tip|classes)/i)!==-1){delete w[t]
}else{if(!u&&t.search(/(width|border|tip|title|classes|user)/i)!==-1){delete w[t]
}}}return w
}function c(t){if(typeof t.tip!=="object"){t.tip={corner:t.tip}
}if(typeof t.tip.size!=="object"){t.tip.size={width:t.tip.size,height:t.tip.size}
}if(typeof t.border!=="object"){t.border={width:t.border}
}if(typeof t.width!=="object"){t.width={value:t.width}
}if(typeof t.width.max=="string"){t.width.max=parseInt(t.width.max.replace(/([0-9]+)/i,"$1"))
}if(typeof t.width.min=="string"){t.width.min=parseInt(t.width.min.replace(/([0-9]+)/i,"$1"))
}if(typeof t.tip.size.x=="number"){t.tip.size.width=t.tip.size.x;
delete t.tip.size.x
}if(typeof t.tip.size.y=="number"){t.tip.size.height=t.tip.size.y;
delete t.tip.size.y
}return t
}function a(){var t,u,v,y,w,x;
t=this;
v=[true,{}];
for(u=0;
u<arguments.length;
u++){v.push(arguments[u])
}y=[f.extend.apply(f,v)];
while(typeof y[0].name=="string"){y.unshift(c(f.fn.qtip.styles[y[0].name]))
}y.unshift(true,{classes:{tooltip:"qtip-"+(arguments[0].name||"defaults")}},f.fn.qtip.styles.defaults);
w=f.extend.apply(f,y);
x=(f.browser.msie)?1:0;
w.tip.size.width+=x;
w.tip.size.height+=x;
if(w.tip.size.width%2>0){w.tip.size.width+=1
}if(w.tip.size.height%2>0){w.tip.size.height+=1
}if(w.tip.corner===true){w.tip.corner=(t.options.position.corner.tooltip==="center")?false:t.options.position.corner.tooltip
}return w
}function b(w,v,u){var t={bottomRight:[[0,0],[v,u],[v,0]],bottomLeft:[[0,0],[v,0],[0,u]],topRight:[[0,u],[v,0],[v,u]],topLeft:[[0,0],[0,u],[v,u]],topMiddle:[[0,u],[v/2,0],[v,u]],bottomMiddle:[[0,0],[v,0],[v/2,u]],rightMiddle:[[0,0],[v,u/2],[0,u]],leftMiddle:[[v,0],[v,u],[0,u/2]]};
t.leftTop=t.bottomRight;
t.rightTop=t.bottomLeft;
t.leftBottom=t.topRight;
t.rightBottom=t.topLeft;
return t[w]
}function g(t){var u;
if(f("<canvas>").get(0).getContext){u={topLeft:[t,t],topRight:[0,t],bottomLeft:[t,0],bottomRight:[0,0]}
}else{if(f.browser.msie){u={topLeft:[-90,90,0],topRight:[-90,90,-t],bottomLeft:[90,270,0],bottomRight:[90,270,-t]}
}}return u
}function k(){var t,u,v;
t=this;
v=t.getDimensions();
u='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:false" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=\'0\'); border: 1px solid red; height:'+v.height+"px; width:"+v.width+'px" />';
t.elements.bgiframe=t.elements.wrapper.prepend(u).children(".qtip-bgiframe:first")
}f(document).ready(function(){f.fn.qtip.cache={screen:{scroll:{left:f(window).scrollLeft(),top:f(window).scrollTop()},width:f(window).width(),height:f(window).height()}};
var t;
f(window).bind("resize scroll",function(u){clearTimeout(t);
t=setTimeout(function(){if(u.type==="scroll"){f.fn.qtip.cache.screen.scroll={left:f(window).scrollLeft(),top:f(window).scrollTop()}
}else{f.fn.qtip.cache.screen.width=f(window).width();
f.fn.qtip.cache.screen.height=f(window).height()
}for(i=0;
i<f.fn.qtip.interfaces.length;
i++){var v=f.fn.qtip.interfaces[i];
if(v.status.rendered===true&&(v.options.position.type!=="static"||v.options.position.adjust.scroll&&u.type==="scroll"||v.options.position.adjust.resize&&u.type==="resize")){v.updatePosition(u,true)
}}},100)
});
f(document).bind("mousedown.qtip",function(u){if(f(u.target).parents("div.qtip").length===0){f(".qtip[unfocus]").each(function(){var v=f(this).qtip("api");
if(f(this).is(":visible")&&!v.status.disabled&&f(u.target).add(v.elements.target).length>1){v.hide(u)
}})
}})
});
f.fn.qtip.interfaces=[];
f.fn.qtip.log={error:function(){return this
}};
f.fn.qtip.constants={};
f.fn.qtip.defaults={content:{prerender:false,text:false,url:false,data:null,title:{text:false,button:false}},position:{target:false,corner:{target:"bottomRight",tooltip:"topLeft"},adjust:{x:0,y:0,mouse:true,screen:false,scroll:true,resize:true},type:"absolute",container:false},show:{when:{target:false,event:"mouseover"},effect:{type:"fade",length:100},delay:140,solo:false,ready:false},hide:{when:{target:false,event:"mouseout"},effect:{type:"fade",length:100},delay:0,fixed:false},api:{beforeRender:function(){},onRender:function(){},beforePositionUpdate:function(){},onPositionUpdate:function(){},beforeShow:function(){},onShow:function(){},beforeHide:function(){},onHide:function(){},beforeContentUpdate:function(){},onContentUpdate:function(){},beforeContentLoad:function(){},onContentLoad:function(){},beforeTitleUpdate:function(){},onTitleUpdate:function(){},beforeDestroy:function(){},onDestroy:function(){},beforeFocus:function(){},onFocus:function(){}}};
f.fn.qtip.styles={defaults:{background:"white",color:"#111",overflow:"hidden",textAlign:"left",width:{min:0,max:250},padding:"5px 9px",border:{width:1,radius:0,color:"#d3d3d3"},tip:{corner:false,color:false,size:{width:13,height:13},opacity:1},title:{background:"#e1e1e1",fontWeight:"bold",padding:"7px 12px"},button:{cursor:"pointer"},classes:{target:"",tip:"qtip-tip",title:"qtip-title",button:"qtip-button",content:"qtip-content",active:"qtip-active"}},cream:{border:{width:3,radius:0,color:"#F9E98E"},title:{background:"#F0DE7D",color:"#A27D35"},background:"#FBF7AA",color:"#A27D35",classes:{tooltip:"qtip-cream"}},light:{border:{width:3,radius:0,color:"#E2E2E2"},title:{background:"#f1f1f1",color:"#454545"},background:"white",color:"#454545",classes:{tooltip:"qtip-light"}},dark:{border:{width:3,radius:0,color:"#303030"},title:{background:"#404040",color:"#f3f3f3"},background:"#505050",color:"#f3f3f3",classes:{tooltip:"qtip-dark"}},red:{border:{width:3,radius:0,color:"#CE6F6F"},title:{background:"#f28279",color:"#9C2F2F"},background:"#F79992",color:"#9C2F2F",classes:{tooltip:"qtip-red"}},green:{border:{width:3,radius:0,color:"#A9DB66"},title:{background:"#b9db8c",color:"#58792E"},background:"#CDE6AC",color:"#58792E",classes:{tooltip:"qtip-green"}},blue:{border:{width:3,radius:0,color:"#ADD9ED"},title:{background:"#D0E9F5",color:"#5E99BD"},background:"#E5F6FE",color:"#4D9FBF",classes:{tooltip:"qtip-blue"}}}
})(jQuery);
var DEBUG=false;
$(document).ready(function(){if(DEBUG){$("body").append("<div id='debug'>turn grid: <a href='' id='togglegrid'>"+gridstate()+"</a></div>");
$("#debug").css("position","absolute");
$("#debug").css("bottom","0");
$("#togglegrid").click(toggle_grid)
}add_validators();
$(".validate").validate()
});
function add_validators(){}function toggle_grid(){$("#container").toggleClass("showgrid");
$("#togglegrid").text(gridstate());
return false
}function gridstate(){if($("#container").hasClass("showgrid")){return"off"
}else{return"on"
}}function init(){create_tiplinks()
}function create_tiplinks(){$("a.tiplink").each(function(){$(this).qtip({content:$(this).attr("tip"),style:{name:"green",border:{width:3,radius:8}},position:{target:"mouse",corner:{target:"topMiddle",tooltip:"bottomMiddle"}},show:"mouseover",hide:"mouseout"})
});
$("li.tiplink").each(function(){$(this).qtip({content:$(this).attr("tip"),style:{name:"green",border:{width:3,radius:8}},position:{target:"mouse",corner:{target:"topMiddle",tooltip:"bottomMiddle"}},show:"mouseover",hide:"mouseout"})
})
}jQuery.ajaxSetup({beforeSend:function(a){a.setRequestHeader("Accept","text/javascript")
}});
function _ajax_request(a,c,e,b,d){if(jQuery.isFunction(c)){e=c;
c={}
}return jQuery.ajax({type:d,url:a,data:c,success:e,dataType:b})
}jQuery.extend({put:function(a,c,d,b){return _ajax_request(a,c,d,b,"PUT")
},delete_:function(a,c,d,b){return _ajax_request(a,c,d,b,"DELETE")
}});
jQuery.fn.submitWithAjax=function(){this.unbind("submit",false);
this.submit(function(){$.post(this.action,$(this).serialize(),null,"script");
return false
});
return this
};
jQuery.fn.getWithAjax=function(){this.unbind("click",false);
this.click(function(){$.get($(this).attr("href"),$(this).serialize(),null,"script");
return false
});
return this
};
jQuery.fn.postWithAjax=function(){this.unbind("click",false);
this.click(function(){$.post($(this).attr("href"),$(this).serialize(),null,"script");
return false
});
return this
};
jQuery.fn.putWithAjax=function(){this.unbind("click",false);
this.click(function(){$.put($(this).attr("href"),$(this).serialize(),null,"script");
return false
});
return this
};
jQuery.fn.deleteWithAjax=function(){this.removeAttr("onclick");
this.unbind("click",false);
this.click(function(){$.delete_($(this).attr("href"),$(this).serialize(),null,"script");
return false
});
return this
};
function ajaxLinks(){$(".ajaxForm").submitWithAjax();
$("a.get").getWithAjax();
$("a.post").postWithAjax();
$("a.put").putWithAjax();
$("a.delete").deleteWithAjax()
}$(document).ready(function(){$(document).ajaxSend(function(c,b,a){if(typeof(window.AUTH_TOKEN)=="undefined"){return
}if(a.type=="GET"||a.type=="get"){return
}a.data=a.data||"";
a.data+=(a.data?"&":"")+"authenticity_token="+encodeURIComponent(window.AUTH_TOKEN)
});
ajaxLinks();
$(":form.ajaxForm").submit(function(){$(":submit").attr({disabled:true,value:"Working…"})
});
$(window).bind("ajaxSend",function(){$("#spinner").show()
});
$(window).bind("ajaxStop",function(){$("#spinner").hide();
$(":submit").attr({disabled:false,value:"Submit"})
})
});
function switchColumn(d){var b=$("#pricetable");
var c=b.find(".on");
var a=b.find("."+d);
c.each(function(){$(this).removeClass("on")
});
a.each(function(){$(this).addClass("on")
})
}function reCalcToText(a){var b=a-$(".toText").val().length;
if(b<0){$("#counter").text(b);
$("#counter").addClass("excess")
}else{$("#counter").text(b);
$("#counter").removeClass()
}};