/*! * jQuery JavaScript Library v1.6.2 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * * Date: Thu Jun 30 14:16:56 2011 -0400 */ (function(a,b){function cv(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cs(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"":"")+""),ci.close();d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[a]=e}return cg[a]}function cr(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0,b)),function(){c[this]=a});return c}function cq(){cn=b}function cp(){setTimeout(cq,0);return cn=f.now()}function cf(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){c!=="border"&&f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0});return d+"px"}d=bx(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))||0)});return d+"px"}function bm(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(be,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bl(a){f.nodeName(a,"input")?bk(a):"getElementsByTagName"in a&&f.grep(a.getElementsByTagName("input"),bk)}function bk(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bj(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function bi(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bh(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i=0===c})}function V(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function N(a,b){return(a&&a!=="*"?a+".":"")+b.replace(z,"`").replace(A,"&")}function M(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;ic)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function K(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function E(){return!0}function D(){return!1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"$1-$2").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z])/ig,x=function(a,b){return b.toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.6.2",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!A){A=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1;var c;for(c in a);return c===b||D.call(a,c)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(b,c,d){a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b)),d=c.documentElement,(!d||!d.nodeName||d.nodeName==="parsererror")&&e.error("Invalid XML: "+b);return c},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c
a",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0},m&&f.extend(p,{position:"absolute",left:-1e3,top:-1e3});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="
",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="
t
",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.removeChild(o);if(a.attachEvent)for(t in{submit:1,change:1,focusin:1})s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u;o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([a-z])([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g=f.expando,h=typeof c=="string",i,j=a.nodeType,k=j?f.cache:a,l=j?a[f.expando]:a[f.expando]&&f.expando;if((!l||e&&l&&!k[l][g])&&h&&d===b)return;l||(j?a[f.expando]=l=++f.uuid:l=f.expando),k[l]||(k[l]={},j||(k[l].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?k[l][g]=f.extend(k[l][g],c):k[l]=f.extend(k[l],c);i=k[l],e&&(i[g]||(i[g]={}),i=i[g]),d!==b&&(i[f.camelCase(c)]=d);if(c==="events"&&!i[c])return i[g]&&i[g].events;return h?i[f.camelCase(c)]||i[c]:i}},removeData:function(b,c,d){if(!!f.acceptData(b)){var e=f.expando,g=b.nodeType,h=g?f.cache:b,i=g?b[f.expando]:f.expando;if(!h[i])return;if(c){var j=d?h[i][e]:h[i];if(j){delete j[c];if(!l(j))return}}if(d){delete h[i][e];if(!l(h[i]))return}var k=h[i][e];f.support.deleteExpando||h!=a?delete h[i]:h[i]=null,k?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=k):g&&(f.support.deleteExpando?delete b[f.expando]:b.removeAttribute?b.removeAttribute(f.expando):b[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return typeof d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if(!("getAttribute"in a))return f.prop(a,c,d);var h,i,j=g!==1||!f.isXMLDoc(a);j&&(c=f.attrFix[c]||c,i=f.attrHooks[c],i||(t.test(c)?i=w:v&&c!=="className"&&(f.nodeName(a,"form")||u.test(c))&&(i=v)));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set"in i&&j&&(h=i.set(a,d,c))!==b)return h;a.setAttribute(c,""+d);return d}if(i&&"get"in i&&j&&(h=i.get(a,c))!==null)return h;h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.support.getSetAttribute?a.removeAttribute(b):(f.attr(a,b,""),a.removeAttributeNode(a.getAttributeNode(b))),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},tabIndex:{get:function(a){var c=a.getAttributeNode("tabIndex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}},value:{get:function(a,b){if(v&&f.nodeName(a,"button"))return v.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(v&&f.nodeName(a,"button"))return v.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);i&&(c=f.propFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==b?g:a[c]},propHooks:{}}),w={get:function(a,c){return f.prop(a,c)?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(f.attrFix=f.propFix,v=f.attrHooks.name=f.attrHooks.title=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,c){var d=a.getAttributeNode(c);if(d){d.nodeValue=b;return b}}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var x=/\.(.*)$/,y=/^(?:textarea|input|select)$/i,z=/\./g,A=/ /g,B=/[^\w\s.|`]/g,C=function(a){return a.replace(B,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=D;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=D);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),C).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i. shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},J=function(c){var d=c.target,e,g;if(!!y.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=I(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=null||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event.special.change={filters:{focusout:J,beforedeactivate:J,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&J.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&J.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",I(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in H)f.event.add(this,c+".specialChange",H[c]);return y.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return y.test(this.nodeName)}},H=f.event.special.change.filters,H.focus=H.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g0)for(h=g;h0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=T.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a||typeof a=="string")return f.inArray(this[0],a?f(a):this.parent().children());return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(V(c[0])||V(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=S.call(arguments);O.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!U[a]?f.unique(e):e,(this.length>1||Q.test(d))&&P.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var X=/ jQuery\d+="(?:\d+|null)"/g,Y=/^\s+/,Z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,$=/<([\w:]+)/,_=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};bf.optgroup=bf.option,bf.tbody=bf.tfoot=bf.colgroup=bf.caption=bf.thead,bf.th=bf.td,f.support.htmlSerialize||(bf._default=[1,"div
","
"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(X,""):null;if(typeof a=="string"&&!bb.test(a)&&(f.support.leadingWhitespace||!Y.test(a))&&!bf[($.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Z,"<$1>");try{for(var c=0,d=this.length;c1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j )}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bi(a,d),e=bj(a),g=bj(d);for(h=0;e[h];++h)bi(e[h],g[h])}if(b){bh(a,d);if(c){e=bj(a),g=bj(d);for(h=0;e[h];++h)bh(e[h],g[h])}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!ba.test(k))k=b.createTextNode(k);else{k=k.replace(Z,"<$1>");var l=($.exec(k)||["",""])[1].toLowerCase(),m=bf[l]||bf._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=_.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]===""&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&Y.test(k)&&o.insertBefore(b.createTextNode(Y.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bo.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle;c.zoom=1;var e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.filter=bn.test(g)?g.replace(bn,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bx(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(by=function(a,c){var d,e,g;c=c.replace(bp,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bz=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bq.test(d)&&br.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bx=by||bz,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bB=/%20/g,bC=/\[\]$/,bD=/\r?\n/g,bE=/#.*$/,bF=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bG=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bH=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,bI=/^(?:GET|HEAD)$/,bJ=/^\/\//,bK=/\?/,bL=/)<[^<]*)*<\/script>/gi,bM=/^(?:select|textarea)/i,bN=/\s+/,bO=/([?&])_=[^&]*/,bP=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bQ=f.fn.load,bR={},bS={},bT,bU;try{bT=e.href}catch(bV){bT=c.createElement("a"),bT.href="",bT=bT.href}bU=bP.exec(bT.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bQ)return bQ.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
").append(c.replace(bL,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bM.test(this.nodeName)||bG.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bD,"\r\n")}}):{name:b.name,value:c.replace(bD,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?f.extend(!0,a,f.ajaxSettings,b):(b=a,a=f.extend(!0,f.ajaxSettings,b));for(var c in{context:1,url:1})c in b?a[c]=b[c]:c in f.ajaxSettings&&(a[c]=f.ajaxSettings[c]);return a},ajaxSettings:{url:bT,isLocal:bH.test(bU[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML}},ajaxPrefilter:bW(bR),ajaxTransport:bW(bS),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a?4:0;var o,r,u,w=l?bZ(d,v,l):b,x,y;if(a>=200&&a<300||a===304){if(d.ifModified){if(x=v.getResponseHeader("Last-Modified"))f.lastModified[k]=x;if(y=v.getResponseHeader("Etag"))f.etag[k]=y}if(a===304)c="notmodified",o=!0;else try{r=b$(d,w),c="success",o=!0}catch(z){c="parsererror",u=z}}else{u=c;if(!c||a)c="error",a<0&&(a=0)}v.status=a,v.statusText=c,o?h.resolveWith(e,[r,c,v]):h.rejectWith(e,[v,c,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,c]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f._Deferred(),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bF.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bE,"").replace(bJ,bU[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bN),d.crossDomain==null&&(r=bP.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bU[1]&&r[2]==bU[2]&&(r[3]||(r[1]==="http:"?80:443))==(bU[3]||(bU[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bX(bR,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bI.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bK.test(d.url)?"&":"?")+d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bO,"$1_="+x);d.url=y+(y===d.url?(bK.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", */*; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bX(bS,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){status<2?w(-1,z):f.error(z)}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)bY(g,a[g],c,e);return d.join("&").replace(bB,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+b_++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ca.test(b.url)||e&&ca.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ca,l),b.url===j&&(e&&(k=k.replace(ca,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cb=a.ActiveXObject?function(){for(var a in cd)cd[a](0,1)}:!1,cc=0,cd;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ce()||cf()}:ce,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cb&&delete cd[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cc,cb&&(cd||(cd={},f(a).unload(cb)),cd[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(?:toggle|show|hide)$/,ck=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cl,cm=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cn,co=a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cr("show",3),a,b,c);for(var g=0,h=this.length;g=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for(var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1}e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b
";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cu.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cu.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cv(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cv(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(f.css(a,d,"padding")):null},f.fn["outer"+c]=function(a){var b=this[0];return b&&b.style?parseFloat(f.css(b,d,a?"margin":"border")):null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c];return e.document.compatMode==="CSS1Compat"&&g||e.document.body["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var h=f.css(e,d),i=parseFloat(h);return f.isNaN(i)?h:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window);var NameSpaceOnly=false;var apex={};if(apex===null||typeof(apex)!="object"){apex={}}apex.jQuery=jQuery;apex.jQuery.ajaxSettings.traditional=true;if(apex.page===null||typeof(apex.page)!="object"){apex.page={}}if(apex.tabular===null||typeof(apex.tabular)!="object"){apex.tabular={}}if(apex.spreadsheet===null||typeof(apex.spreadsheet)!="object"){apex.spreadsheet={}}if(apex.items===null||typeof(apex.items)!="object"){apex.items={}}if(apex.util===null||typeof(apex.util)!="object"){apex.util={}}if(apex.event===null||typeof(apex.event)!="object"){apex.event={}}if(apex.ajax===null||typeof(apex.ajax)!="object"){apex.ajax={}}if(apex.dhtml===null||typeof(apex.dhtml)!="object"){apex.dhtml={}}if(apex.worksheet===null||typeof(apex.worksheet)!="object"){apex.worksheet={}}if(apex.validation===null||typeof(apex.validation)!="object"){apex.validation={}}if(apex.widget===null||typeof(apex.widget)!="object"){apex.widget={}}if(apex.da===null||typeof(apex.da)!="object"){apex.da={}}if(apex.debug===null||typeof(apex.debug)!="object"){apex.debug={}}if(apex.security===null||typeof(apex.security)!="object"){apex.security={}}apex.util={toArray:function(b,a){var c,d=[];if(typeof(b)==="string"){c=(a)?a:":";d=b.split(c)}else{if(apex.jQuery.isArray(b)){d=b}else{d[0]=b}}return d},escapeSc:function(a){return a.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},setFocusFirstDescendant:function(a){var b;if(a){b=apex.jQuery(a).find(":focusable:first")[0];if(b){b.focus()}}}};apex.debug=function(a){if($x("pdebug")){if(window.console&&console.log){console.log(a)}}};apex.event={gCancelFlag:false,gCancelActions:false,trigger:function(b,a,c){apex.event.gCancelFlag=false;apex.jQuery(b).trigger(a,c);return apex.event.gCancelFlag}};apex.page={itemCallbacks:new Object(),form:function(a){var b=this;b.supress=false;b.defaults={request:null,set:null,showWait:false,waitMsg:null,form:"wwv_flow"};b.options={};switch(typeof(a)){case"string":b.options=apex.jQuery.extend(b.defaults,{request:a});break;case"object":b.options=apex.jQuery.extend(b.defaults,a);break;default:b.options=b.defaults;break}b.submit=function(){var c=false;if(!b.supress){c=apex.event.trigger(document,"apexbeforepagesubmit",b.options.request);if(!c){if(b.options.showWait){apex.widget.waitPopup()}if(b.options.set){apex.jQuery.each(b.options.set,function(e,d){((e)&&(d))?$s(e,d):null})}flowSelectAll();$s("pRequest",b.options.request);document[b.options.form].submit()}else{apex.event.gCancelFlag=false}}};this.confirm=function(c){if(!!!b.options.request){b.options.request="Delete"}b.supress=!confirm((!!!c)?"Would you like to perform this delete action?":c);b.submit()}},item:function(l,k){var g=this;this.node=false;this.item_type=false;this.id=false;this.getValue=b;this.init=o;this.setValue=a;this.isEmpty=c;this.enable=e;this.disable=d;this.show=h;this.hide=f;this.callbacks=(!k)?{}:k;this.init(l);return;function o(r){try{switch(typeof(r)){case"string":g.node=document.getElementById(r);break;case"object":g.node=r;break;default:g.node=false;break}if(g.node&&g.node.nodeType==1){}else{g.node=false}}catch(u){g.node=false}if(g.node){g.id=g.node.id;if(apex.page.itemCallbacks[g.id]){g.callbacks=apex.page.itemCallbacks[g.id]}else{if(!apex.jQuery.isEmptyObject(g.callbacks)){apex.page.itemCallbacks[g.id]=g.callbacks}}var s=g.node.nodeName.toUpperCase();var t=g.node.className.toUpperCase();if(s=="FIELDSET"){g.item_type=t;switch(t){case"CHECKBOX_GROUP":break;case"RADIO_GROUP":break;case"SHUTTLE":break;default:g.item_type=false;break}}else{if(s=="INPUT"){g.item_type=g.node.type.toUpperCase();switch(g.item_type){case"CHECKBOX":break;case"RADIO":break;case"TEXT":var q=g.node.parentNode.className.toUpperCase();switch(q){case"DATEPICKER":g.item_type=q;break;case"LOV":if(apex.jQuery("#"+g.id+"_HIDDENVALUE").length>0){g.item_type="POPUP_KEY_LOV"}else{g.item_type="POPUP_LOV"}break;default:break}break;case"NUMBER":g.item_type="TEXT";break;case"HIDDEN":g.display_span=$x(g.id+"_DISPLAY");if(g.display_span){g.item_type="DISPLAY_SAVES_STATE"}break;default:g.item_type=false;break}}else{g.item_type=s;switch(g.item_type){case"TEXTAREA":if(g.node.parentNode.className=="html_editor"&&g.node.parentNode.tagName=="FIELDSET"){g.item_type="FCKEDITOR"}else{try{(CKEDITOR.instances[g.id])?g.item_type="CKEDITOR3":null}catch(u){}}break;case"SELECT":break;case"SPAN":if(g.node.className=="display_only"){g.item_type="DISPLAY_ONLY"}break;default:g.item_type=false;break}}}}}function b(){if(!g.node){return""}if("getValue" in g.callbacks){return g.callbacks.getValue.call(g)}else{var s=true,t=[],r,q;switch(g.item_type){case"RADIO_GROUP":q=apex.jQuery(":checked",g.node);if(q.length===0){t=""}else{t=q.val()}break;case"CHECKBOX_GROUP":apex.jQuery(":checked",g.node).each(function(){t[t.length]=this.value});break;case"SELECT":t=apex.jQuery(g.node).val();if(t===null||t===undefined){t=(apex.jQuery(g.node).attr("multiple"))?[]:""}break;default:s=false;break}if(!s){switch(g.item_type){case"CHECKBOX":t=(g.node.checked)?g.node.value:"";break;case"RADIO":t=(g.node.checked)?g.node.value:"";break;case"TEXT":t=g.node.value;break;case"POPUP_LOV":t=g.node.value;break;case"POPUP_KEY_LOV":t=apex.jQuery("#"+g.node.id+"_HIDDENVALUE").val();break;case"DATEPICKER":t=g.node.value;break;case"HIDDEN":t=g.node.value;break;case"DISPLAY_SAVES_STATE":t=g.node.value;break;case"DISPLAY_ONLY":t=g.node.innerHTML;break;case"TEXTAREA":t=g.node.value;break;case"FCKEDITOR":r=FCKeditorAPI.GetInstance(g.node.id);t=r.GetHTML();break;default:t="";break}}return t}}function a(t,y,u){if("setValue" in g.callbacks){g.callbacks.setValue.call(g,t,y,u)}else{var s=false;if(!g.node){return}switch(g.item_type){case"RADIO_GROUP":s=$x_FormItems(g.node,"RADIO");break;case"CHECKBOX_GROUP":s=$x_FormItems(g.node,"CHECKBOX");break;case"POPUP_KEY_LOV":apex.jQuery("#"+g.node.id+"_HIDDENVALUE").val(t);g.node.value=y;break;case"SELECT":var s=g.node.options;break;default:s=false;break}if(s){for(var v=0,r=s.length;v0){q.show()}else{apex.jQuery(g.node).show()}}apex.jQuery("label[for="+g.node.id+"]").show()}}function f(r){if(r){$x_ItemRow(g.node,"HIDE")}else{if("hide" in g.callbacks){g.callbacks.hide.call(g)}else{var q=apex.jQuery("#"+g.node.id+"_DISPLAY");if(q.length>0){q.hide()}else{apex.jQuery(g.node).hide()}}apex.jQuery("label[for="+g.node.id+"]").hide()}}function c(){var q,t,v,r,s="",w,u;q=g.getValue();if(apex.jQuery.isArray(q)){q=q.join(":")}t=/^\s{1,}$/g;v=$x(g.node);r=false;if("nullValue" in g.callbacks){if(typeof g.callbacks.nullValue==="function"){return g.callbacks.nullValue.call(g)}else{return((q.length===0)||(q===null)||(q===g.callbacks.nullValue)||((q.search(t))>-1))?true:false}}else{if(g.item_type==="SELECT"){if(apex.tabular.gNullValueList){apex.jQuery.each(apex.tabular.gNullValueList,function(z,y){if(this.name===v.name){s=y.value;return false}})}if(v.multiple){w=(q.length===0)||(q===s)}else{w=(s||s==="")?(q===s):false}}else{w=((q.length===0)||(q===null)||((q.search(t))>-1))?true:false}return w}}return g}};apex.item=function(c,b){var a=new apex.page.item(c,b);return a};apex.submit=function(b){var a;a=new apex.page.form(b);a.submit()};apex.confirm=function(c,b){var a;a=new apex.page.form(b);a.confirm(c)};apex.validation={v:function(){var a=this;this.get_emptys=function(e,k,d){var g=[];var c=[];if($x(e)){e=[e]}for(var f=0,b=e.length;fUpDownBottom';$x(l).innerHTML=B;var t=$dom_AddTag("shuttle1","select");var z=$dom_AddTag("shuttle2","select");t.multiple=true;z.multiple=true;for(var y=0,A=d.row.length;y")}else{if(g==1&&apex.jQuery('input[name="f02"]:first').val()=="CHECK$01"){var o=$tr_AddTD(e[g]," ")}else{var o=$tr_AddTD(e[g]);var l=this.create(o,b.src_up,b.class_name,function(){b.row.up(this)});var k=this.create(o,b.src_down,b.class_name,function(){b.row.down(this)})}}}return;function f(u,t,r,q){var s=$dom_AddTag(u,"IMG");s.src=t;s.className=r;s.onclick=q;return s}}}};function ws_OperatorCheck(d){var b=$x("apexir_COLUMN_NAME").options[$x("apexir_COLUMN_NAME").selectedIndex].className;var a=$v(d);var c=[];c[0]=$x("apexir_EXPR").parentNode;c[1]=$x("apexir_EXPR2").parentNode;c[2]=$x("apexir_EXPR3").parentNode;c[3]=$x("apexir_BETWEEN_FROM").parentNode;c[4]=$x("apexir_BETWEEN_TO").parentNode;$x_Show_Hide("apexir_EXPR_ICON",c);if(a=="is null"||a=="is not null"){$x_Hide("apexir_EXPRESSION_LABEL");return}else{$x_Show("apexir_EXPRESSION_LABEL");if(b=="DATE"&&!(a=="is in the last"||a=="is not in the last"||a=="is in the next"||a=="is not in the next")){$x_Show(c[3]);(a=="between")?$x_Show(c[4]):null}else{$x_Show(c[0]);(a=="between")?$x_Show(c[1]):null;(a=="is in the last"||a=="is not in the last"||a=="is in the next"||a=="is not in the next")?$x_Show_Hide(c[2],"apexir_EXPR_ICON"):null}}return}function ws_ColumnCheck(b){var a=b.options[b.selectedIndex].className;$x_HideSiblings("apexir_"+a+"_OPT");ws_OperatorCheck("apexir_"+a+"_OPT")}function item_menu(f,b){$x_Style("item_menu","position","absolute");var d=$x("item_menu").getElementsByTagName("a");for(var c=0,a=d.length;c0)?window.location.href.substring(0,window.location.href.indexOf("?")):window.location.href;this.base=l.substring(0,l.lastIndexOf("/"));if(!!!this.proc){this.proc=l.substring(l.lastIndexOf("/")+1)}this.base=this.base+"/"+this.proc;if(k==null||k==""){this.instance=$v("pInstance")}else{this.instance=k}if(!a){this.addParam("p_request",this.request);this.addParam("p_instance",this.instance);this.addParam("p_flow_id",this.flow);this.addParam("p_flow_step_id",this.page)}function h(o){this.node=$x(o)}function d(q){var o=0;for(o=this.node.childNodes.length-1;o>=0;o--){this.node.removeChild(this.node.childNodes[o])}this.node.appendChild(q)}}function htmldb_Get_sync(a){this.syncMode=a}function htmldb_Get_clear(a){this.addParam("p_clear_cache",a)}function htmldb_Get_getUrl(){return this.queryString==null?this.base+"?"+this.params:this.queryString}function htmldb_Get_escape(a){a=a+"";a=a.replace(/\%/g,"%25");a=a.replace(/\+/g,"%2B");a=a.replace(/\ /g,"%20");a=a.replace(/\./g,"%2E");a=a.replace(/\*/g,"%2A");a=a.replace(/\?/g,"%3F");a=a.replace(/\\/g,"%5C");a=a.replace(/\//g,"%2F");a=a.replace(/\>/g,"%3E");a=a.replace(/\"}if(!d){d=""}var h=this.response.indexOf(e);var c;var a;var f;if(h>0){this.response=this.response.substring(h+e.length);var b=this.response.indexOf(d);this.response=this.response.substring(0,b)}if(this.obj){if(document.all){a=this.response;f=this.obj;setTimeout(function(){htmldb_get_WriteResult(f,a)},100)}else{$s(this.obj,this.response)}}return this.response}var gResult=null;var gNode=null;function htmldb_get_WriteResult(b,a){$s(b,a);return}function html_Doneprocessing(){}function html_processing(){}htmldb_Get.prototype.GetAsync=function(a){var c;try{c=new XMLHttpRequest()}catch(d){c=new ActiveXObject("Msxml2.XMLHTTP")}try{var b=new Date();c.open("POST",this.base,true);if(c){c.onreadystatechange=function(){p=c;a(c)};c.setRequestHeader("Content-Type","application/x-www-form-urlencoded");c.send(this.queryString==null?this.params:this.queryString);return c}}catch(d){return false}};function htmldb_ExternalPost(f,b,e){var c="f?p="+$x("pFlowId").value+":"+$x("pFlowStepId").value+":"+$x("pInstance").value+":FLOW_FOP_OUTPUT_R"+b;document.body.innerHTML=document.body.innerHTML+'';var d=$x("vXML");var a=new htmldb_Get(d,null,null,null,null,"f",c.substring(2));a.get();a=null;setTimeout('$x("xmlFormPost").submit()',10);return}function $xml_Control(b){this.xsl_string='';if(document.all){this.xsl_object=new ActiveXObject("Msxml2.FreeThreadedDOMDocument.3.0");this.xsl_object.async=false;this.xsl_object.loadXML(this.xsl_string);tmp=new ActiveXObject("Msxml2.XSLTemplate.3.0");tmp.stylesheet=this.xsl_object;this.xsl_processor=tmp.createProcessor()}else{this.xsl_object=(new DOMParser()).parseFromString(this.xsl_string,"text/xml");this.xsl_processor=(new XSLTProcessor());this.xsl_processor.importStylesheet(this.xsl_object);this.ownerDocument=document.implementation.createDocument("","test",null)}this.xml=b;this.CloneAndPlace=a;return;function a(g,d,f){var c=$x(d);if(document.all){this.xsl_processor.addParameter("xpath",g);this.xsl_processor.input=this.xml;this.xsl_processor.transform;var e=this.xsl_processor.output}else{this.xsl_processor.setParameter(null,"xpath",g);var e=this.xsl_processor.transformToFragment(this.xml,this.ownerDocument)}if(c){if(ie){$s(c,e)}else{$s(c,"");c.appendChild(e)}return e}}}htmldb_Get.prototype.AddArray=function(c,e){var d="f";e=$nvl(e,1);if(e<10){d+="0"+e}else{d+=e}for(var b=0,a=c.length;b4000){b[b.length]=c.substr(0,4000);c=c.substr(4000,c.length-4000)}b[b.length]=c.substr(0,4000)}return b}function json_SetItems(gReturn){gReturn=eval("("+gReturn+")");for(var j=0,len=gReturn.item.length;j2)?a[2]:null;var g=(h>3)?a[3]:null;var e=(h>4)?a[4]:null;var f=(h>5)?true:false;document.cookie=c+"="+escape(d)+((b===null)?"":("; expires="+b.toGMTString()))+((g===null)?"":("; path="+g))+((e===null)?"":("; domain="+e))+((f===true||window.location.protocol==="https:")?"; secure":"")}function html_GoToRelative(a){var b=location.pathname.substring(0,location.pathname.lastIndexOf("/"));document.location=b+"/"+a;return}function html_Allow_Copy(b){l_return=false;var a=document.layers?evt.which:document.all?event.keyCode:document.getElementById?b.keyCode:0;if(b.ctrlKey&&a=="c"){l_return=true}return l_return}function html_StringReplace(a,g,e){if(!e){e=""}var c=a.length,f=g.length;if((c===0)||(f===0)){return a}var b=a.indexOf(g);if((!b)&&(g!=a.substring(0,f))){return a}if(b==-1){return a}var d=a.substring(0,b)+e;if(b+f=!e&&b<=a){$x_Show(d.rows[b])}else{$x_Hide(d.rows[b])}}}function timestamp(){var b,a="T:";var e=":";b=new Date();a+=b.getHours()+e;a+=b.getMinutes()+e;a+=b.getSeconds()+e;a+=b.getMilliseconds();return(a)}var dbaseTime1=null;var dbaseTime2=null;function timeC(a){if(dbaseTime1){dbaseTime2=new Date();dbaseTime1=null;dbaseTime2=null}else{dbaseTime1=new Date()}}function $u_eval(pThis){return eval(pThis)}function setSelectionRange(c,d,e){var a;if(c.setSelectionRange){a=c.value.length;if(d>a){d=a}if(e>a){e=a}c.focus();c.setSelectionRange(d,e)}else{if(c.createTextRange){var b=c.createTextRange();b.collapse(true);b.moveEnd("character",e);b.moveStart("character",d);b.select()}}}function setCaretToPos(a,b){setSelectionRange(a,b,b)}function html_ReturnToTextSelection(f,g,b){var e=$x(g);var c=($v_IsEmpty(e)||!!b)?"":" ";if(document.selection){e.focus();var d=document.selection;var a=d.createRange();a.text=a.text+c+f}else{start=e.selectionStart;end=e.selectionEnd;e.value=e.value.slice(0,start)+c+f+e.value.slice(end,e.value.length);e.focus();setCaretToPos(e,end+(f.length+2))}}function setCaretToEnd(a){setSelectionRange(a,a.value.length,a.value.length)}function setCaretToBegin(a){setSelectionRange(a,0,0)}function selectString(a,c){var b=new RegExp(c,"i").exec(a.value);if(b){setSelectionRange(a,b.index,b.index+b[0].length)}}function ob_PPR_TAB(a){top.gLastTab=a;var d=document.body;var c=new htmldb_Get(d,null,null,null,null,"f",a.substring(2));var b=c.get(null,'',"");get=null;if(document.all){var e="window.parent.obFrameSize()";setTimeout(e,100)}else{window.parent.obFrameSize()}}function flowSelectAll(){var d,c,f;if(typeof(flowSelectArray)=="undefined"){return true}else{for(var e=0,b=flowSelectArray.length;e=c){a.value=a.value.substring(0,c);a.style.color="red"}else{msg=null;a.style.color="black"}}h.innerHTML=a.value.length;k.innerHTML=c;if(a.value.length>0){g.style.visibility="visible"}else{g.style.visibility="hidden"}if(l>=90){g.style.color="red"}else{if(l>="80"){g.style.color="#EAA914"}else{g.style.color="black"}}}function quickLinks(a){apex.jQuery(".eLink").toggleClass("eLinkOn");SetCookie("ORA_WWV_QUICK_EDIT",a);$x_Toggle(["hideEdit","showEdit"])}var htmldb_ch=false;function htmldb_item_change(a){htmldb_ch=true}function htmldb_doUpdate(a){if(htmldb_ch){lc_SetChange();apex.submit(a)}else{apex.submit(a)}return}function htmldb_goSubmit(a){if(htmldb_ch){if(!htmldb_ch_message||htmldb_ch_message===null){htmldb_ch_message="Are you sure you want to leave this page without saving? /n Please use translatable string."}if(window.confirm(htmldb_ch_message)){apex.submit(a)}}else{apex.submit(a)}return}function html_PopUp(c,b,a,e,d,f){if(!c){c="about:blank"}if(!b){b="_blank"}if(!a){a=600}if(!e){e=600}if(!d){d="yes"}if(!f){f="yes"}l_Window=window.open(c,b,"toolbar=no,scrollbars="+d+",location=no,statusbar=no,menubar=no,resizable="+f+",width="+a+",height="+e);if(l_Window.opener===null){l_Window.opener=self}l_Window.focus();return l_Window}function popupFieldHelpClassic(b,a){html_PopUp("wwv_flow_item_help.show_help?p_item_id="+b+"&p_session="+a+"&p_output_format=HTML","Help",500,350);return}function popupFieldHelp(b,a){if(!$x("pScreenReaderMode")){apex.jQuery.getJSON("wwv_flow_item_help.show_help?p_item_id="+b+"&p_session="+a+"&p_output_format=JSON",function(c){var d=apex.jQuery("#apex_popup_field_help");if(d.length===0){d=apex.jQuery('
'+c.helpText+"
");d.dialog({title:c.title,bgiframe:true,width:500,height:350,show:"drop",hide:"drop"})}else{d.html(c.helpText).dialog("option","title",c.title).dialog("open")}})}else{popupFieldHelpClassic(b,a)}return}function $p_DatePicker(g,h,k,e,d,l,t,o,f,b,s,a,u,q,c){var r=open("wwv_flow_utilities.show_as_popup_calendar?p_element_index="+escape(g)+"&p_form_index="+escape(h)+"&p_date_format="+escape(k)+"&p_bgcolor="+escape(e)+"&p_dd="+escape(d)+"&p_hh="+escape(l)+"&p_mi="+escape(t)+"&p_pm="+escape(o)+"&p_yyyy="+escape(f)+"&p_lang="+escape(b)+"&p_application_format="+escape(s)+"&p_application_id="+escape(a)+"&p_security_group_id="+escape(u)+"&p_mm="+escape(q),"winLov","Scrollbars=no,resizable=yes,width=258,height="+c);if(r.opener==null){r.opener=self}r.focus();return r}function confirmDelete2(c,a){var b=(a)?a:"DELETE";var d=(c)?c:"Would you like to perform this delete action?";if(confirm(d)){apex.submit(b);window.close()}}function LZ(a){return(a<0||a>9?a:"0"+a)}function whichElement(pForm,pElement,pOffset){n=parseInt(pElement.substring(3,pElement.length),10);m=n+parseInt(pOffset,10);return eval("document."+pForm+".p_t"+LZ(m))}function nullFields(d,e,c,a){var b=0;b=d.keyCode;if(b>45&&b<106||b==8){if(e){e.value=""}if(e){c.value=""}if(a){a.value=""}}}function selectAll(c){var a=c.length;for(var b=0;b0){dhtml_CloseAllSubMenusL(d[0]);d.focus().data("setParent",false)}break;case 39:if(c.parent().hasClass("dhtmlSubMenuN")||c.parent().hasClass("dhtmlSubMenuS")){c.trigger("mouseover");$gCurrentAnchorList[0].focus();c.data("setParent",true)}break;case 13:return;break;default:null}a.preventDefault()}function dhtml_MenuOpen(f,d,k,a,e){var h;if($x(d)){h="menu_keys_"+d;document.onclick=dhtml_DocMenuCheck;apex.jQuery(document).unbind("keydown."+h+"_esc").bind("keydown."+h+"_esc",function(l){if(l.which===27){app_AppMenuMultiClose();dhtml_CloseAllSubMenus();document.onclick=null;if(e){apex.jQuery(e).focus()}}});if(!k){dhtml_CloseAllSubMenus();gCurrentAppMenu=d}else{var g=parseInt($x(d).getAttribute("htmldb:listlevel"),10);var c=gSubMenuArray[g];if(c){$x_Hide(c)}gSubMenuArray[g]=$x(d)}$gCurrentAnchorList=apex.jQuery("#"+d).children().children().filter("a[class!=eLink]");apex.jQuery(document).unbind("keydown."+h).bind("keydown."+h,function(l){var o=[40,38,37,39,13];if(apex.jQuery("#"+d+":visible").filter("ul")[0]&&apex.jQuery.inArray(l.which,o)!==-1){dhtml_KeyAction(l,h)}});var b=$x(d);document.body.appendChild(b);if(!a||a=="Right"){b.style.position="absolute";b.style.top=(parseInt(findPosY(f),10)+"px");b.style.left=(parseInt(findPosX(f),10)+"px")}else{if(a=="Bottom"){b.style.position="absolute";b.style.top=(parseInt(findPosY(f),10)+parseInt(f.offsetHeight,10)+"px");b.style.left=(parseInt(findPosX(f),10)+"px")}else{if(a=="BottomRight"){b.style.position="absolute";b.style.top=(parseInt(findPosY(f),10)+parseInt(f.offsetHeight,10)+"px");b.style.left=(parseInt(findPosX(f),10)-parseInt(f.offsetWidth,10)+"px")}else{b.style.position="absolute";b.style.top=(parseInt(findPosY(f),10)+"px");b.style.left=(parseInt(findPosX(f),10)+parseInt(f.offsetWidth,10)+"px")}}}$x_Show(b);dhtml_FixLeft(f,b,a);htmldb_IE_Select_Item_Fix(b)}return}function dhtml_DocMenuSingleCheck(c,b){if(g_Single_Menu_Count>0){var d=true;if(c){var a=html_GetTarget(c);while(a.nodeName!="BODY"&&!b){a=a.parentNode;if(a==g_Single_Menu){d=!d}}}if(d||b){$x_Hide(g_Single_Menu);document.onclick=null}else{}}else{g_Single_Menu_Count=1}return}function dhtml_SingeMenuOpen(g,d,c,b,a){var e=$x(d);var f=$x(g);e.style.zIndex=2001;document.body.appendChild(e);if(!c||c=="Right"){e.style.position="absolute";e.style.top=(parseInt(findPosY(f),10)+"px");e.style.left=(parseInt(findPosX(f),10)+"px")}else{if(c=="Bottom"){e.style.position="absolute";e.style.top=(parseInt(findPosY(f),10)+parseInt(f.offsetHeight,10)+"px");e.style.left=(parseInt(findPosX(f),10)+"px")}else{if(c=="BottomRight"){e.style.position="absolute";e.style.top=(parseInt(findPosY(f),10)+parseInt(f.offsetHeight,10)+"px");e.style.left=(parseInt(findPosX(f),10)-parseInt(f.offsetWidth,10)+"px")}else{if(c=="Set"){e.style.position="absolute";e.style.top=(parseInt(a,10)+"px");e.style.left=(parseInt(b,10)+"px")}else{e.style.position="absolute";e.style.top=(parseInt(findPosY(f),10)+"px");e.style.left=(parseInt(findPosX(f),10)+parseInt(f.offsetWidth,10)+"px")}}}}$x_Show(e);dhtml_FixLeft(f,e,c);htmldb_IE_Select_Item_Fix(true);g_Single_Menu_Count=0;g_Single_Menu=e;document.onclick=dhtml_DocMenuSingleCheck;return}function dhtml_FixLeft(d,c,b){var a;if(document.all){a=document.body.clientWidth}else{a=window.innerWidth}if(b=="Bottom"){if(parseInt(a,10)=1;if(document.all&&a&&b){if(a.firstChild&&a.firstChild.nodeName!="IFRAME"){a.innerHTML=''+a.innerHTML}}return}var g_dhtmlMenuOn="dhtmlMenuOn";function app_AppMenuMultiOpenBottom(e,a,d){var c=$x(a);if(e!=gCurrentAppMenuImage){app_AppMenuMultiClose();var b=e.previousSibling.firstChild;e.className=g_dhtmlMenuOn;dhtml_MenuOpen(b,a,false,"Bottom",e);gCurrentAppMenuImage=e}else{dhtml_CloseAllSubMenus();app_AppMenuMultiClose()}return}function app_AppMenuMultiOpenBottom2(e,a,d){var c=$x(a);if(e!=gCurrentAppMenuImage){app_AppMenuMultiClose();var b=e.parentNode;e.className=g_dhtmlMenuOn;dhtml_MenuOpen(b,a,false,"Bottom",e);gCurrentAppMenuImage=e}else{dhtml_CloseAllSubMenus();app_AppMenuMultiClose()}return}function app_AppMenuMultiOpenBottom3(f,a,e,d){var c=$x(a);if(f!=gCurrentAppMenuImage){app_AppMenuMultiClose();var b=$x(e);f.className=g_dhtmlMenuOn;dhtml_MenuOpen(b,a,false,"Bottom",f);gCurrentAppMenuImage=f}else{dhtml_CloseAllSubMenus();app_AppMenuMultiClose()}return}function $a_report(g,c,f,b,a,h,k){var d={p_flow_id:$v("pFlowId"),p_flow_step_id:$v("pFlowStepId"),p_instance:$v("pInstance")},e="FLOW_PPR_OUTPUT_R"+g+"_";apex.jQuery("#report_"+g+"_catch").trigger("apexbeforerefresh",g);if(h){if(h==="current"){d.p_request=e}else{if(h==="reset"){d.p_request=e+"reset_R_"+g}}}else{if(!!a){d.p_request=e+a;d.p_clear_cache="RP";d.p_fsp_region_id=g}else{d.p_request=e+"pg_R_"+g;d.p_pg_max_rows=f;d.p_pg_min_row=c;d.p_pg_rows_fetched=b}}apex.jQuery(k).each(function(){var l;if(d.p_arg_names===undefined){d.p_arg_names=[];d.p_arg_values=[];l=0}else{l=d.p_arg_names.length}d.p_arg_names[l]=this.id;d.p_arg_values[l]=$v(this)});apex.jQuery.ajax({mode:"abort",port:g,dataType:"html",type:"post",url:"wwv_flow.show",traditional:true,data:d,success:function(l){var o=$u_js_temp_drop();apex.jQuery("#report_"+g+"_catch").attr("id","report_"+g+"_catch_old");apex.jQuery(o).html(l);apex.jQuery("#report_"+g+"_catch_old").replaceWith(apex.jQuery("#report_"+g+"_catch"));apex.jQuery(o).empty();apex.jQuery("#report_"+g+"_catch").trigger("apexafterrefresh",g)}})}function $u_js_temp_drop(){var a=apex.jQuery("#apex_js_temp_drop");if(a.length>0){a.empty()}else{a=apex.jQuery('
').prependTo(document.body).hide()}return a[0]}function $u_js_temp_clear(){var a=$x("apex_js_temp_drop");if(a){a.innerHTML=""}return a}function $a_report_Split(d,a,c){var b=a.split("_");$a_report(d,b[0],b[1],b[2],null,null,c)}function html_RemoveRow(b){var a=$x("htmldbAddRowTable");var c=$x_UpTill(b,"TR");if(a.childNodes.length>=2&&c){a.removeChild(c);a.normalize()}return}var g_CheckedArray_IE;function ie_RowFixStart(d){if(document.all){var c=$x_FormItems(d,"checkbox");g_CheckedArray_IE=[];for(var b=0,a=c.length;b";b.className=a.rows[0].cells[a.rows[0].cells.length-2].className;return}var gLastRowMoved=null;var gLastRowMovedColor="#CCCCCC";var gLastRowHighlight=true;function $tr_RowMoveFollow(b,a){if(gLastRowHighlight){if(a&&gLastRowMoved){html_RowHighlightOff(gLastRowMoved)}html_RowHighlight(b,gLastRowMovedColor)}gLastRowMoved=b}function html_RowUp(e,d){var c=$x_UpTill(e,"TR");ie_RowFixStart(c);$tr_RowMoveFollow(c,d);var a=c.parentNode;var b=c.previousSibling;while(!!b){if(b.nodeType==1){break}b=b.previousSibling}if(!!b&&!!b.firstChild&&b.firstChild.nodeName!="TH"&&b.nodeName=="TR"){oElement=a.insertBefore(c,b)}else{oElement=a.appendChild(c)}ie_RowFixFinish(oElement);return oElement}function html_RowDown(e,d){var c=$x_UpTill(e,"TR");ie_RowFixStart(c);$tr_RowMoveFollow(c,d);var b=c.parentNode;var a=c.nextSibling;while(!!a){if(a.nodeType==1){break}a=a.nextSibling}if(!!a&&a.nodeName=="TR"){oElement=b.insertBefore(c,a.nextSibling)}else{oElement=b.insertBefore(c,b.getElementsByTagName("TR")[1])}ie_RowFixFinish(oElement);return oElement}var tt_target;var gToolTipGraphic="arrow2.gif";var gToolTip=false;var gToopTipPointer=false;var gToolTipContent=false;function toolTip_init(){if(document&&document.body){gToolTipContent=$x("gToolTipContent");gToolTip=$x("dhtmltooltip");if(!gToolTip){gToolTip=$dom_AddTag(document.body,"DIV");gToolTip.id="dhtmltooltip";gToolTip.className="htmldbToolTip";gToolTip.style.position="absolute";gToolTip.style.border="1px solid black";gToolTip.style.padding="2px";gToolTip.style.backgroundColor="";gToolTip.style.visibility="hidden";gToolTip.style.zIndex=10000}gToopTipPointer=$x("dhtmlpointer");if(!gToopTipPointer){gToopTipPointer=$dom_AddTag(document.body,"IMG");gToopTipPointer.id="dhtmlpointer";gToopTipPointer.src=htmldb_Img_Dir+gToolTipGraphic;gToopTipPointer.style.position="absolute";gToopTipPointer.style.zIndex=10001}return true}else{return false}}function toolTip_disable(){if(toolTip_init()){tt_target=null;gToolTip.style.visibility="hidden";gToolTip.style.backgroundColor="";gToolTip.style.width="";gToopTipPointer.style.visibility="hidden";if(gToolTipContent){gToolTipContent.innerHTML=""}else{gToolTip.innerHTML=""}}}function toolTip_enable(a,k,g,f,b){a=(a)?a:((window.event)?event:null);var d=a.pageX?a.pageX:a.clientX+getScrollXY()[0];var c=a.pageY?a.pageY:a.clientY+getScrollXY()[1];if(toolTip_init()){tt_target=k;if(!g){g=k.getAttribute("htmldb:tip")}if(gToolTipContent){gToolTipContent.innerHTML=g}else{gToolTip.innerHTML=g}if(!!f){gToolTip.style.width=f+"px"}if(!!b){gToolTip.style.backgroundColor=b}else{gToolTip.style.backgroundColor="lightyellow"}gToopTipPointer.style.left=(10+d)+"px";gToopTipPointer.style.top=(15+c)+"px";gToolTip.style.left=(7+d)+"px";gToolTip.style.top=(28+c)+"px";gToolTip.style.visibility="visible";gToolTip.style.zIndex=10000;gToopTipPointer.style.zIndex=10001;gToopTipPointer.style.visibility="visible";try{k.addEventListener("mouseout",toolTip_disable,false)}catch(h){k.attachEvent("onmouseout",toolTip_disable)}}return false}function toolTip_follow(a,d){a=(a)?a:((window.event)?event:null);var c=a.pageX?a.pageX:a.clientX+getScrollXY()[0];var b=a.pageY?a.pageY:a.clientY+getScrollXY()[1];if(gToolTip){gToolTip.style.left=(7+c)+"px";gToolTip.style.top=(28+b)+"px";gToolTip.style.visibility="visible";gToolTip.style.zIndex=10000;gToopTipPointer.style.left=(10+c)+"px";gToopTipPointer.style.top=(15+b)+"px";gToopTipPointer.style.zIndex=10001;gToopTipPointer.style.visibility="visible"}return false}function dhtml_ShuttleValue(f,c){var d=[];var e=$x(f);var a=$x(c);d=html_SelectedOptions(e);if($x(d)){d=[d]}for(var b=0;b=0;e--){if(!!g.options[e].selected){if(f=="D"){if(e!=d-1){g.insertBefore(g.options[e],g.options[e+2])}}}}}else{var c=[];for(e=0;e=0;e--){g.insertBefore(c[e],g.firstChild)}}}}}};this.sort1=function(c){this.sort(this.Select1,c)};this.sort2=function(c){this.sort(this.Select2,c)};return}function $d_Overlap(e,a){var g=true;var k=true;var b=findPos(e);var h=b[0];var f=b[1];var o=findPos(a);var d=o[0];var c=o[1];if(d>h||h>d+a.offsetWidth){g=false}if(c>f||f>c+a.offsetHeight){g=false}return g}function apex_RefreshChart(a,d,c){var b=new htmldb_Get(null,$v("pFlowId"),"FLOW_FLASH_CHART_R"+d+"_"+c,a);var e=b.get();b=null;if(ie){window["c"+d].SetXMLText(e)}else{document["c"+d].SetXMLText(e)}}function apex_RefreshFlashChart(a,d,c){var b=new htmldb_Get(null,$v("pFlowId"),"FLOW_FLASH_CHART5_R"+d+"_"+c,a);var e=b.get();b=null;if(ie){window["c"+d].SetXMLText(e)}else{document["c"+d].SetXMLText(e)}}function apex_SWFFormFix(b){if(!ie){return false}var a="SWFFormFix";document.write('');$x(a).onclick()}function apex_SWFFormFixCallback(c,d){var b=document;var a=c;while(c==c.parentNode){if(c.nodeName.toLowerCase()=="form"){if(!!c.name&&c.name.length>0){b=b.forms[c.name]}}}a.parentNode.removeChild(a);window[d]=b[d];return true}function appendToList(b,a){trimmedValue="";for(i=0;i=0;i--){if(a.options[i].selected){a.options[i]=null}}apex.jQuery(a).change()}var gTabForm;var gTabFormRegionID;var gNumRows;var gNewRows;var gNewRowDatePicker="";var gTabFormData=new Array();var gRowActive=new Array();var gErrItems=new Array();var gChangedItems=new Array();var gTabFormInitRow;var gTabFormDefaultBG;var gStyleMouseOver=new Array();var gStyleChecked=new Array();function pad(b,a){var c=""+b;while(c.length0){apex.jQuery("#"+gErrItems[i]).addClass("apex-tabular-form-error")}}if(pNewRowMap){for(var i=0;i=0){apex.jQuery("[name="+pNewRowMap[i]+"_"+pad((gNumRows+gNewRows),4)+"_NOSUBMIT]").each(function(){if(apex.jQuery(this).val()==pNewRowVals[i][(gNewRows-1)]){apex.jQuery(this).prop("checked",true)}})}if(pDispTypeMap[i].indexOf("SIMPLE_CHECKBOX")>=0){apex.jQuery("#"+pNewRowMap[i]+"_"+pad((gNumRows+gNewRows),4)+"_01").each(function(){vItem=$x(pNewRowMap[i]+"_"+pad((gNumRows+gNewRows),4)+"_01");if(vItem.value==pNewRowVals[i][(gNewRows-1)]){apex.jQuery(this).prop("checked",true)}})}}}vItems=$x_FormItems($x(gTabFormReportID));for(var i=0;i0||c.length>0){gStyleMouseOver[a]=b;gStyleChecked[a]=c;gRowActive[a]=new Array();apex.jQuery("#report_"+a+" .highlight-row").each(function(f,g){gRowActive[a][f]="N"});setRowHighlight(a)}apex.jQuery("#"+a).attr("aria-live","polite").bind("apexrefresh",function(){$a_report(d,false,false,false,false,"reset",e)})}function setRowHighlight(a){apex.jQuery("#report_"+a+" .highlight-row").live("hover",function(b){if(b.type=="mouseover"){apex.jQuery(this).closest("tr").children("td").css("background-color",gStyleMouseOver[a])}else{if(b.type=="mouseout"){if(gRowActive[a][apex.jQuery("#report_"+a+" .highlight-row").index(this)]==="Y"){apex.jQuery(this).closest("tr").children("td").css("background-color",gStyleChecked[a])}else{apex.jQuery(this).closest("tr").children("td").css("background-color","")}}}})}apex.security={framebreaker:function(a){if(self!=top&&((!a||a=="D")||(a=="S"&&top.location.host!=self.location.host))){document.documentElement.style.visibility="hidden";apex.jQuery(function(){document.write("X")});top.location=self.location}else{document.documentElement.style.visibility="visible"}}};function doSubmit(a){apex.submit(a)}function confirmDelete(b,a){apex.confirm(b,a)}function $v_IsEmpty(a){return apex.item(a).isEmpty()}function html_submitFormFromKeyPress(a){if(event.keyCode=="13"){apex.submit()}}function submitEnter(b,f){var d=$x(b);var c=(d)?d.id:"";var a;if(window.event){a=window.event.keyCode}else{if(f){a=f.which}else{return true}}if(a==13){apex.submit(c);return false}else{return true}}function html_processing(){var b=$x("htmldbWait");if(!b){var a=document.createElement("DIV");a.className="htmldbProcessing";a.style.zIndex=20000;a.id="htmldbDisablePage";a.style.width="100%";a.style.height="100%";a.onclick="return false;";a.style.position="absolute";a.style.top="0";a.style.left="0";document.body.insertBefore(a,document.body.firstChild)}}function html_enableBase(){var a=$x("htmldbDisablePage");if(a){a.parentNode.removeChild(a)}}function html_disableBase(d,e){var b=$x("htmldbDisablePage");if(!b){var a=document.createElement("DIV");a.className=(!!e)?e:"htmldbDisablePage";a.style.zIndex=d;a.id="htmldbDisablePage";a.style.width="100%";a.style.height="100%";a.onclick="return false;";a.style.position="absolute";a.style.top="0";a.style.left="0";document.body.insertBefore(a,document.body.firstChild)}}function dhtml_CloseDialog(a){html_enableBase();$x_Hide($x_UpTill(a,"TABLE"));toolTip_disable()}function html_Centerme(d){var b=$x(d);if(document.all){l_Width=document.body.clientWidth;l_Height=document.body.clientHeigth}else{l_Width=window.innerWidth;l_Height=window.innerHeight}var a=b.offsetWidth;var c=b.offsetHeight;b.style.top="40%";b.style.left="40%"}function hideShow(f,b,a,c){var e=$x(b);var d=$x(f);if(d.style.display=="none"||d.style.display==""||d.style==null){e.src=c;$x(f).style.display="block"}else{e.src=a;$x(f).style.display="none"}return}function disableItems(testString,item1,item2,item3,item4,item5,item6,item7,item8,item9,item10){var theTest=eval(testString);var i=1;if(theTest){for(i;i<12;i++){if(!!arguments[i]){disItem=$x(arguments[i]);disItem.style.background="#cccccc";disItem.disabled=true}}}else{for(i;i<12;i++){if(!!arguments[i]){disItem=$x(arguments[i]);disItem.disabled=false;disItem.style.background="#ffffff"}}}}function htmldbCheckCookie(a){SetCookie("ISCOOKIE","true");flow=GetCookie("ISCOOKIE");return}function shuttleItem(g,b,f){var l=$x(g),o=$x(b),d=[],h=[],m=[],e;if(f){for(e=0;e<=l.length-1;e++){l.options[e].selected=true}}for(e=0;e=0){a=a.substring(0,c)}else{if(b>=0){a=a.substring(0,b)}}return a}function init_htmlPPRReport2(d){var b=$x("report"+d);if(b){var e=b.getElementsByTagName("TH");for(var c=0;c","");if(c){$x("report"+f).innerHTML=c+$x("report"+f).innerHTML}if(h){$x("report"+f).innerHTML+=h}document.body.style.cursor="";init_htmlPPRReport(f);i=null;return}function PPR_Tabluar_Submit(l,g,d,n,o,m,j){var h=$x(l),c,f,b;if(o){c=new htmldb_Get(l,g,n,d,null,"wwv_flow.accept")}else{c=new htmldb_Get(null,g,n,d,null,"wwv_flow.accept")}var k=$x_FormItems(h);for(f=0;f","")}else{b=c.get(null,"","")}if(m){init_htmlPPRReport(m)}c=null;return b}function removeMessageTimeout(){setTimeout(function(){$x("htmldbMessageHolder").innerHTML=""},5000)}html_RowHighlight=$x_RowHighlight;html_RowHighlightOff=$x_RowHighlightOff;html_SelectedOptions=$f_SelectedOptions;html_SelectValue=$f_SelectValue;if(!apex.widget||typeof(apex.widget)!="object"){apex.widget={}}if(apex.widget.calendar===null||typeof(apex.widget.calendar)!="object"){apex.widget.calendar={}}apex.widget={textarea:function(f,c){var h=apex.jQuery("#"+f),g=apex.jQuery.extend({isResizable:false,hasCharCounter:false,maxChar:null},c);if(h.length===0){return}function e(){var k=null,j=null,i=h.width(),l=h.height();h.css("resize","none");apex.jQuery("div.apex_size_bar, div.apex_size_grip",h.parent()).mousedown(m);h.parent().width(h.outerWidth());function m(q){k=h.width()-q.pageX;j=h.height()-q.pageY;h.css("opacity",0.25);apex.jQuery(document).bind("mousemove.apex_startResize",function(r){return o(r,(apex.jQuery(q.currentTarget).css("cursor")=="se-resize"))}).bind("mouseup.apex_startResize",n);return false}function o(q,r){h.height(Math.max(l,j+q.pageY)+"px");if(r){h.width(Math.max(i,k+q.pageX)+"px");h.parent().width(h.outerWidth())}return false}function n(q){apex.jQuery(document).unbind("mousemove.apex_startResize").unbind("mouseup.apex_startResize");h.css("opacity",1)}}function a(){var i=h.val().length,j=i/g.maxChar*100;if(i>=g.maxChar){h.val(h.val().substr(0,g.maxChar));h.css("color","red");b.html(g.maxChar)}else{h.css("color","black");b.html(i)}if(i>0){d.show()}else{d.hide()}if(j>95){d.css("color","red")}else{if(j>=90){d.css("color","#EAA914")}else{d.css("color","black")}}}if(g.isResizable){e()}if(g.hasCharCounter){var d=apex.jQuery("#"+f+"_CHAR_COUNT"),b=apex.jQuery("#"+f+"_CHAR_COUNTER");h.change(a).keyup(a).focus(a);a()}apex.widget.initPageItem(f,{show:function(){h.closest("fieldset").show()},hide:function(){h.closest("fieldset").hide()}})},resizable:function(a){apex.widget.textarea(a,{isResizable:true})},waitPopup:function(b){var a=(b?b:'');if(!$x("apex_wait_popup")){apex.jQuery('
'+a+'
').prependTo("body")}else{apex.jQuery("#apex_wait_popup").html(a)}$x("apex_wait_overlay").style.visibility="visible";window.setTimeout('apex.jQuery("#apex_wait_popup").html(apex.jQuery("#apex_wait_popup").html());',100)},regionDisplaySelector:function(c){var b=apex.jQuery("#"+c+"_RDS"),a=apex.jQuery("a[href!=#SHOW_ALL]",b);apex.jQuery(b).delegate("a","click",function(d){var e=this,f=apex.jQuery(e).attr("href");if(f=="#SHOW_ALL"){a.each(function(){apex.jQuery(apex.jQuery(this).attr("href")+":hidden").show()})}else{a.each(function(){apex.jQuery(apex.jQuery(this).attr("href")+":visible").hide()});apex.jQuery(f).show()}apex.jQuery(".apex-rds-selected",b).removeClass("apex-rds-selected");apex.jQuery(e).parent().addClass("apex-rds-selected");d.preventDefault()})}};apex.widget.initPageItem=function(a,b){apex.item(a,b)};apex.widget.enableIcon=function(b,a,c){b.find("img").css({opacity:1,cursor:""}).parent("a").attr("href",a);if(c){b.click(c)}};apex.widget.disableIcon=function(a){a.find("img").css({opacity:0.5,cursor:"default"}).parent("a").removeAttr("href").unbind("click")};apex.widget.autocomplete=function(h,a,i){var d=null;function q(){d.trigger("apexrefresh")}function l(){d.trigger("apexbeforerefresh");$s(d[0],"","");d.flushCache();d.trigger("apexafterrefresh")}function g(r){var s=typeof r==="string"?r:r[0];if(e.isEscaped){return apex.util.escapeSc(s)}else{return s}}function f(r){if(e.isEscaped){return apex.util.escapeSc(r.d)}else{return r.d}}function m(r){if(!r){return[]}return apex.jQuery.map(r,function(s){return{data:s,value:s,result:s}})}function k(r){return apex.jQuery.map(r,function(s){return{data:s,value:s.r,result:s.d}})}function o(r){return r}function c(r){return typeof r==="string"?r:r[0]}function b(r,s){$s(this.id+"_HIDDENVALUE",(s?s.r:""))}function n(r){if(!this.value){$s(this.id+"_HIDDENVALUE","")}else{if(!i.mustMatch){$s(this.id+"_HIDDENVALUE",this.value)}}}function j(s,u){var r=apex.jQuery.extend({x01:s.q,x02:s.limit,x03:s.timestamp,p_request:"NATIVE="+i.ajaxIdentifier,p_flow_id:$v("pFlowId"),p_flow_step_id:$v("pFlowStepId"),p_instance:$v("pInstance")},s);delete r.q;delete r.limit;delete r.timestamp;if(i.optimizeRefresh){var t=false;apex.jQuery(i.dependingOnSelector+","+i.pageItemsToSubmit).each(function(){if(apex.item(this).isEmpty()){t=true;return false}});if(t){return}}apex.jQuery(i.dependingOnSelector+","+i.pageItemsToSubmit).each(function(){var v;if(r.p_arg_names===undefined){r.p_arg_names=[];r.p_arg_values=[];v=0}else{v=r.p_arg_names.length}r.p_arg_names[v]=this.id;r.p_arg_values[v]=$v(this)});apex.jQuery.ajax({mode:"abort",port:"autocomplete",dataType:"json",type:"post",url:"wwv_flow.show",traditional:true,data:r,success:u})}var e=apex.jQuery.extend({formatItem:i.useHiddenField?f:g,formatResult:o,formatMatch:c,parse:i.useHiddenField?k:m,multiple:i.multipleSeparator?true:false,matchSubset:!i.matchContains,isEscaped:true},i);delete e.useHiddenField;delete e.ajaxIdentifier;delete e.dependingOnSelector;delete e.optimizeRefresh;delete e.pageItemsToSubmit;d=apex.jQuery(h).autocomplete((a)?a:j,e);if(i.useHiddenField){d.result(b).change(n)}if(i.dependingOnSelector){apex.jQuery(i.dependingOnSelector).change(q)}d.bind("apexrefresh",l)};apex.widget.selectList=function(d,e){var g=apex.jQuery.extend({dependingOnSelector:null,optimizeRefresh:true,pageItemsToSubmit:null,optionAttributes:null,nullValue:""},e),b=apex.jQuery(d);b.each(function(){apex.widget.initPageItem(this.id,{nullValue:g.nullValue})});function a(){apex.jQuery('option[value!="'+g.nullValue+'"]',b).remove()}function c(i){b.next(".loading-indicator").remove();if(i.error){alert(i.error);return false}var h="";apex.jQuery.each(i.values,function(){h=h+'"});b.append(h);$s(b[0],i["default"]);b.trigger("apexafterrefresh")}function f(){a();b.trigger("apexbeforerefresh");if(g.optimizeRefresh){var i=false;apex.jQuery(g.dependingOnSelector).each(function(){if(apex.item(this).isEmpty()){i=true;return false}});if(i){b.change();b.trigger("apexafterrefresh");return}}var h={p_request:"NATIVE="+g.ajaxIdentifier,p_flow_id:$v("pFlowId"),p_flow_step_id:$v("pFlowStepId"),p_instance:$v("pInstance")};apex.jQuery(g.dependingOnSelector+","+g.pageItemsToSubmit).each(function(){var j;if(h.p_arg_names===undefined){h.p_arg_names=[];h.p_arg_values=[];j=0}else{j=h.p_arg_names.length}h.p_arg_names[j]=this.id;h.p_arg_values[j]=$v(this)});b.after('');apex.jQuery.ajax({mode:"abort",port:"selectlist"+d,dataType:"json",type:"post",url:"wwv_flow.show",traditional:true,data:h,success:c})}if(g.dependingOnSelector){apex.jQuery(g.dependingOnSelector).bind("apexbeforerefresh",a).change(f)}b.bind("apexrefresh",f)};apex.widget.popupLov=function(a,c){var f=apex.jQuery.extend({dependingOnSelector:null,optimizeRefresh:true,pageItemsToSubmit:null,nullValue:"",filterWithValue:false,windowParameters:null,inputField:"NOT_ENTERABLE"},c),d=apex.jQuery(a);var h=(f.inputField=="ENTERABLE");apex.jQuery(a).each(function(){apex.widget.initPageItem(this.id,{enable:function(){apex.widget.enableIcon(apex.jQuery("#"+this.id+"_holder").find("a"),"#",b);if(h){d.prop("disabled",false).removeClass("apex_disabled")}else{apex.jQuery("#"+this.id+"_HIDDENVALUE").prop("disabled",false)}},disable:function(){apex.widget.disableIcon(apex.jQuery(d).closest("tr"));if(h){d.prop("disabled",true).addClass("apex_disabled")}else{apex.jQuery("#"+this.id+"_HIDDENVALUE").prop("disabled",true)}},show:function(){apex.jQuery("#"+this.id).closest("tr").show()},hide:function(){apex.jQuery("#"+this.id).closest("tr").hide()},setValue:function(i,j){if(h){apex.jQuery("#"+this.id).val(i)}else{apex.jQuery("#"+this.id+"_HIDDENVALUE").val(i);apex.jQuery("#"+this.id).val(j)}},getValue:function(){var i;if(h){i=apex.jQuery("#"+this.id).val()}else{i=apex.jQuery("#"+this.id+"_HIDDENVALUE").val()}return i},nullValue:f.nullValue})});function g(){d.trigger("apexrefresh")}function e(){d.trigger("apexbeforerefresh");$s(d.attr("id"),f.nullValue,f.nullValue);d.trigger("apexafterrefresh");return}function b(){var j="wwv_flow.show?p_flow_id="+$v("pFlowId")+"&p_flow_step_id="+$v("pFlowStepId")+"&p_instance="+$v("pInstance")+"&p_request=NATIVE%3D"+f.ajaxIdentifier;if(f.filterWithValue){j=j+"&x02="+encodeURIComponent(d.val())}apex.jQuery(f.dependingOnSelector+","+f.pageItemsToSubmit).each(function(){j=j+"&p_arg_names="+encodeURIComponent(this.id)+"&p_arg_values="+encodeURIComponent($v(this))});var i=open(j,"winLovList",f.windowParameters);if(i.opener==null){i.opener=self}i.focus();return false}apex.jQuery(a+"_fieldset a").click(b);if(f.dependingOnSelector){apex.jQuery(f.dependingOnSelector).change(g)}d.bind("apexrefresh",e);if(!h){d.focus(function(){apex.jQuery(a+"_fieldset a").focus()})}};apex.widget.checkboxAndRadio=function(b,d,c){var f=apex.jQuery.extend({action:null,dependingOnSelector:null,optimizeRefresh:true,pageItemsToSubmit:null,numberOfColumns:1,nullValue:"",inputName:null,attributes:null,optionAttributes:null},c),g=apex.jQuery(b);apex.jQuery(b).each(function(){var i=this;apex.widget.initPageItem(this.id,{enable:function(){apex.jQuery(":"+d,i).prop("disabled",false).removeClass("apex_disabled_multi")},disable:function(){apex.jQuery(":"+d,i).prop("disabled",true).addClass("apex_disabled_multi")},setValue:function(k){var j=apex.jQuery(":"+d,i),m=[];j.prop("checked",false);if(d=="checkbox"){m=apex.util.toArray(k)}else{m[0]=k}for(var l=0;l1){i=i+''}apex.jQuery.each(j.values,function(k){if(f.numberOfColumns>1){if((k+1)%f.numberOfColumns==1){if(k>0){i=i+""}i=i+""}i=i+""}else{if((j.length-1)!=k){i=i+"
"}}});g.append(i);$s(g[0],j["default"]);g.trigger("apexafterrefresh")}function e(){g.trigger("apexbeforerefresh");g.empty();if(f.optimizeRefresh){var j=false;apex.jQuery(f.dependingOnSelector).each(function(){if(apex.item(this).isEmpty()){j=true;return false}});if(j){g.change();g.trigger("apexafterrefresh");return}}var i={p_request:"NATIVE="+f.ajaxIdentifier,p_flow_id:$v("pFlowId"),p_flow_step_id:$v("pFlowStepId"),p_instance:$v("pInstance")};apex.jQuery(f.dependingOnSelector+","+f.pageItemsToSubmit).each(function(){var k;if(i.p_arg_names===undefined){i.p_arg_names=[];i.p_arg_values=[];k=0}else{k=i.p_arg_names.length}i.p_arg_names[k]=this.id;i.p_arg_values[k]=$v(this)});g.append('');apex.jQuery.ajax({mode:"abort",port:"checkboxRadio"+b,dataType:"json",type:"post",url:"wwv_flow.show",traditional:true,data:i,success:a})}if(f.dependingOnSelector){apex.jQuery(f.dependingOnSelector).change(h)}g.bind("apexrefresh",e);if(f.action==="REDIRECT_SET_VALUE"){g.find("input").click(function(){location.href="f?p="+$v("pFlowId")+":"+$v("pFlowStepId")+":"+$v("pInstance")+"::"+$v("pdebug")+"::"+g.attr("id")+":"+$v(g.attr("id"))})}else{if(f.action==="SUBMIT"){g.find("input").click(function(){apex.submit(g.attr("id"))})}}g.focus(function(){apex.util.setFocusFirstDescendant(this)})};apex.widget.checkbox=function(a,b){apex.widget.checkboxAndRadio(a,"checkbox",b)};apex.widget.radioGroup=function(a,b){apex.widget.checkboxAndRadio(a,"radio",b)};apex.widget.shuttle=function(q,d){var f=apex.jQuery.extend({dependingOnSelector:null,optimizeRefresh:true,pageItemsToSubmit:null,optionAttributes:null},d);var o=apex.jQuery(q),v=apex.jQuery(q+"_LEFT"),a=apex.jQuery(q+"_RIGHT"),w=apex.jQuery("option",v),s=apex.jQuery("option",a);apex.jQuery(q).each(function(){apex.widget.initPageItem(this.id,{enable:function(){var x;x=$x(this.id);c();apex.widget.enableIcon(apex.jQuery("td.shuttleControl a",x).add("td.shuttleSort2 a",x),"#");apex.jQuery("select",x).prop("disabled",false).removeClass("apex_disabled")},disable:function(){var x;x=$x(this.id);apex.jQuery("option:selected",x).attr("selected",false);apex.widget.disableIcon(apex.jQuery("td.shuttleControl a",x).add("td.shuttleSort2 a",x));apex.jQuery("select",x).prop("disabled",true).addClass("apex_disabled")},setValue:function(x){var z;n();z=apex.util.toArray(x);for(var y=0;y"+this.d+""});w=v.append(x).children();$s(o[0],y["default"]);w=apex.jQuery("option",v);s=apex.jQuery("option",a);o.trigger("apexafterrefresh")}function e(){o.trigger("apexbeforerefresh");w=v.empty().children();s=a.empty().children();if(f.optimizeRefresh){var y=false;apex.jQuery(f.dependingOnSelector).each(function(){if(apex.item(this).isEmpty()){y=true;return false}});if(y){o.change();o.trigger("apexafterrefresh");return}}var x={p_request:"NATIVE="+f.ajaxIdentifier,p_flow_id:$v("pFlowId"),p_flow_step_id:$v("pFlowStepId"),p_instance:$v("pInstance")};apex.jQuery(f.dependingOnSelector+","+f.pageItemsToSubmit).each(function(){var z;if(x.p_arg_names===undefined){x.p_arg_names=[];x.p_arg_values=[];z=0}else{z=x.p_arg_names.length}x.p_arg_names[z]=this.id;x.p_arg_values[z]=$v(this)});apex.jQuery("td.shuttleControl",o).prepend('');apex.jQuery.ajax({mode:"abort",port:"shuttle"+q,dataType:"json",type:"post",url:"wwv_flow.show",traditional:true,data:x,success:u})}function l(){v.empty().append(w).children().attr("selected",false);a.empty().append(s).children().attr("selected",false);o.change();return false}function i(x,z){var y=apex.jQuery("option"+(z?"":":selected"),v);apex.jQuery("option:selected",a).attr("selected",false);if(y.length){y.appendTo(a).attr("selected",true);o.change()}return false}function t(){i(null,true);return false}function k(x,y){var z=apex.jQuery("option"+(y?"":":selected"),a);apex.jQuery("option:selected",v).attr("selected",false);if(z.length){z.appendTo(v).attr("selected",true);o.change()}return false}function n(){k(null,true);return false}function h(){apex.jQuery("option:selected",a).prependTo(a).attr("selected",true);o.trigger("shuttlechangeorder");return false}function g(){apex.jQuery("option:selected",a).each(function(){var x=apex.jQuery(this).prev();if(x.length===0||x.attr("selected")){return}apex.jQuery(this).insertBefore(x).attr("selected",true)});o.trigger("shuttlechangeorder");return false}function m(){apex.jQuery("option:selected",a).each(function(){var x=apex.jQuery(this).next();if(x.length===0||x.attr("selected")){return}apex.jQuery(this).insertAfter(x).attr("selected",true)});o.trigger("shuttlechangeorder");return false}function b(){apex.jQuery("option:selected",a).appendTo(a).attr("selected",true);o.trigger("shuttlechangeorder");return false}function r(x){x.stopImmediatePropagation()}function c(){apex.jQuery(q+"_RESET").click(l);apex.jQuery(q+"_MOVE").click(i);apex.jQuery(q+"_MOVE_ALL").click(t);apex.jQuery(q+"_REMOVE").click(k);apex.jQuery(q+"_REMOVE_ALL").click(n);apex.jQuery(q+"_TOP").click(h);apex.jQuery(q+"_UP").click(g);apex.jQuery(q+"_DOWN").click(m);apex.jQuery(q+"_BOTTOM").click(b)}if(!window.flowSelectArray){window.flowSelectArray=[]}window.flowSelectArray[window.flowSelectArray.length]=a.attr("id");if(f.dependingOnSelector){apex.jQuery(f.dependingOnSelector).change(j)}o.bind("apexrefresh",e);v.change(r);a.change(r);apex.jQuery(v).dblclick(i);apex.jQuery(a).dblclick(k);c();o.focus(function(){apex.util.setFocusFirstDescendant(this)})};apex.widget.listManager=function(b,d){var g=apex.jQuery.extend({dependingOnSelector:null,optimizeRefresh:true,pageItemsToSubmit:null,filterWithValue:false,windowParameters:null},d),e=apex.jQuery(b);apex.jQuery(b).each(function(){apex.widget.initPageItem(this.id,{enable:function(){var i;i=$x(this.id+"_fieldset");apex.jQuery(":input",i).prop("disabled",false).filter("[type!=button]").removeClass("apex_disabled");a();apex.widget.enableIcon(apex.jQuery(i),"#")},disable:function(){var i;i=$x(this.id+"_fieldset");apex.jQuery("option:selected",$x(this.id)).attr("selected",false);apex.jQuery(":input",i).prop("disabled",true).filter("[type!=button]").addClass("apex_disabled");apex.widget.disableIcon(apex.jQuery(i))},hide:function(){apex.jQuery("#"+this.id+"_fieldset").hide()},show:function(){apex.jQuery("#"+this.id+"_fieldset").show()},setValue:function(j){if(typeof(j)!=="undefined"){var k,i;k=[];k=apex.util.toArray(j);apex.jQuery.each(k,function(l,m){i+='"});e.find("option").remove().end().append(i)}},getValue:function(){var i=[];apex.jQuery("option",e[0]).each(function(){i[i.length]=this.value});return i}})});function h(){e.trigger("apexrefresh")}function f(){e.trigger("apexbeforerefresh");apex.jQuery(b+"_ADD").val("");apex.jQuery("option",e).remove();e.change();e.trigger("apexafterrefresh");return}function c(){var j="wwv_flow.show?p_flow_id="+$v("pFlowId")+"&p_flow_step_id="+$v("pFlowStepId")+"&p_instance="+$v("pInstance")+"&p_request=NATIVE%3D"+g.ajaxIdentifier;if(g.filterWithValue){j=j+"&x02="+encodeURIComponent(apex.jQuery(b+"_ADD").val())}apex.jQuery(g.dependingOnSelector+","+g.pageItemsToSubmit).each(function(){j=j+"&p_arg_names="+encodeURIComponent(this.id)+"&p_arg_values="+encodeURIComponent($v(this))});var i=open(j,"winLovList",g.windowParameters);if(i.opener==null){i.opener=self}i.focus();return false}function a(){apex.jQuery(b+"_ADD_fieldset a").click(c)}a();if(g.dependingOnSelector){apex.jQuery(g.dependingOnSelector).change(h)}e.bind("apexrefresh",f);if(!window.flowSelectArray){window.flowSelectArray=[]}window.flowSelectArray[window.flowSelectArray.length]=e.attr("id")};apex.widget.ckeditor3=function(b,d){var c=apex.jQuery.extend({toolbar:"Basic",toolbarStartupExpanded:true,disableNativeSpellChecker:false,menu_groups:"clipboard,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash"},d);var e=0;if(c.toolbar==="Basic"){if(c.skin==="kama"){e=c.toolbarStartupExpanded?185:205}else{if(c.skin==="office2003"){e=c.toolbarStartupExpanded?181:201}else{if(c.skin==="v2"){e=c.toolbarStartupExpanded?175:195}}}}else{if(c.toolbar==="Intermediate"){if(c.skin==="kama"){e=c.toolbarStartupExpanded?240:260}else{if(c.skin==="office2003"){e=c.toolbarStartupExpanded?235:255}else{if(c.skin==="v2"){e=c.toolbarStartupExpanded?230:250}}}}else{if(c.toolbar==="Full"){if(c.skin==="kama"){e=c.toolbarStartupExpanded?530:530}else{if(c.skin==="office2003"){e=c.toolbarStartupExpanded?590:605}else{if(c.skin==="v2"){e=c.toolbarStartupExpanded?575:595}}}}}}var a=(c.skin==="kama"?25:20);if(c.toolbar==="Basic"){c.toolbar=[["Bold","Italic","-","NumberedList","BulletedList","-","Link","Unlink"]]}else{if(c.toolbar==="Intermediate"){c.toolbar=[["Cut","Copy","Paste","-","Bold","Italic","Underline","-","NumberedList","BulletedList","-","Outdent","Indent","-","Link","Unlink"],"/",["Format","Font","FontSize","TextColor","-","JustifyLeft","JustifyCenter","JustifyRight"]]}else{if(c.toolbar==="Full"){c.toolbar=[["Cut","Copy","Paste","PasteText","PasteFromWord","-","Print","Preview"],["Templates"],["Link","Unlink","Anchor"],["Image","Table","HorizontalRule","Smiley","SpecialChar","PageBreak"],"/",["Bold","Italic","Underline","Strike","-","Subscript","Superscript"],["NumberedList","BulletedList","-","Outdent","Indent","Blockquote"],["JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock"],["TextColor","BGColor"],["ShowBlocks"],"/",["Styles","Format","Font","FontSize"],["Maximize","Source"]]}}}if(c.toolbarStartupExpanded){c.toolbarCanCollapse=false}apex.jQuery(b).each(function(){var f=c;f.height=(this.rows*15)+a;f.width=(this.cols*9.50){h+="
    ";for(var l=0;l";if(m[l].data.attributes.href){h+='"+m[l].data.title+""}else{h+=m[l].data.title}if(m[l].children){b(m[l].children)}h+=""}h+="
"}}b(k);apex.jQuery("#"+c).append(h)}else{var i=apex.jQuery("#"+c).tree({data:{type:"json",async:true,opts:{"static":k,isTreeLoaded:false,method:"POST",url:"wwv_flow.show"}},ui:{theme_name:f},types:d,rules:{valid_children:"root",use_max_depth:true},callback:{},root:{draggable:false,valid_children:"folder"},folder:{valid_children:"file"},file:{valid_children:"none",max_children:0,max_depth:0}});if(e=="S"){apex.jQuery("#"+c).click(a.onclick)}else{apex.jQuery("#"+c).dblclick(a.onclick)}apex.jQuery("a[tooltip]","#"+c).bind("mouseover",a.showTooltip);if(apex.jQuery.tree.reference(i)!=null){apex.jQuery.tree.reference(i).open_branch(apex.jQuery("#"+g))}if(j){if(apex.jQuery.tree.reference(i)!=null){apex.jQuery.tree.reference(i).select_branch(apex.jQuery("#"+j))}}}};a.onselect=function(d,e){var c,b=e.get_node(d);c=apex.jQuery("a",b).attr("href");document.location.href=c};a.onclick=function(b){var c=apex.jQuery(b.target).attr("href");if(c&&c!=""){document.location.href=c}};a.expand_all=function(b){if($v("pScreenReaderMode")==="YES"){}else{var c=apex.jQuery("#"+b);if(apex.jQuery.tree.reference(c)!=null){apex.jQuery.tree.reference(c).open_all()}}};a.collapse_all=function(b){if($v("pScreenReaderMode")==="YES"){}else{var c=apex.jQuery("#"+b);if(apex.jQuery.tree.reference(c)!=null){apex.jQuery.tree.reference(c).close_all()}}};a.reset=function(c,b){if($v("pScreenReaderMode")==="YES"){}else{var d=apex.jQuery("#"+c);if(apex.jQuery.tree.reference(d)!=null){apex.jQuery.tree.reference(d).close_all();apex.jQuery.tree.reference(d).open_branch(apex.jQuery("#"+b))}}};a.showTooltip=function(b){var c=apex.jQuery(b.target).attr("tooltip");if(c&&c!=""){toolTip_enable(b,this,apex.jQuery(this).attr("tooltip"))}};a.hideTooltip=function(){toolTip_disable()}})(apex.widget.tree);apex.widget.textareaClob={upload:function(c,b){var a=new apex.ajax.clob(function(){if(p.readyState===1){}else{if(p.readyState===2){}else{if(p.readyState===3){}else{if(p.readyState===4){$s(c,"");apex.submit(b)}else{return false}}}}});a._set($v(c))}};var hour_regexp=new RegExp("hh((24)|(12))?","gi");var min_regexp=new RegExp("ii","gi");var sec_regexp=new RegExp("ss","gi");var ampm_regexp=new RegExp("((%at%)|(%pt%))","gi");function Timepicker(){}Timepicker.prototype={init:function(){this._mainDivId="ui-timepicker-div";this._inputId=null;this._orgValue=null;this._orgHour=null;this._orgMinute=null;this._colonPos=-1;this._visible=false;this.tpDiv=apex.jQuery('');apex.jQuery.extend(apex.jQuery.datepicker._defaults,{time24h:false,showTime:false,ampmNames:["AM","PM"],timeFormat:"HH:NI",altTimeField:"",defHour:0,defMinute:0,defAmpm:"",escapeKey:false});apex.jQuery.datepicker._connectDatepickerOverride=apex.jQuery.datepicker._connectDatepicker;apex.jQuery.datepicker._connectDatepicker=function(c,b){apex.jQuery.datepicker._connectDatepickerOverride(c,b);if(this._get(b,"showTime")){b.settings.showButtonPanel=true}var a=this._get(b,"showOn");if(a=="button"||a=="both"){b.trigger.unbind("click");b.trigger.click(function(){if(apex.jQuery.datepicker._datepickerShowing&&apex.jQuery.datepicker._lastInput==c){apex.jQuery.datepicker._hideDatepicker(null)}else{apex.jQuery.datepicker._showDatepicker(c)}return false})}};apex.jQuery.datepicker._showDatepickerOverride=apex.jQuery.datepicker._showDatepicker;apex.jQuery.datepicker._showDatepicker=function(b){apex.jQuery.datepicker._showDatepickerOverride(b);b=b.target||b;if(b.nodeName.toLowerCase()!="input"){b=apex.jQuery("input",b.parentNode)[0]}if(apex.jQuery.datepicker._isDisabledDatepicker(b)){return}var c=apex.jQuery.datepicker._getInst(b);var a=apex.jQuery.datepicker._get(c,"showTime");if(a){apex.jQuery.timepicker.show(b)}};apex.jQuery.datepicker._checkExternalClickOverride=apex.jQuery.__checkExternalClick;apex.jQuery.datepicker._checkExternalClick=function(b){if(!$.datepicker._curInst){return}var a=$(b.target);if(a[0].id!=$.datepicker._mainDivId&&a.parents("#"+$.datepicker._mainDivId).length==0&&!a.hasClass($.datepicker.markerClassName)&&!a.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._curInst.escapeKey=true;$.datepicker._hideDatepicker()}};apex.jQuery.datepicker._doKeyDownOverride=apex.jQuery.datepicker._doKeyDown;apex.jQuery.datepicker._doKeyDown=function(b){var d=$.datepicker._getInst(b.target);var e=true;var a=d.dpDiv.is(".ui-datepicker-rtl");d._keyEvent=true;d.escapeKey=false;if($.datepicker._datepickerShowing){switch(b.keyCode){case 9:if($.datepicker._get(d,"showTime")){d.escapeKey=true}$.datepicker._hideDatepicker();e=false;break;case 13:var c=$("td."+$.datepicker._dayOverClass,d.dpDiv).add($("td."+$.datepicker._currentClass,d.dpDiv));if(c[0]){$.datepicker._selectDay(b.target,d.selectedMonth,d.selectedYear,c[0])}else{$.datepicker._hideDatepicker()}return false;break;case 27:d.escapeKey=true;$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(b.target,(b.ctrlKey?-$.datepicker._get(d,"stepBigMonths"):-$.datepicker._get(d,"stepMonths")),"M");break;case 34:$.datepicker._adjustDate(b.target,(b.ctrlKey?+$.datepicker._get(d,"stepBigMonths"):+$.datepicker._get(d,"stepMonths")),"M");break;case 35:if(b.ctrlKey||b.metaKey){$.datepicker._clearDate(b.target)}e=b.ctrlKey||b.metaKey;break;case 36:if(b.ctrlKey||b.metaKey){$.datepicker._gotoToday(b.target)}e=b.ctrlKey||b.metaKey;break;case 37:if(b.ctrlKey||b.metaKey){$.datepicker._adjustDate(b.target,(a?+1:-1),"D")}e=b.ctrlKey||b.metaKey;if(b.originalEvent.altKey){$.datepicker._adjustDate(b.target,(b.ctrlKey?-$.datepicker._get(d,"stepBigMonths"):-$.datepicker._get(d,"stepMonths")),"M")}break;case 38:if(b.ctrlKey||b.metaKey){$.datepicker._adjustDate(b.target,-7,"D")}e=b.ctrlKey||b.metaKey;break;case 39:if(b.ctrlKey||b.metaKey){$.datepicker._adjustDate(b.target,(a?-1:+1),"D")}e=b.ctrlKey||b.metaKey;if(b.originalEvent.altKey){$.datepicker._adjustDate(b.target,(b.ctrlKey?+$.datepicker._get(d,"stepBigMonths"):+$.datepicker._get(d,"stepMonths")),"M")}break;case 40:if(b.ctrlKey||b.metaKey){$.datepicker._adjustDate(b.target,+7,"D")}e=b.ctrlKey||b.metaKey;break;default:e=false}}else{if(b.keyCode==36&&b.ctrlKey){$.datepicker._showDatepicker(this)}else{e=false}}if(e){b.preventDefault();b.stopPropagation()}};apex.jQuery.datepicker._hideDatepickerOverride=apex.jQuery.datepicker._hideDatepicker;apex.jQuery.datepicker._hideDatepicker=function(b,d){var c=this._curInst;if(!c||(b&&c!=apex.jQuery.data(b,PROP_NAME))){return}var a=this._get(c,"showTime");if(b===undefined&&a&&!c.escapeKey){if(c.input){c.input.val(this._formatDate(c))}this._updateAlternate(c);if(a){apex.jQuery.timepicker.update(this._formatDate(c),c)}}c.escapeKey=false;apex.jQuery.datepicker._hideDatepickerOverride(b,d)};apex.jQuery.datepicker._selectDate=function(f,b){var e=apex.jQuery(f);var d=this._getInst(e[0]);var a=this._get(d,"showTime");b=(b!=null?b:this._formatDate(d));if(!a||(d.inline&&a)){if(d.input){d.input.val(b)}this._updateAlternate(d)}var c=this._get(d,"onSelect");if(c){c.apply((d.input?d.input[0]:null),[b,d])}else{if(d.input&&!a){d.input.trigger("change")}}if(d.inline){this._updateDatepicker(d)}else{if(!d.stayOpen){if(a){this._updateDatepicker(d)}else{this._hideDatepicker(null,this._get(d,"duration"));this._lastInput=d.input[0];if(typeof(d.input[0])!="object"){d.input[0].focus()}this._lastInput=null}}}};apex.jQuery.datepicker._updateAlternateOverride=apex.jQuery.datepicker._updateAlternate;apex.jQuery.datepicker._updateAlternate=function(e){var c=this._get(e,"altField");if(c){var d=this._get(e,"altFormat")||this._get(e,"dateFormat");var b=this._getDate(e);var a=this.formatDate(d,b,this._getFormatConfig(e));if(e.inline&&this._get(e,"showTime")){if(a.match(hour_regexp)){a=a.replace(hour_regexp,apex.jQuery.datepicker._get(e,"defHour"))}if(a.match(min_regexp)){a=a.replace(min_regexp,apex.jQuery.datepicker._get(e,"defMinute"))}if(a.match(sec_regexp)){a=a.replace(sec_regexp,"00")}if(a.match(ampm_regexp)){a=a.replace(ampm_regexp,apex.jQuery.datepicker._get(e,"defAmpm"))}}$(c).each(function(){$(this).val(a)})}};apex.jQuery.datepicker._selectDayOverride=apex.jQuery.datepicker._selectDay;apex.jQuery.datepicker._selectDay=function(a,f,i,b){var g=apex.jQuery(a);if(apex.jQuery(b).hasClass(this._unselectableClass)||this._isDisabledDatepicker(g[0])){return}var e=this._getInst(g[0]);e.selectedDay=e.currentDay=apex.jQuery("a",b).html();e.selectedMonth=e.currentMonth=f;e.selectedYear=e.currentYear=i;var d,c,h;if(e.inline&&e.settings.showTime){d=apex.jQuery(g).find('select[id$="hour"]').val();c=apex.jQuery(g).find('select[id$="minute"]').val();h=apex.jQuery(g).find('select[id$="ampm"]').val()}this._selectDate(a,this._formatDate(e,e.currentDay,e.currentMonth,e.currentYear,d,c,0,h))};apex.jQuery.datepicker._generateHTMLOverride=apex.jQuery.datepicker._generateHTML;apex.jQuery.datepicker._generateHTML=function(T){if(!T.dpuuid){for(attr in window){if(/^DP_jQuery_/.test(attr)){T.dpuuid=attr.replace(/^DP_jQuery_([0-9]+)/,"$1")}}}var k=T.dpuuid;var w=new Date();w=this._daylightSavingAdjust(new Date(w.getFullYear(),w.getMonth(),w.getDate()));var ab=this._get(T,"isRTL");var ad=this._get(T,"showButtonPanel");var P=this._get(T,"hideIfNoPrevNext");var B=this._get(T,"navigationAsDateFormat");var s=this._getNumberOfMonths(T);var i=this._get(T,"showCurrentAtPos");var E=this._get(T,"stepMonths");var z=(s[0]!=1||s[1]!=1);var d=this._daylightSavingAdjust((!T.currentDay?new Date(9999,9,9):new Date(T.currentYear,T.currentMonth,T.currentDay)));var j=this._getMinMaxDate(T,"min");var t=this._getMinMaxDate(T,"max");var a=T.drawMonth-i;var Q=T.drawYear;if(a<0){a+=12;Q--}if(t){var v=this._daylightSavingAdjust(new Date(t.getFullYear(),t.getMonth()-(s[0]*s[1])+1,t.getDate()));v=(j&&vv){a--;if(a<0){a=11;Q--}}}T.drawMonth=a;T.drawYear=Q;var u=this._get(T,"prevText");u=(!B?u:this.formatDate(u,this._daylightSavingAdjust(new Date(Q,a-E,1)),this._getFormatConfig(T)));var O=(this._canAdjustMonth(T,-1,Q,a)?''+u+"":(P?"":''+u+""));var F=this._get(T,"nextText");F=(!B?F:this.formatDate(F,this._daylightSavingAdjust(new Date(Q,a+E,1)),this._getFormatConfig(T)));var f=(this._canAdjustMonth(T,+1,Q,a)?''+F+"":(P?"":''+F+""));var X=this._get(T,"currentText");var S=(this._get(T,"gotoCurrent")&&T.currentDay?d:w);X=(!B?X:this.formatDate(X,S,this._getFormatConfig(T)));var J=(!T.inline?'":"");var aa=(ad)?'
'+(ab?J:"")+(this._isInRange(T,S)?'":"")+(ab?"":J)+"
":"";var U=this._get(T,"showTime");aa=(T.inline&&U?apex.jQuery.timepicker._generateInlineTimeHTML(T)+aa:aa);var D=parseInt(this._get(T,"firstDay"),10);D=(isNaN(D)?0:D);var ae=this._get(T,"showWeek");var n=this._get(T,"dayNames");var L=this._get(T,"dayNamesShort");var q=this._get(T,"dayNamesMin");var o=this._get(T,"monthNames");var b=this._get(T,"monthNamesShort");var W=this._get(T,"beforeShowDay");var l=this._get(T,"showOtherMonths");var y=this._get(T,"selectOtherMonths");var c=this._get(T,"calculateWeek")||this.iso8601Week;var Z=this._getDefaultDate(T);var M="";for(var x=0;x1){switch(m){case 0:I+=" ui-datepicker-group-first";N=" ui-corner-"+(ab?"right":"left");break;case s[1]-1:I+=" ui-datepicker-group-last";N=" ui-corner-"+(ab?"left":"right");break;default:I+=" ui-datepicker-group-middle";N="";break}}I+='">'}I+='
'+(/all|left/.test(N)&&x==0?(ab?f:O):"")+(/all|right/.test(N)&&x==0?(ab?O:f):"")+this._generateMonthYearHeader(T,a,Q,j,t,x>0||m>0,o,b)+'
';var K=(ae?'":"");for(var af=0;af<7;af++){var H=(af+D)%7;K+="=5?' class="ui-datepicker-week-end"':"")+'>'+q[H]+""}I+=K+"";var h=this._getDaysInMonth(Q,a);if(Q==T.selectedYear&&a==T.selectedMonth){T.selectedDay=Math.min(T.selectedDay,h)}var A=(this._getFirstDayOfMonth(Q,a)-D+7)%7;var R=(z?6:Math.ceil((A+h)/7));var V=this._daylightSavingAdjust(new Date(Q,a,1-A));for(var e=0;e";var Y=(!ae?"":'");for(var af=0;af<7;af++){var ac=(W?W.apply((T.input?T.input[0]:null),[V]):[true,""]);var G=(V.getMonth()!=a);var r=(G&&!y)||!ac[0]||(j&&Vt);Y+='";V.setDate(V.getDate()+1);V=this._daylightSavingAdjust(V)}I+=Y+""}a++;if(a>11){a=0;Q++}I+="
'+this._get(T,"weekHeader")+"
'+this._get(T,"calculateWeek")(V)+""+(G&&!l?" ":(r?''+V.getDate()+"":''+V.getDate()+""))+"
"+(z?""+((s[0]>0&&m==s[1]-1)?'
':""):"");C+=I}M+=C}M+=aa+($.browser.msie&&parseInt($.browser.version,10)<7&&!T.inline?'':"");T._keyEvent=false;return M};apex.jQuery.datepicker._formatDateOverride=apex.jQuery.datepicker._formatDate;apex.jQuery.datepicker._formatDate=function(e,i,f,g,d,c,a,h){if(!i){e.currentDay=e.selectedDay;e.currentMonth=e.selectedMonth;e.currentYear=e.selectedYear}var k=d;var j;if(e.inline&&e.settings.showTime){if(h=="PM"){if(k!=12){k+=12}}else{if(k==12){k=0}}var b=(i?(typeof i=="object"?i:this._daylightSavingAdjust(new Date(g,f,i))):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay)));j=this.formatDate(this._get(e,"dateFormat"),b,this._getFormatConfig(e)).replace(hour_regexp,d).replace(min_regexp,c).replace(sec_regexp,"00").replace(ampm_regexp,h)}else{var b=(i?(typeof i=="object"?i:this._daylightSavingAdjust(new Date(g,f,i))):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay)));j=this.formatDate(this._get(e,"dateFormat"),b,this._getFormatConfig(e))}return j};apex.jQuery.datepicker._updateDatepickerOverride=apex.jQuery.datepicker._updateDatepicker;apex.jQuery.datepicker._updateDatepicker=function(a){apex.jQuery.datepicker._updateDatepickerOverride(a);apex.jQuery.timepicker._generateTimeHtml(a)}},show:function(n){var g=apex.jQuery.datepicker._getInst(n);var i;var c;var l;this._time24h=apex.jQuery.datepicker._get(g,"time24h");this._altTimeField=apex.jQuery.datepicker._get(g,"altTimeField");this._timeFormat=apex.jQuery.datepicker._get(g,"timeFormat");ldateFormat=apex.jQuery.datepicker._get(g,"dateFormat");this._inputId=n.id;if(!this._visible){this._parseTime(this._timeFormat);this._orgValue=apex.jQuery("#"+this._inputId).val()}if(apex.jQuery("#"+this._inputId).val()!=""&&apex.jQuery("#"+this._inputId).val()!=null){try{var d=this._getFormatConfig(g);var b=this._parseDateTime(ldateFormat,apex.jQuery("#"+this._inputId).val(),d,g.settings.locale);i=b.getHours();l=(i>=12)?"PM":"AM";c=b.getMinutes()}catch(k){i=apex.jQuery.datepicker._get(g,"defHour");c=apex.jQuery.datepicker._get(g,"defMinute")}this._setTime("hour",i);this._setTime("minute",c);if(!this._time24h){this._setTime("ampm",l)}this._orgHour=i;this._orgMinute=c}this.resize();apex.jQuery("#"+this._mainDivId).show();this._visible=true;var a=apex.jQuery("#"+apex.jQuery.datepicker._mainDivId);var j=a.position();var f=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+apex.jQuery(document).scrollLeft();var o=this.tpDiv.offset().left+this.tpDiv.outerWidth();if(o>f){a.css("left",j.left-(o-f)-5);this.tpDiv.css("left",a.offset().left+a.outerWidth()+"px")}},update:function(b,h){var e=apex.jQuery.datepicker._get(h,"timeFormat");var g=$v(this._mainDivId+"hour");var a=$v(this._mainDivId+"minute");var f="";var i="";var d;if(this._time24h){d=e.replace("HH24",g).replace("ii",a).replace("SS","00")}else{f=$v(this._mainDivId+"ampm");i=(e.indexOf("SS")==-1)?" "+f:"";d=e.replace("HH",g).replace("ii",a+i).replace("SS","00 "+f)}var c=apex.jQuery("#"+this._inputId).val();$s(this._inputId,b.replace(hour_regexp,g).replace(min_regexp,a).replace(sec_regexp,"00").replace(ampm_regexp,f));if(this._altTimeField){apex.jQuery(this._altTimeField).each(function(){apex.jQuery(this).val(d)})}},hide:function(){this._visible=false;apex.jQuery("#"+this._mainDivId).hide()},resize:function(){var a=apex.jQuery("#"+apex.jQuery.datepicker._mainDivId+" > div.ui-datepicker-header:first-child").height();apex.jQuery("#"+this._mainDivId+" > div.ui-datepicker-header:first-child").css("height",a)},_saveHour:function(a){this._defHour=$v(a)},_saveMinute:function(a){this._defMinute=$v(a)},_saveampm:function(a){this._defAmpm=$v(a)},_generateInlineTimeHTML:function(c){var j=this._mainDivId;var d=this._mainDivId.replace("datepicker","timepicker");var s,q,n;var k="";var z=24;var b="00";var r="00";var i="";var t=apex.jQuery.datepicker._get(c,"time24h");this._time24h=t;var l=apex.jQuery.datepicker._get(c,"ampmNames");var y=apex.jQuery.datepicker._get(c,"dateFormat");var u=c.input[0].value;var g=0;var a=apex.jQuery.datepicker._get(c,"altField");if(a.indexOf("#")==0){a=a.substr(1,a.length)}if(!t){z=13;b=12;g=1}try{var w=this._getFormatConfig(c);var x=apex.jQuery.timepicker._parseDateTime(y,$v(a),w);if(x==null){throw"myexp"}s=x.getHours();n=(s>=12)?"PM":"AM";q=x.getMinutes()}catch(v){s=apex.jQuery.datepicker._get(c,"defHour");q=apex.jQuery.datepicker._get(c,"defMinute");n=apex.jQuery.datepicker._get(c,"defAmpm");$s(a,$v(a).replace(hour_regexp,s).replace(min_regexp,q).replace(sec_regexp,"00").replace(ampm_regexp,n))}b=s;r=q;i=n;if(!t&&n=="PM"&&b!=12){b-=12}b=(!t&&b==0)?12:b;k='
';k+='
  ';k+='
';if(!t){k+='"}k+='";k+='";k+="
";k+="
";return k},_generateTimeHtml:function(j){var k="";var l=24;var b="00";var c="00";var h="";var m=apex.jQuery.datepicker._get(j,"time24h");this._time24h=m;var a=apex.jQuery.datepicker._get(j,"ampmNames");var g=j.input[0].value;var i=0;if(j.settings.showTime&&!j.inline){if(!m){l=13;b=12;i=1}if(this._defHour!=undefined){if(g!=""){b=this._defHour}else{b=apex.jQuery.datepicker._get(j,"defHour")}}else{b=apex.jQuery.datepicker._get(j,"defHour")}if(this._defMinute!=undefined){if(g!=""){c=this._defMinute}else{c=apex.jQuery.datepicker._get(j,"defMinute")}}else{c=apex.jQuery.datepicker._get(j,"defMinute")}if(this._defAmpm!=undefined){if(g!=""){h=this._defAmpm}else{h=apex.jQuery.datepicker._get(j,"defAmpm")}}else{h=apex.jQuery.datepicker._get(j,"defAmpm")}k='
';k+='
  ';k+='
';if(!m){k+='"}k+='";k+='";k+="
";k+="
"}var d=apex.jQuery("#"+apex.jQuery.datepicker._mainDivId+" div.ui-datepicker-buttonpane.ui-widget-content").html();apex.jQuery("#"+apex.jQuery.datepicker._mainDivId+" div.ui-datepicker-buttonpane.ui-widget-content").html(k+d)},_writeTime:function(a,b){if(a=="hour"){if(!this._time24h){if(b<=12){$x(this._mainDivId+"ampm").selectedIndex=0}else{$x(this._mainDivId+"ampm").selectedIndex=1;b-=12}this._ampm=$v(this._mainDivId+"ampm");if(b==0){b=12}}else{apex.jQuery("#"+this._mainDivId+" span.fragAmpm").text("")}if(b<10){b="0"+b}$s(this._mainDivId+"hour",b);this._hour=b}else{if(a=="minute"){if(b<10){b="0"+b}$s(this._mainDivId+"minute",b);this._minute=b}else{if(a=="ampm"){if(b=="PM"){$x(this._mainDivId+"ampm").selectedIndex=1}else{$x(this._mainDivId+"ampm").selectedIndex=0}this._ampm=$v(this._mainDivId+"ampm")}}}},_getFormatConfig:function(a){var b=apex.jQuery.datepicker._get(a,"shortYearCutoff");b=(typeof b!="string"?b:new Date().getFullYear()%100+parseInt(b,10));return{shortYearCutoff:b,dayNamesShort:apex.jQuery.datepicker._get(a,"dayNamesShort"),dayNames:apex.jQuery.datepicker._get(a,"dayNames"),monthNamesShort:apex.jQuery.datepicker._get(a,"monthNamesShort"),monthNames:apex.jQuery.datepicker._get(a,"monthNames")}},_parseDateTime:function(t,n,u,f){if(t==null||n==null){throw"Invalid arguments"}n=(typeof n=="object"?n.toString():n+"");if(n==""){return null}var d=(u?u.shortYearCutoff:null)||this._defaults.shortYearCutoff;var l=(u?u.dayNamesShort:null)||this._defaults.dayNamesShort;var w=(u?u.dayNames:null)||this._defaults.dayNames;var a=(u?u.monthNamesShort:null)||this._defaults.monthNamesShort;var g=(u?u.monthNames:null)||this._defaults.monthNames;var h=-1;var x=-1;var r=-1;var c=-1;var k=0;var y=0;var j="";var q=false;var m=function(A){var B=(e+10&&s="0"&&n.charAt(s)<="9"){A=A*10+(n.charAt(s++)-0);C--}if(C==(B=="y"?4:2)){throw"Missing number at position "+s}return A};var i=function(F,C,G,I){var H=(m(F)?G:C);var J=0;for(var D=0;D0&&s0&&s23){f=23}if(d>59){d=59}if(k=="pm"&&f<12){f+=12}if(k=="am"&&f==12){f=1}this._setTime("hour",f);this._setTime("minute",d);this._orgHour=f;this._orgMinute=d}},_setTime:function(a,b){if(a!="ampm"){if(isNaN(b)){b=0}if(b<0){b=0}if(b>23&&a=="hour"){b=23}if(b>59&&a=="minute"){b=59}}this._writeTime(a,b)}};apex.jQuery(document).ready(function(){apex.jQuery.timepicker=new Timepicker();apex.jQuery.timepicker.init()});if(!apex.da||typeof(apex.da)!="object"){apex.da={}}apex.da={gEventList:[],gTriggerIsColumn:false,init:function(){apex.jQuery(apex.da.gEventList).each(function(){var a,c,b;apex.da.gTriggerIsColumn=false;a={name:null};c=apex.jQuery.extend(a,this);b=apex.da.constructSelector({elementType:c.triggeringElementType,element:c.triggeringElement,regionId:c.triggeringRegionId,buttonId:c.triggeringButtonId});apex.jQuery(b)[c.bindType](c.bindEventType,function(e,d){apex.da.actions(this,c,e,d)});apex.da.actions(b,c,"load")})},constructSelector:function(pOptions){var lDefaults,lSelector;lDefaults={elementType:null,element:null,regionId:null,buttonId:null,triggeringElement:null,eventTarget:null};lOptions=apex.jQuery.extend(lDefaults,pOptions);lSelector="";switch(lOptions.elementType){case"ITEM":lSelector="#"+lOptions.element.replace(/,/g,",#");break;case"REGION":lSelector="#"+lOptions.regionId;break;case"BUTTON":lSelector="#"+lOptions.buttonId;break;case"DOM_OBJECT":lSelector="#"+lOptions.element.replace(/,/g,",#");if(!apex.jQuery(lSelector).length){try{lSelector=eval(lOptions.element)}catch(err){lSelector=lOptions.element}}break;case"JQUERY_SELECTOR":lSelector=lOptions.element;break;case"TRIGGERING_ELEMENT":lSelector=lOptions.triggeringElement;break;case"EVENT_SOURCE":lSelector=lOptions.eventTarget;break;default:lSelector=document}return lSelector},show:function(){var a;if(this.affectedElements){a=(this.action.attribute01==="Y");this.affectedElements.each(function(){apex.item(this).show(a)})}},hide:function(){var a;if(this.affectedElements){a=(this.action.attribute01==="Y");this.affectedElements.each(function(){apex.item(this).hide(a)})}},enable:function(){if(this.affectedElements){this.affectedElements.each(function(){apex.item(this).enable()})}},disable:function(){if(this.affectedElements){this.affectedElements.each(function(){apex.item(this).disable()})}},setValue:function(){var lAction,lSetType,lStaticAssignment,lPageItemsToSubmit,lJavaScriptExpression,lSuppressChangeEvent,lValueToSet,lAjaxRequest,lAjaxResult,lData,lPageItem,lJSExpression;lAction=this.action;lSetType=lAction.attribute01;lStaticAssignment=lAction.attribute02;lPageItemsToSubmit=lAction.attribute04;lJavaScriptExpression=lAction.attribute05;lSuppressChangeEvent=(lAction.attribute09==="Y"?true:false);if(lSetType==="STATIC_ASSIGNMENT"){this.affectedElements.each(function(i){lValueToSet=(i===0?lStaticAssignment:"");$s(this,lValueToSet,null,lSuppressChangeEvent)})}else{if(lSetType==="SQL_STATEMENT"||lSetType==="PLSQL_EXPRESSION"||lSetType==="FUNCTION_BODY"){lAjaxRequest=new htmldb_Get(null,$v("pFlowId"),"NATIVE="+lAction.ajaxIdentifier,$v("pFlowStepId"));lAjaxResult=null;if(lPageItemsToSubmit){apex.jQuery.each(lPageItemsToSubmit.split(","),function(){lPageItem=apex.jQuery("#"+this)[0];if(lPageItem){lAjaxRequest.add(this,$v(lPageItem))}})}lAjaxResult=lAjaxRequest.get();if(lAjaxResult){lData=apex.jQuery.parseJSON(lAjaxResult);if(lData.values[0].error){alert(lData.values[0].error);return false}else{this.affectedElements.each(function(i){lValueToSet=(typeof(lData.values[i])!="undefined"?lData.values[i]:"");$s(this,lValueToSet,null,lSuppressChangeEvent)})}}}else{if(lSetType==="JAVASCRIPT_EXPRESSION"){lJSExpression=eval(lJavaScriptExpression);this.affectedElements.each(function(i){lValueToSet=(i===0?lJSExpression:"");$s(this,lValueToSet,null,lSuppressChangeEvent)})}}}},clear:function(){if(this.affectedElements){this.affectedElements.each(function(){$s(this,"","")})}},addClass:function(){if(this.affectedElements){this.affectedElements.addClass(this.action.attribute01)}},removeClass:function(){if(this.affectedElements){if(this.action.attribute01){this.affectedElements.removeClass(this.action.attribute01)}else{this.affectedElements.removeClass()}}},setCSS:function(){if(this.affectedElements){this.affectedElements.css(this.action.attribute01,this.action.attribute02)}},setFocus:function(){if(this.affectedElements){this.affectedElements.focus()}},submitPage:function(){var a,c,b;a=this.action;c=a.attribute01;b=(a.attribute02==="Y"?true:false);apex.submit({request:c,showWait:b})},refresh:function(){if(this.affectedElements){this.affectedElements.trigger("apexrefresh")}},executePlSqlCode:function(){var d,b,a,e;d=this.action.attribute01;e=(this.action.attribute04==="Y"?true:false);b=new htmldb_Get(null,$v("pFlowId"),"NATIVE="+this.action.ajaxIdentifier,$v("pFlowStepId"));a=null;if(d){apex.jQuery.each(d.split(","),function(){var f;f=apex.jQuery("#"+this)[0];if(f){b.add(this,$v(f))}})}a=b.get();if(a){var c=apex.jQuery.parseJSON(a);if(c.error){alert(c.error);return false}else{apex.jQuery.each(c.item,function(){$s(this.id,this.value,null,e)})}}},cancelEvent:function(){apex.event.gCancelFlag=true;apex.event.gCancelActions=true;this.browserEvent.stopImmediatePropagation();this.browserEvent.preventDefault()},showAlert:function(){alert(this.action.attribute01)},askConfirm:function(){if(!confirm(this.action.attribute01)){apex.da.cancelEvent.call(this)}},doAction:function(g,a,b,f,e,d){var c;c={triggeringElement:g,affectedElements:apex.jQuery(a),action:b,browserEvent:f,data:e};if(b.javascriptFunction){apex.debug("Dynamic Action Fired: "+d+" ("+b.action+")");return b.javascriptFunction.call(c)}},actions:function(b,a,e,d){var f,c;apex.event.gCancelFlag=false;apex.event.gCancelActions=false;apex.jQuery(b).each(function(){var h,k,j,i,g;h=this;k=apex.item(h.id);j=k.getValue();switch(a.triggeringConditionType){case"EQUALS":if(!apex.jQuery.isArray(j)){f=(j==a.triggeringExpression)}else{f=false;apex.jQuery.each(j,function(l,m){f=(m==a.triggeringExpression);if(f){return false}})}break;case"NOT_EQUALS":if(!apex.jQuery.isArray(j)){f=(j!=a.triggeringExpression)}else{f=true;apex.jQuery.each(j,function(l,m){f=(m!=a.triggeringExpression);if(!f){return false}})}break;case"IN_LIST":i=a.triggeringExpression.split(",");if(!apex.jQuery.isArray(j)){f=(apex.jQuery.inArray(j,i)!==-1)?true:false}else{f=false;apex.jQuery.each(j,function(l,m){f=(apex.jQuery.inArray(m,i)!==-1)?true:false;if(f){return false}})}break;case"NOT_IN_LIST":i=a.triggeringExpression.split(",");if(!apex.jQuery.isArray(j)){f=(apex.jQuery.inArray(j,i)===-1)?true:false}else{f=true;apex.jQuery.each(j,function(l,m){f=(apex.jQuery.inArray(m,i)===-1)?true:false;if(!f){return false}})}break;case"GREATER_THAN":if(!apex.jQuery.isArray(j)){f=j>parseFloat(a.triggeringExpression,10)}else{f=true;apex.jQuery.each(j,function(l,m){f=m>parseFloat(a.triggeringExpression,10);if(!f){return false}})}break;case"GREATER_THAN_OR_EQUAL":if(!apex.jQuery.isArray(j)){f=j>=parseFloat(a.triggeringExpression,10)}else{f=true;apex.jQuery.each(j,function(l,m){f=m>=parseFloat(a.triggeringExpression,10);if(!f){return false}})}break;case"LESS_THAN":if(!apex.jQuery.isArray(j)){f=j=0)&&k(a,!d)}});c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;c.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e= 0;e0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a=9)&&!a.button)return this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,a)!==false)?this._mouseDrag(a):this._mouseUp(a);return!this._mouseStarted},_mouseUp:function(a){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted= false;a.target==this._mouseDownEvent.target&&b.data(a.target,this.widgetName+".preventClickEvent",true);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery); ;/* * jQuery UI Position 1.8.14 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Position */ (function(c){c.ui=c.ui||{};var n=/left|center|right/,o=/top|center|bottom/,t=c.fn.position,u=c.fn.offset;c.fn.position=function(b){if(!b||!b.of)return t.apply(this,arguments);b=c.extend({},b);var a=c(b.of),d=a[0],g=(b.collision||"flip").split(" "),e=b.offset?b.offset.split(" "):[0,0],h,k,j;if(d.nodeType===9){h=a.width();k=a.height();j={top:0,left:0}}else if(d.setTimeout){h=a.width();k=a.height();j={top:a.scrollTop(),left:a.scrollLeft()}}else if(d.preventDefault){b.at="left top";h=k=0;j={top:b.of.pageY, left:b.of.pageX}}else{h=a.outerWidth();k=a.outerHeight();j=a.offset()}c.each(["my","at"],function(){var f=(b[this]||"").split(" ");if(f.length===1)f=n.test(f[0])?f.concat(["center"]):o.test(f[0])?["center"].concat(f):["center","center"];f[0]=n.test(f[0])?f[0]:"center";f[1]=o.test(f[1])?f[1]:"center";b[this]=f});if(g.length===1)g[1]=g[0];e[0]=parseInt(e[0],10)||0;if(e.length===1)e[1]=e[0];e[1]=parseInt(e[1],10)||0;if(b.at[0]==="right")j.left+=h;else if(b.at[0]==="center")j.left+=h/2;if(b.at[1]==="bottom")j.top+= k;else if(b.at[1]==="center")j.top+=k/2;j.left+=e[0];j.top+=e[1];return this.each(function(){var f=c(this),l=f.outerWidth(),m=f.outerHeight(),p=parseInt(c.curCSS(this,"marginLeft",true))||0,q=parseInt(c.curCSS(this,"marginTop",true))||0,v=l+p+(parseInt(c.curCSS(this,"marginRight",true))||0),w=m+q+(parseInt(c.curCSS(this,"marginBottom",true))||0),i=c.extend({},j),r;if(b.my[0]==="right")i.left-=l;else if(b.my[0]==="center")i.left-=l/2;if(b.my[1]==="bottom")i.top-=m;else if(b.my[1]==="center")i.top-= m/2;i.left=Math.round(i.left);i.top=Math.round(i.top);r={left:i.left-p,top:i.top-q};c.each(["left","top"],function(s,x){c.ui.position[g[s]]&&c.ui.position[g[s]][x](i,{targetWidth:h,targetHeight:k,elemWidth:l,elemHeight:m,collisionPosition:r,collisionWidth:v,collisionHeight:w,offset:e,my:b.my,at:b.at})});c.fn.bgiframe&&f.bgiframe();f.offset(c.extend(i,{using:b.using}))})};c.ui.position={fit:{left:function(b,a){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();b.left= d>0?b.left-d:Math.max(b.left-a.collisionPosition.left,b.left)},top:function(b,a){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();b.top=d>0?b.top-d:Math.max(b.top-a.collisionPosition.top,b.top)}},flip:{left:function(b,a){if(a.at[0]!=="center"){var d=c(window);d=a.collisionPosition.left+a.collisionWidth-d.width()-d.scrollLeft();var g=a.my[0]==="left"?-a.elemWidth:a.my[0]==="right"?a.elemWidth:0,e=a.at[0]==="left"?a.targetWidth:-a.targetWidth,h=-2*a.offset[0];b.left+= a.collisionPosition.left<0?g+e+h:d>0?g+e+h:0}},top:function(b,a){if(a.at[1]!=="center"){var d=c(window);d=a.collisionPosition.top+a.collisionHeight-d.height()-d.scrollTop();var g=a.my[1]==="top"?-a.elemHeight:a.my[1]==="bottom"?a.elemHeight:0,e=a.at[1]==="top"?a.targetHeight:-a.targetHeight,h=-2*a.offset[1];b.top+=a.collisionPosition.top<0?g+e+h:d>0?g+e+h:0}}}};if(!c.offset.setOffset){c.offset.setOffset=function(b,a){if(/static/.test(c.curCSS(b,"position")))b.style.position="relative";var d=c(b), g=d.offset(),e=parseInt(c.curCSS(b,"top",true),10)||0,h=parseInt(c.curCSS(b,"left",true),10)||0;g={top:a.top-g.top+e,left:a.left-g.left+h};"using"in a?a.using.call(b,g):d.css(g)};c.fn.offset=function(b){var a=this[0];if(!a||!a.ownerDocument)return null;if(b)return this.each(function(){c.offset.setOffset(this,b)});return u.call(this)}}})(jQuery); ;/* * jQuery UI Draggable 1.8.14 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Draggables * * Depends: * jquery.ui.core.js * jquery.ui.mouse.js * jquery.ui.widget.js */ (function(d){d.widget("ui.draggable",d.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper== "original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position="relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(a){var b= this.options;if(this.helper||b.disabled||d(a.target).is(".ui-resizable-handle"))return false;this.handle=this._getHandle(a);if(!this.handle)return false;d(b.iframeFix===true?"iframe":b.iframeFix).each(function(){d('
').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(d(this).offset()).appendTo("body")});return true},_mouseStart:function(a){var b=this.options;this.helper= this._createHelper(a);this._cacheHelperProportions();if(d.ui.ddmanager)d.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};d.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}); this.originalPosition=this.position=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursorAt);b.containment&&this._setContainment();if(this._trigger("start",a)===false){this._clear();return false}this._cacheHelperProportions();d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);d.ui.ddmanager&&d.ui.ddmanager.dragStart(this,a);return true}, _mouseDrag:function(a,b){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!b){b=this._uiHash();if(this._trigger("drag",a,b)===false){this._mouseUp({});return false}this.position=b.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);return false},_mouseStop:function(a){var b= false;if(d.ui.ddmanager&&!this.options.dropBehaviour)b=d.ui.ddmanager.drop(this,a);if(this.dropped){b=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return false;if(this.options.revert=="invalid"&&!b||this.options.revert=="valid"&&b||this.options.revert===true||d.isFunction(this.options.revert)&&this.options.revert.call(this.element,b)){var c=this;d(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration, 10),function(){c._trigger("stop",a)!==false&&c._clear()})}else this._trigger("stop",a)!==false&&this._clear();return false},_mouseUp:function(a){this.options.iframeFix===true&&d("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});d.ui.ddmanager&&d.ui.ddmanager.dragStop(this,a);return d.ui.mouse.prototype._mouseUp.call(this,a)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(a){var b=!this.options.handle|| !d(this.options.handle,this.element).length?true:false;d(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==a.target)b=true});return b},_createHelper:function(a){var b=this.options;a=d.isFunction(b.helper)?d(b.helper.apply(this.element[0],[a])):b.helper=="clone"?this.element.clone().removeAttr("id"):this.element;a.parents("body").length||a.appendTo(b.appendTo=="parent"?this.element[0].parentNode:b.appendTo);a[0]!=this.element[0]&&!/(fixed|absolute)/.test(a.css("position"))&& a.css("position","absolute");return a},_adjustOffsetFromHelper:function(a){if(typeof a=="string")a=a.split(" ");if(d.isArray(a))a={left:+a[0],top:+a[1]||0};if("left"in a)this.offset.click.left=a.left+this.margins.left;if("right"in a)this.offset.click.left=this.helperProportions.width-a.right+this.margins.left;if("top"in a)this.offset.click.top=a.top+this.margins.top;if("bottom"in a)this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent= this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&d.browser.msie)a={top:0,left:0};return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"), 10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"), 10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var a=this.options;if(a.containment=="parent")a.containment=this.helper[0].parentNode;if(a.containment=="document"||a.containment=="window")this.containment=[a.containment=="document"?0:d(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,a.containment=="document"?0:d(window).scrollTop()-this.offset.relative.top-this.offset.parent.top, (a.containment=="document"?0:d(window).scrollLeft())+d(a.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a.containment=="document"?0:d(window).scrollTop())+(d(a.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(a.containment)&&a.containment.constructor!=Array){a=d(a.containment);var b=a[0];if(b){a.offset();var c=d(b).css("overflow")!= "hidden";this.containment=[(parseInt(d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10)||0),(parseInt(d(b).css("borderTopWidth"),10)||0)+(parseInt(d(b).css("paddingTop"),10)||0),(c?Math.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("borderLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(c?Math.max(b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("borderTopWidth"), 10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=a}}else if(a.containment.constructor==Array)this.containment=a.containment},_convertPositionTo:function(a,b){if(!b)b=this.position;a=a=="absolute"?1:-1;var c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName);return{top:b.top+ this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():f?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+this.offset.parent.left*a-(d.browser.safari&&d.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())*a)}},_generatePosition:function(a){var b=this.options,c=this.cssPosition=="absolute"&& !(this.scrollParent[0]!=document&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(c[0].tagName),e=a.pageX,h=a.pageY;if(this.originalPosition){var g;if(this.containment){if(this.relative_container){g=this.relative_container.offset();g=[this.containment[0]+g.left,this.containment[1]+g.top,this.containment[2]+g.left,this.containment[3]+g.top]}else g=this.containment;if(a.pageX-this.offset.click.leftg[2])e=g[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>g[3])h=g[3]+this.offset.click.top}if(b.grid){h=b.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/b.grid[1])*b.grid[1]:this.originalPageY;h=g?!(h-this.offset.click.topg[3])?h:!(h-this.offset.click.topg[2])?e:!(e-this.offset.click.left=0;i--){var j=c.snapElements[i].left,l=j+c.snapElements[i].width,k=c.snapElements[i].top,m=k+c.snapElements[i].height;if(j-e').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(), top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle= this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=a.handles||(!e(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne", nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all")this.handles="n,e,s,w,se,sw,ne,nw";var c=this.handles.split(",");this.handles={};for(var d=0;d');/sw|se|ne|nw/.test(f)&&g.css({zIndex:++a.zIndex});"se"==f&&g.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[f]=".ui-resizable-"+f;this.element.append(g)}}this._renderAxis=function(h){h=h||this.element;for(var i in this.handles){if(this.handles[i].constructor== String)this.handles[i]=e(this.handles[i],this.element).show();if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var j=e(this.handles[i],this.element),l=0;l=/sw|ne|nw|se|n|s/.test(i)?j.outerHeight():j.outerWidth();j=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");h.css(j,l);this._proportionallyResize()}e(this.handles[i])}};this._renderAxis(this.element);this._handles=e(".ui-resizable-handle",this.element).disableSelection(); this._handles.mouseover(function(){if(!b.resizing){if(this.className)var h=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=h&&h[1]?h[1]:"se"}});if(a.autoHide){this._handles.hide();e(this.element).addClass("ui-resizable-autohide").hover(function(){if(!a.disabled){e(this).removeClass("ui-resizable-autohide");b._handles.show()}},function(){if(!a.disabled)if(!b.resizing){e(this).addClass("ui-resizable-autohide");b._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy(); var b=function(c){e(c).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){b(this.element);var a=this.element;a.after(this.originalElement.css({position:a.css("position"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);b(this.originalElement);return this},_mouseCapture:function(b){var a= false;for(var c in this.handles)if(e(this.handles[c])[0]==b.target)a=true;return!this.options.disabled&&a},_mouseStart:function(b){var a=this.options,c=this.element.position(),d=this.element;this.resizing=true;this.documentScroll={top:e(document).scrollTop(),left:e(document).scrollLeft()};if(d.is(".ui-draggable")||/absolute/.test(d.css("position")))d.css({position:"absolute",top:c.top,left:c.left});e.browser.opera&&/relative/.test(d.css("position"))&&d.css({position:"relative",top:"auto",left:"auto"}); this._renderProxy();c=m(this.helper.css("left"));var f=m(this.helper.css("top"));if(a.containment){c+=e(a.containment).scrollLeft()||0;f+=e(a.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:c,top:f};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:c,top:f};this.sizeDiff= {width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:b.pageX,top:b.pageY};this.aspectRatio=typeof a.aspectRatio=="number"?a.aspectRatio:this.originalSize.width/this.originalSize.height||1;a=e(".ui-resizable-"+this.axis).css("cursor");e("body").css("cursor",a=="auto"?this.axis+"-resize":a);d.addClass("ui-resizable-resizing");this._propagate("start",b);return true},_mouseDrag:function(b){var a=this.helper,c=this.originalMousePosition,d=this._change[this.axis]; if(!d)return false;c=d.apply(this,[b,b.pageX-c.left||0,b.pageY-c.top||0]);this._updateVirtualBoundaries(b.shiftKey);if(this._aspectRatio||b.shiftKey)c=this._updateRatio(c,b);c=this._respectSize(c,b);this._propagate("resize",b);a.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(c);this._trigger("resize",b,this.ui());return false}, _mouseStop:function(b){this.resizing=false;var a=this.options,c=this;if(this._helper){var d=this._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName);d=f&&e.ui.hasScroll(d[0],"left")?0:c.sizeDiff.height;f=f?0:c.sizeDiff.width;f={width:c.helper.width()-f,height:c.helper.height()-d};d=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null;var g=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null;a.animate||this.element.css(e.extend(f, {top:g,left:d}));c.helper.height(c.size.height);c.helper.width(c.size.width);this._helper&&!a.animate&&this._proportionallyResize()}e("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",b);this._helper&&this.helper.remove();return false},_updateVirtualBoundaries:function(b){var a=this.options,c,d,f;a={minWidth:k(a.minWidth)?a.minWidth:0,maxWidth:k(a.maxWidth)?a.maxWidth:Infinity,minHeight:k(a.minHeight)?a.minHeight:0,maxHeight:k(a.maxHeight)?a.maxHeight: Infinity};if(this._aspectRatio||b){b=a.minHeight*this.aspectRatio;d=a.minWidth/this.aspectRatio;c=a.maxHeight*this.aspectRatio;f=a.maxWidth/this.aspectRatio;if(b>a.minWidth)a.minWidth=b;if(d>a.minHeight)a.minHeight=d;if(cb.width,h=k(b.height)&&a.minHeight&&a.minHeight>b.height;if(g)b.width=a.minWidth;if(h)b.height=a.minHeight;if(d)b.width=a.maxWidth;if(f)b.height=a.maxHeight;var i=this.originalPosition.left+this.originalSize.width,j=this.position.top+this.size.height,l=/sw|nw|w/.test(c);c=/nw|ne|n/.test(c);if(g&&l)b.left=i-a.minWidth;if(d&&l)b.left=i-a.maxWidth;if(h&&c)b.top=j-a.minHeight;if(f&&c)b.top=j-a.maxHeight;if((a=!b.width&&!b.height)&&!b.left&&b.top)b.top=null;else if(a&&!b.top&&b.left)b.left= null;return b},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var b=this.helper||this.element,a=0;a');var a=e.browser.msie&&e.browser.version<7,c=a?1:0;a=a?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+ a,height:this.element.outerHeight()+a,position:"absolute",left:this.elementOffset.left-c+"px",top:this.elementOffset.top-c+"px",zIndex:++b.zIndex});this.helper.appendTo("body").disableSelection()}else this.helper=this.element},_change:{e:function(b,a){return{width:this.originalSize.width+a}},w:function(b,a){return{left:this.originalPosition.left+a,width:this.originalSize.width-a}},n:function(b,a,c){return{top:this.originalPosition.top+c,height:this.originalSize.height-c}},s:function(b,a,c){return{height:this.originalSize.height+ c}},se:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},sw:function(b,a,c){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[b,a,c]))},ne:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[b,a,c]))},nw:function(b,a,c){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[b,a,c]))}},_propagate:function(b,a){e.ui.plugin.call(this,b,[a,this.ui()]); b!="resize"&&this._trigger(b,a,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});e.extend(e.ui.resizable,{version:"1.8.14"});e.ui.plugin.add("resizable","alsoResize",{start:function(){var b=e(this).data("resizable").options,a=function(c){e(c).each(function(){var d=e(this);d.data("resizable-alsoresize",{width:parseInt(d.width(), 10),height:parseInt(d.height(),10),left:parseInt(d.css("left"),10),top:parseInt(d.css("top"),10),position:d.css("position")})})};if(typeof b.alsoResize=="object"&&!b.alsoResize.parentNode)if(b.alsoResize.length){b.alsoResize=b.alsoResize[0];a(b.alsoResize)}else e.each(b.alsoResize,function(c){a(c)});else a(b.alsoResize)},resize:function(b,a){var c=e(this).data("resizable");b=c.options;var d=c.originalSize,f=c.originalPosition,g={height:c.size.height-d.height||0,width:c.size.width-d.width||0,top:c.position.top- f.top||0,left:c.position.left-f.left||0},h=function(i,j){e(i).each(function(){var l=e(this),q=e(this).data("resizable-alsoresize"),p={},r=j&&j.length?j:l.parents(a.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(r,function(n,o){if((n=(q[o]||0)+(g[o]||0))&&n>=0)p[o]=n||null});if(e.browser.opera&&/relative/.test(l.css("position"))){c._revertToRelativePosition=true;l.css({position:"absolute",top:"auto",left:"auto"})}l.css(p)})};typeof b.alsoResize=="object"&&!b.alsoResize.nodeType? e.each(b.alsoResize,function(i,j){h(i,j)}):h(b.alsoResize)},stop:function(){var b=e(this).data("resizable"),a=b.options,c=function(d){e(d).each(function(){var f=e(this);f.css({position:f.data("resizable-alsoresize").position})})};if(b._revertToRelativePosition){b._revertToRelativePosition=false;typeof a.alsoResize=="object"&&!a.alsoResize.nodeType?e.each(a.alsoResize,function(d){c(d)}):c(a.alsoResize)}e(this).removeData("resizable-alsoresize")}});e.ui.plugin.add("resizable","animate",{stop:function(b){var a= e(this).data("resizable"),c=a.options,d=a._proportionallyResizeElements,f=d.length&&/textarea/i.test(d[0].nodeName),g=f&&e.ui.hasScroll(d[0],"left")?0:a.sizeDiff.height;f={width:a.size.width-(f?0:a.sizeDiff.width),height:a.size.height-g};g=parseInt(a.element.css("left"),10)+(a.position.left-a.originalPosition.left)||null;var h=parseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.top)||null;a.element.animate(e.extend(f,h&&g?{top:h,left:g}:{}),{duration:c.animateDuration,easing:c.animateEasing, step:function(){var i={width:parseInt(a.element.css("width"),10),height:parseInt(a.element.css("height"),10),top:parseInt(a.element.css("top"),10),left:parseInt(a.element.css("left"),10)};d&&d.length&&e(d[0]).css({width:i.width,height:i.height});a._updateCache(i);a._propagate("resize",b)}})}});e.ui.plugin.add("resizable","containment",{start:function(){var b=e(this).data("resizable"),a=b.element,c=b.options.containment;if(a=c instanceof e?c.get(0):/parent/.test(c)?a.parent().get(0):c){b.containerElement= e(a);if(/document/.test(c)||c==document){b.containerOffset={left:0,top:0};b.containerPosition={left:0,top:0};b.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}}else{var d=e(a),f=[];e(["Top","Right","Left","Bottom"]).each(function(i,j){f[i]=m(d.css("padding"+j))});b.containerOffset=d.offset();b.containerPosition=d.position();b.containerSize={height:d.innerHeight()-f[3],width:d.innerWidth()-f[1]};c=b.containerOffset; var g=b.containerSize.height,h=b.containerSize.width;h=e.ui.hasScroll(a,"left")?a.scrollWidth:h;g=e.ui.hasScroll(a)?a.scrollHeight:g;b.parentData={element:a,left:c.left,top:c.top,width:h,height:g}}}},resize:function(b){var a=e(this).data("resizable"),c=a.options,d=a.containerOffset,f=a.position;b=a._aspectRatio||b.shiftKey;var g={top:0,left:0},h=a.containerElement;if(h[0]!=document&&/static/.test(h.css("position")))g=d;if(f.left<(a._helper?d.left:0)){a.size.width+=a._helper?a.position.left-d.left: a.position.left-g.left;if(b)a.size.height=a.size.width/c.aspectRatio;a.position.left=c.helper?d.left:0}if(f.top<(a._helper?d.top:0)){a.size.height+=a._helper?a.position.top-d.top:a.position.top;if(b)a.size.width=a.size.height*c.aspectRatio;a.position.top=a._helper?d.top:0}a.offset.left=a.parentData.left+a.position.left;a.offset.top=a.parentData.top+a.position.top;c=Math.abs((a._helper?a.offset.left-g.left:a.offset.left-g.left)+a.sizeDiff.width);d=Math.abs((a._helper?a.offset.top-g.top:a.offset.top- d.top)+a.sizeDiff.height);f=a.containerElement.get(0)==a.element.parent().get(0);g=/relative|absolute/.test(a.containerElement.css("position"));if(f&&g)c-=a.parentData.left;if(c+a.size.width>=a.parentData.width){a.size.width=a.parentData.width-c;if(b)a.size.height=a.size.width/a.aspectRatio}if(d+a.size.height>=a.parentData.height){a.size.height=a.parentData.height-d;if(b)a.size.width=a.size.height*a.aspectRatio}},stop:function(){var b=e(this).data("resizable"),a=b.options,c=b.containerOffset,d=b.containerPosition, f=b.containerElement,g=e(b.helper),h=g.offset(),i=g.outerWidth()-b.sizeDiff.width;g=g.outerHeight()-b.sizeDiff.height;b._helper&&!a.animate&&/relative/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g});b._helper&&!a.animate&&/static/.test(f.css("position"))&&e(this).css({left:h.left-d.left-c.left,width:i,height:g})}});e.ui.plugin.add("resizable","ghost",{start:function(){var b=e(this).data("resizable"),a=b.options,c=b.size;b.ghost=b.originalElement.clone();b.ghost.css({opacity:0.25, display:"block",position:"relative",height:c.height,width:c.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof a.ghost=="string"?a.ghost:"");b.ghost.appendTo(b.helper)},resize:function(){var b=e(this).data("resizable");b.ghost&&b.ghost.css({position:"relative",height:b.size.height,width:b.size.width})},stop:function(){var b=e(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeChild(b.ghost.get(0))}});e.ui.plugin.add("resizable","grid",{resize:function(){var b= e(this).data("resizable"),a=b.options,c=b.size,d=b.originalSize,f=b.originalPosition,g=b.axis;a.grid=typeof a.grid=="number"?[a.grid,a.grid]:a.grid;var h=Math.round((c.width-d.width)/(a.grid[0]||1))*(a.grid[0]||1);a=Math.round((c.height-d.height)/(a.grid[1]||1))*(a.grid[1]||1);if(/^(se|s|e)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a}else if(/^(ne)$/.test(g)){b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}else{if(/^(sw)$/.test(g)){b.size.width=d.width+h;b.size.height= d.height+a}else{b.size.width=d.width+h;b.size.height=d.height+a;b.position.top=f.top-a}b.position.left=f.left-h}}});var m=function(b){return parseInt(b,10)||0},k=function(b){return!isNaN(parseInt(b,10))}})(jQuery); ;/* * jQuery UI Dialog 1.8.14 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Dialog * * Depends: * jquery.ui.core.js * jquery.ui.widget.js * jquery.ui.button.js * jquery.ui.draggable.js * jquery.ui.mouse.js * jquery.ui.position.js * jquery.ui.resizable.js */ (function(c,l){var m={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},n={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},o=c.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false, position:{my:"center",at:"center",collision:"fit",using:function(a){var b=c(this).css(a).offset().top;b<0&&c(this).css("top",a.top-b)}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string")this.originalTitle="";this.options.title=this.options.title||this.originalTitle;var a=this,b=a.options,d=b.title||" ",e=c.ui.dialog.getTitleId(a.element),g=(a.uiDialog=c("
")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+ b.dialogClass).css({zIndex:b.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(i){if(b.closeOnEscape&&i.keyCode&&i.keyCode===c.ui.keyCode.ESCAPE){a.close(i);i.preventDefault()}}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(i){a.moveToTop(false,i)});a.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(g);var f=(a.uiDialogTitlebar=c("
")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g), h=c('').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){h.addClass("ui-state-hover")},function(){h.removeClass("ui-state-hover")}).focus(function(){h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-focus")}).click(function(i){a.close(i);return false}).appendTo(f);(a.uiDialogTitlebarCloseText=c("")).addClass("ui-icon ui-icon-closethick").text(b.closeText).appendTo(h);c("").addClass("ui-dialog-title").attr("id", e).html(d).prependTo(f);if(c.isFunction(b.beforeclose)&&!c.isFunction(b.beforeClose))b.beforeClose=b.beforeclose;f.find("*").add(f).disableSelection();b.draggable&&c.fn.draggable&&a._makeDraggable();b.resizable&&c.fn.resizable&&a._makeResizable();a._createButtons(b.buttons);a._isOpen=false;c.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var a=this;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"); a.uiDialog.remove();a.originalTitle&&a.element.attr("title",a.originalTitle);return a},widget:function(){return this.uiDialog},close:function(a){var b=this,d,e;if(false!==b._trigger("beforeClose",a)){b.overlay&&b.overlay.destroy();b.uiDialog.unbind("keypress.ui-dialog");b._isOpen=false;if(b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("close",a)});else{b.uiDialog.hide();b._trigger("close",a)}c.ui.dialog.overlay.resize();if(b.options.modal){d=0;c(".ui-dialog").each(function(){if(this!== b.uiDialog[0]){e=c(this).css("z-index");isNaN(e)||(d=Math.max(d,e))}});c.ui.dialog.maxZ=d}return b}},isOpen:function(){return this._isOpen},moveToTop:function(a,b){var d=this,e=d.options;if(e.modal&&!a||!e.stack&&!e.modal)return d._trigger("focus",b);if(e.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=e.zIndex;if(d.overlay){c.ui.dialog.maxZ+=1;d.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=c.ui.dialog.maxZ)}a={scrollTop:d.element.attr("scrollTop"),scrollLeft:d.element.attr("scrollLeft")};c.ui.dialog.maxZ+= 1;d.uiDialog.css("z-index",c.ui.dialog.maxZ);d.element.attr(a);d._trigger("focus",b);return d},open:function(){if(!this._isOpen){var a=this,b=a.options,d=a.uiDialog;a.overlay=b.modal?new c.ui.dialog.overlay(a):null;a._size();a._position(b.position);d.show(b.show);a.moveToTop(true);b.modal&&d.bind("keypress.ui-dialog",function(e){if(e.keyCode===c.ui.keyCode.TAB){var g=c(":tabbable",this),f=g.filter(":first");g=g.filter(":last");if(e.target===g[0]&&!e.shiftKey){f.focus(1);return false}else if(e.target=== f[0]&&e.shiftKey){g.focus(1);return false}}});c(a.element.find(":tabbable").get().concat(d.find(".ui-dialog-buttonpane :tabbable").get().concat(d.get()))).eq(0).focus();a._isOpen=true;a._trigger("open");return a}},_createButtons:function(a){var b=this,d=false,e=c("
").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),g=c("
").addClass("ui-dialog-buttonset").appendTo(e);b.uiDialog.find(".ui-dialog-buttonpane").remove();typeof a==="object"&&a!==null&&c.each(a, function(){return!(d=true)});if(d){c.each(a,function(f,h){h=c.isFunction(h)?{click:h,text:f}:h;var i=c('').click(function(){h.click.apply(b.element[0],arguments)}).appendTo(g);c.each(h,function(j,k){if(j!=="click")j in o?i[j](k):i.attr(j,k)});c.fn.button&&i.button()});e.appendTo(b.uiDialog)}},_makeDraggable:function(){function a(f){return{position:f.position,offset:f.offset}}var b=this,d=b.options,e=c(document),g;b.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close", handle:".ui-dialog-titlebar",containment:"document",start:function(f,h){g=d.height==="auto"?"auto":c(this).height();c(this).height(c(this).height()).addClass("ui-dialog-dragging");b._trigger("dragStart",f,a(h))},drag:function(f,h){b._trigger("drag",f,a(h))},stop:function(f,h){d.position=[h.position.left-e.scrollLeft(),h.position.top-e.scrollTop()];c(this).removeClass("ui-dialog-dragging").height(g);b._trigger("dragStop",f,a(h));c.ui.dialog.overlay.resize()}})},_makeResizable:function(a){function b(f){return{originalPosition:f.originalPosition, originalSize:f.originalSize,position:f.position,size:f.size}}a=a===l?this.options.resizable:a;var d=this,e=d.options,g=d.uiDialog.css("position");a=typeof a==="string"?a:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:d._minHeight(),handles:a,start:function(f,h){c(this).addClass("ui-dialog-resizing");d._trigger("resizeStart",f,b(h))},resize:function(f,h){d._trigger("resize", f,b(h))},stop:function(f,h){c(this).removeClass("ui-dialog-resizing");e.height=c(this).height();e.width=c(this).width();d._trigger("resizeStop",f,b(h));c.ui.dialog.overlay.resize()}}).css("position",g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var a=this.options;return a.height==="auto"?a.minHeight:Math.min(a.minHeight,a.height)},_position:function(a){var b=[],d=[0,0],e;if(a){if(typeof a==="string"||typeof a==="object"&&"0"in a){b=a.split?a.split(" "): [a[0],a[1]];if(b.length===1)b[1]=b[0];c.each(["left","top"],function(g,f){if(+b[g]===b[g]){d[g]=b[g];b[g]=f}});a={my:b.join(" "),at:b.join(" "),offset:d.join(" ")}}a=c.extend({},c.ui.dialog.prototype.options.position,a)}else a=c.ui.dialog.prototype.options.position;(e=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(c.extend({of:window},a));e||this.uiDialog.hide()},_setOptions:function(a){var b=this,d={},e=false;c.each(a,function(g,f){b._setOption(g,f); if(g in m)e=true;if(g in n)d[g]=f});e&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",d)},_setOption:function(a,b){var d=this,e=d.uiDialog;switch(a){case "beforeclose":a="beforeClose";break;case "buttons":d._createButtons(b);break;case "closeText":d.uiDialogTitlebarCloseText.text(""+b);break;case "dialogClass":e.removeClass(d.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+b);break;case "disabled":b?e.addClass("ui-dialog-disabled"): e.removeClass("ui-dialog-disabled");break;case "draggable":var g=e.is(":data(draggable)");g&&!b&&e.draggable("destroy");!g&&b&&d._makeDraggable();break;case "position":d._position(b);break;case "resizable":(g=e.is(":data(resizable)"))&&!b&&e.resizable("destroy");g&&typeof b==="string"&&e.resizable("option","handles",b);!g&&b!==false&&d._makeResizable(b);break;case "title":c(".ui-dialog-title",d.uiDialogTitlebar).html(""+(b||" "));break}c.Widget.prototype._setOption.apply(d,arguments)},_size:function(){var a= this.options,b,d,e=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(a.minWidth>a.width)a.width=a.minWidth;b=this.uiDialog.css({height:"auto",width:a.width}).height();d=Math.max(0,a.minHeight-b);if(a.height==="auto")if(c.support.minHeight)this.element.css({minHeight:d,height:"auto"});else{this.uiDialog.show();a=this.element.css("height","auto").height();e||this.uiDialog.hide();this.element.height(Math.max(a,d))}else this.element.height(Math.max(a.height- b,0));this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.14",uuid:0,maxZ:0,getTitleId:function(a){a=a.attr("id");if(!a){this.uuid+=1;a=this.uuid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=c.ui.dialog.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a){return a+".dialog-overlay"}).join(" "), create:function(a){if(this.instances.length===0){setTimeout(function(){c.ui.dialog.overlay.instances.length&&c(document).bind(c.ui.dialog.overlay.events,function(d){if(c(d.target).zIndex()").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(), height:this.height()});c.fn.bgiframe&&b.bgiframe();this.instances.push(b);return b},destroy:function(a){var b=c.inArray(a,this.instances);b!=-1&&this.oldInstances.push(this.instances.splice(b,1)[0]);this.instances.length===0&&c([document,window]).unbind(".dialog-overlay");a.remove();var d=0;c.each(this.instances,function(){d=Math.max(d,this.css("z-index"))});this.maxZ=d},height:function(){var a,b;if(c.browser.msie&&c.browser.version<7){a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight); b=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return a'))}function N(a){return a.bind("mouseout",function(b){b= d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");b.length&&b.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0])||!b.length)){b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b.addClass("ui-state-hover"); b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover");b.hasClass("ui-datepicker-next")&&b.addClass("ui-datepicker-next-hover")}})}function H(a,b){d.extend(a,b);for(var c in b)if(b[c]==null||b[c]==C)a[c]=b[c];return a}d.extend(d.ui,{datepicker:{version:"1.8.14"}});var A=(new Date).getTime(),J;d.extend(M.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){H(this._defaults, a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input")this._connectDatepicker(a,i);else f&&this._inlineDatepicker(a,i)},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0, selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:N(d('
'))}},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]= h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=d(''+c+"");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both")a.focus(this._showDatepicker);if(c=="button"||c=="both"){c= this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('').addClass(this._triggerClass).html(f==""?c:d("").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a, "autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;gh){h=f[g].length;i=g}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker", function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);b.dpDiv.show()}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput); a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}H(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos)this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css("left", this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus", this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else if(e=="div"||e=="span")b.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else if(e=="div"||e=="span"){b= b.children("."+this._inlineClass);b.children().removeClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("disabled")}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5", cursor:"default"})}else if(e=="div"||e=="span"){b=b.children("."+this._inlineClass);b.children().addClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","disabled")}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return false;for(var b=0;b-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal)try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a); d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input")a=d("input",a.parentNode)[0];if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);if(d.datepicker._curInst&&d.datepicker._curInst!=b){d.datepicker._datepickerShowing&&d.datepicker._triggerOnClose(d.datepicker._curInst);d.datepicker._curInst.dpDiv.stop(true,true)}var c= d.datepicker._get(b,"beforeShow");H(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog)a.value="";if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return!e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c= {left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){var i=b.dpDiv.find("iframe.ui-datepicker-cover"); if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.datepicker._datepickerShowing=true;d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f)h();b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}},_updateDatepicker:function(a){this.maxRows=4;var b=d.datepicker._getBorders(a.dpDiv); J=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("."+this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(a);c=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(b[0]!=1||b[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi"); a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var e=a.yearshtml;setTimeout(function(){e===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);e=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]|| c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+ i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));)a=a[b?"previousSibling":"nextSibling"];a=d(a).offset();return[a.left,a.top]},_triggerOnClose:function(a){var b=this._get(a,"onClose");if(b)b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])},_hideDatepicker:function(a){var b= this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker")))if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();d.datepicker._triggerOnClose(b);this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute", left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&& d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth= b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e._selectingMonthYear=false;e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_clickMonthYear:function(a){var b=this._getInst(d(a)[0]);b.input&&b._selectingMonthYear&&setTimeout(function(){b.input.focus()},0);b._selectingMonthYear= !b._selectingMonthYear},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a); a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c)c.apply(a.input?a.input[0]:null,[b,a]);else a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);else{this._hideDatepicker();this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a)); d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/864E5)/7)+1},parseDate:function(a,b,c){if(a==null||b==null)throw"Invalid arguments";b=typeof b=="object"?b.toString():b+"";if(b=="")return null;var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()% 100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=B+1-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e)break;j++;l-=e}while(1)}v=this._daylightSavingAdjust(new Date(c,j-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=j||v.getDate()!=l)throw"Invalid date";return v},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y", TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:function(a,b,c){if(!b)return"";var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=k+112?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay= a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.val(e?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(), b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n= this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&nn;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,-1,m,g)?''+n+"":f?"":''+n+"";var s=this._get(a,"nextText");s=!h?s:this.formatDate(s,this._daylightSavingAdjust(new Date(m,g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?''+s+"":f?"":''+s+"";j=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&&a.currentDay?u:b;j=!h?j:this.formatDate(j,s,this._getFormatConfig(a));h=!a.inline?'":"";e=e?'
'+(c?h:"")+(this._isInRange(a,s)?'":"")+(c?"":h)+"
":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");s=this._get(a,"dayNames");this._get(a,"dayNamesShort");var q=this._get(a,"dayNamesMin"),B= this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),D=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var E=this._getDefaultDate(a),w="",x=0;x1)switch(G){case 0:y+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right": "left");break;case i[1]-1:y+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:y+=" ui-datepicker-group-middle";t="";break}y+='">'}y+='
'+(/all|left/.test(t)&&x==0?c?f:n:"")+(/all|right/.test(t)&&x==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,x>0||G>0,B,v)+'
';var z=j?'": "";for(t=0;t<7;t++){var r=(t+h)%7;z+="=5?' class="ui-datepicker-week-end"':"")+'>'+q[r]+""}y+=z+"";z=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth)a.selectedDay=Math.min(a.selectedDay,z);t=(this._getFirstDayOfMonth(m,g)-h+7)%7;z=Math.ceil((t+z)/7);this.maxRows=z=l?this.maxRows>z?this.maxRows:z:z;r=this._daylightSavingAdjust(new Date(m,g,1-t));for(var Q=0;Q";var R=!j?"":'";for(t=0;t<7;t++){var I=p?p.apply(a.input?a.input[0]:null,[r]):[true,""],F=r.getMonth()!=g,L=F&&!K||!I[0]||k&&ro;R+='";r.setDate(r.getDate()+1);r=this._daylightSavingAdjust(r)}y+=R+""}g++;if(g>11){g=0;m++}y+="
'+this._get(a,"weekHeader")+"
'+ this._get(a,"calculateWeek")(r)+""+(F&&!D?" ":L?''+r.getDate()+"":''+ r.getDate()+"")+"
"+(l?""+(i[0]>0&&G==i[1]-1?'
':""):"");O+=y}w+=O}w+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'':"");a._keyEvent=false;return w},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"), l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='
',o="";if(h||!j)o+=''+i[b]+"";else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='"}u||(k+=o+(h||!(j&&l)?" ":""));if(!a.yearshtml){a.yearshtml="";if(h||!l)k+=''+c+"";else{g=this._get(a,"yearRange").split(":");var s=(new Date).getFullYear();i=function(q){q=q.match(/c[+-].*/)?c+parseInt(q.substring(1),10):q.match(/[+-].*/)?s+parseInt(q,10):parseInt(q,10);return isNaN(q)?s:q};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()): g;for(a.yearshtml+='";k+=a.yearshtml;a.yearshtml=null}}k+=this._get(a,"yearSuffix");if(u)k+=(h||!(j&&l)?" ":"")+o;k+="
";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c== "Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y")this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&ba?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear"); if(b)b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a); c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a, "dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker= function(a){if(!this.length)return this;if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget"))return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string")return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker, [this[0]].concat(b));return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new M;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.14";window["DP_jQuery_"+A]=d})(jQuery); ;/* * jQuery UI Effects 1.8.14 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Effects/ */ jQuery.effects||function(f,j){function m(c){var a;if(c&&c.constructor==Array&&c.length==3)return c;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt(a[1], 16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return n.transparent;return n[f.trim(c).toLowerCase()]}function s(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return m(b)}function o(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle, a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function p(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in t||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function u(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d= a;b=null;a=c;c=a.effect}if(f.isFunction(a)){d=a;b=null;a={}}if(typeof a=="number"||f.fx.speeds[a]){d=b;b=a;a={}}if(f.isFunction(b)){d=b;b=null}a=a||{};b=b||a.duration;b=f.fx.off?0:typeof b=="number"?b:b in f.fx.speeds?f.fx.speeds[b]:f.fx.speeds._default;d=d||a.complete;return[c,a,b,d]}function l(c){if(!c||typeof c==="number"||f.fx.speeds[c])return true;if(typeof c==="string"&&!f.effects[c])return true;return false}f.effects={};f.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor", "borderTopColor","borderColor","color","outlineColor"],function(c,a){f.fx.step[a]=function(b){if(!b.colorInit){b.start=s(b.elem,a);b.end=m(b.end);b.colorInit=true}b.elem.style[a]="rgb("+Math.max(Math.min(parseInt(b.pos*(b.end[0]-b.start[0])+b.start[0],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[1]-b.start[1])+b.start[1],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[2]-b.start[2])+b.start[2],10),255),0)+")"}});var n={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0, 0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211, 211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},q=["add","remove","toggle"],t={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.effects.animateClass=function(c,a,b, d){if(f.isFunction(b)){d=b;b=null}return this.queue(function(){var e=f(this),g=e.attr("style")||" ",h=p(o.call(this)),r,v=e.attr("class");f.each(q,function(w,i){c[i]&&e[i+"Class"](c[i])});r=p(o.call(this));e.attr("class",v);e.animate(u(h,r),{queue:false,duration:a,easing:b,complete:function(){f.each(q,function(w,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments);f.dequeue(this)}})})}; f.fn.extend({_addClass:f.fn.addClass,addClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===j?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,a):f.effects.animateClass.apply(this, [{toggle:c},a,b,d])},switchClass:function(c,a,b,d,e){return f.effects.animateClass.apply(this,[{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.8.14",save:function(c,a){for(var b=0;b").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}); c.wrap(b);b=c.parent();if(c.css("position")=="static"){b.css({position:"relative"});c.css({position:"relative"})}else{f.extend(a,{position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(d,e){a[e]=c.css(e);if(isNaN(parseInt(a[e],10)))a[e]="auto"});c.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replaceWith(c);return c},setTransition:function(c, a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a=k.apply(this,arguments),b={options:a[1],duration:a[2],callback:a[3]};a=b.options.mode;var d=f.effects[c];if(f.fx.off||!d)return a?this[a](b.duration,b.callback):this.each(function(){b.callback&&b.callback.call(this)});return d.call(this,b)},_show:f.fn.show,show:function(c){if(l(c))return this._show.apply(this,arguments);else{var a=k.apply(this,arguments); a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(l(c))return this._hide.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(l(c)||typeof c==="boolean"||f.isFunction(c))return this.__toggle.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="toggle";return this.effect.apply(this,a)}},cssUnit:function(c){var a=this.css(c),b=[];f.each(["em","px","%", "pt"],function(d,e){if(a.indexOf(e)>0)b=[parseFloat(a),e]});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(c,a,b,d,e){return f.easing[f.easing.def](c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return d*(a/=e)*a+b},easeOutQuad:function(c,a,b,d,e){return-d*(a/=e)*(a-2)+b},easeInOutQuad:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c,a,b,d,e){return d* ((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b,d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/= e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,10*(a/e-1))+b},easeOutExpo:function(c,a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a==e)return b+d;if((a/= e/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c,a,b,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+b},easeInOutCirc:function(c,a,b,d,e){if((a/=e/2)<1)return-d/2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h