function tpNvMenu_close(){shareBtn.find("a").attr("class")!="sharePrint_off"&&(shareBtn.find("a").attr("class")=="sharePrint_over"&&shareBtn.find("a").removeClass("sharePrint_over").addClass("sharePrint_active"),ddmenuitem&&ddmenuitem.css("visibility","hidden"),jQuery("#"+itemId+" a.sortOn").removeClass("sortOn").addClass("sort"))}function tpNvMenu_timer(){closetimer=window.setTimeout(tpNvMenu_close,timeout)}function tpNvMenu_canceltimer(){closetimer&&(window.clearTimeout(closetimer),closetimer=null)}var ua,domReady,cssHelper;(function(n){n.fn.UItoTop=function(t){var i=n.extend({text:"",min:200,inDelay:600,outDelay:400,containerID:"toTop",containerHoverID:"toTopHover",scrollSpeed:1200,easingType:"linear"},t),r="#"+i.containerID,u="#"+i.containerHoverID;n("body").append('<a href="#" id="'+i.containerID+'">'+i.text+"<\/a>");n(r).hide().on("click.UItoTop",function(){return n("html, body").animate({scrollTop:0},i.scrollSpeed,i.easingType),n("#"+i.containerHoverID,this).stop().animate({opacity:0},i.inDelay,i.easingType),!1}).prepend('<span id="'+i.containerHoverID+'"><\/span>').hover(function(){n(u,this).stop().animate({opacity:1},600,"linear")},function(){n(u,this).stop().animate({opacity:0},700,"linear")});n(window).scroll(function(){var t=n(window).scrollTop();typeof document.body.style.maxHeight=="undefined"&&n(r).css({position:"absolute",top:t+n(window).height()-50});t>i.min?n(r).fadeIn(i.inDelay):n(r).fadeOut(i.Outdelay)})}})(jQuery),function(n){function i(n,t){for(var i=window,r=(n||"").split(".");i&&r.length;)i=i[r.shift()];return typeof i=="function"?i:(t.push(n),Function.constructor.apply(null,t))}function r(n){return n==="GET"||n==="POST"}function e(n,t){r(t)||n.setRequestHeader("X-HTTP-Method-Override",t)}function o(t,i,r){var u;r.indexOf("application/x-javascript")===-1&&(u=(t.getAttribute("data-ajax-mode")||"").toUpperCase(),n(t.getAttribute("data-ajax-update")).each(function(t,r){var f;switch(u){case"BEFORE":f=r.firstChild;n("<div />").html(i).contents().each(function(){r.insertBefore(this,f)});break;case"AFTER":n("<div />").html(i).contents().each(function(){r.appendChild(this)});break;default:n(r).html(i)}}))}function u(t,u){var s,h,f,c;(s=t.getAttribute("data-ajax-confirm"),!s||window.confirm(s))&&(h=n(t.getAttribute("data-ajax-loading")),c=t.getAttribute("data-ajax-loading-duration")||0,n.extend(u,{type:t.getAttribute("data-ajax-method")||undefined,url:t.getAttribute("data-ajax-url")||undefined,beforeSend:function(n){var r;return e(n,f),r=i(t.getAttribute("data-ajax-begin"),["xhr"]).apply(this,arguments),r!==!1&&h.show(c),r},complete:function(){h.hide(c);i(t.getAttribute("data-ajax-complete"),["xhr","status"]).apply(this,arguments)},success:function(n,r,u){o(t,n,u.getResponseHeader("Content-Type")||"text/html");i(t.getAttribute("data-ajax-success"),["data","status","xhr"]).apply(this,arguments)},error:i(t.getAttribute("data-ajax-failure"),["xhr","status","error"])}),u.data.push({name:"X-Requested-With",value:"XMLHttpRequest"}),f=u.type.toUpperCase(),r(f)||(u.type="POST",u.data.push({name:"X-HTTP-Method-Override",value:f})),n.ajax(u))}function s(t){var i=n(t).data(f);return!i||!i.validate||i.validate()}var t="unobtrusiveAjaxClick",f="unobtrusiveValidation";n(document).on("click","a[data-ajax=true]",function(n){n.preventDefault();u(this,{url:this.href,type:"GET",data:[]})});n(document).on("click","form[data-ajax=true] input[type=image]",function(i){var r=i.target.name,u=n(i.target),f=u.parents("form")[0],e=u.offset();n(f).data(t,[{name:r+".x",value:Math.round(i.pageX-e.left)},{name:r+".y",value:Math.round(i.pageY-e.top)}]);setTimeout(function(){n(f).removeData(t)},0)});n(document).on("click","form[data-ajax=true] :submit",function(i){var r=i.target.name,u=n(i.target).parents("form")[0];n(u).data(t,r?[{name:r,value:i.target.value}]:[]);setTimeout(function(){n(u).removeData(t)},0)});n(document).on("submit","form[data-ajax=true]",function(i){var r=n(this).data(t)||[];(i.preventDefault(),s(this))&&u(this,{url:this.action,type:this.method||"GET",data:r.concat(n(this).serializeArray())})})}(jQuery),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof module=="object"&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){var i,t,r;return n.extend(n.fn,{validate:function(t){if(!this.length){t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.");return}var i=n.data(this[0],"validator");if(i)return i;if(this.attr("novalidate","novalidate"),i=new n.validator(t,this[0]),n.data(this[0],"validator",i),i.settings.onsubmit){this.on("click.validate",":submit",function(t){i.submitButton=t.currentTarget;n(this).hasClass("cancel")&&(i.cancelSubmit=!0);n(this).attr("formnovalidate")!==undefined&&(i.cancelSubmit=!0)});this.on("submit.validate",function(t){function r(){var r,u;return(i.submitButton&&(i.settings.submitHandler||i.formSubmitted)&&(r=n("<input type='hidden'/>").attr("name",i.submitButton.name).val(n(i.submitButton).val()).appendTo(i.currentForm)),i.settings.submitHandler&&!i.settings.debug)?(u=i.settings.submitHandler.call(i,i.currentForm,t),r&&r.remove(),u!==undefined)?u:!1:!0}return(i.settings.debug&&t.preventDefault(),i.cancelSubmit)?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)})}return i},valid:function(){var t,i,r;return n(this[0]).is("form")?t=this.validate().form():(r=[],t=!0,i=n(this[0].form).validate(),this.each(function(){t=i.element(this)&&t;t||(r=r.concat(i.errorList))}),i.errorList=r),t},rules:function(t,i){var r=this[0],c=typeof this.attr("contenteditable")!="undefined"&&this.attr("contenteditable")!=="false",e,s,f,u,o,h;if(r!=null&&(!r.form&&c&&(r.form=this.closest("form")[0],r.name=this.attr("name")),r.form!=null)){if(t){e=n.data(r.form,"validator").settings;s=e.rules;f=n.validator.staticRules(r);switch(t){case"add":n.extend(f,n.validator.normalizeRule(i));delete f.messages;s[r.name]=f;i.messages&&(e.messages[r.name]=n.extend(e.messages[r.name],i.messages));break;case"remove":return i?(h={},n.each(i.split(/\s/),function(n,t){h[t]=f[t];delete f[t]}),h):(delete s[r.name],f)}}return u=n.validator.normalizeRules(n.extend({},n.validator.classRules(r),n.validator.attributeRules(r),n.validator.dataRules(r),n.validator.staticRules(r)),r),u.required&&(o=u.required,delete u.required,u=n.extend({required:o},u)),u.remote&&(o=u.remote,delete u.remote,u=n.extend(u,{remote:o})),u}}}),i=function(n){return n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},n.extend(n.expr.pseudos||n.expr[":"],{blank:function(t){return!i(""+n(t).val())},filled:function(t){var r=n(t).val();return r!==null&&!!i(""+r)},unchecked:function(t){return!n(t).prop("checked")}}),n.validator=function(t,i){this.settings=n.extend(!0,{},n.validator.defaults,t);this.currentForm=i;this.init()},n.validator.format=function(t,i){return arguments.length===1?function(){var i=n.makeArray(arguments);return i.unshift(t),n.validator.format.apply(this,i)}:i===undefined?t:(arguments.length>2&&i.constructor!==Array&&(i=n.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),n.each(i,function(n,i){t=t.replace(new RegExp("\\{"+n+"\\}","g"),function(){return i})}),t)},n.extend(n.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:n([]),errorLabelContainer:n([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(n){this.lastActive=n;this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,n,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(n)))},onfocusout:function(n){!this.checkable(n)&&(n.name in this.submitted||!this.optional(n))&&this.element(n)},onkeyup:function(t,i){(i.which!==9||this.elementValue(t)!=="")&&n.inArray(i.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])===-1&&(t.name in this.submitted||t.name in this.invalid)&&this.element(t)},onclick:function(n){n.name in this.submitted?this.element(n):n.parentNode.name in this.submitted&&this.element(n.parentNode)},highlight:function(t,i,r){t.type==="radio"?this.findByName(t.name).addClass(i).removeClass(r):n(t).addClass(i).removeClass(r)},unhighlight:function(t,i,r){t.type==="radio"?this.findByName(t.name).removeClass(i).addClass(r):n(t).removeClass(i).addClass(r)}},setDefaults:function(t){n.extend(n.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:n.validator.format("Please enter no more than {0} characters."),minlength:n.validator.format("Please enter at least {0} characters."),rangelength:n.validator.format("Please enter a value between {0} and {1} characters long."),range:n.validator.format("Please enter a value between {0} and {1}."),max:n.validator.format("Please enter a value less than or equal to {0}."),min:n.validator.format("Please enter a value greater than or equal to {0}."),step:n.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function i(t){var e=typeof n(this).attr("contenteditable")!="undefined"&&n(this).attr("contenteditable")!=="false";if(!this.form&&e&&(this.form=n(this).closest("form")[0],this.name=n(this).attr("name")),r===this.form){var u=n.data(this.form,"validator"),f="on"+t.type.replace(/^validate/,""),i=u.settings;i[f]&&!n(this).is(i.ignore)&&i[f].call(u,this,t)}}this.labelContainer=n(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||n(this.currentForm);this.containers=n(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var r=this.currentForm,u=this.groups={},t;n.each(this.settings.groups,function(t,i){typeof i=="string"&&(i=i.split(/\s/));n.each(i,function(n,i){u[i]=t})});t=this.settings.rules;n.each(t,function(i,r){t[i]=n.validator.normalizeRule(r)});n(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",i).on("click.validate","select, option, [type='radio'], [type='checkbox']",i);if(this.settings.invalidHandler)n(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),n.extend(this.submitted,this.errorMap),this.invalid=n.extend({},this.errorMap),this.valid()||n(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var n=0,t=this.currentElements=this.elements();t[n];n++)this.check(t[n]);return this.valid()},element:function(t){var i=this.clean(t),r=this.validationTargetFor(i),u=this,f=!0,e,o;return r===undefined?delete this.invalid[i.name]:(this.prepareElement(r),this.currentElements=n(r),o=this.groups[r.name],o&&n.each(this.groups,function(n,t){t===o&&n!==r.name&&(i=u.validationTargetFor(u.clean(u.findByName(n))),i&&i.name in u.invalid&&(u.currentElements.push(i),f=u.check(i)&&f))}),e=this.check(r)!==!1,f=f&&e,this.invalid[r.name]=e?!1:!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),n(t).attr("aria-invalid",!e)),f},showErrors:function(t){if(t){var i=this;n.extend(this.errorMap,t);this.errorList=n.map(this.errorMap,function(n,t){return{message:n,element:i.findByName(t)[0]}});this.successList=n.grep(this.successList,function(n){return!(n.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){n.fn.resetForm&&n(this.currentForm).resetForm();this.invalid={};this.submitted={};this.prepareForm();this.hideErrors();var t=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(t)},resetElements:function(n){var t;if(this.settings.unhighlight)for(t=0;n[t];t++)this.settings.unhighlight.call(this,n[t],this.settings.errorClass,""),this.findByName(n[t].name).removeClass(this.settings.validClass);else n.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(n){var i=0,t;for(t in n)n[t]!==undefined&&n[t]!==null&&n[t]!==!1&&i++;return i},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(n){n.not(this.containers).text("");this.addWrapper(n).hide()},valid:function(){return this.size()===0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{n(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin")}catch(t){}},findLastActive:function(){var t=this.lastActive;return t&&n.grep(this.errorList,function(n){return n.element.name===t.name}).length===1&&t},elements:function(){var t=this,i={};return n(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var r=this.name||n(this).attr("name"),u=typeof n(this).attr("contenteditable")!="undefined"&&n(this).attr("contenteditable")!=="false";return(!r&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),u&&(this.form=n(this).closest("form")[0],this.name=r),this.form!==t.currentForm)?!1:r in i||!t.objectLength(n(this).rules())?!1:(i[r]=!0,!0)})},clean:function(t){return n(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return n(this.settings.errorElement+"."+t,this.errorContext)},resetInternals:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=n([]);this.toHide=n([])},reset:function(){this.resetInternals();this.currentElements=n([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(n){this.reset();this.toHide=this.errorsFor(n)},elementValue:function(t){var u=n(t),f=t.type,e=typeof u.attr("contenteditable")!="undefined"&&u.attr("contenteditable")!=="false",i,r;return f==="radio"||f==="checkbox"?this.findByName(t.name).filter(":checked").val():f==="number"&&typeof t.validity!="undefined"?t.validity.badInput?"NaN":u.val():(i=e?u.text():u.val(),f==="file")?i.substr(0,12)==="C:\\fakepath\\"?i.substr(12):(r=i.lastIndexOf("/"),r>=0)?i.substr(r+1):(r=i.lastIndexOf("\\"),r>=0)?i.substr(r+1):i:typeof i=="string"?i.replace(/\r/g,""):i},check:function(t){t=this.validationTargetFor(this.clean(t));var i=n(t).rules(),c=n.map(i,function(n,t){return t}).length,s=!1,h=this.elementValue(t),u,f,r,e;typeof i.normalizer=="function"?e=i.normalizer:typeof this.settings.normalizer=="function"&&(e=this.settings.normalizer);e&&(h=e.call(t,h),delete i.normalizer);for(f in i){r={method:f,parameters:i[f]};try{if(u=n.validator.methods[f].call(this,h,t,r.parameters),u==="dependency-mismatch"&&c===1){s=!0;continue}if(s=!1,u==="pending"){this.toHide=this.toHide.not(this.errorsFor(t));return}if(!u)return this.formatAndAdd(t,r),!1}catch(o){this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+r.method+"' method.",o);o instanceof TypeError&&(o.message+=".  Exception occurred when checking element "+t.id+", check the '"+r.method+"' method.");throw o;}}if(!s)return this.objectLength(i)&&this.successList.push(t),!0},customDataMessage:function(t,i){return n(t).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||n(t).data("msg")},customMessage:function(n,t){var i=this.settings.messages[n];return i&&(i.constructor===String?i:i[t])},findDefined:function(){for(var n=0;n<arguments.length;n++)if(arguments[n]!==undefined)return arguments[n];return undefined},defaultMessage:function(t,i){typeof i=="string"&&(i={method:i});var r=this.findDefined(this.customMessage(t.name,i.method),this.customDataMessage(t,i.method),!this.settings.ignoreTitle&&t.title||undefined,n.validator.messages[i.method],"<strong>Warning: No message defined for "+t.name+"<\/strong>"),u=/\$?\{(\d+)\}/g;return typeof r=="function"?r=r.call(this,i.parameters,t):u.test(r)&&(r=n.validator.format(r.replace(u,"{$1}"),i.parameters)),r},formatAndAdd:function(n,t){var i=this.defaultMessage(n,t);this.errorList.push({message:i,element:n,method:t.method});this.errorMap[n.name]=i;this.submitted[n.name]=i},addWrapper:function(n){return this.settings.wrapper&&(n=n.add(n.parent(this.settings.wrapper))),n},defaultShowErrors:function(){for(var i,t,n=0;this.errorList[n];n++)t=this.errorList[n],this.settings.highlight&&this.settings.highlight.call(this,t.element,this.settings.errorClass,this.settings.validClass),this.showLabel(t.element,t.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(n=0;this.successList[n];n++)this.showLabel(this.successList[n]);if(this.settings.unhighlight)for(n=0,i=this.validElements();i[n];n++)this.settings.unhighlight.call(this,i[n],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return n(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var u,s,e,o,r=this.errorsFor(t),h=this.idOrName(t),f=n(t).attr("aria-describedby");r.length?(r.removeClass(this.settings.validClass).addClass(this.settings.errorClass),r.html(i)):(r=n("<"+this.settings.errorElement+">").attr("id",h+"-error").addClass(this.settings.errorClass).html(i||""),u=r,this.settings.wrapper&&(u=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(u):this.settings.errorPlacement?this.settings.errorPlacement.call(this,u,n(t)):u.insertAfter(t),r.is("label")?r.attr("for",h):r.parents("label[for='"+this.escapeCssMeta(h)+"']").length===0&&(e=r.attr("id"),f?f.match(new RegExp("\\b"+this.escapeCssMeta(e)+"\\b"))||(f+=" "+e):f=e,n(t).attr("aria-describedby",f),s=this.groups[t.name],s&&(o=this,n.each(o.groups,function(t,i){i===s&&n("[name='"+o.escapeCssMeta(t)+"']",o.currentForm).attr("aria-describedby",r.attr("id"))}))));!i&&this.settings.success&&(r.text(""),typeof this.settings.success=="string"?r.addClass(this.settings.success):this.settings.success(r,t));this.toShow=this.toShow.add(r)},errorsFor:function(t){var r=this.escapeCssMeta(this.idOrName(t)),u=n(t).attr("aria-describedby"),i="label[for='"+r+"'], label[for='"+r+"'] *";return u&&(i=i+", #"+this.escapeCssMeta(u).replace(/\s+/g,", #")),this.errors().filter(i)},escapeCssMeta:function(n){return n.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(n){return this.groups[n.name]||(this.checkable(n)?n.name:n.id||n.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),n(t).not(this.settings.ignore)[0]},checkable:function(n){return/radio|checkbox/i.test(n.type)},findByName:function(t){return n(this.currentForm).find("[name='"+this.escapeCssMeta(t)+"']")},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return n("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(n,t){return this.dependTypes[typeof n]?this.dependTypes[typeof n](n,t):!0},dependTypes:{boolean:function(n){return n},string:function(t,i){return!!n(t,i.form).length},"function":function(n,t){return n(t)}},optional:function(t){var i=this.elementValue(t);return!n.validator.methods.required.call(this,i,t)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,n(t).addClass(this.settings.pendingClass),this.pending[t.name]=!0)},stopRequest:function(t,i){this.pendingRequest--;this.pendingRequest<0&&(this.pendingRequest=0);delete this.pending[t.name];n(t).removeClass(this.settings.pendingClass);i&&this.pendingRequest===0&&this.formSubmitted&&this.form()?(n(this.currentForm).submit(),this.submitButton&&n("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!i&&this.pendingRequest===0&&this.formSubmitted&&(n(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t,i){return i=typeof i=="string"&&i||"remote",n.data(t,"previousValue")||n.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,{method:i})})},destroy:function(){this.resetForm();n(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,i){t.constructor===String?this.classRuleSettings[t]=i:n.extend(this.classRuleSettings,t)},classRules:function(t){var i={},r=n(t).attr("class");return r&&n.each(r.split(" "),function(){this in n.validator.classRuleSettings&&n.extend(i,n.validator.classRuleSettings[this])}),i},normalizeAttributeRule:function(n,t,i,r){/min|max|step/.test(i)&&(t===null||/number|range|text/.test(t))&&(r=Number(r),isNaN(r)&&(r=undefined));r||r===0?n[i]=r:t===i&&t!=="range"&&(n[i]=!0)},attributeRules:function(t){var r={},f=n(t),e=t.getAttribute("type"),u,i;for(u in n.validator.methods)u==="required"?(i=t.getAttribute(u),i===""&&(i=!0),i=!!i):i=f.attr(u),this.normalizeAttributeRule(r,e,u,i);return r.maxlength&&/-1|2147483647|524288/.test(r.maxlength)&&delete r.maxlength,r},dataRules:function(t){var u={},f=n(t),e=t.getAttribute("type"),i,r;for(i in n.validator.methods)r=f.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()),r===""&&(r=!0),this.normalizeAttributeRule(u,e,i,r);return u},staticRules:function(t){var i={},r=n.data(t.form,"validator");return r.settings.rules&&(i=n.validator.normalizeRule(r.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return n.each(t,function(r,u){if(u===!1){delete t[r];return}if(u.param||u.depends){var f=!0;switch(typeof u.depends){case"string":f=!!n(u.depends,i.form).length;break;case"function":f=u.depends.call(i,i)}f?t[r]=u.param!==undefined?u.param:!0:(n.data(i.form,"validator").resetElements(n(i)),delete t[r])}}),n.each(t,function(r,u){t[r]=n.isFunction(u)&&r!=="normalizer"?u(i):u}),n.each(["minlength","maxlength"],function(){t[this]&&(t[this]=Number(t[this]))}),n.each(["rangelength","range"],function(){var i;t[this]&&(n.isArray(t[this])?t[this]=[Number(t[this][0]),Number(t[this][1])]:typeof t[this]=="string"&&(i=t[this].replace(/[\[\]]/g,"").split(/[\s,]+/),t[this]=[Number(i[0]),Number(i[1])]))}),n.validator.autoCreateRanges&&(t.min!=null&&t.max!=null&&(t.range=[t.min,t.max],delete t.min,delete t.max),t.minlength!=null&&t.maxlength!=null&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t},normalizeRule:function(t){if(typeof t=="string"){var i={};n.each(t.split(/\s/),function(){i[this]=!0});t=i}return t},addMethod:function(t,i,r){n.validator.methods[t]=i;n.validator.messages[t]=r!==undefined?r:n.validator.messages[t];i.length<3&&n.validator.addClassRules(t,n.validator.normalizeRule(t))},methods:{required:function(t,i,r){if(!this.depend(r,i))return"dependency-mismatch";if(i.nodeName.toLowerCase()==="select"){var u=n(i).val();return u&&u.length>0}return this.checkable(i)?this.getLength(t,i)>0:t!==undefined&&t!==null&&t.length>0},email:function(n,t){return this.optional(t)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(n)},url:function(n,t){return this.optional(t)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(n)},date:function(){var n=!1;return function(t,i){return n||(n=!0,this.settings.debug&&window.console&&console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\nPlease don't use it, since it relies on the Date constructor, which\nbehaves very differently across browsers and locales. Use `dateISO`\ninstead or one of the locale specific methods in `localizations/`\nand `additional-methods.js`.")),this.optional(i)||!/Invalid|NaN/.test(new Date(t).toString())}}(),dateISO:function(n,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(n)},number:function(n,t){return this.optional(t)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(n)},digits:function(n,t){return this.optional(t)||/^\d+$/.test(n)},minlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u>=r},maxlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u<=r},rangelength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u>=r[0]&&u<=r[1]},min:function(n,t,i){return this.optional(t)||n>=i},max:function(n,t,i){return this.optional(t)||n<=i},range:function(n,t,i){return this.optional(t)||n>=i[0]&&n<=i[1]},step:function(t,i,r){var u=n(i).attr("type"),h="Step attribute on input type "+u+" is not supported.",c=new RegExp("\\b"+u+"\\b"),l=u&&!c.test("text,number,range"),e=function(n){var t=(""+n).match(/(?:\.(\d+))?$/);return t?t[1]?t[1].length:0:0},o=function(n){return Math.round(n*Math.pow(10,f))},s=!0,f;if(l)throw new Error(h);return f=e(r),(e(t)>f||o(t)%o(r)!=0)&&(s=!1),this.optional(i)||s},equalTo:function(t,i,r){var u=n(r);if(this.settings.onfocusout&&u.not(".validate-equalTo-blur").length)u.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){n(i).valid()});return t===u.val()},remote:function(t,i,r,u){if(this.optional(i))return"dependency-mismatch";u=typeof u=="string"&&u||"remote";var e=this.previousValue(i,u),f,o,s;return(this.settings.messages[i.name]||(this.settings.messages[i.name]={}),e.originalMessage=e.originalMessage||this.settings.messages[i.name][u],this.settings.messages[i.name][u]=e.message,r=typeof r=="string"&&{url:r}||r,s=n.param(n.extend({data:t},r.data)),e.old===s)?e.valid:(e.old=s,f=this,this.startRequest(i),o={},o[i.name]=t,n.ajax(n.extend(!0,{mode:"abort",port:"validate"+i.name,dataType:"json",data:o,context:f.currentForm,success:function(n){var r=n===!0||n==="true",o,s,h;f.settings.messages[i.name][u]=e.originalMessage;r?(h=f.formSubmitted,f.resetInternals(),f.toHide=f.errorsFor(i),f.formSubmitted=h,f.successList.push(i),f.invalid[i.name]=!1,f.showErrors()):(o={},s=n||f.defaultMessage(i,{method:u,parameters:t}),o[i.name]=e.message=s,f.invalid[i.name]=!0,f.showErrors(o));e.valid=r;f.stopRequest(i,r)}},r)),"pending")}}}),t={},n.ajaxPrefilter?n.ajaxPrefilter(function(n,i,r){var u=n.port;n.mode==="abort"&&(t[u]&&t[u].abort(),t[u]=r)}):(r=n.ajax,n.ajax=function(i){var f=("mode"in i?i:n.ajaxSettings).mode,u=("port"in i?i:n.ajaxSettings).port;return f==="abort"?(t[u]&&t[u].abort(),t[u]=r.apply(this,arguments),t[u]):r.apply(this,arguments)}),n}),function(n){function u(n,t,i){var u="("+i.replace(r,"\\$1")+")";return n.replace(new RegExp(u,"gi"),"<strong>$1<\/strong>")}function t(t,i){this.el=n(t);this.el.attr("autocomplete","off");this.suggestions=[];this.data=[];this.badQueries=[];this.selectedIndex=-1;this.currentValue=this.el.val();this.intervalId=0;this.cachedResponse=[];this.onChangeInterval=null;this.ignoreValueChange=!1;this.serviceUrl=i.serviceUrl;this.isLocal=!1;this.options={autoSubmit:!1,minChars:1,maxHeight:300,deferRequestBy:0,width:0,highlight:!0,params:{},fnFormatResult:u,delimiter:null,zIndex:9999};this.initialize();this.setOptions(i)}var r=new RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)","g");n.fn.autocomplete=function(i){return new t(this.get(0)||n("<input />"),i)};t.prototype={killerFn:null,initialize:function(){var t,i,r;t=this;i=Math.floor(Math.random()*1048576).toString(16);r="Autocomplete_"+i;this.killerFn=function(i){n(i.target).parents(".autocomplete").length===0&&(t.killSuggestions(),t.disableKillerFn())};this.options.width||(this.options.width=this.el.width());this.mainContainerId="AutocompleteContainter_"+i;n('<div id="'+this.mainContainerId+'" style="position:absolute;z-index:9999;"><div class="autocomplete-w1"><div class="autocomplete" id="'+r+'" style="display:none; width:300px;"><\/div><\/div><\/div>').appendTo("body");this.container=n("#"+r);this.fixPosition();window.opera?this.el.keypress(function(n){t.onKeyPress(n)}):this.el.keydown(function(n){t.onKeyPress(n)});this.el.keyup(function(n){t.onKeyUp(n)});this.el.blur(function(){t.enableKillerFn()});this.el.focus(function(){t.fixPosition()})},setOptions:function(t){var i=this.options;n.extend(i,t);i.lookup&&(this.isLocal=!0,n.isArray(i.lookup)&&(i.lookup={suggestions:i.lookup,data:[]}));n("#"+this.mainContainerId).css({zIndex:i.zIndex});this.container.css({maxHeight:i.maxHeight+"px",width:i.width})},clearCache:function(){this.cachedResponse=[];this.badQueries=[]},disable:function(){this.disabled=!0},enable:function(){this.disabled=!1},fixPosition:function(){var t=this.el.offset();n("#"+this.mainContainerId).css({top:t.top+this.el.innerHeight()+"px",left:t.left+"px"})},enableKillerFn:function(){var t=this;n(document).bind("click",t.killerFn)},disableKillerFn:function(){var t=this;n(document).unbind("click",t.killerFn)},killSuggestions:function(){var n=this;this.stopKillSuggestions();this.intervalId=window.setInterval(function(){n.hide();n.stopKillSuggestions()},300)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},onKeyPress:function(n){if(!this.disabled&&this.enabled){switch(n.keyCode){case 27:this.el.val(this.currentValue);this.hide();break;case 9:case 13:if(this.selectedIndex===-1){this.hide();return}if(this.select(this.selectedIndex),n.keyCode===9)return;break;case 38:this.moveUp();break;case 40:this.moveDown();break;default:return}n.stopImmediatePropagation();n.preventDefault()}},onKeyUp:function(n){if(!this.disabled){switch(n.keyCode){case 38:case 40:return}if(clearInterval(this.onChangeInterval),this.currentValue!==this.el.val())if(this.options.deferRequestBy>0){var t=this;this.onChangeInterval=setInterval(function(){t.onValueChange()},this.options.deferRequestBy)}else this.onValueChange()}},onValueChange:function(){clearInterval(this.onChangeInterval);this.currentValue=this.el.val();var n=this.getQuery(this.currentValue);if(this.selectedIndex=-1,this.ignoreValueChange){this.ignoreValueChange=!1;return}n===""||n.length<this.options.minChars?this.hide():this.getSuggestions(n)},getQuery:function(t){var i,r;return(i=this.options.delimiter,!i)?n.trim(t):(r=t.split(i),n.trim(r[r.length-1]))},getSuggestionsLocal:function(n){var i,r,f,u,t;for(r=this.options.lookup,f=r.suggestions.length,i={suggestions:[],data:[]},n=n.toLowerCase(),t=0;t<f;t++)u=r.suggestions[t],u.toLowerCase().indexOf(n)===0&&(i.suggestions.push(u),i.data.push(r.data[t]));return i},getSuggestions:function(t){var r,i;r=this.isLocal?this.getSuggestionsLocal(t):this.cachedResponse[t];r&&n.isArray(r.suggestions)?(this.suggestions=r.suggestions,this.data=r.data,this.suggest()):this.isBadQuery(t)||(i=this,i.options.params.value=t,n.ajax({type:"GET",url:this.serviceUrl,data:i.options.params,dataType:"jsonp",contentType:"application/json; charset=utf-8",success:function(n){i.options.params.Dictionary=="WorkSpace"?i.processWorkSpaceResponse(n):i.processResponse(n)}}))},isBadQuery:function(n){for(var t=this.badQueries.length;t--;)if(n.indexOf(this.badQueries[t])===0)return!0;return!1},hide:function(){this.enabled=!1;this.selectedIndex=-1;this.container.hide()},suggest:function(){if(this.suggestions.length===0){this.hide();return}var i,f,r,e,o,t,u,s,h;for(i=this,f=this.suggestions.length,e=this.options.fnFormatResult,o=this.getQuery(this.currentValue),s=function(n){return function(){i.activate(n)}},h=function(n){return function(){i.select(n)}},this.container.hide().empty(),t=0;t<f;t++)u=this.suggestions[t],r=n((i.selectedIndex===t?'<div class="selected"':"<div")+' title="'+u+'" rel="'+this.data[t]+'">'+e(u,this.data[t],o)+"<\/div>"),r.mouseover(s(t)),r.click(h(t)),this.container.append(r);this.enabled=!0;this.container.show()},processWorkSpaceResponse:function(t){var r,u;try{r=[];u=[];n.each(t.titleName,function(){var t=this.split(","),n;for(i=0;i<t.length;i++)u.push(t[i]),n=t[i].split("~"),n[0]=="Tag"?r.push(n[1]+" ("+n[0]+")"):n[0]=="Collection"?r.push(n[1]+" ("+n[0]+")"):r.push(n[1])});this.suggestions=r;this.data=u;this.suggest()}catch(f){return}},processResponse:function(t){var i,r;try{i=[];r=[];n.each(t.ReadResult,function(){this.Entities!=""&&(r.push(this.Entities),i.push(this.Item))});this.suggestions=i;this.data=r;this.suggest()}catch(u){return}},activate:function(t){var i,r;return i=this.container.children(),this.selectedIndex!==-1&&i.length>this.selectedIndex&&n(i.get(this.selectedIndex)).removeClass(),this.selectedIndex=t,this.selectedIndex!==-1&&i.length>this.selectedIndex&&(r=i.get(this.selectedIndex),n(r).addClass("selected")),r},deactivate:function(n,t){n.className="";this.selectedIndex===t&&(this.selectedIndex=-1)},select:function(n){var t,i;if(t=this.suggestions[n],t){this.el.val(t);this.options.autoSubmit&&(i=this.el.parents("form"),i.length>0&&i.get(0).submit());this.ignoreValueChange=!0;this.hide();this.onSelect(n)}},moveUp:function(){if(this.selectedIndex!==-1){if(this.selectedIndex===0){this.container.children().get(0).className="";this.selectedIndex=-1;this.el.val(this.currentValue);return}this.adjustScroll(this.selectedIndex-1)}},moveDown:function(){this.selectedIndex!==this.suggestions.length-1&&this.adjustScroll(this.selectedIndex+1)},adjustScroll:function(n){var r,t,i,u;r=this.activate(n);t=r.offsetTop;i=this.container.scrollTop();u=i+this.options.maxHeight-25;t<i?this.container.scrollTop(t):t>u&&this.container.scrollTop(t-this.options.maxHeight+25);this.el.val(this.getValue(this.suggestions[n]))},onSelect:function(t){var i,r,u,f;i=this;r=i.options.onSelect;u=i.suggestions[t];f=i.data[t];i.el.val(i.getValue(u));n.isFunction(r)&&r(u,f,i.el)},getValue:function(n){var r,t,i,u;return(u=this,r=u.options.delimiter,!r)?n:(t=u.currentValue,i=t.split(r),i.length===1)?n:t.substr(0,t.length-i[i.length-1].length)+n}}}(jQuery);jQuery.extend(jQuery.easing,{easeInQuad:function(n,t,i,r,u){return r*(t/=u)*t+i},easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeInOutQuad:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t+i:-r/2*(--t*(t-2)-1)+i},easeInCubic:function(n,t,i,r,u){return r*(t/=u)*t*t+i},easeOutCubic:function(n,t,i,r,u){return r*((t=t/u-1)*t*t+1)+i},easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i},easeInQuart:function(n,t,i,r,u){return r*(t/=u)*t*t*t+i},easeOutQuart:function(n,t,i,r,u){return-r*((t=t/u-1)*t*t*t-1)+i},easeInOutQuart:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t+i:-r/2*((t-=2)*t*t*t-2)+i},easeInQuint:function(n,t,i,r,u){return r*(t/=u)*t*t*t*t+i},easeOutQuint:function(n,t,i,r,u){return r*((t=t/u-1)*t*t*t*t+1)+i},easeInOutQuint:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t*t*t+i:r/2*((t-=2)*t*t*t*t+2)+i},easeInSine:function(n,t,i,r,u){return-r*Math.cos(t/u*(Math.PI/2))+r+i},easeOutSine:function(n,t,i,r,u){return r*Math.sin(t/u*(Math.PI/2))+i},easeInOutSine:function(n,t,i,r,u){return-r/2*(Math.cos(Math.PI*t/u)-1)+i},easeInExpo:function(n,t,i,r,u){return t==0?i:r*Math.pow(2,10*(t/u-1))+i},easeOutExpo:function(n,t,i,r,u){return t==u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i},easeInOutExpo:function(n,t,i,r,u){return t==0?i:t==u?i+r:(t/=u/2)<1?r/2*Math.pow(2,10*(t-1))+i:r/2*(-Math.pow(2,-10*--t)+2)+i},easeInCirc:function(n,t,i,r,u){return-r*(Math.sqrt(1-(t/=u)*t)-1)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeInOutCirc:function(n,t,i,r,u){return(t/=u/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+i:r/2*(Math.sqrt(1-(t-=2)*t)+1)+i},easeInElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),-(o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e))+i)},easeOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u)==1?i+r:(e||(e=u*.3),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),o*Math.pow(2,-10*t)*Math.sin((t*u-f)*2*Math.PI/e)+r+i)},easeInOutElastic:function(n,t,i,r,u){var f=1.70158,e=0,o=r;return t==0?i:(t/=u/2)==2?i+r:(e||(e=u*.3*1.5),o<Math.abs(r)?(o=r,f=e/4):f=e/(2*Math.PI)*Math.asin(r/o),t<1)?-.5*o*Math.pow(2,10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)+i:o*Math.pow(2,-10*(t-=1))*Math.sin((t*u-f)*2*Math.PI/e)*.5+r+i},easeInBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*(t/=u)*t*((f+1)*t-f)+i},easeOutBack:function(n,t,i,r,u,f){return f==undefined&&(f=1.70158),r*((t=t/u-1)*t*((f+1)*t+f)+1)+i},easeInOutBack:function(n,t,i,r,u,f){return(f==undefined&&(f=1.70158),(t/=u/2)<1)?r/2*t*t*(((f*=1.525)+1)*t-f)+i:r/2*((t-=2)*t*(((f*=1.525)+1)*t+f)+2)+i},easeInBounce:function(n,t,i,r,u){return r-jQuery.easing.easeOutBounce(n,u-t,0,r,u)+i},easeOutBounce:function(n,t,i,r,u){return(t/=u)<1/2.75?r*7.5625*t*t+i:t<2/2.75?r*(7.5625*(t-=1.5/2.75)*t+.75)+i:t<2.5/2.75?r*(7.5625*(t-=2.25/2.75)*t+.9375)+i:r*(7.5625*(t-=2.625/2.75)*t+.984375)+i},easeInOutBounce:function(n,t,i,r,u){return t<u/2?jQuery.easing.easeInBounce(n,t*2,0,r,u)*.5+i:jQuery.easing.easeOutBounce(n,t*2-u,0,r,u)*.5+r*.5+i}}),function(){"use strict";function n(n){function s(s,h){var rt,ut,p=s==window,l=h&&h.message!==undefined?h.message:undefined,g,k,d,tt,nt,w,b,it,ft,et,at;if(h=n.extend({},n.blockUI.defaults,h||{}),!h.ignoreIfBlocked||!n(s).data("blockUI.isBlocked")){if(h.overlayCSS=n.extend({},n.blockUI.defaults.overlayCSS,h.overlayCSS||{}),rt=n.extend({},n.blockUI.defaults.css,h.css||{}),h.onOverlayClick&&(h.overlayCSS.cursor="pointer"),ut=n.extend({},n.blockUI.defaults.themedCSS,h.themedCSS||{}),l=l===undefined?h.message:l,p&&t&&e(window,{fadeOut:0}),l&&typeof l!="string"&&(l.parentNode||l.jquery)&&(g=l.jquery?l[0]:l,k={},n(s).data("blockUI.history",k),k.el=g,k.parent=g.parentNode,k.display=g.style.display,k.position=g.style.position,k.parent&&k.parent.removeChild(g)),n(s).data("blockUI.onUnblock",h.onUnblock),d=h.baseZ,tt=f||h.forceIframe?n('<iframe class="blockUI" style="z-index:'+d+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+h.iframeSrc+'"><\/iframe>'):n('<div class="blockUI" style="display:none"><\/div>'),nt=h.theme?n('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+d+++';display:none"><\/div>'):n('<div class="blockUI blockOverlay" style="z-index:'+d+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"><\/div>'),h.theme&&p?(b='<div class="blockUI '+h.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(d+10)+';display:none;position:fixed">',h.title&&(b+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(h.title||"&nbsp;")+"<\/div>"),b+='<div class="ui-widget-content ui-dialog-content"><\/div>',b+="<\/div>"):h.theme?(b='<div class="blockUI '+h.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(d+10)+';display:none;position:absolute">',h.title&&(b+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(h.title||"&nbsp;")+"<\/div>"),b+='<div class="ui-widget-content ui-dialog-content"><\/div>',b+="<\/div>"):b=p?'<div class="blockUI '+h.blockMsgClass+' blockPage" style="z-index:'+(d+10)+';display:none;position:fixed"><\/div>':'<div class="blockUI '+h.blockMsgClass+' blockElement" style="z-index:'+(d+10)+';display:none;position:absolute"><\/div>',w=n(b),l&&(h.theme?(w.css(ut),w.addClass("ui-widget-content")):w.css(rt)),h.theme||nt.css(h.overlayCSS),nt.css("position",p?"fixed":"absolute"),(f||h.forceIframe)&&tt.css("opacity",0),it=[tt,nt,w],ft=p?n("body"):n(s),n.each(it,function(){this.appendTo(ft)}),h.theme&&h.draggable&&n.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"}),et=v&&(!n.support.boxModel||n("object,embed",p?null:s).length>0),o||et){if(p&&h.allowBodyStretch&&n.support.boxModel&&n("html,body").css("height","100%"),(o||!n.support.boxModel)&&!p)var ot=r(s,"borderTopWidth"),st=r(s,"borderLeftWidth"),ht=ot?"(0 - "+ot+")":0,ct=st?"(0 - "+st+")":0;n.each(it,function(n,t){var i=t[0].style,r,u;i.position="absolute";n<2?(p?i.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+h.quirksmodeOffsetHack+') + "px"'):i.setExpression("height",'this.parentNode.offsetHeight + "px"'),p?i.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):i.setExpression("width",'this.parentNode.offsetWidth + "px"'),ct&&i.setExpression("left",ct),ht&&i.setExpression("top",ht)):h.centerY?(p&&i.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),i.marginTop=0):!h.centerY&&p&&(r=h.css&&h.css.top?parseInt(h.css.top,10):0,u="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+r+') + "px"',i.setExpression("top",u))})}if(l&&(h.theme?w.find(".ui-widget-content").append(l):w.append(l),(l.jquery||l.nodeType)&&n(l).show()),(f||h.forceIframe)&&h.showOverlay&&tt.show(),h.fadeIn){var lt=h.onBlock?h.onBlock:u,vt=h.showOverlay&&!l?lt:u,yt=l?lt:u;h.showOverlay&&nt._fadeIn(h.fadeIn,vt);l&&w._fadeIn(h.fadeIn,yt)}else h.showOverlay&&nt.show(),l&&w.show(),h.onBlock&&h.onBlock();c(1,s,h);p?(t=w[0],i=n(":input:enabled:visible",t),h.focusInput&&setTimeout(a,20)):y(w[0],h.centerX,h.centerY);h.timeout&&(at=setTimeout(function(){p?n.unblockUI(h):n(s).unblock(h)},h.timeout),n(s).data("blockUI.timeout",at))}}function e(r,u){var o=r==window,e=n(r),s=e.data("blockUI.history"),l=e.data("blockUI.timeout"),f;l&&(clearTimeout(l),e.removeData("blockUI.timeout"));u=n.extend({},n.blockUI.defaults,u||{});c(0,r,u);u.onUnblock===null&&(u.onUnblock=e.data("blockUI.onUnblock"),e.removeData("blockUI.onUnblock"));f=o?n("body").children().filter(".blockUI").add("body > .blockUI"):e.find(">.blockUI");u.cursorReset&&(f.length>1&&(f[1].style.cursor=u.cursorReset),f.length>2&&(f[2].style.cursor=u.cursorReset));o&&(t=i=null);u.fadeOut?(f.fadeOut(u.fadeOut),setTimeout(function(){h(f,s,u,r)},u.fadeOut)):h(f,s,u,r)}function h(t,i,r,u){if(t.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),i&&i.el&&(i.el.style.display=i.display,i.el.style.position=i.position,i.parent&&i.parent.appendChild(i.el),n(u).removeData("blockUI.history")),typeof r.onUnblock=="function")r.onUnblock(u,r);var f=n(document.body),e=f.width(),o=f[0].style.width;f.width(e-1).width(e);f[0].style.width=o}function c(i,r,u){var e=r==window,o=n(r),f;(i||(!e||t)&&(e||o.data("blockUI.isBlocked")))&&(o.data("blockUI.isBlocked",i),u.bindEvents&&(!i||u.showOverlay))&&(f="mousedown mouseup keydown keypress keyup touchstart touchend touchmove",i?n(document).bind(f,u,l):n(document).unbind(f,l))}function l(r){var u,f;if(r.keyCode&&r.keyCode==9&&t&&r.data.constrainTabKey){var e=i,s=!r.shiftKey&&r.target===e[e.length-1],o=r.shiftKey&&r.target===e[0];if(s||o)return setTimeout(function(){a(o)},10),!1}return(u=r.data,f=n(r.target),f.hasClass("blockOverlay")&&u.onOverlayClick&&u.onOverlayClick(),f.parents("div."+u.blockMsgClass).length>0)?!0:f.parents().children().filter("div.blockUI").length===0}function a(n){if(i){var t=i[n===!0?i.length-1:0];t&&t.focus()}}function y(n,t,i){var u=n.parentNode,f=n.style,e=(u.offsetWidth-n.offsetWidth)/2-r(u,"borderLeftWidth"),o=(u.offsetHeight-n.offsetHeight)/2-r(u,"borderTopWidth");t&&(f.left=e>0?e+"px":"0");i&&(f.top=o>0?o+"px":"0")}function r(t,i){return parseInt(n.css(t,i),10)||0}var t,i;if(/^1\.(0|1|2)/.test(n.fn.jquery)){alert("blockUI requires jQuery v1.3 or later!  You are using v"+n.fn.jquery);return}n.fn._fadeIn=n.fn.fadeIn;var u=n.noop||function(){},f=/MSIE/.test(navigator.userAgent),o=/MSIE 6.0/.test(navigator.userAgent),p=document.documentMode||0,v=n.isFunction(document.createElement("div").style.setExpression);n.blockUI=function(n){s(window,n)};n.unblockUI=function(n){e(window,n)};n.growlUI=function(t,i,r,u){var f=n('<div class="growlUI"><\/div>');t&&f.append("<h1>"+t+"<\/h1>");i&&f.append("<h2>"+i+"<\/h2>");r===undefined&&(r=3e3);n.blockUI({message:f,fadeIn:700,fadeOut:1e3,centerY:!1,timeout:r,showOverlay:!1,onUnblock:u,css:n.blockUI.defaults.growlCSS})};n.fn.block=function(t){var i=n.extend({},n.blockUI.defaults,t||{});return this.each(function(){var t=n(this);i.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){n.css(this,"position")=="static"&&(this.style.position="relative");this.style.zoom=1;s(this,t)})};n.fn.unblock=function(n){return this.each(function(){e(this,n)})};n.blockUI.version=2.54;n.blockUI.defaults={message:"<h1>Please wait...<\/h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};t=null;i=[]}typeof define=="function"&&define.amd&&define.amd.jQuery?define(["jquery"],n):n(jQuery)}(),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){function u(n){return n}function f(n){return decodeURIComponent(n.replace(r," "))}function i(n){n.indexOf('"')===0&&(n=n.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return t.json?JSON.parse(n):n}catch(i){}}var r=/\+/g,t=n.cookie=function(r,e,o){var l,h,s,y;if(e!==undefined)return o=n.extend({},t.defaults,o),typeof o.expires=="number"&&(l=o.expires,h=o.expires=new Date,h.setDate(h.getDate()+l)),e=t.json?JSON.stringify(e):String(e),document.cookie=[t.raw?r:encodeURIComponent(r),"=",t.raw?e:encodeURIComponent(e),o.expires?"; expires="+o.expires.toUTCString():"",o.path?"; path="+o.path:"",o.domain?"; domain="+o.domain:"",o.secure?"; secure":""].join("");var a=t.raw?u:f,v=document.cookie.split("; "),c=r?undefined:{};for(s=0,y=v.length;s<y;s++){var p=v[s].split("="),w=a(p.shift()),b=a(p.join("="));if(r&&r===w){c=i(b);break}r||(c[w]=i(b))}return c};t.defaults={};n.removeCookie=function(t,i){return n.cookie(t)!==undefined?(n.cookie(t,"",n.extend({},i,{expires:-1})),!0):!1}}),function(n){function t(){if(n.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}n.fn.ajaxSubmit=function(i){function nt(t){for(var e=new FormData,o,u,s,f=0;f<t.length;f++)t[f].type!="file"&&e.append(t[f].name,t[f].value);if(r.find("input:file:enabled").each(function(){var i=n(this).attr("name"),r=this.files,t;if(i)for(t=0;t<r.length;t++)e.append(i,r[t])}),i.extraData)for(o in i.extraData)e.append(o,i.extraData[o]);i.data=null;u=n.extend(!0,{},n.ajaxSettings,i,{contentType:!1,processData:!1,cache:!1,type:"POST"});u.context=u.context||u;u.data=null;s=u.beforeSend;u.beforeSend=function(n,t){t.data=e;n.upload&&(n.upload.onprogress=function(n){t.progress(n.position,n.total)});s&&s.call(t,n,i)};n.ajax(u)}function g(u){function ut(n){return n.contentWindow?n.contentWindow.document:n.contentDocument?n.contentDocument:n.document}function ft(){function a(){try{var n=ut(l).readyState;t("state = "+n);n.toLowerCase()=="uninitialized"&&setTimeout(a,50)}catch(i){t("Server abort: ",i," (",i.name,")");p(g);k&&clearTimeout(k);k=undefined}}var e=r.attr("target"),o=r.attr("action"),i,u;h.setAttribute("target",b);s||h.setAttribute("method","POST");o!=f.url&&h.setAttribute("action",f.url);f.skipEncodingOverride||s&&!/post/i.test(s)||r.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});f.timeout&&(k=setTimeout(function(){nt=!0;p(tt)},f.timeout));i=[];try{if(f.extraData)for(u in f.extraData)i.push(n('<input type="hidden" name="'+u+'">').attr("value",f.extraData[u]).appendTo(h)[0]);f.iframeTarget||(c.appendTo("body"),l.attachEvent?l.attachEvent("onload",p):l.addEventListener("load",p,!1));setTimeout(a,15);h.submit()}finally{h.setAttribute("action",o);e?h.setAttribute("target",e):r.removeAttr("target");n(i).remove()}}function p(i){var r,u,w,s,b,d,h,a,y;if(!e.aborted&&!st){try{o=ut(l)}catch(it){t("cannot access response document: ",it);i=g}if(i===tt&&e){e.abort("timeout");return}if(i==g&&e){e.abort("server abort");return}if(o&&o.location.href!=f.iframeSrc||nt){l.detachEvent?l.detachEvent("onload",p):l.removeEventListener("load",p,!1);r="success";try{if(nt)throw"timeout";if(w=f.dataType=="xml"||o.XMLDocument||n.isXMLDoc(o),t("isXml="+w),!w&&window.opera&&(o.body==null||o.body.innerHTML=="")&&--ot){t("requeing onLoad callback, DOM not available");setTimeout(p,250);return}s=o.body?o.body:o.documentElement;e.responseText=s?s.innerHTML:null;e.responseXML=o.XMLDocument?o.XMLDocument:o;w&&(f.dataType="xml");e.getResponseHeader=function(n){var t={"content-type":f.dataType};return t[n]};s&&(e.status=Number(s.getAttribute("status"))||e.status,e.statusText=s.getAttribute("statusText")||e.statusText);b=(f.dataType||"").toLowerCase();d=/(json|script|text)/.test(b);d||f.textarea?(h=o.getElementsByTagName("textarea")[0],h?(e.responseText=h.value,e.status=Number(h.getAttribute("status"))||e.status,e.statusText=h.getAttribute("statusText")||e.statusText):d&&(a=o.getElementsByTagName("pre")[0],y=o.getElementsByTagName("body")[0],a?e.responseText=a.textContent?a.textContent:a.innerText:y&&(e.responseText=y.textContent?y.textContent:y.innerText))):b!="xml"||e.responseXML||e.responseText==null||(e.responseXML=ct(e.responseText));try{et=at(e,b,f)}catch(i){r="parsererror";e.error=u=i||r}}catch(i){t("error caught: ",i);r="error";e.error=u=i||r}e.aborted&&(t("upload aborted"),r=null);e.status&&(r=e.status>=200&&e.status<300||e.status===304?"success":"error");r==="success"?(f.success&&f.success.call(f.context,et,"success",e),v&&n.event.trigger("ajaxSuccess",[e,f])):r&&(u==undefined&&(u=e.statusText),f.error&&f.error.call(f.context,e,r,u),v&&n.event.trigger("ajaxError",[e,f,u]));v&&n.event.trigger("ajaxComplete",[e,f]);v&&!--n.active&&n.event.trigger("ajaxStop");f.complete&&f.complete.call(f.context,e,r);st=!0;f.timeout&&clearTimeout(k);setTimeout(function(){f.iframeTarget||c.remove();e.responseXML=null},100)}}}var h=r[0],d,a,f,v,b,c,l,e,w,y,nt,k,ht=!!n.fn.prop,tt,g,it,rt,et,o,ot,st;if(u)if(ht)for(a=0;a<u.length;a++)d=n(h[u[a].name]),d.prop("disabled",!1);else for(a=0;a<u.length;a++)d=n(h[u[a].name]),d.removeAttr("disabled");if(n(":input[name=submit],:input[id=submit]",h).length){alert('Error: Form elements must not have name or id of "submit".');return}if(f=n.extend(!0,{},n.ajaxSettings,i),f.context=f.context||f,b="jqFormIO"+(new Date).getTime(),f.iframeTarget?(c=n(f.iframeTarget),y=c.attr("name"),y==null?c.attr("name",b):b=y):(c=n('<iframe name="'+b+'" src="'+f.iframeSrc+'" />'),c.css({position:"absolute",top:"-1000px",left:"-1000px"})),l=c[0],e={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(i){var r=i==="timeout"?"timeout":"aborted";t("aborting upload... "+r);this.aborted=1;c.attr("src",f.iframeSrc);e.error=r;f.error&&f.error.call(f.context,e,r,i);v&&n.event.trigger("ajaxError",[e,f,r]);f.complete&&f.complete.call(f.context,e,r)}},v=f.global,v&&!n.active++&&n.event.trigger("ajaxStart"),v&&n.event.trigger("ajaxSend",[e,f]),f.beforeSend&&f.beforeSend.call(f.context,e,f)===!1){f.global&&n.active--;return}if(!e.aborted){w=h.clk;w&&(y=w.name,y&&!w.disabled&&(f.extraData=f.extraData||{},f.extraData[y]=w.value,w.type=="image"&&(f.extraData[y+".x"]=h.clk_x,f.extraData[y+".y"]=h.clk_y)));tt=1;g=2;it=n("meta[name=csrf-token]").attr("content");rt=n("meta[name=csrf-param]").attr("content");rt&&it&&(f.extraData=f.extraData||{},f.extraData[rt]=it);f.forceSync?ft():setTimeout(ft,10);ot=50;var ct=n.parseXML||function(n,t){return window.ActiveXObject?(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(n)):t=(new DOMParser).parseFromString(n,"text/xml"),t&&t.documentElement&&t.documentElement.nodeName!="parsererror"?t:null},lt=n.parseJSON||function(s){return window.eval("("+s+")")},at=function(t,i,r){var f=t.getResponseHeader("content-type")||"",e=i==="xml"||!i&&f.indexOf("xml")>=0,u=e?t.responseXML:t.responseText;return e&&u.documentElement.nodeName==="parsererror"&&n.error&&n.error("parsererror"),r&&r.dataFilter&&(u=r.dataFilter(u,i)),typeof u=="string"&&(i==="json"||!i&&f.indexOf("json")>=0?u=lt(u):(i==="script"||!i&&f.indexOf("javascript")>=0)&&n.globalEval(u)),u}}}var s,a,u,r,h,c,l,f,o,e,p,d;if(!this.length)return t("ajaxSubmit: skipping submit process - no element selected"),this;if(r=this,typeof i=="function"&&(i={success:i}),s=this.attr("method"),a=this.attr("action"),u=typeof a=="string"?n.trim(a):"",u=u||window.location.href||"",u&&(u=(u.match(/^([^#]+)/)||[])[1]),i=n.extend(!0,{url:u,success:n.ajaxSettings.success,type:s||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},i),h={},this.trigger("form-pre-serialize",[this,i,h]),h.veto)return t("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(i.beforeSerialize&&i.beforeSerialize(this,i)===!1)return t("ajaxSubmit: submit aborted via beforeSerialize callback"),this;if(c=i.traditional,c===undefined&&(c=n.ajaxSettings.traditional),f=this.formToArray(i.semantic),i.data&&(i.extraData=i.data,l=n.param(i.data,c)),i.beforeSubmit&&i.beforeSubmit(f,this,i)===!1)return t("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[f,this,i,h]),h.veto)return t("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;o=n.param(f,c);l&&(o=o?o+"&"+l:l);i.type.toUpperCase()=="GET"?(i.url+=(i.url.indexOf("?")>=0?"&":"?")+o,i.data=null):i.data=o;e=[];i.resetForm&&e.push(function(){r.resetForm()});i.clearForm&&e.push(function(){r.clearForm(i.includeHidden)});!i.dataType&&i.target?(p=i.success||function(){},e.push(function(t){var r=i.replaceTarget?"replaceWith":"html";n(i.target)[r](t).each(p,arguments)})):i.success&&e.push(i.success);i.success=function(n,t,u){for(var s=i.context||i,f=0,o=e.length;f<o;f++)e[f].apply(s,[n,t,u||r,r])};var w=n("input:file:enabled[value]",this),v=w.length>0,b="multipart/form-data",k=r.attr("enctype")==b||r.attr("encoding")==b,y=!!(v&&w.get(0).files&&window.FormData);return t("fileAPI :"+y),d=(v||k)&&!y,i.iframe!==!1&&(i.iframe||d)?i.closeKeepAlive?n.get(i.closeKeepAlive,function(){g(f)}):g(f):(v||k)&&y?(i.progress=i.progress||n.noop,nt(f)):n.ajax(i),this.trigger("form-submit-notify",[this,i]),this};n.fn.ajaxForm=function(i){if(this.length===0){var r={s:this.selector,c:this.context};return!n.isReady&&r.s?(t("DOM not ready, queuing ajaxForm"),n(function(){n(r.s,r.c).ajaxForm(i)}),this):(t("terminating; zero elements found by selector"+(n.isReady?"":" (DOM not ready)")),this)}return this.ajaxFormUnbind().bind("submit.form-plugin",function(t){t.isDefaultPrevented()||(t.preventDefault(),n(this).ajaxSubmit(i))}).bind("click.form-plugin",function(t){var r=t.target,u=n(r),f,i,e;if(!u.is(":submit,input:image")){if(f=u.closest(":submit"),f.length==0)return;r=f[0]}i=this;i.clk=r;r.type=="image"&&(t.offsetX!=undefined?(i.clk_x=t.offsetX,i.clk_y=t.offsetY):typeof n.fn.offset=="function"?(e=u.offset(),i.clk_x=t.pageX-e.left,i.clk_y=t.pageY-e.top):(i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop));setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)})};n.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};n.fn.formToArray=function(t){var f=[],r,o,s,h,i,e,u,a,v,l,c;if(this.length===0||(r=this[0],o=t?r.getElementsByTagName("*"):r.elements,!o))return f;for(s=0,a=o.length;s<a;s++)if(u=o[s],i=u.name,i){if(t&&r.clk&&u.type=="image"){u.disabled||r.clk!=u||(f.push({name:i,value:n(u).val(),type:u.type}),f.push({name:i+".x",value:r.clk_x},{name:i+".y",value:r.clk_y}));continue}if(e=n.fieldValue(u,!0),e&&e.constructor==Array)for(h=0,v=e.length;h<v;h++)f.push({name:i,value:e[h]});else e!==null&&typeof e!="undefined"&&f.push({name:i,value:e,type:u.type})}return!t&&r.clk&&(l=n(r.clk),c=l[0],i=c.name,i&&!c.disabled&&c.type=="image"&&(f.push({name:i,value:l.val()}),f.push({name:i+".x",value:r.clk_x},{name:i+".y",value:r.clk_y}))),f};n.fn.formSerialize=function(t){return n.param(this.formToArray(t))};n.fn.fieldSerialize=function(t){var i=[];return this.each(function(){var f=this.name,r,u,e;if(f)if(r=n.fieldValue(this,t),r&&r.constructor==Array)for(u=0,e=r.length;u<e;u++)i.push({name:f,value:r[u]});else r!==null&&typeof r!="undefined"&&i.push({name:this.name,value:r})}),n.param(i)};n.fn.fieldValue=function(t){for(var f,i,r=[],u=0,e=this.length;u<e;u++)(f=this[u],i=n.fieldValue(f,t),i!==null&&typeof i!="undefined"&&(i.constructor!=Array||i.length))&&(i.constructor==Array?n.merge(r,i):r.push(i));return r};n.fieldValue=function(t,i){var a=t.name,u=t.type,h=t.tagName.toLowerCase(),e,o,r,f;if(i===undefined&&(i=!0),i&&(!a||t.disabled||u=="reset"||u=="button"||(u=="checkbox"||u=="radio")&&!t.checked||(u=="submit"||u=="image")&&t.form&&t.form.clk!=t||h=="select"&&t.selectedIndex==-1))return null;if(h=="select"){if(e=t.selectedIndex,e<0)return null;var c=[],l=t.options,s=u=="select-one",v=s?e+1:l.length;for(o=s?e:0;o<v;o++)if(r=l[o],r.selected){if(f=r.value,f||(f=r.attributes&&r.attributes.value&&!r.attributes.value.specified?r.text:r.value),s)return f;c.push(f)}return c}return n(t).val()};n.fn.clearForm=function(t){return this.each(function(){n("input,select,textarea",this).clearFields(t)})};n.fn.clearFields=n.fn.clearInputs=function(n){var t=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var i=this.type,r=this.tagName.toLowerCase();t.test(i)||r=="textarea"||n&&/hidden/.test(i)?this.value="":i=="checkbox"||i=="radio"?this.checked=!1:r=="select"&&(this.selectedIndex=-1)})};n.fn.resetForm=function(){return this.each(function(){typeof this.reset!="function"&&(typeof this.reset!="object"||this.reset.nodeType)||this.reset()})};n.fn.enable=function(n){return n===undefined&&(n=!0),this.each(function(){this.disabled=!n})};n.fn.selected=function(t){return t===undefined&&(t=!0),this.each(function(){var r=this.type,i;r=="checkbox"||r=="radio"?this.checked=t:this.tagName.toLowerCase()=="option"&&(i=n(this).parent("select"),t&&i[0]&&i[0].type=="select-one"&&i.find("option").selected(!1),this.selected=t)})};n.fn.ajaxSubmit.debug=!1}(jQuery),function(n,t,i){n.fn.jScrollPane=function(r){function u(r,u){function li(t){var u,d,g,c,p,w,nt=!1,tt=!1;if(f=t,o===i)p=r.scrollTop(),w=r.scrollLeft(),r.css({overflow:"hidden",padding:0}),h=r.innerWidth()+ht,s=r.innerHeight(),r.width(h),o=n('<div class="jspPane" />').css("padding",yi).append(r.children()),e=n('<div class="jspContainer" />').css({width:h+"px",height:s+"px"}).append(o).appendTo(r);else{if(r.css("width",""),nt=f.stickToBottom&&or(),tt=f.stickToRight&&sr(),c=r.innerWidth()+ht!=h||r.outerHeight()!=s,c&&(h=r.innerWidth()+ht,s=r.innerHeight(),e.css({width:h+"px",height:s+"px"})),!c&&pi==y&&o.outerHeight()==v){r.width(h);return}pi=y;o.css("width","");r.width(h);e.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}o.css("overflow","auto");y=t.contentWidth?t.contentWidth:o[0].scrollWidth;v=o[0].scrollHeight;o.css("overflow","");oi=y/h;gt=v/s;k=gt>1;b=oi>1;b||k?(r.addClass("jspScrollable"),u=f.maintainPosition&&(l||a),u&&(d=et(),g=ot()),nr(),tr(),ir(),u&&(yt(tt?y-h:d,!1),ft(nt?v-s:g,!1)),lr(),hr(),br(),f.enableKeyboardNavigation&&vr(),f.clickOnTrack&&ur(),pr(),f.hijackInternalLinks&&wr()):(r.removeClass("jspScrollable"),o.css({top:0,width:e.width()-ht}),cr(),ar(),yr(),di());f.autoReinitialise&&!at?at=setInterval(function(){li(f)},f.autoReinitialiseDelay):!f.autoReinitialise&&at&&clearInterval(at);p&&r.scrollTop(0)&&ft(p,!1);w&&r.scrollLeft(0)&&yt(w,!1);r.trigger("jsp-initialised",[b||k])}function nr(){k&&(e.append(n('<div class="jspVerticalBar" />').append(n('<div class="jspCap jspCapTop" />'),n('<div class="jspTrack" />').append(n('<div class="jspDrag" />').append(n('<div class="jspDragTop" />'),n('<div class="jspDragBottom" />'))),n('<div class="jspCap jspCapBottom" />'))),ni=e.find(">.jspVerticalBar"),g=ni.find(">.jspTrack"),p=g.find(">.jspDrag"),f.showArrows&&(wt=n('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",ut(0,-1)).bind("click.jsp",pt),bt=n('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp",ut(0,1)).bind("click.jsp",pt),f.arrowScrollOnHover&&(wt.bind("mouseover.jsp",ut(0,-1,wt)),bt.bind("mouseover.jsp",ut(0,1,bt))),ki(g,f.verticalArrowPositions,wt,bt)),lt=s,e.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){lt-=n(this).outerHeight()}),p.hover(function(){p.addClass("jspHover")},function(){p.removeClass("jspHover")}).bind("mousedown.jsp",function(t){n("html").bind("dragstart.jsp selectstart.jsp",pt);p.addClass("jspActive");var i=t.pageY-p.position().top;return n("html").bind("mousemove.jsp",function(n){ct(n.pageY-i,!1)}).bind("mouseup.jsp mouseleave.jsp",gi),!1}),wi())}function wi(){g.height(lt+"px");l=0;si=f.verticalGutter+g.outerWidth();o.width(h-si-ht);try{ni.position().left===0&&o.css("margin-left",si+"px")}catch(n){}}function tr(){b&&(e.append(n('<div class="jspHorizontalBar" />').append(n('<div class="jspCap jspCapLeft" />'),n('<div class="jspTrack" />').append(n('<div class="jspDrag" />').append(n('<div class="jspDragLeft" />'),n('<div class="jspDragRight" />'))),n('<div class="jspCap jspCapRight" />'))),ti=e.find(">.jspHorizontalBar"),nt=ti.find(">.jspTrack"),w=nt.find(">.jspDrag"),f.showArrows&&(kt=n('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",ut(-1,0)).bind("click.jsp",pt),dt=n('<a class="jspArrow jspArrowRight" />').bind("mousedown.jsp",ut(1,0)).bind("click.jsp",pt),f.arrowScrollOnHover&&(kt.bind("mouseover.jsp",ut(-1,0,kt)),dt.bind("mouseover.jsp",ut(1,0,dt))),ki(nt,f.horizontalArrowPositions,kt,dt)),w.hover(function(){w.addClass("jspHover")},function(){w.removeClass("jspHover")}).bind("mousedown.jsp",function(t){n("html").bind("dragstart.jsp selectstart.jsp",pt);w.addClass("jspActive");var i=t.pageX-w.position().left;return n("html").bind("mousemove.jsp",function(n){vt(n.pageX-i,!1)}).bind("mouseup.jsp mouseleave.jsp",gi),!1}),st=e.innerWidth(),bi())}function bi(){e.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){st-=n(this).outerWidth()});nt.width(st+"px");a=0}function ir(){if(b&&k){var t=nt.outerHeight(),i=g.outerWidth();lt-=t;n(ti).find(">.jspCap:visible,>.jspArrow").each(function(){st+=n(this).outerWidth()});st-=i;s-=i;h-=t;nt.parent().append(n('<div class="jspCorner" />').css("width",t+"px"));wi();bi()}b&&o.width(e.outerWidth()-ht+"px");v=o.outerHeight();gt=v/s;b&&(rt=Math.ceil(1/oi*st),rt>f.horizontalDragMaxWidth?rt=f.horizontalDragMaxWidth:rt<f.horizontalDragMinWidth&&(rt=f.horizontalDragMinWidth),w.width(rt+"px"),tt=st-rt,vi(a));k&&(it=Math.ceil(1/gt*lt),it>f.verticalDragMaxHeight?it=f.verticalDragMaxHeight:it<f.verticalDragMinHeight&&(it=f.verticalDragMinHeight),p.height(it+"px"),d=lt-it,ai(l))}function ki(n,t,i,r){var u="before",f="after",e;t=="os"&&(t=/Mac/.test(navigator.platform)?"after":"split");t==u?f=t:t==f&&(u=t,e=i,i=r,r=e);n[u](i)[f](r)}function ut(n,t,i){return function(){return rr(n,t,this,i),this.blur(),!1}}function rr(t,i,r,u){r=n(r).addClass("jspActive");var o,e,s=!0,h=function(){t!==0&&c.scrollByX(t*f.arrowButtonSpeed);i!==0&&c.scrollByY(i*f.arrowButtonSpeed);e=setTimeout(h,s?f.initialDelay:f.arrowRepeatFreq);s=!1};h();o=u?"mouseout.jsp":"mouseup.jsp";u=u||n("html");u.bind(o,function(){r.removeClass("jspActive");e&&clearTimeout(e);e=null;u.unbind(o)})}function ur(){di();k&&g.bind("mousedown.jsp",function(t){if(t.originalTarget===i||t.originalTarget==t.currentTarget){var e=n(this),y=e.offset(),o=t.pageY-y.top-l,r,h=!0,a=function(){var p=e.offset(),n=t.pageY-p.top-it/2,i=s*f.scrollPagePercent,y=d*i/(v-s);if(o<0)l-y>n?c.scrollByY(-i):ct(n);else if(o>0)l+y<n?c.scrollByY(i):ct(n);else{u();return}r=setTimeout(a,h?f.initialDelay:f.trackClickRepeatFreq);h=!1},u=function(){r&&clearTimeout(r);r=null;n(document).unbind("mouseup.jsp",u)};return a(),n(document).bind("mouseup.jsp",u),!1}});b&&nt.bind("mousedown.jsp",function(t){if(t.originalTarget===i||t.originalTarget==t.currentTarget){var e=n(this),v=e.offset(),o=t.pageX-v.left-a,r,s=!0,l=function(){var p=e.offset(),n=t.pageX-p.left-rt/2,i=h*f.scrollPagePercent,v=tt*i/(y-h);if(o<0)a-v>n?c.scrollByX(-i):vt(n);else if(o>0)a+v<n?c.scrollByX(i):vt(n);else{u();return}r=setTimeout(l,s?f.initialDelay:f.trackClickRepeatFreq);s=!1},u=function(){r&&clearTimeout(r);r=null;n(document).unbind("mouseup.jsp",u)};return l(),n(document).bind("mouseup.jsp",u),!1}})}function di(){nt&&nt.unbind("mousedown.jsp");g&&g.unbind("mousedown.jsp")}function gi(){n("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp");p&&p.removeClass("jspActive");w&&w.removeClass("jspActive")}function ct(n,t){k&&(n<0?n=0:n>d&&(n=d),t===i&&(t=f.animateScroll),t?c.animate(p,"top",n,ai):(p.css("top",n),ai(n)))}function ai(n){n===i&&(n=p.position().top);e.scrollTop(0);l=n;var t=l===0,u=l==d,h=n/d,f=-h*(v-s);(ii!=t||ui!=u)&&(ii=t,ui=u,r.trigger("jsp-arrow-change",[ii,ui,ri,fi]));fr(t,u);o.css("top",f);r.trigger("jsp-scroll-y",[-f,t,u]).trigger("scroll")}function vt(n,t){b&&(n<0?n=0:n>tt&&(n=tt),t===i&&(t=f.animateScroll),t?c.animate(w,"left",n,vi):(w.css("left",n),vi(n)))}function vi(n){n===i&&(n=w.position().left);e.scrollTop(0);a=n;var t=a===0,u=a==tt,s=n/tt,f=-s*(y-h);(ri!=t||fi!=u)&&(ri=t,fi=u,r.trigger("jsp-arrow-change",[ii,ui,ri,fi]));er(t,u);o.css("left",f);r.trigger("jsp-scroll-x",[-f,t,u]).trigger("scroll")}function fr(n,t){f.showArrows&&(wt[n?"addClass":"removeClass"]("jspDisabled"),bt[t?"addClass":"removeClass"]("jspDisabled"))}function er(n,t){f.showArrows&&(kt[n?"addClass":"removeClass"]("jspDisabled"),dt[t?"addClass":"removeClass"]("jspDisabled"))}function ft(n,t){var i=n/(v-s);ct(i*d,t)}function yt(n,t){var i=n/(y-h);vt(i*tt,t)}function ei(t,i,r){var u,v,y,o=0,c=0,p,w,b,k,l,a;try{u=n(t)}catch(d){return}for(v=u.outerHeight(),y=u.outerWidth(),e.scrollTop(0),e.scrollLeft(0);!u.is(".jspPane");)if(o+=u.position().top,c+=u.position().left,u=u.offsetParent(),/^body|html$/i.test(u[0].nodeName))return;p=ot();b=p+s;o<p||i?l=o-f.verticalGutter:o+v>b&&(l=o-s+v+f.verticalGutter);l&&ft(l,r);w=et();k=w+h;c<w||i?a=c-f.horizontalGutter:c+y>k&&(a=c-h+y+f.horizontalGutter);a&&yt(a,r)}function et(){return-o.position().left}function ot(){return-o.position().top}function or(){var n=v-s;return n>20&&n-ot()<10}function sr(){var n=y-h;return n>20&&n-et()<10}function hr(){e.unbind(ci).bind(ci,function(n,t,i,r){var u=a,e=l;return c.scrollBy(i*f.mouseWheelSpeed,-r*f.mouseWheelSpeed,!1),u==a&&e==l})}function cr(){e.unbind(ci)}function pt(){return!1}function lr(){o.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(n){ei(n.target,!1)})}function ar(){o.find(":input,a").unbind("focus.jsp")}function vr(){function h(){var n=a,r=l;switch(t){case 40:c.scrollByY(f.keyboardSpeed,!1);break;case 38:c.scrollByY(-f.keyboardSpeed,!1);break;case 34:case 32:c.scrollByY(s*f.scrollPagePercent,!1);break;case 33:c.scrollByY(-s*f.scrollPagePercent,!1);break;case 39:c.scrollByX(f.keyboardSpeed,!1);break;case 37:c.scrollByX(-f.keyboardSpeed,!1)}return i=n!=a||r!=l}var t,i,u=[];b&&u.push(ti[0]);k&&u.push(ni[0]);o.focus(function(){r.focus()});r.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(r){if(r.target===this||u.length&&n(r.target).closest(u).length){var f=a,e=l;switch(r.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:t=r.keyCode;h();break;case 35:ft(v-s);t=null;break;case 36:ft(0);t=null}return i=r.keyCode==t&&f!=a||e!=l,!i}}).bind("keypress.jsp",function(n){return n.keyCode==t&&h(),!i});f.hideFocus?(r.css("outline","none"),"hideFocus"in e[0]&&r.attr("hideFocus",!0)):(r.css("outline",""),"hideFocus"in e[0]&&r.attr("hideFocus",!1))}function yr(){r.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp")}function pr(){if(location.hash&&location.hash.length>1){var t,r,i=escape(location.hash.substr(1));try{t=n("#"+i+', a[name="'+i+'"]')}catch(u){return}t.length&&o.find(i)&&(e.scrollTop()===0?r=setInterval(function(){e.scrollTop()>0&&(ei(t,!0),n(document).scrollTop(e.position().top),clearInterval(r))},50):(ei(t,!0),n(document).scrollTop(e.position().top)))}}function wr(){n(document.body).data("jspHijack")||(n(document.body).data("jspHijack",!0),n(document.body).delegate("a[href*=#]","click",function(i){var c=this.href.substr(0,this.href.indexOf("#")),s=location.href,f,r,u,h,e,o;if(location.href.indexOf("#")!==-1&&(s=location.href.substr(0,location.href.indexOf("#"))),c===s){f=escape(this.href.substr(this.href.indexOf("#")+1));r;try{r=n("#"+f+', a[name="'+f+'"]')}catch(l){return}r.length&&(u=r.closest(".jspScrollable"),h=u.data("jsp"),h.scrollToElement(r,!0),u[0].scrollIntoView&&(e=n(t).scrollTop(),o=r.offset().top,(o<e||o>e+n(t).height())&&u[0].scrollIntoView()),i.preventDefault())}}))}function br(){var u,f,t,i,n,r=!1;e.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(e){var o=e.originalEvent.touches[0];u=et();f=ot();t=o.pageX;i=o.pageY;n=!1;r=!0}).bind("touchmove.jsp",function(e){if(r){var o=e.originalEvent.touches[0],s=a,h=l;return c.scrollTo(u+t-o.pageX,f+i-o.pageY),n=n||Math.abs(t-o.pageX)>5||Math.abs(i-o.pageY)>5,s==a&&h==l}}).bind("touchend.jsp",function(){r=!1}).bind("click.jsp-touchclick",function(){if(n)return n=!1,!1})}function kr(){var n=ot(),t=et();r.removeClass("jspScrollable").unbind(".jsp");r.replaceWith(hi.append(o.children()));hi.scrollTop(n);hi.scrollLeft(t);at&&clearInterval(at)}var f,c=this,o,h,s,e,y,v,oi,gt,k,b,p,d,l,w,tt,a,ni,g,si,lt,it,wt,bt,ti,nt,st,rt,kt,dt,at,yi,ht,pi,ii=!0,ri=!0,ui=!1,fi=!1,hi=r.clone(!1,!1).empty(),ci=n.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";yi=r.css("paddingTop")+" "+r.css("paddingRight")+" "+r.css("paddingBottom")+" "+r.css("paddingLeft");ht=(parseInt(r.css("paddingLeft"),10)||0)+(parseInt(r.css("paddingRight"),10)||0);n.extend(c,{reinitialise:function(t){t=n.extend({},f,t);li(t)},scrollToElement:function(n,t,i){ei(n,t,i)},scrollTo:function(n,t,i){yt(n,i);ft(t,i)},scrollToX:function(n,t){yt(n,t)},scrollToY:function(n,t){ft(n,t)},scrollToPercentX:function(n,t){yt(n*(y-h),t)},scrollToPercentY:function(n,t){ft(n*(v-s),t)},scrollBy:function(n,t,i){c.scrollByX(n,i);c.scrollByY(t,i)},scrollByX:function(n,t){var i=et()+Math[n<0?"floor":"ceil"](n),r=i/(y-h);vt(r*tt,t)},scrollByY:function(n,t){var i=ot()+Math[n<0?"floor":"ceil"](n),r=i/(v-s);ct(r*d,t)},positionDragX:function(n,t){vt(n,t)},positionDragY:function(n,t){ct(n,t)},animate:function(n,t,i,r){var u={};u[t]=i;n.animate(u,{duration:f.animateDuration,easing:f.animateEase,queue:!1,step:r})},getContentPositionX:function(){return et()},getContentPositionY:function(){return ot()},getContentWidth:function(){return y},getContentHeight:function(){return v},getPercentScrolledX:function(){return et()/(y-h)},getPercentScrolledY:function(){return ot()/(v-s)},getIsScrollableH:function(){return b},getIsScrollableV:function(){return k},getContentPane:function(){return o},scrollToBottom:function(n){ct(d,n)},hijackInternalLinks:n.noop,destroy:function(){kr()}});li(u)}return r=n.extend({},n.fn.jScrollPane.defaults,r),n.each(["mouseWheelSpeed","arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){r[this]=r[this]||r.speed}),this.each(function(){var i=n(this),t=i.data("jsp");t?t.reinitialise(r):(t=new u(i,r),i.data("jsp",t))})};n.fn.jScrollPane.defaults={showArrows:!1,maintainPosition:!0,stickToBottom:!1,stickToRight:!1,clickOnTrack:!0,autoReinitialise:!1,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,contentWidth:i,animateScroll:!1,animateDuration:300,animateEase:"linear",hijackInternalLinks:!1,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:0,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:!1,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:!0,hideFocus:!1,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:.8}}(jQuery,this);jQuery.JSON={useHasOwn:{}.hasOwnProperty?!0:!1,pad:function(n){return n<10?"0"+n:n},m:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},encodeString:function(n){return/["\\\x00-\x1f]/.test(n)?'"'+n.replace(/([\x00-\x1f\\"])/g,function(n,t){var i=m[t];return i?i:(i=t.charCodeAt(),"\\u00"+Math.floor(i/16).toString(16)+(i%16).toString(16))})+'"':'"'+n+'"'},encodeArray:function(n){for(var t=["["],u,f=n.length,r,i=0;i<f;i+=1){r=n[i];switch(typeof r){case"undefined":case"function":case"unknown":break;default:u&&t.push(",");t.push(r===null?"null":this.encode(r));u=!0}}return t.push("]"),t.join("")},encodeDate:function(n){return'"'+n.getFullYear()+"-"+pad(n.getMonth()+1)+"-"+pad(n.getDate())+"T"+pad(n.getHours())+":"+pad(n.getMinutes())+":"+pad(n.getSeconds())+'"'},encode:function(n){if(typeof n=="undefined"||n===null)return"null";if(n instanceof Array)return this.encodeArray(n);if(n instanceof Date)return this.encodeDate(n);if(typeof n=="string")return this.encodeString(n);if(typeof n=="number")return isFinite(n)?String(n):"null";if(typeof n=="boolean")return String(n);var u=this,t=["{"],f,i,r;for(i in n)if(!this.useHasOwn||n.hasOwnProperty(i)){r=n[i];switch(typeof r){case"undefined":case"function":case"unknown":break;default:f&&t.push(",");t.push(u.encode(i),":",r===null?"null":u.encode(r));f=!0}}return t.push("}"),t.join("")},decode:function(json){return eval("("+json+")")}},function(n){function r(t){var i=t||window.event,e=[].slice.call(arguments,1),r=0,f=0,u=0;return t=n.event.fix(i),t.type="mousewheel",i.wheelDelta&&(r=i.wheelDelta/120),i.detail&&(r=-i.detail/3),u=r,i.axis!==undefined&&i.axis===i.HORIZONTAL_AXIS&&(u=0,f=-1*r),i.wheelDeltaY!==undefined&&(u=i.wheelDeltaY/120),i.wheelDeltaX!==undefined&&(f=i.wheelDeltaX/-120),e.unshift(t,r,f,u),(n.event.dispatch||n.event.handle).apply(this,e)}var t=["DOMMouseScroll","mousewheel"],i;if(n.event.fixHooks)for(i=t.length;i;)n.event.fixHooks[t[--i]]=n.event.mouseHooks;n.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var n=t.length;n;)this.addEventListener(t[--n],r,!1);else this.onmousewheel=r},teardown:function(){if(this.removeEventListener)for(var n=t.length;n;)this.removeEventListener(t[--n],r,!1);else this.onmousewheel=null}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})}(jQuery),function(n){jQuery.fn.extend({slimScroll:function(t){var i=n.extend({},{wheelStep:20,width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:"0.2",railClass:"slimscroll-rail",barClass:"slimscroll-bar",wrapperClass:"slimscroll-container",allowPageScroll:!1,scroll:0,touchScrollStep:200},t);return this.each(function(){function s(n,t,e){var o=n,c=r.outerHeight()-u.outerHeight(),s;t&&(o=parseInt(u.css("top"))+n*parseInt(i.wheelStep)/100*u.outerHeight(),o=Math.min(Math.max(o,0),c),u.css({top:o+"px"}));f=parseInt(u.css("top"))/(r.outerHeight()-u.outerHeight());o=f*(r[0].scrollHeight-r.outerHeight());e&&(o=n,s=o/r[0].scrollHeight*r.outerHeight(),s=Math.min(Math.max(s,0),c),u.css({top:s+"px"}));r.scrollTop(o);g();h()}function d(){w=Math.max(r.outerHeight()/r[0].scrollHeight*r.outerHeight(),et);u.css({height:w+"px"})}function g(){if(d(),clearTimeout(nt),f==~~f&&(l=i.allowPageScroll,it!=f)){var n=~~f==0?"top":"bottom";r.trigger("slimscroll",n)}if(it=f,w>=r.outerHeight()){l=!0;return}u.stop(!0,!0).fadeIn("fast");i.railVisible&&o.stop(!0,!0).fadeIn("fast")}function h(){i.alwaysVisible||(nt=setTimeout(function(){i.disableFadeOut&&c||y||p||(u.fadeOut("slow"),o.fadeOut("slow"))},1e3))}var c,y,p,nt,tt,w,f,it,b="<div><\/div>",et=30,l=!1,r=n(this),e=r.parent(),a,rt,v,k,ft;if(e.hasClass("slimscroll-container")){a=r.scrollTop();u=e.find(".slimscroll-bar");o=e.find(".slimscroll-rail");d();t&&("scrollTo"in t?a=parseInt(i.scrollTo):"scrollBy"in t&&(a+=parseInt(i.scrollBy)),s(a,!1,!0));return}i.height=i.height=="auto"?e.innerHeight():i.height;rt=n(b).addClass(i.wrapperClass).css({position:"relative",overflow:"hidden",width:i.width,height:i.height});r.css({overflow:"hidden",width:i.width,height:i.height});var o=n(b).addClass(i.railClass).css({width:i.size,height:"100%",position:"absolute",top:0,display:i.alwaysVisible&&i.railVisible?"block":"none","border-radius":i.size,background:i.railColor,opacity:i.railOpacity,zIndex:90}),u=n(b).addClass(i.barClass).css({background:i.color,width:i.size,position:"absolute",top:0,opacity:i.opacity,display:i.alwaysVisible?"block":"none","border-radius":i.size,BorderRadius:i.size,MozBorderRadius:i.size,WebkitBorderRadius:i.size,zIndex:99}),ut=i.position=="right"?{right:i.distance}:{left:i.distance};o.css(ut);u.css(ut);r.wrap(rt);e=r.parent();e.append(u);e.append(o);u.draggable({axis:"y",containment:"parent",start:function(){p=!0},stop:function(){p=!1;h()},drag:function(){s(0,n(this).position().top,!1)}});o.hover(function(){g()},function(){h()});u.hover(function(){y=!0},function(){y=!1});r.hover(function(){c=!0;g();h()},function(){c=!1;h()});r.bind("touchstart",function(n){n.originalEvent.touches.length&&(tt=n.originalEvent.touches[0].pageY)});r.bind("touchmove",function(n){if(n.originalEvent.preventDefault(),n.originalEvent.touches.length){var t=(tt-n.originalEvent.touches[0].pageY)/i.touchScrollStep;s(t,!0)}});v=function(n){if(c){var n=n||window.event,t=0;n.wheelDelta&&(t=-n.wheelDelta/120);n.detail&&(t=n.detail/3);s(t,!0);n.preventDefault&&!l&&n.preventDefault();l||(n.returnValue=!1)}};k=this;ft=function(){window.addEventListener?(k.addEventListener("DOMMouseScroll",v,!1),k.addEventListener("mousewheel",v,!1)):document.attachEvent("onmousewheel",v)};ft();d();i.start=="bottom"?(u.css({top:r.outerHeight()-u.outerHeight()}),s(0,!0)):typeof i.start=="object"&&(s(n(i.start).position().top,null,!0),i.alwaysVisible||u.hide())}),this}});jQuery.fn.extend({slimscroll:jQuery.fn.slimScroll})}(jQuery);typeof Object.create!="function"&&(Object.create=function(n){function t(){}return t.prototype=n,new t});ua={toString:function(){return navigator.userAgent},test:function(n){return this.toString().toLowerCase().indexOf(n.toLowerCase())>-1}};ua.version=(ua.toString().toLowerCase().match(/[\s\S]+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1];ua.webkit=ua.test("webkit");ua.gecko=ua.test("gecko")&&!ua.webkit;ua.opera=ua.test("opera");ua.ie=ua.test("msie")&&!ua.opera;ua.ie6=ua.ie&&document.compatMode&&typeof document.documentElement.style.maxHeight=="undefined";ua.ie7=ua.ie&&document.documentElement&&typeof document.documentElement.style.maxHeight!="undefined"&&typeof XDomainRequest=="undefined";ua.ie8=ua.ie&&typeof XDomainRequest!="undefined";domReady=function(){var t=[],n=function(){if(!arguments.callee.done){arguments.callee.done=!0;for(var n=0;n<t.length;n++)t[n]()}};return document.addEventListener&&document.addEventListener("DOMContentLoaded",n,!1),ua.ie&&(function(){try{document.documentElement.doScroll("left")}catch(t){setTimeout(arguments.callee,50);return}n()}(),document.onreadystatechange=function(){document.readyState==="complete"&&(document.onreadystatechange=null,n())}),ua.webkit&&document.readyState&&function(){document.readyState!=="loading"?n():setTimeout(arguments.callee,10)}(),window.onload=n,function(n){return typeof n=="function"&&(t[t.length]=n),n}}();cssHelper=function(){var t={BLOCKS:/[^\s{][^{]*\{(?:[^{}]*\{[^{}]*\}[^{}]*|[^{}]*)*\}/g,BLOCKS_INSIDE:/[^\s{][^{]*\{[^{}]*\}/g,DECLARATIONS:/[a-zA-Z\-]+[^;]*:[^;]+;/g,RELATIVE_URLS:/url\(['"]?([^\/\)'"][^:\)'"]+)['"]?\)/g,REDUNDANT_COMPONENTS:/(?:\/\*([^*\\\\]|\*(?!\/))+\*\/|@import[^;]+;)/g,REDUNDANT_WHITESPACE:/\s*(,|:|;|\{|\})\s*/g,MORE_WHITESPACE:/\s{2,}/g,FINAL_SEMICOLONS:/;\}/g,NOT_WHITESPACE:/\S+/g},i,s=!1,e=[],c=function(n){typeof n=="function"&&(e[e.length]=n)},w=function(){for(var n=0;n<e.length;n++)e[n](i)},r={},o=function(n,t){var i,u;if(r[n]&&(i=r[n].listeners,i))for(u=0;u<i.length;u++)i[u](t)},b=function(n,t,i){var r,u;if(ua.ie&&!window.XMLHttpRequest&&(window.XMLHttpRequest=function(){return new ActiveXObject("Microsoft.XMLHTTP")}),!XMLHttpRequest)return"";r=new XMLHttpRequest;try{r.open("get",n,!0);r.setRequestHeader("X_REQUESTED_WITH","XMLHttpRequest")}catch(f){i();return}u=!1;setTimeout(function(){u=!0},5e3);document.documentElement.style.cursor="progress";r.onreadystatechange=function(){r.readyState!==4||u||(!r.status&&location.protocol==="file:"||r.status>=200&&r.status<300||r.status===304||navigator.userAgent.indexOf("Safari")>-1&&typeof r.status=="undefined"?t(r.responseText):i(),document.documentElement.style.cursor="",r=null)};r.send("")},l=function(n){return n=n.replace(t.REDUNDANT_COMPONENTS,""),n=n.replace(t.REDUNDANT_WHITESPACE,"$1"),n=n.replace(t.MORE_WHITESPACE," "),n.replace(t.FINAL_SEMICOLONS,"}")},u={mediaQueryList:function(n){var r={},s=n.indexOf("{"),h=n.substring(0,s),i,f;n=n.substring(s+1,n.length-1);var e=[],o=[],c=h.toLowerCase().substring(7).split(",");for(i=0;i<c.length;i++)e[e.length]=u.mediaQuery(c[i],r);if(f=n.match(t.BLOCKS_INSIDE),f!==null)for(i=0;i<f.length;i++)o[o.length]=u.rule(f[i],r);return r.getMediaQueries=function(){return e},r.getRules=function(){return o},r.getListText=function(){return h},r.getCssText=function(){return n},r},mediaQuery:function(n,i){var f,r,o;n=n||"";var s=!1,u,e=[],c=!0,h=n.match(t.NOT_WHITESPACE);for(f=0;f<h.length;f++)r=h[f],u||r!=="not"&&r!=="only"?u?r.charAt(0)==="("&&(o=r.substring(1,r.length-1).split(":"),e[e.length]={mediaFeature:o[0],value:o[1]||null}):u=r:r==="not"&&(s=!0);return{getList:function(){return i||null},getValid:function(){return c},getNot:function(){return s},getMediaType:function(){return u},getExpressions:function(){return e}}},rule:function(n,t){for(var i={},e=n.indexOf("{"),o=n.substring(0,e),h=o.split(","),r=[],s=n.substring(e+1,n.length-1).split(";"),f=0;f<s.length;f++)r[r.length]=u.declaration(s[f],i);return i.getMediaQueryList=function(){return t||null},i.getSelectors=function(){return h},i.getSelectorText=function(){return o},i.getDeclarations=function(){return r},i.getPropertyValue=function(n){for(var t=0;t<r.length;t++)if(r[t].getProperty()===n)return r[t].getValue();return null},i},declaration:function(n,t){var i=n.indexOf(":"),r=n.substring(0,i),u=n.substring(i+1);return{getRule:function(){return t||null},getProperty:function(){return r},getValue:function(){return u}}}},a=function(n){var r,h,v,o,c,l;if(typeof n.cssHelperText=="string"){var f={mediaQueryLists:[],rules:[],selectors:{},declarations:[],properties:{}},a=f.mediaQueryLists,e=f.rules,s=n.cssHelperText.match(t.BLOCKS);if(s!==null)for(r=0;r<s.length;r++)s[r].substring(0,7)==="@media "?(a[a.length]=u.mediaQueryList(s[r]),e=f.rules=e.concat(a[a.length-1].getRules())):e[e.length]=u.rule(s[r]);for(h=f.selectors,v=function(n){for(var r=n.getSelectors(),t,i=0;i<r.length;i++)t=r[i],h[t]||(h[t]=[]),h[t][h[t].length]=n},r=0;r<e.length;r++)v(e[r]);for(o=f.declarations,r=0;r<e.length;r++)o=f.declarations=o.concat(e[r].getDeclarations());for(c=f.properties,r=0;r<o.length;r++)l=o[r].getProperty(),c[l]||(c[l]=[]),c[l][c[l].length]=o[r];return n.cssHelperParsed=f,i[i.length]=n,f}},v=function(n,t){return n.cssHelperText=l(t||n.innerHTML),a(n)},k=function(){var r,u;s=!0;i=[];var n=[],f=function(){for(var i,t=0;t<n.length;t++)a(n[t]);for(i=document.getElementsByTagName("style"),t=0;t<i.length;t++)v(i[t]);s=!1;w()},e=document.getElementsByTagName("link");for(r=0;r<e.length;r++)u=e[r],u.getAttribute("rel").indexOf("style")>-1&&u.href&&u.href.length!==0&&!u.disabled&&(n[n.length]=u);if(n.length>0){var o=0,h=function(){o++;o===n.length&&f()},c=function(n){var i=n.href;b(i,function(r){r=l(r).replace(t.RELATIVE_URLS,"url("+i.substring(0,i.lastIndexOf("/"))+"/$1)");n.cssHelperText=r;h()},h)};for(r=0;r<n.length;r++)c(n[r])}else f()},y={mediaQueryLists:"array",rules:"array",selectors:"object",declarations:"array",properties:"object"},n={mediaQueryLists:null,rules:null,selectors:null,declarations:null,properties:null},p=function(t,i){var u,r;if(n[t]!==null){if(y[t]==="array")return n[t]=n[t].concat(i);u=n[t];for(r in i)i.hasOwnProperty(r)&&(u[r]=u[r]?u[r].concat(i[r]):i[r]);return u}},f=function(t){n[t]=y[t]==="array"?[]:{};for(var r=0;r<i.length;r++)p(t,i[r].cssHelperParsed[t]);return n[t]},h;return domReady(function(){for(var t=document.body.getElementsByTagName("*"),n=0;n<t.length;n++)t[n].checkedByCssHelper=!0;document.implementation.hasFeature("MutationEvents","2.0")||window.MutationEvent?document.body.addEventListener("DOMNodeInserted",function(n){var t=n.target;t.nodeType===1&&(o("DOMElementInserted",t),t.checkedByCssHelper=!0)},!1):setInterval(function(){for(var t=document.body.getElementsByTagName("*"),n=0;n<t.length;n++)t[n].checkedByCssHelper||(o("DOMElementInserted",t[n]),t[n].checkedByCssHelper=!0)},1e3)}),h=function(n){return typeof window.innerWidth!="undefined"?window["inner"+n]:typeof document.documentElement!="undefined"&&typeof document.documentElement.clientWidth!="undefined"&&document.documentElement.clientWidth!=0?document.documentElement["client"+n]:void 0},{addStyle:function(n,t){var i=document.createElement("style");return i.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(i),i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),i.addedWithCssHelper=!0,typeof t=="undefined"||t===!0?cssHelper.parsed(function(){var r=v(i,n),t;for(t in r)r.hasOwnProperty(t)&&p(t,r[t]);o("newStyleParsed",i)}):i.parsingDisallowed=!0,i},removeStyle:function(n){return n.parentNode.removeChild(n)},parsed:function(n){s?c(n):typeof i!="undefined"?typeof n=="function"&&n(i):(c(n),k())},mediaQueryLists:function(t){cssHelper.parsed(function(){t(n.mediaQueryLists||f("mediaQueryLists"))})},rules:function(t){cssHelper.parsed(function(){t(n.rules||f("rules"))})},selectors:function(t){cssHelper.parsed(function(){t(n.selectors||f("selectors"))})},declarations:function(t){cssHelper.parsed(function(){t(n.declarations||f("declarations"))})},properties:function(t){cssHelper.parsed(function(){t(n.properties||f("properties"))})},broadcast:o,addListener:function(n,t){typeof t=="function"&&(r[n]||(r[n]={listeners:[]}),r[n].listeners[r[n].listeners.length]=t)},removeListener:function(n,t){var u,i;if(typeof t=="function"&&r[n])for(u=r[n].listeners,i=0;i<u.length;i++)u[i]===t&&(u.splice(i,1),i-=1)},getViewportWidth:function(){return h("Width")},getViewportHeight:function(){return h("Height")}}}();domReady(function(){var n,r={LENGTH_UNIT:/[0-9]+(em|ex|px|in|cm|mm|pt|pc)$/,RESOLUTION_UNIT:/[0-9]+(dpi|dpcm)$/,ASPECT_RATIO:/^[0-9]+\/[0-9]+$/,ABSOLUTE_VALUE:/^[0-9]*(\.[0-9]+)*$/},i=[],u=function(){var r="css3-mediaqueries-test",n=document.createElement("div"),t,i;return n.id=r,t=cssHelper.addStyle("@media all and (width) { #"+r+" { width: 1px !important; } }",!1),document.body.appendChild(n),i=n.offsetWidth===1,t.parentNode.removeChild(t),n.parentNode.removeChild(n),u=function(){return i},i},h=function(){n=document.createElement("div");n.style.cssText="position:absolute;top:-9999em;left:-9999em;margin:0;border:none;padding:0;width:1em;font-size:1em;";document.body.appendChild(n);n.offsetWidth!==16&&(n.style.fontSize=16/n.offsetWidth+"em");n.style.width=""},f=function(t){n.style.width=t;var i=n.offsetWidth;return n.style.width="",i},c=function(n,t){var u=n.length,e=n.substring(0,4)==="min-",o=!e&&n.substring(0,4)==="max-",s,i,y,h,c,l,a,v;return t!==null&&(r.LENGTH_UNIT.exec(t)?(s="length",i=f(t)):r.RESOLUTION_UNIT.exec(t)?(s="resolution",i=parseInt(t,10),y=t.substring((i+"").length)):r.ASPECT_RATIO.exec(t)?(s="aspect-ratio",i=t.split("/")):r.ABSOLUTE_VALUE?(s="absolute",i=t):s="unknown"),"device-width"===n.substring(u-12,u)?(h=screen.width,t!==null?s==="length"?e&&h>=i||o&&h<i||!e&&!o&&h===i:!1:h>0):"device-height"===n.substring(u-13,u)?(c=screen.height,t!==null?s==="length"?e&&c>=i||o&&c<i||!e&&!o&&c===i:!1:c>0):"width"===n.substring(u-5,u)?(h=document.documentElement.clientWidth||document.body.clientWidth,t!==null?s==="length"?e&&h>=i||o&&h<i||!e&&!o&&h===i:!1:h>0):"height"===n.substring(u-6,u)?(c=document.documentElement.clientHeight||document.body.clientHeight,t!==null?s==="length"?e&&c>=i||o&&c<i||!e&&!o&&c===i:!1:c>0):"device-aspect-ratio"===n.substring(u-19,u)?s==="aspect-ratio"&&screen.width*i[1]==screen.height*i[0]:"color-index"===n.substring(u-11,u)?(l=Math.pow(2,screen.colorDepth),t!==null?s==="absolute"?e&&l>=i||o&&l<i||!e&&!o&&l===i:!1:l>0):"color"===n.substring(u-5,u)?(a=screen.colorDepth,t!==null?s==="absolute"?e&&a>=i||o&&a<i||!e&&!o&&a===i:!1:a>0):"resolution"===n.substring(u-10,u)?(v=y==="dpcm"?f("1cm"):f("1in"),t!==null?s==="resolution"?e&&v>=i||o&&v<i||!e&&!o&&v===i:!1:v>0):!1},l=function(n){var i=n.getValid(),r=n.getExpressions(),f=r.length,t,u;if(f>0){for(t=0;t<f&&i;t++)i=c(r[t].mediaFeature,r[t].value);return u=n.getNot(),i&&!u||u&&!i}},a=function(n){for(var f=n.getMediaQueries(),e={},r,u,o,t=0;t<f.length;t++)l(f[t])&&(e[f[t].getMediaType()]=!0);r=[];u=0;for(o in e)e.hasOwnProperty(o)&&(u>0&&(r[u++]=","),r[u++]=o);r.length>0&&(i[i.length]=cssHelper.addStyle("@media "+r.join("")+"{"+n.getCssText()+"}",!1))},o=function(n){for(var t=0;t<n.length;t++)a(n[t]);ua.ie?(document.documentElement.style.display="block",setTimeout(function(){document.documentElement.style.display=""},0),setTimeout(function(){cssHelper.broadcast("cssMediaQueriesTested")},100)):cssHelper.broadcast("cssMediaQueriesTested")},s=function(){for(var n=0;n<i.length;n++)cssHelper.removeStyle(i[n]);i=[];cssHelper.mediaQueryLists(o)},e=0,v=function(){var t=cssHelper.getViewportWidth(),i=cssHelper.getViewportHeight(),n,r,f;ua.ie&&(n=document.createElement("div"),n.style.position="absolute",n.style.top="-9999em",n.style.overflow="scroll",document.body.appendChild(n),e=n.offsetWidth-n.clientWidth,document.body.removeChild(n));f=function(){var n=cssHelper.getViewportWidth(),f=cssHelper.getViewportHeight();(Math.abs(n-t)>e||Math.abs(f-i)>e)&&(t=n,i=f,clearTimeout(r),r=setTimeout(function(){u()?cssHelper.broadcast("cssMediaQueriesTested"):s()},500))};window.onresize=function(){var n=window.onresize||function(){};return function(){n();f()}}()},t=document.documentElement;return t.style.marginLeft="-32767px",setTimeout(function(){t.style.marginTop=""},2e4),function(){u()?t.style.marginLeft="":(cssHelper.addListener("newStyleParsed",function(n){o(n.cssHelperParsed.mediaQueryLists)}),cssHelper.addListener("cssMediaQueriesTested",function(){ua.ie&&(t.style.width="1px");setTimeout(function(){t.style.width="";t.style.marginLeft=""},0);cssHelper.removeListener("cssMediaQueriesTested",arguments.callee)}),h(),s());v()}}());try{document.execCommand("BackgroundImageCache",!1,!0)}catch(e){}jQuery(document).ready(function(){function a(){y();o();r=jQuery(this).find("ul").eq(0).css("visibility","visible");u=jQuery(this).attr("id");jQuery("#"+u+" a.mnTpLnk2").removeClass("mnTpLnk2").addClass("mnTpLnkOn")}function o(){r&&r.css("visibility","hidden");jQuery("#"+u+" a.mnTpLnkOn").removeClass("mnTpLnkOn").addClass("mnTpLnk2")}function v(){t=window.setTimeout(o,l)}function y(){t&&(window.clearTimeout(t),t=null)}var l=500,t=0,r=0,u=0,i,f,p,e,c;jQuery("#tpNvFreeLanceMenu2 > li,#tpNvMenu2 > li").bind("mouseover",a);jQuery("#tpNvFreeLanceMenu2 > li,#tpNvMenu2 > li").bind("mouseout",v);var n=jQuery(window),s=n.width(),h=n.height();setInterval(function(){(s!=n.width()||h!=n.height())&&(s=n.width(),h=n.height())},300);i=jQuery("div.tabs > div");i.hide().filter(":first").show();jQuery("div.tabs ul.tabNavigation span a").click(function(){return i.hide(),i.filter(this.hash).show(),jQuery("div.tabs ul.tabNavigation span a").removeClass("selected"),jQuery(this).addClass("selected"),!1}).filter(":first").click();f=jQuery(".actBtn").css("background-color");p="#146994";jQuery(".actBtn").css({backgroundColor:f},0);jQuery(".actBtn").hover(function(){},function(){$(this).stop().animate({backgroundColor:f},333)});e=jQuery(".actBtnGr").css("background-color");c="#4b6e04";jQuery(".actBtnGr").css({backgroundColor:e},0);jQuery(".actBtnGr").hover(function(){$(this).stop().animate({backgroundColor:c},333)},function(){$(this).stop().animate({backgroundColor:e},333)})}),function(n){n.fn.expandAll=function(t){var i=n.extend({},n.fn.expandAll.defaults,t);return this.each(function(){function a(){for(var r,t,f,i=0,u=arguments.length;i<u;i++)if((r=arguments[i],t=n(r),t.scrollTop()>0)||(t.scrollTop(1),f=t.scrollTop()>0,t.scrollTop(0),f))return r;return[]}var t=n(this),s,h,u,f,r,c,l,e,o;if(i.switchPosition=="before"?(n.fn.findSibling=n.fn.prev,n.fn.insrt=n.fn.before):(n.fn.findSibling=n.fn.next,n.fn.insrt=n.fn.after),r=this.id.length?"#"+this.id:this.className.length?this.tagName.toLowerCase()+"."+this.className.split(" ").join("."):this.tagName.toLowerCase(),i.ref&&t.find(i.ref).length)s=i.switchPosition=="before"?t.find(i.ref+":first"):t.find(i.ref+":last");else return;if(i.cllpsLength&&t.closest(r).find(i.cllpsEl).text().length<i.cllpsLength){t.closest(r).find(i.cllpsEl).addClass("dont_touch");return}i.initTxt=="show"?(c=i.expTxt,l=""):(c=i.cllpsTxt,l="open");i.state=="hidden"?t.find(i.cllpsEl+":not(.shown, .dont_touch)").hide().findSibling().find("> a.open").removeClass("open").data("state",0):t.find(i.cllpsEl).show().findSibling().find("> a").addClass("open").data("state",1);h=s.findSibling("p").find("a");u=t.closest(r).find(i.cllpsEl).not(".dont_touch");f=i.trigger?t.closest(r).find(i.trigger+" > a"):t.closest(r).find(".expand > a");i.child&&(t.find(i.cllpsEl+".shown").show().findSibling().find("> a").addClass("open").text(i.cllpsTxt),window.$vrbls={kt1:i.expTxt,kt2:i.cllpsTxt});e=typeof a=="function"?a("html","body"):"html, body";h.click(function(){var t=n(this),h=t.closest(r).find(i.cllpsEl+":first"),s=h.offset().top-i.offset,o;return i.parent&&(o=t.parent().nextAll().children("p.switch").find("a"),kidTxt1=$vrbls.kt1,kidTxt2=$vrbls.kt2,kidTxt=t.text()==i.expTxt?kidTxt2:kidTxt1,o.text(kidTxt),t.text()==i.expTxt?o.addClass("open"):o.removeClass("open")),t.text()==i.expTxt?(i.oneSwitch&&t.text(i.cllpsTxt).attr("class","open"),f.addClass("open").data("state",1),u[i.showMethod](i.speed)):(i.oneSwitch&&t.text(i.expTxt).attr("class",""),f.removeClass("open").data("state",0),i.speed==0||i.instantHide?u.hide():u[i.hideMethod](i.speed),i.scroll&&s<n(window).scrollTop()&&n(e).animate({scrollTop:s},600)),!1});i.localLinks&&(o=n(r).find(i.localLinks),o.length&&n(o).click(function(){var t=n(this.hash),i;return t=t.length&&t||n("[name="+this.hash.slice(1)+"]"),t.length?(i=t.offset().top,n(e).animate({scrollTop:i},600),!1):void 0}))})};n.fn.expandAll.defaults={state:"shown",initTxt:"hide",expTxt:"[Expand All]",cllpsTxt:"Collapse",oneSwitch:!0,ref:".expand",switchPosition:"before",scroll:!1,offset:20,showMethod:"slideDown",hideMethod:"slideUp",speed:600,cllpsEl:".collapse",trigger:".expand",localLinks:null,parent:!1,child:!1,cllpsLength:null,instantHide:!1};n.fn.toggler=function(t){var i=n.extend({},n.fn.toggler.defaults,t),r=n(this);return r.wrapInner('<a style="display:block" href="#" title="Expand/Collapse" />'),i.initShow&&n(i.initShow).addClass("shown"),r.next(i.cllpsEl+":not(.shown)").hide(),this.each(function(){var t;t=i.container?i.container:"html";r.next("div.shown").length&&r.closest(t).find(".shown").show().prev().find("a").addClass("open");n(this).click(function(){return n(this).find("a").toggleClass("open").end().next(i.cllpsEl)[i.method](i.speed),!1})})};n.fn.toggler.defaults={cllpsEl:"div.collapse",method:"slideToggle",speed:"slow",container:"",initShow:".shown"};n.fn.fadeToggle=function(n,t){return this.animate({opacity:"toggle"},n,function(){jQuery.browser.msie&&this.style.removeAttribute("filter");jQuery.isFunction(t)&&t()})};n.fn.slideFadeToggle=function(n,t,i){return this.animate({opacity:"toggle",height:"toggle"},n,t,function(){jQuery.browser.msie&&this.style.removeAttribute("filter");jQuery.isFunction(i)&&i()})};n.fn.slideFadeDown=function(n,t){return this.animate({opacity:"show",height:"show"},n,function(){jQuery.browser.msie&&this.style.removeAttribute("filter");jQuery.isFunction(t)&&t()})};n.fn.slideFadeUp=function(n,t){return this.animate({opacity:"hide",height:"hide"},n,function(){jQuery.browser.msie&&this.style.removeAttribute("filter");jQuery.isFunction(t)&&t()})}}(jQuery);jQuery(function(){jQuery.support.placeholder=!1;test=document.createElement("input");"placeholder"in test&&(jQuery.support.placeholder=!0)});$.support.placeholder||$(function(){if(!$.support.placeholder){var n=document.activeElement;$(":text").focus(function(){$(this).attr("placeholder")!=""&&$(this).val()==$(this).attr("placeholder")&&$(this).val("").removeClass("hasPlaceholder")}).blur(function(){$(this).attr("placeholder")!=""&&($(this).val()==""||$(this).val()==$(this).attr("placeholder"))&&$(this).val($(this).attr("placeholder")).addClass("hasPlaceholder")});$(n).focus();$("form").submit(function(){$(this).find(".hasPlaceholder").each(function(){$(this).val("")})})}}),function(n){n.fn.hoverIntent=function(t,i){var r={sensitivity:7,interval:100,timeout:0};r=n.extend(r,i?{over:t,out:i}:t);var u,f,e,o,s=function(n){u=n.pageX;f=n.pageY},h=function(t,i){if(i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.abs(e-u)+Math.abs(o-f)<r.sensitivity)return n(i).unbind("mousemove",s),i.hoverIntent_s=1,r.over.apply(i,[t]);e=u;o=f;i.hoverIntent_t=setTimeout(function(){h(t,i)},r.interval)},l=function(n,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=0,r.out.apply(t,[n])},c=function(t){var u=jQuery.extend({},t),i=this;i.hoverIntent_t&&(i.hoverIntent_t=clearTimeout(i.hoverIntent_t));t.type=="mouseenter"?(e=u.pageX,o=u.pageY,n(i).bind("mousemove",s),i.hoverIntent_s!=1&&(i.hoverIntent_t=setTimeout(function(){h(u,i)},r.interval))):(n(i).unbind("mousemove",s),i.hoverIntent_s==1&&(i.hoverIntent_t=setTimeout(function(){l(u,i)},r.timeout)))};return this.bind("mouseenter",c).bind("mouseleave",c)}}(jQuery);var timeout=500,closetimer=0,ddmenuitem=0,itemId=0,shareBtn=0,is_in_menu=!1;$(function(){tpNvMenu_open();dropDown_RregisterElement()});dropDown_RregisterElement=function(){$(".subMenuBody").hide().css("visibility","visible");$(".subMenuOpn").bind("click",function(n){n.preventDefault();$(this).parent().parent().find(".subMenuBody").bind("mouseenter",function(){is_in_menu=!0;$(this).parent().find(".subMenuBody").css("display")=="none"&&$(this).parent().find(".subMenuBody").fadeIn("fast")})});$(".subMenuOpn, .subMenuBody").bind("mouseleave",function(){is_in_menu=!1;setTimeout(function(){is_in_menu===!1&&$(".subMenuBody").fadeOut("fast")},500)});$(".subMenuOpn").click(function(n){is_in_menu=!0;n.preventDefault();$(this).parent().find(".subMenuBody").css("display")=="none"&&$(this).parent().find(".subMenuBody").fadeIn("fast")});$(".menuBody").hide().css("visibility","visible");$(".menuOpn").bind("click",function(n){n.preventDefault();$(this).parent().parent().find(".menuBody").bind("mouseenter",function(){is_in_menu=!0;$(this).parent().parent().find(".menuBody").css("display")=="none"&&$(this).parent().parent().find(".menuBody").fadeIn("fast")})});$(".menuOpn, .menuBody").bind("mouseleave",function(){is_in_menu=!1;setTimeout(function(){is_in_menu===!1&&$(".menuBody").fadeOut("fast")},500)});$(".menuOpn").click(function(n){is_in_menu=!0;n.preventDefault();$(this).parent().parent().find(".menuBody").css("display")=="none"&&$(this).parent().parent().find(".menuBody").fadeIn("fast")});jQuery(".toutFrm .moreLnk").mouseover(function(){jQuery(this).children("img").css("background-image","url(images/icons/priMvRt_hover.gif)")});jQuery(".toutFrm .moreLnk").mouseout(function(){jQuery(".toutFrm .moreLnk img").css("background-image","url(images/icons/priMvRt.gif)")});$(function(){$('a[href="#"]').click(function(n){n.preventDefault()})})};tpNvMenu_open=function(){shareBtn=jQuery(this);shareBtn.find("a").attr("class")!="sharePrint_off"&&(tpNvMenu_canceltimer(),tpNvMenu_close(),$(".shareImagesTopMenu",".group_edit_active").css({display:sharedMultipleImages.length>0?"block":"none"}),ddmenuitem=jQuery(this).find("ul").eq(0).css("visibility","visible"),itemId=jQuery(this).attr("id"),jQuery("#"+itemId+" a.sort").removeClass("sort").addClass("sortOn"),shareBtn.find("a").attr("class")=="sharePrint_active"&&shareBtn.find("a").removeClass("sharePrint_active").addClass("sharePrint_over"))};MessageBox={show:function(n,t,i,r,u,f,e,o){var s=$("#messageBox");s.find("#title").text(n);s.find("#body").html(t);s.find(".cancel").unbind("click").click(function(){$.unblockUI()});r?(s.find("#ok").hide(),s.find("#no").show(),s.find("#yes").show(),s.find("#yes").unbind("click").click(function(){e&&e(o);$.unblockUI()})):(s.find("#ok").show(),s.find("#no").hide(),s.find("#yes").hide(),s.find("#ok").unbind("click").click(function(){u&&u(f);$.unblockUI()}));i?s.find("#cancel").show():s.find("#cancel").hide();s&&$.blockUI({message:s});$(".blockOverlay").click($.unblockUI);$(".blockPage").css("width","0px")}};$(document).ready(function(){})