/* jQuery 1.3 
 * Copyright (c) 2009 John Resig (jquery.com)
 * Dual licensed under the MIT and GPL licenses.
 */
(function(){var window=this,undefined,_0=window.jQuery,_$=window.$,jQuery=window.jQuery=window.$=function(a,b){return new jQuery.fn.init(a,b)},quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/;jQuery.fn=jQuery.prototype={init:function(a,b){a=a||document;if(a.nodeType){this[0]=a;this.length=1;this.context=a;return this}if(typeof a==="string"){var c=quickExpr.exec(a);if(c&&(c[1]||!b)){if(c[1])a=jQuery.clean([c[1]],b);else{var d=document.getElementById(c[3]);if(d){if(d.id!=c[3])return jQuery().find(a);var e=jQuery(d);e.context=document;e.selector=a;return e}a=[]}}else return jQuery(b).find(a)}else if(jQuery.isFunction(a))return jQuery(document).ready(a);if(a.selector&&a.context){this.selector=a.selector;this.context=a.context}return this.setArray(jQuery.makeArray(a))},selector:"",jquery:"1.3",size:function(){return this.length},get:function(a){return a===undefined?jQuery.makeArray(this):this[a]},pushStack:function(a,b,c){var d=jQuery(a);d.prevObject=this;d.context=this.context;if(b==="find")d.selector=this.selector+(this.selector?" ":"")+c;else if(b)d.selector=this.selector+"."+b+"("+c+")";return d},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(a,b){return jQuery.each(this,a,b)},index:function(a){return jQuery.inArray(a&&a.jquery?a[0]:a,this)},attr:function(a,b,c){var d=a;if(typeof a==="string")if(b===undefined)return this[0]&&jQuery[c||"attr"](this[0],a);else{d={};d[a]=b}return this.each(function(i){for(a in d)jQuery.attr(c?this.style:this,a,jQuery.prop(this,d[a],c,i,a))})},css:function(a,b){if((a=='width'||a=='height')&&parseFloat(b)<0)b=undefined;return this.attr(a,b,"curCSS")},text:function(a){if(typeof a!=="object"&&a!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(a));var b="";jQuery.each(a||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8)b+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this])})});return b},wrapAll:function(b){if(this[0]){var c=jQuery(b,this[0].ownerDocument).clone();if(this[0].parentNode)c.insertBefore(this[0]);c.map(function(){var a=this;while(a.firstChild)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(function(){jQuery(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){jQuery(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||jQuery([])},push:[].push,find:function(b){if(this.length===1&&!/,/.test(b)){var c=this.pushStack([],"find",b);c.length=0;jQuery.find(b,this[0],c);return c}else{var d=jQuery.map(this,function(a){return jQuery.find(b,a)});return this.pushStack(/[^+>] [^+>]/.test(b)?jQuery.unique(d):d,"find",b)}},clone:function(c){var d=this.map(function(){if(!jQuery.support.noCloneEvent&&!jQuery.isXMLDoc(this)){var a=this.cloneNode(true),b=document.createElement("div");b.appendChild(a);return jQuery.clean([b.innerHTML])[0]}else return this.cloneNode(true)});var e=d.find("*").andSelf().each(function(){if(this[expando]!==undefined)this[expando]=null});if(c===true)this.find("*").andSelf().each(function(i){if(this.nodeType==3)return;var c=jQuery.data(this,"events");for(var f in c)for(var handler in c[f])jQuery.event.add(e[i],f,c[f][handler],c[f][handler].data)});return d},filter:function(b){return this.pushStack(jQuery.isFunction(b)&&jQuery.grep(this,function(a,i){return b.call(a,i)})||jQuery.multiFilter(b,jQuery.grep(this,function(a){return a.nodeType===1})),"filter",b)},closest:function(b){var c=jQuery.expr.match.POS.test(b)?jQuery(b):null;return this.map(function(){var a=this;while(a&&a.ownerDocument){if(c?c.index(a)>-1:jQuery(a).is(b))return a;a=a.parentNode}})},not:function(a){if(typeof a==="string")if(isSimple.test(a))return this.pushStack(jQuery.multiFilter(a,this,true),"not",a);else a=jQuery.multiFilter(a,this);var b=a.length&&a[a.length-1]!==undefined&&!a.nodeType;return this.filter(function(){return b?jQuery.inArray(this,a)<0:this!=a})},add:function(a){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof a==="string"?jQuery(a):jQuery.makeArray(a))))},is:function(a){return!!a&&jQuery.multiFilter(a,this).length>0},hasClass:function(a){return!!a&&this.is("."+a)},val:function(value){if(value===undefined){var elem=this[0];if(elem){if(jQuery.nodeName(elem,'option'))return(elem.attributes.value||{}).specified?elem.value:elem.text;if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0)return null;for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery(option).val();if(one)return value;values.push(value)}}return values}return(elem.value||"").replace(/\r/g,"")}return undefined}if(typeof value==="number")value+='';return this.each(function(){if(this.nodeType!=1)return;if(jQuery.isArray(value)&&/radio|checkbox/.test(this.type))this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0);else if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0)});if(!values.length)this.selectedIndex=-1}else this.value=value})},html:function(value){return value===undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value)},replaceWith:function(a){return this.after(a).remove()},eq:function(i){return this.slice(i,+i+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(b){return this.pushStack(jQuery.map(this,function(a,i){return b.call(a,i,a)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(c,d,e){if(this[0]){var f=(this[0].ownerDocument||this[0]).createDocumentFragment(),g=jQuery.clean(c,(this[0].ownerDocument||this[0]),f),h=f.firstChild,j=this.length>1?f.cloneNode(true):f;if(h)for(var i=0,l=this.length;i<l;i++)e.call(k(this[i],h),i>0?j.cloneNode(true):f);if(g)jQuery.each(g,evalScript)}return this;function k(a,b){return d&&jQuery.nodeName(a,"table")&&jQuery.nodeName(b,"tr")?(a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody"))):a}}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src)jQuery.ajax({url:elem.src,async:false,dataType:"script"});else jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"");if(elem.parentNode)elem.parentNode.removeChild(elem)}function now(){return+new Date}jQuery.extend=jQuery.fn.extend=function(){var a=arguments[0]||{},i=1,b=arguments.length,c=false,d;if(typeof a==="boolean"){c=a;a=arguments[1]||{};i=2}if(typeof a!=="object"&&!jQuery.isFunction(a))a={};if(b==i){a=this;--i}for(;i<b;i++)if((d=arguments[i])!=null)for(var e in d){var f=a[e],g=d[e];if(a===g)continue;if(c&&g&&typeof g==="object"&&!g.nodeType)a[e]=jQuery.extend(c,f||(g.length!=null?[]:{}),g);else if(g!==undefined)a[e]=g}return a};var exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{},toString=Object.prototype.toString;jQuery.extend({noConflict:function(a){window.$=_$;if(a)window.jQuery=_0;return jQuery},isFunction:function(a){return toString.call(a)==="[object Function]"},isArray:function(a){return toString.call(a)==="[object Array]"},isXMLDoc:function(a){return a.documentElement&&!a.body||a.tagName&&a.ownerDocument&&!a.ownerDocument.body},globalEval:function(a){a=jQuery.trim(a);if(a){var b=document.getElementsByTagName("head")[0]||document.documentElement,c=document.createElement("script");c.type="text/javascript";if(jQuery.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(a,b,c){var d,i=0,e=a.length;if(c){if(e===undefined){for(d in a)if(b.apply(a[d],c)===false)break}else for(;i<e;)if(b.apply(a[i++],c)===false)break}else{if(e===undefined){for(d in a)if(b.call(a[d],d,a[d])===false)break}else for(var f=a[0];i<e&&b.call(f,i,f)!==false;f=a[++i]){}}return a},prop:function(a,b,c,i,d){if(jQuery.isFunction(b))b=b.call(a,i);return typeof b==="number"&&c=="curCSS"&&!exclude.test(d)?b+"px":b},className:{add:function(b,c){jQuery.each((c||"").split(/\s+/),function(i,a){if(b.nodeType==1&&!jQuery.className.has(b.className,a))b.className+=(b.className?" ":"")+a})},remove:function(a,b){if(a.nodeType==1)a.className=b!==undefined?jQuery.grep(a.className.split(/\s+/),function(className){return!jQuery.className.has(b,className)}).join(" "):""},has:function(a,b){return jQuery.inArray(b,(a.className||a).toString().split(/\s+/))>-1}},swap:function(a,b,c){var d={};for(var e in b){d[e]=a.style[e];a.style[e]=b[e]}c.call(a);for(var e in b)a.style[e]=d[e]},css:function(c,d,e){if(d=="width"||d=="height"){var f,g={position:"absolute",visibility:"hidden",display:"block"},h=d=="width"?["Left","Right"]:["Top","Bottom"];function i(){f=d=="width"?c.offsetWidth:c.offsetHeight;var a=0,b=0;jQuery.each(h,function(){a+=parseFloat(jQuery.curCSS(c,"padding"+this,true))||0;b+=parseFloat(jQuery.curCSS(c,"border"+this+"Width",true))||0});f-=Math.round(a+b)}if(jQuery(c).is(":visible"))i();else jQuery.swap(c,g,i);return Math.max(0,f)}return jQuery.curCSS(c,d,e)},curCSS:function(c,d,e){var f,g=c.style;if(d=="opacity"&&!jQuery.support.opacity){f=jQuery.attr(g,"opacity");return f==""?"1":f}if(d.match(/float/i))d=styleFloat;if(!e&&g&&g[d])f=g[d];else if(defaultView.getComputedStyle){if(d.match(/float/i))d="float";d=d.replace(/([A-Z])/g,"-$1").toLowerCase();var h=defaultView.getComputedStyle(c,null);if(h)f=h.getPropertyValue(d);if(d=="opacity"&&f=="")f="1"}else if(c.currentStyle){var i=d.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()});f=c.currentStyle[d]||c.currentStyle[i];if(!/^\d+(px)?$/i.test(f)&&/^\d/.test(f)){var j=g.left,k=c.runtimeStyle.left;c.runtimeStyle.left=c.currentStyle.left;g.left=f||0;f=g.pixelLeft+"px";g.left=j;c.runtimeStyle.left=k}}return f},clean:function(h,k,l){k=k||document;if(typeof k.createElement==="undefined")k=k.ownerDocument||k[0]&&k[0].ownerDocument||document;if(!l&&h.length===1&&typeof h[0]==="string"){var m=/^<(\w+)\s*\/?>$/.exec(h[0]);if(m)return[k.createElement(m[1])]}var n=[],o=[],p=k.createElement("div");jQuery.each(h,function(i,d){if(typeof d==="number")d+='';if(!d)return;if(typeof d==="string"){d=d.replace(/(<(\w+)[^>]*?)\/>/g,function(a,b,c){return c.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?a:b+"></"+c+">"});var e=jQuery.trim(d).toLowerCase();var f=!e.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!e.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||e.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!e.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!e.indexOf("<td")||!e.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!e.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!jQuery.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];p.innerHTML=f[1]+d+f[2];while(f[0]--)p=p.lastChild;if(!jQuery.support.tbody){var g=!e.indexOf("<table")&&e.indexOf("<tbody")<0?p.firstChild&&p.firstChild.childNodes:f[1]=="<table>"&&e.indexOf("<tbody")<0?p.childNodes:[];for(var j=g.length-1;j>=0;--j)if(jQuery.nodeName(g[j],"tbody")&&!g[j].childNodes.length)g[j].parentNode.removeChild(g[j])}if(!jQuery.support.leadingWhitespace&&/^\s/.test(d))p.insertBefore(k.createTextNode(d.match(/^\s*/)[0]),p.firstChild);d=jQuery.makeArray(p.childNodes)}if(d.nodeType)n.push(d);else n=jQuery.merge(n,d)});if(l){for(var i=0;n[i];i++){if(jQuery.nodeName(n[i],"script")&&(!n[i].type||n[i].type.toLowerCase()==="text/javascript")){o.push(n[i].parentNode?n[i].parentNode.removeChild(n[i]):n[i])}else{if(n[i].nodeType===1)n.splice.apply(n,[i+1,0].concat(jQuery.makeArray(n[i].getElementsByTagName("script"))));l.appendChild(n[i])}}return o}return n},attr:function(c,d,e){if(!c||c.nodeType==3||c.nodeType==8)return undefined;var f=!jQuery.isXMLDoc(c),g=e!==undefined;d=f&&jQuery.props[d]||d;if(c.tagName){var h=/href|src|style/.test(d);if(d=="selected"&&c.parentNode)c.parentNode.selectedIndex;if(d in c&&f&&!h){if(g){if(d=="type"&&jQuery.nodeName(c,"input")&&c.parentNode)throw"type property can't be changed";c[d]=e}if(jQuery.nodeName(c,"form")&&c.getAttributeNode(d))return c.getAttributeNode(d).nodeValue;if(d=="tabIndex"){var i=c.getAttributeNode("tabIndex");return i&&i.specified?i.value:c.nodeName.match(/^(a|area|button|input|object|select|textarea)$/i)?0:undefined}return c[d]}if(!jQuery.support.style&&f&&d=="style")return jQuery.attr(c.style,"cssText",e);if(g)c.setAttribute(d,""+e);var j=!jQuery.support.hrefNormalized&&f&&h?c.getAttribute(d,2):c.getAttribute(d);return j===null?undefined:j}if(!jQuery.support.opacity&&d=="opacity"){if(g){c.zoom=1;c.filter=(c.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(e)+''=="NaN"?"":"alpha(opacity="+e*100+")")}return c.filter&&c.filter.indexOf("opacity=")>=0?(parseFloat(c.filter.match(/opacity=([^)]*)/)[1])/100)+'':""}d=d.replace(/-([a-z])/ig,function(a,b){return b.toUpperCase()});if(g)c[d]=e;return c[d]},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var b=[];if(a!=null){var i=a.length;if(i==null||typeof a==="string"||jQuery.isFunction(a)||a.setInterval)b[0]=a;else while(i)b[--i]=a[i]}return b},inArray:function(a,b){for(var i=0,c=b.length;i<c;i++)if(b[i]===a)return i;return-1},merge:function(a,b){var i=0,c,d=a.length;if(!jQuery.support.getAll){while((c=b[i++])!=null)if(c.nodeType!=8)a[d++]=c}else while((c=b[i++])!=null)a[d++]=c;return a},unique:function(a){var b=[],c={};try{for(var i=0,d=a.length;i<d;i++){var f=jQuery.data(a[i]);if(!c[f]){c[f]=true;b.push(a[i])}}}catch(e){b=a}return b},grep:function(a,b,c){var d=[];for(var i=0,e=a.length;i<e;i++)if(!c!=!b(a[i],i))d.push(a[i]);return d},map:function(a,b){var c=[];for(var i=0,d=a.length;i<d;i++){var e=b(a[i],i);if(e!=null)c[c.length]=e}return c.concat.apply([],c)}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,'0'])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};jQuery.each({parent:function(a){return a.parentNode},parents:function(a){return jQuery.dir(a,"parentNode")},next:function(a){return jQuery.nth(a,2,"nextSibling")},prev:function(a){return jQuery.nth(a,2,"previousSibling")},nextAll:function(a){return jQuery.dir(a,"nextSibling")},prevAll:function(a){return jQuery.dir(a,"previousSibling")},siblings:function(a){return jQuery.sibling(a.parentNode.firstChild,a)},children:function(a){return jQuery.sibling(a.firstChild)},contents:function(a){return jQuery.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:jQuery.makeArray(a.childNodes)}},function(c,d){jQuery.fn[c]=function(a){var b=jQuery.map(this,d);if(a&&typeof a=="string")b=jQuery.multiFilter(a,b);return this.pushStack(jQuery.unique(b),c,a)}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,d){jQuery.fn[c]=function(){var b=arguments;return this.each(function(){for(var i=0,a=b.length;i<a;i++)jQuery(b[i])[d](this)})}});jQuery.each({removeAttr:function(a){jQuery.attr(this,a,"");if(this.nodeType==1)this.removeAttribute(a)},addClass:function(a){jQuery.className.add(this,a)},removeClass:function(a){jQuery.className.remove(this,a)},toggleClass:function(a,b){if(typeof b!=="boolean")b=!jQuery.className.has(this,a);jQuery.className[b?"add":"remove"](this,a)},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).length){jQuery("*",this).add([this]).each(function(){jQuery.event.remove(this);jQuery.removeData(this)});if(this.parentNode)this.parentNode.removeChild(this)}},empty:function(){jQuery(">*",this).remove();while(this.firstChild)this.removeChild(this.firstChild)}},function(a,b){jQuery.fn[a]=function(){return this.each(b,arguments)}});function num(a,b){return a[0]&&parseInt(jQuery.curCSS(a[0],b,true),10)||0}var expando="jQuery"+now(),uuid=0,windowData={};jQuery.extend({cache:{},data:function(a,b,c){a=a==window?windowData:a;var d=a[expando];if(!d)d=a[expando]=++uuid;if(b&&!jQuery.cache[d])jQuery.cache[d]={};if(c!==undefined)jQuery.cache[d][b]=c;return b?jQuery.cache[d][b]:d},removeData:function(a,b){a=a==window?windowData:a;var c=a[expando];if(b){if(jQuery.cache[c]){delete jQuery.cache[c][b];b="";for(b in jQuery.cache[c])break;if(!b)jQuery.removeData(a)}}else{try{delete a[expando]}catch(e){if(a.removeAttribute)a.removeAttribute(expando)}delete jQuery.cache[c]}},queue:function(a,b,c){if(a){b=(b||"fx")+"queue";var q=jQuery.data(a,b);if(!q||jQuery.isArray(c))q=jQuery.data(a,b,jQuery.makeArray(c));else if(c)q.push(c)}return q},dequeue:function(a,b){var c=jQuery.queue(a,b),d=c.shift();if(!b||b==="fx")d=c[0];if(d!==undefined)d.call(a)}});jQuery.fn.extend({data:function(a,b){var c=a.split(".");c[1]=c[1]?"."+c[1]:"";if(b===undefined){var d=this.triggerHandler("getData"+c[1]+"!",[c[0]]);if(d===undefined&&this.length)d=jQuery.data(this[0],a);return d===undefined&&c[1]?this.data(c[0]):d}else return this.trigger("setData"+c[1]+"!",[c[0],b]).each(function(){jQuery.data(this,a,b)})},removeData:function(a){return this.each(function(){jQuery.removeData(this,a)})},queue:function(b,c){if(typeof b!=="string"){c=b;b="fx"}if(c===undefined)return jQuery.queue(this[0],b);return this.each(function(){var a=jQuery.queue(this,b,c);if(b=="fx"&&a.length==1)a[0].call(this)})},dequeue:function(a){return this.each(function(){jQuery.dequeue(this,a)})}});(function(){var u=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|[^[\]]+)+\]|\\.|[^ >+~,(\[]+)+|[>+~])(\s*,\s*)?/g,v=0,toString=Object.prototype.toString;var w=function(a,b,c,d){c=c||[];b=b||document;if(b.nodeType!==1&&b.nodeType!==9)return[];if(!a||typeof a!=="string"){return c}var e=[],m,f,g,h,j,k,n=true;u.lastIndex=0;while((m=u.exec(a))!==null){e.push(m[1]);if(m[2]){k=RegExp.rightContext;break}}if(e.length>1&&x.match.POS.exec(a)){if(e.length===2&&x.relative[e[0]]){var o="",p;while((p=x.match.POS.exec(a))){o+=p[0];a=a.replace(x.match.POS,"")}f=w.filter(o,w(/\s$/.test(a)?a+"*":a,b))}else{f=x.relative[e[0]]?[b]:w(e.shift(),b);while(e.length){var q=[];a=e.shift();if(x.relative[a])a+=e.shift();for(var i=0,l=f.length;i<l;i++){w(a,f[i],q)}f=q}}}else{var r=d?{expr:e.pop(),set:z(d)}:w.find(e.pop(),e.length===1&&b.parentNode?b.parentNode:b);f=w.filter(r.expr,r.set);if(e.length>0){g=z(f)}else{n=false}while(e.length){var s=e.pop(),t=s;if(!x.relative[s]){s=""}else{t=e.pop()}if(t==null){t=b}x.relative[s](g,t,E(b))}}if(!g){g=f}if(!g){throw"Syntax error, unrecognized expression: "+(s||a);}if(toString.call(g)==="[object Array]"){if(!n){c.push.apply(c,g)}else if(b.nodeType===1){for(var i=0;g[i]!=null;i++){if(g[i]&&(g[i]===true||g[i].nodeType===1&&D(b,g[i]))){c.push(f[i])}}}else{for(var i=0;g[i]!=null;i++){if(g[i]&&g[i].nodeType===1){c.push(f[i])}}}}else{z(g,c)}if(k){w(k,b,c,d)}return c};w.matches=function(a,b){return w(a,null,null,b)};w.find=function(a,b){var c,d;if(!a){return[]}for(var i=0,l=x.order.length;i<l;i++){var e=x.order[i],d;if((d=x.match[e].exec(a))){var f=RegExp.leftContext;if(f.substr(f.length-1)!=="\\"){d[1]=(d[1]||"").replace(/\\/g,"");c=x.find[e](d,b);if(c!=null){a=a.replace(x.match[e],"");break}}}}if(!c){c=b.getElementsByTagName("*")}return{set:c,expr:a}};w.filter=function(a,b,c,d){var e=a,f=[],g=b,h,j;while(a&&b.length){for(var k in x.filter){if((h=x.match[k].exec(a))!=null){var l=x.filter[k],m=null,n=0,o,p;j=false;if(g==f){f=[]}if(x.preFilter[k]){h=x.preFilter[k](h,g,c,f,d);if(!h){j=o=true}else if(h===true){continue}else if(h[0]===true){m=[];var q=null,r;for(var i=0;(r=g[i])!==undefined;i++){if(r&&q!==r){m.push(r);q=r}}}}if(h){for(var i=0;(p=g[i])!==undefined;i++){if(p){if(m&&p!=m[n]){n++}o=l(p,h,n,m);var s=d^!!o;if(c&&o!=null){if(s){j=true}else{g[i]=false}}else if(s){f.push(p);j=true}}}}if(o!==undefined){if(!c){g=f}a=a.replace(x.match[k],"");if(!j){return[]}break}}}a=a.replace(/\s*,\s*/,"");if(a==e){if(j==null){throw"Syntax error, unrecognized expression: "+a;}else{break}}e=a}return g};var x=w.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")}},relative:{"+":function(a,b){for(var i=0,l=a.length;i<l;i++){var c=a[i];if(c){var d=c.previousSibling;while(d&&d.nodeType!==1){d=d.previousSibling}a[i]=typeof b==="string"?d||false:d===b}}if(typeof b==="string"){w.filter(b,a,true)}},">":function(a,b,c){if(typeof b==="string"&&!/\W/.test(b)){b=c?b:b.toUpperCase();for(var i=0,l=a.length;i<l;i++){var d=a[i];if(d){var e=d.parentNode;a[i]=e.nodeName===b?e:false}}}else{for(var i=0,l=a.length;i<l;i++){var d=a[i];if(d){a[i]=typeof b==="string"?d.parentNode:d.parentNode===b}}if(typeof b==="string"){w.filter(b,a,true)}}},"":function(a,b,c){var d="done"+(v++),e=C;if(!b.match(/\W/)){var f=b=c?b:b.toUpperCase();e=B}e("parentNode",b,d,a,f,c)},"~":function(a,b,c){var d="done"+(v++),e=C;if(typeof b==="string"&&!b.match(/\W/)){var f=b=c?b:b.toUpperCase();e=B}e("previousSibling",b,d,a,f,c)}},find:{ID:function(a,b){if(b.getElementById){var m=b.getElementById(a[1]);return m?[m]:[]}},NAME:function(a,b){return b.getElementsByName?b.getElementsByName(a[1]):null},TAG:function(a,b){return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e){a=" "+a[1].replace(/\\/g,"")+" ";for(var i=0;b[i];i++){if(e^(" "+b[i].className+" ").indexOf(a)>=0){if(!c)d.push(b[i])}else if(c){b[i]=false}}return false},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(a,b){for(var i=0;!b[i];i++){}return E(b[i])?a[1]:a[1].toUpperCase()},CHILD:function(a){if(a[1]=="nth"){var b=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(a[2]=="even"&&"2n"||a[2]=="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=(b[1]+(b[2]||1))-0;a[3]=b[3]-0}a[0]="done"+(v++);return a},ATTR:function(a){var b=a[1];if(x.attrMap[b]){a[1]=x.attrMap[b]}if(a[2]==="~="){a[4]=" "+a[4]+" "}return a},PSEUDO:function(a,b,c,d,e){if(a[1]==="not"){if(a[3].match(u).length>1){a[3]=w(a[3],null,null,b)}else{var f=w.filter(a[3],b,c,true^e);if(!c){d.push.apply(d,f)}return false}}else if(x.match.POS.test(a[0])){return true}return a},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){a.parentNode.selectedIndex;return a.selected===true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,i,b){return!!w(b[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.type},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toUpperCase()==="BUTTON"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,i){return i===0},last:function(a,i,b,c){return i===c.length-1},even:function(a,i){return i%2===0},odd:function(a,i){return i%2===1},lt:function(a,i,b){return i<b[3]-0},gt:function(a,i,b){return i>b[3]-0},nth:function(a,i,b){return b[3]-0==i},eq:function(a,i,b){return b[3]-0==i}},filter:{CHILD:function(a,b){var c=b[1],d=a.parentNode;var e="child"+d.childNodes.length;if(d&&(!d[e]||!a.nodeIndex)){var f=1;for(var g=d.firstChild;g;g=g.nextSibling){if(g.nodeType==1){g.nodeIndex=f++}}d[e]=f-1}if(c=="first"){return a.nodeIndex==1}else if(c=="last"){return a.nodeIndex==d[e]}else if(c=="only"){return d[e]==1}else if(c=="nth"){var h=false,i=b[2],j=b[3];if(i==1&&j==0){return true}if(i==0){if(a.nodeIndex==j){h=true}}else if((a.nodeIndex-j)%i==0&&(a.nodeIndex-j)/i>=0){h=true}return h}},PSEUDO:function(a,b,i,c){var d=b[1],e=x.filters[d];if(e){return e(a,i,b,c)}else if(d==="contains"){return(a.textContent||a.innerText||"").indexOf(b[3])>=0}else if(d==="not"){var f=b[3];for(var i=0,l=f.length;i<l;i++){if(f[i]===a){return false}}return true}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return(b==="*"&&a.nodeType===1)||a.nodeName===b},CLASS:function(a,b){return b.test(a.className)},ATTR:function(a,b){var c=x.attrHandle[b[1]]?x.attrHandle[b[1]](a):a[b[1]]||a.getAttribute(b[1]),d=c+"",e=b[2],f=b[4];return c==null?false:e==="="?d===f:e==="*="?d.indexOf(f)>=0:e==="~="?(" "+d+" ").indexOf(f)>=0:!b[4]?c:e==="!="?d!=f:e==="^="?d.indexOf(f)===0:e==="$="?d.substr(d.length-f.length)===f:e==="|="?d===f||d.substr(0,f.length+1)===f+"-":false},POS:function(a,b,i,c){var d=b[2],e=x.setFilters[d];if(e){return e(a,i,b,c)}}}};for(var y in x.match){x.match[y]=RegExp(x.match[y].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var z=function(a,b){a=Array.prototype.slice.call(a);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(e){z=function(a,b){var c=b||[];if(toString.call(a)==="[object Array]"){Array.prototype.push.apply(c,a)}else{if(typeof a.length==="number"){for(var i=0,l=a.length;i<l;i++){c.push(a[i])}}else{for(var i=0;a[i];i++){c.push(a[i])}}}return c}}(function(){var d=document.createElement("form"),e="script"+(new Date).getTime();d.innerHTML="<input name='"+e+"'/>";var f=document.documentElement;f.insertBefore(d,f.firstChild);if(!!document.getElementById(e)){x.find.ID=function(a,b){if(b.getElementById){var m=b.getElementById(a[1]);return m?m.id===a[1]||m.getAttributeNode&&m.getAttributeNode("id").nodeValue===a[1]?[m]:undefined:[]}};x.filter.ID=function(a,b){var c=a.getAttributeNode&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}}f.removeChild(d)})();(function(){var e=document.createElement("div");e.appendChild(document.createComment(""));if(e.getElementsByTagName("*").length>0){x.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var i=0;c[i];i++){if(c[i].nodeType===1){d.push(c[i])}}c=d}return c}}e.innerHTML="<a href='#'></a>";if(e.firstChild.getAttribute("href")!=="#"){x.attrHandle.href=function(a){return a.getAttribute("href",2)}}})();if(document.querySelectorAll)(function(){var A=w;w=function(a,b,c,d){b=b||document;if(!d&&b.nodeType===9){try{return z(b.querySelectorAll(a),c)}catch(e){}}return A(a,b,c,d)};w.find=A.find;w.filter=A.filter;w.selectors=A.selectors;w.matches=A.matches})();if(document.documentElement.getElementsByClassName){x.order.splice(1,0,"CLASS");x.find.CLASS=function(a,b){return b.getElementsByClassName(a[1])}}function B(a,b,c,d,e,f){for(var i=0,l=d.length;i<l;i++){var g=d[i];if(g){g=g[a];var h=false;while(g&&g.nodeType){var j=g[c];if(j){h=d[j];break}if(g.nodeType===1&&!f)g[c]=i;if(g.nodeName===b){h=g;break}g=g[a]}d[i]=h}}}function C(a,b,c,d,e,f){for(var i=0,l=d.length;i<l;i++){var g=d[i];if(g){g=g[a];var h=false;while(g&&g.nodeType){if(g[c]){h=d[g[c]];break}if(g.nodeType===1){if(!f)g[c]=i;if(typeof b!=="string"){if(g===b){h=true;break}}else if(w.filter(b,[g]).length>0){h=g;break}}g=g[a]}d[i]=h}}}var D=document.compareDocumentPosition?function(a,b){return a.compareDocumentPosition(b)&16}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)};var E=function(a){return a.documentElement&&!a.body||a.tagName&&a.ownerDocument&&!a.ownerDocument.body};jQuery.find=w;jQuery.filter=w.filter;jQuery.expr=w.selectors;jQuery.expr[":"]=jQuery.expr.filters;w.selectors.filters.hidden=function(a){return"hidden"===a.type||jQuery.css(a,"display")==="none"||jQuery.css(a,"visibility")==="hidden"};w.selectors.filters.visible=function(a){return"hidden"!==a.type&&jQuery.css(a,"display")!=="none"&&jQuery.css(a,"visibility")!=="hidden"};w.selectors.filters.animated=function(b){return jQuery.grep(jQuery.timers,function(a){return b===a.elem}).length};jQuery.multiFilter=function(a,b,c){if(c){a=":not("+a+")"}return w.matches(a,b)};jQuery.dir=function(a,b){var c=[],d=a[b];while(d&&d!=document){if(d.nodeType==1)c.push(d);d=d[b]}return c};jQuery.nth=function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType==1&&++e==b)break;return a};jQuery.sibling=function(n,a){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=a)r.push(n)}return r};return;window.Sizzle=w})();jQuery.event={add:function(e,f,g,h){if(e.nodeType==3||e.nodeType==8)return;if(e.setInterval&&e!=window)e=window;if(!g.guid)g.guid=this.guid++;if(h!==undefined){var i=g;g=this.proxy(i);g.data=h}var j=jQuery.data(e,"events")||jQuery.data(e,"events",{}),k=jQuery.data(e,"handle")||jQuery.data(e,"handle",function(){return typeof jQuery!=="undefined"&&!jQuery.event.triggered?jQuery.event.handle.apply(arguments.callee.elem,arguments):undefined});k.elem=e;jQuery.each(f.split(/\s+/),function(a,b){var c=b.split(".");b=c.shift();g.type=c.slice().sort().join(".");var d=j[b];if(jQuery.event.specialAll[b])jQuery.event.specialAll[b].setup.call(e,h,c);if(!d){d=j[b]={};if(!jQuery.event.special[b]||jQuery.event.special[b].setup.call(e,h,c)===false){if(e.addEventListener)e.addEventListener(b,k,false);else if(e.attachEvent)e.attachEvent("on"+b,k)}}d[g.guid]=g;jQuery.event.global[b]=true});e=null},guid:1,global:{},remove:function(f,g,h){if(f.nodeType==3||f.nodeType==8)return;var i=jQuery.data(f,"events"),j,k;if(i){if(g===undefined||(typeof g==="string"&&g.charAt(0)=="."))for(var l in i)this.remove(f,l+(g||""));else{if(g.type){h=g.handler;g=g.type}jQuery.each(g.split(/\s+/),function(a,b){var c=b.split(".");b=c.shift();var d=RegExp("(^|\\.)"+c.slice().sort().join(".*\\.")+"(\\.|$)");if(i[b]){if(h)delete i[b][h.guid];else for(var e in i[b])if(d.test(i[b][e].type))delete i[b][e];if(jQuery.event.specialAll[b])jQuery.event.specialAll[b].teardown.call(f,c);for(j in i[b])break;if(!j){if(!jQuery.event.special[b]||jQuery.event.special[b].teardown.call(f,c)===false){if(f.removeEventListener)f.removeEventListener(b,jQuery.data(f,"handle"),false);else if(f.detachEvent)f.detachEvent("on"+b,jQuery.data(f,"handle"))}j=null;delete i[b]}}})}for(j in i)break;if(!j){var m=jQuery.data(f,"handle");if(m)m.elem=null;jQuery.removeData(f,"events");jQuery.removeData(f,"handle")}}},trigger:function(a,b,c,d){var f=a.type||a;if(!d){a=typeof a==="object"?a[expando]?a:jQuery.extend(jQuery.Event(f),a):jQuery.Event(f);if(f.indexOf("!")>=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!c){a.stopPropagation();if(this.global[f])jQuery.each(jQuery.cache,function(){if(this.events&&this.events[f])jQuery.event.trigger(a,b,this.handle.elem)})}if(!c||c.nodeType==3||c.nodeType==8)return undefined;a.result=undefined;a.target=c;b=jQuery.makeArray(b);b.unshift(a)}a.currentTarget=c;var g=jQuery.data(c,"handle");if(g)g.apply(c,b);if((!c[f]||(jQuery.nodeName(c,'a')&&f=="click"))&&c["on"+f]&&c["on"+f].apply(c,b)===false)a.result=false;if(!d&&c[f]&&!a.isDefaultPrevented()&&!(jQuery.nodeName(c,'a')&&f=="click")){this.triggered=true;try{c[f]()}catch(e){}}this.triggered=false;if(!a.isPropagationStopped()){var h=c.parentNode||c.ownerDocument;if(h)jQuery.event.trigger(a,b,h,true)}},handle:function(event){var all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);var namespaces=event.type.split(".");event.type=namespaces.shift();all=!namespaces.length&&!event.exclusive;var namespace=RegExp("(^|\\.)"+namespaces.slice().sort().join(".*\\.")+"(\\.|$)");handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||namespace.test(handler.type)){event.handler=handler;event.data=handler.data;var ret=handler.apply(this,arguments);if(ret!==undefined){event.result=ret;if(ret===false){event.preventDefault();event.stopPropagation()}}if(event.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(event){if(event[expando])return event;var originalEvent=event;event=jQuery.Event(originalEvent);for(var i=this.props.length,prop;i;){prop=this.props[--i];event[prop]=originalEvent[prop]}if(!event.target)event.target=event.srcElement||document;if(event.target.nodeType==3)event.target=event.target.parentNode;if(!event.relatedTarget&&event.fromElement)event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement;if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0)}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode))event.which=event.charCode||event.keyCode;if(!event.metaKey&&event.ctrlKey)event.metaKey=event.ctrlKey;if(!event.which&&event.button)event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event},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:bindReady,teardown:function(){}}},specialAll:{live:{setup:function(a,b){jQuery.event.add(this,b[0],liveHandler)},teardown:function(a){if(a.length){var b=0,c=RegExp("(^|\\.)"+a[0]+"(\\.|$)");jQuery.each((jQuery.data(this,"events").live||{}),function(){if(c.test(this.type))b++});if(b<1)jQuery.event.remove(this,a[0],liveHandler)}}}}};jQuery.Event=function(a){if(!this.preventDefault)return new jQuery.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type;this.timeStamp=a.timeStamp}else this.type=a;if(!this.timeStamp)this.timeStamp=now();this[expando]=true};function returnFalse(){return false}function returnTrue(){return true}jQuery.Event.prototype={preventDefault:function(){this.isDefaultPrevented=returnTrue;var e=this.originalEvent;if(!e)return;if(e.preventDefault)e.preventDefault();e.returnValue=false},stopPropagation:function(){this.isPropagationStopped=returnTrue;var e=this.originalEvent;if(!e)return;if(e.stopPropagation)e.stopPropagation();e.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=returnTrue;this.stopPropagation()},isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse};var withinElement=function(a){var b=a.relatedTarget;while(b&&b!=this)try{b=b.parentNode}catch(e){b=this}if(b!=this){a.type=a.data;jQuery.event.handle.apply(this,arguments)}};jQuery.each({mouseover:'mouseenter',mouseout:'mouseleave'},function(a,b){jQuery.event.special[b]={setup:function(){jQuery.event.add(this,a,withinElement,b)},teardown:function(){jQuery.event.remove(this,a,withinElement)}}});jQuery.fn.extend({bind:function(a,b,c){return a=="unload"?this.one(a,b,c):this.each(function(){jQuery.event.add(this,a,c||b,c&&b)})},one:function(b,c,d){var e=jQuery.event.proxy(d||c,function(a){jQuery(this).unbind(a,e);return(d||c).apply(this,arguments)});return this.each(function(){jQuery.event.add(this,b,e,d&&c)})},unbind:function(a,b){return this.each(function(){jQuery.event.remove(this,a,b)})},trigger:function(a,b){return this.each(function(){jQuery.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var c=jQuery.Event(a);c.preventDefault();c.stopPropagation();jQuery.event.trigger(c,b,this[0]);return c.result}},toggle:function(b){var c=arguments,i=1;while(i<c.length)jQuery.event.proxy(b,c[i++]);return this.click(jQuery.event.proxy(b,function(a){this.lastToggle=(this.lastToggle||0)%i;a.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b)},ready:function(a){bindReady();if(jQuery.isReady)a.call(document,jQuery);else jQuery.readyList.push(a);return this},live:function(a,b){var c=jQuery.event.proxy(b);c.guid+=this.selector+a;jQuery(document).bind(liveConvert(a,this.selector),this.selector,c);return this},die:function(a,b){jQuery(document).unbind(liveConvert(a,this.selector),b?{guid:b.guid+this.selector+a}:null);return this}});function liveHandler(c){var d=RegExp("(^|\\.)"+c.type+"(\\.|$)"),e=true,f=[];jQuery.each(jQuery.data(this,"events").live||[],function(i,a){if(d.test(a.type)){var b=jQuery(c.target).closest(a.data)[0];if(b)f.push({elem:b,fn:a})}});jQuery.each(f,function(){if(!c.isImmediatePropagationStopped()&&this.fn.call(this.elem,c,this.fn.data)===false)e=false});return e}function liveConvert(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".")}jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document,jQuery)});jQuery.readyList=null}jQuery(document).triggerHandler("ready")}}});var readyBound=false;function bindReady(){if(readyBound)return;readyBound=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);jQuery.ready()},false)}else if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);jQuery.ready()}});if(document.documentElement.doScroll&&!window.frameElement)(function(){if(jQuery.isReady)return;try{document.documentElement.doScroll("left")}catch(error){setTimeout(arguments.callee,0);return}jQuery.ready()})()}jQuery.event.add(window,"load",jQuery.ready)}jQuery.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(i,b){jQuery.fn[b]=function(a){return a?this.bind(b,a):this.trigger(b)}});jQuery(window).bind('unload',function(){for(var a in jQuery.cache)if(a!=1&&jQuery.cache[a].handle)jQuery.event.remove(jQuery.cache[a].handle.elem)});(function(){jQuery.support={};var b=document.documentElement,c=document.createElement("script"),d=document.createElement("div"),f="script"+(new Date).getTime();d.style.display="none";d.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 g=d.getElementsByTagName("*"),a=d.getElementsByTagName("a")[0];if(!g||!g.length||!a){return}jQuery.support={leadingWhitespace:d.firstChild.nodeType==3,tbody:!d.getElementsByTagName("tbody").length,objectAll:!!d.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(a.getAttribute("style")),hrefNormalized:a.getAttribute("href")==="/a",opacity:a.style.opacity==="0.5",cssFloat:!!a.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};c.type="text/javascript";try{c.appendChild(document.createTextNode("window."+f+"=1;"))}catch(e){}b.insertBefore(c,b.firstChild);if(window[f]){jQuery.support.scriptEval=true;delete window[f]}b.removeChild(c);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function(){jQuery.support.noCloneEvent=false;d.detachEvent("onclick",arguments.callee)});d.cloneNode(true).fireEvent("onclick")}jQuery(function(){var a=document.createElement("div");a.style.width="1px";a.style.paddingLeft="1px";document.body.appendChild(a);jQuery.boxModel=jQuery.support.boxModel=a.offsetWidth===2;document.body.removeChild(a)})})();var styleFloat=jQuery.support.cssFloat?"cssFloat":"styleFloat";jQuery.props={"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};jQuery.fn.extend({_1:jQuery.fn.load,load:function(c,d,e){if(typeof c!=="string")return this._1(c);var f=c.indexOf(" ");if(f>=0){var g=c.slice(f,c.length);c=c.slice(0,f)}var h="GET";if(d)if(jQuery.isFunction(d)){e=d;d=null}else if(typeof d==="object"){d=jQuery.param(d);h="POST"}var i=this;jQuery.ajax({url:c,type:h,dataType:"html",data:d,complete:function(a,b){if(b=="success"||b=="notmodified")i.html(g?jQuery("<div/>").append(a.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(g):a.responseText);if(e)i.each(e,[a.responseText,b,a])}});return this},serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?jQuery.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(i,b){var c=jQuery(this).val();return c==null?null:jQuery.isArray(c)?jQuery.map(c,function(a,i){return{name:b.name,value:a}}):{name:b.name,value:c}}).get()}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f)}});var jsc=now();jQuery.extend({get:function(a,b,c,d){if(jQuery.isFunction(b)){c=b;b=null}return jQuery.ajax({type:"GET",url:a,data:b,success:c,dataType:d})},getScript:function(a,b){return jQuery.get(a,null,b,"script")},getJSON:function(a,b,c){return jQuery.get(a,b,c,"json")},post:function(a,b,c,d){if(jQuery.isFunction(b)){c=b;b={}}return jQuery.ajax({type:"POST",url:a,data:b,success:c,dataType:d})},ajaxSetup:function(a){jQuery.extend(jQuery.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return window.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",_2:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var c,d=/=\?(&|$)/g,f,g,h=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!=="string")s.data=jQuery.param(s.data);if(s.dataType=="jsonp"){if(h=="GET"){if(!s.url.match(d))s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?"}else if(!s.data||!s.data.match(d))s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";s.dataType="json"}if(s.dataType=="json"&&(s.data&&s.data.match(d)||s.url.match(d))){c="jsonp"+jsc++;if(s.data)s.data=(s.data+"").replace(d,"="+c+"$1");s.url=s.url.replace(d,"="+c+"$1");s.dataType="script";window[c]=function(a){g=a;t();u();window[c]=undefined;try{delete window[c]}catch(e){}if(l)l.removeChild(m)}}if(s.dataType=="script"&&s.cache==null)s.cache=false;if(s.cache===false&&h=="GET"){var i=now();var j=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+i+"$2");s.url=j+((j==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+i:"")}if(s.data&&h=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null}if(s.global&&!jQuery.active++)jQuery.event.trigger("ajaxStart");var k=/^(\w+:)?\/\/([^\/?#]+)/.exec(s.url);if(s.dataType=="script"&&h=="GET"&&k&&(k[1]&&k[1]!=location.protocol||k[2]!=location.host)){var l=document.getElementsByTagName("head")[0];var m=document.createElement("script");m.src=s.url;if(s.scriptCharset)m.charset=s.scriptCharset;if(!c){var n=false;m.onload=m.onreadystatechange=function(){if(!n&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){n=true;t();u();l.removeChild(m)}}}l.appendChild(m);return undefined}var o=false;var p=s.xhr();if(s.username)p.open(h,s.url,s.async,s.username,s.password);else p.open(h,s.url,s.async);try{if(s.data)p.setRequestHeader("Content-Type",s.contentType);if(s.ifModified)p.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");p.setRequestHeader("X-Requested-With","XMLHttpRequest");p.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._2)}catch(e){}if(s.beforeSend&&s.beforeSend(p,s)===false){if(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop");p.abort();return false}if(s.global)jQuery.event.trigger("ajaxSend",[p,s]);var q=function(a){if(p.readyState==0){if(r){clearInterval(r);r=null;if(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop")}}else if(!o&&p&&(p.readyState==4||a=="timeout")){o=true;if(r){clearInterval(r);r=null}f=a=="timeout"?"timeout":!jQuery.httpSuccess(p)?"error":s.ifModified&&jQuery.httpNotModified(p,s.url)?"notmodified":"success";if(f=="success"){try{g=jQuery.httpData(p,s.dataType,s)}catch(e){f="parsererror"}}if(f=="success"){var b;try{b=p.getResponseHeader("Last-Modified")}catch(e){}if(s.ifModified&&b)jQuery.lastModified[s.url]=b;if(!c)t()}else jQuery.handleError(s,p,f);u();if(s.async)p=null}};if(s.async){var r=setInterval(q,13);if(s.timeout>0)setTimeout(function(){if(p){if(!o)q("timeout");if(p)p.abort()}},s.timeout)}try{p.send(s.data)}catch(e){jQuery.handleError(s,p,null,e)}if(!s.async)q();function t(){if(s.success)s.success(g,f);if(s.global)jQuery.event.trigger("ajaxSuccess",[p,s])}function u(){if(s.complete)s.complete(p,f);if(s.global)jQuery.event.trigger("ajaxComplete",[p,s]);if(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop")}return p},handleError:function(s,a,b,e){if(s.error)s.error(a,b,e);if(s.global)jQuery.event.trigger("ajaxError",[a,s,e])},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(e){}return false},httpNotModified:function(a,b){try{var c=a.getResponseHeader("Last-Modified");return a.status==304||c==jQuery.lastModified[b]}catch(e){}return false},httpData:function(a,b,s){var c=a.getResponseHeader("content-type"),d=b=="xml"||!b&&c&&c.indexOf("xml")>=0,e=d?a.responseXML:a.responseText;if(d&&e.documentElement.tagName=="parsererror")throw"parsererror";if(s&&s.dataFilter)e=s.dataFilter(e,b);if(typeof e==="string"){if(b=="script")jQuery.globalEval(e);if(b=="json")e=window["eval"]("("+e+")")}return e},param:function(a){var s=[];function c(a,b){s[s.length]=encodeURIComponent(a)+'='+encodeURIComponent(b)};if(jQuery.isArray(a)||a.jquery)jQuery.each(a,function(){c(this.name,this.value)});else for(var j in a)if(jQuery.isArray(a[j]))jQuery.each(a[j],function(){c(j,this)});else c(j,jQuery.isFunction(a[j])?a[j]():a[j]);return s.join("&").replace(/%20/g,"+")}});var elemdisplay={},fxAttrs=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function genFx(a,b){var c={};jQuery.each(fxAttrs.concat.apply([],fxAttrs.slice(0,b)),function(){c[this]=a});return c}jQuery.fn.extend({show:function(a,b){if(a){return this.animate(genFx("show",3),a,b)}else{for(var i=0,l=this.length;i<l;i++){var c=jQuery.data(this[i],"olddisplay");this[i].style.display=c||"";if(jQuery.css(this[i],"display")==="none"){var d=this[i].tagName,e;if(elemdisplay[d]){e=elemdisplay[d]}else{var f=jQuery("<"+d+" />").appendTo("body");e=f.css("display");if(e==="none")e="block";f.remove();elemdisplay[d]=e}this[i].style.display=jQuery.data(this[i],"olddisplay",e)}}return this}},hide:function(a,b){if(a){return this.animate(genFx("hide",3),a,b)}else{for(var i=0,l=this.length;i<l;i++){var c=jQuery.data(this[i],"olddisplay");if(!c&&c!=="none")jQuery.data(this[i],"olddisplay",jQuery.css(this[i],"display"));this[i].style.display="none"}return this}},_3:jQuery.fn.toggle,toggle:function(b,c){var d=typeof b==="boolean";return jQuery.isFunction(b)&&jQuery.isFunction(c)?this._3.apply(this,arguments):b==null||d?this.each(function(){var a=d?b:jQuery(this).is(":hidden");jQuery(this)[a?"show":"hide"]()}):this.animate(genFx("toggle",3),b,c)},fadeTo:function(a,b,c){return this.animate({opacity:b},a,c)},animate:function(k,l,m,n){var o=jQuery.speed(l,m,n);return this[o.queue===false?"each":"queue"](function(){var h=jQuery.extend({},o),p,i=this.nodeType==1&&jQuery(this).is(":hidden"),j=this;for(p in k){if(k[p]=="hide"&&i||k[p]=="show"&&!i)return h.complete.call(this);if((p=="height"||p=="width")&&this.style){h.display=jQuery.css(this,"display");h.overflow=this.style.overflow}}if(h.overflow!=null)this.style.overflow="hidden";h.curAnim=jQuery.extend({},k);jQuery.each(k,function(a,b){var e=new jQuery.fx(j,h,a);if(/toggle|show|hide/.test(b))e[b=="toggle"?i?"show":"hide":b](k);else{var c=b.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),d=e.cur(true)||0;if(c){var f=parseFloat(c[2]),g=c[3]||"px";if(g!="px"){j.style[a]=(f||1)+g;d=((f||1)/e.cur(true))*d;j.style[a]=d+g}if(c[1])f=((c[1]=="-="?-1:1)*f)+d;e.custom(d,f,g)}else e.custom(d,b,"")}});return true})},stop:function(a,b){var c=jQuery.timers;if(a)this.queue([]);this.each(function(){for(var i=c.length-1;i>=0;i--)if(c[i].elem==this){if(b)c[i](true);c.splice(i,1)}});if(!b)this.dequeue();return this}});jQuery.each({slideDown:genFx("show",1),slideUp:genFx("hide",1),slideToggle:genFx("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(c,d){jQuery.fn[c]=function(a,b){return this.animate(d,a,b)}});jQuery.extend({speed:function(a,b,c){var d=typeof a==="object"?a:{complete:c||!c&&b||jQuery.isFunction(a)&&a,duration:a,easing:c&&b||b&&!jQuery.isFunction(b)&&b};d.duration=jQuery.fx.off?0:typeof d.duration==="number"?d.duration:jQuery.fx.speeds[d.duration]||jQuery.fx.speeds._2;d.old=d.complete;d.complete=function(){if(d.queue!==false)jQuery(this).dequeue();if(jQuery.isFunction(d.old))d.old.call(this)};return d},easing:{linear:function(p,n,a,b){return a+b*p},swing:function(p,n,a,b){return((-Math.cos(p*Math.PI)/2)+0.5)*b+a}},timers:[],timerId:null,fx:function(a,b,c){this.options=b;this.elem=a;this.prop=c;if(!b.orig)b.orig={}}});jQuery.fx.prototype={update:function(){if(this.options.step)this.options.step.call(this.elem,this.now,this);(jQuery.fx.step[this.prop]||jQuery.fx.step._2)(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 r=parseFloat(jQuery.css(this.elem,this.prop,a));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0},custom:function(b,c,d){this.startTime=now();this.start=b;this.end=c;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;function t(a){return e.step(a)}t.elem=this.elem;jQuery.timers.push(t);if(t()&&jQuery.timerId==null){jQuery.timerId=setInterval(function(){var a=jQuery.timers;for(var i=0;i<a.length;i++)if(!a[i]())a.splice(i--,1);if(!a.length){clearInterval(jQuery.timerId);jQuery.timerId=null}},13)}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var t=now();if(a||t>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var b=true;for(var i in this.options.curAnim)if(this.options.curAnim[i]!==true)b=false;if(b){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none")this.elem.style.display="block"}if(this.options.hide)jQuery(this.elem).hide();if(this.options.hide||this.options.show)for(var p in this.options.curAnim)jQuery.attr(this.elem.style,p,this.options.orig[p])}if(b)this.options.complete.call(this.elem);return false}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,_2:400},step:{opacity:function(a){jQuery.attr(a.elem.style,"opacity",a.now)},_2: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"])jQuery.fn.offset=function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return jQuery.offset.bodyOffset(this[0]);var box=this[0].getBoundingClientRect(),doc=this[0].ownerDocument,body=doc.body,docElem=doc.documentElement,clientTop=docElem.clientTop||body.clientTop||0,clientLeft=docElem.clientLeft||body.clientLeft||0,top=box.top+(self.pageYOffset||jQuery.boxModel&&docElem.scrollTop||body.scrollTop)-clientTop,left=box.left+(self.pageXOffset||jQuery.boxModel&&docElem.scrollLeft||body.scrollLeft)-clientLeft;return{top:top,left:left}};else jQuery.fn.offset=function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return jQuery.offset.bodyOffset(this[0]);jQuery.offset.initialized||jQuery.offset.initialize();var a=this[0],b=a.offsetParent,c=a,d=a.ownerDocument,e,f=d.documentElement,g=d.body,h=d.defaultView,i=h.getComputedStyle(a,null),j=a.offsetTop,k=a.offsetLeft;while((a=a.parentNode)&&a!==g&&a!==f){e=h.getComputedStyle(a,null);j-=a.scrollTop,k-=a.scrollLeft;if(a===b){j+=a.offsetTop,k+=a.offsetLeft;if(jQuery.offset.doesNotAddBorder&&!(jQuery.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(a.tagName)))j+=parseInt(e.borderTopWidth,10)||0,k+=parseInt(e.borderLeftWidth,10)||0;c=b,b=a.offsetParent}if(jQuery.offset.subtractsBorderForOverflowNotVisible&&e.overflow!=="visible")j+=parseInt(e.borderTopWidth,10)||0,k+=parseInt(e.borderLeftWidth,10)||0;i=e}if(i.position==="relative"||i.position==="static")j+=g.offsetTop,k+=g.offsetLeft;if(i.position==="fixed")j+=Math.max(f.scrollTop,g.scrollTop),k+=Math.max(f.scrollLeft,g.scrollLeft);return{top:j,left:k}};jQuery.offset={initialize:function(){if(this.initialized)return;var a=document.body,b=document.createElement('div'),c,d,e,f,g,h,i=a.style.marginTop,j='<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>';g={position:'absolute',top:0,left:0,margin:0,border:0,width:'1px',height:'1px',visibility:'hidden'};for(h in g)b.style[h]=g[h];b.innerHTML=j;a.insertBefore(b,a.firstChild);c=b.firstChild,d=c.firstChild,f=c.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(d.offsetTop!==5);this.doesAddBorderForTableAndCells=(f.offsetTop===5);c.style.overflow='hidden',c.style.position='relative';this.subtractsBorderForOverflowNotVisible=(d.offsetTop===-5);a.style.marginTop='1px';this.doesNotIncludeMarginInBodyOffset=(a.offsetTop===0);a.style.marginTop=i;a.removeChild(b);this.initialized=true},bodyOffset:function(a){jQuery.offset.initialized||jQuery.offset.initialize();var b=a.offsetTop,c=a.offsetLeft;if(jQuery.offset.doesNotIncludeMarginInBodyOffset)b+=parseInt(jQuery.curCSS(a,'marginTop',true),10)||0,c+=parseInt(jQuery.curCSS(a,'marginLeft',true),10)||0;return{top:b,left:c}}};jQuery.fn.extend({position:function(){var a=0,b=0,c;if(this[0]){var d=this.offsetParent(),e=this.offset(),f=/^body|html$/i.test(d[0].tagName)?{top:0,left:0}:d.offset();e.top-=num(this,'marginTop');e.left-=num(this,'marginLeft');f.top+=num(d,'borderTopWidth');f.left+=num(d,'borderLeftWidth');c={top:e.top-f.top,left:e.left-f.left}}return c},offsetParent:function(){var a=this[0].offsetParent||document.body;while(a&&(!/^body|html$/i.test(a.tagName)&&jQuery.css(a,'position')=='static'))a=a.offsetParent;return jQuery(a)}});jQuery.each(['Left','Top'],function(i,b){var c='scroll'+b;jQuery.fn[c]=function(a){if(!this[0])return null;return a!==undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?a:jQuery(window).scrollLeft(),i?a:jQuery(window).scrollTop()):this[c]=a}):this[0]==window||this[0]==document?self[i?'pageYOffset':'pageXOffset']||jQuery.boxModel&&document.documentElement[c]||document.body[c]:this[0][c]}});jQuery.each(["Height","Width"],function(i,b){var c=i?"Left":"Top",d=i?"Right":"Bottom";jQuery.fn["inner"+b]=function(){return this[b.toLowerCase()]()+num(this,"padding"+c)+num(this,"padding"+d)};jQuery.fn["outer"+b]=function(a){return this["inner"+b]()+num(this,"border"+c+"Width")+num(this,"border"+d+"Width")+(a?num(this,"margin"+c)+num(this,"margin"+d):0)};var e=b.toLowerCase();jQuery.fn[e]=function(a){return this[0]==window?document.compatMode=="CSS1Compat"&&document.documentElement["client"+b]||document.body["client"+b]:this[0]==document?Math.max(document.documentElement["client"+b],document.body["scroll"+b],document.documentElement["scroll"+b],document.body["offset"+b],document.documentElement["offset"+b]):a===undefined?(this.length?jQuery.css(this[0],e):null):this.css(e,typeof a==="string"?a:a+"px")}})})();
/* Autocomplete - jQuery plugin 1.0.2
 * Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer
 * Dual licensed under the MIT and GPL licenses */
;(function($){$.fn.extend({autocomplete:function(urlOrData,options){var isUrl=typeof urlOrData=="string";options=$.extend({},$.Autocompleter.defaults,{url:isUrl?urlOrData:null,data:isUrl?null:urlOrData,delay:isUrl?$.Autocompleter.defaults.delay:10,max:options&&!options.scroll?10:150},options);options.highlight=options.highlight||function(value){return value};options.formatMatch=options.formatMatch||options.formatItem;return this.each(function(){new $.Autocompleter(this,options)})},result:function(handler){return this.bind("result",handler)},search:function(handler){return this.trigger("search",[handler])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(options){return this.trigger("setOptions",[options])},unautocomplete:function(){return this.trigger("unautocomplete")}});$.Autocompleter=function(input,options){var KEY={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var $input=$(input).attr("autocomplete","off").addClass(options.inputClass);var timeout;var previousValue="";var cache=$.Autocompleter.Cache(options);var hasFocus=0;var lastKeyPressCode;var config={mouseDownOnSelect:false};var select=$.Autocompleter.Select(options,input,selectCurrent,config);var blockSubmit;$.browser.opera&&$(input.form).bind("submit.autocomplete",function(){if(blockSubmit){blockSubmit=false;return false}});$input.bind(($.browser.opera?"keypress":"keydown")+".autocomplete",function(event){lastKeyPressCode=event.keyCode;switch(event.keyCode){case KEY.UP:event.preventDefault();if(select.visible()){select.prev()}else{onChange(0,true)}break;case KEY.DOWN:event.preventDefault();if(select.visible()){select.next()}else{onChange(0,true)}break;case KEY.PAGEUP:event.preventDefault();if(select.visible()){select.pageUp()}else{onChange(0,true)}break;case KEY.PAGEDOWN:event.preventDefault();if(select.visible()){select.pageDown()}else{onChange(0,true)}break;case options.multiple&&$.trim(options.multipleSeparator)==","&&KEY.COMMA:case KEY.TAB:case KEY.RETURN:if(selectCurrent()){event.preventDefault();blockSubmit=true;return false}break;case KEY.ESC:select.hide();break;default:clearTimeout(timeout);timeout=setTimeout(onChange,options.delay);break}}).focus(function(){hasFocus++}).blur(function(){hasFocus=0;if(!config.mouseDownOnSelect){hideResults()}}).click(function(){if(hasFocus++>1&&!select.visible()){onChange(0,true)}}).bind("search",function(){var fn=(arguments.length>1)?arguments[1]:null;function findValueCallback(q,data){var result;if(data&&data.length){for(var i=0;i<data.length;i++){if(data[i].result.toLowerCase()==q.toLowerCase()){result=data[i];break}}}if(typeof fn=="function")fn(result);else $input.trigger("result",result&&[result.data,result.value])}$.each(trimWords($input.val()),function(i,value){request(value,findValueCallback,findValueCallback)})}).bind("flushCache",function(){cache.flush()}).bind("setOptions",function(){$.extend(options,arguments[1]);if("data"in arguments[1])cache.populate()}).bind("unautocomplete",function(){select.unbind();$input.unbind();$(input.form).unbind(".autocomplete")});function selectCurrent(){var selected=select.selected();if(!selected)return false;var v=selected.result;previousValue=v;if(options.multiple){var words=trimWords($input.val());if(words.length>1){v=words.slice(0,words.length-1).join(options.multipleSeparator)+options.multipleSeparator+v}v+=options.multipleSeparator}$input.val(v);hideResultsNow();$input.trigger("result",[selected.data,selected.value]);return true}function onChange(crap,skipPrevCheck){if(lastKeyPressCode==KEY.DEL){select.hide();return}var currentValue=$input.val();if(!skipPrevCheck&&currentValue==previousValue)return;previousValue=currentValue;currentValue=lastWord(currentValue);if(currentValue.length>=options.minChars){$input.addClass(options.loadingClass);if(!options.matchCase)currentValue=currentValue.toLowerCase();request(currentValue,receiveData,hideResultsNow)}else{stopLoading();select.hide()}};function trimWords(value){if(!value){return[""]}var words=value.split(options.multipleSeparator);var result=[];$.each(words,function(i,value){if($.trim(value))result[i]=$.trim(value)});return result}function lastWord(value){if(!options.multiple)return value;var words=trimWords(value);return words[words.length-1]}function autoFill(q,sValue){if(options.autoFill&&(lastWord($input.val()).toLowerCase()==q.toLowerCase())&&lastKeyPressCode!=KEY.BACKSPACE){$input.val($input.val()+sValue.substring(lastWord(previousValue).length));$.Autocompleter.Selection(input,previousValue.length,previousValue.length+sValue.length)}};function hideResults(){clearTimeout(timeout);timeout=setTimeout(hideResultsNow,200)};function hideResultsNow(){var wasVisible=select.visible();select.hide();clearTimeout(timeout);stopLoading();if(options.mustMatch){$input.search(function(result){if(!result){if(options.multiple){var words=trimWords($input.val()).slice(0,-1);$input.val(words.join(options.multipleSeparator)+(words.length?options.multipleSeparator:""))}else $input.val("")}})}if(wasVisible)$.Autocompleter.Selection(input,input.value.length,input.value.length)};function receiveData(q,data){if(data&&data.length&&hasFocus){stopLoading();select.display(data,q);autoFill(q,data[0].value);select.show()}else{hideResultsNow()}};function request(term,success,failure){if(!options.matchCase)term=term.toLowerCase();var data=cache.load(term);if(data&&data.length){success(term,data)}else if((typeof options.url=="string")&&(options.url.length>0)){var extraParams={timestamp:+new Date()};$.each(options.extraParams,function(key,param){extraParams[key]=typeof param=="function"?param():param});$.ajax({mode:"abort",port:"autocomplete"+input.name,dataType:options.dataType,url:options.url,data:$.extend({q:lastWord(term),limit:options.max},extraParams),success:function(data){var parsed=options.parse&&options.parse(data)||parse(data);cache.add(term,parsed);success(term,parsed)}})}else{select.emptyList();failure(term)}};function parse(data){var parsed=[];var rows=data.split("\n");for(var i=0;i<rows.length;i++){var row=$.trim(rows[i]);if(row){row=row.split("|");parsed[parsed.length]={data:row,value:row[0],result:options.formatResult&&options.formatResult(row,row[0])||row[0]}}}return parsed};function stopLoading(){$input.removeClass(options.loadingClass)}};$.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(row){return row[0]},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(value,term){return value.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>")},scroll:true,scrollHeight:180};$.Autocompleter.Cache=function(options){var data={};var length=0;function matchSubset(s,sub){if(!options.matchCase)s=s.toLowerCase();var i=s.indexOf(sub);if(i==-1)return false;return i==0||options.matchContains};function add(q,value){if(length>options.cacheLength){flush()}if(!data[q]){length++}data[q]=value}function populate(){if(!options.data)return false;var stMatchSets={},nullData=0;if(!options.url)options.cacheLength=1;stMatchSets[""]=[];for(var i=0,ol=options.data.length;i<ol;i++){var rawValue=options.data[i];rawValue=(typeof rawValue=="string")?[rawValue]:rawValue;var value=options.formatMatch(rawValue,i+1,options.data.length);if(value===false)continue;var firstChar=value.charAt(0).toLowerCase();if(!stMatchSets[firstChar])stMatchSets[firstChar]=[];var row={value:value,data:rawValue,result:options.formatResult&&options.formatResult(rawValue)||value};stMatchSets[firstChar].push(row);if(nullData++<options.max){stMatchSets[""].push(row)}};$.each(stMatchSets,function(i,value){options.cacheLength++;add(i,value)})}setTimeout(populate,25);function flush(){data={};length=0}return{flush:flush,add:add,populate:populate,load:function(q){if(!options.cacheLength||!length)return null;if(!options.url&&options.matchContains){var csub=[];for(var k in data){if(k.length>0){var c=data[k];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub.push(x)}})}}return csub}else if(data[q]){return data[q]}else if(options.matchSubset){for(var i=q.length-1;i>=options.minChars;i--){var c=data[q.substr(0,i)];if(c){var csub=[];$.each(c,function(i,x){if(matchSubset(x.value,q)){csub[csub.length]=x}});return csub}}}return null}}};$.Autocompleter.Select=function(options,input,select,config){var CLASSES={ACTIVE:"ac_over"};var listItems,active=-1,data,term="",needsInit=true,element,list;function init(){if(!needsInit)return;element=$("<div/>").hide().addClass(options.resultsClass).css("position","absolute").appendTo(document.body);list=$("<ul/>").appendTo(element).mouseover(function(event){if(target(event).nodeName&&target(event).nodeName.toUpperCase()=='LI'){active=$("li",list).removeClass(CLASSES.ACTIVE).index(target(event));$(target(event)).addClass(CLASSES.ACTIVE)}}).click(function(event){$(target(event)).addClass(CLASSES.ACTIVE);select();input.focus();return false}).mousedown(function(){config.mouseDownOnSelect=true}).mouseup(function(){config.mouseDownOnSelect=false});if(options.width>0)element.css("width",options.width);needsInit=false}function target(event){var element=event.target;while(element&&element.tagName!="LI")element=element.parentNode;if(!element)return[];return element}function moveSelect(step){listItems.slice(active,active+1).removeClass(CLASSES.ACTIVE);movePosition(step);var activeItem=listItems.slice(active,active+1).addClass(CLASSES.ACTIVE);if(options.scroll){var offset=0;listItems.slice(0,active).each(function(){offset+=this.offsetHeight});if((offset+activeItem[0].offsetHeight-list.scrollTop())>list[0].clientHeight){list.scrollTop(offset+activeItem[0].offsetHeight-list.innerHeight())}else if(offset<list.scrollTop()){list.scrollTop(offset)}}};function movePosition(step){active+=step;if(active<0){active=listItems.size()-1}else if(active>=listItems.size()){active=0}}function limitNumberOfItems(available){return options.max&&options.max<available?options.max:available}function fillList(){list.empty();var max=limitNumberOfItems(data.length);for(var i=0;i<max;i++){if(!data[i])continue;var formatted=options.formatItem(data[i].data,i+1,max,data[i].value,term);if(formatted===false)continue;var li=$("<li/>").html(options.highlight(formatted,term)).addClass(i%2==0?"ac_even":"ac_odd").appendTo(list)[0];$.data(li,"ac_data",data[i])}listItems=list.find("li");if(options.selectFirst){listItems.slice(0,1).addClass(CLASSES.ACTIVE);active=0}if($.fn.bgiframe)list.bgiframe()}return{display:function(d,q){init();data=d;term=q;fillList()},next:function(){moveSelect(1)},prev:function(){moveSelect(-1)},pageUp:function(){if(active!=0&&active-8<0){moveSelect(-active)}else{moveSelect(-8)}},pageDown:function(){if(active!=listItems.size()-1&&active+8>listItems.size()){moveSelect(listItems.size()-1-active)}else{moveSelect(8)}},hide:function(){element&&element.hide();listItems&&listItems.removeClass(CLASSES.ACTIVE);active=-1},visible:function(){return element&&element.is(":visible")},current:function(){return this.visible()&&(listItems.filter("."+CLASSES.ACTIVE)[0]||options.selectFirst&&listItems[0])},show:function(){var offset=$(input).offset();element.css({width:typeof options.width=="string"||options.width>0?options.width:$(input).width(),top:offset.top+input.offsetHeight,left:offset.left}).show();if(options.scroll){list.scrollTop(0);list.css({maxHeight:options.scrollHeight,overflow:'auto'});if($.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var listHeight=0;listItems.each(function(){listHeight+=this.offsetHeight});var scrollbarsVisible=listHeight>options.scrollHeight;list.css('height',scrollbarsVisible?options.scrollHeight:listHeight);if(!scrollbarsVisible){listItems.width(list.width()-parseInt(listItems.css("padding-left"))-parseInt(listItems.css("padding-right")))}}}},selected:function(){var selected=listItems&&listItems.filter("."+CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);return selected&&selected.length&&$.data(selected[0],"ac_data")},emptyList:function(){list&&list.empty()},unbind:function(){element&&element.remove()}}};$.Autocompleter.Selection=function(field,start,end){if(field.createTextRange){var selRange=field.createTextRange();selRange.collapse(true);selRange.moveStart("character",start);selRange.moveEnd("character",end);selRange.select()}else if(field.setSelectionRange){field.setSelectionRange(start,end)}else{if(field.selectionStart){field.selectionStart=start;field.selectionEnd=end}}field.focus()}})(jQuery);
/* JQuery Color Animate Plugin */
(function(jQuery){jQuery.each(['backgroundColor','borderBottomColor','borderLeftColor','borderRightColor','borderTopColor','color','outlineColor'],function(i,attr){jQuery.fx.step[attr]=function(fx){if(fx.state==0){fx.start=getColor(fx.elem,attr);fx.end=getRGB(fx.end)}fx.elem.style[attr]="rgb("+[Math.max(Math.min(parseInt((fx.pos*(fx.end[0]-fx.start[0]))+fx.start[0]),255),0),Math.max(Math.min(parseInt((fx.pos*(fx.end[1]-fx.start[1]))+fx.start[1]),255),0),Math.max(Math.min(parseInt((fx.pos*(fx.end[2]-fx.start[2]))+fx.start[2]),255),0)].join(",")+")"}});function getRGB(color){var result;if(color&&color.constructor==Array&&color.length==3)return color;if(result=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))return[parseInt(result[1]),parseInt(result[2]),parseInt(result[3])];if(result=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))return[parseFloat(result[1])*2.55,parseFloat(result[2])*2.55,parseFloat(result[3])*2.55];if(result=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))return[parseInt(result[1],16),parseInt(result[2],16),parseInt(result[3],16)];if(result=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))return[parseInt(result[1]+result[1],16),parseInt(result[2]+result[2],16),parseInt(result[3]+result[3],16)];if(result=/rgba\(0, 0, 0, 0\)/.exec(color))return colors['transparent'];return colors[jQuery.trim(color).toLowerCase()]}function getColor(elem,attr){var color;do{color=jQuery.curCSS(elem,attr);if(color!=''&&color!='transparent'||jQuery.nodeName(elem,"body"))break;attr="backgroundColor"}while(elem=elem.parentNode);return getRGB(color)};var colors={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]}})(jQuery);
jQuery.fn.slideDownFade = function(speed, easing, callback) {
  return this.animate({opacity: 'toggle', height: 'show'}, speed, easing, callback); 
};
jQuery.fn.slideUpFade = function(speed, easing, callback) {
  return this.animate({opacity: 'toggle', height: 'hide'}, speed, easing, callback); 
};
//jquery setup
$j = jQuery.noConflict();