PageSourceSearch

https://www.onenetworkdirect.net/drui/1.7.0.0.4.3/js/dr-framework-compressed-en_us.js

js onenetworkdirect.net collected 2026-10-03 20:23:12 UTC 354,642 bytes, 11,307 lines download raw bytes

1var JSON = {
2copyright: '(c)2005 JSON.org',
3license: 'http://www.crockford.com/JSON/license.html',
4stringify: function (v) {
5var a = [];
6
7
8function e(s) {
9a[a.length] = s;
10}
11
12function g(x) {
13var c, i, l, v;
14
15switch (typeof x) {
16case 'object':
17if (x) {
18if (x instanceof Array) {
19e('[');
20l = a.length;
21for (i = 0; i < x.length; i += 1) {
22v = x[i];
23if (typeof v != 'undefined' &&
24typeof v != 'function') {
25if (l < a.length) {
26e(',');
27}
28g(v);
29}
30}
31e(']');
32return;
33} else if (typeof x.valueOf == 'function') {
34e('{');
35l = a.length;
36for (i in x) {
37v = x[i];
38if (typeof v != 'undefined' &&
39typeof v != 'function' &&
40(!v || typeof v != 'object' ||
41typeof v.valueOf == 'function')) {
42if (l < a.length) {
43e(',');
44}
45g(i);
46e(':');
47g(v);
48}
49}
50return e('}');
51}
52}
53e('null');
54return;
55case 'number':
56e(isFinite(x) ? +x : 'null');
57return;
58case 'string':
59l = x.length;
60e('"');
61for (i = 0; i < l; i += 1) {
62c = x.charAt(i);
63if (c >= ' ') {
64if (c == '\\' || c == '"') {
65e('\\');
66}
67e(c);
68} else {
69switch (c) {
70case '\b':
71e('\\b');
72break;
73case '\f':
74e('\\f');
75break;
76case '\n':
77e('\\n');
78break;
79case '\r':
80e('\\r');
81break;
82case '\t':
83e('\\t');
84break;
85default:
86c = c.charCodeAt();
87e('\\u00' + Math.floor(c / 16).toString(16) +
88(c % 16).toString(16));
89}
90}
91}
92e('"');
93return;
94case 'boolean':
95e(String(x));
96return;
97default:
98e('null');
99return;
100}
101}
102g(v);
103return a.join('');
104},
105parse: function (text) {
106return (/^(\s+|[,:{}\[\]]|"(\\["\\\/bfnrtu]|[^\x00-\x1f"\\]+)*"|-?\d+(\.\d*)?([eE][+-]?\d+)?|true|false|null)+$/.test(text)) &&
107eval('(' + text + ')');
108}
109};
110/*
111 * jQuery JavaScript Library v1.3.2
112 * http://jquery.com/
113 *
114 * Copyright (c) 2009 John Resig
115 * Dual licensed under the MIT and GPL licenses.
116 * http://docs.jquery.com/License
117 *
118 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
119 * Revision: 6246
120 */
121(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})}
121,css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){if(G&&/\S/.test(G)){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})}
121,remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?
1210:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];
121if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
122/*
123 * Sizzle CSS Selector Engine - v0.9.3
124 *  Copyright 2009, The Dojo Foundation
125 *  Released under the MIT, BSD, and GPL Licenses.
126 *  More information: http://sizzlejs.com/
127 */
128(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*
128)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}
128if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCo
128de clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(G=false)}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&l==l.top){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}
128o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();
128if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["o
128pacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}}for(var G=0,F=this.length;G<F;G++){this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n);n=g}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;
128if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.
128clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();
129/**
130 * @author Alexander Farkas
131 * v. 1.1
132 */
133
134(function($){
135	if(!document.defaultView || !document.defaultView.getComputedStyle){
136		var oldCurCSS = jQuery.curCSS;
137		jQuery.curCSS = function(elem, name, force){
138			if(name !== 'backgroundPosition' || !elem.currentStyle || elem.currentStyle[ name ]){
139				return oldCurCSS.apply(this, arguments);
140			}
141			var style = elem.style;
142			if ( !force && style && style[ name ] ){
143				return style[ name ];
144			}
145			return oldCurCSS(elem, 'backgroundPositionX', force) +' '+ oldCurCSS(elem, 'backgroundPositionY', force);
146		};
147	}
148})(jQuery);
149
150(function($) {
151	
152	function toArray(strg){
153		strg = strg.replace(/left|top/g,'0px');
154		strg = strg.replace(/right|bottom/g,'100%');
155		strg = strg.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");
156		var res = strg.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);
157		return [parseFloat(res[1],10),res[2],parseFloat(res[3],10),res[4]];
158	}
159	
160	$.fx.step. backgroundPosition = function(fx) {
161		if (!fx.bgPosReady) {
162			
163			var start = $.curCSS(fx.elem,'backgroundPosition');
164			if(!start){//FF2 no inline-style fallback
165				start = '0px 0px';
166			}
167			
168			start = toArray(start);
169			fx.start = [start[0],start[2]];
170			
171			var end = toArray(fx.options.curAnim.backgroundPosition);
172			fx.end = [end[0],end[2]];
173			
174			fx.unit = [end[1],end[3]];
175			fx.bgPosReady = true;
176		}
177		
178		var nowPosX = [];
179		nowPosX[0] = ((fx.end[0] - fx.start[0]) * fx.pos) + fx.start[0] + fx.unit[0];
180		nowPosX[1] = ((fx.end[1] - fx.start[1]) * fx.pos) + fx.start[1] + fx.unit[1];           
181		fx.elem.style.backgroundPosition = nowPosX[0]+' '+nowPosX[1];
182
183	};
184})(jQuery);/* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)
185 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
186 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
187 *
188 * $LastChangedDate: 2007-07-21 18:45:56 -0500 (Sat, 21 Jul 2007) $
189 * $Rev: 2447 $
190 *
191 * Version 2.1.1
192 */
193(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&/6.0/.test(navigator.userAgent)){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:block;position:absolute;z-index:-1;'+(s.opacity!==false?'filter:Alpha(Opacity=\'0\');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',this).length==0)this.insertBefore(document.createElement(html),this.firstChild);});}return this;};})(jQuery);/*
194 * jQuery Address Plugin v1.0
195 * http://www.asual.com/jquery/address/
196 *
197 * Copyright (c) 2009 Rostislav Hristov
198 * Dual licensed under the MIT and GPL licenses.
199 * http://docs.jquery.com/License
200 *
201 * Date: 2009-04-28 16:54:00 +0300 (Tue, 28 Apr 2009)
202 * Revision: 399
203 */
204(function($) {
205	$.address = (function () {
206		var _api = {};
207		var _ready = false;
208		
209		var _activate = function() {					
210			var _trigger = function(name) {
211				$(this).trigger(
212					$.extend($.Event(name), 
213						(function() {
214							var event = {
215								value: this.value(),
216								path: this.path(),
217								pathNames: this.pathNames(),
218								parameterNames: this.parameterNames(),
219								parameters: {},
220								queryString: this.queryString()
221							};
222							for (var i = 0, l = event.parameterNames.length; i < l; i++)
223								event.parameters[event.parameterNames[i]] = this.parameter(event.parameterNames[i]);
224							return event;
225						}).call(this)
226					)
227				);
228			};
229		
230			var _init = function() {
231				_trigger.call($.address, 'init');
232			};
233			
234			var _change = function() {
235				_trigger.call($.address, 'change');
236			};
237	
238			var _getHash = function() {
239				var index = _l.href.indexOf('#');
240				return index != -1 ? _ec(_dc(_l.href.substr(index + 1))) : '';
241			};
242			
243			var _getWindow = function() {
244				try {
245					top.document;
246					return top;
247				} catch (e) {
248					return window;
249				}
250			};
251			
252			var _strictCheck = function(value, force) {
253				if (_opts.strict)
254					value = force ? (value.substr(0, 1) != '/' ? '/' + value : value) : (value == '' ? '/' : value);
255				return value;
256			};
257	
258			var _ieLocal = function(value, direction) {
259				return (_msie && _l.protocol == 'file:') ? 
260					(direction ? _value.replace(/\?/, '%3F') : _value.replace(/%253F/, '?')) : value;
261			};
262	
263			var _searchScript = function(el) {
264				for (var i = 0, l = el.childNodes.length, s; i < l; i++) {
265					if (el.childNodes[i].src)
266						_url = String(el.childNodes[i].src);
267					if (s = _searchScript(el.childNodes[i]))
268						return s;
269				}
270			};
271	
272			var _listen = function() {
273				if (!_silent) {
274					var hash = _getHash();
275					var diff = !(_value == hash);
276					if (_safari && _version < 523) {
277						if (_length != _h.length) {
278							_length = _h.length;
279							if (typeof _stack[_length - 1] != UNDEFINED)
280								_value = _stack[_length - 1];
281							_update();
282						}
283					} else if (_msie && diff) {
284						if (_version < 7)
285							_l.reload();
286						else
287							_setters.value(hash);
288					} else if (diff) {
289						_value = hash;
290						_update();
291					}
292				}
293			};
294	
295			var _update = function() {
296				_change();
297				_st(_track, 10);  //10
298			};
299	
300			var _track = function() {
301				var value = (_l.pathname + (/\/$/.test(_l.pathname) ? '' : '/') + _getters.value()).replace(/\/\//, '/').replace(/^\/$/, '');
302				var fn = window[_opts.tracker];
303				if (typeof fn == FUNCTION)
304					fn(value);
305				else if (typeof pageTracker != UNDEFINED && typeof pageTracker._trackPageview == FUNCTION)
306					pageTracker._trackPageview(value);
307				else if (typeof urchinTracker == FUNCTION) 
308					urchinTracker(value);
309			};
310			
311			var _htmlWrite = function() {
312				var doc = _iframe.contentWindow.document;
313				doc.open();
314				doc.write('<html><head><title>' + _d.title + '</title><script>var ' + ID + ' = "' + _getHash() + '";</script></head></html>');
315				doc.close();
316			};
317	
318			var _load = function() {
319				if (!_loaded) {
320					_loaded = true;
321					$('a').attr('xref', function() {
322						return $(this).attr('href');
323					});				
324					
325					if (_msie && _version < 8) {					
326						$('body').prepend('<iframe id="' + ID + '" src="javascript:false;" width="0" height="0"></iframe>');
327						_iframe = _d.getElementById(ID);
328						_st(function() {
329							$(_iframe).bind('load', function() {
330								var win = _iframe.contentWindow;
331								var src = win.location.href;
332								_value = (typeof win[ID] != UNDEFINED ? win[ID] : '');
333								if (_value != _getHash()) {
334									_update();
335									_l.hash = _ieLocal(_value, true);
336								}
337							});
338							if (typeof _iframe.contentWindow[ID] == UNDEFINED) 
339								_htmlWrite();
340						}, 50); //50
341					} else if (_safari) {
342						if (_version < 418) {
343							$(_d.body).append('<form id="' + ID + '" style="position:absolute;top:-9999px;" method="get"></form>');
344							_form = _d.getElementById(ID);
345						}
346						if (typeof _l[ID] == UNDEFINED) _l[ID] = {};
347						if (typeof _l[ID][_l.pathname] != UNDEFINED) _stack = _l[ID][_l.pathname].split(',');
348					}
349					
350					_st(function() {
351						_init();
352						_change();
353						_track();
354					}, 1); //1
355					
356					if (_msie && _version >= 8)
357						_d.body.onhashchange = _listen;
358					else
359						_si(_listen, 50);
360						
361					$('a').attr('href', function() {
362						return $(this).attr('xref');
363					}).removeAttr('xref');
364					
365					$('a[rel*=address:]').address();
366				}
367			};
368			
369			var _getters = {
370				baseURL: function() {
371					var url = _l.href;
372					if (url.indexOf('#') != -1)
373						url = url.substr(0, url.indexOf('#'));
374					if (url.substr(url.length - 1) == '/')
375						url = url.substr(0, url.length - 1);
376					return url;
377				}, 
378				strict: function() {
379					return _opts.strict;
380				},
381				history: function() {
382					return _opts.history;
383				},
384				tracker: function() {
385					return _opts.tracker;
386				},
387				title: function() {
388					return _d.title;
389				},
390				value: function() {
391					if (!_supported) return null;
392					return _dc(_strictCheck(_ieLocal(_value, false), false));
393				},
394				path: function() {
395					var value = this.value();
396					return (value.indexOf('?') != -1) ? value.split('?')[0] : value;
397				},
398				pathNames: function() {
399					var path = this.path();
400					var names = path.split('/');
401					if (path.substr(0, 1) == '/' || path.length == 0)
402						names.splice(0, 1);
403					if (path.substr(path.length - 1, 1) == '/')
404						names.splice(names.length - 1, 1);
405					return names;
406				},
407				queryString: function() {
408					var value = this.value();
409					var index = value.indexOf('?');
410					return (index != -1 && index < value.length) ? value.substr(index + 1) : '';
411				},
412				parameter: function(param) {
413					var value = this.value();
414					var index = value.indexOf('?');
415					if (index != -1) {
416						value = value.substr(index + 1);
417						var params = value.split('&');
418						var p, i = params.length;
419						while(i--) {
420							p = params[i].split('=');
421							if (p[0] == param)
422								return p[1];
423						}
424					}
425				},
426				parameterNames: function() {
427					var value = this.value();
428					var index = value.indexOf('?');
429					var names = [];
430					if (index != -1) {
431						value = value.substr(index + 1);
432						if (value != '' && value.indexOf('=') != -1) {
433							var params = value.split('&');
434							var i = 0;
435							while(i < params.length) {
436								names.push(params[i].split('=')[0]);
437								i++;
438							}
439						}
440					}
441					return names;
442				}        
443			};
444			
445			var _setters = {
446				strict: function(strict) {
447					_opts.strict = strict;
448				},
449				history: function(history) {
450					_opts.history = history;
451				},
452				tracker: function(tracker) {
453					_opts.tracker = tracker;
454				},
455				title: function(title) {
456					_st(function() {
457						_title = _d.title = title;
458						if (_juststart && _iframe && _iframe.contentWindow && _iframe.contentWindow.document) {
459							_iframe.contentWindow.document.title = title;
460							_juststart = false;
461						}
462						if (!_justset && _mozilla)
463							_l.replace(_l.href.indexOf('#') != -1 ? _l.href : _l.href + '#');
464						_justset = false;
465					}, 50); //50
466				},
467				value: function(value) {
468					value = _ec(_dc(_strictCheck(value, true)));
469					if (value == '/') value = '';
470					if (_value == value) return;
471					_justset = true;
472					_value = value;
473					_silent = true;
474					_update();
475					_stack[_h.length] = _value;
476					if (_safari) {
477						if (_opts.history) {
478							_l[ID][_l.pathname] = _stack.toString();
479							_length = _h.length + 1;
480							if (_version < 418) {
481								if (_l.search == '') {
482									_form.action = '#' + _value;
483									_form.submit();
484								}
485							} else if (_version < 523 || _value == '') {
486								var evt = _d.createEvent('MouseEvents');
487								evt.initEvent('click', true, true);
488								var anchor = _d.createElement('a');
489								anchor.href = '#' + _value;
490								anchor.dispatchEvent(evt);                
491							} else {
492								_l.hash = '#' + _value;
493							}
494						} else {
495							_l.replace('#' + _value);
496						}
497					} else if (_value != _getHash()) {
498						if (_opts.history)
499							_l.hash = '#' + _ieLocal(_value, true);
500						else
501							_l.replace('#' + _value);
502					}
503					if ((_msie && _version < 8) && _opts.history) {
504						_st(_htmlWrite, 50); //50
505					}
506					if (_safari)
507						_st(function(){ _silent = false; }, 1);
508					else
509						_silent = false;
510				}
511			};
512	
513			var ID = 'jQueryAddress',
514				FUNCTION = 'function',
515				UNDEFINED = 'undefined',
516				_browser = $.browser, 
517				_version = parseFloat($.browser.version),
518				_mozilla = _browser.mozilla,
519				_msie = _browser.msie,
520				_opera = _browser.opera,
521				_safari = _browser.safari,
522				_supported = false,
523				_t = _getWindow(),
524				_d = _t.document,
525				_h = _t.history, 
526				_l = _t.location,
527				_si = setInterval,
528				_st = setTimeout, 
529				_dc = decodeURI,
530				_ec = encodeURI,
531				_agent = navigator.userAgent,            
532				_iframe,
533				_form,
534				_url,
535				_title = _d.title, 
536				_length = _h.length, 
537				_loaded = false,
538				_silent = false,
539				_justset = true,
540				_juststart = true,
541				_stack = [], 
542				_listeners = {}, 
543				_value = _getHash(),
544				_opts = {history: true, strict: true};
545			
546			if (_msie)
547				_version = parseFloat(_agent.substr(_agent.indexOf('MSIE') + 4));
548			
549			_supported = 
550				(_mozilla && _version >= 1) || 
551				(_msie && _version >= 6) ||
552				(_opera && _version >= 9.5) ||
553				(_safari && _version >= 312);
554				
555			if (_supported) {
556			
557				for (var i = 1; i < _length; i++)
558					_stack.push('');
559					
560				_stack.push(_getHash());
561			
562				if (_msie && _l.hash != _getHash())
563					_l.hash = '#' + _ieLocal(_getHash(), true);
564	
565				if (_opera) 
566					history.navigationMode = 'compatible'; 
567				
568				_searchScript(document);
569				var _qi = _url.indexOf('?');
570				if (_url && _qi > -1) {
571					var param, params = _url.substr(_qi + 1).split('&');
572					for (var i = 0, p; p = params[i]; i++) {
573						param = p.split('=');
574						if (/^(history|strict)$/.test(param[0])) {
575							_opts[param[0]] = (isNaN(param[1]) ? /^(true|yes)$/i.test(param[1]) : (parseInt(param[1]) != 0));
576						}
577						if (/^tracker$/.test(param[0]))
578							_opts[param[0]] = param[1];
579					}
580				}
581	
582				$(_load);
583				
584			} else if ((!_supported && _l.href.indexOf('#') != -1) || 
585				(_safari && _version < 418 && _l.href.indexOf('#') != -1 && _l.search != '')){
586				_d.open();
587				_d.write('<html><head><meta http-equiv="refresh" content="0;url=' + 
588					_l.href.substr(0, _l.href.indexOf('#')) + '" /></head></html>');
589				_d.close();
590			} else {
591				_track();
592			}
593	
594			$.each(('init,change').split(','), function(i, name){
595				_api[name] = function(data, fn){
596					$($.address).bind(name, fn || data, fn && data);
597					return this;
598				};
599			});
600			
601			$.each(('baseURL,strict,history,tracker,title,value').split(','), function(i, name){
602				_api[name] = function(value){
603					if (typeof value != 'undefined') {
604						if (_supported)
605							_setters[name](value);
606						return $.address;
607					} else {
608						return _getters[name]();
609					}
610				};
611			});
612	
613			$.each(('path,pathNames,queryString,parameter,parameterNames').split(','), function(i, name){
614				_api[name] = function(value){
615					return _getters[name](value);
616				};
617			});
618			
619			_ready = true;
620			$(document).trigger('onAddressActivated');
621			$(document).unbind('onAddressActivated');
622		};
623			
624		_api['activate'] = function(){
625			_activate();
626			return this;
627		};
628
629		_api['ready'] = function(){
630			return _ready;
631		};				
632		
633		return _api;
634	})();
635
636	$.fn.address = function (fn) {
637		$(this).click(function() {
638			var value = fn ? fn.call(this) : 
639			/address:/.test($(this).attr('rel')) ? $(this).attr('rel').split('address:')[1].split(' ')[0] : 
640			$(this).attr('href').replace(/^#/, '');
641			$.address.value(value);
642				return false;
643		});
644	};
645}(jQuery));
646// there needs to be empty functions setup for the debug logger
647jQuery.dr_console = {
648		logFunction: function(){},
649		logVar: function(){}
650};
651
652/* Copyright (c) 2008 Gilberto Saraiva ([email protected] || http://gsaraiva.projects.pro.br)
653 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
654 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
655 *
656 * Version: 2008.0.1.2 -
657 * Under development and testing
658 *
659 * Contributors:
660 *    Marc van Neerven ([email protected]) - Javascript .apply structure (function.this = current filter)
661 *
662 * Requires: $ 1.2+
663 *
664 * Support/Site: http://gsaraiva.projects.pro.br/openprj/?page=$namespace
665 */
666
667(function( $ ){
668  $.fn.extend({ curReturn: null, $Init: $.fn.init });
669
670  $.fn.extend({
671  	init: function( selector, context ) {
672      $.fn.curReturn = new $.fn.$Init(selector, context);
673      return $.fn.curReturn;
674  	}
675  });
676
677  $.extend({
678    namespaceData: {},
679    namespaceExtend: function(NameSpaces){
680      if(eval(NameSpaces) != undefined){ $.extend(eval(NameSpaces), {}); }else{ eval(NameSpaces + " = {};"); }
681    },
682    namespace: function(namespaces, objects, inherited){
683
684      // check to see if they want to make existing jQuery plugins available
685	  if(arguments.length < 3) inherited = true;  
686      
687	  if(typeof objects == "function"){
688        if(namespaces.match(".")){
689          var nss = namespaces.split(".");
690          var snss = "";
691          for(var i = 0; i < nss.length; i++){
692            snss += "['" + nss[i] + "']";
693
694            $.namespaceExtend("$.namespaceData" + snss);
695            $.namespaceExtend("$.fn" + snss);
696          }
697		  
698          eval("$.namespaceData" + snss + " = arguments[1];");
699          eval("$.fn" + snss + " = " + "function(){ return eval(\"$.namespaceData" + snss + ( (inherited) ? ".apply" : "") + "($.fn.curReturn, arguments)\"); }");
700
701        }else{
702          $.extend({
703            namespaces: function(){
704              return objects($.fn.curReturn);
705            }
706          });
707        }
708      }else{
709             
710        for(var space in objects){
711          $.namespace(namespaces + "." + space, objects[space], inherited);
712        };
713      }
714    }
715  });
716})( jQuery );if(!window.console){
717window.console=function(){
718};
719}
720(function($){
721var _2=[];
722$.dr=window.jQuery.dr||{VERSION:"1.7.0.0.4.3",VERSION_CREATION_DATE:"201003231843",BUILD_ID:"1.7.0.0.4.3",FRAMEWORK_PATH:"http://ui1.img.digitalrivercontent.net/drui/1.7.0.0.4.3/",IMAGE_PATH:"http://ui1.img.digitalrivercontent.net/drui/1.7.0.0.4.3/images/",BLANK_PAGE_URL:"http://ui1.img.digitalrivercontent.net/drui/1.7.0.0.4.3/html/Blank.html",LOGIN_URL:"",userdata:null,USER_LOCALE:"en_US",IS_INTERNAL_USER:false,IS_MODAL:false,strings:{LOADING:"Loading...",PROCESSING:"Processing...",AUTHORIZING:"Authorizing...",SEARCHING:"Searching...",RENAME:"Rename",PROPERTIES:"Properties",MOVE_UP:"Move Up",MOVE_DOWN:"Move Down",DELETE:"Delete",CLOSE:"Close",COLLAPSE:"Collapse",DONE:"Done",EXPAND:"Expand",SAVE:"Save",NEXT:"Next",YES:"Yes",NO:"No",FINISH:"Finish",CANCEL:"Cancel",OK:"OK"},init:function(){
723var _3,isModal=($("body.modalPage").length>0)?true:false;
724if(isModal){
725$.dr.IS_MODAL=true;
726_3=new DR.Utils.PageSizer();
727window.setTimeout(function(){
728_3.initModalScroller();
729},100);
730}
731if(typeof customOnload=="function"){
732customOnload();
733}
734$.dr.triggerDomReadyEvents();
735if(isModal){
736try{
737parent.overlayStack.getCurrent().center(true);
738}
739catch(e){
740}
741}
742},addDomReadyEvent:function(_4,_5){
743var _6=(_5)?_5:"domReadyLate";
744$(document).bind(_6,_4);
745},triggerDomReadyEvents:function(){
746$(document).trigger("domReadyEarly");
747$(document).trigger("domReadyNormal");
748$(document).trigger("domReadyLate");
749},addUnobtrusiveEvent:function(_7,_8){
750var _9=(_8)?_8:"unobtrusiveEventNormal";
751$(document).bind(_9,_7);
752},triggerUnobtrusiveEvents:function(_a){
753$(document).trigger("unobtrusiveEventEarly",[_a]);
754$(document).trigger("unobtrusiveEventNormal",[_a]);
755$(document).trigger("unobtrusiveEventLate",[_a]);
756},addPlugin:function(_b,_c){
757if(_b&&typeof _c=="function"){
758if(typeof _2[_b]==="undefined"){
759_2[_b]=[];
760}
761_2[_b].push(_c);
762}
763},getPlugins:function(_d){
764return _2[_d];
765}};
766var _e=function(){
767$.dr.triggerUnobtrusiveEvents(document);
768};
769$.dr.addDomReadyEvent(_e,"domReadyNormal");
770})(jQuery);
771var DR=window.DR||function(){
772};
773DR.Global=function(){
774};
775DR.Utils=function(){
776};
777DR.Widgets=function(){
778};
779var overlayStack,pageInfo={};
780(function($){
781$.dr.utils=window.jQuery.dr.utils||{};
782$.dr.utils.logError=function(_10,err){
783if(window.console){
784console.error(_10);
785if(err){
786console.error("Error: ",err);
787}
788}
789};
790$.dr.utils.evalString=function(str,_13){
791var o;
792if(!str){
793return;
794}
795if(str.trim().length==0){
796return;
797}
798try{
799eval("o="+str);
800}
801catch(e){
802if(_13){
803$.dr.utils.logError(_13,e);
804}
805o="error";
806}
807return o;
808};
809$.fn.setData=function(_15){
810return this.each(function(){
811for(var _16 in _15){
812$(this).data(_16,_15[_16]);
813}
814});
815};
816var _17=document.defaultView&&document.defaultView.getComputedStyle;
817$.dr.utils.getComputedValue=function(obj,_19){
818if(_17){
819return document.defaultView.getComputedStyle(obj,"").getPropertyValue(_19);
820}else{
821return obj.currentStyle[_19];
822}
823};
824$.namespace("dr",{computedWidth:function(){
825if(this.length>0){
826var num=parseInt($.dr.utils.getComputedValue(this[0],"width"),10);
827return (isNaN(num))?0:num;
828}
829},computedHeight:function(){
830if(this.length>0){
831var num=parseInt($.dr.utils.getComputedValue(this[0],"height"),10);
832return (isNaN(num))?0:num;
833}
834}});
835})(jQuery);
836DR.Utils.BrowserDetect={init:function(){
837this.browser=this.searchString(this.dataBrowser)||"An unknown browser";
838this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";
839this.OS=this.searchString(this.dataOS)||"an unknown OS";
840this.isStandardsMode=this.checkStandardsMode();
841},checkStandardsMode:function(){
842return document.compatMode=="CSS1Compat";
843},getAvailableContentWidth:function(){
844var _1c=null;
845if(this.isStandardsMode){
846if(document.documentElement){
847_1c=document.documentElement.clientWidth;
848}
849}else{
850_1c=document.body.clientWidth;
851}
852return _1c;
853},getAvailableContentHeight:function(){
854var _1d=null;
855if(this.isStandardsMode){
856if(document.documentElement){
857_1d=document.documentElement.clientHeight;
858}
859}else{
860_1d=document.body.clientHeight;
861}
862return _1d;
863},searchString:function(_1e){
864for(var i=0;i<_1e.length;i++){
865var _20=_1e[i].string;
866var _21=_1e[i].prop;
867this.versionSearchString=_1e[i].versionSearch||_1e[i].identity;
868if(_20){
869if(_20.indexOf(_1e[i].subString)!=-1){
870return _1e[i].identity;
871}
872}else{
873if(_21){
874return _1e[i].identity;
875}
876}
877}
878},isIE6:function(){
879if(this.version==6&&this.browser=="Explorer"){
880return true;
881}
882return false;
883},searchVersion:function(_22){
884var _23=_22.indexOf(this.versionSearchString);
885if(_23==-1){
886return;
887}
888return parseFloat(_22.substring(_23+this.versionSearchString.length+1));
889},dataBrowser:[{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};
890DR.Utils.BrowserDetect.init();
891DR.Utils.Cookie=function(_24){
892this.name=_24;
893this.expires=null;
894this.path=null;
895this.domain=null;
896this.defaultExpireDays=365;
897this.secure=null;
898this.type="Single";
899this.value=null;
900this.valueLoaded=false;
901this.arrayValues=[];
902this.arrayValuesLoaded=false;
903this.arraySeperator="^";
904this.nameArrayValues=[];
905this.nameArrayValuesLoaded=false;
906this.nameArraySeperator="&";
907this.nameArrayInnerSeperator=":";
908};
909DR.Utils.Cookie.ERROR_VALID_DATE="Enter a valid date.";
910DR.Utils.Cookie.prototype={setExpires:function(_25){
911if(!this.nameArrayValuesLoaded){
912this.load();
913}
914if(_25!==null){
915_25=new Date(_25);
916if(_25.constructor==Date){
917this.expires=_25.toGMTString();
918}else{
919alert(DR.Utils.Cookie.ERROR_VALID_DATE);
920}
921}
922},setExpireDays:function(_26){
923this.defaultExpireDays=_26;
924},load:function(){
925var _27=document.cookie;
926if(_27===""){
927return false;
928}
929var _28=_27.indexOf(this.name+"=");
930if(_28!=-1){
931_28+=this.name.length+1;
932var _29=_27.indexOf(";",_28);
933if(_29==-1){
934_29=_27.length;
935}
936var _2a=unescape(_27.substring(_28,_29));
937if(this.type=="Single"){
938this.value=_2a;
939this.nameArrayValuesLoaded=true;
940}else{
941if(this.type=="NameValuePair"){
942this.splitCookiePairs(_2a);
943}else{
944if(this.type=="Array"){
945this.splitCookieArray(_2a);
946}
947}
948}
949return true;
950}
951return false;
952},save:function(){
953var v="";
954if(this.type=="Single"){
955v=this.value;
956}else{
957if(this.type=="NameValuePair"){
958v=this.joinNameValuePairs();
959}else{
960if(this.type=="Array"){
961v=this.joinArrayValues();
962}
963}
964}
965if(this.expires===null){
966this.expires=this.getDateOffset(this.defaultExpireDays);
967}
968document.cookie=this.name+"="+escape(v)+((this.expires)?"; expires="+this.expires:"")+((this.path)?"; path="+this.path:"")+((this.domain)?"; domain="+this.domain:"")+((this.secure)?"; secure":"");
969},setValue:function(_2c){
970if(!this.nameArrayValuesLoaded){
971this.load();
972}
973this.value=_2c;
974this.type="Single";
975this.save();
976},clear:function(){
977var c=new Date();
978document.cookie=this.name+"="+((this.expires)?"; expires="+c.toGMTString():"")+((this.path)?"; path="+this.path:"")+((this.domain)?"; domain="+this.domain:"")+((this.secure)?"; secure":"");
979this.name=null;
980this.expires=null;
981this.path=null;
982this.domain=null;
983this.defaultExpireDays=null;
984this.secure=null;
985this.type=null;
986this.value=null;
987this.valueLoaded=null;
988this.arrayValues=null;
989this.arrayValuesLoaded=null;
990this.arraySeperator=null;
991this.nameArrayValues=null;
992this.nameArrayValuesLoaded=null;
993this.nameArraySeperator=null;
994this.nameArrayInnerSeperator=null;
995},addArrayValue:function(_2e){
996this.type="Array";
997if(!this.arrayValuesLoaded){
998this.load();
999}
1000var _2f="";
1001var ary=this.arrayValues;
1002var _31=[];
1003var k=0;
1004if(ary.length>0){
1005for(var i=0;i<ary.length;i++){
1006if(ary[i]!=_2e){
1007_2f+=ary[i]+this.arraySeperator;
1008_31[k]=ary[i];
1009k++;
1010}
1011}
1012}
1013_31[k]=_2e;
1014_2f+=_2e+this.arraySeperator;
1015this.arrayValues=_31;
1016this.value=_2f;
1017this.save();
1018},removeArrayValue:function(_34){
1019this.type="Array";
1020var _35="";
1021var ary=this.arrayValues;
1022var _37=[];
1023var k=0;
1024for(var i=0;i<ary.length;i++){
1025if(ary[i]!=_34){
1026_35+=ary[i]+this.arraySeperator;
1027_37[k]=ary[i];
1028k++;
1029}
1030}
1031this.arrayValues=_37;
1032this.value=_35;
1033this.save();
1034},setNameValuePair:function(_3a,_3b){
1035var v=_3b+"";
1036if(_3a.indexOf("&")==-1&&_3a.indexOf(":")==-1&&v.indexOf("&")==-1&&v.indexOf(":")==-1){
1037if(!this.nameArrayValuesLoaded){
1038this.load();
1039}
1040this.type="NameValuePair";
1041this.nameArrayValues[_3a]=_3b;
1042this.save();
1043}
1044},getValue:function(_3d){
1045if(!this.nameArrayValuesLoaded){
1046this.load();
1047}
1048if(_3d){
1049return this.nameArrayValues[_3d];
1050}else{
1051return this.value;
1052}
1053},removeValue:function(_3e){
1054if(!this.nameArrayValuesLoaded){
1055this.load();
1056}
1057delete this.nameArrayValues.name;
1058this.save();
1059},removeAllValues:function(){
1060if(!this.nameArrayValuesLoaded){
1061this.load();
1062}
1063this.nameArrayValues=[];
1064},splitCookiePairs:function(_3f){
1065var _40=_3f.split(this.nameArraySeperator);
1066for(var i=0;i<_40.length;i++){
1067_40[i]=_40[i].split(this.nameArrayInnerSeperator);
1068}
1069this.nameArrayValues=[];
1070for(var j=0;j<_40.length;j++){
1071this.nameArrayValues[_40[j][0]]=_40[j][1];
1072}
1073this.joinNameValuePairs();
1074},splitCookieArray:function(_43){
1075var ary=[];
1076if(_43!==null){
1077var i=0;
1078while(_43.indexOf(this.arraySeperator)!="-1"){
1079ary[i]=_43.substring(0,_43.indexOf(this.arraySeperator));
1080i++;
1081_43=_43.substring(_43.indexOf(this.arraySeperator)+1,_43.length);
1082}
1083}
1084this.arrayValues=ary;
1085this.joinArrayValues();
1086},joinNameValuePairs:function(){
1087var _46=[];
1088for(var i in this.nameArrayValues){
1089_46[_46.length]=i+this.nameArrayInnerSeperator+this.nameArrayValues[i];
1090}
1091var v=_46.join(this.nameArraySeperator);
1092this.value=v;
1093return v;
1094},joinArrayValues:function(){
1095var v="";
1096if(this.arrayValues.length>0){
1097for(var i=0;i<this.arrayValues.length;i++){
1098v+=this.arrayValues[i]+this.arraySeperator;
1099}
1100}
1101this.value=v;
1102return v;
1103},getDateOffset:function(_4b){
1104var _4c=new Date();
1105_4c.setTime(_4c.getTime());
1106if(_4b){
1107var _4d=_4b*1000*60*60*24;
1108var _4e=new Date(_4c.getTime()+(_4d));
1109return _4e;
1110}
1111}};
1112DR.Utils.replaceCSSClass=function(_4f,_50,_51){
1113_4f=(typeof _4f=="object")?_4f:document.getElementById(_4f);
1114if(_4f){
1115_4f.className=_4f.className.replace(_50,_51).trim();
1116}
1117};
1118DR.Utils.hasCSSClass=function(_52,_53){
1119_52=(typeof _52=="object")?_52:document.getElementById(_52);
1120if(_52){
1121if(_52.className.indexOf(_53)>-1){
1122return true;
1123}
1124}
1125return false;
1126};
1127DR.Utils.removeCSSClass=function(_54,_55){
1128_54=(typeof _54=="object")?_54:document.getElementById(_54);
1129if(_54){
1130_54.className=_54.className.replace(_55,"").trim();
1131}
1132};
1133DR.Utils.addCSSClass=function(_56,_57){
1134_56=(typeof _56=="object")?_56:document.getElementById(_56);
1135if(_56){
1136DR.Utils.removeCSSClass(_56,_57);
1137_56.className=(_57+" "+_56.className).trim();
1138}
1139};
1140DR.Utils.setCSSClass=function(_58,_59){
1141_58=(typeof _58=="object")?_58:document.getElementById(_58);
1142if(_58){
1143_58.className=_59;
1144}
1145};
1146DR.Utils.getStyle=function(id,_5b){
1147var obj=(typeof id=="object")?id:document.getElementById(id);
1148var _5d="";
1149if(document.defaultView&&document.defaultView.getComputedStyle){
1150DR.Utils.styleObj=document.defaultView.getComputedStyle(obj,null);
1151_5d=DR.Utils.styleObj?eval("DR.Utils.styleObj."+_5b):null;
1152}else{
1153if(obj.currentStyle){
1154_5d=obj.currentStyle[_5b];
1155}
1156}
1157return _5d;
1158};
1159DR.Utils.disableListLink=function(id,_5f){
1160var li=(typeof id=="object")?id:document.getElementById(id);
1161DR.Utils.addCSSClass(li,"disabled");
1162var a=li.getElementsByTagName("a");
1163if(a.length==1){
1164var _62=a[0];
1165_62.removeAttribute("href");
1166if(typeof (_62.onclick)=="function"){
1167_62.onclick_disabled=_62.onclick;
1168}
1169if(typeof (_5f)=="function"){
1170_62.onclick=_5f;
1171}
1172}
1173};
1174DR.Utils.enableListLink=function(id){
1175var li=(typeof id=="object")?id:document.getElementById(id);
1176DR.Utils.removeCSSClass(li,"disabled");
1177var a=li.getElementsByTagName("a");
1178if(a.length==1){
1179var _66=a[0];
1180_66.setAttribute("href","#");
1181var od=_66.getAttribute("onclick_disabled");
1182if(typeof (od)=="function"){
1183_66.onclick=_66.onclick_disabled;
1184}else{
1185if(typeof (od)=="object"){
1186_66.onclick=eval(_66.onclick_disabled);
1187}
1188}
1189_66.removeAttribute("onclick_disabled");
1190}
1191};
1192DR.Utils.insertBefore=function(_68,_69,_6a){
1193var _6b=_68.tagName.toLowerCase();
1194if(document.all&&_6b=="td"){
1195var n=parentNode.appendChild(_69,_6a);
1196_68.appendChild(_6a,n);
1197}else{
1198_68.insertBefore(_69,_6a);
1199}
1200};
1201DR.Utils.insertAfter=function(_6d,_6e,_6f){
1202return _6d.insertBefore(_6e,_6f.nextSibling);
1203};
1204DR.Utils.addToBody=function(el){
1205var _71=document.getElementsByTagName("BODY")[0];
1206var _72=_71.firstChild;
1207_71.insertBefore(el,_72);
1208_71=null;
1209_72=null;
1210return el;
1211};
1212DR.Utils.attachCssStyleSheet=function(url){
1213var _74=document.getElementsByTagName("head")[0];
1214var _75=document.createElement("link");
1215_75.type="text/css";
1216_75.rel="stylesheet";
1217_75.href=url;
1218_74.appendChild(_75);
1219};
1220DR.Utils.getElem=function(id){
1221var o=document.getElementById(id);
1222if(o){
1223return o;
1224}else{
1225window.status="Html element not found: "+id;
1226return null;
1227}
1228};
1229DR.Utils.getElementsByClassName=function(_78,_79){
1230if(_78.indexOf(".")==-1){
1231_78="."+_78;
1232}
1233if(typeof _79=="object"){
1234return jQuery(_78,_79);
1235}else{
1236if(typeof _79=="string"&&_79!==""){
1237if(_79.indexOf("#")==-1){
1238_79="#"+_79;
1239}
1240return jQuery(_79+" "+_78);
1241}else{
1242return jQuery(_78);
1243}
1244}
1245};
1246DR.Utils.getFirstElementByClassName=function(_7a,_7b){
1247var _7c=DR.Utils.getElementsByClassName(_7a,_7b);
1248if(_7c.length>0){
1249return _7c[0];
1250}
1251return null;
1252};
1253DR.Utils.getElementsBySelectorPath=function(_7d,_7e){
1254if(_7d.indexOf(".")==-1){
1255_7d="."+_7d;
1256}
1257if(typeof _7e=="object"){
1258return jQuery(_7d,_7e);
1259}else{
1260if(typeof _7e=="string"&&_7e!==""){
1261if(_7e.indexOf("#")==-1){
1262_7e="#"+_7e;
1263}
1264return jQuery(_7e+" "+_7d);
1265}else{
1266return jQuery(_7d);
1267}
1268}
1269};
1270DR.Utils.getFirstElementBySelectorPath=function(_7f,_80){
1271var _81=DR.Utils.getElementsBySelectorPath(_7f,_80);
1272if(_81.length>0){
1273return _81[0];
1274}
1275return null;
1276};
1277DR.Utils.attachDRFrameworkCSS=function(){
1278var _82=navigator.appName;
1279var _83=(_82.indexOf("Explorer")>-1);
1280var _84=(navigator.appVersion.indexOf("MSIE 7")>-1);
1281var _85=(navigator.userAgent.indexOf("AppleWebKit")>-1);
1282var _86="dr-stylesheet-ff-compressed.css";
1283if(_84){
1284_86="dr-stylesheet-ie7-compressed.css";
1285}else{
1286if(_83){
1287_86="dr-stylesheet-ie6-compressed.css";
1288}
1289}
1290var url=$.dr.FRAMEWORK_PATH+"css/"+_86;
1291DR.Utils.attachCssStyleSheet(url);
1292};
1293DR.Utils.replaceHtml=function(el,_89){
1294var div=typeof el==="string"?document.getElementById(el):el;
1295return jQuery(div).html(_89);
1296};
1297DR.Utils.DragObject=function(_8b){
1298if(typeof _8b=="object"){
1299this.type="Absolute";
1300this.dragObj=_8b;
1301this.parentObj=null;
1302this.moveCallback=null;
1303this.stopCallback=null;
1304this.isDragging=false;
1305this.isInitialized=false;
1306this.cursorX=0;
1307this.cursorY=0;
1308this.dragObjLeft=0;
1309this.dragObjTop=0;
1310this.mouseXOffest=14;
1311this.mouseYOffest=19;
1312this.moveDragFunc=null;
1313this.stopDragFunc=null;
1314this.snapToMouse=false;
1315}else{
1316return null;
1317}
1318};
1319DR.Utils.DragObject.prototype={setType:function(_8c,_8d){
1320if(typeof _8c=="string"){
1321this.type=_8c;
1322}
1323if(typeof _8d=="object"){
1324this.parentObj=_8d;
1325}
1326},setSnapToMouse:function(_8e){
1327this.snapToMouse=Boolean(_8e);
1328},setMoveDragCallback:function(_8f){
1329this.moveCallback=Boolean(_8f);
1330},setStopDragCallback:function(_90){
1331this.stopCallback=Boolean(_90);
1332},initDrag:function(_91){
1333this.isDragging=false;
1334this.isInitialized=true;
1335var x,y;
1336if(window.event){
1337x=window.event.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;
1338y=window.event.clientY+document.documentElement.scrollTop+document.body.scrollTop;
1339}else{
1340x=_91.clientX+window.scrollX;
1341y=_91.clientY+window.scrollY;
1342}
1343this.cursorX=x;
1344this.cursorY=y;
1345if(this.type=="Absolute"){
1346this.dragObjLeft=parseInt(this.dragObj.style.left,10);
1347this.dragObjTop=parseInt(this.dragObj.style.top,10);
1348}else{
1349if(this.type=="PanelSet"){
1350if(this.parentObj.container!==null){
1351this.dragObjLeft=x-parseInt(this.parentObj.container.offsetLeft,10)-parseInt(this.parentObj.staticHandle.style.left,10);
1352this.dragObjTop=y-parseInt(this.parentObj.container.offsetTop,10);
1353}
1354}
1355}
1356if(isNaN(this.dragObjLeft)){
1357this.dragObjLeft=0;
1358}
1359if(isNaN(this.dragObjTop)){
1360this.dragObjTop=0;
1361}
1362var _93=this;
1363if(this.moveDragFunc===null){
1364this.moveDragFunc=function(_94){
1365_93.moveDrag(_94);
1366};
1367this.stopDragFunc=function(_95){
1368_93.stopDrag(_95);
1369};
1370}
1371this.attachEvents();
1372if(!this.snapToMouse){
1373this.cancelEventPropagation(_91);
1374}
1375},moveDrag:function(_96){
1376if(this.isInitialized){
1377var x,y;
1378if(!this.isDragging){
1379this.isDragging=true;
1380if(this.moveCallback){
1381if(typeof this.parentObj.moveDrag=="function"){
1382this.parentObj.moveDrag();
1383}
1384}
1385}
1386if(window.event){
1387x=window.event.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;
1388y=window.event.clientY+document.documentElement.scrollTop+document.body.scrollTop;
1389}else{
1390x=_96.clientX+window.scrollX;
1391y=_96.clientY+window.scrollY;
1392}
1393if(this.type=="Absolute"){
1394if(this.snapToMouse){
1395this.dragObj.style.left=(x+this.mouseXOffest)+"px";
1396this.dragObj.style.top=(y+this.mouseYOffest)+"px";
1397}else{
1398this.dragObj.style.left=(this.dragObjLeft+x-this.cursorX)+"px";
1399this.dragObj.style.top=(this.dragObjTop+y-this.cursorY)+"px";
1400}
1401}else{
1402if(this.type=="PanelSet"){
1403if(this.parentObj.layout=="TwoColumn"){
1404var _98=Math.max(x-parseInt(this.parentObj.container.offsetLeft,10)-this.dragObjLeft,this.parentObj.column1MinWidth);
1405var _99=Math.min(_98,this.parentObj.panelWidth-this.parentObj.column2MinWidth-this.parentObj.leftPadding);
1406this.dragObj.style.left=_99+"px";
1407}else{
1408if(this.parentObj.layout=="TwoRow"){
1409this.dragObj.style.top=(this.dragObjTop+y-parseInt(this.parentObj.container.offsetTop,10))+"px";
1410}
1411}
1412}
1413}
1414this.cancelEventPropagation(_96);
1415}
1416},stopDrag:function(){
1417this.detachEvents();
1418if(this.stopCallback){
1419if(typeof this.parentObj.stopDrag=="function"){
1420this.parentObj.stopDrag();
1421}
1422}
1423},attachEvents:function(){
1424if(document.attachEvent){
1425document.attachEvent("onmousemove",this.moveDragFunc);
1426if(!this.snapToMouse){
1427document.attachEvent("onmouseup",this.stopDragFunc);
1428}
1429}else{
1430document.addEventListener("mousemove",this.moveDragFunc,true);
1431if(!this.snapToMouse){
1432document.addEventListener("mouseup",this.stopDragFunc,true);
1433}
1434}
1435},detachEvents:function(){
1436if(document.detachEvent){
1437document.detachEvent("onmousemove",this.moveDragFunc);
1438if(!this.snapToMouse){
1439document.detachEvent("onmouseup",this.stopDragFunc);
1440}
1441}else{
1442document.removeEventListener("mousemove",this.moveDragFunc,true);
1443if(!this.snapToMouse){
1444document.removeEventListener("mouseup",this.stopDragFunc,true);
1445}
1446}
1447},cancelEventPropagation:function(_9a){
1448if(window.event){
1449window.event.cancelBubble=true;
1450window.event.returnValue=false;
1451}else{
1452_9a.preventDefault();
1453}
1454}};
1455DR.Utils.customOnload=function(){
1456};
1457DR.Utils.addEvent=function(obj,evt,fn,_9e){
1458if(obj.addEventListener){
1459obj.addEventListener(evt,fn,Boolean(_9e));
1460return true;
1461}else{
1462if(obj.attachEvent){
1463var r=obj.attachEvent("on"+evt,fn);
1464return r;
1465}else{
1466return false;
1467}
1468}
1469};
1470DR.Utils.removeEvent=function(obj,evt,fn,_a3){
1471if(obj.removeEventListener){
1472obj.removeEventListener(evt,fn,Boolean(_a3));
1473return true;
1474}else{
1475if(obj.detachEvent){
1476var r=obj.detachEvent("on"+evt,fn);
1477return r;
1478}else{
1479return false;
1480}
1481}
1482};
1483DR.Utils.voidClick=function(){
1484if(DR.Utils.BrowserDetect.browser=="Explorer"&&DR.Utils.BrowserDetect.version<7){
1485return true;
1486}else{
1487return false;
1488}
1489};
1490DR.Utils.suppressKeypress=function(evt){
1491if(window.event){
1492window.event.cancelBubble=true;
1493return false;
1494}
1495if(evt&&evt.preventDefault){
1496evt.preventDefault();
1497}
1498};
1499DR.Utils.stopMouseClick=function(evt){
1500if(window.event){
1501event.cancelBubble=true;
1502return false;
1503}else{
1504if(evt&&evt.preventDefault){
1505evt.preventDefault();
1506evt.stopPropagation();
1507}
1508}
1509};
1510DR.Utils.FormUtils={getForm:function(frm){
1511return document.forms[frm];
1512},setAction:function(_a8,url){
1513if(_a8){
1514var _aa=(typeof _a8=="object")?_a8:document.forms[_a8];
1515_aa.setAttribute("action",url);
1516}
1517},submit:function(_ab){
1518if(_ab){
1519var _ac=(typeof _ab=="object")?_ab:document.forms[_ab];
1520_ac.submit();
1521}
1522},getField:function(_ad,frm){
1523var _af=(typeof frm=="object")?frm:document.forms[frm];
1524return _af.elements[_ad];
1525},getValue:function(fld,frm){
1526var _b2=null;
1527if(frm!==undefined&&typeof fld!="object"){
1528_b2=(typeof frm=="object")?frm:document.forms[frm];
1529}
1530if(!_b2){
1531return null;
1532}
1533var _b3=(typeof fld=="object")?fld:_b2.elements[fld];
1534if(!_b3){
1535return null;
1536}
1537var _b4=(!_b3.type&&!!_b3[0])?_b3[0].type:_b3.type;
1538if(!_b4){
1539return null;
1540}
1541var _b5=(_b4.substring(0,6)=="select")?"select":_b4;
1542var _b6=[];
1543var _b7=false;
1544if(typeof _b3.type=="undefined"){
1545_b7=true;
1546}
1547if(_b5=="select"){
1548if(_b7){
1549for(var i=0;i<_b3.length;i++){
1550_b6.push(DR.Utils.FormUtils.getSelectOptionValue(_b3[i]));
1551}
1552}else{
1553if(_b3.multiple){
1554for(var j=0;j<_b3.options.length;j++){
1555if(_b3.options[j].selected){
1556_b6.push(DR.Utils.FormUtils.getSelectOptionValue(_b3.options[j]));
1557}
1558}
1559}else{
1560try{
1561_b6.push(DR.Utils.FormUtils.getSelectOptionValue(_b3.options[_b3.selectedIndex]));
1562}
1563catch(err){
1564}
1565}
1566}
1567}else{
1568if((_b5=="checkbox")||(_b5=="radio")){
1569if(_b7){
1570for(var k=0;k<_b3.length;k++){
1571if(_b3[k].checked){
1572_b6.push(_b3[k].value);
1573}
1574}
1575}else{
1576if(_b3.checked){
1577_b6.push(_b3.value);
1578}
1579}
1580}else{
1581if(_b7){
1582for(var m=0;m<_b3.length;m++){
1583_b6.push(_b3[m].value);
1584}
1585}else{
1586_b6.push(_b3.value);
1587}
1588}
1589}
1590return _b6.join(",");
1591},getSelectOptionValue:function(o){
1592if(o){
1593var val="";
1594if(o.text!==""&&o.outerHTML&&o.outerHTML.toLowerCase().indexOf("value=")==-1){
1595val=o.text;
1596}else{
1597val=o.value;
1598}
1599return val;
1600}
1601},getMultiSelectTextValue:function(_be){
1602if(_be){
1603var a=[];
1604for(var i=0;i<_be.options.length;i++){
1605if(_be.options[i].selected){
1606a.push(_be.options[i].text);
1607}
1608}
1609return a.join(", ");
1610}
1611},setSelectOptionValue:function(o,val){
1612var _c3=(o.value==val||o.text==val);
1613o.selected=_c3;
1614return _c3;
1615},checkAllowFocus:function(_c4){
1616var _c5=DR.Utils.getStyle(_c4,"display");
1617var _c6=DR.Utils.getStyle(_c4,"visibility");
1618if(_c6=="hidden"||_c5=="none"||_c4.disabled||_c4.readonly){
1619return false;
1620}else{
1621var p=_c4.parentNode;
1622var _c8=false;
1623while(p){
1624_c5=DR.Utils.getStyle(p,"display");
1625_c6=DR.Utils.getStyle(p,"visibility");
1626if(p.tagName=="BODY"||p.tagName=="HTML"){
1627break;
1628}
1629if((_c5=="none")||(_c6=="hidden")){
1630_c8=true;
1631break;
1632}
1633p=p.parentNode;
1634}
1635if(!_c8){
1636return true;
1637}else{
1638return false;
1639}
1640}
1641},setValue:function(fld,frm,_cb){
1642var _cc=(typeof frm=="object")?frm:document.forms[frm];
1643var _cd=(typeof fld=="object")?fld:_cc.elements[fld];
1644var i=0;
1645if(_cd){
1646var _cf=(_cd.type)?_cd.type:_cd[0].type;
1647switch(_cf){
1648case "text":
1649case "textarea":
1650case "password":
1651_cd.value=_cb;
1652break;
1653case "checkbox":
1654_cd.checked=(_cb)?true:false;
1655break;
1656case "radio":
1657for(i=0;i<_cd.length;i++){
1658if(_cd[i].value==_cb){
1659_cd[i].checked=true;
1660break;
1661}
1662}
1663break;
1664case "select-one":
1665case "select-multiple":
1666if(typeof _cb=="object"){
1667for(var j=0;j<_cb.length;j++){
1668for(i=0;i<_cd.options.length;i++){
1669if(_cd.options[i].value==_cb[j]){
1670_cd.options[i].selected=true;
1671}
1672}
1673}
1674}else{
1675for(i=0;i<_cd.options.length;i++){
1676if(_cd.options[i].value==_cb||_cd.options[i].text==_cb){
1677_cd.options[i].selected=true;
1678break;
1679}
1680}
1681}
1682break;
1683default:
1684break;
1685}
1686}
1687},getDisabled:function(_d1,_d2){
1688},setDisabled:function(_d3,_d4,_d5,_d6){
1689},getReadonly:function(_d7,_d8){
1690},setReadonly:function(_d9,_da,_db,_dc){
1691},setOperationAndSubmit:function(_dd,_de){
1692var _df=_dd.id||_dd.name;
1693var _e0=_dd.form.operation;
1694if(typeof _e0=="object"){
1695_e0.value=_df;
1696}
1697DR.Utils.FormUtils.submit(_dd.form);
1698if(_de){
1699_de.returnValue=false;
1700_de.cancelBubble=true;
1701}
1702return false;
1703},submitActionForm:function(obj,evt){
1704var _e3=obj.id||obj.name;
1705var _e4=obj.form.action;
1706if(typeof _e4=="object"){
1707_e4.value=_e3;
1708}
1709if(obj.className.indexOf("cancel")>-1){
1710if(typeof obj.form.enableValidation=="function"){
1711obj.form.enableValidation(false);
1712}
1713}
1714obj.form.submit();
1715if(evt){
1716evt.returnValue=false;
1717evt.cancelBubble=true;
1718}
1719return false;
1720},getUTF8Bytes:function(val){
1721var _e6=val.length;
1722var _e7=encodeURI(val);
1723var _e8;
1724var _e9;
1725if(_e7.indexOf("%")!=-1){
1726_e8=_e7.split("%");
1727_e9=_e8.length-1;
1728if(_e9===0){
1729_e9++;
1730}
1731var tmp=_e7.length-(_e9*3);
1732_e9=_e9+tmp;
1733}else{
1734_e9=_e6;
1735}
1736if(DR.Utils.BrowserDetect.browser!="Explorer"){
1737var _eb=val.replace(/\n/g,"..").length;
1738var _ec=_eb-_e6;
1739_e9=_e9+_ec;
1740}
1741return {bytes:_e7,byteCount:_e9};
1742}};
1743(function($){
1744var _ee="yyyy-mm-dd",DATE_FORMAT_PATTERN,PARSED_DATE_SEGMENTS,DAY_POS,MONTH_POS,YEAR_POS,REG_EX_PAT;
1745var _ef=function(_f0,_f1){
1746for(var i=0;i<_f1.length;i++){
1747if(_f1[i].indexOf(_f0)!=-1){
1748return i;
1749}
1750}
1751return -1;
1752};
1753var _f3=function(fmt){
1754var _f5=/(([y]{2,4}|[m]{1,2}|[d]{1,2})|([-\/ .]+?))/gi;
1755return fmt.toLowerCase().match(_f5);
1756};
1757var _f6=function(_f7){
1758var _f8="^";
1759for(var i=0;i<_f7.length;i++){
1760if(/[mdy]/i.test(_f7[i])){
1761if(typeof _f7[i]!="undefined"){
1762var _fa=_f7[i].length;
1763var _fb=_fa;
1764if(_fa==1){
1765_fb=2;
1766}
1767_f8+="(\\d{"+_fa+","+_fb+"})";
1768}
1769}else{
1770_f8+="([\\"+_f7[i]+"]{1})";
1771}
1772}
1773return (_f8+"$");
1774};
1775var _fc=function(_fd){
1776var _fe=(_fd)?_f3(_fd):PARSED_DATE_SEGMENTS;
1777var _ff=(_fd)?_ef("d",_fe):DAY_POS;
1778var _100=(_fd)?_ef("m",_fe):MONTH_POS;
1779var _101=(_fd)?_ef("y",_fe):YEAR_POS;
1780var _102=(_fd)?_f6(_fe):REG_EX_PAT;
1781var _103={format:_fd,yearPos:_101,monthPos:_100,datePos:_ff,regExPat:_102,segments:_fe};
1782return _103;
1783};
1784var _104=function(_105,_106){
1785var _107=_fc(_106);
1786var _108=new RegExp(_107.regExPat).exec(_105);
1787var _109={};
1788var _10a=false;
1789var date,month,year;
1790if(_108){
1791_108=_108.slice(1);
1792date=_108[_107.datePos];
1793month=Number(_108[_107.monthPos])-1;
1794year=_108[_107.yearPos];
1795_109=new Date(((year.length==2)?((year<70)?Number("20"+year):Number("19"+year)):year),month,date);
1796var _10c=_109.getDate();
1797var _10d=_109.getMonth();
1798var _10e=(year.length==2)?String(_109.getFullYear()).slice(2):_109.getFullYear();
1799if(_10c==date&&_10d==month&&_10e==year){
1800_10a=true;
1801}
1802}
1803return (_10a)?_109:null;
1804};
1805$.dr.date=function(_10f,fmt){
1806var _111=(fmt==null||fmt==""||fmt=="undefined")?DATE_FORMAT_PATTERN:fmt;
1807var date=null;
1808if(_10f instanceof Date){
1809if(_10f.isValid()){
1810date=_10f;
1811}
1812}else{
1813date=_104(_10f,_111);
1814}
1815if(date==null){
1816return (new Date("invalid date"));
1817}else{
1818date.format=_111;
1819return date;
1820}
1821};
1822$.dr.date.prototype=new Date();
1823Date.prototype.isValid=function(){
1824var _113=this;
1825return !(_113===null||_113===undefined||(typeof _113=="object"&&_113=="Invalid Date")||(typeof _113=="object"&&_113=="NaN"));
1826};
1827Date.prototype.getFormat=function(){
1828return this.format;
1829};
1830Date.prototype.toFormattedString=function(_114){
1831var year=this.getFullYear();
1832var day=this.getDate();
1833var _117=this.getMonth()+1;
1834var _118=(_114)?_114:((this.format)?this.format:_ee);
1835var _119=_fc(_118).segments;
1836var _11a="";
1837for(var i=0;i<_119.length;i++){
1838var s=_119[i];
1839var d=s;
1840switch(s.toLowerCase().charAt(0)){
1841case "m":
1842if(s.length==2){
1843_117=(_117<10)?"0"+_117:_117;
1844}
1845d=_117;
1846break;
1847case "d":
1848if(s.length==2){
1849day=(day<10)?"0"+day:day;
1850}
1851d=day;
1852break;
1853case "y":
1854if(s.length==2){
1855year=(year+"").substring(2);
1856}
1857d=year;
1858break;
1859}
1860_11a+=d;
1861}
1862return _11a;
1863};
1864$.dr.date.setDefaultFormat=function(fmt){
1865DATE_FORMAT_PATTERN=fmt;
1866PARSED_DATE_SEGMENTS=_f3(fmt);
1867MONTH_POS=_ef("m",PARSED_DATE_SEGMENTS);
1868YEAR_POS=_ef("y",PARSED_DATE_SEGMENTS);
1869Day_POS=_ef("d",PARSED_DATE_SEGMENTS);
1870REG_EX_PAT=_f6(PARSED_DATE_SEGMENTS);
1871};
1872$.dr.date.setDefaultFormat(_ee);
1873$.dr.date.getDefaultFormat=function(){
1874return DATE_FORMAT_PATTERN;
1875};
1876$.dr.date.getDateFromTime=function(time){
1877var arr=time.split(":");
1878var hh=Number(arr[0]);
1879var arr2=arr[1].split(" ");
1880var mm=arr2[0];
1881if(arr2.length==2){
1882var ampm=arr2[1].toLowerCase();
1883if(ampm=="pm"&&hh!=12){
1884hh=hh+12;
1885}else{
1886if(hh==12&&ampm=="am"){
1887hh=hh-12;
1888}
1889}
1890}
1891var date=new Date();
1892var r=new Date(date.getFullYear(),date.getMonth(),date.getDate(),hh,mm).getTime();
1893return r;
1894};
1895$.dr.date.getISODate=function(year,_128,day){
1896if(year.length==2){
1897year=parseInt(year,10);
1898year=(year<70)?Number("20"+year):Number("19"+year);
1899}
1900day=(day<10)?"0"+day:day;
1901_128=(_128<10)?"0"+_128:_128;
1902return new $.dr.date(year+"-"+_128+"-"+day,"yyyy-mm-dd");
1903};
1904$.dr.date.isLeapYear=function(year){
1905year=parseInt(year,10);
1906if(((year%4===0)&&(year%100!==0))||(year%400===0)){
1907return true;
1908}else{
1909return false;
1910}
1911};
1912var _12b=function(){
1913if(typeof $.dr.form.addDataTypeValidator=="function"){
1914$.dr.form.addDataTypeValidator({date:["The value for {LABEL} is not a valid date format. Valid format is {FORMAT}.","",function(val,_12d){
1915if(val===null||val===undefined){
1916return false;
1917}
1918var date=new $.dr.date(val,_12d);
1919return date.isValid();
1920}],time12hr:["The value for {LABEL} is not a valid time. Valid format is {EXAMPLE}.","hh:mm",function(val){
1921var re=new RegExp("^([1-9]|[0][1-9]|[1][0,1,2])(:([0-5][0-9])){1,2}?( ([aApP][mM])?)?$");
1922return re.test(val);
1923}],time24hr:["The value for {LABEL} is not a valid time. Valid format is {EXAMPLE}.","HH:MM",function(val){
1924return /^(24:00)|(([0-1][0-9]|2[0-3])[:]([0-5][0-9]))$/.test(val);
1925}],year:["The value for {LABEL} is not a valid year. Valid format is {EXAMPLE}.","yyyy",function(val,_133){
1926if(val===null||val===undefined){
1927return false;
1928}
1929if(!_133){
1930_133="yyyy";
1931}
1932if(_133.toLowerCase()=="yy"&&val.length==2&&!isNaN(val)){
1933return true;
1934}else{
1935if(_133.toLowerCase()=="yyyy"&&val.length==4&&!isNaN(val)){
1936return true;
1937}
1938}
1939return false;
1940}]});
1941}
1942};
1943$(document).bind("beforeInitForms",_12b);
1944})(jQuery);
1945DR.Utils.PageSizer=function(){
1946this.pageWidth=0;
1947this.pageHeight=0;
1948this.windowWidth=0;
1949this.windowHeight=0;
1950};
1951DR.Utils.PageSizer.prototype={initModalScroller:function(){
1952this.attachModalOnresize();
1953this.refreshModalScroller();
1954},attachModalOnresize:function(){
1955var self=this;
1956var _135=window.onresize;
1957var _136=function(){
1958self.refreshModalScroller();
1959};
1960window.onresize=function(){
1961_136();
1962if(typeof (_135)=="function"){
1963_135();
1964}
1965};
1966function cleanupEvents(){
1967window.detachEvent("onresize",_136);
1968}
1969if(DR.Utils.BrowserDetect.browser=="Explorer"){
1970if(window.attachEvent){
1971window.attachEvent("onunload",cleanupEvents);
1972}
1973}
1974},refresh:function(){
1975var _137,yScroll,pageHeight,pageWidth;
1976var obj={};
1977if(window.innerHeight&&window.scrollMaxY){
1978_137=document.body.scrollWidth;
1979yScroll=window.innerHeight+window.scrollMaxY;
1980}else{
1981if(document.body.scrollHeight>document.body.offsetHeight){
1982_137=document.body.scrollWidth;
1983yScroll=document.body.scrollHeight;
1984}else{
1985_137=document.body.offsetWidth;
1986yScroll=document.body.offsetHeight;
1987}
1988}
1989var _139,windowHeight;
1990if(self.innerHeight){
1991_139=self.innerWidth;
1992windowHeight=self.innerHeight;
1993}else{
1994if(document.documentElement&&document.documentElement.clientHeight){
1995_139=document.documentElement.clientWidth;
1996windowHeight=document.documentElement.clientHeight;
1997}else{
1998if(document.body){
1999_139=document.body.clientWidth;
2000windowHeight=document.body.clientHeight;
2001}
2002}
2003}
2004if(yScroll<windowHeight){
2005pageHeight=windowHeight;
2006}else{
2007pageHeight=yScroll;
2008}
2009if(_137<_139){
2010pageWidth=_139;
2011}else{
2012pageWidth=_137;
2013}
2014if(this.doc===undefined){
2015this.doc={};
2016}
2017this.pageWidth=pageWidth;
2018this.pageHeight=pageHeight;
2019this.windowWidth=_139;
2020this.windowHeight=windowHeight;
2021},refreshModalScroller:function(){
2022var d=$(".modalScroller");
2023if(d.length==0){
2024d=$("#modalScroller");
2025}
2026if(d.length>0){
2027d=d[0];
2028this.refresh();
2029var _13b=this.windowHeight;
2030var _13c=this.windowWidth;
2031var _13d=d.offsetTop;
2032var _13e=$(".pageButtons");
2033var _13f=(_13e.length>0)?_13e[0].offsetHeight:0;
2034_13f=_13f+32;
2035var _140=_13b;
2036if(_13c<790){
2037}
2038var _141=_140-d.offsetTop-_13f;
2039if(_141>0){
2040d.style.height=_141+"px";
2041}
2042}
2043}};
2044(function($){
2045var _143={url:"",width:740,height:500,target:"",centered:true,type:"normal"};
2046$.dr.popup=function(_144){
2047_144=$.extend({},_143,_144);
2048if(_144.url==""||_144.url==null){
2049$.dr.utils.logError("Must supply a url");
2050return;
2051}
2052var s="";
2053switch(_144.type){
2054case "console":
2055s="resizable,scrollbars,height="+_144.height+",width="+_144.width;
2056break;
2057case "fixed":
2058s="status,scrollbars,height="+_144.height+",width="+_144.width;
2059break;
2060case "normal":
2061s="toolbar,scrollbars,resizable,location,height="+_144.height+",width="+_144.width;
2062break;
2063case "full":
2064s="toolbar,menubar,scrollbars,resizable,location,height="+_144.height+",width="+_144.width;
2065break;
2066default:
2067if(_144.type){
2068s=_144.type;
2069}
2070break;
2071}
2072if(_144.centered){
2073if(window.screen){
2074var l=(screen.width-parseInt(_144.width,10))/2;
2075var t=(screen.height-parseInt(_144.height))/2;
2076s+=",left="+l+",top="+t;
2077}
2078}
2079tg=_144.target;
2080return window.open(_144.url,tg,s);
2081};
2082})(jQuery);
2083DR.Utils.Position=function(_148){
2084this.obj=(typeof _148=="object")?_148:document.getElementById(_148);
2085this.x=this.getX();
2086this.y=this.getY();
2087this.width=this.getWidth();
2088this.height=this.getHeight();
2089this.top=this.getTop();
2090this.right=this.getRight();
2091this.left=this.getLeft();
2092this.bottom=this.getBottom();
2093};
2094DR.Utils.Position.ON_TOP=0;
2095DR.Utils.Position.ON_MIDDLE=1;
2096DR.Utils.Position.ON_BOTTOM=2;
2097DR.Utils.Position.ON_LEFT=4;
2098DR.Utils.Position.ON_CENTER=8;
2099DR.Utils.Position.ON_RIGHT=16;
2100DR.Utils.Position.DRAW_LEFT=32;
2101DR.Utils.Position.DRAW_CENTERED=64;
2102DR.Utils.Position.DRAW_RIGHT=128;
2103DR.Utils.Position.DRAW_UP=256;
2104DR.Utils.Position.DRAW_DOWN=1024;
2105DR.Utils.Position.prototype={setPosition:function(top,left){
2106this.obj.style.top=top;
2107this.obj.style.left=left;
2108},setRelativePosition:function(_14b,_14c,_14d,_14e,_14f,_150,_151,_152){
2109this.setRelativeXPosition(_14b,_14c,_14d,_150,_152);
2110this.setRelativeYPosition(_14b,_14e,_14f,_151,_152);
2111},setRelativeXPosition:function(_153,_154,_155,_156,_157){
2112var _158=new DR.Utils.Position(_153);
2113var _159=_158.left;
2114var _15a=DR.Utils.BrowserDetect.getAvailableContentWidth();
2115if(_154==DR.Utils.Position.ON_CENTER){
2116_159=_158.left+(Math.floor(_158.width/2));
2117}else{
2118if(_154==DR.Utils.Position.ON_RIGHT){
2119_159=_158.right;
2120}
2121}
2122if(_155==DR.Utils.Position.DRAW_LEFT){
2123if(_157||(_159-this.width-_156)>=0){
2124_159=_159-this.width-_156;
2125}else{
2126if((_159+this.width+_156)<_15a){
2127_159=_159+this.width+_156;
2128}else{
2129_159=0;
2130}
2131}
2132}else{
2133if(_155==DR.Utils.Position.DRAW_RIGHT){
2134if(_157||(_159+this.width+_156)<_15a){
2135_159=_159+_156;
2136}else{
2137if((_159-this.width-_156)>0){
2138_159=_159-this.width+_158.width;
2139}else{
2140_159=_15a;
2141}
2142}
2143}else{
2144if(_155==DR.Utils.Position.DRAW_CENTERED){
2145if(_157||(_159-Math.floor((this.width-_156)/2))>0){
2146_159=_159-Math.floor((this.width-_156)/2);
2147}else{
2148_159=0;
2149}
2150}
2151}
2152}
2153this.setX(_159);
2154},setRelativeYPosition:function(_15b,_15c,_15d,_15e,_15f){
2155var _160=new DR.Utils.Position(_15b);
2156var _161=_160.top;
2157var _162=DR.Utils.BrowserDetect.getAvailableContentHeight();
2158if(_15c==DR.Utils.Position.ON_MIDDLE){
2159_161=_160.top+(Math.floor(_160.height/2));
2160}else{
2161if(_15c==DR.Utils.Position.ON_BOTTOM){
2162_161=_160.bottom;
2163}
2164}
2165if(_15d==DR.Utils.Position.DRAW_UP){
2166if(_15f||(_161-this.height-_15e)>0){
2167_161=_161-this.height-_15e;
2168}else{
2169if((_161+_160.height+this.height+_15e)<_162){
2170_161=_161+_160.height+_15e;
2171}else{
2172_161=0;
2173}
2174}
2175}else{
2176if(_15d==DR.Utils.Position.DRAW_DOWN){
2177var _163=_161+this.height+_15e;
2178if(_15f||(_163)<_162){
2179_161=_161+_160.height+_15e;
2180}else{
2181if((_161-this.height-_15e)>0){
2182_161=_161-this.height-_15e;
2183}else{
2184_161=_162;
2185}
2186}
2187}else{
2188if(_15d==DR.Utils.Position.DRAW_CENTERED){
2189if(_15f||(_161-Math.floor((this.height-_15e)/2))>0){
2190_161=_161-Math.floor((this.height-_15e)/2);
2191}else{
2192_161=0;
2193}
2194}
2195}
2196}
2197this.setY(_161);
2198},setX:function(left){
2199this.obj.style.left=left+"px";
2200},setY:function(top){
2201this.obj.style.top=top+"px";
2202},getX:function(){
2203var curX=0;
2204var _167=this.obj;
2205if(_167.offsetParent){
2206while(_167.offsetParent){
2207curX+=_167.offsetLeft;
2208if(_167.clientLeft&&(_167.tagName=="TD")||(_167.tagName=="TH")){
2209curX+=_167.clientLeft;
2210}
2211_167=_167.offsetParent;
2212}
2213}
2214if(document.compatMode=="CSS1Compat"&&!window.getComputedStyle){
2215curX+=(isNaN(parseInt(document.body.currentStyle.marginLeft,10)))?0:parseInt(document.body.currentStyle.marginLeft,10);
2216}
2217return curX;
2218},getY:function(){
2219var curY=0;
2220var _169=this.obj;
2221if(_169.offsetParent){
2222while(_169.offsetParent){
2223curY+=_169.offsetTop;
2224if(_169.clientTop&&(_169.tagName=="TD")||(_169.tagName=="TH")){
2225curY+=_169.clientTop;
2226}
2227_169=_169.offsetParent;
2228}
2229}
2230if(document.compatMode=="CSS1Compat"&&!window.getComputedStyle){
2231curY+=(isNaN(parseInt(document.body.currentStyle.marginTop,10)))?0:parseInt(document.body.currentStyle.marginTop,10);
2232}
2233return curY;
2234},getWidth:function(){
2235return this.obj.offsetWidth;
2236},getHeight:function(){
2237return this.obj.offsetHeight;
2238},getTop:function(){
2239return this.y;
2240},getRight:function(){
2241return this.x+this.width;
2242},getBottom:function(){
2243return this.y+this.height;
2244},getLeft:function(){
2245return this.x;
2246}};
2247DR.Utils.Position.snapTo=function(_16a,_16b,_16c,_16d,_16e,_16f,_170,_171,_172){
2248sourceObj=(typeof _16a=="object")?_16a:document.getElementById(_16a);
2249targetObj=(typeof _16b=="object")?_16b:document.getElementById(_16b);
2250_16c=(_16c!==undefined)?_16c:0;
2251_16d=(_16d!==undefined)?_16d:0;
2252_16e=(_16e!==undefined)?_16e:"Right";
2253_16f=(_16f!==undefined)?_16f:"Top";
2254_170=(_170!==undefined)?_170:"Right";
2255_171=(_171!==undefined)?_171:"Down";
2256_172=(_172==false)?false:true;
2257var _173=sourceY=0,_width,_height;
2258var obj=sourceObj;
2259while(obj.offsetParent){
2260_173+=obj.offsetLeft;
2261if(obj.scrollLeft){
2262_173-=obj.scrollLeft;
2263}
2264sourceY+=obj.offsetTop;
2265if(obj.scrollTop){
2266sourceY-=obj.scrollTop;
2267}
2268obj=obj.offsetParent;
2269}
2270obj=sourceObj;
2271while(obj.offsetParent){
2272if(obj.scrollLeft){
2273_173-=obj.scrollLeft;
2274}
2275if(obj.scrollTop){
2276sourceY-=obj.scrollTop;
2277}
2278if(DR.Utils.BrowserDetect.browser=="Explorer"){
2279if((obj.tagName=="TD")||(obj.tagName=="TH")){
2280if(obj.clientTop){
2281sourceY+=obj.clientTop;
2282}
2283if(obj.clientLeft){
2284_173+=obj.clientLeft;
2285}
2286}
2287if(DR.Utils.hasCSSClass(obj,"searchBody")){
2288_173-=11;
2289}
2290}
2291obj=obj.parentNode;
2292}
2293sourceWidth=sourceObj.offsetWidth;
2294sourceHeight=sourceObj.offsetHeight;
2295targetX=_173;
2296targetY=sourceY;
2297if(_16e=="Right"){
2298targetX=_173+sourceWidth;
2299}
2300if(_16f=="Bottom"){
2301targetY=sourceY+sourceHeight;
2302}
2303if(_172){
2304var _175,scrollY;
2305if(window.scrollX){
2306_175=window.scrollX;
2307scrollY=window.scrollY;
2308}else{
2309_175=document.documentElement.scrollLeft+document.body.scrollLeft;
2310scrollY=document.documentElement.scrollTop+document.body.scrollTop;
2311}
2312targetWidth=targetObj.offsetWidth;
2313targetHeight=targetObj.offsetHeight;
2314var _176=DR.Utils.BrowserDetect.getAvailableContentWidth();
2315var _177=DR.Utils.BrowserDetect.getAvailableContentHeight();
2316var _178=_173+targetWidth+_16c;
2317var _179=_173-targetWidth-_16c;
2318var _17a=false;
2319var _17b=false;
2320if(_178<=(_176+_175-sourceWidth)){
2321_17a=true;
2322}
2323if(_179>_175){
2324_17b=true;
2325}
2326if((_170=="Right"&&_17a)||(_170=="Left"&&!_17b&&_17a)){
2327targetX+=_16c;
2328}else{
2329if(_17b){
2330targetX=_173-targetWidth-_16c;
2331}
2332}
2333var _17c=sourceY+targetHeight+_16d;
2334var _17d=sourceY-targetHeight-_16d;
2335var _17e=false;
2336var _17f=false;
2337if(_17c<=(_177+scrollY-sourceHeight)){
2338_17e=true;
2339}
2340if(_17d>scrollY){
2341_17f=true;
2342}
2343if((_171=="Down"&&_17e)||(_171=="Up"&&!_17f&&_17e)){
2344targetY+=_16d;
2345}else{
2346if(_17f){
2347targetY=sourceY-targetHeight-_16d;
2348}
2349}
2350}else{
2351targetX+=_16c;
2352targetY+=_16d;
2353}
2354targetObj.style.left=targetX+"px";
2355targetObj.style.top=targetY+"px";
2356};
2357DR.Utils.Querystring=function(qs){
2358this.params={};
2359if(qs===null){
2360qs=location.search.substring(1,location.search.length);
2361}else{
2362qs=(qs.indexOf("?")!=-1)?qs.substring(1,qs.length):qs;
2363}
2364if(qs.length===0){
2365return;
2366}
2367qs=qs.replace(/\+/g," ");
2368var args=qs.split("&");
2369var val;
2370for(var i=0;i<args.length;i++){
2371var _184;
2372alert(args[i]);
2373var pair=args[i].split("=");
2374var _186=unescape(pair[0]);
2375if(pair.length==2){
2376val=unescape(pair[1]);
2377}else{
2378val=_186;
2379}
2380this.params[_186]=val;
2381}
2382};
2383DR.Utils.Querystring.prototype.get=function(_187){
2384var val=this.params[_187];
2385return val;
2386};
2387String.prototype.stripSpaces=function(){
2388return this.replace(/ /g,"");
2389};
2390String.prototype.stripWhitepace=function(){
2391return this.replace(/\s/g,"");
2392};
2393String.prototype.squeezeWhitespace=function(_189){
2394return this.replace(/\s+/g,(arguments.length===1)?_189:" ");
2395};
2396String.prototype.stripLineBreaksAndTabs=function(){
2397return this.replace(/\n|\t/g,"");
2398};
2399String.prototype.trim=function(){
2400return this.replace(/^\s+|\s+$/g,"");
2401};
2402String.prototype.ltrim=function(){
2403return this.replace(/^\s+/,"");
2404};
2405String.prototype.rtrim=function(){
2406return this.replace(/\s+$/,"");
2407};
2408String.prototype.replaceTokens=function(){
2409var args=arguments;
2410return this.replace(/\{(\d+)\}/g,function(_18b,_18c){
2411return (_18c<args.length)?args[_18c]:_18b;
2412});
2413};
2414String.prototype.replaceBreaks=function(){
2415return this.replaceTokens("<br/><br/>");
2416};
2417String.prototype.trimLastLetter=function(){
2418var _18d=this.length;
2419var _18e=encodeURI(this.substr(_18d-1,_18d));
2420var _18f=1;
2421if(DR.Utils.BrowserDetect.browser=="Explorer"&&_18e=="%0A"){
2422_18f=2;
2423}
2424return this.substr(0,_18d-_18f);
2425};
2426String.prototype.stripDoubleQuotes=function(){
2427return this.replace(/"/g,"");
2428};
2429String.prototype.isBlank=function(){
2430return /^\s*$/.test(this);
2431};
2432String.prototype.makeUT8CharsFitLength=function(_190,_191){
2433if(_190===0||_190==_191){
2434return this;
2435}
2436var _192=false;
2437var _193=this.length;
2438var _194=_193/_190;
2439var _195=Math.round(_191*_194,0);
2440var _196;
2441var _197="";
2442var _198=false;
2443var _199=_195;
2444var i=0;
2445while(!_192&&i<100){
2446var _19b=this.substr(0,_199);
2447var _19c=DR.Utils.FormUtils.getUTF8Bytes(_19b).byteCount;
2448if(_19c==_191){
2449_192=true;
2450_196=_19b;
2451}else{
2452if(_19c<_191&&_198){
2453_192=true;
2454_196=_19b;
2455}else{
2456if(_19c<_191){
2457if(_197=="negative"){
2458_198=true;
2459}
2460_199++;
2461_197="positive";
2462}else{
2463if(_19c>_191){
2464if(_197=="positive"){
2465_198=true;
2466}
2467_199--;
2468_197="negative";
2469}
2470}
2471}
2472}
2473}
2474return _196;
2475};
2476DR.Utils.Toggle=function(){
2477};
2478DR.Utils.Toggle.disabledFromCheckbox=function(_19d,_19e){
2479var _19f=(typeof _19d=="object")?_19d:document.getElementById(_19d);
2480if(typeof _19e=="string"){
2481_19e=_19e.stripSpaces().split(",");
2482for(var i=0;i<_19e.length;i++){
2483DR.Utils.Toggle.setDisabled(_19e[i],!DR.Utils.Toggle.isChecked(_19d));
2484}
2485}
2486};
2487DR.Utils.Toggle.disabledFromRadioButton=function(_1a1,_1a2){
2488var _1a3=(typeof _1a1=="object")?_1a1:document.getElementById(_1a1);
2489var _1a4=(_1a3.value=="true"||_1a3.value==true)?false:true;
2490if(typeof _1a2=="string"){
2491_1a2=_1a2.stripSpaces().split(",");
2492for(var i=0;i<_1a2.length;i++){
2493DR.Utils.Toggle.setDisabled(_1a2[i],_1a4);
2494}
2495}
2496};
2497DR.Utils.Toggle.isChecked=function(_1a6){
2498var _1a7=(typeof _1a6=="object")?_1a6:document.getElementById(_1a6);
2499if(_1a7){
2500return (_1a7.checked)?true:false;
2501}else{
2502return false;
2503}
2504};
2505DR.Utils.Toggle.setDisabled=function(_1a8,_1a9){
2506var _1aa=(typeof _1a8=="object")?_1a8:document.getElementById(_1a8);
2507if(_1aa){
2508_1aa.disabled=(_1a9=="true"||_1a9==true)?true:false;
2509}
2510};
2511DR.Utils.Toggle.setVisibility=function(_1ab,_1ac){
2512var _1ad=(typeof _1ab=="object")?_1ab:document.getElementById(_1ab);
2513if(_1ad){
2514if(_1ac){
2515$(_1ad).fadeIn();
2516}else{
2517$(_1ad).hide();
2518}
2519}
2520};
2521DR.Utils.Toggle.enableTab=function(_1ae){
2522var _1af=(typeof _1ae=="object")?_1ae:document.getElementById(_1ae);
2523_1af=_1af.parentNode;
2524var tabs=(_1af.parentNode.parentNode).getElementsByTagName("LI");
2525for(var i=0;i<tabs.length;i++){
2526DR.Utils.removeCSSClass(tabs[i],"selected");
2527DR.Utils.Toggle.setVisibility("tabContent_"+tabs[i].id,false);
2528}
2529DR.Utils.addCSSClass(_1af,"selected");
2530DR.Utils.Toggle.setVisibility("tabContent_"+_1af.id,true);
2531};
2532DR.Utils.Toggle.visibilityFromLink=function(_1b2,_1b3,_1b4){
2533var _1b5=(typeof _1b2=="object")?_1b2:document.getElementById(_1b2);
2534var _1b6=(_1b5.className=="collapsedImage")?true:false;
2535var _1b7=(_1b5.className=="collapsedImage")?"expandedImage":"collapsedImage";
2536if(typeof _1b3=="string"){
2537_1b3=_1b3.stripSpaces().split(",");
2538for(var i=0;i<_1b3.length;i++){
2539DR.Utils.Toggle.setVisibility(_1b3[i],_1b6);
2540}
2541}
2542if(typeof _1b4=="string"){
2543_1b4=_1b4.stripSpaces().split(",");
2544for(var j=0;j<_1b4.length;j++){
2545DR.Utils.Toggle.setVisibility(_1b4[j],!_1b6);
2546}
2547}
2548DR.Utils.replaceCSSClass(_1b5,_1b5.className,_1b7);
2549};
2550DR.Utils.Toggle.visibilityFromCheckbox=function(_1ba,_1bb,_1bc){
2551var _1bd=(typeof _1ba=="object")?_1ba:document.getElementById(_1ba);
2552var _1be=(_1bd.checked)?true:false;
2553if(typeof _1bb=="string"){
2554_1bb=_1bb.stripSpaces().split(",");
2555for(var i=0;i<_1bb.length;i++){
2556DR.Utils.Toggle.setVisibility(_1bb[i],_1be);
2557}
2558}
2559if(typeof _1bc=="string"){
2560_1bc=_1bc.stripSpaces().split(",");
2561for(var j=0;j<_1bc.length;j++){
2562DR.Utils.Toggle.setVisibility(_1bc[j],!_1be);
2563}
2564}
2565};
2566DR.Utils.Toggle.visibilityFromRadioButton=function(_1c1,_1c2,_1c3){
2567var _1c4=(typeof _1c1=="object")?_1c1:document.getElementById(_1c1);
2568if(typeof _1c2=="string"){
2569_1c2=_1c2.stripSpaces().split(",");
2570for(var i=0;i<_1c2.length;i++){
2571DR.Utils.Toggle.setVisibility(_1c2[i],true);
2572}
2573}
2574if(typeof _1c3=="string"){
2575_1c3=_1c3.stripSpaces().split(",");
2576for(var j=0;j<_1c3.length;j++){
2577DR.Utils.Toggle.setVisibility(_1c3[j],false);
2578}
2579}
2580};
2581DR.Utils.Toggle.childTable=function(_1c7,_1c8){
2582var _1c9=document.getElementById(_1c8);
2583var _1ca=(_1c9.style.display!="none");
2584if(_1ca){
2585_1c9.style.display="none";
2586_1c7.className="first collapsed";
2587}else{
2588_1c9.style.display="";
2589_1c7.className="first expanded";
2590}
2591};
2592DR.Utils.Toggle.childTableFromCheckbox=function(_1cb,_1cc,_1cd){
2593var _1ce=document.getElementById(_1cd);
2594var _1cf=(_1ce.style.display!="none");
2595if(!_1cb.checked){
2596_1ce.style.display="none";
2597_1cc.className="first collapsed";
2598}else{
2599_1ce.style.display="";
2600_1cc.className="first expanded";
2601}
2602};
2603(function($){
2604var _1d1={active:0,autoHeight:false,collapsible:false,refreshOnChange:false,followRemoteLinks:true,defaultUnit:"px",header:">dt"};
2605var _1d2=function(_1d3,ui){
2606if(ui.newHeader.length===0){
2607if(typeof ui.oldHeader==="undefined"||ui.oldHeader.length===0){
2608$.dr.utils.logError("Panel not formattted correctly. No header tag.");
2609}
2610return;
2611}
2612var _1d5=$(ui.newHeader).find("a");
2613if(_1d5.length===0){
2614$.dr.utils.logError("Panel not formatted correctly, no enclosing A tag.");
2615return;
2616}
2617var _1d6=_1d5[0].getAttribute("href");
2618var fn=function(res,_1d9){
2619if(_1d9==="success"){
2620$.dr.triggerUnobtrusiveEvents(this);
2621$(this).trigger("accordionload",[this]);
2622if(!ui.options.refreshOnChange){
2623$(this).addClass("loaded");
2624}
2625}
2626};
2627if(_1d6&&_1d6.indexOf("#")==-1){
2628var _1da;
2629var _1db=_1d5[0].getAttribute("data-options");
2630if(_1db){
2631var dO=$.dr.utils.evalString(_1db);
2632if(typeof dO.selector==="string"){
2633_1da=[_1d6,dO.selector].join(" ");
2634}
2635}else{
2636_1da=_1d6;
2637}
2638if(!ui.newContent.parent(".ui-accordion-content").hasClass("loaded")&&ui.options.followRemoteLinks){
2639var _1dd=ui.newContent.parent(".ui-accordion-content");
2640var _1de=new Date().getTime();
2641_1dd.load(_1da,{noCache:_1de},fn);
2642}
2643}
2644};
2645$.namespace("dr",{accordion:function(_1df){
2646var _1e0=arguments.length===0?true:false;
2647return this.each(function(){
2648if(typeof $(this).accordion!=="undefined"){
2649var _1e1={};
2650if(_1e0){
2651_1d1.changestart=_1d2;
2652var _1e2=this.getAttribute("data-options");
2653if(_1e2){
2654_1e1=$.dr.utils.evalString(_1e2,"Error parsing accodion data-options for ("+this.id||"accordian"+")");
2655if(typeof _1df==="error"){
2656_1e1={};
2657}
2658}
2659}
2660var _1e3=$.extend(true,{},_1d1,_1df,_1e1);
2661if($.browser.msie&&!_1e3.height){
2662_1e3.animated=false;
2663}
2664if(_1e3.height){
2665_1e3.active=0;
2666_1e3.collapsible=false;
2667_1e3.fillSpace=true;
2668$(this).wrap("<div class=\"acc-wrapper\"></div>");
2669$(this).parent(".acc-wrapper").height(parseInt(_1e3.height,10)+_1e3.defaultUnit);
2670if(_1e3.width){
2671$(this).parent(".acc-wrapper").width(parseInt(_1e3.width,10)+_1e3.defaultUnit);
2672}
2673}else{
2674if(_1e3.width){
2675$(this).width(parseInt(_1e3.width,10)+_1e3.defaultUnit);
2676}
2677}
2678$(this).accordion(_1e3);
2679if(_1e3.active!==false){
2680var _1e4=$(this).find(_1e3.header).eq(_1e3.active);
2681if(_1e4){
2682var ui={newContent:_1e4.next().children(),newHeader:_1e4,options:_1e3};
2683_1d2("change",ui);
2684}
2685}
2686}else{
2687$.dr.utils.logError("The jquery-ui js file is not present on this page.");
2688}
2689});
2690}});
2691$.dr.accordion={getDefaults:function(){
2692return _1d1;
2693},setDefaults:function(_1e6){
2694if(_1e6){
2695$.extend(_1d1,_1e6);
2696}
2697$(document).trigger("afterAccordionSetDefaults",[_1e6]);
2698}};
2699var _1e7=function(evt,_1e9){
2700$(".accordion",_1e9).dr.accordion();
2701};
2702$.dr.addUnobtrusiveEvent(_1e7,"unobtrusiveEventEarly");
2703})(jQuery);
2704(function($){
2705var _1eb={header:"p:first",containerCls:"drui-collapsible-container",selector:".collapsible",preventDefault:true,change:function(_1ec,vis,_1ee){
2706}};
2707$.namespace("dr",{collapsible:function(_1ef){
2708return this.each(function(i){
2709var _1f1=$(this).attr("data-options");
2710if(_1f1&&!_1ef){
2711_1ef=$.dr.utils.evalString(_1f1);
2712}
2713var _1f2=$.extend(true,{},_1eb,_1ef);
2714var self=$(this);
2715if(typeof _1f2.change==="function"){
2716$(this).bind("collapsiblechange",_1f2.change);
2717}
2718$(this).data("options",_1f2);
2719$(this).find(_1f2.header).each(function(){
2720$(this).addClass("drui-collapsible-header");
2721$(this).next().addClass(_1f2.containerCls);
2722if($(this).hasClass("collapsed")||$(this).addClass("drui-collapsible-collapsed")){
2723$(this).removeClass("collapsed");
2724$(this).addClass("drui-collapsible-collapsed");
2725$("."+_1f2.containerCls,$(this).parents(_1f2.selector)).hide();
2726$(this).trigger("collapsiblechange",[false,_1f2]);
2727}else{
2728$(this).addClass("drui-collapsible-active");
2729}
2730$(this).bind("mouseover",function(){
2731$(this).addClass("dr-state-hover");
2732});
2733$(this).bind("mouseout",function(){
2734$(this).removeClass("dr-state-hover");
2735});
2736$(this).bind("click",function(evt,obj){
2737if($(this).hasClass("drui-collapsible-collapsed")){
2738$(this).parents(_1f2.selector).dr.collapsible.expand();
2739}else{
2740$(this).parents(_1f2.selector).dr.collapsible.collapse();
2741}
2742if(_1f2.preventDefault){
2743evt.preventDefault();
2744}
2745});
2746});
2747});
2748}});
2749$.namespace("dr.collapsible",{collapse:function(evt){
2750var _1f7=$(this).data("options");
2751if($(_1f7.header,$(this)).hasClass("drui-collapsible-collapsed")){
2752return this;
2753}
2754$(this).trigger("collapsiblechangestart",[false,_1f7]);
2755$("."+_1f7.containerCls,$(this)).slideUp("fast",function(){
2756$(this).parents(_1f7.selector).trigger("collapsiblechange",[false,_1f7]);
2757});
2758$(_1f7.header,$(this)).toggleClass("drui-collapsible-collapsed");
2759$(_1f7.header,$(this)).toggleClass("drui-collapsible-active");
2760return this;
2761},expand:function(evt){
2762var _1f9=$(this).data("options");
2763if($(_1f9.header,$(this)).hasClass("drui-collapsible-active")){
2764return this;
2765}
2766$(this).trigger("collapsiblechangestart",[true,_1f9]);
2767$("."+_1f9.containerCls,$(this)).slideDown("fast",function(){
2768$(this).parents(_1f9.selector).trigger("collapsiblechange",[true,_1f9]);
2769});
2770$(_1f9.header,$(this)).toggleClass("drui-collapsible-collapsed");
2771$(_1f9.header,$(this)).toggleClass("drui-collapsible-active");
2772return this;
2773},toggle:function(vis){
2774if(!!vis){
2775this.dr.collapsible.expand();
2776}else{
2777this.dr.collapsible.collapse();
2778}
2779}});
2780var _1fb=function(evt,_1fd){
2781$(".collapsible",_1fd).dr.collapsible();
2782};
2783$.dr.addUnobtrusiveEvent(_1fb,"unobtrusiveEventEarly");
2784})(jQuery);
2785DR.Widgets.AjaxPanel=function(_1fe,_1ff){
2786this.settingName="";
2787this.newSettingName="";
2788this.panelId=_1fe;
2789this.content=getElem(_1fe);
2790this.currentForm=null;
2791this.loaded=false;
2792this.loading=false;
2793this.saving=false;
2794this.url="";
2795this.queryStringData="";
2796this.errors=[];
2797this.showSuccessMessage=true;
2798this.saveCallback=null;
2799this.loadCallback=null;
2800this.checkChangeCallback=null;
2801this.isModal=(_1ff)?true:false;
2802};
2803DR.Widgets.AjaxPanel.prototype={get:function(url,_201){
2804this.markLoading();
2805this.url=url;
2806this.queryStringData=(_201)?_201:"";
2807var _202=this;
2808$.ajax({url:this.url,data:this.queryStringData+"&ajaxTime="+new Date().getTime(),type:"GET",dataType:"html",success:function(_203){
2809if($.browser.msie){
2810_203=_203.replace("<script","<br style=\"display:none\"/> <script");
2811}
2812_202.content.innerHTML=_203;
2813_202.loaded=true;
2814_202.loading=false;
2815_202.prepare();
2816_202.runScripts();
2817if(typeof _202.loadCallback=="function"){
2818_202.loadCallback(_203);
2819}
2820},error:function(xhr){
2821if(xhr.status=="500"){
2822DR.Utils.replaceHtml(_202.content,xhr.responseText);
2823_202.loaded=true;
2824_202.loading=false;
2825_202.saving=false;
2826_202.prepare();
2827_202.runScripts();
2828}else{
2829if(xhr.status=="403"){
2830window.location=$.dr.LOGIN_URL;
2831}
2832}
2833}});
2834if(typeof _202.beforeLoadCallback=="function"){
2835_202.beforeLoadCallback();
2836}
2837this.loading=true;
2838},refresh:function(){
2839this.get(this.url,this.queryStringData);
2840},prepare:function(){
2841if(this.currentForm!==null){
2842var _205=this.currentForm;
2843$(_205).dr.form.destroy();
2844}
2845$.dr.triggerUnobtrusiveEvents(this.content);
2846var _206=$("form",this.content);
2847if(_206.length==0&&this.currentForm!==null){
2848_206.dr.form.destroy();
2849this.currentForm=null;
2850}else{
2851for(var i=0;i<_206.length;i++){
2852var _205=_206[i];
2853this.currentForm=_205;
2854this.addHijackForm();
2855}
2856}
2857},addHijackForm:function(){
2858var _208=this;
2859var _209=this.currentForm.onsubmit;
2860var _20a;
2861if(typeof _209!="function"){
2862_20a=function(_20b){
2863if(_20b!==false){
2864_208.hijackForm();
2865return false;
2866}else{
2867return true;
2868}
2869};
2870}else{
2871_20a=function(_20c){
2872var test=_209();
2873if(test){
2874if(_20c!==false){
2875_208.hijackForm();
2876return false;
2877}else{
2878return true;
2879}
2880}
2881return false;
2882};
2883}
2884this.currentForm.onsubmit=_20a;
2885},runScripts:function(){
2886var div=this.content;
2887var _20f=$("script",div);
2888this.errors=[];
2889var _210=[];
2890var _211=(navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")==-1)?true:false;
2891for(var i=0;i<_20f.length;i++){
2892var _213=_20f[i];
2893var h=_213.innerHTML;
2894if(h.indexOf("document.write")==-1){
2895if(_213.src){
2896var head=document.getElementsByTagName("head")[0];
2897var _216=document.createElement("script");
2898_216.setAttribute("type","text/javascript");
2899_216.setAttribute("src",_213.src);
2900head.appendChild(_216);
2901}else{
2902if(h){
2903if(_211){
2904_210.push(h);
2905}else{
2906try{
2907if(window.execScript){
2908window.execScript(h);
2909}else{
2910eval.call(window,h);
2911}
2912}
2913catch(e){
2914this.errors[this.errors.length]=e;
2915}
2916this.displayScriptErrors();
2917}
2918}
2919}
2920}
2921}
2922if(_211){
2923var s=[];
2924for(var i=0;i<_210.length;i++){
2925s.push("try{"+_210[i]+"}catch(e){"+this.panelId+".errors.push(e)};");
2926}
2927var f=s.join("")+this.panelId+".displayScriptErrors()";
2928window.setTimeout(f,0);
2929}
2930},displayScriptErrors:function(){
2931if(this.errors.length>0&&$.dr.IS_INTERNAL_USER){
2932DR.Utils.alert("There were javascript errors when loading "+this.settingName+":<br/><br/>"+this.errors.join("<br/><br/>"));
2933}
2934},hijackForm:function(_219){
2935var url=this.url+"?"+this.queryStringData+"&ajaxTime="+new Date().getTime();
2936var _21b=$(this.currentForm).serialize();
2937var _21c=this;
2938var _21d=function(o){
2939_21c.hijackFailureCallback(o);
2940};
2941var _21f;
2942this.loaded=false;
2943_21f=function(data,o){
2944_21c.hijackSaveCallback(data,o);
2945if(typeof _219=="function"){
2946_219();
2947}
2948};
2949var _222=this.currentForm;
2950$(_222).dr.form.reIndex();
2951$.ajax({type:"POST",url:url,success:_21f,error:_21d,data:_21b});
2952this.saving=true;
2953this.markSaving();
2954},hijackSaveCallback:function(data,o){
2955if(data!==undefined){
2956this.saving=false;
2957this.loaded=true;
2958if(typeof $.dr.processingDialog=="object"){
2959$.dr.processingDialog.hide();
2960}
2961if(this.showSuccessMessage){
2962var msg=this.SAVE_SUCCESSFUL.replace("{0}",this.settingName);
2963DR.Utils.success(msg);
2964}
2965if(typeof this.checkChangeCallback=="function"){
2966this.checkChangeCallback();
2967}else{
2968var _226=data;
2969if($.browser.msie){
2970_226=_226.replace("<script","<br style=\"display:none\"/> <script");
2971}
2972this.content.innerHTML=_226;
2973this.prepare();
2974this.runScripts();
2975if(typeof this.saveCallback=="function"){
2976this.saveCallback();
2977}
2978}
2979}
2980},hijackFailureCallback:function(o){
2981if(o.status=="403"){
2982window.location=$.dr.LOGIN_URL;
2983}else{
2984if(o.status=="500"){
2985this.content.innerHTML=o.responseText;
2986}
2987}
2988},markLoading:function(){
2989if(!this.saving){
2990var _228=(!this.loaded)?0:250;
2991this.loaded=false;
2992var _229=this;
2993var func=function(){
2994_229.markLoadingST();
2995};
2996window.setTimeout(func,_228);
2997}
2998},markLoadingST:function(){
2999if(!this.loaded){
3000var msg=$.dr.strings.LOADING.replace("..."," "+this.settingName+"...");
3001var h="<div class=\"loadingTabContent\" ><div><span>"+msg+"</span><div></div>";
3002this.content.innerHTML=h;
3003}
3004},markSaving:function(){
3005if(!this.loading){
3006var _22d=150;
3007this.saving=true;
3008var _22e=this;
3009var func=function(){
3010_22e.markSavingST();
3011};
3012window.setTimeout(func,_22d);
3013}
3014},markSavingST:function(){
3015if(!this.loaded){
3016if(this.isModal){
3017var msg=this.SAVING_CHANGES.replace("{0}"," "+this.settingName+"...");
3018var h="<div class=\"loadingTabContent\" ><div><span>"+msg+"</span><div></div>";
3019this.content.innerHTML=h;
3020}else{
3021if(typeof $.dr.processingDialog=="object"){
3022$.dr.processingDialog.show();
3023}
3024}
3025}
3026},checkChanges:function(_232){
3027if(this.currentForm==null){
3028_232();
3029return false;
3030}
3031var _233=this.checkFormChanges();
3032if(_233){
3033if(this.currentForm!==undefined){
3034var _234=this.currentForm.onsubmit;
3035if(typeof _234=="function"){
3036var _235=_234(false);
3037if(_235===false){
3038return false;
3039}
3040}
3041}
3042this.checkChangeCallback=_232;
3043var _236=this;
3044var _237=function(_238){
3045_236.checkChangesConfirmCallback(_238);
3046};
3047var q;
3048if(this.settingName==this.newSettingName){
3049q=this.UNSAVED_CHANGES_CONFIRM_QUESTION;
3050q=q.replace("{0}",this.settingName);
3051}else{
3052q=this.UNSAVED_CHANGES_CONFIRM_QUESTION_LOAD;
3053q=q.replace("{0}",this.settingName);
3054q=q.replace("{1}",this.newSettingName);
3055}
3056DR.Utils.warning(q,_237,this.UNSAVED_CHANGES_CONFIRM_TITLE);
3057return true;
3058}else{
3059_232();
3060return false;
3061}
3062},checkFormChanges:function(){
3063var _23a=this.currentForm;
3064if(!_23a){
3065return false;
3066}
3067if($(_23a).dr.form.get().checkChanges){
3068if($(_23a).dr.form.checkForChanges()){
3069return true;
3070}
3071}
3072return false;
3073},checkChangesConfirmCallback:function(_23b){
3074var _23c=false;
3075if(_23b){
3076var _23d=this.currentForm;
3077if($(_23d).dr.form.validate()){
3078this.hijackForm();
3079return;
3080}else{
3081_23c=true;
3082}
3083}
3084if(!_23c){
3085this.checkChangeCallback();
3086}
3087},getCurrentForm:function(){
3088var _23e=this.currentForm;
3089return _23e;
3090}};
3091DR.Widgets.AjaxPanel.prototype.SAVING_CHANGES="Saving changes to {0}";
3092DR.Widgets.AjaxPanel.prototype.SAVE_SUCCESSFUL="Changes to {0} were saved successfully.";
3093DR.Widgets.AjaxPanel.prototype.UNSAVED_CHANGES_CONFIRM_TITLE="Unsaved Changes";
3094DR.Widgets.AjaxPanel.prototype.UNSAVED_CHANGES_CONFIRM_QUESTION="Do you want to save your changes to {0} before performing the requested action?";
3095DR.Widgets.AjaxPanel.prototype.UNSAVED_CHANGES_CONFIRM_QUESTION_LOAD="Do you want to save your changes to {0} before loading {1}?";
3096(function($){
3097var _240={comboBox:false,minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:10000,mustMatch:false,extraParams:{},selectFirst:false,formatItem:function(row){
3098return row[0];
3099},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(_242,term){
3100return _242.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+term.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>");
3101},scroll:true,scrollHeight:180};
3102var _244=function(_245,_246,end){
3103if(_245.createTextRange){
3104var _248=_245.createTextRange();
3105_248.collapse(true);
3106_248.moveStart("character",_246);
3107_248.moveEnd("character",end);
3108_248.select();
3109}else{
3110if(_245.setSelectionRange){
3111_245.setSelectionRange(_246,end);
3112}else{
3113if(_245.selectionStart){
3114_245.selectionStart=_246;
3115_245.selectionEnd=end;
3116}
3117}
3118}
3119_245.focus();
3120};
3121var _249=function(_24a){
3122var data={};
3123var _24c=0;
3124function matchSubset(s,sub){
3125if(!_24a.matchCase){
3126s=s.toLowerCase();
3127}
3128var i=s.indexOf(sub);
3129if(i==-1){
3130return false;
3131}
3132return i==0||_24a.matchContains;
3133}
3134function add(q,_251){
3135if(_24c>_24a.cacheLength){
3136flush();
3137}
3138if(!data[q]){
3139_24c++;
3140}
3141data[q]=_251;
3142}
3143function populate(){
3144if(!_24a.data){
3145return false;
3146}
3147var _252={},nullData=0;
3148if(!_24a.url){
3149_24a.cacheLength=1;
3150}
3151_252[""]=[];
3152for(var i=0,ol=_24a.data.length;i<ol;i++){
3153var _254=_24a.data[i];
3154_254=(typeof _254=="string")?[_254]:_254;
3155var _255=_24a.formatMatch(_254,i+1,_24a.data.length);
3156if(_255===false){
3157continue;
3158}
3159var _256=_255.charAt(0).toLowerCase();
3160if(!_252[_256]){
3161_252[_256]=[];
3162}
3163var row={value:_255,data:_254,result:_24a.formatResult&&_24a.formatResult(_254)||_255};
3164_252[_256].push(row);
3165if(nullData++<_24a.max){
3166_252[""].push(row);
3167}
3168}
3169$.each(_252,function(i,_259){
3170_24a.cacheLength++;
3171add(i,_259);
3172});
3173}
3174setTimeout(populate,25);
3175function flush(){
3176data={};
3177_24c=0;
3178}
3179return {flush:flush,add:add,populate:populate,load:function(q){
3180if(!_24a.cacheLength||!_24c){
3181return null;
3182}
3183if(!_24a.url&&_24a.matchContains){
3184var csub=[];
3185for(var k in data){
3186if(k.length>0){
3187var c=data[k];
3188$.each(c,function(i,x){
3189if(matchSubset(x.value,q)){
3190csub.push(x);
3191}
3192});
3193}
3194}
3195return csub;
3196}else{
3197if(data[q]){
3198return data[q];
3199}else{
3200if(_24a.matchSubset){
3201for(var i=q.length-1;i>=_24a.minChars;i--){
3202var c=data[q.substr(0,i)];
3203if(c){
3204var csub=[];
3205$.each(c,function(i,x){
3206if(matchSubset(x.value,q)){
3207csub[csub.length]=x;
3208}
3209});
3210return csub;
3211}
3212}
3213}
3214}
3215}
3216return null;
3217}};
3218};
3219var _263=function(_264,_265,_266,_267,_268,_269){
3220var _26a={ACTIVE:"ac_over"};
3221var _26b,active=-1,data,term="",needsInit=true,popup,list,shadow;
3222function init(){
3223if(!needsInit){
3224return;
3225}
3226var div=$("<div />").addClass("ac_abs").prependTo("body");
3227popup=$("<div />").appendTo(div);
3228popup.addClass("ac_popup").dr.shadows();
3229shadow=div;
3230shadow.css({zIndex:1,position:"absolute"});
3231list=$("<ul/>").appendTo(popup).mouseover(function(_26d){
3232if(target(_26d).nodeName&&target(_26d).nodeName.toUpperCase()=="LI"){
3233active=$("li",list).removeClass(_26a.ACTIVE).index(target(_26d));
3234$(target(_26d)).addClass(_26a.ACTIVE);
3235}
3236}).click(function(_26e){
3237$(target(_26e)).addClass(_26a.ACTIVE);
3238var _26f=_266();
3239if(_26f!==null){
3240_268(_26f);
3241}
3242_265.focus();
3243return false;
3244}).mousedown(function(){
3245_267.mouseDownOnSelect=true;
3246}).mouseup(function(){
3247_267.mouseDownOnSelect=false;
3248});
3249if(_264.width>0){
3250popup.css("width",_264.width);
3251}
3252needsInit=false;
3253}
3254function target(_270){
3255var _271=_270.target;
3256while(_271&&_271.tagName!="LI"){
3257_271=_271.parentNode;
3258}
3259if(!_271){
3260return [];
3261}
3262return _271;
3263}
3264function moveSelect(step){
3265_26b.slice(active,active+1).removeClass(_26a.ACTIVE);
3266movePosition(step);
3267var _273=_26b.slice(active,active+1).addClass(_26a.ACTIVE);
3268if(_264.scroll){
3269var _274=0;
3270_26b.slice(0,active).each(function(){
3271_274+=this.offsetHeight;
3272});
3273if((_274+_273[0].offsetHeight-list.scrollTop())>list[0].clientHeight){
3274list.scrollTop(_274+_273[0].offsetHeight-list.innerHeight());
3275}else{
3276if(_274<list.scrollTop()){
3277list.scrollTop(_274);
3278}
3279}
3280}
3281}
3282function movePosition(step){
3283active+=step;
3284if(active<0){
3285active=0;
3286}else{
3287if(active>=_26b.size()){
3288active=_26b.size()-1;
3289}
3290}
3291}
3292function limitNumberOfItems(_276){
3293return _264.max&&_264.max<_276?_264.max:_276;
3294}
3295function fillList(){
3296list.empty();
3297var max=limitNumberOfItems(data.length);
3298for(var i=0;i<max;i++){
3299if(!data[i]){
3300continue;
3301}
3302var _279=_264.formatItem(data[i].data,i+1,max,data[i].value,term);
3303if(_279===false){
3304continue;
3305}
3306var li=$("<li/>").html(_264.highlight(_279,term)).addClass(i%2==0?"ac_even":"ac_odd").appendTo(list)[0];
3307$.data(li,"ac_data",data[i]);
3308}
3309_26b=list.find("li");
3310if(_264.selectFirst){
3311_26b.slice(0,1).addClass(_26a.ACTIVE);
3312active=0;
3313}
3314}
3315return {display:function(d,q){
3316if(active!=-1){
3317active=0;
3318}
3319init();
3320data=d;
3321term=q;
3322fillList();
3323},next:function(){
3324moveSelect(1);
3325},prev:function(){
3326moveSelect(-1);
3327},pageUp:function(){
3328if(active!=0&&active-9<0){
3329moveSelect(-active);
3330}else{
3331moveSelect(-9);
3332}
3333},pageDown:function(){
3334if(active!=_26b.size()-1&&active+9>_26b.size()){
3335moveSelect(_26b.size()-1-active);
3336}else{
3337moveSelect(9);
3338}
3339},hide:function(){
3340popup&&popup.slideUp(function(){
3341_269.parent().removeClass("ac_open");
3342shadow.hide();
3343});
3344_26b&&_26b.removeClass(_26a.ACTIVE);
3345active=-1;
3346},visible:function(){
3347return shadow&&shadow.is(":visible");
3348},current:function(){
3349return this.visible()&&(_26b.filter("."+_26a.ACTIVE)[0]||_264.selectFirst&&_26b[0]);
3350},show:function(){
3351var _27d=_265.offsetWidth-2;
3352var _27e=$(_265).offset();
3353_269.parent().addClass("ac_open");
3354popup.css({width:typeof _264.width=="string"||_264.width>0?_264.width:_27d});
3355popup.show();
3356shadow.show();
3357var _27f=-(20/2);
3358var _280=-1;
3359if(DR.Utils.BrowserDetect.browser=="Explorer"&&DR.Utils.BrowserDetect.version<7){
3360_27f=0;
3361}
3362var _281="Left";
3363var _282="Bottom";
3364var _283="Right";
3365var _284="Down";
3366DR.Utils.Position.snapTo(_265,shadow[0],_27f,_280,_281,_282,_283,_284,false);
3367if(_264.scroll){
3368list.scrollTop(0);
3369list.css({maxHeight:_264.scrollHeight,overflow:"auto"});
3370if($.browser.msie&&typeof document.body.style.maxHeight==="undefined"){
3371var _285=0;
3372_26b.each(function(){
3373_285+=this.offsetHeight;
3374});
3375var _286=_285>_264.scrollHeight;
3376list.css("height",_286?_264.scrollHeight:_285);
3377if(!_286){
3378_26b.width(list.width()-parseInt(_26b.css("padding-left"))-parseInt(_26b.css("padding-right")));
3379}
3380}
3381}
3382},selected:function(){
3383var _287=_26b&&_26b.filter("."+_26a.ACTIVE).removeClass(_26a.ACTIVE);
3384return _287&&_287.length&&$.data(_287[0],"ac_data");
3385},emptyList:function(){
3386list&&list.empty();
3387},unbind:function(){
3388popup&&popup.remove();
3389}};
3390};
3391var _288=function(_289,_28a,_28b){
3392var KEY={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};
3393var _28d=$(_289),originalInput=_289,boundInput=null;
3394var _28e=($.browser.msie)?6:4;
3395var _28f=_28d.dr.computedWidth()+_28e;
3396_28f=(_28f>_28e)?_28f:(_289.offsetWidth);
3397var _290=$("<div class=\"ac_wrapper\" style=\"width:"+_28f+"px;\" />");
3398boundInput=_28d.clone();
3399boundInput.removeAttr("name").removeAttr("id");
3400if(_289.tagName.toLowerCase()=="textarea"){
3401boundInput.css("max-width",_289.offsetWidth+"px").css("max-height",_289.offsetHeight+"px");
3402_290.addClass("ac_textareaWrapper");
3403}
3404boundInput.appendTo(_290);
3405boundInput.val(_28d.val());
3406boundInput.attr("data-expand-collapse","false");
3407_28d.attr("data-expand-collapse","false");
3408_28d.data("validationEnabled",false);
3409_290.insertBefore(_28d);
3410_290.wrap("<div class=\"autocomplete\" />");
3411_28d.hide();
3412_28d=boundInput;
3413_289=boundInput[0];
3414var _291=_289;
3415var _292=$("<span class=\"loading\" />").appendTo(_290).hide();
3416if(_28a.comboBox){
3417_290.addClass("ac_comboBox");
3418var _293=$("<span class=\"handle\" />").appendTo(_290).mousedown(function(evt){
3419evt.preventDefault();
3420}).click(function(evt){
3421var func=function(){
3422var show=true;
3423if(typeof select!=="undefined"){
3424if(select.visible()){
3425select.hide();
3426show=false;
3427}
3428}
3429if(show){
3430if(_28a.showAllOptions){
3431_289.value="";
3432}
3433_289.focus();
3434hasFocus=1;
3435onChange(0,true);
3436}
3437};
3438var _298=($.browser.msie)?200:20;
3439setTimeout(func,_298);
3440evt.preventDefault();
3441});
3442}
3443var _299=function(){
3444if(boundInput!==null){
3445$(originalInput).val(boundInput.val());
3446}
3447};
3448var _29a=function(){
3449if($.dr&&$.dr.form&&$.dr.form.validateField){
3450$.dr.form.validateField(_289,true);
3451}
3452};
3453_28d=$(_289).attr("autocomplete","off");
3454var _29b,previousValue="",cache=new _249(_28a),hasFocus=0,lastKeyPressCode,config={mouseDownOnSelect:false},select=new _263(_28a,_289,selectCurrent,config,doCallback,_290),blockSubmit;
3455$.browser.opera&&$(_289.form).bind("submit.autocomplete",function(){
3456if(blockSubmit){
3457blockSubmit=false;
3458return false;
3459}
3460});
3461function doCallback(_29c){
3462_29a();
3463if(!_29c){
3464return;
3465}
3466_299();
3467if(typeof _28a.callback=="function"){
3468var func=function(){
3469_28a.callback(_29c[0],_29c[1]);
3470};
3471setTimeout(func,10);
3472}
3473}
3474_28d.bind(($.browser.opera?"keypress":"keydown")+".autocomplete",function(_29e){
3475lastKeyPressCode=_29e.keyCode;
3476switch(_29e.keyCode){
3477case KEY.UP:
3478_29e.preventDefault();
3479if(select.visible()){
3480select.prev();
3481}else{
3482onChange(0,true);
3483}
3484break;
3485case KEY.DOWN:
3486_29e.preventDefault();
3487if(select.visible()){
3488select.next();
3489}else{
3490onChange(0,true);
3491}
3492break;
3493case KEY.PAGEUP:
3494_29e.preventDefault();
3495if(select.visible()){
3496select.pageUp();
3497}else{
3498onChange(0,true);
3499}
3500break;
3501case KEY.PAGEDOWN:
3502_29e.preventDefault();
3503if(select.visible()){
3504select.pageDown();
3505}else{
3506onChange(0,true);
3507}
3508break;
3509case _28a.multiple&&$.trim(_28a.multipleSeparator)==","&&KEY.COMMA:
3510case KEY.TAB:
3511case KEY.RETURN:
3512var _29f=selectCurrent();
3513if(_29f!==null){
3514blockSubmit=true;
3515if(!_28a.multiple){
3516if(_29e.keyCode==KEY.RETURN){
3517_29e.keyCode=KEY.TAB;
3518_29e.preventDefault();
3519}else{
3520_29e.keyCode=KEY.TAB;
3521}
3522}else{
3523_29e.preventDefault();
3524}
3525doCallback(_29f);
3526}
3527break;
3528case KEY.ESC:
3529select.hide();
3530break;
3531default:
3532clearTimeout(_29b);
3533_29b=setTimeout(onChange,_28a.delay);
3534break;
3535}
3536_299();
3537_29a();
3538}).focus(function(){
3539hasFocus++;
3540}).blur(function(evt){
3541_29a();
3542_299();
3543hasFocus=0;
3544if(!config.mouseDownOnSelect){
3545hideResults();
3546}
3547}).click(function(){
3548if(hasFocus++>1&&!select.visible()){
3549onChange(0,true);
3550}
3551}).dblclick(function(){
3552if($.browser.msie){
3553if(!select.visible()){
3554onChange(0,true);
3555}
3556}
3557}).bind("search",function(){
3558var fn=(arguments.length>1)?arguments[1]:null;
3559function findValueCallback(q,data){
3560var _2a4;
3561if(data&&data.length){
3562for(var i=0;i<data.length;i++){
3563if(data[i].result.toLowerCase()==q.toLowerCase()){
3564_2a4=data[i];
3565break;
3566}
3567}
3568}
3569if(typeof fn=="function"){
3570fn(_2a4);
3571}else{
3572doCallback(_2a4);
3573}
3574}
3575var _2a6=0;
3576$.each(trimWords(_28d.val()),function(i,_2a8){
3577_2a6++;
3578request(_2a8,findValueCallback,findValueCallback);
3579});
3580if(_2a6==0){
3581request("",findValueCallback,findValueCallback);
3582}
3583}).bind("flushCache",function(){
3584cache.flush();
3585}).bind("setOptions",function(){
3586$.extend(_28a,arguments[1]);
3587if("data" in arguments[1]){
3588cache.populate();
3589}
3590}).bind("unautocomplete",function(){
3591select.unbind();
3592_28d.unbind();
3593$(_289.form).unbind(".autocomplete");
3594});
3595function selectCurrent(){
3596var _2a9=select.selected();
3597if(!_2a9){
3598return false;
3599}
3600var v=_2a9.result;
3601previousValue=v;
3602if(_28a.multiple){
3603var _2ab=trimWords(_28d.val());
3604if(_2ab.length>1){
3605v=_2ab.slice(0,_2ab.length-1).join(_28a.multipleSeparator)+_28a.multipleSeparator+v;
3606}
3607v+=_28a.multipleSeparator;
3608}
3609_28d.val(v);
3610hideResultsNow();
3611return [_2a9.data,_2a9.value];
3612}
3613function onChange(arg1,_2ad){
3614if(lastKeyPressCode==KEY.DEL){
3615select.hide();
3616return;
3617}
3618var _2ae=_28d.val();
3619if(!_2ad&&_2ae==previousValue){
3620return;
3621}
3622previousValue=_2ae;
3623_2ae=lastWord(_2ae);
3624if(_2ae.length>=_28a.minChars){
3625_292.show();
3626if(!_28a.matchCase){
3627_2ae=_2ae.toLowerCase();
3628}
3629request(_2ae,receiveData,hideResultsNow);
3630}else{
3631stopLoading();
3632select.hide();
3633}
3634}
3635function trimWords(_2af){
3636if(!_2af){
3637return [""];
3638}
3639var _2b0=_2af.split(_28a.multipleSeparator);
3640var _2b1=[];
3641$.each(_2b0,function(i,_2b3){
3642if($.trim(_2b3)){
3643_2b1[i]=$.trim(_2b3);
3644}
3645});
3646return _2b1;
3647}
3648function lastWord(_2b4){
3649if(!_28a.multiple){
3650return _2b4;
3651}
3652var _2b5=trimWords(_2b4);
3653return _2b5[_2b5.length-1];
3654}
3655function autoFill(q,_2b7){
3656if(_28a.autoFill&&(lastWord(_28d.val()).toLowerCase()==q.toLowerCase())&&lastKeyPressCode!=KEY.BACKSPACE){
3657_28d.val(_28d.val()+_2b7.substring(lastWord(previousValue).length));
3658_244(_289,previousValue.length,previousValue.length+_2b7.length);
3659}
3660}
3661function hideResults(){
3662clearTimeout(_29b);
3663_29b=setTimeout(hideResultsNow,200);
3664}
3665function hideResultsNow(){
3666var _2b8=select.visible();
3667select.hide();
3668clearTimeout(_29b);
3669stopLoading();
3670if(_28a.mustMatch){
3671_28d.trigger("search",[function(_2b9){
3672if(!_2b9){
3673if(_28a.multiple){
3674var _2ba=trimWords(_28d.val()).slice(0,-1);
3675_28d.val(_2ba.join(_28a.multipleSeparator)+(_2ba.length?_28a.multipleSeparator:""));
3676}else{
3677_28d.val("");
3678}
3679$(originalInput).val("");
3680}
3681}]);
3682}
3683if(_2b8){
3684_244(_289,_289.value.length,_289.value.length);
3685}
3686}
3687function receiveData(q,data){
3688if(data&&data.length&&hasFocus){
3689stopLoading();
3690select.display(data,q);
3691autoFill(q,data[0].value);
3692select.show();
3693}else{
3694hideResultsNow();
3695}
3696}
3697function request(term,_2be,_2bf){
3698if(!_28a.matchCase){
3699term=term.toLowerCase();
3700}
3701var data=cache.load(term);
3702if(data&&data.length){
3703_2be(term,data);
3704}else{
3705if((typeof _28a.url=="string")&&(_28a.url.length>0)){
3706var _2c1={ajaxTime:new Date()};
3707$.each(_28a.extraParams,function(key,_2c3){
3708_2c1[key]=typeof _2c3=="function"?_2c3():_2c3;
3709});
3710$.ajax({mode:"abort",port:"autocomplete"+_289.name,dataType:_28a.dataType,url:_28a.url,data:$.extend({query:lastWord(term),limit:_28a.max},_2c1),success:function(data){
3711var _2c5=_28a.parse&&_28a.parse(data)||parse(data);
3712cache.add(term,_2c5);
3713_2be(term,_2c5);
3714},error:function(_2c6,_2c7,_2c8){
3715if(typeof _28a.errorCallback=="function"){
3716_28a.failureCallback(_2c6,_2c7,_2c8);
3717}
3718}});
3719}else{
3720select.emptyList();
3721_2bf(term);
3722}
3723}
3724}
3725function parse(data){
3726var _2ca=[];
3727var rows=data.split("\n");
3728for(var i=0;i<rows.length;i++){
3729var row=$.trim(rows[i]);
3730if(row){
3731row=row.split("|");
3732_2ca[_2ca.length]={data:row,value:row[0],result:_28a.formatResult&&_28a.formatResult(row,row[0])||row[0]};
3733}
3734}
3735return _2ca;
3736}
3737function stopLoading(){
3738_292.hide();
3739}
3740return {boundInput:_28d};
3741};
3742var _2ce=function(evt){
3743var a=$("input.autocomplete, textarea.autocomplete, input.combobox",this);
3744if(a.length>0){
3745a.dr.autocomplete();
3746}
3747};
3748$("form").live("beforeIndexFields",_2ce);
3749$.dr.autocomplete={setDefaults:function(_2d1){
3750if(_2d1){
3751$.extend(_240,_2d1);
3752}
3753}};
3754$.namespace("dr",{autocomplete:function(_2d2,_2d3){
3755var _2d4=false,isUrl=(typeof _2d2=="string")?true:false;
3756if(!_2d3){
3757_2d3={};
3758}
3759if(arguments.length==0){
3760_2d4=true;
3761}
3762return this.each(function(){
3763var jObj=$(this);
3764if(!jObj.data("autocomplete_inited")){
3765var _2d6=_2d3;
3766if(_2d4){
3767isUrl=false;
3768_2d2=jObj.attr("data-source");
3769var _2d7=jObj.attr("data-url");
3770dataOptions=jObj.attr("data-options");
3771if(!_2d2){
3772if(!_2d7){
3773$.dr.utils.logError("("+this.id+") did not contain a data-url or data-source attribute");
3774return;
3775}else{
3776isUrl=true;
3777_2d2=_2d7;
3778}
3779}else{
3780_2d2=$.dr.utils.evalString(_2d2,"The referenced data-source for ("+this.id+") does not exist.");
3781if(typeof _2d2=="error"){
3782return;
3783}
3784}
3785if(dataOptions){
3786_2d6=$.dr.utils.evalString(dataOptions,"Error parsing autocomplete data-options for ("+this.id+")");
3787if(typeof _2d6=="error"){
3788return;
3789}
3790}
3791}
3792if(this.tagName.toLowerCase()=="textarea"){
3793if(typeof _2d6.multiple=="undefined"){
3794_2d6.multiple=true;
3795}
3796}
3797var _2d8=$.extend({},_240,{url:isUrl?_2d2:null,data:isUrl?null:_2d2,delay:isUrl?_240.delay:10},_2d6);
3798if(jObj.hasClass("combobox")){
3799_2d8.comboBox=true;
3800}
3801_2d8.highlight=_2d8.highlight||function(_2d9){
3802return _2d9;
3803};
3804_2d8.formatMatch=_2d8.formatMatch||_2d8.formatItem;
3805jObj.data("autocomplete_inited","true");
3806var ac=new _288(this,_2d8);
3807jObj.data("autocomplete",ac);
3808if(!_2d4){
3809$(this.form).dr.form.initFields(ac.boundInput);
3810}
3811}
3812});
3813}});
3814$.namespace("dr.autocomplete",{search:function(_2db){
3815return this.trigger("search",[_2db]);
3816},flushCache:function(){
3817return this.trigger("flushCache");
3818},setOptions:function(_2dc){
3819return this.trigger("setOptions",[_2dc]);
3820},destroy:function(){
3821return this.trigger("unautocomplete");
3822}});
3823})(jQuery);
3824(function($){
3825$.namespace("dr.button",{disable:function(_2de){
3826if(typeof $.dr.processingDialog=="object"){
3827$.dr.processingDialog.disable();
3828}
3829return this.each(function(){
3830var _2df=$(this);
3831if(this.tagName.toLowerCase()=="button"){
3832var text=(_2de)?_2de:(_2df.hasClass("search"))?$.dr.strings.SEARCHING:(_2df.hasClass("login"))?$.dr.strings.AUTHORIZING:$.dr.strings.PROCESSING;
3833_2df.html("<span><span><span>"+text+"</span></span></span>").addClass("processing");
3834this.disabled=true;
3835}
3836});
3837},text:function(_2e1,_2e2,_2e3,_2e4){
3838return this.each(function(){
3839if(this.tagName.toLowerCase()=="button"){
3840var _2e5=$(this);
3841if(_2e4){
3842_2e5.addClass("rightAlign");
3843}
3844_2e5.html("<span><span><span>"+_2e1+"</span></span></span>");
3845if(_2e3){
3846_2e5.removeClass(_2e2).addClass(_2e3);
3847}
3848}
3849});
3850}});
3851})(jQuery);
3852DR.Widgets.FauxTree=function(_2e6,guid,_2e8,_2e9,_2ea,_2eb){
3853this.childNodes=[];
3854this.parentNode=_2e6;
3855this.isExpanded=false;
3856if(_2ea!==undefined){
3857this.saveState=_2ea;
3858this.cookieName=_2eb;
3859}else{
3860this.saveState=false;
3861this.cookieName=null;
3862}
3863this.isDirectory=_2e8;
3864this.hasCheckbox=(_2e9===true)?true:false;
3865this.guid=guid;
3866this.obj=document.getElementById(this.guid);
3867var _2ec=guid.split(DR.Widgets.FauxTree.PATH_SEPARATOR);
3868this.level=_2ec.length;
3869this.shortId=_2ec[_2ec.length-1];
3870};
3871DR.Widgets.FauxTree.PATH_SEPARATOR=".";
3872DR.Widgets.FauxTree.INDENTED_COLUMN_POSITION=0;
3873DR.Widgets.FauxTree.EXPANDED_CHILDREN_DISPLAY_VALUE="";
3874DR.Widgets.FauxTree.COLLAPSED_CHILDREN_DISPLAY_VALUE="none";
3875DR.Widgets.FauxTree.EMPTY_DIRECTORY_STYLE="empty";
3876DR.Widgets.FauxTree.EXPANDED_DIRECTORY_STYLE="expanded";
3877DR.Widgets.FauxTree.COLLAPSED_DIRECTORY_STYLE="collapsed";
3878DR.Widgets.FauxTree.ITEM_STYLE="item";
3879DR.Widgets.FauxTree.FAUX_TREE_ROOT="FauxTreeRoot";
3880DR.Widgets.FauxTree.NODE_LOOKUP_TABLE=[];
3881DR.Widgets.FauxTree.countNodes=function(){
3882var num=0;
3883for(var i in DR.Widgets.FauxTree.NODE_LOOKUP_TABLE){
3884num++;
3885}
3886alert(num);
3887};
3888DR.Widgets.FauxTree.isNode=function(node){
3889return node.guid;
3890};
3891DR.Widgets.FauxTree.initConstants=function(_2f0){
3892DR.Widgets.FauxTree.INDENTED_COLUMN_POSITION=(_2f0)?_2f0:0;
3893};
3894DR.Widgets.FauxTree.prototype={refreshTreeState:function(){
3895if(this.saveState){
3896DR.Widgets.FauxTree.NODE_LOOKUP_TABLE[DR.Widgets.FauxTree.FAUX_TREE_ROOT]=this;
3897this.stateCookie=new DR.Utils.Cookie(this.cookieName);
3898this.stateCookie.type="Array";
3899this.stateCookie.load();
3900this.findChild().revertState();
3901}
3902},addItem:function(path,_2f2){
3903var _2f3=path.split(DR.Widgets.FauxTree.PATH_SEPARATOR);
3904var _2f4=true;
3905if(_2f3.length>1){
3906_2f4=true;
3907}else{
3908_2f4=(_2f2)?true:false;
3909}
3910var _2f5=_2f3.shift();
3911var guid=null;
3912if(this.guid===""){
3913guid=_2f5;
3914}else{
3915guid=this.guid+DR.Widgets.FauxTree.PATH_SEPARATOR+_2f5;
3916}
3917if(!this.childNodes[_2f5]){
3918this.childNodes[_2f5]=new DR.Widgets.FauxTree(this,guid,_2f4,this.hasCheckbox,this.saveState);
3919DR.Widgets.FauxTree.NODE_LOOKUP_TABLE[guid]=this.childNodes[_2f5];
3920}
3921if(_2f3.length>0){
3922this.childNodes[_2f5].addItem(_2f3.join(DR.Widgets.FauxTree.PATH_SEPARATOR),_2f2);
3923}
3924},findItem:function(path){
3925return DR.Widgets.FauxTree.NODE_LOOKUP_TABLE[path];
3926},toggleDirectory:function(_2f8){
3927var _2f9=document.getElementById(_2f8);
3928var _2fa=(_2f9.className.indexOf(DR.Widgets.FauxTree.EXPANDED_DIRECTORY_STYLE)!=-1)?true:false;
3929var _2fb=this.findItem(_2f8);
3930if(_2fb.isDirectory){
3931if(_2fa){
3932_2fb.collapse();
3933if(this.saveState){
3934this.stateCookie.removeArrayValue(_2fb.shortId);
3935}
3936}else{
3937_2fb.expand();
3938if(this.saveState){
3939this.stateCookie.addArrayValue(_2fb.shortId);
3940}
3941}
3942}
3943}
3943,findChild:function(){
3944var _2fc;
3945for(var i in this.childNodes){
3946_2fc=this.childNodes[i];
3947break;
3948}
3949return _2fc;
3950},expandAll:function(){
3951this.obj.style.display=DR.Widgets.FauxTree.EXPANDED_CHILDREN_DISPLAY_VALUE;
3952if(this.isDirectory){
3953if(this.hasChildren()===0){
3954this.obj.className=DR.Widgets.FauxTree.EMPTY_DIRECTORY_STYLE;
3955}else{
3956this.obj.className=(this.isExpanded)?DR.Widgets.FauxTree.EXPANDED_DIRECTORY_STYLE:DR.Widgets.FauxTree.COLLAPSED_DIRECTORY_STYLE;
3957}
3958}else{
3959this.obj.className=DR.Widgets.FauxTree.ITEM_STYLE;
3960}
3961$(">td:not(.actionCol)",this.obj).eq(0).addClass("first level"+this.level);
3962if(this.isDirectory){
3963this.expand();
3964for(var i in this.childNodes){
3965if(DR.Widgets.FauxTree.isNode(this.childNodes[i])){
3966var _2ff=this.childNodes[i];
3967_2ff.expandAll();
3968}
3969}
3970}
3971},revertState:function(){
3972if(this.saveState){
3973var _300=this.getCookieArray();
3974if(this.isDirectory){
3975var _301=false;
3976if(_300.length>0){
3977var i=0;
3978while(!_301&&i<_300.length){
3979if(_300[i]==this.shortId){
3980_301=true;
3981this.expand();
3982}
3983i++;
3984}
3985}
3986if(_301){
3987for(var j in this.childNodes){
3988if(DR.Widgets.FauxTree.isNode(this.childNodes[j])){
3989var _304=this.childNodes[j];
3990_304.revertState();
3991}
3992}
3993}
3994}
3995}
3996},expandNRestoreChildrenState:function(){
3997this.obj.style.display=DR.Widgets.FauxTree.EXPANDED_CHILDREN_DISPLAY_VALUE;
3998if(this.isDirectory){
3999if(this.hasChildren()===0){
4000this.obj.className=DR.Widgets.FauxTree.EMPTY_DIRECTORY_STYLE;
4001}else{
4002this.obj.className=(this.isExpanded)?DR.Widgets.FauxTree.EXPANDED_DIRECTORY_STYLE:DR.Widgets.FauxTree.COLLAPSED_DIRECTORY_STYLE;
4003}
4004}else{
4005this.obj.className=DR.Widgets.FauxTree.ITEM_STYLE;
4006}
4007$(">td:not(.actionCol)",this.obj).eq(0).addClass("first level"+this.level);
4008if(this.saveState){
4009var _305=this.getCookieArray();
4010var _306=false;
4011if(_305.length>0){
4012var i=0;
4013while(!_306&&i<_305.length){
4014if(_305[i]==this.shortId){
4015this.isExpanded=true;
4016}
4017i++;
4018}
4019}
4020}
4021if(this.isExpanded){
4022for(var j in this.childNodes){
4023if(DR.Widgets.FauxTree.isNode(this.childNodes[j])){
4024var _309=this.childNodes[j];
4025_309.expandNRestoreChildrenState();
4026}
4027}
4028}
4029},hasChildren:function(){
4030for(var i in this.childNodes){
4031if(DR.Widgets.FauxTree.isNode(this.childNodes[i])){
4032return true;
4033}
4034}
4035return false;
4036},collapseNStoreChildrenState:function(){
4037for(var i in this.childNodes){
4038if(DR.Widgets.FauxTree.isNode(this.childNodes[i])){
4039this.childNodes[i].obj.style.display=DR.Widgets.FauxTree.COLLAPSED_CHILDREN_DISPLAY_VALUE;
4040this.childNodes[i].collapseNStoreChildrenState();
4041}
4042}
4043},expand:function(){
4044this.isExpanded=true;
4045this.expandNRestoreChildrenState();
4046},getCookieArray:function(){
4047return DR.Widgets.FauxTree.NODE_LOOKUP_TABLE[DR.Widgets.FauxTree.FAUX_TREE_ROOT].stateCookie.arrayValues;
4048},collapse:function(){
4049this.isExpanded=false;
4050this.obj.className=DR.Widgets.FauxTree.COLLAPSED_DIRECTORY_STYLE;
4051this.collapseNStoreChildrenState();
4052}};
4053(function($){
4054var _30d=[];
4055var _30e=false;
4056var _30f={INPUT_FOCUS_CLASS:"inputFocus"};
4057var _310={WINDOW_ON_BEFORE_UNLOAD:"There have been changes made to the form that have not been saved."};
4058$.dr.form={getMessages:function(){
4059return _310;
4060},getDefaults:function(){
4061return _30f;
4062},setDefaults:function(_311){
4063if(_311){
4064$.extend(_30f,_311);
4065}
4066$(document).trigger("afterFormSetDefaults",[_311]);
4067},setMessages:function(_312){
4068if(_312){
4069$.extend(_310,_312);
4070}
4071$(document).trigger("afterFormSetMessages",[_312]);
4072}};
4073window.customFormIndexerCallBack=function(){
4074};
4075var _313=function(_314){
4076$("form",_314).dr.form();
4077customFormIndexerCallBack();
4078customFormIndexerCallBack=function(){
4079};
4080};
4081var _315=function(_316){
4082var _317=(parent.overlayStack)?parent.overlayStack.getCurrent():null;
4083var _318=(typeof _317!=="undefined"&&typeof _317!==null)?_317.loading:false;
4084if(_318){
4085var func=function(){
4086_315(_316);
4087};
4088window.setTimeout(func,50);
4089}else{
4090_313(_316);
4091}
4092};
4093var _31a=function(evt,_31c){
4094$.dr.form.setDefaults({});
4095$.dr.form.setMessages({});
4096$(document).trigger("beforeInitForms");
4097if($.browser.msie&&$("body.modalPage").length>0){
4098_315(_31c);
4099}else{
4100_313(_31c);
4101}
4102};
4103$.dr.addUnobtrusiveEvent(_31a);
4104var _31d=function(evt){
4105if(!this.getAttribute("readonly")&&!this.disabled&&this.type!="file"){
4106if(!(this.type=="select-one"&&DR.Utils.BrowserDetect.version>6)){
4107$(this).addClass(_30f.INPUT_FOCUS_CLASS);
4108}
4109}
4110};
4111var _31f=function(evt){
4112var _321=this;
4113var func=function(){
4114if(!_321.getAttribute("readonly")&&!_321.disabled&&_321.type!="file"){
4115$(_321).removeClass(_30f.INPUT_FOCUS_CLASS);
4116}
4117};
4118window.setTimeout(func,50);
4119};
4120$.dr.utils.getSelectOptionValue=function(_323){
4121if(_323){
4122if(_323.text!==""&&_323.outerHTML&&_323.outerHTML.toLowerCase().indexOf("value=")==-1){
4123return _323.text;
4124}else{
4125return _323.value;
4126}
4127}
4128};
4129$.dr.utils.hasFieldChanged=function(obj){
4130var type=obj.type;
4131if(type=="checkbox"||type=="radio"){
4132if(obj.defaultChecked!=obj.checked){
4133return true;
4134}
4135}else{
4136if(type=="select-one"){
4137if($(obj).dr.form.field.getDefaultValue()!=$(obj).val()){
4138return true;
4139}
4140}else{
4141if(type=="select-multiple"){
4142var _326=$(obj).val();
4143_326=(_326===null)?"":_326.join(",");
4144if($(obj).dr.form.field.getDefaultValue()!=_326){
4145return true;
4146}
4147}else{
4148if($(obj).dr.form.field.getDefaultValue()!=$(obj).val()){
4149return true;
4150}
4151}
4152}
4153}
4154return false;
4155};
4156$.dr.utils.getLabel=function(obj){
4157var _328;
4158if($(obj).data("label")===undefined){
4159var _329=$(obj.form).data("labels");
4160if(_329===undefined){
4161_329=$("label",obj.form);
4162$(obj.form).data("labels",_329);
4163}
4164var _32a=_329.filter("[for="+obj.id+"]");
4165_328=(_32a.length)?_32a.text().replace(":",""):obj.name;
4166$(obj).data("label",_328);
4167}
4168return _328;
4169};
4170var _32b=function(_32c){
4171var _32d=_32c.onsubmit;
4172_32c.onsubmit=function(){
4173var _32e=true;
4174if(typeof _32d=="function"){
4175var test=_32d();
4176_32e=(typeof test=="undefined"||test)?true:false;
4177}
4178var _330=$(_32c).data("behavior");
4179var _331=(_32e&&$(_32c).dr.form.validate())?true:false;
4180if(_330&&_330.checkChanges&&_331){
4181$(_32c).dr.form.enableCheckChanges(false);
4182}
4183$(_32c).trigger("dr-aftervalidation",_331);
4184return _331;
4185};
4186var _332=_32c.onsubmit;
4187_32c._nativeFormSubmit=_32c.submit;
4188_32c.submit=function(){
4189if(_332()){
4190if($.browser.msie){
4191_32c._nativeFormSubmit();
4192}else{
4193_32c.submit=_32c._nativeFormSubmit;
4194if(_32c.submit!==undefined){
4195_32c.submit();
4196}
4197}
4198}
4199};
4200};
4201var _333=function(_334,_335){
4202this.formObj=_334;
4203this.options=_335;
4204this.init();
4205};
4206_333.prototype={init:function(){
4207this.firstField=null;
4208this.normalizeName();
4209this.bindBehavior();
4210},normalizeName:function(){
4211var _336=this.formObj;
4212var _337="name";
4213var n=_336.attributes[_337];
4214var f="form_"+new Date().getTime();
4215if(n){
4216if(!($.browser.msie&&n.value==="")){
4217f=n.value;
4218}
4219}
4220_336.setAttribute("name",f);
4221_336._formName=f;
4222this.formIndex=_30d.length;
4223_30d.push(_336);
4224},bindBehavior:function(){
4225var _33a=this.formObj;
4226var _33b=$(this.formObj);
4227var _33c=(_33b.attr("data-behavior")=="standard")?true:false;
4228var _33d=(_33b.attr("data-behavior")=="search")?true:false;
4229var _33e=(_33b.attr("data-enable-field-events")=="false")?false:true;
4230var _33f=(_33b.attr("data-check-changes")=="false")?false:true;
4231var _340=(_33b.attr("data-auto-focus")=="false")?false:true;
4232var _341=(_33b.attr("data-force-check-changes")=="true")?true:false;
4233this.checkChanges=(_33c&&(_33f||_341))?true:false;
4234this.autoFocus=((_33c||_33d)&&_340)?true:false;
4235this.enableFieldEvents=((_33c||_33d)&&_33e)?true:false;
4236this.forceCheckChanges=_341;
4237this.customFieldSelector=_33b.attr("data-custom-field-selector");
4238if(_33c||_33d){
4239var _342=($.browser.msie)?$(":input",this.formObj):$(this.formObj.elements);
4240this.initFields(_342);
4241if(_33f||_341){
4242this.addUnloadEvent();
4243}
4244if(this.autoFocus){
4245this.focusFirstElement();
4246}
4247_32b(_33a);
4248}
4249},initFields:function(_343,_344){
4250if(this.formObj.getAttribute("_inited")===null||_344){
4251var _345=this;
4252if(typeof this.customFieldSelector!=="undefined"){
4253_343=_343.filter(this.customFieldSelector);
4254}
4255var _346=_343.length;
4256var _347=$.dr.getPlugins("form");
4257for(var i=0;i<_347.length;i++){
4258_347[i].call(this,_343);
4259}
4260_343.filter("input[type=text],input[type=password],select,textarea").focus(_31d).blur(_31f).end();
4261if(this.autoFocus&&this.firstField===null&&!_30e&&$(this.formObj).filter(":visible").length>0){
4262_343.filter("input[type=text],input[type=password],select,textarea").filter(":visible").filter(":first").each(function(i){
4263_345.firstField=this;
4264_30e=true;
4265return false;
4266});
4267}
4268}
4269this.formObj.setAttribute("_inited","true");
4270},focusFirstElement:function(){
4271var obj=this.firstField;
4272if(obj!==null){
4273try{
4274obj.focus();
4275if(obj.type=="text"||obj.type=="textarea"){
4276obj.select();
4277}
4278}
4279catch(e){
4280}
4281}
4282},addUnloadEvent:function(){
4283if(typeof window.onbeforeunload!="function"){
4284var _34b=function(){
4285var _34c=false;
4286for(var i=0;i<_30d.length;i++){
4287var _34e=_30d[i];
4288var _34f=$(_34e).data("behavior");
4289if(_34f){
4290if(_34f.checkChanges&&!_34f.forceCheckChanges){
4291if($(_34e).dr.form.checkForChanges()){
4292_34c=true;
4293break;
4294}
4295}
4296}
4297}
4298if(_34c){
4299if($.browser.msie){
4300window.onerror=function(err){
4301window.event.returnValue=(err.toLowerCase().indexOf("unspecified error")>=0)?true:false;
4302};
4303}
4304var m=_310.WINDOW_ON_BEFORE_UNLOAD;
4305if(!$.browser.safari){
4306m="\n"+m+"\n";
4307}
4308if(typeof evt=="undefined"){
4309evt=window.event;
4310}
4311if(evt){
4312evt.returnValue=m;
4313}
4314$(document).trigger("showChangesWarning");
4315return m;
4316}
4317};
4318window.onbeforeunload=_34b;
4319}
4320}};
4321$.namespace("dr",{form:function(_352){
4322try{
4323if($.browser.msie){
4324$("fieldset:not(.noBackground)",this).filter(function(){
4325return ($("> legend",this).length==0);
4326}).addClass("noBackground");
4327}
4328_352=(typeof _352=="object")?$.extend(true,_30f,_352):_30f;
4329var _353=this.each(function(){
4330var _354=$(this);
4331var opts=$.extend(true,{},_352);
4332var _356=_354.attr("data-options");
4333if(_356){
4334_356=$.dr.utils.evalString(_356);
4335$.extend(true,opts,_356);
4336}
4337_354.data("dataOptions",opts);
4338if(_354.attr("data-behavior")=="standard"||_354.attr("data-behavior")=="search"){
4339if(this.tagName.toLowerCase()=="form"){
4340_354.trigger("beforeIndexFields");
4341_354.data("behavior",new _333(this,opts));
4342_354.trigger("afterIndexFields");
4343}
4344}
4345});
4346_30e=false;
4347return _353;
4348}
4349catch(e){
4350$.dr.utils.logError("Error when binding form behavior",e);
4351}
4352}});
4353function getFormObj(_357){
4354if(_357.length>0){
4355var f=$(_357[0]).data("behavior");
4356return (f)?f:{};
4357}
4358}
4359$.namespace("dr.form",{get:function(){
4360return getFormObj(this);
4361},setOptions:function(_359){
4362if(_359){
4363$.extend(getFormObj(this).options,_359);
4364}
4365$(document).trigger("afterFormSetOptions",[_359]);
4366},getChangedFields:function(){
4367var _35a=this[0];
4368return $(":input",_35a).not(":button").not(":hidden").filter(function(){
4369if($.dr.utils.hasFieldChanged(this)){
4370return true;
4371}
4372return false;
4373});
4374},enableCheckChanges:function(flag){
4375getFormObj(this).checkChanges=flag;
4376},enableAutoFocus:function(flag){
4377getFormObj(this).autoFocus=flag;
4378},reIndex:function(){
4379var _35d=getFormObj(this);
4380if(typeof _35d.fieldsWithValidation!=="undefined"){
4381_35d.fieldsWithValidation=[];
4382}
4383_35d.initFields(($.browser.msie)?$(":input",_35d):$(_35d.elements));
4384},initFields:function(_35e,_35f){
4385var _360=getFormObj(this);
4386_35f=(_35f===false)?false:true;
4387_360.initFields(_35e,_35f);
4388},checkForChanges:function(){
4389var _361=$(this).dr.form.getChangedFields();
4390return (_361.length>0)?true:false;
4391},displayChangedFields:function(){
4392return this.each(function(){
4393var _362=$(this).dr.form.getChangedFields();
4394console.log("Changed Fields for "+this._formName);
4395if(_362.length>0){
4396for(var i=0;i<_362.length;i++){
4397var _364=_362[i];
4398console.log("ID: <b>"+_364.id+"</b>");
4399console.log("     VALUE:"+$(_364).dr.form.field.getDefaultValue());
4400console.log("     NEW_VALUE:"+$(_364).val());
4401}
4402}else{
4403console.log("None");
4404}
4405});
4406},destroy:function(){
4407return this.each(function(){
4408if($(this).data("behavior")){
4409$(this).data("behavior",null);
4410}
4411});
4412}});
4413$.namespace("dr.form.field",{getDefaultValue:function(){
4414if(this.length){
4415var elem=this[0];
4416var type=elem.type;
4417if(type=="checkbox"||type=="radio"){
4418if(elem.defaultChecked){
4419return true;
4420}else{
4421return false;
4422}
4423}else{
4424if($.nodeName(elem,"select")){
4425var _367=[];
4426var _368=elem.options;
4427for(var i=0;i<_368.length;i++){
4428if(_368[i].defaultSelected){
4429var val=$.dr.utils.getSelectOptionValue(_368[i]);
4430if(type=="select-one"){
4431return val;
4432}else{
4433_367.push(val);
4434}
4435}
4436}
4437if(type=="select-one"&&_367.length===0){
4438return $.dr.utils.getSelectOptionValue(_368[0]);
4439}
4440return (_367.length>0)?_367.join(","):"";
4441}else{
4442return elem.defaultValue.replace(/\r/g,"");
4443}
4444}
4445}
4446}});
4447})(jQuery);
4448(function($){
4449var _36c={PAGES_START_AT_ZERO:false,PAGING_OVERRIDE:null,SELECT_ALL_ACROSS_PAGES_ENABLED:true,SELECT_ALL_RESULTS:"all",SUBMIT_TYPE:"get",CLIENTSIDE_SORTING_ENABLED:true,SEARCH_PERSIST_CALLBACK:function(){
4450}};
4451var _36d={SORT_BY:"Sort by {0}",INVALID_NUMBER:"Please enter a valid number.",VIEW_SELECTIONS:"View Selections",CLEAR_SELECTIONS:"Clear Selections",VIEW_ALL_MSG:"Only Selected {0} are Visible",VIEW_ALL_LINK:"Remove This Filter",ITEMS:"Items",ITEM:"Item",SELECTED:"Selected",SELECT_ALL:"Select/Clear All",ALL_ITEMS_SELECTED:"All {0} Selected",SELECT_ALL_ITEMS:"Select All {0} {1}"};
4452var _36e="TD.actionCol input[type=checkbox], TD.actionCol input[type=radio]";
4453var _36f=function(_370,_371){
4454var form=$("input:first",_370.container).parents("form");
4455if(form.length>0){
4456form=form[0];
4457var _373=$("input.listAction",form);
4458if(_373.length==1){
4459_373.val(_371);
4460form.submit();
4461}
4462}
4463};
4464var list=function(_375){
4465this.containerId=_375;
4466this.searchPanel=null;
4467this.container=(typeof _375=="string")?$("#"+_375):_375;
4468this.actionRowTop=$("DIV.actionRow",this.container);
4469this.actionRowBottom=$("DIV.actionRowBottom",this.container);
4470this.submitType=_36c.SUBMIT_TYPE;
4471this.hasRadios=false;
4472this.clientSideSortingEnabled=_36c.CLIENTSIDE_SORTING_ENABLED;
4473this.buttonsTop=[];
4474this.buttonsBottom=[];
4475this.currentSelectedItem=null;
4476this.selectedItems=[];
4477this.disabledBtnArray=[];
4478this.disabledButtons=[];
4479this.selectedItemsValues=[];
4480this.persistedSelectionCount=0;
4481this.paddedList="";
4482this.persistedSelections="";
4483this.init();
4484};
4485list.prototype={init:function(){
4486this.initPaging();
4487this.initCheckboxes(true);
4488this.initSelectAll();
4489this.initButtons();
4490this.refreshState(true);
4491this.initSelectionCounter();
4492this.initSortableColumns();
4493this.initTabs();
4494},initCheckboxes:function(init){
4495var _377=this;
4496if(init){
4497this.items=$(_36e,this.container).click(function(){
4498_377.toggle(this);
4499}).addClass("initalized");
4500}else{
4501$("TD.actionCol input[type=checkbox]:not(.initalized), TD.actionCol input[type=radio]:not(.initalized)",this.container).click(function(){
4502_377.toggle(this);
4503}).addClass("initalized");
4504this.items=$(_36e,this.container);
4505}
4506this.hasRadios=(this.items.filter(":radio:first").length>0)?true:false;
4507},initTabs:function(){
4508var _378=$(".listTabsContent",this.container);
4509var _379=$(".listTabs",this.container);
4510var _37a=this;
4511$(".search",_379).click(function(){
4512_37a.toggleTab("search");
4513return false;
4514});
4515$(".columns",_379).click(function(){
4516_37a.toggleTab("columns");
4517return false;
4518});
4519this.listTabsContent=_378;
4520this.listTabs=_379;
4521if($(".searchExpanded",this.container).val()=="true"&&!$(".listTabsContent",this.container).is(":visible")){
4522$(".search",_379).removeClass("selected");
4523_37a.toggleTab("search");
4524}
4525$("button.search",_378).removeAttr("disabled");
4526},toggleTab:function(id){
4527var _37c=this.listTabsContent;
4528var _37d=this.listTabs;
4529var _37e=$(".search",_37d);
4530var _37f=$(".columns",_37d);
4531var _380=(_37e.hasClass("selected"))?"search":(_37f.hasClass("selected"))?"columns":null;
4532$("div",_37d).removeClass("selected");
4533var _381=$(".searchExpanded",this.container);
4534if(_380==id){
4535_37c.hide();
4536_381.val("false");
4537}else{
4538_37c.show();
4539$("."+id,_37d).addClass("selected");
4540$("."+id,_37c).show();
4541_380=(id=="search")?"columns":"search";
4542if(id=="search"){
4543_381.val("true");
4544}else{
4545_381.val("false");
4546}
4547$("."+_380,_37c).hide();
4548var _382=$("."+id+" :input",_37c).filter("input[type=text], textarea, select");
4549if(_382.length>0){
4550try{
4551_382[0].focus();
4552}
4553catch(e){
4554}
4555}
4556}
4557_36c.SEARCH_PERSIST_CALLBACK(this.container,(_37e.hasClass("selected"))?"true":"false");
4558},initSelectAll:function(){
4559var _383=this;
4560var th=$("thead th.actionCol:first",this.container);
4561if(th.length>0){
4562th.html("<input title=\""+_36d.SELECT_ALL+"\" type=\"checkbox\" class=\"selectAll\" />");
4563this.selectAllCheckbox=$("INPUT.selectAll",this.container).click(function(){
4564_383.toggleSelectAll();
4565}).get(0);
4566if(this.hasRadios||this.items.length===0){
4567$(this.selectAllCheckbox).hide().insertAfter("<span>&nbsp;</span>");
4568}
4569}
4570},initButtons:function(){
4571var _385=(this.actionRowTop)?this.actionRowTop:this.actionRowBottom;
4572var _386=this;
4573if(_385){
4574var _387=$("BUTTON.single,BUTTON.multiple",this.actionRowBottom);
4575var _388=$("BUTTON.single,BUTTON.multiple",_385).each(function(i){
4576var btn=$(this);
4577var _38b="_single";
4578var _38c=btn.hasClass("single");
4579var _38d=btn.hasClass("multiple");
4580if(_38c||_38d){
4581_386.buttonsTop[_386.buttonsTop.length]={buttonObj:this,name:this.name,isSingle:_38c,isMultiple:_38d};
4582if(_387.length>0){
4583_386.buttonsBottom[_386.buttonsBottom.length]={buttonObj:_387[i],name:_387[i].name,isSingle:_38c,isMultiple:_38d};
4584}
4585}
4586});
4587}
4588$("UL.buttons BUTTON[name]",this.container).not("[onclick]").click(function(){
4589var _38e=$(this);
4590var name=_38e.attr("name");
4591var _390=$(this).attr("data-confirm-action");
4592if(_390){
4593var func=function(ok){
4594if(ok){
4595_386.submitActionButton(_38e[0],name);
4596}
4597};
4598$.dr.confirm(_390,func);
4599}else{
4600_386.submitActionButton(this,name);
4601}
4602});
4603},submitActionButton:function(btn,_394){
4604btn=(typeof btn=="String")?document.getElementById(btn):btn;
4605_394=(_394)?_394:btn.name;
4606_36f(this,_394);
4607},initSortableColumns:function(){
4608var _395=$("TABLE.clientSideSort:first",this.container);
4609var _396=$("TABLE THEAD A",this.container).filter(function(){
4610var href=this.href;
4611if(!href){
4612$(this).css("cursor","pointer");
4613return true;
4614}
4615href=href.replace(window.location.href,"");
4616return (href.length==0||href.indexOf("#")===0);
4617}).each(function(){
4618$(this).attr("title",_36d.SORT_BY.replace("{0}",$(this).text()));
4619});
4620$("TABLE THEAD TH",this.container).filter(function(){
4621return $("a",this).length>0;
4622}).addClass("sortable");
4623if(_395.length>0||(this.totalPages==1&&this.clientSideSortingEnabled)){
4624if(typeof $.fn.tablesorter=="function"){
4625if(_395.length==0){
4626_395=$("TABLE.dataTable",this.container);
4627}
4628var _398=0;
4629var _399=0;
4630var _39a=($("TABLE THEAD TH.actionCol",this.container).length>0)?1:0;
4631$("TABLE THEAD TH",this.container).not("TH.actionCol").each(function(_39b){
4632var td=$(this);
4633if(td.hasClass("ascending")){
4634_398=_39b+_39a;
4635}else{
4636if(td.hasClass("descending")){
4637_398=_39b+_39a;
4638_399=1;
4639}
4640}
4641});
4642var _39d={sortList:[[_398,_399]]};
4643if(_39a){
4644_39d.headers={0:{sorter:false}};
4645}
4646_395.tablesorter(_39d);
4647}
4648}else{
4649var _39e=this;
4650_396.click(function(){
4651var _39f=$(this).attr("data-sort-column");
4652_39e.changeSortColumn(this,_39f);
4653return false;
4654});
4655}
4656},initSelectionCounter:function(){
4657this.persistedSelections=$(".persistedSelections",this.container);
4658var _3a0=$(".itemCount",this.container);
4659this.allSelected=false;
4660if(this.persistedSelections.length>0&&_3a0.length){
4661this.submitType="post";
4662var val=this.persistedSelections.val();
4663if(val=="all"){
4664this.allSelected=true;
4665this.persistedSelectionCount=this.totalItems-this.items.length;
4666}else{
4667var _3a2=val.replace(/,\s/g,",");
4668var _3a3=","+_3a2+",";
4669this.items.each(function(){
4670var _3a4=new RegExp(","+this.value+",");
4671if(_3a4.test(_3a3)){
4672_3a3=_3a3.replace(_3a4,",");
4673}
4674});
4675var _3a5="";
4676var _3a6=_3a3.length;
4677if(_3a6>2){
4678_3a5=_3a3.substring(1,_3a3.length-1);
4679}
4680$(".persistedSelections",_3a0).val(_3a5);
4681this.persistedSelectionCount=(_3a5.length==0)?0:_3a5.split(",").length;
4682}
4683var _3a7=$(".itemType",_3a0);
4684this.itemType=(_3a7.length>0)?_3a7.val():_36d.ITEMS;
4685this.viewingOnlySelections=($(".viewingOnlySelections",_3a0).val()=="true")?true:false;
4686var _3a8=$(".itemTypeSingular",_3a0);
4687this.itemTypeSingular=(_3a8.length>0)?_3a8.val():_36d.ITEM;
4688var _3a9=$(".allSelectedMessage",_3a0).val();
4689if(!_3a9){
4690_3a9=_36d.ALL_ITEMS_SELECTED.replace("{0}",this.itemType);
4691}
4692var _3aa=$(".viewingOnlySelectionsMessage",_3a0).val();
4693if(!_3aa){
4694_3aa=_36d.VIEW_ALL_MSG.replace("{0}",this.itemType);
4695}
4696var _3ab=$(".viewingOnlySelectionsLink",_3a0).val();
4697if(!_3ab){
4698_3ab=_36d.VIEW_ALL_LINK;
4699}
4700var _3ac=_36d.SELECT_ALL_ITEMS.replace("{0}","<strong>"+this.totalItems+"</strong>").replace("{1}",this.itemType);
4701var _3ad=_36d.VIEW_ALL_MSG.replace("{0}",this.itemType);
4702var s=[];
4703s.push("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr>");
4704s.push("<td class=\"count\">"+this.persistedSelectionCount+this.selectedItems.length+"</td>");
4705s.push("<td class=\"itemLabel\">"+this.itemType+"</td>");
4706s.push("<td>");
4707s.push("<div class=\"selectAll\" style=\"display:none\"><span class=\"link\">"+_3ac+"</span></div>");
4708s.push("<div class=\"selected\" style=\"display:none\"><span class=\"msg\">"+_3a9+"</span></div>");
4709s.push("</td>");
4710if(this.viewingOnlySelections){
4711s.push("<td><div class=\"selectedFilter\" ><span class=\"msg\">"+_3aa+" &nbsp;  | &nbsp; <span class=\"msgLink\">"+_3ab+"</span></span></div></td>");
4712}else{
4713s.push("<td class=\"view\"><span class=\"link\">"+_36d.VIEW_SELECTIONS+"</span></td>");
4714}
4715s.push("<td class=\"clear\"><span class=\"link\">"+_36d.CLEAR_SELECTIONS+"</span></td>");
4716s.push("</tr></table>");
4717_3a0.append(s.join(""));
4718this.itemLabel=$(".itemLabel",_3a0);
4719if(this.persistedSelectionCount>0){
4720$(".clear, .view",_3a0).show();
4721}else{
4722$(".clear, .view",_3a0).hide();
4723}
4724this.refreshSelectionCount();
4725var _3af=this;
4726$(".selectAll .link",_3a0).click(function(){
4727var _3b0=_36c.SELECT_ALL_RESULTS;
4728if(_3af.totalPages==1){
4729_3b0=_3af.persistedSelections;
4730}
4731$(".persistedSelections",_3a0).val(_3b0);
4732$(".clear, .selected",_3a0).show();
4733$(".selectAll, .view",_3a0).hide();
4734$(".count",_3a0).text(_3af.totalItems);
4735});
4736$(".clear .link",_3a0).click(function(){
4737_3af.selectAllCheckbox.checked=false;
4738_3af.toggleSelectAll();
4739_3af.persistedSelectionCount=0;
4740$(".persistedSelections",_3a0).val("");
4741$(".count",_3a0).text(0);
4742$("div, .selected, .clear, .view, .selectAll",_3a0).hide();
4743if(_3af.viewingOnlySelections){
4744_36f(_3af,"viewAll");
4745}
4746});
4747if(this.allSelected){
4748$(".selected",_3a0).show();
4749}
4750$(".view .link",_3a0).click(function(){
4751_36f(_3af,"viewSelections");
4752});
4753$(".msgLink",_3a0).click(function(){
4754_36f(_3af,"viewAll");
4755});
4756}
4757},refreshSelectionCount:function(){
4758var _3b1=this.persistedSelectionCount+this.selectedItems.length;
4759$(".itemCount .count",this.container).text(_3b1);
4760if(this.itemLabel){
4761var _3b2=this.itemType;
4762if(_3b1==1){
4763_3b2=this.itemTypeSingular;
4764}
4765this.itemLabel.text(_3b2+" "+_36d.SELECTED);
4766}
4767var view=$(".itemCount .view",this.container);
4768if(_3b1==0||$(".persistedSelections",this.container).val()==_36c.SELECT_ALL_RESULTS){
4769view.hide();
4770}else{
4771view.show();
4772}
4773},toggleSelectAllMsg:function(_3b4){
4774if(_36c.SELECT_ALL_ACROSS_PAGES_ENABLED){
4775var _3b5=$(".itemCount",this.container);
4776if(_3b4){
4777if(!this.viewingOnlySelections){
4778$(".selectAll").show();
4779$(".selected",_3b5).hide();
4780}
4781}else{
4782if(this.allSelected){
4783this.persistedSelectionCount==0;
4784this.allSelected=false;
4785$(".count",_3b5).text(0);
4786}
4787if(this.persistedSelectionCount==0){
4788$(".clear",_3b5).hide();
4789}
4790$("div:not(.selectedFilter)",_3b5).hide();
4791if($(".persistedSelections",this.container).val()==_36c.SELECT_ALL_RESULTS){
4792$(".persistedSelections",this.container).val("");
4793this.persistedSelectionCount=0;
4794}
4795}
4796}
4797},refreshState:function(init){
4798this.disabledBtnArray=[];
4799this.disabledButtons=[];
4800this.disabledButtonNameArray=[];
4801var _3b7=this;
4802this.selectedItems=this.items.filter(":checked").each(function(){
4803if(typeof this.onclick=="function"){
4804this.onclick();
4805}
4806_3b7.updateDisabledButtons(this,true,false);
4807if(init){
4808_3b7.highlightRow(this);
4809}
4810});
4811this.refreshButtonState();
4812this.refreshSelectAllState(false);
4813},updateDisabledButtons:function(item,add,_3ba){
4814var _3bb=item.getAttribute("data-disabled-buttons");
4815if(_3bb!==undefined&&_3bb!==null){
4816var _3bb=_3bb.trim().split(" ");
4817for(var i=0;i<_3bb.length;i++){
4818var _3bd=_3bb[i];
4819var _3be=0;
4820var _3bf=this.disabledButtons[_3bd];
4821if(_3bf!==undefined){
4822if(_3ba&&!add){
4823_3be=_3bf-1;
4824}else{
4825_3be=_3bf+1;
4826}
4827}else{
4828if(add){
4829_3be=1;
4830}
4831}
4832this.disabledButtons[_3bd]=_3be;
4833}
4834}
4835},refreshButtonState:function(){
4836for(var j=0;j<this.buttonsTop.length;j++){
4837var btn=this.buttonsTop[j];
4838var _3c2=(this.selectedItems.length==0)?true:false;
4839if(this.disabledButtons[btn.name]!==undefined){
4840if(this.disabledButtons[btn.name]>0){
4841_3c2=true;
4842}
4843}
4844if(!_3c2){
4845if(this.selectedItems.length>=2&&btn.isSingle){
4846_3c2=true;
4847}
4848}
4849btn.buttonObj.disabled=_3c2;
4850if(this.buttonsBottom.length>0){
4851this.buttonsBottom[j].buttonObj.disabled=_3c2;
4852}
4853}
4854},refreshSelectAllState:function(_3c3){
4855if(this.selectAllCheckbox){
4856if(!this.selectAllCheckbox.disabled){
4857this.selectAllCheckbox.checked=(this.selectedItems.length==this.items.length)?true:false;
4858}
4859}
4860if(!_3c3){
4861this.refreshSelectionCount();
4862}
4863},toggle:function(item){
4864if(item.type=="radio"){
4865if(this.currentSelectedItem!=item&&this.currentSelectedItem!==null){
4866this.highlightRow(this.currentSelectedItem);
4867}
4868this.currentSelectedItem=item;
4869}else{
4870if(!item.checked){
4871this.toggleSelectAllMsg(false);
4872}
4873}
4874this.highlightRow(item);
4875this.refreshSelectionCount();
4876this.selectedItems=this.items.filter(":checked");
4877this.updateDisabledButtons(item,item.checked,true);
4878this.refreshButtonState();
4879this.refreshSelectAllState(false);
4880},toggleSelectAll:function(){
4881var _3c5=this.items;
4882var _3c6=(this.selectAllCheckbox&&this.selectAllCheckbox.checked)?true:false;
4883this.items.attr("checked",_3c6);
4884this.tableRows=$("TABLE.dataTable > TBODY > TR:not(.unselectable)",this.container);
4885if(_3c6){
4886this.tableRows.addClass("selected");
4887}else{
4888this.tableRows.removeClass("selected");
4889}
4890this.refreshState();
4891this.toggleSelectAllMsg(_3c6);
4892},highlightRow:function(obj){
4893var _3c8=(obj.checked)?true:false;
4894var row=obj.parentNode.parentNode;
4895if(_3c8){
4896$(row).addClass("selected");
4897}else{
4898$(row).removeClass("selected");
4899}
4900},changeSortColumn:function(obj,_3cb){
4901var _3cc="ascending";
4902var _3cd=$(obj).attr("data-default-sort-direction");
4903if(_3cd){
4904if(_3cd.indexOf("desc")>-1||_3cd.indexOf("descending")>-1){
4905_3cc="descending";
4906}
4907}
4908var _3ce=_3cc;
4909if($(obj.parentNode).hasClass("ascending")||$(obj.parentNode).hasClass("descending")){
4910var _3cf=$(obj.parentNode).hasClass("descending")?"descending":"ascending";
4911_3ce=(_3cf=="ascending")?"descending":"ascending";
4912}
4913if(this.sortColumn.length>0&&this.sortColumn.length>0){
4914if(DR.Widgets.Button!==undefined){
4915DR.Widgets.Button.disableSearchButton=function(){
4916};
4917}
4918this.sortColumn.val(_3cb);
4919this.sortDirection.val(_3ce);
4920this.changePage(1,false,null);
4921}else{
4922if(console){
4923console.log("sortColumn and/or  sortDirection not found");
4924}
4925}
4926},initPaging:function(){
4927this.controls=$(".pagination",this.container);
4928this.itemCountContainers=$(".items",this.container);
4929this.refreshItemCount();
4930var _3d0=this;
4931$("A",this.controls).click(function(){
4932_3d0.handlePagerClick(this);
4933return false;
4934});
4935this.pageInputs=$("INPUT.currentPage",this.controls);
4936this.pageInputs.val(this.originalPageValue);
4937this.pageInputs.keypress(function(evt){
4938_3d0.doEnterPush(evt,this);
4939});
4940this.pageUrl=$(".pageUrl",this.container);
4941this.searchFilters=$(".searchFilters",this.container);
4942this.sortColumn=$(".sortColumn",this.container);
4943this.sortDirection=$(".sortDirection",this.container);
4944this.resetPagerState();
4945},refreshItemCount:function(){
4946this.originalPage=$(".originalPage",this.container);
4947this.originalPageValue=parseInt(this.originalPage.val(),10);
4948this.currentPage=this.originalPageValue;
4949this.totalPages=parseInt($("input.totalPages",this.container).val(),10);
4950this.totalItems=$(".totalItems",this.container).val();
4951this.firstItem=$(".firstItemOnPage",this.container).val();
4952this.lastItem=$(".lastItemOnPage",this.container).val();
4953$(".totalItems",this.itemCountContainers).text(this.totalItems);
4954$(".firstItem",this.itemCountContainers).text(this.firstItem);
4955$(".lastItem",this.itemCountContainers).text(this.lastItem);
4956this.itemCountContainers.css("visibility","visible");
4957},handlePagerClick:function(link){
4958link=$(link);
4959if(link.hasClass("off")){
4960return;
4961}else{
4962if(link.hasClass("first")){
4963this.changePage(1);
4964}else{
4965if(link.hasClass("prev")){
4966this.changePage(this.originalPageValue-1);
4967}else{
4968if(link.hasClass("next")){
4969this.changePage(this.originalPageValue+1);
4970}else{
4971if(link.hasClass("last")){
4972this.changePage(this.totalPages);
4973}
4974}
4975}
4976}
4977}
4978},resetPagerState:function(){
4979var _3d3=this.totalPages;
4980var _3d4=this.currentPage;
4981$(".totalPages",this.controls).text(_3d3);
4982var _3d5=false;
4983if(_3d3==1){
4984_3d5=true;
4985$("A",this.controls).addClass("off");
4986}else{
4987if(_3d4==1){
4988$("A.first, A.prev",this.controls).addClass("off");
4989$("A.next, A.last",this.controls).removeClass("off");
4990}else{
4991if(this.currentPage==_3d3){
4992$("A.first, A.prev",this.controls).removeClass("off");
4993$("A.next, A.last",this.controls).addClass("off");
4994}else{
4995$("A",this.controls).removeClass("off");
4996}
4997}
4998}
4999if(_3d5){
5000this.pageInputs.attr("disabled","disabled");
5001}else{
5002this.pageInputs.removeAttr("disabled");
5003}
5004},doEnterPush:function(evt,el){
5005var key=(evt.which)?evt.which:event.keyCode;
5006if(key==13){
5007var _3d9=el.value;
5008if(isNaN(_3d9)||_3d9<0){
5009alert(_36d.INVALID_NUMBER);
5010el.select();
5011if(evt.preventDefault){
5012evt.preventDefault();
5013}else{
5014if(window.event){
5015window.event.cancelBubble=true;
5016window.event.returnValue=false;
5017}
5018}
5019return false;
5020}else{
5021if(_3d9>this.totalPages){
5022_3d9=this.totalPages;
5023}else{
5024if(parseInt(_3d9,10)===0){
5025_3d9=1;
5026}
5027}
5028this.changePage(_3d9,true,evt);
5029}
5030}
5031},changePage:function(_3da,_3db,evt){
5032this.currentPage=_3da;
5033if(_36c.PAGES_START_AT_ZERO){
5034_3da--;
5035}
5036if(typeof _36c.PAGING_OVERRIDE=="function"){
5037_36c.PAGING_OVERRIDE(this.container,_3da);
5038}else{
5039if(this.submitType.toLowerCase()=="post"){
5040var _3dd=$(".currentPage",this.container);
5041_3dd.val(_3da);
5042_3dd[0].form.submit();
5043}else{
5044var url="";
5045url+=this.pageUrl.val()+"?";
5046url+=this.searchFilters.val();
5047url+="&"+this.sortColumn[0].name+"="+this.sortColumn.val();
5048url+="&"+this.sortDirection[0].name+"="+this.sortDirection.val();
5049url+="&page="+_3da;
5050window.location=url;
5051}
5052}
5053if(_3db){
5054if(evt.preventDefault){
5055evt.preventDefault();
5056}else{
5057if(window.event){
5058window.event.cancelBubble=true;
5059window.event.returnValue=false;
5060}
5061}
5062return false;
5063}
5064}};
5065$.dr.list={getMessages:function(){
5066return _36d;
5067},getDefaults:function(){
5068return _36c;
5069},setDefaults:function(_3df){
5070if(_3df){
5071$.extend(_36c,_3df);
5072}
5073$(document).trigger("afterListSetDefaults",[_3df]);
5074},setMessages:function(_3e0){
5075if(_3e0){
5076$.extend(_36d,_3e0);
5077}
5078$(document).trigger("afterListSetMessages",[_3e0]);
5079}};
5080var _3e1=function(evt,_3e3){
5081var _3e4=$("DIV.listControl",_3e3).each(function(_3e5){
5082var _3e6=$("TABLE.dataTable",this);
5083if(_3e6.length>0||$("div.listTabs",this).length>0){
5084var id=this.getAttribute("id");
5085if(!id){
5086id="list_"+_3e5+"_"+new Date().getTime();
5087this.id=id;
5088}
5089$(this).data("list",new list(id));
5090}
5091});
5092};
5093$.dr.addUnobtrusiveEvent(_3e1);
5094$.namespace("dr",{list:function(){
5095return this.each(function(){
5096var _3e8=this;
5097if(this.tagName!="body"){
5098_3e8=this.parentNode;
5099}
5100_3e1(null,_3e8);
5101});
5102}});
5103$.namespace("dr.list",{refreshState:function(){
5104return this.each(function(){
5105var _3e9=$(this).data("list");
5106if(_3e9){
5107_3e9.refreshItemCount();
5108_3e9.resetPagerState();
5109_3e9.initCheckboxes(false);
5110_3e9.refreshState();
5111}
5112});
5113}});
5114})(jQuery);
5115DR.Utils.Logger=function(id){
5116this.id=id;
5117this.items=null;
5118this.inited=false;
5119this.disabled=false;
5120};
5121DR.Utils.Logger.prototype={init:function(str){
5122if(this.overlay===undefined){
5123var d=document.createElement("div");
5124d.id=this.id+"_logger";
5125var c=document.createElement("div");
5126c.className="modalScrollerMediumHeight";
5127c.style.width="300px";
5128c.style.height="300px";
5129this.overlayContent=c;
5130var b=document.createElement("div");
5131b.className="pageButtons";
5132b.innerHTML="<button onclick=\""+this.id+".clear();\" >Clear</button><button onclick=\"overlayStack.hideCurrent();\" style=\"margin-right:0;\">Close</button>";
5133d.appendChild(c);
5134d.appendChild(b);
5135var _3ef=$("div.content:first")||$("body");
5136_3ef.append(d);
5137this.overlay=new DR.Widgets.InlineModelessOverlay(this.id+"_logger");
5138this.overlay.setTitle("Logger");
5139this.overlay.setSize(350,350);
5140this.overlay.show();
5141this.inited=true;
5142}
5143},hide:function(str){
5144if(this.inited){
5145overlayStack.hideCurrent();
5146}
5147},clear:function(str){
5148if(this.inited){
5149this.items=null;
5150this.overlayContent.innerHTML="";
5151}
5152},disable:function(){
5153this.disabled=true;
5154},log:function(str,_3f3){
5155if(this.disabled){
5156return;
5157}
5158if(!this.inited){
5159this.init();
5160overlayStack.disableCurrent();
5161}
5162str=str+"";
5163if(this.items===null){
5164this.items=[str];
5165}else{
5166this.items.push(str);
5167}
5168if(_3f3!==false){
5169this.refresh();
5170}
5171},refresh:function(str){
5172var h="<table cellpadding=\"0\" cellspacing=\"0\" class=\"dataTable\" style=\"border:1px solid #666;\">";
5173h+="<thead><th style=\"width:20px;\">ID</th><th>Value</th></thead>";
5174h+="<tbody>";
5175var _3f6=this.items;
5176for(var i=0;i<_3f6.length;i++){
5177h+="<tr><td>"+(i+1)+"</td><td>"+_3f6[i]+"</td></tr>";
5178}
5179h+="</tbody></table>";
5180this.overlayContent.innerHTML=h;
5181this.refreshScroll();
5182var _3f8=this;
5183var func=function(){
5184_3f8.refreshScroll();
5185};
5186window.setTimeout(func,1000);
5187},refreshScroll:function(str){
5188this.overlayContent.scrollTop=parseInt(this.overlayContent.offsetHeight,10);
5189}};
5190var DR_Utils_Logger=new DR.Utils.Logger("DR_Utils_Logger");
5191function log(_3fb){
5192DR_Utils_Logger.log(_3fb);
5193}
5194(function($){
5195$.namespace("dr",{message:function(type){
5196return this.each(function(){
5197var _3fe=$(this);
5198var _3ff="messageDialog";
5199var _400=type;
5200_3fe.wrap("<div class=\""+_3ff+"\" ><div class=\"messageDialogContent\"></div></div>").removeAttr("style").addClass(_400).parent().dr.shadows().prepend("<a class=\"close\" href=\"#\">Close</a>");
5201$("."+_3ff).css({"top":"-"+$("."+_3ff).height()+"px","left":($(window).width()/2)-($("."+_3ff).width()/2)+"px"}).animate({top:0},1000);
5202$("a.close").click(function(){
5203$("."+_3ff).animate({top:"-"+$("."+_3ff).height()+"px"},500);
5204return false;
5205});
5206$(window).resize(function(){
5207$("."+_3ff).animate({"left":($(window).width()/2)-($("."+_3ff).width()/2)+"px"});
5208});
5209});
5210}});
5211})(jQuery);
5212DR.Widgets.ModelessOverlay=function(id,url,_403){
5213this.id=id;
5214this.parentId=-1;
5215this.parentWindowIndex=-1;
5216this.url=url;
5217this.stackID="";
5218this.title="&nbsp;";
5219this.built=false;
5220this.isOpen=false;
5221this.hasFocus=false;
5222this.hasChildren=false;
5223this.hasModalChildren=false;
5224this.blurWindow=false;
5225this.isInStack=false;
5226this.modalMaskBuilt=false;
5227this.modelessMaskBuilt=false;
5228this.loading=false;
5229this.cancelFunction="";
5230this.callBackFunction="";
5231this.abortFunction="";
5232this.modalType="Modeless";
5233this.inline=false;
5234this.titleBarHeight=28;
5235this.borderWidth=2;
5236this.inlineDialogPadding=10;
5237this.shadowRight=36;
5238this.shadowBottom=36;
5239this.contentWidth=580;
5240this.contentHeight=520;
5241this.waitToLoadIframe=true;
5242this.ieTimeout=false;
5243this.enableDragging=true;
5244this.dragObject=null;
5245this.autoCenter=true;
5246this.scrollBarsHidden=false;
5247this.width=this.contentWidth+this.shadowRight+(this.borderWidth*2);
5248this.height=this.contentHeight+this.shadowBottom+this.titleBarHeight+(this.borderWidth*2);
5249this.optionalClassName=(_403)?_403:null;
5250};
5251DR.Widgets.ModelessOverlay.prototype={show:function(){
5252this.checkBrowser();
5253if(window!=top&&!this.inline){
5254this.addToStack();
5255parent.overlayStack.addChildWindow(this,overlayStack.currentWindow);
5256}else{
5257if(!this.built){
5258this.addToStack();
5259this.build();
5260}
5261if(!this.modalMaskBuilt){
5262this.buildModalMask();
5263}
5264if(this.modalType=="Modal"){
5265this.modalMask.style.display="block";
5266this.modalMaskIEOver.style.display="block";
5267this.modalMask.className="modalOverlayMask";
5268}
5269if(this.modalType=="Modeless"){
5270this.modalMask.className="modelessOverlayMask";
5271}
5272this.isOpen=true;
5273this.position();
5274var func=function(){
5275overlayStack.getCurrent().center(false);
5276};
5277window.setTimeout(func,10);
5278this.focus();
5279this.refreshMaskSize();
5280this.refreshSize();
5281this.dialog.style.display="block";
5282this.showLoading();
5283this.hideDocScrollBars();
5284this.center();
5285if(!this.inline){
5286if(this.waitToLoadIframe){
5287var _405=function(){
5288overlayStack.buildIframe();
5289};
5290window.setTimeout(_405,50);
5291this.ieTimeout=true;
5292}else{
5293this.buildIframe();
5294}
5295if(this.modalType=="Modal"){
5296this.addEvent(document,"keypress",DR.Utils.suppressKeypress,1);
5297}
5298}
5299}
5300},position:function(){
5301if(this.anchorId){
5302this.setPositionTo();
5303}else{
5304this.center();
5305}
5306},setPositionTo:function(){
5307var _406=new DR.Utils.Position(this.dialog);
5308this.dialog.style.position="absolute";
5309_406.setRelativePosition(this.anchorId,DR.Utils.Position.ON_LEFT,DR.Utils.Position.DRAW_RIGHT,DR.Utils.Position.ON_TOP,DR.Utils.Position.DRAW_DOWN,(0-this.shadowRight/2),0,false);
5310},center:function(_407){
5311if(!this.anchorId){
5312var w=this.width;
5313var h=this.height;
5314overlayStack.getPageSize();
5315var x,y;
5316var _40b=0;
5317var _40c=0;
5318var _40d=0;
5319var _40e=(DR.Utils.BrowserDetect.browser=="Explorer"&&DR.Utils.BrowserDetect.version<7)?true:false;
5320if(document.documentElement){
5321if(_40e){
5322if($("body.modalPage").length==0&&!_407){
5323_40b=18;
5324_40c=1;
5325_40d=9;
5326}
5327x=document.documentElement.scrollLeft+document.body.scrollLeft;
5328y=document.documentElement.scrollTop+document.body.scrollTop;
5329}
5330}
5331if(this.autoCenter||(!this.autoCenter&&!_407)){
5332if(_40e){
5333this.dialog.style.left=(x+(overlayStack.doc.windowWidth/2)-((w-_40b)/2+_40c))+"px";
5334this.dialog.style.top=(y+(overlayStack.doc.windowHeight/2)-((h-_40b)/2+_40d))+"px";
5335}else{
5336this.dialog.style.left=Math.round(overlayStack.doc.windowWidth/2-w/2)+"px";
5337this.dialog.style.top=Math.round(overlayStack.doc.windowHeight/2-h/2)+"px";
5338}
5339}
5340}
5341},refreshMaskSize:function(){
5342overlayStack.refreshMaskSize();
5343},addToStack:function(){
5344if(!this.isInStack){
5345this.stackId=overlayStack.add(this);
5346this.isInStack=true;
5347}
5348},checkBrowser:function(){
5349if(document.all){
5350this.browserType="IE";
5351this.filtersSupported=true;
5352this.iframeTransparency=true;
5353this.waitToLoadIframe=true;
5354}else{
5355this.broswerType="Standard";
5356this.filtersSupported=false;
5357this.iframeTransparency=false;
5358this.waitToLoadIframe=false;
5359}
5360this.isIE7=(navigator.appVersion.indexOf("MSIE 7")>-1);
5361},focus:function(){
5362if(overlayStack.checkAnyOpen()&&this.isOpen){
5363if(!this.hasChildren&&!this.hasModalChildren){
5364overlayStack.bringToFront(this.stackId);
5365}else{
5366if(this.hasChildren){
5367window.frames[this.iframe.id].overlayStack.focusCurrent(false);
5368}
5369}
5370if(window!=top){
5371parent.overlayStack.setCurrentHasChildren(true);
5372parent.overlayStack.blurCurrent();
5373}
5374overlayStack.blurOtherWindows();
5375}else{
5376if(window!=top){
5377parent.overlayStack.focusCurrent(true);
5378}
5379}
5380this.hasFocus=true;
5381this.isBlurred=false;
5382},blur:function(){
5383DR.Utils.addCSSClass(this.contentTable,"inActive");
5384if(this.hasChildren&&this.blurWindow){
5385this.blurWindow=false;
5386window.frames[this.iframe.id].overlayStack.blurCurrent();
5387}
5388this.isBlurred=true;
5389},cancel:function(){
5390if(typeof this.cancelFunction=="function"){
5391this.cancelFunction();
5392}
5393this.close();
5394},setCancelFunction:function(func){
5395if(typeof func=="function"){
5396this.cancelFunction=func;
5397}
5398},setCallBackFunction:function(func){
5399if(typeof func=="function"){
5400this.callBackFunction=func;
5401}
5402},setAbortFunction:function(func){
5403if(typeof func=="function"||func===null){
5404this.abortFunction=func;
5405}
5406},callBack:function(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,_41b){
5407if(typeof this.callBackFunction=="function"){
5408this.callBackFunction(arg1,arg2,arg3,arg3,arg4,arg5,arg6,arg7,arg8,arg9,_41b);
5409}
5410},close:function(){
5411if(typeof this.abortFunction=="function"){
5412this.abortFunction();
5413}else{
5414this.isOpen=false;
5415this.hasFocus=false;
5416this.dialog.style.display="none";
5417overlayStack.setCurrentWindow(this.stackId);
5418if(!overlayStack.checkAnyModalOpen()){
5419if(this.modalType=="Modal"){
5420this.modalMask.style.display="none";
5421this.modalMaskIEOver.style.display="none";
5422this.enableScrollBars();
5423}
5424}
5425if(!overlayStack.checkAnyModelessOpen()||!overlayStack.checkAnyModelessOpen()){
5426if(window!=top){
5427parent.overlayStack.setCurrentHasChildren(false);
5428parent.overlayStack.focusCurrent(true);
5429}
5430}
5431if(!this.inline){
5432if(this.parentId>-1&&this.parentWindowIndex>-1){
5433window.frames[overlayStack.windows[this.parentId].iframe.id].overlayStack.destroyWindow(this.parentWindowIndex);
5434}
5435overlayStack.setCurrentHasModalChildren(false);
5436overlayStack.destroyCurrent();
5437if(this.modalType=="Modal"){
5438this.removeEvent(document,"keypress",DR.Utils.suppressKeypress,1);
5439}
5440}else{
5441overlayStack.bringOpenOverlayToFront();
5442}
5443}
5444},hideDocScrollBars:function(){
5445if(this.modalType=="Modal"){
5446if(this.browserType=="IE"&&DR.Utils.BrowserDetect.version<7){
5447var a=document.getElementsByTagName("html")[0];
5448a.style.overflow="hidden";
5449this.scrollBarsHidden=true;
5450}else{
5451}
5452}
5453},enableScrollBars:function(){
5454if(!overlayStack.checkAnyModalOpen()&&this.modalType=="Modal"){
5455if(this.browserType=="IE"){
5456var a=document.getElementsByTagName("html")[0];
5457a.style.overflow="auto";
5458this.scrollBarsHidden=false;
5459}else{
5460}
5461}
5462},hideLoading:function(){
5463if(!this.inline&&!this.ieTimeout&&this.iframeSpacer){
5464this.iframeSpacer.style.display="none";
5465this.iframe.style.display="block";
5466this.iframe.style.visibility="visible";
5467this.loading=false;
5468if(document.addEventListener){
5469}
5470overlayStack.setCurrentHasChildren(false);
5471}
5472},showLoading:function(){
5473if(!this.inline){
5474this.iframeSpacer.style.display="block";
5475if(this.iframe){
5476this.iframe.style.display="none";
5477this.iframe.style.visibility="hidden";
5478}
5479this.loading=true;
5480}
5481},buildModalMask:function(){
5482if(document.getElementById("modalMask")===null){
5483var d=document.createElement("div");
5484d.id="modalMask";
5485d.className="modalOverlayMask";
5486var f=document.createElement("IFRAME");
5487f.className="modalOverlayMaskIframe";
5488f.id="modalOverlayMaskIframe";
5489f.src=$.dr.BLANK_PAGE_URL;
5490d.appendChild(f);
5491var dd=document.createElement("div");
5492dd.className="modalOverlayMaskDiv";
5493dd.id="modalOverlayMaskDiv";
5494this.modalMaskIframe=f;
5495this.modalMaskIEOver=DR.Utils.addToBody(dd);
5496this.modalMask=DR.Utils.addToBody(d);
5497f=null;
5498dd=null;
5499d=null;
5500}else{
5501this.modalMask=document.getElementById("modalMask");
5502this.modalMaskIframe=document.getElementById("modalOverlayMaskIframe");
5503this.modalMaskIEOver=document.getElementById("modalOverlayMaskDiv");
5504}
5505this.modalMaskBuilt=true;
5506},buildModelessMask:function(){
5507if(!document.body.modelessMask){
5508var d=document.createElement("div");
5509d.id="modelessMask";
5510d.className="modelessOverlayMask";
5511this.modelessMask=DR.Utils.addToBody(d);
5512d=null;
5513}
5514this.modelessMaskBuilt=true;
5515},build:function(){
5516var _422=document.getElementsByTagName("BODY")[0];
5517var _423=document.createElement("div");
5518_423.id="modal_"+this.id;
5519_423.className="modalOverlay";
5520var _424=this;
5521var ie6=false;
5522var _426=" colspan=\"2\"  rowspan=\"2\"";
5523if(DR.Utils.BrowserDetect.browser=="Explorer"&&DR.Utils.BrowserDetect.version<7){
5524ie6=true;
5525_426="";
5526this.shadowRight=8;
5527this.shadowBottom=8;
5528}
5529var s=[];
5530var _428="";
5531if(this.optionalClassName!=null){
5532_428="class=\""+this.optionalClassName+"\"";
5533}
5534var _429="";
5535if(this.disabled){
5536_429="style=\"display:none\"";
5537}
5538if(this.modalType=="Modeless"){
5539s[s.length]="<div class=\"modalWrapper\" id=\"{0}_modalWrapper\">";
5540s[s.length]="<div class=\"divFloat\" id=\"{0}_divFloat\">";
5541}
5542s[s.length]="<div id=\"{0}_contentTable\" "+_428+" >";
5543s[s.length]="<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"wrapperTbl\">";
5544if(!ie6){
5545s[s.length]="<tr><td colspan=\"2\" class=\"topLeft\">&nbsp;</td><td colspan=\"2\" class=\"topRight\">&nbsp;</td></tr>";
5546s[s.length]="<tr><td class=\"leftTop\">&nbsp;</td>";
5547}else{
5548s[s.length]="<tr>";
5549}
5550s[s.length]="<td "+_426+" id=\"{0}_content\" >";
5551s[s.length]="<div class=\"inner\" id=\"{0}_inner\" >";
5552s[s.length]="<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"titleBar\" id=\"{0}_titleTbl\">";
5553s[s.length]="<tr>";
5554s[s.length]="<td class=\"title\" ><div id=\"{0}_title\">"+this.title+"</div></td>";
5555s[s.length]="<td class=\"close\" "+_429+" title=\""+DR.Widgets.ModalOverlay.CLOSE_WINDOW+"\"><a href=\"#\" onmousedown=\"if (window.event){window.event.cancelBubble = true;}else{event.preventDefault();event.stopPropagation();}\" id=\"{0}_closeLink\" ></a></td>";
5556s[s.length]="</tr>";
5557s[s.length]="</table>";
5558if(!this.inline){
5559s[s.length]="<div id=\"{0}_iframeSpacer\" >";
5560s[s.length]="<div class=\"modalLoading\" id=\"{0}_loadingDiv\" >";
5561s[s.length]="<div class=\"modalLoadingTextWrapper\" id=\"{0}_loadingTextWrapper\" >";
5562s[s.length]="<div class=\"modalLoadingText\">"+DR.Widgets.ModalOverlay.LOADING_WINDOW+"</div>";
5563s[s.length]="<div class=\"modalLoadingImg\"></div>";
5564s[s.length]="</div>";
5565s[s.length]="</div>";
5566s[s.length]="</div>";
5567}
5568s[s.length]="</div>";
5569s[s.length]="</td>";
5570s[s.length]="<td class=\"rightTop\">&nbsp;</td></tr>";
5571if(!ie6){
5572s[s.length]="<tr><td class=\"leftBottom\">&nbsp;</td><td class=\"rightBottom\">&nbsp;</td></tr>";
5573s[s.length]="<tr><td colspan=\"2\" class=\"bottomLeft\">&nbsp;</td><td colspan=\"2\" class=\"bottomRight\">&nbsp;</td></tr>";
5574}else{
5575s[s.length]="<tr><td class=\"bottomLeft\">&nbsp;</td><td class=\"bottomRight\">&nbsp;</td></tr>";
5576}
5577s[s.length]="</table>";
5578s[s.length]="</div>";
5579if(this.modalType=="Modeless"){
5580s[s.length]="</div>";
5581s[s.length]="<iframe  src=\""+$.dr.BLANK_PAGE_URL+"\" class=\"modelessOverlayMaskIframe\" id=\"{0}_modelessOverlayMaskIframe\" ></iframe>";
5582s[s.length]="</div>";
5583}
5584s=s.join("");
5585s=s.replace(/\{0\}/g,this.id);
5586_423.innerHTML=s;
5587if(this.inline){
5588var _42a=document.getElementById(this.inlineId);
5589_42a.style.display="block";
5590dParent=_42a.parentNode;
5591this.dialog=dParent.insertBefore(_423,_42a);
5592var _42b=document.createElement("div");
5593_42b.className="inlineDialog";
5594getElem(this.id+"_inner").appendChild(_42b);
5595this.dialogClone=_42b;
5596_42b.appendChild(_42a);
5597}else{
5598this.dialog=_422.appendChild(_423);
5599this.iframeWrapper=getElem(this.id+"_inner");
5600this.iframeSpacer=getElem(this.id+"_iframeSpacer");
5601this.loadingDiv=getElem(this.id+"_loadingDiv");
5602this.loadingTextWrapper=getElem(this.id+"_loadingTextWrapper");
5603}
5604if(this.modalType=="Modeless"){
5605this.modelessMaskingDiv=getElem(this.id+"_divFloat");
5606this.modelessMaskingIframe=getElem(this.id+"_modelessOverlayMaskIframe");
5607}
5608this.windowIcon=getElem(this.id+"_title");
5609this.contentTable=getElem(this.id+"_contentTable");
5610this.closeLink=getElem(this.id+"_closeLink");
5611getElem(this.id+"_closeLink").onclick=function(){
5612_424.cancel();
5613return false;
5614};
5615function myDialogInitDrag(_42c){
5616_424.initDrag(_42c);
5617}
5618if(this.enableDragging){
5619getElem(this.id+"_titleTbl").onmousedown=myDialogInitDrag;
5620}
5621overlayStack.addWindowEventHandlers();
5622function eventMyDialogFocus(_42d){
5623_424.focus();
5624}
5625_423.onclick=eventMyDialogFocus;
5626s=null;
5627function cleanupIE_Events(){
5628_423.detachEvent("onclick",eventMyDialogFocus);
5629overlayStack.destroyAll();
5630window.detachEvent("onunload",cleanupIE_Events);
5631}
5632if(this.browserType=="IE"){
5633window.attachEvent("onunload",cleanupIE_Events);
5634}else{
5635_423=null;
5636}
5637this.built=true;
5638},buildIframe:function(){
5639this.iframeCountID=overlayStack.getNewIframeID();
5640var _42e=document.createElement("IFRAME");
5641_42e.id="modal_iframe_"+this.iframeCountID;
5642_42e.name="modal_iframe_"+this.iframeCountID;
5643_42e.frameBorder=0;
5644if(this.iframeTransparency){
5645_42e.allowTransparency=true;
5646}
5647var self=this;
5648function myDialogHideLoading(){
5649self.hideLoading();
5650}
5651function myDialogFocus(){
5652self.focus();
5653}
5654if(document.attachEvent){
5655_42e.attachEvent("onload",myDialogHideLoading);
5656}else{
5657_42e.addEventListener("load",myDialogHideLoading,false);
5658}
5659if(this.url.indexOf("modalTime")==-1){
5660var _430=new Date().getTime();
5661if(this.url.indexOf("?")==-1){
5662this.url+="?modalTime="+_430;
5663}else{
5664this.url+="&modalTime="+_430;
5665}
5666}
5667_42e.src=this.url;
5668_42e.style.display="none";
5669this.iframeWrapper.appendChild(_42e);
5670this.iframe=_42e;
5671function cleanupIE_Events(){
5672if(_42e){
5673_42e.detachEvent("onload",myDialogHideLoading);
5674_42e.detachEvent("onfocus",myDialogFocus);
5675}
5676window.detachEvent("onunload",cleanupIE_Events);
5677}
5678if(this.browserType=="IE"){
5679window.attachEvent("onunload",cleanupIE_Events);
5680}else{
5681_42e=null;
5682}
5683this.refreshSize();
5684},refreshSize:function(){
5685overlayStack.getPageSize();
5686this.width=this.contentWidth+this.shadowRight+(this.borderWidth*2);
5687this.height=this.contentHeight+this.shadowBottom+this.titleBarHeight+(this.borderWidth*2);
5688if(this.width>overlayStack.doc.windowWidth){
5689this.width=overlayStack.doc.windowWidth;
5690this.contentWidth=this.width-this.shadowRight-(this.borderWidth*2);
5691}
5692if(this.height>overlayStack.doc.windowHeight){
5693this.height=overlayStack.doc.windowHeight;
5694this.contentHeight=this.height-this.shadowBottom-this.titleBarHeight-(this.borderWidth*2);
5695}
5696var w=this.width+"px";
5697var h=this.height+"px";
5698var cw=this.contentWidth+"px";
5699var ch=this.contentHeight+"px";
5700this.dialog.style.width=w;
5701this.dialog.style.height=h;
5702if(!this.inline){
5703this.iframeSpacer.style.width=cw;
5704this.iframeSpacer.style.height=ch;
5705if(this.iframe){
5706this.iframe.style.width=cw;
5707this.iframe.style.height=ch;
5708}
5709this.loadingDiv.style.width=cw;
5710this.loadingDiv.style.height=ch;
5711this.loadingTextWrapper.style.top=(Math.round(this.contentHeight/2)-40)+"px";
5712this.loadingTextWrapper.style.left=(Math.round(this.contentWidth/2)-100)+"px";
5713}
5714if(this.modalType=="Modeless"){
5715this.modelessMaskingDiv.style.width=w;
5716this.modelessMaskingDiv.style.height=h;
5717this.modelessMaskingIframe.style.width=w;
5718this.modelessMaskingIframe.style.height=h;
5719}
5720},setSize:function(w,h){
5721this.contentWidth=parseInt(w,10);
5722this.contentHeight=parseInt(h,10);
5723if(this.inline){
5724this.contentWidth+=this.inlineDialogPadding*2;
5725this.contentHeight+=this.inlineDialogPadding*2;
5726}
5727this.width=this.contentWidth+this.shadowRight+(this.borderWidth*2);
5728this.height=this.contentHeight+this.shadowBottom+this.titleBarHeight+(this.borderWidth*2);
5729},setAnchorId:function(_437){
5730if(_437.length>0){
5731this.anchorId=_437;
5732}
5733},setDragNDrop:function(v){
5734this.enableDragging=v;
5735},setAutoCenter:function(v){
5736this.autoCenter=v;
5737},setTitle:function(_43a){
5738if(_43a!==""){
5739this.title=_43a;
5740if(this.windowIcon){
5741this.windowIcon.innerHTML=_43a;
5742}
5743}
5744},setDisabled:function(flag){
5745this.disabled=flag;
5746},disable:function(){
5747this.disabled=true;
5748this.closeLink.style.visibility="hidden";
5749},initDrag:function(_43c){
5750if(this.dragObject===null){
5751this.dragObject=new DR.Utils.DragObject(this.dialog);
5752this.dragObject.setType("Absolute",this);
5753this.dragObject.setMoveDragCallback(true);
5754this.dragObject.setStopDragCallback(true);
5755}
5756this.dragObject.initDrag(_43c);
5757},moveDrag:function(){
5758if(!this.inline){
5759this.loadingDiv.style.visibility="hidden";
5760this.iframe.style.display="none";
5761this.iframeSpacer.style.display="block";
5762}else{
5763this.dialogClone.style.visibility="hidden";
5764}
5765if(this.filtersSupported){
5766this.contentTable.style.filter="alpha(opacity=50)";
5767}else{
5768this.contentTable.style.opacity="0.5";
5769}
5770if(this.modalType=="Modeless"){
5771this.modalMask.className="modelessOverlayMask";
5772this.modalMask.style.display="block";
5773this.modalMaskIEOver.style.display="block";
5774}
5775this.focus();
5776},stopDrag:function(){
5777if(!this.inline){
5778if(this.loading){
5779this.loadingDiv.style.visibility="visible";
5780}else{
5781this.iframeSpacer.style.display="none";
5782this.iframe.style.display="block";
5783}
5784}else{
5785this.dialogClone.style.visibility="visible";
5786}
5787if(this.filtersSupported){
5788this.contentTable.style.filter="";
5789}else{
5790this.contentTable.style.opacity="1";
5791}
5792if(this.modalType=="Modeless"){
5793this.modalMask.style.display="none";
5794this.modalMaskIEOver.style.display="none";
5795}
5796},addEvent:function(obj,evt,fn,_440){
5797if(obj.addEventListener){
5798obj.addEventListener(evt,fn,Boolean(_440));
5799return true;
5800}else{
5801if(obj.attachEvent){
5802var r=obj.attachEvent("on"+evt,fn);
5803return r;
5804}else{
5805return false;
5806}
5807}
5808},removeEvent:function(obj,evt,fn,_445){
5809if(obj.addEventListener){
5810obj.removeEventListener(evt,fn,Boolean(_445));
5811return true;
5812}else{
5813if(obj.attachEvent){
5814var r=obj.detachEvent("on"+evt,fn);
5815return r;
5816}else{
5817return false;
5818}
5819}
5820}};
5821DR.Widgets.ModelessOverlay.open=function(url,_448,_449,_44a){
5822var _44b=new Date().getTime();
5823var m=new DR.Widgets.ModelessOverlay("modal_"+_44b,url);
5824var t=_44a;
5825if(!_44a){
5826t="&nbsp;";
5827}
5828m.setTitle(t);
5829m.setSize(_448,_449);
5830m.show();
5831return m;
5832};
5833DR.Widgets.ModelessOverlay.close=function(){
5834parent.overlayStack.closeCurrent();
5835};
5836DR.Widgets.ModalOverlay=function(id,url,_450){
5837this.id=id;
5838this.url=url;
5839this.optionalClassName=(_450)?_450:null;
5840};
5841DR.Widgets.ModalOverlay.prototype=new DR.Widgets.ModelessOverlay();
5842DR.Widgets.ModalOverlay.prototype.modalType="Modal";
5843DR.Widgets.ModalOverlay.CLOSE_WINDOW="Close Window";
5844DR.Widgets.ModalOverlay.LOADING_WINDOW="Loading please wait...";
5845DR.Widgets.ModalOverlay.open=function(url,_452,_453,_454){
5846var _455=new Date().getTime();
5847var m=new DR.Widgets.ModalOverlay("modal_"+_455,url);
5848var t=_454;
5849if(!_454){
5850t="&nbsp;";
5851}
5852m.setTitle(t);
5853m.setSize(_452,_453);
5854m.show();
5855return m;
5856};
5857DR.Widgets.ModalOverlay.close=function(){
5858parent.overlayStack.closeCurrent();
5859};
5860DR.Widgets.InlineModalOverlay=function(id,_459){
5861this.id=id;
5862this.inlineId=id;
5863this.optionalClassName=(_459)?_459:null;
5864};
5865DR.Widgets.InlineModalOverlay.prototype=new DR.Widgets.ModelessOverlay();
5866DR.Widgets.InlineModalOverlay.prototype.modalType="Modal";
5867DR.Widgets.InlineModalOverlay.prototype.inline=true;
5868DR.Widgets.InlineModelessOverlay=function(id,_45b){
5869this.id=id;
5870this.inlineId=id;
5871this.optionalClassName=(_45b)?_45b:null;
5872};
5873DR.Widgets.InlineModelessOverlay.prototype=new DR.Widgets.ModelessOverlay();
5874DR.Widgets.InlineModelessOverlay.prototype.modalType="Modeless";
5875DR.Widgets.InlineModelessOverlay.prototype.inline=true;
5876DR.Widgets.ModalOverlay.iframeFunctionCallback="";
5877DR.Widgets.ModalOverlay.iframeCallbackTimeout=function(){
5878eval(DR.Widgets.ModalOverlay.iframeFunctionCallback);
5879};
5880DR.Widgets.ModalOverlay.iframeCallback=function(func){
5881DR.Widgets.ModalOverlay.iframeFunctionCallback=func;
5882setTimeout("DR.Widgets.ModalOverlay.iframeCallbackTimeout()",1);
5883};
5884(function($){
5885var _45e={type:"modal",inline:false,width:620,height:590,url:null,id:null,title:"&nbsp;",cancelFunction:null,callBackFunction:null,abortFunction:null,draggable:true,centered:true,relativePositioned:false,optionalClassName:null,showCloseIcon:true};
5886$.dr.overlay=function(_45f){
5887_45f=$.extend({},_45e,_45f);
5888var m,id=_45f.id,url=_45f.url,type=_45f.type,inline=_45f.inline,optionalClassName=_45f.optionalClassName;
5889if(inline){
5890var d=$("#"+id).data("overlay");
5891if(d){
5892d.show();
5893return;
5894}
5895}else{
5896if(url.length===0){
5897return;
5898}
5899}
5900var _462=DR.Widgets;
5901if(!id){
5902id="modal_"+new Date().getTime();
5903}
5904if(!inline&&type=="modal"){
5905m=new _462.ModalOverlay(id,url,optionalClassName);
5906}else{
5907if(!inline&&type=="modeless"){
5908m=new _462.ModelessOverlay(id,url,optionalClassName);
5909}else{
5910if(type=="modal"){
5911m=new _462.InlineModalOverlay(id,optionalClassName);
5912}else{
5913if(type=="modeless"){
5914m=new _462.InlineModelessOverlay(id,optionalClassName);
5915}
5916}
5917}
5918}
5919m.setTitle(_45f.title);
5920m.setSize(_45f.width,_45f.height);
5921if(!_45f.draggable){
5922m.setDragNDrop(false);
5923}
5924if(!_45f.centered){
5925m.setAutoCenter(false);
5926}
5927if(_45f.anchorId){
5928m.setAutoCenter(false);
5929m.setAnchorId(_45f.anchorId);
5930}
5931if(typeof _45f.cancelFunction=="function"){
5932m.cancelFunction=_45f.cancelFunction;
5933}
5934if(typeof _45f.callBackFunction=="function"){
5935m.callBackFunction=_45f.callBackFunction;
5936}
5937if(typeof _45f.abortFunction=="function"){
5938m.abortFunction=_45f.abortFunction;
5939}
5940if(!_45f.showCloseIcon){
5941m.setDisabled(true);
5942}
5943m.show();
5944if(inline){
5945$("#"+id).data("overlay",m);
5946}
5947return m;
5948};
5949$.dr.overlay.close=function(){
5950DR.Widgets.ModalOverlay.close();
5951};
5952$.namespace("dr",{overlay:function(_463){
5953return this.each(function(){
5954var opts=$.extend({},_463,{inline:true,id:this.id});
5955$.dr.overlay(opts);
5956});
5957}});
5958var _465=function(obj){
5959return $(obj).data("overlay");
5960};
5961$.namespace("dr.overlay",{setTitle:function(_467){
5962return this.each(function(){
5963var m=_465(this);
5964if(m){
5965m.setTitle(_467);
5966}
5967});
5968}});
5969})(jQuery);
5970DR.Widgets.ModalOverlayStack=function(){
5971this.windows=[];
5972this.zIndex=100000;
5973this.windowIndex=-1;
5974this.iframeCounter=-1;
5975this.currentWindow=-1;
5976this.focusAndBlurSet=false;
5977};
5978DR.Widgets.ModalOverlayStack.prototype={add:function(obj){
5979this.windowIndex++;
5980this.windows[this.windowIndex]=obj;
5981this.currentWindow=this.windowIndex;
5982return this.windowIndex;
5983},addChildWindow:function(obj,_46b){
5984this.setCurrentHasModalChildren(true);
5985var m=new DR.Widgets.ModalOverlay(obj.id,obj.url);
5986m.parentId=this.currentWindow;
5987m.parentWindowIndex=_46b;
5988m.setTitle(obj.title);
5989m.setDragNDrop(obj.enableDragging);
5990if(typeof (obj.callBackFunction)=="function"){
5991m.setCallBackFunction(obj.callBackFunction);
5992}
5993if(typeof (obj.cancelFunction)=="function"){
5994m.setCancelFunction(obj.cancelFunction);
5995}
5996if(typeof (obj.abortFunction)=="function"){
5997m.setAbortFunction(obj.abortFunction);
5998}
5999m.setSize(obj.contentWidth,obj.contentHeight);
6000m.show();
6001obj=null;
6002},getCurrent:function(){
6003if(this.currentWindow>-1){
6004var c=this.windows[this.currentWindow];
6005return c;
6006}
6007},getById:function(id){
6008for(var i=0;i<this.windows.length;i++){
6009if(this.windows[i].id==id){
6010return this.windows[i];
6011break;
6012}
6013}
6014return null;
6015},checkCurrentLoading:function(){
6016if(this.currentWindow>-1){
6017var c=this.windows[this.currentWindow];
6018return c.loading;
6019}
6020},disableCurrent:function(){
6021if(this.currentWindow>-1){
6022var c=this.windows[this.currentWindow];
6023c.closeLink.style.visibility="hidden";
6024}
6025},enableCurrent:function(){
6026if(this.currentWindow>-1){
6027var c=this.windows[this.currentWindow];
6028c.closeLink.style.visibility="visible";
6029}
6030},setCurrentWindow:function(id){
6031this.currentWindow=id;
6032},getNewIframeID:function(){
6033this.iframeCounter++;
6034return this.iframeCounter;
6035},bringOpenOverlayToFront:function(){
6036for(var i=0;i<this.windows.length;i++){
6037if(this.windows[i].isOpen){
6038overlayStack.bringToFront(i);
6039return;
6040}
6041}
6042},checkAnyOpen:function(){
6043var _475=false;
6044for(var i=0;i<this.windows.length;i++){
6045if(this.windows[i].isOpen){
6046_475=true;
6047}
6048}
6049return _475;
6050},checkAnyModalOpen:function(){
6051var _477=false;
6052for(var i=0;i<this.windows.length;i++){
6053if(this.windows[i].isOpen&&this.windows[i].modalType=="Modal"){
6054_477=true;
6055}
6056}
6057return _477;
6058},checkAnyModelessOpen:function(){
6059var _479=false;
6060for(var i=0;i<this.windows.length;i++){
6061if(this.windows[i].isOpen&&this.windows[i].modalType=="Modeless"){
6062_479=true;
6063}
6064}
6065return _479;
6066},setCurrentHasChildren:function(flag){
6067if(this.currentWindow>-1){
6068var c=this.windows[this.currentWindow];
6069c.hasChildren=flag;
6070}
6071},setCurrentHasModalChildren:function(flag){
6072if(this.currentWindow>-1){
6073var c=this.windows[this.currentWindow];
6074c.hasModalChildren=flag;
6075}
6076},resizeCurrent:function(_47f,_480){
6077if(this.currentWindow>-1){
6078var c=this.windows[this.currentWindow];
6079c.setSize(_47f,_480);
6080c.refreshSize();
6081c.position();
6082}
6083},blurCurrent:function(){
6084if(this.currentWindow>-1){
6085var c=this.windows[this.currentWindow];
6086c.blurWindow=false;
6087c.blur();
6088}
6089},hideCurrent:function(){
6090if(this.currentWindow>-1){
6091var c=this.windows[this.currentWindow];
6092c.dialog.style.display="none";
6093c.enableScrollBars();
6094}
6095},blurOtherWindows:function(){
6096for(var i=0;i<this.windows.length;i++){
6097if(this.windows[i].stackId!=this.currentWindow){
6098this.windows[i].hasFocus=false;
6099this.windows[i].blur();
6100}
6101}
6102},windowOnBlur:function(){
6103if(this.currentWindow>-1){
6104var c=this.windows[this.currentWindow];
6105c.blurWindow=true;
6106c.blur();
6107}
6108},focusCurrent:function(_486){
6109if(this.currentWindow>-1){
6110var c=this.windows[this.currentWindow];
6111if(!c.hasFocus||_486){
6112c.focus();
6113}
6114}
6115},bringToFront:function(id){
6116if(this.windowIndex>-1){
6117this.currentWindow=id;
6118var c=this.windows[this.currentWindow];
6119this.zIndex=this.zIndex+5;
6120if(this.currentWindow>-1){
6121c.dialog.style.zIndex=this.zIndex;
6122c.modalMask.style.zIndex=this.zIndex-2;
6123c.modalMaskIEOver.style.zIndex=this.zIndex-1;
6124DR.Utils.removeCSSClass(c.contentTable,"inActive");
6125}
6126}
6127},addWindowEventHandlers:function(){
6128function overlayStackFocusParent(){
6129if(window!=top){
6130parent.overlayStack.setCurrentHasChildren(false);
6131parent.overlayStack.focusCurrent(true);
6132}
6133}
6134if(!overlayStack.focusAndBlurSet){
6135if(window.attachEvent){
6136window.attachEvent("onunload",overlayStackFocusParent);
6137}else{
6138window.addEventListener("unload",overlayStackFocusParent,false);
6139}
6140var _48a=window.onresize;
6141if(typeof window.onresize!="function"){
6142window.onresize=function(){
6143overlayStack.refreshMaskSize();
6144};
6145this.onResizeSet=true;
6146}else{
6147if(!this.onResizeSet){
6148window.onresize=function(){
6149overlayStack.refreshMaskSize();
6150_48a();
6151};
6152}
6153}
6154overlayStack.focusAndBlurSet=true;
6155}
6156function cleanupEvents(){
6157window.detachEvent("onunload",cleanupEvents);
6158window.onresize=null;
6159}
6160if(window.attachEvent){
6161window.attachEvent("onunload",cleanupEvents);
6162}
6163},refreshMaskSize:function(){
6164if(this.currentWindow>-1){
6165var c=this.windows[this.currentWindow];
6166this.getPageSize();
6167if(document.all){
6168c.modalMask.style.width=this.doc.windowWidth+"px";
6169c.modalMaskIframe.style.width=this.doc.windowWidth+"px";
6170c.modalMaskIEOver.style.width=this.doc.windowWidth+"px";
6171}
6172c.modalMask.style.height=this.doc.pageHeight+"px";
6173c.modalMaskIframe.style.height=this.doc.pageHeight+"px";
6174c.modalMaskIEOver.style.height=this.doc.pageHeight+"px";
6175}
6176},buildIframe:function(){
6177if(this.currentWindow>-1){
6178this.windows[this.currentWindow].ieTimeout=false;
6179this.windows[this.currentWindow].buildIframe();
6180}
6181},closeCurrent:function(){
6182if(this.currentWindow>-1){
6183this.windows[this.currentWindow].cancel();
6184}
6185},cancelCurrent:function(){
6186if(this.currentWindow>-1){
6187this.windows[this.currentWindow].cancel();
6188}
6189},destroyAll:function(){
6190var _48c=false;
6191for(var i=0;i<this.windows.length;i++){
6192if(!this.windows[i].inline){
6193this.currentWindow=i;
6194this.destroyCurrent();
6195}
6196}
6197return _48c;
6198},destroyCurrent:function(){
6199if(this.currentWindow>-1){
6200this.destroyWindow(this.currentWindow);
6201}
6202},destroyWindow:function(_48e){
6203if(_48e>-1){
6204var _48f=this.windows[_48e];
6205var _490=-1;
6206if(_48f.parentId>-1){
6207_490=_48f.parentId;
6208}
6209if(!_48f.inline){
6210if(_48f.iframe){
6211_48f.iframe.parentNode.removeChild(_48f.iframe);
6212_48f.iframeSpacer.parentNode.removeChild(_48f.iframeSpacer);
6213_48f.contentTable.parentNode.removeChild(_48f.contentTable);
6214_48f.windowIcon.parentNode.removeChild(_48f.windowIcon);
6215_48f.dialog.parentNode.removeChild(_48f.dialog);
6216this.windows[_48e].iframe=null;
6217this.windows[_48e].modalMask=null;
6218this.windows[_48e].modelessMaskingDiv=null;
6219this.windows[_48e].modelessMaskingIframe=null;
6220this.windows[_48e].modalMaskIframe=null;
6221this.windows[_48e].modalMaskIEOver=null;
6222this.windows[_48e].iframeSpacer=null;
6223this.windows[_48e].contentTable=null;
6224this.windows[_48e].windowIcon=null;
6225this.windows[_48e].dialog=null;
6226}
6227_48f=null;
6228this.windows[_48e]=null;
6229this.windows.splice(_48e,1);
6230this.windowIndex--;
6231this.currentWindow=-1;
6232_48e=this.windows.length-1;
6233}
6234if(_490>-1&&_48e>-1){
6235this.windows[_490].hasModalChildren=false;
6236this.windows[_490].focus();
6237this.reorderStack(false);
6238}else{
6239this.reorderStack(true);
6240}
6241}
6242},reorderStack:function(_491){
6243var _492=-1;
6244for(var i=0;i<this.windows.length;i++){
6245if(this.windows[i].isOpen){
6246this.windows[i].stackId=i;
6247_492=i;
6248}
6249}
6250if(_492>-1&&_491){
6251this.currentWindow=_492;
6252this.windows[this.currentWindow].focus();
6253}
6254},callBack:function(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,_49d){
6255if(this.currentWindow>-1){
6256var _49e=this.windows[this.currentWindow];
6257if(_49e.parentId>-1){
6258window.frames[this.windows[_49e.parentId].iframe.id].overlayStack.callBack(arg1,arg2,arg3,arg3,arg4,arg5,arg6,arg7,arg8,arg9,_49d);
6259}else{
6260_49e.callBack(arg1,arg2,arg3,arg3,arg4,arg5,arg6,arg7,arg8,arg9,_49d);
6261}
6262}
6263},getPageSize:function(){
6264var _49f,yScroll,pageHeight,pageWidth;
6265var obj={};
6266if(window.innerHeight&&window.scrollMaxY){
6267_49f=document.body.scrollWidth;
6268yScroll=window.innerHeight+window.scrollMaxY;
6269}else{
6270if(document.body.scrollHeight>document.body.offsetHeight){
6271_49f=document.body.scrollWidth;
6272yScroll=document.body.scrollHeight;
6273}else{
6274_49f=document.body.offsetWidth;
6275yScroll=document.body.offsetHeight;
6276}
6277}
6278var _4a1,windowHeight;
6279if(self.innerHeight){
6280_4a1=self.innerWidth;
6281windowHeight=self.innerHeight;
6282}else{
6283if(document.documentElement&&document.documentElement.clientHeight){
6284_4a1=document.documentElement.clientWidth;
6285windowHeight=document.documentElement.clientHeight;
6286}else{
6287if(document.body){
6288_4a1=document.body.clientWidth;
6289windowHeight=document.body.clientHeight;
6290}
6291}
6292}
6293if(yScroll<windowHeight){
6294pageHeight=windowHeight;
6295}else{
6296pageHeight=yScroll;
6297}
6298if(_49f<_4a1){
6299pageWidth=_4a1;
6300}else{
6301pageWidth=_49f;
6302}
6303if(this.doc===undefined){
6304this.doc={};
6305}
6306this.doc.pageWidth=pageWidth;
6307this.doc.pageHeight=pageHeight;
6308this.doc.windowWidth=_4a1;
6309this.doc.windowHeight=windowHeight;
6310}};
6311overlayStack=new DR.Widgets.ModalOverlayStack();
6312DR.Widgets.Prompt=function(){
6313this._type="Prompt";
6314this.built=false;
6315this.questionDiv=null;
6316this.liveChangeTextDiv=null;
6317this.textInput=null;
6318this.overlay=null;
6319this.size="normal";
6320this.isPrompt=false;
6321this.isAlert=false;
6322this.isCriticalConfirm=false;
6323this.isConfirm=false;
6324this.isCheckboxPrompt=false;
6325this.modalWarning=false;
6326this.isSuccess=false;
6327this.iconClass="";
6328this.width=521;
6329this.height=200;
6330};
6331DR.Widgets.Prompt.PROMPT="Prompt";
6332DR.Widgets.Prompt.CHECKBOX_PROMPT="Prompt";
6333DR.Widgets.Prompt.CHECKBOX_PROMPT_QUESTION="I agree";
6334DR.Widgets.Prompt.ALERT="Alert";
6335DR.Widgets.Prompt.WARNING="Warning";
6336DR.Widgets.Prompt.CONFIRM="Confirm";
6337DR.Widgets.Prompt.SUCCESS="Success";
6338DR.Widgets.Prompt.LIVE_CHANGE="Live Change Warning";
6339DR.Widgets.Prompt.LIVE_CHANGE_QUESTION="Please enter your username as it appears below to confirm you want to save these changes.{0}Username: {1}";
6340DR.Widgets.Prompt.INCORRECT_VALUE="The value you entered is incorrect.";
6341DR.Widgets.Prompt.prototype={init:function(){
6342switch(this._type){
6343case "Prompt":
6344this.modalTitle=DR.Widgets.Prompt.PROMPT;
6345this.isPrompt=true;
6346this.iconClass="modalPrompt";
6347break;
6348case "CheckboxPrompt":
6349this.modalTitle=DR.Widgets.Prompt.CHECKBOX_PROMPT;
6350this.isCheckboxPrompt=true;
6351this.iconClass="modalPrompt";
6352this.height=300;
6353break;
6354case "Confirm":
6355this.modalTitle=DR.Widgets.Prompt.CONFIRM;
6356this.isConfirm=true;
6357this.iconClass="";
6358break;
6359case "Alert":
6360this.modalTitle=DR.Widgets.Prompt.ALERT;
6361this.isAlert=true;
6362this.iconClass="modalAlert";
6363break;
6364case "Warning":
6365this.modalTitle=DR.Widgets.Prompt.WARNING;
6366this.isWarning=true;
6367this.iconClass="modalWarning";
6368break;
6369case "Success":
6370this.modalTitle=DR.Widgets.Prompt.SUCCESS;
6371this.isSuccess=true;
6372this.iconClass="modalSuccess";
6373break;
6374case "Critical_Confirm":
6375this.modalTitle=DR.Widgets.Prompt.LIVE_CHANGE;
6376this.isCriticalConfirm=true;
6377this.iconClass="modalLiveChange";
6378this.height=300;
6379break;
6380}
6381this.instanceId="DR.Utils."+this._type.toUpperCase();
6382this.prefixId="modal_"+this._type;
6383var d=document.createElement("div");
6384d.id=this.prefixId+"_container";
6385var f=document.createElement("div");
6386f.className="questionBg";
6387var q=document.createElement("div");
6388q.className="question";
6389var _4a5=document.createElement("div");
6390q.appendChild(_4a5);
6391this.questionDiv=_4a5;
6392var _4a6="check";
6393var _4a7=this.instanceId+".cancel()";
6394var _4a8=this.instanceId+".ok()";
6395var _4a9;
6396var _4aa;
6397if(this.isPrompt||this.isCriticalConfirm){
6398_4a9=document.createElement("div");
6399_4a9.className="input";
6400_4a9.innerHTML="<input type=\"text\" id=\""+this.prefixId+"_input\" autocomplete=\"off\" onkeyup=\""+this.instanceId+".enterKey(event)\" />";
6401_4a6="save";
6402}
6403if(this.isCheckboxPrompt){
6404_4a9=document.createElement("div");
6405_4a9.className="input";
6406_4a9.innerHTML="<input type=\"checkbox\" id=\""+this.prefixId+"_input\" /><label for=\""+this.prefixId+"_input\">"+DR.Widgets.Prompt.CHECKBOX_PROMPT_QUESTION+"</label>";
6407_4a6="save";
6408}
6409var _4aa;
6410var _4ab="";
6411if(this.isCriticalConfirm){
6412var _4ab=DR.Widgets.Prompt.LIVE_CHANGE_QUESTION.replaceBreaks();
6413_4ab=_4ab.replace("{1}","<strong><span id=\"liveChangeKey\">"+this.acceptKey+"<span></strong>");
6414var _4aa=document.createElement("div");
6415_4aa.innerHTML=_4ab;
6416_4aa.className="liveChangeText";
6417this.liveChangeTextDiv=_4aa;
6418}
6419var s="";
6420if(!this.isAlert&&!this.isSuccess){
6421s+="<button id=\""+this.prefixId+"_cancelBtn\" class=\"button secondary\" type=\"button\" onclick=\""+_4a7+"\"></button>";
6422}
6423s+="<button id=\""+this.prefixId+"_okBtn\" type=\"button\" class=\"button secondary\" onclick=\""+_4a8+"\" style=\"margin-right:0;\"></button>";
6424var _4ad=document.createElement("div");
6425_4ad.className="pageButtons";
6426_4ad.innerHTML=s;
6427if(this.isPrompt||this.isCriticalConfirm||this.isCheckboxPrompt){
6428f.appendChild(q);
6429d.appendChild(f);
6430if(this.isCriticalConfirm){
6431d.appendChild(_4aa);
6432}
6433d.appendChild(_4a9);
6434}else{
6435f.appendChild(q);
6436d.appendChild(f);
6437}
6438d.appendChild(_4ad);
6439var _4ae=$("div.content:first")||$("body");
6440_4ae.append(d);
6441this.okButton=getElem(this.prefixId+"_okBtn");
6442if(!this.isAlert&&!this.isSuccess){
6443this.cancelButton=getElem(this.prefixId+"_cancelBtn");
6444}
6445if(this.isPrompt||this.isCriticalConfirm){
6446$(this.cancelButton).dr.button.text($.dr.strings.CANCEL);
6447if(this.isCriticalConfirm){
6448$(this.okButton).dr.button.text($.dr.strings.OK);
6449}else{
6450$(this.okButton).dr.button.text($.dr.strings.SAVE);
6451}
6452this.textInput=getElem(this.prefixId+"_input");
6453}else{
6454if(this.isCheckboxPrompt){
6455this.textInput=$("#"+this.prefixId+"_input").parent("div");
6456this.textInput.addClass("checkbox-prompt");
6457$(this.okButton).attr("disabled","disabled");
6458}else{
6459if(this.isAlert||this.isSuccess){
6460$(this.okButton).dr.button.text($.dr.strings.OK);
6461}else{
6462$(this.cancelButton).dr.button.text($.dr.strings.NO);
6463$(this.okButton).dr.button.text($.dr.strings.YES);
6464}
6465}
6466}
6467if(this.isCheckboxPrompt){
6468}
6469var opts={inline:true,id:this.prefixId+"_container",optionalClassName:this.iconClass+" modalConfirm",showCloseIcon:false,width:this.width,height:this.height};
6470if(this.isSuccess){
6471opts.type="modeless";
6472}
6473this.overlay=$.dr.overlay(opts);
6474},open:function(_4b0,text,_4b2,_4b3,_4b4,_4b5,_4b6){
6475if((this.isAlert||this.isSuccess||typeof (_4b2)=="function"||_4b2===null)&&typeof (_4b0)=="string"){
6476if(_4b4){
6477this.acceptKey=_4b4.trim();
6478getElem("liveChangeKey").innerHTML=this.acceptKey;
6479}
6480this.questionDiv.innerHTML=_4b0;
6481this.overlay.setTitle(_4b3||this.modalTitle);
6482this.overlay.setDisabled(true);
6483this.overlay.show();
6484if(this.isPrompt||this.isCriticalConfirm){
6485this.textInput.value=text;
6486this.textInput.focus();
6487this.textInput.select();
6488}else{
6489if(this.isCheckboxPrompt){
6490var _4b7=_4b5||$.dr.strings.OK;
6491if(text&&text!==""){
6492var _4b8=$("label",this.textInput).html(text);
6493}else{
6494var _4b8=$("label",this.textInput).html(DR.Widgets.Prompt.CHECKBOX_PROMPT_QUESTION);
6495}
6496var btn=this.okButton;
6497if(_4b6){
6498var _4ba=parseInt(_4b6,10);
6499$(btn).dr.button.text(_4ba).attr("disabled","disabled");
6500var fn=function(){
6501_4ba--;
6502if(_4ba===0){
6503$(btn).dr.button.text(_4b7);
6504$(btn).removeAttr("disabled");
6505}else{
6506$(btn).dr.button.text(_4ba.toString());
6507setTimeout(fn,1000);
6508}
6509};
6510setTimeout(fn,1000);
6511}else{
6512$(btn).removeAttr("disabled");
6513$(btn).dr.button.text(_4b7);
6514}
6515}else{
6516if(this.isSuccess){
6517this.okButton.focus();
6518}
6519}
6520}
6521this.callback=_4b2;
6522}
6523},ok:function(){
6524var _4bc=true;
6525if(typeof (this.callback)=="function"){
6526if(this.isPrompt){
6527this.callback(this.textInput.value);
6528}else{
6529if(this.isCheckboxPrompt){
6530if(this.textInput.find("[type=\"checkbox\"]")[0].checked){
6531var t=this.textInput.find("label").text();
6532this.callback(true,t);
6533}else{
6534this.callback(false);
6535}
6536}else{
6537if(this.isCriticalConfirm){
6538if(this.acceptKey==this.textInput.value.trim()){
6539this.callback(true);
6540}else{
6541_4bc=false;
6542this.showCriticalConfirmWarning();
6543}
6544}else{
6545this.callback(true);
6546}
6547}
6548}
6549}
6550if(_4bc){
6551this.overlay.cancel();
6552}
6553},enterKey:function(evt){
6554var key=(evt.which)?evt.which:event.keyCode;
6555if(key==13){
6556var val=this.textInput.value.trim();
6557if((this.lastValue!==undefined&&this.lastValue!=val)||(this.isCriticalConfirm&&this.acceptKey==val)){
6558this.ok();
6559}
6560this.lastValue=val;
6561}
6562},showCriticalConfirmWarning:function(){
6563alert(DR.Widgets.Prompt.INCORRECT_VALUE);
6564this.textInput.focus();
6565this.textInput.select();
6566},cancel:function(){
6567this.overlay.cancel();
6568if(typeof (this.callback)=="function"){
6569if(this.isPrompt||this.isCheckboxPrompt){
6570this.callback(null);
6571}else{
6572this.callback(false);
6573}
6574}
6575}};
6576DR.Widgets.CheckboxPrompt=function(){
6577this._type="CheckboxPrompt";
6578};
6579DR.Widgets.CheckboxPrompt.prototype=new DR.Widgets.Prompt();
6580DR.Widgets.Confirm=function(){
6581this._type="Confirm";
6582};
6583DR.Widgets.Confirm.prototype=new DR.Widgets.Prompt();
6584DR.Widgets.Warning=function(){
6585this._type="Warning";
6586};
6587DR.Widgets.Warning.prototype=new DR.Widgets.Prompt();
6588DR.Widgets.Alert=function(){
6589this._type="Alert";
6590};
6591DR.Widgets.Alert.prototype=new DR.Widgets.Prompt();
6592DR.Widgets.Success=function(){
6593this._type="Success";
6594};
6595DR.Widgets.Success.prototype=new DR.Widgets.Prompt();
6596DR.Widgets.CriticalConfirm=function(){
6597this._type="Critical_Confirm";
6598};
6599DR.Widgets.CriticalConfirm.prototype=new DR.Widgets.Prompt();
6600DR.Utils.alert=function(_4c1,_4c2,_4c3){
6601if(!DR.Utils.ALERT){
6602DR.Utils.ALERT=new DR.Widgets.Alert();
6603DR.Utils.ALERT.init();
6604}
6605DR.Utils.ALERT.open(_4c1,null,_4c2,_4c3);
6606};
6607DR.Utils.ALERT=null;
6608DR.Utils.success=function(_4c4,_4c5,_4c6){
6609if(!DR.Utils.SUCCESS){
6610DR.Utils.SUCCESS=new DR.Widgets.Success();
6611DR.Utils.SUCCESS.init();
6612}
6613DR.Utils.SUCCESS.open(_4c4,null,_4c5,_4c6);
6614};
6615DR.Utils.SUCCESS=null;
6616DR.Utils.warning=function(_4c7,_4c8,_4c9){
6617if(!DR.Utils.WARNING){
6618DR.Utils.WARNING=new DR.Widgets.Warning();
6619DR.Utils.WARNING.init();
6620}
6621DR.Utils.WARNING.open(_4c7,null,_4c8,_4c9);
6622};
6623DR.Utils.WARNING=null;
6624DR.Utils.confirm=function(_4ca,_4cb,_4cc){
6625if(!DR.Utils.CONFIRM){
6626DR.Utils.CONFIRM=new DR.Widgets.Confirm();
6627DR.Utils.CONFIRM.init();
6628}
6629DR.Utils.CONFIRM.open(_4ca,null,_4cb,_4cc);
6630};
6631DR.Utils.CONFIRM=null;
6632DR.Utils.prompt=function(_4cd,text,_4cf,_4d0){
6633if(!DR.Utils.PROMPT){
6634DR.Utils.PROMPT=new DR.Widgets.Prompt();
6635DR.Utils.PROMPT.init();
6636}
6637DR.Utils.PROMPT.open(_4cd,text,_4cf,_4d0);
6638};
6639DR.Utils.PROMPT=null;
6640DR.Utils.checkboxPrompt=function(text,_4d2,_4d3,_4d4,_4d5,_4d6){
6641if(!DR.Utils.CHECKBOXPROMPT){
6642DR.Utils.CHECKBOXPROMPT=new DR.Widgets.CheckboxPrompt();
6643DR.Utils.CHECKBOXPROMPT.init();
6644}
6645DR.Utils.CHECKBOXPROMPT.open(text,_4d2,_4d3,_4d4,null,_4d5,_4d6);
6646};
6647DR.Utils.PROMPT=null;
6648DR.Utils.criticalConfirm=function(_4d7,text,_4d9,_4da,_4db){
6649if(!DR.Utils.CRITICAL_CONFIRM){
6650DR.Utils.CRITICAL_CONFIRM=new DR.Widgets.CriticalConfirm();
6651DR.Utils.CRITICAL_CONFIRM.init();
6652}
6653DR.Utils.CRITICAL_CONFIRM.open(_4d7,text,_4d9,_4da,_4db);
6654};
6655DR.Utils.CRITICAL_CONFIRM=null;
6656(function($){
6657var _4dd={title:null,callback:null};
6658var _4de;
6659var _4df=function(_4e0){
6660_4e0=(_4e0)?_4e0:{};
6661return $.extend({},_4dd,_4e0);
6662};
6663$.dr.alert=function(text,_4e2){
6664_4e2=_4df(_4e2);
6665DR.Utils.alert(text,_4e2.callback,_4e2.title);
6666};
6667$.dr.success=function(text,_4e4){
6668_4e4=_4df(_4e4);
6669DR.Utils.success(text,_4e4.callback,_4e4.title);
6670};
6671$.dr.warning=function(text,_4e6,_4e7){
6672_4e7=_4df(_4e7);
6673DR.Utils.warning(text,_4e6,_4e7.title);
6674};
6675$.dr.confirm=function(text,_4e9,_4ea){
6676_4ea=_4df(_4ea);
6677DR.Utils.confirm(text,_4e9,_4ea.title);
6678};
6679$.dr.checkboxPrompt=function(text,_4ec,_4ed,_4ee){
6680_4ee=_4df(_4ee);
6681DR.Utils.checkboxPrompt(text,_4ec,_4ed,_4ee.title,_4ee.buttonText,_4ee.timer);
6682};
6683$.dr.prompt=function(text,_4f0,_4f1,_4f2){
6684_4f2=_4df(_4f2);
6685DR.Utils.prompt(text,_4f0,_4f1,_4f2.title);
6686};
6687$.dr.criticalConfirm=function(text,_4f4,_4f5,_4f6,_4f7){
6688_4f7=_4df(_4f7);
6689DR.Utils.criticalConfirm(text,_4f4,_4f5,_4f7.title,_4f6);
6690};
6691})(jQuery);
6692DR.Widgets.PanelSet=function(obj){
6693this.layout="TwoColumn";
6694this.sidebarOpenCSSClass="sidebarOpen";
6695this.sidebarClosedCSSClass="sidebarClosed";
6696this.buttonSelectedCSSClass="selected";
6697this.column1Open=true;
6698this.container=(typeof obj=="string")?document.getElementById(obj):obj;
6699this.defaultSearchField=null;
6700this.column1Button=null;
6701this.column1=null;
6702this.column2=null;
6703this.column1Width=200;
6704this.column2Width=null;
6705this.panelWidth=720;
6706this.panelHeight=430;
6707this.autoHeightSizing=true;
6708this.handleWidth=10;
6709this.leftPadding=0;
6710this.column1MinWidth=170;
6711this.column2MinWidth=170;
6712this.dragObject=null;
6713this.resizeCallback=null;
6714this.saveCookieState=false;
6715this.saveUserDataState=true;
6716this.stateCookie=null;
6717this.stateCookieID=null;
6718this.dataTableContainer=null;
6719};
6720DR.Widgets.PanelSet.prototype={init:function(){
6721this.loadState();
6722var self=this;
6723var _4fa=window.onresize;
6724var _4fb=function(){
6725self.refreshPanelSize();
6726self.refresh();
6727};
6728window.onresize=function(){
6729_4fb();
6730if(typeof (_4fa)=="function"){
6731_4fa();
6732}
6733};
6734var _4fc,winOnload;
6735function cleanupEvents(){
6736window.detachEvent("onresize",winOnload);
6737window.detachEvent("onresize",_4fb);
6738window.detachEvent("onunload",cleanupEvents);
6739}
6740if(DR.Utils.BrowserDetect.browser=="Explorer"){
6741if(DR.Utils.BrowserDetect.version<7){
6742if(this.column2){
6743var d=this.column2.getElementsByTagName("div");
6744for(var i=0;i<d.length;i++){
6745var c=d[i].className;
6746if(c){
6747if(c.indexOf("dataTableContainer")>-1){
6748this.dataTableContainer=d[i];
6749break;
6750}
6751}
6752}
6753}
6754}
6755_4fc=window.onload;
6756winOnload=function(){
6757self.drawInterface();
6758};
6759window.onload=function(){
6760winOnload();
6761if(typeof (_4fc)=="function"){
6762_4fc();
6763}
6764};
6765if(window.attachEvent){
6766window.attachEvent("onunload",cleanupEvents);
6767}
6768}else{
6769this.drawInterface();
6770}
6771},drawInterface:function(){
6772this.refreshPanelSize();
6773this.attachHandles();
6774this.refresh();
6775this.show();
6776},setColumn1Id:function(id){
6777this.column1=document.getElementById(id);
6778},setColumn2Id:function(id){
6779this.column2=document.getElementById(id);
6780},setColumn1Width:function(w){
6781this.column1Width=parseInt(w,10);
6782},show:function(){
6783this.container.style.visibility="visible";
6784},setPanelSize:function(w,h){
6785if(w!==undefined&&h!==undefined){
6786this.panelWidth=parseInt(w,10);
6787this.panelHeight=parseInt(h,10);
6788}
6789},setPanelHeight:function(h){
6790if(h!==undefined){
6791this.autoHeightSizing=false;
6792this.panelHeight=parseInt(h,10);
6793}
6794},refreshPanelSize:function(w,h){
6795if(DR.Utils.BrowserDetect.browser=="Explorer"){
6796this.panelWidth=this.container.offsetWidth;
6797if(this.autoHeightSizing&&DR.Utils.BrowserDetect.version>6){
6798this.panelHeight=jQuery("TABLE.panelTable",this.container)[0].offsetHeight;
6799}
6800}else{
6801this.panelWidth=this.container.offsetWidth;
6802}
6803},setColumn1DefaultWidth:function(w){
6804if(w!==undefined){
6805this.column1Width=parseInt(w,10);
6806}
6807},setColumn2DefaultWidth:function(w){
6808if(w!==undefined){
6809this.column2Width=parseInt(w,10);
6810}
6811},setColumn1MinWidth:function(w){
6812if(w!==undefined){
6813this.column1MinWidth=parseInt(w,10);
6814}
6815},setColumn1ButtonId:function(id){
6816if(id!==undefined){
6817this.column1Button=document.getElementById(id);
6818}
6819},setDefaultSearchFocusFieldId:function(id){
6820if(id!==undefined){
6821this.defaultSearchField=document.getElementById(id);
6822}
6823},setUserDataStorageIds:function(_50d,_50e){
6824if(_50d!==undefined&&_50e!==undefined){
6825this.userDataPageName=_50d;
6826this.userDataSetting=_50e;
6827}
6828},setColumn2MinWidth:function(w){
6829if(w!==undefined){
6830this.column2MinWidth=parseInt(w,10);
6831}
6832},getColumn1Width:function(){
6833return this.column1Width;
6834},getColumn2Width:function(){
6835return this.column2Width;
6836},setResizeCallback:function(func){
6837if(typeof func=="function"){
6838this.resizeCallback=func;
6839}
6840},setStateCookieID:function(_511){
6841this.saveCookieState=true;
6842this.stateCookieID=_511+"_LeftWidth";
6843},loadState:function(){
6844if(this.saveCookieState&&this.stateCookie===null){
6845this.stateCookie=new DR.Utils.Cookie(this.stateCookieID);
6846this.stateCookie.load();
6847var v=this.stateCookie.value;
6848if(v!==null){
6849this.column1Width=parseInt(v,10);
6850}
6851}
6852},saveState:function(_513){
6853if(this.saveUserDataState&&$.dr.userdata!==null){
6854if(_513=="width"){
6855$.dr.userdata.save(this.userDataPageName,this.userDataSetting+"Width",this.column1Width,"String");
6856}else{
6857var _514="";
6858if(!this.column1Open){
6859_514="collapsed";
6860}
6861$.dr.userdata.save(this.userDataPageName,this.userDataSetting+"Collapsed",_514,"String");
6862}
6863}else{
6864if(this.saveCookieState&&this.stateCookie===null){
6865this.stateCookie.setValue(""+this.column1Width+"");
6866}
6867}
6868},attachHandles:function(){
6869var _515;
6870if(this.layout=="TwoColumn"){
6871_515="H";
6872}else{
6873if(this.layout=="TwoRow"){
6874_515="V";
6875}
6876}
6877var self=this;
6878this.hiddenHandle=document.createElement("div");
6879this.hiddenHandle.style.position="absolute";
6880this.hiddenHandle.style.top="0px";
6881this.hiddenHandle.style.display="none";
6882this.staticHandle=document.createElement("div");
6883this.staticHandle.style.position="absolute";
6884this.staticHandle.style.top="0px";
6885this.staticHandle.style.display="block";
6886function handleOnMousedown(_517){
6887self.initDrag(_517);
6888}
6889this.staticHandle.onmousedown=handleOnMousedown;
6890this.hiddenHandle.className="splitContainerHiddenHandle"+_515;
6891this.staticHandle.className="splitContainerHandle"+_515;
6892this.container.appendChild(this.staticHandle);
6893this.container.appendChild(this.hiddenHandle);
6894function cleanupEvents(){
6895self.staticHandle.detachEvent("onmousedown",handleOnMousedown);
6896window.detachEvent("onunload",cleanupEvents);
6897}
6898if(window.attachEvent){
6899window.attachEvent("onunload",cleanupEvents);
6900}
6901},refresh:function(){
6902var h=this.panelHeight-2;
6903if(this.hiddenHandle){
6904if(DR.Utils.BrowserDetect.browser=="Explorer"){
6905if(this.autoHeightSizing){
6906}
6907this.hiddenHandle.style.height=(h+2)+"px";
6908this.staticHandle.style.height=(h+2)+"px";
6909}else{
6910this.hiddenHandle.style.height="100%";
6911this.staticHandle.style.height="100%";
6912}
6913}
6914this.refreshColumn1Width();
6915if(!(DR.Utils.BrowserDetect.browser=="Explorer"&&DR.Utils.BrowserDetect.version<7)){
6916this.fixColumn1Width();
6917}else{
6918this.column2Width=this.container.offsetWidth-this.column1Width;
6919if(this.dataTableContainer){
6920this.dataTableContainer.style.width=(this.column2Width-20)+"px";
6921}
6922}
6923if(this.hiddenHandle){
6924this.hiddenHandle.style.left=(this.column1Width)+"px";
6925this.staticHandle.style.left=(this.column1Width)+"px";
6926}
6927if(typeof this.resizeCallback=="function"){
6928this.resizeCallback();
6929}
6930},fixColumn1Width:function(_519){
6931if(this.container.className.indexOf(this.sidebarClosedCSSClass)==-1){
6932var a=this.column1.childNodes;
6933for(var i=0;i<a.length;i++){
6934if(a[i].tagName){
6935var newW=(a[i].offsetWidth);
6936if(jQuery.browser.safari){
6937newW=newW+2;
6938}
6939this.column1.style.width=newW+"px";
6940this.column1Width=newW+this.leftPadding;
6941}
6942}
6943}
6944},refreshColumn1Width:function(_51d){
6945this.column1.style.width=(this.column1Width-this.leftPadding)+"px";
6946},initDrag:function(_51e){
6947if(this.dragObject===null){
6948this.dragObject=new DR.Utils.DragObject(this.hiddenHandle);
6949this.dragObject.setType("PanelSet",this);
6950this.dragObject.setMoveDragCallback(true);
6951this.dragObject.setStopDragCallback(true);
6952}
6953this.dragObject.initDrag(_51e);
6954},moveDrag:function(x,y){
6955this.hiddenHandle.style.display="block";
6956},stopDrag:function(x,y){
6957if(this.layout=="TwoColumn"){
6958this.column1Width=parseInt(this.hiddenHandle.style.left,10);
6959this.saveState("width");
6960}
6961this.dragObject.isDragging=false;
6962this.dragObject.isInitialized=false;
6963this.hiddenHandle.style.display="none";
6964this.refresh();
6965if(typeof this.resizeCallback=="function"){
6966this.resizeCallback(this.column1Width);
6967}
6968},hideColumn1:function(){
6969if(DR.Utils.BrowserDetect.browser=="Explorer"){
6970this.column1.style.display="none";
6971}
6972DR.Utils.replaceCSSClass(this.container,this.sidebarOpenCSSClass,this.sidebarClosedCSSClass);
6973DR.Utils.removeCSSClass(this.column1Button,"selected");
6974this.column1Open=false;
6975this.saveState("column1Visible");
6976},showColumn1:function(){
6977if(DR.Utils.BrowserDetect.browser=="Explorer"){
6978this.column1.style.display="block";
6979}
6980DR.Utils.replaceCSSClass(this.container,this.sidebarClosedCSSClass,this.sidebarOpenCSSClass);
6981DR.Utils.addCSSClass(this.column1Button,this.buttonSelectedCSSClass);
6982if(this.defaultSearchField){
6983this.defaultSearchField.focus();
6984this.defaultSearchField.select();
6985}
6986this.column1Open=true;
6987this.saveState("column1Visible");
6988},toggleColumn1:function(){
6989if(this.container.className.indexOf(this.sidebarClosedCSSClass)>-1){
6990this.showColumn1();
6991}else{
6992this.hideColumn1();
6993}
6994}};
6995(function($){
6996var imgs=[],$dialog,$span,frameTimeout,open=false,isIE6=($.browser.msie&&$.browser.version==6),stopEventDefined=false;
6997var _525={enabled:true,showText:true,text:"Processing...",cssClass:"processingDialog",imgSrc:"sprites/spinner-sprite-36-fff",imgExt:"gif",imgPrefix:"bg",frames:8,frameInterval:90,beforeUnloadDelay:2000,shadowVisible:true};
6998var _526=function(){
6999var _527=this;
7000var _528=$(window).scrollTop();
7001var _529=$(window).height();
7002var _52a=$(window).width();
7003var _52b=_527.height();
7004var _52c=_527.width();
7005var posY=(!isIE6)?(_529/2)-(_52b/2):(_529/2)-(_52b/2)+_528;
7006var posX=(_52a/2)-(_52c/2);
7007_527.css({"top":posY,"left":posX});
7008};
7009var _52f=function(){
7010var _530=0;
7011var func=function(test){
7012if(_530>=_525.frames){
7013_530=0;
7014}
7015$span.attr("class",_525.imgPrefix+_530);
7016_530++;
7017frameTimeout=setTimeout(func,_525.frameInterval);
7018};
7019func();
7020};
7021var _533=function(){
7022if(typeof (frameTimeout)!="undefined"){
7023clearTimeout(frameTimeout);
7024}
7025};
7026var _534=function(){
7027var _535=this;
7028$(window).bind("resize scroll",function(){
7029_526.call(_535);
7030});
7031};
7032$.dr.processingDialog={show:function(){
7033if(!_525.enabled||open){
7034return;
7035}
7036open=true;
7037$dialog.show();
7038_52f.call($span);
7039_526.call($dialog);
7040_534.call($dialog);
7041if(!stopEventDefined&&$.browser.msie){
7042stopEventDefined=true;
7043document.attachEvent("onstop",$.dr.processingDialog.hide);
7044}
7045},hide:function(){
7046open=false;
7047_533();
7048$dialog.hide();
7049},enable:function(){
7050_525.enabled=true;
7051},disable:function(){
7052_525.enabled=false;
7053$.dr.processingDialog.hide();
7054}};
7055$(document).bind("showChangesWarning",function(){
7056$.dr.processingDialog.disable();
7057});
7058var init=function(){
7059$dialog=$("<div class=\""+_525.cssClass+" "+_525.imgPrefix+"\"><span>"+_525.text+"</span></div>").hide().prependTo("body");
7060$span=$("span",$dialog);
7061if(isIE6){
7062$dialog.css("position","absolute");
7063}
7064if(!_525.showText){
7065$dialog.find("> span").addClass("hide");
7066}
7067if(_525.shadowVisible){
7068$dialog.find("> span").dr.shadows();
7069}
7070var _537=new Image();
7071_537.src=$.dr.IMAGE_PATH+_525.imgSrc+"."+_525.imgExt;
7072var func=function(){
7073setTimeout($.dr.processingDialog.show,_525.beforeUnloadDelay);
7074};
7075$(window).bind("beforeunload",func);
7076};
7077$.dr.addDomReadyEvent(init,"domReadyLate");
7078})(jQuery);
7079DR.Widgets.SessionTimeout=function(){
7080};
7081DR.Widgets.SessionTimeout.KEEP_ALIVE_URL="";
7082DR.Widgets.SessionTimeout.SESSION_EXPIRED_TITLE="Session Expired";
7083DR.Widgets.SessionTimeout.SESSION_WARNING_TITLE="Session Timeout Warning";
7084DR.Widgets.SessionTimeout.sessionAboutToTimeoutTimerLimit=50;
7085DR.Widgets.SessionTimeout.timerLimit=60;
7086DR.Widgets.SessionTimeout.enabled=false;
7087DR.Widgets.SessionTimeout.init=function(){
7088if(DR.Widgets.SessionTimeout.enabled){
7089DR.Widgets.SessionTimeout.startTime=new Date().getTime();
7090DR.Widgets.SessionTimeout.overlay=null;
7091DR.Widgets.SessionTimeout.aboutToTimeoutOverlay=null;
7092DR.Widgets.SessionTimeout.sessionAboutToTimeoutTimerLimit=DR.Widgets.SessionTimeout.sessionAboutToTimeoutTimerLimit*1000*60;
7093DR.Widgets.SessionTimeout.timerLimit=DR.Widgets.SessionTimeout.timerLimit*1000*60;
7094window.setTimeout("DR.Widgets.SessionTimeout.check()",10000);
7095}
7096};
7097DR.Widgets.SessionTimeout.showAboutToTimeoutOverlay=function(){
7098if(DR.Widgets.SessionTimeout.aboutToTimeoutOverlay===null){
7099DR.Widgets.SessionTimeout.aboutToTimeoutOverlay=new DR.Widgets.InlineModalOverlay("sessionAboutToTimeoutOverlay");
7100DR.Widgets.SessionTimeout.aboutToTimeoutOverlay.setTitle(DR.Widgets.SessionTimeout.SESSION_WARNING_TITLE);
7101DR.Widgets.SessionTimeout.aboutToTimeoutOverlay.setSize(450,200);
7102}
7103if(!DR.Widgets.SessionTimeout.aboutToTimeoutOverlay.isOpen){
7104DR.Widgets.SessionTimeout.aboutToTimeoutOverlay.show();
7105overlayStack.disableCurrent();
7106getElem("keepAliveBtn").focus();
7107}
7108};
7109DR.Widgets.SessionTimeout.showOverlay=function(){
7110DR.Widgets.SessionTimeout.aboutToTimeoutOverlay.close();
7111if(DR.Widgets.SessionTimeout.overlay===null){
7112DR.Widgets.SessionTimeout.overlay=new DR.Widgets.InlineModalOverlay("sessionTimeoutOverlay");
7113}
7114DR.Widgets.SessionTimeout.overlay.setTitle(DR.Widgets.SessionTimeout.SESSION_EXPIRED_TITLE);
7115DR.Widgets.SessionTimeout.overlay.setSize(450,200);
7116DR.Widgets.SessionTimeout.overlay.show();
7117overlayStack.disableCurrent();
7118};
7119DR.Widgets.SessionTimeout.check=function(){
7120var _539=new Date().getTime();
7121var _53a=_539-DR.Widgets.SessionTimeout.startTime;
7122if(_53a>DR.Widgets.SessionTimeout.timerLimit){
7123DR.Widgets.SessionTimeout.showOverlay();
7124return;
7125}else{
7126if(_53a>DR.Widgets.SessionTimeout.sessionAboutToTimeoutTimerLimit){
7127DR.Widgets.SessionTimeout.showAboutToTimeoutOverlay();
7128}
7129}
7130window.setTimeout("DR.Widgets.SessionTimeout.check()",10000);
7131};
7132DR.Widgets.SessionTimeout.keepAlive=function(){
7133DR.Widgets.SessionTimeout.sessionTimeoutStartTime=new Date().getTime();
7134DR.Widgets.SessionTimeout.aboutToTimeoutOverlay.close();
7135jQuery.ajax({type:"GET",url:DR.Widgets.SessionTimeout.keepAliveUrl});
7136};
7137(function($){
7138$.extend({tablesorter:new function(){
7139var _53c=[],widgets=[];
7140this.defaults={cssHeader:"th_header",cssAsc:"descending",cssDesc:"ascending",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:".",debug:false};
7141function benchmark(s,d){
7142log(s+","+(new Date().getTime()-d.getTime())+"ms");
7143}
7144this.benchmark=benchmark;
7145function log(s){
7146if(typeof console!="undefined"&&typeof console.debug!="undefined"){
7147console.log(s);
7148}else{
7149alert(s);
7150}
7151}
7152function buildParserCache(_540,_541){
7153if(_540.config.debug){
7154var _542="";
7155}
7156var rows=_540.tBodies[0].rows;
7157if(_540.tBodies[0].rows[0]){
7158var list=[],cells=rows[0].cells,l=cells.length;
7159for(var i=0;i<l;i++){
7160var p=false;
7161if($.metadata&&($(_541[i]).metadata()&&$(_541[i]).metadata().sorter)){
7162p=getParserById($(_541[i]).metadata().sorter);
7163}else{
7164if((_540.config.headers[i]&&_540.config.headers[i].sorter)){
7165p=getParserById(_540.config.headers[i].sorter);
7166}
7167}
7168if(!p){
7169p=detectParserForColumn(_540,cells[i]);
7170}
7171if(_540.config.debug){
7172_542+="column:"+i+" parser:"+p.id+"\n";
7173}
7174list.push(p);
7175}
7176}
7177if(_540.config.debug){
7178log(_542);
7179}
7180return list;
7181}
7182function detectParserForColumn(_547,node){
7183var l=_53c.length;
7184for(var i=1;i<l;i++){
7185if(_53c[i].is($.trim(getElementText(_547.config,node)),_547,node)){
7186return _53c[i];
7187}
7188}
7189return _53c[0];
7190}
7191function getParserById(name){
7192var l=_53c.length;
7193for(var i=0;i<l;i++){
7194if(_53c[i].id.toLowerCase()==name.toLowerCase()){
7195return _53c[i];
7196}
7197}
7198return false;
7199}
7200function buildCache(_54e){
7201if(_54e.config.debug){
7202var _54f=new Date();
7203}
7204var _550=(_54e.tBodies[0]&&_54e.tBodies[0].rows.length)||0,totalCells=(_54e.tBodies[0].rows[0]&&_54e.tBodies[0].rows[0].cells.length)||0,_53c=_54e.config.parsers,cache={row:[],normalized:[]};
7205for(var i=0;i<_550;++i){
7206var c=_54e.tBodies[0].rows[i],cols=[];
7207cache.row.push($(c));
7208for(var j=0;j<totalCells;++j){
7209cols.push(_53c[j].format(getElementText(_54e.config,c.cells[j]),_54e,c.cells[j]));
7210}
7211cols.push(i);
7212cache.normalized.push(cols);
7213cols=null;
7214}
7215if(_54e.config.debug){
7216benchmark("Building cache for "+_550+" rows:",_54f);
7217}
7218return cache;
7219}
7220function getElementText(_554,node){
7221if(!node){
7222return "";
7223}
7224var t="";
7225if(_554.textExtraction=="simple"){
7226if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){
7227t=node.childNodes[0].innerHTML;
7228}else{
7229t=node.innerHTML;
7230}
7231}else{
7232if(typeof (_554.textExtraction)=="function"){
7233t=_554.textExtraction(node);
7234}else{
7235t=$(node).text();
7236}
7237}
7238return t;
7239}
7240function appendToTable(_557,_558){
7241if(_557.config.debug){
7242var _559=new Date();
7243}
7244var c=_558,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(_557.tBodies[0]),rows=[];
7245for(var i=0;i<totalRows;i++){
7246rows.push(r[n[i][checkCell]]);
7247if(!_557.config.appender){
7248var o=r[n[i][checkCell]];
7249var l=o.length;
7250for(var j=0;j<l;j++){
7251tableBody[0].appendChild(o[j]);
7252}
7253}
7254}
7255if(_557.config.appender){
7256_557.config.appender(_557,rows);
7257}
7258rows=null;
7259if(_557.config.debug){
7260benchmark("Rebuilt table:",_559);
7261}
7262applyWidget(_557);
7263setTimeout(function(){
7264$(_557).trigger("sortEnd");
7265},0);
7266}
7267function buildHeaders(_55f){
7268if(_55f.config.debug){
7269var time=new Date();
7270}
7271var meta=($.metadata)?true:false,tableHeadersRows=[];
7272for(var i=0;i<_55f.tHead.rows.length;i++){
7273tableHeadersRows[i]=0;
7274}
7275$tableHeaders=$("thead th",_55f);
7276$tableHeaders.each(function(_563){
7277this.count=0;
7278this.column=_563;
7279this.order=formatSortingOrder(_55f.config.sortInitialOrder);
7280if(checkHeaderMetadata(this)||checkHeaderOptions(_55f,_563)){
7281this.sortDisabled=true;
7282}
7283if(!this.sortDisabled){
7284$(this).addClass(_55f.config.cssHeader);
7285}
7286_55f.config.headerList[_563]=this;
7287});
7288if(_55f.config.debug){
7289benchmark("Built headers:",time);
7290log($tableHeaders);
7291}
7292return $tableHeaders;
7293}
7294function checkCellColSpan(_564,rows,row){
7295var arr=[],r=_564.tHead.rows,c=r[row].cells;
7296for(var i=0;i<c.length;i++){
7297var cell=c[i];
7298if(cell.colSpan>1){
7299arr=arr.concat(checkCellColSpan(_564,headerArr,row++));
7300}else{
7301if(_564.tHead.length==1||(cell.rowSpan>1||!r[row+1])){
7302arr.push(cell);
7303}
7304}
7305}
7306return arr;
7307}
7308function checkHeaderMetadata(cell){
7309if(($.metadata)&&($(cell).metadata().sorter===false)){
7310return true;
7311}
7312return false;
7313}
7314function checkHeaderOptions(_56b,i){
7315if((_56b.config.headers[i])&&(_56b.config.headers[i].sorter===false)){
7316return true;
7317}
7318return false;
7319}
7320function applyWidget(_56d){
7321var c=_56d.config.widgets;
7322var l=c.length;
7323for(var i=0;i<l;i++){
7324getWidgetById(c[i]).format(_56d);
7325}
7326}
7327function getWidgetById(name){
7328var l=widgets.length;
7329for(var i=0;i<l;i++){
7330if(widgets[i].id.toLowerCase()==name.toLowerCase()){
7331return widgets[i];
7332}
7333}
7334}
7335function formatSortingOrder(v){
7336if(typeof (v)!="Number"){
7337i=(v.toLowerCase()=="desc")?1:0;
7338}else{
7339i=(v==(0||1))?v:0;
7340}
7341return i;
7342}
7343function isValueInArray(v,a){
7344var l=a.length;
7345for(var i=0;i<l;i++){
7346if(a[i][0]==v){
7347return true;
7348}
7349}
7350return false;
7351}
7352function setHeadersCss(_579,_57a,list,css){
7353_57a.removeClass(css[0]).removeClass(css[1]);
7354var h=[];
7355_57a.each(function(_57e){
7356if(!this.sortDisabled){
7357h[this.column]=$(this);
7358}
7359});
7360var l=list.length;
7361for(var i=0;i<l;i++){
7362if(list[i][0]){
7363h[list[i][0]].addClass(css[list[i][1]]);
7364}
7365}
7366}
7367function fixColumnWidth(_581,_582){
7368var c=_581.config;
7369if(c.widthFixed){
7370var _584=$("<colgroup>");
7371$("tr:first td",_581.tBodies[0]).each(function(){
7372_584.append($("<col>").css("width",$(this).width()));
7373});
7374$(_581).prepend(_584);
7375}
7376}
7377function updateHeaderSortCount(_585,_586){
7378var c=_585.config,l=_586.length;
7379for(var i=0;i<l;i++){
7380var s=_586[i],o=c.headerList[s[0]];
7381o.count=s[1];
7382o.count++;
7383}
7384}
7385function multisort(_58a,_58b,_58c){
7386if(_58a.config.debug){
7387var _58d=new Date();
7388}
7389var _58e="var sortWrapper = function(a,b) {",l=_58b.length;
7390for(var i=0;i<l;i++){
7391var c=_58b[i][0];
7392var _591=_58b[i][1];
7393var s=(getCachedSortType(_58a.config.parsers,c)=="text")?((_591==0)?"sortText":"sortTextDesc"):((_591==0)?"sortNumeric":"sortNumericDesc");
7394var e="e"+i;
7395_58e+="var "+e+" = "+s+"(a["+c+"],b["+c+"]); ";
7396_58e+="if("+e+") { return "+e+"; } ";
7397_58e+="else { ";
7398}
7399var _594=_58c.normalized[0].length-1;
7400_58e+="return a["+_594+"]-b["+_594+"];";
7401for(var i=0;i<l;i++){
7402_58e+="}; ";
7403}
7404_58e+="return 0; ";
7405_58e+="}; ";
7406eval(_58e);
7407_58c.normalized.sort(sortWrapper);
7408if(_58a.config.debug){
7409benchmark("Sorting on "+_58b.toString()+" and dir "+_591+" time:",_58d);
7410}
7411return _58c;
7412}
7413function sortText(a,b){
7414return ((a<b)?-1:((a>b)?1:0));
7415}
7416function sortTextDesc(a,b){
7417return ((b<a)?-1:((b>a)?1:0));
7418}
7419function sortNumeric(a,b){
7420return a-b;
7421}
7422function sortNumericDesc(a,b){
7423return b-a;
7424}
7425function getCachedSortType(_59d,i){
7426return _59d[i].type;
7427}
7428this.construct=function(_59f){
7429return this.each(function(){
7430if(!this.tHead||!this.tBodies){
7431return;
7432}
7433var _5a0,$document,$headers,cache,config,shiftDown=0,sortOrder;
7434this.config={};
7435config=$.extend(this.config,$.tablesorter.defaults,_59f);
7436_5a0=$(this);
7437$headers=buildHeaders(this);
7438this.config.parsers=buildParserCache(this,$headers);
7439cache=buildCache(this);
7440var _5a1=[config.cssDesc,config.cssAsc];
7441fixColumnWidth(this);
7442$headers.click(function(e){
7443_5a0.trigger("sortStart");
7444var _5a3=(_5a0[0].tBodies[0]&&_5a0[0].tBodies[0].rows.length)||0;
7445if(!this.sortDisabled&&_5a3>0){
7446var _5a4=$(this);
7447var i=this.column;
7448this.order=this.count++%2;
7449if(!e[config.sortMultiSortKey]){
7450config.sortList=[];
7451if(config.sortForce!=null){
7452var a=config.sortForce;
7453for(var j=0;j<a.length;j++){
7454if(a[j][0]!=i){
7455config.sortList.push(a[j]);
7456}
7457}
7458}
7459config.sortList.push([i,this.order]);
7460}else{
7461if(isValueInArray(i,config.sortList)){
7462for(var j=0;j<config.sortList.length;j++){
7463var s=config.sortList[j],o=config.headerList[s[0]];
7464if(s[0]==i){
7465o.count=s[1];
7466o.count++;
7467s[1]=o.count%2;
7468}
7469}
7470}else{
7471config.sortList.push([i,this.order]);
7472}
7473}
7474setTimeout(function(){
7475setHeadersCss(_5a0[0],$headers,config.sortList,_5a1);
7476appendToTable(_5a0[0],multisort(_5a0[0],config.sortList,cache));
7477},1);
7478return false;
7479}
7480}).mousedown(function(){
7481if(config.cancelSelection){
7482this.onselectstart=function(){
7483return false;
7484};
7485return false;
7486}
7487});
7488_5a0.bind("update",function(){
7489this.config.parsers=buildParserCache(this,$headers);
7490cache=buildCache(this);
7491}).bind("sorton",function(e,list){
7492$(this).trigger("sortStart");
7493config.sortList=list;
7494var _5ab=config.sortList;
7495updateHeaderSortCount(this,_5ab);
7496setHeadersCss(this,$headers,_5ab,_5a1);
7497appendToTable(this,multisort(this,_5ab,cache));
7498}).bind("appendCache",function(){
7499appendToTable(this,cache);
7500}).bind("applyWidgetId",function(e,id){
7501getWidgetById(id).format(this);
7502}).bind("applyWidgets",function(){
7503applyWidget(this);
7504});
7505if($.metadata&&($(this).metadata()&&$(this).metadata().sortlist)){
7506config.sortList=$(this).metadata().sortlist;
7507}
7508if(config.sortList.length>0){
7509_5a0.trigger("sorton",[config.sortList]);
7510}
7511applyWidget(this);
7512});
7513};
7514this.addParser=function(_5ae){
7515var l=_53c.length,a=true;
7516for(var i=0;i<l;i++){
7517if(_53c[i].id.toLowerCase()==_5ae.id.toLowerCase()){
7518a=false;
7519}
7520}
7521if(a){
7522_53c.push(_5ae);
7523}
7524};
7525this.addWidget=function(_5b1){
7526widgets.push(_5b1);
7527};
7528this.formatFloat=function(s){
7529var i=parseFloat(s);
7530return (isNaN(i))?0:i;
7531};
7532this.formatInt=function(s){
7533var i=parseInt(s);
7534return (isNaN(i))?0:i;
7535};
7536this.isDigit=function(s,_5b7){
7537var _5b8="\\"+_5b7.decimal;
7538var exp="/(^[+]?0("+_5b8+"0+)?$)|(^([-+]?[1-9][0-9]*)$)|(^([-+]?((0?|[1-9][0-9]*)"+_5b8+"(0*[1-9][0-9]*)))$)|(^[-+]?[1-9]+[0-9]*"+_5b8+"0+$)/";
7539return RegExp(exp).test($.trim(s));
7540};
7541this.clearTableBody=function(_5ba){
7542if($.browser.msie){
7543function empty(){
7544while(this.firstChild){
7545this.removeChild(this.firstChild);
7546}
7547}
7548empty.apply(_5ba.tBodies[0]);
7549}else{
7550_5ba.tBodies[0].innerHTML="";
7551}
7552};
7553}});
7554$.fn.extend({tablesorter:$.tablesorter.construct});
7555var ts=$.tablesorter;
7556ts.addParser({id:"text",is:function(s){
7557return true;
7558},format:function(s){
7559return $.trim(s.toLowerCase());
7560},type:"text"});
7561ts.addParser({id:"digit",is:function(s,_5bf){
7562var c=_5bf.config;
7563return $.tablesorter.isDigit(s,c);
7564},format:function(s){
7565return $.tablesorter.formatFloat(s);
7566},type:"numeric"});
7567ts.addParser({id:"currency",is:function(s){
7568return /^[£$€?.]/.test(s);
7569},format:function(s){
7570return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9.]/g),""));
7571},type:"numeric"});
7572ts.addParser({id:"ipAddress",is:function(s){
7573return /^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s);
7574},format:function(s){
7575var a=s.split("."),r="",l=a.length;
7576for(var i=0;i<l;i++){
7577var item=a[i];
7578if(item.length==2){
7579r+="0"+item;
7580}else{
7581r+=item;
7582}
7583}
7584return $.tablesorter.formatFloat(r);
7585},type:"numeric"});
7586ts.addParser({id:"url",is:function(s){
7587return /^(https?|ftp|file):\/\/$/.test(s);
7588},format:function(s){
7589return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),""));
7590},type:"text"});
7591ts.addParser({id:"isoDate",is:function(s){
7592return /^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s);
7593},format:function(s){
7594return $.tablesorter.formatFloat((s!="")?new Date(s.replace(new RegExp(/-/g),"/")).getTime():"0");
7595},type:"numeric"});
7596ts.addParser({id:"percent",is:function(s){
7597return /\%$/.test($.trim(s));
7598},format:function(s){
7599return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),""));
7600},type:"numeric"});
7601ts.addParser({id:"usLongDate",is:function(s){
7602return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/));
7603},format:function(s){
7604return $.tablesorter.formatFloat(new Date(s).getTime());
7605},type:"numeric"});
7606ts.addParser({id:"shortDate",is:function(s){
7607return /\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s);
7608},format:function(s,_5d3){
7609var c=_5d3.config;
7610s=s.replace(/\-/g,"/");
7611if(c.dateFormat=="us"){
7612s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2");
7613}else{
7614if(c.dateFormat=="uk"){
7615s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1");
7616}else{
7617if(c.dateFormat=="dd/mm/yy"||c.dateFormat=="dd-mm-yy"){
7618s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3");
7619}
7620}
7621}
7622return $.tablesorter.formatFloat(new Date(s).getTime());
7623},type:"numeric"});
7624ts.addParser({id:"time",is:function(s){
7625return /^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s);
7626},format:function(s){
7627return $.tablesorter.formatFloat(new Date("2000/01/01 "+s).getTime());
7628},type:"numeric"});
7629ts.addParser({id:"metadata",is:function(s){
7630return false;
7631},format:function(s,_5d9,cell){
7632var c=_5d9.config,p=(!c.parserMetadataName)?"sortValue":c.parserMetadataName;
7633return $(cell).metadata()[p];
7634},type:"numeric"});
7635ts.addWidget({id:"zebra",format:function(_5dc){
7636if(_5dc.config.debug){
7637var time=new Date();
7638}
7639$("tr:visible",_5dc.tBodies[0]).filter(":even").removeClass(_5dc.config.widgetZebra.css[1]).addClass(_5dc.config.widgetZebra.css[0]).end().filter(":odd").removeClass(_5dc.config.widgetZebra.css[0]).addClass(_5dc.config.widgetZebra.css[1]);
7640if(_5dc.config.debug){
7641$.tablesorter.benchmark("Applying Zebra widget",time);
7642}
7643}});
7644})(jQuery);
7645(function($){
7646var _5df=$.support.style,hOffset=($.browser.msie)?-5:-5,spanOffset=($.browser.msie)?0:3,wOffset=($.browser.msie)?2:($.browser.safari)?-1:1;
7647$.namespace("dr",{taskbar:function(){
7648return this.not(".inited").addClass(".inited").each(function(){
7649var _5e0=$("button",this);
7650var _5e1=0;
7651_5e0.each(function(){
7652var span=$("span.icon span",this);
7653var _5e3=span.width();
7654var _5e4=(_5e3<50)?70:(_5e3>=300)?300:_5e3+17;
7655$(this).css("max-width","none").width(_5e4);
7656span.width(_5e4-17);
7657if($.browser.msie){
7658$("span.icon",this).width(_5e4-17+wOffset);
7659}
7660var h=$(this).height();
7661if(h>_5e1){
7662_5e1=h;
7663}
7664if(BrowserDetect.browser=="Explorer"&&BrowserDetect.version==6){
7665$(this).hover(function(){
7666if(!$(this).hasClass("selected")){
7667$(this).addClass("hover");
7668}
7669},function(){
7670$(this).removeClass("hover");
7671});
7672}
7673});
7674_5e1=Math.min(Math.max(_5e1,67),117);
7675_5e0.each(function(){
7676$(this).height(_5e1-hOffset);
7677$("span.icon",this).height(_5e1-hOffset-spanOffset);
7678});
7679$("ul, div.related",this).css("visibility","visible");
7680});
7681}});
7682var _5e6=function(){
7683$("div.taskbar",document).dr.taskbar();
7684};
7685$.dr.addDomReadyEvent(_5e6,"domReadyEarly");
7686})(jQuery);
7687DR.Widgets.ToolTip=function(_5e7,_5e8){
7688if(DR.Utils.BrowserDetect.isIE6()){
7689return null;
7690}
7691this.refObj=_5e7;
7692this.edgeX="Left";
7693this.edgeY="Bottom";
7694this.drawDirectionX="Right";
7695this.drawDirectionY="Down";
7696this._type=_5e8;
7697this.mouseOverTimeOut=1100;
7698this.mouseOutTimeOut=300;
7699if(_5e8=="menuTooltip"){
7700this.cssClass="menuTooltip";
7701this._offsetX=7;
7702this._offsetY=0;
7703this.edgeX="Right";
7704this.edgeY="Top";
7705}else{
7706if(_5e8=="codePreview"){
7707this.cssClass="menuTooltip";
7708this._offsetX=0;
7709this._offsetY=2;
7710this.edgeX="Right";
7711this.edgeY="Top";
7712}else{
7713this.cssClass="taskTooltip";
7714this._offsetX=0;
7715this._offsetY=5;
7716this.edgeX="Left";
7717this.edgeY="Bottom";
7718}
7719}
7720this.drawDirectionX="Right";
7721this.drawDirectionY="Down";
7722this.shadowOffset=4;
7723this.init();
7724};
7725DR.Widgets.ToolTip.prototype={init:function(){
7726if(this.refObj.title!=undefined){
7727if(this.refObj.title.trim()!=""){
7728this.build();
7729var _5e9=this;
7730var _5ea=function(){
7731_5e9.markToShow=true;
7732window.setTimeout(function(){
7733if(_5e9.markToShow){
7734_5e9.show();
7735}
7736},this.mouseOverTimeOut);
7737};
7738var _5eb=function(){
7739_5e9.markToShow=false;
7740window.setTimeout(function(){
7741if(!_5e9.markToShow){
7742_5e9.hide();
7743}
7744},this.mouseOutTimeOut);
7745};
7746var hide=function(){
7747_5e9.hide();
7748};
7749jQuery(this.refObj).mouseover(_5ea);
7750jQuery(this.refObj).mouseout(_5eb);
7751jQuery(this.refObj).click(hide);
7752jQuery(this.tooltip).mouseover(_5ea);
7753jQuery(this.tooltip).mouseout(_5eb);
7754jQuery(this.tooltip).click(hide);
7755}
7756}
7757},build:function(){
7758var d=document.createElement("div");
7759d.className=this.cssClass;
7760d.innerHTML=this.refObj.title;
7761this.refObj.removeAttribute("title");
7762DR.Utils.addToBody(d);
7763this.tooltip=d;
7764var s=document.createElement("div");
7765s.className="taskTooltipShadow";
7766s.innerHTML="&nbsp;";
7767DR.Utils.addToBody(s);
7768this.shadow=s;
7769},show:function(){
7770var _5ef=jQuery(this.tooltip).height()+2*10+2*1;
7771var _5f0=jQuery(this.tooltip).width()+2*10+2*1;
7772var _5f1=jQuery(window).height();
7773if(_5ef>_5f1){
7774_5ef=_5f1-200;
7775this.tooltip.style.height=(_5ef+2*10+2*1)+"px";
7776}
7777this.tooltip.style.display="block";
7778this.shadow.style.height=_5ef+"px";
7779this.shadow.style.width=_5f0+"px";
7780this.shadow.style.display="block";
7781this._position();
7782},hide:function(){
7783this.shadow.style.display="none";
7784this.tooltip.style.display="none";
7785},_position:function(){
7786DR.Utils.Position.snapTo(this.refObj,this.tooltip,this._offsetX,this._offsetY,this.edgeX,this.edgeY,this.drawDirectionX,this.drawDirectionY,true);
7787this.shadow.style.top=(parseInt(this.tooltip.style.top,10)+this.shadowOffset)+"px";
7788this.shadow.style.left=(parseInt(this.tooltip.style.left,10)+this.shadowOffset)+"px";
7789}};
7790$.namespace("dr",{tooltip:function(type){
7791return this.each(function(){
7792type=(type)?type:"taskTooltip";
7793if(this.tooltip===undefined){
7794this.tooltip=new DR.Widgets.ToolTip(this,type);
7795}
7796});
7797}});
7798DR.Widgets.TreeMenu=function(_5f3){
7799this.container=getElem(_5f3);
7800this.currentTreeNodeId=null;
7801this.currentTreeNodeHasChildren=false;
7802this.labelOnclick=null;
7803this.defaultNodeId="";
7804this.saveState=false;
7805this.saveSelectedItem="";
7806this.stateCookie=null;
7807this.cookieName="";
7808this.stateCookieSelected=null;
7809this.cookieSelectedName="";
7810this.rootNodeCookie=null;
7811this.rootNodeCookieID="";
7812this.ready=true;
7813this.checkBrowser();
7814};
7815DR.Widgets.TreeMenu.prototype={selectNode:function(obj){
7816var node=null;
7817var _5f6=false;
7818if(typeof obj=="object"){
7819node=obj.parentNode.parentNode;
7820}else{
7821if(typeof obj=="string"){
7822node=document.getElementById(obj);
7823_5f6=true;
7824}else{
7825return null;
7826}
7827}
7828var id=node.id;
7829id=id.replace("treeNode_","");
7830var _5f8=id;
7831id=id.replace("treeRoot_Node_","");
7832var _5f9=document.getElementById(node.id+"_child");
7833if(node.className=="treeNodeClosed"||node.className=="treeNodeClosedSelected"){
7834if(_5f9){
7835node.className="treeNodeOpenSelected";
7836_5f9.style.display="block";
7837}else{
7838node.className="treeNodeEmptySelected";
7839}
7840this.saveNodeState(id,"selected");
7841}else{
7842if(node.className=="treeNodeOpen"){
7843if(_5f9){
7844_5f9.style.display="block";
7845node.className="treeNodeOpenSelected";
7846}
7847this.saveNodeState(id,"selected");
7848}else{
7849if(node.className=="treeNodeEmptyOpen"||node.className=="treeNodeEmpty"||node.className=="treeNodeEmptySelected"){
7850node.className="treeNodeEmptySelected";
7851this.saveNodeState(id,"selected");
7852}else{
7853if(node.className=="doc"){
7854node.className="docSelected";
7855this.saveNodeState(id,"selected");
7856}
7857}
7858}
7859}
7860if(!this.ready){
7861this.makeVisible(node);
7862if(this.browserType=="IE"){
7863var _5fa=this;
7864var func=function(){
7865_5fa.scrollToNode(node);
7866};
7867window.setTimeout(func,100);
7868}else{
7869this.scrollToNode(node);
7870}
7871}
7872if(_5f6){
7873this.scrollToNode(node);
7874}
7875this.setCurrentNodeOff(node.id);
7876if(!_5f9){
7877this.currentTreeNodeHasChildren=false;
7878}else{
7879if(_5f9.childNodes.length>0){
7880this.currentTreeNodeHasChildren=true;
7881}
7882}
7883this.currentTreeNodeId=node.id;
7884if(typeof this.labelOnclick=="function"){
7885this.labelOnclick(id,node.id);
7886}
7887},scrollToNode:function(node){
7888var xpos=node.offsetLeft;
7889var ypos=node.offsetTop;
7890this.container.scrollTop=Math.max(ypos-28,0);
7891this.container.scrollLeft=xpos;
7892},toggleNode:function(obj){
7893var node=null;
7894if(typeof obj=="object"){
7895node=obj.parentNode.parentNode;
7896}else{
7897if(typeof obj=="string"){
7898if(obj.length==0){
7899log("hi");
7900}
7901node=document.getElementById(obj);
7902}else{
7903return null;
7904}
7905}
7906var id=node.id;
7907id=id.replace("treeNode_","");
7908var _602=document.getElementById(node.id+"_child");
7909if(node.className=="treeNodeClosed"){
7910if(_602){
7911node.className="treeNodeOpen";
7912_602.style.display="block";
7913this.saveNodeState(id,"open");
7914}else{
7915node.className="treeNodeEmpty";
7916}
7917}else{
7918if(node.className=="treeNodeClosedSelected"){
7919node.className="treeNodeOpenSelected";
7920_602.style.display="block";
7921this.saveNodeState(id,"open");
7922}else{
7923if(node.className=="treeNodeOpen"){
7924if(_602){
7925_602.style.display="none";
7926node.className="treeNodeClosed";
7927this.saveNodeState(id,"closed");
7928}
7929}else{
7930if(node.className=="treeNodeOpenSelected"){
7931if(_602){
7932_602.style.display="none";
7933node.className="treeNodeClosedSelected";
7934this.saveNodeState(id,"closed");
7935}
7936}
7937}
7938}
7939}
7940},saveNodeState:function(id,_604){
7941if(typeof id=="string"&&this.ready){
7942if(this.saveState){
7943if(_604=="open"){
7944this.stateCookie.addArrayValue(id);
7945}else{
7946if(_604=="closed"){
7947this.stateCookie.removeArrayValue(id);
7948}else{
7949if(_604=="selected"){
7950this.stateCookie.addArrayValue(id);
7951}
7952}
7953}
7954}
7955if(this.saveSelectedItem&&_604=="selected"){
7956this.stateCookieSelected.setValue(id);
7957}
7958}
7959},setCurrentNodeOff:function(id){
7960if(this.currentTreeNodeId!==null&&this.currentTreeNodeId!=id){
7961var node=document.getElementById(this.currentTreeNodeId);
7962if(node){
7963if(node.className=="docSelected"){
7964node.className="doc";
7965}else{
7966if(this.currentTreeNodeHasChildren){
7967node.className="treeNodeOpen";
7968}else{
7969node.className="treeNodeEmpty";
7970}
7971}
7972}
7973}
7974},setLabelOnlick:function(func){
7975if(typeof func=="function"){
7976this.labelOnclick=func;
7977}
7978},setDefaultNodeId:function(id){
7979if(typeof id=="string"){
7980this.defaultNodeId=id;
7981}
7982},setRootNodeId:function(id){
7983if(typeof id=="string"){
7984this.rootNodeCookie=new DR.Utils.Cookie(this.cookieName+"_rootID");
7985this.rootNodeCookie.type="Single";
7986this.rootNodeCookie.load();
7987var v=this.rootNodeCookie.value;
7988if(v!=id&&v!==""&&v!==null){
7989if(this.saveState){
7990this.stateCookie.clear();
7991}
7992if(this.saveSelectedItem){
7993this.stateCookieSelected.clear();
7994}
7995this.initCookies();
7996}
7997this.rootNodeCookie.setValue(id);
7998}
7999},goUp:function(){
8000var node=document.getElementById(this.currentTreeNodeId);
8001if(node){
8002var _60c=node.parentNode.parentNode;
8003this.selectNode(_60c.id);
8004}
8005},enableSaveState:function(_60d){
8006if(typeof _60d=="string"){
8007this.cookieName=_60d;
8008this.saveState=true;
8009this.saveSelectedItem=true;
8010this.initCookies();
8011}
8012},enableLastSelected:function(_60e){
8013if(typeof _60e=="string"){
8014this.cookieName=_60e;
8015this.saveSelectedItem=true;
8016this.initCookies();
8017}
8018},initCookies:function(){
8019if(this.cookieName!==""){
8020if(this.saveState){
8021this.stateCookie=new DR.Utils.Cookie(this.cookieName);
8022this.stateCookie.type="Array";
8023this.stateCookie.load();
8024}
8025if(this.saveSelectedItem){
8026this.cookieSelectedName=this.cookieName+"_on";
8027this.stateCookieSelected=new DR.Utils.Cookie(this.cookieSelectedName);
8028this.stateCookieSelected.type="Single";
8029this.stateCookieSelected.load();
8030}
8031}
8032},refreshState:function(){
8033if(this.cookieName!==""){
8034this.ready=false;
8035if(this.saveState){
8036var a=this.stateCookie.arrayValues;
8037for(var i=0;i<a.length;i++){
8038if(a[i]!=v){
8039if(document.getElementById("treeNode_"+a[i])){
8040this.toggleNode("treeNode_"+a[i]);
8041}else{
8042this.stateCookie.removeArrayValue(a[i]);
8043}
8044}
8045}
8046}
8047if(this.saveSelectedItem){
8048var v=this.stateCookieSelected.value;
8049if(v!==""&&v!==null&&document.getElementById("treeNode_"+v)){
8050this.selectNode("treeNode_"+v);
8051}else{
8052if(this.defaultNodeId!==""){
8053this.selectNode(this.defaultNodeId);
8054}
8055}
8056}
8057this.ready=true;
8058}
8059},makeVisible:function(obj){
8060var p=obj.parentNode;
8061while(p){
8062if((p.tagName=="BODY")||(p.tagName=="HTML")){
8063break;
8064}
8065if(p.className=="treeNodeClosed"){
8066this.toggleNode(p.id);
8067}
8068p=p.parentNode;
8069}
8070},checkBrowser:function(){
8071if(document.all){
8072this.browserType="IE";
8073}else{
8074this.broswerType="Standard";
8075}
8076}};
8077(function($){
8078var _615="fckeditor.js",SCRIPT_LOADING=false,REFRESH_INTERVAL=500,EDITORS=[],CUSTOM_TOOLBAR_SETS=[],DEFAULT_CONFIG={BasePath:$.dr.FRAMEWORK_PATH+"external/fckeditor/",Wi
8078dth:"700",Height:"300",ToolbarSet:"default"};
8079var _616=function(){
8080return (typeof FCKeditor_IsCompatibleBrowser=="function")?true:false;
8081};
8082var _617=function(){
8083return (typeof FCKeditorAPI=="undefined")?false:true;
8084};
8085var _618=function(id){
8086return FCKeditorAPI.GetInstance(id);
8087};
8088var _61a=function(html){
8089var h=html.replace(/\<b\>/g,"<strong>");
8090h=h.replace(/\<\/b>/g,"</strong>");
8091h=h.replace(/\<i>/g,"<em>");
8092h=h.replace(/\<\/i>/g,"</em>");
8093return h;
8094};
8095var _61d=function(_61e,id,_620){
8096this.textareaObj=_61e;
8097this.id=id;
8098this.editorObj=null;
8099var c=$.extend({},DEFAULT_CONFIG);
8100this.config=(_620)?$.extend(c,_620):c;
8101this.refreshTimer=null;
8102this.init();
8103};
8104_61d.prototype={init:function(){
8105if(_616()){
8106this.bindEditor();
8107}else{
8108if(!SCRIPT_LOADING){
8109this.loadScript();
8110}else{
8111this.checkScriptReady();
8112}
8113}
8114},loadScript:function(){
8115var _622=this;
8116SCRIPT_LOADING=true;
8117$.getScript(this.config.BasePath+_615,function(){
8118SCRIPT_LOADING=false;
8119_622.checkScriptReady();
8120});
8121},checkScriptReady:function(){
8122var _623=this;
8123var func=function(){
8124if(_616()){
8125_623.bindEditor();
8126}else{
8127_623.checkScriptReady();
8128}
8129};
8130window.setTimeout(func,100);
8131},bindEditor:function(){
8132var _625=new FCKeditor(this.id);
8133$.extend(true,_625,this.config);
8134_625.ReplaceTextarea();
8135this.editorObj=_625;
8136this.checkAPIReady();
8137},checkAPIReady:function(){
8138var _626=this;
8139var func=function(){
8140if(_617()){
8141var _628=_618(_626.id);
8142if(typeof _628=="undefined"){
8143_626.checkAPIReady();
8144}else{
8145if(typeof _628.EditorDocument=="undefined"){
8146_626.checkAPIReady();
8147}else{
8148_626.synchronize();
8149}
8150}
8151}else{
8152_626.checkAPIReady();
8153}
8154};
8155window.setTimeout(func,10);
8156},synchronize:function(){
8157var _629=this;
8158var _62a=function(){
8159_629.updateTextarea();
8160_629.synchronize();
8161};
8162this.refreshTimer=window.setTimeout(_62a,REFRESH_INTERVAL);
8163},updateTextarea:function(a){
8164this.textareaObj.value=this.getHTML();
8165},setHTML:function(html){
8166var _62d=_618(this.id);
8167if(!_62d){
8168return undefined;
8169}else{
8170html=_61a(html);
8171_62d.SetHTML(html);
8172}
8173},getHTML:function(){
8174var _62e=_618(this.id);
8175if(typeof _62e!="undefined"){
8176return _62e.GetXHTML(true);
8177}
8178return undefined;
8179}};
8180$.namespace("dr",{wysiwyg:function(_62f){
8181DEFAULT_CONFIG.BasePath=$.dr.FRAMEWORK_PATH+"external/fckeditor/";
8182this.each(function(){
8183if(this.tagName.toLowerCase()=="textarea"){
8184if(!this.wysiwyg){
8185var id=this.id||this.name;
8186if(EDITORS[id]){
8187clearTimeout(EDITORS[id].refreshTimer);
8188EDITORS[id]=null;
8189}
8190this.value=_61a(this.value);
8191var _631=new _61d(this,id,_62f);
8192EDITORS[id]=_631;
8193this.wysiwyg=_631;
8194}
8195}
8196});
8197return this;
8198}});
8199$.namespace("dr.wysiwyg",{setHTML:function(html){
8200this.each(function(){
8201if(this.wysiwyg){
8202this.wysiwyg.setHTML(html);
8203}
8204});
8205return this;
8206},getHTML:function(html){
8207if(this.length){
8208var elem=this[0];
8209var h="";
8210if(elem.wysiwyg){
8211h=elem.wysiwyg.getHTML();
8212}
8213return h;
8214}
8215return undefined;
8216}});
8217$.dr.wysiwyg={setDefaultConfig:function(_636){
8218if(typeof _636=="object"){
8219$.extend(DEFAULT_CONFIG,_636);
8220}
8221},addToolbarSet:function(_637){
8222if(typeof _637=="object"){
8223if(_637.name&&_637.settings){
8224CUSTOM_TOOLBAR_SETS.push(_637);
8225}
8226}
8227},getCustomToolbarSets:function(){
8228return CUSTOM_TOOLBAR_SETS;
8229}};
8230var _638=function(_639){
8231_639.filter("textarea.basic_wysiwyg, textarea.wysiwyg").each(function(){
8232var $obj=$(this);
8233if($obj.hasClass("basic_wysiwyg")){
8234$obj.dr.wysiwyg({ToolbarSet:"basic"});
8235}else{
8236$obj.dr.wysiwyg();
8237}
8238});
8239};
8240$.dr.addPlugin("form",_638);
8241})(jQuery);
8242String.THOUSANDS_SEPARATOR=",";
8243String.prototype.formatNumber=function(){
8244return this.replace(/\d{1,3}(?=(\d{3})+(?!\d))/g,"$&"+String.THOUSANDS_SEPARATOR);
8245};
8246Date.prototype.dr_getDOY=function(){
8247var _63b=new Date(this.getFullYear(),0,1);
8248return Math.ceil((this-_63b)/86400000);
8249};
8250jQuery.dr=window.jQuery.dr||{};
8251$.dr.baseChart={initChart:function(_63c){
8252var obj=$("#"+_63c);
8253if(obj.hasClass("stockChartContainer")){
8254if(!(window[_63c] instanceof $.dr.stockChart)){
8255try{
8256window[_63c]=new $.dr.stockChart(_63c);
8257window[_63c].initChart(_63c+"_flashObjectId");
8258}
8259catch(e){
8260}
8261}
8262}else{
8263try{
8264window[_63c]=new Object();
8265}
8266catch(e){
8267}
8268}
8269}};
8270amChartInited=function(_63e){
8271$.dr.baseChart.initChart(_63e);
8272};
8273amProcessCompleted=function(_63f,_640){
8274if(window[_63f]){
8275window[_63f].processCompletedCallback(_640);
8276}
8277};
8278window.amReturnData=function(_641,data){
8279if(window[_641]){
8280window[_641].returnDataCallback(unescape(data));
8281}
8282};
8283window.amReturnSettings=function(_643,_644){
8284if(window[_643]){
8285window[_643].returnSettingsCallback(_644);
8286}
8287};
8288window.amReturnParam=function(_645,_646){
8289if(window[_645]){
8290window[_645].returnParamCallback(_646);
8291}
8292};
8293window.amError=function(_647,_648){
8294if(window[_647]){
8295window[_647].errorCallback(_648);
8296}
8297};
8298window.amRolledOver=function(_649,date,_64b){
8299if(window[_649]){
8300window[_649].rolledOverCallback(date,_64b);
8301}
8302};
8303window.amClickedOn=function(_64c,date,_64e){
8304if(window[_64c]){
8305window[_64c].clickedOnCallback(date,_64e);
8306}
8307};
8308window.amRolledOverEvent=function(_64f,date,_651,id,url){
8309if(window[_64f]){
8310window[_64f].rolledOverEventCallback(date,_651,id,url);
8311}
8312};
8313window.amClickedOnEvent=function(_654,date,_656,id,url){
8314if(window[_654]){
8315window[_654].clickedOnEventCallback(date,_656,id,url);
8316}
8317};
8318window.amGetZoom=function(_659,from,to){
8319if(window[_659]){
8320window[_659].getZoomCallback(from,to);
8321}
8322};
8323window.amReturnImageData=function(_65c,data){
8324};
8325window.amSliceClick=function(_65e,_65f,_660,_661,_662,_663,_664){
8326};
8327window.amSliceOver=function(_665,_666,_667,_668,_669,_66a,_66b){
8328};
8329window.amSliceOut=function(_66c){
8330};
8331(function($){
8332var _66e=function(_66f){
8333var did=$(_66f).val();
8334var _671=[];
8335_671.push("<data_sets>");
8336_671.push("<data_set did='"+did+"'>");
8337_671.push("<compare_list_box selected='true' /></data_set></data_sets>");
8338return _671.join("");
8339};
8340var _672=function(_673){
8341var _674=$(_673).attr("data-chart");
8342var _675=$(_673).attr("id");
8343var _676=$(":selected",_673).text();
8344var _677=$(_673).val();
8345var _678=_677;
8346var _679=[];
8347_679.push("<charts>");
8348_679.push("<chart cid='"+((_674!=null)?_674:0)+"'>");
8349_679.push("<title>"+_676+"</title>");
8350_679.push("<graphs>");
8351_679.push("<graph gid='0'>");
8352_679.push("<data_sources>");
8353_679.push("<close>"+_677+"</close>");
8354_679.push("</data_sources>");
8355_679.push("<compare_source>"+_678+"</compare_source>");
8356_679.push("<legend><date key='false' title='false'><![CDATA[{close}]]></date><period key='false' title='false'> <![CDATA[<b>{close}</b>]]></period></legend>");
8357_679.push("</graph></graphs></chart></charts>");
8358if(_674==0){
8359_679.push("<scroller><graph_data_source>"+_677+"</graph_data_source></scroller>");
8360}
8361DR.USER_DATA.save("sitePulseHomeDetail"+GC.CURRENT_SITE_ID,_675,_677,"String");
8362return _679.join("");
8363};
8364var _67a=function(_67b,_67c){
8365var _67d=[];
8366_67d.push("<period_selector><from>");
8367_67d.push(new $.dr.date($(_67b).val(),$.dr.date.getDefaultFormat()).toFormattedString(_67c));
8368_67d.push("</from></period_selector>");
8369return _67d.join("");
8370};
8371var _67e=function(_67f,_680){
8372var _681=[];
8373var _682=new $.dr.date($(_67f).val(),$.dr.date.getDefaultFormat());
8374_682.setDate(_682.getDate()+1);
8375_681.push("<period_selector><to>");
8376_681.push(_682.toFormattedString(_680));
8377_681.push("</to></period_selector>");
8378return _681.join("");
8379};
8380var _683=function(_684){
8381var _685=[];
8382$(".changeGraphColumn",_684.chartContainerObj).change(function(_686){
8383_684.changeGraphSrcColumn(_686.target);
8384});
8385$(".applyGraphColumn",_684.chartContainerObj).each(function(){
8386_685.push(this);
8387});
8388return _685;
8389};
8390var _687=function(_688){
8391var _689=[];
8392$(".applySettings",_688.chartContainerObj).each(function(){
8393_689.push(this);
8394$(this).click(function(_68a){
8395_688.applySettings(_68a.target);
8396});
8397});
8398return _689;
8399};
8400var _68b=function(_68c){
8401var _68d=null;
8402$(".changeCompareTo:first",_68c.chartContainerObj).change(function(_68e){
8403_68c.changeCompareTo(_68e.target);
8404});
8405$(".applyCompareTo:first",_68c.chartContainerObj).each(function(){
8406_68d=this;
8407});
8408return _68d;
8409};
8410var _68f=function(_690){
8411$("select.changeData").change(function(){
8412_690.changeSelectDataSet($(this).val());
8413}).keyup(function(){
8414_690.changeSelectDataSet($(this).val());
8415});
8416};
8417var _691=function(_692){
8418var _693=null;
8419$(".applyRangeStart:first",_692).each(function(){
8420_693=this;
8421});
8422return _693;
8423};
8424var _694=function(_695){
8425var _696=null;
8426$(".applyRangeEnd:first",_695).each(function(){
8427_696=this;
8428});
8429return _696;
8430};
8431var _697=function(_698){
8432var _699=[];
8433$(".dynamicHighlight",_698).each(function(){
8434var _69a=this.getAttribute("data-precision");
8435var _69b=this.getAttribute("data-prefix");
8436var _69c=this.getAttribute("data-suffix");
8437_699.push({elemObj:this,precision:(_69a!=null&&!isNaN(_69a))?_69a:2,formula:this.getAttribute("data-formula"),prefix:(_69b)?_69b:"",suffix:(_69c)?_69c:""});
8438});
8439return _699;
8440};
8441var _69d=function(_69e){
8442$(".staticHighlightControl",_69e.chartContainerObj).change(function(_69f){
8443_69e.changeStaticHighlight(_69f.target);
8444});
8445};
8446var _6a0=function(_6a1){
8447var _6a2=[];
8448$(".staticHighlight",_6a1).each(function(){
8449var _6a3=this.getAttribute("data-precision");
8450var _6a4=this.getAttribute("data-prefix");
8451var _6a5=this.getAttribute("data-suffix");
8452var _6a6=this.getAttribute("data-type-ref");
8453var type=this.getAttribute("data-type");
8454_6a2.push({elemObj:this,precision:(_6a3!=null&&!isNaN(_6a3))?_6a3:2,formula:this.getAttribute("data-formula"),prefix:(_6a4)?_6a4:"",suffix:(_6a5)?_6a5:"",type:type,typeRef:_6a6});
8455});
8456return _6a2;
8457};
8458var _6a8=function(_6a9){
8459var _6aa=_6a9.indexOf("<columns>");
8460var _6ab=_6a9.indexOf("</columns>");
8461var _6ac=[];
8462if(_6aa>-1&&_6ab>-1){
8463_6ac=_6a9.substring(_6aa+9,_6ab);
8464_6ac=_6ac.split("<column>").join("").split("</column>");
8465_6ac=(_6ac instanceof Array)?_6ac:[];
8466}
8467return _6ac;
8468};
8469var _6ad=function(col,_6af){
8470var pos=-1;
8471if(!isNaN(col)){
8472pos=col;
8473}else{
8474pos=$.inArray(col,_6af);
8475}
8476return pos;
8477};
8478var _6b1=function(_6b2){
8479_6b2.getSettings();
8480};
8481var _6b3=function(_6b4){
8482_6b4.getData(0);
8483};
8484var _6b5=function(_6b6,_6b7){
8485_6b6.compareDataSet(_6b7);
8486};
8487var _6b8=function(_6b9,_6ba){
8488_6b9.uncompareDataSet(_6ba);
8489};
8490var _6bb=function(_6bc){
8491_6bc.uncompareAll();
8492};
8493var _6bd=function(_6be,_6bf){
8494_6be.selectDataSet(_6bf);
8495};
8496var _6c0=function(_6c1){
8497_6c1.hideEvents();
8498};
8499var _6c2=function(_6c3){
8500_6c3.showEvents();
8501};
8502var _6c4=function(_6c5){
8503_6c5.showAll();
8504};
8505var _6c6=function(_6c7,data){
8506_6c7.setData(data);
8507};
8508var _6c9=function(_6ca){
8509_6ca.rebuild();
8510};
8511var _6cb=function(_6cc){
8512_6cc.reloadData();
8513};
8514var _6cd=function(_6ce,_6cf){
8515_6ce.reloadSettings(_6cf);
8516};
8517var _6d0=function(_6d1,_6d2,_6d3,_6d4){
8518var _6d5=[];
8519_6d5.push("<settings>");
8520_6d5.push(_6d2);
8521_6d5.push("</settings>");
8522_6d1.setSettings(_6d5.join(""),_6d3,_6d4);
8523};
8524var _6d6=function(_6d7,data,_6d9){
8525_6d7.appendData(data,_6d9);
8526};
8527var _6da=function(_6db,_6dc,_6dd){
8528_6db.getParam(_6dc);
8529};
8530var _6de=function(_6df,from,to,_6e2){
8531var _6e3=new $.dr.date(to,_6e2);
8532_6e3.setDate(_6e3.getDate()+1);
8533_6df.setZoom(from,_6e3.toFormattedString());
8534};
8535var _6e4=function(_6e5,_6e6){
8536var _6e7=0;
8537var days=1;
8538var _6e9=$.dr.stockChart.STATIC_TYPES;
8539if(_6e5.typeRef){
8540_6e5.type=$("#"+_6e5.typeRef).val();
8541}
8542if(_6e5.type){
8543for(var t in _6e9){
8544if(t==_6e5.type){
8545_6e7=_6e9[t].offset;
8546days=_6e9[t].days;
8547break;
8548}
8549}
8550}
8551_6e5.chartObj=_6e6;
8552_6e5.startOffset=_6e7;
8553_6e5.numDays=days;
8554_6e5.avg=function(_6eb){
8555return _6e6.staticData.avg(this,_6eb);
8556};
8557_6e5.sum=function(_6ec){
8558return _6e6.staticData.sum(this,_6ec);
8559};
8560var _6ed="0";
8561with(_6e5){
8562_6ed=eval(formula);
8563if(!isNaN(_6ed)){
8564_6ed=prefix+_6ed.toFixed(precision).formatNumber()+suffix;
8565}else{
8566_6ed=$.dr.stockChart.DATA_NOT_AVAILABLE;
8567}
8568}
8569$(_6e5.elemObj).html(_6ed);
8570$(_6e5.elemObj).trigger("staticChange");
8571};
8572$.dr.stockChart=function(_6ee,_6ef){
8573this.dataDateFmt=(_6ef)?_6ef:"yyyy-mm-dd";
8574this.chartPrefix=_6ee;
8575var _6f0=$("#"+this.chartPrefix);
8576this.chartContainerObj=(_6f0.length>0)?_6f0:document;
8577};
8578$.dr.stockChart.prototype={initChart:function(id){
8579this.flashChartObj=document.getElementById(id);
8580this.dynamicHighlights={};
8581this.staticHighlights=[];
8582this.controls={};
8583this.controls.apply=[];
8584this.controls.graphColumn=[];
8585this.controls.fromDate=_691(this.chartContainerObj);
8586this.controls.toDate=_694(this.chartContainerObj);
8587this.controls.compareTo=_68b(this);
8588this.controls.changeDataSet=_68f(this);
8589this.controls.apply=_687(this);
8590this.controls.graphColumn=_683(this);
8591_69d(this);
8592this.staticHighlights=_6a0(this.chartContainerObj);
8593this.dynamicHighlights=_697(this.chartContainerObj);
8594this.rangeFromDate=null;
8595this.rangeToDate=null;
8596this.chartSettingsXML=null;
8597this.columnNames=[];
8598this.isDataLoaded=false;
8599this.chartData=null;
8600this.numDataColumns=0;
8601this.dataPoints=0;
8602this.chartDataLoc=[];
8603this.dataStartDate=null;
8604this.dataEndDate=null;
8605this.rangeTotals=[];
8606this.rangeAverages=[];
8607this.rangeDataPoints=0;
8608if(!this.rangeFromDate&&this.controls.fromDate){
8609this.rangeFromDate=new $.dr.date($(this.controls.fromDate).val(),$.dr.date.getDefaultFormat()).toFormattedString(this.dataDateFmt);
8610}
8611if(!this.rangeToDate&&this.controls.toDate){
8612this.rangeToDate=new $.dr.date($(this.controls.toDate).val(),$.dr.date.getDefaultFormat()).toFormattedString(this.dataDateFmt);
8613}
8614_6b1(this.flashChartObj);
8615this.columnNames=_6a8(this.chartSettingsXML);
8616_6b3(this.flashChartObj);
8617this.dataStartDate=this.chartData[0][0];
8618this.dataEndDate=this.chartData[this.chartData.length-1][0];
8619this.updateStaticHighlights();
8620this.getZoomCallback(this.rangeFromDate,this.rangeToDate);
8621this.syncBoundControls();
8622},syncBoundControls:function(){
8623for(var _6f2 in this.controls){
8624switch(_6f2){
8625case "compareTo":
8626break;
8627case "graphColumn":
8628for(var c=0;c<this.controls[_6f2].length;c++){
8629}
8630break;
8631case "fromDate":
8632break;
8633case "toDate":
8634break;
8635default:
8636break;
8637}
8638}
8639},setCustomDateControls:function(_6f4,end){
8640if(this.controls.toDate){
8641$(this.controls.toDate).val(new $.dr.date(this.rangeToDate,this.dataDateFmt).toFormattedString($.dr.date.getDefaultFormat()));
8642}
8643if(this.controls.fromDate){
8644$(this.controls.fromDate).val(new $.dr.date(this.rangeFromDate,this.dataDateFmt).toFormattedString($.dr.date.getDefaultFormat()));
8645}
8646},getZoomCallback:function(from,to){
8647this.rangeFromDate=from;
8648this.rangeToDate=to;
8649this.setCustomDateControls();
8650this.update();
8651},rolledOverCallback:function(date,_6f9){
8652},processCompletedCallback:function(_6fa){
8653_6b1(this.flashChartObj);
8654},errorCallback:function(_6fb){
8655},clickedOnCallback:function(date,_6fd){
8656if(_6fd=="DD"){
8657_6de(this.flashChartObj,date,date,this.dataDateFmt);
8658}else{
8659if(_6fd=="WW"){
8660var _6fe=new $.dr.date(date,this.dataDateFmt);
8661_6fe.setDate(_6fe.getDate()+6);
8662_6de(this.flashChartObj,date,_6fe.toFormattedString(),this.dataDateFmt);
8663}else{
8664if(_6fd=="MM"){
8665var _6fe=new $.dr.date(date,this.dataDateFmt);
8666_6fe.setMonth(_6fe.getMonth()+1);
8667_6fe.setDate(_6fe.getDate()-1);
8668_6de(this.flashChartObj,date,_6fe.toFormattedString(),this.dataDateFmt);
8669}
8670}
8671}
8672},rolledOverEventCallback:function(date,_700,id,url){
8673},clickedOnEventCallback:function(date,_704,id,url){
8674},returnSettingsCallback:function(_707){
8675this.chartSettingsXML=unescape(_707);
8676},returnDataCallback:function(_708){
8677var _709=new Date().getTime();
8678this.chartData=_708.split("\n");
8679this.chartData.reverse();
8680for(var i=0;i<this.chartData.length;i++){
8681var temp=this.chartData[i].split(",");
8682if(temp.length>1){
8683this.chartData[i]=temp;
8684this.chartDataLoc[i]=this.chartData[i][0];
8685temp=null;
8686}else{
8687var _70c=this.chartData.splice(i,1);
8688i--;
8689}
8690}
8691var _70d=new Date().getTime();
8692this.dataPoints=this.chartData.length;
8693this.numDataColumns=this.chartData[0].length;
8694this.isDataLoaded=true;
8695_708=null;
8696},returnParamCallback:function(_70e){
8697},changeStaticHighlight:function(obj){
8698var _710=obj.id;
8699for(var i=0;i<this.staticHighlights.length;i++){
8700var _712=this.staticHighlights[i];
8701for(var r in _712){
8702if(r=="typeRef"&&_712[r]==_710){
8703_6e4(this.staticHighlights[i],this);
8704}
8705}
8706}
8707},updateStaticHighlights:function(){
8708for(var i=0;i<this.staticHighlights.length;i++){
8709_6e4(this.staticHighlights[i],this);
8710}
8711},staticData:{avg:function(_715,col){
8712var _717=this.sum(_715,col)/_715.numDays;
8713return Number(_717);
8714},sum:function(_718,col){
8715var _71a=_6ad(col,_718.chartObj.columnNames);
8716var _71b=Number.NaN;
8717var _71c=(_718.chartObj.chartData.length-1)-_718.startOffset;
8718var _71d=_71c-(_718.numDays);
8719if(_71a>-1){
8720_71b=0;
8721for(var i=_71c;i>_71d;i--){
8722var val=Number(_718.chartObj.chartData[i][_71a]);
8723_71b+=((val==NaN)?0:val);
8724}
8725}
8726return Number(_71b);
8727}},changeCompareTo:function(_720){
8728var _721=$(_720).val();
8729_6bb(this.flashChartObj);
8730if(_721!=""){
8731_6b5(this.flashChartObj,_721);
8732}
8733},changeSelectDataSet:function(data){
8734_6bd(this.flashChartObj,data);
8735},changeGraphSrcColumn:function(_723){
8736var _724=_672(_723);
8737_6d0(this.flashChartObj,_724,true);
8738},applySettings:function(){
8739var _725=[];
8740for(var _726 in this.controls){
8741switch(_726){
8742case "compareTo":
8743break;
8744case "graphColumn":
8745for(var c=0;c<this.controls[_726].length;c++){
8746_725.push(_672(this.controls[_726][c]));
8747}
8748break;
8749case "fromDate":
8750_725.push(_67a(this.controls.fromDate,this.dataDateFmt));
8751break;
8752case "toDate":
8753_725.push(_67e(this.controls.toDate,this.dataDateFmt));
8754break;
8755default:
8756break;
8757}
8758}
8759_6d0(this.flashChartObj,_725.join(""),true);
8760},update:function(){
8761if(!this.isDataLoaded){
8762var _728=this;
8763window.setTimeout(function(){
8764_728.update();
8765},1000);
8766}else{
8767var _729=parseInt(jQuery.inArray(this.rangeToDate,this.chartDataLoc));
8768var _72a=parseInt(jQuery.inArray(this.rangeFromDate,this.chartDataLoc));
8769this.rangeDataPoints=(_729-_72a)+1;
8770for(var col=1;col<this.numDataColumns;col++){
8771this.rangeTotals[col]=0;
8772this.rangeAverages[col]=0;
8773}
8774for(var row=_72a;row<=_729;row++){
8775for(var col=1;col<this.numDataColumns;col++){
8776var val=Number(this.chartData[row][col]);
8777this.rangeTotals[col]=this.rangeTotals[col]+((val==NaN)?0:val);
8778}
8779}
8780for(var _72e=1;_72e<this.rangeTotals.length;_72e++){
8781this.rangeAverages[_72e]=this.rangeTotals[_72e]/this.rangeDataPoints;
8782}
8783this.updateDynamicHighlights();
8784}
8785},sum:function(col){
8786var _730=_6ad(col,this.columnNames);
8787return (_730>-1)?this.rangeTotals[_730]:Number.NaN;
8788},avg:function(col){
8789var _732=_6ad(col,this.columnNames);
8790return (_732>-1)?this.rangeAverages[_732]:Number.NaN;
8791},dataPoints:function(){
8792return this.rangeDataPoints;
8793},updateDynamicHighlights:function(){
8794for(var _733 in this.dynamicHighlights){
8795var _734=this.dynamicHighlights[_733];
8796var _735=0;
8797with(this){
8798_735=eval(_734.formula);
8799if(!isNaN(_735)){
8800_735=_734.prefix+_735.toFixed(_734.precision).formatNumber()+_734.suffix;
8801}else{
8802_735=$.dr.stockChart.DATA_NOT_AVAILABLE;
8803}
8804}
8805$(_734.elemObj).html(_735);
8806}
8807}};
8808$.dr.stockChart.DATA_NOT_AVAILABLE="n/a";
8809$.dr.stockChart.SUM="sum";
8810$.dr.stockChart.AVG="avg";
8811$.dr.stockChart.TEXT="text";
8812$.dr.stockChart.VALUE="value";
8813$.dr.stockChart.DOY=new Date().dr_getDOY();
8814$.dr.stockChart.STATIC_TYPES={mtd:{offset:0,days:new Date().getDate()},ytd:{offset:0,days:$.dr.stockChart.DOY},wtd:{offset:0,days:new Date().getDay()+1},prev365:{offset:364,days:365},prev7:{offset:6,days:7},prev90:{offset:89,days:90},prev30:{offset:29,days:30},prev1:{offset:1,days:1},cur1:{offset:0,days:1},cur365:{offset:0,days:365},cur90:{offset:0,days:90}
8814,cur30:{offset:0,days:30},cur7:{offset:0,days:7},cur60:{offset:0,days:60},prev60:{offset:59,days:60}};
8815})(jQuery);
8816(function($){
8817var _737={deepLink:true,activeTab:0,displayEffect:{animation:"fade",speed:"normal"}};
8818var _738=function(){
8819$(this).parents(".tabSet").css("visibility","visible");
8820};
8821$.namespace("dr",{fingertabs:function(_739){
8822var _73a=$.extend(true,{},_737,_739);
8823var _73b,currentPath,activeTab,tabIDArray=[],effectType=_73a.displayEffect.animation.toLowerCase(),animation={show:$.fn.show,hide:$.fn.hide,speed:_73a.displayEffect.speed};
8824if($.browser.msie){
8825effectType="";
8826}
8827if(effectType=="fade"){
8828animation=$.extend(animation,{show:$.fn.fadeIn,hide:$.fn.fadeOut});
8829}else{
8830if(effectType=="slide"){
8831animation=$.extend(animation,{show:$.fn.slideDown,hide:$.fn.slideUp});
8832}else{
8833if(effectType!="expand"){
8834animation.speed=0;
8835}
8836}
8837}
8838var _73c=function(_73d,_73e,_73f){
8839$(this).find("td.tab > dl > dt").removeClass("active").eq(_73d).toggleClass("active").end().end().find("td.tabContainer > dl > dd").hide().eq(_73d).show();
8840_73e.call($(".tabContent",this).hide().eq(_73d),_73f);
8841activeTab=_73d;
8842};
8843return this.each(function(){
8844var _740=$(this);
8845var _741=$(this).wrap("<div class=\"fingerTabSet\"><div class=\"tabSet\">").curReturn;
8846var $tc=_741.prepend("<table class=\"tabLayoutTable\"><tbody><tr><td class=\"tab\"><td class=\"tabContainer\"></tr></tbody></table>").find("table td.tab").append(_740).end().find("table td.tabContainer").append("<dl class=\"foo\"").end().curReturn;
8847_740.find(">dt").each(function(_743){
8848$(this).click(function(){
8849_73c.call($(this).parents(".tabSet > table"),_743,animation.show,animation.speed);
8850return false;
8851});
8852}).end().find(">dd").appendTo($tc.find("dl"));
8853_73c.call(_740.parents(".tabSet > table"),_73a.activeTab,animation.show,1);
8854_738.call(_740);
8855});
8856}});
8857var _744=function(evt,_746){
8858$("dl.fingertabs",_746).dr.fingertabs();
8859};
8860$.dr.addUnobtrusiveEvent(_744,"unobtrusiveEventEarly");
8861})(jQuery);
8862(function($){
8863var _748=function(){
8864$(".iconWell .popup > div",this).dr.shadows();
8865var _749=false;
8866var _74a=function(){
8867$(".iconWell > li.hover").removeClass("hover");
8868};
8869var _74b=function(evt){
8870if(evt){
8871if($(evt.target).parents("ul.iconWell").length==0){
8872_74a();
8873$("body").unbind("mouseover",_74b);
8874_749=false;
8875}
8876}
8877};
8878$(".iconWell > li").mouseenter(function(){
8879_74a();
8880$(this).addClass("hover");
8881if(!_749){
8882$("body").bind("mouseover",_74b);
8883_749=true;
8884}
8885});
8886};
8887$.dr.addDomReadyEvent(_748,"domReadyEarly");
8888})(jQuery);
8889(function($){
8890$.fn.extend({setMaxHeight:function(tag,_74f){
8891return this.each(function(){
8892var _750=0,mh=0;
8893if(jQuery.isArray(tag)){
8894for(var i=0,len=tag.length;i<len;i++){
8895if(typeof tag[i]!=="undefined"){
8896var mh=Math.max($(this).getMaxHeight(tag[i]),_74f);
8897if(mh>_750){
8898_750=mh;
8899}
8900}
8901}
8902}else{
8903if(typeof tag!=="undefined"){
8904_750=Math.max($(this).getMaxHeight(tag),_74f);
8905}
8906}
8907$(this).height(_750);
8908});
8909},getMaxHeight:function(tag){
8910var _754=0;
8911$(tag,this).each(function(){
8912_754=Math.max(_754,$(this).outerHeight(true));
8913});
8914return _754;
8915},isChildOf:function(exp){
8916var _756=$(this);
8917return $(this).parents().filter(exp).length>0;
8918}});
8919})(jQuery);
8920(function($){
8921var _758="";
8922var _759="";
8923var _75a=220;
8924var _75b="<div class=\"loadingSmall\"><div class=\"abs\"><span>Loading</span></div></div>";
8925var _75c="More about {0}";
8926var _75d={RECENT_ITEMS_URL:"test-json.jsp",RECENT_ITEMS_KEY:"key",HELP_CALLBACK:function(url){
8927var obj={url:url,width:500,height:500};
8928$.dr.popup(obj);
8929}};
8930$.dr.menu={cache:{},showMethod:($.browser.msie)?$.fn.show:$.fn.fadeIn,hideMethod:($.browser.msie)?$.fn.hide:$.fn.fadeOut,getRecentItemsJson:function(key,_761,_762,_763){
8931var _764=this;
8932if(typeof this.cache[key]==="undefined"){
8933this.cache[key]={};
8934}
8935if(this.cache[key].xhrData){
8936var _765=(typeof this.cache[key].xhrRequest==="boolean")?false:true;
8937_762(this.cache[key].xhrData,_765);
8938}else{
8939if(!this.cache[key].xhrRequest){
8940var data={ajaxTime:new Date().getTime()};
8941data[_761.RECENT_ITEMS_KEY]=key;
8942this.cache[key].xhrRequest=$.ajax({data:data,dataType:"json",url:_761.RECENT_ITEMS_URL,success:function(json){
8943_764.cache[key].xhrData=json;
8944if(typeof _762==="function"){
8945_762(json,false);
8946}
8947},error:function(xhr){
8948delete _764.cache[key];
8949if(typeof _763==="function"){
8950_763(xhr);
8951}
8952}});
8953}
8954}
8955},setRecentItemsJson:function(key,_76a,_76b){
8956if(typeof this.cache[key]==="undefined"){
8957this.cache[key]={};
8958}
8959this.cache[key].xhrData={items:_76a};
8960this.cache[key].xhrRequest=true;
8961},getDefaults:function(){
8962return _75d;
8963},setDefaults:function(_76c){
8964if(_76c){
8965$.extend(true,_75d,_76c);
8966}
8967$(document).trigger("afterMenuSetDefaults",[_76c]);
8968}};
8969var _76d=function(_76e,_76f){
8970if(typeof (_76e)!="undefined"){
8971clearTimeout(_76e);
8972}
8973if(typeof _76f!=="undefined"){
8974_76f.stop(true,true);
8975_76f.css("left","").css("width","");
8976}
8977};
8978var _770=function(xhr){
8979$.dr.utils.logError(xhr);
8980};
8981var _772=function(_773,txt,tier){
8982var _776=_773.parents(".mega-menu");
8983_773.find(".help-text-container").html(txt).find("a.helpPopup").click(function(){
8984_75d.HELP_CALLBACK($(this).attr("data-help-url"));
8985_776.hide(0).parent().removeClass("hover");
8986return false;
8987});
8988if(tier>1){
8989_773.removeClass("mega-menu-help-expanded").addClass("mega-menu-help-collapsed");
8990}else{
8991_773.addClass("mega-menu-help-expanded").removeClass("mega-menu-help-collapsed");
8992}
8993};
8994var _777=function(_778,txt,key,tier){
8995var $ric=$(".recent-items-container",_778);
8996$ric.find(".ric-subcontainer").hide();
8997var $sub=$("#ric_"+key);
8998if(!$sub.length){
8999$sub=$ric.append("<div id=\"ric_"+key+"\" class=\"ric-subcontainer\">").find("#ric_"+key);
9000}
9001$sub.html(txt).show();
9002var _77e=_778.parents(".mega-menu");
9003$sub.find("a.recent-item").click(function(e){
9004_77e.hide(0).parent().removeClass("hover");
9005});
9006var _780=$sub.find(".recentScroller");
9007if(_780.length){
9008var h2h=$sub.find(">h2").outerHeight();
9009var h=_778.innerHeight();
9010_780.height(h-h2h);
9011}
9012if(tier>1){
9013_778.removeClass("mega-menu-help-expanded").addClass("mega-menu-help-collapsed");
9014}else{
9015_778.addClass("mega-menu-help-expanded").removeClass("mega-menu-help-collapsed");
9016}
9017};
9018var _783=function(args){
9019var _785=(args.length)?$.dr.menu.strings[args[0]]||{}:{};
9020for(var i=1,len=args.length;i<len;i++){
9021if(_785[args[i]]){
9022_785=_785[args[i]];
9023}else{
9024break;
9025}
9026}
9027return _785.label||_758;
9028};
9029var _787=function(args){
9030var _789=(args.length)?$.dr.menu.strings[args[0]]||{}:{};
9031for(var i=1,len=args.length;i<len;i++){
9032if(_789[args[i]]){
9033_789=_789[args[i]];
9034}else{
9035break;
9036}
9037}
9038return _789.label||_758;
9039};
9040var _78b=function(args){
9041var _78d=(args.length)?$.dr.menu.strings[args[0]]||{}:{};
9042for(var i=1,len=args.length;i<len;i++){
9043if(_78d[args[i]]){
9044_78d=_78d[args[i]];
9045}else{
9046break;
9047}
9048}
9049return _78d.helpText||_759;
9050};
9051var _78f=function(args){
9052var _791=(args.length)?$.dr.menu.strings[args[0]]||{}:{};
9053for(var i=1,len=args.length;i<len;i++){
9054if(_791[args[i]]){
9055_791=_791[args[i]];
9056}else{
9057break;
9058}
9059}
9060return _791.helpLink||null;
9061};
9062var _793=function(){
9063var args=arguments;
9064var key=args[(args.length-1)];
9065var html="";
9066var _797=_783(args);
9067var _798=_78b(args);
9068var link=_78f(args);
9069var c=$("#"+key).attr("class"),classNames=[];
9070if(c.length){
9071classNames=c.split(" ");
9072}
9073var _79b="";
9074for(var i=0,len=classNames.length;i<len;i++){
9075if(classNames[i]!=="more"&&classNames[i]!=="standalone"&&classNames[i]!=="tier3-list"&&classNames[i]!=="tier1"&&classNames[i]!=="hover"&&classNames[i]!=="active"){
9076_79b=classNames[i];
9077}
9078}
9079if(_797){
9080html+="<h2 class=\""+_79b+"\">"+_797+"</h2>";
9081}
9082if(_798){
9083html+="<p>"+_798+"</p>";
9084}
9085if(link){
9086html+="<p><a class=\"helpPopup\" data-help-url=\""+link+"\" href=\""+link+"\">"+_75c.replace("{0}",_797)+"</a></p>";
9087}
9088return html;
9089};
9090var _79d=function(){
9091var args=Array.prototype.slice.apply(arguments);
9092var _79f=args.shift();
9093var _7a0,list;
9094var key=args[(args.length-1)];
9095var list="<div class=\"recentScroller\"><ul>";
9096for(var i=0,len=_79f.length;i<len;i++){
9097list+="<li><a href=\""+_79f[i][1]+"\" class=\"recent-item\">"+_79f[i][0]+"</a></li>";
9098}
9099list+="</ul></div>";
9100_7a0="<h2 class=\""+key+"\">Recent "+_787.apply(this,args)+"</h2>";
9101return _7a0+list;
9102};
9103var _7a4=function(){
9104var _7a5=this;
9105var args=Array.prototype.slice.apply(arguments);
9106var _7a7=args.shift();
9107var key=args[(args.length-1)];
9108if(typeof hasRecentItems!=="undefined"&&hasRecentItems[key]){
9109$(".help-text-container",_7a5).hide();
9110$(".recent-items-container",_7a5).show().curReturn;
9111_777(_7a5,_75b,key,args.length);
9112$.dr.menu.getRecentItemsJson(key,_7a7,function(json,_7aa){
9113var html=_79d(json.items,args);
9114_777(_7a5,html,key,args.length);
9115},_770);
9116}else{
9117$(".help-text-container",_7a5).show();
9118$(".recent-items-container",_7a5).hide();
9119var html=_793.apply(this,args);
9120_772(_7a5,html,args.length);
9121}
9122};
9123var _7ad=function(){
9124var _7ae=this;
9125var args=Array.prototype.slice.apply(arguments);
9126var _7b0=args.shift();
9127var key=args[(args.length-1)];
9128if(typeof hasRecentItems!=="undefined"&&hasRecentItems[key]){
9129$(".help-text-container",_7ae).hide();
9130$(".recent-items-container",_7ae).show().curReturn;
9131_777(_7ae,_75b,key,args.length);
9132var fn=function(json,_7b4){
9133var html=_79d(json.items,key);
9134_777(_7ae,html,key,1);
9135};
9136getRecentItemsJson(key,_7b0,fn,_770);
9137}else{
9138$(".help-text-container",_7ae).show();
9139$(".recent-items-container",_7ae).hide();
9140var html=_793.apply(this,args);
9141_772(_7ae,html,1);
9142}
9143};
9144var _7b7=[{open:500,close:500},{open:500,close:500}];
9145$.namespace("dr",{menu:function(_7b8){
9146var _7b9=$(this),fadeSpeed=$.browser.msie?0:200;
9147var _7ba=function(_7bb,_7bc){
9148childWidth=$(_7bc).width();
9149windowWidth=$(window).width();
9150posX=$(_7bb).offset().left;
9151targetPosX=posX-(childWidth*0.05)-10;
9152if((targetPosX+childWidth)>windowWidth){
9153targetPosX=windowWidth-childWidth;
9154}else{
9155if(targetPosX<0){
9156targetPosX=0;
9157}
9158}
9159return targetPosX;
9160};
9161var _7bd=function(){
9162$(".mega-menu",_7b9).each(function(idx){
9163$(this).css({"left":_7ba($(this).parent(),$(this))+"px","display":"none"});
9164});
9165};
9166return this.each(function(_7bf){
9167var _7c0=$.extend(true,_7b8,_75d);
9168$(".wrapper",_7b9).dr.shadows().find(".inner").setMaxHeight(["ul","div"],_75a);
9169var _7c1,tier1ID,tier2ID,tier3ID,animator;
9170$(".mega-menu",this).bind("menuOpen",function(e){
9171var _7c3=$(e.target);
9172_76d(_7c1,animator);
9173var $li=_7c3.parents("ul.nav >li");
9174tier1ID=$li.attr("id");
9175var _7c5=$(".help-text",_7c3).removeClass("hover");
9176if(_7c3.find("ul.tier2-list>li.active").length==0){
9177_7a4.call(_7c5,_7c0,tier1ID);
9178}else{
9179_7a4.call(_7c5,_7c0,tier1ID,tier2ID);
9180}
9181_7c1=setTimeout(function(){
9182$.dr.menu.showMethod.call(_7c3,fadeSpeed,function(){
9183_7c3.data("active",true);
9184});
9185},_7c3.data("interval").open-fadeSpeed);
9186}).bind("menuClose",function(e){
9187var _7c7=$(e.target);
9188_76d(_7c1,animator);
9189if(_7c7.data("active")){
9190_7c1=setTimeout(function(){
9191$.dr.menu.hideMethod.call(_7c7,fadeSpeed,function(){
9192_7c7.data("active",false).parent().removeClass("hover");
9193});
9194},_7c7.data("interval").close);
9195}else{
9196_7c7.hide().parent().removeClass("hover");
9197}
9198$("ul.tier3-list",$(this)).removeClass("active");
9199tier3ID=null;
9200}).each(function(idx){
9201$(this).data("idx",idx).data("active",false).data("interval",{open:_7b7[$(this).parents(".mega-menu").length].open,close:_7b7[$(this).parents(".mega-menu").length].close});
9202}).find("a").click(function(){
9203if($(this).parent().hasClass("more")){
9204return false;
9205}else{
9206$(".mega-menu",_7b9).hide();
9207}
9208});
9209$("> li",this).hover(function(){
9210$(".mega-menu:not(:eq("+$(".mega-menu",$(this)).data("idx")+"))",_7b9).hide().parent().removeClass("hover");
9211$(".mega-menu",$(this)).trigger("menuOpen").parent().addClass("hover");
9212},function(){
9213$(".mega-menu",$(this)).trigger("menuClose");
9214}).filter(":has(.mega-menu)").find("> a").click(function(e){
9215e.preventDefault();
9216});
9217var _7ca;
9218$("ul.tier2-list>li>a",this).bind("mouseover",function(evt){
9219_76d(_7c1,animator);
9220var $a=$(evt.target);
9221var $li=$a.parent();
9222var _7ce=$li.parent().siblings(".help-text").removeClass("hover");
9223if(tier3ID){
9224$("ul.tier3-list",_7b9).removeClass("active");
9225tier3ID=null;
9226}
9227if($li.hasClass("more")){
9228var fn=function(){
9229tier2ID=$li.attr("id");
9230if(_7ca){
9231_7ca.parent("li").removeClass("active");
9232_7ca.hide();
9233}
9234_7ca=$a.siblings("div.tier3-container").show().curReturn;
9235_7ca.parent().addClass("active");
9236_7a4.call(_7ce,_7c0,tier1ID,tier2ID);
9237};
9238animator=_7ce;
9239if(_7ce.hasClass("mega-menu-help-collapsed")){
9240_7c1=setTimeout(fn,_7b7[0].open);
9241}else{
9242_7c1=setTimeout(function(){
9243animator.removeClass("hover").animate({left:"+=210px",width:"-=210px"},fadeSpeed,fn);
9244},_7b7[0].open);
9245}
9246}else{
9247if($a.parent().hasClass("standalone")){
9248animator=_7ce;
9249var fn=function(){
9250tier2ID=$li.attr("id");
9251if(_7ca){
9252_7ca.parent("li").removeClass("active");
9253_7ca.hide();
9254}
9255_7ad.call(_7ce,_7c0,tier1ID,tier2ID);
9256};
9257if(_7ce.hasClass("mega-menu-help-expanded")){
9258_7c1=setTimeout(fn,_7b7[0].close);
9259}else{
9260_7c1=setTimeout(function(){
9261animator.removeClass("hover").animate({left:"-=210px",width:"+=210px"},fadeSpeed,fn);
9262},_7b7[1].close);
9263}
9264}
9265}
9266$li.addClass("hover");
9267}).bind("mouseout",function(evt){
9268_76d(_7c1,animator);
9269var $a=$(evt.target);
9270var $li=$a.parent();
9271var _7d3=$li.parent().siblings(".help-text").removeClass("hover");
9272$li.removeClass("hover");
9273var fn=function(){
9274if(_7ca){
9275_7ca.parent("li").removeClass("active");
9276_7ca.hide();
9277}
9278_7ca=null;
9279_7a4.call(_7d3,_7c0,tier1ID);
9280};
9281animator=_7d3;
9282if(_7d3.hasClass("mega-menu-help-expanded")){
9283_7c1=setTimeout(fn,_7b7[0].close);
9284}else{
9285_7c1=setTimeout(function(){
9286animator.animate({left:"-=210px",width:"+=210px"},fadeSpeed,fn);
9287},_7b7[1].close);
9288}
9289});
9290$(".tier2-list div.tier3-container",_7b9).each(function(){
9291$(this).height($(this).parents(".inner").innerHeight());
9292}).hide().bind("mouseenter",function(){
9293if(!tier3ID){
9294_76d(_7c1,animator);
9295}
9296});
9297$("ul.tier3-list").hover(function(){
9298var _7d5=$(this);
9299_76d(_7c1,animator);
9300var _7d6=_7d5.parents(".mega-menu").find(".help-text").addClass("hover");
9301_7d5.addClass("hover").find("a").addClass("over");
9302tier3ID=_7d5.attr("id");
9303_7c1=setTimeout(function(){
9304_7a4.call(_7d6,_7c0,tier1ID,tier2ID,tier3ID);
9305_7d5.addClass("active").siblings().removeClass("active");
9306},_7b7[1].open);
9307},function(){
9308var _7d7=$(this);
9309_76d(_7c1,animator);
9310_7d7.removeClass("hover").find("a").removeClass("over");
9311var _7d8=_7d7.parents(".mega-menu").find(".help-text");
9312_7c1=setTimeout(function(){
9313tier3ID=null;
9314_7d8.removeClass("hover");
9315_7d7.removeClass("active").siblings().removeClass("active");
9316_7a4.call(_7d8,_7c0,tier1ID,tier2ID);
9317},_7b7[1].close);
9318});
9319$(".help-text",this).each(function(){
9320$(this).height($(this).parent().innerHeight());
9321}).bind("mouseenter",function(evt){
9322_76d(_7c1);
9323if(!tier3ID){
9324$(this).removeClass("hover").removeClass("actve");
9325}
9326}).bind("mouseleave",function(evt){
9327var _7db=$(this);
9328_7db.removeClass("hover");
9329});
9330$(window).bind("load resize",_7bd);
9331});
9332}});
9333var _7dc=function(){
9334$(".nav").dr.menu();
9335};
9336$.dr.addDomReadyEvent(_7dc,"domReadyEarly");
9337})(jQuery);
9338(function($){
9339$.namespace("dr",{navigation:function(){
9340var _7de=$(this),timeout="",fadeSpeed=!$.browser.msie?"fast":0;
9341var _7df=[{"open":"100","close":"800"}];
9342var rows={"dfltCol":"3","oneCol":"1","twoCol":"2"};
9343var _7e1=function(_7e2,_7e3){
9344childWidth=$(_7e3).width();
9345windowWidth=$(window).width();
9346posX=$(_7e2).offset().left;
9347targetPosX=posX-(childWidth*0.05)-10;
9348if((targetPosX+childWidth)>windowWidth){
9349targetPosX=windowWidth-childWidth;
9350}else{
9351if(targetPosX<0){
9352targetPosX=0;
9353}
9354}
9355return targetPosX;
9356};
9357var _7e4=function(){
9358$(".menu",_7de).each(function(idx){
9359$(this).css({"left":_7e1($(this).parent(),$(this))+"px","display":"none"});
9360});
9361};
9362var _7e6=function(){
9363var _7e7="";
9364for(var key in rows){
9365if($(this).attr("class").match(key)){
9366_7e7=rows[key];
9367}
9368}
9369return _7e7==""?rows.dfltCol:_7e7;
9370};
9371return this.each(function(){
9372$(".menu:not(.mega-menu)",this).bind("menuOpen",function(e){
9373var _7ea=$(e.target);
9374if(typeof (timeout)!="undefined"){
9375clearTimeout(timeout);
9376}
9377timeout=setTimeout(function(){
9378_7ea.fadeIn(fadeSpeed,function(){
9379_7ea.data("active",true);
9380});
9381},_7ea.data("interval").open);
9382}).bind("menuClose",function(e){
9383var _7ec=$(e.target);
9384if(typeof (timeout)!="undefined"){
9385clearTimeout(timeout);
9386}
9387if(_7ec.data("active")){
9388timeout=setTimeout(function(){
9389_7ec.fadeOut(fadeSpeed,function(){
9390_7ec.data("active",false).parent().removeClass("hover");
9391});
9392},_7ec.data("interval").close);
9393}else{
9394_7ec.hide().parent().removeClass("hover");
9395}
9396}).each(function(idx){
9397$(this).data("idx",idx).data("active",false).data("interval",{open:_7df[$(this).parents(".menu").length].open,close:_7df[$(this).parents(".menu").length].close});
9398}).find("a").click(function(){
9399$(".menu",_7de).hide();
9400}).end().find("> ul").dr.shadows().each(function(){
9401var _7ee=$(this),rowHeights=[];
9402$(this).children().each(function(_7ef){
9403var row=_7ef==0?0:Math.floor(_7ef/_7e6.call(_7ee));
9404$(this).data("row",row);
9405if(typeof (rowHeights[row])=="undefined"){
9406rowHeights[row]=0;
9407}
9408rowHeights[row]=$(this).height()>rowHeights[row]?$(this).height():rowHeights[row];
9409});
9410$(this).children().each(function(){
9411$(this).height(rowHeights[$(this).data("row")]);
9412});
9413});
9414$("> li",this).hover(function(){
9415$(".menu:not(:eq("+$(".menu",$(this)).data("idx")+"))",_7de).hide().parent().removeClass("hover");
9416$(".menu",$(this)).trigger("menuOpen").parent().addClass("hover");
9417},function(){
9418$(".menu",$(this)).trigger("menuClose");
9419}).filter(":has(.menu)").find("> a").click(function(e){
9420e.preventDefault();
9421});
9422$(window).bind("load resize",_7e4);
9423});
9424}});
9425var _7f2=function(){
9426$(".nav").dr.navigation();
9427};
9428$.dr.addDomReadyEvent(_7f2,"domReadyEarly");
9429})(jQuery);
9430(function($){
9431$.namespace("dr",{shadows:function(){
9432$(this).each(function(){
9433if(!$.browser.msie||$.browser.msie&&$.browser.version>6){
9434$(this).wrap($("<div class=\"shadow\"><div class=\"topLeft\"><div class=\"topRight\"></div></div></div>").append("<div class=\"bottomLeft\"></div><div class=\"bottomRight\"></div>"));
9435}else{
9436$(this.parentNode).bgiframe();
9437}
9438});
9439return $(this);
9440}});
9441})(jQuery);
9442(function($){
9443var _7f5="",defaults={deepLink:true,activeTab:0,displayEffect:{animation:"fade",speed:"normal"}};
9444var _7f6=function(ypos){
9445$(this).stop().animate({backgroundPosition:"0 "+ypos+"px"},250);
9446};
9447var _7f8=function(){
9448_7f6.call(this,-535);
9449};
9450var _7f9=function(){
9451_7f6.call(this,-500);
9452};
9453$.namespace("dr",{tabs:function(_7fa){
9454var _7fb=$.extend(true,defaults,_7fa);
9455var _7fc=_7fb.displayEffect.animation.toLowerCase(),animation={show:$.fn.show,hide:$.fn.hide,speed:_7fb.displayEffect.speed};
9456if($.browser.msie){
9457_7fc="none";
9458}
9459switch(_7fc){
9460case "fade":
9461animation=$.extend(animation,{show:$.fn.fadeIn,hide:$.fn.fadeOut});
9462break;
9463case "slide":
9464animation=$.extend(animation,{show:$.fn.slideDown,hide:$.fn.slideUp});
9465break;
9466case "none":
9467animation.speed=0;
9468break;
9469}
9470return this.each(function(){
9471var _7fd=$(this),defaultTab=0,activeTab,tabIDArray=[];
9472var _7fe=function(_7ff,_800,_801){
9473_7fd.find("> dt").removeClass("active").eq(_7ff).addClass("active").end().end().find("> dd").hide().eq(_7ff).show();
9474_800.call(_7fd.find("> dd > div.tabContent").hide().eq(_7ff),_801);
9475activeTab=_7ff;
9476};
9477var _802=function(){
9478_7fd.find("> dt").each(function(_803){
9479var _804=encodeURI((_803==0)?"/":"/"+$.trim($(this).text()).replace(/\s+/g,"-"));
9480$(this).data("label",_804).data("count",_803).click(function(){
9481$.address.value($(this).data("label"));
9482});
9483tabIDArray.push(_804.toLowerCase());
9484});
9485$.address.change(function(_805){
9486var _806=encodeURI($.trim(_805.value)).toLowerCase();
9487var _807=_7fd.find("> dt").filter(function(){
9488var _808=$(this).data("label");
9489return (_808)?(_808.toLowerCase()==_806):false;
9490}).data("count");
9491if(activeTab!=_807&&_7f5!=_805.path){
9492if(typeof activeTab==="undefined"&&typeof defaultTab!=="undefined"&&_805.path=="/"){
9493_807=defaultTab;
9494}
9495var _809=false;
9496for(var i=0;i<tabIDArray.length;i++){
9497if(tabIDArray[i]==_806){
9498_7fe(_807,animation.show,animation.speed);
9499break;
9500}
9501}
9502}
9503_7f5=_805.path;
9504});
9505};
9506var _80b=(_7fb.deepLink&&!_7fd.parents("dl.tabs").length&&!$("body").hasClass("modalPage"));
9507var _80c=_7fd.find("> dt").find("script").remove().end().prependTo(this).each(function(_80d){
9508var $dt=$(this);
9509var _80f="";
9510if(!$dt.hasClass("tab")){
9511_80f="tab ";
9512}
9513if((_80d===0)&&!$dt.hasClass("first")){
9514_80f+="first ";
9515}
9516if($dt.hasClass("active")){
9517defaultTab=_80d;
9518}
9519if($("a",this).length){
9520_80f+="tabLink";
9521_80b=false;
9522}else{
9523if(!_80b&&!$dt.hasClass("preventClick")){
9524var _810=function(){
9525if(!$(this).hasClass("active")){
9526_7fe(_80d,animation.show,animation.speed);
9527}
9528return false;
9529};
9530$dt.click(_810).bind("show",_810);
9531}
9532}
9533if(_80f.length){
9534$dt.addClass($.trim(_80f));
9535}
9536}).hover(_7f8,_7f9).length;
9537var _811=_7fd.find("> dd").each(function(){
9538var $dd=$(this);
9539if(!$dd.hasClass("tabContainer")){
9540$dd.addClass("tabContainer");
9541}
9542if(!$dd.find("> div.tabContent").length){
9543$dd.wrapInner("<div class=\"tabContent\">");
9544}
9545}).length;
9546var _813="";
9547for(var i=_811;i<_80c;i++){
9548_813+="<dd class=\"tabContainer\"><div class=\"tabContent\"/></dd>";
9549}
9550if(_813.length){
9551_7fd.append(_813);
9552}
9553if(_80b){
9554if($.address.ready()){
9555_802();
9556}else{
9557$(document).bind("onAddressActivated",function(){
9558_802();
9559});
9560$.address.activate();
9561}
9562}else{
9563_7fe(defaultTab||_7fb.activeTab,animation.show,0);
9564}
9565});
9566}});
9567$.dr.tabs={getDefaults:function(){
9568return defaults;
9569},setDefaults:function(_815){
9570if(_815){
9571$.extend(true,defaults,_815);
9572}
9573$(document).trigger("afterTabSetDefaults",[_815]);
9574}};
9575$.dr.addUnobtrusiveEvent(function(evt,_817){
9576$("dl.tabs",_817).dr.tabs();
9577},"unobtrusiveEventEarly");
9578})(jQuery);
9579function Color(){
9580this.red=0;
9581this.green=0;
9582this.blue=0;
9583this.hex="000000";
9584}
9585function HexColor(hex){
9586this.setHex(hex);
9587}
9588HexColor.prototype=new Color();
9589function RGBColor(r,g,b){
9590this.setRGBColor(r,g,b);
9591}
9592RGBColor.prototype=new Color();
9593Color.HEX_VALUES="0123456789ABCDEF";
9594Color.HEX_SYMBOL="#";
9595Color.DEC_VALUES="0123456789.%";
9596Color.PERCENT_SYMBOL="%";
9597Color.MSG_NOT_VALID_HEX_ERROR="Invalid hexidecimal code. Hexidecimal colors contain the following characters only: 0123456789ABCDEF.";
9598Color.rgbToHexColor=function(r,g,b){
9599return Color.decToHex(r)+Color.decToHex(g)+Color.decToHex(b);
9600};
9601Color.decToHex=function(n){
9602var h=Color.HEX_VALUES.substr(n&15,1);
9603while(n>15){
9604n>>=4;
9605h=Color.HEX_VALUES.substr(n&15,1)+h;
9606}
9607if(h.length==1){
9608h="0"+h;
9609}
9610return h;
9611};
9612Color.hexToRgb=function(h){
9613h=(Color.parseHex)?Color.parseHex(h):"FFFFFF";
9614var _822=new RGBColor(Color.hexToDec(h.substring(0,2)),Color.hexToDec(h.substring(2,4)),Color.hexToDec(h.substring(4,6)));
9615return _822;
9616};
9617Color.hexToDec=function(h){
9618return parseInt(h,16);
9619};
9620Color.parseHex=function(h){
9621h=h.toUpperCase();
9622var _825=null;
9623var _826=null;
9624if((h.indexOf("#")!=-1&&h.length==7)||(h.indexOf("#")==-1&&h.length==6)){
9625_825=/\#{0,1}((([ABCDEF]|\d){2}){3})/;
9626_826=h.match(_825);
9627h=(_826!==null)?_826[1]:null;
9628}else{
9629if((h.indexOf("#")!=-1&&h.length==4)||(h.indexOf("#")==-1&&h.length==3)){
9630_825=/\#{0,1}(([ABCDEF]|\d{1})([ABCDEF]|\d{1})([ABCDEF]|\d{1}))/;
9631_826=h.match(_825);
9632h=(_826!==null)?_826[2]+_826[2]+_826[3]+_826[3]+_826[4]+_826[4]:null;
9633}else{
9634_825=/\#{0,1}(([ABCDEF]|\d){1,6})/;
9635_826=h.match(_825);
9636h=(_826!==null)?_826[1]:"000000";
9637while(h.length<6){
9638h+="0";
9639}
9640}
9641}
9642return h;
9643};
9644Color.percentToDec=function(p){
9645if(String(p).indexOf(Color.PERCENT_SYMBOL)){
9646try{
9647p=parseFloat(p);
9648}
9649catch(e){
9650p=0;
9651}
9652}
9653p=Math.min(100,Math.abs(p))/100;
9654return Math.round(p*255);
9655};
9656Color.decToPercent=function(dec){
9657return dec/255*100;
9658};
9659Color.hexMask=function(evt,obj){
9660var key=(evt.which)?evt.which:event.keyCode;
9661var _82c=String.fromCharCode(key).toUpperCase();
9662var _82d=Color.HEX_VALUES+"#";
9663if((key===null)||(key===0)||(key==8)||(key==9)||(key==13)||(key==27)){
9664return true;
9665}else{
9666if((Color.HEX_VALUES.indexOf(_82c)>-1||((Color.HEX_SYMBOL.indexOf(_82c)>-1)&&obj.value.length<=0))){
9667return _82c;
9668}else{
9669return false;
9670}
9671}
9672};
9673Color.decMask=function(evt){
9674var key=(evt.which)?evt.which:event.keyCode;
9675var _830=String.fromCharCode(key).toUpperCase();
9676if((key===null)||(key===0)||(key==8)||(key==9)||(key==13)||(key==27)){
9677return true;
9678}else{
9679if((Color.DEC_VALUES.indexOf(_830)>-1)){
9680return _830;
9681}else{
9682return false;
9683}
9684}
9685};
9686Color.prototype.setRGBColor=function(r,g,b){
9687this.setRedChannel(r);
9688this.setGreenChannel(g);
9689this.setBlueChannel(b);
9690};
9691Color.prototype.setRedChannel=function(ch){
9692this.red=this.setChannel(ch);
9693this.rgbUpdated();
9694};
9695Color.prototype.setGreenChannel=function(ch){
9696this.green=this.setChannel(ch);
9697this.rgbUpdated();
9698};
9699Color.prototype.setBlueChannel=function(ch){
9700this.blue=this.setChannel(ch);
9701this.rgbUpdated();
9702};
9703Color.prototype.setChannel=function(ch){
9704if(String(ch).indexOf(Color.PERCENT_SYMBOL)!=-1){
9705ch=Color.percentToDec(ch);
9706}
9707try{
9708ch=parseInt(ch,10);
9709if(isNaN(ch)){
9710ch=0;
9711}
9712}
9713catch(e){
9714ch=0;
9715}
9716finally{
9717ch=Math.min(255,Math.abs(ch));
9718}
9719return ch;
9720};
9721Color.prototype.setHex=function(h){
9722this.hex=Color.parseHex(h);
9723if(this.hex!==null){
9724this.hexUpdated();
9725}else{
9726alert(Color.MSG_NOT_VALID_HEX_ERROR);
9727this.hex="000000";
9728}
9729};
9730Color.prototype.rgbUpdated=function(){
9731this.hex=Color.rgbToHexColor(this.red,this.green,this.blue);
9732};
9733Color.prototype.hexUpdated=function(){
9734var _839=Color.hexToRgb(this.hex);
9735this.red=_839.red;
9736this.green=_839.green;
9737this.blue=_839.blue;
9738};
9739Color.prototype.toString=function(){
9740return this.red+","+this.green+","+this.blue;
9741};
9742Color.prototype.toRGBString=function(){
9743return this.toString();
9744};
9745Color.prototype.toHexString=function(){
9746return "#"+this.hex;
9747};
9748(function($){
9749var _83b=function(_83c,fObj){
9750if(typeof fObj=="string"){
9751this.inputId=fObj;
9752this.inputObj=getElem(fObj);
9753}else{
9754this.inputId=fObj.id;
9755this.inputObj=fObj;
9756}
9757if(this.inputObj===null){
9758return;
9759}
9760this.pickerObjId=_83c;
9761this.imagePrefix=$.dr.IMAGE_PATH+"/colorPicker/";
9762this.rampLeftOffset=12;
9763this.sliderIconSize=11;
9764this.rampScale=100;
9765this.defaultHexColor="000000";
9766this._open=false;
9767this.sampleColorObj=null;
9768this.sampleColorId=this.inputId+"_sample";
9769this.pickerIconObj=null;
9770this.pickerIconId=this.inputId+"_icon";
9771this.currentColor=new Color();
9772if(this.inputObj.value.trim()!=""){
9773this.currentColor.setHex(this.inputObj.value);
9774}
9775this.currentChannel=null;
9776this.isDragging=false;
9777this.popupBound=false;
9778this.buildUI();
9779};
9780var _83e="Red",RED_SLIDER_ALT="Drag to adjust the red channel",GREEN_RAMP_ALT="Green",GREEN_SLIDER_ALT="Drag to adjust the green channel",BLUE_RAMP_ALT="BLUE",BLUE_SLIDER_ALT="Drag to adjust the blue channel",POPUP_UI=null,INSTANCE=null;
9781_83b.prototype={init:function(){
9782if(!this.popUpBound){
9783this.buildPopup();
9784this.bindToInstance();
9785}
9786},buildUI:function(){
9787this.init();
9788if(DR.Utils.hasCSSClass(this.inputObj,"Enabled")){
9789this.sampleColorObj=getElem(this.sampleColorId);
9790this.pickerIconObj=getElem(this.pickerIconId);
9791}else{
9792var _83f=this.inputObj.parentNode;
9793var _840=false;
9794while(!_840){
9795if((_83f.tagName=="BODY")||(_83f.tagName=="HTML")){
9796break;
9797}
9798if(_83f.tagName=="DIV"||_83f.tagName=="DD"||_83f.tagName=="TD"){
9799_840=true;
9800}else{
9801_83f=_83f.parentNode;
9802}
9803}
9804var _841=document.createElement("div");
9805_841.className="colorPickerSample";
9806_841.innerHTML="<div id=\""+this.sampleColorId+"\" style=\"background-color:"+this.currentColor.toHexString()+"\"></div>";
9807_841=DR.Utils.insertAfter(_83f,_841,this.inputObj);
9808this.sampleColorObj=getElem(this.sampleColorId);
9809var d=document.createElement("div");
9810d.className="colorPickerHandle";
9811d.innerHTML="&nbsp;";
9812d.id=this.pickerIconId;
9813this.pickerIconObj=DR.Utils.insertAfter(_83f,d,_841);
9814var _843=this;
9815var func=function(evt){
9816_843.toggle(evt);
9817};
9818DR.Utils.addEvent(this.pickerIconObj,"click",func);
9819DR.Utils.addEvent(this.sampleColorObj,"click",func);
9820DR.Utils.addEvent(this.inputObj,"click",func);
9821var _846=_83f.getElementsByTagName("span");
9822var _847=false;
9823if(_846.length>0){
9824if(DR.Utils.hasCSSClass(_846[0],"hint")){
9825_847=true;
9826}
9827}
9828if(!_847){
9829var s=document.createElement("span");
9830s.innerHTML="#"+this.defaultHexColor;
9831s.className="hint";
9832DR.Utils.insertAfter(_83f,s,this.pickerIconObj);
9833}
9834DR.Utils.addCSSClass(this.inputObj,"colorPickerEnabled");
9835}
9836},buildPopup:function(){
9837if(POPUP_UI===null){
9838var _849=document.getElementsByTagName("body")[0];
9839var div=document.createElement("DIV");
9840var ramp="";
9841ramp+="<div class=\"{0}Ramp\">";
9842ramp+="\t<div id=\"colorPickerRamp_{0}\" class=\"ramp\"><img src=\""+this.imagePrefix+"{0}_ramp.gif\" width=\"122\" height=\"19\" border=\"0\" onmouseup=\"$.dr.colorPicker.getInstance().stopDrag(
9842);\" onmousedown=\"$.dr.colorPicker.getInstance().startDrag('{0}', event);\"  ondragstart=\"return false;\" title=\"{RAMP_ALT}\" /></div>";
9843ramp+="\t<div class=\"rampInput\"><input name=\"{0}\"  id=\"colorPickerInput_{0}\" maxlength=\"5\"  value=\"0\" onkeypress=\"return Color.decMask(event);\"  onchange=\"$.dr.colorPicker.getInstance().changeInput(this);\" /></div>";
9844ramp+="\t<div id=\"colorPickerSlider_{0}\" class=\"rampSlider\"><img name=\"{0}_slider_img\" src=\""+this.imagePrefix+"slider_head.gif\"  width=\"11\" height=\"6\" border=\"0\" onmouseup=\"$.dr.colorPicker.getInstance().stopDrag();\" onmousedown=\"$.dr.colorPicker.getInstance().startDrag('{0}', event);\" ondragstart=\"return false;\" title=\"{SLIDER_ALT}\" /></div>";
9845ramp+="</div>";
9846var h="";
9847h+="<div id=\"colorPickerPopup\" class=\"colorPickerPopup\" >";
9848h+="\t<div class=\"swatch\"><div class=\"frame\"><div id=\"colorPickerSample\"></div></div></div>";
9849h+="\t<div id=\"colorPickerRamps\" class=\"ramps\">";
9850h+=ramp.replace(/\{0\}/g,"red").replace(/{RAMP_ALT}/,_83e).replace(/{SLIDER_ALT}/,RED_SLIDER_ALT);
9851h+=ramp.replace(/\{0\}/g,"green").replace(/{RAMP_ALT}/,GREEN_RAMP_ALT).replace(/{SLIDER_ALT}/,GREEN_SLIDER_ALT);
9852h+=ramp.replace(/\{0\}/g,"blue").replace(/{RAMP_ALT}/,BLUE_RAMP_ALT).replace(/{SLIDER_ALT}/,BLUE_SLIDER_ALT);
9853h+="\t\t<div class=\"hexInput\">";
9854h+="\t\t\t#<input id=\"colorPickerHex\" name=\"hex\" value=\""+this.defaultHexColor+"\" maxlength=\"7\" onkeypress=\"$.dr.colorPicker.getInstance().doEnter(event); return Color.hexMask(event, this);\" onchange=\"$.dr.colorPicker.getInstance().changeHex();\" />";
9855h+="\t\t</div>";
9856h+="\t</div>";
9857h+="</div>";
9858div.innerHTML=h;
9859POPUP_UI=_849.appendChild(div);
9860}
9861},bindToInstance:function(){
9862this.popupId="colorPickerPopup";
9863this.popupObj=getElem(this.popupId);
9864this.colorPickerRampsObj=getElem("colorPickerRamps");
9865this.colorPickerHexInputObj=getElem("colorPickerHex");
9866this.colorPickersampleColorObj=getElem("colorPickerSample");
9867var c="colorPickerSlider_";
9868var r="colorPickerRamp_";
9869var i="colorPickerInput_";
9870this.channels={};
9871this.channels.red={};
9872this.channels.red.slider=getElem(c+"red");
9873this.channels.red.ramp=getElem(r+"red");
9874this.channels.red.input=getElem(i+"red");
9875this.channels.green={};
9876this.channels.green.slider=getElem(c+"green");
9877this.channels.green.ramp=getElem(r+"green");
9878this.channels.green.input=getElem(i+"green");
9879this.channels.blue={};
9880this.channels.blue.slider=getElem(c+"blue");
9881this.channels.blue.ramp=getElem(r+"blue");
9882this.channels.blue.input=getElem(i+"blue");
9883this.popUpBound=true;
9884var _850=function(evt){
9885if(window.event){
9886window.event.cancelBubble=true;
9887}else{
9888evt.stopPropagation();
9889evt.preventDefault();
9890}
9891};
9892this.stopClick=_850;
9893DR.Utils.addEvent(this.popupObj,"click",_850,false);
9894},show:function(evt){
9895if(this.inputObj.value.trim()!=""){
9896this.update();
9897}else{
9898INSTANCE=this;
9899}
9900if(this.inputObj.disabled){
9901return;
9902}
9903this.popupObj.style.display="block";
9904var _853=5;
9905var _854=0;
9906var _855="Right";
9907var _856="Top";
9908var _857="Right";
9909var _858="Down";
9910DR.Utils.Position.snapTo(this.inputObj,this.popupObj,_853,_854,_855,_856,_857,_858);
9911var _859=this;
9912var func=function(){
9913_859.addDocumentOnclick();
9914};
9915window.setTimeout(func,50);
9916this._open=true;
9917},addDocumentOnclick:function(){
9918var _85b=this;
9919var func=function(){
9920_85b.hide();
9921};
9922this.hideFunc=func;
9923DR.Utils.addEvent(document,"click",func,false);
9924},hide:function(){
9925this.popupObj.style.display="none";
9926if(this.hideFunc){
9927DR.Utils.removeEvent(document,"click",this.hideFunc);
9928}
9929this._open=false;
9930},toggle:function(evt){
9931var xLoc=parseInt(DR.Utils.getStyle(this.popupObj,"left"),10);
9932if(xLoc<-100){
9933this.popupObj.style.display="none";
9934}
9935if(this.popupObj.style.display=="block"&&this._open){
9936this.hide();
9937}else{
9938this.show(evt);
9939}
9940},startDrag:function(_85f,evt){
9941this.currentChannel=_85f;
9942var _861=this;
9943var _862=function(evt){
9944_861.doDrag(evt);
9945};
9946var _864=function(evt){
9947_861.stopDrag(evt);
9948};
9949this.mouseup=_864;
9950this.mousemove=_862;
9951DR.Utils.addEvent(document,"mousemove",_862,false);
9952DR.Utils.addEvent(document,"mouseup",_864,false);
9953this.dragSlider(evt);
9954this.isDragging=true;
9955if(document.addEventListener){
9956evt.stopPropagation();
9957evt.preventDefault();
9958}
9959},stopDrag:function(){
9960DR.Utils.removeEvent(document,"mousemove",this.mousemove);
9961DR.Utils.removeEvent(document,"mouseup",this.mouseup);
9962this.isDragging=false;
9963this.currentChannel=null;
9964},doDrag:function(evt){
9965if(this.isDragging){
9966if(!evt){
9967evt=window.event;
9968}
9969this.dragSlider(evt);
9970}
9971return false;
9972},dragSlider:function(evt){
9973evt=(evt)?evt:event;
9974var _868=this.popupObj.offsetLeft+this.colorPickerRampsObj.offsetLeft;
9975_868+=(this.rampLeftOffset-(this.sliderIconSize/2));
9976var x=this.constrainSlider(evt.clientX-_868+document.body.parentNode.scrollLeft);
9977var p=x-this.rampLeftOffset+"%";
9978if(this.currentChannel=="red"){
9979this.currentColor.setRedChannel(p);
9980}else{
9981if(this.currentChannel=="green"){
9982this.currentColor.setGreenChannel(p);
9983}
9984}
9985if(this.currentChannel=="blue"){
9986this.currentColor.setBlueChannel(p);
9987}
9988this.update();
9989},constrainSlider:function(x){
9990var _86c=this.rampLeftOffset;
9991var _86d=_86c+this.rampScale;
9992var newX=Math.min(Math.max(_86c,x),_86d);
9993return newX;
9994},positionSliders:function(){
9995this.positionSlider(this.channels.red.slider,this.currentColor.red);
9996this.positionSlider(this.channels.green.slider,this.currentColor.green);
9997this.positionSlider(this.channels.blue.slider,this.currentColor.blue);
9998},positionSlider:function(_86f,dec){
9999var _871=Math.round(Color.decToPercent(dec));
10000_871=_871+this.rampLeftOffset;
10001_86f.style.left=_871+"px";
10002},update:function(){
10003INSTANCE=this;
10004this.channels.red.input.value=this.currentColor.red;
10005this.channels.green.input.value=this.currentColor.green;
10006this.channels.blue.input.value=this.currentColor.blue;
10007if(this.currentColor.hex){
10008this.colorPickerHexInputObj.value=this.currentColor.hex;
10009this.colorPickersampleColorObj.style.backgroundColor=this.currentColor.toHexString();
10010}
10011this.positionSliders();
10012this.inputObj.value=this.currentColor.toHexString();
10013this.sampleColorObj.style.backgroundColor=this.currentColor.toHexString();
10014},changeInput:function(obj){
10015var _873=obj.value;
10016var _874=obj.name;
10017if(_874=="red"){
10018this.currentColor.setRedChannel(_873);
10019}else{
10020if(_874=="green"){
10021this.currentColor.setGreenChannel(_873);
10022}
10023}
10024if(_874=="blue"){
10025this.currentColor.setBlueChannel(_873);
10026}
10027this.currentChannel=_874;
10028this.update();
10029},changeHex:function(){
10030var hex=this.colorPickerHexInputObj.value;
10031this.currentColor.setHex(hex);
10032this.update();
10033},setBaseInput:function(){
10034this.inputObj.value=this.currentColor.toHexString();
10035},getBaseInput:function(){
10036var hex=null;
10037if(this.inputObj!==null){
10038hex=this.inputObj.value;
10039}
10040},doEnter:function(evt,_878){
10041var key=(evt.which)?evt.which:event.keyCode;
10042var _87a=(_878)?true:false;
10043if(key==13){
10044if(!_87a){
10045this.changeHex();
10046}else{
10047this.update();
10048}
10049}
10050}};
10051$.namespace("dr",{colorPicker:function(){
10052return this.each(function(){
10053if(this.type=="text"){
10054if(!$(this).hasClass("colorPicker_inited")){
10055$(this).addClass("colorPicker");
10056var _87b="jQuery('#"+this.id+"').get(0).colorPicker";
10057this.colorPicker=new _83b(_87b,this);
10058$(this).addClass("colorPicker_inited");
10059}
10060}
10061});
10062}});
10063$.dr.colorPicker={getInstance:function(){
10064return INSTANCE;
10065}};
10066var _87c=function(_87d){
10067_87d.filter("input[type=text].colorPicker").dr.colorPicker();
10068};
10069$.dr.addPlugin("form",_87c);
10070})(jQuery);
10071(function($){
10072var _87f=0,ANY_DATE_PICKERS_OPEN=false;
10073var _880={CSS_CLASS_DATE:"date",CSS_CLASS_TODAYS_DATE:"todaysDate",CSS_CLASS_DISPLAY_DATE_CLASS:"displayDate",CSS_CLASS_DISPLAY_MONTH_DATE:"displayMonthDate",CSS_CLASS_OTHER_MONTH_DATE:"otherMonthDate",YEAR_SELECT_OFFSET:4,DEFAULT_TEXT:"Calendar"};
10074var _881="January",FEBRUARY="February",MARCH="March",APRIL="April",MAY="May",JUNE="June",JULY="July",AUGUST="August",SEPTEMBER="September",OCTOBER="October",NOVEMBER="November",DECEMBER="December",JANUARY_ABBRV="Jan",FEBRUARY_ABBRV="Feb",MARCH_ABBRV="Mar",APRIL_ABBRV="Apr",MAY_ABBRV="May",JUNE_ABBRV="Jun",JULY_ABBRV="Jul",AUGUST_ABBRV="Aug",SEPTEMBER_ABBRV="Sep",OCTOBER_ABBRV="Oct",NOVEMBER_ABBRV="Nov",DECEMBER_ABBRV="Dec",SUNDAY_ABBRV="S",MONDAY_ABBRV="M",TUESDAY_ABBRV="T",WEDNESDAY_ABBRV="W",THURSDAY_ABBRV="T",FRIDAY_ABBRV="F",SATURDAY_ABBRV="S",TODAY="Go to Today's Date";
10075var _882=[_881,FEBRUARY,MARCH,APRIL,MAY,JUNE,JULY,AUGUST,SEPTEMBER,OCTOBER,NOVEMBER,DECEMBER],MONTH_ABBREVIATIONS=[JANUARY_ABBRV,FEBRUARY_ABBRV,MARCH_ABBRV,APRIL_ABBRV,MAY_ABBRV,JUNE_ABBRV,JULY_ABBRV,AUGUST_ABBRV,SEPTEMBER_ABBRV,OCTOBER_ABBRV,NOVEMBER_ABBRV,DECEMBER_ABBRV],DAY_HEADERS=[SUNDAY_ABBRV,MONDAY_ABBRV,TUESDAY_ABBRV,WEDNESDAY_ABBRV,THURSDAY_ABBRV,FRIDAY_ABBRV,SATURDAY_ABBRV];
10076$.dr.date.getMonthName=function(i){
10077return _882[i];
10078};
10079$.dr.date.getMonthAbbr=function(i){
10080return MONTH_ABBREVIATIONS[i];
10081};
10082$.dr.date.getDayAbbr=function(i){
10083return DAY_HEADERS[i];
10084};
10085var _886=function(_887,fObj,_889,_88a){
10086this.pickerObjId=_887;
10087this.init(fObj,_889,_88a);
10088};
10089_886.prototype={init:function(fObj,_88c,_88d){
10090if(typeof fObj=="string"){
10091this.inputId=fObj;
10092this.inputObj=getElem(fObj);
10093}else{
10094if(fObj.id){
10095this.inputId=fObj.id;
10096}else{
10097this.inputId=fObj.getAttribute("datePickerId");
10098}
10099this.inputObj=fObj;
10100}
10101if(this.inputObj===null){
10102return;
10103}
10104this.dateFormat=(_88d)?_88d:$.dr.date.getDefaultFormat();
10105this._label=(_88c)?_88c.replace(":",""):_880.DEFAULT_TEXT;
10106this.pickerIcon=null;
10107this.pickerIconId=this.inputId+"_icon";
10108this.popupId="picker_"+this.inputId;
10109this.popupObj=null;
10110this.contentArea=null;
10111this.calendarArea=null;
10112this.menuArea=null;
10113this.overlay=null;
10114this.todaysDate=null;
10115this.todaysMonth=null;
10116this.todaysDay=null;
10117this.todaysYear=null;
10118this.displayMonth=null;
10119this.displayDay=null;
10120this.displayYear=null;
10121this.displayDateOffset=null;
10122this.inputFieldMonth=null;
10123this.inputFieldDay=null;
10124this.inputFieldYear=null;
10125this.currentMonthHasTodaysDate=false;
10126this.hasInputFieldValue=false;
10127this.menuBuilt=false;
10128this.menuMonthSelect=null;
10129this.menuYearSelect=null;
10130this.numDaysInMonth=[0,31,28,31,30,31,30,31,31,30,31,30,31];
10131this.setTodaysDate();
10132this.attachIcon();
10133},attachIcon:function(){
10134if(!$(this.inputObj).hasClass("Enabled")){
10135var _88e=this.inputObj.parentNode;
10136var _88f=false;
10137while(!_88f){
10138if((_88e.tagName=="BODY")||(_88e.tagName=="HTML")){
10139break;
10140}
10141if(_88e.tagName=="DIV"||_88e.tagName=="DD"||_88e.tagName=="TD"){
10142_88f=true;
10143}else{
10144_88e=_88e.parentNode;
10145}
10146}
10147var divs=_88e.getElementsByTagName("div");
10148var _891=false;
10149var _892=null;
10150if(divs.length>0){
10151if($(divs[0]).hasClass("Handle")){
10152this.pickerIcon=divs[0];
10153}
10154}
10155if(this.pickerIcon===null){
10156var d=document.createElement("div");
10157d.innerHTML="&nbsp;";
10158d.className="datePickerHandle";
10159d.id=this.pickerIconId;
10160var _894=this;
10161var func=function(evt){
10162_894.toggle(evt);
10163};
10164$(d).click(func);
10165$(this.inputObj).click(func);
10166this.pickerIcon=DR.Utils.insertAfter(_88e,d,this.inputObj);
10167}
10168var _897=_88e.getElementsByTagName("span");
10169var _898=false;
10170if(_897.length>0){
10171if($(_897[0]).hasClass("hint")){
10172_898=true;
10173}
10174}
10175if(!_898){
10176var s=document.createElement("span");
10177s.className="hint";
10178var _89a=new $.dr.date(new Date(),this.dateFormat);
10179s.innerHTML=this.dateFormat+" ("+_89a.toFormattedString()+")";
10180s.title=s.innerHTML;
10181DR.Utils.insertAfter(_88e,s,this.pickerIcon);
10182}
10183$(this.inputObj).addClass("datePickerEnabled").attr("autocomplete","off");
10184}
10185},toggle:function(evt,_89c){
10186if(this.contentArea===null){
10187var _89d=document.getElementById(this.popupId);
10188if(_89d===null){
10189var _89e=document.getElementsByTagName("body")[0];
10190var d=document.createElement("DIV");
10191d.id=this.popupId;
10192d.className="datePickerContent";
10193this.contentArea=_89e.appendChild(d);
10194var d=document.createElement("DIV");
10195d.id="menuArea_"+this.popupId;
10196this.menuArea=this.contentArea.appendChild(d);
10197var d=document.createElement("DIV");
10198d.id="calendarArea_"+this.popupId;
10199d.className="calendarArea";
10200this.calendarArea=this.contentArea.appendChild(d);
10201}else{
10202this.contentArea=_89d;
10203this.menuArea=document.getElementById("menuArea_"+this.popupId);
10204this.calendarArea=document.getElementById("calendarArea_"+this.popupId);
10205}
10206}
10207if(this.popupObj===null){
10208this.show(evt);
10209}else{
10210if(this.popupObj.display=="block"){
10211this.hide();
10212}else{
10213this.show(evt);
10214}
10215}
10216},show:function(evt){
10217ANY_DATE_PICKERS_OPEN=true;
10218if(this.inputObj.disabled){
10219return;
10220}
10221var _8a1=this;
10222var func=function(evt){
10223_8a1.shouldHide(evt);
10224};
10225this.shouldHideFunc=func;
10226$(document).click(func);
10227this.setInputFieldDate();
10228this.refreshCalendar();
10229this.showPopup();
10230var _8a4=this.overlay.shadowRight;
10231var _8a5=this.overlay.shadowBottom;
10232var _8a6=-(_8a4/2);
10233var _8a7=0;
10234if(DR.Utils.BrowserDetect.browser=="Explorer"&&DR.Utils.BrowserDetect.version<7){
10235_8a6=0;
10236_8a7=2;
10237}
10238var _8a8="Left";
10239var _8a9="Bottom";
10240var _8aa="Right";
10241var _8ab="Down";
10242DR.Utils.Position.snapTo(this.inputObj,this.popupObj,_8a6,_8a7,_8a8,_8a9,_8aa,_8ab);
10243},shouldHide:function(evt){
10244var o=evt.target;
10245var _8ae=(o.id==this.inputId+"_todayLink")?true:false;
10246while(o){
10247var _8af=(o.getAttribute)?o.getAttribute("datePickerId"):null;
10248if(this.inputId==_8af){
10249_8ae=true;
10250break;
10251}else{
10252if(o.id!==undefined){
10253if(o.id==("modal_"+this.popupId)||o.id==this.pickerIconId||o.id==this.inputId){
10254_8ae=true;
10255break;
10256}
10257}
10258}
10259o=o.parentNode;
10260}
10261if(!_8ae){
10262this.hide();
10263$(document).unbind("click",this.shouldHide);
10264}
10265},hide:function(){
10266if(this.overlay!==null){
10267$(document).unbind("click",this.shouldHideFunc);
10268this.overlay.close();
10269}
10270ANY_DATE_PICKERS_OPEN=false;
10271},showPopup:function(){
10272if(!ANY_DATE_PICKERS_OPEN){
10273var _8b0=this;
10274var func=function(){
10275_8b0.showPopup();
10276};
10277window.setTimeout(func,50);
10278}else{
10279if(this.popupObj===null){
10280var _8b2=overlayStack.getById(this.popupId);
10281if(_8b2===null){
10282var w=this.contentArea.offsetWidth-10;
10283var h=this.contentArea.offsetHeight-10;
10284$("#"+this.popupId).dr.overlay({type:"modeless",width:w,height:h,anchorId:this.popupId});
10285this.overlay=$("#"+this.popupId).data("overlay");
10286}else{
10287this.overlay=_8b2;
10288}
10289this.overlay.setTitle(this._label);
10290this.popupObj=$("#modal_"+this.popupId).addClass("datePickerOverlay")[0];
10291this.overlay.show();
10292}else{
10293this.overlay.show();
10294}
10295}
10296},updateDateInput:function(evt,year,_8b7,day){
10297this.inputObj.value=this.getDateString(year,_8b7,day);
10298if(typeof this.inputObj.onchange=="function"){
10299this.inputObj.onchange();
10300}
10301this.hide();
10302},getDateString:function(year,_8ba,day){
10303var date=new Date();
10304date.setFullYear(year,_8ba-1,day);
10305return new $.dr.date(date,this.dateFormat).toFormattedString();
10306},refreshCalendar:function(){
10307if(arguments.length==2){
10308if(arguments[0]!=this.displayYear||arguments[1]!=this.displayMonth){
10309this.calculateDisplayDate(arguments[0],arguments[1]);
10310this.calculateOffset();
10311this.calendarArea.innerHTML=this.writeCalendar(arguments[0],arguments[1]);
10312}
10313}else{
10314if(arguments.length==3){
10315this.calculateDisplayDate(arguments[0],arguments[1],arguments[2]);
10316this.calculateOffset();
10317this.calendarArea.innerHTML=this.writeCalendar(arguments[0],arguments[1],arguments[2]);
10318}else{
10319this.calculateDisplayDate();
10320this.calculateOffset();
10321this.calendarArea.innerHTML=this.writeCalendar();
10322}
10323}
10324},setTodaysDate:function(){
10325this.todaysDate=new $.dr.date(new Date(),this.dateFormat);
10326this.todaysMonth=this.todaysDate.getMonth()+1;
10327this.todaysDay=this.todaysDate.getDate();
10328this.todaysYear=this.todaysDate.getFullYear();
10329},setInputFieldDate:function(){
10330this.hasInputFieldValue=false;
10331if(this.inputObj!==null){
10332if(this.inputObj.value!==""){
10333var date=new $.dr.date(this.inputObj.value,this.dateFormat);
10334if(date.isValid()){
10335this.inputFieldMonth=date.getMonth()+1;
10336this.inputFieldDay=date.getDate();
10337this.inputFieldYear=date.getFullYear();
10338this.hasInputFieldValue=true;
10339}
10340}
10341}
10342},loadPreviousMonth:function(){
10343var _8be=this.displayMonth-1;
10344var year=this.displayYear;
10345if(_8be<1){
10346_8be=12;
10347year--;
10348}
10349this.refreshCalendar(year,_8be);
10350},loadNextMonth:function(){
10351var _8c0=this.displayMonth+1;
10352var year=this.displayYear;
10353if(_8c0>12){
10354_8c0=1;
10355year++;
10356}
10357this.refreshCalendar(year,_8c0);
10358},calculateDisplayDate:function(){
10359if(arguments.length>0){
10360var day=1;
10361if(arguments.length==3){
10362day=arguments[2];
10363}
10364var date=$.dr.date.getISODate(arguments[0],arguments[1],day);
10365this.displayMonth=date.getMonth()+1;
10366this.displayDay=date.getDate();
10367this.displayYear=date.getFullYear();
10368}else{
10369if(this.inputObj){
10370if(this.inputObj.value!==""){
10371var date=new $.dr.date(this.inputObj.value,this.dateFormat);
10372if(date.isValid()){
10373var _8c4=date.getMonth()+1;
10374this.displayMonth=date.getMonth()+1;
10375this.displayDay=date.getDate();
10376this.displayYear=date.getFullYear();
10377}
10378}else{
10379this.displayMonth=this.todaysMonth;
10380this.displayDay=this.todaysDay;
10381this.displayYear=this.todaysYear;
10382}
10383}else{
10384this.displayMonth=this.todaysMonth;
10385this.displayDay=this.todaysDay;
10386this.displayYear=this.todaysYear;
10387}
10388}
10389if($.dr.date.isLeapYear(this.displayYear)){
10390this.numDaysInMonth[2]=29;
10391}
10392},calculateOffset:function(){
10393var date=$.dr.date.getISODate(this.displayYear,this.displayMonth,1);
10394var _8c6=date.getDay();
10395this.displayDateOffset=(_8c6>=_87f)?_8c6-_87f:7-_87f+_8c6;
10396},refreshMenu:function(){
10397if(this.menuYearSelect!==null){
10398if(this.menuYearSelect.options.length==0){
10399this.menuBuilt=false;
10400}else{
10401var _8c7=parseInt(this.menuYearSelect.options[0].value,10);
10402var _8c8=parseInt(this.menuYearSelect.options[this.menuYearSelect.options.length-1].value,10);
10403if((this.displayYear<=_8c7)||(this.displayYear>=_8c8)){
10404this.menuBuilt=false;
10405}
10406}
10407}
10408if(!this.menuBuilt){
10409var _8c9="";
10410var _8ca;
10411_8c9+="<div class=\"monthYearPicker\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" ><tr>\n";
10412_8c9+="<td class=\"previousArrow\"><a href=\"#\" onclick=\""+this.pickerObjId+".loadPreviousMonth(); return false;\"><span>&lt;&lt;</span></a></td>";
10413var _8cb=this.pickerObjId+".refreshCalendar("+this.pickerObjId+".displayYear, this.options[this.selectedIndex].value-0)";
10414var _8cc=this.pickerObjId+".refreshCalendar(this.options[this.selectedIndex].value-0, "+this.pickerObjId+".displayMonth)";
10415_8c9+="<td class=\"monthTD\"><select name=\"cpMonth\" id=\""+this.inputId+"_monthControl\" onkeyup=\""+_8cb+"\" onchange=\""+_8cb+"\" >";
10416for(var _8cd=1;_8cd<=12;_8cd++){
10417_8ca=(_8cd==this.displayMonth)?"SELECTED":"";
10418_8c9+="<option value=\""+_8cd+"\" "+_8ca+">"+_882[_8cd-1]+"</option>";
10419}
10420_8c9+="</select></td>";
10421_8c9+="<td class=\"yearTD\"><select name=\"cpYear\" id=\""+this.inputId+"_yearControl\" onkeyup=\""+_8cc+"\" onchange=\""+_8cc+"\" >";
10422for(var _8ce=this.displayYear-_880.YEAR_SELECT_OFFSET;_8ce<=this.displayYear+_880.YEAR_SELECT_OFFSET;_8ce++){
10423_8ca=(_8ce==this.displayYear)?"selected":"";
10424_8c9+="<option value=\""+_8ce+"\" "+_8ca+">"+_8ce+"</option>";
10425}
10426_8c9+="</select></td><td class=\"nextArrow\" ><a href=\"#\" onclick=\""+this.pickerObjId+".loadNextMonth(); return false;\"><span>&gt;&gt;</span></a></td></tr>\n";
10427_8c9+="</table></div>\n";
10428this.menuArea.innerHTML=_8c9;
10429this.menuMonthSelect=getElem(this.inputId+"_monthControl");
10430this.menuYearSelect=getElem(this.inputId+"_yearControl");
10431this.menuBuilt=true;
10432}else{
10433DR.Utils.FormUtils.setValue(this.menuMonthSelect,{},this.displayMonth);
10434DR.Utils.FormUtils.setValue(this.menuYearSelect,{},this.displayYear);
10435}
10436},writeCalendar:function(){
10437this.refreshMenu();
10438var _8cf="";
10439_8cf+="<div class=\"datesArea\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"calendar\"><thead><tr>";
10440var _8d0=this.displayMonth;
10441var _8d1=1;
10442var _8d2=this.displayYear;
10443if(this.displayDateOffset>0){
10444_8d0--;
10445if(_8d0<1){
10446_8d0=12;
10447_8d2--;
10448}
10449_8d1=(this.numDaysInMonth[_8d0]-this.displayDateOffset)+1;
10450}
10451for(var j=0;j<7;j++){
10452_8cf+="<th class=\"dayOfWeekName\" width=\"14%\">"+DAY_HEADERS[(_87f+j)%7]+"</th>\n";
10453}
10454_8cf+="</thead><tbody>";
10455for(var row=1;row<=6;row++){
10456_8cf+="<tr>\n";
10457for(var col=1;col<=7;col++){
10458var _8d6=$.dr.date.getISODate(_8d2,_8d0,_8d1);
10459var _8d7=this.setDateClassName(_8d6);
10460if((row>4)&&(col==1)&&(_8d7==_880.CSS_CLASS_OTHER_MONTH_DATE)){
10461_8cf+="<td colspan=\"7\">&nbsp;</td>";
10462break;
10463}else{
10464_8cf+="<td class=\""+_880.CSS_CLASS_DATE+" "+_8d7+"\"><a href=\"#\" onclick=\""+this.pickerObjId+".updateDateInput(event, "+_8d2+", "+_8d0+", "+_8d1+"); return false;\" class=\""+_8d7+"\">"+_8d1+"</a></td>\n";
10465}
10466_8d1++;
10467if(_8d1>this.numDaysInMonth[_8d0]){
10468_8d1=1;
10469_8d0++;
10470}
10471if(_8d0>12){
10472_8d0=1;
10473_8d2++;
10474}
10475}
10476_8cf+="</tr>";
10477}
10478_8cf+="</tbody></table></div>\n";
10479if(!this.currentMonthHasTodaysDate){
10480_8cf+="<div class=\"todayLink\"><a href=\"#\" id=\""+this.inputId+"_todayLink\" onclick=\""+this.pickerObjId+".refreshCalendar("+this.todaysYear+", "+this.todaysMonth+", "+this.todaysDay+"); return false;\">"+TODAY+"</a></div>";
10481}
10482this.currentMonthHasTodaysDate=false;
10483return _8cf;
10484},setDateClassName:function(date){
10485var _8d9=date.getMonth()+1;
10486var year=date.getFullYear();
10487var day=date.getDate();
10488var _8dc="";
10489if(this.hasInputFieldValue&&_8d9==this.inputFieldMonth&&year==this.inputFieldYear&&day==this.inputFieldDay){
10490_8dc=_880.CSS_CLASS_DISPLAY_DATE_CLASS+" ";
10491}
10492if(_8d9==this.todaysMonth&&year==this.todaysYear&&day==this.todaysDay){
10493this.currentMonthHasTodaysDate=true;
10494_8dc+=_880.CSS_CLASS_TODAYS_DATE;
10495}else{
10496if(_8d9==this.displayMonth&&year==this.displayYear){
10497_8dc+=_880.CSS_CLASS_DISPLAY_MONTH_DATE;
10498}else{
10499_8dc+=_880.CSS_CLASS_OTHER_MONTH_DATE;
10500}
10501}
10502return _8dc;
10503}};
10504$.namespace("dr",{datePicker:function(){
10505return this.each(function(_8dd){
10506if(this.type=="text"){
10507var _8de=$(this);
10508if(!_8de.hasClass("datePicker_inited")){
10509_8de.addClass("datePicker");
10510var _8df=_8de.attr("data-format");
10511var jRef="#"+this.id;
10512if(!this.id){
10513var id="datePicker_count_"+_8dd+"_rndNbr_"+new Date().getTime();
10514_8de.addClass(id);
10515jRef="."+id;
10516_8de.attr("datePickerId",id);
10517}
10518var _8e2="jQuery(jQuery('"+jRef+"').get(0)).data('datePicker')";
10519var _8e3=$.dr.utils.getLabel(this);
10520if(_8e3==this.name){
10521_8e3=null;
10522}
10523_8de.data("datePicker",new _886(_8e2,this,_8e3,_8df));
10524_8de.addClass("datePicker_inited");
10525}
10526}
10527});
10528}});
10529var _8e4=function(_8e5){
10530_8e5.filter("input[type=text].datePicker").dr.datePicker();
10531};
10532$.dr.addPlugin("form",_8e4);
10533$.dr.datePicker={setDefaults:function(_8e6){
10534if(_8e6){
10535$.extend(_880,_8e6);
10536}
10537}};
10538})(jQuery);
10539(function($){
10540var _8e8={VALIDATE_HIDDEN_FIELDS:false,VALIDATION_ENABLED:true,SHOW_INLINE_ERRORS:true,SHOW_INLINE_ERRORS_ONBLUR:false,INLINE_ERROR_POSITION:"above",INLINE_ERROR_CLASS:"error",INPUT_ERROR_CLASS:"inputError",GROUP_BOX_CLASS:"errorMessage",GROUP_BOX_POSITION:"above",GROUP_BOX_ENABLED:true,GROUP_BOX_POSITION_ABOVE_FORM:false,FOCUS_FIRST_ERROR:true,NUMBER_LOCALE:"en_US",CURRENCY:"$",TRUNCATE_ONPASTE:false};
10541var _8e9={EXPAND_BUTTON_TOOL_TIP:"Click here to expand the editing area",COLLAPSE_BUTTON_TOOL_TIP:"Click here to return the editing area to its normal size",GROUP_ERROR_BOX_TITLE:"The following errors occurred:",GROUP_ERROR_BOX_ITEM_TITLE:"Click to jump to field",REQUIRED:"{LABEL} is required.",X_CHARACTERS_REMAINING:"{0} characters remaining",X_OF_Y_CHARACTERS_REMAINING:"{0} of {1} characters remaining",X_OVER_THE_LIMIT:"{0} characters over maximum limit of {1}.",MAX_CHARS:"The field length limit ({LIMIT}) for this field has been reached. The data has been shortened to fit within the limit.",CHAR_LENGTH:"{LABEL} is over the {MAX_CHARS} maximum character limit.",RANGE:"{LABEL} is out of range. Valid range is {MIN} to {MAX}.",RANGE_MIN:"{LABEL} is less than the minimum value of {MIN}.",RANGE_MAX:"{LABEL} is greater than the maximum value of {MAX}.",EMAIL:"{LABEL} is not a valid email address.",URL:"{LABEL} is not a valid url. Valid format is {EXAMPLE}.",PHONE_NUMBER:"{LABEL} is not a valid phone number. Valid format is {EXAMPLE}.",ALPHA:"{LABEL} is not alphabetic.",ALPHA_NUMERIC:"{LABEL} is not alpha numeric.",DECIMAL:"{LABEL} is not a valid decimal number. Valid format is ({EXAMPLE}).",INTEGER:"{LABEL} is not a valid integer.",NUMERIC:"{LABEL} is not a valid number.",CURRENCY:"{LABEL} is not a valid currency amount. Valid format is ({EXAMPLE})."};
10542var _8ea=function(val,_8ec,msg,_8ee,_8ef){
10543_8ee=(_8ee)?_8ee:"";
10544_8ef=(_8ef)?_8ef:"";
10545return msg.replace(/\{LABEL\}/g,_8ec).replace(/\{VALUE\}/g,val).replace(/\{FORMAT\}/g,_8ee).replace(/\{EXAMPLE\}/g,_8ef);
10546};
10547var _8f0={email:[_8e9.EMAIL,"",function(val){
10548return /^[a-zA-Z0-9\-_.]+[a-zA-Z0-9\-_]@[a-zA-Z0-9][a-zA-Z0-9\-.]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$/.test(val);
10549}],url:[_8e9.URL,"http://website.com",function(val,_8f3){
10550if(_8f3=="website"){
10551return /^(http:|https:)(\/){2}?[^\/]\S+\.\S+/.test(val);
10552}else{
10553return /^[a-zA-Z0-9\-.+]*:(\/){2}[\S]?/.test(val);
10554}
10555}],phonenumber:[_8e9.PHONE_NUMBER,"###-###-####",function(val,_8f5){
10556if(!_8f5){
10557return /^(\+)?(\d{1,3})?(([0-9]{1})?([- .(]|[ (]{1,2})?([0-9a-zA-Z]{3})([- .)]|[ )]{1,2})?[0-9a-zA-Z]{3}([- .]{1})[0-9a-zA-Z]{4})?(( )?([#][0-9a-zA-Z]{1,10}))?$/.test(val);
10558}else{
10559if(_8f5=="strict"){
10560return /^[1-9]\d{2}-\d{3}-\d{4}$/.test(val);
10561}else{
10562if(_8f5=="integer"){
10563return /^\d{10}$/.test(val);
10564}
10565}
10566}
10567}],alpha:[_8e9.ALPHA,"",function(val){
10568return /^[a-zA-Z]+$/.test(val);
10569}],alphanumeric:[_8e9.ALPHA_NUMERIC,"",function(val){
10570return /^[0-9A-Za-z-_ @#]+$/.test(val);
10571}],currency:[_8e9.CURRENCY,"#,###.##",function(val,_8f9,obj){
10572if(val===null||val===undefined){
10573return false;
10574}
10575if(!_8f9){
10576_8f9=_8e8.CURRENCY;
10577}
10578var num=val.replace(_8f9,"");
10579if(_8f9==" CAD"){
10580num=num.replace("C$","");
10581num=num.replace("$","");
10582}
10583num=$.dr.utils.normalizeNumber(num,$.dr.utils.getNumberFormat(obj));
10584return /^\d*[0-9](\.)?(\d){1,2}?$/.test(num);
10585}],decimal:[_8e9.DECIMAL,"###,###.##",function(val,_8fd,obj){
10586if(val===null||val===undefined){
10587return false;
10588}
10589var num=$.dr.utils.normalizeNumber(val,$.dr.utils.getNumberFormat(obj));
10590return /^\d*[0-9](\.\d*[0-9])?$/.test(num);
10591}],integer:[_8e9.INTEGER,"",function(val){
10592return /^[+-]?[0-9]+$/.test(val);
10593}],numeric:[_8e9.NUMERIC,"",function(val,_902,obj){
10594if(val===null||val===undefined){
10595return false;
10596}
10597return !isNaN(Number($.dr.utils.normalizeNumber(val,$.dr.utils.getNumberFormat(obj))));
10598}]};
10599var _904={dataType:function(obj,val,_907,_908){
10600var _909=true;
10601var _90a=obj.getAttribute("data-type");
10602var _90b=obj.getAttribute("data-example");
10603var _90c=obj.getAttribute("data-format");
10604var msg="";
10605var jObj=$(obj);
10606if(_90a!==null){
10607_90a=_90a.toLowerCase();
10608var _90f=_8f0[_90a];
10609if(_90f===undefined){
10610if(window.console){
10611console.log("The validator for data-type=\""+_90a+"\" for field with name \""+obj.name+"\" does not exist.");
10612}
10613return true;
10614}
10615if(val.isBlank()){
10616$(obj.form).dr.form.removeError(obj,_90a);
10617}else{
10618var _910=_90f[0];
10619var _911=(_90b!==null)?_90b:_90f[1];
10620if(!$.dr.form.isDataValidForType(_90a,val,_90c,obj)){
10621msg=_910;
10622}else{
10623var min=obj.getAttribute("data-min");
10624var max=obj.getAttribute("data-max");
10625var _914=$.dr.form.isDataValidForType(_90a,min,_90c,obj);
10626var _915=$.dr.form.isDataValidForType(_90a,max,_90c,obj);
10627if(min!==null||max!==null){
10628if((min!==null&&!_914)||(max!==null&&!_915)){
10629_909=false;
10630msg="The value is correct for {LABEL}, but the specified range options are not of the correct data type.";
10631}else{
10632var _916,upperBound,value;
10633if(_90a=="date"&&typeof $.dr.date=="function"){
10634value=new $.dr.date(val,_90c).getTime();
10635_916=(min!==null)?new $.dr.date(min,_90c).getTime():null;
10636upperBound=(max!==null)?new $.dr.date(max,_90c).getTime():null;
10637}else{
10638if(_90a=="time12hr"||_90a=="time24hr"){
10639value=$.dr.date.getDateFromTime(val);
10640_916=(min!==null)?$.dr.date.getDateFromTime(min):null;
10641upperBound=(max!==null)?$.dr.date.getDateFromTime(max):null;
10642}else{
10643var _917=$.dr.utils.getNumberFormat(obj);
10644value=$.dr.utils.convertCurrencyToNumber(obj,val,_90c,_917);
10645_916=$.dr.utils.convertCurrencyToNumber(obj,min,_90c,_917);
10646upperBound=$.dr.utils.convertCurrencyToNumber(obj,max,_90c,_917);
10647}
10648}
10649if(!isNaN(value)){
10650if(min!==null&&max!==null){
10651if(!isNaN(_916)&&!isNaN(upperBound)){
10652if(!(value>=_916&&value<=upperBound)){
10653msg=_8e9.RANGE.replace(/\{MAX\}/g,max).replace(/\{MIN\}/g,min);
10654}
10655}
10656}else{
10657if(max!==null&&!isNaN(upperBound)){
10658if(value>upperBound){
10659msg=_8e9.RANGE_MAX.replace(/\{MAX\}/g,max);
10660}
10661}else{
10662if(min!==null&&!isNaN(_916)){
10663if(value<_916){
10664msg=_8e9.RANGE_MIN.replace(/\{MIN\}/g,min);
10665}
10666}
10667}
10668}
10669}
10670}
10671}
10672}
10673if(msg!==""&&_908){
10674_909=false;
10675var _918=_8ea(val,jObj.data("label"),msg,_90c,_911);
10676$(obj.form).dr.form.throwError(obj,_90a,_918,_907);
10677}else{
10678$(obj.form).dr.form.removeError(obj,_90a);
10679}
10680}
10681}
10682return _909;
10683},required:function(obj,val,_91b,_91c){
10684var _91d=true;
10685var _91e=(obj.getAttribute("data-required")=="true")?true:false;
10686if(_91e){
10687switch(obj.type){
10688case "select-one":
10689case "text":
10690case "password":
10691case "textarea":
10692_91d=!val.isBlank();
10693break;
10694case "checkbox":
10695case "radio":
10696var _91f=$(obj.form[obj.name]);
10697_91d=(_91f.filter(":checked").length>0)?true:false;
10698obj=_91f[0];
10699if(!_91d){
10700var _920=$(obj).parents("dl:first").find("dt:first label").text();
10701$(obj).data("label",(_920.length>0)?_920.replace(":",""):"A selection");
10702}
10703break;
10704case "select-multiple":
10705_91d=(val!==null)?!(val+"").isBlank():false;
10706break;
10707}
10708if(!_91d&&_91c){
10709var _921=_8ea(val,$(obj).data("label"),_8e9.REQUIRED);
10710$(obj.form).dr.form.throwError(obj,"required",_921,_91b);
10711}else{
10712$(obj.form).dr.form.removeError(obj,"required");
10713}
10714}
10715return _91d;
10716},customValidator:function(obj,val,_924,_925){
10717var _926=true;
10718var _927=obj.getAttribute("data-custom-validator");
10719var _928=obj.getAttribute("data-custom-validator-message");
10720if(_927!==null){
10721var _929=eval(_927);
10722if(!_929&&_925){
10723_926=false;
10724if(_928!==null){
10725var _92a=_928;
10726$(obj.form).dr.form.throwError(obj,"custom",_92a,_924);
10727}
10728}else{
10729$(obj.form).dr.form.removeError(obj,"custom");
10730}
10731}
10732return _926;
10733},maxLength:function(obj,val,_92d,_92e){
10734var _92f=true;
10735var jObj=$(obj);
10736var _931=jObj.attr("data-maxlength");
10737if(_931!==undefined){
10738if(!isNaN(_931)&&_92e){
10739if(obj.type=="textarea"){
10740var _932=(jObj.attr("data-force-truncate")=="true")?true:false;
10741_92f=$.dr.utils.validateTextAreaLength(obj,_931,_932);
10742}else{
10743var _933=DR.Utils.FormUtils.getUTF8Bytes(val).byteCount;
10744_92f=(_933<=_931)?true:false;
10745}
10746}
10747if(!_92f){
10748var _934=_8e9.CHAR_LENGTH.replace(/\{LABEL\}/g,$(obj).data("label")).replace(/\{MAX_CHARS\}/g,_931);
10749$(obj.form).dr.form.throwError(obj,"maxlength",_934,_92d);
10750}else{
10751$(obj.form).dr.form.removeError(obj,"maxlength");
10752}
10753}
10754return _92f;
10755}};
10756$.dr.form.isDataValidForType=function(_935,val,_937,obj){
10757var _939=_8f0[_935.toLowerCase()];
10758if(_935===undefined){
10759return undefined;
10760}else{
10761return _939[2].call(this,val,_937,obj);
10762}
10763};
10764$.dr.utils.getNumberFormat=function(obj){
10765var _93b=$(obj).attr("data-number-locale");
10766return (_93b!==null)?_93b:_8e8.NUMBER_LOCALE;
10767};
10768var _93c=["IL","CN","JP","MY","KR","KP","TH","TW","PH","IN","PK","SG","HK","MX","PR","NG","BW","ZW"];
10769$.dr.utils.convertCurrencyToNumber=function(obj,val,_93f,_940){
10770if(val===null||val===undefined){
10771return false;
10772}
10773if(!_93f){
10774_93f=_8e8.CURRENCY;
10775}
10776var num=val.replace(_93f,"");
10777if(_93f==" CAD"){
10778num=num.replace("C$","");
10779num=num.replace("$","");
10780}
10781num=Number($.dr.utils.normalizeNumber(num,_940));
10782return num;
10783};
10784$.dr.utils.normalizeNumber=function(num,_943){
10785if(num===null||num===undefined){
10786return null;
10787}
10788_943=(_943)?_943:_8e8.NUMBER_LOCALE;
10789var arr=_943.split("_");
10790if(arr.length!=2){
10791_943="en_US";
10792arr=["en","US"];
10793}
10794var _945=arr[0].toLowerCase();
10795var _946=arr[1].toUpperCase();
10796var _947=(_945=="en")?true:false;
10797for(var i=0;i<_93c.length;i++){
10798if(_93c[i]==_946){
10799_947=true;
10800break;
10801}
10802}
10803var _949=num.indexOf(",");
10804var _94a=num.indexOf(".");
10805if(_947){
10806if(_94a>=_949||_94a==-1||_949==-1){
10807num=num.replace(/,/g,"");
10808}
10809}else{
10810if(_949>=_94a||_94a==-1||_949==-1){
10811num=num.replace(/\./g,"").replace(/,/g,".");
10812var _94b=_943.split(".");
10813if(_94b.length==2){
10814num=_94b[0].replace(/ /g,"");
10815}else{
10816num=num.replace(/ /g,"");
10817}
10818}
10819}
10820return num;
10821};
10822$.dr.form.addValidators=function(_94c){
10823if(typeof method=="object"){
10824$.extend(_904,_94c);
10825}
10826};
10827$.dr.form.addDataTypeValidator=function(_94d){
10828if(typeof _94d=="object"){
10829$.extend(_8f0,_94d);
10830}
10831};
10832$.dr.form.validateField=function(obj,_94f){
10833try{
10834var _950=($(obj).data("validationEnabled")===false)?false:true;
10835var jObj=$(obj);
10836var val=jObj.val();
10837var _953=jObj.data("label");
10838if(!_953){
10839_953=$.dr.utils.getLabel(obj);
10840jObj.data("label",_953);
10841}
10842var _954=true;
10843var _955=true;
10844var _956=jObj.attr("data-conditional-validation");
10845if(_956||!$(obj.form).dr.form.isValidationEnabled()){
10846if(!eval(_956)){
10847_955=false;
10848$(obj.form).dr.form.removeErrors(obj);
10849}
10850}
10851if(_955){
10852for(var _957 in _904){
10853var _958=_904[_957].call(this,obj,val,_94f,_950);
10854if(!_958){
10855_954=false;
10856}
10857}
10858}
10859return _954;
10860}
10861catch(e){
10862$.dr.utils.logError("Javascript exception when validating field (id="+obj.id+")",e);
10863}
10864};
10865var _959=function(){
10866$.dr.form.validateField(this,true);
10867};
10868var _95a=($.browser.msie)?"paste":"input";
10869var _95b=function(_95c){
10870if(_95c.length>0){
10871var _95d=$(this.formObj).data("formValidator");
10872if(_95d){
10873var _95e=_95c.filter(":input:not(:button)").filter("[data-maxlength], [data-required], [data-type], [data-custom-validator]");
10874if(_95e.length>0){
10875_95d.fieldsWithValidation=_95e;
10876_95d.options.validationEnabled=true;
10877_95e.filter(":not([id])").each(function(){
10878$(this).attr("id","rndID_"+new Date().getTime());
10879}).end().filter("input[type=text],input[type=password], select, textarea").blur(_959).change(_959).filter("*[data-maxlength]").keyup(_959).bind(_95a,_959).end().end().filter(":radio, :checkbox").click(_959).end();
10880if($.browser.mozilla){
10881_95e.filter("input[type=file]").bind("change",_959);
10882}
10883}
10884}
10885}
10886};
10887$.dr.addPlugin("form",_95b);
10888var _95f=function(_960,_961){
10889this.formObj=_960;
10890this.options=_961;
10891this.init();
10892};
10893_95f.prototype={init:function(){
10894this.validationErrors=[];
10895this.fieldsWithValidation=null;
10896this.errorGroupBoxOpen=false;
10897this.validationErrors=[];
10898},validate:function(){
10899try{
10900var _962=this.fieldsWithValidation;
10901if(_962===null){
10902return true;
10903}
10904if(!this.options.VALIDATE_HIDDEN_FIELDS){
10905if(this.validationErrors.length>0){
10906var _963=this;
10907_962.filter(":hidden").each(function(){
10908_963.removeErrors(this);
10909});
10910}
10911_962=_962.filter(":visible");
10912}
10913_962.each(function(){
10914$.dr.form.validateField(this,false);
10915});
10916if(this.validationErrors.length>0){
10917this.showValidationErrors(true);
10918return false;
10919}else{
10920this.hideErrorGroupBox();
10921return true;
10922}
10923}
10924catch(e){
10925$.dr.utils.logError("Error when validating form.",e);
10926}
10927},showErrorGroupBox:function(h){
10928var _965;
10929if(this.options.GROUP_BOX_POSITION_ABOVE_FORM){
10930_965=document.getElementById(this.formObj._formName+"_groupErrorBox");
10931}else{
10932_965=document.getElementById("contentArea_groupErrorBox");
10933}
10934if(!_965){
10935var _966=this.formObj.parentNode;
10936var d=document.createElement("div");
10937d.className=this.options.GROUP_BOX_CLASS;
10938d.id=this.formObj._formName+"_groupErrorBox";
10939if(this.options.GROUP_BOX_POSITION=="above"){
10940var f=this.formObj;
10941_966.insertBefore(d,f);
10942}else{
10943d.style.marginTop="15px";
10944_966.appendChild(d,this);
10945}
10946_965=d;
10947}
10948var s="<div style=\"margin-bottom:10px;\"><strong>"+_8e9.GROUP_ERROR_BOX_TITLE+"</strong></div><ul>";
10949s+=h;
10950s+="</ul>";
10951_965.innerHTML=s;
10952_965.style.display="block";
10953this.errorGroupBoxOpen=true;
10954},hideErrorGroupBox:function(){
10955var _96a=document.getElementById("contentArea_groupErrorBox");
10956if(!_96a||this.options.GROUP_BOX_POSITION_ABOVE_FORM){
10957_96a=document.getElementById(this.formObj._formName+"_groupErrorBox");
10958}
10959if(_96a){
10960_96a.style.display="none";
10961this.errorGroupBoxOpen=false;
10962}
10963},hideError:function(fObj,_96c){
10964var _96d=document.getElementById(fObj.id+"_"+_96c+"_error");
10965var _96e=document.getElementById(fObj.id+"_"+_96c+"_group_error");
10966var _96f;
10967if(_96d){
10968_96f=_96d.parentNode;
10969_96f.removeChild(_96d);
10970_96d=null;
10971_96f=null;
10972}
10973if(_96e){
10974_96f=_96e.parentNode;
10975_96f.removeChild(_96e);
10976_96e=null;
10977_96f=null;
10978}
10979if(this.validationErrors.length===0){
10980this.hideErrorGroupBox();
10981}else{
10982if(this.errorGroupBoxOpen){
10983this.showValidationErrors(false);
10984}
10985}
10986if(this.checkErrorExists(fObj)==-1){
10987$(fObj).removeClass(this.options.INPUT_ERROR_CLASS);
10988}
10989},displayInlineError:function(fObj,_971,_972,_973){
10990if((_973&&this.options.SHOW_INLINE_ERRORS_ONBLUR)||(!_973)){
10991var _974=document.getElementById(fObj.id+"_"+_971+"_error");
10992if(!_974){
10993var _975=fObj.parentNode;
10994var a=_975.childNodes;
10995var _977=false;
10996for(var i=0;i<a.length;i++){
10997if(a[i].className=="error"){
10998_977=true;
10999a[i].style.display="none";
11000}
11001}
11002var e=document.createElement("div");
11003e.className=this.options.INLINE_ERROR_CLASS;
11004e.innerHTML=_972;
11005e.id=fObj.id+"_"+_971+"_error";
11006if(this.options.INLINE_ERROR_POSITION=="above"){
11007var o=document.getElementById(fObj.id);
11008_975.insertBefore(e,o);
11009}else{
11010_975.appendChild(e,fObj);
11011}
11012}
11013}
11014if(!($.browser.safari&&fObj.type=="file")&&fObj.type!="radio"&&fObj.type!="checkbox"){
11015$(fObj).addClass(this.options.INPUT_ERROR_CLASS);
11016}
11017},showValidationErrors:function(_97b){
11018var h="";
11019var a=this.validationErrors;
11020var _97e=false;
11021for(var i=0;i<a.length;i++){
11022var _980=false;
11023var _981=a[i].errMsg;
11024var fObj=a[i].obj;
11025var type=fObj.type;
11026var _984=a[i].errType;
11027if(this.options.SHOW_INLINE_ERRORS){
11028this.displayInlineError(fObj,_984,_981,false);
11029}
11030if(this.options.FOCUS_FIRST_ERROR){
11031if(DR.Utils.FormUtils.checkAllowFocus(fObj)){
11032if(!_97e&&_97b){
11033var e=document.getElementById(fObj.id+"_"+_984+"_error");
11034if(e){
11035e.scrollIntoView();
11036}
11037fObj.focus();
11038_97e=true;
11039}
11040_980=true;
11041}
11042}
11043var _986=_981;
11044if(_980){
11045_986="<a href=\"#\" title=\""+_8e9.GROUP_ERROR_BOX_ITEM_TITLE+"\" onclick=\"document.getElementById('"+fObj.id+"_"+_984+"_error').scrollIntoView();document.getElementById('"+fObj.id+"').focus();return false;\" >"+_981+"</a>";
11046}
11047if(this.options.GROUP_BOX_ENABLED){
11048h+="<li id=\""+fObj.id+"_"+_984+"_group_error\" >"+_986+"</li>";
11049}
11050fObj=null;
11051}
11052if(this.options.GROUP_BOX_ENABLED){
11053this.showErrorGroupBox(h);
11054}
11055},checkErrorExists:function(fObj,_988){
11056var _989=-1;
11057var a=this.validationErrors;
11058for(var i=0;i<a.length;i++){
11059if(a[i].obj.id==fObj.id&&(a[i].errType==_988||_988===undefined)){
11060_989=i;
11061break;
11062}
11063}
11064return _989;
11065},throwError:function(fObj,_98d,_98e,_98f){
11066var _990=this.checkErrorExists(fObj,_98d);
11067if(_990==-1){
11068var e={};
11069e.errMsg=_98e;
11070e.errType=_98d;
11071e.obj=fObj;
11072this.validationErrors.push(e);
11073if(_98f){
11074this.displayInlineError(fObj,_98d,_98e,_98f);
11075}
11076e=null;
11077}
11078return _990;
11079},removeError:function(fObj,_993){
11080var _994=this.checkErrorExists(fObj,_993);
11081if(_994!=-1){
11082this.validationErrors.splice(_994,1);
11083this.hideError(fObj,_993);
11084}
11085},removeErrors:function(fObj){
11086var a=this.validationErrors;
11087for(var i=0;i<a.length;i++){
11088if(a[i].obj.id==fObj.id){
11089var _998=a[i].errType;
11090this.validationErrors.splice(i,1);
11091this.hideError(fObj,_998);
11092}
11093}
11094}};
11095var _999=function(evt){
11096var opts=$.extend(true,{},_8e8);
11097var _99c=$(this).data("dataOptions");
11098if(_99c){
11099$.extend(true,opts,_99c);
11100}
11101$(this).data("formValidator",new _95f(this,opts));
11102};
11103$("form").live("beforeIndexFields",_999);
11104function getValidatorObj(_99d){
11105if(_99d.length>0){
11106return $(_99d[0]).data("formValidator");
11107}
11108}
11109$.namespace("dr.form",{validate:function(){
11110return getValidatorObj(this).validate();
11111},enableValidation:function(flag){
11112var v=getValidatorObj(this);
11113v.options.validationEnabled=flag;
11114v.validate();
11115},isValidationEnabled:function(){
11116return getValidatorObj(this).options.validationEnabled;
11117},throwError:function(obj,_9a1,_9a2,_9a3){
11118getValidatorObj(this).throwError(obj,_9a1,_9a2,_9a3);
11119},removeError:function(obj,_9a5){
11120getValidatorObj(this).removeError(obj,_9a5);
11121},removeErrors:function(obj){
11122getValidatorObj(this).removeErrors(obj);
11123}});
11124$.namespace("dr.form.field",{enableValidation:function(flag){
11125flag=(!flag)?false:true;
11126return this.each(function(){
11127$(this).data("validationEnabled",flag);
11128$.dr.form.validateField(this,flag);
11129});
11130}});
11131var _9a8=function(_9a9,_9aa,_9ab){
11132var _9ac=(_9a9.hasClass("largeHeight"))?"large":(_9a9.hasClass("medium"))?"medium":"small";
11133var _9ad=_9ac;
11134var _9ae=_9a9.data("originalHeight");
11135if(!_9ae){
11136var _9af=_9a9.attr("data-default-height");
11137if(_9af!==undefined){
11138_9ae=_9af.replace("Height","");
11139}else{
11140_9ae=_9ac;
11141}
11142_9a9.data("originalHeight",_9ae);
11143}
11144if(_9ab){
11145_9ad=(_9ac=="large")?_9ae:"large";
11146_9a9.addClass(_9ad+"Height").removeClass(_9ac+"Height");
11147}
11148var _9b0=_8e9.COLLAPSE_BUTTON_TOOL_TIP,text=$.dr.strings.COLLAPSE,linkClass="collapse";
11149if(_9ad!="large"){
11150_9b0=_8e9.EXPAND_BUTTON_TOOL_TIP;
11151text=$.dr.strings.EXPAND;
11152linkClass="expand";
11153}
11154_9aa.text(text).attr({"title":_9b0,"class":linkClass});
11155if(_9a9.attr("data-persist-state")=="true"&&$.dr.userdata!==null){
11156var _9b1=_9a9.attr("data-persist-page-name");
11157if(_9b1===undefined&&pageInfo){
11158_9b1=pageInfo.pageName;
11159}
11160$.dr.userdata.save(_9b1,_9a9.id+"Height",_9ad,"String");
11161}
11162};
11163$.dr.utils.validateTextAreaLength=function(obj,_9b3,_9b4){
11164if(obj){
11165var _9b5=(_9b4===true)?true:_8e8.TRUNCATE_ONPASTE;
11166var _9b6=(obj.getAttribute("alertOpen")=="true")?true:false;
11167var c=document.getElementById(obj.id+"_counter");
11168if(!c){
11169return;
11170}
11171var v=obj.value;
11172var _9b9=v.length;
11173if(_9b5){
11174if(v.length>_9b3){
11175v=v.substr(0,_9b3);
11176}
11177}
11178var _9ba=DR.Utils.FormUtils.getUTF8Bytes(v).byteCount;
11179var _9bb;
11180if(_9ba===0){
11181_9bb=_8e9.X_CHARACTERS_REMAINING.replace("{0}",_9b3);
11182}else{
11183var _9bc=_9b3-_9ba;
11184if(_9b5){
11185_9bc=Math.max(_9bc,0);
11186}
11187if(_9ba>_9b3&&!_9b5){
11188_9bc=_9bc*(-1);
11189_9bb=_8e9.X_OVER_THE_LIMIT.replace("{0}",_9bc);
11190_9bb=_9bb.replace("{1}",_9b3);
11191}else{
11192_9bb=_8e9.X_OF_Y_CHARACTERS_REMAINING.replace("{0}",_9bc);
11193_9bb=_9bb.replace("{1}",_9b3);
11194}
11195}
11196c.innerHTML=_9bb;
11197var _9bd=true;
11198if(_9ba>_9b3){
11199_9bd=false;
11200}
11201if(_9ba>=_9b3){
11202if(_9b5){
11203_9bd=true;
11204var _9be=v.makeUT8CharsFitLength(_9ba,_9b3);
11205if(obj.value!=_9be){
11206obj.value=_9be;
11207}
11208if((_9b9>_9b3||_9ba>_9b3)&&!_9b6){
11209obj.setAttribute("alertOpen","true");
11210var _9bf=_8e9.MAX_CHARS.replace(/\{LIMIT\}/g,_9b3);
11211alert(_9bf);
11212}else{
11213obj.setAttribute("alertOpen","false");
11214}
11215}
11216$(obj).addClass(_8e8.INPUT_ERROR_CLASS);
11217$(c.parentNode).addClass("limit");
11218}else{
11219$(obj).removeClass(_8e8.INPUT_ERROR_CLASS);
11220$(c.parentNode).removeClass("limit");
11221obj.setAttribute("alertOpen","false");
11222}
11223return _9bd;
11224}
11225};
11226var _9c0=function(_9c1){
11227_9c1.filter("textarea:not(.wysiwyg, .basic_wysiwyg)").each(function(){
11228var obj=this;
11229var _9c3=$(this);
11230if(_9c3.data("textarea_inited")){
11231return;
11232}
11233var _9c4=false;
11234var _9c5=_9c3.attr("data-maxlength");
11235var _9c6=(_9c3.attr("data-expand-collapse")=="false")?false:true;
11236if($.browser.safari){
11237_9c6=false;
11238var _9c7=parseInt(document.defaultView.getComputedStyle(obj,"").getPropertyValue("width"),10);
11239if(_9c7>0){
11240obj.style.maxWidth=_9c7+"px";
11241}
11242}
11243if((_9c5!=="undefined"&&parseInt(_9c5,10)>0)||_9c6){
11244_9c4=true;
11245}
11246if(_9c4){
11247var _9c8=obj.className;
11248var gs=_9c8.match(/(gridSpan[\d]+(\s|$))/);
11249var _9ca=(gs)?gs[0]:"gridSpan11";
11250var _9cb=document.createElement("div");
11251_9cb.className=_9ca;
11252var _9cc=document.createElement("div");
11253_9cc.className="textareaInfo";
11254var _9cd="<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" style=\"width:100%;\" ><tr>";
11255if(_9c5!==undefined){
11256_9cd+="<td class=\"remaining\"><span id=\""+obj.id+"_counter\" >&nbsp;</span></td>";
11257}
11258if(_9c6){
11259if($.browser.safari){
11260obj.style.maxWidth=_9c3.width()+"px";
11261}else{
11262_9cd+="<td class=\"expandCollapseButton\"><a></a></td>";
11263}
11264}
11265_9cd+="</tr></table>";
11266_9cc.innerHTML=_9cd;
11267$("a",_9cc).click(function(){
11268_9a8(_9c3,$(this),true);
11269}).each(function(){
11270_9a8(_9c3,$(this),false);
11271});
11272_9cb.appendChild(_9cc);
11273var _9ce=obj.parentNode;
11274_9ce.insertBefore(_9cb,obj.nextSibling);
11275if(_9c5!==undefined){
11276var _9cf=(_9c3.attr("data-force-truncate")=="true")?true:false;
11277$.dr.utils.validateTextAreaLength(obj,_9c5,_9cf);
11278}
11279_9c3.data("textarea_inited","true");
11280}
11281});
11282};
11283$.dr.addPlugin("form",_9c0);
11284var _9d0=function(){
11285$.extend(_8e9,$.dr.form.getMessages());
11286};
11287var _9d1=function(){
11288$.extend(_8e8,$.dr.form.getDefaults());
11289};
11290$(document).bind("afterFormSetMessages",_9d0);
11291$(document).bind("afterFormSetDefaults",_9d1);
11292$.dr.addDomReadyEvent(_9d0,"early");
11293$.dr.addDomReadyEvent(_9d1,"early");
11294})(jQuery);
11295var Utils=DR.Utils;
11296Utils.Prompt=DR.Utils.prompt;
11297Utils.confirm=DR.Utils.confirm;
11298var submitActionForm=DR.Utils.FormUtils.submitActionForm;
11299var BrowserDetect=DR.Utils.BrowserDetect;
11300var FormUtils=DR.Utils.FormUtils;
11301var Cookie=DR.Utils.Cookie;
11302var PanelSet=DR.Widgets.PanelSet;
11303var Toggle=DR.Utils.Toggle;
11304var getElem=DR.Utils.getElem;
11305var ModalOverlay=DR.Widgets.ModalOverlay;
11306var InlineModalOverlay=DR.Widgets.InlineModalOverlay;
11307var iframeCallback=DR.Widgets.ModalOverlay.iframeCallback;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.