(function(d){d.tools=d.tools||{version:"1.2.5"};d.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,position:["top","center"],offset:[0,0],relative:false,cancelDefault:true,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(e,g,f){c[e]=[g,f]}};var c={toggle:[function(e){var f=this.getConf(),g=this.getTip(),h=f.opacity;if(h<1){g.css({opacity:h})}g.show();e.call()},function(e){this.getTip().hide();e.call()}],fade:[function(e){var f=this.getConf();this.getTip().fadeTo(f.fadeInSpeed,f.opacity,e)},function(e){this.getTip().fadeOut(this.getConf().fadeOutSpeed,e)}]};function b(g,j,f){var l=f.relative?g.position().top:g.offset().top,k=f.relative?g.position().left:g.offset().left,m=f.position[0];l-=j.outerHeight()-f.offset[0];k+=g.outerWidth()+f.offset[1];if(/iPad/i.test(navigator.userAgent)){l-=d(window).scrollTop()}var e=j.outerHeight()+g.outerHeight();if(m=="center"){l+=e/2}if(m=="bottom"){l+=e}m=f.position[1];var h=j.outerWidth()+g.outerWidth();if(m=="center"){k-=h/2}if(m=="left"){k-=h}return{top:l,left:k}}function a(h,k){var s=this,g=h.add(s),p,f=0,r=0,n=h.attr("title"),j=h.attr("data-tooltip"),t=c[k.effect],o,m=h.is(":input"),e=m&&h.is(":checkbox, :radio, select, :button, :submit"),l=h.attr("type"),q=k.events[l]||k.events[m?(e?"widget":"input"):"def"];if(!t){throw'Nonexistent effect "'+k.effect+'"'}q=q.split(/,\s*/);if(q.length!=2){throw"Tooltip: bad events configuration for "+l}h.bind(q[0],function(u){clearTimeout(f);if(k.predelay){r=setTimeout(function(){s.show(u)},k.predelay)}else{s.show(u)}}).bind(q[1],function(u){clearTimeout(r);if(k.delay){f=setTimeout(function(){s.hide(u)},k.delay)}else{s.hide(u)}});if(n&&k.cancelDefault){h.removeAttr("title");h.data("title",n)}d.extend(s,{show:function(v){if(!p){if(j){p=d(j)}else{if(k.tip){p=d(k.tip).eq(0)}else{if(n){p=d(k.layout).addClass(k.tipClass).appendTo(document.body).hide().append(n)}else{p=h.next();if(!p.length){p=h.parent().next()}}}}if(!p.length){throw"Cannot find tooltip for "+h}}if(s.isShown()){return s}p.stop(true,true);var w=b(h,p,k);if(k.tip){p.html(h.data("title"))}v=v||d.Event();v.type="onBeforeShow";g.trigger(v,[w]);if(v.isDefaultPrevented()){return s}w=b(h,p,k);p.css({position:"absolute",top:w.top,left:w.left});o=true;t[0].call(s,function(){v.type="onShow";o="full";g.trigger(v)});var u=k.events.tooltip.split(/,\s*/);if(!p.data("__set")){p.bind(u[0],function(){clearTimeout(f);clearTimeout(r)});if(u[1]&&!h.is("input:not(:checkbox, :radio), textarea")){p.bind(u[1],function(x){if(x.relatedTarget!=h[0]){h.trigger(q[1].split(" ")[0])}})}p.data("__set",true)}return s},hide:function(u){if(!p||!s.isShown()){return s}u=u||d.Event();u.type="onBeforeHide";g.trigger(u);if(u.isDefaultPrevented()){return}o=false;c[k.effect][1].call(s,function(){u.type="onHide";g.trigger(u)});return s},isShown:function(u){return u?o=="full":o},getConf:function(){return k},getTip:function(){return p},getTrigger:function(){return h}});d.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(v,u){if(d.isFunction(k[u])){d(s).bind(u,k[u])}s[u]=function(w){if(w){d(s).bind(u,w)}return s}})}d.fn.tooltip=function(e){var f=this.data("tooltip");if(f){return f}e=d.extend(true,{},d.tools.tooltip.conf,e);if(typeof e.position=="string"){e.position=e.position.split(/,?\s/)}this.each(function(){f=new a(d(this),e);d(this).data("tooltip",f)});return e.api?f:this}})(jQuery);(function(j,o,r){var q="hashchange",l=document,n,m=j.event.special,k=l.documentMode,p="on"+q in o&&(k===r||k>7);function s(a){a=a||location.href;return"#"+a.replace(/^[^#]*#?(.*)$/,"$1")}j.fn[q]=function(a){return a?this.bind(q,a):this.trigger(q)};j.fn[q].delay=50;m[q]=j.extend(m[q],{setup:function(){if(p){return false}j(n.start)},teardown:function(){if(p){return false}j(n.stop)}});n=(function(){var d={},e,a=s(),c=function(h){return h},b=c,f=c;d.start=function(){e||g()};d.stop=function(){e&&clearTimeout(e);e=r};function g(){var h=s(),t=f(a);if(h!==a){b(a=h,t);j(o).trigger(q)}else{if(t!==a){location.href=location.href.replace(/#.*/,"")+t}}e=setTimeout(g,j.fn[q].delay)}j.browser.msie&&!p&&(function(){var t,h;d.start=function(){if(!t){h=j.fn[q].src;h=h&&h+s();t=j('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){h||b(s());g()}).attr("src",h||"javascript:0").insertAfter("body")[0].contentWindow;l.onpropertychange=function(){try{if(event.propertyName==="title"){t.document.title=l.title}}catch(u){}}}};d.stop=c;f=function(){return s(t.location.href)};b=function(w,z){var x=t.document,y=j.fn[q].domain;if(w!==z){x.title=l.title;x.open();y&&x.write('<script>document.domain="'+y+'"<\/script>');x.close();t.location.hash=w}}})();return d})()})(jQuery,this);
/*
 * jQuery Form Plugin
 * version: 2.45 (09-AUG-2010)
 * @requires jQuery v1.3.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
(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 d=b.trim(this.attr("action"));if(d){d=(d.match(/^([^#]+)/)||[])[1]}d=d||window.location.href||"";t=b.extend(true,{url:d,type:this.attr("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},t);var u={};this.trigger("form-pre-serialize",[this,t,u]);if(u.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 f,p,m=this.formToArray(t.semantic);if(t.data){t.extraData=t.data;for(f in t.data){if(t.data[f] instanceof Array){for(var h in t.data[f]){m.push({name:f,value:t.data[f][h]})}}else{p=t.data[f];p=b.isFunction(p)?p():p;m.push({name:f,value:p})}}}if(t.beforeSubmit&&t.beforeSubmit(m,this,t)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[m,this,t,u]);if(u.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var c=b.param(m);if(t.type.toUpperCase()=="GET"){t.url+=(t.url.indexOf("?")>=0?"&":"?")+c;t.data=null}else{t.data=c}var s=this,l=[];if(t.resetForm){l.push(function(){s.resetForm()})}if(t.clearForm){l.push(function(){s.clearForm()})}if(!t.dataType&&t.target){var r=t.success||function(){};l.push(function(n){var k=t.replaceTarget?"replaceWith":"html";b(t.target)[k](n).each(r,arguments)})}else{if(t.success){l.push(t.success)}}t.success=function(w,n,x){var v=t.context||t;for(var q=0,k=l.length;q<k;q++){l[q].apply(v,[w,n,x||s,s])}};var g=b("input:file",this).length>0;var e="multipart/form-data";var j=(s.attr("enctype")==e||s.attr("encoding")==e);if(t.iframe!==false&&(g||t.iframe||j)){if(t.closeKeepAlive){b.get(t.closeKeepAlive,o)}else{o()}}else{b.ajax(t)}this.trigger("form-submit-notify",[this,t]);return this;function o(){var w=s[0];if(b(":input[name=submit],:input[id=submit]",w).length){alert('Error: Form elements must not have name or id of "submit".');return}var J=b.extend(true,{},b.ajaxSettings,t);J.context=J.context||J;var v="jqFormIO"+(new Date().getTime());var E=b('<iframe id="'+v+'" name="'+v+'" src="'+J.iframeSrc+'" onload="var f = jQuery(this).data(\'form-plugin-onload\'); if (f) f();" />');var G=E[0];E.css({position:"absolute",top:"-1000px",left:"-1000px"});var I={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;E.attr("src",J.iframeSrc)}};var F=J.global;if(F&&!b.active++){b.event.trigger("ajaxStart")}if(F){b.event.trigger("ajaxSend",[I,J])}if(J.beforeSend&&J.beforeSend.call(J.context,I,J)===false){if(J.global){b.active--}return}if(I.aborted){return}var q=false;var A=0;var k=w.clk;if(k){var y=k.name;if(y&&!k.disabled){J.extraData=J.extraData||{};J.extraData[y]=k.value;if(k.type=="image"){J.extraData[y+".x"]=w.clk_x;J.extraData[y+".y"]=w.clk_y}}}function x(){var M=s.attr("target"),K=s.attr("action");w.setAttribute("target",v);if(w.getAttribute("method")!="POST"){w.setAttribute("method","POST")}if(w.getAttribute("action")!=J.url){w.setAttribute("action",J.url)}if(!J.skipEncodingOverride){s.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(J.timeout){setTimeout(function(){A=true;B()},J.timeout)}var L=[];try{if(J.extraData){for(var N in J.extraData){L.push(b('<input type="hidden" name="'+N+'" value="'+J.extraData[N]+'" />').appendTo(w)[0])}}E.appendTo("body");E.data("form-plugin-onload",B);w.submit()}finally{w.setAttribute("action",K);if(M){w.setAttribute("target",M)}else{s.removeAttr("target")}b(L).remove()}}if(J.forceSync){x()}else{setTimeout(x,10)}var C,H,z=100;function B(){if(q){return}E.removeData("form-plugin-onload");var K=true;try{if(A){throw"timeout"}H=G.contentWindow?G.contentWindow.document:G.contentDocument?G.contentDocument:G.document;var O=J.dataType=="xml"||H.XMLDocument||b.isXMLDoc(H);a("isXml="+O);if(!O&&(H.body==null||H.body.innerHTML=="")){if(--z){a("requeing onLoad callback, DOM not available");setTimeout(B,250);return}a("Could not access iframe DOM after 100 tries.");throw"DOMException: not available"}a("response detected");q=true;I.responseText=H.documentElement?H.documentElement.innerHTML:null;I.responseXML=H.XMLDocument?H.XMLDocument:H;I.getResponseHeader=function(Q){var P={"content-type":J.dataType};return P[Q]};var N=/(json|script)/.test(J.dataType);if(N||J.textarea){var n=H.getElementsByTagName("textarea")[0];if(n){I.responseText=n.value}else{if(N){var M=H.getElementsByTagName("pre")[0];if(M){I.responseText=M.innerHTML}}}}else{if(J.dataType=="xml"&&!I.responseXML&&I.responseText!=null){I.responseXML=D(I.responseText)}}C=b.httpData(I,J.dataType)}catch(L){a("error caught:",L);K=false;I.error=L;b.handleError(J,I,"error",L)}if(K){J.success.call(J.context,C,"success");if(F){b.event.trigger("ajaxSuccess",[I,J])}}if(F){b.event.trigger("ajaxComplete",[I,J])}if(F&&!--b.active){b.event.trigger("ajaxStop")}if(J.complete){J.complete.call(J.context,I,K?"success":"error")}setTimeout(function(){E.removeData("form-plugin-onload");E.remove();I.responseXML=null},100)}function D(n,K){if(window.ActiveXObject){K=new ActiveXObject("Microsoft.XMLDOM");K.async="false";K.loadXML(n)}else{K=(new DOMParser()).parseFromString(n,"text/xml")}return(K&&K.documentElement&&K.documentElement.tagName!="parsererror")?K:null}}};b.fn.ajaxForm=function(c){if(this.length===0){var d={s:this.selector,c:this.context};if(!b.isReady&&d.s){a("DOM not ready, queuing ajaxForm");b(function(){b(d.s,d.c).ajaxForm(c)});return this}a("terminating; zero elements found by selector"+(b.isReady?"":" (DOM not ready)"));return this}return this.ajaxFormUnbind().bind("submit.form-plugin",function(f){if(!f.isDefaultPrevented()){f.preventDefault();b(this).ajaxSubmit(c)}}).bind("click.form-plugin",function(k){var j=k.target;var g=b(j);if(!(g.is(":submit,input:image"))){var f=g.closest(":submit");if(f.length==0){return}j=f[0]}var h=this;h.clk=j;if(j.type=="image"){if(k.offsetX!=undefined){h.clk_x=k.offsetX;h.clk_y=k.offsetY}else{if(typeof b.fn.offset=="function"){var l=g.offset();h.clk_x=k.pageX-l.left;h.clk_y=k.pageY-l.top}else{h.clk_x=k.pageX-j.offsetLeft;h.clk_y=k.pageY-j.offsetTop}}}setTimeout(function(){h.clk=h.clk_x=h.clk_y=null},100)})};b.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};b.fn.formToArray=function(o){var m=[];if(this.length===0){return m}var c=this[0];var f=o?c.getElementsByTagName("*"):c.elements;if(!f){return m}var h,g,e,p,d;for(h=0,max=f.length;h<max;h++){d=f[h];e=d.name;if(!e){continue}if(o&&c.clk&&d.type=="image"){if(!d.disabled&&c.clk==d){m.push({name:e,value:b(d).val()});m.push({name:e+".x",value:c.clk_x},{name:e+".y",value:c.clk_y})}continue}p=b.fieldValue(d,true);if(p&&p.constructor==Array){for(g=0,jmax=p.length;g<jmax;g++){m.push({name:e,value:p[g]})}}else{if(p!==null&&typeof p!="undefined"){m.push({name:e,value:p})}}}if(!o&&c.clk){var k=b(c.clk),l=k[0];e=l.name;if(e&&!l.disabled&&l.type=="image"){m.push({name:e,value:k.val()});m.push({name:e+".x",value:c.clk_x},{name:e+".y",value:c.clk_y})}}return m};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(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 b(c).val()};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){var c="[jquery.form] "+Array.prototype.join.call(arguments,"");if(window.console&&window.console.log){window.console.log(c)}else{if(window.opera&&window.opera.postError){window.opera.postError(c)}}}}})(jQuery);
/*
 * jQuery Form Plugin
 * version: 2.45 (09-AUG-2010)
 * @requires jQuery v1.3.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
(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 d=b.trim(this.attr("action"));if(d){d=(d.match(/^([^#]+)/)||[])[1]}d=d||window.location.href||"";t=b.extend(true,{url:d,type:this.attr("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},t);var u={};this.trigger("form-pre-serialize",[this,t,u]);if(u.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 f,p,m=this.formToArray(t.semantic);if(t.data){t.extraData=t.data;for(f in t.data){if(t.data[f] instanceof Array){for(var h in t.data[f]){m.push({name:f,value:t.data[f][h]})}}else{p=t.data[f];p=b.isFunction(p)?p():p;m.push({name:f,value:p})}}}if(t.beforeSubmit&&t.beforeSubmit(m,this,t)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[m,this,t,u]);if(u.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var c=b.param(m);if(t.type.toUpperCase()=="GET"){t.url+=(t.url.indexOf("?")>=0?"&":"?")+c;t.data=null}else{t.data=c}var s=this,l=[];if(t.resetForm){l.push(function(){s.resetForm()})}if(t.clearForm){l.push(function(){s.clearForm()})}if(!t.dataType&&t.target){var r=t.success||function(){};l.push(function(n){var k=t.replaceTarget?"replaceWith":"html";b(t.target)[k](n).each(r,arguments)})}else{if(t.success){l.push(t.success)}}t.success=function(w,n,x){var v=t.context||t;for(var q=0,k=l.length;q<k;q++){l[q].apply(v,[w,n,x||s,s])}};var g=b("input:file",this).length>0;var e="multipart/form-data";var j=(s.attr("enctype")==e||s.attr("encoding")==e);if(t.iframe!==false&&(g||t.iframe||j)){if(t.closeKeepAlive){b.get(t.closeKeepAlive,o)}else{o()}}else{b.ajax(t)}this.trigger("form-submit-notify",[this,t]);return this;function o(){var w=s[0];if(b(":input[name=submit],:input[id=submit]",w).length){alert('Error: Form elements must not have name or id of "submit".');return}var J=b.extend(true,{},b.ajaxSettings,t);J.context=J.context||J;var v="jqFormIO"+(new Date().getTime());var E=b('<iframe id="'+v+'" name="'+v+'" src="'+J.iframeSrc+'" onload="var f = jQuery(this).data(\'form-plugin-onload\'); if (f) f();" />');var G=E[0];E.css({position:"absolute",top:"-1000px",left:"-1000px"});var I={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;E.attr("src",J.iframeSrc)}};var F=J.global;if(F&&!b.active++){b.event.trigger("ajaxStart")}if(F){b.event.trigger("ajaxSend",[I,J])}if(J.beforeSend&&J.beforeSend.call(J.context,I,J)===false){if(J.global){b.active--}return}if(I.aborted){return}var q=false;var A=0;var k=w.clk;if(k){var y=k.name;if(y&&!k.disabled){J.extraData=J.extraData||{};J.extraData[y]=k.value;if(k.type=="image"){J.extraData[y+".x"]=w.clk_x;J.extraData[y+".y"]=w.clk_y}}}function x(){var M=s.attr("target"),K=s.attr("action");w.setAttribute("target",v);if(w.getAttribute("method")!="POST"){w.setAttribute("method","POST")}if(w.getAttribute("action")!=J.url){w.setAttribute("action",J.url)}if(!J.skipEncodingOverride){s.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(J.timeout){setTimeout(function(){A=true;B()},J.timeout)}var L=[];try{if(J.extraData){for(var N in J.extraData){L.push(b('<input type="hidden" name="'+N+'" value="'+J.extraData[N]+'" />').appendTo(w)[0])}}E.appendTo("body");E.data("form-plugin-onload",B);w.submit()}finally{w.setAttribute("action",K);if(M){w.setAttribute("target",M)}else{s.removeAttr("target")}b(L).remove()}}if(J.forceSync){x()}else{setTimeout(x,10)}var C,H,z=100;function B(){if(q){return}E.removeData("form-plugin-onload");var K=true;try{if(A){throw"timeout"}H=G.contentWindow?G.contentWindow.document:G.contentDocument?G.contentDocument:G.document;var O=J.dataType=="xml"||H.XMLDocument||b.isXMLDoc(H);a("isXml="+O);if(!O&&(H.body==null||H.body.innerHTML=="")){if(--z){a("requeing onLoad callback, DOM not available");setTimeout(B,250);return}a("Could not access iframe DOM after 100 tries.");throw"DOMException: not available"}a("response detected");q=true;I.responseText=H.documentElement?H.documentElement.innerHTML:null;I.responseXML=H.XMLDocument?H.XMLDocument:H;I.getResponseHeader=function(Q){var P={"content-type":J.dataType};return P[Q]};var N=/(json|script)/.test(J.dataType);if(N||J.textarea){var n=H.getElementsByTagName("textarea")[0];if(n){I.responseText=n.value}else{if(N){var M=H.getElementsByTagName("pre")[0];if(M){I.responseText=M.innerHTML}}}}else{if(J.dataType=="xml"&&!I.responseXML&&I.responseText!=null){I.responseXML=D(I.responseText)}}C=b.httpData(I,J.dataType)}catch(L){a("error caught:",L);K=false;I.error=L;b.handleError(J,I,"error",L)}if(K){J.success.call(J.context,C,"success");if(F){b.event.trigger("ajaxSuccess",[I,J])}}if(F){b.event.trigger("ajaxComplete",[I,J])}if(F&&!--b.active){b.event.trigger("ajaxStop")}if(J.complete){J.complete.call(J.context,I,K?"success":"error")}setTimeout(function(){E.removeData("form-plugin-onload");E.remove();I.responseXML=null},100)}function D(n,K){if(window.ActiveXObject){K=new ActiveXObject("Microsoft.XMLDOM");K.async="false";K.loadXML(n)}else{K=(new DOMParser()).parseFromString(n,"text/xml")}return(K&&K.documentElement&&K.documentElement.tagName!="parsererror")?K:null}}};b.fn.ajaxForm=function(c){if(this.length===0){var d={s:this.selector,c:this.context};if(!b.isReady&&d.s){a("DOM not ready, queuing ajaxForm");b(function(){b(d.s,d.c).ajaxForm(c)});return this}a("terminating; zero elements found by selector"+(b.isReady?"":" (DOM not ready)"));return this}return this.ajaxFormUnbind().bind("submit.form-plugin",function(f){if(!f.isDefaultPrevented()){f.preventDefault();b(this).ajaxSubmit(c)}}).bind("click.form-plugin",function(k){var j=k.target;var g=b(j);if(!(g.is(":submit,input:image"))){var f=g.closest(":submit");if(f.length==0){return}j=f[0]}var h=this;h.clk=j;if(j.type=="image"){if(k.offsetX!=undefined){h.clk_x=k.offsetX;h.clk_y=k.offsetY}else{if(typeof b.fn.offset=="function"){var l=g.offset();h.clk_x=k.pageX-l.left;h.clk_y=k.pageY-l.top}else{h.clk_x=k.pageX-j.offsetLeft;h.clk_y=k.pageY-j.offsetTop}}}setTimeout(function(){h.clk=h.clk_x=h.clk_y=null},100)})};b.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};b.fn.formToArray=function(o){var m=[];if(this.length===0){return m}var c=this[0];var f=o?c.getElementsByTagName("*"):c.elements;if(!f){return m}var h,g,e,p,d;for(h=0,max=f.length;h<max;h++){d=f[h];e=d.name;if(!e){continue}if(o&&c.clk&&d.type=="image"){if(!d.disabled&&c.clk==d){m.push({name:e,value:b(d).val()});m.push({name:e+".x",value:c.clk_x},{name:e+".y",value:c.clk_y})}continue}p=b.fieldValue(d,true);if(p&&p.constructor==Array){for(g=0,jmax=p.length;g<jmax;g++){m.push({name:e,value:p[g]})}}else{if(p!==null&&typeof p!="undefined"){m.push({name:e,value:p})}}}if(!o&&c.clk){var k=b(c.clk),l=k[0];e=l.name;if(e&&!l.disabled&&l.type=="image"){m.push({name:e,value:k.val()});m.push({name:e+".x",value:c.clk_x},{name:e+".y",value:c.clk_y})}}return m};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(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 b(c).val()};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){var c="[jquery.form] "+Array.prototype.join.call(arguments,"");if(window.console&&window.console.log){window.console.log(c)}else{if(window.opera&&window.opera.postError){window.opera.postError(c)}}}}})(jQuery);function commitFlashObject(b,a){_output="";_paramoutput="";_src="";_ver="";for(_cO in b){_output+=_cO+'="'+b[_cO]+'" ';_paramoutput+="<param name="+_cO+' value="'+b[_cO]+'">';if(_cO=="movie"){_src='src="'+b[_cO]+'"'}if(_cO=="version"){_ver=b[_cO]}}if(_ver==""){_ver="8,0,0,0"}ihtm="<object classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+_ver+" "+_output+">\n";ihtm+=_paramoutput+"\n";ihtm+="<embed "+_src+" pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash type=application/x-shockwave-flash "+_output+">\n";ihtm+="</embed>\n";ihtm+="</object>\n";document.getElementById(a).innerHTML=ihtm}function clock(){var b=digital.getHours();var c=digital.getMinutes();var d=digital.getSeconds();var a;digital.setSeconds(d+1);if(c<=9){c="0"+c}if(d<=9){d="0"+d}a=digital.getMonth();dispTime=b+":"+c+":"+d;document.getElementById("tempo").innerHTML=dispTime;setTimeout("clock()",1000)}function getCookie(a){if(document.cookie.length>0){c_start=document.cookie.indexOf(a+"=");if(c_start!=-1){c_start=c_start+a.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length}return unescape(document.cookie.substring(c_start,c_end))}}return""}function setCookie(b,c,a){var d=new Date();d.setDate(d.getDate()+a);document.cookie=b+"="+escape(c)+((a==null)?"":";expires="+d.toGMTString())}function fs_menu(a){$(".menu-current").removeClass("menu-current");$(a).addClass("menu-current");var c=$(a).attr("id");var b=$(a).attr("name");setCookie("nav",c,365);setCookie("subnav",b,365);for(i=1;i<=10;i++){$("#subnav"+i).css("display","none")}$("#"+b).css("display","")}var hintcontainer=null;function getScrollXY(c){var b=0,a=0;if(typeof(window.pageYOffset)=="number"){a=window.pageYOffset;b=window.pageXOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){a=document.body.scrollTop;b=document.body.scrollLeft}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){a=document.documentElement.scrollTop;b=document.documentElement.scrollLeft}}}if(c==0){return b}if(c==1){return a}}function showhint(b,a){if(hintcontainer==null){hintcontainer=document.createElement("div");hintcontainer.className="hintstyle";document.body.appendChild(hintcontainer)}b.onmouseout=hidehint;b.onmousemove=movehint;hintcontainer.innerHTML=a}function movehint(a){if(!a){a=event}hintcontainer.style.top=(a.clientY+getScrollXY(1)+20)+"px";hintcontainer.style.left=(a.clientX+getScrollXY(0)+10)+"px";hintcontainer.style.display=""}function hidehint(){hintcontainer.style.display="none"}this.vtip=function(){this.xOffset=-10;this.yOffset=10;$(".vtip").unbind().hover(function(b){this.t=this.title;this.title="";this.top=(b.pageY+yOffset);this.left=(b.pageX+xOffset);$("body").append('<p id="vtip"><img id="vtipArrow" />'+this.t+"</p>");$("p#vtip #vtipArrow").attr("src","img/vtip_arrow.png");$("p#vtip").css("top",this.top+"px").css("left",this.left+"px").fadeIn("slow")},function(){this.title=this.t;$("p#vtip").fadeOut("slow").remove()}).mousemove(function(b){this.top=(b.pageY+yOffset);this.left=(b.pageX+xOffset);$("p#vtip").css("top",this.top+"px").css("left",this.left+"px")})};jQuery(document).ready(function(b){vtip()});(function(a){a.fn.addOption=function(){var e=function(k,n,q,m){var p=document.createElement("option");p.value=n,p.text=q;var j=k.options;var o=j.length;if(!k.cache){k.cache={};for(var l=0;l<o;l++){k.cache[j[l].value]=l}}if(typeof k.cache[n]=="undefined"){k.cache[n]=o}k.options[k.cache[n]]=p;if(m){p.selected=true}};var d=arguments;if(d.length==0){return this}var c=true;var b=false;var h,g,f;if(typeof(d[0])=="object"){b=true;h=d[0]}if(d.length>=2){if(typeof(d[1])=="boolean"){c=d[1]}else{if(typeof(d[2])=="boolean"){c=d[2]}}if(!b){g=d[0];f=d[1]}}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return}if(b){for(var j in h){e(this,j,h[j],c)}}else{e(this,g,f,c)}});return this};a.fn.ajaxAddOption=function(l,h,k,f,j){if(typeof(l)!="string"){return this}if(typeof(h)!="object"){h={}}if(typeof(k)!="boolean"){k=true}this.each(function(){var b=this;a.getJSON(l,h,function(c){a(b).addOption(c,k);if(typeof f=="function"){if(typeof j=="object"){f.apply(b,j)}else{f.call(b)}}})});return this};a.fn.removeOption=function(){var m=arguments;if(m.length==0){return this}var c=typeof(m[0]);var l,h;if(c=="string"||c=="object"||c=="function"){l=m[0];if(l.constructor==Array){var g=l.length;for(var f=0;f<g;f++){this.removeOption(l[f],m[1])}return this}}else{if(c=="number"){h=m[0]}else{return this}}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return}if(this.cache){this.cache=null}var b=false;var e=this.options;if(!!l){var j=e.length;for(var d=j-1;d>=0;d--){if(l.constructor==RegExp){if(e[d].value.match(l)){b=true}}else{if(e[d].value==l){b=true}}if(b&&m[1]===true){b=e[d].selected}if(b){e[d]=null}b=false}}else{if(m[1]===true){b=e[h].selected}else{b=true}if(b){this.remove(h)}}});return this};a.fn.sortOptions=function(d){var c=a(this).selectedValues();var b=typeof(d)=="undefined"?true:!!d;this.each(function(){if(this.nodeName.toLowerCase()!="select"){return}var j=this.options;var f=j.length;var h=[];for(var e=0;e<f;e++){h[e]={v:j[e].value,t:j[e].text}}h.sort(function(g,k){o1t=g.t.toLowerCase(),o2t=k.t.toLowerCase();if(o1t==o2t){return 0}if(b){return o1t<o2t?-1:1}else{return o1t>o2t?-1:1}});for(var e=0;e<f;e++){j[e].text=h[e].t;j[e].value=h[e].v}}).selectOptions(c,true);return this};a.fn.selectOptions=function(k,m){var c=k;var l=typeof(k);if(l=="object"&&c.constructor==Array){var h=this;a.each(c,function(){h.selectOptions(this,m)})}var f=m||false;if(l!="string"&&l!="function"&&l!="object"){return this}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return this}var b=this.options;var d=b.length;for(var e=0;e<d;e++){if(c.constructor==RegExp){if(b[e].value.match(c)){b[e].selected=true}else{if(f){b[e].selected=false}}}else{if(b[e].value==c){b[e].selected=true}else{if(f){b[e].selected=false}}}}});return this};a.fn.copyOptions=function(e,f){var c=f||"selected";if(a(e).size()==0){return this}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return this}var b=this.options;var d=b.length;for(var g=0;g<d;g++){if(c=="all"||(c=="selected"&&b[g].selected)){a(e).addOption(b[g].value,b[g].text)}}});return this};a.fn.containsOption=function(k,m){var c=false;var l=k;var h=typeof(l);var f=typeof(m);if(h!="string"&&h!="function"&&h!="object"){return f=="function"?this:c}this.each(function(){if(this.nodeName.toLowerCase()!="select"){return this}if(c&&f!="function"){return false}var b=this.options;var d=b.length;for(var e=0;e<d;e++){if(l.constructor==RegExp){if(b[e].value.match(l)){c=true;if(f=="function"){m.call(b[e],e)}}}else{if(b[e].value==l){c=true;if(f=="function"){m.call(b[e],e)}}}}});return f=="function"?this:c};a.fn.selectedValues=function(){var b=[];this.selectedOptions().each(function(){b[b.length]=this.value});return b};a.fn.selectedTexts=function(){var b=[];this.selectedOptions().each(function(){b[b.length]=this.text});return b};a.fn.selectedOptions=function(){return this.find("option:selected")}})(jQuery);$(function(){$("#caixa_pesquisa").click(function(){$("#caixa_pesquisa").attr("name","texto_pesquisa").removeAttr("value").css("color","#000")});var b=getCookie("nav");var a=getCookie("subnav");if(b==""){b="nav1"}if(a==""){a="subnav1"}if(b!=""){$("#"+b).addClass("menu-current")}if(a!=""){$("#"+a).css("display","")}$("#mudar_idioma").change(function(){var c=$("#mudar_idioma option:selected").attr("value");window.location=c});$("#globalnav li").mouseover(function(){var c=$(this);menu_timer=setTimeout(function(){fs_menu(c)},200)});$("#globalnav li ").mouseout(function(){clearTimeout(menu_timer)})});


