Remove demos that have moved to the demos repo.
[mkws-moved-to-github.git] / examples / htdocs / tpl_files / tpl.js
diff --git a/examples/htdocs/tpl_files/tpl.js b/examples/htdocs/tpl_files/tpl.js
deleted file mode 100644 (file)
index e8a069d..0000000
+++ /dev/null
@@ -1,508 +0,0 @@
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-if("undefined"==typeof YAHOO||!YAHOO)var YAHOO={};YAHOO.namespace=function(){var a=arguments,d=null,f,c,e;for(f=0;f<a.length;f+=1){e=(""+a[f]).split(".");d=YAHOO;for(c="YAHOO"==e[0]?1:0;c<e.length;c+=1)d[e[c]]=d[e[c]]||{},d=d[e[c]]}return d};YAHOO.log=function(a,d,f){var c=YAHOO.widget.Logger;return c&&c.log?c.log(a,d,f):!1};
-YAHOO.register=function(a,d,f){var c=YAHOO.env.modules,e,l,q;c[a]||(c[a]={versions:[],builds:[]});c=c[a];e=f.version;f=f.build;l=YAHOO.env.listeners;c.name=a;c.version=e;c.build=f;c.versions.push(e);c.builds.push(f);c.mainClass=d;for(q=0;q<l.length;q+=1)l[q](c);d?(d.VERSION=e,d.BUILD=f):YAHOO.log("mainClass is undefined for module "+a,"warn")};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(a){return YAHOO.env.modules[a]||null};
-YAHOO.env.ua=function(){var a={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:0},d=navigator.userAgent,f;/KHTML/.test(d)&&(a.webkit=1);if((f=d.match(/AppleWebKit\/([^\s]*)/))&&f[1]){a.webkit=parseFloat(f[1]);if(/ Mobile\//.test(d))a.mobile="Apple";else if(f=d.match(/NokiaN[^\/]*/))a.mobile=f[0];if(f=d.match(/AdobeAIR\/([^\s]*)/))a.air=f[0]}if(!a.webkit)if((f=d.match(/Opera[\s\/]([^\s]*)/))&&f[1]){if(a.opera=parseFloat(f[1]),f=d.match(/Opera Mini[^;]*/))a.mobile=f[0]}else if((f=d.match(/MSIE\s([^;]*)/))&&
-f[1])a.ie=parseFloat(f[1]);else if(f=d.match(/Gecko\/([^\s]*)/))if(a.gecko=1,(f=d.match(/rv:([^\s\)]*)/))&&f[1])a.gecko=parseFloat(f[1]);if((f=d.match(/Caja\/([^\s]*)/))&&f[1])a.caja=parseFloat(f[1]);return a}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var a=YAHOO_config.listener,d=YAHOO.env.listeners,f=!0,c;if(a){for(c=0;c<d.length;c+=1)if(d[c]==a){f=!1;break}f&&d.push(a)}}})();YAHOO.lang=YAHOO.lang||{};
-(function(){var a=YAHOO.lang,d=Object.prototype,f=["toString","valueOf"],c={isArray:function(a){return"[object Array]"===d.toString.apply(a)},isBoolean:function(a){return"boolean"===typeof a},isFunction:function(a){return"[object Function]"===d.toString.apply(a)},isNull:function(a){return null===a},isNumber:function(a){return"number"===typeof a&&isFinite(a)},isObject:function(e){return e&&("object"===typeof e||a.isFunction(e))||!1},isString:function(a){return"string"===typeof a},isUndefined:function(a){return"undefined"===
-typeof a},_IEEnumFix:YAHOO.env.ua.ie?function(e,l){var c,m,h;for(c=0;c<f.length;c+=1)m=f[c],h=l[m],a.isFunction(h)&&h!=d[m]&&(e[m]=h)}:function(){},extend:function(e,c,f){if(!c||!e)throw Error("extend failed, please check that all dependencies are included.");var m=function(){},h;m.prototype=c.prototype;e.prototype=new m;e.prototype.constructor=e;e.superclass=c.prototype;c.prototype.constructor==d.constructor&&(c.prototype.constructor=c);if(f){for(h in f)a.hasOwnProperty(f,h)&&(e.prototype[h]=f[h]);
-a._IEEnumFix(e.prototype,f)}},augmentObject:function(e,c){if(!c||!e)throw Error("Absorb failed, verify dependencies.");var f=arguments,d,h=f[2];if(h&&!0!==h)for(d=2;d<f.length;d+=1)e[f[d]]=c[f[d]];else{for(d in c)if(h||!(d in e))e[d]=c[d];a._IEEnumFix(e,c)}},augmentProto:function(e,d){if(!d||!e)throw Error("Augment failed, verify dependencies.");var c=[e.prototype,d.prototype],f;for(f=2;f<arguments.length;f+=1)c.push(arguments[f]);a.augmentObject.apply(this,c)},dump:function(e,d){var c,f,h=[];if(a.isObject(e)){if(e instanceof
-Date||"nodeType"in e&&"tagName"in e)return e;if(a.isFunction(e))return"f(){...}"}else return e+"";d=a.isNumber(d)?d:3;if(a.isArray(e)){h.push("[");c=0;for(f=e.length;c<f;c+=1)a.isObject(e[c])?h.push(0<d?a.dump(e[c],d-1):"{...}"):h.push(e[c]),h.push(", ");1<h.length&&h.pop();h.push("]")}else{h.push("{");for(c in e)a.hasOwnProperty(e,c)&&(h.push(c+" => "),a.isObject(e[c])?h.push(0<d?a.dump(e[c],d-1):"{...}"):h.push(e[c]),h.push(", "));1<h.length&&h.pop();h.push("}")}return h.join("")},substitute:function(e,
-c,f){for(var m,h,n,s,r,g=[],p;;){m=e.lastIndexOf("{");if(0>m)break;h=e.indexOf("}",m);if(m+1>=h)break;s=p=e.substring(m+1,h);r=null;n=s.indexOf(" ");-1<n&&(r=s.substring(n+1),s=s.substring(0,n));n=c[s];f&&(n=f(s,n,r));a.isObject(n)?a.isArray(n)?n=a.dump(n,parseInt(r,10)):(r=r||"",s=r.indexOf("dump"),-1<s&&(r=r.substring(4)),n=n.toString===d.toString||-1<s?a.dump(n,parseInt(r,10)):n.toString()):!a.isString(n)&&!a.isNumber(n)&&(n="~-"+g.length+"-~",g[g.length]=p);e=e.substring(0,m)+n+e.substring(h+
-1)}for(m=g.length-1;0<=m;m-=1)e=e.replace(RegExp("~-"+m+"-~"),"{"+g[m]+"}","g");return e},trim:function(a){try{return a.replace(/^\s+|\s+$/g,"")}catch(c){return a}},merge:function(){var c={},d=arguments,f=d.length,m;for(m=0;m<f;m+=1)a.augmentObject(c,d[m],!0);return c},later:function(c,d,f,m,h){c=c||0;d=d||{};var n=f,s=m,r;a.isString(f)&&(n=d[f]);if(!n)throw new TypeError("method undefined");a.isArray(s)||(s=[m]);f=function(){n.apply(d,s)};r=h?setInterval(f,c):setTimeout(f,c);return{interval:h,cancel:function(){this.interval?
-clearInterval(r):clearTimeout(r)}}},isValue:function(c){return a.isObject(c)||a.isString(c)||a.isNumber(c)||a.isBoolean(c)}};a.hasOwnProperty=d.hasOwnProperty?function(a,c){return a&&a.hasOwnProperty(c)}:function(c,d){return!a.isUndefined(c[d])&&c.constructor.prototype[d]!==c[d]};c.augmentObject(a,c,!0);YAHOO.util.Lang=a;a.augment=a.augmentProto;YAHOO.augment=a.augmentProto;YAHOO.extend=a.extend})();YAHOO.register("yahoo",YAHOO,{version:"2.7.0",build:"1799"});
-(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var a=YAHOO.util,d=YAHOO.lang,f=YAHOO.env.ua,c=YAHOO.lang.trim,e={},l={},q=/^t(?:able|d|h)$/i,m=/color$/i,h=window.document,n=h.documentElement,s=f.opera,r=f.webkit,g=f.gecko,p=f.ie;a.Dom={CUSTOM_ATTRIBUTES:!n.hasAttribute?{"for":"htmlFor","class":"className"}:{htmlFor:"for",className:"class"},get:function(b){var k,g,c,d;if(b){if(b.nodeType||b.item)return b;if("string"===typeof b){k=b;b=h.getElementById(b);if(!(b&&b.id===k)&&b&&h.all){b=null;
-g=h.all[k];c=0;for(d=g.length;c<d;++c)if(g[c].id===k)return g[c]}return b}b.DOM_EVENTS&&(b=b.get("element"));if("length"in b){k=[];c=0;for(d=b.length;c<d;++c)k[k.length]=a.Dom.get(b[c]);return k}return b}return null},getComputedStyle:function(b,k){if(window.getComputedStyle)return b.ownerDocument.defaultView.getComputedStyle(b,null)[k];if(b.currentStyle)return a.Dom.IE_ComputedStyle.get(b,k)},getStyle:function(b,k){return a.Dom.batch(b,a.Dom._getStyle,k)},_getStyle:function(){if(window.getComputedStyle)return function(b,
-k){k="float"===k?k="cssFloat":a.Dom._toCamel(k);var g=b.style[k],c;g||(c=b.ownerDocument.defaultView.getComputedStyle(b,null))&&(g=c[k]);return g};if(n.currentStyle)return function(b,k){var g;switch(k){case "opacity":g=100;try{g=b.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(c){try{g=b.filters("alpha").opacity}catch(d){}}return g/100;case "float":k="styleFloat";default:return k=a.Dom._toCamel(k),g=b.currentStyle?b.currentStyle[k]:null,b.style[k]||g}}}(),setStyle:function(b,k,g){a.Dom.batch(b,
-a.Dom._setStyle,{prop:k,val:g})},_setStyle:function(){return p?function(b,k){var g=a.Dom._toCamel(k.prop),c=k.val;if(b)switch(g){case "opacity":if(d.isString(b.style.filter)&&(b.style.filter="alpha(opacity="+100*c+")",!b.currentStyle||!b.currentStyle.hasLayout))b.style.zoom=1;break;case "float":g="styleFloat";default:b.style[g]=c}}:function(b,k){var g=a.Dom._toCamel(k.prop),c=k.val;b&&("float"==g&&(g="cssFloat"),b.style[g]=c)}}(),getXY:function(b){return a.Dom.batch(b,a.Dom._getXY)},_canPosition:function(b){return"none"!==
-a.Dom._getStyle(b,"display")&&a.Dom._inDoc(b)},_getXY:function(){return h.documentElement.getBoundingClientRect?function(b){var k,g,c,d,e,l,h,m=Math.floor;g=!1;if(a.Dom._canPosition(b)){g=b.getBoundingClientRect();c=b.ownerDocument;b=a.Dom.getDocumentScrollLeft(c);k=a.Dom.getDocumentScrollTop(c);g=[m(g.left),m(g.top)];p&&8>f.ie&&(e=d=2,l=c.compatMode,h=t(c.documentElement,"borderLeftWidth"),c=t(c.documentElement,"borderTopWidth"),6===f.ie&&"BackCompat"!==l&&(e=d=0),"BackCompat"==l&&("medium"!==h&&
-(d=parseInt(h,10)),"medium"!==c&&(e=parseInt(c,10))),g[0]-=d,g[1]-=e);if(k||b)g[0]+=b,g[1]+=k;g[0]=m(g[0]);g[1]=m(g[1])}return g}:function(b){var k,c,d,e=!1,p=b;if(a.Dom._canPosition(b)){e=[b.offsetLeft,b.offsetTop];k=a.Dom.getDocumentScrollLeft(b.ownerDocument);c=a.Dom.getDocumentScrollTop(b.ownerDocument);for(d=g||519<f.webkit?!0:!1;p=p.offsetParent;)e[0]+=p.offsetLeft,e[1]+=p.offsetTop,d&&(e=a.Dom._calcBorders(p,e));if("fixed"!==a.Dom._getStyle(b,"position")){for(p=b;(p=p.parentNode)&&p.tagName;)if(b=
-p.scrollTop,d=p.scrollLeft,g&&"visible"!==a.Dom._getStyle(p,"overflow")&&(e=a.Dom._calcBorders(p,e)),b||d)e[0]-=d,e[1]-=b;e[0]+=k;e[1]+=c}else if(s)e[0]-=k,e[1]-=c;else if(r||g)e[0]+=k,e[1]+=c;e[0]=Math.floor(e[0]);e[1]=Math.floor(e[1])}return e}}(),getX:function(b){return a.Dom.batch(b,function(b){return a.Dom.getXY(b)[0]},a.Dom,!0)},getY:function(b){return a.Dom.batch(b,function(b){return a.Dom.getXY(b)[1]},a.Dom,!0)},setXY:function(b,k,g){a.Dom.batch(b,a.Dom._setXY,{pos:k,noRetry:g})},_setXY:function(b,
-k){var g=a.Dom._getStyle(b,"position"),c=a.Dom.setStyle,d=k.pos,e=k.noRetry,f=[parseInt(a.Dom.getComputedStyle(b,"left"),10),parseInt(a.Dom.getComputedStyle(b,"top"),10)],p;"static"==g&&(g="relative",c(b,"position",g));p=a.Dom._getXY(b);if(!d||!1===p)return!1;isNaN(f[0])&&(f[0]="relative"==g?0:b.offsetLeft);isNaN(f[1])&&(f[1]="relative"==g?0:b.offsetTop);null!==d[0]&&c(b,"left",d[0]-p[0]+f[0]+"px");null!==d[1]&&c(b,"top",d[1]-p[1]+f[1]+"px");e||(g=a.Dom._getXY(b),(null!==d[0]&&g[0]!=d[0]||null!==
-d[1]&&g[1]!=d[1])&&a.Dom._setXY(b,{pos:d,noRetry:!0}))},setX:function(b,k){a.Dom.setXY(b,[k,null])},setY:function(b,k){a.Dom.setXY(b,[null,k])},getRegion:function(b){return a.Dom.batch(b,function(b){var g=!1;a.Dom._canPosition(b)&&(g=a.Region.getRegion(b));return g},a.Dom,!0)},getClientWidth:function(){return a.Dom.getViewportWidth()},getClientHeight:function(){return a.Dom.getViewportHeight()},getElementsByClassName:function(b,k,g,c,e,f){b=d.trim(b);k=k||"*";g=g?a.Dom.get(g):h;if(!g)return[];var p=
-[];k=g.getElementsByTagName(k);g=a.Dom.hasClass;for(var l=0,m=k.length;l<m;++l)g(k[l],b)&&(p[p.length]=k[l]);c&&a.Dom.batch(p,c,e,f);return p},hasClass:function(b,g){return a.Dom.batch(b,a.Dom._hasClass,g)},_hasClass:function(b,g){var c=!1;b&&g&&(c=a.Dom.getAttribute(b,"className")||"",c=g.exec?g.test(c):g&&-1<(" "+c+" ").indexOf(" "+g+" "));return c},addClass:function(b,g){return a.Dom.batch(b,a.Dom._addClass,g)},_addClass:function(b,g){var d=!1,e;b&&g&&(e=a.Dom.getAttribute(b,"className")||"",a.Dom._hasClass(b,
-g)||(a.Dom.setAttribute(b,"className",c(e+" "+g)),d=!0));return d},removeClass:function(b,g){return a.Dom.batch(b,a.Dom._removeClass,g)},_removeClass:function(b,g){var d=!1,e,f;b&&g&&(e=a.Dom.getAttribute(b,"className")||"",a.Dom.setAttribute(b,"className",e.replace(a.Dom._getClassRegex(g),"")),f=a.Dom.getAttribute(b,"className"),e!==f&&(a.Dom.setAttribute(b,"className",c(f)),d=!0,""===a.Dom.getAttribute(b,"className")&&(e=b.hasAttribute&&b.hasAttribute("class")?"class":"className",b.removeAttribute(e))));
-return d},replaceClass:function(b,g,c){return a.Dom.batch(b,a.Dom._replaceClass,{from:g,to:c})},_replaceClass:function(b,g){var d,e,f=!1;b&&g&&(d=g.from,(e=g.to)?d?d!==e&&(f=a.Dom.getAttribute(b,"className")||"",d=(" "+f.replace(a.Dom._getClassRegex(d)," "+e)).split(a.Dom._getClassRegex(e)),d.splice(1,0," "+e),a.Dom.setAttribute(b,"className",c(d.join(""))),f=!0):f=a.Dom._addClass(b,g.to):f=!1);return f},generateId:function(b,g){g=g||"yui-gen";var c=function(b){if(b&&b.id)return b.id;var c=g+YAHOO.env._id_counter++;
-if(b){if(b.ownerDocument.getElementById(c))return a.Dom.generateId(b,c+g);b.id=c}return c};return a.Dom.batch(b,c,a.Dom,!0)||c.apply(a.Dom,arguments)},isAncestor:function(b,g){b=a.Dom.get(b);g=a.Dom.get(g);var c=!1;b&&g&&(b.nodeType&&g.nodeType)&&(b.contains&&b!==g?c=b.contains(g):b.compareDocumentPosition&&(c=!!(b.compareDocumentPosition(g)&16)));return c},inDocument:function(b,g){return a.Dom._inDoc(a.Dom.get(b),g)},_inDoc:function(b,g){var c=!1;b&&b.tagName&&(g=g||b.ownerDocument,c=a.Dom.isAncestor(g.documentElement,
-b));return c},getElementsBy:function(b,g,c,d,e,f,p){g=g||"*";c=c?a.Dom.get(c):h;if(!c)return[];var l=[];g=c.getElementsByTagName(g);c=0;for(var m=g.length;c<m;++c)if(b(g[c]))if(p){l=g[c];break}else l[l.length]=g[c];d&&a.Dom.batch(l,d,e,f);return l},getElementBy:function(b,g,c){return a.Dom.getElementsBy(b,g,c,null,null,null,!0)},batch:function(b,g,c,d){var e=[];d=d?c:window;if((b=b&&(b.tagName||b.item)?b:a.Dom.get(b))&&g){if(b.tagName||void 0===b.length)return g.call(d,b,c);for(var f=0;f<b.length;++f)e[e.length]=
-g.call(d,b[f],c)}else return!1;return e},getDocumentHeight:function(){return Math.max("CSS1Compat"!=h.compatMode||r?h.body.scrollHeight:n.scrollHeight,a.Dom.getViewportHeight())},getDocumentWidth:function(){return Math.max("CSS1Compat"!=h.compatMode||r?h.body.scrollWidth:n.scrollWidth,a.Dom.getViewportWidth())},getViewportHeight:function(){var b=self.innerHeight,a=h.compatMode;if((a||p)&&!s)b="CSS1Compat"==a?n.clientHeight:h.body.clientHeight;return b},getViewportWidth:function(){var b=self.innerWidth,
-a=h.compatMode;if(a||p)b="CSS1Compat"==a?n.clientWidth:h.body.clientWidth;return b},getAncestorBy:function(b,g){for(;b=b.parentNode;)if(a.Dom._testElement(b,g))return b;return null},getAncestorByClassName:function(b,g){b=a.Dom.get(b);return!b?null:a.Dom.getAncestorBy(b,function(b){return a.Dom.hasClass(b,g)})},getAncestorByTagName:function(b,g){b=a.Dom.get(b);return!b?null:a.Dom.getAncestorBy(b,function(b){return b.tagName&&b.tagName.toUpperCase()==g.toUpperCase()})},getPreviousSiblingBy:function(b,
-g){for(;b;)if(b=b.previousSibling,a.Dom._testElement(b,g))return b;return null},getPreviousSibling:function(b){b=a.Dom.get(b);return!b?null:a.Dom.getPreviousSiblingBy(b)},getNextSiblingBy:function(b,g){for(;b;)if(b=b.nextSibling,a.Dom._testElement(b,g))return b;return null},getNextSibling:function(b){b=a.Dom.get(b);return!b?null:a.Dom.getNextSiblingBy(b)},getFirstChildBy:function(b,g){return(a.Dom._testElement(b.firstChild,g)?b.firstChild:null)||a.Dom.getNextSiblingBy(b.firstChild,g)},getFirstChild:function(b,
-g){b=a.Dom.get(b);return!b?null:a.Dom.getFirstChildBy(b)},getLastChildBy:function(b,g){return!b?null:(a.Dom._testElement(b.lastChild,g)?b.lastChild:null)||a.Dom.getPreviousSiblingBy(b.lastChild,g)},getLastChild:function(b){b=a.Dom.get(b);return a.Dom.getLastChildBy(b)},getChildrenBy:function(b,g){var c=a.Dom.getFirstChildBy(b,g),d=c?[c]:[];a.Dom.getNextSiblingBy(c,function(b){if(!g||g(b))d[d.length]=b;return!1});return d},getChildren:function(b){b=a.Dom.get(b);return a.Dom.getChildrenBy(b)},getDocumentScrollLeft:function(b){b=
-b||h;return Math.max(b.documentElement.scrollLeft,b.body.scrollLeft)},getDocumentScrollTop:function(b){b=b||h;return Math.max(b.documentElement.scrollTop,b.body.scrollTop)},insertBefore:function(b,g){b=a.Dom.get(b);g=a.Dom.get(g);return!b||!g||!g.parentNode?null:g.parentNode.insertBefore(b,g)},insertAfter:function(b,g){b=a.Dom.get(b);g=a.Dom.get(g);return!b||!g||!g.parentNode?null:g.nextSibling?g.parentNode.insertBefore(b,g.nextSibling):g.parentNode.appendChild(b)},getClientRegion:function(){var b=
-a.Dom.getDocumentScrollTop(),g=a.Dom.getDocumentScrollLeft(),c=a.Dom.getViewportWidth()+g,d=a.Dom.getViewportHeight()+b;return new a.Region(b,c,d,g)},setAttribute:function(b,g,c){g=a.Dom.CUSTOM_ATTRIBUTES[g]||g;b.setAttribute(g,c)},getAttribute:function(b,g){g=a.Dom.CUSTOM_ATTRIBUTES[g]||g;return b.getAttribute(g)},_toCamel:function(b){function g(b,a){return a.toUpperCase()}return e[b]||(e[b]=-1===b.indexOf("-")?b:b.replace(/-([a-z])/gi,g))},_getClassRegex:function(b){var g;void 0!==b&&(b.exec?g=
-b:(g=l[b],g||(b=b.replace(a.Dom._patterns.CLASS_RE_TOKENS,"\\$1"),g=l[b]=RegExp("(?:^|\\s)"+b+"(?= |$)","g"))));return g},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}])/g},_testElement:function(b,g){return b&&1==b.nodeType&&(!g||g(b))},_calcBorders:function(b,c){var d=parseInt(a.Dom.getComputedStyle(b,"borderTopWidth"),10)||0,e=parseInt(a.Dom.getComputedStyle(b,"borderLeftWidth"),10)||0;g&&q.test(b.tagName)&&(e=d=0);c[0]+=e;c[1]+=d;return c}};var t=a.Dom.getComputedStyle;
-f.opera&&(a.Dom.getComputedStyle=function(b,g){var c=t(b,g);m.test(g)&&(c=a.Dom.Color.toRGB(c));return c});f.webkit&&(a.Dom.getComputedStyle=function(b,g){var a=t(b,g);"rgba(0, 0, 0, 0)"===a&&(a="transparent");return a})})();YAHOO.util.Region=function(a,d,f,c){this.y=this.top=a;this[1]=a;this.right=d;this.bottom=f;this.x=this.left=c;this[0]=c;this.width=this.right-this.left;this.height=this.bottom-this.top};
-YAHOO.util.Region.prototype.contains=function(a){return a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom};YAHOO.util.Region.prototype.getArea=function(){return(this.bottom-this.top)*(this.right-this.left)};YAHOO.util.Region.prototype.intersect=function(a){var d=Math.max(this.top,a.top),f=Math.min(this.right,a.right),c=Math.min(this.bottom,a.bottom);a=Math.max(this.left,a.left);return c>=d&&f>=a?new YAHOO.util.Region(d,f,c,a):null};
-YAHOO.util.Region.prototype.union=function(a){var d=Math.min(this.top,a.top),f=Math.max(this.right,a.right),c=Math.max(this.bottom,a.bottom);a=Math.min(this.left,a.left);return new YAHOO.util.Region(d,f,c,a)};YAHOO.util.Region.prototype.toString=function(){return"Region {top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+", height: "+this.height+", width: "+this.width+"}"};
-YAHOO.util.Region.getRegion=function(a){var d=YAHOO.util.Dom.getXY(a);return new YAHOO.util.Region(d[1],d[0]+a.offsetWidth,d[1]+a.offsetHeight,d[0])};YAHOO.util.Point=function(a,d){YAHOO.lang.isArray(a)&&(d=a[1],a=a[0]);YAHOO.util.Point.superclass.constructor.call(this,d,a,d,a)};YAHOO.extend(YAHOO.util.Point,YAHOO.util.Region);
-(function(){var a=YAHOO.util,d=/^width|height$/,f=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,c={get:function(c,d){var e="",e=c.currentStyle[d];return e="opacity"===d?a.Dom.getStyle(c,"opacity"):!e||e.indexOf&&-1<e.indexOf("px")?e:a.Dom.IE_COMPUTED[d]?a.Dom.IE_COMPUTED[d](c,d):f.test(e)?a.Dom.IE.ComputedStyle.getPixel(c,d):e},getOffset:function(a,c){var e=a.currentStyle[c],f=c.charAt(0).toUpperCase()+c.substr(1),n="offset"+f,s="pixel"+f,f="";"auto"==e?(f=
-e=a[n],d.test(c)&&(a.style[c]=e,a[n]>e&&(f=e-(a[n]-e)),a.style[c]="auto")):(!a.style[s]&&!a.style[c]&&(a.style[c]=e),f=a.style[s]);return f+"px"},getBorderWidth:function(a,c){var d=null;a.currentStyle.hasLayout||(a.style.zoom=1);switch(c){case "borderTopWidth":d=a.clientTop;break;case "borderBottomWidth":d=a.offsetHeight-a.clientHeight-a.clientTop;break;case "borderLeftWidth":d=a.clientLeft;break;case "borderRightWidth":d=a.offsetWidth-a.clientWidth-a.clientLeft}return d+"px"},getPixel:function(a,
-c){var d=null,e=a.currentStyle.right;a.style.right=a.currentStyle[c];d=a.style.pixelRight;a.style.right=e;return d+"px"},getMargin:function(c,d){return"auto"==c.currentStyle[d]?"0px":a.Dom.IE.ComputedStyle.getPixel(c,d)},getVisibility:function(a,c){for(var d;(d=a.currentStyle)&&"inherit"==d[c];)a=a.parentNode;return d?d[c]:"visible"},getColor:function(c,d){return a.Dom.Color.toRGB(c.currentStyle[d])||"transparent"},getBorderColor:function(c,d){var e=c.currentStyle;return a.Dom.Color.toRGB(a.Dom.Color.toHex(e[d]||
-e.color))}},e={};e.top=e.right=e.bottom=e.left=e.width=e.height=c.getOffset;e.color=c.getColor;e.borderTopWidth=e.borderRightWidth=e.borderBottomWidth=e.borderLeftWidth=c.getBorderWidth;e.marginTop=e.marginRight=e.marginBottom=e.marginLeft=c.getMargin;e.visibility=c.getVisibility;e.borderColor=e.borderTopColor=e.borderRightColor=e.borderBottomColor=e.borderLeftColor=c.getBorderColor;a.Dom.IE_COMPUTED=e;a.Dom.IE_ComputedStyle=c})();
-(function(){var a=parseInt,d=RegExp,f=YAHOO.util;f.Dom.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(c){f.Dom.Color.re_RGB.test(c)||(c=f.Dom.Color.toHex(c));f.Dom.Color.re_hex.exec(c)&&
-(c="rgb("+[a(d.$1,16),a(d.$2,16),a(d.$3,16)].join(", ")+")");return c},toHex:function(a){a=f.Dom.Color.KEYWORDS[a]||a;if(f.Dom.Color.re_RGB.exec(a)){a=1===d.$2.length?"0"+d.$2:Number(d.$2);var e=1===d.$3.length?"0"+d.$3:Number(d.$3);a=[(1===d.$1.length?"0"+d.$1:Number(d.$1)).toString(16),a.toString(16),e.toString(16)].join("")}6>a.length&&(a=a.replace(f.Dom.Color.re_hex3,"$1$1"));"transparent"!==a&&0>a.indexOf("#")&&(a="#"+a);return a.toLowerCase()}}})();
-YAHOO.register("dom",YAHOO.util.Dom,{version:"2.7.0",build:"1799"});YAHOO.util.CustomEvent=function(a,d,f,c){this.type=a;this.scope=d||window;this.silent=f;this.signature=c||YAHOO.util.CustomEvent.LIST;this.subscribers=[];"_YUICEOnSubscribe"!==a&&(this.subscribeEvent=new YAHOO.util.CustomEvent("_YUICEOnSubscribe",this,!0));this.lastError=null};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;
-YAHOO.util.CustomEvent.prototype={subscribe:function(a,d,f){if(!a)throw Error("Invalid callback for subscriber to '"+this.type+"'");this.subscribeEvent&&this.subscribeEvent.fire(a,d,f);this.subscribers.push(new YAHOO.util.Subscriber(a,d,f))},unsubscribe:function(a,d){if(!a)return this.unsubscribeAll();for(var f=!1,c=0,e=this.subscribers.length;c<e;++c){var l=this.subscribers[c];l&&l.contains(a,d)&&(this._delete(c),f=!0)}return f},fire:function(){this.lastError=null;var a=this.subscribers.length;if(!a&&
-this.silent)return!0;var d=[].slice.call(arguments,0),f=!0,c,e=this.subscribers.slice(),l=YAHOO.util.Event.throwErrors;for(c=0;c<a;++c){var q=e[c];if(q){var m=q.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var h=null;0<d.length&&(h=d[0]);try{f=q.fn.call(m,h,q.obj)}catch(n){if(this.lastError=n,l)throw n;}}else try{f=q.fn.call(m,this.type,d,q.obj)}catch(s){if(this.lastError=s,l)throw s;}if(!1===f)break}}return!1!==f},unsubscribeAll:function(){var a=this.subscribers.length,d;
-for(d=a-1;-1<d;d--)this._delete(d);this.subscribers=[];return a},_delete:function(a){var d=this.subscribers[a];d&&(delete d.fn,delete d.obj);this.subscribers.splice(a,1)},toString:function(){return"CustomEvent: '"+this.type+"', context: "+this.scope}};YAHOO.util.Subscriber=function(a,d,f){this.fn=a;this.obj=YAHOO.lang.isUndefined(d)?null:d;this.overrideContext=f};
-YAHOO.util.Subscriber.prototype.getScope=function(a){return this.overrideContext?!0===this.overrideContext?this.obj:this.overrideContext:a};YAHOO.util.Subscriber.prototype.contains=function(a,d){return d?this.fn==a&&this.obj==d:this.fn==a};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }"};
-YAHOO.util.Event||(YAHOO.util.Event=function(){var a=!1,d=[],f=[],c=[],e=[],l=0,q=[],m=[],h=0,n={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},s=YAHOO.env.ua.ie?"focusin":"focus",r=YAHOO.env.ua.ie?"focusout":"blur";return{POLL_RETRYS:2E3,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:!1,throwErrors:!1,startInterval:function(){if(!this._interval){var a=
-this;this._interval=setInterval(function(){a._tryPreloadAttach()},this.POLL_INTERVAL)}},onAvailable:function(a,c,d,b,e){a=YAHOO.lang.isString(a)?[a]:a;for(var f=0;f<a.length;f+=1)q.push({id:a[f],fn:c,obj:d,overrideContext:b,checkReady:e});l=this.POLL_RETRYS;this.startInterval()},onContentReady:function(a,c,d,b){this.onAvailable(a,c,d,b,!0)},onDOMReady:function(a,c,d){this.DOMReady?setTimeout(function(){var b=window;d&&(b=!0===d?c:d);a.call(b,"DOMReady",[],c)},0):this.DOMReadyEvent.subscribe(a,c,d)},
-_addListener:function(a,p,h,b,k,l){if(!h||!h.call)return!1;if(this._isValidCollection(a)){l=!0;for(var n=0,q=a.length;n<q;++n)l=this.on(a[n],p,h,b,k)&&l;return l}if(YAHOO.lang.isString(a))if(n=this.getEl(a))a=n;else return this.onAvailable(a,function(){YAHOO.util.Event.on(a,p,h,b,k)}),!0;if(!a)return!1;if("unload"==p&&b!==this)return f[f.length]=[a,p,h,b,k],!0;var s=a;k&&(s=!0===k?b:k);n=function(c){return h.call(s,YAHOO.util.Event.getEvent(c,a),b)};q=[a,p,h,n,s,b,k];d[d.length]=q;if(this.useLegacyEvent(a,
-p)){var r=this.getLegacyIndex(a,p);if(-1==r||a!=c[r][0])r=c.length,m[a.id+p]=r,c[r]=[a,p,a["on"+p]],e[r]=[],a["on"+p]=function(a){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(a),r)};e[r].push(q)}else try{this._simpleAdd(a,p,n,l)}catch(u){return this.lastError=u,this.removeListener(a,p,h),!1}return!0},addListener:function(a,c,d,b,e){return this._addListener(a,c,d,b,e,!1)},addFocusListener:function(a,c,d,b){return this._addListener(a,s,c,d,b,!0)},removeFocusListener:function(a,c){return this.removeListener(a,
-s,c)},addBlurListener:function(a,c,d,b){return this._addListener(a,r,c,d,b,!0)},removeBlurListener:function(a,c){return this.removeListener(a,r,c)},fireLegacyEvent:function(a,d){var f=!0,b,k,h;b=e[d].slice();for(var n=0,l=b.length;n<l;++n)if((k=b[n])&&k[this.WFN])h=k[this.ADJ_SCOPE],k=k[this.WFN].call(h,a),f=f&&k;if((b=c[d])&&b[2])b[2](a);return f},getLegacyIndex:function(a,c){var d=this.generateId(a)+c;return"undefined"==typeof m[d]?-1:m[d]},useLegacyEvent:function(a,c){return this.webkit&&419>this.webkit&&
-("click"==c||"dblclick"==c)},removeListener:function(a,c,h,b){var k,n,l;if("string"==typeof a)a=this.getEl(a);else if(this._isValidCollection(a)){b=!0;for(k=a.length-1;-1<k;k--)b=this.removeListener(a[k],c,h)&&b;return b}if(!h||!h.call)return this.purgeElement(a,!1,c);if("unload"==c){for(k=f.length-1;-1<k;k--)if((l=f[k])&&l[0]==a&&l[1]==c&&l[2]==h)return f.splice(k,1),!0;return!1}k=null;"undefined"===typeof b&&(b=this._getCacheIndex(a,c,h));0<=b&&(k=d[b]);if(!a||!k)return!1;if(this.useLegacyEvent(a,
-c)){k=this.getLegacyIndex(a,c);var m=e[k];if(m){k=0;for(n=m.length;k<n;++k)if((l=m[k])&&l[this.EL]==a&&l[this.TYPE]==c&&l[this.FN]==h){m.splice(k,1);break}}}else try{this._simpleRemove(a,c,k[this.WFN],!1)}catch(q){return this.lastError=q,!1}delete d[b][this.WFN];delete d[b][this.FN];d.splice(b,1);return!0},getTarget:function(a,c){return this.resolveTextNode(a.target||a.srcElement)},resolveTextNode:function(a){try{if(a&&3==a.nodeType)return a.parentNode}catch(c){}return a},getPageX:function(a){var c=
-a.pageX;!c&&0!==c&&(c=a.clientX||0,this.isIE&&(c+=this._getScrollLeft()));return c},getPageY:function(a){var c=a.pageY;!c&&0!==c&&(c=a.clientY||0,this.isIE&&(c+=this._getScrollTop()));return c},getXY:function(a){return[this.getPageX(a),this.getPageY(a)]},getRelatedTarget:function(a){var c=a.relatedTarget;c||("mouseout"==a.type?c=a.toElement:"mouseover"==a.type&&(c=a.fromElement));return this.resolveTextNode(c)},getTime:function(a){if(!a.time){var c=(new Date).getTime();try{a.time=c}catch(d){return this.lastError=
-d,c}}return a.time},stopEvent:function(a){this.stopPropagation(a);this.preventDefault(a)},stopPropagation:function(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0},preventDefault:function(a){a.preventDefault?a.preventDefault():a.returnValue=!1},getEvent:function(a,c){var d=a||window.event;if(!d)for(var b=this.getEvent.caller;b&&!((d=b.arguments[0])&&Event==d.constructor);)b=b.caller;return d},getCharCode:function(a){a=a.keyCode||a.charCode||0;YAHOO.env.ua.webkit&&a in n&&(a=n[a]);return a},
-_getCacheIndex:function(a,c,e){for(var b=0,f=d.length;b<f;b+=1){var h=d[b];if(h&&h[this.FN]==e&&h[this.EL]==a&&h[this.TYPE]==c)return b}return-1},generateId:function(a){var c=a.id;c||(c="yuievtautoid-"+h,++h,a.id=c);return c},_isValidCollection:function(a){try{return a&&"string"!==typeof a&&a.length&&!a.tagName&&!a.alert&&"undefined"!==typeof a[0]}catch(c){return!1}},elCache:{},getEl:function(a){return"string"===typeof a?document.getElementById(a):a},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",
-this),_load:function(c){a||(a=!0,c=YAHOO.util.Event,c._ready(),c._tryPreloadAttach())},_ready:function(a){a=YAHOO.util.Event;a.DOMReady||(a.DOMReady=!0,a.DOMReadyEvent.fire(),a._simpleRemove(document,"DOMContentLoaded",a._ready))},_tryPreloadAttach:function(){if(0===q.length)l=0,this._interval&&(clearInterval(this._interval),this._interval=null);else if(!this.locked)if(this.isIE&&!this.DOMReady)this.startInterval();else{this.locked=!0;var c=!a;c||(c=0<l&&0<q.length);var d=[],e=function(a,b){var c=
-a;b.overrideContext&&(c=!0===b.overrideContext?b.obj:b.overrideContext);b.fn.call(c,b.obj)},b,f,h,n,m=[];b=0;for(f=q.length;b<f;b+=1)if(h=q[b])if(n=this.getEl(h.id))if(h.checkReady){if(a||n.nextSibling||!c)m.push(h),q[b]=null}else e(n,h),q[b]=null;else d.push(h);b=0;for(f=m.length;b<f;b+=1)h=m[b],e(this.getEl(h.id),h);l--;if(c){for(b=q.length-1;-1<b;b--)h=q[b],(!h||!h.id)&&q.splice(b,1);this.startInterval()}else this._interval&&(clearInterval(this._interval),this._interval=null);this.locked=!1}},
-purgeElement:function(a,c,d){a=YAHOO.lang.isString(a)?this.getEl(a):a;var b=this.getListeners(a,d),e;if(b)for(e=b.length-1;-1<e;e--){var f=b[e];this.removeListener(a,f.type,f.fn)}if(c&&a&&a.childNodes){e=0;for(b=a.childNodes.length;e<b;++e)this.purgeElement(a.childNodes[e],c,d)}},getListeners:function(a,c){var e=[],b;b=c?"unload"===c?[f]:[d]:[d,f];for(var h=YAHOO.lang.isString(a)?this.getEl(a):a,n=0;n<b.length;n+=1){var l=b[n];if(l)for(var m=0,q=l.length;m<q;++m){var r=l[m];r&&(r[this.EL]===h&&(!c||
-c===r[this.TYPE]))&&e.push({type:r[this.TYPE],fn:r[this.FN],obj:r[this.OBJ],adjust:r[this.OVERRIDE],scope:r[this.ADJ_SCOPE],index:m})}}return e.length?e:null},_unload:function(a){var e=YAHOO.util.Event,h,b,k,n=f.slice(),l;h=0;for(k=f.length;h<k;++h)if(b=n[h])l=window,b[e.ADJ_SCOPE]&&(l=!0===b[e.ADJ_SCOPE]?b[e.UNLOAD_OBJ]:b[e.ADJ_SCOPE]),b[e.FN].call(l,e.getEvent(a,b[e.EL]),b[e.UNLOAD_OBJ]),n[h]=null;f=null;if(d)for(a=d.length-1;-1<a;a--)(b=d[a])&&e.removeListener(b[e.EL],b[e.TYPE],b[e.FN],a);c=null;
-e._simpleRemove(window,"unload",e._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var a=document.documentElement,c=document.body;return a&&(a.scrollTop||a.scrollLeft)?[a.scrollTop,a.scrollLeft]:c?[c.scrollTop,c.scrollLeft]:[0,0]},regCE:function(){},_simpleAdd:function(){return window.addEventListener?function(a,c,d,b){a.addEventListener(c,d,b)}:window.attachEvent?function(a,c,d,b){a.attachEvent("on"+c,d)}:
-function(){}}(),_simpleRemove:function(){return window.removeEventListener?function(a,c,d,b){a.removeEventListener(c,d,b)}:window.detachEvent?function(a,c,d){a.detachEvent("on"+c,d)}:function(){}}()}}(),function(){var a=YAHOO.util.Event;a.on=a.addListener;a.onFocus=a.addFocusListener;a.onBlur=a.addBlurListener;if(a.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,!0);var d=document.createElement("p");a._dri=setInterval(function(){try{d.doScroll("left"),clearInterval(a._dri),
-a._dri=null,a._ready(),d=null}catch(f){}},a.POLL_INTERVAL)}else a.webkit&&525>a.webkit?a._dri=setInterval(function(){var d=document.readyState;if("loaded"==d||"complete"==d)clearInterval(a._dri),a._dri=null,a._ready()},a.POLL_INTERVAL):a._simpleAdd(document,"DOMContentLoaded",a._ready);a._simpleAdd(window,"load",a._load);a._simpleAdd(window,"unload",a._unload);a._tryPreloadAttach()}());YAHOO.util.EventProvider=function(){};
-YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(a,d,f,c){this.__yui_events=this.__yui_events||{};var e=this.__yui_events[a];e?e.subscribe(d,f,c):(e=this.__yui_subscribers=this.__yui_subscribers||{},e[a]||(e[a]=[]),e[a].push({fn:d,obj:f,overrideContext:c}))},unsubscribe:function(a,d,f){var c=this.__yui_events=this.__yui_events||{};if(a){if(c=c[a])return c.unsubscribe(d,f)}else{a=!0;for(var e in c)YAHOO.lang.hasOwnProperty(c,e)&&(a=a&&c[e].unsubscribe(d,
-f));return a}return!1},unsubscribeAll:function(a){return this.unsubscribe(a)},createEvent:function(a,d){this.__yui_events=this.__yui_events||{};var f=d||{},c=this.__yui_events;if(!c[a]){var e=new YAHOO.util.CustomEvent(a,f.scope||this,f.silent,YAHOO.util.CustomEvent.FLAT);c[a]=e;f.onSubscribeCallback&&e.subscribeEvent.subscribe(f.onSubscribeCallback);this.__yui_subscribers=this.__yui_subscribers||{};if(f=this.__yui_subscribers[a])for(var l=0;l<f.length;++l)e.subscribe(f[l].fn,f[l].obj,f[l].overrideContext)}return c[a]},
-fireEvent:function(a,d,f,c){this.__yui_events=this.__yui_events||{};var e=this.__yui_events[a];if(!e)return null;for(var l=[],q=1;q<arguments.length;++q)l.push(arguments[q]);return e.fire.apply(e,l)},hasEvent:function(a){return this.__yui_events&&this.__yui_events[a]?!0:!1}};
-(function(){var a=YAHOO.util.Event,d=YAHOO.lang;YAHOO.util.KeyListener=function(c,e,f,q){function m(c,d){e.shift||(e.shift=!1);e.alt||(e.alt=!1);e.ctrl||(e.ctrl=!1);if(c.shiftKey==e.shift&&c.altKey==e.alt&&c.ctrlKey==e.ctrl){var f,g=e.keys,l;if(YAHOO.lang.isArray(g))for(var m=0;m<g.length;m++){if(f=g[m],l=a.getCharCode(c),f==l){h.fire(l,c);break}}else l=a.getCharCode(c),g==l&&h.fire(l,c)}}q||(q=YAHOO.util.KeyListener.KEYDOWN);var h=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");
-this.disabledEvent=new YAHOO.util.CustomEvent("disabled");d.isString(c)&&(c=document.getElementById(c));d.isFunction(f)?h.subscribe(f):h.subscribe(f.fn,f.scope,f.correctScope);this.enable=function(){this.enabled||(a.on(c,q,m),this.enabledEvent.fire(e));this.enabled=!0};this.disable=function(){this.enabled&&(a.removeListener(c,q,m),this.disabledEvent.fire(e));this.enabled=!1};this.toString=function(){return"KeyListener ["+e.keys+"] "+c.tagName+(c.id?"["+c.id+"]":"")}};var f=YAHOO.util.KeyListener;
-f.KEYDOWN="keydown";f.KEYUP="keyup";f.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38}})();YAHOO.register("event",YAHOO.util.Event,{version:"2.7.0",build:"1799"});YAHOO.register("yahoo-dom-event",YAHOO,{version:"2.7.0",build:"1799"});
-\r
-(function(){YAHOO.util.Config=function(b){b&&this.init(b)};var b=YAHOO.lang,d=YAHOO.util.CustomEvent,f=YAHOO.util.Config;f.CONFIG_CHANGED_EVENT="configChanged";f.BOOLEAN_TYPE="boolean";f.prototype={owner:null,queueInProgress:!1,config:null,initialConfig:null,eventQueue:null,configChangedEvent:null,init:function(b){this.owner=b;this.configChangedEvent=this.createEvent(f.CONFIG_CHANGED_EVENT);this.configChangedEvent.signature=d.LIST;this.queueInProgress=!1;this.config={};this.initialConfig={};this.eventQueue=
-[]},checkBoolean:function(b){return typeof b==f.BOOLEAN_TYPE},checkNumber:function(b){return!isNaN(b)},fireEvent:function(b,d){var e=this.config[b];e&&e.event&&e.event.fire(d)},addProperty:function(b,h){b=b.toLowerCase();this.config[b]=h;h.event=this.createEvent(b,{scope:this.owner});h.event.signature=d.LIST;h.key=b;h.handler&&h.event.subscribe(h.handler,this.owner);this.setProperty(b,h.value,!0);h.suppressEvent||this.queueProperty(b,h.value)},getConfig:function(){var d={},h=this.config,e,a;for(e in h)if(b.hasOwnProperty(h,
-e)&&(a=h[e])&&a.event)d[e]=a.value;return d},getProperty:function(b){if((b=this.config[b.toLowerCase()])&&b.event)return b.value},resetProperty:function(d){d=d.toLowerCase();var h=this.config[d];if(h&&h.event){if(this.initialConfig[d]&&!b.isUndefined(this.initialConfig[d]))return this.setProperty(d,this.initialConfig[d]),!0}else return!1},setProperty:function(b,d,e){var a;b=b.toLowerCase();if(this.queueInProgress&&!e)return this.queueProperty(b,d),!0;if((a=this.config[b])&&a.event){if(a.validator&&
-!a.validator(d))return!1;a.value=d;e||(this.fireEvent(b,d),this.configChangedEvent.fire([b,d]));return!0}return!1},queueProperty:function(d,f){d=d.toLowerCase();var e=this.config[d],a=!1,c,m,l,k,q,u;if(e&&e.event){if(!b.isUndefined(f)&&e.validator&&!e.validator(f))return!1;b.isUndefined(f)?f=e.value:e.value=f;a=!1;c=this.eventQueue.length;for(q=0;q<c;q++)if(m=this.eventQueue[q])if(l=m[0],m=m[1],l==d){this.eventQueue[q]=null;this.eventQueue.push([d,!b.isUndefined(f)?f:m]);a=!0;break}!a&&!b.isUndefined(f)&&
-this.eventQueue.push([d,f]);if(e.supercedes){a=e.supercedes.length;for(m=0;m<a;m++){c=e.supercedes[m];l=this.eventQueue.length;for(u=0;u<l;u++)if(k=this.eventQueue[u])if(q=k[0],k=k[1],q==c.toLowerCase()){this.eventQueue.push([q,k]);this.eventQueue[u]=null;break}}}return!0}return!1},refireEvent:function(d){d=d.toLowerCase();var f=this.config[d];f&&(f.event&&!b.isUndefined(f.value))&&(this.queueInProgress?this.queueProperty(d):this.fireEvent(d,f.value))},applyConfig:function(d,f){var e,a;if(f){a={};
-for(e in d)b.hasOwnProperty(d,e)&&(a[e.toLowerCase()]=d[e]);this.initialConfig=a}for(e in d)b.hasOwnProperty(d,e)&&this.queueProperty(e,d[e])},refresh:function(){for(var d in this.config)b.hasOwnProperty(this.config,d)&&this.refireEvent(d)},fireQueue:function(){var b,d,e,a;this.queueInProgress=!0;for(b=0;b<this.eventQueue.length;b++)if(d=this.eventQueue[b])e=d[0],d=d[1],a=this.config[e],a.value=d,this.eventQueue[b]=null,this.fireEvent(e,d);this.queueInProgress=!1;this.eventQueue=[]},subscribeToConfigEvent:function(b,
-d,e,a){return(b=this.config[b.toLowerCase()])&&b.event?(f.alreadySubscribed(b.event,d,e)||b.event.subscribe(d,e,a),!0):!1},unsubscribeFromConfigEvent:function(b,d,e){return(b=this.config[b.toLowerCase()])&&b.event?b.event.unsubscribe(d,e):!1},toString:function(){var b="Config";this.owner&&(b+=" ["+this.owner.toString()+"]");return b},outputEventQueue:function(){var b="",d,e,a=this.eventQueue.length;for(e=0;e<a;e++)(d=this.eventQueue[e])&&(b+=d[0]+"="+d[1]+", ");return b},destroy:function(){var d=
-this.config,f,e;for(f in d)b.hasOwnProperty(d,f)&&(e=d[f],e.event.unsubscribeAll(),e.event=null);this.configChangedEvent.unsubscribeAll();this.eventQueue=this.initialConfig=this.config=this.owner=this.configChangedEvent=null}};f.alreadySubscribed=function(b,d,e){var a=b.subscribers.length,c;if(0<a){c=a-1;do if((a=b.subscribers[c])&&a.obj==e&&a.fn==d)return!0;while(c--)}return!1};YAHOO.lang.augmentProto(f,YAHOO.util.EventProvider)})();
-YAHOO.widget.DateMath={DAY:"D",WEEK:"W",YEAR:"Y",MONTH:"M",ONE_DAY_MS:864E5,WEEK_ONE_JAN_DATE:1,add:function(b,d,f){var g=new Date(b.getTime());switch(d){case this.MONTH:d=b.getMonth()+f;f=0;if(0>d)for(;0>d;)d+=12,f-=1;else if(11<d)for(;11<d;)d-=12,f+=1;g.setMonth(d);g.setFullYear(b.getFullYear()+f);break;case this.DAY:this._addDays(g,f);break;case this.YEAR:g.setFullYear(b.getFullYear()+f);break;case this.WEEK:this._addDays(g,7*f)}return g},_addDays:function(b,d){if(YAHOO.env.ua.webkit&&420>YAHOO.env.ua.webkit)if(0>
-d)for(;-128>d;d-=-128)b.setDate(b.getDate()+-128);else for(;96<d;d-=96)b.setDate(b.getDate()+96);b.setDate(b.getDate()+d)},subtract:function(b,d,f){return this.add(b,d,-1*f)},before:function(b,d){var f=d.getTime();return b.getTime()<f?!0:!1},after:function(b,d){var f=d.getTime();return b.getTime()>f?!0:!1},between:function(b,d,f){return this.after(b,d)&&this.before(b,f)?!0:!1},getJan1:function(b){return this.getDate(b,0,1)},getDayOffset:function(b,d){var f=this.getJan1(d);return Math.ceil((b.getTime()-
-f.getTime())/this.ONE_DAY_MS)},getWeekNumber:function(b,d,f){d=d||0;f=f||this.WEEK_ONE_JAN_DATE;b=this.clearTime(b);var g;g=b.getDay()===d?b:this.getFirstDayOfWeek(b,d);var h=g.getFullYear();g.getTime();g=new Date(g.getTime()+6*this.ONE_DAY_MS);h!==g.getFullYear()&&g.getDate()>=f?d=1:(f=this.clearTime(this.getDate(h,0,f)),d=this.getFirstDayOfWeek(f,d),d=Math.round((b.getTime()-d.getTime())/this.ONE_DAY_MS),d=(d-d%7)/7+1);return d},getFirstDayOfWeek:function(b,d){var f=(b.getDay()-(d||0)+7)%7;return this.subtract(b,
-this.DAY,f)},isYearOverlapWeek:function(b){var d=!1;this.add(b,this.DAY,6).getFullYear()!=b.getFullYear()&&(d=!0);return d},isMonthOverlapWeek:function(b){var d=!1;this.add(b,this.DAY,6).getMonth()!=b.getMonth()&&(d=!0);return d},findMonthStart:function(b){return this.getDate(b.getFullYear(),b.getMonth(),1)},findMonthEnd:function(b){b=this.findMonthStart(b);b=this.add(b,this.MONTH,1);return this.subtract(b,this.DAY,1)},clearTime:function(b){b.setHours(12,0,0,0);return b},getDate:function(b,d,f){var g=
-null;YAHOO.lang.isUndefined(f)&&(f=1);100<=b?g=new Date(b,d,f):(g=new Date,g.setFullYear(b),g.setMonth(d),g.setDate(f),g.setHours(0,0,0,0));return g}};
-(function(){function b(a,c,b){this.init.apply(this,arguments)}var d=YAHOO.util.Dom,f=YAHOO.util.Event,g=YAHOO.lang,h=YAHOO.widget.DateMath;b.IMG_ROOT=null;b.DATE="D";b.MONTH_DAY="MD";b.WEEKDAY="WD";b.RANGE="R";b.MONTH="M";b.DISPLAY_DAYS=42;b.STOP_RENDER="S";b.SHORT="short";b.LONG="long";b.MEDIUM="medium";b.ONE_CHAR="1char";b._DEFAULT_CONFIG={PAGEDATE:{key:"pagedate",value:null},SELECTED:{key:"selected",value:null},TITLE:{key:"title",value:""},CLOSE:{key:"close",value:!1},IFRAME:{key:"iframe",value:YAHOO.env.ua.ie&&
-6>=YAHOO.env.ua.ie?!0:!1},MINDATE:{key:"mindate",value:null},MAXDATE:{key:"maxdate",value:null},MULTI_SELECT:{key:"multi_select",value:!1},START_WEEKDAY:{key:"start_weekday",value:0},SHOW_WEEKDAYS:{key:"show_weekdays",value:!0},SHOW_WEEK_HEADER:{key:"show_week_header",value:!1},SHOW_WEEK_FOOTER:{key:"show_week_footer",value:!1},HIDE_BLANK_WEEKS:{key:"hide_blank_weeks",value:!1},NAV_ARROW_LEFT:{key:"nav_arrow_left",value:null},NAV_ARROW_RIGHT:{key:"nav_arrow_right",value:null},MONTHS_SHORT:{key:"months_short",
-value:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")},MONTHS_LONG:{key:"months_long",value:"January February March April May June July August September October November December".split(" ")},WEEKDAYS_1CHAR:{key:"weekdays_1char",value:"SMTWTFS".split("")},WEEKDAYS_SHORT:{key:"weekdays_short",value:"Su Mo Tu We Th Fr Sa".split(" ")},WEEKDAYS_MEDIUM:{key:"weekdays_medium",value:"Sun Mon Tue Wed Thu Fri Sat".split(" ")},WEEKDAYS_LONG:{key:"weekdays_long",value:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" ")},
-LOCALE_MONTHS:{key:"locale_months",value:"long"},LOCALE_WEEKDAYS:{key:"locale_weekdays",value:"short"},DATE_DELIMITER:{key:"date_delimiter",value:","},DATE_FIELD_DELIMITER:{key:"date_field_delimiter",value:"/"},DATE_RANGE_DELIMITER:{key:"date_range_delimiter",value:"-"},MY_MONTH_POSITION:{key:"my_month_position",value:1},MY_YEAR_POSITION:{key:"my_year_position",value:2},MD_MONTH_POSITION:{key:"md_month_position",value:1},MD_DAY_POSITION:{key:"md_day_position",value:2},MDY_MONTH_POSITION:{key:"mdy_month_position",
-value:1},MDY_DAY_POSITION:{key:"mdy_day_position",value:2},MDY_YEAR_POSITION:{key:"mdy_year_position",value:3},MY_LABEL_MONTH_POSITION:{key:"my_label_month_position",value:1},MY_LABEL_YEAR_POSITION:{key:"my_label_year_position",value:2},MY_LABEL_MONTH_SUFFIX:{key:"my_label_month_suffix",value:" "},MY_LABEL_YEAR_SUFFIX:{key:"my_label_year_suffix",value:""},NAV:{key:"navigator",value:null},STRINGS:{key:"strings",value:{previousMonth:"Previous Month",nextMonth:"Next Month",close:"Close"},supercedes:["close",
-"title"]}};var e=b._DEFAULT_CONFIG;b._EVENT_TYPES={BEFORE_SELECT:"beforeSelect",SELECT:"select",BEFORE_DESELECT:"beforeDeselect",DESELECT:"deselect",CHANGE_PAGE:"changePage",BEFORE_RENDER:"beforeRender",RENDER:"render",BEFORE_DESTROY:"beforeDestroy",DESTROY:"destroy",RESET:"reset",CLEAR:"clear",BEFORE_HIDE:"beforeHide",HIDE:"hide",BEFORE_SHOW:"beforeShow",SHOW:"show",BEFORE_HIDE_NAV:"beforeHideNav",HIDE_NAV:"hideNav",BEFORE_SHOW_NAV:"beforeShowNav",SHOW_NAV:"showNav",BEFORE_RENDER_NAV:"beforeRenderNav",
-RENDER_NAV:"renderNav"};b._STYLES={CSS_ROW_HEADER:"calrowhead",CSS_ROW_FOOTER:"calrowfoot",CSS_CELL:"calcell",CSS_CELL_SELECTOR:"selector",CSS_CELL_SELECTED:"selected",CSS_CELL_SELECTABLE:"selectable",CSS_CELL_RESTRICTED:"restricted",CSS_CELL_TODAY:"today",CSS_CELL_OOM:"oom",CSS_CELL_OOB:"previous",CSS_HEADER:"calheader",CSS_HEADER_TEXT:"calhead",CSS_BODY:"calbody",CSS_WEEKDAY_CELL:"calweekdaycell",CSS_WEEKDAY_ROW:"calweekdayrow",CSS_FOOTER:"calfoot",CSS_CALENDAR:"yui-calendar",CSS_SINGLE:"single",
-CSS_CONTAINER:"yui-calcontainer",CSS_NAV_LEFT:"calnavleft",CSS_NAV_RIGHT:"calnavright",CSS_NAV:"calnav",CSS_CLOSE:"calclose",CSS_CELL_TOP:"calcelltop",CSS_CELL_LEFT:"calcellleft",CSS_CELL_RIGHT:"calcellright",CSS_CELL_BOTTOM:"calcellbottom",CSS_CELL_HOVER:"calcellhover",CSS_CELL_HIGHLIGHT1:"highlight1",CSS_CELL_HIGHLIGHT2:"highlight2",CSS_CELL_HIGHLIGHT3:"highlight3",CSS_CELL_HIGHLIGHT4:"highlight4"};b.prototype={Config:null,parent:null,index:-1,cells:null,cellDates:null,id:null,containerId:null,
-oDomContainer:null,today:null,renderStack:null,_renderStack:null,oNavigator:null,_selectedDates:null,domEventMap:null,_parseArgs:function(a){var c={id:null,container:null,config:null};if(a&&a.length&&0<a.length)switch(a.length){case 1:c.id=null;c.container=a[0];c.config=null;break;case 2:g.isObject(a[1])&&!a[1].tagName&&!(a[1]instanceof String)?(c.id=null,c.container=a[0],c.config=a[1]):(c.id=a[0],c.container=a[1],c.config=null);break;default:c.id=a[0],c.container=a[1],c.config=a[2]}return c},init:function(a,
-c,b){var e=this._parseArgs(arguments);a=e.id;c=e.container;b=e.config;this.oDomContainer=d.get(c);this.oDomContainer.id||(this.oDomContainer.id=d.generateId());a||(a=this.oDomContainer.id+"_t");this.id=a;this.containerId=this.oDomContainer.id;this.initEvents();this.today=new Date;h.clearTime(this.today);this.cfg=new YAHOO.util.Config(this);this.Options={};this.Locale={};this.initStyles();d.addClass(this.oDomContainer,this.Style.CSS_CONTAINER);d.addClass(this.oDomContainer,this.Style.CSS_SINGLE);this.cellDates=
-[];this.cells=[];this.renderStack=[];this._renderStack=[];this.setupConfig();b&&this.cfg.applyConfig(b,!0);this.cfg.fireQueue()},configIframe:function(a,c,b){a=c[0];if(!this.parent&&d.inDocument(this.oDomContainer))if(a){if(a=d.getStyle(this.oDomContainer,"position"),("absolute"==a||"relative"==a)&&!d.inDocument(this.iframe))this.iframe=document.createElement("iframe"),this.iframe.src="javascript:false;",d.setStyle(this.iframe,"opacity","0"),YAHOO.env.ua.ie&&6>=YAHOO.env.ua.ie&&d.addClass(this.iframe,
-"fixedsize"),this.oDomContainer.insertBefore(this.iframe,this.oDomContainer.firstChild)}else this.iframe&&(this.iframe.parentNode&&this.iframe.parentNode.removeChild(this.iframe),this.iframe=null)},configTitle:function(a,c,b){(a=c[0])?this.createTitleBar(a):this.cfg.getProperty(e.CLOSE.key)?this.createTitleBar("&#160;"):this.removeTitleBar()},configClose:function(a,c,b){a=c[0];c=this.cfg.getProperty(e.TITLE.key);a?(c||this.createTitleBar("&#160;"),this.createCloseButton()):(this.removeCloseButton(),
-c||this.removeTitleBar())},initEvents:function(){var a=b._EVENT_TYPES,c=YAHOO.util.CustomEvent;this.beforeSelectEvent=new c(a.BEFORE_SELECT);this.selectEvent=new c(a.SELECT);this.beforeDeselectEvent=new c(a.BEFORE_DESELECT);this.deselectEvent=new c(a.DESELECT);this.changePageEvent=new c(a.CHANGE_PAGE);this.beforeRenderEvent=new c(a.BEFORE_RENDER);this.renderEvent=new c(a.RENDER);this.beforeDestroyEvent=new c(a.BEFORE_DESTROY);this.destroyEvent=new c(a.DESTROY);this.resetEvent=new c(a.RESET);this.clearEvent=
-new c(a.CLEAR);this.beforeShowEvent=new c(a.BEFORE_SHOW);this.showEvent=new c(a.SHOW);this.beforeHideEvent=new c(a.BEFORE_HIDE);this.hideEvent=new c(a.HIDE);this.beforeShowNavEvent=new c(a.BEFORE_SHOW_NAV);this.showNavEvent=new c(a.SHOW_NAV);this.beforeHideNavEvent=new c(a.BEFORE_HIDE_NAV);this.hideNavEvent=new c(a.HIDE_NAV);this.beforeRenderNavEvent=new c(a.BEFORE_RENDER_NAV);this.renderNavEvent=new c(a.RENDER_NAV);this.beforeSelectEvent.subscribe(this.onBeforeSelect,this,!0);this.selectEvent.subscribe(this.onSelect,
-this,!0);this.beforeDeselectEvent.subscribe(this.onBeforeDeselect,this,!0);this.deselectEvent.subscribe(this.onDeselect,this,!0);this.changePageEvent.subscribe(this.onChangePage,this,!0);this.renderEvent.subscribe(this.onRender,this,!0);this.resetEvent.subscribe(this.onReset,this,!0);this.clearEvent.subscribe(this.onClear,this,!0)},doPreviousMonthNav:function(a,c){f.preventDefault(a);setTimeout(function(){c.previousMonth();var a=d.getElementsByClassName(c.Style.CSS_NAV_LEFT,"a",c.oDomContainer);if(a&&
-a[0])try{a[0].focus()}catch(b){}},0)},doNextMonthNav:function(a,c){f.preventDefault(a);setTimeout(function(){c.nextMonth();var a=d.getElementsByClassName(c.Style.CSS_NAV_RIGHT,"a",c.oDomContainer);if(a&&a[0])try{a[0].focus()}catch(b){}},0)},doSelectCell:function(a,c){var b,e,k;k=f.getTarget(a);b=k.tagName.toLowerCase();for(e=!1;"td"!=b&&!d.hasClass(k,c.Style.CSS_CELL_SELECTABLE);)if(!e&&("a"==b&&d.hasClass(k,c.Style.CSS_CELL_SELECTOR))&&(e=!0),k=k.parentNode,b=k.tagName.toLowerCase(),k==this.oDomContainer||
-"html"==b)return;e&&f.preventDefault(a);b=k;if(d.hasClass(b,c.Style.CSS_CELL_SELECTABLE)&&(k=c.getIndexFromId(b.id),-1<k&&(e=c.cellDates[k])))h.getDate(e[0],e[1]-1,e[2]),c.Options.MULTI_SELECT?((b=b.getElementsByTagName("a")[0])&&b.blur(),-1<c._indexOfSelectedFieldArray(c.cellDates[k])?c.deselectCell(k):c.selectCell(k)):((b=b.getElementsByTagName("a")[0])&&b.blur(),c.selectCell(k))},doCellMouseOver:function(a,c){var b;for(b=a?f.getTarget(a):this;b.tagName&&"td"!=b.tagName.toLowerCase();)if(b=b.parentNode,
-!b.tagName||"html"==b.tagName.toLowerCase())return;d.hasClass(b,c.Style.CSS_CELL_SELECTABLE)&&d.addClass(b,c.Style.CSS_CELL_HOVER)},doCellMouseOut:function(a,c){var b;for(b=a?f.getTarget(a):this;b.tagName&&"td"!=b.tagName.toLowerCase();)if(b=b.parentNode,!b.tagName||"html"==b.tagName.toLowerCase())return;d.hasClass(b,c.Style.CSS_CELL_SELECTABLE)&&d.removeClass(b,c.Style.CSS_CELL_HOVER)},setupConfig:function(){var a=this.cfg;a.addProperty(e.PAGEDATE.key,{value:new Date,handler:this.configPageDate});
-a.addProperty(e.SELECTED.key,{value:[],handler:this.configSelected});a.addProperty(e.TITLE.key,{value:e.TITLE.value,handler:this.configTitle});a.addProperty(e.CLOSE.key,{value:e.CLOSE.value,handler:this.configClose});a.addProperty(e.IFRAME.key,{value:e.IFRAME.value,handler:this.configIframe,validator:a.checkBoolean});a.addProperty(e.MINDATE.key,{value:e.MINDATE.value,handler:this.configMinDate});a.addProperty(e.MAXDATE.key,{value:e.MAXDATE.value,handler:this.configMaxDate});a.addProperty(e.MULTI_SELECT.key,
-{value:e.MULTI_SELECT.value,handler:this.configOptions,validator:a.checkBoolean});a.addProperty(e.START_WEEKDAY.key,{value:e.START_WEEKDAY.value,handler:this.configOptions,validator:a.checkNumber});a.addProperty(e.SHOW_WEEKDAYS.key,{value:e.SHOW_WEEKDAYS.value,handler:this.configOptions,validator:a.checkBoolean});a.addProperty(e.SHOW_WEEK_HEADER.key,{value:e.SHOW_WEEK_HEADER.value,handler:this.configOptions,validator:a.checkBoolean});a.addProperty(e.SHOW_WEEK_FOOTER.key,{value:e.SHOW_WEEK_FOOTER.value,
-handler:this.configOptions,validator:a.checkBoolean});a.addProperty(e.HIDE_BLANK_WEEKS.key,{value:e.HIDE_BLANK_WEEKS.value,handler:this.configOptions,validator:a.checkBoolean});a.addProperty(e.NAV_ARROW_LEFT.key,{value:e.NAV_ARROW_LEFT.value,handler:this.configOptions});a.addProperty(e.NAV_ARROW_RIGHT.key,{value:e.NAV_ARROW_RIGHT.value,handler:this.configOptions});a.addProperty(e.MONTHS_SHORT.key,{value:e.MONTHS_SHORT.value,handler:this.configLocale});a.addProperty(e.MONTHS_LONG.key,{value:e.MONTHS_LONG.value,
-handler:this.configLocale});a.addProperty(e.WEEKDAYS_1CHAR.key,{value:e.WEEKDAYS_1CHAR.value,handler:this.configLocale});a.addProperty(e.WEEKDAYS_SHORT.key,{value:e.WEEKDAYS_SHORT.value,handler:this.configLocale});a.addProperty(e.WEEKDAYS_MEDIUM.key,{value:e.WEEKDAYS_MEDIUM.value,handler:this.configLocale});a.addProperty(e.WEEKDAYS_LONG.key,{value:e.WEEKDAYS_LONG.value,handler:this.configLocale});var c=function(){a.refireEvent(e.LOCALE_MONTHS.key);a.refireEvent(e.LOCALE_WEEKDAYS.key)};a.subscribeToConfigEvent(e.START_WEEKDAY.key,
-c,this,!0);a.subscribeToConfigEvent(e.MONTHS_SHORT.key,c,this,!0);a.subscribeToConfigEvent(e.MONTHS_LONG.key,c,this,!0);a.subscribeToConfigEvent(e.WEEKDAYS_1CHAR.key,c,this,!0);a.subscribeToConfigEvent(e.WEEKDAYS_SHORT.key,c,this,!0);a.subscribeToConfigEvent(e.WEEKDAYS_MEDIUM.key,c,this,!0);a.subscribeToConfigEvent(e.WEEKDAYS_LONG.key,c,this,!0);a.addProperty(e.LOCALE_MONTHS.key,{value:e.LOCALE_MONTHS.value,handler:this.configLocaleValues});a.addProperty(e.LOCALE_WEEKDAYS.key,{value:e.LOCALE_WEEKDAYS.value,
-handler:this.configLocaleValues});a.addProperty(e.DATE_DELIMITER.key,{value:e.DATE_DELIMITER.value,handler:this.configLocale});a.addProperty(e.DATE_FIELD_DELIMITER.key,{value:e.DATE_FIELD_DELIMITER.value,handler:this.configLocale});a.addProperty(e.DATE_RANGE_DELIMITER.key,{value:e.DATE_RANGE_DELIMITER.value,handler:this.configLocale});a.addProperty(e.MY_MONTH_POSITION.key,{value:e.MY_MONTH_POSITION.value,handler:this.configLocale,validator:a.checkNumber});a.addProperty(e.MY_YEAR_POSITION.key,{value:e.MY_YEAR_POSITION.value,
-handler:this.configLocale,validator:a.checkNumber});a.addProperty(e.MD_MONTH_POSITION.key,{value:e.MD_MONTH_POSITION.value,handler:this.configLocale,validator:a.checkNumber});a.addProperty(e.MD_DAY_POSITION.key,{value:e.MD_DAY_POSITION.value,handler:this.configLocale,validator:a.checkNumber});a.addProperty(e.MDY_MONTH_POSITION.key,{value:e.MDY_MONTH_POSITION.value,handler:this.configLocale,validator:a.checkNumber});a.addProperty(e.MDY_DAY_POSITION.key,{value:e.MDY_DAY_POSITION.value,handler:this.configLocale,
-validator:a.checkNumber});a.addProperty(e.MDY_YEAR_POSITION.key,{value:e.MDY_YEAR_POSITION.value,handler:this.configLocale,validator:a.checkNumber});a.addProperty(e.MY_LABEL_MONTH_POSITION.key,{value:e.MY_LABEL_MONTH_POSITION.value,handler:this.configLocale,validator:a.checkNumber});a.addProperty(e.MY_LABEL_YEAR_POSITION.key,{value:e.MY_LABEL_YEAR_POSITION.value,handler:this.configLocale,validator:a.checkNumber});a.addProperty(e.MY_LABEL_MONTH_SUFFIX.key,{value:e.MY_LABEL_MONTH_SUFFIX.value,handler:this.configLocale});
-a.addProperty(e.MY_LABEL_YEAR_SUFFIX.key,{value:e.MY_LABEL_YEAR_SUFFIX.value,handler:this.configLocale});a.addProperty(e.NAV.key,{value:e.NAV.value,handler:this.configNavigator});a.addProperty(e.STRINGS.key,{value:e.STRINGS.value,handler:this.configStrings,validator:function(a){return g.isObject(a)},supercedes:e.STRINGS.supercedes})},configStrings:function(a,c,b){a=g.merge(e.STRINGS.value,c[0]);this.cfg.setProperty(e.STRINGS.key,a,!0)},configPageDate:function(a,c,b){this.cfg.setProperty(e.PAGEDATE.key,
-this._parsePageDate(c[0]),!0)},configMinDate:function(a,c,b){a=c[0];g.isString(a)&&(a=this._parseDate(a),this.cfg.setProperty(e.MINDATE.key,h.getDate(a[0],a[1]-1,a[2])))},configMaxDate:function(a,c,b){a=c[0];g.isString(a)&&(a=this._parseDate(a),this.cfg.setProperty(e.MAXDATE.key,h.getDate(a[0],a[1]-1,a[2])))},configSelected:function(a,c,b){a=c[0];c=e.SELECTED.key;a&&g.isString(a)&&this.cfg.setProperty(c,this._parseDates(a),!0);this._selectedDates||(this._selectedDates=this.cfg.getProperty(c))},configOptions:function(a,
-c,b){this.Options[a.toUpperCase()]=c[0]},configLocale:function(a,c,b){this.Locale[a.toUpperCase()]=c[0];this.cfg.refireEvent(e.LOCALE_MONTHS.key);this.cfg.refireEvent(e.LOCALE_WEEKDAYS.key)},configLocaleValues:function(a,c,d){a=a.toLowerCase();d=c[0];var l=this.cfg;c=this.Locale;switch(a){case e.LOCALE_MONTHS.key:switch(d){case b.SHORT:c.LOCALE_MONTHS=l.getProperty(e.MONTHS_SHORT.key).concat();break;case b.LONG:c.LOCALE_MONTHS=l.getProperty(e.MONTHS_LONG.key).concat()}break;case e.LOCALE_WEEKDAYS.key:switch(d){case b.ONE_CHAR:c.LOCALE_WEEKDAYS=
-l.getProperty(e.WEEKDAYS_1CHAR.key).concat();break;case b.SHORT:c.LOCALE_WEEKDAYS=l.getProperty(e.WEEKDAYS_SHORT.key).concat();break;case b.MEDIUM:c.LOCALE_WEEKDAYS=l.getProperty(e.WEEKDAYS_MEDIUM.key).concat();break;case b.LONG:c.LOCALE_WEEKDAYS=l.getProperty(e.WEEKDAYS_LONG.key).concat()}a=l.getProperty(e.START_WEEKDAY.key);if(0<a)for(d=0;d<a;++d)c.LOCALE_WEEKDAYS.push(c.LOCALE_WEEKDAYS.shift())}},configNavigator:function(a,c,b){a=c[0];YAHOO.widget.CalendarNavigator&&(!0===a||g.isObject(a))?this.oNavigator||
-(this.oNavigator=new YAHOO.widget.CalendarNavigator(this),this.beforeRenderEvent.subscribe(function(){this.pages||this.oNavigator.erase()},this,!0)):this.oNavigator&&(this.oNavigator.destroy(),this.oNavigator=null)},initStyles:function(){var a=b._STYLES;this.Style={CSS_ROW_HEADER:a.CSS_ROW_HEADER,CSS_ROW_FOOTER:a.CSS_ROW_FOOTER,CSS_CELL:a.CSS_CELL,CSS_CELL_SELECTOR:a.CSS_CELL_SELECTOR,CSS_CELL_SELECTED:a.CSS_CELL_SELECTED,CSS_CELL_SELECTABLE:a.CSS_CELL_SELECTABLE,CSS_CELL_RESTRICTED:a.CSS_CELL_RESTRICTED,
-CSS_CELL_TODAY:a.CSS_CELL_TODAY,CSS_CELL_OOM:a.CSS_CELL_OOM,CSS_CELL_OOB:a.CSS_CELL_OOB,CSS_HEADER:a.CSS_HEADER,CSS_HEADER_TEXT:a.CSS_HEADER_TEXT,CSS_BODY:a.CSS_BODY,CSS_WEEKDAY_CELL:a.CSS_WEEKDAY_CELL,CSS_WEEKDAY_ROW:a.CSS_WEEKDAY_ROW,CSS_FOOTER:a.CSS_FOOTER,CSS_CALENDAR:a.CSS_CALENDAR,CSS_SINGLE:a.CSS_SINGLE,CSS_CONTAINER:a.CSS_CONTAINER,CSS_NAV_LEFT:a.CSS_NAV_LEFT,CSS_NAV_RIGHT:a.CSS_NAV_RIGHT,CSS_NAV:a.CSS_NAV,CSS_CLOSE:a.CSS_CLOSE,CSS_CELL_TOP:a.CSS_CELL_TOP,CSS_CELL_LEFT:a.CSS_CELL_LEFT,CSS_CELL_RIGHT:a.CSS_CELL_RIGHT,
-CSS_CELL_BOTTOM:a.CSS_CELL_BOTTOM,CSS_CELL_HOVER:a.CSS_CELL_HOVER,CSS_CELL_HIGHLIGHT1:a.CSS_CELL_HIGHLIGHT1,CSS_CELL_HIGHLIGHT2:a.CSS_CELL_HIGHLIGHT2,CSS_CELL_HIGHLIGHT3:a.CSS_CELL_HIGHLIGHT3,CSS_CELL_HIGHLIGHT4:a.CSS_CELL_HIGHLIGHT4}},buildMonthLabel:function(){return this._buildMonthLabel(this.cfg.getProperty(e.PAGEDATE.key))},_buildMonthLabel:function(a){var c=this.Locale.LOCALE_MONTHS[a.getMonth()]+this.Locale.MY_LABEL_MONTH_SUFFIX;a=a.getFullYear()+this.Locale.MY_LABEL_YEAR_SUFFIX;return 2==
-this.Locale.MY_LABEL_MONTH_POSITION||1==this.Locale.MY_LABEL_YEAR_POSITION?a+c:c+a},buildDayLabel:function(a){return a.getDate()},createTitleBar:function(a){var c=d.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE,"div",this.oDomContainer)[0]||document.createElement("div");c.className=YAHOO.widget.CalendarGroup.CSS_2UPTITLE;c.innerHTML=a;this.oDomContainer.insertBefore(c,this.oDomContainer.firstChild);d.addClass(this.oDomContainer,"withtitle");return c},removeTitleBar:function(){var a=
-d.getElementsByClassName(YAHOO.widget.CalendarGroup.CSS_2UPTITLE,"div",this.oDomContainer)[0]||null;a&&(f.purgeElement(a),this.oDomContainer.removeChild(a));d.removeClass(this.oDomContainer,"withtitle")},createCloseButton:function(){var a=YAHOO.widget.CalendarGroup.CSS_2UPCLOSE,c=d.getElementsByClassName("link-close","a",this.oDomContainer)[0],m=this.cfg.getProperty(e.STRINGS.key),m=m&&m.close?m.close:"";c||(c=document.createElement("a"),f.addListener(c,"click",function(a,c){c.hide();f.preventDefault(a)},
-this));c.href="#";c.className="link-close";null!==b.IMG_ROOT?(m=d.getElementsByClassName(a,"img",c)[0]||document.createElement("img"),m.src=b.IMG_ROOT+"us/my/bn/x_d.gif",m.className=a,c.appendChild(m)):c.innerHTML='<span class="'+a+" "+this.Style.CSS_CLOSE+'">'+m+"</span>";this.oDomContainer.appendChild(c);return c},removeCloseButton:function(){var a=d.getElementsByClassName("link-close","a",this.oDomContainer)[0]||null;a&&(f.purgeElement(a),this.oDomContainer.removeChild(a))},renderHeader:function(a){var c=
-7,d=this.cfg,l=d.getProperty(e.PAGEDATE.key),k=d.getProperty(e.STRINGS.key),f=k&&k.previousMonth?k.previousMonth:"",k=k&&k.nextMonth?k.nextMonth:"",g;d.getProperty(e.SHOW_WEEK_HEADER.key)&&(c+=1);d.getProperty(e.SHOW_WEEK_FOOTER.key)&&(c+=1);a[a.length]="<thead>";a[a.length]="<tr>";a[a.length]='<th colspan="'+c+'" class="'+this.Style.CSS_HEADER_TEXT+'">';a[a.length]='<div class="'+this.Style.CSS_HEADER+'">';c=!1;this.parent?(0===this.index&&(g=!0),this.index==this.parent.cfg.getProperty("pages")-
-1&&(c=!0)):c=g=!0;if(g){g=this._buildMonthLabel(h.subtract(l,h.MONTH,1));var r=d.getProperty(e.NAV_ARROW_LEFT.key);null===r&&null!==b.IMG_ROOT&&(r=b.IMG_ROOT+"us/tr/callt.gif");a[a.length]='<a class="'+this.Style.CSS_NAV_LEFT+'"'+(null===r?"":' style="background-image:url('+r+')"')+' href="#">'+f+" ("+g+")</a>"}f=this.buildMonthLabel();if((this.parent||this).cfg.getProperty("navigator"))f='<a class="'+this.Style.CSS_NAV+'" href="#">'+f+"</a>";a[a.length]=f;c&&(g=this._buildMonthLabel(h.add(l,h.MONTH,
-1)),l=d.getProperty(e.NAV_ARROW_RIGHT.key),null===l&&null!==b.IMG_ROOT&&(l=b.IMG_ROOT+"us/tr/calrt.gif"),a[a.length]='<a class="'+this.Style.CSS_NAV_RIGHT+'"'+(null===l?"":' style="background-image:url('+l+')"')+' href="#">'+k+" ("+g+")</a>");a[a.length]="</div>\n</th>\n</tr>";d.getProperty(e.SHOW_WEEKDAYS.key)&&(a=this.buildWeekdays(a));a[a.length]="</thead>";return a},buildWeekdays:function(a){a[a.length]='<tr class="'+this.Style.CSS_WEEKDAY_ROW+'">';this.cfg.getProperty(e.SHOW_WEEK_HEADER.key)&&
-(a[a.length]="<th>&#160;</th>");for(var c=0;c<this.Locale.LOCALE_WEEKDAYS.length;++c)a[a.length]='<th class="calweekdaycell">'+this.Locale.LOCALE_WEEKDAYS[c]+"</th>";this.cfg.getProperty(e.SHOW_WEEK_FOOTER.key)&&(a[a.length]="<th>&#160;</th>");a[a.length]="</tr>";return a},renderBody:function(a,c){var m=this.cfg.getProperty(e.START_WEEKDAY.key);this.preMonthDays=a.getDay();0<m&&(this.preMonthDays-=m);0>this.preMonthDays&&(this.preMonthDays+=7);this.monthDays=h.findMonthEnd(a).getDate();this.postMonthDays=
-b.DISPLAY_DAYS-this.preMonthDays-this.monthDays;a=h.subtract(a,h.DAY,this.preMonthDays);var l,k,f,g,r=this.today;l=this.cfg;var v=r.getFullYear(),H=r.getMonth(),r=r.getDate(),C=l.getProperty(e.PAGEDATE.key),E=l.getProperty(e.HIDE_BLANK_WEEKS.key),I=l.getProperty(e.SHOW_WEEK_FOOTER.key),J=l.getProperty(e.SHOW_WEEK_HEADER.key),z=l.getProperty(e.MINDATE.key),A=l.getProperty(e.MAXDATE.key);z&&(z=h.clearTime(z));A&&(A=h.clearTime(A));c[c.length]='<tbody class="m'+(C.getMonth()+1)+" "+this.Style.CSS_BODY+
-'">';var w=0,F=document.createElement("div"),s=document.createElement("td");F.appendChild(s);for(var x=this.parent||this,D=0;6>D&&!(l=h.getWeekNumber(a,m),k="w"+l,0!==D&&!0===E&&a.getMonth()!=C.getMonth());D++){c[c.length]='<tr class="'+k+'">';J&&(c=this.renderRowHeader(l,c));for(k=0;7>k;k++){f=[];this.clearElement(s);s.className=this.Style.CSS_CELL;s.id=this.id+"_cell"+w;a.getDate()==r&&(a.getMonth()==H&&a.getFullYear()==v)&&(f[f.length]=x.renderCellStyleToday);var B=[a.getFullYear(),a.getMonth()+
-1,a.getDate()];this.cellDates[this.cellDates.length]=B;if(a.getMonth()!=C.getMonth())f[f.length]=x.renderCellNotThisMonth;else{d.addClass(s,"wd"+a.getDay());d.addClass(s,"d"+a.getDate());for(var y=0;y<this.renderStack.length;++y){g=null;var n=this.renderStack[y],p,t,G;switch(n[0]){case b.DATE:p=n[1][1];t=n[1][2];G=n[1][0];a.getMonth()+1==p&&(a.getDate()==t&&a.getFullYear()==G)&&(g=n[2],this.renderStack.splice(y,1));break;case b.MONTH_DAY:p=n[1][0];t=n[1][1];a.getMonth()+1==p&&a.getDate()==t&&(g=n[2],
-this.renderStack.splice(y,1));break;case b.RANGE:t=n[1][0];p=n[1][1];t=h.getDate(t[0],t[1]-1,t[2]);p=h.getDate(p[0],p[1]-1,p[2]);a.getTime()>=t.getTime()&&a.getTime()<=p.getTime()&&(g=n[2],a.getTime()==p.getTime()&&this.renderStack.splice(y,1));break;case b.WEEKDAY:p=n[1][0];a.getDay()+1==p&&(g=n[2]);break;case b.MONTH:p=n[1][0],a.getMonth()+1==p&&(g=n[2])}g&&(f[f.length]=g)}}-1<this._indexOfSelectedFieldArray(B)&&(f[f.length]=x.renderCellStyleSelected);z&&a.getTime()<z.getTime()||A&&a.getTime()>
-A.getTime()?f[f.length]=x.renderOutOfBoundsDate:(f[f.length]=x.styleCellDefault,f[f.length]=x.renderCellDefault);for(g=0;g<f.length&&f[g].call(x,a,s)!=b.STOP_RENDER;++g);a.setTime(a.getTime()+h.ONE_DAY_MS);a=h.clearTime(a);0<=w&&6>=w&&d.addClass(s,this.Style.CSS_CELL_TOP);0===w%7&&d.addClass(s,this.Style.CSS_CELL_LEFT);0===(w+1)%7&&d.addClass(s,this.Style.CSS_CELL_RIGHT);f=this.postMonthDays;if(E&&7<=f){g=Math.floor(f/7);for(B=0;B<g;++B)f-=7}w>=this.preMonthDays+f+this.monthDays-7&&d.addClass(s,this.Style.CSS_CELL_BOTTOM);
-c[c.length]=F.innerHTML;w++}I&&(c=this.renderRowFooter(l,c));c[c.length]="</tr>"}c[c.length]="</tbody>";return c},renderFooter:function(a){return a},render:function(){this.beforeRenderEvent.fire();var a=h.findMonthStart(this.cfg.getProperty(e.PAGEDATE.key));this.resetRenderers();this.cellDates.length=0;f.purgeElement(this.oDomContainer,!0);var c=[];c[c.length]='<table cellSpacing="0" class="'+this.Style.CSS_CALENDAR+" y"+a.getFullYear()+'" id="'+this.id+'">';c=this.renderHeader(c);c=this.renderBody(a,
-c);c=this.renderFooter(c);c[c.length]="</table>";this.oDomContainer.innerHTML=c.join("\n");this.applyListeners();this.cells=this.oDomContainer.getElementsByTagName("td");this.cfg.refireEvent(e.TITLE.key);this.cfg.refireEvent(e.CLOSE.key);this.cfg.refireEvent(e.IFRAME.key);this.renderEvent.fire()},applyListeners:function(){var a=this.oDomContainer,c=this.parent||this,b=d.getElementsByClassName(this.Style.CSS_NAV_LEFT,"a",a),a=d.getElementsByClassName(this.Style.CSS_NAV_RIGHT,"a",a);b&&0<b.length&&
-(this.linkLeft=b[0],f.addListener(this.linkLeft,"click",this.doPreviousMonthNav,c,!0));a&&0<a.length&&(this.linkRight=a[0],f.addListener(this.linkRight,"click",this.doNextMonthNav,c,!0));null!==c.cfg.getProperty("navigator")&&this.applyNavListeners();if(this.domEventMap)for(var e in this.domEventMap)if(g.hasOwnProperty(this.domEventMap,e)){a=this.domEventMap[e];a instanceof Array||(a=[a]);for(var k=0;k<a.length;k++)for(var q=a[k],b=d.getElementsByClassName(e,q.tag,this.oDomContainer),h=0;h<b.length;h++)c=
-b[h],f.addListener(c,q.event,q.handler,q.scope,q.correct)}f.addListener(this.oDomContainer,"click",this.doSelectCell,this);f.addListener(this.oDomContainer,"mouseover",this.doCellMouseOver,this);f.addListener(this.oDomContainer,"mouseout",this.doCellMouseOut,this)},applyNavListeners:function(){var a=this.parent||this,c=this,b=d.getElementsByClassName(this.Style.CSS_NAV,"a",this.oDomContainer);0<b.length&&f.addListener(b,"click",function(b,e){var m=f.getTarget(b);(this===m||d.isAncestor(this,m))&&
-f.preventDefault(b);if(m=a.oNavigator){var g=c.cfg.getProperty("pagedate");m.setYear(g.getFullYear());m.setMonth(g.getMonth());m.show()}})},getDateByCellId:function(a){return(a=this.getDateFieldsByCellId(a))?h.getDate(a[0],a[1]-1,a[2]):null},getDateFieldsByCellId:function(a){a=this.getIndexFromId(a);return-1<a?this.cellDates[a]:null},getCellIndex:function(a){var c=-1;if(a){var b=a.getMonth(),d=a.getFullYear();a=a.getDate();for(var e=this.cellDates,f=0;f<e.length;++f){var g=e[f];if(g[0]===d&&g[1]===
-b+1&&g[2]===a){c=f;break}}}return c},getIndexFromId:function(a){var c=-1,b=a.lastIndexOf("_cell");-1<b&&(c=parseInt(a.substring(b+5),10));return c},renderOutOfBoundsDate:function(a,c){d.addClass(c,this.Style.CSS_CELL_OOB);c.innerHTML=a.getDate();return b.STOP_RENDER},renderRowHeader:function(a,c){c[c.length]='<th class="calrowhead">'+a+"</th>";return c},renderRowFooter:function(a,c){c[c.length]='<th class="calrowfoot">'+a+"</th>";return c},renderCellDefault:function(a,c){c.innerHTML='<a href="#" class="'+
-this.Style.CSS_CELL_SELECTOR+'">'+this.buildDayLabel(a)+"</a>"},styleCellDefault:function(a,c){d.addClass(c,this.Style.CSS_CELL_SELECTABLE)},renderCellStyleHighlight1:function(a,c){d.addClass(c,this.Style.CSS_CELL_HIGHLIGHT1)},renderCellStyleHighlight2:function(a,c){d.addClass(c,this.Style.CSS_CELL_HIGHLIGHT2)},renderCellStyleHighlight3:function(a,c){d.addClass(c,this.Style.CSS_CELL_HIGHLIGHT3)},renderCellStyleHighlight4:function(a,c){d.addClass(c,this.Style.CSS_CELL_HIGHLIGHT4)},renderCellStyleToday:function(a,
-c){d.addClass(c,this.Style.CSS_CELL_TODAY)},renderCellStyleSelected:function(a,c){d.addClass(c,this.Style.CSS_CELL_SELECTED)},renderCellNotThisMonth:function(a,c){d.addClass(c,this.Style.CSS_CELL_OOM);c.innerHTML=a.getDate();return b.STOP_RENDER},renderBodyCellRestricted:function(a,c){d.addClass(c,this.Style.CSS_CELL);d.addClass(c,this.Style.CSS_CELL_RESTRICTED);c.innerHTML=a.getDate();return b.STOP_RENDER},addMonths:function(a){var c=e.PAGEDATE.key;this.cfg.setProperty(c,h.add(this.cfg.getProperty(c),
-h.MONTH,a));this.resetRenderers();this.changePageEvent.fire()},subtractMonths:function(a){var c=e.PAGEDATE.key;this.cfg.setProperty(c,h.subtract(this.cfg.getProperty(c),h.MONTH,a));this.resetRenderers();this.changePageEvent.fire()},addYears:function(a){var c=e.PAGEDATE.key;this.cfg.setProperty(c,h.add(this.cfg.getProperty(c),h.YEAR,a));this.resetRenderers();this.changePageEvent.fire()},subtractYears:function(a){var c=e.PAGEDATE.key;this.cfg.setProperty(c,h.subtract(this.cfg.getProperty(c),h.YEAR,
-a));this.resetRenderers();this.changePageEvent.fire()},nextMonth:function(){this.addMonths(1)},previousMonth:function(){this.subtractMonths(1)},nextYear:function(){this.addYears(1)},previousYear:function(){this.subtractYears(1)},reset:function(){this.cfg.resetProperty(e.SELECTED.key);this.cfg.resetProperty(e.PAGEDATE.key);this.resetEvent.fire()},clear:function(){this.cfg.setProperty(e.SELECTED.key,[]);this.cfg.setProperty(e.PAGEDATE.key,new Date(this.today.getTime()));this.clearEvent.fire()},select:function(a){a=
-this._toFieldArray(a);for(var c=[],b=[],d=e.SELECTED.key,f=0;f<a.length;++f){var g=a[f];this.isDateOOB(this._toDate(g))||(0===c.length&&(this.beforeSelectEvent.fire(),b=this.cfg.getProperty(d)),c.push(g),-1==this._indexOfSelectedFieldArray(g)&&(b[b.length]=g))}0<c.length&&(this.parent?this.parent.cfg.setProperty(d,b):this.cfg.setProperty(d,b),this.selectEvent.fire(c));return this.getSelectedDates()},selectCell:function(a){var c=this.cells[a],b=this.cellDates[a];a=this._toDate(b);if(d.hasClass(c,this.Style.CSS_CELL_SELECTABLE)){this.beforeSelectEvent.fire();
-var f=e.SELECTED.key,k=this.cfg.getProperty(f),b=b.concat();-1==this._indexOfSelectedFieldArray(b)&&(k[k.length]=b);this.parent?this.parent.cfg.setProperty(f,k):this.cfg.setProperty(f,k);this.renderCellStyleSelected(a,c);this.selectEvent.fire([b]);this.doCellMouseOut.call(c,null,this)}return this.getSelectedDates()},deselect:function(a){a=this._toFieldArray(a);for(var c=[],b=[],d=e.SELECTED.key,f=0;f<a.length;++f){var g=a[f];this.isDateOOB(this._toDate(g))||(0===c.length&&(this.beforeDeselectEvent.fire(),
-b=this.cfg.getProperty(d)),c.push(g),g=this._indexOfSelectedFieldArray(g),-1!=g&&b.splice(g,1))}0<c.length&&(this.parent?this.parent.cfg.setProperty(d,b):this.cfg.setProperty(d,b),this.deselectEvent.fire(c));return this.getSelectedDates()},deselectCell:function(a){var c=this.cells[a],b=this.cellDates[a];a=this._indexOfSelectedFieldArray(b);if(d.hasClass(c,this.Style.CSS_CELL_SELECTABLE)){this.beforeDeselectEvent.fire();var f=this.cfg.getProperty(e.SELECTED.key),k=this._toDate(b),b=b.concat();-1<a&&
-(this.cfg.getProperty(e.PAGEDATE.key).getMonth()==k.getMonth()&&this.cfg.getProperty(e.PAGEDATE.key).getFullYear()==k.getFullYear()&&d.removeClass(c,this.Style.CSS_CELL_SELECTED),f.splice(a,1));this.parent?this.parent.cfg.setProperty(e.SELECTED.key,f):this.cfg.setProperty(e.SELECTED.key,f);this.deselectEvent.fire([b])}return this.getSelectedDates()},deselectAll:function(){this.beforeDeselectEvent.fire();var a=e.SELECTED.key,c=this.cfg.getProperty(a),b=c.length,c=c.concat();this.parent?this.parent.cfg.setProperty(a,
-[]):this.cfg.setProperty(a,[]);0<b&&this.deselectEvent.fire(c);return this.getSelectedDates()},_toFieldArray:function(a){var c=[];if(a instanceof Date)c=[[a.getFullYear(),a.getMonth()+1,a.getDate()]];else if(g.isString(a))c=this._parseDates(a);else if(g.isArray(a))for(var b=0;b<a.length;++b){var d=a[b];c[c.length]=[d.getFullYear(),d.getMonth()+1,d.getDate()]}return c},toDate:function(a){return this._toDate(a)},_toDate:function(a){return a instanceof Date?a:h.getDate(a[0],a[1]-1,a[2])},_fieldArraysAreEqual:function(a,
-c){var b=!1;a[0]==c[0]&&(a[1]==c[1]&&a[2]==c[2])&&(b=!0);return b},_indexOfSelectedFieldArray:function(a){for(var c=-1,b=this.cfg.getProperty(e.SELECTED.key),d=0;d<b.length;++d){var f=b[d];if(a[0]==f[0]&&a[1]==f[1]&&a[2]==f[2]){c=d;break}}return c},isDateOOM:function(a){return a.getMonth()!=this.cfg.getProperty(e.PAGEDATE.key).getMonth()},isDateOOB:function(a){var c=this.cfg.getProperty(e.MINDATE.key),b=this.cfg.getProperty(e.MAXDATE.key);c&&(c=h.clearTime(c));b&&(b=h.clearTime(b));a=new Date(a.getTime());
-a=h.clearTime(a);return c&&a.getTime()<c.getTime()||b&&a.getTime()>b.getTime()},_parsePageDate:function(a){if(a)if(a instanceof Date)a=h.findMonthStart(a);else{var c;c=a.split(this.cfg.getProperty(e.DATE_FIELD_DELIMITER.key));a=parseInt(c[this.cfg.getProperty(e.MY_MONTH_POSITION.key)-1],10)-1;c=parseInt(c[this.cfg.getProperty(e.MY_YEAR_POSITION.key)-1],10);a=h.getDate(c,a,1)}else a=h.getDate(this.today.getFullYear(),this.today.getMonth(),1);return a},onBeforeSelect:function(){!1===this.cfg.getProperty(e.MULTI_SELECT.key)&&
-(this.parent?(this.parent.callChildFunction("clearAllBodyCellStyles",this.Style.CSS_CELL_SELECTED),this.parent.deselectAll()):(this.clearAllBodyCellStyles(this.Style.CSS_CELL_SELECTED),this.deselectAll()))},onSelect:function(a){},onBeforeDeselect:function(){},onDeselect:function(a){},onChangePage:function(){this.render()},onRender:function(){},onReset:function(){this.render()},onClear:function(){this.render()},validate:function(){return!0},_parseDate:function(a){a=a.split(this.Locale.DATE_FIELD_DELIMITER);
-2==a.length?(a=[a[this.Locale.MD_MONTH_POSITION-1],a[this.Locale.MD_DAY_POSITION-1]],a.type=b.MONTH_DAY):(a=[a[this.Locale.MDY_YEAR_POSITION-1],a[this.Locale.MDY_MONTH_POSITION-1],a[this.Locale.MDY_DAY_POSITION-1]],a.type=b.DATE);for(var c=0;c<a.length;c++)a[c]=parseInt(a[c],10);return a},_parseDates:function(a){var c=[];a=a.split(this.Locale.DATE_DELIMITER);for(var b=0;b<a.length;++b){var d=a[b];if(-1!=d.indexOf(this.Locale.DATE_RANGE_DELIMITER))var e=d.split(this.Locale.DATE_RANGE_DELIMITER),d=
-this._parseDate(e[0]),e=this._parseDate(e[1]),d=this._parseRange(d,e),c=c.concat(d);else d=this._parseDate(d),c.push(d)}return c},_parseRange:function(a,c){var b=h.add(h.getDate(a[0],a[1]-1,a[2]),h.DAY,1),d=h.getDate(c[0],c[1]-1,c[2]),e=[];for(e.push(a);b.getTime()<=d.getTime();)e.push([b.getFullYear(),b.getMonth()+1,b.getDate()]),b=h.add(b,h.DAY,1);return e},resetRenderers:function(){this.renderStack=this._renderStack.concat()},removeRenderers:function(){this._renderStack=[];this.renderStack=[]},
-clearElement:function(a){a.innerHTML="&#160;";a.className=""},addRenderer:function(a,c){for(var d=this._parseDates(a),e=0;e<d.length;++e){var f=d[e];2==f.length?f[0]instanceof Array?this._addRenderer(b.RANGE,f,c):this._addRenderer(b.MONTH_DAY,f,c):3==f.length&&this._addRenderer(b.DATE,f,c)}},_addRenderer:function(a,c,b){this.renderStack.unshift([a,c,b]);this._renderStack=this.renderStack.concat()},addMonthRenderer:function(a,c){this._addRenderer(b.MONTH,[a],c)},addWeekdayRenderer:function(a,c){this._addRenderer(b.WEEKDAY,
-[a],c)},clearAllBodyCellStyles:function(a){for(var c=0;c<this.cells.length;++c)d.removeClass(this.cells[c],a)},setMonth:function(a){var c=e.PAGEDATE.key,b=this.cfg.getProperty(c);b.setMonth(parseInt(a,10));this.cfg.setProperty(c,b)},setYear:function(a){var c=e.PAGEDATE.key,b=this.cfg.getProperty(c);b.setFullYear(parseInt(a,10));this.cfg.setProperty(c,b)},getSelectedDates:function(){for(var a=[],c=this.cfg.getProperty(e.SELECTED.key),b=0;b<c.length;++b){var d=c[b],d=h.getDate(d[0],d[1]-1,d[2]);a.push(d)}a.sort(function(a,
-c){return a-c});return a},hide:function(){this.beforeHideEvent.fire()&&(this.oDomContainer.style.display="none",this.hideEvent.fire())},show:function(){this.beforeShowEvent.fire()&&(this.oDomContainer.style.display="block",this.showEvent.fire())},browser:function(){var a=navigator.userAgent.toLowerCase();return-1!=a.indexOf("opera")?"opera":-1!=a.indexOf("msie 7")?"ie7":-1!=a.indexOf("msie")?"ie":-1!=a.indexOf("safari")?"safari":-1!=a.indexOf("gecko")?"gecko":!1}(),toString:function(){return"Calendar "+
-this.id},destroy:function(){this.beforeDestroyEvent.fire()&&(this.navigator&&this.navigator.destroy(),this.cfg&&this.cfg.destroy(),f.purgeElement(this.oDomContainer,!0),d.removeClass(this.oDomContainer,"withtitle"),d.removeClass(this.oDomContainer,this.Style.CSS_CONTAINER),d.removeClass(this.oDomContainer,this.Style.CSS_SINGLE),this.oDomContainer.innerHTML="",this.cells=this.oDomContainer=null,this.destroyEvent.fire())}};YAHOO.widget.Calendar=b;YAHOO.widget.Calendar_Core=YAHOO.widget.Calendar;YAHOO.widget.Cal_Core=
-YAHOO.widget.Calendar})();
-(function(){function b(a,b,d){0<arguments.length&&this.init.apply(this,arguments)}var d=YAHOO.util.Dom,f=YAHOO.widget.DateMath,g=YAHOO.util.Event,h=YAHOO.lang,e=YAHOO.widget.Calendar;b._DEFAULT_CONFIG=e._DEFAULT_CONFIG;b._DEFAULT_CONFIG.PAGES={key:"pages",value:2};var a=b._DEFAULT_CONFIG;b.prototype={init:function(a,e,f){var k=this._parseArgs(arguments);a=k.id;e=k.container;f=k.config;this.oDomContainer=d.get(e);this.oDomContainer.id||(this.oDomContainer.id=d.generateId());a||(a=this.oDomContainer.id+
-"_t");this.id=a;this.containerId=this.oDomContainer.id;this.initEvents();this.initStyles();this.pages=[];d.addClass(this.oDomContainer,b.CSS_CONTAINER);d.addClass(this.oDomContainer,b.CSS_MULTI_UP);this.cfg=new YAHOO.util.Config(this);this.Options={};this.Locale={};this.setupConfig();f&&this.cfg.applyConfig(f,!0);this.cfg.fireQueue();YAHOO.env.ua.opera&&(this.renderEvent.subscribe(this._fixWidth,this,!0),this.showEvent.subscribe(this._fixWidth,this,!0))},setupConfig:function(){var c=this.cfg;c.addProperty(a.PAGES.key,
-{value:a.PAGES.value,validator:c.checkNumber,handler:this.configPages});c.addProperty(a.PAGEDATE.key,{value:new Date,handler:this.configPageDate});c.addProperty(a.SELECTED.key,{value:[],handler:this.configSelected});c.addProperty(a.TITLE.key,{value:a.TITLE.value,handler:this.configTitle});c.addProperty(a.CLOSE.key,{value:a.CLOSE.value,handler:this.configClose});c.addProperty(a.IFRAME.key,{value:a.IFRAME.value,handler:this.configIframe,validator:c.checkBoolean});c.addProperty(a.MINDATE.key,{value:a.MINDATE.value,
-handler:this.delegateConfig});c.addProperty(a.MAXDATE.key,{value:a.MAXDATE.value,handler:this.delegateConfig});c.addProperty(a.MULTI_SELECT.key,{value:a.MULTI_SELECT.value,handler:this.delegateConfig,validator:c.checkBoolean});c.addProperty(a.START_WEEKDAY.key,{value:a.START_WEEKDAY.value,handler:this.delegateConfig,validator:c.checkNumber});c.addProperty(a.SHOW_WEEKDAYS.key,{value:a.SHOW_WEEKDAYS.value,handler:this.delegateConfig,validator:c.checkBoolean});c.addProperty(a.SHOW_WEEK_HEADER.key,{value:a.SHOW_WEEK_HEADER.value,
-handler:this.delegateConfig,validator:c.checkBoolean});c.addProperty(a.SHOW_WEEK_FOOTER.key,{value:a.SHOW_WEEK_FOOTER.value,handler:this.delegateConfig,validator:c.checkBoolean});c.addProperty(a.HIDE_BLANK_WEEKS.key,{value:a.HIDE_BLANK_WEEKS.value,handler:this.delegateConfig,validator:c.checkBoolean});c.addProperty(a.NAV_ARROW_LEFT.key,{value:a.NAV_ARROW_LEFT.value,handler:this.delegateConfig});c.addProperty(a.NAV_ARROW_RIGHT.key,{value:a.NAV_ARROW_RIGHT.value,handler:this.delegateConfig});c.addProperty(a.MONTHS_SHORT.key,
-{value:a.MONTHS_SHORT.value,handler:this.delegateConfig});c.addProperty(a.MONTHS_LONG.key,{value:a.MONTHS_LONG.value,handler:this.delegateConfig});c.addProperty(a.WEEKDAYS_1CHAR.key,{value:a.WEEKDAYS_1CHAR.value,handler:this.delegateConfig});c.addProperty(a.WEEKDAYS_SHORT.key,{value:a.WEEKDAYS_SHORT.value,handler:this.delegateConfig});c.addProperty(a.WEEKDAYS_MEDIUM.key,{value:a.WEEKDAYS_MEDIUM.value,handler:this.delegateConfig});c.addProperty(a.WEEKDAYS_LONG.key,{value:a.WEEKDAYS_LONG.value,handler:this.delegateConfig});
-c.addProperty(a.LOCALE_MONTHS.key,{value:a.LOCALE_MONTHS.value,handler:this.delegateConfig});c.addProperty(a.LOCALE_WEEKDAYS.key,{value:a.LOCALE_WEEKDAYS.value,handler:this.delegateConfig});c.addProperty(a.DATE_DELIMITER.key,{value:a.DATE_DELIMITER.value,handler:this.delegateConfig});c.addProperty(a.DATE_FIELD_DELIMITER.key,{value:a.DATE_FIELD_DELIMITER.value,handler:this.delegateConfig});c.addProperty(a.DATE_RANGE_DELIMITER.key,{value:a.DATE_RANGE_DELIMITER.value,handler:this.delegateConfig});c.addProperty(a.MY_MONTH_POSITION.key,
-{value:a.MY_MONTH_POSITION.value,handler:this.delegateConfig,validator:c.checkNumber});c.addProperty(a.MY_YEAR_POSITION.key,{value:a.MY_YEAR_POSITION.value,handler:this.delegateConfig,validator:c.checkNumber});c.addProperty(a.MD_MONTH_POSITION.key,{value:a.MD_MONTH_POSITION.value,handler:this.delegateConfig,validator:c.checkNumber});c.addProperty(a.MD_DAY_POSITION.key,{value:a.MD_DAY_POSITION.value,handler:this.delegateConfig,validator:c.checkNumber});c.addProperty(a.MDY_MONTH_POSITION.key,{value:a.MDY_MONTH_POSITION.value,
-handler:this.delegateConfig,validator:c.checkNumber});c.addProperty(a.MDY_DAY_POSITION.key,{value:a.MDY_DAY_POSITION.value,handler:this.delegateConfig,validator:c.checkNumber});c.addProperty(a.MDY_YEAR_POSITION.key,{value:a.MDY_YEAR_POSITION.value,handler:this.delegateConfig,validator:c.checkNumber});c.addProperty(a.MY_LABEL_MONTH_POSITION.key,{value:a.MY_LABEL_MONTH_POSITION.value,handler:this.delegateConfig,validator:c.checkNumber});c.addProperty(a.MY_LABEL_YEAR_POSITION.key,{value:a.MY_LABEL_YEAR_POSITION.value,
-handler:this.delegateConfig,validator:c.checkNumber});c.addProperty(a.MY_LABEL_MONTH_SUFFIX.key,{value:a.MY_LABEL_MONTH_SUFFIX.value,handler:this.delegateConfig});c.addProperty(a.MY_LABEL_YEAR_SUFFIX.key,{value:a.MY_LABEL_YEAR_SUFFIX.value,handler:this.delegateConfig});c.addProperty(a.NAV.key,{value:a.NAV.value,handler:this.configNavigator});c.addProperty(a.STRINGS.key,{value:a.STRINGS.value,handler:this.configStrings,validator:function(a){return h.isObject(a)},supercedes:a.STRINGS.supercedes})},
-initEvents:function(){var a=this,b=YAHOO.util.CustomEvent,d=function(b,d,e){for(var f=0;f<a.pages.length;++f)a.pages[f][this.type+"Event"].subscribe(b,d,e)},f=function(b,d){for(var e=0;e<a.pages.length;++e)a.pages[e][this.type+"Event"].unsubscribe(b,d)},g=e._EVENT_TYPES;a.beforeSelectEvent=new b(g.BEFORE_SELECT);a.beforeSelectEvent.subscribe=d;a.beforeSelectEvent.unsubscribe=f;a.selectEvent=new b(g.SELECT);a.selectEvent.subscribe=d;a.selectEvent.unsubscribe=f;a.beforeDeselectEvent=new b(g.BEFORE_DESELECT);
-a.beforeDeselectEvent.subscribe=d;a.beforeDeselectEvent.unsubscribe=f;a.deselectEvent=new b(g.DESELECT);a.deselectEvent.subscribe=d;a.deselectEvent.unsubscribe=f;a.changePageEvent=new b(g.CHANGE_PAGE);a.changePageEvent.subscribe=d;a.changePageEvent.unsubscribe=f;a.beforeRenderEvent=new b(g.BEFORE_RENDER);a.beforeRenderEvent.subscribe=d;a.beforeRenderEvent.unsubscribe=f;a.renderEvent=new b(g.RENDER);a.renderEvent.subscribe=d;a.renderEvent.unsubscribe=f;a.resetEvent=new b(g.RESET);a.resetEvent.subscribe=
-d;a.resetEvent.unsubscribe=f;a.clearEvent=new b(g.CLEAR);a.clearEvent.subscribe=d;a.clearEvent.unsubscribe=f;a.beforeShowEvent=new b(g.BEFORE_SHOW);a.showEvent=new b(g.SHOW);a.beforeHideEvent=new b(g.BEFORE_HIDE);a.hideEvent=new b(g.HIDE);a.beforeShowNavEvent=new b(g.BEFORE_SHOW_NAV);a.showNavEvent=new b(g.SHOW_NAV);a.beforeHideNavEvent=new b(g.BEFORE_HIDE_NAV);a.hideNavEvent=new b(g.HIDE_NAV);a.beforeRenderNavEvent=new b(g.BEFORE_RENDER_NAV);a.renderNavEvent=new b(g.RENDER_NAV);a.beforeDestroyEvent=
-new b(g.BEFORE_DESTROY);a.destroyEvent=new b(g.DESTROY)},configPages:function(b,e,f){b=e[0];e=a.PAGEDATE.key;var g;f=null;for(var h=0;h<b;++h){var u=this.id+"_"+h,r=this.containerId+"_"+h,v=this.cfg.getConfig();v.close=!1;v.title=!1;v.navigator=null;0<h&&(g=new Date(f),this._setMonthOnDate(g,g.getMonth()+h),v.pageDate=g);g=this.constructChild(u,r,v);d.removeClass(g.oDomContainer,this.Style.CSS_SINGLE);d.addClass(g.oDomContainer,"groupcal");0===h&&(f=g.cfg.getProperty(e),d.addClass(g.oDomContainer,
-"first-of-type"));h==b-1&&d.addClass(g.oDomContainer,"last-of-type");g.parent=this;g.index=h;this.pages[this.pages.length]=g}},configPageDate:function(b,d,e){b=d[0];var f;d=a.PAGEDATE.key;for(e=0;e<this.pages.length;++e){var g=this.pages[e];if(0===e)f=g._parsePageDate(b),g.cfg.setProperty(d,f);else{var h=new Date(f);this._setMonthOnDate(h,h.getMonth()+e);g.cfg.setProperty(d,h)}}},configSelected:function(b,d,e){var f=a.SELECTED.key;this.delegateConfig(b,d,e);b=0<this.pages.length?this.pages[0].cfg.getProperty(f):
-[];this.cfg.setProperty(f,b,!0)},delegateConfig:function(a,b,d){b=b[0];for(var e=0;e<this.pages.length;e++)d=this.pages[e],d.cfg.setProperty(a,b)},setChildFunction:function(b,d){for(var e=this.cfg.getProperty(a.PAGES.key),f=0;f<e;++f)this.pages[f][b]=d},callChildFunction:function(b,d){for(var e=this.cfg.getProperty(a.PAGES.key),f=0;f<e;++f){var g=this.pages[f];g[b]&&g[b].call(g,d)}},constructChild:function(a,b,d){var f=document.getElementById(b);f||(f=document.createElement("div"),f.id=b,this.oDomContainer.appendChild(f));
-return new e(a,b,d)},setMonth:function(b){b=parseInt(b,10);for(var d,e=a.PAGEDATE.key,f=0;f<this.pages.length;++f){var g=this.pages[f],h=g.cfg.getProperty(e);0===f?d=h.getFullYear():h.setFullYear(d);this._setMonthOnDate(h,b+f);g.cfg.setProperty(e,h)}},setYear:function(b){var d=a.PAGEDATE.key;b=parseInt(b,10);for(var e=0;e<this.pages.length;++e){var f=this.pages[e];1==f.cfg.getProperty(d).getMonth()+1&&0<e&&(b+=1);f.setYear(b)}},render:function(){this.renderHeader();for(var a=0;a<this.pages.length;++a)this.pages[a].render();
-this.renderFooter()},select:function(a){for(var b=0;b<this.pages.length;++b)this.pages[b].select(a);return this.getSelectedDates()},selectCell:function(a){for(var b=0;b<this.pages.length;++b)this.pages[b].selectCell(a);return this.getSelectedDates()},deselect:function(a){for(var b=0;b<this.pages.length;++b)this.pages[b].deselect(a);return this.getSelectedDates()},deselectAll:function(){for(var a=0;a<this.pages.length;++a)this.pages[a].deselectAll();return this.getSelectedDates()},deselectCell:function(a){for(var b=
-0;b<this.pages.length;++b)this.pages[b].deselectCell(a);return this.getSelectedDates()},reset:function(){for(var a=0;a<this.pages.length;++a)this.pages[a].reset()},clear:function(){for(var b=0;b<this.pages.length;++b)this.pages[b].clear();this.cfg.setProperty(a.SELECTED.key,[]);this.cfg.setProperty(a.PAGEDATE.key,new Date(this.pages[0].today.getTime()));this.render()},nextMonth:function(){for(var a=0;a<this.pages.length;++a)this.pages[a].nextMonth()},previousMonth:function(){for(var a=this.pages.length-
-1;0<=a;--a)this.pages[a].previousMonth()},nextYear:function(){for(var a=0;a<this.pages.length;++a)this.pages[a].nextYear()},previousYear:function(){for(var a=0;a<this.pages.length;++a)this.pages[a].previousYear()},getSelectedDates:function(){for(var b=[],d=this.cfg.getProperty(a.SELECTED.key),e=0;e<d.length;++e){var g=d[e],g=f.getDate(g[0],g[1]-1,g[2]);b.push(g)}b.sort(function(a,b){return a-b});return b},addRenderer:function(a,b){for(var d=0;d<this.pages.length;++d)this.pages[d].addRenderer(a,b)},
-addMonthRenderer:function(a,b){for(var d=0;d<this.pages.length;++d)this.pages[d].addMonthRenderer(a,b)},addWeekdayRenderer:function(a,b){for(var d=0;d<this.pages.length;++d)this.pages[d].addWeekdayRenderer(a,b)},removeRenderers:function(){this.callChildFunction("removeRenderers")},renderHeader:function(){},renderFooter:function(){},addMonths:function(a){this.callChildFunction("addMonths",a)},subtractMonths:function(a){this.callChildFunction("subtractMonths",a)},addYears:function(a){this.callChildFunction("addYears",
-a)},subtractYears:function(a){this.callChildFunction("subtractYears",a)},getCalendarPage:function(a){var b=null;if(a){var d=a.getFullYear();a=a.getMonth();for(var e=this.pages,f=0;f<e.length;++f){var g=e[f].cfg.getProperty("pagedate");if(g.getFullYear()===d&&g.getMonth()===a){b=e[f];break}}}return b},_setMonthOnDate:function(a,b){if(YAHOO.env.ua.webkit&&420>YAHOO.env.ua.webkit&&(0>b||11<b)){var d=f.add(a,f.MONTH,b-a.getMonth());a.setTime(d.getTime())}else a.setMonth(b)},_fixWidth:function(){for(var a=
-0,b=0;b<this.pages.length;++b)a+=this.pages[b].oDomContainer.offsetWidth;0<a&&(this.oDomContainer.style.width=a+"px")},toString:function(){return"CalendarGroup "+this.id},destroy:function(){if(this.beforeDestroyEvent.fire()){this.navigator&&this.navigator.destroy();this.cfg&&this.cfg.destroy();g.purgeElement(this.oDomContainer,!0);d.removeClass(this.oDomContainer,b.CSS_CONTAINER);d.removeClass(this.oDomContainer,b.CSS_MULTI_UP);for(var a=0,e=this.pages.length;a<e;a++)this.pages[a].destroy(),this.pages[a]=
-null;this.oDomContainer.innerHTML="";this.oDomContainer=null;this.destroyEvent.fire()}}};b.CSS_CONTAINER="yui-calcontainer";b.CSS_MULTI_UP="multi";b.CSS_2UPTITLE="title";b.CSS_2UPCLOSE="close-icon";YAHOO.lang.augmentProto(b,e,"buildDayLabel","buildMonthLabel","renderOutOfBoundsDate","renderRowHeader","renderRowFooter","renderCellDefault","styleCellDefault","renderCellStyleHighlight1","renderCellStyleHighlight2","renderCellStyleHighlight3","renderCellStyleHighlight4","renderCellStyleToday","renderCellStyleSelected",
-"renderCellNotThisMonth","renderBodyCellRestricted","initStyles","configTitle","configClose","configIframe","configStrings","configNavigator","createTitleBar","createCloseButton","removeTitleBar","removeCloseButton","hide","show","toDate","_toDate","_parseArgs","browser");YAHOO.widget.CalGrp=b;YAHOO.widget.CalendarGroup=b;YAHOO.widget.Calendar2up=function(a,b,d){this.init(a,b,d)};YAHOO.extend(YAHOO.widget.Calendar2up,b);YAHOO.widget.Cal2up=YAHOO.widget.Calendar2up})();
-YAHOO.widget.CalendarNavigator=function(b){this.init(b)};
-(function(){var b=YAHOO.widget.CalendarNavigator;b.CLASSES={NAV:"yui-cal-nav",NAV_VISIBLE:"yui-cal-nav-visible",MASK:"yui-cal-nav-mask",YEAR:"yui-cal-nav-y",MONTH:"yui-cal-nav-m",BUTTONS:"yui-cal-nav-b",BUTTON:"yui-cal-nav-btn",ERROR:"yui-cal-nav-e",YEAR_CTRL:"yui-cal-nav-yc",MONTH_CTRL:"yui-cal-nav-mc",INVALID:"yui-invalid",DEFAULT:"yui-default"};b._DEFAULT_CFG={strings:{month:"Month",year:"Year",submit:"Okay",cancel:"Cancel",invalidYear:"Year needs to be a number"},monthFormat:YAHOO.widget.Calendar.LONG,
-initialFocus:"year"};b.ID_SUFFIX="_nav";b.MONTH_SUFFIX="_month";b.YEAR_SUFFIX="_year";b.ERROR_SUFFIX="_error";b.CANCEL_SUFFIX="_cancel";b.SUBMIT_SUFFIX="_submit";b.YR_MAX_DIGITS=4;b.YR_MINOR_INC=1;b.YR_MAJOR_INC=10;b.UPDATE_DELAY=50;b.YR_PATTERN=/^\d+$/;b.TRIM=/^\s*(.*?)\s*$/})();
-YAHOO.widget.CalendarNavigator.prototype={id:null,cal:null,navEl:null,maskEl:null,yearEl:null,monthEl:null,errorEl:null,submitEl:null,cancelEl:null,firstCtrl:null,lastCtrl:null,_doc:null,_year:null,_month:0,__rendered:!1,init:function(b){var d=b.oDomContainer;this.cal=b;this.id=d.id+YAHOO.widget.CalendarNavigator.ID_SUFFIX;this._doc=d.ownerDocument;this.__isIEQuirks=(b=YAHOO.env.ua.ie)&&(6>=b||"BackCompat"==this._doc.compatMode)},show:function(){var b=YAHOO.widget.CalendarNavigator.CLASSES;this.cal.beforeShowNavEvent.fire()&&
-(this.__rendered||this.render(),this.clearErrors(),this._updateMonthUI(),this._updateYearUI(),this._show(this.navEl,!0),this.setInitialFocus(),this.showMask(),YAHOO.util.Dom.addClass(this.cal.oDomContainer,b.NAV_VISIBLE),this.cal.showNavEvent.fire())},hide:function(){var b=YAHOO.widget.CalendarNavigator.CLASSES;this.cal.beforeHideNavEvent.fire()&&(this._show(this.navEl,!1),this.hideMask(),YAHOO.util.Dom.removeClass(this.cal.oDomContainer,b.NAV_VISIBLE),this.cal.hideNavEvent.fire())},showMask:function(){this._show(this.maskEl,
-!0);this.__isIEQuirks&&this._syncMask()},hideMask:function(){this._show(this.maskEl,!1)},getMonth:function(){return this._month},getYear:function(){return this._year},setMonth:function(b){0<=b&&12>b&&(this._month=b);this._updateMonthUI()},setYear:function(b){var d=YAHOO.widget.CalendarNavigator.YR_PATTERN;YAHOO.lang.isNumber(b)&&d.test(b+"")&&(this._year=b);this._updateYearUI()},render:function(){this.cal.beforeRenderNavEvent.fire();this.__rendered||(this.createNav(),this.createMask(),this.applyListeners(),
-this.__rendered=!0);this.cal.renderNavEvent.fire()},createNav:function(){var b=YAHOO.widget.CalendarNavigator,d=this._doc,f=d.createElement("div");f.className=b.CLASSES.NAV;var g=this.renderNavContents([]);f.innerHTML=g.join("");this.cal.oDomContainer.appendChild(f);this.navEl=f;this.yearEl=d.getElementById(this.id+b.YEAR_SUFFIX);this.monthEl=d.getElementById(this.id+b.MONTH_SUFFIX);this.errorEl=d.getElementById(this.id+b.ERROR_SUFFIX);this.submitEl=d.getElementById(this.id+b.SUBMIT_SUFFIX);this.cancelEl=
-d.getElementById(this.id+b.CANCEL_SUFFIX);YAHOO.env.ua.gecko&&(this.yearEl&&"text"==this.yearEl.type)&&this.yearEl.setAttribute("autocomplete","off");this._setFirstLastElements()},createMask:function(){var b=YAHOO.widget.CalendarNavigator.CLASSES,d=this._doc.createElement("div");d.className=b.MASK;this.cal.oDomContainer.appendChild(d);this.maskEl=d},_syncMask:function(){var b=this.cal.oDomContainer;b&&this.maskEl&&(b=YAHOO.util.Dom.getRegion(b),YAHOO.util.Dom.setStyle(this.maskEl,"width",b.right-
-b.left+"px"),YAHOO.util.Dom.setStyle(this.maskEl,"height",b.bottom-b.top+"px"))},renderNavContents:function(b){var d=YAHOO.widget.CalendarNavigator,f=d.CLASSES;b[b.length]='<div class="'+f.MONTH+'">';this.renderMonth(b);b[b.length]="</div>";b[b.length]='<div class="'+f.YEAR+'">';this.renderYear(b);b[b.length]="</div>";b[b.length]='<div class="'+f.BUTTONS+'">';this.renderButtons(b);b[b.length]="</div>";b[b.length]='<div class="'+f.ERROR+'" id="'+this.id+d.ERROR_SUFFIX+'"></div>';return b},renderMonth:function(b){var d=
-YAHOO.widget.CalendarNavigator,f=d.CLASSES,d=this.id+d.MONTH_SUFFIX,g=this.__getCfg("monthFormat");if((g=this.cal.cfg.getProperty(g==YAHOO.widget.Calendar.SHORT?"MONTHS_SHORT":"MONTHS_LONG"))&&0<g.length){b[b.length]='<label for="'+d+'">';b[b.length]=this.__getCfg("month",!0);b[b.length]="</label>";b[b.length]='<select name="'+d+'" id="'+d+'" class="'+f.MONTH_CTRL+'">';for(f=0;f<g.length;f++)b[b.length]='<option value="'+f+'">',b[b.length]=g[f],b[b.length]="</option>";b[b.length]="</select>"}return b},
-renderYear:function(b){var d=YAHOO.widget.CalendarNavigator,f=d.CLASSES,g=this.id+d.YEAR_SUFFIX,d=d.YR_MAX_DIGITS;b[b.length]='<label for="'+g+'">';b[b.length]=this.__getCfg("year",!0);b[b.length]="</label>";b[b.length]='<input type="text" name="'+g+'" id="'+g+'" class="'+f.YEAR_CTRL+'" maxlength="'+d+'"/>';return b},renderButtons:function(b){var d=YAHOO.widget.CalendarNavigator.CLASSES;b[b.length]='<span class="'+d.BUTTON+" "+d.DEFAULT+'">';b[b.length]='<button type="button" id="'+this.id+'_submit">';
-b[b.length]=this.__getCfg("submit",!0);b[b.length]="</button>";b[b.length]="</span>";b[b.length]='<span class="'+d.BUTTON+'">';b[b.length]='<button type="button" id="'+this.id+'_cancel">';b[b.length]=this.__getCfg("cancel",!0);b[b.length]="</button>";b[b.length]="</span>";return b},applyListeners:function(){var b=YAHOO.util.Event;b.on(this.submitEl,"click",this.submit,this,!0);b.on(this.cancelEl,"click",this.cancel,this,!0);b.on(this.yearEl,"blur",function(){this.validate()&&this.setYear(this._getYearFromUI())},
-this,!0);b.on(this.monthEl,"change",function(){this.setMonth(this._getMonthFromUI())},this,!0);if(this.__isIEQuirks)YAHOO.util.Event.on(this.cal.oDomContainer,"resize",this._syncMask,this,!0);this.applyKeyListeners()},purgeListeners:function(){var b=YAHOO.util.Event;b.removeListener(this.submitEl,"click",this.submit);b.removeListener(this.cancelEl,"click",this.cancel);b.removeListener(this.yearEl,"blur");b.removeListener(this.monthEl,"change");this.__isIEQuirks&&b.removeListener(this.cal.oDomContainer,
-"resize",this._syncMask);this.purgeKeyListeners()},applyKeyListeners:function(){var b=YAHOO.util.Event,d=YAHOO.env.ua,f=d.ie||d.webkit?"keydown":"keypress",d=d.ie||d.opera||d.webkit?"keydown":"keypress";b.on(this.yearEl,"keypress",this._handleEnterKey,this,!0);b.on(this.yearEl,f,this._handleDirectionKeys,this,!0);b.on(this.lastCtrl,d,this._handleTabKey,this,!0);b.on(this.firstCtrl,d,this._handleShiftTabKey,this,!0)},purgeKeyListeners:function(){var b=YAHOO.util.Event,d=YAHOO.env.ua,f=d.ie||d.webkit?
-"keydown":"keypress",d=d.ie||d.opera||d.webkit?"keydown":"keypress";b.removeListener(this.yearEl,"keypress",this._handleEnterKey);b.removeListener(this.yearEl,f,this._handleDirectionKeys);b.removeListener(this.lastCtrl,d,this._handleTabKey);b.removeListener(this.firstCtrl,d,this._handleShiftTabKey)},submit:function(){if(this.validate()){this.hide();this.setMonth(this._getMonthFromUI());this.setYear(this._getYearFromUI());var b=this.cal,d=YAHOO.widget.CalendarNavigator.UPDATE_DELAY;if(0<d){var f=this;
-window.setTimeout(function(){f._update(b)},d)}else this._update(b)}},_update:function(b){b.setYear(this.getYear());b.setMonth(this.getMonth());b.render()},cancel:function(){this.hide()},validate:function(){if(null!==this._getYearFromUI())return this.clearErrors(),!0;this.setYearError();this.setError(this.__getCfg("invalidYear",!0));return!1},setError:function(b){this.errorEl&&(this.errorEl.innerHTML=b,this._show(this.errorEl,!0))},clearError:function(){this.errorEl&&(this.errorEl.innerHTML="",this._show(this.errorEl,
-!1))},setYearError:function(){YAHOO.util.Dom.addClass(this.yearEl,YAHOO.widget.CalendarNavigator.CLASSES.INVALID)},clearYearError:function(){YAHOO.util.Dom.removeClass(this.yearEl,YAHOO.widget.CalendarNavigator.CLASSES.INVALID)},clearErrors:function(){this.clearError();this.clearYearError()},setInitialFocus:function(){var b=this.submitEl,d=this.__getCfg("initialFocus");if(d&&d.toLowerCase)if(d=d.toLowerCase(),"year"==d){b=this.yearEl;try{this.yearEl.select()}catch(f){}}else"month"==d&&(b=this.monthEl);
-if(b&&YAHOO.lang.isFunction(b.focus))try{b.focus()}catch(g){}},erase:function(){if(this.__rendered){this.purgeListeners();this.lastCtrl=this.firstCtrl=this.cancelEl=this.submitEl=this.errorEl=this.monthEl=this.yearEl=null;this.navEl&&(this.navEl.innerHTML="");var b=this.navEl.parentNode;b&&b.removeChild(this.navEl);this.navEl=null;(b=this.maskEl.parentNode)&&b.removeChild(this.maskEl);this.maskEl=null;this.__rendered=!1}},destroy:function(){this.erase();this.id=this.cal=this._doc=null},_show:function(b,
-d){b&&YAHOO.util.Dom.setStyle(b,"display",d?"block":"none")},_getMonthFromUI:function(){return this.monthEl?this.monthEl.selectedIndex:0},_getYearFromUI:function(){var b=YAHOO.widget.CalendarNavigator,d=null;if(this.yearEl){var f=this.yearEl.value,f=f.replace(b.TRIM,"$1");b.YR_PATTERN.test(f)&&(d=parseInt(f,10))}return d},_updateYearUI:function(){this.yearEl&&null!==this._year&&(this.yearEl.value=this._year)},_updateMonthUI:function(){this.monthEl&&(this.monthEl.selectedIndex=this._month)},_setFirstLastElements:function(){this.firstCtrl=
-this.monthEl;this.lastCtrl=this.cancelEl;this.__isMac&&(YAHOO.env.ua.webkit&&420>YAHOO.env.ua.webkit&&(this.firstCtrl=this.monthEl,this.lastCtrl=this.yearEl),YAHOO.env.ua.gecko&&(this.lastCtrl=this.firstCtrl=this.yearEl))},_handleEnterKey:function(b){var d=YAHOO.util.KeyListener.KEY;YAHOO.util.Event.getCharCode(b)==d.ENTER&&(YAHOO.util.Event.preventDefault(b),this.submit())},_handleDirectionKeys:function(b){var d=YAHOO.util.Event,f=YAHOO.util.KeyListener.KEY,g=YAHOO.widget.CalendarNavigator,h=this.yearEl.value?
-parseInt(this.yearEl.value,10):null;if(isFinite(h)){var e=!1;switch(d.getCharCode(b)){case f.UP:this.yearEl.value=h+g.YR_MINOR_INC;e=!0;break;case f.DOWN:this.yearEl.value=Math.max(h-g.YR_MINOR_INC,0);e=!0;break;case f.PAGE_UP:this.yearEl.value=h+g.YR_MAJOR_INC;e=!0;break;case f.PAGE_DOWN:this.yearEl.value=Math.max(h-g.YR_MAJOR_INC,0),e=!0}if(e){d.preventDefault(b);try{this.yearEl.select()}catch(a){}}}},_handleTabKey:function(b){var d=YAHOO.util.Event,f=YAHOO.util.KeyListener.KEY;if(d.getCharCode(b)==
-f.TAB&&!b.shiftKey)try{d.preventDefault(b),this.firstCtrl.focus()}catch(g){}},_handleShiftTabKey:function(b){var d=YAHOO.util.Event,f=YAHOO.util.KeyListener.KEY;if(b.shiftKey&&d.getCharCode(b)==f.TAB)try{d.preventDefault(b),this.lastCtrl.focus()}catch(g){}},__getCfg:function(b,d){var f=YAHOO.widget.CalendarNavigator._DEFAULT_CFG,g=this.cal.cfg.getProperty("navigator");return d?!0!==g&&g.strings&&g.strings[b]?g.strings[b]:f.strings[b]:!0!==g&&g[b]?g[b]:f[b]},__isMac:-1!=navigator.userAgent.toLowerCase().indexOf("macintosh")};
-YAHOO.register("calendar",YAHOO.widget.Calendar,{version:"2.7.0",build:"1799"});
-\r
-YAHOO.util.Attribute=function(e,b){b&&(this.owner=b,this.configure(e,!0))};
-YAHOO.util.Attribute.prototype={name:void 0,value:null,owner:null,readOnly:!1,writeOnce:!1,_initialConfig:null,_written:!1,method:null,setter:null,getter:null,validator:null,getValue:function(){var e=this.value;this.getter&&(e=this.getter.call(this.owner,this.name));return e},setValue:function(e,b){var c,a=this.owner,d=this.name,g={type:d,prevValue:this.getValue(),newValue:e};if(this.readOnly||this.writeOnce&&this._written||this.validator&&!this.validator.call(a,e)||!b&&(c=a.fireBeforeChangeEvent(g),
-!1===c))return!1;this.setter&&(e=this.setter.call(a,e,this.name));this.method&&this.method.call(a,e,this.name);this.value=e;this._written=!0;g.type=d;b||this.owner.fireChangeEvent(g);return!0},configure:function(e,b){e=e||{};b&&(this._written=!1);this._initialConfig=this._initialConfig||{};for(var c in e)e.hasOwnProperty(c)&&(this[c]=e[c],b&&(this._initialConfig[c]=e[c]))},resetValue:function(){return this.setValue(this._initialConfig.value)},resetConfig:function(){this.configure(this._initialConfig,
-!0)},refresh:function(e){this.setValue(this.value,e)}};
-(function(){var e=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(b){this._configs=this._configs||{};var c=this._configs[b];return!c||!this._configs.hasOwnProperty(b)?null:c.getValue()},set:function(b,c,a){this._configs=this._configs||{};b=this._configs[b];return!b?!1:b.setValue(c,a)},getAttributeKeys:function(){this._configs=this._configs;var b=[],c;for(c in this._configs)e.hasOwnProperty(this._configs,c)&&!e.isUndefined(this._configs[c])&&
-(b[b.length]=c);return b},setAttributes:function(b,c){for(var a in b)e.hasOwnProperty(b,a)&&this.set(a,b[a],c)},resetValue:function(b,c){this._configs=this._configs||{};return this._configs[b]?(this.set(b,this._configs[b]._initialConfig.value,c),!0):!1},refresh:function(b,c){var a=this._configs=this._configs||{};b=(e.isString(b)?[b]:b)||this.getAttributeKeys();for(var d=0,g=b.length;d<g;++d)a.hasOwnProperty(b[d])&&this._configs[b[d]].refresh(c)},register:function(b,c){this.setAttributeConfig(b,c)},
-getAttributeConfig:function(b){this._configs=this._configs||{};var c=this._configs[b]||{},a={};for(b in c)e.hasOwnProperty(c,b)&&(a[b]=c[b]);return a},setAttributeConfig:function(b,c,a){this._configs=this._configs||{};c=c||{};this._configs[b]?this._configs[b].configure(c,a):(c.name=b,this._configs[b]=this.createAttribute(c))},configureAttribute:function(b,c,a){this.setAttributeConfig(b,c,a)},resetAttributeConfig:function(b){this._configs=this._configs||{};this._configs[b].resetConfig()},subscribe:function(b,
-c){this._events=this._events||{};b in this._events||(this._events[b]=this.createEvent(b));YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments)},on:function(){this.subscribe.apply(this,arguments)},addListener:function(){this.subscribe.apply(this,arguments)},fireBeforeChangeEvent:function(b){var c;c="before"+(b.type.charAt(0).toUpperCase()+b.type.substr(1)+"Change");b.type=c;return this.fireEvent(b.type,b)},fireChangeEvent:function(b){b.type+="Change";return this.fireEvent(b.type,b)},
-createAttribute:function(b){return new YAHOO.util.Attribute(b,this)}};YAHOO.augment(YAHOO.util.AttributeProvider,YAHOO.util.EventProvider)})();
-(function(){var e=YAHOO.util.Dom,b=YAHOO.util.AttributeProvider,c=function(a,d){this.init.apply(this,arguments)};c.DOM_EVENTS={click:!0,dblclick:!0,keydown:!0,keypress:!0,keyup:!0,mousedown:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,focus:!0,blur:!0,submit:!0,change:!0};c.prototype={DOM_EVENTS:null,DEFAULT_HTML_SETTER:function(a,d){var b=this.get("element");b&&(b[d]=a)},DEFAULT_HTML_GETTER:function(a){var d=this.get("element"),b;d&&(b=d[a]);return b},appendChild:function(a){a=a.get?a.get("element"):
-a;return this.get("element").appendChild(a)},getElementsByTagName:function(a){return this.get("element").getElementsByTagName(a)},hasChildNodes:function(){return this.get("element").hasChildNodes()},insertBefore:function(a,d){a=a.get?a.get("element"):a;d=d&&d.get?d.get("element"):d;return this.get("element").insertBefore(a,d)},removeChild:function(a){a=a.get?a.get("element"):a;return this.get("element").removeChild(a)},replaceChild:function(a,d){a=a.get?a.get("element"):a;d=d.get?d.get("element"):
-d;return this.get("element").replaceChild(a,d)},initAttributes:function(a){},addListener:function(a,d,b,c){var e=this.get("element")||this.get("id");c=c||this;var l=this;this._events[a]||(e&&this.DOM_EVENTS[a]&&YAHOO.util.Event.addListener(e,a,function(d){d.srcElement&&!d.target&&(d.target=d.srcElement);l.fireEvent(a,d)},b,c),this.createEvent(a,this));return YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments)},on:function(){return this.addListener.apply(this,arguments)},subscribe:function(){return this.addListener.apply(this,
-arguments)},removeListener:function(a,d){return this.unsubscribe.apply(this,arguments)},addClass:function(a){e.addClass(this.get("element"),a)},getElementsByClassName:function(a,d){return e.getElementsByClassName(a,d,this.get("element"))},hasClass:function(a){return e.hasClass(this.get("element"),a)},removeClass:function(a){return e.removeClass(this.get("element"),a)},replaceClass:function(a,d){return e.replaceClass(this.get("element"),a,d)},setStyle:function(a,d){return e.setStyle(this.get("element"),
-a,d)},getStyle:function(a){return e.getStyle(this.get("element"),a)},fireQueue:function(){for(var a=this._queue,d=0,b=a.length;d<b;++d)this[a[d][0]].apply(this,a[d][1])},appendTo:function(a,d){a=a.get?a.get("element"):e.get(a);this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:a});d=d&&d.get?d.get("element"):e.get(d);var b=this.get("element");if(!b||!a)return!1;b.parent!=a&&(d?a.insertBefore(b,d):a.appendChild(b));this.fireEvent("appendTo",{type:"appendTo",target:a});return b},get:function(a){var d=
-this._configs||{},c=d.element;c&&(!d[a]&&!YAHOO.lang.isUndefined(c.value[a]))&&this._setHTMLAttrConfig(a);return b.prototype.get.call(this,a)},setAttributes:function(a,b){for(var c={},e=this._configOrder,f=0,l=e.length;f<l;++f)void 0!==a[e[f]]&&(c[e[f]]=!0,this.set(e[f],a[e[f]],b));for(var h in a)a.hasOwnProperty(h)&&!c[h]&&this.set(h,a[h],b)},set:function(a,d,c){var e=this.get("element");if(e)return!this._configs[a]&&!YAHOO.lang.isUndefined(e[a])&&this._setHTMLAttrConfig(a),b.prototype.set.apply(this,
-arguments);this._queue[this._queue.length]=["set",arguments];this._configs[a]&&(this._configs[a].value=d)},setAttributeConfig:function(a,d,c){this._configOrder.push(a);b.prototype.setAttributeConfig.apply(this,arguments)},createEvent:function(a,d){this._events[a]=!0;return b.prototype.createEvent.apply(this,arguments)},init:function(a,b){this._initElement(a,b)},destroy:function(){var a=this.get("element");YAHOO.util.Event.purgeElement(a,!0);this.unsubscribeAll();a&&a.parentNode&&a.parentNode.removeChild(a);
-this._queue=[];this._events={};this._configs={};this._configOrder=[]},_initElement:function(a,b){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};this._configOrder=[];b=b||{};b.element=b.element||a||null;var g=!1,k=c.DOM_EVENTS;this.DOM_EVENTS=this.DOM_EVENTS||{};for(var f in k)k.hasOwnProperty(f)&&(this.DOM_EVENTS[f]=k[f]);"string"===typeof b.element&&this._setHTMLAttrConfig("id",{value:b.element});e.get(b.element)&&(g=!0,this._initHTMLElement(b),this._initContent(b));
-YAHOO.util.Event.onAvailable(b.element,function(){g||this._initHTMLElement(b);this.fireEvent("available",{type:"available",target:e.get(b.element)})},this,!0);YAHOO.util.Event.onContentReady(b.element,function(){g||this._initContent(b);this.fireEvent("contentReady",{type:"contentReady",target:e.get(b.element)})},this,!0)},_initHTMLElement:function(a){this.setAttributeConfig("element",{value:e.get(a.element),readOnly:!0})},_initContent:function(a){this.initAttributes(a);this.setAttributes(a,!0);this.fireQueue()},
-_setHTMLAttrConfig:function(a,b){var c=this.get("element");b=b||{};b.name=a;b.setter=b.setter||this.DEFAULT_HTML_SETTER;b.getter=b.getter||this.DEFAULT_HTML_GETTER;b.value=b.value||c[a];this._configs[a]=new YAHOO.util.Attribute(b,this)}};YAHOO.augment(c,b);YAHOO.util.Element=c})();YAHOO.register("element",YAHOO.util.Element,{version:"2.7.0",build:"1799"});
-\r
-(function(){var a=YAHOO.util,d=function(a,c,f,b){this.init(a,c,f,b)};d.NAME="Anim";d.prototype={toString:function(){var a=this.getEl()||{};return this.constructor.NAME+": "+(a.id||a.tagName)},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(a,c,f){return this.method(this.currentFrame,c,f-c,this.totalFrames)},setAttribute:function(e,
-c,f){var b=this.getEl();this.patterns.noNegatives.test(e)&&(c=0<c?c:0);"style"in b?a.Dom.setStyle(b,e,c+f):e in b&&(b[e]=c)},getAttribute:function(e){var c=this.getEl(),f=a.Dom.getStyle(c,e);if("auto"!==f&&!this.patterns.offsetUnit.test(f))return parseFloat(f);var b=this.patterns.offsetAttribute.exec(e)||[],d=!!b[3],l=!!b[2];"style"in c?f=l||"absolute"==a.Dom.getStyle(c,"position")&&d?c["offset"+b[0].charAt(0).toUpperCase()+b[0].substr(1)]:0:e in c&&(f=c[e]);return f},getDefaultUnit:function(a){return this.patterns.defaultUnit.test(a)?
-"px":""},setRuntimeAttribute:function(a){var c,f,b=this.attributes;this.runtimeAttributes[a]={};var d=function(a){return"undefined"!==typeof a};if(!d(b[a].to)&&!d(b[a].by))return!1;c=d(b[a].from)?b[a].from:this.getAttribute(a);if(d(b[a].to))f=b[a].to;else if(d(b[a].by))if(c.constructor==Array){f=[];for(var l=0,g=c.length;l<g;++l)f[l]=c[l]+1*b[a].by[l]}else f=c+1*b[a].by;this.runtimeAttributes[a].start=c;this.runtimeAttributes[a].end=f;this.runtimeAttributes[a].unit=d(b[a].unit)?b[a].unit:this.getDefaultUnit(a);
-return!0},init:function(e,c,f,b){var d=!1,l=null,g=0;e=a.Dom.get(e);this.attributes=c||{};this.duration=!YAHOO.lang.isUndefined(f)?f:1;this.method=b||a.Easing.easeNone;this.useSeconds=!0;this.currentFrame=0;this.totalFrames=a.AnimMgr.fps;this.setEl=function(b){e=a.Dom.get(b)};this.getEl=function(){return e};this.isAnimated=function(){return d};this.getStartTime=function(){return l};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated())return!1;this.currentFrame=0;this.totalFrames=
-this.useSeconds?Math.ceil(a.AnimMgr.fps*this.duration):this.duration;0===this.duration&&this.useSeconds&&(this.totalFrames=1);a.AnimMgr.registerElement(this);return!0};this.stop=function(b){if(!this.isAnimated())return!1;b&&(this.currentFrame=this.totalFrames,this._onTween.fire());a.AnimMgr.stop(this)};this._onStart=new a.CustomEvent("_start",this,!0);this.onStart=new a.CustomEvent("start",this);this.onTween=new a.CustomEvent("tween",this);this._onTween=new a.CustomEvent("_tween",this,!0);this.onComplete=
-new a.CustomEvent("complete",this);this._onComplete=new a.CustomEvent("_complete",this,!0);this._onStart.subscribe(function(){this.onStart.fire();this.runtimeAttributes={};for(var a in this.attributes)this.setRuntimeAttribute(a);d=!0;g=0;l=new Date});this._onTween.subscribe(function(){var a={duration:new Date-this.getStartTime(),currentFrame:this.currentFrame,toString:function(){return"duration: "+a.duration+", currentFrame: "+a.currentFrame}};this.onTween.fire(a);var b=this.runtimeAttributes,f;for(f in b)this.setAttribute(f,
-this.doMethod(f,b[f].start,b[f].end),b[f].unit);g+=1});this._onComplete.subscribe(function(){var a=(new Date-l)/1E3,b={duration:a,frames:g,fps:g/a,toString:function(){return"duration: "+b.duration+", frames: "+b.frames+", fps: "+b.fps}};d=!1;g=0;this.onComplete.fire(b)})}};a.Anim=d})();
-YAHOO.util.AnimMgr=new function(){var a=null,d=[],e=0;this.fps=1E3;this.delay=1;this.registerElement=function(a){d[d.length]=a;e+=1;a._onStart.fire();this.start()};this.unRegister=function(a,f){var b;if(!(b=f))a:{b=0;for(var m=d.length;b<m;++b)if(d[b]==a)break a;b=-1}f=b;if(!a.isAnimated()||-1==f)return!1;a._onComplete.fire();d.splice(f,1);e-=1;0>=e&&this.stop();return!0};this.start=function(){null===a&&(a=setInterval(this.run,this.delay))};this.stop=function(c){if(c)this.unRegister(c);else{clearInterval(a);
-c=0;for(var f=d.length;c<f;++c)this.unRegister(d[0],0);d=[];a=null;e=0}};this.run=function(){for(var a=0,f=d.length;a<f;++a){var b=d[a];if(b&&b.isAnimated())if(b.currentFrame<b.totalFrames||null===b.totalFrames){b.currentFrame+=1;if(b.useSeconds){var e=b,l=e.totalFrames,g=e.currentFrame,k=1E3*e.currentFrame*e.duration/e.totalFrames,n=new Date-e.getStartTime(),h=0,h=n<1E3*e.duration?Math.round((n/k-1)*e.currentFrame):l-(g+1);0<h&&isFinite(h)&&(e.currentFrame+h>=l&&(h=l-(g+1)),e.currentFrame+=h)}b._onTween.fire()}else YAHOO.util.AnimMgr.stop(b,
-a)}}};YAHOO.util.Bezier=new function(){this.getPosition=function(a,d){for(var e=a.length,c=[],f=0;f<e;++f)c[f]=[a[f][0],a[f][1]];for(var b=1;b<e;++b)for(f=0;f<e-b;++f)c[f][0]=(1-d)*c[f][0]+d*c[parseInt(f+1,10)][0],c[f][1]=(1-d)*c[f][1]+d*c[parseInt(f+1,10)][1];return[c[0][0],c[0][1]]}};
-(function(){var a=function(f,b,e,c){a.superclass.constructor.call(this,f,b,e,c)};a.NAME="ColorAnim";a.DEFAULT_BGCOLOR="#fff";var d=YAHOO.util;YAHOO.extend(a,d.Anim);var e=a.superclass,c=a.prototype;c.patterns.color=/color$/i;c.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;c.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;c.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;c.patterns.transparent=/^transparent|rgba\(0, 0, 0, 0\)$/;c.parseColor=function(a){if(3==
-a.length)return a;var b=this.patterns.hex.exec(a);return b&&4==b.length?[parseInt(b[1],16),parseInt(b[2],16),parseInt(b[3],16)]:(b=this.patterns.rgb.exec(a))&&4==b.length?[parseInt(b[1],10),parseInt(b[2],10),parseInt(b[3],10)]:(b=this.patterns.hex3.exec(a))&&4==b.length?[parseInt(b[1]+b[1],16),parseInt(b[2]+b[2],16),parseInt(b[3]+b[3],16)]:null};c.getAttribute=function(f){var b=this.getEl();if(this.patterns.color.test(f)){var c=YAHOO.util.Dom.getStyle(b,f),l=this;this.patterns.transparent.test(c)&&
-(c=(b=YAHOO.util.Dom.getAncestorBy(b,function(a){return!l.patterns.transparent.test(c)}))?d.Dom.getStyle(b,f):a.DEFAULT_BGCOLOR)}else c=e.getAttribute.call(this,f);return c};c.doMethod=function(a,b,c){var d;if(this.patterns.color.test(a)){d=[];for(var g=0,k=b.length;g<k;++g)d[g]=e.doMethod.call(this,a,b[g],c[g]);d="rgb("+Math.floor(d[0])+","+Math.floor(d[1])+","+Math.floor(d[2])+")"}else d=e.doMethod.call(this,a,b,c);return d};c.setRuntimeAttribute=function(a){e.setRuntimeAttribute.call(this,a);if(this.patterns.color.test(a)){var b=
-this.attributes,c=this.parseColor(this.runtimeAttributes[a].start),d=this.parseColor(this.runtimeAttributes[a].end);if("undefined"===typeof b[a].to&&"undefined"!==typeof b[a].by)for(var d=this.parseColor(b[a].by),b=0,g=c.length;b<g;++b)d[b]=c[b]+d[b];this.runtimeAttributes[a].start=c;this.runtimeAttributes[a].end=d}};d.ColorAnim=a})();
-YAHOO.util.Easing={easeNone:function(a,d,e,c){return e*a/c+d},easeIn:function(a,d,e,c){return e*(a/=c)*a+d},easeOut:function(a,d,e,c){return-e*(a/=c)*(a-2)+d},easeBoth:function(a,d,e,c){return 1>(a/=c/2)?e/2*a*a+d:-e/2*(--a*(a-2)-1)+d},easeInStrong:function(a,d,e,c){return e*(a/=c)*a*a*a+d},easeOutStrong:function(a,d,e,c){return-e*((a=a/c-1)*a*a*a-1)+d},easeBothStrong:function(a,d,e,c){return 1>(a/=c/2)?e/2*a*a*a*a+d:-e/2*((a-=2)*a*a*a-2)+d},elasticIn:function(a,d,e,c,f,b){if(0==a)return d;if(1==
-(a/=c))return d+e;b||(b=0.3*c);!f||f<Math.abs(e)?(f=e,e=b/4):e=b/(2*Math.PI)*Math.asin(e/f);return-(f*Math.pow(2,10*(a-=1))*Math.sin((a*c-e)*2*Math.PI/b))+d},elasticOut:function(a,d,e,c,f,b){if(0==a)return d;if(1==(a/=c))return d+e;b||(b=0.3*c);if(!f||f<Math.abs(e)){f=e;var m=b/4}else m=b/(2*Math.PI)*Math.asin(e/f);return f*Math.pow(2,-10*a)*Math.sin((a*c-m)*2*Math.PI/b)+e+d},elasticBoth:function(a,d,e,c,f,b){if(0==a)return d;if(2==(a/=c/2))return d+e;b||(b=c*0.3*1.5);if(!f||f<Math.abs(e)){f=e;var m=
-b/4}else m=b/(2*Math.PI)*Math.asin(e/f);return 1>a?-0.5*f*Math.pow(2,10*(a-=1))*Math.sin((a*c-m)*2*Math.PI/b)+d:0.5*f*Math.pow(2,-10*(a-=1))*Math.sin((a*c-m)*2*Math.PI/b)+e+d},backIn:function(a,d,e,c,f){"undefined"==typeof f&&(f=1.70158);return e*(a/=c)*a*((f+1)*a-f)+d},backOut:function(a,d,e,c,f){"undefined"==typeof f&&(f=1.70158);return e*((a=a/c-1)*a*((f+1)*a+f)+1)+d},backBoth:function(a,d,e,c,f){"undefined"==typeof f&&(f=1.70158);return 1>(a/=c/2)?e/2*a*a*(((f*=1.525)+1)*a-f)+d:e/2*((a-=2)*a*
-(((f*=1.525)+1)*a+f)+2)+d},bounceIn:function(a,d,e,c){return e-YAHOO.util.Easing.bounceOut(c-a,0,e,c)+d},bounceOut:function(a,d,e,c){return(a/=c)<1/2.75?e*7.5625*a*a+d:a<2/2.75?e*(7.5625*(a-=1.5/2.75)*a+0.75)+d:a<2.5/2.75?e*(7.5625*(a-=2.25/2.75)*a+0.9375)+d:e*(7.5625*(a-=2.625/2.75)*a+0.984375)+d},bounceBoth:function(a,d,e,c){return a<c/2?0.5*YAHOO.util.Easing.bounceIn(2*a,0,e,c)+d:0.5*YAHOO.util.Easing.bounceOut(2*a-c,0,e,c)+0.5*e+d}};
-(function(){var a=function(b,c,e,f){b&&a.superclass.constructor.call(this,b,c,e,f)};a.NAME="Motion";var d=YAHOO.util;YAHOO.extend(a,d.ColorAnim);var e=a.superclass,c=a.prototype;c.patterns.points=/^points$/i;c.setAttribute=function(a,b,c){this.patterns.points.test(a)?(c=c||"px",e.setAttribute.call(this,"left",b[0],c),e.setAttribute.call(this,"top",b[1],c)):e.setAttribute.call(this,a,b,c)};c.getAttribute=function(a){return this.patterns.points.test(a)?[e.getAttribute.call(this,"left"),e.getAttribute.call(this,
-"top")]:e.getAttribute.call(this,a)};c.doMethod=function(a,b,c){var f=null;this.patterns.points.test(a)?(b=this.method(this.currentFrame,0,100,this.totalFrames)/100,f=d.Bezier.getPosition(this.runtimeAttributes[a],b)):f=e.doMethod.call(this,a,b,c);return f};c.setRuntimeAttribute=function(a){if(this.patterns.points.test(a)){var c=this.getEl(),g=this.attributes,k=g.points.control||[],n,h,p;if(0<k.length&&!(k[0]instanceof Array))k=[k];else{var q=[];h=0;for(p=k.length;h<p;++h)q[h]=k[h];k=q}"static"==
-d.Dom.getStyle(c,"position")&&d.Dom.setStyle(c,"position","relative");b(g.points.from)?d.Dom.setXY(c,g.points.from):d.Dom.setXY(c,d.Dom.getXY(c));c=this.getAttribute("points");if(b(g.points.to)){n=f.call(this,g.points.to,c);d.Dom.getXY(this.getEl());h=0;for(p=k.length;h<p;++h)k[h]=f.call(this,k[h],c)}else if(b(g.points.by)){n=[c[0]+g.points.by[0],c[1]+g.points.by[1]];h=0;for(p=k.length;h<p;++h)k[h]=[c[0]+k[h][0],c[1]+k[h][1]]}this.runtimeAttributes[a]=[c];0<k.length&&(this.runtimeAttributes[a]=this.runtimeAttributes[a].concat(k));
-this.runtimeAttributes[a][this.runtimeAttributes[a].length]=n}else e.setRuntimeAttribute.call(this,a)};var f=function(a,b){var c=d.Dom.getXY(this.getEl());return a=[a[0]-c[0]+b[0],a[1]-c[1]+b[1]]},b=function(a){return"undefined"!==typeof a};d.Motion=a})();
-(function(){var a=function(c,b,e,d){c&&a.superclass.constructor.call(this,c,b,e,d)};a.NAME="Scroll";var d=YAHOO.util;YAHOO.extend(a,d.ColorAnim);var e=a.superclass,c=a.prototype;c.doMethod=function(a,b,c){var d=null;return d="scroll"==a?[this.method(this.currentFrame,b[0],c[0]-b[0],this.totalFrames),this.method(this.currentFrame,b[1],c[1]-b[1],this.totalFrames)]:e.doMethod.call(this,a,b,c)};c.getAttribute=function(a){var b=null,b=this.getEl();return b="scroll"==a?[b.scrollLeft,b.scrollTop]:e.getAttribute.call(this,
-a)};c.setAttribute=function(a,b,c){var d=this.getEl();"scroll"==a?(d.scrollLeft=b[0],d.scrollTop=b[1]):e.setAttribute.call(this,a,b,c)};d.Scroll=a})();YAHOO.register("animation",YAHOO.util.Anim,{version:"2.7.0",build:"1799"});
-\r
-/*
-Copyright (c) 2009, Yahoo! Inc. All rights reserved.
-Code licensed under the BSD License:
-http://developer.yahoo.net/yui/license.txt
-version: 2.7.0
-*/
-(function(){var M;YAHOO.widget.Carousel=function(n,m){YAHOO.widget.Carousel.superclass.constructor.call(this,n,m);};var Q=YAHOO.widget.Carousel,a=YAHOO.util.Dom,Y=YAHOO.util.Event,k=YAHOO.lang;M="Carousel";var P={},F="afterScroll",b="allItemsRemoved",X="beforeHide",I="beforePageChange",e="beforeScroll",U="beforeShow",B="blur",T="focus",W="hide",O="itemAdded",j="itemRemoved",C="itemSelected",K="loadItems",H="navigationStateChange",c="pageChange",G="render",R="show",V="startAutoPlay",l="stopAutoPlay",J="uiUpdate";function S(n,m){var o=document.createElement(n);m=m||{};if(m.className){a.addClass(o,m.className);}if(m.parent){m.parent.appendChild(o);}if(m.id){o.setAttribute("id",m.id);}if(m.content){if(m.content.nodeName){o.appendChild(m.content);}else{o.innerHTML=m.content;}}return o;}function Z(o,n,m){var q;if(!o){return 0;}function p(t,s){var u;if(s=="marginRight"&&YAHOO.env.ua.webkit){u=parseInt(a.getStyle(t,"marginLeft"),10);}else{u=parseInt(a.getStyle(t,s),10);}return k.isNumber(u)?u:0;}function r(t,s){var u;if(s=="marginRight"&&YAHOO.env.ua.webkit){u=parseFloat(a.getStyle(t,"marginLeft"));}else{u=parseFloat(a.getStyle(t,s));}return k.isNumber(u)?u:0;}if(typeof m=="undefined"){m="int";}switch(n){case"height":q=o.offsetHeight;if(q>0){q+=p(o,"marginTop")+p(o,"marginBottom");}else{q=r(o,"height")+p(o,"marginTop")+p(o,"marginBottom")+p(o,"borderTopWidth")+p(o,"borderBottomWidth")+p(o,"paddingTop")+p(o,"paddingBottom");}break;case"width":q=o.offsetWidth;if(q>0){q+=p(o,"marginLeft")+p(o,"marginRight");}else{q=r(o,"width")+p(o,"marginLeft")+p(o,"marginRight")+p(o,"borderLeftWidth")+p(o,"borderRightWidth")+p(o,"paddingLeft")+p(o,"paddingRight");}break;default:if(m=="int"){q=p(o,n);}else{if(m=="float"){q=r(o,n);}else{q=a.getStyle(o,n);}}break;}return q;}function L(p){var o=this,q,n=0,m=false;if(o._itemsTable.numItems===0){return 0;}if(typeof p=="undefined"){if(o._itemsTable.size>0){return o._itemsTable.size;}}if(k.isUndefined(o._itemsTable.items[0])){return 0;}q=a.get(o._itemsTable.items[0].id);if(typeof p=="undefined"){m=o.get("isVertical");}else{m=p=="height";}if(m){n=Z(q,"height");}else{n=Z(q,"width");}if(typeof p=="undefined"){o._itemsTable.size=n;}return n;}function D(n){var m=this.get("numVisible");return Math.floor(n/m)*m;}function f(o){var n=0,m=0;n=L.call(this);m=n*o;if(this.get("isVertical")){m-=o;}return m;}function d(m,n){n.scrollPageBackward();Y.preventDefault(m);}function g(m,n){n.scrollPageForward();Y.preventDefault(m);}function i(r,n){var v=this,w=v.CLASSES,m,t=v._firstItem,o=v.get("isCircular"),s=v.get("numItems"),u=v.get("numVisible"),q=n,p=t+u-1;if(q>=0&&q<s){if(!k.isUndefined(v._itemsTable.items[q])){m=a.get(v._itemsTable.items[q].id);if(m){a.removeClass(m,w.SELECTED_ITEM);}}}if(k.isNumber(r)){r=parseInt(r,10);r=k.isNumber(r)?r:0;}else{r=t;}if(k.isUndefined(v._itemsTable.items[r])){r=D.call(v,r);v.scrollTo(r);}if(!k.isUndefined(v._itemsTable.items[r])){m=a.get(v._itemsTable.items[r].id);if(m){a.addClass(m,w.SELECTED_ITEM);}}if(r<t||r>p){r=D.call(v,r);v.scrollTo(r);}}function h(){var o=false,r=this,n=r.CLASSES,q,m,p;if(!r._hasRendered){return;}m=r.get("navigation");p=r._firstItem+r.get("numVisible");if(m.prev){if(r.get("numItems")===0||r._firstItem===0){if(r.get("numItems")===0||!r.get("isCircular")){Y.removeListener(m.prev,"click",d);a.addClass(m.prev,n.FIRST_NAV_DISABLED);for(q=0;q<r._navBtns.prev.length;q++){r._navBtns.prev[q].setAttribute("disabled","true");}r._prevEnabled=false;}else{o=!r._prevEnabled;}}else{o=!r._prevEnabled;}if(o){Y.on(m.prev,"click",d,r);a.removeClass(m.prev,n.FIRST_NAV_DISABLED);for(q=0;q<r._navBtns.prev.length;q++){r._navBtns.prev[q].removeAttribute("disabled");}r._prevEnabled=true;}}o=false;if(m.next){if(p>=r.get("numItems")){if(!r.get("isCircular")){Y.removeListener(m.next,"click",g);a.addClass(m.next,n.DISABLED);for(q=0;q<r._navBtns.next.length;q++){r._navBtns.next[q].setAttribute("disabled","true");}r._nextEnabled=false;}else{o=!r._nextEnabled;}}else{o=!r._nextEnabled;}if(o){Y.on(m.next,"click",g,r);a.removeClass(m.next,n.DISABLED);for(q=0;q<r._navBtns.next.length;q++){r._navBtns.next[q].removeAttribute("disabled");}r._nextEnabled=true;}}r.fireEvent(H,{next:r._nextEnabled,prev:r._prevEnabled});}function N(o){var p=this,m,n;if(!p._hasRendered){return;}n=p.get("numVisible");if(!k.isNumber(o)){o=Math.ceil(p.get("selectedItem")/n);}m=Math.ceil(p.get("numItems")/n);p._pages.num=m;p._pages.cur=o;if(m>p.CONFIG.MAX_PAGER_BUTTONS){p._updatePagerMenu();}else{p._updatePagerButtons();}}function A(n){var m=this;if(!k.isObject(n)){return;}switch(n.ev){case O:m._syncUiForItemAdd(n);break;case j:m._syncUiForItemRemove(n);break;case K:m._syncUiForLazyLoading(n);break;}m.fireEvent(J);}function E(p,n){var r=this,q=r.get("currentPage"),o,m=r.get("numVisible");o=parseInt(r._firstItem/m,10);if(o!=q){r.setAttributeConfig("currentPage",{value:o});r.fireEvent(c,o);}if(r.get("selectOnScroll")){if(r.get("selectedItem")!=r._selectedItem){r.set("selectedItem",r._selectedItem);}}clearTimeout(r._autoPlayTimer);delete r._autoPlayTimer;if(r.isAutoPlayOn()){r.startAutoPlay();}r.fireEvent(F,{first:r._firstItem,last:n},r);}Q.getById=function(m){return P[m]?P[m].object:false;};YAHOO.extend(Q,YAHOO.util.Element,{_animObj:null,_carouselEl:null,_clipEl:null,_firstItem:0,_hasFocus:false,_hasRendered:false,_isAnimationInProgress:false,_isAutoPlayInProgress:false,_itemsTable:null,_navBtns:null,_navEl:null,_nextEnabled:true,_pages:null,_prevEnabled:true,_recomputeSize:true,CLASSES:{BUTTON:"yui-carousel-button",CAROUSEL:"yui-carousel",CAROUSEL_EL:"yui-carousel-element",CONTAINER:"yui-carousel-container",CONTENT:"yui-carousel-content",DISABLED:"yui-carousel-button-disabled",FIRST_NAV:" yui-carousel-first-button",FIRST_NAV_DISABLED:"yui-carousel-first-button-disabled",FIRST_PAGE:"yui-carousel-nav-first-page",FOCUSSED_BUTTON:"yui-carousel-button-focus",HORIZONTAL:"yui-carousel-horizontal",ITEM_LOADING:"yui-carousel-item-loading",MIN_WIDTH:"yui-carousel-min-width",NAVIGATION:"yui-carousel-nav",NEXT_NAV:" yui-carousel-next-button",NEXT_PAGE:"yui-carousel-next",NAV_CONTAINER:"yui-carousel-buttons",PAGE_FOCUS:"yui-carousel-nav-page-focus",PREV_PAGE:"yui-carousel-prev",SELECTED_ITEM:"yui-carousel-item-selected",SELECTED_NAV:"yui-carousel-nav-page-selected",VERTICAL:"yui-carousel-vertical",VERTICAL_CONTAINER:"yui-carousel-vertical-container",VISIBLE:"yui-carousel-visible"},CONFIG:{FIRST_VISIBLE:0,HORZ_MIN_WIDTH:180,MAX_PAGER_BUTTONS:5,VERT_MIN_WIDTH:99,NUM_VISIBLE:3},STRINGS:{ITEM_LOADING_CONTENT:"Loading",NEXT_BUTTON_TEXT:"Next Page",PAGER_PREFIX_TEXT:"Go to page ",PREVIOUS_BUTTON_TEXT:"Previous Page"},addItem:function(r,n){var s=this,p,q,m,o=s.get("numItems");
-if(!r){return false;}if(k.isString(r)||r.nodeName){q=r.nodeName?r.innerHTML:r;}else{if(k.isObject(r)){q=r.content;}else{return false;}}p=r.className||"";m=r.id?r.id:a.generateId();if(k.isUndefined(n)){s._itemsTable.items.push({item:q,className:p,id:m});}else{if(n<0||n>=o){return false;}s._itemsTable.items.splice(n,0,{item:q,className:p,id:m});}s._itemsTable.numItems++;if(o<s._itemsTable.items.length){s.set("numItems",s._itemsTable.items.length);}s.fireEvent(O,{pos:n,ev:O});return true;},addItems:function(m){var o,q,p=true;if(!k.isArray(m)){return false;}for(o=0,q=m.length;o<q;o++){if(this.addItem(m[o][0],m[o][1])===false){p=false;}}return p;},blur:function(){this._carouselEl.blur();this.fireEvent(B);},clearItems:function(){var m=this,o=m.get("numItems");while(o>0){if(!m.removeItem(0)){}if(m._itemsTable.numItems===0){m.set("numItems",0);break;}o--;}m.fireEvent(b);},focus:function(){var v=this,q,r,s,p,u,w,n,o,m;if(!v._hasRendered){return;}if(v.isAnimating()){return;}m=v.get("selectedItem");w=v.get("numVisible");n=v.get("selectOnScroll");o=(m>=0)?v.getItem(m):null;q=v.get("firstVisible");u=q+w-1;s=(m<q||m>u);r=(o&&o.id)?a.get(o.id):null;p=v._itemsTable;if(!n&&s){r=(p&&p.items&&p.items[q])?a.get(p.items[q].id):null;}if(r){try{r.focus();}catch(t){}}v.fireEvent(T);},hide:function(){var m=this;if(m.fireEvent(X)!==false){m.removeClass(m.CLASSES.VISIBLE);m.fireEvent(W);}},init:function(o,n){var p=this,m=o,q=false;if(!o){return;}p._hasRendered=false;p._navBtns={prev:[],next:[]};p._pages={el:null,num:0,cur:0};p._itemsTable={loading:{},numItems:0,items:[],size:0};if(k.isString(o)){o=a.get(o);}else{if(!o.nodeName){return;}}Q.superclass.init.call(p,o,n);if(o){if(!o.id){o.setAttribute("id",a.generateId());}q=p._parseCarousel(o);if(!q){p._createCarousel(m);}}else{o=p._createCarousel(m);}m=o.id;p.initEvents();if(q){p._parseCarouselItems();}if(!n||typeof n.isVertical=="undefined"){p.set("isVertical",false);}p._parseCarouselNavigation(o);p._navEl=p._setupCarouselNavigation();P[m]={object:p};p._loadItems();},initAttributes:function(m){var n=this;m=m||{};Q.superclass.initAttributes.call(n,m);n.setAttributeConfig("carouselEl",{validator:k.isString,value:m.carouselEl||"OL"});n.setAttributeConfig("carouselItemEl",{validator:k.isString,value:m.carouselItemEl||"LI"});n.setAttributeConfig("currentPage",{readOnly:true,value:0});n.setAttributeConfig("firstVisible",{method:n._setFirstVisible,validator:n._validateFirstVisible,value:m.firstVisible||n.CONFIG.FIRST_VISIBLE});n.setAttributeConfig("selectOnScroll",{validator:k.isBoolean,value:m.selectOnScroll||true});n.setAttributeConfig("numVisible",{method:n._setNumVisible,validator:n._validateNumVisible,value:m.numVisible||n.CONFIG.NUM_VISIBLE});n.setAttributeConfig("numItems",{method:n._setNumItems,validator:n._validateNumItems,value:n._itemsTable.numItems});n.setAttributeConfig("scrollIncrement",{validator:n._validateScrollIncrement,value:m.scrollIncrement||1});n.setAttributeConfig("selectedItem",{method:n._setSelectedItem,validator:k.isNumber,value:-1});n.setAttributeConfig("revealAmount",{method:n._setRevealAmount,validator:n._validateRevealAmount,value:m.revealAmount||0});n.setAttributeConfig("isCircular",{validator:k.isBoolean,value:m.isCircular||false});n.setAttributeConfig("isVertical",{method:n._setOrientation,validator:k.isBoolean,value:m.isVertical||false});n.setAttributeConfig("navigation",{method:n._setNavigation,validator:n._validateNavigation,value:m.navigation||{prev:null,next:null,page:null}});n.setAttributeConfig("animation",{validator:n._validateAnimation,value:m.animation||{speed:0,effect:null}});n.setAttributeConfig("autoPlay",{validator:k.isNumber,value:m.autoPlay||0});n.setAttributeConfig("autoPlayInterval",{validator:k.isNumber,value:m.autoPlayInterval||0});},initEvents:function(){var o=this,n=o.CLASSES,m;o.on("keydown",o._keyboardEventHandler);o.on(F,h);o.on(O,A);o.on(j,A);o.on(C,function(){if(o._hasFocus){o.focus();}});o.on(K,A);o.on(b,function(p){o.scrollTo(0);h.call(o);N.call(o);});o.on(c,N,o);o.on(G,function(p){o.set("selectedItem",o.get("firstVisible"));h.call(o,p);N.call(o,p);o._setClipContainerSize();});o.on("selectedItemChange",function(p){i.call(o,p.newValue,p.prevValue);if(p.newValue>=0){o._updateTabIndex(o.getElementForItem(p.newValue));}o.fireEvent(C,p.newValue);});o.on(J,function(p){h.call(o,p);N.call(o,p);});o.on("firstVisibleChange",function(p){if(!o.get("selectOnScroll")){if(p.newValue>=0){o._updateTabIndex(o.getElementForItem(p.newValue));}}});o.on("click",function(p){if(o.isAutoPlayOn()){o.stopAutoPlay();}o._itemClickHandler(p);o._pagerClickHandler(p);});Y.onFocus(o.get("element"),function(p,r){var q=Y.getTarget(p);if(q&&q.nodeName.toUpperCase()=="A"&&a.getAncestorByClassName(q,n.NAVIGATION)){if(m){a.removeClass(m,n.PAGE_FOCUS);}m=q.parentNode;a.addClass(m,n.PAGE_FOCUS);}else{if(m){a.removeClass(m,n.PAGE_FOCUS);}}r._hasFocus=true;r._updateNavButtons(Y.getTarget(p),true);},o);Y.onBlur(o.get("element"),function(p,q){q._hasFocus=false;q._updateNavButtons(Y.getTarget(p),false);},o);},isAnimating:function(){return this._isAnimationInProgress;},isAutoPlayOn:function(){return this._isAutoPlayInProgress;},getElementForItem:function(m){var n=this;if(m<0||m>=n.get("numItems")){return null;}if(n._itemsTable.numItems>m){if(!k.isUndefined(n._itemsTable.items[m])){return a.get(n._itemsTable.items[m].id);}}return null;},getElementForItems:function(){var o=this,n=[],m;for(m=0;m<o._itemsTable.numItems;m++){n.push(o.getElementForItem(m));}return n;},getItem:function(m){var n=this;if(m<0||m>=n.get("numItems")){return null;}if(n._itemsTable.numItems>m){if(!k.isUndefined(n._itemsTable.items[m])){return n._itemsTable.items[m];}}return null;},getItems:function(m){return this._itemsTable.items;},getItemPositionById:function(q){var o=this,m=0,p=o._itemsTable.numItems;while(m<p){if(!k.isUndefined(o._itemsTable.items[m])){if(o._itemsTable.items[m].id==q){return m;}}m++;}return -1;},getVisibleItems:function(){var p=this,m=p.get("firstVisible"),q=m+p.get("numVisible"),o=[];
-while(m<q){o.push(p.getElementForItem(m));m++;}return o;},removeItem:function(n){var p=this,o,m=p.get("numItems");if(n<0||n>=m){return false;}o=p._itemsTable.items.splice(n,1);if(o&&o.length==1){p._itemsTable.numItems--;p.set("numItems",m-1);p.fireEvent(j,{item:o[0],pos:n,ev:j});return true;}return false;},render:function(n){var o=this,m=o.CLASSES;o.addClass(m.CAROUSEL);if(!o._clipEl){o._clipEl=o._createCarouselClip();o._clipEl.appendChild(o._carouselEl);}if(n){o.appendChild(o._clipEl);o.appendTo(n);}else{if(!a.inDocument(o.get("element"))){return false;}o.appendChild(o._clipEl);}if(o.get("isVertical")){o.addClass(m.VERTICAL);}else{o.addClass(m.HORIZONTAL);}if(o.get("numItems")<1){return false;}o._refreshUi();return true;},scrollBackward:function(){var m=this;m.scrollTo(m._firstItem-m.get("scrollIncrement"));},scrollForward:function(){var m=this;m.scrollTo(m._firstItem+m.get("scrollIncrement"));},scrollPageBackward:function(){var n=this,m=n._firstItem-n.get("numVisible");if(n.get("selectOnScroll")){n._selectedItem=n._getSelectedItem(m);}else{m=n._getValidIndex(m);}n.scrollTo(m);},scrollPageForward:function(){var n=this,m=n._firstItem+n.get("numVisible");if(n.get("selectOnScroll")){n._selectedItem=n._getSelectedItem(m);}else{m=n._getValidIndex(m);}n.scrollTo(m);},scrollTo:function(AB,n){var AA=this,m,r,p,z,x,w,u,v,q,t,o,s,y;if(k.isUndefined(AB)||AB==AA._firstItem||AA.isAnimating()){return;}r=AA.get("animation");p=AA.get("isCircular");w=AA._firstItem;u=AA.get("numItems");v=AA.get("numVisible");t=AA.get("currentPage");y=function(){if(AA.isAutoPlayOn()){AA.stopAutoPlay();}};if(AB<0){if(p){AB=u+AB;}else{y.call(AA);return;}}else{if(u>0&&AB>u-1){if(AA.get("isCircular")){AB=u-AB;}else{y.call(AA);return;}}}x=(AA._firstItem>AB)?"backward":"forward";s=w+v;s=(s>u-1)?u-1:s;o=AA.fireEvent(e,{dir:x,first:w,last:s});if(o===false){return;}AA.fireEvent(I,{page:t});z=w-AB;AA._firstItem=AB;AA.set("firstVisible",AB);AA._loadItems();s=AB+v;s=(s>u-1)?u-1:s;q=f.call(AA,z);m=r.speed>0;if(m){AA._animateAndSetCarouselOffset(q,AB,s,n);}else{AA._setCarouselOffset(q);E.call(AA,AB,s);}},selectPreviousItem:function(){var o=this,n=0,m=o.get("selectedItem");if(m==this._firstItem){n=m-o.get("numVisible");o._selectedItem=o._getSelectedItem(m-1);o.scrollTo(n);}else{n=o.get("selectedItem")-o.get("scrollIncrement");o.set("selectedItem",o._getSelectedItem(n));}},selectNextItem:function(){var n=this,m=0;m=n.get("selectedItem")+n.get("scrollIncrement");n.set("selectedItem",n._getSelectedItem(m));},show:function(){var n=this,m=n.CLASSES;if(n.fireEvent(U)!==false){n.addClass(m.VISIBLE);n.fireEvent(R);}},startAutoPlay:function(){var m=this,n;if(k.isUndefined(m._autoPlayTimer)){n=m.get("autoPlayInterval");if(n<=0){return;}m._isAutoPlayInProgress=true;m.fireEvent(V);m._autoPlayTimer=setTimeout(function(){m._autoScroll();},n);}},stopAutoPlay:function(){var m=this;if(!k.isUndefined(m._autoPlayTimer)){clearTimeout(m._autoPlayTimer);delete m._autoPlayTimer;m._isAutoPlayInProgress=false;m.fireEvent(l);}},toString:function(){return M+(this.get?" (#"+this.get("id")+")":"");},_animateAndSetCarouselOffset:function(r,p,n){var q=this,o=q.get("animation"),m=null;if(q.get("isVertical")){m=new YAHOO.util.Motion(q._carouselEl,{points:{by:[0,r]}},o.speed,o.effect);}else{m=new YAHOO.util.Motion(q._carouselEl,{points:{by:[r,0]}},o.speed,o.effect);}q._isAnimationInProgress=true;m.onComplete.subscribe(q._animationCompleteHandler,{scope:q,item:p,last:n});m.animate();},_animationCompleteHandler:function(m,n,q){q.scope._isAnimationInProgress=false;E.call(q.scope,q.item,q.last);},_autoScroll:function(){var n=this,o=n._firstItem,m;if(o>=n.get("numItems")-1){if(n.get("isCircular")){m=0;}else{n.stopAutoPlay();}}else{m=o+n.get("numVisible");}n._selectedItem=n._getSelectedItem(m);n.scrollTo.call(n,m);},_createCarousel:function(n){var p=this,m=p.CLASSES,o=a.get(n);if(!o){o=S("DIV",{className:m.CAROUSEL,id:n});}if(!p._carouselEl){p._carouselEl=S(p.get("carouselEl"),{className:m.CAROUSEL_EL});}return o;},_createCarouselClip:function(){return S("DIV",{className:this.CLASSES.CONTENT});},_createCarouselItem:function(m){return S(this.get("carouselItemEl"),{className:m.className,content:m.content,id:m.id});},_getValidIndex:function(o){var q=this,m=q.get("isCircular"),p=q.get("numItems"),n=p-1;if(o<0){o=m?p+o:0;}else{if(o>n){o=m?o-p:n;}}return o;},_getSelectedItem:function(q){var p=this,m=p.get("isCircular"),o=p.get("numItems"),n=o-1;if(q<0){if(m){q=o+q;}else{q=p.get("selectedItem");}}else{if(q>n){if(m){q=q-o;}else{q=p.get("selectedItem");}}}return q;},_itemClickHandler:function(p){var r=this,m=r.get("element"),n,o,q=YAHOO.util.Event.getTarget(p);while(q&&q!=m&&q.id!=r._carouselEl){n=q.nodeName;if(n.toUpperCase()==r.get("carouselItemEl")){break;}q=q.parentNode;}if((o=r.getItemPositionById(q.id))>=0){r.set("selectedItem",r._getSelectedItem(o));r.focus();}},_keyboardEventHandler:function(o){var p=this,n=Y.getCharCode(o),m=false;if(p.isAnimating()){return;}switch(n){case 37:case 38:p.selectPreviousItem();m=true;break;case 39:case 40:p.selectNextItem();m=true;break;case 33:p.scrollPageBackward();m=true;break;case 34:p.scrollPageForward();m=true;break;}if(m){if(p.isAutoPlayOn()){p.stopAutoPlay();}Y.preventDefault(o);}},_loadItems:function(){var q=this,r=q.get("firstVisible"),n=0,m=q.get("numItems"),o=q.get("numVisible"),p=q.get("revealAmount");n=r+o-1+(p?1:0);n=n>m-1?m-1:n;if(!q.getItem(r)||!q.getItem(n)){q.fireEvent(K,{ev:K,first:r,last:n,num:n-r});}},_pagerClickHandler:function(n){var p=this,r,o=Y.getTarget(n),q;function m(t){var s=p.get("carouselItemEl");if(t.nodeName.toUpperCase()==s.toUpperCase()){t=a.getChildrenBy(t,function(u){return u.href||u.value;});if(t&&t[0]){return t[0];}}else{if(t.href||t.value){return t;}}return null;}if(o){o=m(o);if(!o){return;}q=o.href||o.value;if(k.isString(q)&&q){r=q.lastIndexOf("#");if(r!=-1){q=p.getItemPositionById(q.substring(r+1));p._selectedItem=q;p.scrollTo(q);if(!o.value){p.focus();}Y.preventDefault(n);}}}},_parseCarousel:function(o){var r=this,s,m,n,q,p;
-m=r.CLASSES;n=r.get("carouselEl");q=false;for(s=o.firstChild;s;s=s.nextSibling){if(s.nodeType==1){p=s.nodeName;if(p.toUpperCase()==n){r._carouselEl=s;a.addClass(r._carouselEl,r.CLASSES.CAROUSEL_EL);q=true;}}}return q;},_parseCarouselItems:function(){var q=this,r,m,n,p,o=q._carouselEl;m=q.get("carouselItemEl");for(r=o.firstChild;r;r=r.nextSibling){if(r.nodeType==1){p=r.nodeName;if(p.toUpperCase()==m){if(r.id){n=r.id;}else{n=a.generateId();r.setAttribute("id",n);}q.addItem(r);}}}},_parseCarouselNavigation:function(s){var t=this,r,u=t.CLASSES,n,q,p,m,o=false;m=a.getElementsByClassName(u.PREV_PAGE,"*",s);if(m.length>0){for(q in m){if(m.hasOwnProperty(q)){n=m[q];if(n.nodeName=="INPUT"||n.nodeName=="BUTTON"){t._navBtns.prev.push(n);}else{p=n.getElementsByTagName("INPUT");if(k.isArray(p)&&p.length>0){t._navBtns.prev.push(p[0]);}else{p=n.getElementsByTagName("BUTTON");if(k.isArray(p)&&p.length>0){t._navBtns.prev.push(p[0]);}}}}}r={prev:m};}m=a.getElementsByClassName(u.NEXT_PAGE,"*",s);if(m.length>0){for(q in m){if(m.hasOwnProperty(q)){n=m[q];if(n.nodeName=="INPUT"||n.nodeName=="BUTTON"){t._navBtns.next.push(n);}else{p=n.getElementsByTagName("INPUT");if(k.isArray(p)&&p.length>0){t._navBtns.next.push(p[0]);}else{p=n.getElementsByTagName("BUTTON");if(k.isArray(p)&&p.length>0){t._navBtns.next.push(p[0]);}}}}}if(r){r.next=m;}else{r={next:m};}}if(r){t.set("navigation",r);o=true;}return o;},_refreshUi:function(){var m=this;m._hasRendered=true;m.fireEvent(G);},_setCarouselOffset:function(o){var m=this,n;n=m.get("isVertical")?"top":"left";o+=o!==0?Z(m._carouselEl,n):0;a.setStyle(m._carouselEl,n,o+"px");},_setupCarouselNavigation:function(){var r=this,p,n,m,t,q,s,o;m=r.CLASSES;q=a.getElementsByClassName(m.NAVIGATION,"DIV",r.get("element"));if(q.length===0){q=S("DIV",{className:m.NAVIGATION});r.insertBefore(q,a.getFirstChild(r.get("element")));}else{q=q[0];}r._pages.el=S("UL");q.appendChild(r._pages.el);t=r.get("navigation");if(k.isString(t.prev)||k.isArray(t.prev)){if(k.isString(t.prev)){t.prev=[t.prev];}for(p in t.prev){if(t.prev.hasOwnProperty(p)){r._navBtns.prev.push(a.get(t.prev[p]));}}}else{o=S("SPAN",{className:m.BUTTON+m.FIRST_NAV});a.setStyle(o,"visibility","visible");p=a.generateId();o.innerHTML='<button type="button" '+'id="'+p+'" name="'+r.STRINGS.PREVIOUS_BUTTON_TEXT+'">'+r.STRINGS.PREVIOUS_BUTTON_TEXT+"</button>";q.appendChild(o);p=a.get(p);r._navBtns.prev=[p];n={prev:[o]};}if(k.isString(t.next)||k.isArray(t.next)){if(k.isString(t.next)){t.next=[t.next];}for(p in t.next){if(t.next.hasOwnProperty(p)){r._navBtns.next.push(a.get(t.next[p]));}}}else{s=S("SPAN",{className:m.BUTTON+m.NEXT_NAV});a.setStyle(s,"visibility","visible");p=a.generateId();s.innerHTML='<button type="button" '+'id="'+p+'" name="'+r.STRINGS.NEXT_BUTTON_TEXT+'">'+r.STRINGS.NEXT_BUTTON_TEXT+"</button>";q.appendChild(s);p=a.get(p);r._navBtns.next=[p];if(n){n.next=[s];}else{n={next:[s]};}}if(n){r.set("navigation",n);}return q;},_setClipContainerSize:function(n,p){var u=this,q,m,r,s,t,v,o;r=u.get("isVertical");t=u.get("revealAmount");o=r?"height":"width";q=r?"top":"left";n=n||u._clipEl;if(!n){return;}p=p||u.get("numVisible");s=L.call(u,o);v=s*p;u._recomputeSize=(v===0);if(u._recomputeSize){u._hasRendered=false;return;}if(t>0){t=s*(t/100)*2;v+=t;m=parseFloat(a.getStyle(u._carouselEl,q));m=k.isNumber(m)?m:0;a.setStyle(u._carouselEl,q,m+(t/2)+"px");}if(r){v+=Z(u._carouselEl,"marginTop")+Z(u._carouselEl,"marginBottom")+Z(u._carouselEl,"paddingTop")+Z(u._carouselEl,"paddingBottom")+Z(u._carouselEl,"borderTopWidth")+Z(u._carouselEl,"borderBottomWidth");a.setStyle(n,o,(v-(p-1))+"px");}else{v+=Z(u._carouselEl,"marginLeft")+Z(u._carouselEl,"marginRight")+Z(u._carouselEl,"paddingLeft")+Z(u._carouselEl,"paddingRight")+Z(u._carouselEl,"borderLeftWidth")+Z(u._carouselEl,"borderRightWidth");a.setStyle(n,o,v+"px");}u._setContainerSize(n);},_setContainerSize:function(q,m){var r=this,o=r.CONFIG,n=r.CLASSES,s,p;s=r.get("isVertical");q=q||r._clipEl;m=m||(s?"height":"width");p=parseFloat(a.getStyle(q,m),10);p=k.isNumber(p)?p:0;if(s){p+=Z(r._carouselEl,"marginTop")+Z(r._carouselEl,"marginBottom")+Z(r._carouselEl,"paddingTop")+Z(r._carouselEl,"paddingBottom")+Z(r._carouselEl,"borderTopWidth")+Z(r._carouselEl,"borderBottomWidth")+Z(r._navEl,"height");}else{p+=Z(q,"marginLeft")+Z(q,"marginRight")+Z(q,"paddingLeft")+Z(q,"paddingRight")+Z(q,"borderLeftWidth")+Z(q,"borderRightWidth");}if(!s){if(p<o.HORZ_MIN_WIDTH){p=o.HORZ_MIN_WIDTH;r.addClass(n.MIN_WIDTH);}}r.setStyle(m,p+"px");if(s){p=L.call(r,"width");if(p<o.VERT_MIN_WIDTH){p=o.VERT_MIN_WIDTH;r.addClass(n.MIN_WIDTH);}r.setStyle("width",p+"px");}},_setFirstVisible:function(n){var m=this;if(n>=0&&n<m.get("numItems")){m.scrollTo(n);}else{n=m.get("firstVisible");}return n;},_setNavigation:function(m){var n=this;if(m.prev){Y.on(m.prev,"click",d,n);}if(m.next){Y.on(m.next,"click",g,n);}},_setNumVisible:function(n){var m=this;m._setClipContainerSize(m._clipEl,n);},_setNumItems:function(o){var n=this,m=n._itemsTable.numItems;if(k.isArray(n._itemsTable.items)){if(n._itemsTable.items.length!=m){m=n._itemsTable.items.length;n._itemsTable.numItems=m;}}if(o<m){while(m>o){n.removeItem(m-1);m--;}}return o;},_setOrientation:function(o){var n=this,m=n.CLASSES;if(o){n.replaceClass(m.HORIZONTAL,m.VERTICAL);}else{n.replaceClass(m.VERTICAL,m.HORIZONTAL);}n._itemsTable.size=0;return o;},_setRevealAmount:function(n){var m=this;if(n>=0&&n<=100){n=parseInt(n,10);n=k.isNumber(n)?n:0;m._setClipContainerSize();}else{n=m.get("revealAmount");}return n;},_setSelectedItem:function(m){this._selectedItem=m;},_syncUiForItemAdd:function(p){var t=this,r=t._carouselEl,m,u,o=t._itemsTable,n,q,s;q=k.isUndefined(p.pos)?o.numItems-1:p.pos;if(!k.isUndefined(o.items[q])){u=o.items[q];if(u&&!k.isUndefined(u.id)){n=a.get(u.id);}}if(!n){m=t._createCarouselItem({className:u.className,content:u.item,id:u.id});if(k.isUndefined(p.pos)){if(!k.isUndefined(o.loading[q])){n=o.loading[q];}if(n){r.replaceChild(m,n);delete o.loading[q];}else{r.appendChild(m);}}else{if(!k.isUndefined(o.items[p.pos+1])){s=a.get(o.items[p.pos+1].id);
-}if(s){r.insertBefore(m,s);}else{}}}else{if(k.isUndefined(p.pos)){if(!a.isAncestor(t._carouselEl,n)){r.appendChild(n);}}else{if(!a.isAncestor(r,n)){if(!k.isUndefined(o.items[p.pos+1])){r.insertBefore(n,a.get(o.items[p.pos+1].id));}}}}if(!t._hasRendered){t._refreshUi();}if(t.get("selectedItem")<0){t.set("selectedItem",t.get("firstVisible"));}},_syncUiForItemRemove:function(r){var q=this,m=q._carouselEl,o,p,n,s;n=q.get("numItems");p=r.item;s=r.pos;if(p&&(o=a.get(p.id))){if(o&&a.isAncestor(m,o)){Y.purgeElement(o,true);m.removeChild(o);}if(q.get("selectedItem")==s){s=s>=n?n-1:s;q.set("selectedItem",s);}}else{}},_syncUiForLazyLoading:function(s){var r=this,n=r._carouselEl,q,o,m=r._itemsTable,p;for(o=s.first;o<=s.last;o++){q=r._createCarouselItem({className:r.CLASSES.ITEM_LOADING,content:r.STRINGS.ITEM_LOADING_CONTENT,id:a.generateId()});if(q){if(!k.isUndefined(m.items[s.last+1])){p=a.get(m.items[s.last+1].id);if(p){n.insertBefore(q,p);}else{}}else{n.appendChild(q);}}m.loading[o]=q;}},_updateNavButtons:function(q,n){var o,m=this.CLASSES,r,p=q.parentNode;if(!p){return;}r=p.parentNode;if(q.nodeName.toUpperCase()=="BUTTON"&&a.hasClass(p,m.BUTTON)){if(n){if(r){o=a.getChildren(r);if(o){a.removeClass(o,m.FOCUSSED_BUTTON);}}a.addClass(p,m.FOCUSSED_BUTTON);}else{a.removeClass(p,m.FOCUSSED_BUTTON);}}},_updatePagerButtons:function(){var v=this,t=v.CLASSES,u=v._pages.cur,m,s,q,w,o=v.get("numVisible"),r=v._pages.num,p=v._pages.el;if(r===0||!p){return;}a.setStyle(p,"visibility","hidden");while(p.firstChild){p.removeChild(p.firstChild);}for(q=0;q<r;q++){if(k.isUndefined(v._itemsTable.items[q*o])){a.setStyle(p,"visibility","visible");break;}w=v._itemsTable.items[q*o].id;m=document.createElement("LI");if(!m){a.setStyle(p,"visibility","visible");break;}if(q===0){a.addClass(m,t.FIRST_PAGE);}if(q==u){a.addClass(m,t.SELECTED_NAV);}s='<a href="#'+w+'" tabindex="0"><em>'+v.STRINGS.PAGER_PREFIX_TEXT+" "+(q+1)+"</em></a>";m.innerHTML=s;p.appendChild(m);}a.setStyle(p,"visibility","visible");},_updatePagerMenu:function(){var u=this,t=u._pages.cur,o,r,v,p=u.get("numVisible"),s=u._pages.num,q=u._pages.el,m;if(s===0){return;}m=document.createElement("SELECT");if(!m){return;}a.setStyle(q,"visibility","hidden");while(q.firstChild){q.removeChild(q.firstChild);}for(r=0;r<s;r++){if(k.isUndefined(u._itemsTable.items[r*p])){a.setStyle(q,"visibility","visible");break;}v=u._itemsTable.items[r*p].id;o=document.createElement("OPTION");if(!o){a.setStyle(q,"visibility","visible");break;}o.value="#"+v;o.innerHTML=u.STRINGS.PAGER_PREFIX_TEXT+" "+(r+1);if(r==t){o.setAttribute("selected","selected");}m.appendChild(o);}o=document.createElement("FORM");if(!o){}else{o.appendChild(m);q.appendChild(o);}a.setStyle(q,"visibility","visible");},_updateTabIndex:function(m){var n=this;if(m){if(n._focusableItemEl){n._focusableItemEl.tabIndex=-1;}n._focusableItemEl=m;m.tabIndex=0;}},_validateAnimation:function(m){var n=true;if(k.isObject(m)){if(m.speed){n=n&&k.isNumber(m.speed);}if(m.effect){n=n&&k.isFunction(m.effect);}else{if(!k.isUndefined(YAHOO.util.Easing)){m.effect=YAHOO.util.Easing.easeOut;}}}else{n=false;}return n;},_validateFirstVisible:function(o){var n=this,m=n.get("numItems");if(k.isNumber(o)){if(m===0&&o==m){return true;}else{return(o>=0&&o<m);}}return false;},_validateNavigation:function(m){var n;if(!k.isObject(m)){return false;}if(m.prev){if(!k.isArray(m.prev)){return false;}for(n in m.prev){if(m.prev.hasOwnProperty(n)){if(!k.isString(m.prev[n].nodeName)){return false;}}}}if(m.next){if(!k.isArray(m.next)){return false;}for(n in m.next){if(m.next.hasOwnProperty(n)){if(!k.isString(m.next[n].nodeName)){return false;}}}}return true;},_validateNumItems:function(m){return k.isNumber(m)&&(m>=0);},_validateNumVisible:function(m){var n=false;if(k.isNumber(m)){n=m>0&&m<=this.get("numItems");}return n;},_validateRevealAmount:function(m){var n=false;if(k.isNumber(m)){n=m>=0&&m<100;}return n;},_validateScrollIncrement:function(m){var n=false;if(k.isNumber(m)){n=(m>0&&m<this.get("numItems"));}return n;}});})();YAHOO.register("carousel",YAHOO.widget.Carousel,{version:"2.7.0",build:"1799"});\r
-\r
-\r
-(function(b){function f(){e||b(document.createElement("img")).bind("load",function(){c?c=e=!1:(e=!0,0<b.preloadImages.imageQueue.length?this.src=b.preloadImages.imageQueue.shift():e=!1)}).trigger("load")}b.preloadImages=function(a){b.preloadImages.add(a);c=!1;f()};b.preloadImages.add=function(a){if("string"==typeof a)b.preloadImages.imageQueue.push(a);else if(!(1>a.length))for(var d=0,c=a.length;d<c;d++)"string"==typeof a[d]?b.preloadImages.imageQueue.push(a[d]):"object"==typeof a[d]&&0<a[d].length&&
-b.preloadImages.add(a[d])};b.preloadImages.prepend=function(){if("string"==typeof arr)b.preloadImages.imageQueue.unshift(arr);else if(!(1>arr.length))for(var a=numargs-1;0<=a;a--)"string"==typeof arr[a]?b.preloadImages.imageQueue.unshift(arr[a]):"object"==typeof arr[a]&&0<arr[a].length&&b.preloadImages.prepend(arr[a])};b.preloadImages.clear=function(){b.preloadImages.imageQueue=[]};b.preloadImages.stop=function(){c=!0};b.preloadImages.start=function(){c=!1;f()};b.preloadImages.imageQueue=[];var e=
-!1,c=!1})(jQuery);
-\r
-jQuery.fn.highlight=function(a,b){return this.each(function(){var c=b||'<span class="highlight">$1</span>';jQuery(this).html(jQuery(this).html().replace(RegExp("("+a+'(?![\\w\\s?&.\\/;#~%"=-]*>))',"ig"),c))})};jQuery.fn.autolink=function(){return this.each(function(){jQuery(this).html(jQuery(this).html().replace(/((http|https|ftp):\/\/[\w?=&.\/-;#~%-]+(?![\w\s?&.\/;#~%"=-]*>))/g,'<a href="$1">$1</a> '))})};
-jQuery.fn.mailto=function(){return this.each(function(){jQuery(this).html(jQuery(this).html().replace(/(([a-z0-9*._+]){1,}\@(([a-z0-9]+[-]?){1,}[a-z0-9]+\.){1,}([a-z]{2,4}|museum)(?![\w\s?&.\/;#~%"=-]*>))/g,'<a href="mailto:$1">$1</a>'))})};
-\r
-jQuery(document).ready(function(){var b="url(/content/images/Strip1.jpg) no-repeat;url(/content/images/Strip2.jpg) no-repeat;url(/content/images/Strip3.jpg) no-repeat;url(/content/images/Strip4.jpg) no-repeat;url(/content/images/strip5.jpg) no-repeat;url(/content/images/Strip6.jpg) no-repeat".split(";"),a=b.length,a=Math.round(Math.random()*(a-1));jQuery("#banner").css("background",b[a])});
-\r
-jQuery(document).ready(function(){jQuery("label.hint").labelOver("#searchTerms");jQuery("label.hint").labelOver("pub-year");jQuery("label.hint").labelOver("#search-terms");jQuery("label.hint").labelOver("location-terms")});
-\r
-(function(c){function l(){c.fn.ajaxSubmit.debug&&(window.console&&window.console.log)&&window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))}c.fn.ajaxSubmit=function(a){function g(){function d(){if(!q++){n.detachEvent?n.detachEvent("onload",d):n.removeEventListener("load",d,!1);var a=!0;try{if(r)throw"timeout";var e,f;f=n.contentWindow?n.contentWindow.document:n.contentDocument?n.contentDocument:n.document;if((null==f.body||""==f.body.innerHTML)&&!s){s=1;q--;setTimeout(d,100);
-return}m.responseText=f.body?f.body.innerHTML:null;m.responseXML=f.XMLDocument?f.XMLDocument:f;m.getResponseHeader=function(a){return{"content-type":b.dataType}[a]};if("json"==b.dataType||"script"==b.dataType){var h=f.getElementsByTagName("textarea")[0];m.responseText=h?h.value:m.responseText}else"xml"==b.dataType&&(!m.responseXML&&null!=m.responseText)&&(m.responseXML=g(m.responseText));e=c.httpData(m,b.dataType)}catch(k){a=!1,c.handleError(b,m,"error",k)}a&&(b.success(e,"success"),l&&c.event.trigger("ajaxSuccess",
-[m,b]));l&&c.event.trigger("ajaxComplete",[m,b]);l&&!--c.active&&c.event.trigger("ajaxStop");b.complete&&b.complete(m,a?"success":"error");setTimeout(function(){p.remove();m.responseXML=null},100)}}function g(a,b){window.ActiveXObject?(b=new ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a)):b=(new DOMParser).parseFromString(a,"text/xml");return b&&b.documentElement&&"parsererror"!=b.documentElement.tagName?b:null}var e=h[0];if(c(":input[name=submit]",e).length)alert('Error: Form elements must not be named "submit".');
-else{var b=c.extend({},c.ajaxSettings,a),f=jQuery.extend(!0,{},c.extend(!0,{},c.ajaxSettings),b),k="jqFormIO"+(new Date).getTime(),p=c('<iframe id="'+k+'" name="'+k+'" src="about:blank" />'),n=p[0];p.css({position:"absolute",top:"-1000px",left:"-1000px"});var m={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;p.attr("src","about:blank")}},l=b.global;
-l&&!c.active++&&c.event.trigger("ajaxStart");l&&c.event.trigger("ajaxSend",[m,b]);if(f.beforeSend&&!1===f.beforeSend(m,f))f.global&&jQuery.active--;else if(!m.aborted){var q=0,r=0;if(f=e.clk){var t=f.name;t&&!f.disabled&&(a.extraData=a.extraData||{},a.extraData[t]=f.value,"image"==f.type&&(a.extraData[name+".x"]=e.clk_x,a.extraData[name+".y"]=e.clk_y))}setTimeout(function(){var f=h.attr("target"),g=h.attr("action");e.setAttribute("target",k);"POST"!=e.getAttribute("method")&&e.setAttribute("method",
-"POST");e.getAttribute("action")!=b.url&&e.setAttribute("action",b.url);a.skipEncodingOverride||h.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});b.timeout&&setTimeout(function(){r=!0;d()},b.timeout);var m=[];try{if(a.extraData)for(var l in a.extraData)m.push(c('<input type="hidden" name="'+l+'" value="'+a.extraData[l]+'" />').appendTo(e)[0]);p.appendTo("body");n.attachEvent?n.attachEvent("onload",d):n.addEventListener("load",d,!1);e.submit()}finally{e.setAttribute("action",g),
-f?e.setAttribute("target",f):h.removeAttr("target"),c(m).remove()}},10);var s=0}}}if(!this.length)return l("ajaxSubmit: skipping submit process - no element selected"),this;"function"==typeof a&&(a={success:a});var d=this.attr("action")||window.location.href,d=(d.match(/^([^#]+)/)||[])[1];a=c.extend({url:d||"",type:this.attr("method")||"GET"},a||{});d={};this.trigger("form-pre-serialize",[this,a,d]);if(d.veto)return l("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(a.beforeSerialize&&
-!1===a.beforeSerialize(this,a))return l("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var e=this.formToArray(a.semantic);if(a.data){a.extraData=a.data;for(var b in a.data)if(a.data[b]instanceof Array)for(var k in a.data[b])e.push({name:b,value:a.data[b][k]});else e.push({name:b,value:a.data[b]})}if(a.beforeSubmit&&!1===a.beforeSubmit(e,this,a))return l("ajaxSubmit: submit aborted via beforeSubmit callback"),this;this.trigger("form-submit-validate",[e,this,a,d]);if(d.veto)return l("ajaxSubmit: submit vetoed via form-submit-validate trigger"),
-this;b=c.param(e);"GET"==a.type.toUpperCase()?(a.url+=(0<=a.url.indexOf("?")?"&":"?")+b,a.data=null):a.data=b;var h=this,f=[];a.resetForm&&f.push(function(){h.resetForm()});a.clearForm&&f.push(function(){h.clearForm()});if(!a.dataType&&a.target){var p=a.success||function(){};f.push(function(b){c(a.target).html(b).each(p,arguments)})}else a.success&&f.push(a.success);a.success=function(b,e){for(var d=0,c=f.length;d<c;d++)f[d].apply(a,[b,e,h])};b=c("input:file",this).fieldValue();k=!1;for(d=0;d<b.length;d++)b[d]&&
-(k=!0);a.iframe||k?a.closeKeepAlive?c.get(a.closeKeepAlive,g):g():c.ajax(a);this.trigger("form-submit-notify",[this,a]);return this};c.fn.ajaxForm=function(a){return this.ajaxFormUnbind().bind("submit.form-plugin",function(){c(this).ajaxSubmit(a);return!1}).each(function(){c(":submit,input:image",this).bind("click.form-plugin",function(a){var d=this.form;d.clk=this;if("image"==this.type)if(void 0!=a.offsetX)d.clk_x=a.offsetX,d.clk_y=a.offsetY;else if("function"==typeof c.fn.offset){var e=c(this).offset();
-d.clk_x=a.pageX-e.left;d.clk_y=a.pageY-e.top}else d.clk_x=a.pageX-this.offsetLeft,d.clk_y=a.pageY-this.offsetTop;setTimeout(function(){d.clk=d.clk_x=d.clk_y=null},10)})})};c.fn.ajaxFormUnbind=function(){this.unbind("submit.form-plugin");return this.each(function(){c(":submit,input:image",this).unbind("click.form-plugin")})};c.fn.formToArray=function(a){var g=[];if(0==this.length)return g;var d=this[0],e=a?d.getElementsByTagName("*"):d.elements;if(!e)return g;for(var b=0,k=e.length;b<k;b++){var h=
-e[b],f=h.name;if(f)if(a&&d.clk&&"image"==h.type)!h.disabled&&d.clk==h&&g.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y});else if((h=c.fieldValue(h,!0))&&h.constructor==Array)for(var p=0,l=h.length;p<l;p++)g.push({name:f,value:h[p]});else null!==h&&"undefined"!=typeof h&&g.push({name:f,value:h})}if(!a&&d.clk){a=d.getElementsByTagName("input");b=0;for(k=a.length;b<k;b++)e=a[b],(f=e.name)&&(!e.disabled&&"image"==e.type&&d.clk==e)&&g.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}return g};
-c.fn.formSerialize=function(a){return c.param(this.formToArray(a))};c.fn.fieldSerialize=function(a){var g=[];this.each(function(){var d=this.name;if(d){var e=c.fieldValue(this,a);if(e&&e.constructor==Array)for(var b=0,k=e.length;b<k;b++)g.push({name:d,value:e[b]});else null!==e&&"undefined"!=typeof e&&g.push({name:this.name,value:e})}});return c.param(g)};c.fn.fieldValue=function(a){for(var g=[],d=0,e=this.length;d<e;d++){var b=c.fieldValue(this[d],a);null===b||("undefined"==typeof b||b.constructor==
-Array&&!b.length)||(b.constructor==Array?c.merge(g,b):g.push(b))}return g};c.fieldValue=function(a,c){var d=a.name,e=a.type,b=a.tagName.toLowerCase();"undefined"==typeof c&&(c=!0);if(c&&(!d||a.disabled||"reset"==e||"button"==e||("checkbox"==e||"radio"==e)&&!a.checked||("submit"==e||"image"==e)&&a.form&&a.form.clk!=a||"select"==b&&-1==a.selectedIndex))return null;if("select"==b){var k=a.selectedIndex;if(0>k)return null;for(var d=[],b=a.options,h=(e="select-one"==e)?k+1:b.length,k=e?k:0;k<h;k++){var f=
-b[k];if(f.selected){var l=f.value;l||(l=f.attributes&&f.attributes.value&&!f.attributes.value.specified?f.text:f.value);if(e)return l;d.push(l)}}return d}return a.value};c.fn.clearForm=function(){return this.each(function(){c("input,select,textarea",this).clearFields()})};c.fn.clearFields=c.fn.clearInputs=function(){return this.each(function(){var a=this.type,c=this.tagName.toLowerCase();"text"==a||"password"==a||"textarea"==c?this.value="":"checkbox"==a||"radio"==a?this.checked=!1:"select"==c&&(this.selectedIndex=
--1)})};c.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})};c.fn.enable=function(a){void 0==a&&(a=!0);return this.each(function(){this.disabled=!a})};c.fn.selected=function(a){void 0==a&&(a=!0);return this.each(function(){var g=this.type;"checkbox"==g||"radio"==g?this.checked=a:"option"==this.tagName.toLowerCase()&&(g=c(this).parent("select"),a&&(g[0]&&"select-one"==g[0].type)&&g.find("option").selected(!1),
-this.selected=a)})}})(jQuery);
-\r
-/*! jQuery Validation Plugin - v1.11.1 - 3/22/2013\n* https://github.com/jzaefferer/jquery-validation
-* Copyright (c) 2013 Jörn Zaefferer; Licensed MIT */(function(t){t.extend(t.fn,{validate:function(e){if(!this.length)return e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."),void 0;var i=t.data(this[0],"validator");return i?i:(this.attr("novalidate","novalidate"),i=new t.validator(e,this[0]),t.data(this[0],"validator",i),i.settings.onsubmit&&(this.validateDelegate(":submit","click",function(e){i.settings.submitHandler&&(i.submitButton=e.target),t(e.target).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==t(e.target).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.submit(function(e){function s(){var s;return i.settings.submitHandler?(i.submitButton&&(s=t("<input type='hidden'/>").attr("name",i.submitButton.name).val(t(i.submitButton).val()).appendTo(i.currentForm)),i.settings.submitHandler.call(i,i.currentForm,e),i.submitButton&&s.remove(),!1):!0}return i.settings.debug&&e.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,s()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):s():(i.focusInvalid(),!1)})),i)},valid:function(){if(t(this[0]).is("form"))return this.validate().form();var e=!0,i=t(this[0].form).validate();return this.each(function(){e=e&&i.element(this)}),e},removeAttrs:function(e){var i={},s=this;return t.each(e.split(/\s/),function(t,e){i[e]=s.attr(e),s.removeAttr(e)}),i},rules:function(e,i){var s=this[0];if(e){var r=t.data(s.form,"validator").settings,n=r.rules,a=t.validator.staticRules(s);switch(e){case"add":t.extend(a,t.validator.normalizeRule(i)),delete a.messages,n[s.name]=a,i.messages&&(r.messages[s.name]=t.extend(r.messages[s.name],i.messages));break;case"remove":if(!i)return delete n[s.name],a;var u={};return t.each(i.split(/\s/),function(t,e){u[e]=a[e],delete a[e]}),u}}var o=t.validator.normalizeRules(t.extend({},t.validator.classRules(s),t.validator.attributeRules(s),t.validator.dataRules(s),t.validator.staticRules(s)),s);if(o.required){var l=o.required;delete o.required,o=t.extend({required:l},o)}return o}}),t.extend(t.expr[":"],{blank:function(e){return!t.trim(""+t(e).val())},filled:function(e){return!!t.trim(""+t(e).val())},unchecked:function(e){return!t(e).prop("checked")}}),t.validator=function(e,i){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=i,this.init()},t.validator.format=function(e,i){return 1===arguments.length?function(){var i=t.makeArray(arguments);return i.unshift(e),t.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!==Array&&(i=t.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),t.each(i,function(t,i){e=e.replace(RegExp("\\{"+t+"\\}","g"),function(){return i})}),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(t)).hide())},onfocusout:function(t){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(t,e){(9!==e.which||""!==this.elementValue(t))&&(t.name in this.submitted||t===this.lastElement)&&this.element(t)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).addClass(i).removeClass(s):t(e).addClass(i).removeClass(s)},unhighlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).removeClass(i).addClass(s):t(e).removeClass(i).addClass(s)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function e(e){var i=t.data(this[0].form,"validator"),s="on"+e.type.replace(/^validate/,"");i.settings[s]&&i.settings[s].call(i,this[0],e)}this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var i=this.groups={};t.each(this.settings.groups,function(e,s){"string"==typeof s&&(s=s.split(/\s/)),t.each(s,function(t,s){i[s]=e})});var s=this.settings.rules;t.each(s,function(e,i){s[e]=t.validator.normalizeRule(i)}),t(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",e).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",e),this.settings.invalidHandler&&t(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(e){e=this.validationTargetFor(this.clean(e)),this.lastElement=e,this.prepareElement(e),this.currentElements=t(e);var i=this.check(e)!==!1;return i?delete this.invalid[e.name]:this.invalid[e.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),i},showErrors:function(e){if(e){t.extend(this.errorMap,e),this.errorList=[];for(var i in e)this.errorList.push({message:e[i],element:this.findByName(i)[0]});this.successList=t.grep(this.successList,function(t){return!(t.name in e)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e=0;for(var i in t)e++;return e},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var e=this.lastActive;return e&&1===t.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var e=this,i={};return t(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in i||!e.objectLength(t(this).rules())?!1:(i[this.name]=!0,!0)})},clean:function(e){return t(e)[0]},errors:function(){var e=this.settings.errorClass.replace(" ",".");return t(this.settings.errorElement+"."+e,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([]),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(e){var i=t(e).attr("type"),s=t(e).val();return"radio"===i||"checkbox"===i?t("input[name='"+t(e).attr("name")+"']:checked").val():"string"==typeof s?s.replace(/\r/g,""):s},check:function(e){e=this.validationTargetFor(this.clean(e));var i,s=t(e).rules(),r=!1,n=this.elementValue(e);for(var a in s){var u={method:a,parameters:s[a]};try{if(i=t.validator.methods[a].call(this,n,e,u.parameters),"dependency-mismatch"===i){r=!0;continue}if(r=!1,"pending"===i)return this.toHide=this.toHide.not(this.errorsFor(e)),void 0;if(!i)return this.formatAndAdd(e,u),!1}catch(o){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+u.method+"' method.",o),o}}return r?void 0:(this.objectLength(s)&&this.successList.push(e),!0)},customDataMessage:function(e,i){return t(e).data("msg-"+i.toLowerCase())||e.attributes&&t(e).attr("data-msg-"+i.toLowerCase())},customMessage:function(t,e){var i=this.settings.messages[t];return i&&(i.constructor===String?i:i[e])},findDefined:function(){for(var t=0;arguments.length>t;t++)if(void 0!==arguments[t])return arguments[t];return void 0},defaultMessage:function(e,i){return this.findDefined(this.customMessage(e.name,i),this.customDataMessage(e,i),!this.settings.ignoreTitle&&e.title||void 0,t.validator.messages[i],"<strong>Warning: No message defined for "+e.name+"</strong>")},formatAndAdd:function(e,i){var s=this.defaultMessage(e,i.method),r=/\$?\{(\d+)\}/g;"function"==typeof s?s=s.call(this,i.parameters,e):r.test(s)&&(s=t.validator.format(s.replace(r,"{$1}"),i.parameters)),this.errorList.push({message:s,element:e}),this.errorMap[e.name]=s,this.submitted[e.name]=s},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e;for(t=0;this.errorList[t];t++){var i=this.errorList[t];this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message)}if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return t(this.errorList).map(function(){return this.element})},showLabel:function(e,i){var s=this.errorsFor(e);s.length?(s.removeClass(this.settings.validClass).addClass(this.settings.errorClass),s.html(i)):(s=t("<"+this.settings.errorElement+">").attr("for",this.idOrName(e)).addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(s=s.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(s).length||(this.settings.errorPlacement?this.settings.errorPlacement(s,t(e)):s.insertAfter(e))),!i&&this.settings.success&&(s.text(""),"string"==typeof this.settings.success?s.addClass(this.settings.success):this.settings.success(s,e)),this.toShow=this.toShow.add(s)},errorsFor:function(e){var i=this.idOrName(e);return this.errors().filter(function(){return t(this).attr("for")===i})},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name).not(this.settings.ignore)[0]),t},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(e){return t(this.currentForm).find("[name='"+e+"']")},getLength:function(e,i){switch(i.nodeName.toLowerCase()){case"select":return t("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return e.length},depend:function(t,e){return this.dependTypes[typeof t]?this.dependTypes[typeof t](t,e):!0},dependTypes:{"boolean":function(t){return t},string:function(e,i){return!!t(e,i.form).length},"function":function(t,e){return t(e)}},optional:function(e){var i=this.elementValue(e);return!t.validator.methods.required.call(this,i,e)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,this.pending[t.name]=!0)},stopRequest:function(e,i){this.pendingRequest--,0>this.pendingRequest&&(this.pendingRequest=0),delete this.pending[e.name],i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(t(this.currentForm).submit(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e){return t.data(e,"previousValue")||t.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,i){e.constructor===String?this.classRuleSettings[e]=i:t.extend(this.classRuleSettings,e)},classRules:function(e){var i={},s=t(e).attr("class");return s&&t.each(s.split(" "),function(){this in t.validator.classRuleSettings&&t.extend(i,t.validator.classRuleSettings[this])}),i},attributeRules:function(e){var i={},s=t(e),r=s[0].getAttribute("type");for(var n in t.validator.methods){var a;"required"===n?(a=s.get(0).getAttribute(n),""===a&&(a=!0),a=!!a):a=s.attr(n),/min|max/.test(n)&&(null===r||/number|range|text/.test(r))&&(a=Number(a)),a?i[n]=a:r===n&&"range"!==r&&(i[n]=!0)}return i.maxlength&&/-1|2147483647|524288/.test(i.maxlength)&&delete i.maxlength,i},dataRules:function(e){var i,s,r={},n=t(e);for(i in t.validator.methods)s=n.data("rule-"+i.toLowerCase()),void 0!==s&&(r[i]=s);return r},staticRules:function(e){var i={},s=t.data(e.form,"validator");return s.settings.rules&&(i=t.validator.normalizeRule(s.settings.rules[e.name])||{}),i},normalizeRules:function(e,i){return t.each(e,function(s,r){if(r===!1)return delete e[s],void 0;if(r.param||r.depends){var n=!0;switch(typeof r.depends){case"string":n=!!t(r.depends,i.form).length;break;case"function":n=r.depends.call(i,i)}n?e[s]=void 0!==r.param?r.param:!0:delete e[s]}}),t.each(e,function(s,r){e[s]=t.isFunction(r)?r(i):r}),t.each(["minlength","maxlength"],function(){e[this]&&(e[this]=Number(e[this]))}),t.each(["rangelength","range"],function(){var i;e[this]&&(t.isArray(e[this])?e[this]=[Number(e[this][0]),Number(e[this][1])]:"string"==typeof e[this]&&(i=e[this].split(/[\s,]+/),e[this]=[Number(i[0]),Number(i[1])]))}),t.validator.autoCreateRanges&&(e.min&&e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),e.minlength&&e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e},normalizeRule:function(e){if("string"==typeof e){var i={};t.each(e.split(/\s/),function(){i[this]=!0}),e=i}return e},addMethod:function(e,i,s){t.validator.methods[e]=i,t.validator.messages[e]=void 0!==s?s:t.validator.messages[e],3>i.length&&t.validator.addClassRules(e,t.validator.normalizeRule(e))},methods:{required:function(e,i,s){if(!this.depend(s,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var r=t(i).val();return r&&r.length>0}return this.checkable(i)?this.getLength(e,i)>0:t.trim(e).length>0},email:function(t,e){return this.optional(e)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(t)},url:function(t,e){return this.optional(e)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(t)},date:function(t,e){return this.optional(e)||!/Invalid|NaN/.test(""+new Date(t))},dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(t)},number:function(t,e){return this.optional(e)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},creditcard:function(t,e){if(this.optional(e))return"dependency-mismatch";if(/[^0-9 \-]+/.test(t))return!1;var i=0,s=0,r=!1;t=t.replace(/\D/g,"");for(var n=t.length-1;n>=0;n--){var a=t.charAt(n);s=parseInt(a,10),r&&(s*=2)>9&&(s-=9),i+=s,r=!r}return 0===i%10},minlength:function(e,i,s){var r=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||r>=s},maxlength:function(e,i,s){var r=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||s>=r},rangelength:function(e,i,s){var r=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||r>=s[0]&&s[1]>=r},min:function(t,e,i){return this.optional(e)||t>=i},max:function(t,e,i){return this.optional(e)||i>=t},range:function(t,e,i){return this.optional(e)||t>=i[0]&&i[1]>=t},equalTo:function(e,i,s){var r=t(s);return this.settings.onfocusout&&r.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){t(i).valid()}),e===r.val()},remote:function(e,i,s){if(this.optional(i))return"dependency-mismatch";var r=this.previousValue(i);if(this.settings.messages[i.name]||(this.settings.messages[i.name]={}),r.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=r.message,s="string"==typeof s&&{url:s}||s,r.old===e)return r.valid;r.old=e;var n=this;this.startRequest(i);var a={};return a[i.name]=e,t.ajax(t.extend(!0,{url:s,mode:"abort",port:"validate"+i.name,dataType:"json",data:a,success:function(s){n.settings.messages[i.name].remote=r.originalMessage;var a=s===!0||"true"===s;if(a){var u=n.formSubmitted;n.prepareElement(i),n.formSubmitted=u,n.successList.push(i),delete n.invalid[i.name],n.showErrors()}else{var o={},l=s||n.defaultMessage(i,"remote");o[i.name]=r.message=t.isFunction(l)?l(e):l,n.invalid[i.name]=!0,n.showErrors(o)}r.valid=a,n.stopRequest(i,a)}},s)),"pending"}}}),t.format=t.validator.format})(jQuery),function(t){var e={};if(t.ajaxPrefilter)t.ajaxPrefilter(function(t,i,s){var r=t.port;"abort"===t.mode&&(e[r]&&e[r].abort(),e[r]=s)});else{var i=t.ajax;t.ajax=function(s){var r=("mode"in s?s:t.ajaxSettings).mode,n=("port"in s?s:t.ajaxSettings).port;return"abort"===r?(e[n]&&e[n].abort(),e[n]=i.apply(this,arguments),e[n]):i.apply(this,arguments)}}}(jQuery),function(t){t.extend(t.fn,{validateDelegate:function(e,i,s){return this.bind(i,function(i){var r=t(i.target);return r.is(e)?s.apply(r,arguments):void 0})}})}(jQuery);\r
-jQuery(document).ready(function(){jQuery("#form_logon-place-hold").validate();jQuery("#form_logon").validate()});
-\r
-(function(e){e.fn.hoverIntent=function(n,p){var d={sensitivity:7,interval:100,timeout:0},d=e.extend(d,p?{over:n,out:p}:n),f,h,k,l,m=function(c){f=c.pageX;h=c.pageY},q=function(c,a){a.hoverIntent_t=clearTimeout(a.hoverIntent_t);if(Math.abs(k-f)+Math.abs(l-h)<d.sensitivity)return e(a).unbind("mousemove",m),a.hoverIntent_s=1,d.over.apply(a,[c]);k=f;l=h;a.hoverIntent_t=setTimeout(function(){q(c,a)},d.interval)},r=function(c){for(var a=("mouseover"==c.type?c.fromElement:c.toElement)||c.relatedTarget;a&&
-a!=this;)try{a=a.parentNode}catch(f){a=this}if(a==this)return!1;var g=e.extend({},c),b=this;b.hoverIntent_t&&(b.hoverIntent_t=clearTimeout(b.hoverIntent_t));"mouseover"==c.type?(k=g.pageX,l=g.pageY,e(b).bind("mousemove",m),1!=b.hoverIntent_s&&(b.hoverIntent_t=setTimeout(function(){q(g,b)},d.interval))):(e(b).unbind("mousemove",m),1==b.hoverIntent_s&&(b.hoverIntent_t=setTimeout(function(){b.hoverIntent_t=clearTimeout(b.hoverIntent_t);b.hoverIntent_s=0;d.out.apply(b,[g])},d.timeout)))};return this.mouseover(r).mouseout(r)}})(jQuery);
-\r
-jQuery.fn.labelOver=function(d){return this.each(function(){var b=jQuery(this),c=b.attr("for");if(c){var a=jQuery("#"+c);this.hide=function(){b.css({textIndent:-1E4})};this.show=function(){""==a.val()&&b.css({textIndent:0})};a.focus(this.hide);a.blur(this.show);b.addClass(d).click(function(){a.focus()});""!=a.val()&&this.hide()}})};
-\r
-jQuery(document).ready(function(){jQuery("div.contact").hide();var b=jQuery("input[name=replyBy]:checked").val();jQuery("#"+b+"Fields").show();jQuery("input[name=replyBy]").click(function(){jQuery("div.contact").hide();var a=jQuery(this).val();jQuery("div.contact[name!="+a+"Fields]").children().filter(":input").val("");jQuery("#"+a+"Fields").show()})});
-\r
-(function(a){function f(c,b){var e=typeof b;if("object"==e||void 0==e)return a(c).height()/b.lh;if("boolean"==e)return e=a(c),a(e).append("<div id='temp_ellipsis_div' style='position:absolute; visibility:hidden'>H</div>"),e=a("#temp_ellipsis_div").height(),a("#temp_ellipsis_div").remove(),{lh:e}}function v(c){var b=a.fn.ThreeDots.c_settings.valid_delimiters;c=jQuery.trim(c);var e=-1,d=null,f=null;jQuery.each(b,function(a,b){if(1!=(new String(b)).length||null==b)return!1;var m=c.lastIndexOf(b);-1!=
-m&&m>e&&(e=m,d=c.substring(e+1),f=b)});return 0<e?{updated_string:jQuery.trim(c.substring(0,e)),word:d,del:f}:{updated_string:"",word:jQuery.trim(c),del:null}}a.fn.ThreeDots=function(c){var b=this;if("object"==typeof c||void 0==c)a.fn.ThreeDots.the_selected=this,b=a.fn.ThreeDots.update(c);return b};a.fn.ThreeDots.update=function(c){var b,e=null,d,r,q,t,m;if("object"==typeof c||void 0==c){a.fn.ThreeDots.c_settings=a.extend({},a.fn.ThreeDots.settings,c);var n=a.fn.ThreeDots.c_settings.max_rows;if(1>
-n)return a.fn.ThreeDots.the_selected;var u=!1;jQuery.each(a.fn.ThreeDots.c_settings.valid_delimiters,function(a,b){1==(new String(b)).length&&(u=!0)});if(!1==u)return a.fn.ThreeDots.the_selected;a.fn.ThreeDots.the_selected.each(function(){b=a(this);if(0==a(b).children("."+a.fn.ThreeDots.c_settings.text_span_class).length)return!0;d=a(b).children("."+a.fn.ThreeDots.c_settings.text_span_class).get(0);var c=f(b,!0),s=a(d).text();var p=a(d).text(),h=p,k=a.fn.ThreeDots.c_settings.max_rows,l,g;if(!(f(b,
-c)<=k)){g=0;curr_length=h.length;curr_middle=Math.floor((curr_length-g)/2);h=p.substring(g,g+curr_middle);for(l=p.substring(g+curr_middle);0!=curr_middle;)a(d).text(h),f(b,c)<=k?(g=Math.floor(l.length/2),l=l.substring(0,g),g=h.length,h+=l,curr_length=h.length,a(d).text(h)):curr_length=h.length,curr_middle=Math.floor((curr_length-g)/2),h=p.substring(0,g+curr_middle),l=p.substring(g+curr_middle)}p=a(d).text();if(void 0!=(t=a(b).attr("threedots")))a(d).text(t),a(b).children("."+a.fn.ThreeDots.c_settings.e_span_class).remove();
-q=a(d).text();0>=q.length&&(q="");a(b).attr("threedots",s);if(f(b,c)>n){for(curr_ellipsis=a(b).append('<span style="white-space:nowrap" class="'+a.fn.ThreeDots.c_settings.e_span_class+'">'+a.fn.ThreeDots.c_settings.ellipsis_string+"</span>");f(b,c)>n&&!(r=v(a(d).text()),a(d).text(r.updated_string),e=r.word,m=r.del,null==m););if(null!=e&&(!0==a.fn.ThreeDots.c_settings.allow_dangle?k=!1:(k=a(b).children("."+a.fn.ThreeDots.c_settings.e_span_class).get(0),h=a(k).css("display"),g=f(b,c),a(k).css("display",
-"none"),l=f(b,c),a(k).css("display",h),k=g>l?!0:!1),f(b,c)<=n-1||k||!a.fn.ThreeDots.c_settings.whole_word))if(q=a(d).text(),null!=r.del&&a(d).text(q+m),f(b,c)>n)a(d).text(q);else if(a(d).text(a(d).text()+e),f(b,c)>n+1||!a.fn.ThreeDots.c_settings.whole_word||p==e||k)for(;f(b,c)>n;)if(0<a(d).text().length)a(d).text(a(d).text().substr(0,a(d).text().length-1));else break}s==a(a(b).children("."+a.fn.ThreeDots.c_settings.text_span_class).get(0)).text()?a(b).children("."+a.fn.ThreeDots.c_settings.e_span_class).remove():
-0<a(b).children("."+a.fn.ThreeDots.c_settings.e_span_class).length&&(a.fn.ThreeDots.c_settings.alt_text_t&&a(b).children("."+a.fn.ThreeDots.c_settings.text_span_class).attr("title",s),a.fn.ThreeDots.c_settings.alt_text_e&&a(b).children("."+a.fn.ThreeDots.c_settings.e_span_class).attr("title",s))})}return a.fn.ThreeDots.the_selected};a.fn.ThreeDots.settings={valid_delimiters:[" ",",","."],ellipsis_string:"...",max_rows:2,text_span_class:"ellipsis_text",e_span_class:"threedots_ellipsis",whole_word:!0,
-allow_dangle:!1,alt_text_e:!1,alt_text_t:!1}})(jQuery);
-\r
-(function(g){g.fn.imgscale=function(b){function h(a,k,g){function m(a){f>l?n(a,"w"):f<l?n(a,"t"):f==l&&n(a,"s")}function n(a,b){"w"==a&&"w"==b?h():"w"==a&&"t"==b?d("w"):"w"==a&&"s"==b?d("w"):"t"==a&&"w"==b?d("w"):"t"==a&&"t"==b?h():"t"==a&&"s"==b?d("t"):"s"==a&&"w"==b?d("t"):"s"==a&&"t"==b?d("w"):"s"==a&&"s"==b&&d("w")}function h(){f*c/f>=e?d("t"):d("w")}function d(d){switch(d){case "t":"fit"==b.scale?a.attr("width",e):a.attr("height",c);break;case "w":"fit"==b.scale?a.attr("height",c):a.attr("width",
-e)}b.center&&(p=a.width(),q=a.height(),q>c&&(r="-"+Math.floor((q-c)/2)+"px",a.css("margin-top",r)),p>e&&(s="-"+Math.floor((p-e)/2)+"px",a.css("margin-left",s)));0<b.fade&&g?k.animate({opacity:1},b.fade):k.css("opacity",1)}c=k.height();e=k.width();l=a.height();f=a.width();e>c?m("w"):e<c?m("t"):e==c&&m("s")}b=g.extend({parent:!1,scale:"fill",center:!0,fade:0},b);var c,e,l,f,p,q,s,r;this.each(function(){var a=g(this),c=!b.parent?a.parent():a.parents(b.parent);c.css({opacity:0,overflow:"hidden"});0<c.length&&
-(a.removeAttr("height").removeAttr("width"),this.complete?h(a,c,!1):a.load(function(){h(a,c,!0)}))})}})(jQuery);
-\r
-\r
-\r
-window.onload=function(){Common.onPageLoad();setTimeout("Common.allOtherPageLoads();",100)};window.onunload=function(){};window.onresize=function(){};
-Common={onPageLoad:function(){Common.enableMerchPreviewMode();Common.checkJavascriptEnabled();Common.browserCompatibilityFixes();Common.displayMemberLinks()},allOtherPageLoads:function(){Widgets.onPageLoad();Accessibility.onPageLoad();Branches.onPageLoad();Search.onPageLoad();Share.onPageLoad();Calendar.onPageLoad();Details.onPageLoad()},goBack:function(){history.go(-1);return!1},getCurrentLocationEncoded:function(){return escape(document.URL)},checkJavascriptEnabled:function(){var a=Common.getElementsByClassName(document,
-"*","elem_jsEnabled"),b=Common.getElementsByClassName(document,"*","elem_jsDisabled");Common.setSessionCookie("jsCapable","true","/");for(var c=0;c<a.length;c++)a[c].style.display="block";for(c=0;c<b.length;c++)b[c].style.display="none"},browserCompatibilityFixes:function(){Common.checkIfIEVersion(6)&&(null!=document.getElementById("page-banner")&&(document.getElementById("page-banner").style.marginTop="-37px"),null!=document.getElementById("find-your-way")&&(document.getElementById("find-your-way").style.paddingBottom=
-"0px"))},enableMerchPreviewMode:function(){var a=Common.getQueryParameter("Nmrf");if(""!=a)for(var b=document.getElementsByTagName("A"),c=0;c<b.length;c++){var d=b[c].href;-1==d.indexOf("Nmrf")&&(-1==d.indexOf("?")?b[c].href=d+"?Nmrf="+a:b[c].href=d+"&Nmrf="+a)}},getElementsByClassName:function(a,b,c){if(null!=a){if(a.getElementsByClassName)return a.getElementsByClassName(c);a="*"==b&&document.all?document.all:a.getElementsByTagName(b);b=[];c=c.replace(/\-/g,"\\-");c=RegExp("(^|\\s)"+c+"(\\s|$)");
-for(var d,e=0;e<a.length;e++)d=a[e].getAttribute("className"),null==d&&(d=a[e].attributes.className),c.test(d)&&b.push(a[e]);return b}},getQueryParameter:function(a){return Common.getKeyValue(window.location.href,a)},getKeyValue:function(a,b){if(null!=a){"?"!=a.substring(0,1)&&(a="?"+a);var c="[\\?&]"+b.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]")+"=([^&#]*)",c=RegExp(c).exec(a);if(null!=c)return c[1]}return""},getFormKeyValuePairs:function(a){for(var b="",c="",d=0;d<a.elements.length;d++)"text"==
-a.elements[d].type||"textarea"==a.elements[d].type?b+=a.elements[d].name+"="+a.elements[d].value+",":"radio"==a.elements[d].type?a.elements[d].checked&&(b+=a.elements[d].name+"="+a.elements[d].value+","):"checkbox"==a.elements[d].type?a.elements[d].checked&&(b=(a.elements[d].name=c)?b+(b.substring(0,b.length-1)+" "+a.elements[d].value+","):b+(a.elements[d].value+"=1,"),c=a.elements[d].name):"select-one"==a.elements[d].type&&(b+=a.elements[d].name+"="+a.elements[d].options[a.elements[d].selectedIndex].text+
-",");0<b.length&&(b=b.substring(0,b.length-1));return b},setFormKeyValuePairs:function(a,b){if(null!=b&&null!=a)for(var c=b.split(","),d=0;d<c.length;d++){var e=c[d].split("=")[0],g=c[d].split("=")[1],e=a.elements[e];if(void 0==e[0])break;if("radio"==e[0].type)for(var f=0;f<e.length;f++)e[f].value==g&&(e[f].checked=!0);else if("checkbox"==e[0].type||"checkbox"==e.type)for(f=0;f<e.length;f++)for(var k=g.split(" "),h=0;h<k.length;h++){if(e[f].value==k[h]){e[f].checked=!0;break}}else if("select-one"==
-e.type)for(f=0;f<e.options.length;f++){if(e.options[f].value==g){e.selectedIndex=f;break}}else if("text"==e.type||"textarea"==e.type)e.value=g}},getQueryString:function(){var a=window.location.toString();return-1<a.indexOf("?")?(a.match(/\?(.+)$/),a=RegExp.$1,"$super"==a?"":"?"+a):""},getAbsoluteY:function(a){for(var b=0;null!=a;)b+=a.offsetTop,a=a.offsetParent;return b},getAbsoluteX:function(a){for(var b=0;null!=a;)b+=a.offsetLeft,a=a.offsetParent;return b},togglePopup:function(a,b,c,d){"block"==
-b.style.display?Common.hidePopup(b):Common.showPopup(a,b,c,d)},showPopup:function(a,b,c,d){b.style.left=Common.getAbsoluteX(a)+c+"px";b.style.top=Common.getAbsoluteY(a)+d+"px";b.style.display="block"},hidePopup:function(a){a.style.display="none"},checkIfIE:function(){return-1!=navigator.appVersion.indexOf("MSIE")?!0:!1},checkIfIEVersion:function(a){return Common.checkIfIE()?parseFloat(navigator.appVersion.split("MSIE")[1])==a?!0:!1:!1},toggleDisplay:function(a){"block"==document.getElementById(a).style.display?
-Common.hideBlock(a):Common.showBlock(a)},showBlock:function(a){document.getElementById(a).style.display="block"},hideBlock:function(a){document.getElementById(a).style.display="none"},getCookie:function(a){for(var b=document.cookie.split(/[; ]+/),c=0;c<b.length;c++)if(b[c].substring(0,b[c].indexOf("="))==a)return a=b[c].substring(b[c].indexOf("=")+1),unescape(a);return null},setCookie:function(a,b,c){var d=new Date;d.setDate(d.getDate()+365);a=a+"="+escape(b)+";expires="+d+";path="+c;document.cookie=
-a},setSessionCookie:function(a,b,c){a=a+"="+escape(b)+";path="+c;document.cookie=a},setCookieExp:function(a,b,c,d){var e=new Date;expires=36E5*d;expires=new Date(e.getTime()+expires);a=a+"="+escape(b)+";expires="+expires.toGMTString()+";path="+c;document.cookie=a},setDomainCookieExp:function(a,b,c,d,e){var g=new Date;expires=36E5*e;expires=new Date(g.getTime()+expires);a=a+"="+escape(b)+";expires="+expires.toGMTString()+";domain="+d+";path="+c;document.cookie=a},clearCookies:function(a){var b=1;"/"==
-a&&(b=confirm("This will clear any content and accessibility preferences you may have set on the site. Do you want to continue?","Reset"));if(b){for(var b=document.cookie.split(";"),c=0;c<b.length;c++){var d=b[c].indexOf("="),d=-1<d?b[c].substr(0,d):b[c];document.cookie=d+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path="+a}location.reload(!0)}},deleteCookie:function(a){for(var b=document.cookie.split(/[; ]+/),c=0;c<b.length;c++){var d=b[c].substring(0,b[c].indexOf("="));d==a&&(document.cookie=d+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/")}},
-loadAjaxComponent:function(a,b,c){return jQuery.ajax({url:SITE_ROOT+"/components/"+a,data:b,dataType:"html",async:!0,timeout:12E4,success:function(a,b,g){Common.replaceWithAjax(a,c)},error:function(){Common.replaceWithAjax("Sorry--could not load branch holdings.  Please try again.",c)}})},replaceWithAjax:function(a,b){if(""!=b&&null!=b){var c=document.getElementById(b);null!=c&&(c.innerHTML=a)}},clearInputBox:function(a){document.getElementById(a).value=""},displayMemberLinks:function(){Common.getCookie("user_id");
-Common.getCookie("password");var a=document.getElementById("member-links");if(null!=a){var b="";Common.getCookie("user_id");b=NaN;a.innerHtml=b}},getStepsSinceHold:function(){return Common.getCookie("stepsSinceHold")},incrementStepsSinceHold:function(){currentSteps=Common.getCookie("stepsSinceHold");Common.setCookie("stepsSinceHold",parseInt(currentSteps)+1,"/")},returnFromHold:function(){historyLength=history.length;currentSteps=Common.getCookie("stepsSinceHold");debugMessage="Current Steps: "+currentSteps+
-" | History length: "+historyLength;if(currentSteps>historyLength)return!0;Common.setCookie("returnFromHold","true","/");history.go(-currentSteps);return!1},processSignOutURL:function(a){var b=document.getElementById("sign-out-link");a+=Common.getCurrentLocationEncoded();b.href=a},processSignInURL:function(a){var b=document.getElementById("sign-in-link");a+=Common.getCurrentLocationEncoded();"true"==Common.getCookie("returnFromHold")?(signOutURL="http://"+SERVER_NAME.split(":")[0]+"/signout?returnTo="+
-Common.getCurrentLocationEncoded(),b.href=signOutURL,b.innerHTML="You are signed in. <u>Sign out</u>",Common.deleteCookie("returnFromHold")):b.href=a}};
-\r
-Search={onPageLoad:function(){Search.setCurrentSearchTerms();Search.setAdvancedSearchStyles()},ENDECA_PARAM_NAV_DESCRIPTORS:"N",ENDECA_PARAM_SEARCH_WITHIN_NAV_DESCRIPTOR:"Ewn",ENDECA_PARAM_SEARCH_TERMS:"Ntt",ENDECA_PARAM_RECORD_SEARCH:"R",ENDECA_ELEMENT_SEARCH_TERMS:"endecaSearchTerms",ENDECA_ELEMENT_RESULTS_PAGE_NAME:"endecaResultsPageName",ENDECA_ELEMENT_SEARCH_WITHIN:"endecaSearchWithin",ENDECA_ELEMENT_SEARCH_QUERYSTRING:"endecaSearchQueryString",ENDECA_ELEMENT_SEARCH_WITHIN_QUERYSTRING:"endecaSearchWithinQueryString",
-ENDECA_ELEMENT_SCOPED_SEARCH_DIMVALID:"endecaScopedSearchDimValId",ENDECA_ELEMENT_RECORD_COMPARE_PAGE:"endecaRecordComparePageName",redirect:function(a){""!=a&&(window.location.href=a)},addAndRedirect:function(a){if(""!=a){queryString=Common.getQueryString();if("Erp"==a.name){for(var b=queryString.replace("?","").split("&"),c="-1",d="-1",e=0;e<b.length;e++){var f=b[e].split("=");"No"==f[0]&&(c=f[1]);"Erp"==f[0]&&(d=f[1])}queryString=queryString.replace("Erp="+d,"");b=a.options[a.selectedIndex].value;
-b=parseInt(c)-parseInt(c)%parseInt(b);queryString=queryString.replace("No="+c,"No="+b)}url=queryString+"&"+a.name+"="+a.options[a.selectedIndex].value;url=url.replace("&&","&");window.location.href=url}},checkIfEnter:function(a,b){var c=null;b.which?c=b.which:b.keyCode&&(c=b.keyCode);13==c&&Search.submitSearch(a);return!0},submitSearch:function(a,b){terms=document.getElementById(b).value;if(""==terms)return!1;if(null!=a.searchIn&&!0!=a.searchIn.checked){var c=document.getElementById("searchInParams");
-null!=c&&(c.innerHTML="")}a.submit()},validateSearch:function(a){var b=a.elements[Search.ENDECA_ELEMENT_SEARCH_TERMS],c=a.elements[Search.ENDECA_ELEMENT_SEARCH_QUERYSTRING],d=a.elements[Search.ENDECA_ELEMENT_RESULTS_PAGE_NAME],e=a.elements[Search.ENDECA_ELEMENT_SEARCH_WITHIN_QUERYSTRING],f=a.elements[Search.ENDECA_ELEMENT_SCOPED_SEARCH_DIMVALID];a=(a=a.elements[Search.ENDECA_ELEMENT_SEARCH_WITHIN])?Search.getSearchWithinValue(a):"false";b&&(d&&""!=Search.trim(b.value))&&(b=d.value+"?"+Search.ENDECA_PARAM_SEARCH_TERMS+
-"="+Search.trim(b.value),f?(b+="&"+Search.ENDECA_PARAM_SEARCH_WITHIN_NAV_DESCRIPTOR+"="+f.value,b+="&"+Search.ENDECA_PARAM_NAV_DESCRIPTORS+"="+f.value):b+="&"+Search.ENDECA_PARAM_NAV_DESCRIPTORS+"=0",e&&""!=e.value&&"true"==a?b+="&"+e.value:c&&""!=c.value&&(b+="&"+c.value),Search.redirect(b))},validateScopedSearch:function(a,b){var c=a.elements[Search.ENDECA_ELEMENT_SEARCH_TERMS],d=a.elements[Search.ENDECA_ELEMENT_RESULTS_PAGE_NAME],e=a.elements[Search.ENDECA_ELEMENT_SEARCH_QUERYSTRING],f=a.elements[Search.ENDECA_ELEMENT_SEARCH_WITHIN_QUERYSTRING],
-g=document.forms[b],k=a.elements[Search.ENDECA_ELEMENT_SEARCH_WITHIN],k=k?Search.getSearchWithinValue(k):"false";if(c&&d&&""!=Search.trim(c.value)){if(g&&g.elements[Search.ENDECA_ELEMENT_SCOPED_SEARCH_DIMVALID]&&"true"!=k)var h=g.elements[Search.ENDECA_ELEMENT_SCOPED_SEARCH_DIMVALID],g=g.elements[Search.ENDECA_ELEMENT_RESULTS_PAGE_NAME],d="0"!=h.options[h.selectedIndex].value&&g&&""!=g.value?g.value+"?":d.value+"?",d=d+(Search.ENDECA_PARAM_SEARCH_WITHIN_NAV_DESCRIPTOR+"="+h.options[h.selectedIndex].value),
-d=d+("&"+Search.ENDECA_PARAM_NAV_DESCRIPTORS+"="+h.options[h.selectedIndex].value);else d=d.value+"?"+Search.ENDECA_PARAM_NAV_DESCRIPTORS+"=0";d+="&"+Search.ENDECA_PARAM_SEARCH_TERMS+"="+Search.trim(c.value);f&&""!=f.value&&"true"==k?d+="&"+f.value:e&&""!=e.value&&(d+="&"+e.value);Search.redirect(d)}},validateScopedSearchWithin:function(a,b,c){a=Search.getRadioValue(c);if((b=document.forms[b])&&b.elements[Search.ENDECA_ELEMENT_SCOPED_SEARCH_DIMVALID])c=b.elements[Search.ENDECA_ELEMENT_SCOPED_SEARCH_DIMVALID],
-"true"==a?(b.reset(),c.disabled=!0):(b.reset(),c.disabled=!1)},getSearchWithinValue:function(a){var b="false";a&&(b=a.length&&"radio"==a[0].type?Search.getRadioValue(a):a.value);return b},getRadioValue:function(a){if(!a)return"";var b=a.length;if(void 0==b)return a.checked?a.value:"";for(var c=0;c<b;c++)if(a[c].checked)return a[c].value;return""},trim:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},compareRecords:function(a){var b=[],c=a.elements[Search.ENDECA_ELEMENT_RECORD_COMPARE_PAGE];
-if(c){for(var d=0;d<a.length;d++){var e=a[d];e.checked&&b.push(e.value)}if(2>b.length)alert("Please select at least 2 products to compare");else if(4<b.length)alert("Please select no more than 4 products to compare");else{a=c.value+"?"+Search.ENDECA_PARAM_RECORD_SEARCH+"=";for(c=0;c<b.length;c++)a+=b[c],c!=b.length-1&&(a+="+");Search.redirect(a)}}},lookupOption:function(a){var b=document.getElementById(a+"Box").value.toUpperCase();a=document.getElementById(a);for(var c=!1,d=0;d<a.length;d++)a[d].selected=
-!1,!1==c&&a[d].innerHTML.toUpperCase().match("^"+b)==b&&(c=a[d].selected=!0)},listClicked:function(a){a=document.getElementById(a);location.href=a.options[a.selectedIndex].value},setCurrentSearchTerms:function(){var a=document.getElementById("currSearchTerms"),b=document.getElementById("currSearchWithinTerms");null!=a&&(0<a.value.length&&null!=document.getElementById("searchTerms"))&&(document.getElementById("searchTerms").value=a.value);null!=b&&(0<b.value.length&&null!=document.getElementById("searchWithinTerms"))&&
-(document.getElementById("searchWithinTerms").value=b.value)},magazineContextChange:function(a){if(null!=document.getElementById(a)){if("radio-online"==a){document.getElementById("online").style.display="block";document.getElementById("print").style.display="none";var b=document.getElementById("radio-print").src;document.getElementById("radio-print").src=document.getElementById("radio-online").src;document.getElementById("radio-online").src=b}"radio-print"==a&&(document.getElementById("online").style.display=
-"none",document.getElementById("print").style.display="block",b=document.getElementById("radio-print").src,document.getElementById("radio-print").src=document.getElementById("radio-online").src,document.getElementById("radio-online").src=b)}},validateNotBlank:function(a){return""==document.getElementById(a).value?(alert("Please enter at least one search term."),!1):!0},validateAdvancedSearch:function(){function a(a){""!=nVal&&""!=a&&(nVal+=" ");nVal+=a}nVal="";document.getElementById("search-terms");
-for(var b=document.forms["search-options"].type.options,c=0;c<b.length;c++)b[c].selected&&a(b[c].value);b=document.forms["search-options"].language.options;for(c=0;c<b.length;c++)b[c].selected&&a(b[c].value);b=document.forms["search-options"].branch.options;for(c=0;c<b.length;c++)b[c].selected&&a(b[c].value);for(var b=document.forms["search-options"].ages,d=0,c=0;c<b.length;c++)b[c].checked&&d++;if(d!=b.length)for(c=0;c<b.length;c++)b[c].checked&&a(b[c].value);c=document.getElementById("take-home");
-b=document.getElementById("in-library");if(!c.checked||!b.checked)c.checked&&a(c.value),b.checked&&a(b.value);c=document.getElementById("fiction");b=document.getElementById("non-fiction");if(!c.checked||!b.checked)c.checked&&a(c.value),b.checked&&a(b.value);var c=document.getElementById("pubYear1").value,b=document.getElementById("pubYear2").value,d=document.getElementById("rangeFilter"),e=!1;endYear=!1;if(""!=c&&"any year"!=c)if(isNumeric(c))e=!0;else return alert("Publication Year start value must be numeric or left blank!"),
-!1;if(""!=b&&"any year"!=b)if(isNumeric(b))endYear=!0;else return alert("Publication Year end value must be numeric or left blank!"),!1;var f="";if(e||endYear)e&&(f="p_pub_date_sort|GTEQ "+c),endYear&&(""!=f&&(f+="|"),f=f+"p_pub_date_sort|LTEQ "+b),d.value=f;""==f&&document.getElementById("search-box").removeChild(d);""==nVal&&(nVal=0);document.getElementById("navContext").value=nVal;return!0},clearBox:function(a){var b=a.value;if("Type in search terms here"==b||"any year"==b)a.value="";a.style.color=
-"#000"}};function isNumeric(a){return/(^\d+$)|(^\d+\.\d+$)/.test(a)?!0:!1}
-Search.setAdvancedSearchStyles=function(){var a=document.getElementById("search-terms");null!=a&&("Type in search terms here"!=a.value&&""!=a.value&&(document.getElementById("search-terms").style.color="#000"),null!=document.getElementById("pubYear1")&&(a=document.getElementById("pubYear1").value,""!=a&&"any year"!=a&&(document.getElementById("pubYear1").style.color="#000")),null!=document.getElementById("pubYear2")&&(a=document.getElementById("pubYear2").value,""!=a&&"any year"!=a&&(document.getElementById("pubYear2").style.color=
-"#000")))};
-Search.doMagazineSearchSwitch=function(a){var b=document.getElementById("magazine-search-form"),c=document.getElementById("magazine-search-text"),d=document.getElementById("magazine-search-text-hint"),e=document.getElementById("magazine-search-hidden-fields");"keyword"==a?(b.action="https://ezproxy.torontopubliclibrary.ca/form?qurl=http://VC4KB8YF3Q.cs.serialssolutions.com/resultFrameset.jsp",b.method="post",d.innerHTML='Enter keywords - e.g., iphone, "airport security"',c.name="term0",e.innerHTML=
-"<input value='VC4KB8YF3Q' name='SS_LibHash' type='hidden' /><input value='' name='dbIDList' type='hidden' /><input value='default' name='catGroupList' type='hidden' /><input value='' name='currentCat' type='hidden' /><input value='Category' name='searchBy' type='hidden' /><input value='any' name='field' type='hidden' /><input value='27098' name='catID' type='hidden' />"):"title"==a&&(b.action="http://vc4kb8yf3q.search.serialssolutions.com/",b.method="get",d.innerHTML="Enter title - e.g., <em>Consumer Reports</em>",
-c.name="C",e.innerHTML="<input value='1.0' name='V' type='hidden' /><input value='100' name='N' type='hidden' /><input value='AC_T_B' name='S' type='hidden' /><input type='hidden' name='L' value='VC4KB8YF3Q' />")};Search.doMagazineSearchSetup=function(){var a=document.getElementById("magazine-radio-keyword"),b=document.getElementById("magazine-radio-title");a.checked?Search.doMagazineSearchSwitch("keyword"):b.checked&&Search.doMagazineSearchSwitch("title")};
-\r
-Widgets={onPageLoad:function(){Widgets.initRefinementTypeahead();Widgets.initCarousels()},getDynaWidgets:function(){for(var a=Common.getElementsByClassName(document,"*","widget"),b=[],c=0;c<a.length;c++)""==a[c].innerHTML&&b.push(a[c]);return b},loadWidget:function(a){var b=Widgets.loadPreferences(a.id),b=Branches.setBranchFilters(b),b=jQuery.ajax({url:SITE_ROOT+"/components/widget_"+a.id+".jspf",data:b,dataType:"html",async:!1}).responseText;a.innerHTML=b;Widgets.renderPreferences(a.id);Widgets.positionEditButton(a)},
-togglePreferencesPanel:function(a){"block"==document.getElementById("panel_"+a).style.display?Common.hideBlock("panel_"+a):(Common.showBlock("panel_"+a),Widgets.renderPreferences(a))},positionEditButton:function(a){var b=document.getElementById("btn_edit_"+a.id);null!=b&&(b.style.top=Common.getAbsoluteY(a)+1+"px",b.style.left=Common.getAbsoluteX(a)+270+"px")},positionEditButtons:function(){for(var a=Common.getElementsByClassName(document.getElementById("homepage"),"div","edit-button"),b=0;b<a.length;b++){var c=
-a[b].id,e=c.substring(c.lastIndexOf("_")+1),e=document.getElementById(e),c=document.getElementById(c);c.style.top=Common.getAbsoluteY(e)+1+"px";c.style.left=Common.getAbsoluteX(e)+270+"px"}},renderPreferences:function(a){var b=Common.getCookie("pref_widgets");if(null!=b)for(var b=b.split(","),c=0;c<b.length;c++){var e=b[c].split("=")[0],d=b[c].split("=")[1],f=null;null!=d&&(f=d.split(" "));var g=document.getElementById("panel_"+a);if(null!=g){for(var d=g.getElementsByTagName("input"),g=g.getElementsByTagName("select"),
-h=0;h<d.length;h++){var k=d[h];if(k.id==e)for(var l=0;l<f.length;l++)k.value==f[l]&&(k.checked=!0)}for(h=0;h<g.length;h++){k=g[h];for(e=0;e<k.options.length;e++)k.options[e].value==f[h]&&(k.options[e].selected=!0)}}}},loadPreferences:function(a){var b=Common.getCookie("pref_widgets"),c="";if(null!=b)for(var b=b.split(","),e=0;e<b.length;e++){var d=b[e].split("=")[0],f=b[e].split("=")[1];if(d==a){0<optionKeys.length&&(optionKeys+=" ");c+=a+"-"+f.replace(" "," "+a+"-");break}}0==c.length&&(c=a+"-1");
-return"Ntt="+c},savePreferences:function(a){for(var b=document.getElementById(a),c=document.getElementById("edit_"+a),e=c.getElementsByTagName("input"),c=c.getElementsByTagName("select"),d="",f=e[0].id,g="",h=0;h<e.length;h++){var k=e[h];k.checked&&(f!=k.id&&""!=g&&(d+=f+"="+g.substring(0,g.length-1)+",",f=k.id,g=""),g+=k.value+" ")}""!=g&&(d+=f+"="+g.substring(0,g.length-1)+",");for(h=0;h<c.length;h++)k=c[h],f=k.id,d+=f+"="+k.options[k.selectedIndex].value+",";Common.setCookie(a,d.substring(0,d.length-
-1),"");Widgets.loadWidget(b)},showMultiSpotlight:function(a){for(var b=1;null!=document.getElementById("spotlight-multi-"+b);)document.getElementById("spotlight-multi-"+b).className="spotlight-multi",document.getElementById("spotlight-multi-tab-"+b).className="spotlight-multi-tab",b+=1;document.getElementById("spotlight-multi-"+a).className="spotlight-multi-selected";document.getElementById("spotlight-multi-tab-"+a).className="spotlight-multi-tab-selected"}};var settingsRefinementTypeahead="";
-Widgets.initRefinementTypeahead=function(){var a=settingsRefinementTypeahead.split("|");if(""!=settingsRefinementTypeahead&&null!=a)for(var b=0;b<a.length;b++){Common.loadAjaxComponent("elem_refinement-typeahead.jspf","dimensionName="+a[b],"refinement-typeahead-"+a[b]);for(var c=document.getElementById("refinement-typeahead-"+a[b]).getElementsByTagName("ul"),e=0;e<c.length;e++){var d=c[e];if(-1<d.className.indexOf("checklist"))for(var d=d.getElementsByTagName("label"),f=0;f<d.length;f++){var g=d[f];
-g.onmouseover=function(){this.className+=" hover"};g.onmouseout=function(){this.className=this.className.replace(" hover","")}}}}};
-Widgets.updateRefinementTypeahead=function(a,b){a=a.toLowerCase();var c=document.getElementById("refinement-typeahead-"+b);if(null!=c)for(var c=c.getElementsByTagName("ul"),e=0;e<c.length;e++){var d=c[e];if(-1<d.className.indexOf("checklist"))for(var d=d.getElementsByTagName("li"),f=0;f<d.length;f++){var g=d[f].getElementsByTagName("label")[0];g.getAttribute("title").toLowerCase().match("^"+a)==a?d[f].style.display="block":(d[f].style.display="none",g=document.getElementById(g.getAttribute("title")),
-g.name==b&&(g.checked=!1))}}};Widgets.showRefinements=function(a){var b=document.getElementById("select-others-"+a),c=document.getElementById("cancel-others-"+a),e=document.getElementById("clear-"+a);a=document.getElementById("refinements-"+a);b.style.display="none";e.style.display="none";c.style.display="block";a.style.display="block"};
-Widgets.hideRefinements=function(a){var b=document.getElementById("select-others-"+a),c=document.getElementById("cancel-others-"+a),e=document.getElementById("clear-"+a);a=document.getElementById("refinements-"+a);b.style.display="block";e.style.display="block";c.style.display="none";a.style.display="none"};
-Widgets.initCarousels=function(){var a=Common.getElementsByClassName(document,"*","carousel");if(null!=a)for(var b=0;b<a.length;b++){var c=3,e=document.getElementById(a[b].id+"-numVisible");null!=e&&(c=e.value);var e=Math.round(c/2)-1,d=new YAHOO.widget.Carousel(a[b].id);d.set("isCircular",!0);d.set("numVisible",parseInt(c));d.set("animation",{speed:0.25});d.render();d.show();document.getElementById(d.get("id")+"_title").innerHTML=document.getElementById(d.get("id")+"_title_"+(null!=d.get("firstVisible")?
-d.get("firstVisible")+e:1)).innerHTML;eval("carousel_"+a[b].id+" = carousel;");document.getElementById(a[b].id).style.display="block"}};
-Widgets.scrollCarousel=function(a,b){var c="carousel_"+a,e=3,d=document.getElementById(a+"-numVisible");null!=d&&(e=d.value);var d=Math.round(e/2)-1,f=eval(c+'.get("firstVisible");'),g=eval(c+'.get("numItems");');"forward"==b?(f==g-e&&eval(c+'.set("animation", { speed: 0 });  '+c+".scrollTo(0); "+c+'.set("animation", { speed: 0.25 });'),eval(c+".scrollForward();")):"backward"==b&&(0==f&&eval(c+'.set("animation", { speed: 0 });  '+c+".scrollTo("+(g-e)+"); "+c+'.set("animation", { speed: 0.25 });'),
-eval(c+".scrollBackward();"));f=eval(c+'.get("firstVisible");');document.getElementById(a+"_title").innerHTML=document.getElementById(a+"_title_"+(f+d)).innerHTML};
-\r
-Share={onPageLoad:function(){Share.createPageActions()},createPageActions:function(){null!=document.getElementById("link-link")&&(document.getElementById("link-link").onclick=function(){Share.showLinkPopup()});null!=document.getElementById("embed-link")&&(document.getElementById("embed-link").onclick=function(){Share.showEmbedPopup()});null!=document.getElementById("email-link")&&(document.getElementById("email-link").onclick=function(){Share.showEmailPopup()});null!=document.getElementById("rss-link")&&
-(document.getElementById("rss-link").onclick=function(){Share.showRssPopup()})},showEmailPopup:function(){}};function replaceAll(a,b,c){for(;-1<a.indexOf(b);)a=a.replace(b,c);return a}
-Share.showEmbedPopup=function(){var a=location.href,a=-1<a.indexOf("/_/")?a.substring(a.indexOf("/_/")):a.substring(a.indexOf("?")+1),b=document.getElementById("rss-script").innerHTML,b=replaceAll(b,"##serverName##",SERVER_NAME),b=replaceAll(b,"##siteRoot##",SITE_ROOT),b=replaceAll(b,"##querystring##",a);document.getElementById("rss-script").innerHTML=b;a=document.getElementById("embed-link");b=document.getElementById("share-embed");b.style.display="block";b.style.top=Common.getAbsoluteY(a)-280+"px";
-b.style.left=Common.getAbsoluteX(a)-543+"px";b.style.zIndex=100};Share.showLinkPopup=function(){var a=location.href;document.getElementById("link-url").innerHTML=a;var a=document.getElementById("link-link"),b=document.getElementById("share-link");b.style.display="block";b.style.top=Common.getAbsoluteY(a)-280+"px";b.style.left=Common.getAbsoluteX(a)-543+"px";b.style.zIndex=100};Share.hidePopup=function(a){document.getElementById(a).style.display="none"};
-Share.showRssPopup=function(){var a=location.href,a=-1<a.indexOf("/_/")?a.substring(a.indexOf("/_/")):a.substring(a.indexOf("?")),a=("http://##serverName####sitePages##/rss.jsp"+a).replace("##querystring##",a),a=a.replace("##serverName##",SERVER_NAME),a=a.replace("##sitePages##",SITE_PAGES);document.getElementById("rss-url").innerHTML=a;document.getElementById("rss-icon");a=document.getElementById("share-rss");a.style.display="block";try{a.style.top=a.style.top+37+"px",a.style.left=145+a.style.left-
-a.offsetWidth+"px"}catch(b){}a.style.zIndex="100"};Share.hideRssPopup=function(){document.getElementById("share-rss").style.display="none"};Share.copyTextArea=function(a){Common.checkIfIE()?(a.focus(),a.select(),a.createTextRange().execCommand("Copy"),alert("Content copied to clipboard!")):alert("Automatic copy is not supported by your browser, please highlight and copy manually")};
-\r
-Accessibility={};var form;Accessibility.onPageLoad=function(){Accessibility.loadPreferences()};Accessibility.savePreferences=function(){var e=Common.getFormKeyValuePairs(form);Common.setCookie("accessibility",e,"/")};Accessibility.loadPreferences=function(){form=document.forms.settings;var e=Common.getCookie("accessibility");Accessibility.applyPreferences(e,document);null!=form&&(Common.setFormKeyValuePairs(form,e),Accessibility.addPreviewEventHandlers())};
-Accessibility.addPreviewEventHandlers=function(){for(var e=form.elements,f=0;f<e.length;f++)if("checkbox"==e[f].type||"radio"==e[f].type||"select-one"==e[f].type)Common.checkIfIE()?e[f].onclick=function(){Accessibility.refreshPreview()}:e[f].setAttribute("onclick","Accessibility.refreshPreview()")};
-Accessibility.refreshPreview=function(){if(document.getElementById("autopreview").checked){var e=Common.getFormKeyValuePairs(form);Accessibility.applyPreferences(e,document.getElementById("preview"));document.getElementById("preview").style.display="block"}else document.getElementById("preview").style.display="none"};Accessibility.getPreference=function(e){var f=Common.getCookie("accessibility");return null!=f?Common.getKeyValue(f,e):null};
-Accessibility.applyPreferences=function(e,f){var a=Common.getKeyValue(e,"graphics");if(null!=a&&"full"!=a)if("simple"==a)for(var c=f.getElementsByTagName("img"),a=0;a<c.length;a++){var b=c[a];-1==b.className.indexOf("_simple")&&-1==b.className.indexOf("_alwaysShow")&&(b.style.display="none")}else if("off"==a){c=f.getElementsByTagName("img");for(a=0;a<c.length;a++)b=c[a],-1==b.className.indexOf("_alwaysShow")&&(b.style.display="none")}a=Common.getKeyValue(e,"layout");if(null!=a&&"yes"==a){c=Common.getElementsByClassName(f,
-"*","_simpleLayout");for(a=0;a<c.length;a++)c[a].style.display="block";c=document.styleSheets.length;for(a=0;a<c;a++)document.styleSheets[a].disabled=!0}b=Common.getKeyValue(e,"textspacing");if(null!=b&&""!=b&&(c=Common.getElementsByClassName(f,"*","main"),null!=c))for(a=0;a<c.length;a++)""==c[a].style.letterSpacing&&(c[a].style.letterSpacing="0px"),c[a].style.letterSpacing=parseFloat(b)+"px";var h=Common.getKeyValue(e,"linkhighlight");if(null!=h&&(c=f.getElementsByTagName("A"),null!=c))for(a=0;a<
-c.length;a++)b=c[a],"A"==b.nodeName&&(c[a].style.backgroundColor=1==h?"#FFFF00":"");c=Common.getKeyValue(e,"colors");if(null!=c){b="";f==document.getElementById("preview")&&(b="#preview ");h=document.styleSheets.length;for(a=0;a<=h;a++)try{var d=document.styleSheets[a],g=d.cssRules?d.cssRules:d.rules;break}catch(k){}"Default"!=c&&("High Contrast"==c?d.insertRule?(d.insertRule(b+"body { background-color: #000000; color: #EEEE00;}",g.length),d.insertRule(b+"a { color: #00FFFF; }",g.length)):(d.addRule(b+
-"body","background-color: #000000; color: #EEEE00;",g.length),d.addRule(b+"a","color: #00FFFF;",g.length)):"Soft"==c?d.insertRule?(d.insertRule(b+"body { background-color: #FFFFCC; color: #333329;}",g.length),d.insertRule(b+"a { color: #4444F1; }",g.length)):(d.addRule(b+"body","background-color: #FFFFCC; color: #333329;",g.length),d.addRule(b+"a","color: #4444F1;",g.length)):"Simple"==c?d.insertRule?(d.insertRule(b+"body { background-color: #FFFFFF; color: #000000;}",g.length),d.insertRule(b+"a { color: #2222B5; }",
-g.length)):(d.addRule(b+"body","background-color: #FFFFFF; color: #000000;",g.length),d.addRule(b+"a","color: #2222B5;",g.length)):"Blue"==c&&(d.insertRule?(d.insertRule(b+"body { background-color: #9FCFFF; color: #010066;}",g.length),d.insertRule(b+"a { color: #000FFF; }",g.length)):(d.addRule(b+"body","background-color: #9FCFFF; color: #010066;",g.length),d.addRule(b+"a","color: #000FFF;",g.length))))}};
-\r
-Branches={};var geocoder,map,qString,place,point,maxlon,minlon,maxlat,minlat,infoWindow,NEIGHBOURHOOD_BRANCH="Neighbourhood",DISTRICT_BRANCH="District",REFERENCE_BRANCH="Research and Reference",BOOKMOBILE="Bookmobile";Branches.onPageLoad=function(){Branches.init()};Branches.clearSearch=function(){location.href=SITE_PAGES+"/hours-locations/"};
-Branches.init=function(){qString=Common.getQueryString();if(null!=qString&&null!=document.getElementById("map_canvas")){null==google.maps&&google.load("maps","3",{other_params:"sensor=false"});if(null!=document.getElementById("searchType1")&&null!=document.getElementById("searchType2")&&(-1==qString.indexOf("Ntt=")||-1<qString.indexOf("Nttb=")))document.getElementById("searchType1").checked=!0;var a,c,b;null!=document.getElementById("map-one-icon")?(a=43.72535,c=-79.40483,b=11):null!=document.getElementById("bookmobiles-left-column")?
-(a=43.7080862,c=-79.3993254,b=11):(a=43.667262962962944,c=-79.37446666666666,b=12);infoWindow=new google.maps.InfoWindow;infoWindow.setOptions({maxWidth:330});a=new google.maps.LatLng(a,c);b={zoom:b,center:a,mapTypeId:google.maps.MapTypeId.ROADMAP,mapTypeControl:!0,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.HORIZONTAL_BAR,position:google.maps.ControlPosition.TOP_RIGHT},panControl:!0,panControlOptions:{position:google.maps.ControlPosition.TOP_LEFT},zoomControl:!0,zoomControlOptions:{style:google.maps.ZoomControlStyle.LARGE,
-position:google.maps.ControlPosition.TOP_LEFT}};map=new google.maps.Map(document.getElementById("map_canvas"),b);geocoder=new google.maps.Geocoder;for(b=0;b<branches.length;b++)a=new google.maps.LatLng(branches[b].latitude,branches[b].longitude),a=Branches.createMarker(a,branches[b].record_id,branches[b].branch_type,branches[b].name,map),a.setMap(map);1==branches.length&&(map.setCenter(new google.maps.LatLng(branches[0].latitude,branches[0].longitude),10),map.setZoom(14));Branches.locate(Common.getKeyValue(Common.getQueryString(),
-"Nttb"));document.getElementById("map-loading")&&(document.getElementById("map-loading").style.display="none");null!=document.getElementById("arabic")&&(OPTIONAL=1)}};
-Branches.search=function(){qString=""!=qString?qString+"&":qString;if("true"==document.getElementById("searchType1").value){var a=document.getElementById("locationTerms").value,c=new google.maps.LatLngBounds(new google.maps.LatLng(43.58436,-79.62238),new google.maps.LatLng(43.85593,-79.12062));geocoder.geocode({address:a,bounds:c,region:"CA"},function(b,a){a==google.maps.GeocoderStatus.OK?(setCoordinatesRange(b[0].geometry.location.lat(),b[0].geometry.location.lng()),executeRangeFilterQuery()):alert("Sorry, we were unable to process that address. Please try again.")})}else!0==
-document.getElementById("searchType2").checked&&executeKeywordQuery()};
-Branches.locate=function(a){if(""!=a){var c=new google.maps.LatLngBounds(new google.maps.LatLng(43.58436,-79.62238),new google.maps.LatLng(43.85593,-79.12062));geocoder.geocode({address:a,bounds:c,region:"CA"},function(b,a){if(a==google.maps.GeocoderStatus.OK){map.setCenter(b[0].geometry.location);map.setZoom(13);var c=new google.maps.Marker({position:b[0].geometry.location,map:map});infoWindow.setContent("Your location: "+b[0].formatted_address);infoWindow.open(map,c)}else alert("Geocode was not successful for the following reason: "+
-a)})}};function executeKeywordQuery(){currQueryString=FilterHandler.removeRangeFilter();document.forms.searchBranches.Nf.value="";document.forms.searchBranches.Nttb.value="";document.forms.searchBranches.submit()}
-function executeRangeFilterQuery(){currQueryString=FilterHandler.removeRangeFilter();document.forms.searchBranches.Nttb.value=document.getElementById("locationTerms").value;document.getElementById("locationTerms").value="";document.forms.searchBranches.Nf.value=Common.getKeyValue(currQueryString,"Nf");document.forms.searchBranches.submit()}
-function setCoordinatesRange(a,c){maxlon=c+180/Math.PI*Math.asin(Math.sin(5/6371.009)/Math.cos(a*Math.PI/180));minlon=c-180/Math.PI*Math.asin(Math.sin(5/6371.009)/Math.cos(a*Math.PI/180));maxlat=a+180/Math.PI*(5/6371.009);minlat=a-180/Math.PI*(5/6371.009)}function branchesNearBy(a){""!=a&&(document.forms.searchBranches.Ntt.value=a,document.forms.searchBranches.Ntx.value="mode+matchany",document.forms.searchBranches.Ntk.value="p_library_branch",document.forms.searchBranches.submit())}
-function distance(a,c,b,d){a=parseFloat(a);c=parseFloat(c);b=parseFloat(b);d=parseFloat(d);a=(90-a)*Math.PI/180;c=(90-c)*Math.PI/180;b=b*Math.PI/180;d=d*Math.PI/180;return 6373*Math.acos(Math.sin(a)*Math.sin(c)*Math.cos(b-d)+Math.cos(a)*Math.cos(c))}
-Branches.createMarker=function(a,c,b,d,g){var e,f;null!=document.getElementById("map-one-icon")?(b=SITE_ROOT+"/images/google/gIcon_reference.png",e=d=24,f=new google.maps.Point(12,12)):-1!=d.indexOf("Merril")|-1!=d.indexOf("Osborne")|-1!=d.indexOf("Urban Affairs")?(b=SITE_ROOT+"/images/google/gIcon_neighbourhood.png",e=d=12,f=new google.maps.Point(6,6)):-1!=b.indexOf(REFERENCE_BRANCH)?(b=SITE_ROOT+"/images/google/gIcon_reference.png",e=d=24,f=new google.maps.Point(12,12)):-1!=b.indexOf(DISTRICT_BRANCH)?
-(b=SITE_ROOT+"/images/google/gIcon_district.png",e=d=18,f=new google.maps.Point(9,9)):-1!=b.indexOf(NEIGHBOURHOOD_BRANCH)?(b=SITE_ROOT+"/images/google/gIcon_neighbourhood.png",e=d=12,f=new google.maps.Point(6,6)):-1!=b.indexOf(BOOKMOBILE)?(b=SITE_ROOT+"/images/google/gIcon_bookmobile.png",e=d=16,f=new google.maps.Point(8,8)):(b=SITE_ROOT+"/images/google/gIcon_neighbourhood.png",e=d=12,f=new google.maps.Point(6,6));b=new google.maps.MarkerImage(b,new google.maps.Size(e,d),new google.maps.Point(0,0),
-f,new google.maps.Size(e,d));b=new google.maps.Marker({position:a,icon:b});google.maps.event.addListener(b,"click",function(){g.panTo(a);infoWindow.setContent(Branches.showBranchInfoWindow(c));infoWindow.open(g,new google.maps.Marker({position:a}))});return b};Branches.showBranchInfoWindow=function(a){return jQuery.ajax({url:SITE_ROOT+"/components/widget_branch-infowindow.jspf",data:"R="+a,dataType:"html",async:!1}).responseText};
-Branches.showBranchInfo=function(a){null!=document.getElementById("branch-info")&&(a=jQuery.ajax({url:SITE_ROOT+"/components/widget_branch-infowindow.jspf",data:"R="+a,dataType:"html",async:!1}).responseText,document.getElementById("branch-info").innerHTML=a)};Branches.onEnter=function(a,c){var b=null;c.which?b=c.which:c.keyCode&&(b=c.keyCode);return 13==b?(Branches.search(),!1):!0};Branches.showDetailImage=function(a){document.getElementById("detail-image").src=a};
-Branches.showDetailImageAtLoc=function(a,c){document.getElementById(a).src=c};Branches.goToBranch=function(a,c,b){infoWindow.close();a=new google.maps.LatLng(a,c);map.setCenter(a);infoWindow.setContent(Branches.showBranchInfoWindow(b));b=new google.maps.Marker({position:a});infoWindow.open(map,b)};
-\r
-Calendar={};var DATE_FIELD="p_pub_date_sort",DATE_RANGE=0,SELECT_MONTH=1,INPUT_RANGE=2,SELECT_DATE=3,months=Array(12);months[0]="January";months[1]="February";months[2]="March";months[3]="April";months[4]="May";months[5]="June";months[6]="July";months[7]="August";months[8]="September";months[9]="October";months[10]="November";months[11]="December";var hideCal=!1;
-Calendar.onPageLoad=function(){if(null!=document.getElementById("date-selector-bar")||""!=Common.getKeyValue(Common.getQueryString(),"eT"))Calendar.showDateSelectorBar(),$("body").click(function(a){""==a.target.id&&"A"!=a.target.nodeName&&Calendar.hideCalendar()});null!=document.getElementById("calendar-inline")&&Calendar.showCalendar(null,INPUT_RANGE,0,0)};Calendar.setDateRangeFilter=function(a,b){location.href=FilterHandler.updateRangeFilter(DATE_FIELD,"BTWN",a+" "+b)+"&eT=DateRange"};
-Calendar.setMonthFilter=function(a,b){var c=Calendar.toEpochDate(b,a,1),e=Calendar.toEpochDate(b,a,[31,28,31,30,31,30,31,31,30,31,30,31][a]);location.href=FilterHandler.updateRangeFilter(DATE_FIELD,"BTWN",c+" "+e)+"&eT=Month"};
-Calendar.set30DayFilter=function(){var a=new Date,b=Calendar.toEpochDate(a.getFullYear(),a.getMonth(),a.getDate()),a=new Date(a.getTime()+2592E6),a=Calendar.toEpochDate(a.getFullYear(),a.getMonth(),a.getDate());location.href=FilterHandler.updateRangeFilter(DATE_FIELD,"BTWN",b+" "+a)+"&eT=30Day"};Calendar.removeFilters=function(){var a=FilterHandler.removeRangeFilter();location.href=""==a?"?":a};var pageTab,currTab,currLink;
-Calendar.showDateSelectorBar=function(){var a,b;a=Common.getKeyValue(Common.getQueryString(),"eT");if(""!=a){var c=unescape(Common.getKeyValue(Common.getQueryString(),"Nf")),c=c.split("|")[1];b=c.substring(c.indexOf(" ")+1)}else a="All";c=document.getElementById("date-selector-title");"All"==a?(document.getElementById("date-selector-tab1").className="search-tab-selected",null!=c&&(c.innerHTML="Displaying <b>All events</b>"),currTab=1,currLink=document.getElementById("date-selector-tab1").innerHTML):
-"30Day"==a?(document.getElementById("date-selector-tab2").className="search-tab-selected",null!=c&&(c.innerHTML="Displaying events <b>Upcoming this month</b>"),currTab=2,currLink=document.getElementById("date-selector-tab2").innerHTML):"Month"==a?(a=parseInt(b.split(" ")[0].substring(4,6)),b=b.split(" ")[0].substring(0,4),document.getElementById("date-selector-tab3").className="search-tab-selected",null!=c&&(c.innerHTML="Displaying events for <b>"+months[a-1]+" "+b+"</b>"),currTab=3,currLink=document.getElementById("date-selector-tab3").innerHTML):
-"DateRange"==a&&(a=b.split(" ")[0],b=b.split(" ")[1],document.getElementById("date-selector-tab4").className="search-tab-selected",null!=c&&(c.innerHTML="Displaying events <b>"+Calendar.fromEpochDate(a)+" to "+Calendar.fromEpochDate(b)+"</b>"),currTab=4,currLink=document.getElementById("date-selector-tab4").innerHTML);pageTab=currTab;Calendar.roundDateSelectorTabs()};
-Calendar.roundDateSelectorTabs=function(){var a={tl:{radius:10},tr:{radius:10},bl:{radius:0},br:{radius:0},antiAlias:!0};null!=Common.getElementsByClassName(document,"*","search-tab")&&curvyCorners(a,".search-tab-selected")};var selType=INPUT_RANGE,cal=null,calClick;
-Calendar.showCalendar=function(a,b,c,e){a=1==a.length?document.getElementById("date-selector-tab"+a):document.getElementById(a);if(null!=a)if(c=-Common.getAbsoluteX(a.parentNode)+c,e=-Common.getAbsoluteY(a.parentNode)+e,selType=b,null!=cal&&(cal.destroy(),cal=null),selType==SELECT_MONTH){Common.hidePopup(document.getElementById("calendar-popup"));b=document.getElementById("calendar-month");for(var f=(new Date).getMonth(),d=(new Date).getFullYear(),h="<select id='months' name='months'>",g=0;12>g;g++)h+=
-"<option value='"+(f+g+1)+"/"+d+"'>"+months[f+g]+" "+d+"</option>",11==f+g&&(f-=12,d++);document.getElementById("calendar-month-options").innerHTML=h+"</select>";Common.showPopup(a,b,c,e)}else selType==DATE_RANGE?(null!=document.getElementById("calendar-month")&&Common.hidePopup(document.getElementById("calendar-month")),cal=new YAHOO.custom.IntervalCalendar("calendar-popup",{pages:1,close:!0}),cal.selectEvent.subscribe(function(){0<cal.getInterval().length&&Calendar.executeSelection(cal)},cal,!0),
-cal.render(),calClick=!0,document.getElementById("calendar-popup").onclick=function(){calClick=!0},Common.showPopup(a,document.getElementById("calendar-popup"),c,e)):selType==SELECT_DATE?(d=new Date,b=d.getMonth()+1,f=d.getDate(),d=d.getFullYear(),cal=new YAHOO.custom.IntervalCalendar("calendar-popup",{pages:1,mindate:b+"/"+f+"/"+d,close:!0}),cal.selectEvent.subscribe(function(){0<cal.getInterval().length&&Calendar.executeSelection(cal)},cal,!0),cal.render(),calClick=!0,document.getElementById("calendar-popup").onclick=
-function(){calClick=!0},Common.showPopup(a,document.getElementById("calendar-popup"),c,e)):selType==INPUT_RANGE&&("block"==document.getElementById("calendar-popup").style.display?Common.hidePopup(document.getElementById("calendar-popup")):(cal=new YAHOO.custom.IntervalCalendar("calendar-popup",{pages:1,close:!0}),cal.selectEvent.subscribe(function(){Calendar.executeSelection(cal)},cal,!0),cal.render(),Common.showPopup(a,document.getElementById("calendar-popup"),c,e)))};
-Calendar.hideCalendar=function(){null!=cal&&(cal.destroy(),cal=null,Common.hidePopup(document.getElementById("calendar-popup")))};
-Calendar.executeSelection=function(a){if(selType==SELECT_MONTH){Common.togglePopup(null,document.getElementById("calendar-month"),0,0);var b=document.getElementById("months").options[document.getElementById("months").selectedIndex].value;a=b.split("/")[0];b=b.split("/")[1];Calendar.setMonthFilter(a-1,b)}else selType==SELECT_DATE?(a=a.getInterval()[0],document.getElementById("txtDate").value=zeroPad(a.getDate()+"/"+(a.getMonth()+1)+"/"+a.getFullYear()),Common.togglePopup(null,document.getElementById("calendar-popup"),
-0,0)):selType==DATE_RANGE?(b=a.getInterval(),a=Calendar.toEpochDate(b[0].getFullYear(),b[0].getMonth(),b[0].getDate()),b=Calendar.toEpochDate(b[1].getFullYear(),b[1].getMonth(),b[1].getDate()),Common.togglePopup(null,document.getElementById("calendar-popup"),0,0),Calendar.setDateRangeFilter(a,b)):selType==INPUT_RANGE&&(b=a.getInterval(),1==b.length?(document.getElementById("txtStartDay").value=zeroPad(b[0].getDate()),document.getElementById("txtStartMonth").value=zeroPad(b[0].getMonth()+1),document.getElementById("txtStartYear").value=
-b[0].getFullYear()):2==b.length&&(document.getElementById("txtEndDay").value=zeroPad(b[1].getDate()),document.getElementById("txtEndMonth").value=zeroPad(b[1].getMonth()+1),document.getElementById("txtEndYear").value=b[1].getFullYear(),Common.hidePopup(document.getElementById("calendar-popup"))))};function zeroPad(a){return 10>a?"0"+a.toString():a.toString()}
-Calendar.toEpochDate=function(a,b,c){a=50>a?"20"+a.toString():a.toString();c=10>c?"0"+c.toString():c.toString();b=1+b;b=10>b?"0"+b.toString():b.toString();return""+a+b+c};Calendar.fromEpochDate=function(a){return months[parseInt(a.substring(4,6))-1]+" "+a.substring(6,8)+", "+a.substring(0,4)};
-function IntervalCalendar(a,b){this._iState=0;b=b||{};b.multi_select=!0;IntervalCalendar.superclass.constructor.call(this,a,b);this.beforeSelectEvent.subscribe(this._intervalOnBeforeSelect,this,!0);this.selectEvent.subscribe(this._intervalOnSelect,this,!0);this.beforeDeselectEvent.subscribe(this._intervalOnBeforeDeselect,this,!0);this.deselectEvent.subscribe(this._intervalOnDeselect,this,!0)}IntervalCalendar._DEFAULT_CONFIG=YAHOO.widget.CalendarGroup._DEFAULT_CONFIG;
-YAHOO.lang.extend(IntervalCalendar,YAHOO.widget.CalendarGroup,{_dateString:function(a){var b=[];b[this.cfg.getProperty(IntervalCalendar._DEFAULT_CONFIG.MDY_MONTH_POSITION.key)-1]=a.getMonth()+1;b[this.cfg.getProperty(IntervalCalendar._DEFAULT_CONFIG.MDY_DAY_POSITION.key)-1]=a.getDate();b[this.cfg.getProperty(IntervalCalendar._DEFAULT_CONFIG.MDY_YEAR_POSITION.key)-1]=a.getFullYear();a=this.cfg.getProperty(IntervalCalendar._DEFAULT_CONFIG.DATE_FIELD_DELIMITER.key);return b.join(a)},_dateIntervalString:function(a,
-b){var c=this.cfg.getProperty(IntervalCalendar._DEFAULT_CONFIG.DATE_RANGE_DELIMITER.key);return this._dateString(a)+c+this._dateString(b)},getInterval:function(){var a=this.getSelectedDates();return 1<a.length?[a[0],a[a.length-1]]:[a[0]]},setInterval:function(a,b){var c=a<=b;this.cfg.setProperty("selected",this._dateIntervalString(c?a:b,c?b:a),!1);this._iState=2},resetInterval:function(){this.cfg.setProperty("selected",[],!1);this._iState=0},_intervalOnBeforeSelect:function(a,b,c){this._iState=(this._iState+
-1)%3;0==this._iState&&(this.deselectAll(),this._iState++)},_intervalOnSelect:function(a,b,c){a=this.getSelectedDates();1<a.length&&this.cfg.setProperty("selected",this._dateIntervalString(a[0],a[a.length-1]),!1);this.render()},_intervalOnBeforeDeselect:function(a,b,c){if(0!=this._iState)return!1},_intervalOnDeselect:function(a,b,c){if(0!=this._iState){this._iState=0;this.deselectAll();a=b[0];b=YAHOO.widget.DateMath.getDate(a[0],a[1]-1,a[2]);if(c=this.getCalendarPage(b))c.beforeSelectEvent.fire(),
-this.cfg.setProperty("selected",this._dateString(b),!1),c.selectEvent.fire([a]);return!1}}});YAHOO.namespace("custom");YAHOO.custom.IntervalCalendar=IntervalCalendar;
-\r
-Details={onPageLoad:function(){"true"!=Common.getQueryParameter("print")&&Details.showTab(1);Details.loadAjaxItemData()}};jQuery(document).ready(function(){jQuery("ul.tab-bar li:first").addClass("active");jQuery("ul.tab-bar li.tab").click(function(){jQuery("ul.tab-bar li.tab").removeClass("active");jQuery(this).addClass("active")});jQuery("#print-actions #print").click(function(){window.print();return!1});jQuery("#print-actions #close").click(function(){window.close();return!1})});
-Details.showTab=function(a){if(null!=document.getElementById("tabType")){Details.hideAllTabs();var b=document.getElementById("tab-img"+a);if(null!=b){var c=b.src,d=c.lastIndexOf("."),c=c.substring(0,d)+"-selected"+c.substring(d);b.src=c;document.getElementById("tab"+a).style.display="block"}}};
-Details.hideAllTabs=function(){for(var a=document.getElementById("tab-img1"),b=document.getElementById("tab1"),c=1;null!=a&&null!=b;){var d=a.src,d=d.replace("-selected","");a.src=d;b.style.display="none";c+=1;a=document.getElementById("tab-img"+c);b=document.getElementById("tab"+c)}};
-Details.showPrintableTabs=function(){for(var a=document.getElementById("tab-img1"),b=document.getElementById("tab1"),c=1;null!=a&&null!=b;){var d=a.src,d=d.replace("-selected","");a.src=d;b.style.display="block";c+=1;a=document.getElementById("tab-img"+c);b=document.getElementById("tab"+c)}};
-Details.waitForAjaxItemData=function(a){"bib-tabs"==a?null==document.getElementById("full-record")||null==document.getElementById("summaryData")?setTimeout("Details.waitForAjaxItemData(tabType)",250):(a=document.getElementById("hiddenRecordDetail").innerHTML,document.getElementById("full-record").innerHTML="<br/>"+a,a=document.getElementById("summaryData").value,150<a.length&&(a=a.substring(0,150)+"..."),0==a.length&&(a="No summary available."),document.getElementById("summary").innerHTML="Summary/Review: "+
-a+"<br/><br/>",Details.roundTabCorners(),"true"!=Common.getQueryParameter("print")&&Details.showTab(1)):"bib-branch-holdings"==a&&(null==document.getElementById("item-availability")||null==document.getElementById("summaryData")?setTimeout("Details.waitForAjaxItemData(tabType)",250):(a=document.getElementById("summaryData").value,150<a.length?(summaryPartial=a.substring(0,150)+"...",summaryFull=a):0<a.length&&150>=a.length?summaryFull=summaryPartial=a:0==a.length&&(summaryFull=summaryPartial="No summary available."),
-document.getElementById("summary-partial-content").innerHTML=summaryPartial,document.getElementById("summary-full-content").innerHTML=summaryFull,150<a.length&&(moreLink="<a href=\"javascript:unhide('summary-full'); unhide('summary-partial');\">more...</a>",document.getElementById("summary-partial-content").innerHTML=" "+summaryPartial+moreLink)))};
-Details.loadAjaxItemData=function(){if(null!=document.getElementById("recordId")&&null!=document.getElementById("tabType")){var a=document.getElementById("recordId").value,b=document.getElementById("tabType").value,c=document.getElementById("number-copies").innerHTML;"bib-tabs"==b?(Common.loadAjaxComponent("elem_"+b+".jspf","itemId="+a+"&print="+Common.getQueryParameter("print"),"tabs"),Details.waitForAjaxItemData(b)):"bib-branch-holdings"==b&&Common.loadAjaxComponent("elem_"+b+".jspf","itemId="+
-a+"&numberCopies="+c+"&print="+Common.getQueryParameter("print"),"tabs")}};Details.roundTabCorners=function(){curvyCorners({tl:{radius:0},tr:{radius:0},bl:{radius:10},br:{radius:10},antiAlias:!0},".widget-content")};
-\r
-FilterHandler={};var currQueryString=Common.getQueryString(),LEFT_PAREN="(",RIGHT_PAREN=")",COMMA=",";FilterHandler.removeRangeFilter=function(){var a=FilterHandler.removeQueryParameter(currQueryString,"Nf");return a=FilterHandler.removeQueryParameter(a,"eT")};FilterHandler.removeQueryParameter=function(a,d){var c=""==a?currQueryString:a,b=c.indexOf(d+"=");if(-1<b)var e=c.indexOf("&",b),c=-1<e?c.substring(0,b-1)+c.substring(e):c.substring(0,b-1);return c};
-FilterHandler.addQueryParameter=function(a,d,c){a=""==a?currQueryString:a;var b=a.indexOf(d+"=");if(-1<b){var e=a.indexOf("&",b);a=-1<e?a.substring(0,b-1)+a.substring(e):a.substring(0,b-1)}return(""==a?"?":"&")+a+d+"="+c};FilterHandler.setRangeFilter=function(a,d,c){return newQueryString=-1<currQueryString.indexOf("Nf=")?FilterHandler.appendRangeFilter(a,d,c):FilterHandler.addRangeFilter(a,d,c)};
-FilterHandler.updateRangeFilter=function(a,d,c){var b=FilterHandler.removeRangeFilter();return b+(""==b?"?":"&")+"Nf="+a+"|"+d+" "+c};FilterHandler.addRangeFilter=function(a,d,c){return currQueryString+(""==currQueryString?"?":"&")+"Nf="+a+"|"+d+" "+c};FilterHandler.appendRangeFilter=function(a,d,c){var b=currQueryString.indexOf("Nf=")+3,e=currQueryString.indexOf("&",b);-1==e&&(e=currQueryString.length);a=currQueryString.substring(b,e)+"|"+a+"|"+d+" "+c;return currQueryString.substring(1,b)+a+currQueryString.substring(e)};
-FilterHandler.updateRecordFilter=function(a,d,c,b){a=FilterHandler.addRecordFilter(a,d,c,b);b=FilterHandler.removeQueryParameter(b,"Nr");return b+(""==b?"?":"&")+"Nr="+a};FilterHandler.addRecordFilter=function(a,d,c,b){var e="";a=a+":"+c;b=Common.getKeyValue(""==b?currQueryString:b,"Nr");return e=FilterHandler.isFilterApplied(a)?b:null!=b&&""!=b?b.substring(0,b.lastIndexOf(RIGHT_PAREN))+COMMA+a+RIGHT_PAREN:d+LEFT_PAREN+a+RIGHT_PAREN};
-FilterHandler.removeRecordFilter=function(a){var d=Common.getKeyValue(currQueryString,"Nr");return""!=d?(a=d.replace(a,""),a=a.replace("AND()",""),a=a.replace(",)",")"),a=a.replace("(,","(")):""};FilterHandler.isFilterApplied=function(a){return-1<Common.getKeyValue(currQueryString,"Nr").indexOf(a)?!0:!1};
-\r
-function setMegaMenu(a,b){var c=jQuery(a+" .megamenu"),d=jQuery(a);addCloseLinkEvent(c,a);adjustMegaMenuOnPageLoad(c,d);bindMouseEvents(a,b);bindKeyboardEvents(a,b);fixLinksUnderSSL(a)}function addCloseLinkEvent(a,b){a.find(".megamenu-close-link").click(function(a){a.preventDefault();hideMegaMenu(b)})}function adjustMegaMenuOnPageLoad(a,b){adjustMinWidth(a);adjustPixelHeight(b);adjustColumnHeight(a)}function adjustMinWidth(a){a.children(".megamenu .megamenu-column")}
-function adjustPixelHeight(a){var b=a.outerHeight(!0),c=a.offset(),b=b+c.top;a.children(".megamenu").css({top:b})}function adjustColumnHeight(a){var b=a.height();a.children(".megamenu-column").css({height:b})}function bindMouseEvents(a,b){jQuery(a).hoverIntent({over:function(){showMegaMenu(a,b)},timeout:300,out:function(){hideMegaMenu(a)}})}function bindKeyboardEvents(a,b){jQuery(a+" a").bind("focus",function(){showMegaMenu(a,b)})}
-function showMegaMenu(a,b){repositionMegaMenu(a,b);var c=jQuery(a+" .megamenu");jQuery(a).children("a").addClass("top-nav-hovered");c.show();hideInactiveMegaMenus(c)}function repositionMegaMenu(a,b){var c=0;b&&(c=b);c=jQuery(a).offset().left+c;jQuery(a+" .megamenu").css({left:c})}function hideMegaMenu(a){jQuery(a).children("a").removeClass("top-nav-hovered");jQuery(a+" .megamenu").hide()}
-function hideInactiveMegaMenus(a){inactiveMegaMenus=jQuery(".megamenu").not(a);inactiveMegaMenus.each(function(){hideMegaMenu("#"+jQuery(this).parent().attr("id"))})}function fixLinksUnderSSL(a){"https:"==window.location.protocol&&jQuery(a+" .megamenu a").attr("href",function(){return"http://"+window.location.hostname+jQuery(this).attr("href")})};
-\r
-/**\r
- * ************ Custom functions for working with Google Analytics on the site\r
- * *****************\r
- */\r
-\r
-TPLGA = {};\r
-\r
-TPLGA.getSubdirectoryGATrackerArray = function() {\r
-       var subdirectoryTrackerArray = new Array();     \r
-       // Enter new (top level) subdirectory tracker keys for legacy sites here, following the model below\r
-       subdirectoryTrackerArray['kidsspace'] = 'UA-2885100-10';\r
-       subdirectoryTrackerArray['ramp'] = 'UA-2885100-2';\r
-       subdirectoryTrackerArray['bookbuzz'] = 'UA-2885100-13';\r
-       subdirectoryTrackerArray['ktr'] = 'UA-1249470-1';\r
-       subdirectoryTrackerArray['wifi'] = 'UA-2885100-59';\r
-       subdirectoryTrackerArray['branch-computer'] = 'UA-2885100-69';\r
-       subdirectoryTrackerArray['research-computer'] = 'UA-2885100-69';\r
-       subdirectoryTrackerArray['kids-computer'] = 'UA-2885100-69';\r
-       subdirectoryTrackerArray['kiosk'] = 'UA-2885100-69';\r
-       return subdirectoryTrackerArray;\r
-}\r
-\r
-TPLGA.getSubdirectoryGATrackerKey = function() {\r
-       var currentPath = window.location.pathname.toString();\r
-       var topLevelSubdirectory = currentPath.split("/",2)[1];\r
-       var trackerArray = TPLGA.getSubdirectoryGATrackerArray();\r
-       var subdirectoryTrackerKey = trackerArray[topLevelSubdirectory];\r
-               if(typeof(subdirectoryTrackerKey)!="undefined"){                        \r
-                       return subdirectoryTrackerKey;\r
-               } else throw "UndefinedSubdirectoryTrackerKeyError";\r
-       }\r
-\r
-TPLEvents = {};\r
-\r
-TPLEvents.trackPACDatabases = function () {\r
-       var list = jQuery('.record-result');\r
-\r
-       jQuery.each(list, function(item){\r
-               jQuery(list[item]).find('a').click(function(){\r
-                       var database = jQuery(list[item]).find('.title').text().trim();\r
-                       database = database.trim();\r
-                       pageTracker._trackEvent("Databases Access - In Branch", database, document.title);\r
-               });\r
-       });\r
-};\r
-Affiliates={};Affiliates.MAX_ISBNS_TO_CHECK=3;Affiliates.getFormatISBNSet=function(b,a){if(b=="book"){return Affiliates.getBookISBNSet(a)}else{if(b=="ebook"){return Affiliates.getEBookISBNSet(a)}else{return new Array()}}};Affiliates.getBookISBNSet=function(c){var a=new Array();for(var b=0;b<c.length;b++){var d=c[b];d=Affiliates.getOnlyISBN(d);if(d.length==13){d=Affiliates.convertISBN13(d)}a.push(d)}return Affiliates.getUniqueISBNs(a)};Affiliates.getEBookISBNSet=function(d){var b=new Array();var a=new Array();for(var c=0;c<d.length;c++){var e=d[c];if(Affiliates.isEBookISBN(e)){if(Affiliates.isAdobeIsbn(e)){e=Affiliates.getOnlyISBN(e);if(e.length==13){a.push(e)}}else{e=Affiliates.getOnlyISBN(e);if(e.length==13){b.push(e)}}}}if(a.length>0){b=a}return Affiliates.getUniqueISBNs(b)};Affiliates.isAdobeIsbn=function(a){if(a.indexOf("Adobe Digital Editions")!=-1){return true}else{return false}};Affiliates.isEBookISBN=function(a){if((a.indexOf("electronic book")||a.indexOf("electronic bk")||a.indexOf("ebook")||a.indexOf("e-book"))!=1){return true}else{return false}};Affiliates.getOnlyISBN=function(a){return a.replace(/\D/g,"")};Affiliates.getUniqueISBNs=function(b){var a=[];jQuery.each(b,function(c,d){if(jQuery.inArray(d,a)===-1){a.push(d)}});return a};Affiliates.buildAffiliateLinks=function(a,e,d){var c=Affiliates.getFormatISBNSet(d,a);if(c.length>0){for(var b=0;b<c.length&&b<Affiliates.MAX_ISBNS_TO_CHECK;b++){Affiliates.findAffiliateLinks(c[b],e)}Affiliates.attachAffiliateAreaHandlers()}};Affiliates.attachAffiliateAreaHandlers=function(){jQuery(".pitch-text").click(function(){jQuery(".affiliate-details").toggle(1,function(){if(jQuery(".affiliate-details").is(":visible")){jQuery(".toggle-link").text("Hide");jQuery(".toggle-link").toggleClass("closed");jQuery(".toggle-link").toggleClass("open")}else{jQuery(".toggle-link").text("More");jQuery(".toggle-link").toggleClass("closed");jQuery(".toggle-link").toggleClass("open")}})})};Affiliates.convertISBN13=function(f){var c=0;var g=10;var e=f.substr(3,9);for(var b=0;b<9;b++){c+=g*parseInt(e[b],10);g--}var d=11-(c%11);if(d==10){d="x"}else{d=d.toString()}var a=e+d;return a};Affiliates.findAffiliateLinks=function(a,b){jQuery.get("components/elem_bib-affiliate-links.jspf",{isbn:a,title:b},function(c){if(c.indexOf('<div class="merchant-button">')!=-1){jQuery(".affiliate-list").append(c);jQuery("#affiliate-area").show()}})};\r
-\r
-\r
-\r