(function(){var W=this,ab,F=W.jQuery,S=W.$,T=W.jQuery=W.$=function(b,a){return new T.fn.init(b,a)},M=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,ac=/^.[^:#\[\.,]*$/;T.fn=T.prototype={init:function(e,b){e=e||document;if(e.nodeType){this[0]=e;this.length=1;this.context=e;return this}if(typeof e==="string"){var c=M.exec(e);if(c&&(c[1]||!b)){if(c[1]){e=T.clean([c[1]],b)}else{var a=document.getElementById(c[3]);if(a&&a.id!=c[3]){return T().find(e)}var d=T(a||[]);d.context=document;d.selector=e;return d}}else{return T(b).find(e)}}else{if(T.isFunction(e)){return T(document).ready(e)}}if(e.selector&&e.context){this.selector=e.selector;this.context=e.context}return this.setArray(T.isArray(e)?e:T.makeArray(e))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(a){return a===ab?Array.prototype.slice.call(this):this[a]},pushStack:function(c,a,d){var b=T(c);b.prevObject=this;b.context=this.context;if(a==="find"){b.selector=this.selector+(this.selector?" ":"")+d}else{if(a){b.selector=this.selector+"."+a+"("+d+")"}}return b},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(a,b){return T.each(this,a,b)},index:function(a){return T.inArray(a&&a.jquery?a[0]:a,this)},attr:function(c,a,b){var d=c;if(typeof c==="string"){if(a===ab){return this[0]&&T[b||"attr"](this[0],c)}else{d={};d[c]=a}}return this.each(function(e){for(c in d){T.attr(b?this.style:this,c,T.prop(this,d[c],b,e,c))}})},css:function(b,a){if((b=="width"||b=="height")&&parseFloat(a)<0){a=ab}return this.attr(b,a,"curCSS")},text:function(a){if(typeof a!=="object"&&a!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(a))}var b="";T.each(a||this,function(){T.each(this.childNodes,function(){if(this.nodeType!=8){b+=this.nodeType!=1?this.nodeValue:T.fn.text([this])}})});return b},wrapAll:function(b){if(this[0]){var a=T(b,this[0].ownerDocument).clone();if(this[0].parentNode){a.insertBefore(this[0])}a.map(function(){var c=this;while(c.firstChild){c=c.firstChild}return c}).append(this)}return this},wrapInner:function(a){return this.each(function(){T(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){T(this).wrapAll(a)})},append:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.appendChild(a)}})},prepend:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.insertBefore(a,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)})},end:function(){return this.prevObject||T([])},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var a=this.pushStack([],"find",b);a.length=0;T.find(b,this[0],a);return a}else{return this.pushStack(T.unique(T.map(this,function(c){return T.find(b,c)})),"find",b)}},clone:function(b){var d=this.map(function(){if(!T.support.noCloneEvent&&!T.isXMLDoc(this)){var f=this.outerHTML;if(!f){var e=this.ownerDocument.createElement("div");e.appendChild(this.cloneNode(true));f=e.innerHTML}return T.clean([f.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(b===true){var a=this.find("*").andSelf(),c=0;d.find("*").andSelf().each(function(){if(this.nodeName!==a[c].nodeName){return}var g=T.data(a[c],"events");for(var e in g){for(var f in g[e]){T.event.add(this,e,g[e][f],g[e][f].data)}}c++})}return d},filter:function(a){return this.pushStack(T.isFunction(a)&&T.grep(this,function(b,c){return a.call(b,c)})||T.multiFilter(a,T.grep(this,function(b){return b.nodeType===1})),"filter",a)},closest:function(c){var a=T.expr.match.POS.test(c)?T(c):null,b=0;return this.map(function(){var d=this;while(d&&d.ownerDocument){if(a?a.index(d)>-1:T(d).is(c)){T.data(d,"closest",b);return d}d=d.parentNode;b++}})},not:function(b){if(typeof b==="string"){if(ac.test(b)){return this.pushStack(T.multiFilter(b,this,true),"not",b)}else{b=T.multiFilter(b,this)}}var a=b.length&&b[b.length-1]!==ab&&!b.nodeType;return this.filter(function(){return a?T.inArray(this,b)<0:this!=b})},add:function(a){return this.pushStack(T.unique(T.merge(this.get(),typeof a==="string"?T(a):T.makeArray(a))))},is:function(a){return !!a&&T.multiFilter(a,this).length>0},hasClass:function(a){return !!a&&this.is("."+a)},val:function(c){if(c===ab){var j=this[0];if(j){if(T.nodeName(j,"option")){return(j.attributes.value||{}).specified?j.value:j.text}if(T.nodeName(j,"select")){var e=j.selectedIndex,b=[],a=j.options,f=j.type=="select-one";if(e<0){return null}for(var h=f?e:0,d=f?e+1:a.length;h<d;h++){var g=a[h];if(g.selected){c=T(g).val();if(f){return c}b.push(c)}}return b}return(j.value||"").replace(/\r/g,"")}return ab}if(typeof c==="number"){c+=""}return this.each(function(){if(this.nodeType!=1){return}if(T.isArray(c)&&/radio|checkbox/.test(this.type)){this.checked=(T.inArray(this.value,c)>=0||T.inArray(this.name,c)>=0)}else{if(T.nodeName(this,"select")){var l=T.makeArray(c);T("option",this).each(function(){this.selected=(T.inArray(this.value,l)>=0||T.inArray(this.text,l)>=0)});if(!l.length){this.selectedIndex=-1}}else{this.value=c}}})},html:function(a){return a===ab?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(a)},replaceWith:function(a){return this.after(a).remove()},eq:function(a){return this.slice(a,+a+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(a){return this.pushStack(T.map(this,function(b,c){return a.call(b,c,b)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(d,a,b){if(this[0]){var e=(this[0].ownerDocument||this[0]).createDocumentFragment(),h=T.clean(d,(this[0].ownerDocument||this[0]),e),f=e.firstChild;if(f){for(var g=0,j=this.length;g<j;g++){b.call(c(this[g],f),this.length>1||g>0?e.cloneNode(true):e)}}if(h){T.each(h,E)}}return this;function c(m,l){return a&&T.nodeName(m,"table")&&T.nodeName(l,"tr")?(m.getElementsByTagName("tbody")[0]||m.appendChild(m.ownerDocument.createElement("tbody"))):m}}};T.fn.init.prototype=T.fn;function E(b,a){if(a.src){T.ajax({url:a.src,async:false,dataType:"script"})}else{T.globalEval(a.text||a.textContent||a.innerHTML||"")}if(a.parentNode){a.parentNode.removeChild(a)}}function ad(){return +new Date}T.extend=T.fn.extend=function(){var c=arguments[0]||{},e=1,d=arguments.length,h=false,f;if(typeof c==="boolean"){h=c;c=arguments[1]||{};e=2}if(typeof c!=="object"&&!T.isFunction(c)){c={}}if(d==e){c=this;--e}for(;e<d;e++){if((f=arguments[e])!=null){for(var g in f){var b=c[g],a=f[g];if(c===a){continue}if(h&&a&&typeof a==="object"&&!a.nodeType){c[g]=T.extend(h,b||(a.length!=null?[]:{}),a)}else{if(a!==ab){c[g]=a}}}}}return c};var ag=/z-?index|font-?weight|opacity|zoom|line-?height/i,Q=document.defaultView||{},L=Object.prototype.toString;T.extend({noConflict:function(a){W.$=S;if(a){W.jQuery=F}return T},isFunction:function(a){return L.call(a)==="[object Function]"},isArray:function(a){return L.call(a)==="[object Array]"},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&T.isXMLDoc(a.ownerDocument)},globalEval:function(a){if(a&&/\S/.test(a)){var b=document.getElementsByTagName("head")[0]||document.documentElement,c=document.createElement("script");c.type="text/javascript";if(T.support.scriptEval){c.appendChild(document.createTextNode(a))}else{c.text=a}b.insertBefore(c,b.firstChild);b.removeChild(c)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase()},each:function(e,a,f){var g,d=0,c=e.length;if(f){if(c===ab){for(g in e){if(a.apply(e[g],f)===false){break}}}else{for(;d<c;){if(a.apply(e[d++],f)===false){break}}}}else{if(c===ab){for(g in e){if(a.call(e[g],g,e[g])===false){break}}}else{for(var b=e[0];d<c&&a.call(b,d,b)!==false;b=e[++d]){}}}return e},prop:function(b,a,c,d,e){if(T.isFunction(a)){a=a.call(b,d)}return typeof a==="number"&&c=="curCSS"&&!ag.test(e)?a+"px":a},className:{add:function(b,a){T.each((a||"").split(/\s+/),function(d,c){if(b.nodeType==1&&!T.className.has(b.className,c)){b.className+=(b.className?" ":"")+c}})},remove:function(b,a){if(b.nodeType==1){b.className=a!==ab?T.grep(b.className.split(/\s+/),function(c){return !T.className.has(a,c)}).join(" "):""}},has:function(a,b){return a&&T.inArray(b,(a.className||a).toString().split(/\s+/))>-1}},swap:function(b,c,a){var e={};for(var d in c){e[d]=b.style[d];b.style[d]=c[d]}a.call(b);for(var d in c){b.style[d]=e[d]}},css:function(e,g,c,h){if(g=="width"||g=="height"){var a,f={position:"absolute",visibility:"hidden",display:"block"},b=g=="width"?["Left","Right"]:["Top","Bottom"];function d(){a=g=="width"?e.offsetWidth:e.offsetHeight;if(h==="border"){return}T.each(b,function(){if(!h){a-=parseFloat(T.curCSS(e,"padding"+this,true))||0}if(h==="margin"){a+=parseFloat(T.curCSS(e,"margin"+this,true))||0}else{a-=parseFloat(T.curCSS(e,"border"+this+"Width",true))||0}})}if(e.offsetWidth!==0){d()}else{T.swap(e,f,d)}return Math.max(0,Math.round(a))}return T.curCSS(e,g,c)},curCSS:function(e,h,g){var b,j=e.style;if(h=="opacity"&&!T.support.opacity){b=T.attr(j,"opacity");return b==""?"1":b}if(h.match(/float/i)){h=H}if(!g&&j&&j[h]){b=j[h]}else{if(Q.getComputedStyle){if(h.match(/float/i)){h="float"}h=h.replace(/([A-Z])/g,"-$1").toLowerCase();var a=Q.getComputedStyle(e,null);if(a){b=a.getPropertyValue(h)}if(h=="opacity"&&b==""){b="1"}}else{if(e.currentStyle){var d=h.replace(/\-(\w)/g,function(m,l){return l.toUpperCase()});b=e.currentStyle[h]||e.currentStyle[d];if(!/^\d+(px)?$/i.test(b)&&/^\d/.test(b)){var f=j.left,c=e.runtimeStyle.left;e.runtimeStyle.left=e.currentStyle.left;j.left=b||0;b=j.pixelLeft+"px";j.left=f;e.runtimeStyle.left=c}}}}return b},clean:function(g,b,d){b=b||document;if(typeof b.createElement==="undefined"){b=b.ownerDocument||b[0]&&b[0].ownerDocument||document}if(!d&&g.length===1&&typeof g[0]==="string"){var e=/^<(\w+)\s*\/?>$/.exec(g[0]);if(e){return[b.createElement(e[1])]}}var f=[],h=[],a=b.createElement("div");T.each(g,function(n,j){if(typeof j==="number"){j+=""}if(!j){return}if(typeof j==="string"){j=j.replace(/(<(\w+)[^>]*?)\/>/g,function(s,r,t){return t.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?s:r+"></"+t+">"});var o=j.replace(/^\s+/,"").substring(0,10).toLowerCase();var m=!o.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!o.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||o.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!o.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!o.indexOf("<td")||!o.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!o.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!T.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];a.innerHTML=m[1]+j+m[2];while(m[0]--){a=a.lastChild}if(!T.support.tbody){var l=/<tbody/i.test(j),p=!o.indexOf("<table")&&!l?a.firstChild&&a.firstChild.childNodes:m[1]=="<table>"&&!l?a.childNodes:[];for(var q=p.length-1;q>=0;--q){if(T.nodeName(p[q],"tbody")&&!p[q].childNodes.length){p[q].parentNode.removeChild(p[q])}}}if(!T.support.leadingWhitespace&&/^\s/.test(j)){a.insertBefore(b.createTextNode(j.match(/^\s*/)[0]),a.firstChild)}j=T.makeArray(a.childNodes)}if(j.nodeType){f.push(j)}else{f=T.merge(f,j)}});if(d){for(var c=0;f[c];c++){if(T.nodeName(f[c],"script")&&(!f[c].type||f[c].type.toLowerCase()==="text/javascript")){h.push(f[c].parentNode?f[c].parentNode.removeChild(f[c]):f[c])}else{if(f[c].nodeType===1){f.splice.apply(f,[c+1,0].concat(T.makeArray(f[c].getElementsByTagName("script"))))}d.appendChild(f[c])}}return h}return f},attr:function(c,f,b){if(!c||c.nodeType==3||c.nodeType==8){return ab}var e=!T.isXMLDoc(c),a=b!==ab;f=e&&T.props[f]||f;if(c.tagName){var g=/href|src|style/.test(f);if(f=="selected"&&c.parentNode){c.parentNode.selectedIndex}if(f in c&&e&&!g){if(a){if(f=="type"&&T.nodeName(c,"input")&&c.parentNode){throw"type property can't be changed"}c[f]=b}if(T.nodeName(c,"form")&&c.getAttributeNode(f)){return c.getAttributeNode(f).nodeValue}if(f=="tabIndex"){var d=c.getAttributeNode("tabIndex");return d&&d.specified?d.value:c.nodeName.match(/(button|input|object|select|textarea)/i)?0:c.nodeName.match(/^(a|area)$/i)&&c.href?0:ab}return c[f]}if(!T.support.style&&e&&f=="style"){return T.attr(c.style,"cssText",b)}if(a){c.setAttribute(f,""+b)}var h=!T.support.hrefNormalized&&e&&g?c.getAttribute(f,2):c.getAttribute(f);return h===null?ab:h}if(!T.support.opacity&&f=="opacity"){if(a){c.zoom=1;c.filter=(c.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(b)+""=="NaN"?"":"alpha(opacity="+b*100+")")}return c.filter&&c.filter.indexOf("opacity=")>=0?(parseFloat(c.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}f=f.replace(/-([a-z])/ig,function(l,j){return j.toUpperCase()});if(a){c[f]=b}return c[f]},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var c=[];if(a!=null){var b=a.length;if(b==null||typeof a==="string"||T.isFunction(a)||a.setInterval){c[0]=a}else{while(b){c[--b]=a[b]}}}return c},inArray:function(b,a){for(var d=0,c=a.length;d<c;d++){if(a[d]===b){return d}}return -1},merge:function(b,e){var d=0,c,a=b.length;if(!T.support.getAll){while((c=e[d++])!=null){if(c.nodeType!=8){b[a++]=c}}}else{while((c=e[d++])!=null){b[a++]=c}}return b},unique:function(a){var f=[],g={};try{for(var e=0,d=a.length;e<d;e++){var b=T.data(a[e]);if(!g[b]){g[b]=true;f.push(a[e])}}}catch(c){f=a}return f},grep:function(e,a,f){var d=[];for(var c=0,b=e.length;c<b;c++){if(!f!=!a(e[c],c)){d.push(e[c])}}return d},map:function(f,a){var e=[];for(var d=0,c=f.length;d<c;d++){var b=a(f[d],d);if(b!=null){e[e.length]=b}}return e.concat.apply([],e)}});var O=navigator.userAgent.toLowerCase();T.browser={version:(O.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(O),opera:/opera/.test(O),msie:/msie/.test(O)&&!/opera/.test(O),mozilla:/mozilla/.test(O)&&!/(compatible|webkit)/.test(O)};T.each({parent:function(a){return a.parentNode},parents:function(a){return T.dir(a,"parentNode")},next:function(a){return T.nth(a,2,"nextSibling")},prev:function(a){return T.nth(a,2,"previousSibling")},nextAll:function(a){return T.dir(a,"nextSibling")},prevAll:function(a){return T.dir(a,"previousSibling")},siblings:function(a){return T.sibling(a.parentNode.firstChild,a)},children:function(a){return T.sibling(a.firstChild)},contents:function(a){return T.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:T.makeArray(a.childNodes)}},function(b,a){T.fn[b]=function(d){var c=T.map(this,a);if(d&&typeof d=="string"){c=T.multiFilter(d,c)}return this.pushStack(T.unique(c),b,d)}});T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,a){T.fn[b]=function(h){var e=[],c=T(h);for(var d=0,g=c.length;d<g;d++){var f=(d>0?this.clone(true):this).get();T.fn[a].apply(T(c[d]),f);e=e.concat(f)}return this.pushStack(e,b,h)}});T.each({removeAttr:function(a){T.attr(this,a,"");if(this.nodeType==1){this.removeAttribute(a)}},addClass:function(a){T.className.add(this,a)},removeClass:function(a){T.className.remove(this,a)},toggleClass:function(a,b){if(typeof b!=="boolean"){b=!T.className.has(this,a)}T.className[b?"add":"remove"](this,a)},remove:function(a){if(!a||T.filter(a,[this]).length){T("*",this).add([this]).each(function(){T.event.remove(this);T.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){T(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(b,a){T.fn[b]=function(){return this.each(a,arguments)}});function Y(b,a){return b[0]&&parseInt(T.curCSS(b[0],a,true),10)||0}var aa="jQuery"+ad(),I=0,R={};T.extend({cache:{},data:function(c,d,b){c=c==W?R:c;var a=c[aa];if(!a){a=c[aa]=++I}if(d&&!T.cache[a]){T.cache[a]={}}if(b!==ab){T.cache[a][d]=b}return d?T.cache[a][d]:a},removeData:function(c,d){c=c==W?R:c;var a=c[aa];if(d){if(T.cache[a]){delete T.cache[a][d];d="";for(d in T.cache[a]){break}if(!d){T.removeData(c)}}}else{try{delete c[aa]}catch(b){if(c.removeAttribute){c.removeAttribute(aa)}}delete T.cache[a]}},queue:function(c,d,a){if(c){d=(d||"fx")+"queue";var b=T.data(c,d);if(!b||T.isArray(a)){b=T.data(c,d,T.makeArray(a))}else{if(a){b.push(a)}}}return b},dequeue:function(a,b){var d=T.queue(a,b),c=d.shift();if(!b||b==="fx"){c=d[0]}if(c!==ab){c.call(a)}}});T.fn.extend({data:function(d,b){var a=d.split(".");a[1]=a[1]?"."+a[1]:"";if(b===ab){var c=this.triggerHandler("getData"+a[1]+"!",[a[0]]);if(c===ab&&this.length){c=T.data(this[0],d)}return c===ab&&a[1]?this.data(a[0]):c}else{return this.trigger("setData"+a[1]+"!",[a[0],b]).each(function(){T.data(this,d,b)})}},removeData:function(a){return this.each(function(){T.removeData(this,a)})},queue:function(b,a){if(typeof b!=="string"){a=b;b="fx"}if(a===ab){return T.queue(this[0],b)}return this.each(function(){var c=T.queue(this,b,a);if(b=="fx"&&c.length==1){c[0].call(this)}})},dequeue:function(a){return this.each(function(){T.dequeue(this,a)})}});(function(){var b=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,h=0,n=Object.prototype.toString;var p=function(t,x,ak,aj){ak=ak||[];x=x||document;if(x.nodeType!==1&&x.nodeType!==9){return[]}if(!t||typeof t!=="string"){return ak}var s=[],v,C,z,y,ai,w,u=true;b.lastIndex=0;while((v=b.exec(t))!==null){s.push(v[1]);if(v[2]){w=RegExp.rightContext;break}}if(s.length>1&&g.exec(t)){if(s.length===2&&m.relative[s[0]]){C=l(s[0]+s[1],x)}else{C=m.relative[s[0]]?[x]:p(s.shift(),x);while(s.length){t=s.shift();if(m.relative[t]){t+=s.shift()}C=l(t,C)}}}else{var D=aj?{expr:s.pop(),set:q(aj)}:p.find(s.pop(),s.length===1&&x.parentNode?x.parentNode:x,c(x));C=p.filter(D.expr,D.set);if(s.length>0){z=q(C)}else{u=false}while(s.length){var A=s.pop(),B=A;if(!m.relative[A]){A=""}else{B=s.pop()}if(B==null){B=x}m.relative[A](z,B,c(x))}}if(!z){z=C}if(!z){throw"Syntax error, unrecognized expression: "+(A||t)}if(n.call(z)==="[object Array]"){if(!u){ak.push.apply(ak,z)}else{if(x.nodeType===1){for(var r=0;z[r]!=null;r++){if(z[r]&&(z[r]===true||z[r].nodeType===1&&j(x,z[r]))){ak.push(C[r])}}}else{for(var r=0;z[r]!=null;r++){if(z[r]&&z[r].nodeType===1){ak.push(C[r])}}}}}else{q(z,ak)}if(w){p(w,x,ak,aj);if(o){hasDuplicate=false;ak.sort(o);if(hasDuplicate){for(var r=1;r<ak.length;r++){if(ak[r]===ak[r-1]){ak.splice(r--,1)}}}}}return ak};p.matches=function(s,r){return p(s,null,null,r)};p.find=function(r,y,z){var s,u;if(!r){return[]}for(var v=0,w=m.order.length;v<w;v++){var t=m.order[v],u;if((u=m.match[t].exec(r))){var x=RegExp.leftContext;if(x.substr(x.length-1)!=="\\"){u[1]=(u[1]||"").replace(/\\/g,"");s=m.find[t](u,y,z);if(s!=null){r=r.replace(m.match[t],"");break}}}}if(!s){s=y.getElementsByTagName("*")}return{set:s,expr:r}};p.filter=function(ai,aj,B,v){var w=ai,z=[],r=aj,t,y,s=aj&&aj[0]&&c(aj[0]);while(ai&&aj.length){for(var ak in m.filter){if((t=m.match[ak].exec(ai))!=null){var x=m.filter[ak],A,C;y=false;if(r==z){z=[]}if(m.preFilter[ak]){t=m.preFilter[ak](t,r,B,z,v,s);if(!t){y=A=true}else{if(t===true){continue}}}if(t){for(var u=0;(C=r[u])!=null;u++){if(C){A=x(C,t,u,r);var D=v^!!A;if(B&&A!=null){if(D){y=true}else{r[u]=false}}else{if(D){z.push(C);y=true}}}}}if(A!==ab){if(!B){r=z}ai=ai.replace(m.match[ak],"");if(!y){return[]}break}}}if(ai==w){if(y==null){throw"Syntax error, unrecognized expression: "+ai}else{break}}w=ai}return r};var m=p.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(r){return r.getAttribute("href")}},relative:{"+":function(r,y,s){var u=typeof y==="string",z=u&&!/\W/.test(y),t=u&&!z;if(z&&!s){y=y.toUpperCase()}for(var v=0,w=r.length,x;v<w;v++){if((x=r[v])){while((x=x.previousSibling)&&x.nodeType!==1){}r[v]=t||x&&x.nodeName===y?x||false:x===y}}if(t){p.filter(y,r,true)}},">":function(w,t,v){var y=typeof t==="string";if(y&&!/\W/.test(t)){t=v?t:t.toUpperCase();for(var s=0,u=w.length;s<u;s++){var x=w[s];if(x){var r=x.parentNode;w[s]=r.nodeName===t?r:false}}}else{for(var s=0,u=w.length;s<u;s++){var x=w[s];if(x){w[s]=y?x.parentNode:x.parentNode===t}}if(y){p.filter(t,w,true)}}},"":function(r,t,v){var s=h++,u=a;if(!t.match(/\W/)){var w=t=v?t:t.toUpperCase();u=d}u("parentNode",t,s,r,w,v)},"~":function(r,t,v){var s=h++,u=a;if(typeof t==="string"&&!t.match(/\W/)){var w=t=v?t:t.toUpperCase();u=d}u("previousSibling",t,s,r,w,v)}},find:{ID:function(t,s,r){if(typeof s.getElementById!=="undefined"&&!r){var u=s.getElementById(t[1]);return u?[u]:[]}},NAME:function(s,w,v){if(typeof w.getElementsByName!=="undefined"){var t=[],x=w.getElementsByName(s[1]);for(var r=0,u=x.length;r<u;r++){if(x[r].getAttribute("name")===s[1]){t.push(x[r])}}return t.length===0?null:t}},TAG:function(s,r){return r.getElementsByTagName(s[1])}},preFilter:{CLASS:function(r,t,s,u,w,v){r=" "+r[1].replace(/\\/g,"")+" ";if(v){return r}for(var y=0,x;(x=t[y])!=null;y++){if(x){if(w^(x.className&&(" "+x.className+" ").indexOf(r)>=0)){if(!s){u.push(x)}}else{if(s){t[y]=false}}}}return false},ID:function(r){return r[1].replace(/\\/g,"")},TAG:function(s,t){for(var r=0;t[r]===false;r++){}return t[r]&&c(t[r])?s[1]:s[1].toUpperCase()},CHILD:function(s){if(s[1]=="nth"){var r=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(s[2]=="even"&&"2n"||s[2]=="odd"&&"2n+1"||!/\D/.test(s[2])&&"0n+"+s[2]||s[2]);s[2]=(r[1]+(r[2]||1))-0;s[3]=r[3]-0}s[0]=h++;return s},ATTR:function(x,t,s,u,w,v){var r=x[1].replace(/\\/g,"");if(!v&&m.attrMap[r]){x[1]=m.attrMap[r]}if(x[2]==="~="){x[4]=" "+x[4]+" "}return x},PSEUDO:function(w,t,s,u,v){if(w[1]==="not"){if(w[3].match(b).length>1||/^\w/.test(w[3])){w[3]=p(w[3],null,null,t)}else{var r=p.filter(w[3],t,s,true^v);if(!s){u.push.apply(u,r)}return false}}else{if(m.match.POS.test(w[0])||m.match.CHILD.test(w[0])){return true}}return w},POS:function(r){r.unshift(true);return r}},filters:{enabled:function(r){return r.disabled===false&&r.type!=="hidden"},disabled:function(r){return r.disabled===true},checked:function(r){return r.checked===true},selected:function(r){r.parentNode.selectedIndex;return r.selected===true},parent:function(r){return !!r.firstChild},empty:function(r){return !r.firstChild},has:function(r,s,t){return !!p(t[3],r).length},header:function(r){return/h\d/i.test(r.nodeName)},text:function(r){return"text"===r.type},radio:function(r){return"radio"===r.type},checkbox:function(r){return"checkbox"===r.type},file:function(r){return"file"===r.type},password:function(r){return"password"===r.type},submit:function(r){return"submit"===r.type},image:function(r){return"image"===r.type},reset:function(r){return"reset"===r.type},button:function(r){return"button"===r.type||r.nodeName.toUpperCase()==="BUTTON"},input:function(r){return/input|select|textarea|button/i.test(r.nodeName)}},setFilters:{first:function(r,s){return s===0},last:function(s,t,u,r){return t===r.length-1},even:function(r,s){return s%2===0},odd:function(r,s){return s%2===1},lt:function(r,s,t){return s<t[3]-0},gt:function(r,s,t){return s>t[3]-0},nth:function(r,s,t){return t[3]-0==s},eq:function(r,s,t){return t[3]-0==s}},filter:{PSEUDO:function(w,s,r,v){var t=s[1],y=m.filters[t];if(y){return y(w,r,s,v)}else{if(t==="contains"){return(w.textContent||w.innerText||"").indexOf(s[3])>=0}else{if(t==="not"){var x=s[3];for(var r=0,u=x.length;r<u;r++){if(x[r]===w){return false}}return true}}}},CHILD:function(y,v){var s=v[1],x=y;switch(s){case"only":case"first":while(x=x.previousSibling){if(x.nodeType===1){return false}}if(s=="first"){return true}x=y;case"last":while(x=x.nextSibling){if(x.nodeType===1){return false}}return true;case"nth":var w=v[2],z=v[3];if(w==1&&z==0){return true}var t=v[0],A=y.parentNode;if(A&&(A.sizcache!==t||!y.nodeIndex)){var u=0;for(x=A.firstChild;x;x=x.nextSibling){if(x.nodeType===1){x.nodeIndex=++u}}A.sizcache=t}var r=y.nodeIndex-z;if(w==0){return r==0}else{return(r%w==0&&r/w>=0)}}},ID:function(r,s){return r.nodeType===1&&r.getAttribute("id")===s},TAG:function(r,s){return(s==="*"&&r.nodeType===1)||r.nodeName===s},CLASS:function(r,s){return(" "+(r.className||r.getAttribute("class"))+" ").indexOf(s)>-1},ATTR:function(w,r){var s=r[1],u=m.attrHandle[s]?m.attrHandle[s](w):w[s]!=null?w[s]:w.getAttribute(s),v=u+"",x=r[2],t=r[4];return u==null?x==="!=":x==="="?v===t:x==="*="?v.indexOf(t)>=0:x==="~="?(" "+v+" ").indexOf(t)>=0:!t?v&&u!==false:x==="!="?v!=t:x==="^="?v.indexOf(t)===0:x==="$="?v.substr(v.length-t.length)===t:x==="|="?v===t||v.substr(0,t.length+1)===t+"-":false},POS:function(w,t,s,v){var u=t[2],r=m.setFilters[u];if(r){return r(w,s,t,v)}}}};var g=m.match.POS;for(var e in m.match){m.match[e]=RegExp(m.match[e].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var q=function(r,s){r=Array.prototype.slice.call(r);if(s){s.push.apply(s,r);return s}return r};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(f){q=function(v,r){var t=r||[];if(n.call(v)==="[object Array]"){Array.prototype.push.apply(t,v)}else{if(typeof v.length==="number"){for(var s=0,u=v.length;s<u;s++){t.push(v[s])}}else{for(var s=0;v[s];s++){t.push(v[s])}}}return t}}var o;if(document.documentElement.compareDocumentPosition){o=function(s,t){var r=s.compareDocumentPosition(t)&4?-1:s===t?0:1;if(r===0){hasDuplicate=true}return r}}else{if("sourceIndex" in document.documentElement){o=function(s,t){var r=s.sourceIndex-t.sourceIndex;if(r===0){hasDuplicate=true}return r}}else{if(document.createRange){o=function(r,t){var s=r.ownerDocument.createRange(),u=t.ownerDocument.createRange();s.selectNode(r);s.collapse(true);u.selectNode(t);u.collapse(true);var v=s.compareBoundaryPoints(Range.START_TO_END,u);if(v===0){hasDuplicate=true}return v}}}}(function(){var s=document.createElement("form"),r="script"+(new Date).getTime();s.innerHTML="<input name='"+r+"'/>";var t=document.documentElement;t.insertBefore(s,t.firstChild);if(!!document.getElementById(r)){m.find.ID=function(x,w,v){if(typeof w.getElementById!=="undefined"&&!v){var u=w.getElementById(x[1]);return u?u.id===x[1]||typeof u.getAttributeNode!=="undefined"&&u.getAttributeNode("id").nodeValue===x[1]?[u]:ab:[]}};m.filter.ID=function(v,u){var w=typeof v.getAttributeNode!=="undefined"&&v.getAttributeNode("id");return v.nodeType===1&&w&&w.nodeValue===u}}t.removeChild(s)})();(function(){var r=document.createElement("div");r.appendChild(document.createComment(""));if(r.getElementsByTagName("*").length>0){m.find.TAG=function(u,v){var w=v.getElementsByTagName(u[1]);if(u[1]==="*"){var s=[];for(var t=0;w[t];t++){if(w[t].nodeType===1){s.push(w[t])}}w=s}return w}}r.innerHTML="<a href='#'></a>";if(r.firstChild&&typeof r.firstChild.getAttribute!=="undefined"&&r.firstChild.getAttribute("href")!=="#"){m.attrHandle.href=function(s){return s.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var s=p,r=document.createElement("div");r.innerHTML="<p class='TEST'></p>";if(r.querySelectorAll&&r.querySelectorAll(".TEST").length===0){return}p=function(w,x,u,t){x=x||document;if(!t&&x.nodeType===9&&!c(x)){try{return q(x.querySelectorAll(w),u)}catch(v){}}return s(w,x,u,t)};p.find=s.find;p.filter=s.filter;p.selectors=s.selectors;p.matches=s.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var r=document.createElement("div");r.innerHTML="<div class='test e'></div><div class='test'></div>";if(r.getElementsByClassName("e").length===0){return}r.lastChild.className="e";if(r.getElementsByClassName("e").length===1){return}m.order.splice(1,0,"CLASS");m.find.CLASS=function(u,t,s){if(typeof t.getElementsByClassName!=="undefined"&&!s){return t.getElementsByClassName(u[1])}}})()}function d(x,s,t,z,r,A){var B=x=="previousSibling"&&!A;for(var v=0,w=z.length;v<w;v++){var y=z[v];if(y){if(B&&y.nodeType===1){y.sizcache=t;y.sizset=v}y=y[x];var u=false;while(y){if(y.sizcache===t){u=z[y.sizset];break}if(y.nodeType===1&&!A){y.sizcache=t;y.sizset=v}if(y.nodeName===s){u=y;break}y=y[x]}z[v]=u}}}function a(x,s,t,z,r,A){var B=x=="previousSibling"&&!A;for(var v=0,w=z.length;v<w;v++){var y=z[v];if(y){if(B&&y.nodeType===1){y.sizcache=t;y.sizset=v}y=y[x];var u=false;while(y){if(y.sizcache===t){u=z[y.sizset];break}if(y.nodeType===1){if(!A){y.sizcache=t;y.sizset=v}if(typeof s!=="string"){if(y===s){u=true;break}}else{if(p.filter(s,[y]).length>0){u=y;break}}}y=y[x]}z[v]=u}}}var j=document.compareDocumentPosition?function(r,s){return r.compareDocumentPosition(s)&16}:function(r,s){return r!==s&&(r.contains?r.contains(s):true)};var c=function(r){return r.nodeType===9&&r.documentElement.nodeName!=="HTML"||!!r.ownerDocument&&c(r.ownerDocument)};var l=function(u,w){var r=[],y="",x,s=w.nodeType?[w]:w;while((x=m.match.PSEUDO.exec(u))){y+=x[0];u=u.replace(m.match.PSEUDO,"")}u=m.relative[u]?u+"*":u;for(var v=0,t=s.length;v<t;v++){p(u,s[v],r)}return p.filter(y,r)};T.find=p;T.filter=p.filter;T.expr=p.selectors;T.expr[":"]=T.expr.filters;p.selectors.filters.hidden=function(r){return r.offsetWidth===0||r.offsetHeight===0};p.selectors.filters.visible=function(r){return r.offsetWidth>0||r.offsetHeight>0};p.selectors.filters.animated=function(r){return T.grep(T.timers,function(s){return r===s.elem}).length};T.multiFilter=function(r,t,s){if(s){r=":not("+r+")"}return p.matches(r,t)};T.dir=function(s,t){var u=[],r=s[t];while(r&&r!=document){if(r.nodeType==1){u.push(r)}r=r[t]}return u};T.nth=function(v,u,s,r){u=u||1;var t=0;for(;v;v=v[s]){if(v.nodeType==1&&++t==u){break}}return v};T.sibling=function(r,s){var t=[];for(;r;r=r.nextSibling){if(r.nodeType==1&&r!=s){t.push(r)}}return t};return;W.Sizzle=p})();T.event={add:function(c,f,d,a){if(c.nodeType==3||c.nodeType==8){return}if(c.setInterval&&c!=W){c=W}if(!d.guid){d.guid=this.guid++}if(a!==ab){var e=d;d=this.proxy(e);d.data=a}var g=T.data(c,"events")||T.data(c,"events",{}),b=T.data(c,"handle")||T.data(c,"handle",function(){return typeof T!=="undefined"&&!T.event.triggered?T.event.handle.apply(arguments.callee.elem,arguments):ab});b.elem=c;T.each(f.split(/\s+/),function(m,l){var j=l.split(".");l=j.shift();d.type=j.slice().sort().join(".");var h=g[l];if(T.event.specialAll[l]){T.event.specialAll[l].setup.call(c,a,j)}if(!h){h=g[l]={};if(!T.event.special[l]||T.event.special[l].setup.call(c,a,j)===false){if(c.addEventListener){c.addEventListener(l,b,false)}else{if(c.attachEvent){c.attachEvent("on"+l,b)}}}}h[d.guid]=d;T.event.global[l]=true});c=null},guid:1,global:{},remove:function(b,e,c){if(b.nodeType==3||b.nodeType==8){return}var f=T.data(b,"events"),g,h;if(f){if(e===ab||(typeof e==="string"&&e.charAt(0)==".")){for(var d in f){this.remove(b,d+(e||""))}}else{if(e.type){c=e.handler;e=e.type}T.each(e.split(/\s+/),function(o,m){var j=m.split(".");m=j.shift();var n=RegExp("(^|\\.)"+j.slice().sort().join(".*\\.")+"(\\.|$)");if(f[m]){if(c){delete f[m][c.guid]}else{for(var l in f[m]){if(n.test(f[m][l].type)){delete f[m][l]}}}if(T.event.specialAll[m]){T.event.specialAll[m].teardown.call(b,j)}for(g in f[m]){break}if(!g){if(!T.event.special[m]||T.event.special[m].teardown.call(b,j)===false){if(b.removeEventListener){b.removeEventListener(m,T.data(b,"handle"),false)}else{if(b.detachEvent){b.detachEvent("on"+m,T.data(b,"handle"))}}}g=null;delete f[m]}}})}for(g in f){break}if(!g){var a=T.data(b,"handle");if(a){a.elem=null}T.removeData(b,"events");T.removeData(b,"handle")}}},trigger:function(d,b,e,h){var f=d.type||d;if(!h){d=typeof d==="object"?d[aa]?d:T.extend(T.Event(f),d):T.Event(f);if(f.indexOf("!")>=0){d.type=f=f.slice(0,-1);d.exclusive=true}if(!e){d.stopPropagation();if(this.global[f]){T.each(T.cache,function(){if(this.events&&this.events[f]){T.event.trigger(d,b,this.handle.elem)}})}}if(!e||e.nodeType==3||e.nodeType==8){return ab}d.result=ab;d.target=e;b=T.makeArray(b);b.unshift(d)}d.currentTarget=e;var c=T.data(e,"handle");if(c){c.apply(e,b)}if((!e[f]||(T.nodeName(e,"a")&&f=="click"))&&e["on"+f]&&e["on"+f].apply(e,b)===false){d.result=false}if(!h&&e[f]&&!d.isDefaultPrevented()&&!(T.nodeName(e,"a")&&f=="click")){this.triggered=true;try{e[f]()}catch(a){}}this.triggered=false;if(!d.isPropagationStopped()){var g=e.parentNode||e.ownerDocument;if(g){T.event.trigger(d,b,g,true)}}},handle:function(b){var c,h;b=arguments[0]=T.event.fix(b||W.event);b.currentTarget=this;var a=b.type.split(".");b.type=a.shift();c=!a.length&&!b.exclusive;var d=RegExp("(^|\\.)"+a.slice().sort().join(".*\\.")+"(\\.|$)");h=(T.data(this,"events")||{})[b.type];for(var f in h){var e=h[f];if(c||d.test(e.type)){b.handler=e;b.data=e.data;var g=e.apply(this,arguments);if(g!==ab){b.result=g;if(g===false){b.preventDefault();b.stopPropagation()}}if(b.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(c){if(c[aa]){return c}var e=c;c=T.Event(e);for(var d=this.props.length,a;d;){a=this.props[--d];c[a]=e[a]}if(!c.target){c.target=c.srcElement||document}if(c.target.nodeType==3){c.target=c.target.parentNode}if(!c.relatedTarget&&c.fromElement){c.relatedTarget=c.fromElement==c.target?c.toElement:c.fromElement}if(c.pageX==null&&c.clientX!=null){var b=document.documentElement,f=document.body;c.pageX=c.clientX+(b&&b.scrollLeft||f&&f.scrollLeft||0)-(b.clientLeft||0);c.pageY=c.clientY+(b&&b.scrollTop||f&&f.scrollTop||0)-(b.clientTop||0)}if(!c.which&&((c.charCode||c.charCode===0)?c.charCode:c.keyCode)){c.which=c.charCode||c.keyCode}if(!c.metaKey&&c.ctrlKey){c.metaKey=c.ctrlKey}if(!c.which&&c.button){c.which=(c.button&1?1:(c.button&2?3:(c.button&4?2:0)))}return c},proxy:function(a,b){b=b||function(){return a.apply(this,arguments)};b.guid=a.guid=a.guid||b.guid||this.guid++;return b},special:{ready:{setup:P,teardown:function(){}}},specialAll:{live:{setup:function(b,a){T.event.add(this,a[0],af)},teardown:function(a){if(a.length){var c=0,b=RegExp("(^|\\.)"+a[0]+"(\\.|$)");T.each((T.data(this,"events").live||{}),function(){if(b.test(this.type)){c++}});if(c<1){T.event.remove(this,a[0],af)}}}}}};T.Event=function(a){if(!this.preventDefault){return new T.Event(a)}if(a&&a.type){this.originalEvent=a;this.type=a.type}else{this.type=a}this.timeStamp=ad();this[aa]=true};function X(){return false}function J(){return true}T.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var a=this.originalEvent;if(!a){return}if(a.preventDefault){a.preventDefault()}a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=J;var a=this.originalEvent;if(!a){return}if(a.stopPropagation){a.stopPropagation()}a.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation()},isDefaultPrevented:X,isPropagationStopped:X,isImmediatePropagationStopped:X};var ah=function(b){var c=b.relatedTarget;while(c&&c!=this){try{c=c.parentNode}catch(a){c=this}}if(c!=this){b.type=b.data;T.event.handle.apply(this,arguments)}};T.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,b){T.event.special[b]={setup:function(){T.event.add(this,a,ah,b)},teardown:function(){T.event.remove(this,a,ah)}}});T.fn.extend({bind:function(b,a,c){return b=="unload"?this.one(b,a,c):this.each(function(){T.event.add(this,b,c||a,c&&a)})},one:function(b,a,c){var d=T.event.proxy(c||a,function(e){T(this).unbind(e,d);return(c||a).apply(this,arguments)});return this.each(function(){T.event.add(this,b,d,c&&a)})},unbind:function(a,b){return this.each(function(){T.event.remove(this,a,b)})},trigger:function(b,a){return this.each(function(){T.event.trigger(b,a,this)})},triggerHandler:function(c,a){if(this[0]){var b=T.Event(c);b.preventDefault();b.stopPropagation();T.event.trigger(b,a,this[0]);return b.result}},toggle:function(a){var c=arguments,b=1;while(b<c.length){T.event.proxy(a,c[b++])}return this.click(T.event.proxy(a,function(d){this.lastToggle=(this.lastToggle||0)%b;d.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false}))},hover:function(b,a){return this.mouseenter(b).mouseleave(a)},ready:function(a){P();if(T.isReady){a.call(document,T)}else{T.readyList.push(a)}return this},live:function(a,b){var c=T.event.proxy(b);c.guid+=this.selector+a;T(document).bind(Z(a,this.selector),this.selector,c);return this},die:function(a,b){T(document).unbind(Z(a,this.selector),b?{guid:b.guid+this.selector+a}:null);return this}});function af(a){var d=RegExp("(^|\\.)"+a.type+"(\\.|$)"),b=true,c=[];T.each(T.data(this,"events").live||[],function(g,f){if(d.test(f.type)){var e=T(a.target).closest(f.data)[0];if(e){c.push({elem:e,fn:f})}}});c.sort(function(e,f){return T.data(e.elem,"closest")-T.data(f.elem,"closest")});T.each(c,function(){if(this.fn.call(this.elem,a,this.fn.data)===false){return(b=false)}});return b}function Z(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".")}T.extend({isReady:false,readyList:[],ready:function(){if(!T.isReady){T.isReady=true;if(T.readyList){T.each(T.readyList,function(){this.call(document,T)});T.readyList=null}T(document).triggerHandler("ready")}}});var G=false;function P(){if(G){return}G=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);T.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);T.ready()}});if(document.documentElement.doScroll&&W==W.top){(function(){if(T.isReady){return}try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}T.ready()})()}}}T.event.add(W,"load",T.ready)}T.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(a,b){T.fn[b]=function(c){return c?this.bind(b,c):this.trigger(b)}});T(W).bind("unload",function(){for(var a in T.cache){if(a!=1&&T.cache[a].handle){T.event.remove(T.cache[a].handle.elem)}}});(function(){T.support={};var f=document.documentElement,e=document.createElement("script"),a=document.createElement("div"),b="script"+(new Date).getTime();a.style.display="none";a.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var d=a.getElementsByTagName("*"),g=a.getElementsByTagName("a")[0];if(!d||!d.length||!g){return}T.support={leadingWhitespace:a.firstChild.nodeType==3,tbody:!a.getElementsByTagName("tbody").length,objectAll:!!a.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/red/.test(g.getAttribute("style")),hrefNormalized:g.getAttribute("href")==="/a",opacity:g.style.opacity==="0.5",cssFloat:!!g.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};e.type="text/javascript";try{e.appendChild(document.createTextNode("window."+b+"=1;"))}catch(c){}f.insertBefore(e,f.firstChild);if(W[b]){T.support.scriptEval=true;delete W[b]}f.removeChild(e);if(a.attachEvent&&a.fireEvent){a.attachEvent("onclick",function(){T.support.noCloneEvent=false;a.detachEvent("onclick",arguments.callee)});a.cloneNode(true).fireEvent("onclick")}T(function(){var h=document.createElement("div");h.style.width=h.style.paddingLeft="1px";document.body.appendChild(h);T.boxModel=T.support.boxModel=h.offsetWidth===2;document.body.removeChild(h).style.display="none"})})();var H=T.support.cssFloat?"cssFloat":"styleFloat";T.props={"for":"htmlFor","class":"className","float":H,cssFloat:H,styleFloat:H,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};T.fn.extend({_load:T.fn.load,load:function(e,b,a){if(typeof e!=="string"){return this._load(e)}var c=e.indexOf(" ");if(c>=0){var g=e.slice(c,e.length);e=e.slice(0,c)}var d="GET";if(b){if(T.isFunction(b)){a=b;b=null}else{if(typeof b==="object"){b=T.param(b);d="POST"}}}var f=this;T.ajax({url:e,type:d,dataType:"html",data:b,complete:function(j,h){if(h=="success"||h=="notmodified"){f.html(g?T("<div/>").append(j.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(g):j.responseText)}if(a){f.each(a,[j.responseText,h,j])}}});return this},serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?T.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(c,b){var a=T(this).val();return a==null?null:T.isArray(a)?T.map(a,function(d,e){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});T.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,a){T.fn[a]=function(c){return this.bind(a,c)}});var N=ad();T.extend({get:function(d,b,a,c){if(T.isFunction(b)){a=b;b=null}return T.ajax({type:"GET",url:d,data:b,success:a,dataType:c})},getScript:function(b,a){return T.get(b,null,a,"script")},getJSON:function(c,b,a){return T.get(c,b,a,"json")},post:function(d,b,a,c){if(T.isFunction(b)){a=b;b={}}return T.ajax({type:"POST",url:d,data:b,success:a,dataType:c})},ajaxSetup:function(a){T.extend(T.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return W.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(m){m=T.extend(true,m,T.extend(true,{},T.ajaxSettings,m));var a,t=/=\?(&|$)/g,f,b,s=m.type.toUpperCase();if(m.data&&m.processData&&typeof m.data!=="string"){m.data=T.param(m.data)}if(m.dataType=="jsonp"){if(s=="GET"){if(!m.url.match(t)){m.url+=(m.url.match(/\?/)?"&":"?")+(m.jsonp||"callback")+"=?"}}else{if(!m.data||!m.data.match(t)){m.data=(m.data?m.data+"&":"")+(m.jsonp||"callback")+"=?"}}m.dataType="json"}if(m.dataType=="json"&&(m.data&&m.data.match(t)||m.url.match(t))){a="jsonp"+N++;if(m.data){m.data=(m.data+"").replace(t,"="+a+"$1")}m.url=m.url.replace(t,"="+a+"$1");m.dataType="script";W[a]=function(w){b=w;q();n();W[a]=ab;try{delete W[a]}catch(v){}if(r){r.removeChild(d)}}}if(m.dataType=="script"&&m.cache==null){m.cache=false}if(m.cache===false&&s=="GET"){var u=ad();var c=m.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+u+"$2");m.url=c+((c==m.url)?(m.url.match(/\?/)?"&":"?")+"_="+u:"")}if(m.data&&s=="GET"){m.url+=(m.url.match(/\?/)?"&":"?")+m.data;m.data=null}if(m.global&&!T.active++){T.event.trigger("ajaxStart")}var g=/^(\w+:)?\/\/([^\/?#]+)/.exec(m.url);if(m.dataType=="script"&&s=="GET"&&g&&(g[1]&&g[1]!=location.protocol||g[2]!=location.host)){var r=document.getElementsByTagName("head")[0];var d=document.createElement("script");d.src=m.url;if(m.scriptCharset){d.charset=m.scriptCharset}if(!a){var j=false;d.onload=d.onreadystatechange=function(){if(!j&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){j=true;q();n();d.onload=d.onreadystatechange=null;r.removeChild(d)}}}r.appendChild(d);return ab}var o=false;var p=m.xhr();if(m.username){p.open(s,m.url,m.async,m.username,m.password)}else{p.open(s,m.url,m.async)}try{if(m.data){p.setRequestHeader("Content-Type",m.contentType)}if(m.ifModified){p.setRequestHeader("If-Modified-Since",T.lastModified[m.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}p.setRequestHeader("X-Requested-With","XMLHttpRequest");p.setRequestHeader("Accept",m.dataType&&m.accepts[m.dataType]?m.accepts[m.dataType]+", */*":m.accepts._default)}catch(e){}if(m.beforeSend&&m.beforeSend(p,m)===false){if(m.global&&!--T.active){T.event.trigger("ajaxStop")}p.abort();return false}if(m.global){T.event.trigger("ajaxSend",[p,m])}var l=function(x){if(p.readyState==0){if(h){clearInterval(h);h=null;if(m.global&&!--T.active){T.event.trigger("ajaxStop")}}}else{if(!o&&p&&(p.readyState==4||x=="timeout")){o=true;if(h){clearInterval(h);h=null}f=x=="timeout"?"timeout":!T.httpSuccess(p)?"error":m.ifModified&&T.httpNotModified(p,m.url)?"notmodified":"success";if(f=="success"){try{b=T.httpData(p,m.dataType,m)}catch(v){f="parsererror"}}if(f=="success"){var w;try{w=p.getResponseHeader("Last-Modified")}catch(v){}if(m.ifModified&&w){T.lastModified[m.url]=w}if(!a){q()}}else{T.handleError(m,p,f)}n();if(x){p.abort()}if(m.async){p=null}}}};if(m.async){var h=setInterval(l,13);if(m.timeout>0){setTimeout(function(){if(p&&!o){l("timeout")}},m.timeout)}}try{p.send(m.data)}catch(e){T.handleError(m,p,null,e)}if(!m.async){l()}function q(){if(m.success){m.success(b,f)}if(m.global){T.event.trigger("ajaxSuccess",[p,m])}}function n(){if(m.complete){m.complete(p,f)}if(m.global){T.event.trigger("ajaxComplete",[p,m])}if(m.global&&!--T.active){T.event.trigger("ajaxStop")}}return p},handleError:function(c,a,d,b){if(c.error){c.error(a,d,b)}if(c.global){T.event.trigger("ajaxError",[a,c,b])}},active:0,httpSuccess:function(a){try{return !a.status&&location.protocol=="file:"||(a.status>=200&&a.status<300)||a.status==304||a.status==1223}catch(b){}return false},httpNotModified:function(b,d){try{var a=b.getResponseHeader("Last-Modified");return b.status==304||a==T.lastModified[d]}catch(c){}return false},httpData:function(a,c,d){var e=a.getResponseHeader("content-type"),f=c=="xml"||!c&&e&&e.indexOf("xml")>=0,b=f?a.responseXML:a.responseText;if(f&&b.documentElement.tagName=="parsererror"){throw"parsererror"}if(d&&d.dataFilter){b=d.dataFilter(b,c)}if(typeof b==="string"){if(c=="script"){T.globalEval(b)}if(c=="json"){b=W["eval"]("("+b+")")}}return b},param:function(d){var b=[];function a(f,e){b[b.length]=encodeURIComponent(f)+"="+encodeURIComponent(e)}if(T.isArray(d)||d.jquery){T.each(d,function(){a(this.name,this.value)})}else{for(var c in d){if(T.isArray(d[c])){T.each(d[c],function(){a(c,this)})}else{a(c,T.isFunction(d[c])?d[c]():d[c])}}}return b.join("&").replace(/%20/g,"+")}});var V={},U,ae=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function K(b,c){var a={};T.each(ae.concat.apply([],ae.slice(0,c)),function(){a[this]=b});return a}T.fn.extend({show:function(c,a){if(c){return this.animate(K("show",3),c,a)}else{for(var e=0,g=this.length;e<g;e++){var h=T.data(this[e],"olddisplay");this[e].style.display=h||"";if(T.css(this[e],"display")==="none"){var f=this[e].tagName,b;if(V[f]){b=V[f]}else{var d=T("<"+f+" />").appendTo("body");b=d.css("display");if(b==="none"){b="block"}d.remove();V[f]=b}T.data(this[e],"olddisplay",b)}}for(var e=0,g=this.length;e<g;e++){this[e].style.display=T.data(this[e],"olddisplay")||""}return this}},hide:function(b,a){if(b){return this.animate(K("hide",3),b,a)}else{for(var c=0,d=this.length;c<d;c++){var e=T.data(this[c],"olddisplay");if(!e&&e!=="none"){T.data(this[c],"olddisplay",T.css(this[c],"display"))}}for(var c=0,d=this.length;c<d;c++){this[c].style.display="none"}return this}},_toggle:T.fn.toggle,toggle:function(a,b){var c=typeof a==="boolean";return T.isFunction(a)&&T.isFunction(b)?this._toggle.apply(this,arguments):a==null||c?this.each(function(){var d=c?a:T(this).is(":hidden");T(this)[d?"show":"hide"]()}):this.animate(K("toggle",3),a,b)},fadeTo:function(c,a,b){return this.animate({opacity:a},c,b)},animate:function(a,d,b,c){var e=T.speed(d,b,c);return this[e.queue===false?"each":"queue"](function(){var g=T.extend({},e),j,f=this.nodeType==1&&T(this).is(":hidden"),h=this;for(j in a){if(a[j]=="hide"&&f||a[j]=="show"&&!f){return g.complete.call(this)}if((j=="height"||j=="width")&&this.style){g.display=T.css(this,"display");g.overflow=this.style.overflow}}if(g.overflow!=null){this.style.overflow="hidden"}g.curAnim=T.extend({},a);T.each(a,function(q,m){var n=new T.fx(h,g,q);if(/toggle|show|hide/.test(m)){n[m=="toggle"?f?"show":"hide":m](a)}else{var o=m.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),l=n.cur(true)||0;if(o){var r=parseFloat(o[2]),p=o[3]||"px";if(p!="px"){h.style[q]=(r||1)+p;l=((r||1)/n.cur(true))*l;h.style[q]=l+p}if(o[1]){r=((o[1]=="-="?-1:1)*r)+l}n.custom(l,r,p)}else{n.custom(l,m,"")}}});return true})},stop:function(b,c){var a=T.timers;if(b){this.queue([])}this.each(function(){for(var d=a.length-1;d>=0;d--){if(a[d].elem==this){if(c){a[d](true)}a.splice(d,1)}}});if(!c){this.dequeue()}return this}});T.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,a){T.fn[b]=function(d,c){return this.animate(a,d,c)}});T.extend({speed:function(b,a,c){var d=typeof b==="object"?b:{complete:c||!c&&a||T.isFunction(b)&&b,duration:b,easing:c&&a||a&&!T.isFunction(a)&&a};d.duration=T.fx.off?0:typeof d.duration==="number"?d.duration:T.fx.speeds[d.duration]||T.fx.speeds._default;d.old=d.complete;d.complete=function(){if(d.queue!==false){T(this).dequeue()}if(T.isFunction(d.old)){d.old.call(this)}};return d},easing:{linear:function(b,a,d,c){return d+c*b},swing:function(b,a,d,c){return((-Math.cos(b*Math.PI)/2)+0.5)*c+d}},timers:[],fx:function(b,c,a){this.options=c;this.elem=b;this.prop=a;if(!c.orig){c.orig={}}}});T.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(T.fx.step[this.prop]||T.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var b=parseFloat(T.css(this.elem,this.prop,a));return b&&b>-10000?b:parseFloat(T.curCSS(this.elem,this.prop))||0},custom:function(a,b,c){this.startTime=ad();this.start=a;this.end=b;this.unit=c||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;function d(f){return e.step(f)}d.elem=this.elem;if(d()&&T.timers.push(d)&&!U){U=setInterval(function(){var f=T.timers;for(var g=0;g<f.length;g++){if(!f[g]()){f.splice(g--,1)}}if(!f.length){clearInterval(U);U=ab}},13)}},show:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());T(this.elem).show()},hide:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(c){var d=ad();if(c||d>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var f=true;for(var e in this.options.curAnim){if(this.options.curAnim[e]!==true){f=false}}if(f){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(T.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){T(this.elem).hide()}if(this.options.hide||this.options.show){for(var b in this.options.curAnim){T.attr(this.elem.style,b,this.options.orig[b])}}this.options.complete.call(this.elem)}return false}else{var a=d-this.startTime;this.state=a/this.options.duration;this.pos=T.easing[this.options.easing||(T.easing.swing?"swing":"linear")](this.state,a,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};T.extend(T.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){T.attr(a.elem.style,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null){a.elem.style[a.prop]=a.now+a.unit}else{a.elem[a.prop]=a.now}}}});if(document.documentElement.getBoundingClientRect){T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}var f=this[0].getBoundingClientRect(),c=this[0].ownerDocument,g=c.body,h=c.documentElement,a=h.clientTop||g.clientTop||0,b=h.clientLeft||g.clientLeft||0,d=f.top+(self.pageYOffset||T.boxModel&&h.scrollTop||g.scrollTop)-a,e=f.left+(self.pageXOffset||T.boxModel&&h.scrollLeft||g.scrollLeft)-b;return{top:d,left:e}}}else{T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}T.offset.initialized||T.offset.initialize();var f=this[0],j=f.offsetParent,l=f,a=f.ownerDocument,c,h=a.documentElement,e=a.body,d=a.defaultView,m=d.getComputedStyle(f,null),b=f.offsetTop,g=f.offsetLeft;while((f=f.parentNode)&&f!==e&&f!==h){c=d.getComputedStyle(f,null);b-=f.scrollTop,g-=f.scrollLeft;if(f===j){b+=f.offsetTop,g+=f.offsetLeft;if(T.offset.doesNotAddBorder&&!(T.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(f.tagName))){b+=parseInt(c.borderTopWidth,10)||0,g+=parseInt(c.borderLeftWidth,10)||0}l=j,j=f.offsetParent}if(T.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"){b+=parseInt(c.borderTopWidth,10)||0,g+=parseInt(c.borderLeftWidth,10)||0}m=c}if(m.position==="relative"||m.position==="static"){b+=e.offsetTop,g+=e.offsetLeft}if(m.position==="fixed"){b+=Math.max(h.scrollTop,e.scrollTop),g+=Math.max(h.scrollLeft,e.scrollLeft)}return{top:b,left:g}}}T.offset={initialize:function(){if(this.initialized){return}var c=document.body,j=document.createElement("div"),g,h,a,f,b,l,e=c.style.marginTop,d='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';b={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(l in b){j.style[l]=b[l]}j.innerHTML=d;c.insertBefore(j,c.firstChild);g=j.firstChild,h=g.firstChild,f=g.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(h.offsetTop!==5);this.doesAddBorderForTableAndCells=(f.offsetTop===5);g.style.overflow="hidden",g.style.position="relative";this.subtractsBorderForOverflowNotVisible=(h.offsetTop===-5);c.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(c.offsetTop===0);c.style.marginTop=e;c.removeChild(j);this.initialized=true},bodyOffset:function(c){T.offset.initialized||T.offset.initialize();var a=c.offsetTop,b=c.offsetLeft;if(T.offset.doesNotIncludeMarginInBodyOffset){a+=parseInt(T.curCSS(c,"marginTop",true),10)||0,b+=parseInt(T.curCSS(c,"marginLeft",true),10)||0}return{top:a,left:b}}};T.fn.extend({position:function(){var b=0,c=0,e;if(this[0]){var d=this.offsetParent(),a=this.offset(),f=/^body|html$/i.test(d[0].tagName)?{top:0,left:0}:d.offset();a.top-=Y(this,"marginTop");a.left-=Y(this,"marginLeft");f.top+=Y(d,"borderTopWidth");f.left+=Y(d,"borderLeftWidth");e={top:a.top-f.top,left:a.left-f.left}}return e},offsetParent:function(){var a=this[0].offsetParent||document.body;while(a&&(!/^body|html$/i.test(a.tagName)&&T.css(a,"position")=="static")){a=a.offsetParent}return T(a)}});T.each(["Left","Top"],function(b,c){var a="scroll"+c;T.fn[a]=function(d){if(!this[0]){return null}return d!==ab?this.each(function(){this==W||this==document?W.scrollTo(!b?d:T(W).scrollLeft(),b?d:T(W).scrollTop()):this[a]=d}):this[0]==W||this[0]==document?self[b?"pageYOffset":"pageXOffset"]||T.boxModel&&document.documentElement[a]||document.body[a]:this[0][a]}});T.each(["Height","Width"],function(b,d){var f=b?"Left":"Top",c=b?"Right":"Bottom",e=d.toLowerCase();T.fn["inner"+d]=function(){return this[0]?T.css(this[0],e,false,"padding"):null};T.fn["outer"+d]=function(g){return this[0]?T.css(this[0],e,false,g?"margin":"border"):null};var a=d.toLowerCase();T.fn[a]=function(g){return this[0]==W?document.compatMode=="CSS1Compat"&&document.documentElement["client"+d]||document.body["client"+d]:this[0]==document?Math.max(document.documentElement["client"+d],document.body["scroll"+d],document.documentElement["scroll"+d],document.body["offset"+d],document.documentElement["offset"+d]):g===ab?(this.length?T.css(this[0],a):null):this.css(a,typeof g==="string"?g:g+"px")}})})();jQuery.ui||(function(q){var j=q.fn.remove,p=q.browser.mozilla&&(parseFloat(q.browser.version)<1.9);q.ui={version:"1.7.2",plugin:{add:function(c,b,e){var a=q.ui[c].prototype;for(var d in e){a.plugins[d]=a.plugins[d]||[];a.plugins[d].push([b,e[d]])}},call:function(d,b,c){var e=d.plugins[b];if(!e||!d.element[0].parentNode){return}for(var a=0;a<e.length;a++){if(d.options[e[a][0]]){e[a][1].apply(d.element,c)}}}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,c){if(q(a).css("overflow")=="hidden"){return false}var d=(c&&c=="left")?"scrollLeft":"scrollTop",b=false;if(a[d]>0){return true}a[d]=1;b=(a[d]>0);a[d]=0;return b},isOverAxis:function(b,c,a){return(b>c)&&(b<(c+a))},isOver:function(e,c,f,a,d,b){return q.ui.isOverAxis(e,f,d)&&q.ui.isOverAxis(c,a,b)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(p){var n=q.attr,o=q.fn.removeAttr,l="http://www.w3.org/2005/07/aaa",s=/^aria-/,r=/^wairole:/;q.attr=function(c,d,b){var a=b!==undefined;return(d=="role"?(a?n.call(this,c,d,"wairole:"+b):(n.apply(this,arguments)||"").replace(r,"")):(s.test(d)?(a?c.setAttributeNS(l,d.replace(s,"aaa:"),b):n.call(this,c,d.replace(s,"aaa:"))):n.apply(this,arguments)))};q.fn.removeAttr=function(a){return(s.test(a)?this.each(function(){this.removeAttributeNS(l,a.replace(s,""))}):o.call(this,a))}}q.fn.extend({remove:function(){q("*",this).add(this).each(function(){q(this).triggerHandler("remove")});return j.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var a;if((q.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){a=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(q.curCSS(this,"position",1))&&(/(auto|scroll)/).test(q.curCSS(this,"overflow",1)+q.curCSS(this,"overflow-y",1)+q.curCSS(this,"overflow-x",1))}).eq(0)}else{a=this.parents().filter(function(){return(/(auto|scroll)/).test(q.curCSS(this,"overflow",1)+q.curCSS(this,"overflow-y",1)+q.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!a.length?q(document):a}});q.extend(q.expr[":"],{data:function(a,b,c){return !!q.data(a,c[3])},focusable:function(b){var a=b.nodeName.toLowerCase(),c=q.attr(b,"tabindex");return(/input|select|textarea|button|object/.test(a)?!b.disabled:"a"==a||"area"==a?b.href||!isNaN(c):!isNaN(c))&&!q(b)["area"==a?"parents":"closest"](":hidden").length},tabbable:function(a){var b=q.attr(a,"tabindex");return(isNaN(b)||b>=0)&&q(a).is(":focusable")}});function m(a,f,e,b){function c(g){var h=q[a][f][g]||[];return(typeof h=="string"?h.split(/,?\s+/):h)}var d=c("getter");if(b.length==1&&typeof b[0]=="string"){d=d.concat(c("getterSetter"))}return(q.inArray(e,d)!=-1)}q.widget=function(b,c){var a=b.split(".")[0];b=b.split(".")[1];q.fn[b]=function(e){var g=(typeof e=="string"),f=Array.prototype.slice.call(arguments,1);if(g&&e.substring(0,1)=="_"){return this}if(g&&m(a,b,e,f)){var d=q.data(this[0],b);return(d?d[e].apply(d,f):undefined)}return this.each(function(){var h=q.data(this,b);(!h&&!g&&q.data(this,b,new q[a][b](this,e))._init());(h&&g&&q.isFunction(h[e])&&h[e].apply(h,f))})};q[a]=q[a]||{};q[a][b]=function(e,f){var d=this;this.namespace=a;this.widgetName=b;this.widgetEventPrefix=q[a][b].eventPrefix||b;this.widgetBaseClass=a+"-"+b;this.options=q.extend({},q.widget.defaults,q[a][b].defaults,q.metadata&&q.metadata.get(e)[b],f);this.element=q(e).bind("setData."+b,function(h,t,g){if(h.target==e){return d._setData(t,g)}}).bind("getData."+b,function(g,h){if(g.target==e){return d._getData(h)}}).bind("remove",function(){return d.destroy()})};q[a][b].prototype=q.extend({},q.widget.prototype,c);q[a][b].getterSetter="option"};q.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(b,a){var c=b,d=this;if(typeof b=="string"){if(a===undefined){return this._getData(b)}c={};c[b]=a}q.each(c,function(f,e){d._setData(f,e)})},_getData:function(a){return this.options[a]},_setData:function(b,a){this.options[b]=a;if(b=="disabled"){this.element[a?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",a)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(b,a,g){var e=this.options[b],d=(b==this.widgetEventPrefix?b:this.widgetEventPrefix+b);a=q.Event(a);a.type=d;if(a.originalEvent){for(var c=q.event.props.length,f;c;){f=q.event.props[--c];a[f]=a.originalEvent[f]}}this.element.trigger(a,g);return !(q.isFunction(e)&&e.call(this.element[0],a,g)===false||a.isDefaultPrevented())}};q.widget.defaults={disabled:false};q.ui.mouse={_mouseInit:function(){var a=this;this.element.bind("mousedown."+this.widgetName,function(b){return a._mouseDown(b)}).bind("click."+this.widgetName,function(b){if(a._preventClickEvent){a._preventClickEvent=false;b.stopImmediatePropagation();return false}});if(q.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(q.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(b.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(b));this._mouseDownEvent=b;var c=this,a=(b.which==1),d=(typeof this.options.cancel=="string"?q(b.target).parents().add(b.target).filter(this.options.cancel).length:false);if(!a||d||!this._mouseCapture(b)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){c.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=(this._mouseStart(b)!==false);if(!this._mouseStarted){b.preventDefault();return true}}this._mouseMoveDelegate=function(e){return c._mouseMove(e)};this._mouseUpDelegate=function(e){return c._mouseUp(e)};q(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(q.browser.safari||b.preventDefault());b.originalEvent.mouseHandled=true;return true},_mouseMove:function(a){if(q.browser.msie&&!a.button){return this._mouseUp(a)}if(this._mouseStarted){this._mouseDrag(a);return a.preventDefault()}if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,a)!==false);(this._mouseStarted?this._mouseDrag(a):this._mouseUp(a))}return !this._mouseStarted},_mouseUp:function(a){q(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(a.target==this._mouseDownEvent.target);this._mouseStop(a)}return false},_mouseDistanceMet:function(a){return(Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance)},_mouseDelayMet:function(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return true}};q.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(b){b.widget("ui.draggable",b.extend({},b.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}(this.options.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit()},destroy:function(){if(!this.element.data("draggable")){return}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(a){var d=this.options;if(this.helper||d.disabled||b(a.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(a);if(!this.handle){return false}return true},_mouseStart:function(a){var d=this.options;this.helper=this._createHelper(a);this._cacheHelperProportions();if(b.ui.ddmanager){b.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};b.extend(this.offset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(a);this.originalPageX=a.pageX;this.originalPageY=a.pageY;if(d.cursorAt){this._adjustOffsetFromHelper(d.cursorAt)}if(d.containment){this._setContainment()}this._trigger("start",a);this._cacheHelperProportions();if(b.ui.ddmanager&&!d.dropBehaviour){b.ui.ddmanager.prepareOffsets(this,a)}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);return true},_mouseDrag:function(a,e){this.position=this._generatePosition(a);this.positionAbs=this._convertPositionTo("absolute");if(!e){var f=this._uiHash();this._trigger("drag",a,f);this.position=f.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(b.ui.ddmanager){b.ui.ddmanager.drag(this,a)}return false},_mouseStop:function(f){var e=false;if(b.ui.ddmanager&&!this.options.dropBehaviour){e=b.ui.ddmanager.drop(this,f)}if(this.dropped){e=this.dropped;this.dropped=false}if((this.options.revert=="invalid"&&!e)||(this.options.revert=="valid"&&e)||this.options.revert===true||(b.isFunction(this.options.revert)&&this.options.revert.call(this.element,e))){var a=this;b(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){a._trigger("stop",f);a._clear()})}else{this._trigger("stop",f);this._clear()}return false},_getHandle:function(a){var d=!this.options.handle||!b(this.options.handle,this.element).length?true:false;b(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==a.target){d=true}});return d},_createHelper:function(f){var e=this.options;var a=b.isFunction(e.helper)?b(e.helper.apply(this.element[0],[f])):(e.helper=="clone"?this.element.clone():this.element);if(!a.parents("body").length){a.appendTo((e.appendTo=="parent"?this.element[0].parentNode:e.appendTo))}if(a[0]!=this.element[0]&&!(/(fixed|absolute)/).test(a.css("position"))){a.css("position","absolute")}return a},_adjustOffsetFromHelper:function(a){if(a.left!=undefined){this.offset.click.left=a.left+this.margins.left}if(a.right!=undefined){this.offset.click.left=this.helperProportions.width-a.right+this.margins.left}if(a.top!=undefined){this.offset.click.top=a.top+this.margins.top}if(a.bottom!=undefined){this.offset.click.top=this.helperProportions.height-a.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var a=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0])){a.left+=this.scrollParent.scrollLeft();a.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&b.browser.msie)){a={top:0,left:0}}return{top:a.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f=this.options;if(f.containment=="parent"){f.containment=this.helper[0].parentNode}if(f.containment=="document"||f.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,b(f.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(b(f.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(f.containment)&&f.containment.constructor!=Array){var h=b(f.containment)[0];if(!h){return}var g=b(f.containment).offset();var a=(b(h).css("overflow")!="hidden");this.containment=[g.left+(parseInt(b(h).css("borderLeftWidth"),10)||0)+(parseInt(b(h).css("paddingLeft"),10)||0)-this.margins.left,g.top+(parseInt(b(h).css("borderTopWidth"),10)||0)+(parseInt(b(h).css("paddingTop"),10)||0)-this.margins.top,g.left+(a?Math.max(h.scrollWidth,h.offsetWidth):h.offsetWidth)-(parseInt(b(h).css("borderLeftWidth"),10)||0)-(parseInt(b(h).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,g.top+(a?Math.max(h.scrollHeight,h.offsetHeight):h.offsetHeight)-(parseInt(b(h).css("borderTopWidth"),10)||0)-(parseInt(b(h).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}else{if(f.containment.constructor==Array){this.containment=f.containment}}},_convertPositionTo:function(l,d){if(!d){d=this.position}var n=l=="absolute"?1:-1;var m=this.options,a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=(/(html|body)/i).test(a[0].tagName);return{top:(d.top+this.offset.relative.top*n+this.offset.parent.top*n-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(j?0:a.scrollTop()))*n)),left:(d.left+this.offset.relative.left*n+this.offset.parent.left*n-(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():j?0:a.scrollLeft())*n))}},_generatePosition:function(o){var l=this.options,a=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&b.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=(/(html|body)/i).test(a[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var p=o.pageX;var q=o.pageY;if(this.originalPosition){if(this.containment){if(o.pageX-this.offset.click.left<this.containment[0]){p=this.containment[0]+this.offset.click.left}if(o.pageY-this.offset.click.top<this.containment[1]){q=this.containment[1]+this.offset.click.top}if(o.pageX-this.offset.click.left>this.containment[2]){p=this.containment[2]+this.offset.click.left}if(o.pageY-this.offset.click.top>this.containment[3]){q=this.containment[3]+this.offset.click.top}}if(l.grid){var m=this.originalPageY+Math.round((q-this.originalPageY)/l.grid[1])*l.grid[1];q=this.containment?(!(m-this.offset.click.top<this.containment[1]||m-this.offset.click.top>this.containment[3])?m:(!(m-this.offset.click.top<this.containment[1])?m-l.grid[1]:m+l.grid[1])):m;var n=this.originalPageX+Math.round((p-this.originalPageX)/l.grid[0])*l.grid[0];p=this.containment?(!(n-this.offset.click.left<this.containment[0]||n-this.offset.click.left>this.containment[2])?n:(!(n-this.offset.click.left<this.containment[0])?n-l.grid[0]:n+l.grid[0])):n}}return{top:(q-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(j?0:a.scrollTop())))),left:(p-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(b.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():j?0:a.scrollLeft())))}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(a,f,e){e=e||this._uiHash();b.ui.plugin.call(this,a,[f,e]);if(a=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return b.widget.prototype._trigger.call(this,a,f,e)},plugins:{},_uiHash:function(a){return{helper:this.helper,position:this.position,absolutePosition:this.positionAbs,offset:this.positionAbs}}}));b.extend(b.ui.draggable,{version:"1.7.2",eventPrefix:"drag",defaults:{addClasses:true,appendTo:"parent",axis:false,cancel:":input,option",connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,delay:0,distance:1,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false}});b.ui.plugin.add("draggable","connectToSortable",{start:function(l,h){var j=b(this).data("draggable"),g=j.options,a=b.extend({},h,{item:j.element});j.sortables=[];b(g.connectToSortable).each(function(){var c=b.data(this,"sortable");if(c&&!c.options.disabled){j.sortables.push({instance:c,shouldRevert:c.options.revert});c._refreshItems();c._trigger("activate",l,a)}})},stop:function(h,f){var g=b(this).data("draggable"),a=b.extend({},f,{item:g.element});b.each(g.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;g.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(h);this.instance.options.helper=this.instance.options._helper;if(g.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",h,a)}})},drag:function(l,g){var h=b(this).data("draggable"),a=this;var j=function(r){var d=this.offset.click.top,e=this.offset.click.left;var t=this.positionAbs.top,o=this.positionAbs.left;var q=r.height,f=r.width;var c=r.top,s=r.left;return b.ui.isOver(t+d,o+e,c,s,q,f)};b.each(h.sortables,function(c){this.instance.positionAbs=h.positionAbs;this.instance.helperProportions=h.helperProportions;this.instance.offset.click=h.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=b(a).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return g.helper[0]};l.target=this.instance.currentItem[0];this.instance._mouseCapture(l,true);this.instance._mouseStart(l,true,true);this.instance.offset.click.top=h.offset.click.top;this.instance.offset.click.left=h.offset.click.left;this.instance.offset.parent.left-=h.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=h.offset.parent.top-this.instance.offset.parent.top;h._trigger("toSortable",l);h.dropped=this.instance.element;h.currentItem=h.element;this.instance.fromOutside=h}if(this.instance.currentItem){this.instance._mouseDrag(l)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",l,this.instance._uiHash(this.instance));this.instance._mouseStop(l,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}h._trigger("fromSortable",l);h.dropped=false}}})}});b.ui.plugin.add("draggable","cursor",{start:function(h,g){var a=b("body"),f=b(this).data("draggable").options;if(a.css("cursor")){f._cursor=a.css("cursor")}a.css("cursor",f.cursor)},stop:function(a,f){var e=b(this).data("draggable").options;if(e._cursor){b("body").css("cursor",e._cursor)}}});b.ui.plugin.add("draggable","iframeFix",{start:function(a,f){var e=b(this).data("draggable").options;b(e.iframeFix===true?"iframe":e.iframeFix).each(function(){b('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(b(this).offset()).appendTo("body")})},stop:function(a,d){b("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});b.ui.plugin.add("draggable","opacity",{start:function(h,g){var a=b(g.helper),f=b(this).data("draggable").options;if(a.css("opacity")){f._opacity=a.css("opacity")}a.css("opacity",f.opacity)},stop:function(a,f){var e=b(this).data("draggable").options;if(e._opacity){b(f.helper).css("opacity",e._opacity)}}});b.ui.plugin.add("draggable","scroll",{start:function(f,e){var a=b(this).data("draggable");if(a.scrollParent[0]!=document&&a.scrollParent[0].tagName!="HTML"){a.overflowOffset=a.scrollParent.offset()}},drag:function(j,h){var l=b(this).data("draggable"),g=l.options,a=false;if(l.scrollParent[0]!=document&&l.scrollParent[0].tagName!="HTML"){if(!g.axis||g.axis!="x"){if((l.overflowOffset.top+l.scrollParent[0].offsetHeight)-j.pageY<g.scrollSensitivity){l.scrollParent[0].scrollTop=a=l.scrollParent[0].scrollTop+g.scrollSpeed}else{if(j.pageY-l.overflowOffset.top<g.scrollSensitivity){l.scrollParent[0].scrollTop=a=l.scrollParent[0].scrollTop-g.scrollSpeed}}}if(!g.axis||g.axis!="y"){if((l.overflowOffset.left+l.scrollParent[0].offsetWidth)-j.pageX<g.scrollSensitivity){l.scrollParent[0].scrollLeft=a=l.scrollParent[0].scrollLeft+g.scrollSpeed}else{if(j.pageX-l.overflowOffset.left<g.scrollSensitivity){l.scrollParent[0].scrollLeft=a=l.scrollParent[0].scrollLeft-g.scrollSpeed}}}}else{if(!g.axis||g.axis!="x"){if(j.pageY-b(document).scrollTop()<g.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()-g.scrollSpeed)}else{if(b(window).height()-(j.pageY-b(document).scrollTop())<g.scrollSensitivity){a=b(document).scrollTop(b(document).scrollTop()+g.scrollSpeed)}}}if(!g.axis||g.axis!="y"){if(j.pageX-b(document).scrollLeft()<g.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()-g.scrollSpeed)}else{if(b(window).width()-(j.pageX-b(document).scrollLeft())<g.scrollSensitivity){a=b(document).scrollLeft(b(document).scrollLeft()+g.scrollSpeed)}}}}if(a!==false&&b.ui.ddmanager&&!g.dropBehaviour){b.ui.ddmanager.prepareOffsets(l,j)}}});b.ui.plugin.add("draggable","snap",{start:function(h,g){var a=b(this).data("draggable"),f=a.options;a.snapElements=[];b(f.snap.constructor!=String?(f.snap.items||":data(draggable)"):f.snap).each(function(){var c=b(this);var d=c.offset();if(this!=a.element[0]){a.snapElements.push({item:this,width:c.outerWidth(),height:c.outerHeight(),top:d.top,left:d.left})}})},drag:function(t,E){var K=b(this).data("draggable"),C=K.options;var d=C.snapTolerance;var l=E.offset.left,o=l+K.helperProportions.width,L=E.offset.top,M=L+K.helperProportions.height;for(var r=K.snapElements.length-1;r>=0;r--){var B=K.snapElements[r].left,F=B+K.snapElements[r].width,G=K.snapElements[r].top,D=G+K.snapElements[r].height;if(!((B-d<l&&l<F+d&&G-d<L&&L<D+d)||(B-d<l&&l<F+d&&G-d<M&&M<D+d)||(B-d<o&&o<F+d&&G-d<L&&L<D+d)||(B-d<o&&o<F+d&&G-d<M&&M<D+d))){if(K.snapElements[r].snapping){(K.options.snap.release&&K.options.snap.release.call(K.element,t,b.extend(K._uiHash(),{snapItem:K.snapElements[r].item})))}K.snapElements[r].snapping=false;continue}if(C.snapMode!="inner"){var N=Math.abs(G-M)<=d;var a=Math.abs(D-L)<=d;var I=Math.abs(B-o)<=d;var H=Math.abs(F-l)<=d;if(N){E.position.top=K._convertPositionTo("relative",{top:G-K.helperProportions.height,left:0}).top-K.margins.top}if(a){E.position.top=K._convertPositionTo("relative",{top:D,left:0}).top-K.margins.top}if(I){E.position.left=K._convertPositionTo("relative",{top:0,left:B-K.helperProportions.width}).left-K.margins.left}if(H){E.position.left=K._convertPositionTo("relative",{top:0,left:F}).left-K.margins.left}}var J=(N||a||I||H);if(C.snapMode!="outer"){var N=Math.abs(G-L)<=d;var a=Math.abs(D-M)<=d;var I=Math.abs(B-l)<=d;var H=Math.abs(F-o)<=d;if(N){E.position.top=K._convertPositionTo("relative",{top:G,left:0}).top-K.margins.top}if(a){E.position.top=K._convertPositionTo("relative",{top:D-K.helperProportions.height,left:0}).top-K.margins.top}if(I){E.position.left=K._convertPositionTo("relative",{top:0,left:B}).left-K.margins.left}if(H){E.position.left=K._convertPositionTo("relative",{top:0,left:F-K.helperProportions.width}).left-K.margins.left}}if(!K.snapElements[r].snapping&&(N||a||I||H||J)){(K.options.snap.snap&&K.options.snap.snap.call(K.element,t,b.extend(K._uiHash(),{snapItem:K.snapElements[r].item})))}K.snapElements[r].snapping=(N||a||I||H||J)}}});b.ui.plugin.add("draggable","stack",{start:function(a,h){var f=b(this).data("draggable").options;var g=b.makeArray(b(f.stack.group)).sort(function(c,d){return(parseInt(b(c).css("zIndex"),10)||f.stack.min)-(parseInt(b(d).css("zIndex"),10)||f.stack.min)});b(g).each(function(c){this.style.zIndex=f.stack.min+c});this[0].style.zIndex=f.stack.min+g.length}});b.ui.plugin.add("draggable","zIndex",{start:function(h,g){var a=b(g.helper),f=b(this).data("draggable").options;if(a.css("zIndex")){f._zIndex=a.css("zIndex")}a.css("zIndex",f.zIndex)},stop:function(a,f){var e=b(this).data("draggable").options;if(e._zIndex){b(f.helper).css("zIndex",e._zIndex)}}})})(jQuery);(function($){$.extend($.ui,{datepicker:{version:"1.7.2"}});var PROP_NAME="datepicker";function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dateFormat:"mm/dd/yy",firstDay:0,isRTL:false};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,showMonthAfterYear:false,yearRange:"-10:+10",showOtherMonths:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"normal",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false};$.extend(this._defaults,this.regional[""]);this.dpDiv=$('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>')}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.log.apply("",arguments)}},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeName=="span");if(!target.id){target.id="dp"+(++this.uuid)}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=="input"){this._connectDatepicker(target,inst)}else{if(inline){this._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){var id=target[0].id.replace(/([:\[\]\.])/g,"\\\\$1");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(target,inst){var input=$(target);inst.append=$([]);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return}var appendText=this._get(inst,"appendText");var isRTL=this._get(inst,"isRTL");if(appendText){inst.append=$('<span class="'+this._appendClass+'">'+appendText+"</span>");input[isRTL?"before":"after"](inst.append)}var showOn=this._get(inst,"showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)}if(showOn=="button"||showOn=="both"){var buttonText=this._get(inst,"buttonText");var buttonImage=this._get(inst,"buttonImage");inst.trigger=$(this._get(inst,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('<button type="button"></button>').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("<img/>").attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?"before":"after"](inst.trigger);inst.trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==target){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(target)}return false})}input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst)},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return}divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst));this._updateDatepicker(inst);this._updateAlternate(inst)},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){var id="dp"+(++this.uuid);this._dialogInput=$('<input type="text" id="'+id+'" size="1" style="position: absolute; top: -100px;"/>');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName=="input"){inst.append.remove();inst.trigger.remove();$target.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress)}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=false;inst.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().removeClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=true;inst.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().addClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i<this._disabledInputs.length;i++){if(this._disabledInputs[i]==target){return true}}return false},_getInst:function(target){try{return $.data(target,PROP_NAME)}catch(err){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(target,name,value){var inst=this._getInst(target);if(arguments.length==2&&typeof name=="string"){return(name=="defaults"?$.extend({},$.datepicker._defaults):(inst?(name=="all"?$.extend({},inst.settings):this._get(inst,name)):null))}var settings=name||{};if(typeof name=="string"){settings={};settings[name]=value}if(inst){if(this._curInst==inst){this._hideDatepicker(null)}var date=this._getDateDatepicker(target);extendRemove(inst.settings,settings);this._setDateDatepicker(target,date);this._updateDatepicker(inst)}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value)},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst)}},_setDateDatepicker:function(target,date,endDate){var inst=this._getInst(target);if(inst){this._setDate(inst,date,endDate);this._updateDatepicker(inst);this._updateAlternate(inst)}},_getDateDatepicker:function(target){var inst=this._getInst(target);if(inst&&!inst.inline){this._setDateFromField(inst)}return(inst?this._getDate(inst):null)},_doKeyDown:function(event){var inst=$.datepicker._getInst(event.target);var handled=true;var isRTL=inst.dpDiv.is(".ui-datepicker-rtl");inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker(null,"");break;case 13:var sel=$("td."+$.datepicker._dayOverClass+", td."+$.datepicker._currentClass,inst.dpDiv);if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0])}else{$.datepicker._hideDatepicker(null,$.datepicker._get(inst,"duration"))}return false;break;case 27:$.datepicker._hideDatepicker(null,$.datepicker._get(inst,"duration"));break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M");break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M");break;case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target)}handled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target)}handled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M")}break;case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,"D")}handled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M")}break;case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,"D")}handled=event.ctrlKey||event.metaKey;break;default:handled=false}}else{if(event.keyCode==36&&event.ctrlKey){$.datepicker._showDatepicker(this)}else{handled=false}}if(handled){event.preventDefault();event.stopPropagation()}},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,"constrainInput")){var chars=$.datepicker._possibleChars($.datepicker._get(inst,"dateFormat"));var chr=String.fromCharCode(event.charCode==undefined?event.keyCode:event.charCode);return event.ctrlKey||(chr<" "||!chars||chars.indexOf(chr)>-1)}},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return}var inst=$.datepicker._getInst(input);var beforeShow=$.datepicker._get(inst,"beforeShow");extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.datepicker._hideDatepicker(null,"");$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=""}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed";return !isFixed});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.rangeStart=null;inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim")||"show";var duration=$.datepicker._get(inst,"duration");var postProcess=function(){$.datepicker._datepickerShowing=true;if($.browser.msie&&parseInt($.browser.version,10)<7){$("iframe.ui-datepicker-cover").css({width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4})}};if($.effects&&$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[showAnim](duration,postProcess)}if(duration==""){postProcess()}if(inst.input[0].type!="hidden"){inst.input[0].focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var dims={width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4};var self=this;inst.dpDiv.empty().append(this._generateHTML(inst)).find("iframe.ui-datepicker-cover").css({width:dims.width,height:dims.height}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){$(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).removeClass("ui-datepicker-next-hover")}}).bind("mouseover",function(){if(!self._isDisabledDatepicker(inst.inline?inst.dpDiv.parent()[0]:inst.input[0])){$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");$(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).addClass("ui-datepicker-next-hover")}}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;if(cols>1){inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em")}else{inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("")}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(inst.input&&inst.input[0].type!="hidden"&&inst==$.datepicker._curInst){$(inst.input[0]).focus()}},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();var dpHeight=inst.dpDiv.outerHeight();var inputWidth=inst.input?inst.input.outerWidth():0;var inputHeight=inst.input?inst.input.outerHeight():0;var viewWidth=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+$(document).scrollLeft();var viewHeight=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)+$(document).scrollTop();offset.left-=(this._get(inst,"isRTL")?(dpWidth-inputWidth):0);offset.left-=(isFixed&&offset.left==inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&&offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0;offset.top-=(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(offset.top+dpHeight+inputHeight*2-viewHeight):0;return offset},_findPos:function(obj){while(obj&&(obj.type=="hidden"||obj.nodeType!=1)){obj=obj.nextSibling}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input,duration){var inst=this._curInst;if(!inst||(input&&inst!=$.data(input,PROP_NAME))){return}if(inst.stayOpen){this._selectDate("#"+inst.id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))}inst.stayOpen=false;if(this._datepickerShowing){duration=(duration!=null?duration:this._get(inst,"duration"));var showAnim=this._get(inst,"showAnim");var postProcess=function(){$.datepicker._tidyDialog(inst)};if(duration!=""&&$.effects&&$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[(duration==""?"hide":(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide")))](duration,postProcess)}if(duration==""){this._tidyDialog(inst)}var onClose=this._get(inst,"onClose");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst])}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this.dpDiv)}}this._inDialog=false}this._curInst=null},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(event){if(!$.datepicker._curInst){return}var $target=$(event.target);if(($target.parents("#"+$.datepicker._mainDivId).length==0)&&!$target.hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._hideDatepicker(null,"")}},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return}this._adjustInstDate(inst,offset+(period=="M"?this._get(inst,"showCurrentAtPos"):0),period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst._selectingMonthYear=false;inst["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_clickMonthYear:function(id){var target=$(id);var inst=this._getInst(target[0]);if(inst.input&&inst._selectingMonthYear&&!$.browser.msie){inst.input[0].focus()}inst._selectingMonthYear=!inst._selectingMonthYear},_selectDay:function(id,month,year,td){var target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return}var inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$("a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;if(inst.stayOpen){inst.endDay=inst.endMonth=inst.endYear=null}this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));if(inst.stayOpen){inst.rangeStart=this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay));this._updateDatepicker(inst)}},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);inst.stayOpen=false;inst.endDay=inst.endMonth=inst.endYear=inst.rangeStart=null;this._selectDate(target,"")},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr)}this._updateAlternate(inst);var onSelect=this._get(inst,"onSelect");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(inst.input){inst.input.trigger("change")}}if(inst.inline){this._updateDatepicker(inst)}else{if(!inst.stayOpen){this._hideDatepicker(null,this._get(inst,"duration"));this._lastInput=inst.input[0];if(typeof(inst.input[0])!="object"){inst.input[0].focus()}this._lastInput=null}}},_updateAlternate:function(inst){var altField=this._get(inst,"altField");if(altField){var altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");var date=this._getDate(inst);dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate());var firstMon=new Date(checkDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate(firstMon.getDate()+1-firstDay);if(firstDay<4&&checkDate<firstMon){checkDate.setDate(checkDate.getDate()-3);return $.datepicker.iso8601Week(checkDate)}else{if(checkDate>new Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.getFullYear()+1,1-1,4).getDay()||7;if(firstDay>4&&(checkDate.getDay()||7)<firstDay-3){return 1}}}return Math.floor(((checkDate-firstMon)/86400000)/7)+1},parseDate:function(format,value,settings){if(format==null||value==null){throw"Invalid arguments"}value=(typeof value=="object"?value.toString():value+"");if(value==""){return null}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var doy=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var getNumber=function(match){lookAhead(match);var origSize=(match=="@"?14:(match=="y"?4:(match=="o"?3:2)));var size=origSize;var num=0;while(size>0&&iValue<value.length&&value.charAt(iValue)>="0"&&value.charAt(iValue)<="9"){num=num*10+parseInt(value.charAt(iValue++),10);size--}if(size==origSize){throw"Missing number at position "+iValue}return num};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size=0;for(var j=0;j<names.length;j++){size=Math.max(size,names[j].length)}var name="";var iInit=iValue;while(size>0&&iValue<value.length){name+=value.charAt(iValue++);for(var i=0;i<names.length;i++){if(name==names[i]){return i+1}}size--}throw"Unknown name at position "+iInit};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw"Unexpected literal at position "+iValue}iValue++};var iValue=0;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{checkLiteral()}}else{switch(format.charAt(iFormat)){case"d":day=getNumber("d");break;case"D":getName("D",dayNamesShort,dayNames);break;case"o":doy=getNumber("o");break;case"m":month=getNumber("m");break;case"M":month=getName("M",monthNamesShort,monthNames);break;case"y":year=getNumber("y");break;case"@":var date=new Date(getNumber("@"));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"'":if(lookAhead("'")){checkLiteral()}else{literal=true}break;default:checkLiteral()}}}if(year==-1){year=new Date().getFullYear()}else{if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100)}}if(doy>-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day<=dim){break}month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"}return date},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TIMESTAMP:"@",W3C:"yy-mm-dd",formatDate:function(format,date,settings){if(!date){return""}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var formatNumber=function(match,value,len){var num=""+value;if(lookAhead(match)){while(num.length<len){num="0"+num}}return num};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])};var output="";var literal=false;if(date){for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{output+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":output+=formatNumber("d",date.getDate(),2);break;case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);break;case"o":var doy=date.getDate();for(var m=date.getMonth()-1;m>=0;m--){doy+=this._getDaysInMonth(date.getFullYear(),m)}output+=formatNumber("o",doy,3);break;case"m":output+=formatNumber("m",date.getMonth()+1,2);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"@":output+=date.getTime();break;case"'":if(lookAhead("'")){output+="'"}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars="";var literal=false;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{chars+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":case"m":case"y":case"@":chars+="0123456789";break;case"D":case"M":return null;case"'":if(lookAhead("'")){chars+="'"}else{literal=true}break;default:chars+=format.charAt(iFormat)}}}return chars},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name]},_setDateFromField:function(inst){var dateFormat=this._get(inst,"dateFormat");var dates=inst.input?inst.input.val():null;inst.endDay=inst.endMonth=inst.endYear=null;var date=defaultDate=this._getDefaultDate(inst);var settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate}catch(event){this.log(event);date=defaultDate}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaultDate:function(inst){var date=this._determineDate(this._get(inst,"defaultDate"),new Date());var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);return date},_determineDate:function(date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset,getDaysInMonth){var date=new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);break;case"w":case"W":day+=parseInt(matches[1],10)*7;break;case"m":case"M":month+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break;case"y":case"Y":year+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};date=(date==null?defaultDate:(typeof date=="string"?offsetString(date,this._getDaysInMonth):(typeof date=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):date)));date=(date&&date.toString()=="Invalid Date"?defaultDate:date);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0)}return this._daylightSavingAdjust(date)},_daylightSavingAdjust:function(date){if(!date){return null}date.setHours(date.getHours()>12?date.getHours()+2:0);return date},_setDate:function(inst,date,endDate){var clear=!(date);var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;date=this._determineDate(date,new Date());inst.selectedDay=inst.currentDay=date.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=date.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=date.getFullYear();if(origMonth!=inst.selectedMonth||origYear!=inst.selectedYear){this._notifyChange(inst)}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?"":this._formatDate(inst))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var isRTL=this._get(inst,"isRTL");var showButtonPanel=this._get(inst,"showButtonPanel");var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,"showCurrentAtPos");var stepMonths=this._get(inst,"stepMonths");var stepBigMonths=this._get(inst,"stepBigMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,maxDate.getDate()));maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}}inst.drawMonth=drawMonth;inst.drawYear=drawYear;var prevText=this._get(inst,"prevText");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+inst.id+"', -"+stepMonths+", 'M');\" title=\""+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>"));var nextText=this._get(inst,"nextText");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#'+inst.id+"', +"+stepMonths+", 'M');\" title=\""+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>"));var currentText=this._get(inst,"currentText");var gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var controls=(!inst.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery.datepicker._hideDatepicker();">'+this._get(inst,"closeText")+"</button>":"");var buttonPanel=(showButtonPanel)?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(isRTL?controls:"")+(this._isInRange(inst,gotoDate)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery.datepicker._gotoToday(\'#'+inst.id+"');\">"+currentText+"</button>":"")+(isRTL?"":controls)+"</div>":"";var firstDay=parseInt(this._get(inst,"firstDay"),10);firstDay=(isNaN(firstDay)?0:firstDay);var dayNames=this._get(inst,"dayNames");var dayNamesShort=this._get(inst,"dayNamesShort");var dayNamesMin=this._get(inst,"dayNamesMin");var monthNames=this._get(inst,"monthNames");var monthNamesShort=this._get(inst,"monthNamesShort");var beforeShowDay=this._get(inst,"beforeShowDay");var showOtherMonths=this._get(inst,"showOtherMonths");var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;var endDate=inst.endDay?this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)):currentDate;var defaultDate=this._getDefaultDate(inst);var html="";for(var row=0;row<numMonths[0];row++){var group="";for(var col=0;col<numMonths[1];col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));var cornerClass=" ui-corner-all";var calender="";if(isMultiMonth){calender+='<div class="ui-datepicker-group ui-datepicker-group-';switch(col){case 0:calender+="first";cornerClass=" ui-corner-"+(isRTL?"right":"left");break;case numMonths[1]-1:calender+="last";cornerClass=" ui-corner-"+(isRTL?"left":"right");break;default:calender+="middle";cornerClass="";break}calender+='">'}calender+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+cornerClass+'">'+(/all|left/.test(cornerClass)&&row==0?(isRTL?next:prev):"")+(/all|right/.test(cornerClass)&&row==0?(isRTL?prev:next):"")+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,row>0||col>0,monthNames,monthNamesShort)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var thead="";for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;thead+="<th"+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+dayNames[day]+'">'+dayNamesMin[day]+"</span></th>"}calender+=thead+"</tr></thead><tbody>";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow<numRows;dRow++){calender+="<tr>";var tbody="";for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);tbody+='<td class="'+((dow+firstDay+6)%7>=5?" ui-datepicker-week-end":"")+(otherMonth?" ui-datepicker-other-month":"")+((printDate.getTime()==selectedDate.getTime()&&drawMonth==inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()==printDate.getTime()&&defaultDate.getTime()==selectedDate.getTime())?" "+this._dayOverClass:"")+(unselectable?" "+this._unselectableClass+" ui-state-disabled":"")+(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?"":" onclick=\"DP_jQuery.datepicker._selectDay('#"+inst.id+"',"+drawMonth+","+drawYear+', this);return false;"')+">"+(otherMonth?(showOtherMonths?printDate.getDate():"&#xa0;"):(unselectable?'<span class="ui-state-default">'+printDate.getDate()+"</span>":'<a class="ui-state-default'+(printDate.getTime()==today.getTime()?" ui-state-highlight":"")+(printDate.getTime()>=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" ui-state-active":"")+'" href="#">'+printDate.getDate()+"</a>"))+"</td>";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}calender+=tbody+"</tr>"}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}calender+="</tbody></table>"+(isMultiMonth?"</div>"+((numMonths[0]>0&&col==numMonths[1]-1)?'<div class="ui-datepicker-row-break"></div>':""):"");group+=calender}html+=group}html+=buttonPanel+($.browser.msie&&parseInt($.browser.version,10)<7&&!inst.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,secondary,monthNames,monthNamesShort){minDate=(inst.rangeStart&&minDate&&selectedDate<minDate?selectedDate:minDate);var changeMonth=this._get(inst,"changeMonth");var changeYear=this._get(inst,"changeYear");var showMonthAfterYear=this._get(inst,"showMonthAfterYear");var html='<div class="ui-datepicker-title">';var monthHtml="";if(secondary||!changeMonth){monthHtml+='<span class="ui-datepicker-month">'+monthNames[drawMonth]+"</span> "}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);monthHtml+='<select class="ui-datepicker-month" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+"', this, 'M');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+inst.id+"');\">";for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':"")+">"+monthNamesShort[month]+"</option>"}}monthHtml+="</select>"}if(!showMonthAfterYear){html+=monthHtml+((secondary||changeMonth||changeYear)&&(!(changeMonth&&changeYear))?"&#xa0;":"")}if(secondary||!changeYear){html+='<span class="ui-datepicker-year">'+drawYear+"</span>"}else{var years=this._get(inst,"yearRange").split(":");var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear=drawYear+10}else{if(years[0].charAt(0)=="+"||years[0].charAt(0)=="-"){year=drawYear+parseInt(years[0],10);endYear=drawYear+parseInt(years[1],10)}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10)}}year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='<select class="ui-datepicker-year" onchange="DP_jQuery.datepicker._selectMonthYear(\'#'+inst.id+"', this, 'Y');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#"+inst.id+"');\">";for(;year<=endYear;year++){html+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>"}html+="</select>"}if(showMonthAfterYear){html+=(secondary||changeMonth||changeYear?"&#xa0;":"")+monthHtml}html+="</div>";return html},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=="Y"?offset:0);var month=inst.drawMonth+(period=="M"?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=this._daylightSavingAdjust(new Date(year,month,day));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&date<minDate?minDate:date);date=(maxDate&&date>maxDate?maxDate:date);inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=="M"||period=="Y"){this._notifyChange(inst)}},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax,checkRange){var date=this._determineDate(this._get(inst,minMax+"Date"),null);return(!checkRange||!inst.rangeStart?date:(!date||inst.rangeStart>date?inst.rangeStart:date))},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var newMinDate=(!inst.rangeStart?null:this._daylightSavingAdjust(new Date(inst.selectedYear,inst.selectedMonth,inst.selectedDay)));newMinDate=(newMinDate&&inst.rangeStart<newMinDate?inst.rangeStart:newMinDate);var minDate=newMinDate||this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");return((!minDate||date>=minDate)&&(!maxDate||date<=maxDate))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}function isArray(a){return(a&&(($.browser.safari&&typeof a=="object"&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))))}$.fn.datepicker=function(options){if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"||options=="getDate")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}if(options=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.7.2";window.DP_jQuery=$})(jQuery);(function(){function aa(a){throw a}var b=true,c=null,g=false,ba=encodeURIComponent,ca=parseInt,i=String,da=window,k=Number,ea=Function,m=Object,fa=document,ha=decodeURIComponent,ia=Math;function ja(a,d){return a.statusText=d}function ka(a,d){return a.toString=d}function la(a,d){return a.length=d}function ma(a,d){return a.width=d}function na(a,d){return a.content=d}function oa(a,d){return a.responseText=d}function pa(a,d){return a.scheme=d}function n(a,d){return a.value=d}function qa(a,d){return a.currentTarget=d}function ra(a,d){return a.target=d}function sa(a,d){return a.status=d}function ta(a,d){return a.remove=d}function ua(a,d){return a.keyCode=d}function va(a,d){return a.href=d}function o(a,d){return a.type=d}function wa(a,d){return a.name=d}function xa(a,d){return a.label=d}function ya(a,d){return a.height=d}var za="appendChild",q="push",Aa="toString",Ba="hash",r="length",Ca="propertyIsEnumerable",Da="title",Ea="version",t="prototype",Fa="test",Ga="lang",Ha="exec",Ia="width",Ja="replace",Ka="document",La="load",Ma="split",Na="floor",Oa="content",Pa="responseText",Qa="scheme",u="constructor",w="value",Ra="location",y="indexOf",Sa="hasOwnProperty",Ta="dispatchEvent",Ua="style",Va="nodeName",Xa="body",Ya="write",Za="target",z="call",$a="status",ab="remove",bb="port",cb="createElement",db="protocol",eb="keyCode",fb="forEach",gb="setAttribute",A="href",hb="substring",ib="handleEvent",jb="every",B="type",kb="contains",lb="apply",mb="headers",nb="childNodes",ob="bind",pb="attributes",qb="name",rb="parentNode",sb="fileName",tb="label",ub="height",vb="splice",wb="getTime",xb="join",yb="toLowerCase",zb=zb||{},Ab=this,Bb=function(a,d,e){var h=a[Ma]("."),j=e||Ab;!(h[0] in j)&&j.execScript&&j.execScript("var "+h[0]);for(var l;h[r]&&(l=h.shift());){if(!h[r]&&C(d)){j[l]=d}else{j=j[l]?j[l]:(j[l]={})}}},Cb=function(a,d){for(var e=a[Ma]("."),h=d||Ab,j;j=e.shift();){if(h[j]){h=h[j]}else{return c}}return h},Db=function(a){var d=typeof a;if(d=="object"){if(a){if(a instanceof Array||!(a instanceof m)&&m[t][Aa][z](a)=="[object Array]"||typeof a[r]=="number"&&typeof a[vb]!="undefined"&&typeof a[Ca]!="undefined"&&!a[Ca]("splice")){return"array"}if(!(a instanceof m)&&(m[t][Aa][z](a)=="[object Function]"||typeof a[z]!="undefined"&&typeof a[Ca]!="undefined"&&!a[Ca]("call"))){return"function"}}else{return"null"}}else{if(d=="function"&&typeof a[z]=="undefined"){return"object"}}return d},C=function(a){return a!==undefined},Eb=function(a){return Db(a)=="array"},Fb=function(a){var d=Db(a);return d=="array"||d=="object"&&typeof a[r]=="number"},Gb=function(a){return typeof a=="string"},Hb=function(a){return Db(a)=="function"},Ib=function(a){var d=Db(a);return d=="object"||d=="array"||d=="function"},Lb=function(a){if(a[Sa]&&a[Sa](Jb)){return a[Jb]}a[Jb]||(a[Jb]=++Kb);return a[Jb]},Jb="closure_hashCode_"+ia[Na](ia.random()*2147483648)[Aa](36),Kb=0,Mb=function(a,d){var e=a.Kt;if(arguments[r]>2){var h=Array[t].slice[z](arguments,2);e&&h.unshift[lb](h,e);e=h}d=a.Mt||d;a=a.Lt||a;var j,l=d||Ab;j=e?function(){var p=Array[t].slice[z](arguments);p.unshift[lb](p,e);return a[lb](l,p)}:function(){return a[lb](l,arguments)};j.Kt=e;j.Mt=d;j.Lt=a;return j},Nb=Date.now||function(){return(new Date)[wb]()},D=function(a,d,e){Bb(a,d,e)},Ob=function(a,d){function e(){}e.prototype=d[t];a.js=d[t];a.prototype=new e;a[t].constructor=a};ea[t].bind=function(a){if(arguments[r]>1){var d=Array[t].slice[z](arguments,1);d.unshift(this,a);return Mb[lb](c,d)}else{return Mb(this,a)}};ea[t].e=function(a){Ob(this,a)};var Pb=function(a,d){var e=a[r]-d[r];return e>=0&&a.lastIndexOf(d,e)==e},Qb=function(a){return/^[\s\xa0]*$/[Fa](a)},Rb=function(a){return a[Ja](/^[\s\xa0]+|[\s\xa0]+$/g,"")},Sb=/^[a-zA-Z0-9\-_.!~*'()]*$/,Tb=function(a){a=i(a);if(!Sb[Fa](a)){return ba(a)}return a},Ub=function(a){return ha(a[Ja](/\+/g," "))},$b=function(a,d){if(d){return a[Ja](Vb,"&amp;")[Ja](Wb,"&lt;")[Ja](Xb,"&gt;")[Ja](Yb,"&quot;")}else{if(!Zb[Fa](a)){return a}if(a[y]("&")!=-1){a=a[Ja](Vb,"&amp;")}if(a[y]("<")!=-1){a=a[Ja](Wb,"&lt;")}if(a[y](">")!=-1){a=a[Ja](Xb,"&gt;")}if(a[y]('"')!=-1){a=a[Ja](Yb,"&quot;")}return a}},Vb=/&/g,Wb=/</g,Xb=/>/g,Yb=/\"/g,Zb=/[&<>\"]/,ac=function(a,d){return a[y](d)!=-1},bc=function(a,d){return(new Array(d+1))[xb](a)},cc=function(a,d,e){var h=C(e)?a.toFixed(e):i(a),j=h[y](".");if(j==-1){j=h[r]}return bc("0",ia.max(0,d-j))+h},ec=function(a,d){for(var e=0,h=Rb(i(a))[Ma]("."),j=Rb(i(d))[Ma]("."),l=ia.max(h[r],j[r]),p=0;e==0&&p<l;p++){var s=h[p]||"",v=j[p]||"",F=new RegExp("(\\d*)(\\D*)","g"),x=new RegExp("(\\d*)(\\D*)","g");do{var S=F[Ha](s)||["","",""],M=x[Ha](v)||["","",""];if(S[0][r]==0&&M[0][r]==0){break}var N=S[1][r]==0?0:ca(S[1],10),ga=M[1][r]==0?0:ca(M[1],10);e=dc(N,ga)||dc(S[2][r]==0,M[2][r]==0)||dc(S[2],M[2])}while(e==0)}return e},dc=function(a,d){if(a<d){return -1}else{if(a>d){return 1}}return 0};Nb();var fc=function(a,d,e){if(a[y]){return a[y](d,e)}if(Array[y]){return Array[y](a,d,e)}for(var h=e==c?0:e<0?ia.max(0,a[r]+e):e,j=h;j<a[r];j++){if(j in a&&a[j]===d){return j}}return -1},gc=function(a,d,e){if(a[fb]){a[fb](d,e)}else{if(Array[fb]){Array[fb](a,d,e)}else{for(var h=a[r],j=Gb(a)?a[Ma](""):a,l=0;l<h;l++){l in j&&d[z](e,j[l],l,a)}}}},hc=function(a,d,e){if(a[jb]){return a[jb](d,e)}if(Array[jb]){return Array[jb](a,d,e)}for(var h=a[r],j=Gb(a)?a[Ma](""):a,l=0;l<h;l++){if(l in j&&!d[z](e,j[l],l,a)){return g}}return b},ic=function(a,d,e){for(var h=a[r],j=Gb(a)?a[Ma](""):a,l=0;l<h;l++){if(l in j&&d[z](e,j[l],l,a)){return l}}return -1},jc=function(a,d){if(a[kb]){return a[kb](d)}return fc(a,d)>-1},kc=function(a){if(!Eb(a)){for(var d=a[r]-1;d>=0;d--){delete a[d]}}la(a,0)},lc=function(a,d){var e=fc(a,d),h;if(h=e!=-1){Array[t][vb][z](a,e,1)[r]==1}return h},mc=function(a,d,e){var h=ic(a,d,e);if(h>=0){Array[t][vb][z](a,h,1)[r]==1;return b}return g},nc=function(a){if(Eb(a)){return a.concat()}else{for(var d=[],e=0,h=a[r];e<h;e++){d[e]=a[e]}return d}},oc=function(a){if(Eb(a)){return a.concat()}return nc(a)},pc=function(a){for(var d=1;d<arguments[r];d++){var e=arguments[d];if(Fb(e)){e=oc(e);a[q][lb](a,e)}else{a[q](e)}}};if("StopIteration" in Ab){var qc=Ab.StopIteration}else{qc=Error("StopIteration")}var rc=function(){};rc[t].qd=function(){aa(qc)};rc[t].__iterator__=function(){return this};var sc=function(a,d,e){for(var h in a){d[z](e,a[h],h,a)}},tc=function(a){var d=0;for(var e in a){d++}return d},uc=function(a){var d=[],e=0;for(var h in a){d[e++]=a[h]}return d},vc=function(a){var d=[],e=0;for(var h in a){d[e++]=h}return d},wc=function(a,d){for(var e in a){if(a[e]==d){return b}}return g},xc=function(a){var d={};for(var e in a){d[e]=a[e]}return d},yc=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],zc=function(a){for(var d,e,h=1;h<arguments[r];h++){e=arguments[h];for(d in e){a[d]=e[d]}for(var j=0;j<yc[r];j++){d=yc[j];if(m[t][Sa][z](e,d)){a[d]=e[d]}}}};var Ac=function(a){if(typeof a.ta=="function"){return a.ta()}if(Fb(a)||Gb(a)){return a[r]}return tc(a)},Bc=function(a){if(typeof a.Ca=="function"){return a.Ca()}if(Gb(a)){return a[Ma]("")}if(Fb(a)){for(var d=[],e=a[r],h=0;h<e;h++){d[q](a[h])}return d}return uc(a)},Cc=function(a){if(typeof a.hb=="function"){return a.hb()}if(typeof a.Ca=="function"){return undefined}if(Fb(a)||Gb(a)){for(var d=[],e=a[r],h=0;h<e;h++){d[q](h)}return d}return vc(a)},Dc=function(a,d){if(typeof a[kb]=="function"){return a[kb](d)}if(typeof a.pg=="function"){return a.pg(d)}if(Fb(a)||Gb(a)){return jc(a,d)}return wc(a,d)},Ec=function(a,d,e){if(typeof a[fb]=="function"){a[fb](d,e)}else{if(Fb(a)||Gb(a)){gc(a,d,e)}else{for(var h=Cc(a),j=Bc(a),l=j[r],p=0;p<l;p++){d[z](e,j[p],h&&h[p],a)}}}},Fc=function(a,d,e){if(typeof a[jb]=="function"){return a[jb](d,e)}if(Fb(a)||Gb(a)){return hc(a,d,e)}for(var h=Cc(a),j=Bc(a),l=j[r],p=0;p<l;p++){if(!d[z](e,j[p],h&&h[p],a)){return g}}return b};var Gc=function(a){this.Aa={};this.Da=[];var d=arguments[r];if(d>1){if(d%2){aa(Error("Uneven number of arguments"))}for(var e=0;e<d;e+=2){this.Va(arguments[e],arguments[e+1])}}else{a&&this.og(a)}};Gc[t].L=0;Gc[t].hg=0;Gc[t].ta=function(){return this.L};Gc[t].Ca=function(){this.Tf();for(var a=[],d=0;d<this.Da[r];d++){var e=this.Da[d];a[q](this.Aa[e])}return a};Gc[t].hb=function(){this.Tf();return this.Da.concat()};Gc[t].xb=function(a){return Hc(this.Aa,a)};Gc[t].pg=function(a){for(var d=0;d<this.Da[r];d++){var e=this.Da[d];if(Hc(this.Aa,e)&&this.Aa[e]==a){return b}}return g};Gc[t].ie=function(a,d){if(this===a){return b}if(this.L!=a.ta()){return g}var e=d||Ic;this.Tf();for(var h,j=0;h=this.Da[j];j++){if(!e(this.ra(h),a.ra(h))){return g}}return b};var Ic=function(a,d){return a===d};Gc[t].clear=function(){this.Aa={};la(this.Da,0);this.hg=this.L=0};ta(Gc[t],function(a){if(Hc(this.Aa,a)){delete this.Aa[a];this.L--;this.hg++;this.Da[r]>2*this.L&&this.Tf();return b}return g});Gc[t].Tf=function(){if(this.L!=this.Da[r]){for(var a=0,d=0;a<this.Da[r];){var e=this.Da[a];if(Hc(this.Aa,e)){this.Da[d++]=e}a++}la(this.Da,d)}if(this.L!=this.Da[r]){var h={};for(d=a=0;a<this.Da[r];){e=this.Da[a];if(!Hc(h,e)){this.Da[d++]=e;h[e]=1}a++}la(this.Da,d)}};Gc[t].ra=function(a,d){if(Hc(this.Aa,a)){return this.Aa[a]}return d};Gc[t].Va=function(a,d){if(!Hc(this.Aa,a)){this.L++;this.Da[q](a);this.hg++}this.Aa[a]=d};Gc[t].og=function(a){var d,e;if(a instanceof Gc){d=a.hb();e=a.Ca()}else{d=vc(a);e=uc(a)}for(var h=0;h<d[r];h++){this.Va(d[h],e[h])}};Gc[t].Sa=function(){return new Gc(this)};Gc[t].__iterator__=function(a){this.Tf();var d=0,e=this.Da,h=this.Aa,j=this.hg,l=this,p=new rc;p.qd=function(){for(;1;){if(j!=l.hg){aa(Error("The map has changed since the iterator was created"))}if(d>=e[r]){aa(qc)}var s=e[d++];return a?s:h[s]}};return p};var Hc=function(a,d){return m[t][Sa][z](a,d)};var Jc=function(a){this.Aa=new Gc;a&&this.og(a)},Kc=function(a){var d=typeof a;return d=="object"&&a?"o"+Lb(a):d.substr(0,1)+a};Jc[t].ta=function(){return this.Aa.ta()};Jc[t].add=function(a){this.Aa.Va(Kc(a),a)};Jc[t].og=function(a){for(var d=Bc(a),e=d[r],h=0;h<e;h++){this.add(d[h])}};Jc[t].yf=function(a){for(var d=Bc(a),e=d[r],h=0;h<e;h++){this[ab](d[h])}};ta(Jc[t],function(a){return this.Aa[ab](Kc(a))});Jc[t].clear=function(){this.Aa.clear()};Jc[t].contains=function(a){return this.Aa.xb(Kc(a))};Jc[t].Ca=function(){return this.Aa.Ca()};Jc[t].Sa=function(){return new Jc(this)};Jc[t].ie=function(a){return this.ta()==Ac(a)&&this.jt(a)};Jc[t].jt=function(a){var d=Ac(a);if(this.ta()>d){return g}if(!(a instanceof Jc)&&d>5){a=new Jc(a)}return Fc(this,function(e){return Dc(a,e)})};Jc[t].__iterator__=function(){return this.Aa.__iterator__(g)};var Nc=function(a,d){try{var e=Lc(a),h="Message: "+$b(e.message)+'\nUrl: <a href="view-source:'+e[sb]+'" target="_new">'+e[sb]+"</a>\nLine: "+e.lineNumber+"\n\nBrowser stack:\n"+$b(e.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+$b(Mc(d)+"-> ");return h}catch(j){return"Exception trying to expose exception! You win, we lose. "+j}},Lc=function(a){var d=Cb("window.location.href");return typeof a=="string"?{message:a,name:"Unknown error",lineNumber:"Not available",fileName:d,stack:"Not available"}:!a.lineNumber||!a[sb]||!a.stack?{message:a.message,name:a[qb],lineNumber:a.lineNumber||a.line||"Not available",fileName:a[sb]||a.filename||a.sourceURL||d,stack:a.stack||"Not available"}:a},Mc=function(a){return Oc(a||arguments.callee.caller,[])},Oc=function(a,d){var e=[];if(jc(d,a)){e[q]("[...circular reference...]")}else{if(a&&d[r]<50){e[q](Pc(a)+"(");for(var h=a.arguments,j=0;j<h[r];j++){j>0&&e[q](", ");var l,p=h[j];switch(typeof p){case"object":l=p?"object":"null";break;case"string":l=p;break;case"number":l=i(p);break;case"boolean":l=p?"true":"false";break;case"function":l=(l=Pc(p))?l:"[fn]";break;case"undefined":default:l=typeof p;break}if(l[r]>40){l=l.substr(0,40)+"..."}e[q](l)}d[q](a);e[q](")\n");try{e[q](Oc(a.caller,d))}catch(s){e[q]("[exception trying to get caller]\n")}}else{a?e[q]("[...long stack...]"):e[q]("[end]")}}return e[xb]("")},Pc=function(a){var d=i(a);if(!Qc[d]){var e=/function ([^\(]+)/[Ha](d);if(e){var h=e[1];Qc[d]=h}else{Qc[d]="[Anonymous]"}}return Qc[d]},Qc={};var Sc=function(a,d,e,h,j){this.bu=typeof j=="number"?j:Rc++;this.cu=h||Nb();this.pd=a;this.au=d;this.Zt=e};Sc[t].Ns=c;Sc[t].Ms=c;var Rc=0;Sc[t].Ct=function(a){this.Ns=a};Sc[t].Dt=function(a){this.Ms=a};Sc[t].uh=function(){return this.pd};Sc[t].Si=function(a){this.pd=a};var Tc=function(a){this.qt=a;this.Fh=c;this.Pt={};this.ct=[]};Tc[t].pd=c;var Uc=function(a,d){wa(this,a);n(this,d)};ka(Uc[t],function(){return this[qb]});new Uc("OFF",Infinity);new Uc("SHOUT",1200);new Uc("SEVERE",1000);new Uc("WARNING",900);new Uc("INFO",800);var Vc=new Uc("CONFIG",700),Wc=new Uc("FINE",500);new Uc("FINER",400);new Uc("FINEST",300);new Uc("ALL",0);Tc[t].u=function(){return this.qt};Tc[t].Zs=function(){return this.Fh};Tc[t].Si=function(a){this.pd=a};Tc[t].uh=function(){return this.pd};Tc[t].Dh=function(a){if(this.pd){return a[w]>=this.pd[w]}if(this.Fh){return this.Fh.Dh(a)}return g};Tc[t].log=function(a,d,e){this.Dh(a)&&this.kt(this.Ws(a,d,e))};Tc[t].Ws=function(a,d,e){var h=new Sc(a,i(d),this.qt);if(e){h.Ct(e);h.Dt(Nc(e,arguments.callee.caller))}return h};Tc[t].kt=function(a){if(this.Dh(a.uh())){for(var d=this;d;){d.Bs(a);d=d.Zs()}}};Tc[t].Bs=function(a){for(var d=0;d<this.ct[r];d++){this.ct[d](a)}};Tc[t].Et=function(a){this.Fh=a};Tc[t].zs=function(a,d){this.Pt[a]=d};var Xc={},Yc=c,Zc=function(){if(!Yc){Yc=new Tc("");Xc[""]=Yc;Yc.Si(Vc)}},ad=function(a){Zc();return a in Xc?Xc[a]:$c(a)},$c=function(a){var d=new Tc(a),e=a[Ma]("."),h=e[e[r]-1];la(e,e[r]-1);var j=e[xb]("."),l=ad(j);l.zs(h,d);d.Et(l);return Xc[a]=d};var bd=function(a,d){this.x=C(a)?a:0;this.y=C(d)?d:0};bd[t].Sa=function(){return new bd(this.x,this.y)};ka(bd[t],function(){return"("+this.x+", "+this.y+")"});var cd=function(a,d){ma(this,a);ya(this,d)};cd[t].Sa=function(){return new cd(this[Ia],this[ub])};ka(cd[t],function(){return"("+this[Ia]+" x "+this[ub]+")"});cd[t].ceil=function(){ma(this,ia.ceil(this[Ia]));ya(this,ia.ceil(this[ub]));return this};cd[t].floor=function(){ma(this,ia[Na](this[Ia]));ya(this,ia[Na](this[ub]));return this};cd[t].round=function(){ma(this,ia.round(this[Ia]));ya(this,ia.round(this[ub]));return this};cd[t].scale=function(a){this.width*=a;this.height*=a;return this};var dd,ed,fd,gd,hd,id,jd,kd,ld,md,nd=function(){return Ab.navigator?Ab.navigator.userAgent:c},od=function(){return Ab.navigator},pd=function(){id=hd=gd=fd=ed=dd=g;var a;if(a=nd()){var d=od();dd=a[y]("Opera")==0;ed=!dd&&a[y]("MSIE")!=-1;gd=(fd=!dd&&a[y]("WebKit")!=-1)&&a[y]("Mobile")!=-1;id=(hd=!dd&&!fd&&d.product=="Gecko")&&d.vendor=="Camino"}};pd();var qd=dd,rd=ed,sd=hd,td=fd,ud=function(){var a=od();return a&&a.platform||""},vd=ud(),wd=function(){jd=ac(vd,"Mac");kd=ac(vd,"Win");ld=ac(vd,"Linux");md=!!od()&&ac(od().appVersion||"","X11")};wd();var xd=function(){var a="",d;if(qd&&Ab.opera){var e=Ab.opera[Ea];a=typeof e=="function"?e():e}else{if(sd){d=/rv\:([^\);]+)(\)|;)/}else{if(rd){d=/MSIE\s+([^\);]+)(\)|;)/}else{if(td){d=/WebKit\/(\S+)/}}}if(d){var h=d[Ha](nd());a=h?h[1]:""}}return a},yd=xd();var Ad=function(a,d){sc(d,function(e,h){if(h=="style"){a[Ua].cssText=e}else{if(h=="class"){a.className=e}else{if(h=="for"){a.htmlFor=e}else{if(h in zd){a[gb](zd[h],e)}else{a[h]=e}}}}})},zd={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"},Bd=function(a,d){a[za](d)},Cd=function(a){return a&&a[rb]?a[rb].removeChild(a):c},Dd=function(a,d){var e=d[rb];e&&e.replaceChild(a,d)},Ed=td&&ec(yd,"521")<=0,Fd=function(a,d){if(typeof a[kb]!="undefined"&&!Ed&&d.nodeType==1){return a==d||a[kb](d)}if(typeof a.compareDocumentPosition!="undefined"){return a==d||Boolean(a.compareDocumentPosition(d)&16)}for(;d&&a!=d;){d=d[rb]}return d==a},Gd=function(a){var d;return d=td?a[Ka]||a.contentWindow[Ka]:a.contentDocument||a.contentWindow[Ka]},Hd=function(a){this.Ls=a||Ab[Ka]||fa};Hd[t].Mb=Ad;Hd[t].createElement=function(a){return this.Ls[cb](a)};Hd[t].createTextNode=function(a){return this.Ls.createTextNode(a)};Hd[t].appendChild=Bd;Hd[t].removeNode=Cd;Hd[t].replaceNode=Dd;Hd[t].contains=Fd;var Id=function(){};Id[t].um=g;Id[t].rg=function(){if(!this.um){this.um=b;this.gb()}};Id[t].gb=function(){};var Jd=function(a,d){Id[z](this);this.pt=d;this.je=[];this.Is(a)};Ob(Jd,Id);Jd[t].qh=c;Jd[t].sh=c;Jd[t].eg=function(a){this.qh=a};Jd[t].mr=function(a){this.sh=a};Jd[t].mc=function(){if(this.je[r]){return this.je.pop()}return this.pm()};Jd[t].xf=function(a){this.je[r]<this.pt?this.je[q](a):this.tm(a)};Jd[t].Is=function(a){if(a>this.pt){aa(Error("[goog.structs.SimplePool] Initial cannot be greater than max"))}for(var d=0;d<a;d++){this.je[q](this.pm())}};Jd[t].pm=function(){return this.qh?this.qh():{}};Jd[t].tm=function(a){if(this.sh){this.sh(a)}else{if(Hb(a.rg)){a.rg()}else{for(var d in a){delete a[d]}}}};Jd[t].gb=function(){Jd.js.gb[z](this);for(var a=this.je;a[r];){this.tm(a.pop())}delete this.je};var Kd=function(a,d){o(this,a);ra(this,d);qa(this,this[Za])};Ob(Kd,Id);Kd[t].gb=function(){delete this[B];delete this[Za];delete this.currentTarget};Kd[t].tc=g;Kd[t].Af=b;Kd[t].stopPropagation=function(){this.tc=b};Kd[t].preventDefault=function(){this.Af=g};var Ld=function(a,d){a&&this.qc(a,d)};Ob(Ld,Kd);o(Ld[t],c);ra(Ld[t],c);Ld[t].relatedTarget=c;Ld[t].offsetX=0;Ld[t].offsetY=0;Ld[t].clientX=0;Ld[t].clientY=0;Ld[t].screenX=0;Ld[t].screenY=0;Ld[t].button=0;ua(Ld[t],0);Ld[t].charCode=0;Ld[t].ctrlKey=g;Ld[t].altKey=g;Ld[t].shiftKey=g;Ld[t].metaKey=g;Ld[t].Sb=c;Ld[t].qc=function(a,d){o(this,a[B]);ra(this,a[Za]||a.srcElement);qa(this,d);this.relatedTarget=a.relatedTarget?a.relatedTarget:this[B]=="mouseover"?a.fromElement:this[B]=="mouseout"?a.toElement:c;this.offsetX=typeof a.layerX=="number"?a.layerX:a.offsetX;this.offsetY=typeof a.layerY=="number"?a.layerY:a.offsetY;this.clientX=typeof a.clientX=="number"?a.clientX:a.pageX;this.clientY=typeof a.clientY=="number"?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;ua(this,a[eb]||0);this.charCode=a.charCode||(this[B]=="keypress"?a[eb]:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.Sb=a;delete this.Af;delete this.tc};Ld[t].stopPropagation=function(){this.tc=b;if(this.Sb.stopPropagation){this.Sb.stopPropagation()}else{this.Sb.cancelBubble=b}};Ld[t].preventDefault=function(){this.Af=g;if(this.Sb.preventDefault){this.Sb.preventDefault()}else{this.Sb.returnValue=g;try{ua(this.Sb,-1)}catch(a){}}};Ld[t].gb=function(){Ld.js.gb[z](this);this.Sb=c};var Md=function(){},Nd=0;Md[t].Ch=c;Md[t].wf=c;Md[t].ar=c;Md[t].src=c;o(Md[t],c);Md[t].Sf=c;Md[t].Bg=c;Md[t].Tb=0;Md[t].zf=g;Md[t].jm=g;Md[t].qc=function(a,d,e,h,j,l){if(Hb(a)){this.Ch=b}else{if(a&&a[ib]&&Hb(a[ib])){this.Ch=g}else{aa(Error("Invalid listener argument"))}}this.wf=a;this.ar=d;this.src=e;o(this,h);this.Sf=!!j;this.Bg=l;this.jm=g;this.Tb=++Nd;this.zf=g};Md[t].handleEvent=function(a){if(this.Ch){return this.wf[z](this.Bg||this.src,a)}return this.wf[ib][z](this.wf,a)};var Od={},Pd={},Qd={},Rd=new Jd(0,600);Rd.eg(function(){return{L:0,Jb:0}});Rd.mr(function(a){a.L=0});var Sd=new Jd(0,600);Sd.eg(function(){return[]});Sd.mr(function(a){la(a,0);delete a.Cg;delete a.Xq});var Td=new Jd(0,600);Td.eg(function(){var a=function(d){return Ud[z](a.src,a.Tb,d)};return a});var Vd=function(){return new Md},Wd=new Jd(0,600);Wd.eg(Vd);var Xd=function(){return new Ld},Yd=function(){var a=c;if(rd){a=new Jd(0,600);a.eg(Xd)}return a},Zd=Yd(),$d="on",be={},ce=function(a,d,e,h,j){if(d){if(Eb(d)){for(var l=0;l<d[r];l++){ce(a,d[l],e,h,j)}return c}else{var p=!!h,s=Pd;d in s||(s[d]=Rd.mc());s=s[d];if(!(p in s)){s[p]=Rd.mc();s.L++}s=s[p];var v=Lb(a),F,x;s.Jb++;if(s[v]){F=s[v];for(l=0;l<F[r];l++){x=F[l];if(x.wf==e&&x.Bg==j){if(x.zf){break}return F[l].Tb}}}else{F=s[v]=Sd.mc();s.L++}var S=Td.mc();S.src=a;x=Wd.mc();x.qc(e,S,a,d,p,j);var M=x.Tb;S.Tb=M;F[q](x);Od[M]=x;Qd[v]||(Qd[v]=Sd.mc());Qd[v][q](x);if(a.addEventListener){if(a==Ab||!a.qm){a.addEventListener(d,S,p)}}else{a.attachEvent(de(d),S)}return M}}else{aa(Error("Invalid event type"))}},ee=function(a,d,e,h,j){if(Eb(d)){for(var l=0;l<d[r];l++){ee(a,d[l],e,h,j)}return c}var p=!!h,s=fe(a,d,p);if(!s){return g}for(l=0;l<s[r];l++){if(s[l].wf==e&&s[l].Sf==p&&s[l].Bg==j){return ge(s[l].Tb)}}return g},ge=function(a){if(!Od[a]){return g}var d=Od[a];if(d.zf){return g}var e=d.src,h=d[B],j=d.ar,l=d.Sf;if(e.removeEventListener){if(e==Ab||!e.qm){e.removeEventListener(h,j,l)}}else{e.detachEvent&&e.detachEvent(de(h),j)}var p=Lb(e),s=Pd[h][l][p];if(Qd[p]){var v=Qd[p];lc(v,d);v[r]==0&&delete Qd[p]}d.zf=b;s.Xq=b;he(h,l,p,s);delete Od[a];return b},he=function(a,d,e,h){if(!h.Cg){if(h.Xq){for(var j=0,l=0;j<h[r];j++){if(h[j].zf){Wd.xf(h[j])}else{if(j!=l){h[l]=h[j]}l++}}la(h,l);h.Xq=g;if(l==0){Sd.xf(h);delete Pd[a][d][e];Pd[a][d].L--;if(Pd[a][d].L==0){Rd.xf(Pd[a][d]);delete Pd[a][d];Pd[a].L--}if(Pd[a].L==0){Rd.xf(Pd[a]);delete Pd[a]}}}}},ie=function(a,d,e){var h=0,j=a==c,l=d==c,p=e==c;e=!!e;if(j){sc(Qd,function(S){for(var M=S[r]-1;M>=0;M--){var N=S[M];if((l||d==N[B])&&(p||e==N.Sf)){ge(N.Tb);h++}}})}else{var s=Lb(a);if(Qd[s]){for(var v=Qd[s],F=v[r]-1;F>=0;F--){var x=v[F];if((l||d==x[B])&&(p||e==x.Sf)){ge(x.Tb);h++}}}}return h},fe=function(a,d,e){var h=Pd;if(d in h){h=h[d];if(e in h){h=h[e];var j=Lb(a);if(h[j]){return h[j]}}}return c},de=function(a){if(a in be){return be[a]}return be[a]=$d+a},ke=function(a,d,e,h,j){var l=1,p=Lb(d);if(a[p]){a.Jb--;var s=a[p];if(s.Cg){s.Cg++}else{s.Cg=1}try{for(var v=s[r],F=0;F<v;F++){var x=s[F];if(x&&!x.zf){l&=je(x,j)!==g}}}finally{s.Cg--;he(e,h,p,s)}}return Boolean(l)},je=function(a,d){var e=a[ib](d);a.jm&&ge(a.Tb);return e},le=function(a,d){if(Gb(d)){d=new Kd(d,a)}else{if(d instanceof Kd){ra(d,d[Za]||a)}else{var e=d;d=new Kd(d[B],a);zc(d,e)}}var h=1,j,l=d[B],p=Pd;if(!(l in p)){return b}p=p[l];var s=b in p,v;if(s){j=[];for(var F=a;F;F=F.mp()){j[q](F)}v=p[b];v.Jb=v.L;for(var x=j[r]-1;!d.tc&&x>=0&&v.Jb;x--){qa(d,j[x]);h&=ke(v,j[x],d[B],b,d)&&d.Af!=g}}var S=g in p;if(S){v=p[g];v.Jb=v.L;if(s){for(x=0;!d.tc&&x<j[r]&&v.Jb;x++){qa(d,j[x]);h&=ke(v,j[x],d[B],g,d)&&d.Af!=g}}else{for(var M=a;!d.tc&&M&&v.Jb;M=M.mp()){qa(d,M);h&=ke(v,M,d[B],g,d)&&d.Af!=g}}}return Boolean(h)},Ud=function(a,d){if(!Od[a]){return b}var e=Od[a],h=e[B],j=Pd;if(!(h in j)){return b}j=j[h];var l,p;if(rd){var s=d||Cb("window.event"),v=b in j,F=g in j;if(v){if(s[eb]<0||s.returnValue!=undefined){return b}me(s)}var x=Zd.mc();x.qc(s,this);l=b;try{if(v){for(var S=Sd.mc(),M=x.currentTarget;M;M=M[rb]){S[q](M)}p=j[b];p.Jb=p.L;for(var N=S[r]-1;!x.tc&&N>=0&&p.Jb;N--){qa(x,S[N]);l&=ke(p,S[N],h,b,x)}if(F){p=j[g];p.Jb=p.L;for(N=0;!x.tc&&N<S[r]&&p.Jb;N++){qa(x,S[N]);l&=ke(p,S[N],h,g,x)}}}else{l=je(e,x)}}finally{if(S){la(S,0);Sd.xf(S)}x.rg();Zd.xf(x)}return l}var ga=new Ld(d,this);try{l=je(e,ga)}finally{ga.rg()}return l},me=function(a){var d=g;if(a[eb]==0){try{ua(a,-1);return}catch(e){d=b}}if(d||a.returnValue==undefined){a.returnValue=b}};var ne=function(){};Ob(ne,Id);ne[t].qm=b;ne[t].$q=c;ne[t].mp=function(){return this.$q};ne[t].addEventListener=function(a,d,e,h){ce(this,a,d,e,h)};ne[t].removeEventListener=function(a,d,e,h){ee(this,a,d,e,h)};ne[t].dispatchEvent=function(a){return le(this,a)};ne[t].gb=function(){ne.js.gb[z](this);ie(this);this.$q=c};var oe=function(a){if(/^\s*$/[Fa](a)){return g}var d=/\\["\\\/bfnrtu]/g,e=/"[^"\\\n\r\u2028\u2029\x00-\x1f\x80-\x9f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,h=/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,j=/^[\],:{}\s\u2028\u2029]*$/;return j[Fa](a[Ja](d,"@")[Ja](e,"]")[Ja](h,""))},pe=function(a){var d=i(a);if(oe(d)){try{return eval("("+d+")")}catch(e){}}aa(Error("Invalid JSON string: "+d))},qe=function(a){return eval("("+a+")")};/\uffff/[Fa]("\uffff");var re=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,se=function(a){return a.match(re)};var te=function(a,d){var e;if(a instanceof te){this.wd(d==c?a.Vs():d);this.na(a.ya());this.ak(a.bt());this.hi(a.Ts());this.kj(a.rp());this.gj(a.Me());this.vj(a.Kp().Sa());this.wi(a.Us())}else{if(a&&(e=se(i(a)))){this.wd(!!d);this.na(e[1]||"",b);this.ak(e[2]||"",b);this.hi(e[3]||"",b);this.kj(e[4]);this.gj(e[5]||"",b);this.Ft(e[6]||"",b);this.wi(e[7]||"",b)}else{this.wd(!!d);this.pb=new ue(c,this,this.Ib)}}};te[t].uc="";te[t].gg="";te[t].Vf="";te[t].dg=c;te[t].bg="";te[t].Wf="";te[t].Vq=g;te[t].Ib=g;ka(te[t],function(){if(this.wb){return this.wb}var a=[];this.uc&&a[q](ve(this.uc,we),":");if(this.Vf){a[q]("//");this.gg&&a[q](ve(this.gg,we),"@");a[q](xe(this.Vf));this.dg!=c&&a[q](":",i(this.rp()))}this.bg&&a[q](ve(this.bg,ye));var d=i(this.pb);d&&a[q]("?",d);this.Wf&&a[q]("#",ve(this.Wf,ze));return this.wb=a[xb]("")});te[t].Sa=function(){return Ae(this.uc,this.gg,this.Vf,this.dg,this.bg,this.pb.Sa(),this.Wf,this.Ib)};te[t].ya=function(){return this.uc};te[t].na=function(a,d){this.Rb();delete this.wb;if(this.uc=d?a?ha(a):"":a){this.uc=this.uc[Ja](/:$/,"")}return this};te[t].bt=function(){return this.gg};te[t].ak=function(a,d){this.Rb();delete this.wb;this.gg=d?a?ha(a):"":a;return this};te[t].Ts=function(){return this.Vf};te[t].hi=function(a,d){this.Rb();delete this.wb;this.Vf=d?a?ha(a):"":a;return this};te[t].rp=function(){return this.dg};te[t].kj=function(a){this.Rb();delete this.wb;if(a){a=k(a);if(isNaN(a)||a<0){aa(Error("Bad port number "+a))}this.dg=a}else{this.dg=c}return this};te[t].Me=function(){return this.bg};te[t].gj=function(a,d){this.Rb();delete this.wb;this.bg=d?a?ha(a):"":a;return this};te[t].vj=function(a,d){this.Rb();delete this.wb;if(a instanceof ue){this.pb=a;this.pb.ls=this;this.pb.wd(this.Ib)}else{d||(a=ve(a,Be));this.pb=new ue(a,this,this.Ib)}return this};te[t].Ft=function(a,d){return this.vj(a,d)};te[t].Kp=function(){return this.pb};te[t].rb=function(a,d){this.Rb();delete this.wb;this.pb.Va(a,d);return this};te[t].yh=function(a){return this.pb.ra(a)};te[t].Us=function(){return this.Wf};te[t].wi=function(a,d){this.Rb();delete this.wb;this.Wf=d?a?ha(a):"":a;return this};te[t].removeParameter=function(a){this.Rb();this.pb[ab](a);return this};te[t].Nb=function(a){this.Vq=a};te[t].Rb=function(){if(this.Vq){aa(Error("Tried to modify a read-only Uri"))}};te[t].wd=function(a){this.Ib=a;this.pb&&this.pb.wd(a)};te[t].Vs=function(){return this.Ib};var Ae=function(a,d,e,h,j,l,p,s){var v=new te(c,s);a&&v.na(a);d&&v.ak(d);e&&v.hi(e);h&&v.kj(h);j&&v.gj(j);l&&v.vj(l);p&&v.wi(p);return v},xe=function(a){if(Gb(a)){return ba(a)}return c},Ce=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/,ve=function(a,d){var e=c;if(Gb(a)){e=a;Ce[Fa](e)||(e=encodeURI(a));if(e.search(d)>=0){e=e[Ja](d,De)}}return e},De=function(a){var d=a.charCodeAt(0);return"%"+(d>>4&15)[Aa](16)+(d&15)[Aa](16)},we=/[#\/\?@]/g,ye=/[\#\?]/g,Be=/[\#\?@]/g,ze=/#/g,Ee=function(a,d){var e=se(a),h=se(d);return e[3]==h[3]&&e[4]==h[4]},ue=function(a,d,e){this.hc=a||c;this.ls=d||c;this.Ib=!!e};ue[t].yb=function(){if(!this.ba){this.ba=new Gc;if(this.hc){for(var a=this.hc[Ma]("&"),d=0;d<a[r];d++){var e=a[d][y]("="),h=c,j=c;if(e>=0){h=a[d][hb](0,e);j=a[d][hb](e+1)}else{h=a[d]}h=Ub(h);h=this.lc(h);this.add(h,j?Ub(j):"")}}}};ue[t].ba=c;ue[t].L=c;ue[t].ta=function(){this.yb();return this.L};ue[t].add=function(a,d){this.yb();this.vf();a=this.lc(a);if(this.xb(a)){var e=this.ba.ra(a);Eb(e)?e[q](d):this.ba.Va(a,[e,d])}else{this.ba.Va(a,d)}this.L++;return this};ta(ue[t],function(a){this.yb();a=this.lc(a);if(this.ba.xb(a)){this.vf();var d=this.ba.ra(a);if(Eb(d)){this.L-=d[r]}else{this.L--}return this.ba[ab](a)}return g});ue[t].clear=function(){this.vf();this.ba&&this.ba.clear();this.L=0};ue[t].xb=function(a){this.yb();a=this.lc(a);return this.ba.xb(a)};ue[t].pg=function(a){var d=this.Ca();return jc(d,a)};ue[t].hb=function(){this.yb();for(var a=this.ba.Ca(),d=this.ba.hb(),e=[],h=0;h<d[r];h++){var j=a[h];if(Eb(j)){for(var l=0;l<j[r];l++){e[q](d[h])}}else{e[q](d[h])}}return e};ue[t].Ca=function(a){this.yb();var d;if(a){var e=this.lc(a);if(this.xb(e)){var h=this.ba.ra(e);if(Eb(h)){return h}else{d=[];d[q](h)}}else{d=[]}}else{var j=this.ba.Ca();d=[];for(var l=0;l<j[r];l++){var p=j[l];Eb(p)?pc(d,p):d[q](p)}}return d};ue[t].Va=function(a,d){this.yb();this.vf();a=this.lc(a);if(this.xb(a)){var e=this.ba.ra(a);if(Eb(e)){this.L-=e[r]}else{this.L--}}this.ba.Va(a,d);this.L++;return this};ue[t].ra=function(a,d){this.yb();a=this.lc(a);if(this.xb(a)){var e=this.ba.ra(a);return Eb(e)?e[0]:e}else{return d}};ue[t].fg=function(a,d){this.yb();this.vf();a=this.lc(a);if(this.xb(a)){var e=this.ba.ra(a);if(Eb(e)){this.L-=e[r]}else{this.L--}}if(d[r]>0){this.ba.Va(a,d);this.L+=d[r]}};ka(ue[t],function(){if(this.hc){return this.hc}if(!this.ba){return""}for(var a=[],d=0,e=this.ba.hb(),h=0;h<e[r];h++){var j=e[h],l=Tb(j),p=this.ba.ra(j);if(Eb(p)){for(var s=0;s<p[r];s++){d>0&&a[q]("&");a[q](l,"=",Tb(p[s]));d++}}else{d>0&&a[q]("&");a[q](l,"=",Tb(p));d++}}return this.hc=a[xb]("")});ue[t].vf=function(){delete this.rm;delete this.hc;this.ls&&delete this.ls.wb};ue[t].Sa=function(){var a=new ue;if(this.rm){a.rm=this.rm}if(this.hc){a.hc=this.hc}if(this.ba){a.ba=this.ba.Sa()}return a};ue[t].lc=function(a){var d=i(a);if(this.Ib){d=d[yb]()}return d};ue[t].wd=function(a){var d=a&&!this.Ib;if(d){this.yb();this.vf();Ec(this.ba,function(e,h){var j=h[yb]();if(h!=j){this[ab](h);this.add(j,e)}},this)}this.Ib=a};ue[t].extend=function(){for(var a=0;a<arguments[r];a++){var d=arguments[a];Ec(d,function(e,h){this.add(h,e)},this)}};var Fe=function(){ne[z](this)},Ge,He;Ob(Fe,ne);var Ie=b;if(da[Ra]&&(da[Ra][Ba][y]("xdrp")==1||da[Ra].search[y]("xdrp")==1)){if(rd){fa.execCommand("Stop")}else{if(sd){da.stop()}else{aa(Error("stopped"))}}}var Je=function(a,d,e,h,j){var l=new Fe;d&&ce(l,"complete",d);ce(l,"ready",l.reset);l.ib(a,e,h,j)},Ke=function(a){He=a},Le=ad("goog.net.CrossDomainRpc"),Me=function(a,d){return'<textarea name="'+a+'">'+(d&&(Gb(d)||d[u]==i)?d[Ja](/&/g,"&amp;"):d)+"</textarea>"},Ne=function(){if(Ge){return Ge}if(sd){for(var a=fa.getElementsByTagName("link"),d=0;d<a[r];d++){var e=a[d];if(e.rel=="stylesheet"&&Ee(e[A],da[Ra][A])&&e[A][y]("?")<0){return e[A][Ma]("#")[0]}}}var h=fa.getElementsByTagName("img");for(d=0;d<h[r];d++){var j=h[d];if(Ee(j.src,da[Ra][A])&&j.src[y]("?")<0){return j.src[Ma]("#")[0]}}if(!Ie){aa(Error("No suitable dummy resource specified or detected for this page"))}if(rd){return da[Ra][A][Ma]("#")[0]}else{var l=da[Ra][A],p=l[y]("/",l[y]("//")+2),s=l[hb](0,p);return s+"/robots.txt"}},Oe=0;Fe[t].ib=function(a,d,e,h){var j=this.Dg=fa[cb]("iframe"),l=Oe++;j.id="xdrq-"+l;if(!He){j[Ua].position="absolute";j[Ua].top="-5000px";j[Ua].left="-5000px"}fa[Xa][za](j);var p=[];p[q](Me("xdpe:request-id",l));var s=Ne();Le.log(Wc,"dummyUri: "+s);p[q](Me("xdpe:dummy-uri",s));if(e){for(var v in e){var F=e[v];p[q](Me("xdp:"+v,F))}}if(h){for(v in h){F=h[v];p[q](Me("xdh:"+v,F))}}var x='<body><form method="'+(d=="GET"?"GET":"POST")+'" action="'+a+'">'+p[xb]("")+"</form></body>",S=Gd(j);S.open();S[Ya](x);S.close();S.forms[0].submit();S=c;this.St=ce(j,"load",function(){Le.log(Wc,"response ready");this.Wt=b},g,this);this.vt()};Fe[t].vt=function(){this.Gt=0;var a=da.setInterval(Mb(function(){this.Js(a)},this),50)};Fe[t].Js=function(a){var d=this.Dg.contentWindow,e=d.frames[r],h=c;if(e>0&&Pe(h=d.frames[e-1])){Le.log(Wc,"xd response ready");var j=Qe(h)[hb](1),l=new ue(j),p=[],s=k(l.ra("n"));Le.log(Wc,"xd response number of chunks: "+s);for(var v=0;v<s;v++){var F=d.frames[v];if(!F||!F[Ra]||!F[Ra][A]){Le.log(Wc,"xd response iframe not ready");return}var x=Qe(F),S=x[y]("chunk")+"chunk"[r]+1,M=x[hb](S);p[q](M)}da.clearInterval(a);var N=p[xb]("");rd||(N=ha(N));sa(this,k(l.ra("status")));oa(this,N);this.xt=l.ra("isDataJson")=="true";this.responseHeaders=qe(l.ra("headers"));this[Ta]("ready");this[Ta]("complete")}else{if(this.Wt){this.Gt+=50;if(this.Gt>500){Le.log(Wc,"xd response timed out");da.clearInterval(a);sa(this,500);oa(this,"response timed out");this[Ta]("ready");this[Ta]("error");this[Ta]("complete")}}}};var Pe=function(a){try{return Qe(a)[y]("xdrp-info")==1}catch(d){return g}},Qe=function(a){var d=a[Ra][A],e=d[y]("?"),h=d[y]("#"),j=e<0?h:h<0?e:ia.min(e,h);return d[hb](j)};Fe[t].getResponseJson=function(){return this.xt?qe(this[Pa]):undefined};Fe[t].reset=function(){if(!He){Le.log(Wc,"request frame removed: "+this.Dg.id);ge(this.St);this.Dg[rb].removeChild(this.Dg)}delete this.Dg};var Re=function(a){var d=a[y]("?");if(d>0){a=a[hb](0,d)}var e=a[y]("#");if(e>0){a=a[hb](0,e)}return a};Fe[t].getResponseHeader=function(a){return Ib(this.responseHeaders)?this.responseHeaders[a]:undefined};Re(fa.referrer);var Se=/\s*;\s*/,Te=function(a,d,e,h,j){if(/[;=]/[Fa](a)){aa(Error('Invalid cookie name "'+a+'"'))}if(/;/[Fa](d)){aa(Error('Invalid cookie value "'+d+'"'))}C(e)||(e=-1);var l=j?";domain="+j:"",p=h?";path="+h:"",s;if(e<0){s=""}else{if(e==0){var v=new Date(1970,1,1);s=";expires="+v.toUTCString()}else{var F=new Date((new Date)[wb]()+e*1000);s=";expires="+F.toUTCString()}}fa.cookie=a+"="+d+l+p+s},Ue=function(a,d){for(var e=a+"=",h=i(fa.cookie)[Ma](Se),j=0,l;l=h[j];j++){if(l[y](e)==0){return l.substr(e[r])}}return d},Ve=function(a,d,e){var h=C(Ue(a));Te(a,"",0,d,e);return h};var We=function(){this.os="g314-"};We[t].xh=function(a){return this.os+a};We[t].Va=function(a,d,e,h,j){Te(this.xh(a),d,e,h,j)};We[t].ra=function(a,d){return Ue(this.xh(a),d)};ta(We[t],function(a,d,e){return Ve(this.xh(a),d,e)});We[t].yf=function(){for(var a=this.hb(),d=a[r]-1;d>=0;d--){this[ab](a[d])}};We[t].Do=function(){for(var a=i(fa.cookie)[Ma](Se),d=[],e=[],h,j,l,p=0;l=a[p];p++){h=l[y](this.os);j=l[y]("=");if(h==0&&j>-1){d[q](l[hb](5,j));e[q](l[hb](j+1))}}return{keys:d,values:e}};We[t].hb=function(){return this.Do().keys};We[t].Ca=function(){return this.Do().values};var Xe=function(){this.TOKEN_DELIMITER="#2";this.URL_PREFIX="https://www.google.com/accounts/";this.AUTH_SUB_REQUEST_JS="AuthSubRequestJS";this.AUTH_SUB_SESSION_TOKEN_JS="AuthSubSessionTokenJS";this.AUTH_SUB_TOKEN_INFO_JS="AuthSubTokenInfoJS";this.AUTH_SUB_REVOKE_TOKEN_JS="AuthSubRevokeTokenJS"};var Ye=function(a){a||(a=new Xe);this.ob=a};Ye[t].Ys=function(a,d,e){var h=new te(this.ob.URL_PREFIX+this.ob.AUTH_SUB_REQUEST_JS);h.rb("session","1");h.rb("scope",a);h.rb("next",d);e&&h.rb("hd",e);return h[Aa]()};Ye[t].wt=function(a,d){if(Qb(a==c?"":i(a))){aa(Error("Invalid scope."))}var e=fa[Ra][A],h=e[y]("#");if(h>=0){e=e[hb](0,h)}va(top[Ra],this.Ys(a,e,d))};Ye[t].Os=function(a,d,e){Je(this.ob.URL_PREFIX+this.ob.AUTH_SUB_SESSION_TOKEN_JS,Mb(this.Ps,this,a,e),"POST",{auth:d})};Ye[t].Ps=function(a,d,e){if(!e||!e[Za]||!e[Za][Pa]||!e[Za].xt){aa(Error("Could not sign in, invalid response from server.  Please try again."))}var h=qe(e[Za][Pa]);if(!h.auth){aa(Error("Could not sign in, invalid response from server. Please try again."))}d(a,h.auth);var j=fa[Ra][A],l=j[y](this.ob.TOKEN_DELIMITER);if(l>=0){j=j[hb](0,l)}this.zt(j)};Ye[t].ht=function(a){var d=/#.+$/,e=top[Ra][A][Ja](d,""),h=a[Ja](d,"");return e==h};Ye[t].zt=function(a){if(td&&this.ht(a)){va(top[Ra],a);var d=fa[cb]("input");o(d,"button");n(d,"reload");d.onclick=function(){da[Ra].reload()};d[Ua].display="none";fa[Xa][za](d);var e=fa.createEvent("MouseEvents");e.initMouseEvent("click",b,b,fa.defaultView,1,0,0,0,0,g,g,g,g,0,c);var h=function(){d[Ta](e)};da.setTimeout(h,1000)}else{va(top[Ra],a)}};Ye[t].yg=function(a,d){Je(this.ob.URL_PREFIX+this.ob.AUTH_SUB_TOKEN_INFO_JS,d,"POST",{auth:a.$f()})};Ye[t].yt=function(a,d){Je(this.ob.URL_PREFIX+this.ob.AUTH_SUB_REVOKE_TOKEN_JS,d,"POST",{auth:a.$f()})};var Ze=function(a,d){this.At=a;this.Ub=d||""};Ze[t].Eb=function(){return this.At};Ze[t].$f=function(){return this.Ub};Ze[t].contains=function(a){if(!a){return g}for(var d=this.At[Ma](" "),e=0;e<d[r];e++){if(a[y](d[e])>-1){return b}}return g};var $e=function(a){this.ns="scope-";this.ts="scope";this.vs="token";this.rs="pending";this.rd=[];this.cg=c;a||(a=new We);this.Uf=a};$e[t].add=function(a){this.rd[q](a)};ta($e[t],function(a){var d=function(e){return e.Eb()==a};mc(this.rd,d)});$e[t].yf=function(){kc(this.rd);this.cg=c};$e[t].Yf=function(a){for(var d=0;d<this.rd[r];d++){var e=this.rd[d];if(e[kb](a)){return e}}return c};$e[t].md=function(){return this.rd};$e[t].Pr=function(a){this.cg=a};$e[t].$s=function(){return this.cg};$e[t].br=function(){this.cg=c};$e[t].Wq=function(a){if(a){return this.Yf(a)!=c}return this.md()[r]>0};$e[t].write=function(){this.Uf.yf();for(var a=0;a<this.rd[r];a++){var d=this.rd[a],e=this.ns+a,h=new ue;h.add(this.ts,d.Eb());h.add(this.vs,d.$f());this.Uf.Va(e,h[Aa]())}this.cg!=c&&this.Uf.Va(this.rs,this.cg.Eb())};$e[t].load=function(){this.yf();this.br();for(var a=this.Uf.hb(),d=0;d<a[r];d++){var e=a[d];if(e==this.rs){this.Pr(new Ze(this.Uf.ra(e)))}else{if(e[y](this.ns)==0){var h=new ue(this.Uf.ra(e)),j=h.ra(this.ts),l=h.ra(this.vs);C(j)&&!(j===c)&&this.add(new Ze(j,l))}}}};var af={LOGGED_OUT:0,LOGGING_IN:1,LOGGED_IN:2};D("google.accounts.AuthSubStatus",af);D("google.accounts.AuthSubStatus.LOGGED_OUT",0);D("google.accounts.AuthSubStatus.LOGGING_IN",1);D("google.accounts.AuthSubStatus.LOGGED_IN",2);var bf=function(a){a||(a=new Xe);this.ob=a;this.qa=new $e;this.lh=new Ye(a);this.rh=c};bf[t].mh=function(a){this.qa[La]();this.rh=a;var d=this.qa.Yf(a);if(d){return d.$f()}return""};bf[t].lt=function(a,d){a=a||this.rh;this.qa[La]();var e=this.qa.Yf(a);if(e!=c){return e.$f()}this.qa.Pr(new Ze(a));this.qa[Ya]();this.lh.wt(a,d);return c};bf[t].ut=function(){var a=fa[Ra][A];if(!(a[y](this.ob.TOKEN_DELIMITER)<0)){var d=Ub(fa[Ra][Ba][hb](1));this.qa[La]();var e=this.qa.$s().Eb();this.lh.Os(e,d,function(h){return function(j,l){h[La]();h.br();h.add(new Ze(j,l));h[Ya]()}}(this.qa))}};bf[t].ot=function(a,d){var e=[];if(d=d||this.rh){d=this.qa.Yf(d);d!=c&&e[q](d)}else{this.qa[La]();e=this.qa.md()}if(e[r]==0){a();return g}this.er(e,a);return b};bf[t].er=function(a,d){if(a[r]==0){d&&d()}else{var e=a.pop();this.qa[La]();this.qa[ab](e.Eb());this.qa[Ya]();this.lh.yt(e,Mb(this.er,this,a,d))}};bf[t].yg=function(a,d){this.qa[La]();var e=d||this.rh,h=c;if(e){h=this.qa.Yf(e)}else{var j=this.qa.md();h=j[r]>0&&j[0]}if(!h){return g}this.lh.yg(h,a);return b};bf[t].Zf=function(a){if(fa[Ra][A][y](this.ob.TOKEN_DELIMITER)>0){return 1}this.qa[La]();if(a){if(this.qa.Wq(a)){return 2}}else{if(this.qa.Wq()){return 2}}return 0};bf[t].md=function(){var a=[];this.qa[La]();for(var d=this.qa.md(),e=0;e<d[r];e++){a[q](d[e].Eb())}return a};var cf=new bf,df=function(){cf.ut()};ce(da,"load",df);D("google.accounts.user",cf);D("google.accounts.user.checkLogin",cf.mh);D("google.accounts.user.getInfo",cf.yg);D("google.accounts.user.getScopes",cf.md);D("google.accounts.user.getStatus",cf.Zf);D("google.accounts.user.login",cf.lt);D("google.accounts.user.logout",cf.ot);if(typeof framework=="undefined"){framework=undefined}if(typeof gadgets=="undefined"){gadgets=undefined}if(typeof XULDocument=="undefined"){XULDocument=undefined}var ef=framework?c:this,E={};D("google.gdata",E);E.runtime={};E.runtime.detect=function(){var a=E.runtime;if(typeof framework=="object"&&framework.graphics){o(a,a.TYPE.GD);a.isIe=b}else{if(typeof ef.gadgets=="object"&&ef.gadgets.io){o(a,a.TYPE.OS);a.detectBrowser()}else{if(typeof ef._IG_Prefs=="function"){o(a,a.TYPE.IG);a.detectBrowser()}else{if(typeof ef.widget=="function"&&ef.widget.identifier&&typeof ef.widget.openApplication=="function"){o(a,a.TYPE.MD);a.isSafari=b;a.isKhtml=b}else{if(typeof ef.GM_xmlhttpRequest=="function"){o(a,a.TYPE.GM);a.isGecko=b}else{if(typeof ef.konfabulatorVersion=="function"){o(a,a.TYPE.KF)}else{if(typeof ef.XULDocument=="object"&&ef[Ka] instanceof ef.XULDocument){o(a,a.TYPE.FE);a.isGecko=b}else{o(a,a.TYPE.UP);a.detectBrowser()}}}}}}}};E.runtime.detectBrowser=function(){var a=navigator.userAgent,d=E.runtime;d.isOpera=typeof opera!="undefined";d.isIe=!d.isOpera&&a[y]("MSIE")!=-1;d.isSafari=!d.isOpera&&a[y]("Safari")!=-1;d.isGecko=!d.isOpera&&navigator.product=="Gecko"&&!d.isSafari;d.isKonqueror=!d.isOpera&&a[y]("Konqueror")!=-1;d.isKhtml=d.isKonqueror||d.isSafari};E.runtime.TYPE={FE:"Firefox Extension",GM:"GreaseMonkey",GD:"Google Desktop",IG:"Google Personalized Start Page",KF:"Yahoo Widget Engine",MD:"Mac OS X Dashboard",OS:"OpenSocial Gadget",UP:"Unprivileged"};E.runtime.detect();E.util={};E.util.BUG_MSG='Please rerun the "genesis javascript" command and rebuild your JavaScript library. If this error persists, please report this (probable) BUG to xapi-client@google.com (see Firebug console or some text on this page in IE): ';E.util.trim=function(a){return Gb(a)?Rb(a):a};E.util.it=function(a){return Gb(a)||a&&a[u]==i};E.util.convertXmlTextToDom=function(a){if(E.runtime[B]==E.runtime.TYPE.GD){var d=new DOMDocument;d.loadXML(a);return d}else{if(E.runtime.isIe){d=new ActiveXObject("Microsoft.XMLDOM");d.async=g;d.loadXML(a);return d}else{if(typeof ef.DOMParser!="undefined"){var e=new DOMParser;return e.parseFromString(a,"text/xml")}else{aa(Error("runtime not supported"))}}}};E.util.convertXmlTextToJavaScript=function(a){a=E.util.trim(a);if(a[r]==0){return c}var d=E.util.convertXmlTextToDom(a);return E.util.convertDomToJavaScript(d)};E.util.convertDomToJavaScript=function(a){if(E.runtime.isIe){for(var d=a.lastChild,e=E.util.oh(d),h={},j=a.firstChild[pb],l=0;l<j[r];l++){var p=j[l];h[p[Va]]=p.nodeValue}h[d[Va]]=e;return h}else{d=a.documentElement;e=E.util.oh(d);h={version:a.xmlVersion||"1.0",encoding:a.xmlEncoding||"UTF-8"};h[e.channel?"rss":d[Va]]=e;E.util.buildNamespaceDictionaries(e);return h}};E.util.oh=function(a){var d={};if(a[pb]){for(var e=0;e<a[pb][r];e++){var h=a[pb][e],j=h[Va][Ja](/:/g,"$"),l=h.nodeValue;if(j[y]("_moz-")<0){d[j]=l}}}if(a[nb][r]==1&&a[nb][0].nodeType==3){d.$t=a[nb][0].nodeValue}else{for(e=0;e<a[nb][r];e++){var p=a[nb][e];if(p.nodeType!=3){j=p.tagName;j=j[Ja](/:/g,"$");var s=d[j];if(s){if(Db(s)!="array"){d[j]=[d[j]]}d[j][q](E.util.oh(p))}else{var v=E.util.oh(p);d[j]=j=="entry"?[v]:v}}}}return d};E.util.convertJsonTextToJavaScript=function(a){a=E.util.trim(a);if(a[r]==0){return c}var d=a[Ja](/\r/g,"\\r"),e=d[Ja](/\n/g,"\\n"),h=eval("("+e+")");E.util.buildNamespaceDictionaries(h.feed||h.entry);return h};E.util.convertEntryToAtom=function(a,d){var e="<?xml version='"+(a.$version||"1.0")+"' encoding='"+(a.$encoding||"UTF-8")+"' ?>";return e+E.util.convertJavaScriptToAtom("entry",a,d)};E.util.ft=function(a){return Pb(a,"___")};E.util.lm=function(a,d,e,h){var j=d.$t;e[q]("<",a);for(var l in d){if(l.charAt(0)!="$"&&l!="__proto__"&&!E.util.ft(l)){var p=d[l],s=typeof p;if(s=="string"||s=="number"||s=="boolean"){l=l[Ja]("$",":");e[q](" ",l,"='",E.util.Qt(p),"'")}else{if(p&&s=="object"){j=b}}}}if(j){e[q](">");for(l in d){if(l.charAt(0)!="$"&&l!="__proto__"&&!E.util.ft(l)){if((p=d[l])&&typeof p=="object"){l=l[Ja]("$",":");if(Db(p)=="array"){for(var v=0,F=p[r];v<F;v++){E.util.lm(l,p[v],e,h)}}else{l=="content"&&h?h(l,p,e):E.util.lm(l,p,e,h)}}}}d.$t&&e[q](E.util.escapeXmlContent(d.$t));e[q]("</",a,">")}else{e[q]("/>")}};E.util.convertJavaScriptToAtom=function(a,d,e){var h=[];E.util.lm(a,d,h,e);return h[xb]("")};(function(){for(var a="",d=0;d<32;d++){if(d!=9&&d!=10&&d!=13){var e=(d<16?"0":"")+d[Aa](16);a+="\\x"+e}}E.util.Ut=new RegExp("["+a+"]","g")})();E.util.Vt=function(a){return a[Ja](E.util.Ut,"")};E.util.escapeXmlContent=function(a){return a&&E.util.it(a)?E.util.Vt(a)[Ja](/&/g,"&amp;")[Ja](/</g,"&lt;")[Ja](/>/g,"&gt;"):a};E.util.Qt=function(a){return a&&E.util.it(a)?E.util.escapeXmlContent(a)[Ja](/"/g,"&quot;")[Ja](/'/g,"&apos;"):a};E.util.buildNamespaceDictionaries=function(a){for(var d in a){var e=a[d];if(d[y]("xmlns")==0){var h=d=="xmlns"?"":d[hb]("xmlns$"[r]);a.$ns||(a.$ns={});a.$ns[h]=e;a.$rns||(a.$rns={});a.$rns[e]=h}}};E.util.kb=function(a,d){var e=a.link;if(e){for(var h=0;h<e[r];h++){var j=e[h];if(j.rel==d){return j}}}return c};E.util.copy=function(a){var d={};for(var e in a){d[e]=a[e]}return d};E.util.log=function(a){if(ef.console&&typeof ef.console.log=="function"){ef.console.log(a)}else{var d=fa[cb]("div");d.innerHTML=a;fa[Xa][za](d)}};E.util.isService=function(a,d){return a[y]("google.com/"+d+"/")>0};E.util.getRandomInt=function(a,d){return ia[Na](ia.random()*(d-a+1)+a)};E.util.mutateTo=function(a,d){if(!a){return undefined}if(a.__proto__){a.__proto__=d[t];a.constructor=d;d[z](a);return a}else{var e=new d;for(var h in a){e[h]=a[h]}e.__proto__=d[t];e.constructor=d;d[z](e);return e}};E.util.handleError=function(a,d){if(!d||!(d instanceof ea)){aa(a)}return d[z](this,a)};E.util.getTimezoneOffsetString=function(a){var d,e=a.getTimezoneOffset();if(e==0){d="Z"}else{var h=ia.abs(e)/60,j=ia[Na](h),l=(h-j)*60;d=(e>0?"-":"+")+cc(j,2)+":"+cc(l,2)}return d};E.util.vh=function(a,d,e){for(var h=0;h<a[r];h++){var j=a[h];if((!d||d==j.q())&&(!e||e==j.o())){return h}}return undefined};E.util.It=/("[^"]*":")(.*?)(","[^"]*":)/;E.util.Rt=function(a){a=a[Ja](/\}/g,',"_\u0001":null}');for(var d=0;;){var e=a[hb](d),h=E.util.It[Ha](e);if(!h){break}var j=0;if(h[2][y]('"')>=0){var l=h[2][Ja](/"/g,'\\"'),p=h.index+h[1][r],s=h[2][r];j=p+s;a=a[hb](0,d+p)+l+a[hb](d+j)}d+=j+2}return a=a[Ja](/,"_\x01":null\}/g,"}")};var ff=function(a,d){this.date=a;this.dateOnly=d==b};D("google.gdata.DateTime",ff);ff[t].getDate=function(){return this.date};D("google.gdata.DateTime.prototype.getDate",ff[t].getDate);ff[t].setDate=function(a){this.date=a};D("google.gdata.DateTime.prototype.setDate",ff[t].setDate);ff[t].Bh=function(){return this.dateOnly};D("google.gdata.DateTime.prototype.isDateOnly",ff[t].Bh);ff[t].kr=function(a){this.dateOnly=a};D("google.gdata.DateTime.prototype.setDateOnly",ff[t].kr);ff[t].ie=function(a){return this.dateOnly==a.dateOnly&&this.date[wb]()==a.date[wb]()};D("google.gdata.DateTime.prototype.equals",ff[t].ie);var G=function(a){var d=ca(a[hb](0,4),10),e=ca(a[hb](5,7),10)-1,h=ca(a[hb](8,10),10);if(a.toUpperCase()[y]("T")==-1){return new ff(new Date(d,e,h),b)}var j=ca(a[hb](11,13),10),l=ca(a[hb](14,16),10),p=ca(a[hb](17,19),10),s=ca(a[hb](20,23),10),v=new Date(d,e,h,j,l,p,s);if(a[r]>23){var F=0,x=a.charAt(23);if(x!=="Z"){var S=ca(a[hb](24,26),10),M=ca(a[hb](27,29),10);F=S*60+M;if(x!=="-"){F=-F}}F-=v.getTimezoneOffset();F!=0&&v.setTime(v[wb]()+F*60000)}return new ff(v)};D("google.gdata.DateTime.fromIso8601",G);var gf=function(a){var d=a instanceof ff,e=d?a.date:a,h=e.getFullYear()+"-"+cc(e.getMonth()+1,2)+"-"+cc(e.getDate(),2);if(d&&a.Bh()){return h}return h+"T"+cc(e.getHours(),2)+":"+cc(e.getMinutes(),2)+":"+cc(e.getSeconds(),2)+"."+cc(e.getMilliseconds(),3)+E.util.getTimezoneOffsetString(e)};D("google.gdata.DateTime.toIso8601",gf);E.mimeType={};E.mimeType.ATOM="application/atom+xml";E.mimeType.HTML="text/html";E.client={};D("google.gdata.client",E.client);E.client.qc=function(a){if(!E.client.gt){E.client.gt=b;try{E.client.Ot();E.client.Nt()}catch(d){a?a(d):alert(d.message)}}};D("google.gdata.client.init",E.client.qc);E.client.gt=g;E.client.nh=function(a,d){for(var e=a[Ma]("."),h=d[Ma]("."),j=0;j<e[r]||j<h[r];j++){var l=j>=e[r]?0:k(e[j]),p=j>=h[r]?0:k(h[j]);if(l>p){return b}if(l<p){return g}}return b};E.client.Ot=function(){if(!(E.runtime[B]===E.runtime.TYPE.MD)){if(E.runtime[B]===E.runtime.TYPE.FE){var a="1.9";if(!this.nh(yd,a)){aa(Error("Unsupported XULRunner version. Minimum required version is "+d+".  Continue at your own risk."))}}else{if(E.runtime[B]!==E.runtime.TYPE.UP&&E.runtime[B]!==E.runtime.TYPE.IG&&E.runtime[B]!==E.runtime.TYPE.OS){aa(Error("Unsupported client environment.  Continue at your own risk."))}}if(sd){var d="1.5";if(!this.nh(yd,d)){aa(Error("Unsupported Firefox version.  Minimum required version is "+d+".  Continue at your own risk."))}}else{if(rd){var e="6.0";if(!this.nh(yd,e)){aa(Error("Unsupported Internet Explorer version.  Minimum required version is "+e+".  Continue at your own risk."))}}else{if(td){var h="523.0";if(!this.nh(yd,h)){aa(Error("Unsupported WebKit version.  Minimum required version is "+h+".  Continue at your own risk."))}}else{aa(Error("Unsupported browser.  Continue at your own risk."))}}}}};E.client.Nt=function(){var a=da.google&&da.google.loader;if(a&&a.LoadFailure&&a.OriginalAppPath===da[Ra][A]){aa(Error("Developer key validation failed."))}};sa(E.client,{OK:200,NOT_OK:300,FOUND:302,BAD_REQUEST:400,UNAUTHORIZED:401,FORBIDDEN:403,PRECONDITION_FAILED:412,INTERNAL_SERVER_ERROR:500});var jf=function(a){var d=function(h){return"string"==typeof h&&h[r]>0?h:c},e=a.match(hf);if(e){pa(this,d(e[1]));this.credentials=d(e[2]);this.domain=d(e[3]);this.port=d(e[4]);this.path=d(e[5]);this.query=d(e[6]);this.fragment=d(e[7])}},hf=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,kf=function(a,d){var e=new jf(a),h=new jf(d);return(e.domain==c||e.domain==h.domain)&&(e[bb]==c||e[bb]==h[bb])};var lf=function(){sa(this,0);ja(this,"");oa(this,"");this.responseXML="";this.headers={}};lf[t].im=function(a,d){this[mb][a]=d};lf[t].getResponseHeader=function(a){return this[mb][a]};E.client.xmlHttpRequest={};E.client.xmlHttpRequest.sendAsyncRequest=function(a,d,e,h,j,l){if(E.runtime[B]==E.runtime.TYPE.GM){GM_xmlhttpRequest({method:a,url:d,headers:h,data:e,onload:function(S){j(S,l)},onerror:l})}else{var p=E.runtime.isIe?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest;try{p.open(a,d,b)}catch(s){if(typeof s=="string"){s=Error(s)}if(l){return l(s)}else{aa(s)}}p.onreadystatechange=function(){p.readyState==4&&j(p,l)};if(h){for(var v in h){var F=h[v];Gb(F)||(F=i(F));p.setRequestHeader(v,F)}}try{p.send(e||"")}catch(x){if(typeof x=="string"){x=Error(x);x.cause=p}if(l){return l(x)}else{aa(x)}}}};var mf=function(){this.As={}};mf[t].vb=function(a,d){this.As[a]=d};mf[t].Xf=function(a){return this.As[a]};mf[t].ag=function(a,d,e,h){var j=new te(a);j.yh("user-agent")||j.rb("user-agent",e);j.yh("alt")||j.rb("alt",d);h&&!j.yh("key")&&j.rb("key",h);return j};mf[t].ib=function(){aa(Error("subclass responsibility"))};var nf=function(){mf[z](this);this.vb(E.client.alt.ATOM,E.client.alt.ATOM);this.vb(E.client.alt.RSS,E.client.alt.RSS);this.vb(E.client.alt.JSON,E.client.alt.JSON)};Ob(nf,mf);nf[t].ib=function(a,d,e,h,j,l,p,s,v,F){E.client.xmlHttpRequest.sendAsyncRequest(a,this.ag(d,e,p,l)[Aa](),h,j,v,F)};var of=function(){mf[z](this);this.vb(E.client.alt.ATOM,E.client.alt.ATOM_IN_SCRIPT);this.vb(E.client.alt.RSS,E.client.alt.RSS_IN_SCRIPT);this.vb(E.client.alt.JSON,E.client.alt.JSON_IN_SCRIPT)};Ob(of,mf);var pf=0,qf={},sf=function(a,d){var e=d||0,h=rf(e);if(h){fa[Xa].removeChild(h.script);delete h.script;return h.continuation[z](h.self,a)}else{aa(Error('script request "'+e+'" not found'))}};if(typeof gdata=="undefined"){gdata={}}gdata.io={handleScriptLoaded:sf};of[t].ss=10000;of[t].gm="Request via script load timed out. Possible causes: feed URL is incorrect; feed requires authentication";of[t].ag=function(a,d,e,h,j){var l=new te(a);l.rb("alt",d);l.rb("reqid",e);l.rb("user-agent",h);j&&l.rb("key",j);return l};of[t].ib=function(a,d,e,h,j,l,p,s,v,F){var x=++pf,S=ef[Ka][cb]("script");S.src=this.ag(d,e,x,p,l)[Aa]();if(F){if(E.runtime.isIe){da.setTimeout(function(ga){var Wa=rf(ga);Wa&&F&&F(Error(this.gm))}[ob](this,x),this.ss)}else{S.onerror=function(ga){if(ga=="Error loading script"){ga=this.gm}var Wa=new lf;sa(Wa,400);ja(Wa,ga);v(Wa,F)}[ob](this)}}var M={continuation:function(ga){E.util.buildNamespaceDictionaries(ga.feed||ga.entry);var Wa=new lf;sa(Wa,200);oa(Wa,ga);v(Wa,F)},self:s,script:S},N="req"+x;qf[N]=M;ef[Ka][Xa][za](S)};var rf=function(a){var d="req"+a,e=qf[d];delete qf[d];return e};var tf=function(){mf[z](this);this.vb(E.client.alt.JSON,E.client.alt.JSON_XD)};Ob(tf,mf);tf[t].ib=function(a,d,e,h,j,l,p,s,v,F){var x={};this.st(d,x);x.alt=e;x.body=h;if(a!="POST"){j["X-HTTP-Method-Override"]=a}x["user-agent"]=p;if(l){var S="key";x[S]=l}Je(d,function(M){if(M[Za][$a]<E.client[$a].NOT_OK){if(Qb(M[Za][Pa])){oa(M[Za],c)}else{oa(M[Za],M[Za][Pa][Ja](/\n/g,"\\n"));oa(M[Za],M[Za][Pa][Ja](/\r/g,"\\r"));try{oa(M[Za],pe(M[Za][Pa]))}catch(N){try{var ga=E.util.Rt(M[Za][Pa]);oa(M[Za],pe(ga))}catch(Wa){var ae=Error("Invalid JSON format. Unescaped JSON is a not supported format for attribute or text values.");if(F){F(ae)}else{aa(ae)}}}}}else{if(!M[Za].statusText){ja(M[Za],M[Za][Pa])}}v(M[Za],F)},"POST",x,j)};tf[t].st=function(a,d){for(var e=a instanceof te?a.Sa():new te(a,undefined),h=e.Kp(),j=h.hb(),l=0;l<j[r];l++){var p=j[l],s=h.Ca(p);d[p]=s&&s[r]>0?s[0]:c}};da[Ra]&&da[Ra][Ba][y]("__debug")>0&&Ke(b);var uf=function(){mf[z](this);this.vb(E.client.alt.ATOM,E.client.alt.ATOM);this.vb(E.client.alt.RSS,E.client.alt.RSS);this.vb(E.client.alt.JSON,E.client.alt.JSON);this.om=""};Ob(uf,mf);uf[t].rt=function(a){if(a&&a["set-cookie"]){for(var d=a["set-cookie"],e=0;e<d[r];++e){var h=d[e],j=/^S=[^;]+/,l=j[Ha](h);if(l){this.om=l[0]}}}};uf[t].ib=function(a,d,e,h,j,l,p,s,v,F){d=this.ag(d,e,p,l)[Aa]();var x={},S=j.OPEN_SOCIAL_HEADERS;if(S){x=xc(S);delete j.OPEN_SOCIAL_HEADERS}if(this.om){j.cookie=this.om}j["X-If-No-Redirect"]&&delete j["X-If-No-Redirect"];x[gadgets.io.RequestParameters.HEADERS]=j;x[gadgets.io.RequestParameters.POST_DATA]=h;x[gadgets.io.RequestParameters.METHOD]=a;x[gadgets.io.RequestParameters.CONTENT_TYPE]=gadgets.io.ContentType.TEXT;var M=function(N){var ga=new lf;this.rt(N[mb]);if(N.errors&&N.errors[r]&&F){F(new Error(N.errors[0]))}else{if(N.oauthError&&F){F(new Error(N.oauthErrorText))}else{if(N.rc&&N.rc==E.client[$a].FOUND){sa(ga,E.client[$a].FOUND);ga.im("Location",N[mb][Ra][0]);v(ga,F)}else{sa(ga,E.client[$a].OK);ja(ga,"OK");var Wa="text/xml";if(e==E.client.alt.JSON){Wa="application/json"}ga.im("Content-Type",Wa);if(N.oauthApprovalUrl){oa(ga,{oauthApprovalUrl:N.oauthApprovalUrl})}else{if(N.text){oa(ga,N.text)}}v(ga,F)}}}};gadgets.io.makeRequest(d,Mb(M,this),x)};E.client.alt={};E.client.alt.ATOM="atom";E.client.alt.ATOM_IN_SCRIPT="atom-in-script";E.client.alt.RSS="rss";E.client.alt.RSS_IN_SCRIPT="rss-in-script";E.client.alt.JSON="json";E.client.alt.JSON_XD="json-xd";E.client.alt.JSON_IN_SCRIPT="json-in-script";var vf=function(a){this.sd=a};vf[t].nb=function(){aa(Error("Missing implementation: isAuthenticationRequired()"))};vf[t].Pa=function(){aa(Error("Missing implementation: isAuthenticated()"))};vf[t].Ra=function(){aa(Error("Missing implementation: authenticate()"))};vf[t].qb=function(){aa(Error("Missing implementation: setAuthHeaders()"))};var wf=function(a){vf[z](this,a)};wf.e(vf);wf[t].nb=function(){return g};wf[t].Ra=function(a,d){d()};wf[t].Pa=function(){return b};wf[t].qb=function(){};var xf={GOOGLE:"GOOGLE",HOSTED:"HOSTED",HOSTED_OR_GOOGLE:"HOSTED_OR_GOOGLE"};D("google.gdata.client.ClientLoginAccountType",xf);D("google.gdata.client.ClientLoginAccountType.GOOGLE","GOOGLE");D("google.gdata.client.ClientLoginAccountType.HOSTED","HOSTED");D("google.gdata.client.ClientLoginAccountType.HOSTED_OR_GOOGLE","HOSTED_OR_GOOGLE");var yf=function(a){vf[z](this,a)};yf.e(vf);yf[t].nb=function(){return this.sd.tf().username||this.sd.tf().password};yf[t].Ra=function(a,d,e){var h=this.sd.tf(),j=h.username,l=h.password,p=h.accountType||"HOSTED_OR_GOOGLE";if(!j||!l){aa(Error("need username and password in service for authentication"))}var s="Email="+ba(j)+"&Passwd="+ba(l)+"&source="+ba(this.sd.applicationName)+"&service="+ba(this.sd.serviceName)+"&accountType="+ba(p);E.client.xmlHttpRequest.sendAsyncRequest("POST",this.Xs(),s,{"content-type":"application/x-www-form-urlencoded"},this.Qs(d,e),e)};yf[t].Pa=function(){return !this.sd.tf().username||this.Ub};yf[t].hm="/accounts/ClientLogin";yf[t].Xs=function(){return E.runtime[B]!=E.runtime.TYPE.UP&&E.runtime[B]!=E.runtime.TYPE.IG&&E.runtime[B]!=E.runtime.TYPE.OS?this.sd.nt+"://"+this.sd.mt+this.hm:ef[Ra][db]+"//"+ef[Ra].host+(ef[Ra][bb]?":"+ef[Ra][bb]:"")+this.hm};yf[t].Qs=function(a,d){var e=this;return function(h){var j=zf;if(h[$a]==E.client[$a].FORBIDDEN){var l=Error("Login failed");o(l,j.LOGIN_FAILED);if(d){return d(l)}else{aa(l)}}if(h[$a]>=E.client[$a].NOT_OK){l=Error("Bad authentication response status: "+h[$a]);o(l,j.BAD_STATUS);if(d){return d(l)}else{aa(l)}}var p=h[Pa];if(!p){l=Error("No authentication token in response");o(l,j.NO_TOKEN);if(d){return d(l)}else{aa(l)}}var s=p.match(/^Auth=(.*)/m);if(!s||!s[1]){l=Error("Malformed authentication token: "+p);o(l,j.MALFORMED_TOKEN);if(d){return d(l)}else{aa(l)}}e.Ub=s[1];a[z](e)}};var zf={BAD_STATUS:0,LOGIN_FAILED:1,NO_TOKEN:2,MALFORMED_TOKEN:3};yf[t].qb=function(a,d){if(this.Ub){d.Authorization="GoogleLogin auth="+this.Ub}};var Af=function(a,d,e){vf[z](this,a);this.Hs=d;this.Tt=e||"GoogleLogin"};Af.e(vf);Af[t].nb=function(){return b};Af[t].Ra=function(a,d,e){if(this.Ub=Ue(this.Hs)){d()}else{e&&e(new Error("cookie ("+this.Hs+") not available."))}};Af[t].Pa=function(){return this.Ub!=c};Af[t].qb=function(a,d){if(this.Ub){d.Authorization=this.Tt+" auth="+this.Ub}};var Bf=function(a){vf[z](this,a)};Bf.e(vf);Bf[t].nb=function(a){return this.Pa(a)};Bf[t].Ra=function(a,d){d()};Bf[t].Pa=function(a){a=this.cr(a);return cf.mh(a)};Bf[t].qb=function(a,d){a=this.cr(a);var e=cf.mh(a);if(e){d.Authorization="AuthSub token="+e}};Bf[t].cr=function(a){var d=a[y]("?");if(d>0){a=a[hb](0,d)}var e=a[y]("#");if(e>0){a=a[hb](0,e)}return a};var Cf=function(a,d,e){vf[z](this,a);this.Jt=d;this.opt_params=e||{}};Ob(Cf,vf);Cf[t].nb=function(){return b};Cf[t].Ra=function(a,d){d()};Cf[t].Pa=function(){return g};Cf[t].qb=function(a,d){this.opt_params[gadgets.io.RequestParameters.AUTHORIZATION]=this.Jt;d.OPEN_SOCIAL_HEADERS=this.opt_params};var Df=function(a,d){E.client.qc();this.serviceName=a;this.applicationName=d;this.Xt=(new Date)[wb]()+"-"+E.util.getRandomInt(100,999);this.fb=new this.Lg(this);this.Qb={};this.Qb[E.client.alt.ATOM]=b;this.et={"X-If-No-Redirect":"1"};this.km=this.qg=this.Ks=c;this.Jg(g)},Ef;D("google.gdata.client.Service",Df);Df[t].Lg=wf;Df[t].lr=function(a){this.Ks=a};D("google.gdata.client.Service.prototype.setDeveloperKey",Df[t].lr);Df[t].Kg=function(a){return this.Qb[a]};D("google.gdata.client.Service.prototype.supportsAlt",Df[t].Kg);Df[t].Gg=function(a,d){this.Qb[a]=d};D("google.gdata.client.Service.prototype.setAltSupport",Df[t].Gg);Df[t].Eh=function(){return this.Yt};D("google.gdata.client.Service.prototype.isXd2Supported",Df[t].Eh);Df[t].Jg=function(a){this.Yt=a};D("google.gdata.client.Service.prototype.setXd2Supported",Df[t].Jg);Df[t].sc=function(){return g};Df[t].xs=new nf;Df[t].us=new of;Df[t].ws=new tf;Df[t].ps=new uf;Df[t].Ss=function(){return ef[Ra][A]};Df[t].at=function(a,d){return E.runtime[B]!=E.runtime.TYPE.UP&&E.runtime[B]!=E.runtime.TYPE.IG&&E.runtime[B]!=E.runtime.TYPE.OS?this.Yp(a,d):kf(a,this.Ss())?this.Yp(a,d):this.Rs(a,d)};Df[t].Yp=function(){return this.xs};Df[t].Rs=function(a,d){if(E.runtime[B]==E.runtime.TYPE.OS){return this.ps}if(d=="GET"&&!this.sc(a)){return this.us}if(this.Eh()){if(this.dt()){return this.ws}else{var e="An image of the same domain is required on this page for authenticated reads and all writes.";aa(Error(e))}}else{aa(Error("no suitable transport"))}};Df[t].dt=function(){if(Ef==undefined){if(E.runtime[B]==E.runtime.TYPE.UP){for(var a=fa.getElementsByTagName("img"),d=0;d<a[r];d++){var e=a[d];if(Ee(e.src,da[Ra][A])){return Ef=b}}Ef=g}else{Ef=b}}return Ef};Df[t].fr=function(a,d,e,h,j,l){this.Fg(a,d,e,h,j,l,b)};Df[t].Fg=function(a,d,e,h,j,l,p){this.sc(d)&&this.fb.qb(d,h);var s=this.at(d,a),v=this.Kg(s.Xf(E.client.alt.JSON))?E.client.alt.JSON:this.Kg(s.Xf(E.client.alt.ATOM))?E.client.alt.ATOM:c;if(v){var F=v==E.client.alt.JSON?function(N,ga,Wa){if(typeof N[Pa]=="string"){var ae=N.getResponseHeader("Content-Type"),Mg=ae&&ae[y]("xml")>0?E.util.convertXmlTextToJavaScript(N[Pa]):E.util.convertJsonTextToJavaScript(N[Pa]);return ga(Mg,Wa)}return ga(N[Pa],Wa)}:function(N,ga,Wa){if(typeof N[Pa]=="string"){return ga(E.util.convertXmlTextToJavaScript(N[Pa]),Wa)}return ga(N[Pa],Wa)};this.Bt(s,a,d,v,e,h,F,j,l,p)}else{var x=s.Xf(E.client.alt.JSON),S=s.Xf(E.client.alt.ATOM),M="";if(x){M+=x}if(S){if(M){M+=" or "}M+=S}M=M?": "+M:".";aa(Error("service does not support alt required by transport"+M))}};Df[t].Bt=function(a,d,e,h,j,l,p,s,v,F){var x=this,S=a.Xf(h),M=ba(this.applicationName+" GData-JavaScript/"+(da.GData_API_Version||"dev")+" "+this.Xt);a.ib(d,e,S,j,l,this.Ks,M,this,function(N,ga){if(N[$a]<E.client[$a].NOT_OK){return p(N,s,ga)}else{if(F&&N[$a]==E.client[$a].PRECONDITION_FAILED){var Wa=N.getResponseHeader("X-Redirect-Location");return x.Fg(d,Wa,j,l,s,ga,g)}else{if(F&&N[$a]==E.client[$a].FOUND){Wa=N.getResponseHeader("Location");return x.Fg(d,Wa,j,l,s,ga,g)}else{if(F&&N[$a]==E.client[$a].INTERNAL_SERVER_ERROR){return x.Fg(d,e,j,l,s,ga,g)}else{if(N[$a]==E.client[$a].BAD_REQUEST&&N[Pa]=="Invalid Feed Type"){this.Gg(E.client.alt.JSON,g);return x.fr(d,e,j,l,function(){x.Gg(E.client.alt.JSON,b);s[lb](this,arguments)},ga)}else{var ae=N.statusText;if(N[$a]==E.client[$a].UNAUTHORIZED&&N.statusText=="OK"){ae="Authorization required"}var Mg=Error(ae);Mg.cause=N;if(N.responseHeaders){Mg.statusTextContentType=N.responseHeaders["Content-Type"]}if(ga){return ga(Mg)}}}}}}}[ob](this),v)};Df[t].M=function(a,d,e,h,j){var l=typeof a=="string"?a:a.Oa();return this.Xp(l,d,e,{feedClass:h,authenticationRequired:j})};D("google.gdata.client.Service.prototype.getFeed",Df[t].M);Df[t].O=function(a,d,e,h,j){return this.Xp(a,d,e,{entryClass:h,authenticationRequired:j})};D("google.gdata.client.Service.prototype.getEntry",Df[t].O);Df[t].Xp=function(a,d,e,h){if((h&&h.authenticationRequired||this.sc(a))&&!this.fb.Pa(a)){var j=this;this.fb.Ra(a,function(){j.Tq(a,d,e,h)},e)}else{this.Tq(a,d,e,h)}};Df[t].Tq=function(a,d,e,h){return this.Eg("GET",a,"",d,e,h)};Df[t].od=function(a,d,e,h,j){if(this.sc(a)&&!this.fb.Pa(a)){var l=this;this.fb.Ra(a,function(){l.Uq(a,d,e,h,j)},h)}else{this.Uq(a,d,e,h,j)}};D("google.gdata.client.Service.prototype.insertEntry",Df[t].od);Df[t].Uq=function(a,d,e,h,j){if(!d.jd){d.jd="http://www.w3.org/2005/Atom"}var l=E.util.convertEntryToAtom(d,this.km);if(!j&&d[u]!==m){j=d[u]}this.Eg("POST",a,l,e,h,{entryClass:j})};Df[t].Ad=function(a,d,e,h,j){if(this.sc(a)&&!this.fb.Pa(a)){var l=this;this.fb.Ra(a,function(){l.ks(a,d,e,h,j)},h)}else{this.ks(a,d,e,h,j)}};D("google.gdata.client.Service.prototype.updateEntry",Df[t].Ad);Df[t].ks=function(a,d,e,h,j){if(!j&&d[u]!==m){j=d[u]}var l=E.util.convertEntryToAtom(d,this.km);this.Eg("PUT",a,l,e,h,{entryClass:j})};Df[t].kd=function(a,d,e){if(this.sc(a)&&!this.fb.Pa(a)){var h=this;this.fb.Ra(a,function(){h.sm(a,d,e)},e)}else{this.sm(a,d,e)}};D("google.gdata.client.Service.prototype.deleteEntry",Df[t].kd);Df[t].sm=function(a,d,e){this.Eg("DELETE",a,"",d,e)};Df[t].Eg=function(a,d,e,h,j,l){var p=E.util.copy(this.et);if(e){p["Content-Length"]=e[r];p["Content-Type"]=E.mimeType.ATOM+"; charset=UTF-8"}else{p["Content-Length"]=0}if((a=="PUT"||a=="DELETE"&&!E.runtime.isIe&&!E.runtime.isSafari)&&E.runtime[B]!=E.runtime.TYPE.OS){p["X-HTTP-Method-Override"]=a;a="POST"}else{delete p["X-HTTP-Method-Override"]}var s=this;this.fr(a,d,e,p,function(v){if(v&&v.feed){var F=l&&l.feedClass||s.feedClass;v.feed.$service_=s;if(F){v.feed=E.util.mutateTo(v.feed,F)}var x=v.feed.entry;if(x){for(var S=0;S<x[r];S++){x[S].$service_=s;if(s.qg){na(x[S],s.qg(x[S][Oa]))}}}}else{if(v&&v.entry){var M=l&&l.entryClass||s.entryClass;if(M){v.entry=E.util.mutateTo(v.entry,M)}v.entry.$service_=s;if(s.qg){na(v.entry,s.qg(v.entry[Oa]))}}}h[lb](this,arguments)},j)};Df[t].vr=function(a){for(var d in a){this.et[d]=a[d]}};D("google.gdata.client.Service.prototype.setHeaders",Df[t].vr);var Ff=function(a,d){Df[z](this,a,d);this.ys=this.tt=this.Ht=c;this.Qb[E.client.alt.ATOM]=b;this.Qb[E.client.alt.ATOM_IN_SCRIPT]=b;this.Qb[E.client.alt.RSS]=b;this.Qb[E.client.alt.RSS_IN_SCRIPT]=b;this.Qb[E.client.alt.JSON]=b;this.Qb[E.client.alt.JSON_IN_SCRIPT]=b;this.Qb[E.client.alt.JSON_XD]=b;this.Jg(b)};D("google.gdata.client.GoogleService",Ff);Ff.e(Df);Ff[t].Lg=Bf;Ff[t].nt="https";Ff[t].mt="www.google.com";Ff[t].tf=function(){return{username:this.Ht,password:this.tt,accountType:this.ys}};D("google.gdata.client.GoogleService.prototype.getUserCredentials",Ff[t].tf);Ff[t].gs=function(a,d,e){this.Ht=a;this.tt=d;this.ys=e||c;this.fb=new yf(this)};D("google.gdata.client.GoogleService.prototype.setUserCredentials",Ff[t].gs);Ff[t].hr=function(a,d){this.fb=new Af(this,a,d)};D("google.gdata.client.GoogleService.prototype.setAuthenticationCookie",Ff[t].hr);Ff[t].zi=function(a,d){this.fb=new Cf(this,a,d)};D("google.gdata.client.GoogleService.prototype.setGadgetsAuthentication",Ff[t].zi);Ff[t].ms=function(a,d){d=d||{};d[gadgets.io.RequestParameters.OAUTH_SERVICE_NAME]=a;this.zi(gadgets.io.AuthorizationType.OAUTH,d)};D("google.gdata.client.GoogleService.prototype.useOAuth",Ff[t].ms);Ff[t].sc=function(a){return this.fb.nb(a)};var Gf=function(a,d){Ff[z](this,a,d);this.qg=function(e){return this.Gs(e.$t)};this.km=this.Ds[ob](this)};D("google.gdata.client.FeedServerService",Gf);Gf.e(Ff);Gf[t].Gs=function(a){return a?this.ph(E.util.convertXmlTextToJavaScript(a)):c};Gf[t].ph=function(a){return a.$t!=undefined?a.$t:Eb(a)?this.Cs(a):Ib(a)?this.Es(a):a};Gf[t].Cs=function(a){for(var d=[],e=0;e<a[r];e++){d[e]=this.ph(a[e])}return d};Gf[t].Es=function(a){var d={};for(var e in a){d[e]=this.ph(a[e])}return d};Gf[t].Ds=function(a,d,e){e[q]("<",a," type='application/xml'",">");this.mm("entity",d.entity,e);e[q]("</",a,">")};Gf[t].nm=function(a,d,e,h){var j=Db(d);if(j=="string"||j=="number"||j=="boolean"){e[q]("<",a,h?" repeatable='true'>":">",E.util.escapeXmlContent(d),"</",a,">")}else{if(j=="array"){this.Fs(a,d,e)}else{j=="object"?this.mm(a,d,e,h):e[q]("<",a,"/>")}}};Gf[t].mm=function(a,d,e,h){e[q]("<",a,h?" repeatable='true'>":">");for(var j in d){this.nm(j,d[j],e,g)}e[q]("</",a,">")};Gf[t].Fs=function(a,d,e){for(var h=0;h<d[r];h++){this.nm(a,d[h],e,h==0)}};var Hf=function(a){this.feedUri=a;this.Zq={};this.Yq=E.util.copy(this.qs)};D("google.gdata.client.Query",Hf);Hf[t].qs={alt:{defaultValue:E.client.alt.ATOM}};Hf[t].v=function(a,d){this.Yq[a]=d};D("google.gdata.client.Query.prototype.setParamDef",Hf[t].v);Hf[t].d=function(a,d){this.Zq[a]=d};D("google.gdata.client.Query.prototype.setParam",Hf[t].d);Hf[t].Me=function(){var a=[];for(var d in this.Zq){var e=this.c(d);if(e!==c){var h=this.Yq[d];if(h!==undefined&&h.decorator){e=h.decorator(e)}else{if(e instanceof ff){e=gf(e)}}a[q](d+"="+ba(e))}}var j=a[xb]("&");return j[r]?"?"+j:""};D("google.gdata.client.Query.prototype.getPath",Hf[t].Me);Hf[t].Oa=function(){return this.feedUri+this.Me()};D("google.gdata.client.Query.prototype.getUri",Hf[t].Oa);Hf[t].c=function(a){var d=this.Zq[a],e=this.Yq[a];if(d!==undefined&&(e===undefined||d!==e.defaultValue)){return d}return c};D("google.gdata.client.Query.prototype.getParam",Hf[t].c);E.onLoad=function(){df()};D("google.gdata.onLoad",E.onLoad);Hb(Ab.GData_API_callback)&&Ab.GData_API_callback();E.opensearch={};E.opensearch.namespace={};E.opensearch.namespace.OPENSEARCH="http://a9.com/-/spec/opensearchrss/1.0/";var dg=function(a){if(a){this.a(a[w])}else{this.$t=this.$t}};D("google.gdata.opensearch.ItemsPerPage",dg);dg[t].b=function(){return this.$t===undefined?undefined:k(this.$t)};D("google.gdata.opensearch.ItemsPerPage.prototype.getValue",dg[t].b);dg[t].a=function(a){this.$t=a===undefined?undefined:i(a)};D("google.gdata.opensearch.ItemsPerPage.prototype.setValue",dg[t].a);var eg=function(a){if(a){this.a(a[w])}else{this.$t=this.$t}};D("google.gdata.opensearch.StartIndex",eg);eg[t].b=function(){return this.$t===undefined?undefined:k(this.$t)};D("google.gdata.opensearch.StartIndex.prototype.getValue",eg[t].b);eg[t].a=function(a){this.$t=a===undefined?undefined:i(a)};D("google.gdata.opensearch.StartIndex.prototype.setValue",eg[t].a);var fg=function(a){if(a){this.a(a[w])}else{this.$t=this.$t}};D("google.gdata.opensearch.TotalResults",fg);fg[t].b=function(){return this.$t===undefined?undefined:k(this.$t)};D("google.gdata.opensearch.TotalResults.prototype.getValue",fg[t].b);fg[t].a=function(a){this.$t=a===undefined?undefined:i(a)};D("google.gdata.opensearch.TotalResults.prototype.setValue",fg[t].a);D("google.gdata.ItemsPerPage",dg);D("google.gdata.StartIndex",eg);D("google.gdata.TotalResults",fg);E.geo={};E.geo.namespace={};E.geo.namespace.GEO="http://www.w3.org/2003/01/geo/wgs84_pos#";E.geo.namespace.GEORSS="http://www.georss.org/georss";E.geo.namespace.GML="http://www.opengis.net/gml";var Fj=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.geo.GeoLat",Fj);Fj[t].b=function(){return this.$t};D("google.gdata.geo.GeoLat.prototype.getValue",Fj[t].b);Fj[t].a=function(a){this.$t=a};D("google.gdata.geo.GeoLat.prototype.setValue",Fj[t].a);var Gj=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.geo.GeoLong",Gj);Gj[t].b=function(){return this.$t};D("google.gdata.geo.GeoLong.prototype.getValue",Gj[t].b);Gj[t].a=function(a){this.$t=a};D("google.gdata.geo.GeoLong.prototype.setValue",Gj[t].a);var Hj=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.geo.GeoRssBox",Hj);Hj[t].b=function(){return this.$t};D("google.gdata.geo.GeoRssBox.prototype.getValue",Hj[t].b);Hj[t].a=function(a){this.$t=a};D("google.gdata.geo.GeoRssBox.prototype.setValue",Hj[t].a);var Ij=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.geo.GeoRssPoint",Ij);Ij[t].b=function(){return this.$t};D("google.gdata.geo.GeoRssPoint.prototype.getValue",Ij[t].b);Ij[t].a=function(a){this.$t=a};D("google.gdata.geo.GeoRssPoint.prototype.setValue",Ij[t].a);var Jj=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.geo.GmlLowerCorner",Jj);Jj[t].b=function(){return this.$t};D("google.gdata.geo.GmlLowerCorner.prototype.getValue",Jj[t].b);Jj[t].a=function(a){this.$t=a};D("google.gdata.geo.GmlLowerCorner.prototype.setValue",Jj[t].a);var Kj=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.geo.GmlPos",Kj);Kj[t].b=function(){return this.$t};D("google.gdata.geo.GmlPos.prototype.getValue",Kj[t].b);Kj[t].a=function(a){this.$t=a};D("google.gdata.geo.GmlPos.prototype.setValue",Kj[t].a);var Lj=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.geo.GmlUpperCorner",Lj);Lj[t].b=function(){return this.$t};D("google.gdata.geo.GmlUpperCorner.prototype.getValue",Lj[t].b);Lj[t].a=function(a){this.$t=a};D("google.gdata.geo.GmlUpperCorner.prototype.setValue",Lj[t].a);var Mj=function(a){if(!C(this.Mk)){this.Mk=Fj}if(!C(this.Ok)){this.Ok=Gj}if(a){this.Bi(a.geoLatitude);this.Di(a.geoLongitude)}else{this.geo$lat=E.util.mutateTo(this.geo$lat,this.Mk);this.geo$long=E.util.mutateTo(this.geo$long,this.Ok)}};D("google.gdata.geo.W3CPoint",Mj);Mj[t].ao=function(){return this.geo$lat};D("google.gdata.geo.W3CPoint.prototype.getGeoLatitude",Mj[t].ao);Mj[t].Bi=function(a){if(a&&a[u]===m){a=new this.Mk(a)}this.geo$lat=a};D("google.gdata.geo.W3CPoint.prototype.setGeoLatitude",Mj[t].Bi);Mj[t].co=function(){return this.geo$long};D("google.gdata.geo.W3CPoint.prototype.getGeoLongitude",Mj[t].co);Mj[t].Di=function(a){if(a&&a[u]===m){a=new this.Ok(a)}this.geo$long=a};D("google.gdata.geo.W3CPoint.prototype.setGeoLongitude",Mj[t].Di);var Nj=function(a){if(!C(this.bl)){this.bl=Jj}if(!C(this.Zl)){this.Zl=Lj}if(a){this.Vi(a.lowerCorner);this.Zj(a.upperCorner)}else{this.gml$lowerCorner=E.util.mutateTo(this.gml$lowerCorner,this.bl);this.gml$upperCorner=E.util.mutateTo(this.gml$upperCorner,this.Zl)}};D("google.gdata.geo.GmlEnvelope",Nj);Nj[t].Lo=function(){return this.gml$lowerCorner};D("google.gdata.geo.GmlEnvelope.prototype.getLowerCorner",Nj[t].Lo);Nj[t].Vi=function(a){if(a&&a[u]===m){a=new this.bl(a)}this.gml$lowerCorner=a};D("google.gdata.geo.GmlEnvelope.prototype.setLowerCorner",Nj[t].Vi);Nj[t].Kq=function(){return this.gml$upperCorner};D("google.gdata.geo.GmlEnvelope.prototype.getUpperCorner",Nj[t].Kq);Nj[t].Zj=function(a){if(a&&a[u]===m){a=new this.Zl(a)}this.gml$upperCorner=a};D("google.gdata.geo.GmlEnvelope.prototype.setUpperCorner",Nj[t].Zj);var Oj=function(a){if(!C(this.ol)){this.ol=Kj}if(a){this.mj(a.pos)}else{this.gml$pos=E.util.mutateTo(this.gml$pos,this.ol)}};D("google.gdata.geo.GmlPoint",Oj);Oj[t].vp=function(){return this.gml$pos};D("google.gdata.geo.GmlPoint.prototype.getPos",Oj[t].vp);Oj[t].mj=function(a){if(a&&a[u]===m){a=new this.ol(a)}this.gml$pos=a};D("google.gdata.geo.GmlPoint.prototype.setPos",Oj[t].mj);var Pj=function(a){if(!C(this.Gk)){this.Gk=Nj}if(!C(this.ml)){this.ml=Oj}if(a){this.qi(a.envelope);this.jj(a.point)}else{this.gml$Envelope=E.util.mutateTo(this.gml$Envelope,this.Gk);this.gml$Point=E.util.mutateTo(this.gml$Point,this.ml)}};D("google.gdata.geo.GeoRssWhere",Pj);Pj[t].Gn=function(){return this.gml$Envelope};D("google.gdata.geo.GeoRssWhere.prototype.getEnvelope",Pj[t].Gn);Pj[t].qi=function(a){if(a&&a[u]===m){a=new this.Gk(a)}this.gml$Envelope=a};D("google.gdata.geo.GeoRssWhere.prototype.setEnvelope",Pj[t].qi);Pj[t].qp=function(){return this.gml$Point};D("google.gdata.geo.GeoRssWhere.prototype.getPoint",Pj[t].qp);Pj[t].jj=function(a){if(a&&a[u]===m){a=new this.ml(a)}this.gml$Point=a};D("google.gdata.geo.GeoRssWhere.prototype.setPoint",Pj[t].jj);function If(a,d){return a.title=d}E.atom={};E.atom.namespace={};E.atom.namespace.ATOM="http://www.w3.org/2005/Atom";E.atom.namespace.XML="http://www.w3.org/XML/1998/namespace";var Jf=function(a){if(a){xa(this,a[tb]);this.xml$lang=a.labelLang;pa(this,a[Qa]);this.term=a.term}else{xa(this,this[tb]);this.xml$lang=this.xml$lang;pa(this,this[Qa]);this.term=this.term}};D("google.gdata.atom.Category",Jf);Jf[t].I=function(){return this[tb]};D("google.gdata.atom.Category.prototype.getLabel",Jf[t].I);Jf[t].J=function(a){xa(this,a)};D("google.gdata.atom.Category.prototype.setLabel",Jf[t].J);Jf[t].Eo=function(){return this.xml$lang};D("google.gdata.atom.Category.prototype.getLabelLang",Jf[t].Eo);Jf[t].Br=function(a){this.xml$lang=a};D("google.gdata.atom.Category.prototype.setLabelLang",Jf[t].Br);Jf[t].ya=function(){return this[Qa]};D("google.gdata.atom.Category.prototype.getScheme",Jf[t].ya);Jf[t].na=function(a){pa(this,a)};D("google.gdata.atom.Category.prototype.setScheme",Jf[t].na);Jf[t].zq=function(){return this.term};D("google.gdata.atom.Category.prototype.getTerm",Jf[t].zq);Jf[t].cs=function(a){this.term=a};D("google.gdata.atom.Category.prototype.setTerm",Jf[t].cs);var Kf=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.atom.Email",Kf);Kf[t].b=function(){return this.$t};D("google.gdata.atom.Email.prototype.getValue",Kf[t].b);Kf[t].a=function(a){this.$t=a};D("google.gdata.atom.Email.prototype.setValue",Kf[t].a);var Lf=function(a){if(a){this.$t=a[qb];this.uri=a.uri;this.version=a[Ea]}else{this.$t=this.$t;this.uri=this.uri;this.version=this[Ea]}};D("google.gdata.atom.Generator",Lf);Lf[t].u=function(){return this.$t};D("google.gdata.atom.Generator.prototype.getName",Lf[t].u);Lf[t].D=function(a){this.$t=a};D("google.gdata.atom.Generator.prototype.setName",Lf[t].D);Lf[t].Oa=function(){return this.uri};D("google.gdata.atom.Generator.prototype.getUri",Lf[t].Oa);Lf[t].sb=function(a){this.uri=a};D("google.gdata.atom.Generator.prototype.setUri",Lf[t].sb);Lf[t].Oq=function(){return this[Ea]};D("google.gdata.atom.Generator.prototype.getVersion",Lf[t].Oq);Lf[t].hs=function(a){this.version=a};D("google.gdata.atom.Generator.prototype.setVersion",Lf[t].hs);var Mf=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.atom.Id",Mf);Mf[t].b=function(){return this.$t};D("google.gdata.atom.Id.prototype.getValue",Mf[t].b);Mf[t].a=function(a){this.$t=a};D("google.gdata.atom.Id.prototype.setValue",Mf[t].a);var Nf=function(a){if(a){va(this,a[A]);this.hreflang=a.hrefLang;this.Ri(a[r]);this.rel=a.rel;If(this,a[Da]);this.xml$lang=a.titleLang;o(this,a[B])}else{va(this,this[A]);this.hreflang=this.hreflang;la(this,this[r]);this.rel=this.rel;If(this,this[Da]);this.xml$lang=this.xml$lang;o(this,this[B])}};D("google.gdata.atom.Link",Nf);Nf[t].T=function(){return this[A]};D("google.gdata.atom.Link.prototype.getHref",Nf[t].T);Nf[t].N=function(a){va(this,a)};D("google.gdata.atom.Link.prototype.setHref",Nf[t].N);Nf[t].no=function(){return this.hreflang};D("google.gdata.atom.Link.prototype.getHrefLang",Nf[t].no);Nf[t].wr=function(a){this.hreflang=a};D("google.gdata.atom.Link.prototype.setHrefLang",Nf[t].wr);Nf[t].Go=function(){return this[r]===undefined?undefined:k(this[r])};D("google.gdata.atom.Link.prototype.getLength",Nf[t].Go);Nf[t].Ri=function(a){la(this,a===undefined?undefined:i(a))};D("google.gdata.atom.Link.prototype.setLength",Nf[t].Ri);Nf[t].q=function(){return this.rel};D("google.gdata.atom.Link.prototype.getRel",Nf[t].q);Nf[t].p=function(a){this.rel=a};D("google.gdata.atom.Link.prototype.setRel",Nf[t].p);D("google.gdata.atom.Link.REL_ALTERNATE","alternate");D("google.gdata.atom.Link.REL_ENCLOSURE","enclosure");D("google.gdata.atom.Link.REL_ENTRY_EDIT","edit");D("google.gdata.atom.Link.REL_MEDIA_EDIT","edit-media");D("google.gdata.atom.Link.REL_NEXT","next");D("google.gdata.atom.Link.REL_PREVIOUS","previous");D("google.gdata.atom.Link.REL_RELATED","related");D("google.gdata.atom.Link.REL_SELF","self");D("google.gdata.atom.Link.REL_VIA","via");Nf[t].fa=function(){return this[Da]};D("google.gdata.atom.Link.prototype.getTitle",Nf[t].fa);Nf[t].K=function(a){If(this,a)};D("google.gdata.atom.Link.prototype.setTitle",Nf[t].K);Nf[t].Dq=function(){return this.xml$lang};D("google.gdata.atom.Link.prototype.getTitleLang",Nf[t].Dq);Nf[t].ds=function(a){this.xml$lang=a};D("google.gdata.atom.Link.prototype.setTitleLang",Nf[t].ds);Nf[t].o=function(){return this[B]};D("google.gdata.atom.Link.prototype.getType",Nf[t].o);Nf[t].l=function(a){o(this,a)};D("google.gdata.atom.Link.prototype.setType",Nf[t].l);D("google.gdata.atom.Link.TYPE_ATOM","application/atom+xml");D("google.gdata.atom.Link.TYPE_HTML","text/html");var Of=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.atom.Logo",Of);Of[t].b=function(){return this.$t};D("google.gdata.atom.Logo.prototype.getValue",Of[t].b);Of[t].a=function(a){this.$t=a};D("google.gdata.atom.Logo.prototype.setValue",Of[t].a);var Pf=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.atom.Name",Pf);Pf[t].b=function(){return this.$t};D("google.gdata.atom.Name.prototype.getValue",Pf[t].b);Pf[t].a=function(a){this.$t=a};D("google.gdata.atom.Name.prototype.setValue",Pf[t].a);var Qf=function(a){if(a){this.a(a[w])}else{this.$t=this.$t}};D("google.gdata.atom.Published",Qf);Qf[t].b=function(){return this.$t===undefined?undefined:G(this.$t)};D("google.gdata.atom.Published.prototype.getValue",Qf[t].b);Qf[t].a=function(a){this.$t=a===undefined?undefined:gf(a)};D("google.gdata.atom.Published.prototype.setValue",Qf[t].a);var Rf=function(a){if(a){this.xml$lang=a[Ga];this.$t=a.text;o(this,a[B]);this.src=a.uri}else{this.xml$lang=this.xml$lang;this.$t=this.$t;o(this,this[B]);this.src=this.src}};D("google.gdata.atom.Text",Rf);Rf[t].Ge=function(){return this.xml$lang};D("google.gdata.atom.Text.prototype.getLang",Rf[t].Ge);Rf[t].Gf=function(a){this.xml$lang=a};D("google.gdata.atom.Text.prototype.setLang",Rf[t].Gf);Rf[t].Aq=function(){return this.$t};D("google.gdata.atom.Text.prototype.getText",Rf[t].Aq);Rf[t].Tj=function(a){this.$t=a};D("google.gdata.atom.Text.prototype.setText",Rf[t].Tj);Rf[t].o=function(){return this[B]};D("google.gdata.atom.Text.prototype.getType",Rf[t].o);Rf[t].l=function(a){o(this,a)};D("google.gdata.atom.Text.prototype.setType",Rf[t].l);Rf[t].Oa=function(){return this.src};D("google.gdata.atom.Text.prototype.getUri",Rf[t].Oa);Rf[t].sb=function(a){this.src=a};D("google.gdata.atom.Text.prototype.setUri",Rf[t].sb);var Sf=function(a,d){var e=new Rf;e.Tj(a);e.l(d||"text");return e};D("google.gdata.atom.Text.create",Sf);var Tf=function(a){if(a){this.a(a[w])}else{this.$t=this.$t}};D("google.gdata.atom.Updated",Tf);Tf[t].b=function(){return this.$t===undefined?undefined:G(this.$t)};D("google.gdata.atom.Updated.prototype.getValue",Tf[t].b);Tf[t].a=function(a){this.$t=a===undefined?undefined:gf(a)};D("google.gdata.atom.Updated.prototype.setValue",Tf[t].a);var Uf=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.atom.Uri",Uf);Uf[t].b=function(){return this.$t};D("google.gdata.atom.Uri.prototype.getValue",Uf[t].b);Uf[t].a=function(a){this.$t=a};D("google.gdata.atom.Uri.prototype.setValue",Uf[t].a);var Vf=function(a){if(!C(this.Dk)){this.Dk=Kf}if(!C(this.dl)){this.dl=Pf}if(!C(this.$l)){this.$l=Uf}if(a){this.ud(a.email);this.D(a[qb]);this.xml$lang=a.nameLang;this.sb(a.uri)}else{this.email=E.util.mutateTo(this.email,this.Dk);wa(this,E.util.mutateTo(this[qb],this.dl));this.xml$lang=this.xml$lang;this.uri=E.util.mutateTo(this.uri,this.$l)}};D("google.gdata.atom.Person",Vf);Vf[t].ye=function(){return this.email};D("google.gdata.atom.Person.prototype.getEmail",Vf[t].ye);Vf[t].ud=function(a){if(a&&a[u]===m){a=new this.Dk(a)}this.email=a};D("google.gdata.atom.Person.prototype.setEmail",Vf[t].ud);Vf[t].u=function(){return this[qb]};D("google.gdata.atom.Person.prototype.getName",Vf[t].u);Vf[t].D=function(a){if(a&&a[u]===m){a=new this.dl(a)}wa(this,a)};D("google.gdata.atom.Person.prototype.setName",Vf[t].D);Vf[t].$o=function(){return this.xml$lang};D("google.gdata.atom.Person.prototype.getNameLang",Vf[t].$o);Vf[t].Kr=function(a){this.xml$lang=a};D("google.gdata.atom.Person.prototype.setNameLang",Vf[t].Kr);Vf[t].Oa=function(){return this.uri};D("google.gdata.atom.Person.prototype.getUri",Vf[t].Oa);Vf[t].sb=function(a){if(a&&a[u]===m){a=new this.$l(a)}this.uri=a};D("google.gdata.atom.Person.prototype.setUri",Vf[t].sb);var H=function(a){if(!C(this.Cd)){this.Cd=Vf}if(!C(this.Ea)){this.Ea=Jf}if(!C(this.ig)){this.ig=Rf}if(!C(this.Dd)){this.Dd=Vf}if(!C(this.Nd)){this.Nd=Mf}if(!C(this.n)){this.n=Nf}if(!C(this.vl)){this.vl=Qf}if(!C(this.Yd)){this.Yd=Rf}if(!C(this.Ol)){this.Ol=Rf}if(!C(this.pa)){this.pa=Rf}if(!C(this.ge)){this.ge=Tf}if(a){this.vc(a.authors);this.ka(a.categories);this.r(a[Oa]);this.xc(a.contributors);this.Ba(a.id);this.Ic(a.links);this.tj(a.published);this.Yc(a.rights);this.Oj(a.summary);this.K(a[Da]);this.db(a.updated)}else{if(this.author){for(var d=this.author,e=0;e<d[r];e++){this.author[e]=E.util.mutateTo(d[e],this.Cd)}}else{this.author=[]}if(this.category){d=this.category;for(e=0;e<d[r];e++){this.category[e]=E.util.mutateTo(d[e],this.Ea)}}else{this.category=[]}na(this,E.util.mutateTo(this[Oa],this.ig));if(this.contributor){d=this.contributor;for(e=0;e<d[r];e++){this.contributor[e]=E.util.mutateTo(d[e],this.Dd)}}else{this.contributor=[]}this.id=E.util.mutateTo(this.id,this.Nd);if(this.link){d=this.link;for(e=0;e<d[r];e++){this.link[e]=E.util.mutateTo(d[e],this.n)}}else{this.link=[]}this.published=E.util.mutateTo(this.published,this.vl);this.rights=E.util.mutateTo(this.rights,this.Yd);this.summary=E.util.mutateTo(this.summary,this.Ol);If(this,E.util.mutateTo(this[Da],this.pa));this.updated=E.util.mutateTo(this.updated,this.ge)}};D("google.gdata.atom.Entry",H);H[t].jd=E.atom.namespace.ATOM;D("google.gdata.atom.Entry.prototype.xmlns",H[t].jd);H[t].Rf=E.atom.namespace.XML;D("google.gdata.atom.Entry.prototype.xmlns$xml",H[t].Rf);H[t].me=function(){return this.author};D("google.gdata.atom.Entry.prototype.getAuthors",H[t].me);H[t].vc=function(a){this.author=[];if(a){for(var d=0;d<a[r];d++){this.Wb(a[d])}}};D("google.gdata.atom.Entry.prototype.setAuthors",H[t].vc);H[t].Wb=function(a){if(a[u]===m){a=new this.Cd(a)}this.author[q](a)};D("google.gdata.atom.Entry.prototype.addAuthor",H[t].Wb);H[t].Ga=function(){return this.category};D("google.gdata.atom.Entry.prototype.getCategories",H[t].Ga);H[t].ka=function(a){this.category=[];if(a){for(var d=0;d<a[r];d++){this.ia(a[d])}}};D("google.gdata.atom.Entry.prototype.setCategories",H[t].ka);H[t].ia=function(a){if(a[u]===m){a=new this.Ea(a)}this.category[q](a)};D("google.gdata.atom.Entry.prototype.addCategory",H[t].ia);H[t].s=function(){return this[Oa]};D("google.gdata.atom.Entry.prototype.getContent",H[t].s);H[t].r=function(a){if(a&&a[u]===m){a=new this.ig(a)}na(this,a)};D("google.gdata.atom.Entry.prototype.setContent",H[t].r);H[t].qe=function(){return this.contributor};D("google.gdata.atom.Entry.prototype.getContributors",H[t].qe);H[t].xc=function(a){this.contributor=[];if(a){for(var d=0;d<a[r];d++){this.Xb(a[d])}}};D("google.gdata.atom.Entry.prototype.setContributors",H[t].xc);H[t].Xb=function(a){if(a[u]===m){a=new this.Dd(a)}this.contributor[q](a)};D("google.gdata.atom.Entry.prototype.addContributor",H[t].Xb);H[t].Ia=function(){return this.id};D("google.gdata.atom.Entry.prototype.getId",H[t].Ia);H[t].Ba=function(a){if(a&&a[u]===m){a=new this.Nd(a)}this.id=a};D("google.gdata.atom.Entry.prototype.setId",H[t].Ba);H[t].He=function(){return this.link};D("google.gdata.atom.Entry.prototype.getLinks",H[t].He);H[t].Ic=function(a){this.link=[];if(a){for(var d=0;d<a[r];d++){this.Zb(a[d])}}};D("google.gdata.atom.Entry.prototype.setLinks",H[t].Ic);H[t].Zb=function(a){if(a[u]===m){a=new this.n(a)}this.link[q](a)};D("google.gdata.atom.Entry.prototype.addLink",H[t].Zb);H[t].Ip=function(){return this.published};D("google.gdata.atom.Entry.prototype.getPublished",H[t].Ip);H[t].tj=function(a){if(a&&a[u]===m){a=new this.vl(a)}this.published=a};D("google.gdata.atom.Entry.prototype.setPublished",H[t].tj);H[t].cf=function(){return this.rights};D("google.gdata.atom.Entry.prototype.getRights",H[t].cf);H[t].Yc=function(a){if(a&&a[u]===m){a=new this.Yd(a)}this.rights=a};D("google.gdata.atom.Entry.prototype.setRights",H[t].Yc);H[t].tq=function(){return this.summary};D("google.gdata.atom.Entry.prototype.getSummary",H[t].tq);H[t].Oj=function(a){if(a&&a[u]===m){a=new this.Ol(a)}this.summary=a};D("google.gdata.atom.Entry.prototype.setSummary",H[t].Oj);H[t].fa=function(){return this[Da]};D("google.gdata.atom.Entry.prototype.getTitle",H[t].fa);H[t].K=function(a){if(a&&a[u]===m){a=new this.pa(a)}If(this,a)};D("google.gdata.atom.Entry.prototype.setTitle",H[t].K);H[t].Gb=function(){return this.updated};D("google.gdata.atom.Entry.prototype.getUpdated",H[t].Gb);H[t].db=function(a){if(a&&a[u]===m){a=new this.ge(a)}this.updated=a};D("google.gdata.atom.Entry.prototype.setUpdated",H[t].db);var I=function(a){if(!C(this.Cd)){this.Cd=Vf}if(!C(this.Ea)){this.Ea=Jf}if(!C(this.Dd)){this.Dd=Vf}if(!C(this.m)){this.m=H}if(!C(this.Lk)){this.Lk=Lf}if(!C(this.Nd)){this.Nd=Mf}if(!C(this.n)){this.n=Nf}if(!C(this.al)){this.al=Of}if(!C(this.Yd)){this.Yd=Rf}if(!C(this.Nl)){this.Nl=Rf}if(!C(this.pa)){this.pa=Rf}if(!C(this.ge)){this.ge=Tf}if(a){this.vc(a.authors);this.xml$base=a.base;this.ka(a.categories);this.xc(a.contributors);this.oi(a.entries);this.Ai(a.generator);this.Ba(a.id);this.Ic(a.links);this.Ui(a.logo);this.Yc(a.rights);this.Hg(a.subtitle);this.K(a[Da]);this.db(a.updated)}else{if(this.author){for(var d=this.author,e=0;e<d[r];e++){this.author[e]=E.util.mutateTo(d[e],this.Cd)}}else{this.author=[]}this.xml$base=this.xml$base;if(this.category){d=this.category;for(e=0;e<d[r];e++){this.category[e]=E.util.mutateTo(d[e],this.Ea)}}else{this.category=[]}if(this.contributor){d=this.contributor;for(e=0;e<d[r];e++){this.contributor[e]=E.util.mutateTo(d[e],this.Dd)}}else{this.contributor=[]}if(this.entry){d=this.entry;for(e=0;e<d[r];e++){this.entry[e]=E.util.mutateTo(d[e],this.m)}}else{this.entry=[]}this.generator=E.util.mutateTo(this.generator,this.Lk);this.id=E.util.mutateTo(this.id,this.Nd);if(this.link){d=this.link;for(e=0;e<d[r];e++){this.link[e]=E.util.mutateTo(d[e],this.n)}}else{this.link=[]}this.logo=E.util.mutateTo(this.logo,this.al);this.rights=E.util.mutateTo(this.rights,this.Yd);this.subtitle=E.util.mutateTo(this.subtitle,this.Nl);If(this,E.util.mutateTo(this[Da],this.pa));this.updated=E.util.mutateTo(this.updated,this.ge)}};D("google.gdata.atom.Feed",I);I[t].jd=E.atom.namespace.ATOM;D("google.gdata.atom.Feed.prototype.xmlns",I[t].jd);I[t].Rf=E.atom.namespace.XML;D("google.gdata.atom.Feed.prototype.xmlns$xml",I[t].Rf);I[t].me=function(){return this.author};D("google.gdata.atom.Feed.prototype.getAuthors",I[t].me);I[t].vc=function(a){this.author=[];if(a){for(var d=0;d<a[r];d++){this.Wb(a[d])}}};D("google.gdata.atom.Feed.prototype.setAuthors",I[t].vc);I[t].Wb=function(a){if(a[u]===m){a=new this.Cd(a)}this.author[q](a)};D("google.gdata.atom.Feed.prototype.addAuthor",I[t].Wb);I[t].Om=function(){return this.xml$base};D("google.gdata.atom.Feed.prototype.getBase",I[t].Om);I[t].ir=function(a){this.xml$base=a};D("google.gdata.atom.Feed.prototype.setBase",I[t].ir);I[t].Ga=function(){return this.category};D("google.gdata.atom.Feed.prototype.getCategories",I[t].Ga);I[t].ka=function(a){this.category=[];if(a){for(var d=0;d<a[r];d++){this.ia(a[d])}}};D("google.gdata.atom.Feed.prototype.setCategories",I[t].ka);I[t].ia=function(a){if(a[u]===m){a=new this.Ea(a)}this.category[q](a)};D("google.gdata.atom.Feed.prototype.addCategory",I[t].ia);I[t].qe=function(){return this.contributor};D("google.gdata.atom.Feed.prototype.getContributors",I[t].qe);I[t].xc=function(a){this.contributor=[];if(a){for(var d=0;d<a[r];d++){this.Xb(a[d])}}};D("google.gdata.atom.Feed.prototype.setContributors",I[t].xc);I[t].Xb=function(a){if(a[u]===m){a=new this.Dd(a)}this.contributor[q](a)};D("google.gdata.atom.Feed.prototype.addContributor",I[t].Xb);I[t].Fn=function(){return this.entry};D("google.gdata.atom.Feed.prototype.getEntries",I[t].Fn);I[t].oi=function(a){this.entry=[];if(a){for(var d=0;d<a[r];d++){this.Vg(a[d])}}};D("google.gdata.atom.Feed.prototype.setEntries",I[t].oi);I[t].Vg=function(a){if(a[u]===m){a=new this.m(a)}this.entry[q](a)};D("google.gdata.atom.Feed.prototype.addEntry",I[t].Vg);I[t].$n=function(){return this.generator};D("google.gdata.atom.Feed.prototype.getGenerator",I[t].$n);I[t].Ai=function(a){if(a&&a[u]===m){a=new this.Lk(a)}this.generator=a};D("google.gdata.atom.Feed.prototype.setGenerator",I[t].Ai);I[t].Ia=function(){return this.id};D("google.gdata.atom.Feed.prototype.getId",I[t].Ia);I[t].Ba=function(a){if(a&&a[u]===m){a=new this.Nd(a)}this.id=a};D("google.gdata.atom.Feed.prototype.setId",I[t].Ba);I[t].He=function(){return this.link};D("google.gdata.atom.Feed.prototype.getLinks",I[t].He);I[t].Ic=function(a){this.link=[];if(a){for(var d=0;d<a[r];d++){this.Zb(a[d])}}};D("google.gdata.atom.Feed.prototype.setLinks",I[t].Ic);I[t].Zb=function(a){if(a[u]===m){a=new this.n(a)}this.link[q](a)};D("google.gdata.atom.Feed.prototype.addLink",I[t].Zb);I[t].Ko=function(){return this.logo};D("google.gdata.atom.Feed.prototype.getLogo",I[t].Ko);I[t].Ui=function(a){if(a&&a[u]===m){a=new this.al(a)}this.logo=a};D("google.gdata.atom.Feed.prototype.setLogo",I[t].Ui);I[t].cf=function(){return this.rights};D("google.gdata.atom.Feed.prototype.getRights",I[t].cf);I[t].Yc=function(a){if(a&&a[u]===m){a=new this.Yd(a)}this.rights=a};D("google.gdata.atom.Feed.prototype.setRights",I[t].Yc);I[t].zh=function(){return this.subtitle};D("google.gdata.atom.Feed.prototype.getSubtitle",I[t].zh);I[t].Hg=function(a){if(a&&a[u]===m){a=new this.Nl(a)}this.subtitle=a};D("google.gdata.atom.Feed.prototype.setSubtitle",I[t].Hg);I[t].fa=function(){return this[Da]};D("google.gdata.atom.Feed.prototype.getTitle",I[t].fa);I[t].K=function(a){if(a&&a[u]===m){a=new this.pa(a)}If(this,a)};D("google.gdata.atom.Feed.prototype.setTitle",I[t].K);I[t].Gb=function(){return this.updated};D("google.gdata.atom.Feed.prototype.getUpdated",I[t].Gb);I[t].db=function(a){if(a&&a[u]===m){a=new this.ge(a)}this.updated=a};D("google.gdata.atom.Feed.prototype.setUpdated",I[t].db);D("google.gdata.Category",Jf);D("google.gdata.Generator",Lf);D("google.gdata.Id",Mf);D("google.gdata.Person",Vf);D("google.gdata.Published",Qf);D("google.gdata.Text",Rf);D("google.gdata.Updated",Tf);D("google.gdata.Uri",Uf);I[t].rq=function(){return this.zh()};D("google.gdata.atom.Feed.prototype.getSubTitle",I[t].rq);I[t].bs=function(a){return this.Hg(a)};D("google.gdata.atom.Feed.prototype.setSubTitle",I[t].bs);H[t].ne=function(){return Jf};D("google.gdata.atom.Entry.prototype.getCategoryClass",H[t].ne);H[t].H=function(){return Nf};D("google.gdata.atom.Entry.prototype.getLinkClass",H[t].H);I[t].ne=function(){return Jf};D("google.gdata.atom.Feed.prototype.getCategoryClass",I[t].ne);I[t].da=function(){return H};D("google.gdata.atom.Feed.prototype.getEntryClass",I[t].da);I[t].H=function(){return Nf};D("google.gdata.atom.Feed.prototype.getLinkClass",I[t].H);E.app={};E.app.namespace={};E.app.namespace.APP="http://purl.org/atom/app#";var Wf=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.app.Accept",Wf);Wf[t].b=function(){return this.$t};D("google.gdata.app.Accept.prototype.getValue",Wf[t].b);Wf[t].a=function(a){this.$t=a};D("google.gdata.app.Accept.prototype.setValue",Wf[t].a);var Xf=function(a){if(!C(this.Ea)){this.Ea=Jf}if(a){this.ka(a.categories);this.fixed=a.fixed;va(this,a[A]);pa(this,a[Qa])}else{if(this.category){for(var d=this.category,e=0;e<d[r];e++){this.category[e]=E.util.mutateTo(d[e],this.Ea)}}else{this.category=[]}this.fixed=this.fixed;va(this,this[A]);pa(this,this[Qa])}};D("google.gdata.app.Categories",Xf);Xf[t].Ga=function(){return this.category};D("google.gdata.app.Categories.prototype.getCategories",Xf[t].Ga);Xf[t].ka=function(a){this.category=[];if(a){for(var d=0;d<a[r];d++){this.ia(a[d])}}};D("google.gdata.app.Categories.prototype.setCategories",Xf[t].ka);Xf[t].ia=function(a){if(a[u]===m){a=new this.Ea(a)}this.category[q](a)};D("google.gdata.app.Categories.prototype.addCategory",Xf[t].ia);Xf[t].Sn=function(){return this.fixed};D("google.gdata.app.Categories.prototype.getFixed",Xf[t].Sn);Xf[t].qr=function(a){this.fixed=a};D("google.gdata.app.Categories.prototype.setFixed",Xf[t].qr);D("google.gdata.app.Categories.FIXED_NO","no");D("google.gdata.app.Categories.FIXED_YES","yes");Xf[t].T=function(){return this[A]};D("google.gdata.app.Categories.prototype.getHref",Xf[t].T);Xf[t].N=function(a){va(this,a)};D("google.gdata.app.Categories.prototype.setHref",Xf[t].N);Xf[t].ya=function(){return this[Qa]};D("google.gdata.app.Categories.prototype.getScheme",Xf[t].ya);Xf[t].na=function(a){pa(this,a)};D("google.gdata.app.Categories.prototype.setScheme",Xf[t].na);var Yf=function(a){if(!C(this.fk)){this.fk=Wf}if(!C(this.ok)){this.ok=Xf}if(!C(this.pa)){this.pa=Rf}if(a){this.Hh(a.accepts);this.Sh(a.categorieses);va(this,a[A]);this.K(a[Da])}else{if(this.app$accept){for(var d=this.app$accept,e=0;e<d[r];e++){this.app$accept[e]=E.util.mutateTo(d[e],this.fk)}}else{this.app$accept=[]}if(this.app$categories){d=this.app$categories;for(e=0;e<d[r];e++){this.app$categories[e]=E.util.mutateTo(d[e],this.ok)}}else{this.app$categories=[]}va(this,this[A]);If(this,E.util.mutateTo(this[Da],this.pa))}};D("google.gdata.app.Collection",Yf);Yf[t].wm=function(){return this.app$accept};D("google.gdata.app.Collection.prototype.getAccepts",Yf[t].wm);Yf[t].Hh=function(a){this.app$accept=[];if(a){for(var d=0;d<a[r];d++){this.Mg(a[d])}}};D("google.gdata.app.Collection.prototype.setAccepts",Yf[t].Hh);Yf[t].Mg=function(a){if(a[u]===m){a=new this.fk(a)}this.app$accept[q](a)};D("google.gdata.app.Collection.prototype.addAccept",Yf[t].Mg);Yf[t].Vm=function(){return this.app$categories};D("google.gdata.app.Collection.prototype.getCategorieses",Yf[t].Vm);Yf[t].Sh=function(a){this.app$categories=[];if(a){for(var d=0;d<a[r];d++){this.Og(a[d])}}};D("google.gdata.app.Collection.prototype.setCategorieses",Yf[t].Sh);Yf[t].Og=function(a){if(a[u]===m){a=new this.ok(a)}this.app$categories[q](a)};D("google.gdata.app.Collection.prototype.addCategories",Yf[t].Og);Yf[t].T=function(){return this[A]};D("google.gdata.app.Collection.prototype.getHref",Yf[t].T);Yf[t].N=function(a){va(this,a)};D("google.gdata.app.Collection.prototype.setHref",Yf[t].N);Yf[t].fa=function(){return this[Da]};D("google.gdata.app.Collection.prototype.getTitle",Yf[t].fa);Yf[t].K=function(a){if(a&&a[u]===m){a=new this.pa(a)}If(this,a)};D("google.gdata.app.Collection.prototype.setTitle",Yf[t].K);var Zf=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.app.Draft",Zf);Zf[t].b=function(){return this.$t};D("google.gdata.app.Draft.prototype.getValue",Zf[t].b);Zf[t].a=function(a){this.$t=a};D("google.gdata.app.Draft.prototype.setValue",Zf[t].a);D("google.gdata.app.Draft.VALUE_NO","no");D("google.gdata.app.Draft.VALUE_YES","yes");var $f=function(a){if(a){this.a(a[w])}else{this.$t=this.$t}};D("google.gdata.app.Edited",$f);$f[t].b=function(){return this.$t===undefined?undefined:G(this.$t)};D("google.gdata.app.Edited.prototype.getValue",$f[t].b);$f[t].a=function(a){this.$t=a===undefined?undefined:gf(a)};D("google.gdata.app.Edited.prototype.setValue",$f[t].a);var ag=function(a){if(!C(this.qk)){this.qk=Yf}if(!C(this.pa)){this.pa=Rf}if(a){this.Vh(a.collections);this.K(a[Da])}else{if(this.app$collection){for(var d=this.app$collection,e=0;e<d[r];e++){this.app$collection[e]=E.util.mutateTo(d[e],this.qk)}}else{this.app$collection=[]}If(this,E.util.mutateTo(this[Da],this.pa))}};D("google.gdata.app.Workspace",ag);ag[t].Zm=function(){return this.app$collection};D("google.gdata.app.Workspace.prototype.getCollections",ag[t].Zm);ag[t].Vh=function(a){this.app$collection=[];if(a){for(var d=0;d<a[r];d++){this.Pg(a[d])}}};D("google.gdata.app.Workspace.prototype.setCollections",ag[t].Vh);ag[t].Pg=function(a){if(a[u]===m){a=new this.qk(a)}this.app$collection[q](a)};D("google.gdata.app.Workspace.prototype.addCollection",ag[t].Pg);ag[t].fa=function(){return this[Da]};D("google.gdata.app.Workspace.prototype.getTitle",ag[t].fa);ag[t].K=function(a){if(a&&a[u]===m){a=new this.pa(a)}If(this,a)};D("google.gdata.app.Workspace.prototype.setTitle",ag[t].K);var bg=function(a){if(!C(this.Ak)){this.Ak=Zf}if(a){this.ii(a.draft)}else{this.app$draft=E.util.mutateTo(this.app$draft,this.Ak)}};D("google.gdata.app.Control",bg);bg[t].xn=function(){return this.app$draft};D("google.gdata.app.Control.prototype.getDraft",bg[t].xn);bg[t].ii=function(a){if(a&&a[u]===m){a=new this.Ak(a)}this.app$draft=a};D("google.gdata.app.Control.prototype.setDraft",bg[t].ii);var cg=function(a){if(!C(this.fm)){this.fm=ag}if(a){this.ek(a.workspaces)}else{if(this.app$workspace){for(var d=this.app$workspace,e=0;e<d[r];e++){this.app$workspace[e]=E.util.mutateTo(d[e],this.fm)}}else{this.app$workspace=[]}}};D("google.gdata.app.ServiceDocument",cg);cg[t].Sq=function(){return this.app$workspace};D("google.gdata.app.ServiceDocument.prototype.getWorkspaces",cg[t].Sq);cg[t].ek=function(a){this.app$workspace=[];if(a){for(var d=0;d<a[r];d++){this.kh(a[d])}}};D("google.gdata.app.ServiceDocument.prototype.setWorkspaces",cg[t].ek);cg[t].kh=function(a){if(a[u]===m){a=new this.fm(a)}this.app$workspace[q](a)};D("google.gdata.app.ServiceDocument.prototype.addWorkspace",cg[t].kh);D("google.gdata.Control",bg);D("google.gdata.Draft",Zf);D("google.gdata.Edited",$f);function gg(a,d){return a.readOnly=d}var hg="$service_",ig="readOnly";E.namespace={};E.namespace.GD="http://schemas.google.com/g/2005";var jg=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.Agent",jg);jg[t].b=function(){return this.$t};D("google.gdata.Agent.prototype.getValue",jg[t].b);jg[t].a=function(a){this.$t=a};D("google.gdata.Agent.prototype.setValue",jg[t].a);var kg=function(a){n(this,a?a[w]:this[w])};D("google.gdata.AttendeeStatus",kg);kg[t].b=function(){return this[w]};D("google.gdata.AttendeeStatus.prototype.getValue",kg[t].b);kg[t].a=function(a){n(this,a)};D("google.gdata.AttendeeStatus.prototype.setValue",kg[t].a);var lg=E.namespace.GD+"#event.accepted";D("google.gdata.AttendeeStatus.VALUE_ACCEPTED",lg);var mg=E.namespace.GD+"#event.declined";D("google.gdata.AttendeeStatus.VALUE_DECLINED",mg);var ng=E.namespace.GD+"#event.invited";D("google.gdata.AttendeeStatus.VALUE_INVITED",ng);var og=E.namespace.GD+"#event.tentative";D("google.gdata.AttendeeStatus.VALUE_TENTATIVE",og);var pg=function(a){n(this,a?a[w]:this[w])};D("google.gdata.AttendeeType",pg);pg[t].b=function(){return this[w]};D("google.gdata.AttendeeType.prototype.getValue",pg[t].b);pg[t].a=function(a){n(this,a)};D("google.gdata.AttendeeType.prototype.setValue",pg[t].a);var qg=E.namespace.GD+"#event.optional";D("google.gdata.AttendeeType.VALUE_OPTIONAL",qg);var rg=E.namespace.GD+"#event.required";D("google.gdata.AttendeeType.VALUE_REQUIRED",rg);var sg=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.City",sg);sg[t].b=function(){return this.$t};D("google.gdata.City.prototype.getValue",sg[t].b);sg[t].a=function(a){this.$t=a};D("google.gdata.City.prototype.setValue",sg[t].a);var tg=function(a){if(a){this.code=a.code;this.$t=a[w]}else{this.code=this.code;this.$t=this.$t}};D("google.gdata.Country",tg);tg[t].Ym=function(){return this.code};D("google.gdata.Country.prototype.getCode",tg[t].Ym);tg[t].jr=function(a){this.code=a};D("google.gdata.Country.prototype.setCode",tg[t].jr);tg[t].b=function(){return this.$t};D("google.gdata.Country.prototype.getValue",tg[t].b);tg[t].a=function(a){this.$t=a};D("google.gdata.Country.prototype.setValue",tg[t].a);var ug=function(a){if(a){wa(this,a[qb]);o(this,a[B]);this.unit=a.unit;this.$t=a[w]}else{wa(this,this[qb]);o(this,this[B]);this.unit=this.unit;this.$t=this.$t}};D("google.gdata.CustomProperty",ug);ug[t].u=function(){return this[qb]};D("google.gdata.CustomProperty.prototype.getName",ug[t].u);ug[t].D=function(a){wa(this,a)};D("google.gdata.CustomProperty.prototype.setName",ug[t].D);ug[t].o=function(){return this[B]};D("google.gdata.CustomProperty.prototype.getType",ug[t].o);ug[t].l=function(a){o(this,a)};D("google.gdata.CustomProperty.prototype.setType",ug[t].l);ug[t].Jq=function(){return this.unit};D("google.gdata.CustomProperty.prototype.getUnit",ug[t].Jq);ug[t].es=function(a){this.unit=a};D("google.gdata.CustomProperty.prototype.setUnit",ug[t].es);ug[t].b=function(){return this.$t};D("google.gdata.CustomProperty.prototype.getValue",ug[t].b);ug[t].a=function(a){this.$t=a};D("google.gdata.CustomProperty.prototype.setValue",ug[t].a);var vg=function(){};D("google.gdata.Deleted",vg);var wg=function(a){if(a){this.address=a.address;xa(this,a[tb]);this.aa(a.primary);this.rel=a.rel}else{this.address=this.address;xa(this,this[tb]);this.primary=this.primary;this.rel=this.rel}};D("google.gdata.Email",wg);wg[t].ke=function(){return this.address};D("google.gdata.Email.prototype.getAddress",wg[t].ke);wg[t].Bf=function(a){this.address=a};D("google.gdata.Email.prototype.setAddress",wg[t].Bf);wg[t].I=function(){return this[tb]};D("google.gdata.Email.prototype.getLabel",wg[t].I);wg[t].J=function(a){xa(this,a)};D("google.gdata.Email.prototype.setLabel",wg[t].J);wg[t].va=function(){return this.primary===undefined?undefined:this.primary==="true"};D("google.gdata.Email.prototype.getPrimary",wg[t].va);wg[t].aa=function(a){this.primary=a===undefined?undefined:i(a)};D("google.gdata.Email.prototype.setPrimary",wg[t].aa);wg[t].q=function(){return this.rel};D("google.gdata.Email.prototype.getRel",wg[t].q);wg[t].p=function(a){this.rel=a};D("google.gdata.Email.prototype.setRel",wg[t].p);var xg=E.namespace.GD+"#home";D("google.gdata.Email.REL_HOME",xg);var yg=E.namespace.GD+"#other";D("google.gdata.Email.REL_OTHER",yg);var zg=E.namespace.GD+"#work";D("google.gdata.Email.REL_WORK",zg);var J=function(a){if(!C(this.jg)){this.jg=bg}if(!C(this.Bk)){this.Bk=$f}H[z](this,a);if(a){this.$h(a.control);this.ki(a.edited)}else{this.app$control=E.util.mutateTo(this.app$control,this.jg);this.app$edited=E.util.mutateTo(this.app$edited,this.Bk)}};D("google.gdata.Entry",J);J.e(H);J[t].Nf=E.app.namespace.APP;D("google.gdata.Entry.prototype.xmlns$app",J[t].Nf);J[t].ln=function(){return this.app$control};D("google.gdata.Entry.prototype.getControl",J[t].ln);J[t].$h=function(a){if(a&&a[u]===m){a=new this.jg(a)}this.app$control=a};D("google.gdata.Entry.prototype.setControl",J[t].$h);J[t].zn=function(){return this.app$edited};D("google.gdata.Entry.prototype.getEdited",J[t].zn);J[t].ki=function(a){if(a&&a[u]===m){a=new this.Bk(a)}this.app$edited=a};D("google.gdata.Entry.prototype.setEdited",J[t].ki);J[t].wg=function(){return this.g("edit","application/atom+xml")};D("google.gdata.Entry.prototype.getEditLink",J[t].wg);J[t].oc=function(){return this.g("self","application/atom+xml")};D("google.gdata.Entry.prototype.getSelfLink",J[t].oc);J[t].g=function(a,d){var e=E.util.vh(this.link,a,d);return e===undefined?undefined:this.link[e]};D("google.gdata.Entry.prototype.getLink",J[t].g);J[t].ef=function(a,d){if(!this[hg]){return E.util.handleError(Error("entry is not associated with a GData service"),d)}var e=this.oc();if(!e||!e[A]){return E.util.handleError(Error("entry has no self link"),d)}var h=e[A];return this[hg].O(h,a,d,this[u])};D("google.gdata.Entry.prototype.getSelf",J[t].ef);J[t].Ad=function(a,d){if(!this[hg]){return E.util.handleError(Error("entry is not associated with a GData service"),d)}var e=this.wg();if(!e||!e[A]){return E.util.handleError(Error("entry has no edit link"),d)}var h=e[A];return this[hg].Ad(h,this,a,d)};D("google.gdata.Entry.prototype.updateEntry",J[t].Ad);J[t].kd=function(a,d){if(!this[hg]){return E.util.handleError(Error("entry is not associated with a GData service"),d)}var e=this.wg();if(!e||!e[A]){return E.util.handleError(Error("entry has no edit link"),d)}var h=e[A];this[hg].kd(h,a,d)};D("google.gdata.Entry.prototype.deleteEntry",J[t].kd);var Ag=function(a){if(!C(this.Jd)){this.Jd=J}if(a){this.pi(a.entry);va(this,a[A]);this.Nb(a[ig]);this.rel=a.rel}else{this.entry=E.util.mutateTo(this.entry,this.Jd);va(this,this[A]);gg(this,this[ig]);this.rel=this.rel}};D("google.gdata.EntryLink",Ag);Ag[t].O=function(){return this.entry};D("google.gdata.EntryLink.prototype.getEntry",Ag[t].O);Ag[t].pi=function(a){if(a&&a[u]===m){a=new this.Jd(a)}this.entry=a};D("google.gdata.EntryLink.prototype.setEntry",Ag[t].pi);Ag[t].T=function(){return this[A]};D("google.gdata.EntryLink.prototype.getHref",Ag[t].T);Ag[t].N=function(a){va(this,a)};D("google.gdata.EntryLink.prototype.setHref",Ag[t].N);Ag[t].Qe=function(){return this[ig]===undefined?undefined:this[ig]==="true"};D("google.gdata.EntryLink.prototype.getReadOnly",Ag[t].Qe);Ag[t].Nb=function(a){gg(this,a===undefined?undefined:i(a))};D("google.gdata.EntryLink.prototype.setReadOnly",Ag[t].Nb);Ag[t].q=function(){return this.rel};D("google.gdata.EntryLink.prototype.getRel",Ag[t].q);Ag[t].p=function(a){this.rel=a};D("google.gdata.EntryLink.prototype.setRel",Ag[t].p);var Bg=function(a){n(this,a?a[w]:this[w])};D("google.gdata.EventStatus",Bg);Bg[t].b=function(){return this[w]};D("google.gdata.EventStatus.prototype.getValue",Bg[t].b);Bg[t].a=function(a){n(this,a)};D("google.gdata.EventStatus.prototype.setValue",Bg[t].a);var Cg=E.namespace.GD+"#event.canceled";D("google.gdata.EventStatus.VALUE_CANCELED",Cg);var Dg=E.namespace.GD+"#event.confirmed";D("google.gdata.EventStatus.VALUE_CONFIRMED",Dg);var Eg=E.namespace.GD+"#event.tentative";D("google.gdata.EventStatus.VALUE_TENTATIVE",Eg);var Fg=function(a){if(a){wa(this,a[qb]);this.realm=a.realm;n(this,a[w])}else{wa(this,this[qb]);this.realm=this.realm;n(this,this[w])}};D("google.gdata.ExtendedProperty",Fg);Fg[t].u=function(){return this[qb]};D("google.gdata.ExtendedProperty.prototype.getName",Fg[t].u);Fg[t].D=function(a){wa(this,a)};D("google.gdata.ExtendedProperty.prototype.setName",Fg[t].D);Fg[t].Mp=function(){return this.realm};D("google.gdata.ExtendedProperty.prototype.getRealm",Fg[t].Mp);Fg[t].Tr=function(a){this.realm=a};D("google.gdata.ExtendedProperty.prototype.setRealm",Fg[t].Tr);var Gg=E.namespace.GD+"#shared";D("google.gdata.ExtendedProperty.REALM_SHARED",Gg);Fg[t].b=function(){return this[w]};D("google.gdata.ExtendedProperty.prototype.getValue",Fg[t].b);Fg[t].a=function(a){n(this,a)};D("google.gdata.ExtendedProperty.prototype.setValue",Fg[t].a);var K=function(a){if(!C(this.m)){this.m=J}if(!C(this.Zk)){this.Zk=dg}if(!C(this.Jl)){this.Jl=eg}if(!C(this.Xl)){this.Xl=fg}I[z](this,a);if(a){this.Pi(a.itemsPerPage);this.h(a.startIndex);this.Xj(a.totalResults)}else{this.openSearch$itemsPerPage=E.util.mutateTo(this.openSearch$itemsPerPage,this.Zk);this.openSearch$startIndex=E.util.mutateTo(this.openSearch$startIndex,this.Jl);this.openSearch$totalResults=E.util.mutateTo(this.openSearch$totalResults,this.Xl)}};D("google.gdata.Feed",K);K.e(I);K[t].Nf=E.app.namespace.APP;D("google.gdata.Feed.prototype.xmlns$app",K[t].Nf);K[t].ha=E.opensearch.namespace.OPENSEARCH;D("google.gdata.Feed.prototype.xmlns$openSearch",K[t].ha);K[t].Bo=function(){return this.openSearch$itemsPerPage};D("google.gdata.Feed.prototype.getItemsPerPage",K[t].Bo);K[t].Pi=function(a){if(a&&a[u]===m){a=new this.Zk(a)}this.openSearch$itemsPerPage=a};D("google.gdata.Feed.prototype.setItemsPerPage",K[t].Pi);K[t].i=function(){return this.openSearch$startIndex};D("google.gdata.Feed.prototype.getStartIndex",K[t].i);K[t].h=function(a){if(a&&a[u]===m){a=new this.Jl(a)}this.openSearch$startIndex=a};D("google.gdata.Feed.prototype.setStartIndex",K[t].h);K[t].Fq=function(){return this.openSearch$totalResults};D("google.gdata.Feed.prototype.getTotalResults",K[t].Fq);K[t].Xj=function(a){if(a&&a[u]===m){a=new this.Xl(a)}this.openSearch$totalResults=a};D("google.gdata.Feed.prototype.setTotalResults",K[t].Xj);K[t].lb=function(){return this.g(Hg,"application/atom+xml")};D("google.gdata.Feed.prototype.getEntryPostLink",K[t].lb);K[t].R=function(){return this.g(Ig,"application/atom+xml")};D("google.gdata.Feed.prototype.getFeedLink",K[t].R);K[t].ea=function(){return this.g("alternate","text/html")};D("google.gdata.Feed.prototype.getHtmlLink",K[t].ea);K[t].oc=function(){return this.g("self","application/atom+xml")};D("google.gdata.Feed.prototype.getSelfLink",K[t].oc);K[t].g=function(a,d){var e=E.util.vh(this.link,a,d);return e===undefined?undefined:this.link[e]};D("google.gdata.Feed.prototype.getLink",K[t].g);K[t].od=function(a,d,e){if(!this[hg]){return E.util.handleError(Error("feed is not associated with a GData service"),e)}var h=this.lb();if(!h||!h[A]){return E.util.handleError(Error("feed has no entry post link"),e)}var j=h[A];return this[hg].od(j,a,d,e)};D("google.gdata.Feed.prototype.insertEntry",K[t].od);K[t].ef=function(a,d){if(!this[hg]){return E.util.handleError(Error("feed is not associated with a GData service"),d)}var e=this.oc();if(!e||!e[A]){return E.util.handleError(Error("feed has no self link"),d)}var h=e[A];return this[hg].M(h,a,d)};D("google.gdata.Feed.prototype.getSelf",K[t].ef);var Jg=function(a){if(!C(this.Vb)){this.Vb=K}if(a){this.ai(a.countHint);this.ri(a.feed);va(this,a[A]);this.Nb(a[ig]);this.rel=a.rel}else{this.countHint=this.countHint;this.feed=E.util.mutateTo(this.feed,this.Vb);va(this,this[A]);gg(this,this[ig]);this.rel=this.rel}};D("google.gdata.FeedLink",Jg);Jg[t].on=function(){return this.countHint===undefined?undefined:k(this.countHint)};D("google.gdata.FeedLink.prototype.getCountHint",Jg[t].on);Jg[t].ai=function(a){this.countHint=a===undefined?undefined:i(a)};D("google.gdata.FeedLink.prototype.setCountHint",Jg[t].ai);Jg[t].M=function(){return this.feed};D("google.gdata.FeedLink.prototype.getFeed",Jg[t].M);Jg[t].ri=function(a){if(a&&a[u]===m){a=new this.Vb(a)}this.feed=a};D("google.gdata.FeedLink.prototype.setFeed",Jg[t].ri);Jg[t].T=function(){return this[A]};D("google.gdata.FeedLink.prototype.getHref",Jg[t].T);Jg[t].N=function(a){va(this,a)};D("google.gdata.FeedLink.prototype.setHref",Jg[t].N);Jg[t].Qe=function(){return this[ig]===undefined?undefined:this[ig]==="true"};D("google.gdata.FeedLink.prototype.getReadOnly",Jg[t].Qe);Jg[t].Nb=function(a){gg(this,a===undefined?undefined:i(a))};D("google.gdata.FeedLink.prototype.setReadOnly",Jg[t].Nb);Jg[t].q=function(){return this.rel};D("google.gdata.FeedLink.prototype.getRel",Jg[t].q);Jg[t].p=function(a){this.rel=a};D("google.gdata.FeedLink.prototype.setRel",Jg[t].p);var Kg=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.FormattedAddress",Kg);Kg[t].b=function(){return this.$t};D("google.gdata.FormattedAddress.prototype.getValue",Kg[t].b);Kg[t].a=function(a){this.$t=a};D("google.gdata.FormattedAddress.prototype.setValue",Kg[t].a);var Lg=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.HouseName",Lg);Lg[t].b=function(){return this.$t};D("google.gdata.HouseName.prototype.getValue",Lg[t].b);Lg[t].a=function(a){this.$t=a};D("google.gdata.HouseName.prototype.setValue",Lg[t].a);var Ng=function(a){if(a){this.address=a.address;xa(this,a[tb]);this.aa(a.primary);this.protocol=a[db];this.rel=a.rel}else{this.address=this.address;xa(this,this[tb]);this.primary=this.primary;this.protocol=this[db];this.rel=this.rel}};D("google.gdata.Im",Ng);Ng[t].ke=function(){return this.address};D("google.gdata.Im.prototype.getAddress",Ng[t].ke);Ng[t].Bf=function(a){this.address=a};D("google.gdata.Im.prototype.setAddress",Ng[t].Bf);Ng[t].I=function(){return this[tb]};D("google.gdata.Im.prototype.getLabel",Ng[t].I);Ng[t].J=function(a){xa(this,a)};D("google.gdata.Im.prototype.setLabel",Ng[t].J);Ng[t].va=function(){return this.primary===undefined?undefined:this.primary==="true"};D("google.gdata.Im.prototype.getPrimary",Ng[t].va);Ng[t].aa=function(a){this.primary=a===undefined?undefined:i(a)};D("google.gdata.Im.prototype.setPrimary",Ng[t].aa);Ng[t].Hp=function(){return this[db]};D("google.gdata.Im.prototype.getProtocol",Ng[t].Hp);Ng[t].Sr=function(a){this.protocol=a};D("google.gdata.Im.prototype.setProtocol",Ng[t].Sr);var Og=E.namespace.GD+"#AIM";D("google.gdata.Im.PROTOCOL_AIM",Og);var Pg=E.namespace.GD+"#GOOGLE_TALK";D("google.gdata.Im.PROTOCOL_GOOGLE_TALK",Pg);var Qg=E.namespace.GD+"#ICQ";D("google.gdata.Im.PROTOCOL_ICQ",Qg);var Rg=E.namespace.GD+"#JABBER";D("google.gdata.Im.PROTOCOL_JABBER",Rg);var Sg=E.namespace.GD+"#MSN";D("google.gdata.Im.PROTOCOL_MSN",Sg);var Tg=E.namespace.GD+"#QQ";D("google.gdata.Im.PROTOCOL_QQ",Tg);var Ug=E.namespace.GD+"#SKYPE";D("google.gdata.Im.PROTOCOL_SKYPE",Ug);var Vg=E.namespace.GD+"#YAHOO";D("google.gdata.Im.PROTOCOL_YAHOO",Vg);Ng[t].q=function(){return this.rel};D("google.gdata.Im.prototype.getRel",Ng[t].q);Ng[t].p=function(a){this.rel=a};D("google.gdata.Im.prototype.setRel",Ng[t].p);var Wg=E.namespace.GD+"#home";D("google.gdata.Im.REL_HOME",Wg);var Xg=E.namespace.GD+"#other";D("google.gdata.Im.REL_OTHER",Xg);var Yg=E.namespace.GD+"#work";D("google.gdata.Im.REL_WORK",Yg);var Zg=function(a){Jf[z](this,a);for(var d=["xml$lang"],e=0;e<d[r];e++){var h=d[e];h in this&&!C(this[h])&&delete this[h]}};D("google.gdata.Kind",Zg);Zg.e(Jf);var $g=E.namespace.GD+"#kind";D("google.gdata.Kind.SCHEME_KIND",$g);var ah=function(a){if(a){this.a(a[w])}else{this.$t=this.$t}};D("google.gdata.LastViewed",ah);ah[t].b=function(){return this.$t===undefined?undefined:G(this.$t)};D("google.gdata.LastViewed.prototype.getValue",ah[t].b);ah[t].a=function(a){this.$t=a===undefined?undefined:gf(a)};D("google.gdata.LastViewed.prototype.setValue",ah[t].a);var bh=function(a){Nf[z](this,a)};D("google.gdata.Link",bh);bh.e(Nf);var Hg=E.namespace.GD+"#post";D("google.gdata.Link.REL_ENTRY_POST",Hg);var Ig=E.namespace.GD+"#feed";D("google.gdata.Link.REL_FEED",Ig);var ch=E.namespace.GD+"#batch";D("google.gdata.Link.REL_FEED_BATCH",ch);var dh=function(a,d,e,h){var j=new bh;j.p(a);j.l(d);j.N(e);j.K(h);return j};D("google.gdata.Link.create",dh);var eh=function(a){Zg[z](this,a);for(var d=["label"],e=0;e<d[r];e++){var h=d[e];h in this&&!C(this[h])&&delete this[h]}};D("google.gdata.MessageKind",eh);eh.e(Zg);var fh=E.namespace.GD+"#message";D("google.gdata.MessageKind.TERM_MESSAGE",fh);var gh=function(a){if(a){this.Mh(a.amount);this.currencyCode=a.currencyCode}else{this.amount=this.amount;this.currencyCode=this.currencyCode}};D("google.gdata.Money",gh);gh[t].Hm=function(){return this.amount===undefined?undefined:k(this.amount)};D("google.gdata.Money.prototype.getAmount",gh[t].Hm);gh[t].Mh=function(a){this.amount=a===undefined?undefined:i(a)};D("google.gdata.Money.prototype.setAmount",gh[t].Mh);gh[t].ve=function(){return this.currencyCode};D("google.gdata.Money.prototype.getCurrencyCode",gh[t].ve);gh[t].Ef=function(a){this.currencyCode=a};D("google.gdata.Money.prototype.setCurrencyCode",gh[t].Ef);var hh=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.Neighborhood",hh);hh[t].b=function(){return this.$t};D("google.gdata.Neighborhood.prototype.getValue",hh[t].b);hh[t].a=function(a){this.$t=a};D("google.gdata.Neighborhood.prototype.setValue",hh[t].a);var ih=function(a){if(a){this.qd=a.qd;this.orderId=a.orderId;this.prev=a.prev;this.ref=a.ref;this.rel=a.rel}else{this.qd=this.qd;this.orderId=this.orderId;this.prev=this.prev;this.ref=this.ref;this.rel=this.rel}};D("google.gdata.Ordering",ih);ih[t].bp=function(){return this.qd};D("google.gdata.Ordering.prototype.getNext",ih[t].bp);ih[t].Lr=function(a){this.qd=a};D("google.gdata.Ordering.prototype.setNext",ih[t].Lr);ih[t].ep=function(){return this.orderId};D("google.gdata.Ordering.prototype.getOrderId",ih[t].ep);ih[t].Nr=function(a){this.orderId=a};D("google.gdata.Ordering.prototype.setOrderId",ih[t].Nr);ih[t].Dp=function(){return this.prev};D("google.gdata.Ordering.prototype.getPrev",ih[t].Dp);ih[t].Qr=function(a){this.prev=a};D("google.gdata.Ordering.prototype.setPrev",ih[t].Qr);ih[t].Re=function(){return this.ref};D("google.gdata.Ordering.prototype.getRef",ih[t].Re);ih[t].Jf=function(a){this.ref=a};D("google.gdata.Ordering.prototype.setRef",ih[t].Jf);ih[t].q=function(){return this.rel};D("google.gdata.Ordering.prototype.getRel",ih[t].q);ih[t].p=function(a){this.rel=a};D("google.gdata.Ordering.prototype.setRel",ih[t].p);D("google.gdata.Ordering.REL_COMESAFTER","comesAfter");D("google.gdata.Ordering.REL_FIRST","first");D("google.gdata.Ordering.REL_LAST","last");var jh=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.OrgName",jh);jh[t].b=function(){return this.$t};D("google.gdata.OrgName.prototype.getValue",jh[t].b);jh[t].a=function(a){this.$t=a};D("google.gdata.OrgName.prototype.setValue",jh[t].a);var kh=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.OrgTitle",kh);kh[t].b=function(){return this.$t};D("google.gdata.OrgTitle.prototype.getValue",kh[t].b);kh[t].a=function(a){this.$t=a};D("google.gdata.OrgTitle.prototype.setValue",kh[t].a);var lh=function(a){if(!C(this.fl)){this.fl=jh}if(!C(this.gl)){this.gl=kh}if(a){xa(this,a[tb]);this.aj(a.orgName);this.bj(a.orgTitle);this.aa(a.primary);this.rel=a.rel}else{xa(this,this[tb]);this.gd$orgName=E.util.mutateTo(this.gd$orgName,this.fl);this.gd$orgTitle=E.util.mutateTo(this.gd$orgTitle,this.gl);this.primary=this.primary;this.rel=this.rel}};D("google.gdata.Organization",lh);lh[t].I=function(){return this[tb]};D("google.gdata.Organization.prototype.getLabel",lh[t].I);lh[t].J=function(a){xa(this,a)};D("google.gdata.Organization.prototype.setLabel",lh[t].J);lh[t].fp=function(){return this.gd$orgName};D("google.gdata.Organization.prototype.getOrgName",lh[t].fp);lh[t].aj=function(a){if(a&&a[u]===m){a=new this.fl(a)}this.gd$orgName=a};D("google.gdata.Organization.prototype.setOrgName",lh[t].aj);lh[t].gp=function(){return this.gd$orgTitle};D("google.gdata.Organization.prototype.getOrgTitle",lh[t].gp);lh[t].bj=function(a){if(a&&a[u]===m){a=new this.gl(a)}this.gd$orgTitle=a};D("google.gdata.Organization.prototype.setOrgTitle",lh[t].bj);lh[t].va=function(){return this.primary===undefined?undefined:this.primary==="true"};D("google.gdata.Organization.prototype.getPrimary",lh[t].va);lh[t].aa=function(a){this.primary=a===undefined?undefined:i(a)};D("google.gdata.Organization.prototype.setPrimary",lh[t].aa);lh[t].q=function(){return this.rel};D("google.gdata.Organization.prototype.getRel",lh[t].q);lh[t].p=function(a){this.rel=a};D("google.gdata.Organization.prototype.setRel",lh[t].p);var mh=E.namespace.GD+"#other";D("google.gdata.Organization.REL_OTHER",mh);var nh=E.namespace.GD+"#work";D("google.gdata.Organization.REL_WORK",nh);var oh=function(a){this.fields=a?a.fields:this.fields};D("google.gdata.Partial",oh);oh[t].Pn=function(){return this.fields};D("google.gdata.Partial.prototype.getFields",oh[t].Pn);oh[t].or=function(a){this.fields=a};D("google.gdata.Partial.prototype.setFields",oh[t].or);var ph=function(a){if(a){xa(this,a[tb]);this.aa(a.primary);this.rel=a.rel;this.$t=a[w]}else{xa(this,this[tb]);this.primary=this.primary;this.rel=this.rel;this.$t=this.$t}};D("google.gdata.PhoneNumber",ph);ph[t].I=function(){return this[tb]};D("google.gdata.PhoneNumber.prototype.getLabel",ph[t].I);ph[t].J=function(a){xa(this,a)};D("google.gdata.PhoneNumber.prototype.setLabel",ph[t].J);ph[t].va=function(){return this.primary===undefined?undefined:this.primary==="true"};D("google.gdata.PhoneNumber.prototype.getPrimary",ph[t].va);ph[t].aa=function(a){this.primary=a===undefined?undefined:i(a)};D("google.gdata.PhoneNumber.prototype.setPrimary",ph[t].aa);ph[t].q=function(){return this.rel};D("google.gdata.PhoneNumber.prototype.getRel",ph[t].q);ph[t].p=function(a){this.rel=a};D("google.gdata.PhoneNumber.prototype.setRel",ph[t].p);var qh=E.namespace.GD+"#fax";D("google.gdata.PhoneNumber.REL_FAX",qh);var rh=E.namespace.GD+"#home";D("google.gdata.PhoneNumber.REL_HOME",rh);var sh=E.namespace.GD+"#home_fax";D("google.gdata.PhoneNumber.REL_HOME_FAX",sh);var th=E.namespace.GD+"#mobile";D("google.gdata.PhoneNumber.REL_MOBILE",th);var uh=E.namespace.GD+"#other";D("google.gdata.PhoneNumber.REL_OTHER",uh);var vh=E.namespace.GD+"#pager";D("google.gdata.PhoneNumber.REL_PAGER",vh);var wh=E.namespace.GD+"#work";D("google.gdata.PhoneNumber.REL_WORK",wh);var xh=E.namespace.GD+"#work_fax";D("google.gdata.PhoneNumber.REL_WORK_FAX",xh);ph[t].b=function(){return this.$t};D("google.gdata.PhoneNumber.prototype.getValue",ph[t].b);ph[t].a=function(a){this.$t=a};D("google.gdata.PhoneNumber.prototype.setValue",ph[t].a);var yh=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.PoBox",yh);yh[t].b=function(){return this.$t};D("google.gdata.PoBox.prototype.getValue",yh[t].b);yh[t].a=function(a){this.$t=a};D("google.gdata.PoBox.prototype.setValue",yh[t].a);var zh=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.PostCode",zh);zh[t].b=function(){return this.$t};D("google.gdata.PostCode.prototype.getValue",zh[t].b);zh[t].a=function(a){this.$t=a};D("google.gdata.PostCode.prototype.setValue",zh[t].a);var Ah=function(a){if(a){xa(this,a[tb]);this.aa(a.primary);this.rel=a.rel;this.$t=a[w]}else{xa(this,this[tb]);this.primary=this.primary;this.rel=this.rel;this.$t=this.$t}};D("google.gdata.PostalAddress",Ah);Ah[t].I=function(){return this[tb]};D("google.gdata.PostalAddress.prototype.getLabel",Ah[t].I);Ah[t].J=function(a){xa(this,a)};D("google.gdata.PostalAddress.prototype.setLabel",Ah[t].J);Ah[t].va=function(){return this.primary===undefined?undefined:this.primary==="true"};D("google.gdata.PostalAddress.prototype.getPrimary",Ah[t].va);Ah[t].aa=function(a){this.primary=a===undefined?undefined:i(a)};D("google.gdata.PostalAddress.prototype.setPrimary",Ah[t].aa);Ah[t].q=function(){return this.rel};D("google.gdata.PostalAddress.prototype.getRel",Ah[t].q);Ah[t].p=function(a){this.rel=a};D("google.gdata.PostalAddress.prototype.setRel",Ah[t].p);var Bh=E.namespace.GD+"#home";D("google.gdata.PostalAddress.REL_HOME",Bh);var Ch=E.namespace.GD+"#other";D("google.gdata.PostalAddress.REL_OTHER",Ch);var Dh=E.namespace.GD+"#work";D("google.gdata.PostalAddress.REL_WORK",Dh);Ah[t].b=function(){return this.$t};D("google.gdata.PostalAddress.prototype.getValue",Ah[t].b);Ah[t].a=function(a){this.$t=a};D("google.gdata.PostalAddress.prototype.setValue",Ah[t].a);var Eh=function(a){if(a){this.a(a[w])}else{this.$t=this.$t}};D("google.gdata.QuotaBytesUsed",Eh);Eh[t].b=function(){return this.$t===undefined?undefined:k(this.$t)};D("google.gdata.QuotaBytesUsed.prototype.getValue",Eh[t].b);Eh[t].a=function(a){this.$t=a===undefined?undefined:i(a)};D("google.gdata.QuotaBytesUsed.prototype.setValue",Eh[t].a);var Fh=function(a){if(a){this.Qh(a.average);this.Wi(a.max);this.Yi(a.min);this.$i(a.numRaters);this.rel=a.rel;this.a(a[w])}else{this.average=this.average;this.max=this.max;this.min=this.min;this.numRaters=this.numRaters;this.rel=this.rel;n(this,this[w])}};D("google.gdata.Rating",Fh);Fh[t].Nm=function(){return this.average===undefined?undefined:k(this.average)};D("google.gdata.Rating.prototype.getAverage",Fh[t].Nm);Fh[t].Qh=function(a){this.average=a===undefined?undefined:i(a)};D("google.gdata.Rating.prototype.setAverage",Fh[t].Qh);Fh[t].Po=function(){return this.max===undefined?undefined:k(this.max)};D("google.gdata.Rating.prototype.getMax",Fh[t].Po);Fh[t].Wi=function(a){this.max=a===undefined?undefined:i(a)};D("google.gdata.Rating.prototype.setMax",Fh[t].Wi);Fh[t].Yo=function(){return this.min===undefined?undefined:k(this.min)};D("google.gdata.Rating.prototype.getMin",Fh[t].Yo);Fh[t].Yi=function(a){this.min=a===undefined?undefined:i(a)};D("google.gdata.Rating.prototype.setMin",Fh[t].Yi);Fh[t].dp=function(){return this.numRaters===undefined?undefined:k(this.numRaters)};D("google.gdata.Rating.prototype.getNumRaters",Fh[t].dp);Fh[t].$i=function(a){this.numRaters=a===undefined?undefined:i(a)};D("google.gdata.Rating.prototype.setNumRaters",Fh[t].$i);Fh[t].q=function(){return this.rel};D("google.gdata.Rating.prototype.getRel",Fh[t].q);Fh[t].p=function(a){this.rel=a};D("google.gdata.Rating.prototype.setRel",Fh[t].p);var Gh=E.namespace.GD+"#overall";D("google.gdata.Rating.REL_OVERALL",Gh);var Hh=E.namespace.GD+"#price";D("google.gdata.Rating.REL_PRICE",Hh);var Ih=E.namespace.GD+"#quality";D("google.gdata.Rating.REL_QUALITY",Ih);Fh[t].b=function(){return this[w]===undefined?undefined:k(this[w])};D("google.gdata.Rating.prototype.getValue",Fh[t].b);Fh[t].a=function(a){n(this,a===undefined?undefined:i(a))};D("google.gdata.Rating.prototype.setValue",Fh[t].a);var Jh=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.Recurrence",Jh);Jh[t].b=function(){return this.$t};D("google.gdata.Recurrence.prototype.getValue",Jh[t].b);Jh[t].a=function(a){this.$t=a};D("google.gdata.Recurrence.prototype.setValue",Jh[t].a);var Kh=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.Region",Kh);Kh[t].b=function(){return this.$t};D("google.gdata.Region.prototype.getValue",Kh[t].b);Kh[t].a=function(a){this.$t=a};D("google.gdata.Region.prototype.setValue",Kh[t].a);var Lh=function(a){if(a){this.Gh(a.absoluteTime);this.ei(a.days);this.setHours(a.hours);this.method=a.method;this.setMinutes(a.minutes)}else{this.absoluteTime=this.absoluteTime;this.days=this.days;this.hours=this.hours;this.method=this.method;this.minutes=this.minutes}};D("google.gdata.Reminder",Lh);Lh[t].vm=function(){return this.absoluteTime===undefined?undefined:G(this.absoluteTime)};D("google.gdata.Reminder.prototype.getAbsoluteTime",Lh[t].vm);Lh[t].Gh=function(a){this.absoluteTime=a===undefined?undefined:gf(a)};D("google.gdata.Reminder.prototype.setAbsoluteTime",Lh[t].Gh);Lh[t].un=function(){return this.days===undefined?undefined:k(this.days)};D("google.gdata.Reminder.prototype.getDays",Lh[t].un);Lh[t].ei=function(a){this.days=a===undefined?undefined:i(a)};D("google.gdata.Reminder.prototype.setDays",Lh[t].ei);Lh[t].getHours=function(){return this.hours===undefined?undefined:k(this.hours)};D("google.gdata.Reminder.prototype.getHours",Lh[t].getHours);Lh[t].setHours=function(a){this.hours=a===undefined?undefined:i(a)};D("google.gdata.Reminder.prototype.setHours",Lh[t].setHours);Lh[t].Wo=function(){return this.method};D("google.gdata.Reminder.prototype.getMethod",Lh[t].Wo);Lh[t].Hr=function(a){this.method=a};D("google.gdata.Reminder.prototype.setMethod",Lh[t].Hr);D("google.gdata.Reminder.METHOD_ALERT","alert");D("google.gdata.Reminder.METHOD_ALL","all");D("google.gdata.Reminder.METHOD_EMAIL","email");D("google.gdata.Reminder.METHOD_NONE","none");D("google.gdata.Reminder.METHOD_SMS","sms");Lh[t].getMinutes=function(){return this.minutes===undefined?undefined:k(this.minutes)};D("google.gdata.Reminder.prototype.getMinutes",Lh[t].getMinutes);Lh[t].setMinutes=function(a){this.minutes=a===undefined?undefined:i(a)};D("google.gdata.Reminder.prototype.setMinutes",Lh[t].setMinutes);var Mh=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.ResourceId",Mh);Mh[t].b=function(){return this.$t};D("google.gdata.ResourceId.prototype.getValue",Mh[t].b);Mh[t].a=function(a){this.$t=a};D("google.gdata.ResourceId.prototype.setValue",Mh[t].a);var Nh=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.Street",Nh);Nh[t].b=function(){return this.$t};D("google.gdata.Street.prototype.getValue",Nh[t].b);Nh[t].a=function(a){this.$t=a};D("google.gdata.Street.prototype.setValue",Nh[t].a);var Oh=function(a){this.$t=a?a[w]:this.$t};D("google.gdata.Subregion",Oh);Oh[t].b=function(){return this.$t};D("google.gdata.Subregion.prototype.getValue",Oh[t].b);Oh[t].a=function(a){this.$t=a};D("google.gdata.Subregion.prototype.setValue",Oh[t].a);var Ph=function(a){n(this,a?a[w]:this[w])};D("google.gdata.Transparency",Ph);Ph[t].b=function(){return this[w]};D("google.gdata.Transparency.prototype.getValue",Ph[t].b);Ph[t].a=function(a){n(this,a)};D("google.gdata.Transparency.prototype.setValue",Ph[t].a);var Qh=E.namespace.GD+"#event.opaque";D("google.gdata.Transparency.VALUE_OPAQUE",Qh);var Rh=E.namespace.GD+"#event.transparent";D("google.gdata.Transparency.VALUE_TRANSPARENT",Rh);var Sh=function(a){n(this,a?a[w]:this[w])};D("google.gdata.Visibility",Sh);Sh[t].b=function(){return this[w]};D("google.gdata.Visibility.prototype.getValue",Sh[t].b);Sh[t].a=function(a){n(this,a)};D("google.gdata.Visibility.prototype.setValue",Sh[t].a);var Th=E.namespace.GD+"#event.confidential";D("google.gdata.Visibility.VALUE_CONFIDENTIAL",Th);var Uh=E.namespace.GD+"#event.default";D("google.gdata.Visibility.VALUE_DEFAULT",Uh);var Vh=E.namespace.GD+"#event.private";D("google.gdata.Visibility.VALUE_PRIVATE",Vh);var Wh=E.namespace.GD+"#event.public";D("google.gdata.Visibility.VALUE_PUBLIC",Wh);var Xh=function(a){if(!C(this.Al)){this.Al=Lh}if(a){this.ni(a.endTime);this.Aj(a.reminder);this.Kj(a.startTime);this.valueString=a.valueString}else{this.endTime=this.endTime;if(this.gd$reminder){for(var d=this.gd$reminder,e=0;e<d[r];e++){this.gd$reminder[e]=E.util.mutateTo(d[e],this.Al)}}else{this.gd$reminder=[]}this.startTime=this.startTime;this.valueString=this.valueString}};D("google.gdata.When",Xh);Xh[t].En=function(){return this.endTime===undefined?undefined:G(this.endTime)};D("google.gdata.When.prototype.getEndTime",Xh[t].En);Xh[t].ni=function(a){this.endTime=a===undefined?undefined:gf(a)};D("google.gdata.When.prototype.setEndTime",Xh[t].ni);Xh[t].Tp=function(){return this.gd$reminder};D("google.gdata.When.prototype.getReminder",Xh[t].Tp);Xh[t].Aj=function(a){this.gd$reminder=[];if(a){for(var d=0;d<a[r];d++){this.dc(a[d])}}};D("google.gdata.When.prototype.setReminder",Xh[t].Aj);Xh[t].dc=function(a){if(a[u]===m){a=new this.Al(a)}this.gd$reminder[q](a)};D("google.gdata.When.prototype.addReminder",Xh[t].dc);Xh[t].oq=function(){return this.startTime===undefined?undefined:G(this.startTime)};D("google.gdata.When.prototype.getStartTime",Xh[t].oq);Xh[t].Kj=function(a){this.startTime=a===undefined?undefined:gf(a)};D("google.gdata.When.prototype.setStartTime",Xh[t].Kj);Xh[t].Hb=function(){return this.valueString};D("google.gdata.When.prototype.getValueString",Xh[t].Hb);Xh[t].Pb=function(a){this.valueString=a};D("google.gdata.When.prototype.setValueString",Xh[t].Pb);var Yh=function(a){if(!C(this.eb)){this.eb=Ag}if(a){this.bb(a.entryLink);xa(this,a[tb]);this.rel=a.rel;this.valueString=a.valueString}else{this.gd$entryLink=E.util.mutateTo(this.gd$entryLink,this.eb);xa(this,this[tb]);this.rel=this.rel;this.valueString=this.valueString}};D("google.gdata.Where",Yh);Yh[t].kb=function(){return this.gd$entryLink};D("google.gdata.Where.prototype.getEntryLink",Yh[t].kb);Yh[t].bb=function(a){if(a&&a[u]===m){a=new this.eb(a)}this.gd$entryLink=a};D("google.gdata.Where.prototype.setEntryLink",Yh[t].bb);Yh[t].I=function(){return this[tb]};D("google.gdata.Where.prototype.getLabel",Yh[t].I);Yh[t].J=function(a){xa(this,a)};D("google.gdata.Where.prototype.setLabel",Yh[t].J);Yh[t].q=function(){return this.rel};D("google.gdata.Where.prototype.getRel",Yh[t].q);Yh[t].p=function(a){this.rel=a};D("google.gdata.Where.prototype.setRel",Yh[t].p);var Zh=E.namespace.GD+"#event";D("google.gdata.Where.REL_EVENT",Zh);var $h=E.namespace.GD+"#event.alternate";D("google.gdata.Where.REL_EVENT_ALTERNATE",$h);var ai=E.namespace.GD+"#event.parking";D("google.gdata.Where.REL_EVENT_PARKING",ai);Yh[t].Hb=function(){return this.valueString};D("google.gdata.Where.prototype.getValueString",Yh[t].Hb);Yh[t].Pb=function(a){this.valueString=a};D("google.gdata.Where.prototype.setValueString",Yh[t].Pb);var bi=function(a){if(!C(this.lk)){this.lk=kg}if(!C(this.mk)){this.mk=pg}if(!C(this.eb)){this.eb=Ag}if(a){this.Oh(a.attendeeStatus);this.Ph(a.attendeeType);this.email=a.email;this.bb(a.entryLink);this.rel=a.rel;this.valueString=a.valueString}else{this.gd$attendeeStatus=E.util.mutateTo(this.gd$attendeeStatus,this.lk);this.gd$attendeeType=E.util.mutateTo(this.gd$attendeeType,this.mk);this.email=this.email;this.gd$entryLink=E.util.mutateTo(this.gd$entryLink,this.eb);this.rel=this.rel;this.valueString=this.valueString}};D("google.gdata.Who",bi);bi[t].Jm=function(){return this.gd$attendeeStatus};D("google.gdata.Who.prototype.getAttendeeStatus",bi[t].Jm);bi[t].Oh=function(a){if(a&&a[u]===m){a=new this.lk(a)}this.gd$attendeeStatus=a};D("google.gdata.Who.prototype.setAttendeeStatus",bi[t].Oh);bi[t].Km=function(){return this.gd$attendeeType};D("google.gdata.Who.prototype.getAttendeeType",bi[t].Km);bi[t].Ph=function(a){if(a&&a[u]===m){a=new this.mk(a)}this.gd$attendeeType=a};D("google.gdata.Who.prototype.setAttendeeType",bi[t].Ph);bi[t].ye=function(){return this.email};D("google.gdata.Who.prototype.getEmail",bi[t].ye);bi[t].ud=function(a){this.email=a};D("google.gdata.Who.prototype.setEmail",bi[t].ud);bi[t].kb=function(){return this.gd$entryLink};D("google.gdata.Who.prototype.getEntryLink",bi[t].kb);bi[t].bb=function(a){if(a&&a[u]===m){a=new this.eb(a)}this.gd$entryLink=a};D("google.gdata.Who.prototype.setEntryLink",bi[t].bb);bi[t].q=function(){return this.rel};D("google.gdata.Who.prototype.getRel",bi[t].q);bi[t].p=function(a){this.rel=a};D("google.gdata.Who.prototype.setRel",bi[t].p);var ci=E.namespace.GD+"#event.attendee";D("google.gdata.Who.REL_EVENT_ATTENDEE",ci);var di=E.namespace.GD+"#event.organizer";D("google.gdata.Who.REL_EVENT_ORGANIZER",di);var ei=E.namespace.GD+"#event.performer";D("google.gdata.Who.REL_EVENT_PERFORMER",ei);var fi=E.namespace.GD+"#event.speaker";D("google.gdata.Who.REL_EVENT_SPEAKER",fi);var gi=E.namespace.GD+"#message.bcc";D("google.gdata.Who.REL_MESSAGE_BCC",gi);var hi=E.namespace.GD+"#message.cc";D("google.gdata.Who.REL_MESSAGE_CC",hi);var ii=E.namespace.GD+"#message.from";D("google.gdata.Who.REL_MESSAGE_FROM",ii);var ji=E.namespace.GD+"#message.reply-to";D("google.gdata.Who.REL_MESSAGE_REPLY_TO",ji);var ki=E.namespace.GD+"#message.to";D("google.gdata.Who.REL_MESSAGE_TO",ki);var li=E.namespace.GD+"#task.assigned-to";D("google.gdata.Who.REL_TASK_ASSIGNED_TO",li);bi[t].Hb=function(){return this.valueString};D("google.gdata.Who.prototype.getValueString",bi[t].Hb);bi[t].Pb=function(a){this.valueString=a};D("google.gdata.Who.prototype.setValueString",bi[t].Pb);var mi=function(a){if(!C(this.za)){this.za=Jg}if(a){this.ma(a.feedLink)}else{this.gd$feedLink=E.util.mutateTo(this.gd$feedLink,this.za)}};D("google.gdata.Comments",mi);mi[t].R=function(){return this.gd$feedLink};D("google.gdata.Comments.prototype.getFeedLink",mi[t].R);mi[t].ma=function(a){if(a&&a[u]===m){a=new this.za(a)}this.gd$feedLink=a};D("google.gdata.Comments.prototype.setFeedLink",mi[t].ma);var ni=function(a){Zg[z](this,a);for(var d=["label"],e=0;e<d[r];e++){var h=d[e];h in this&&!C(this[h])&&delete this[h]}};D("google.gdata.EventKind",ni);ni.e(Zg);var oi=E.namespace.GD+"#event";D("google.gdata.EventKind.TERM_EVENT",oi);var pi=function(a){if(!C(this.il)){this.il=Xh}if(a){va(this,a[A]);this.id=a.originalId;this.dj(a.originalStartTime)}else{va(this,this[A]);this.id=this.id;this.gd$when=E.util.mutateTo(this.gd$when,this.il)}};D("google.gdata.OriginalEvent",pi);pi[t].T=function(){return this[A]};D("google.gdata.OriginalEvent.prototype.getHref",pi[t].T);pi[t].N=function(a){va(this,a)};D("google.gdata.OriginalEvent.prototype.setHref",pi[t].N);pi[t].ip=function(){return this.id};D("google.gdata.OriginalEvent.prototype.getOriginalId",pi[t].ip);pi[t].Or=function(a){this.id=a};D("google.gdata.OriginalEvent.prototype.setOriginalId",pi[t].Or);pi[t].jp=function(){return this.gd$when};D("google.gdata.OriginalEvent.prototype.getOriginalStartTime",pi[t].jp);pi[t].dj=function(a){if(a&&a[u]===m){a=new this.il(a)}this.gd$when=a};D("google.gdata.OriginalEvent.prototype.setOriginalStartTime",pi[t].dj);var L=function(a){if(!C(this.tb)){this.tb=mi}if(!C(this.Kd)){this.Kd=Bg}if(!C(this.Sd)){this.Sd=pi}if(!C(this.ee)){this.ee=Ph}if(!C(this.he)){this.he=Sh}if(!C(this.dm)){this.dm=Xh}if(!C(this.em)){this.em=Yh}if(!C(this.ng)){this.ng=bi}J[z](this,a);if(a){this.wc(a.comments);this.Dc(a.eventStatus);this.Lc(a.originalEvent);this.fd(a.transparency);this.hd(a.visibility);this.bk(a.when);this.ck(a.where);this.dk(a.who)}else{this.gd$comments=E.util.mutateTo(this.gd$comments,this.tb);this.gd$eventStatus=E.util.mutateTo(this.gd$eventStatus,this.Kd);this.gd$originalEvent=E.util.mutateTo(this.gd$originalEvent,this.Sd);this.gd$transparency=E.util.mutateTo(this.gd$transparency,this.ee);this.gd$visibility=E.util.mutateTo(this.gd$visibility,this.he);if(this.gd$when){for(var d=this.gd$when,e=0;e<d[r];e++){this.gd$when[e]=E.util.mutateTo(d[e],this.dm)}}else{this.gd$when=[]}if(this.gd$where){d=this.gd$where;for(e=0;e<d[r];e++){this.gd$where[e]=E.util.mutateTo(d[e],this.em)}}else{this.gd$where=[]}if(this.gd$who){d=this.gd$who;for(e=0;e<d[r];e++){this.gd$who[e]=E.util.mutateTo(d[e],this.ng)}}else{this.gd$who=[]}}var h=["app$control","summary","rights","app$edited"];for(e=0;e<h[r];e++){var j=h[e];j in this&&!C(this[j])&&delete this[j]}};D("google.gdata.RecurrenceExceptionEntry",L);L.e(J);L[t].f=E.namespace.GD;D("google.gdata.RecurrenceExceptionEntry.prototype.xmlns$gd",L[t].f);L[t].ha=E.opensearch.namespace.OPENSEARCH;D("google.gdata.RecurrenceExceptionEntry.prototype.xmlns$openSearch",L[t].ha);L[t].pe=function(){return this.gd$comments};D("google.gdata.RecurrenceExceptionEntry.prototype.getComments",L[t].pe);L[t].wc=function(a){if(a&&a[u]===m){a=new this.tb(a)}this.gd$comments=a};D("google.gdata.RecurrenceExceptionEntry.prototype.setComments",L[t].wc);L[t].Ae=function(){return this.gd$eventStatus};D("google.gdata.RecurrenceExceptionEntry.prototype.getEventStatus",L[t].Ae);L[t].Dc=function(a){if(a&&a[u]===m){a=new this.Kd(a)}this.gd$eventStatus=a};D("google.gdata.RecurrenceExceptionEntry.prototype.setEventStatus",L[t].Dc);L[t].Le=function(){return this.gd$originalEvent};D("google.gdata.RecurrenceExceptionEntry.prototype.getOriginalEvent",L[t].Le);L[t].Lc=function(a){if(a&&a[u]===m){a=new this.Sd(a)}this.gd$originalEvent=a};D("google.gdata.RecurrenceExceptionEntry.prototype.setOriginalEvent",L[t].Lc);L[t].rf=function(){return this.gd$transparency};D("google.gdata.RecurrenceExceptionEntry.prototype.getTransparency",L[t].rf);L[t].fd=function(a){if(a&&a[u]===m){a=new this.ee(a)}this.gd$transparency=a};D("google.gdata.RecurrenceExceptionEntry.prototype.setTransparency",L[t].fd);L[t].uf=function(){return this.gd$visibility};D("google.gdata.RecurrenceExceptionEntry.prototype.getVisibility",L[t].uf);L[t].hd=function(a){if(a&&a[u]===m){a=new this.he(a)}this.gd$visibility=a};D("google.gdata.RecurrenceExceptionEntry.prototype.setVisibility",L[t].hd);L[t].Pq=function(){return this.gd$when};D("google.gdata.RecurrenceExceptionEntry.prototype.getWhen",L[t].Pq);L[t].bk=function(a){this.gd$when=[];if(a){for(var d=0;d<a[r];d++){this.hh(a[d])}}};D("google.gdata.RecurrenceExceptionEntry.prototype.setWhen",L[t].bk);L[t].hh=function(a){if(a[u]===m){a=new this.dm(a)}this.gd$when[q](a)};D("google.gdata.RecurrenceExceptionEntry.prototype.addWhen",L[t].hh);L[t].Qq=function(){return this.gd$where};D("google.gdata.RecurrenceExceptionEntry.prototype.getWhere",L[t].Qq);L[t].ck=function(a){this.gd$where=[];if(a){for(var d=0;d<a[r];d++){this.ih(a[d])}}};D("google.gdata.RecurrenceExceptionEntry.prototype.setWhere",L[t].ck);L[t].ih=function(a){if(a[u]===m){a=new this.em(a)}this.gd$where[q](a)};D("google.gdata.RecurrenceExceptionEntry.prototype.addWhere",L[t].ih);L[t].Rq=function(){return this.gd$who};D("google.gdata.RecurrenceExceptionEntry.prototype.getWho",L[t].Rq);L[t].dk=function(a){this.gd$who=[];if(a){for(var d=0;d<a[r];d++){this.jh(a[d])}}};D("google.gdata.RecurrenceExceptionEntry.prototype.setWho",L[t].dk);L[t].jh=function(a){if(a[u]===m){a=new this.ng(a)}this.gd$who[q](a)};D("google.gdata.RecurrenceExceptionEntry.prototype.addWho",L[t].jh);var qi=function(a){if(!C(this.Jd)){this.Jd=L}Ag[z](this,a);for(var d=["readOnly","rel","href"],e=0;e<d[r];e++){var h=d[e];h in this&&!C(this[h])&&delete this[h]}};D("google.gdata.RecurrenceExceptionEntryLink",qi);qi.e(Ag);var O=function(a){if(!C(this.hk)){this.hk=jg}if(!C(this.pk)){this.pk=sg}if(!C(this.uk)){this.uk=tg}if(!C(this.Jk)){this.Jk=Kg}if(!C(this.Uk)){this.Uk=Lg}if(!C(this.el)){this.el=hh}if(!C(this.ll)){this.ll=yh}if(!C(this.sl)){this.sl=zh}if(!C(this.zl)){this.zl=Kh}if(!C(this.Kl)){this.Kl=Nh}if(!C(this.Ml)){this.Ml=Oh}if(a){this.Jh(a.agent);this.Uh(a.city);this.bi(a.country);this.vi(a.formattedAddress);this.Ji(a.housename);xa(this,a[tb]);this.mailClass=a.mailClass;this.Zi(a.neighborhood);this.ij(a.pobox);this.qj(a.postcode);this.aa(a.primary);this.zj(a.region);this.rel=a.rel;this.Lj(a.street);this.Nj(a.subregion);this.usage=a.usage}else{this.gd$agent=E.util.mutateTo(this.gd$agent,this.hk);this.gd$city=E.util.mutateTo(this.gd$city,this.pk);this.gd$country=E.util.mutateTo(this.gd$country,this.uk);this.gd$formattedAddress=E.util.mutateTo(this.gd$formattedAddress,this.Jk);this.gd$housename=E.util.mutateTo(this.gd$housename,this.Uk);xa(this,this[tb]);this.mailClass=this.mailClass;this.gd$neighborhood=E.util.mutateTo(this.gd$neighborhood,this.el);this.gd$pobox=E.util.mutateTo(this.gd$pobox,this.ll);this.gd$postcode=E.util.mutateTo(this.gd$postcode,this.sl);this.primary=this.primary;this.gd$region=E.util.mutateTo(this.gd$region,this.zl);this.rel=this.rel;this.gd$street=E.util.mutateTo(this.gd$street,this.Kl);this.gd$subregion=E.util.mutateTo(this.gd$subregion,this.Ml);this.usage=this.usage}};D("google.gdata.StructuredPostalAddress",O);O[t].Cm=function(){return this.gd$agent};D("google.gdata.StructuredPostalAddress.prototype.getAgent",O[t].Cm);O[t].Jh=function(a){if(a&&a[u]===m){a=new this.hk(a)}this.gd$agent=a};D("google.gdata.StructuredPostalAddress.prototype.setAgent",O[t].Jh);O[t].Xm=function(){return this.gd$city};D("google.gdata.StructuredPostalAddress.prototype.getCity",O[t].Xm);O[t].Uh=function(a){if(a&&a[u]===m){a=new this.pk(a)}this.gd$city=a};D("google.gdata.StructuredPostalAddress.prototype.setCity",O[t].Uh);O[t].pn=function(){return this.gd$country};D("google.gdata.StructuredPostalAddress.prototype.getCountry",O[t].pn);O[t].bi=function(a){if(a&&a[u]===m){a=new this.uk(a)}this.gd$country=a};D("google.gdata.StructuredPostalAddress.prototype.setCountry",O[t].bi);O[t].Un=function(){return this.gd$formattedAddress};D("google.gdata.StructuredPostalAddress.prototype.getFormattedAddress",O[t].Un);O[t].vi=function(a){if(a&&a[u]===m){a=new this.Jk(a)}this.gd$formattedAddress=a};D("google.gdata.StructuredPostalAddress.prototype.setFormattedAddress",O[t].vi);O[t].mo=function(){return this.gd$housename};D("google.gdata.StructuredPostalAddress.prototype.getHousename",O[t].mo);O[t].Ji=function(a){if(a&&a[u]===m){a=new this.Uk(a)}this.gd$housename=a};D("google.gdata.StructuredPostalAddress.prototype.setHousename",O[t].Ji);O[t].I=function(){return this[tb]};D("google.gdata.StructuredPostalAddress.prototype.getLabel",O[t].I);O[t].J=function(a){xa(this,a)};D("google.gdata.StructuredPostalAddress.prototype.setLabel",O[t].J);O[t].Mo=function(){return this.mailClass};D("google.gdata.StructuredPostalAddress.prototype.getMailClass",O[t].Mo);O[t].Dr=function(a){this.mailClass=a};D("google.gdata.StructuredPostalAddress.prototype.setMailClass",O[t].Dr);var ri=E.namespace.GD+"#both";D("google.gdata.StructuredPostalAddress.MAILCLASS_BOTH",ri);var si=E.namespace.GD+"#letters";D("google.gdata.StructuredPostalAddress.MAILCLASS_LETTERS",si);var ti=E.namespace.GD+"#neither";D("google.gdata.StructuredPostalAddress.MAILCLASS_NEITHER",ti);var ui=E.namespace.GD+"#parcels";D("google.gdata.StructuredPostalAddress.MAILCLASS_PARCELS",ui);O[t].ap=function(){return this.gd$neighborhood};D("google.gdata.StructuredPostalAddress.prototype.getNeighborhood",O[t].ap);O[t].Zi=function(a){if(a&&a[u]===m){a=new this.el(a)}this.gd$neighborhood=a};D("google.gdata.StructuredPostalAddress.prototype.setNeighborhood",O[t].Zi);O[t].pp=function(){return this.gd$pobox};D("google.gdata.StructuredPostalAddress.prototype.getPobox",O[t].pp);O[t].ij=function(a){if(a&&a[u]===m){a=new this.ll(a)}this.gd$pobox=a};D("google.gdata.StructuredPostalAddress.prototype.setPobox",O[t].ij);O[t].Cp=function(){return this.gd$postcode};D("google.gdata.StructuredPostalAddress.prototype.getPostcode",O[t].Cp);O[t].qj=function(a){if(a&&a[u]===m){a=new this.sl(a)}this.gd$postcode=a};D("google.gdata.StructuredPostalAddress.prototype.setPostcode",O[t].qj);O[t].va=function(){return this.primary===undefined?undefined:this.primary==="true"};D("google.gdata.StructuredPostalAddress.prototype.getPrimary",O[t].va);O[t].aa=function(a){this.primary=a===undefined?undefined:i(a)};D("google.gdata.StructuredPostalAddress.prototype.setPrimary",O[t].aa);O[t].Rp=function(){return this.gd$region};D("google.gdata.StructuredPostalAddress.prototype.getRegion",O[t].Rp);O[t].zj=function(a){if(a&&a[u]===m){a=new this.zl(a)}this.gd$region=a};D("google.gdata.StructuredPostalAddress.prototype.setRegion",O[t].zj);O[t].q=function(){return this.rel};D("google.gdata.StructuredPostalAddress.prototype.getRel",O[t].q);O[t].p=function(a){this.rel=a};D("google.gdata.StructuredPostalAddress.prototype.setRel",O[t].p);var vi=E.namespace.GD+"#home";D("google.gdata.StructuredPostalAddress.REL_HOME",vi);var wi=E.namespace.GD+"#other";D("google.gdata.StructuredPostalAddress.REL_OTHER",wi);var xi=E.namespace.GD+"#work";D("google.gdata.StructuredPostalAddress.REL_WORK",xi);O[t].pq=function(){return this.gd$street};D("google.gdata.StructuredPostalAddress.prototype.getStreet",O[t].pq);O[t].Lj=function(a){if(a&&a[u]===m){a=new this.Kl(a)}this.gd$street=a};D("google.gdata.StructuredPostalAddress.prototype.setStreet",O[t].Lj);O[t].sq=function(){return this.gd$subregion};D("google.gdata.StructuredPostalAddress.prototype.getSubregion",O[t].sq);O[t].Nj=function(a){if(a&&a[u]===m){a=new this.Ml(a)}this.gd$subregion=a};D("google.gdata.StructuredPostalAddress.prototype.setSubregion",O[t].Nj);O[t].Lq=function(){return this.usage};D("google.gdata.StructuredPostalAddress.prototype.getUsage",O[t].Lq);O[t].fs=function(a){this.usage=a};D("google.gdata.StructuredPostalAddress.prototype.setUsage",O[t].fs);var yi=E.namespace.GD+"#general";D("google.gdata.StructuredPostalAddress.USAGE_GENERAL",yi);var zi=E.namespace.GD+"#local";D("google.gdata.StructuredPostalAddress.USAGE_LOCAL",zi);var Ai=function(a){if(!C(this.eb)){this.eb=qi}if(a){this.bb(a.entryLink);this.Jj(a.specialized)}else{this.gd$entryLink=E.util.mutateTo(this.gd$entryLink,this.eb);this.specialized=this.specialized}};D("google.gdata.RecurrenceException",Ai);Ai[t].kb=function(){return this.gd$entryLink};D("google.gdata.RecurrenceException.prototype.getEntryLink",Ai[t].kb);Ai[t].bb=function(a){if(a&&a[u]===m){a=new this.eb(a)}this.gd$entryLink=a};D("google.gdata.RecurrenceException.prototype.setEntryLink",Ai[t].bb);Ai[t].mq=function(){return this.specialized===undefined?undefined:this.specialized==="true"};D("google.gdata.RecurrenceException.prototype.getSpecialized",Ai[t].mq);Ai[t].Jj=function(a){this.specialized=a===undefined?undefined:i(a)};D("google.gdata.RecurrenceException.prototype.setSpecialized",Ai[t].Jj);var P=function(a){if(!C(this.tb)){this.tb=mi}if(!C(this.Kd)){this.Kd=Bg}if(!C(this.Pd)){this.Pd=Yh}if(!C(this.Sd)){this.Sd=pi}if(!C(this.kg)){this.kg=bi}if(!C(this.yl)){this.yl=Jh}if(!C(this.lg)){this.lg=Ai}if(!C(this.Bl)){this.Bl=Lh}if(!C(this.Vl)){this.Vl=Xh}if(!C(this.ee)){this.ee=Ph}if(!C(this.he)){this.he=Sh}J[z](this,a);if(a){this.wc(a.comments);this.Dc(a.eventStatus);this.Jc(a.locations);this.Lc(a.originalEvent);this.fj(a.participants);this.xj(a.recurrence);this.yj(a.recurrenceException);this.Bj(a.reminders);this.Vj(a.times);this.fd(a.transparency);this.hd(a.visibility)}else{this.gd$comments=E.util.mutateTo(this.gd$comments,this.tb);this.gd$eventStatus=E.util.mutateTo(this.gd$eventStatus,this.Kd);if(this.gd$where){for(var d=this.gd$where,e=0;e<d[r];e++){this.gd$where[e]=E.util.mutateTo(d[e],this.Pd)}}else{this.gd$where=[]}this.gd$originalEvent=E.util.mutateTo(this.gd$originalEvent,this.Sd);if(this.gd$who){d=this.gd$who;for(e=0;e<d[r];e++){this.gd$who[e]=E.util.mutateTo(d[e],this.kg)}}else{this.gd$who=[]}this.gd$recurrence=E.util.mutateTo(this.gd$recurrence,this.yl);if(this.gd$recurrenceException){d=this.gd$recurrenceException;for(e=0;e<d[r];e++){this.gd$recurrenceException[e]=E.util.mutateTo(d[e],this.lg)}}else{this.gd$recurrenceException=[]}if(this.gd$reminder){d=this.gd$reminder;for(e=0;e<d[r];e++){this.gd$reminder[e]=E.util.mutateTo(d[e],this.Bl)}}else{this.gd$reminder=[]}if(this.gd$when){d=this.gd$when;for(e=0;e<d[r];e++){this.gd$when[e]=E.util.mutateTo(d[e],this.Vl)}}else{this.gd$when=[]}this.gd$transparency=E.util.mutateTo(this.gd$transparency,this.ee);this.gd$visibility=E.util.mutateTo(this.gd$visibility,this.he)}var h=["app$control","rights","app$edited"];for(e=0;e<h[r];e++){var j=h[e];j in this&&!C(this[j])&&delete this[j]}};D("google.gdata.EventEntry",P);P.e(J);P[t].f=E.namespace.GD;D("google.gdata.EventEntry.prototype.xmlns$gd",P[t].f);P[t].ha=E.opensearch.namespace.OPENSEARCH;D("google.gdata.EventEntry.prototype.xmlns$openSearch",P[t].ha);P[t].pe=function(){return this.gd$comments};D("google.gdata.EventEntry.prototype.getComments",P[t].pe);P[t].wc=function(a){if(a&&a[u]===m){a=new this.tb(a)}this.gd$comments=a};D("google.gdata.EventEntry.prototype.setComments",P[t].wc);P[t].Ae=function(){return this.gd$eventStatus};D("google.gdata.EventEntry.prototype.getEventStatus",P[t].Ae);P[t].Dc=function(a){if(a&&a[u]===m){a=new this.Kd(a)}this.gd$eventStatus=a};D("google.gdata.EventEntry.prototype.setEventStatus",P[t].Dc);P[t].Ie=function(){return this.gd$where};D("google.gdata.EventEntry.prototype.getLocations",P[t].Ie);P[t].Jc=function(a){this.gd$where=[];if(a){for(var d=0;d<a[r];d++){this.$b(a[d])}}};D("google.gdata.EventEntry.prototype.setLocations",P[t].Jc);P[t].$b=function(a){if(a[u]===m){a=new this.Pd(a)}this.gd$where[q](a)};D("google.gdata.EventEntry.prototype.addLocation",P[t].$b);P[t].Le=function(){return this.gd$originalEvent};D("google.gdata.EventEntry.prototype.getOriginalEvent",P[t].Le);P[t].Lc=function(a){if(a&&a[u]===m){a=new this.Sd(a)}this.gd$originalEvent=a};D("google.gdata.EventEntry.prototype.setOriginalEvent",P[t].Lc);P[t].np=function(){return this.gd$who};D("google.gdata.EventEntry.prototype.getParticipants",P[t].np);P[t].fj=function(a){this.gd$who=[];if(a){for(var d=0;d<a[r];d++){this.ah(a[d])}}};D("google.gdata.EventEntry.prototype.setParticipants",P[t].fj);P[t].ah=function(a){if(a[u]===m){a=new this.kg(a)}this.gd$who[q](a)};D("google.gdata.EventEntry.prototype.addParticipant",P[t].ah);P[t].Np=function(){return this.gd$recurrence};D("google.gdata.EventEntry.prototype.getRecurrence",P[t].Np);P[t].xj=function(a){if(a&&a[u]===m){a=new this.yl(a)}this.gd$recurrence=a};D("google.gdata.EventEntry.prototype.setRecurrence",P[t].xj);P[t].Op=function(){return this.gd$recurrenceException};D("google.gdata.EventEntry.prototype.getRecurrenceException",P[t].Op);P[t].yj=function(a){this.gd$recurrenceException=[];if(a){for(var d=0;d<a[r];d++){this.eh(a[d])}}};D("google.gdata.EventEntry.prototype.setRecurrenceException",P[t].yj);P[t].eh=function(a){if(a[u]===m){a=new this.lg(a)}this.gd$recurrenceException[q](a)};D("google.gdata.EventEntry.prototype.addRecurrenceException",P[t].eh);P[t].Up=function(){return this.gd$reminder};D("google.gdata.EventEntry.prototype.getReminders",P[t].Up);P[t].Bj=function(a){this.gd$reminder=[];if(a){for(var d=0;d<a[r];d++){this.dc(a[d])}}};D("google.gdata.EventEntry.prototype.setReminders",P[t].Bj);P[t].dc=function(a){if(a[u]===m){a=new this.Bl(a)}this.gd$reminder[q](a)};D("google.gdata.EventEntry.prototype.addReminder",P[t].dc);P[t].Cq=function(){return this.gd$when};D("google.gdata.EventEntry.prototype.getTimes",P[t].Cq);P[t].Vj=function(a){this.gd$when=[];if(a){for(var d=0;d<a[r];d++){this.fh(a[d])}}};D("google.gdata.EventEntry.prototype.setTimes",P[t].Vj);P[t].fh=function(a){if(a[u]===m){a=new this.Vl(a)}this.gd$when[q](a)};D("google.gdata.EventEntry.prototype.addTime",P[t].fh);P[t].rf=function(){return this.gd$transparency};D("google.gdata.EventEntry.prototype.getTransparency",P[t].rf);P[t].fd=function(a){if(a&&a[u]===m){a=new this.ee(a)}this.gd$transparency=a};D("google.gdata.EventEntry.prototype.setTransparency",P[t].fd);P[t].uf=function(){return this.gd$visibility};D("google.gdata.EventEntry.prototype.getVisibility",P[t].uf);P[t].hd=function(a){if(a&&a[u]===m){a=new this.he(a)}this.gd$visibility=a};D("google.gdata.EventEntry.prototype.setVisibility",P[t].hd);var Bi=function(a){if(!C(this.m)){this.m=P}K[z](this,a);for(var d=["xml$base","rights","logo"],e=0;e<d[r];e++){var h=d[e];h in this&&!C(this[h])&&delete this[h]}};D("google.gdata.EventFeed",Bi);Bi.e(K);Bi[t].f=E.namespace.GD;D("google.gdata.EventFeed.prototype.xmlns$gd",Bi[t].f);E.params={};E.params.ALT="alt";E.params.AUTHOR="author";E.params.MAX_RESULTS="max-results";E.params.PRETTYPRINT="prettyprint";E.params.PUBLISHED_MAX="published-max";E.params.PUBLISHED_MIN="published-min";E.params.Q="q";E.params.START_INDEX="start-index";E.params.UPDATED_MAX="updated-max";E.params.UPDATED_MIN="updated-min";mi[t].xg=function(){return Jg};D("google.gdata.Comments.prototype.getFeedLinkClass",mi[t].xg);J[t].mn=function(){return bg};D("google.gdata.Entry.prototype.getControlClass",J[t].mn);P[t].kc=function(){return mi};D("google.gdata.EventEntry.prototype.getCommentsClass",P[t].kc);P[t].pc=function(){return bi};D("google.gdata.EventEntry.prototype.getWhoClass",P[t].pc);P[t].Ag=function(){return Ai};D("google.gdata.EventEntry.prototype.getRecurrenceExceptionClass",P[t].Ag);Bi[t].da=function(){return P};K[t].da=function(){return J};qi[t].da=function(){return L};L[t].kc=function(){return mi};D("google.gdata.RecurrenceExceptionEntry.prototype.getCommentsClass",L[t].kc);L[t].pc=function(){return bi};D("google.gdata.RecurrenceExceptionEntry.prototype.getWhoClass",L[t].pc);E.acl={};E.acl.namespace={};E.acl.namespace.GACL="http://schemas.google.com/acl/2007";var Ci=function(a){Zg[z](this,a);for(var d=["label"],e=0;e<d[r];e++){var h=d[e];h in this&&!C(this[h])&&delete this[h]}};D("google.gdata.acl.AclKind",Ci);Ci.e(Zg);var Di=E.acl.namespace.GACL+"#accessRule";D("google.gdata.acl.AclKind.TERM_ACCESSRULE",Di);var Ei=function(a){n(this,a?a[w]:this[w])};D("google.gdata.acl.AclRole",Ei);Ei[t].b=function(){return this[w]};D("google.gdata.acl.AclRole.prototype.getValue",Ei[t].b);Ei[t].a=function(a){n(this,a)};D("google.gdata.acl.AclRole.prototype.setValue",Ei[t].a);D("google.gdata.acl.AclRole.VALUE_NONE","none");D("google.gdata.acl.AclRole.VALUE_OWNER","owner");D("google.gdata.acl.AclRole.VALUE_PEEKER","peeker");D("google.gdata.acl.AclRole.VALUE_READER","reader");D("google.gdata.acl.AclRole.VALUE_WRITER","writer");var Fi=function(a){if(a){o(this,a[B]);n(this,a[w])}else{o(this,this[B]);n(this,this[w])}};D("google.gdata.acl.AclScope",Fi);Fi[t].o=function(){return this[B]};D("google.gdata.acl.AclScope.prototype.getType",Fi[t].o);Fi[t].l=function(a){o(this,a)};D("google.gdata.acl.AclScope.prototype.setType",Fi[t].l);D("google.gdata.acl.AclScope.TYPE_DEFAULT","default");D("google.gdata.acl.AclScope.TYPE_DOMAIN","domain");D("google.gdata.acl.AclScope.TYPE_GROUP","group");D("google.gdata.acl.AclScope.TYPE_USER","user");Fi[t].b=function(){return this[w]};D("google.gdata.acl.AclScope.prototype.getValue",Fi[t].b);Fi[t].a=function(a){n(this,a)};D("google.gdata.acl.AclScope.prototype.setValue",Fi[t].a);var Gi=function(a){var d=new Fi;if(a){d.a(a);d.l(a[y]("@")==-1?"domain":"user")}else{d.l("default")}return d};D("google.gdata.acl.AclScope.create",Gi);var Hi=function(a){bh[z](this,a)};D("google.gdata.acl.Link",Hi);Hi.e(bh);var Ii=E.acl.namespace.GACL+"#accessControlList";D("google.gdata.acl.Link.REL_ACCESS_CONTROL_LIST",Ii);var Ji=E.acl.namespace.GACL+"#controlledObject";D("google.gdata.acl.Link.REL_CONTROLLED_OBJECT",Ji);var Ki=function(a){if(!C(this.mg)){this.mg=Ei}if(!C(this.Dl)){this.Dl=Fi}J[z](this,a);if(a){this.xd(a.role);this.Ej(a.scope)}else{this.gAcl$role=E.util.mutateTo(this.gAcl$role,this.mg);this.gAcl$scope=E.util.mutateTo(this.gAcl$scope,this.Dl)}for(var d=["published","app$control","summary","rights","app$edited"],e=0;e<d[r];e++){var h=d[e];h in this&&!C(this[h])&&delete this[h]}};D("google.gdata.acl.AclEntry",Ki);Ki.e(J);Ki[t].Of=E.acl.namespace.GACL;D("google.gdata.acl.AclEntry.prototype.xmlns$gAcl",Ki[t].Of);Ki[t].df=function(){return this.gAcl$role};D("google.gdata.acl.AclEntry.prototype.getRole",Ki[t].df);Ki[t].xd=function(a){if(a&&a[u]===m){a=new this.mg(a)}this.gAcl$role=a};D("google.gdata.acl.AclEntry.prototype.setRole",Ki[t].xd);Ki[t].Eb=function(){return this.gAcl$scope};D("google.gdata.acl.AclEntry.prototype.getScope",Ki[t].Eb);Ki[t].Ej=function(a){if(a&&a[u]===m){a=new this.Dl(a)}this.gAcl$scope=a};D("google.gdata.acl.AclEntry.prototype.setScope",Ki[t].Ej);var Li=function(a){if(!C(this.m)){this.m=Ki}K[z](this,a);for(var d=["subtitle","xml$base","rights","logo","openSearch$itemsPerPage"],e=0;e<d[r];e++){var h=d[e];h in this&&!C(this[h])&&delete this[h]}};D("google.gdata.acl.AclFeed",Li);Li.e(K);Li[t].Of=E.acl.namespace.GACL;D("google.gdata.acl.AclFeed.prototype.xmlns$gAcl",Li[t].Of);D("google.gdata.AclEntry",Ki);D("google.gdata.AclFeed",Li);D("google.gdata.AclKind",Ci);D("google.gdata.AclRole",Ei);D("google.gdata.AclScope",Fi);D("google.gdata.Link.REL_ACCESS_CONTROL_LIST",Ii);D("google.gdata.Link.REL_CONTROLLED_OBJECT",Ji);Ki[t].sg=function(){return Ei};D("google.gdata.acl.AclEntry.prototype.getAclRoleClass",Ki[t].sg);Li[t].da=function(){return Ki};E.calendar={};E.calendar.namespace={};E.calendar.namespace.GCAL="http://schemas.google.com/gCal/2005";var Qj=function(a){n(this,a?a[w]:this[w])};D("google.gdata.calendar.AccessLevelProperty",Qj);Qj[t].b=function(){return this[w]};D("google.gdata.calendar.AccessLevelProperty.prototype.getValue",Qj[t].b);Qj[t].a=function(a){n(this,a)};D("google.gdata.calendar.AccessLevelProperty.prototype.setValue",Qj[t].a);D("google.gdata.calendar.AccessLevelProperty.VALUE_EDITOR","editor");D("google.gdata.calendar.AccessLevelProperty.VALUE_FREEBUSY","freebusy");D("google.gdata.calendar.AccessLevelProperty.VALUE_NONE","none");D("google.gdata.calendar.AccessLevelProperty.VALUE_OVERRIDE","override");D("google.gdata.calendar.AccessLevelProperty.VALUE_OWNER","owner");D("google.gdata.calendar.AccessLevelProperty.VALUE_READ","read");D("google.gdata.calendar.AccessLevelProperty.VALUE_RESPOND","respond");D("google.gdata.calendar.AccessLevelProperty.VALUE_ROOT","root");var Rj=function(a){if(a){this.a(a[w])}else{n(this,this[w])}};D("google.gdata.calendar.AllowGSyncProperty",Rj);Rj[t].b=function(){return this[w]===undefined?undefined:this[w]==="true"};D("google.gdata.calendar.AllowGSyncProperty.prototype.getValue",Rj[t].b);Rj[t].a=function(a){n(this,a===undefined?undefined:i(a))};D("google.gdata.calendar.AllowGSyncProperty.prototype.setValue",Rj[t].a);var Sj=function(a){if(a){this.a(a[w])}else{n(this,this[w])}};D("google.gdata.calendar.AnyoneCanAddSelfProperty",Sj);Sj[t].b=function(){return this[w]===undefined?undefined:this[w]==="true"};D("google.gdata.calendar.AnyoneCanAddSelfProperty.prototype.getValue",Sj[t].b);Sj[t].a=function(a){n(this,a===undefined?undefined:i(a))};D("google.gdata.calendar.AnyoneCanAddSelfProperty.prototype.setValue",Sj[t].a);var Tj=function(a){Ei[z](this,a)};D("google.gdata.calendar.CalendarAclRole",Tj);Tj.e(Ei);var Uj=E.calendar.namespace.GCAL+"#editor";D("google.gdata.calendar.CalendarAclRole.VALUE_EDITOR",Uj);var Vj=E.calendar.namespace.GCAL+"#freebusy";D("google.gdata.calendar.CalendarAclRole.VALUE_FREEBUSY",Vj);var Wj=E.calendar.namespace.GCAL+"#owner";D("google.gdata.calendar.CalendarAclRole.VALUE_OWNER",Wj);var Xj=E.calendar.namespace.GCAL+"#read";D("google.gdata.calendar.CalendarAclRole.VALUE_READ",Xj);var Yj=E.calendar.namespace.GCAL+"#root";D("google.gdata.calendar.CalendarAclRole.VALUE_ROOT",Yj);var Zj=function(a){Fg[z](this,a)};D("google.gdata.calendar.CalendarExtendedProperty",Zj);Zj.e(Fg);var $j=E.calendar.namespace.GCAL+"#calendar";D("google.gdata.calendar.CalendarExtendedProperty.REALM_CALENDAR",$j);var ak=function(a){Zg[z](this,a);for(var d=["label"],e=0;e<d[r];e++){var h=d[e];h in this&&!C(this[h])&&delete this[h]}};D("google.gdata.calendar.CalendarMetaKind",ak);ak.e(Zg);var bk=E.calendar.namespace.GCAL+"#calendarmeta";D("google.gdata.calendar.CalendarMetaKind.TERM_CALENDARMETA",bk);var ck=function(a){n(this,a?a[w]:this[w])};D("google.gdata.calendar.ColorProperty",ck);ck[t].b=function(){return this[w]};D("google.gdata.calendar.ColorProperty.prototype.getValue",ck[t].b);ck[t].a=function(a){n(this,a)};D("google.gdata.calendar.ColorProperty.prototype.setValue",ck[t].a);D("google.gdata.calendar.ColorProperty.VALUE_RGB_0D7813","#0D7813");D("google.gdata.calendar.ColorProperty.VALUE_RGB_1B887A","#1B887A");D("google.gdata.calendar.ColorProperty.VALUE_RGB_28754E","#28754E");D("google.gdata.calendar.ColorProperty.VALUE_RGB_29527A","#29527A");D("google.gdata.calendar.ColorProperty.VALUE_RGB_2952A3","#2952A3");D("google.gdata.calendar.ColorProperty.VALUE_RGB_4A716C","#4A716C");D("google.gdata.calendar.ColorProperty.VALUE_RGB_4E5D6C","#4E5D6C");D("google.gdata.calendar.ColorProperty.VALUE_RGB_5229A3","#5229A3");D("google.gdata.calendar.ColorProperty.VALUE_RGB_528800","#528800");D("google.gdata.calendar.ColorProperty.VALUE_RGB_5A6986","#5A6986");D("google.gdata.calendar.ColorProperty.VALUE_RGB_6E6E41","#6E6E41");D("google.gdata.calendar.ColorProperty.VALUE_RGB_705770","#705770");D("google.gdata.calendar.ColorProperty.VALUE_RGB_7A367A","#7A367A");D("google.gdata.calendar.ColorProperty.VALUE_RGB_865A5A","#865A5A");D("google.gdata.calendar.ColorProperty.VALUE_RGB_88880E","#88880E");D("google.gdata.calendar.ColorProperty.VALUE_RGB_8D6F47","#8D6F47");D("google.gdata.calendar.ColorProperty.VALUE_RGB_A32929","#A32929");D("google.gdata.calendar.ColorProperty.VALUE_RGB_AB8B00","#AB8B00");D("google.gdata.calendar.ColorProperty.VALUE_RGB_B1365F","#B1365F");D("google.gdata.calendar.ColorProperty.VALUE_RGB_B1440E","#B1440E");D("google.gdata.calendar.ColorProperty.VALUE_RGB_BE6D00","#BE6D00");var dk=function(a){if(a){this.a(a[w])}else{n(this,this[w])}};D("google.gdata.calendar.GuestsCanInviteOthersProperty",dk);dk[t].b=function(){return this[w]===undefined?undefined:this[w]==="true"};D("google.gdata.calendar.GuestsCanInviteOthersProperty.prototype.getValue",dk[t].b);dk[t].a=function(a){n(this,a===undefined?undefined:i(a))};D("google.gdata.calendar.GuestsCanInviteOthersProperty.prototype.setValue",dk[t].a);var ek=function(a){if(a){this.a(a[w])}else{n(this,this[w])}};D("google.gdata.calendar.GuestsCanModifyProperty",ek);ek[t].b=function(){return this[w]===undefined?undefined:this[w]==="true"};D("google.gdata.calendar.GuestsCanModifyProperty.prototype.getValue",ek[t].b);ek[t].a=function(a){n(this,a===undefined?undefined:i(a))};D("google.gdata.calendar.GuestsCanModifyProperty.prototype.setValue",ek[t].a);var fk=function(a){if(a){this.a(a[w])}else{n(this,this[w])}};D("google.gdata.calendar.GuestsCanSeeGuestsProperty",fk);fk[t].b=function(){return this[w]===undefined?undefined:this[w]==="true"};D("google.gdata.calendar.GuestsCanSeeGuestsProperty.prototype.getValue",fk[t].b);fk[t].a=function(a){n(this,a===undefined?undefined:i(a))};D("google.gdata.calendar.GuestsCanSeeGuestsProperty.prototype.setValue",fk[t].a);var gk=function(a){if(a){this.a(a[w])}else{n(this,this[w])}};D("google.gdata.calendar.HiddenProperty",gk);gk[t].b=function(){return this[w]===undefined?undefined:this[w]==="true"};D("google.gdata.calendar.HiddenProperty.prototype.getValue",gk[t].b);gk[t].a=function(a){n(this,a===undefined?undefined:i(a))};D("google.gdata.calendar.HiddenProperty.prototype.setValue",gk[t].a);var hk=function(a){n(this,a?a[w]:this[w])};D("google.gdata.calendar.IcalUIDProperty",hk);hk[t].b=function(){return this[w]};D("google.gdata.calendar.IcalUIDProperty.prototype.getValue",hk[t].b);hk[t].a=function(a){n(this,a)};D("google.gdata.calendar.IcalUIDProperty.prototype.setValue",hk[t].a);var ik=function(a){n(this,a?a[w]:this[w])};D("google.gdata.calendar.OverrideNameProperty",ik);ik[t].b=function(){return this[w]};D("google.gdata.calendar.OverrideNameProperty.prototype.getValue",ik[t].b);ik[t].a=function(a){n(this,a)};D("google.gdata.calendar.OverrideNameProperty.prototype.setValue",ik[t].a);var jk=function(a){if(a){this.a(a[w])}else{n(this,this[w])}};D("google.gdata.calendar.PrivateCopyProperty",jk);jk[t].b=function(){return this[w]===undefined?undefined:this[w]==="true"};D("google.gdata.calendar.PrivateCopyProperty.prototype.getValue",jk[t].b);jk[t].a=function(a){n(this,a===undefined?undefined:i(a))};D("google.gdata.calendar.PrivateCopyProperty.prototype.setValue",jk[t].a);var kk=function(a){if(a){this.a(a[w])}else{n(this,this[w])}};D("google.gdata.calendar.QuickAddProperty",kk);kk[t].b=function(){return this[w]===undefined?undefined:this[w]==="true"};D("google.gdata.calendar.QuickAddProperty.prototype.getValue",kk[t].b);kk[t].a=function(a){n(this,a===undefined?undefined:i(a))};D("google.gdata.calendar.QuickAddProperty.prototype.setValue",kk[t].a);var lk=function(a){if(a){this.id=a.id;this.a(a[w])}else{this.id=this.id;n(this,this[w])}};D("google.gdata.calendar.ResourceProperty",lk);lk[t].Ia=function(){return this.id};D("google.gdata.calendar.ResourceProperty.prototype.getId",lk[t].Ia);lk[t].Ba=function(a){this.id=a};D("google.gdata.calendar.ResourceProperty.prototype.setId",lk[t].Ba);lk[t].b=function(){return this[w]===undefined?undefined:this[w]==="true"};D("google.gdata.calendar.ResourceProperty.prototype.getValue",lk[t].b);lk[t].a=function(a){n(this,a===undefined?undefined:i(a))};D("google.gdata.calendar.ResourceProperty.prototype.setValue",lk[t].a);var mk=function(a){if(a){this.a(a[w])}else{n(this,this[w])}};D("google.gdata.calendar.SelectedProperty",mk);mk[t].b=function(){return this[w]===undefined?undefined:this[w]==="true"};D("google.gdata.calendar.SelectedProperty.prototype.getValue",mk[t].b);mk[t].a=function(a){n(this,a===undefined?undefined:i(a))};D("google.gdata.calendar.SelectedProperty.prototype.setValue",mk[t].a);var nk=function(a){if(a){this.a(a[w])}else{n(this,this[w])}};D("google.gdata.calendar.SendAclNotificationsProperty",nk);nk[t].b=function(){return this[w]===undefined?undefined:this[w]==="true"};D("google.gdata.calendar.SendAclNotificationsProperty.prototype.getValue",nk[t].b);nk[t].a=function(a){n(this,a===undefined?undefined:i(a))};D("google.gdata.calendar.SendAclNotificationsProperty.prototype.setValue",nk[t].a);var ok=function(a){if(a){this.a(a[w])}else{n(this,this[w])}};D("google.gdata.calendar.SendEventNotificationsProperty",ok);ok[t].b=function(){return this[w]===undefined?undefined:this[w]==="true"};D("google.gdata.calendar.SendEventNotificationsProperty.prototype.getValue",ok[t].b);ok[t].a=function(a){n(this,a===undefined?undefined:i(a))};D("google.gdata.calendar.SendEventNotificationsProperty.prototype.setValue",ok[t].a);var pk=function(a){if(a){this.a(a[w])}else{n(this,this[w])}};D("google.gdata.calendar.SequenceNumberProperty",pk);pk[t].b=function(){return this[w]===undefined?undefined:k(this[w])};D("google.gdata.calendar.SequenceNumberProperty.prototype.getValue",pk[t].b);pk[t].a=function(a){n(this,a===undefined?undefined:i(a))};D("google.gdata.calendar.SequenceNumberProperty.prototype.setValue",pk[t].a);var qk=function(a){Zg[z](this,a);for(var d=["label"],e=0;e<d[r];e++){var h=d[e];h in this&&!C(this[h])&&delete this[h]}};D("google.gdata.calendar.SettingsKind",qk);qk.e(Zg);var rk=E.calendar.namespace.GCAL+"#settings";D("google.gdata.calendar.SettingsKind.TERM_SETTINGS",rk);var sk=function(a){if(a){wa(this,a[qb]);n(this,a[w])}else{wa(this,this[qb]);n(this,this[w])}};D("google.gdata.calendar.SettingsProperty",sk);sk[t].u=function(){return this[qb]};D("google.gdata.calendar.SettingsProperty.prototype.getName",sk[t].u);sk[t].D=function(a){wa(this,a)};D("google.gdata.calendar.SettingsProperty.prototype.setName",sk[t].D);D("google.gdata.calendar.SettingsProperty.NAME_ALTERNATE_CALENDAR","alternateCalendar");D("google.gdata.calendar.SettingsProperty.NAME_COUNTRY","country");D("google.gdata.calendar.SettingsProperty.NAME_CUSTOM_CAL_MODE","customCalMode");D("google.gdata.calendar.SettingsProperty.NAME_DATE_FIELD_ORDER","dateFieldOrder");D("google.gdata.calendar.SettingsProperty.NAME_DEFAULT_CAL_MODE","defaultCalMode");D("google.gdata.calendar.SettingsProperty.NAME_DISPLAY_ALL_TIMEZONES","displayAllTimezones");D("google.gdata.calendar.SettingsProperty.NAME_FORMAT_24_HOUR_TIME","format24HourTime");D("google.gdata.calendar.SettingsProperty.NAME_HIDE_INVITATIONS","hideInvitations");D("google.gdata.calendar.SettingsProperty.NAME_HIDE_WEEKENDS","hideWeekends");D("google.gdata.calendar.SettingsProperty.NAME_LOCALE","locale");D("google.gdata.calendar.SettingsProperty.NAME_SHOW_DECLINED_EVENTS","showDeclinedEvents");D("google.gdata.calendar.SettingsProperty.NAME_TIMEZONE","timezone");D("google.gdata.calendar.SettingsProperty.NAME_TIMEZONE_LABEL","timezoneLabel");D("google.gdata.calendar.SettingsProperty.NAME_USER_LOCATION","userLocation");D("google.gdata.calendar.SettingsProperty.NAME_WEATHER","weather");D("google.gdata.calendar.SettingsProperty.NAME_WEEK_START","weekStart");sk[t].b=function(){return this[w]};D("google.gdata.calendar.SettingsProperty.prototype.getValue",sk[t].b);sk[t].a=function(a){n(this,a)};D("google.gdata.calendar.SettingsProperty.prototype.setValue",sk[t].a);var tk=function(a){this.methods=a?a.methods:this.methods};D("google.gdata.calendar.SuppressReplyNotificationsProperty",tk);tk[t].Xo=function(){return this.methods};D("google.gdata.calendar.SuppressReplyNotificationsProperty.prototype.getMethods",tk[t].Xo);tk[t].Ir=function(a){this.methods=a};D("google.gdata.calendar.SuppressReplyNotificationsProperty.prototype.setMethods",tk[t].Ir);var uk=function(a){if(a){this.a(a[w])}else{n(this,this[w])}};D("google.gdata.calendar.SyncEventProperty",uk);uk[t].b=function(){return this[w]===undefined?undefined:this[w]==="true"};D("google.gdata.calendar.SyncEventProperty.prototype.getValue",uk[t].b);uk[t].a=function(a){n(this,a===undefined?undefined:i(a))};D("google.gdata.calendar.SyncEventProperty.prototype.setValue",uk[t].a);var vk=function(a){n(this,a?a[w]:this[w])};D("google.gdata.calendar.TimeZoneProperty",vk);vk[t].b=function(){return this[w]};D("google.gdata.calendar.TimeZoneProperty.prototype.getValue",vk[t].b);vk[t].a=function(a){n(this,a)};D("google.gdata.calendar.TimeZoneProperty.prototype.setValue",vk[t].a);var wk=function(a){if(a){this.a(a[w])}else{n(this,this[w])}};D("google.gdata.calendar.TimesCleanedProperty",wk);wk[t].b=function(){return this[w]===undefined?undefined:k(this[w])};D("google.gdata.calendar.TimesCleanedProperty.prototype.getValue",wk[t].b);wk[t].a=function(a){n(this,a===undefined?undefined:i(a))};D("google.gdata.calendar.TimesCleanedProperty.prototype.setValue",wk[t].a);var xk=function(a){if(a){wa(this,a[qb]);n(this,a[w])}else{wa(this,this[qb]);n(this,this[w])}};D("google.gdata.calendar.WebContentGadgetPref",xk);xk[t].u=function(){return this[qb]};D("google.gdata.calendar.WebContentGadgetPref.prototype.getName",xk[t].u);xk[t].D=function(a){wa(this,a)};D("google.gdata.calendar.WebContentGadgetPref.prototype.setName",xk[t].D);xk[t].b=function(){return this[w]};D("google.gdata.calendar.WebContentGadgetPref.prototype.getValue",xk[t].b);xk[t].a=function(a){n(this,a)};D("google.gdata.calendar.WebContentGadgetPref.prototype.setValue",xk[t].a);var yk=function(a){if(!C(this.Cl)){this.Cl=lk}bi[z](this,a);if(a){this.Cj(a.resource)}else{this.gCal$resource=E.util.mutateTo(this.gCal$resource,this.Cl)}for(var d=["gd$attendeeType","gd$entryLink"],e=0;e<d[r];e++){var h=d[e];h in this&&!C(this[h])&&delete this[h]}};D("google.gdata.calendar.CalendarWho",yk);yk.e(bi);yk[t].Wp=function(){return this.gCal$resource};D("google.gdata.calendar.CalendarWho.prototype.getResource",yk[t].Wp);yk[t].Cj=function(a){if(a&&a[u]===m){a=new this.Cl(a)}this.gCal$resource=a};D("google.gdata.calendar.CalendarWho.prototype.setResource",yk[t].Cj);var zk=function(a){if(!C(this.Hl)){this.Hl=sk}J[z](this,a);if(a){this.Ij(a.settingsProperty)}else{this.gCal$settingsProperty=E.util.mutateTo(this.gCal$settingsProperty,this.Hl)}for(var d=["published","content","app$control","summary","rights","app$edited"],e=0;e<d[r];e++){var h=d[e];h in this&&!C(this[h])&&delete this[h]}};D("google.gdata.calendar.SettingsEntry",zk);zk.e(J);zk[t].C=E.calendar.namespace.GCAL;D("google.gdata.calendar.SettingsEntry.prototype.xmlns$gCal",zk[t].C);zk[t].fq=function(){return this.gCal$settingsProperty};D("google.gdata.calendar.SettingsEntry.prototype.getSettingsProperty",zk[t].fq);zk[t].Ij=function(a){if(a&&a[u]===m){a=new this.Hl(a)}this.gCal$settingsProperty=a};D("google.gdata.calendar.SettingsEntry.prototype.setSettingsProperty",zk[t].Ij);var Ak=function(a){if(!C(this.Kk)){this.Kk=xk}if(a){this.yi(a.gadgetPrefs);this.Ka(a[ub]);this.url=a.url;this.Ma(a[Ia])}else{if(this.gCal$webContentGadgetPref){for(var d=this.gCal$webContentGadgetPref,e=0;e<d[r];e++){this.gCal$webContentGadgetPref[e]=E.util.mutateTo(d[e],this.Kk)}}else{this.gCal$webContentGadgetPref=[]}ya(this,this[ub]);this.url=this.url;ma(this,this[Ia])}};D("google.gdata.calendar.WebContent",Ak);Ak[t].Zn=function(){return this.gCal$webContentGadgetPref};D("google.gdata.calendar.WebContent.prototype.getGadgetPrefs",Ak[t].Zn);Ak[t].yi=function(a){this.gCal$webContentGadgetPref=[];if(a){for(var d=0;d<a[r];d++){this.Xg(a[d])}}};D("google.gdata.calendar.WebContent.prototype.setGadgetPrefs",Ak[t].yi);Ak[t].Xg=function(a){if(a[u]===m){a=new this.Kk(a)}this.gCal$webContentGadgetPref[q](a)};D("google.gdata.calendar.WebContent.prototype.addGadgetPref",Ak[t].Xg);Ak[t].Ta=function(){return this[ub]===undefined?undefined:k(this[ub])};D("google.gdata.calendar.WebContent.prototype.getHeight",Ak[t].Ta);Ak[t].Ka=function(a){ya(this,a===undefined?undefined:i(a))};D("google.gdata.calendar.WebContent.prototype.setHeight",Ak[t].Ka);Ak[t].Ja=function(){return this.url};D("google.gdata.calendar.WebContent.prototype.getUrl",Ak[t].Ja);Ak[t].La=function(a){this.url=a};D("google.gdata.calendar.WebContent.prototype.setUrl",Ak[t].La);Ak[t].Ua=function(){return this[Ia]===undefined?undefined:k(this[Ia])};D("google.gdata.calendar.WebContent.prototype.getWidth",Ak[t].Ua);Ak[t].Ma=function(a){ma(this,a===undefined?undefined:i(a))};D("google.gdata.calendar.WebContent.prototype.setWidth",Ak[t].Ma);Ak[t].Yn=function(a){for(var d=this.gCal$webContentGadgetPref,e=0;e<d[r];e++){var h=d[e];if(h.u()==a){return h}}return undefined};D("google.gdata.calendar.WebContent.prototype.getGadgetPref",Ak[t].Yn);var Bk=function(a){if(!C(this.cm)){this.cm=Ak}Hi[z](this,a);if(a){this.Ig(a.webContent)}else{this.gCal$webContent=E.util.mutateTo(this.gCal$webContent,this.cm)}for(var d=["hreflang","xml$lang"],e=0;e<d[r];e++){var h=d[e];h in this&&!C(this[h])&&delete this[h]}};D("google.gdata.calendar.CalendarLink",Bk);Bk.e(Hi);D("google.gdata.calendar.CalendarLink.REL_WEB_CONTENT","http://schemas.google.com/gCal/2005/webContent");Bk[t].nd=function(){return this.gCal$webContent};D("google.gdata.calendar.CalendarLink.prototype.getWebContent",Bk[t].nd);Bk[t].Ig=function(a){if(a&&a[u]===m){a=new this.cm(a)}this.gCal$webContent=a};D("google.gdata.calendar.CalendarLink.prototype.setWebContent",Bk[t].Ig);var Ck=function(a,d,e,h){var j=new Bk;j.p("http://schemas.google.com/gCal/2005/webContent");j.l(h);j.N(d);j.K(e);j.Ig(a);return j};D("google.gdata.calendar.CalendarLink.create",Ck);var Dk=function(a){if(!C(this.m)){this.m=zk}K[z](this,a);for(var d=["subtitle","xml$base","rights","openSearch$totalResults","logo","openSearch$startIndex","openSearch$itemsPerPage"],e=0;e<d[r];e++){var h=d[e];h in this&&!C(this[h])&&delete this[h]}};D("google.gdata.calendar.CalendarSettingsFeed",Dk);Dk.e(K);Dk[t].C=E.calendar.namespace.GCAL;D("google.gdata.calendar.CalendarSettingsFeed.prototype.xmlns$gCal",Dk[t].C);var Ek=function(a){Bk[z](this,a);for(var d=["gCal$webContent","title","length"],e=0;e<d[r];e++){var h=d[e];h in this&&!C(this[h])&&delete this[h]}};D("google.gdata.calendar.EventFeedLink",Ek);Ek.e(Bk);var Fk=E.calendar.namespace.GCAL+"#eventFeed";D("google.gdata.calendar.EventFeedLink.REL_EVENT_FEED",Fk);var Gk=function(a){if(!C(this.n)){this.n=Bk}if(!C(this.mg)){this.mg=Tj}if(!C(this.Fl)){this.Fl=nk}Ki[z](this,a);if(a){this.Gj(a.sendAclNotifications)}else{this.gCal$sendAclNotifications=E.util.mutateTo(this.gCal$sendAclNotifications,this.Fl)}};D("google.gdata.calendar.CalendarAclEntry",Gk);Gk.e(Ki);Gk[t].C=E.calendar.namespace.GCAL;D("google.gdata.calendar.CalendarAclEntry.prototype.xmlns$gCal",Gk[t].C);Gk[t].aq=function(){return this.gCal$sendAclNotifications};D("google.gdata.calendar.CalendarAclEntry.prototype.getSendAclNotifications",Gk[t].aq);Gk[t].Gj=function(a){if(a&&a[u]===m){a=new this.Fl(a)}this.gCal$sendAclNotifications=a};D("google.gdata.calendar.CalendarAclEntry.prototype.setSendAclNotifications",Gk[t].Gj);var Hk=function(a){if(!C(this.m)){this.m=Gk}if(!C(this.n)){this.n=Bk}Li[z](this,a)};D("google.gdata.calendar.CalendarAclFeed",Hk);Hk.e(Li);Hk[t].C=E.calendar.namespace.GCAL;D("google.gdata.calendar.CalendarAclFeed.prototype.xmlns$gCal",Hk[t].C);Hk[t].nn=function(){return this.g(Ji,"application/atom+xml")};D("google.gdata.calendar.CalendarAclFeed.prototype.getControlledObjectLink",Hk[t].nn);var Ik=function(a){if(!C(this.n)){this.n=Bk}J[z](this,a);for(var d=["app$control","summary","rights","app$edited"],e=0;e<d[r];e++){var h=d[e];h in this&&!C(this[h])&&delete this[h]}};D("google.gdata.calendar.CalendarCommentEntry",Ik);Ik.e(J);Ik[t].C=E.calendar.namespace.GCAL;D("google.gdata.calendar.CalendarCommentEntry.prototype.xmlns$gCal",Ik[t].C);var Jk=function(a){if(!C(this.m)){this.m=Ik}if(!C(this.n)){this.n=Bk}K[z](this,a);for(var d=["subtitle","xml$base","rights","logo"],e=0;e<d[r];e++){var h=d[e];h in this&&!C(this[h])&&delete this[h]}};D("google.gdata.calendar.CalendarCommentFeed",Jk);Jk.e(K);Jk[t].C=E.calendar.namespace.GCAL;D("google.gdata.calendar.CalendarCommentFeed.prototype.xmlns$gCal",Jk[t].C);var Kk=function(a){if(!C(this.Vb)){this.Vb=Jk}Jg[z](this,a)};D("google.gdata.calendar.CalendarCommentsFeedLink",Kk);Kk.e(Jg);var T=function(a){if(!C(this.gk)){this.gk=Qj}if(!C(this.rk)){this.rk=ck}if(!C(this.Tk)){this.Tk=gk}if(!C(this.n)){this.n=Bk}if(!C(this.Pd)){this.Pd=Yh}if(!C(this.jl)){this.jl=ik}if(!C(this.El)){this.El=mk}if(!C(this.ce)){this.ce=vk}if(!C(this.de)){this.de=wk}J[z](this,a);if(a){this.Ih(a.accessLevel);this.Wh(a.color);this.Ii(a.hidden);this.Jc(a.locations);this.ej(a.overrideName);this.Fj(a.selected);this.dd(a.timeZone);this.ed(a.timesCleaned)}else{this.gCal$accesslevel=E.util.mutateTo(this.gCal$accesslevel,this.gk);this.gCal$color=E.util.mutateTo(this.gCal$color,this.rk);this.gCal$hidden=E.util.mutateTo(this.gCal$hidden,this.Tk);if(this.gd$where){for(var d=this.gd$where,e=0;e<d[r];e++){this.gd$where[e]=E.util.mutateTo(d[e],this.Pd)}}else{this.gd$where=[]}this.gCal$overridename=E.util.mutateTo(this.gCal$overridename,this.jl);this.gCal$selected=E.util.mutateTo(this.gCal$selected,this.El);this.gCal$timezone=E.util.mutateTo(this.gCal$timezone,this.ce);this.gCal$timesCleaned=E.util.mutateTo(this.gCal$timesCleaned,this.de)}var h=["app$control","rights","app$edited"];for(e=0;e<h[r];e++){var j=h[e];j in this&&!C(this[j])&&delete this[j]}};D("google.gdata.calendar.CalendarEntry",T);T.e(J);T[t].C=E.calendar.namespace.GCAL;D("google.gdata.calendar.CalendarEntry.prototype.xmlns$gCal",T[t].C);T[t].f=E.namespace.GD;D("google.gdata.calendar.CalendarEntry.prototype.xmlns$gd",T[t].f);T[t].ym=function(){return this.gCal$accesslevel};D("google.gdata.calendar.CalendarEntry.prototype.getAccessLevel",T[t].ym);T[t].Ih=function(a){if(a&&a[u]===m){a=new this.gk(a)}this.gCal$accesslevel=a};D("google.gdata.calendar.CalendarEntry.prototype.setAccessLevel",T[t].Ih);T[t].$m=function(){return this.gCal$color};D("google.gdata.calendar.CalendarEntry.prototype.getColor",T[t].$m);T[t].Wh=function(a){if(a&&a[u]===m){a=new this.rk(a)}this.gCal$color=a};D("google.gdata.calendar.CalendarEntry.prototype.setColor",T[t].Wh);T[t].lo=function(){return this.gCal$hidden};D("google.gdata.calendar.CalendarEntry.prototype.getHidden",T[t].lo);T[t].Ii=function(a){if(a&&a[u]===m){a=new this.Tk(a)}this.gCal$hidden=a};D("google.gdata.calendar.CalendarEntry.prototype.setHidden",T[t].Ii);T[t].Ie=function(){return this.gd$where};D("google.gdata.calendar.CalendarEntry.prototype.getLocations",T[t].Ie);T[t].Jc=function(a){this.gd$where=[];if(a){for(var d=0;d<a[r];d++){this.$b(a[d])}}};D("google.gdata.calendar.CalendarEntry.prototype.setLocations",T[t].Jc);T[t].$b=function(a){if(a[u]===m){a=new this.Pd(a)}this.gd$where[q](a)};D("google.gdata.calendar.CalendarEntry.prototype.addLocation",T[t].$b);T[t].kp=function(){return this.gCal$overridename};D("google.gdata.calendar.CalendarEntry.prototype.getOverrideName",T[t].kp);T[t].ej=function(a){if(a&&a[u]===m){a=new this.jl(a)}this.gCal$overridename=a};D("google.gdata.calendar.CalendarEntry.prototype.setOverrideName",T[t].ej);T[t].$p=function(){return this.gCal$selected};D("google.gdata.calendar.CalendarEntry.prototype.getSelected",T[t].$p);T[t].Fj=function(a){if(a&&a[u]===m){a=new this.El(a)}this.gCal$selected=a};D("google.gdata.calendar.CalendarEntry.prototype.setSelected",T[t].Fj);T[t].pf=function(){return this.gCal$timezone};D("google.gdata.calendar.CalendarEntry.prototype.getTimeZone",T[t].pf);T[t].dd=function(a){if(a&&a[u]===m){a=new this.ce(a)}this.gCal$timezone=a};D("google.gdata.calendar.CalendarEntry.prototype.setTimeZone",T[t].dd);T[t].qf=function(){return this.gCal$timesCleaned};D("google.gdata.calendar.CalendarEntry.prototype.getTimesCleaned",T[t].qf);T[t].ed=function(a){if(a&&a[u]===m){a=new this.de(a)}this.gCal$timesCleaned=a};D("google.gdata.calendar.CalendarEntry.prototype.setTimesCleaned",T[t].ed);T[t].xm=function(){return this.g(Ii,"application/atom+xml")};D("google.gdata.calendar.CalendarEntry.prototype.getAccessControlListLink",T[t].xm);T[t].ic=function(){return this.g("alternate","application/atom+xml")};D("google.gdata.calendar.CalendarEntry.prototype.getAtomAlternateLink",T[t].ic);T[t].Hn=function(){return this.g(Fk,"application/atom+xml")};D("google.gdata.calendar.CalendarEntry.prototype.getEventFeedLink",T[t].Hn);T[t].Cb=function(){return this.g("related","application/atom+xml")};D("google.gdata.calendar.CalendarEntry.prototype.getRelatedLink",T[t].Cb);var Lk=function(a){if(!C(this.m)){this.m=T}if(!C(this.n)){this.n=Bk}K[z](this,a);for(var d=["subtitle","xml$base","rights","openSearch$totalResults","logo"],e=0;e<d[r];e++){var h=d[e];h in this&&!C(this[h])&&delete this[h]}};D("google.gdata.calendar.CalendarFeed",Lk);Lk.e(K);Lk[t].C=E.calendar.namespace.GCAL;D("google.gdata.calendar.CalendarFeed.prototype.xmlns$gCal",Lk[t].C);Lk[t].f=E.namespace.GD;D("google.gdata.calendar.CalendarFeed.prototype.xmlns$gd",Lk[t].f);var Mk=function(a){if(!C(this.za)){this.za=Kk}mi[z](this,a)};D("google.gdata.calendar.CalendarComments",Mk);Mk.e(mi);var Nk=function(a){if(!C(this.tb)){this.tb=Mk}if(!C(this.n)){this.n=Bk}if(!C(this.Zd)){this.Zd=pk}if(!C(this.fe)){this.fe=hk}if(!C(this.ng)){this.ng=yk}L[z](this,a);if(a){this.Zc(a.sequence);this.gd(a.uid)}else{this.gCal$sequence=E.util.mutateTo(this.gCal$sequence,this.Zd);this.gCal$uid=E.util.mutateTo(this.gCal$uid,this.fe)}};D("google.gdata.calendar.CalendarRecurrenceExceptionEntry",Nk);Nk.e(L);Nk[t].C=E.calendar.namespace.GCAL;D("google.gdata.calendar.CalendarRecurrenceExceptionEntry.prototype.xmlns$gCal",Nk[t].C);Nk[t].ff=function(){return this.gCal$sequence};D("google.gdata.calendar.CalendarRecurrenceExceptionEntry.prototype.getSequence",Nk[t].ff);Nk[t].Zc=function(a){if(a&&a[u]===m){a=new this.Zd(a)}this.gCal$sequence=a};D("google.gdata.calendar.CalendarRecurrenceExceptionEntry.prototype.setSequence",Nk[t].Zc);Nk[t].sf=function(){return this.gCal$uid};D("google.gdata.calendar.CalendarRecurrenceExceptionEntry.prototype.getUid",Nk[t].sf);Nk[t].gd=function(a){if(a&&a[u]===m){a=new this.fe(a)}this.gCal$uid=a};D("google.gdata.calendar.CalendarRecurrenceExceptionEntry.prototype.setUid",Nk[t].gd);var Ok=function(a){if(!C(this.Jd)){this.Jd=Nk}qi[z](this,a)};D("google.gdata.calendar.CalendarRecurrenceExceptionEntryLink",Ok);Ok.e(qi);var Pk=function(a){if(!C(this.eb)){this.eb=Ok}Ai[z](this,a)};D("google.gdata.calendar.CalendarRecurrenceException",Pk);Pk.e(Ai);var U=function(a){if(!C(this.kk)){this.kk=Sj}if(!C(this.tb)){this.tb=Mk}if(!C(this.ub)){this.ub=Zj}if(!C(this.Nk)){this.Nk=Pj}if(!C(this.Qk)){this.Qk=dk}if(!C(this.Rk)){this.Rk=ek}if(!C(this.Sk)){this.Sk=fk}if(!C(this.n)){this.n=Bk}if(!C(this.kg)){this.kg=yk}if(!C(this.ul)){this.ul=jk}if(!C(this.xl)){this.xl=kk}if(!C(this.lg)){this.lg=Pk}if(!C(this.Gl)){this.Gl=ok}if(!C(this.Zd)){this.Zd=pk}if(!C(this.Pl)){this.Pl=tk}if(!C(this.Rl)){this.Rl=uk}if(!C(this.fe)){this.fe=hk}P[z](this,a);if(a){this.Nh(a.anyoneCanAddSelf);this.cb(a.extendedProperties);this.Ci(a.geoLocation);this.Fi(a.guestsCanInviteOthers);this.Gi(a.guestsCanModify);this.Hi(a.guestsCanSeeGuests);this.sj(a.privateCopy);this.wj(a.quickAdd);this.Hj(a.sendEventNotifications);this.Zc(a.sequence);this.Pj(a.suppressReplyNotifications);this.Qj(a.syncEvent);this.gd(a.uid)}else{this.gCal$anyoneCanAddSelf=E.util.mutateTo(this.gCal$anyoneCanAddSelf,this.kk);if(this.gd$extendedProperty){for(var d=this.gd$extendedProperty,e=0;e<d[r];e++){this.gd$extendedProperty[e]=E.util.mutateTo(d[e],this.ub)}}else{this.gd$extendedProperty=[]}this.georss$where=E.util.mutateTo(this.georss$where,this.Nk);this.gCal$guestsCanInviteOthers=E.util.mutateTo(this.gCal$guestsCanInviteOthers,this.Qk);this.gCal$guestsCanModify=E.util.mutateTo(this.gCal$guestsCanModify,this.Rk);this.gCal$guestsCanSeeGuests=E.util.mutateTo(this.gCal$guestsCanSeeGuests,this.Sk);this.gCal$privateCopy=E.util.mutateTo(this.gCal$privateCopy,this.ul);this.gCal$quickadd=E.util.mutateTo(this.gCal$quickadd,this.xl);this.gCal$sendEventNotifications=E.util.mutateTo(this.gCal$sendEventNotifications,this.Gl);this.gCal$sequence=E.util.mutateTo(this.gCal$sequence,this.Zd);this.gCal$suppressReplyNotifications=E.util.mutateTo(this.gCal$suppressReplyNotifications,this.Pl);this.gCal$syncEvent=E.util.mutateTo(this.gCal$syncEvent,this.Rl);this.gCal$uid=E.util.mutateTo(this.gCal$uid,this.fe)}};D("google.gdata.calendar.CalendarEventEntry",U);U.e(P);U[t].C=E.calendar.namespace.GCAL;D("google.gdata.calendar.CalendarEventEntry.prototype.xmlns$gCal",U[t].C);U[t].Pf=E.geo.namespace.GEORSS;D("google.gdata.calendar.CalendarEventEntry.prototype.xmlns$georss",U[t].Pf);U[t].Qf=E.geo.namespace.GML;D("google.gdata.calendar.CalendarEventEntry.prototype.xmlns$gml",U[t].Qf);U[t].Im=function(){return this.gCal$anyoneCanAddSelf};D("google.gdata.calendar.CalendarEventEntry.prototype.getAnyoneCanAddSelf",U[t].Im);U[t].Nh=function(a){if(a&&a[u]===m){a=new this.kk(a)}this.gCal$anyoneCanAddSelf=a};D("google.gdata.calendar.CalendarEventEntry.prototype.setAnyoneCanAddSelf",U[t].Nh);U[t].Ab=function(){return this.gd$extendedProperty};D("google.gdata.calendar.CalendarEventEntry.prototype.getExtendedProperties",U[t].Ab);U[t].cb=function(a){this.gd$extendedProperty=[];if(a){for(var d=0;d<a[r];d++){this.$a(a[d])}}};D("google.gdata.calendar.CalendarEventEntry.prototype.setExtendedProperties",U[t].cb);U[t].$a=function(a){if(a[u]===m){a=new this.ub(a)}this.gd$extendedProperty[q](a)};D("google.gdata.calendar.CalendarEventEntry.prototype.addExtendedProperty",U[t].$a);U[t].bo=function(){return this.georss$where};D("google.gdata.calendar.CalendarEventEntry.prototype.getGeoLocation",U[t].bo);U[t].Ci=function(a){if(a&&a[u]===m){a=new this.Nk(a)}this.georss$where=a};D("google.gdata.calendar.CalendarEventEntry.prototype.setGeoLocation",U[t].Ci);U[t].ho=function(){return this.gCal$guestsCanInviteOthers};D("google.gdata.calendar.CalendarEventEntry.prototype.getGuestsCanInviteOthers",U[t].ho);U[t].Fi=function(a){if(a&&a[u]===m){a=new this.Qk(a)}this.gCal$guestsCanInviteOthers=a};D("google.gdata.calendar.CalendarEventEntry.prototype.setGuestsCanInviteOthers",U[t].Fi);U[t].jo=function(){return this.gCal$guestsCanModify};D("google.gdata.calendar.CalendarEventEntry.prototype.getGuestsCanModify",U[t].jo);U[t].Gi=function(a){if(a&&a[u]===m){a=new this.Rk(a)}this.gCal$guestsCanModify=a};D("google.gdata.calendar.CalendarEventEntry.prototype.setGuestsCanModify",U[t].Gi);U[t].ko=function(){return this.gCal$guestsCanSeeGuests};D("google.gdata.calendar.CalendarEventEntry.prototype.getGuestsCanSeeGuests",U[t].ko);U[t].Hi=function(a){if(a&&a[u]===m){a=new this.Sk(a)}this.gCal$guestsCanSeeGuests=a};D("google.gdata.calendar.CalendarEventEntry.prototype.setGuestsCanSeeGuests",U[t].Hi);U[t].Gp=function(){return this.gCal$privateCopy};D("google.gdata.calendar.CalendarEventEntry.prototype.getPrivateCopy",U[t].Gp);U[t].sj=function(a){if(a&&a[u]===m){a=new this.ul(a)}this.gCal$privateCopy=a};D("google.gdata.calendar.CalendarEventEntry.prototype.setPrivateCopy",U[t].sj);U[t].Lp=function(){return this.gCal$quickadd};D("google.gdata.calendar.CalendarEventEntry.prototype.getQuickAdd",U[t].Lp);U[t].wj=function(a){if(a&&a[u]===m){a=new this.xl(a)}this.gCal$quickadd=a};D("google.gdata.calendar.CalendarEventEntry.prototype.setQuickAdd",U[t].wj);U[t].bq=function(){return this.gCal$sendEventNotifications};D("google.gdata.calendar.CalendarEventEntry.prototype.getSendEventNotifications",U[t].bq);U[t].Hj=function(a){if(a&&a[u]===m){a=new this.Gl(a)}this.gCal$sendEventNotifications=a};D("google.gdata.calendar.CalendarEventEntry.prototype.setSendEventNotifications",U[t].Hj);U[t].ff=function(){return this.gCal$sequence};D("google.gdata.calendar.CalendarEventEntry.prototype.getSequence",U[t].ff);U[t].Zc=function(a){if(a&&a[u]===m){a=new this.Zd(a)}this.gCal$sequence=a};D("google.gdata.calendar.CalendarEventEntry.prototype.setSequence",U[t].Zc);U[t].uq=function(){return this.gCal$suppressReplyNotifications};D("google.gdata.calendar.CalendarEventEntry.prototype.getSuppressReplyNotifications",U[t].uq);U[t].Pj=function(a){if(a&&a[u]===m){a=new this.Pl(a)}this.gCal$suppressReplyNotifications=a};D("google.gdata.calendar.CalendarEventEntry.prototype.setSuppressReplyNotifications",U[t].Pj);U[t].vq=function(){return this.gCal$syncEvent};D("google.gdata.calendar.CalendarEventEntry.prototype.getSyncEvent",U[t].vq);U[t].Qj=function(a){if(a&&a[u]===m){a=new this.Rl(a)}this.gCal$syncEvent=a};D("google.gdata.calendar.CalendarEventEntry.prototype.setSyncEvent",U[t].Qj);U[t].sf=function(){return this.gCal$uid};D("google.gdata.calendar.CalendarEventEntry.prototype.getUid",U[t].sf);U[t].gd=function(a){if(a&&a[u]===m){a=new this.fe(a)}this.gCal$uid=a};D("google.gdata.calendar.CalendarEventEntry.prototype.setUid",U[t].gd);U[t].ea=function(){return this.g("alternate","text/html")};D("google.gdata.calendar.CalendarEventEntry.prototype.getHtmlLink",U[t].ea);U[t].Ah=function(){return this.g("http://schemas.google.com/gCal/2005/webContent")};D("google.gdata.calendar.CalendarEventEntry.prototype.getWebContentLink",U[t].Ah);U[t].nd=function(){var a=this.Ah();return a&&a.nd()};D("google.gdata.calendar.CalendarEventEntry.prototype.getWebContent",U[t].nd);U[t].dr=function(){var a=E.util.vh(this.link,"http://schemas.google.com/gCal/2005/webContent");a!==undefined&&this.link[vb](a,1)};D("google.gdata.calendar.CalendarEventEntry.prototype.removeWebContent",U[t].dr);U[t].is=function(a){var d=E.util.vh(this.link,"http://schemas.google.com/gCal/2005/webContent");if(d!==undefined){this.link[d]=a}else{this.link[q](a)}};D("google.gdata.calendar.CalendarEventEntry.prototype.setWebContentLink",U[t].is);var Qk=function(a){if(!C(this.jk)){this.jk=Rj}if(!C(this.m)){this.m=U}if(!C(this.n)){this.n=Bk}if(!C(this.ce)){this.ce=vk}if(!C(this.de)){this.de=wk}Bi[z](this,a);if(a){this.Lh(a.allowGSync);this.dd(a.timeZone);this.ed(a.timesCleaned)}else{this.gCal$allowGSync=E.util.mutateTo(this.gCal$allowGSync,this.jk);this.gCal$timezone=E.util.mutateTo(this.gCal$timezone,this.ce);this.gCal$timesCleaned=E.util.mutateTo(this.gCal$timesCleaned,this.de)}};D("google.gdata.calendar.CalendarEventFeed",Qk);Qk.e(Bi);Qk[t].C=E.calendar.namespace.GCAL;D("google.gdata.calendar.CalendarEventFeed.prototype.xmlns$gCal",Qk[t].C);Qk[t].Pf=E.geo.namespace.GEORSS;D("google.gdata.calendar.CalendarEventFeed.prototype.xmlns$georss",Qk[t].Pf);Qk[t].Qf=E.geo.namespace.GML;D("google.gdata.calendar.CalendarEventFeed.prototype.xmlns$gml",Qk[t].Qf);Qk[t].Gm=function(){return this.gCal$allowGSync};D("google.gdata.calendar.CalendarEventFeed.prototype.getAllowGSync",Qk[t].Gm);Qk[t].Lh=function(a){if(a&&a[u]===m){a=new this.jk(a)}this.gCal$allowGSync=a};D("google.gdata.calendar.CalendarEventFeed.prototype.setAllowGSync",Qk[t].Lh);Qk[t].pf=function(){return this.gCal$timezone};D("google.gdata.calendar.CalendarEventFeed.prototype.getTimeZone",Qk[t].pf);Qk[t].dd=function(a){if(a&&a[u]===m){a=new this.ce(a)}this.gCal$timezone=a};D("google.gdata.calendar.CalendarEventFeed.prototype.setTimeZone",Qk[t].dd);Qk[t].qf=function(){return this.gCal$timesCleaned};D("google.gdata.calendar.CalendarEventFeed.prototype.getTimesCleaned",Qk[t].qf);Qk[t].ed=function(a){if(a&&a[u]===m){a=new this.de(a)}this.gCal$timesCleaned=a};D("google.gdata.calendar.CalendarEventFeed.prototype.setTimesCleaned",Qk[t].ed);Qk[t].P=function(){return this.g(ch,"application/atom+xml")};D("google.gdata.calendar.CalendarEventFeed.prototype.getFeedBatchLink",Qk[t].P);Qk[t].t=function(){return this.g("next","application/atom+xml")};D("google.gdata.calendar.CalendarEventFeed.prototype.getNextLink",Qk[t].t);Qk[t].F=function(){return this.g("previous","application/atom+xml")};D("google.gdata.calendar.CalendarEventFeed.prototype.getPreviousLink",Qk[t].F);E.calendar.params={};E.calendar.params.EXTQ="extq";E.calendar.params.FUTUREEVENTS="futureevents";E.calendar.params.ORDERBY="orderby";E.calendar.params.RECURRENCE_EXPANSION_END="recurrence-expansion-end";E.calendar.params.RECURRENCE_EXPANSION_START="recurrence-expansion-start";E.calendar.params.SHOW_ALLOW_GSYNC="show-allow-gsync";E.calendar.params.SINGLEEVENTS="singleevents";E.calendar.params.SORTORDER="sortorder";E.calendar.params.START_MAX="start-max";E.calendar.params.START_MIN="start-min";var Rk=function(a){Hf[z](this,a);this.v(E.params.START_INDEX,{defaultValue:1})};D("google.gdata.calendar.CalendarCommentQuery",Rk);Rk.e(Hf);Rk[t].ga=function(a){this.d(E.params.AUTHOR,a)};D("google.gdata.calendar.CalendarCommentQuery.prototype.setAuthor",Rk[t].ga);Rk[t].ca=function(){return this.c(E.params.AUTHOR)};D("google.gdata.calendar.CalendarCommentQuery.prototype.getAuthor",Rk[t].ca);Rk[t].k=function(a){if(typeof a=="string"){a=k(a)}this.d(E.params.MAX_RESULTS,a)};D("google.gdata.calendar.CalendarCommentQuery.prototype.setMaxResults",Rk[t].k);Rk[t].j=function(){return this.c(E.params.MAX_RESULTS)};D("google.gdata.calendar.CalendarCommentQuery.prototype.getMaxResults",Rk[t].j);Rk[t].W=function(a){this.d(E.params.Q,a)};D("google.gdata.calendar.CalendarCommentQuery.prototype.setFullTextQuery",Rk[t].W);Rk[t].S=function(){return this.c(E.params.Q)};D("google.gdata.calendar.CalendarCommentQuery.prototype.getFullTextQuery",Rk[t].S);Rk[t].h=function(a){if(typeof a=="string"){a=k(a)}this.d(E.params.START_INDEX,a)};D("google.gdata.calendar.CalendarCommentQuery.prototype.setStartIndex",Rk[t].h);Rk[t].i=function(){return this.c(E.params.START_INDEX)};D("google.gdata.calendar.CalendarCommentQuery.prototype.getStartIndex",Rk[t].i);Rk[t].A=function(a){if(typeof a=="string"){a=G(a)}this.d(E.params.UPDATED_MAX,a)};D("google.gdata.calendar.CalendarCommentQuery.prototype.setUpdatedMax",Rk[t].A);Rk[t].w=function(){return this.c(E.params.UPDATED_MAX)};D("google.gdata.calendar.CalendarCommentQuery.prototype.getUpdatedMax",Rk[t].w);Rk[t].B=function(a){if(typeof a=="string"){a=G(a)}this.d(E.params.UPDATED_MIN,a)};D("google.gdata.calendar.CalendarCommentQuery.prototype.setUpdatedMin",Rk[t].B);Rk[t].z=function(){return this.c(E.params.UPDATED_MIN)};D("google.gdata.calendar.CalendarCommentQuery.prototype.getUpdatedMin",Rk[t].z);var V=function(a){Hf[z](this,a);this.v(E.calendar.params.FUTUREEVENTS,{defaultValue:g});this.v(E.calendar.params.ORDERBY,{defaultValue:"lastmodified"});this.v(E.calendar.params.SHOW_ALLOW_GSYNC,{defaultValue:g});this.v(E.calendar.params.SINGLEEVENTS,{defaultValue:g});this.v(E.params.START_INDEX,{defaultValue:1})};D("google.gdata.calendar.CalendarEventQuery",V);V.e(Hf);V[t].ga=function(a){this.d(E.params.AUTHOR,a)};D("google.gdata.calendar.CalendarEventQuery.prototype.setAuthor",V[t].ga);V[t].ca=function(){return this.c(E.params.AUTHOR)};D("google.gdata.calendar.CalendarEventQuery.prototype.getAuthor",V[t].ca);V[t].tr=function(a){if(typeof a=="string"){a=a==="true"}this.d(E.calendar.params.FUTUREEVENTS,a)};D("google.gdata.calendar.CalendarEventQuery.prototype.setFutureEvents",V[t].tr);V[t].Xn=function(){return this.c(E.calendar.params.FUTUREEVENTS)};D("google.gdata.calendar.CalendarEventQuery.prototype.getFutureEvents",V[t].Xn);V[t].k=function(a){if(typeof a=="string"){a=k(a)}this.d(E.params.MAX_RESULTS,a)};D("google.gdata.calendar.CalendarEventQuery.prototype.setMaxResults",V[t].k);V[t].j=function(){return this.c(E.params.MAX_RESULTS)};D("google.gdata.calendar.CalendarEventQuery.prototype.getMaxResults",V[t].j);D("google.gdata.calendar.CalendarEventQuery.ORDERBY_LAST_MODIFIED","lastmodified");D("google.gdata.calendar.CalendarEventQuery.ORDERBY_START_TIME","starttime");V[t].Lb=function(a){this.d(E.calendar.params.ORDERBY,a)};D("google.gdata.calendar.CalendarEventQuery.prototype.setOrderBy",V[t].Lb);V[t].Bb=function(){return this.c(E.calendar.params.ORDERBY)};D("google.gdata.calendar.CalendarEventQuery.prototype.getOrderBy",V[t].Bb);V[t].W=function(a){this.d(E.params.Q,a)};D("google.gdata.calendar.CalendarEventQuery.prototype.setFullTextQuery",V[t].W);V[t].S=function(){return this.c(E.params.Q)};D("google.gdata.calendar.CalendarEventQuery.prototype.getFullTextQuery",V[t].S);V[t].Ur=function(a){if(typeof a=="string"){a=G(a)}this.d(E.calendar.params.RECURRENCE_EXPANSION_END,a)};D("google.gdata.calendar.CalendarEventQuery.prototype.setRecurrenceExpansionEnd",V[t].Ur);V[t].Pp=function(){return this.c(E.calendar.params.RECURRENCE_EXPANSION_END)};D("google.gdata.calendar.CalendarEventQuery.prototype.getRecurrenceExpansionEnd",V[t].Pp);V[t].Vr=function(a){if(typeof a=="string"){a=G(a)}this.d(E.calendar.params.RECURRENCE_EXPANSION_START,a)};D("google.gdata.calendar.CalendarEventQuery.prototype.setRecurrenceExpansionStart",V[t].Vr);V[t].Qp=function(){return this.c(E.calendar.params.RECURRENCE_EXPANSION_START)};D("google.gdata.calendar.CalendarEventQuery.prototype.getRecurrenceExpansionStart",V[t].Qp);V[t].Xr=function(a){if(typeof a=="string"){a=a==="true"}this.d(E.calendar.params.SHOW_ALLOW_GSYNC,a)};D("google.gdata.calendar.CalendarEventQuery.prototype.setShowAllowGSync",V[t].Xr);V[t].gq=function(){return this.c(E.calendar.params.SHOW_ALLOW_GSYNC)};D("google.gdata.calendar.CalendarEventQuery.prototype.getShowAllowGSync",V[t].gq);V[t].Yr=function(a){if(typeof a=="string"){a=a==="true"}this.d(E.calendar.params.SINGLEEVENTS,a)};D("google.gdata.calendar.CalendarEventQuery.prototype.setSingleEvents",V[t].Yr);V[t].hq=function(){return this.c(E.calendar.params.SINGLEEVENTS)};D("google.gdata.calendar.CalendarEventQuery.prototype.getSingleEvents",V[t].hq);D("google.gdata.calendar.CalendarEventQuery.SORTORDER_ASCENDING","ascending");D("google.gdata.calendar.CalendarEventQuery.SORTORDER_DESCENDING","descending");V[t].Lf=function(a){this.d(E.calendar.params.SORTORDER,a)};D("google.gdata.calendar.CalendarEventQuery.prototype.setSortOrder",V[t].Lf);V[t].hf=function(){return this.c(E.calendar.params.SORTORDER)};D("google.gdata.calendar.CalendarEventQuery.prototype.getSortOrder",V[t].hf);V[t].h=function(a){if(typeof a=="string"){a=k(a)}this.d(E.params.START_INDEX,a)};D("google.gdata.calendar.CalendarEventQuery.prototype.setStartIndex",V[t].h);V[t].i=function(){return this.c(E.params.START_INDEX)};D("google.gdata.calendar.CalendarEventQuery.prototype.getStartIndex",V[t].i);V[t].Fr=function(a){if(typeof a=="string"){a=G(a)}this.d(E.calendar.params.START_MAX,a)};D("google.gdata.calendar.CalendarEventQuery.prototype.setMaximumStartTime",V[t].Fr);V[t].Ro=function(){return this.c(E.calendar.params.START_MAX)};D("google.gdata.calendar.CalendarEventQuery.prototype.getMaximumStartTime",V[t].Ro);V[t].Jr=function(a){if(typeof a=="string"){a=G(a)}this.d(E.calendar.params.START_MIN,a)};D("google.gdata.calendar.CalendarEventQuery.prototype.setMinimumStartTime",V[t].Jr);V[t].Zo=function(){return this.c(E.calendar.params.START_MIN)};D("google.gdata.calendar.CalendarEventQuery.prototype.getMinimumStartTime",V[t].Zo);V[t].A=function(a){if(typeof a=="string"){a=G(a)}this.d(E.params.UPDATED_MAX,a)};D("google.gdata.calendar.CalendarEventQuery.prototype.setUpdatedMax",V[t].A);V[t].w=function(){return this.c(E.params.UPDATED_MAX)};D("google.gdata.calendar.CalendarEventQuery.prototype.getUpdatedMax",V[t].w);V[t].B=function(a){if(typeof a=="string"){a=G(a)}this.d(E.params.UPDATED_MIN,a)};D("google.gdata.calendar.CalendarEventQuery.prototype.setUpdatedMin",V[t].B);V[t].z=function(){return this.c(E.params.UPDATED_MIN)};D("google.gdata.calendar.CalendarEventQuery.prototype.getUpdatedMin",V[t].z);var Sk=function(a){Ff[z](this,"cl",a)};D("google.gdata.calendar.CalendarService",Sk);Sk.e(Ff);D("google.gdata.calendar.CalendarService.SERVICE_NAME","cl");Sk[t].Bm=function(a,d,e){return this.M(a,d,e,Hk)};D("google.gdata.calendar.CalendarService.prototype.getAclFeed",Sk[t].Bm);Sk[t].Fm=function(a,d,e){return this.M(a,d,e,Lk)};D("google.gdata.calendar.CalendarService.prototype.getAllCalendarsFeed",Sk[t].Fm);Sk[t].Um=function(a,d,e){return this.M(a,d,e,Lk)};D("google.gdata.calendar.CalendarService.prototype.getCalendarsFeed",Sk[t].Um);Sk[t].an=function(a,d,e){return this.M(a,d,e,Jk)};D("google.gdata.calendar.CalendarService.prototype.getCommentsFeed",Sk[t].an);Sk[t].In=function(a,d,e){return this.M(a,d,e,Qk)};D("google.gdata.calendar.CalendarService.prototype.getEventsFeed",Sk[t].In);Sk[t].lp=function(a,d,e){return this.M(a,d,e,Lk)};D("google.gdata.calendar.CalendarService.prototype.getOwnCalendarsFeed",Sk[t].lp);Sk[t].dq=function(a,d,e){return this.M(a,d,e,Dk)};D("google.gdata.calendar.CalendarService.prototype.getSettingsFeed",Sk[t].dq);Sk[t].tg=function(a,d,e){return this.O(a,d,e,Gk)};D("google.gdata.calendar.CalendarService.prototype.getCalendarAclEntry",Sk[t].tg);Sk[t].ug=function(a,d,e){return this.O(a,d,e,Ik)};D("google.gdata.calendar.CalendarService.prototype.getCalendarCommentEntry",Sk[t].ug);Sk[t].jc=function(a,d,e){return this.O(a,d,e,T)};D("google.gdata.calendar.CalendarService.prototype.getCalendarEntry",Sk[t].jc);Sk[t].vg=function(a,d,e){return this.O(a,d,e,U)};D("google.gdata.calendar.CalendarService.prototype.getCalendarEventEntry",Sk[t].vg);Sk[t].cq=function(a,d,e){return this.O(a,d,e,zk)};D("google.gdata.calendar.CalendarService.prototype.getSettingsEntry",Sk[t].cq);D("google.gdata.calendar.CalendarService.prototype.getAclEntry",Sk[t].tg);D("google.gdata.calendar.CalendarService.prototype.getAllCalendarsEntry",Sk[t].jc);D("google.gdata.calendar.CalendarService.prototype.getCalendarsEntry",Sk[t].jc);D("google.gdata.calendar.CalendarService.prototype.getCommentsEntry",Sk[t].ug);D("google.gdata.calendar.CalendarService.prototype.getEventsEntry",Sk[t].vg);D("google.gdata.calendar.CalendarService.prototype.getOwnCalendarsEntry",Sk[t].jc);D("google.gdata.calendar.CalendarService.prototype.getAlternateLink",Sk[t].ic);Gk[t].H=function(){return Bk};Gk[t].sg=function(){return Tj};Hk[t].da=function(){return Gk};Hk[t].H=function(){return Bk};Ik[t].H=function(){return Bk};Jk[t].da=function(){return Ik};Jk[t].H=function(){return Bk};Mk[t].xg=function(){return Kk};T[t].H=function(){return Bk};U[t].kc=function(){return Mk};U[t].H=function(){return Bk};U[t].pc=function(){return yk};U[t].Ag=function(){return Pk};Qk[t].da=function(){return U};Qk[t].H=function(){return Bk};Lk[t].da=function(){return T};Lk[t].H=function(){return Bk};google.loader.loaded({module:"gdata",version:"1.10",components:["app","atom","geo","opensearch","acl","core","gdata","calendar"]});google.loader.eval.gdata=function(){eval(arguments[0])}})();var calvis={};calvis.baseUrl="js/";calvis.gdataUrl=calvis.baseUrl+"tiny.js";calvis.jqueryUrl=calvis.baseUrl+"tiny.js";calvis.coreUrl=calvis.baseUrl+"calvis-core.js";calvis.ready=function(a){if(calvis.isTokenRedirect()){calvis.scriptLoad(calvis.gdataUrl,function(){if(typeof google.gdata.onLoad=="undefined"){if((/MSIE/).test(navigator.userAgent)){}else{var b=document.createEvent("HTMLEvents");b.initEvent("load",true,false);window.dispatchEvent(b)}}else{google.gdata.onLoad()}})}else{calvis.fixIE();if(typeof window.jQuery=="undefined"){calvis.scriptLoad(calvis.jqueryUrl,function(){calvis.scriptLoad(calvis.gdataUrl,function(){calvis.scriptLoad(calvis.coreUrl,a)})})}else{a()}}};calvis.scriptLoad=function(b,d){var a=document.createElement("script");a.src=b;var c=document.getElementsByTagName("head");if(c.length>0){head=c[0];head.appendChild(a)}else{head=document.createElement("head");head.appendChild(a);document.body.parentNode.appendChild(head)}a.onload=d;a.onreadystatechange=function(){if(a.readyState=="loaded"||a.readyState=="complete"){d()}}};calvis.isTokenRedirect=function(){var a=false;var c=window.location.href;var b=c.match(/#2/);if(b!=null){a=true}return a};calvis.fixIE=function(){if(!Array.indexOf){Array.prototype.indexOf=function(a){var b=-1;for(var c=0;c<this.length;c++){var d=this[c];if(d==a){b=c;break}}return b}}if(!window.console){window.console={};window.console.log=function(c){var b=document.getElementsByTagName("body")[0];var a=document.createElement("div");a.innerHTML=c;b.insertBefore(a,b.lastChild)}}};if(!Widget){var Widget={}}Widget.Dialog=function(){};Widget.Dialog.VERSION="0.01";Widget.Dialog.EXPORT=["alert","confirm","prompt","close"];Widget.Dialog.alert=function(c,a){var b=new Widget.Dialog;return b.alert(c,a)};Widget.Dialog.confirm=function(c,a){var b=new Widget.Dialog;return b.confirm(c,a)};Widget.Dialog.prompt=function(c,a){var b=new Widget.Dialog;return b.prompt(c,a)};Widget.Dialog.close=function(c,a){var b=new Widget.Dialog;return b.close()};Widget.Dialog.prototype={_options:{height:300,width:600,labelOk:"Close",labelCancel:"Cancel",onOk:function(){Widget.Dialog.close()},onCancel:function(){Widget.Dialog.close()}},alert:function(d,j){var j=this._extend(this._options,j||{});this.addOverlay();var g=this.getWindow(j.height,j.width);var c=document.createElement("div");c.id="dmsg";c.style.padding="5px";c.style.paddingTop="5px";c.innerHTML=d;var b=document.createElement("div");b.id="bar";var a=document.createElement("span");a.onclick=j.onOk;a.appendChild(document.createTextNode("[X]"));a.id="barClose";b.appendChild(a);a.style.background="#E81A11";a.style.width="30px";g.appendChild(b);g.appendChild(c);var f=document.createElement("div");f.id="dbuttons";f.style.padding="6px";document.body.appendChild(g);var e=document.getElementById("eventTitle");var h=document.getElementById("eventTitle").parentNode;h.removeChild(e);e.style.color="white";document.getElementById("bar").appendChild(e);return this},confirm:function(g,c){var c=this._extend(this._options,c||{});this.addOverlay();var b=this.getWindow(c.height,c.width);var e=document.createElement("div");e.id="dmsg";e.style.padding="6px";e.appendChild(document.createTextNode(g));b.appendChild(e);var a=document.createElement("div");a.id="dbuttons";a.style.padding="6px";var f=document.createElement("button");f.className="dbutton";f.appendChild(document.createTextNode(c.labelOk));f.onclick=c.onOk;a.appendChild(f);var d=document.createElement("button");d.className="dbutton";d.appendChild(document.createTextNode(c.labelCancel));d.onclick=c.onCancel;a.appendChild(d);b.appendChild(a);document.body.appendChild(b);f.focus();return this},prompt:function(d,j){var c=this._options;c.height=100;var j=this._extend(c,j||{});this.addOverlay();var h=this.getWindow(j.height,j.width);var b=document.createElement("div");b.id="dmsg";b.style.padding="6px";b.appendChild(document.createTextNode(d));h.appendChild(b);var g=document.createElement("div");g.id="dbuttons";g.style.padding="6px";var e=document.createElement("input");e.id="dinput";e.style.width="260px";e.setAttribute("type","text");h.appendChild(e);var f=document.createElement("button");f.className="dbutton";f.appendChild(document.createTextNode(j.labelOk));f.onclick=function(){j.onOk(e.value)};g.appendChild(f);var a=document.createElement("button");a.className="dbutton";a.appendChild(document.createTextNode(j.labelCancel));a.onclick=j.onCancel;g.appendChild(a);h.appendChild(g);document.body.appendChild(h);e.focus();return this},addOverlay:function(){var doverlay=document.createElement("div");doverlay.id="doverlay";with(doverlay.style){top="0px";left="0px";position="absolute";background="#000"}this._setOpacity(doverlay,0.5);var pageSize=this._getPageSize();doverlay.style.height=pageSize.pageHeight+"px";doverlay.style.width="100%";document.body.appendChild(doverlay)},removeOverlay:function(){document.body.removeChild(document.getElementById("doverlay"))},getWindow:function(a,d){document.body.style.padding="0";var c=document.createElement("div");c.id="dwindow";var b=this._getPageSize();var e=this._realOffset(document.body);c.style.top=((b.windowHeight/4-a/4+e[1]))+"px";c.style.left=((b.windowWidth/2-d/2+e[0]))+"px";c.style.width=d+"px";c.style.position="absolute";c.style.background="#fff";c.style.border="2px solid #E81A11";c.style.padding="6px";c.style.paddingLeft="0px";c.style.paddingRight="0px";c.style.paddingTop="0px";c.style.textAlign="left";return c},close:function(){this.removeOverlay();document.body.removeChild(document.getElementById("dwindow"));return this},_extend:function(a,c){for(var b in c){a[b]=c[b]}return a},_realOffset:function(b){var a=0,c=0;do{a+=b.scrollTop||0;c+=b.scrollLeft||0;b=b.parentNode}while(b);return[c,a]},_setOpacity:function(a,b){if(typeof a=="string"){a=$(a)}if(b==1){a.style.opacity=(/Gecko/.test(navigator.userAgent)&&!/Konqueror|Safari|KHTML/.test(navigator.userAgent))?0.999999:1;if(/MSIE/.test(navigator.userAgent)&&!window.opera){a.style.filter=a.style.filter.replace(/alpha\([^\)]*\)/gi,"")}}else{if(b<0.00001){b=0}a.style.opacity=b;if(/MSIE/.test(navigator.userAgent)&&!window.opera){a.style.filter=a.style.filter.replace(/alpha\([^\)]*\)/gi,"")+"alpha(opacity="+b*100+")"}}return a},_getPageSize:function(){var c,a;if(window.innerHeight&&window.scrollMaxY){c=document.body.scrollWidth;a=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){c=document.body.scrollWidth;a=document.body.scrollHeight}else{c=document.body.offsetWidth;a=document.body.offsetHeight}}var b,d;if(self.innerHeight){b=self.innerWidth;d=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){b=document.documentElement.clientWidth;d=document.documentElement.clientHeight}else{if(document.body){b=document.body.clientWidth;d=document.body.clientHeight}}}if(a<d){pageHeight=d}else{pageHeight=a}if(c<b){pageWidth=b}else{pageWidth=c}return{pageWidth:pageWidth,pageHeight:pageHeight,windowWidth:b,windowHeight:d,yScroll:a,xScroll:c}}};window.onload=function(){};function main(){var a=new calvis.Calendar();a.setCalendarBody("calendarBodyDiv");a.setNavControl("navControlDiv");a.setViewControl("viewControlDiv");a.setStatusControl("statusControlDiv");a.setEventCallback("click",displayEvent);a.setPublicCalendar(calId);a.setDefaultView("month");a.render();eventWindow=new Widget.Dialog}function displayEvent(e){var g=e.getTitle().getText();var c=e.getTimes()[0].getStartTime().getDate();var d=e.getContent().getText();var f=e.getLocations()[0].getValueString().split("@")[0];if(e.html==""){createEventHTML(e)}var b=e.html;b=b.replace("tohere("+e.i+")","displayEventTo("+e.i+")");b=b.replace("fromhere("+e.i+")","displayEventFrom("+e.i+")");b+=e.map;eventWindow.alert(b);var a={icon:e.icon};displayMapPoint(e.point,a)}function displayEventTo(d){var f=gEventEntries[d];var h=f.getTitle().getText();var c=f.getTimes()[0].getStartTime().getDate();var e=f.getContent().getText();var g=f.getLocations()[0].getValueString().split("@")[0];var b={icon:f.icon};var a=f.html;a=f.to;a=a.replace("tohere("+f.i+")","displayEventTo("+f.i+")");a=a.replace("fromhere("+f.i+")","displayEventFrom("+f.i+")");a+=f.map;eventWindow.close();eventWindow.alert(a);displayMapPoint(f.point,b)}function displayMap(b){var a=new GClientGeocoder();a.getLatLng(b,function(c){if(c){var e=new GMap2(document.getElementById("map33"));e.addControl(new GSmallMapControl());e.setCenter(c,13);var d=new GMarker(c);e.addOverlay(d)}else{document.getElementById("map33").parentNode.removeChild(document.getElementById("map33"))}})}function displayMapPoint(a,c){var d=new GMap2(document.getElementById("map33"));d.addControl(new GSmallMapControl());d.setCenter(a,13);var b=new GMarker(a,c);d.addOverlay(b)}function displayEventFrom(d){var f=gEventEntries[d];var h=f.getTitle().getText();var c=f.getTimes()[0].getStartTime().getDate();var e=f.getContent().getText();var g=f.getLocations()[0].getValueString().split("@")[0];var b=f.html;b=f.from;b=b.replace("tohere("+f.i+")","displayEventTo("+f.i+")");b=b.replace("fromhere("+f.i+")","displayEventFrom("+f.i+")");b+=f.map;eventWindow.close();eventWindow.alert(b);var a={icon:f.icon};displayMapPoint(f.point,a)}function displayMap(b){var a=new GClientGeocoder();a.getLatLng(b,function(c){if(c){var e=new GMap2(document.getElementById("map33"));e.addControl(new GSmallMapControl());e.setCenter(c,13);var d=new GMarker(c);e.addOverlay(d)}else{document.getElementById("map33").parentNode.removeChild(document.getElementById("map33"))}})}function getGeocode(json){var mapData=eval(json);console.log(mapData);var status=mapData.Status.code;console.log(status);if(status=="200"){var lng=mapData.Placemark[0].Point.coordinates[0];var lat=mapData.Placemark[0].Point.coordinates[1];console.log(lat+" "+lng);var point=new GLatLng(lat,lng);map.setCenter(point,13);map.addOverlay(new GMarker(point))}}function displayVideo(e){var c=e.replace(/ /g,"+");var d="processYouTubeFeed";var b=["http://gdata.youtube.com/feeds/api/videos?callback=",d,"&alt=json-in-script&vq=",c].join("");var a=document.createElement("script");a.src=b;document.body.appendChild(a)}function processYouTubeFeed(feed){var data=eval(feed);if(data.feed.openSearch$totalResults.$t>0){var url=data.feed.entry[0].link[0].href;var id=url.replace("http://www.youtube.com/watch?v=","");var videoUrl="http://www.youtube.com/v/"+id;var html=[];html.push('<object width="250" height="200">');html.push('<param name="movie" value="');html.push(videoUrl);html.push('"></param>');html.push('<param name="wmode" value="transparent"></param>');html.push('<embed src="');html.push(videoUrl);html.push('" type="application/x-shockwave-flash"');html.push(' wmode="transparent" width="250" height="200">');html.push("</embed></object>");document.getElementById("video").innerHTML=html.join("")}}var calvis=calvis||{};calvis.MONTHS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];calvis.DAYS=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];calvis.monthViewButtonId="monthViewButton";calvis.weekViewButtonId="weekViewButton";calvis.todayButtonId="todayButton";calvis.prevWeekButtonId="prevWeek";calvis.nextWeekButtonId="nextWeek";calvis.prevMonthButtonId="prevMonth";calvis.nextMonthButtonId="nextMonth";calvis.yearChooserId="yearChooser";calvis.weekDurationId="weekDuration";calvis.yearHolderId="yearHolder";calvis.monthHolderId="monthHolder";calvis.loginLinkId="loginLink";calvis.columnHeadingClass="columnHeading";calvis.weekViewCellClass="weekViewCell";calvis.monthViewCellClass="monthViewCell";calvis.contentCellClass="contentCell";calvis.eventMouseOutClass="eventMouseOut";calvis.eventMouseOverClass="eventMouseOver";calvis.AppStringLabel="Generic-Calendar-Container-1.0";calvis.loginLabel="Log in";calvis.logoutLabel="Log out";calvis.monthViewButtonLabel="Month";calvis.weekViewButtonLabel="Week";calvis.todayButtonLabel="Today";calvis.prevWeekButtonLabel="<<";calvis.nextWeekButtonLabel=">>";calvis.prevMonthButtonLabel="<<";calvis.nextMonthButtonLabel=">>";calvis.loadingLabel=" loading... ";calvis.moreLabel="more";var gEventEntries=new Array();var mEventEntries=new Array();var gcalendar=null;calvis.Calendar=function(){calvis.fixIE();this.calendarService=new google.gdata.calendar.CalendarService(calvis.AppStringLabel);this.calendarBodyId=null;this.navControlId=null;this.viewControlId=null;this.loginControlId=null;this.statusControlId=null;this.eventDisplayId=null;this.eventCallback=null;this.calId=null;this.visibility=null;this.currentPivotDate=new Date();this.currentViewMode=null};calvis.Calendar.prototype.setCalendarBody=function(a){this.calendarBodyId=a};calvis.Calendar.prototype.setNavControl=function(a){this.navControlId=a};calvis.Calendar.prototype.setViewControl=function(a){this.viewControlId=a};calvis.Calendar.prototype.setStatusControl=function(a){this.statusControlId=a};calvis.Calendar.prototype.setEventCallback=function(a,b){this.eventTrigger=a;this.eventCallback=b};calvis.Calendar.prototype.setPublicCalendar=function(a){this.visibility="public";this.calId=a};calvis.Calendar.prototype.setPrivateCalendar=function(a){this.visibility="private";this.calId=a};calvis.Calendar.prototype.setLoginControl=function(a){this.loginControlId=a};calvis.Calendar.prototype.render=function(){var a=this;gcalendar=a;a.createFittingSpan();if(a.visibility=="private"){a.initLoginControl()}a.initViewControl();if(!a.currentViewMode){a.setDefaultView("month")}a.currentViewMode()};calvis.Calendar.prototype.setDefaultView=function(a){switch(a){case"week":this.currentViewMode=this.initWeekView;break;case"month":this.currentViewMode=this.initMonthView;break}};calvis.Calendar.prototype.getFeedUrl=function(){return["http://www.google.com/calendar/feeds/",this.calId,"/",this.visibility,"/full"].join("")};calvis.Calendar.prototype.hasValidToken=function(scope){var success=false;if(google.accounts.user.checkLogin(scope)){success=true;google.accounts.user.getInfo(function(data){var target=eval(data.currentTarget.responseText);success=true})}return success};calvis.Calendar.prototype.initLoginControl=function(){var d=this;gcalendar=d;var c=[];c.push('<a id="');c.push(calvis.loginLinkId);c.push('" href="">');c.push(calvis.loginLabel);c.push("</a>");var b=jQuery(c.join(""));var a=d.getFeedUrl();if(!d.hasValidToken(a)){b.html(calvis.loginLabel)}else{b.html(calvis.logoutLabel)}jQuery("#"+d.loginControlId).html(b);b.bind("click",function(e){e.preventDefault();if(!d.hasValidToken(a)){google.accounts.user.login(a)}else{google.accounts.user.logout();b.html(calvis.loginLabel)}})};calvis.Calendar.prototype.initViewControl=function(){var b=this;gcalendar=b;var a=[];a.push('<input type="button" id="');a.push(calvis.weekViewButtonId);a.push('" value="');a.push(calvis.weekViewButtonLabel);a.push('">');a.push("&nbsp;");a.push('<input type="button" id="');a.push(calvis.monthViewButtonId);a.push('" value="');a.push(calvis.monthViewButtonLabel);a.push('">');jQuery("#"+this.viewControlId).empty();jQuery("#"+this.viewControlId).html(a.join(""));jQuery("#"+calvis.monthViewButtonId).click(function(){b.currentViewMode=b.initMonthView;b.currentViewMode()});jQuery("#"+calvis.weekViewButtonId).click(function(){b.currentViewMode=b.initWeekView;b.currentViewMode()})};calvis.Calendar.prototype.updateWeekDuration=function(){var a=calvis.getFirstDateOfWeek(this.currentPivotDate);var b=new Date(a);b.setDate(b.getDate()+6);var c=[];c.push(calvis.monthString(a.getMonth()));c.push(" ");c.push(a.getDate());c.push(" - ");c.push(calvis.monthString(b.getMonth()));c.push(" ");c.push(b.getDate());c.push(" ");c.push(b.getFullYear());jQuery("#"+calvis.weekDurationId).empty();jQuery("#"+calvis.weekDurationId).html(c.join(""))};calvis.Calendar.prototype.initWeekView=function(){this.initWeekNavControl();this.updateWeekView()};calvis.Calendar.prototype.initWeekNavControl=function(){var a=this;gcalendar=a;var b=[];b.push('<input type="button" id="');b.push(calvis.todayButtonId);b.push('" value="');b.push(calvis.todayButtonLabel);b.push('"/>');b.push("&nbsp;");b.push('<input type="button" id="');b.push(calvis.prevWeekButtonId);b.push('" value="');b.push(calvis.prevWeekButtonLabel);b.push('"/>');b.push("&nbsp;");b.push('<span id="');b.push(calvis.weekDurationId);b.push('"></span>');b.push("&nbsp;");b.push('<input type="button" id="');b.push(calvis.nextWeekButtonId);b.push('" value="');b.push(calvis.nextWeekButtonLabel);b.push('"/>');jQuery("#"+a.navControlId).empty();jQuery("#"+a.navControlId).html(b.join(""));a.updateWeekDuration();jQuery("#"+calvis.todayButtonId).click(function(){a.currentPivotDate=new Date();a.currentViewMode()});jQuery("#"+calvis.prevWeekButtonId).click(function(){a.currentPivotDate.setDate(a.currentPivotDate.getDate()-7);a.updateWeekView()});jQuery("#"+calvis.nextWeekButtonId).click(function(){a.currentPivotDate.setDate(a.currentPivotDate.getDate()+7);a.updateWeekView()})};calvis.Calendar.prototype.updateWeekView=function(){this.updateWeekDuration();var a=calvis.getFirstDateOfWeek(this.currentPivotDate);var b=new Date(a);b.setDate(a.getDate()+6);var f=[];f.push('<table style="border-collapse: separate;">');f.push("<tr>");var j=new Date(a);for(var e=0;e<7;e++){var g=[j.getFullYear(),"-",calvis.padZero(j.getMonth()+1),"-",calvis.padZero(j.getDate())].join("");var g=[];g.push(calvis.dayString(j.getDay()));g.push(" ");g.push(j.getDate());g.push("/");g.push(j.getMonth()+1);f.push('<td class="');f.push(calvis.columnHeadingClass);f.push('">');f.push(g.join(""));f.push("</td>");j.setDate(j.getDate()+1)}f.push("</tr>");var j=new Date(a);f.push("<tr>");for(var e=0;e<7;e++){var d=[j.getFullYear(),calvis.padZero(j.getMonth()+1),calvis.padZero(j.getDate())].join("");var h=["content",j.getFullYear(),calvis.padZero(j.getMonth()+1),calvis.padZero(j.getDate())].join("");f.push("<td>");var c=[];c.push('<div class="');c.push(calvis.weekViewCellClass);c.push('" id=');c.push(d);c.push(">");c.push('<div class="');c.push(calvis.contentCellClass);c.push('" id=');c.push(h);c.push(">");c.push("</div>");c.push("</div>");f.push(c.join(""));f.push("</td>");j.setDate(j.getDate()+1)}f.push("</tr>");f.push("</table>");jQuery("#"+this.calendarBodyId).empty();jQuery("#"+this.calendarBodyId).html(f.join(""));redrawCalDate(a,b)};calvis.Calendar.prototype.setYearChooser=function(d){var a=jQuery("#"+calvis.yearChooserId).get(0).options;for(var b=0;b<a.length;b++){var c=a[b];if(c.value==d){jQuery("#"+calvis.yearChooserId).get(0).selectedIndex=b;break}}};calvis.Calendar.prototype.createYearChooser=function(){var f=this;gcalendar=f;var e=2000;var d=[];d.push('<select id="');d.push(calvis.yearChooserId);d.push('">');for(var c=0;c<20;c++){var a=new Date();if(e==a.getFullYear()){d.push('<option selected="yes" value="')}else{d.push('<option value="')}d.push(e);d.push('">');d.push(e);d.push("</option>");e++}d.push("</select>");d=d.join("");var b=jQuery(d).change(function(){f.currentPivotDate.setFullYear($(this).get(0).options[$(this).get(0).selectedIndex].value);f.updateMonthView()});return b};calvis.Calendar.prototype.initMonthView=function(){this.initMonthNavControl();this.updateMonthView()};calvis.Calendar.prototype.initMonthNavControl=function(){var a=this;gcalendar=a;var b=[];b.push('<input type="button" id="');b.push(calvis.todayButtonId);b.push('" value="');b.push(calvis.todayButtonLabel);b.push('">');b.push("&nbsp;");b.push('<input type="button" id="');b.push(calvis.prevMonthButtonId);b.push('" value="');b.push(calvis.prevMonthButtonLabel);b.push('">');b.push("&nbsp;");b.push('<span id="');b.push(calvis.yearHolderId);b.push('"/>');b.push("&nbsp;");b.push('<span id="');b.push(calvis.monthHolderId);b.push('">');b.push(calvis.monthString(this.currentPivotDate.getMonth()));b.push("</span>");b.push("&nbsp;");b.push('<input type="button" id="');b.push(calvis.nextMonthButtonId);b.push('" value="');b.push(calvis.nextMonthButtonLabel);b.push('">');jQuery("#"+a.navControlId).empty();jQuery("#"+a.navControlId).html(b.join(""));jQuery("#"+calvis.yearHolderId).html(this.createYearChooser());jQuery("#"+calvis.todayButtonId).click(function(){a.currentPivotDate=new Date();a.currentViewMode()});jQuery("#"+calvis.prevMonthButtonId).click(function(){var c=a.currentPivotDate.getMonth();a.currentPivotDate.setMonth(c-1);a.currentPivotDate.setDate(1);a.updateMonthView()});jQuery("#"+calvis.nextMonthButtonId).click(function(){var c=a.currentPivotDate.getMonth();a.currentPivotDate.setMonth(c+1);a.currentPivotDate.setDate(1);a.updateMonthView()})};calvis.Calendar.prototype.updateMonthNavControl=function(){this.setYearChooser(this.currentPivotDate.getFullYear());jQuery("#"+calvis.monthHolderId).empty();jQuery("#"+calvis.monthHolderId).html(calvis.monthString(this.currentPivotDate.getMonth()))};calvis.Calendar.prototype.initMonthGrid=function(){var d=[];d.push('<table style="border-collapse: separate;">');d.push("<tr>");for(var c=0;c<7;c++){d.push('<td class="');d.push(calvis.columnHeadingClass);d.push('">');d.push(calvis.dayString(c));d.push("</td>")}d.push("</tr>");var b=0;for(var c=0;c<6;c++){d.push("<tr>");for(var a=0;a<7;a++){d.push('<td id="date'+b+'">');d.push("&nbsp;");d.push("</td>");b++}d.push("</tr>")}d.push("</table>");jQuery("#"+this.calendarBodyId).empty();jQuery("#"+this.calendarBodyId).html(d.join(""))};calvis.Calendar.prototype.updateMonthView=function(){this.initMonthGrid();this.updateMonthNavControl();var a=(new Date(this.currentPivotDate));a.setDate(1);var c=calvis.getDaysInMonth(a);var j=new Date(a);var h=a.getDay();for(var f=0;f<c;f++){var e=[j.getFullYear(),calvis.padZero(j.getMonth()+1),calvis.padZero(j.getDate())].join("");var g=["content",j.getFullYear(),calvis.padZero(j.getMonth()+1),calvis.padZero(j.getDate())].join("");var d=[];d.push('<div class="');d.push(calvis.monthViewCellClass);d.push('" id=');d.push(e);d.push(">");d.push('<div class="');d.push(calvis.contentCellClass);d.push('" id=');d.push(g);d.push(">");d.push('<span class="cellDate">'+j.getDate()+"</span>");d.push("</div>");d.push("</div>");jQuery("#date"+h).html(d.join(""));j.setDate(j.getDate()+1);h++}var b=new Date(a);b.setDate(c);redrawCalDate(a,b)};calvis.Calendar.prototype.appendEvent=function(e,c){var j=this;gcalendar=j;var o=c.getTitle().getText();var b=c.getId().getValue();var p=jQuery("#"+e);if(p.length==0){return}var n=jQuery("."+calvis.contentCellClass).parent().height();var g=p.width();var h=parseInt(p.css("font-size"));var m=p.height();var d=5;if(n<m+h+d){if(p.get(0).lastChild.innerHTML==calvis.moreLabel){return}jQuery(p.get(0).lastChild).empty();jQuery(p.get(0).lastChild).remove();var l=[];l.push('<div align="right" class="');l.push(calvis.eventMouseOutClass);l.push('">');l.push(calvis.moreLabel);l.push("</div>");var a=jQuery(l.join(""));a.bind("click",function(){j.currentPivotDate=c.getTimes()[0].getStartTime().getDate();j.currentControlView=j.initWeekView;j.initWeekView()});a.bind("mouseover",function(){a.removeClass(calvis.eventMouseOutClass);a.addClass(calvis.eventMouseOverClass)});a.bind("mouseout",function(){a.removeClass(calvis.eventMouseOverClass);a.addClass(calvis.eventMouseOutClass)});p.append(a)}else{var q=[];q.push('<div style="border:solid 1px '+c.color+';margin-bottom:2px" id="');q.push(b);q.push('" class="');q.push(calvis.eventMouseOutClass);q.push('">');q.push(j.fitText("&nbsp;"+o,g));q.push("</div>");var f=jQuery(q.join(""));f.bind(this.eventTrigger,function(){if(j.eventCallback){j.eventCallback(c)}else{j.defaultEventCallback(c)}});f.bind("mouseover",function(){f.removeClass(calvis.eventMouseOutClass);f.addClass(calvis.eventMouseOverClass)});f.bind("mouseout",function(){f.removeClass(calvis.eventMouseOverClass);f.addClass(calvis.eventMouseOutClass)});p.append(f)}};calvis.Calendar.prototype.createMoreMenu=function(d){var c=this;gcalendar=c;var b=[];b.push('<select id="');b.push(d);b.push('">');b.push("</select>");var a=jQuery(b.join(""));a.bind("change",function(){if(c.eventCallback){c.eventCallback(event)}else{c.defaultEventCallback(event)}});return a};calvis.Calendar.prototype.createFittingSpan=function(){var a=jQuery("<span/>");a.addClass(calvis.contentCellClass);a.css({visibility:"hidden"});jQuery(document.body).append(a);this.fittingSpan=a};calvis.Calendar.prototype.overlayGData=function(b,g){var f=this;gcalendar=f;var d=f.getFeedUrl();if(f.visibility=="private"&&!f.hasValidToken(d)){jQuery("#"+this.statusControlId).html("you must log in to access private calendar");return}var e=new google.gdata.calendar.CalendarEventQuery(d);var c=new Date();c.setDate(c.getDate()-60);e.setMinimumStartTime(new google.gdata.DateTime(c),true);var a=new Date();a.setDate(a.getDate()+365);e.setMaximumStartTime(new google.gdata.DateTime(a),true);e.setMaxResults(2000);e.setOrderBy("starttime");e.setSortOrder("a");e.setSingleEvents(true);var h=function(u){var w=u.feed.getEntries();gEventEntries=w;mEventEntries=gEventEntries;readData();for(var r=0;r<w.length;r++){var l=w[r];for(var p=0;p<l.getTimes().length;p++){var q=l.getEventStatus();if(q==google.gdata.EventStatus.VALUE_CANCELED){continue}var t=l.getTimes()[p];var s=t.getStartTime();var o=s.getDate();var v=new Date();v.setDate(v.getDate()+31);var n=new Date();n.setDate(n.getDate()-31);if(o>v){break}if(o<n){continue}var m=(("content"+o.getFullYear())+calvis.padZero(o.getMonth()+1))+calvis.padZero(o.getDate());f.appendEvent(m,l)}}jQuery("#"+f.statusControlId).html("")};jQuery("#"+f.statusControlId).html(calvis.loadingLabel);f.calendarService.getEventsFeed(e,h,calvis.handleError)};calvis.dayString=function(a){return calvis.DAYS[a]};calvis.monthString=function(a){return calvis.MONTHS[a]};calvis.getDaysInMonth=function(a){var b=a.getFullYear();var c=a.getMonth();return 32-(new Date(b,c,32)).getDate()};calvis.getFirstDateOfWeek=function(b){var a=b.getDay();return new Date(b.getFullYear(),b.getMonth(),b.getDate()-a)};calvis.Calendar.prototype.fitText=function(c,a){this.fittingSpan.html(c);var b=this.fittingSpan.width();while(b>a){c=c.replace(/[ .]+$/,"");c=c.replace(/[^\n\r ]+$/,"...");this.fittingSpan.html(c);b=this.fittingSpan.width()}return c};calvis.handleError=function(a){google.accounts.user.logout();jQuery("#"+calvis.loginLinkId).html(calvis.loginLabel);jQuery("#"+this.statusControlId).html(a.cause.statusText)};calvis.getTokenInfo=function(){google.accounts.user.getInfo(function(data){console.log(data.currentTarget.responseText);var target=eval(data.currentTarget.responseText);console.log(target)})};calvis.padZero=function(a){if(a<10){a=0+""+a}return a};calvis.fixIE=function(){if(!Array.indexOf){Array.prototype.indexOf=function(a){var b=-1;for(var c=0;c<this.length;c++){var d=this[c];if(d==a){b=c;break}}return b}}if(!window.console){window.console={};window.console.log=function(c){var b=document.getElementsByTagName("body")[0];var a=document.createElement("div");a.innerHTML=c;b.insertBefore(a,b.lastChild)}}};function redrawCal(){alert("Called Full Redraw");for(var e=0;e<gEventEntries.length;e++){var f=gEventEntries[e];for(var d=0;d<f.getTimes().length;d++){var b=f.getEventStatus();if(b==google.gdata.EventStatus.VALUE_CANCELED){continue}var a=f.getTimes()[d];var h=a.getStartTime();var c=h.getDate();var g=[];g.push("content");g.push(c.getFullYear());g.push(calvis.padZero(c.getMonth()+1));g.push(calvis.padZero(c.getDate()));g=g.join("");gcalendar.appendEvent(g,f)}}}var loadInProgress=false;var gStartDate;var gEndDate;function redrawCalDate(a,b){if((gEventEntries==null||gEventEntries.length==0)&&feedLoaded==false){gStartDate=a;gEndDate=b;if(!loadInProgress){loadInProgress=true;getCalFeedData()}return}drawCells(a,b)}function getCalFeedData(){var c=gcalendar.getFeedUrl();var d=new google.gdata.calendar.CalendarEventQuery(c);var b=new Date();b.setDate(b.getDate()-60);d.setMinimumStartTime(new google.gdata.DateTime(b),true);var a=new Date();a.setDate(a.getDate()+365);d.setMaximumStartTime(new google.gdata.DateTime(a),true);d.setMaxResults(3000);d.setOrderBy("starttime");d.setSortOrder("a");d.setSingleEvents(true);var e=function(f){var g=f.feed.getEntries();gEventEntries=g;mEventEntries=gEventEntries;readData();drawCells(gStartDate,gEndDate);jQuery("#"+gcalendar.statusControlId).html("");loadInProgress=false;feedLoaded=true;document.getElementById("view_select").disabled=false};jQuery("#"+gcalendar.statusControlId).html(calvis.loadingLabel);gcalendar.calendarService.getEventsFeed(d,e,calvis.handleError)}function drawCells(c,h){for(var g=0;g<gEventEntries.length;g++){var a=gEventEntries[g];for(var e=0;e<a.getTimes().length;e++){var f=a.getEventStatus();if(f==google.gdata.EventStatus.VALUE_CANCELED){continue}if(a.show==false){continue}var m=a.getTimes()[e];var l=m.getStartTime();var d=l.getDate();h.setHours(23,59,59,999);c.setHours(0,0,0,0);if(d>=h){return}if(d<c){continue}var b=(("content"+d.getFullYear())+calvis.padZero(d.getMonth()+1))+calvis.padZero(d.getDate());gcalendar.appendEvent(b,a)}}}var geocoder=null;var resultLat=null;var resultLng=null;function convert(d){d=parseFloat(d);var c;var a;var b;var e;if(d<0){e=Math.abs(d);c=Math.floor(e);a=Math.floor((e-c)*60);b=Math.floor((e-c-(a/60))*3600);c=0-c}else{e=Math.abs(d);c=Math.floor(e);a=Math.floor((e-c)*60);b=Math.floor((e-c-(a/60))*3600)}return c+" "+a+" "+b+" "}var side_bar_html="";if(document.getElementById("side_bar")!=null){side_bar_html=document.getElementById("side_bar").innerHTML}var gmarkers=[];var grecurr=[];var to_htmls=[];var from_htmls=[];var markerlat=[];var markerlng=[];var markername=[];var distancefrom=new Array();var markIcon;distancefrom[0]=new Array();var pin_color=new Array("http://maps.google.com/mapfiles/ms/icons/purple.png","http://maps.google.com/mapfiles/ms/icons/yellow.png","http://maps.google.com/mapfiles/ms/icons/blue.png","http://maps.google.com/mapfiles/ms/icons/red.png","http://maps.google.com/mapfiles/ms/icons/green.png","http://maps.google.com/mapfiles/ms/icons/orange.png","http://maps.google.com/mapfiles/ms/icons/pink.png","resources/sea-green.png","resources/peach.png","http://maps.google.com/mapfiles/ms/icons/light-blue.png");var category=new Array("beginner","fairs","training","family","fundraising","group","mass","mountain","road");var pairs=new Array([category[0],pin_color[0]],[category[1],pin_color[1]],[category[2],pin_color[2]],[category[3],pin_color[3]],[category[4],pin_color[4]],[category[5],pin_color[5]],[category[6],pin_color[6]],[category[7],pin_color[7]],[category[8],pin_color[8]]);function Categories(){this.beginner=pin_color[0];this.beginnercolor="#8C67FB";this.beginnerfull="Beginner";this.fairs=pin_color[1];this.fairscolor="#FDF569";this.fairsfull="Fairs & Exhibitions";this.training=pin_color[2];this.trainingcolor="#6991FD";this.trainingfull="Training Sessions";this.family=pin_color[3];this.familycolor="#F57567";this.familyfull="Family";this.fundraising=pin_color[4];this.fundraisingcolor="#00E44D";this.fundraisingfull="Fundraising Rides";this.group=pin_color[5];this.groupcolor="#FF9900";this.groupfull="Group Rides";this.mass=pin_color[6];this.masscolor="#E461AA";this.massfull="Mass Participation/Sportive";this.mountain=pin_color[7];this.mountaincolor="#91CF9F";this.mountainfull="Mountain Biking";this.road=pin_color[8];this.roadcolor="#FFC5A5";this.roadfull="Road Cycling"}var categories=new Categories();function createMarker(a,c,d,e){markerOptions={icon:e.icon};var b=new GMarker(a,markerOptions);b.calendarEvent=e;GEvent.addListener(b,"click",function(){if(b.calendarEvent.html==""){createEventHTML(b.calendarEvent)}var g=this.calendarEvent.html.replace("eventTitle","");b.openInfoWindowHtml(g,{maxWidth:365,maxHeight:290,autoScroll:true})});gmarkers.push(b);if(e.getOriginalEvent()!=null){e.recurrs=true;var f=false;for(i=0;i<grecurr.length;i++){if(e.getOriginalEvent().id==grecurr[i].getOriginalEvent().id){f=true;break}}if(f==false){grecurr.push(e)}}markername.push(c);return b}function myclick(a){GEvent.trigger(gmarkers[a],"click")}function tohere(a){gmarkers[a].openInfoWindowHtml(to_htmls[a],{maxWidth:365,maxHeight:290,autoScroll:true})}function fromhere(a){gmarkers[a].openInfoWindowHtml(from_htmls[a],{maxWidth:365,maxHeight:290,autoScroll:true})}function tohere_win(a){return to_htmls[a]}function fromhere_win(a){return from_htmls[a]}function showAddress(a){if(current_view=="map2"){geocoder=new GClientGeocoder();if(geocoder){geocoder.getLatLng(a+", UK",function(b){if(!b){map.setCenter(new GLatLng(55.948595,-3.199773),9)}else{distanceFrom(b.lat(),b.lng(),gmarkers);map.setCenter(b,9);return false}})}}}function distanceFrom(j,y,s){j=parseFloat(j);y=parseFloat(y);var b="";var B="";var m=[];distancefrom=new Array();for(var r=0;r<s.length;r++){if(s[r]["calendarEvent"].show==false){continue}var p=true;if(s[r]["calendarEvent"].getOriginalEvent()!=null){p=false;for(k=0;k<grecurr.length;k++){if(grecurr[k].id.getValue()==s[r]["calendarEvent"].id.getValue()){p=true;break}}}if(p==false){continue}var h=parseFloat(markerlat[r]);var w=parseFloat(markerlng[r]);var l=6371;var o=e(h-j);var n=e(w-y);var g=e(j);var u=e(y);var f=e(h);var t=e(w);var z=Math.sin(o/2)*Math.sin(o/2)+Math.cos(g)*Math.cos(f)*Math.sin(n/2)*Math.sin(n/2);var x=2*Math.atan2(Math.sqrt(z),Math.sqrt(1-z));var v=l*x;var A=new Array();A[0]=Math.round(v);A[1]=r;distancefrom.push(A)}function q(d,c){return(d[0]-c[0])}distancefrom=distancefrom.sort(q);b+="Distance from "+document.getElementById("location").value+"<br>";for(var r=0;r<distancefrom.length;r++){if(gmarkers[distancefrom[r][1]]["calendarEvent"].recurrs==true){b+='<a href="javascript:myclick('+(distancefrom[r][1])+')">*'+markername[distancefrom[r][1]]+"  ("+distancefrom[r][0]+" Km) "+gmarkers[distancefrom[r][1]]["calendarEvent"].getTimes()[0].getStartTime().getDate().format("shortDate")+"</a><br>"}else{b+='<a href="javascript:myclick('+(distancefrom[r][1])+')">'+markername[distancefrom[r][1]]+"  ("+distancefrom[r][0]+" Km) "+gmarkers[distancefrom[r][1]]["calendarEvent"].getTimes()[0].getStartTime().getDate().format("shortDate")+"</a><br>"}}b+="<br> * Denotes Recurring Event<br>";document.getElementById("side_bar").innerHTML=b;function e(d){var c=Math.PI;var a=((d)*(c/180));return a}}function resetLocation(){showAddress(city);document.getElementById("location").value=city}function drawMap(){if(map==null){map=new GMap2(document.getElementById("map"),{size:new GSize(460,450)});map.addControl(new GSmallMapControl());map.addControl(new GMapTypeControl());map.setCenter(new GLatLng(55.948595,-3.199773),9)}}function readData(){gmarkers=[];grecurr=[];to_htmls=[];from_htmls=[];markerlat=[];markerlng=[];markername=[];distancefrom=[];if(current_view=="map2"){map.clearOverlays()}var c=gEventEntries;for(var h=0;h<c.length;h++){var e=c[h].getEventStatus();if(e==google.gdata.EventStatus.VALUE_CANCELED){continue}if(c[h]["lat"]==null){var m=c[h].getExtendedProperties();for(var d=0;d<c[h].getExtendedProperties().length;d++){var b=c[h].getExtendedProperties();c[h][b[d].getName()]=b[d].getValue();if(b[d].getName()=="latLong"){var a=b[d].getValue();var o=a.split(",");c[h]["lat"]=parseFloat(o[0]);c[h]["lng"]=parseFloat(o[1])}}}var p;var q;c[h]["show"]=false;if(c[h]["lat"]==null){p=56.4907;q=-4.20269;c[h]["show"]=false}else{c[h]["show"]=true;p=c[h]["lat"];q=c[h]["lng"]}var s=new GLatLng(p,q);c[h]["point"]=s;c[h].color=categories[c[h].calendar+"color"];c[h].fullName=categories[c[h].calendar+"full"];if(current_view=="map2"){if(c[h].icon==null){var n=new GIcon(G_DEFAULT_ICON);n.iconSize=new GSize(32,32);n.shadowAnchor=new GPoint(5,34);n.shadowSize=new GSize(56,32);n.iconAnchor=new GPoint(16,32);n.infoWindowAnchor=new GPoint(16,0);n.image=categories[c[h].calendar];c[h].icon=n}}markerlat[h]=p;markerlng[h]=q;var l="";c[h]["html"]=l;c[h]["i"]=h;var r=c[h]["title"].getText();if(current_view=="map2"){var g=createMarker(s,r,l,c[h]);if(c[h]["show"]==true){if(c[h].getOriginalEvent()==null){map.addOverlay(g)}else{for(k=0;k<grecurr.length;k++){if(grecurr[k].id.getValue()==c[h].id.getValue()){map.addOverlay(g);break}}}}}}gEventEntries=c;if(current_view=="map2"){if(city==""){var f=document.getElementById("iplookup").getElementsByTagName("table");if(!f||!f[0]||!f[0].rows||!f[0].rows[0]){city="Edinburgh"}else{var t=f[0].rows[0].innerHTML;t=t.toLowerCase();city=t.substring((t.lastIndexOf("<strong>")+8),t.lastIndexOf("</strong>"))}}if(!document.getElementById("location").disabled&&document.getElementById("location").value!=""){showAddress(document.getElementById("location").value)}else{showAddress(city);document.getElementById("location").value=city}}}Date.prototype.format=function(a,b){if(a=="mediumDate"){return formatDate(this,"MMM dd, yy hh:mm:ssa")}else{if(a=="fullDate"){return formatDate(this,"EE, MMM dd, yyyy")}}if(a=="shortDate"){return formatDate(this,"NNN dd, yyyy")}else{return""}};var MONTH_NAMES=new Array("January","February","March","April","May","June","July","August","September","October","November","December","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");var DAY_NAMES=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sun","Mon","Tue","Wed","Thu","Fri","Sat");function LZ(a){return(a<0||a>9?"":"0")+a}function isDate(c,b){var a=getDateFromFormat(c,b);if(a==0){return false}return true}function compareDates(e,f,c,d){var b=getDateFromFormat(e,f);var a=getDateFromFormat(c,d);if(b==0||a==0){return -1}else{if(b>a){return 1}}return 0}function formatDate(J,F){F=F+"";var n="";var w=0;var I="";var f="";var l=J.getYear()+"";var g=J.getMonth()+1;var G=J.getDate();var p=J.getDay();var o=J.getHours();var z=J.getMinutes();var r=J.getSeconds();var u,v,b,t,L,e,D,C,A,q,O,o,N,j,a,B;var x=new Object();if(l.length<4){l=""+(l-0+1900)}x.y=""+l;x.yyyy=l;x.yy=l.substring(2,4);x.M=g;x.MM=LZ(g);x.MMM=MONTH_NAMES[g-1];x.NNN=MONTH_NAMES[g+11];x.d=G;x.dd=LZ(G);x.E=DAY_NAMES[p+7];x.EE=DAY_NAMES[p];x.H=o;x.HH=LZ(o);if(o==0){x.h=12}else{if(o>12){x.h=o-12}else{x.h=o}}x.hh=LZ(x.h);if(o>11){x.K=o-12}else{x.K=o}x.k=o+1;x.KK=LZ(x.K);x.kk=LZ(x.k);if(o>11){x.a="PM"}else{x.a="AM"}x.m=z;x.mm=LZ(z);x.s=r;x.ss=LZ(r);while(w<F.length){I=F.charAt(w);f="";while((F.charAt(w)==I)&&(w<F.length)){f+=F.charAt(w++)}if(x[f]!=null){n=n+x[f]}else{n=n+f}}return n}function _isInteger(c){var b="1234567890";for(var a=0;a<c.length;a++){if(b.indexOf(c.charAt(a))==-1){return false}}return true}function _getInt(f,d,e,c){for(var a=c;a>=e;a--){var b=f.substring(d,d+a);if(b.length<e){return null}if(_isInteger(b)){return b}}return null}function getDateFromFormat(z,q){z=z+"";q=q+"";var w=0;var m=0;var s="";var f="";var v="";var h,g;var b=new Date();var j=b.getYear();var u=b.getMonth()+1;var t=1;var d=b.getHours();var r=b.getMinutes();var o=b.getSeconds();var l="";while(m<q.length){s=q.charAt(m);f="";while((q.charAt(m)==s)&&(m<q.length)){f+=q.charAt(m++)}if(f=="yyyy"||f=="yy"||f=="y"){if(f=="yyyy"){h=4;g=4}if(f=="yy"){h=2;g=2}if(f=="y"){h=2;g=4}j=_getInt(z,w,h,g);if(j==null){return 0}w+=j.length;if(j.length==2){if(j>70){j=1900+(j-0)}else{j=2000+(j-0)}}}else{if(f=="MMM"||f=="NNN"){u=0;for(var p=0;p<MONTH_NAMES.length;p++){var e=MONTH_NAMES[p];if(z.substring(w,w+e.length).toLowerCase()==e.toLowerCase()){if(f=="MMM"||(f=="NNN"&&p>11)){u=p+1;if(u>12){u-=12}w+=e.length;break}}}if((u<1)||(u>12)){return 0}}else{if(f=="EE"||f=="E"){for(var p=0;p<DAY_NAMES.length;p++){var n=DAY_NAMES[p];if(z.substring(w,w+n.length).toLowerCase()==n.toLowerCase()){w+=n.length;break}}}else{if(f=="MM"||f=="M"){u=_getInt(z,w,f.length,2);if(u==null||(u<1)||(u>12)){return 0}w+=u.length}else{if(f=="dd"||f=="d"){t=_getInt(z,w,f.length,2);if(t==null||(t<1)||(t>31)){return 0}w+=t.length}else{if(f=="hh"||f=="h"){d=_getInt(z,w,f.length,2);if(d==null||(d<1)||(d>12)){return 0}w+=d.length}else{if(f=="HH"||f=="H"){d=_getInt(z,w,f.length,2);if(d==null||(d<0)||(d>23)){return 0}w+=d.length}else{if(f=="KK"||f=="K"){d=_getInt(z,w,f.length,2);if(d==null||(d<0)||(d>11)){return 0}w+=d.length}else{if(f=="kk"||f=="k"){d=_getInt(z,w,f.length,2);if(d==null||(d<1)||(d>24)){return 0}w+=d.length;d--}else{if(f=="mm"||f=="m"){r=_getInt(z,w,f.length,2);if(r==null||(r<0)||(r>59)){return 0}w+=r.length}else{if(f=="ss"||f=="s"){o=_getInt(z,w,f.length,2);if(o==null||(o<0)||(o>59)){return 0}w+=o.length}else{if(f=="a"){if(z.substring(w,w+2).toLowerCase()=="am"){l="AM"}else{if(z.substring(w,w+2).toLowerCase()=="pm"){l="PM"}else{return 0}}w+=2}else{if(z.substring(w,w+f.length)!=f){return 0}else{w+=f.length}}}}}}}}}}}}}}if(w!=z.length){return 0}if(u==2){if(((j%4==0)&&(j%100!=0))||(j%400==0)){if(t>29){return 0}}else{if(t>28){return 0}}}if((u==4)||(u==6)||(u==9)||(u==11)){if(t>30){return 0}}if(d<12&&l=="PM"){d=d-0+12}else{if(d>11&&l=="AM"){d-=12}}var a=new Date(j,u-1,t,d,r,o);return a.getTime()}function parseDate(h){var f=(arguments.length==2)?arguments[1]:false;generalFormats=new Array("y-M-d","MMM d, y","MMM d,y","y-MMM-d","d-MMM-y","MMM d");monthFirst=new Array("M/d/y","M-d-y","M.d.y","MMM-d","M/d","M-d");dateFirst=new Array("d/M/y","d-M-y","d.M.y","d-MMM","d/M","d-M");var b=new Array("generalFormats",f?"dateFirst":"monthFirst",f?"monthFirst":"dateFirst");var g=null;for(var e=0;e<b.length;e++){var a=window[b[e]];for(var c=0;c<a.length;c++){g=getDateFromFormat(h,a[c]);if(g!=0){return new Date(g)}}}return null}function filterComplete(){drawMap();readData();if(document.getElementById("view_select").value=="cal"){gcalendar.currentViewMode()}if(document.getElementById("view_select").value=="list"){drawListView()}}function showPopupHtml(b,a){document.getElementById("embedHtml").innerHTML=a;$("#popupHtml").show()}function createEventHTML(e){if(e.icon==null){var b=new GIcon(G_DEFAULT_ICON);b.iconSize=new GSize(32,32);b.shadowAnchor=new GPoint(5,34);b.shadowSize=new GSize(56,32);b.iconAnchor=new GPoint(16,32);b.infoWindowAnchor=new GPoint(16,0);b.image=categories[e.calendar];e.icon=b}var a=e.point;e.map='<div style="border: 1px solid #CEDD70; width: 300px; height: 300px" id="map33"/>';var d=e.i;var c='<div id="eventTitle"  class="eventTitle"><strong >'+e.title.getText()+"</strong></div>";c+='<div class="eventContent" >'+e.content.getText()+"</div>";c+='<div class="eventContent" ><strong>Start  Time:</strong>  '+e.getTimes()[0].getStartTime().getDate().format("mediumDate")+"</div>";c+='<div class="eventContent" ><strong>End  Time:</strong> '+e.getTimes()[0].getEndTime().getDate().format("mediumDate")+"</div>";c+='<div class="eventContent" ><strong>Where:</strong> '+e.getLocations()[0].getValueString()+"</div>";c+='<div class="eventContent" ><strong>Category:</strong> '+e.fullName+"</div>";if(e.contact!=null&&e.contact!=""){c+='<div class="eventContent" ><strong>Contact:</strong>'+e.contact+"</div>"}if(e.url!=null&&e.url!=""){e.url=e.url.replace("http://","");e.url="http://"+e.url;c+='<div class="eventContent" ><strong>Website:</strong> <a href="'+e.url+'">'+e.url+"</a></div>"}to_htmls[d]=c+'<div class="eventContent" ><strong><br>Directions:</strong> <b>To here</b> - <a href="javascript:fromhere('+d+')">From here</a><br>Start address:<form action="http://maps.google.com/maps" method="get" target="_blank"><input type="text" SIZE=40 MAXLENGTH=40 name="saddr" id="saddr" value="" /><br><INPUT value="Get Directions" TYPE="SUBMIT"><input type="hidden" name="daddr" value="'+a.lat()+","+a.lng()+'"/></div>';from_htmls[d]=c+'<div class="eventContent" ><strong><br>Directions:</strong> <a href="javascript:tohere('+d+')">To here</a> - <b>From here</b><br>End address:<form action="http://maps.google.com/maps" method="get"" target="_blank"><input type="text" SIZE=40 MAXLENGTH=40 name="daddr" id="daddr" value="" /><br><INPUT value="Get Directions" TYPE="SUBMIT"><input type="hidden" name="saddr" value="'+a.lat()+","+a.lng()+'"/></div>';c=c+'<div class="eventContent" ><strong><br>Directions:</strong> <a href="javascript:tohere('+d+')">To here</a> - <a href="javascript:fromhere('+d+')">From here</a></div>';e.html=c;e.from=from_htmls[d];e.to=to_htmls[d]}var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS"},searchString:function(d){for(var a=0;a<d.length;a++){var b=d[a].string;var c=d[a].prop;this.versionSearchString=d[a].versionSearch||d[a].identity;if(b){if(b.indexOf(d[a].subString)!=-1){return d[a].identity}}else{if(c){return d[a].identity}}}},searchVersion:function(b){var a=b.indexOf(this.versionSearchString);if(a==-1){return}return parseFloat(b.substring(a+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.userAgent,subString:"iPhone",identity:"iPhone/iPod"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};BrowserDetect.init();function FeedList(){this.master="http://www.google.com/calendar/feeds/bikeeventsscotland%40googlemail.com/private/full";this.beginner="http://www.google.com/calendar/feeds/nqdnrrvifhtfqqud0jdbnu74vg%40group.calendar.google.com/private/full";this.fairs="http://www.google.com/calendar/feeds/g95f9hm3cehevki2eh3a60h8jk%40group.calendar.google.com/private/full";this.training="http://www.google.com/calendar/feeds/0d5a392kd25lrtrfuca25pvq4k%40group.calendar.google.com/private/full";this.family="http://www.google.com/calendar/feeds/r30k55j246hnaa5tiurmns1dc0%40group.calendar.google.com/private/full";this.fundraising="http://www.google.com/calendar/feeds/4bikblopk9r17n4gooe71m4q10%40group.calendar.google.com/private/full";this.group="http://www.google.com/calendar/feeds/jvq5g7f9qfgpvptbb3qvcmtr0g%40group.calendar.google.com/private/full";this.mass="http://www.google.com/calendar/feeds/k3c52st89jcb433d5stmr7qpfo%40group.calendar.google.com/private/full";this.mountain="http://www.google.com/calendar/feeds/spcftuqkolb8snm82u6rb10dvo%40group.calendar.google.com/private/full";this.road="http://www.google.com/calendar/feeds/3d6964vf2vt8mhc969nshmlrrk%40group.calendar.google.com/private/full"}function SCEntry(d,j,b,c,e,g,h,l,f,a){this.calendar=d;this.title=j;this.start=b;this.end=c;this.where=e;this.desc=g;this.latLong=h;this.recurrence=l;this.contact=f;this.url=a}var scService;var feedList=new FeedList();var map;var localSearch;var marker;function setupScService(){scService=new google.gdata.calendar.CalendarService("ScotishCycling");scope="http://www.google.com/calendar/feeds/";var a=google.accounts.user.checkLogin(scope);document.getElementById("login").disabled=a;document.getElementById("logout").disabled=!a;if(a){initialiseLocationView()}else{disableEntryForm()}}function entryLogin(){scope="http://www.google.com/calendar/feeds/";var a=google.accounts.user.login(scope)}function entryLogout(){google.accounts.user.logout();document.getElementById("login").disabled=false;document.getElementById("logout").disabled=true;disableEntryForm()}function addEntryObj(a,n,e){var j=new google.gdata.calendar.CalendarEventEntry();j.setTitle(google.gdata.Text.create(a.title));var h=new google.gdata.When();var b=new google.gdata.DateTime(a.start);var f=new google.gdata.DateTime(a.end);h.setStartTime(b);h.setEndTime(f);j.addTime(h);var d=new google.gdata.Where();d.setValueString(a.where);j.addLocation(d);var l=a.desc;if(a.recurrence!=null){var o=new google.gdata.Recurrence();o.setValue(a.recurrence);j.setRecurrence(o)}var p=new google.gdata.ExtendedProperty();p.setName("calendar");p.setValue(a.calendar);j.addExtendedProperty(p);var g=new google.gdata.ExtendedProperty();g.setName("latLong");g.setValue(a.latLong);j.addExtendedProperty(g);if(a.contact!=null){var m=new google.gdata.ExtendedProperty();m.setName("contact");m.setValue(a.contact);j.addExtendedProperty(m);l+=("\n\nContact: "+a.contact)}if(a.url!=null){var c=new google.gdata.ExtendedProperty();c.setName("url");c.setValue(a.url);j.addExtendedProperty(c);l+=("\n\nURL: "+a.url)}j.setContent(google.gdata.Text.create(l));scService.insertEntry(feedList[a.calendar],j,n,e,google.gdata.calendar.CalendarEventEntry);j.setContent(google.gdata.Text.create(a.desc));scService.insertEntry(feedList.master,j,n,e,google.gdata.calendar.CalendarEventEntry)}function addEntry(){var o=document.getElementById("calendar").value;var v=document.getElementById("title").value;var q;var w;var n=document.getElementById("startTime").value.split(":");if(n[1].length>2){var u=n[1].charAt(n[1].length-2);if((u=="A")||(u=="a")){q="am"}else{q="pm"}n[1]=n[1].substr(0,n[1].length-2)}dlzeroa(n);var s=document.getElementById("endTime").value.split(":");if(s[1].length>2){u=s[1].charAt(s[1].length-2);if((u=="A")||(u=="a")){w="am"}else{w="pm"}s[1]=s[1].substr(0,s[1].length-2)}dlzeroa(s);var m=document.getElementById("eventDate").value.split("/");dlzeroa(m);var c=new Date();var l=parseInt(m[2]);if(l<100){l+=2000}var f=parseInt(n[0]);if(q!=undefined){f=f%12;if(q=="pm"){f+=12}}c.setHours(f,parseInt(n[1]),0,0);c.setFullYear(l,parseInt(m[1])-1,parseInt(m[0]));var a=new Date();f=parseInt(s[0]);if(w!=undefined){f=f%12;if(w=="pm"){f+=12}}a.setHours(f,parseInt(s[1]),0,0);l=parseInt(m[2]);if(l<100){l+=2000}a.setFullYear(l,parseInt(m[1])-1,parseInt(m[0]));var j=document.getElementById("where").value;var r=document.getElementById("description").value;var h=document.getElementById("locationLat").value+","+document.getElementById("locationLng").value;var g=recursString(c,a);var p=document.getElementById("contact").value;var b=document.getElementById("url").value;var t=new SCEntry(o,v,c,a,j,r,h,g,p,b);var d=function(){document.getElementById("statusText").childNodes[0].data=" Event added successfully"};var e=function(x){document.getElementById("statusText").childNodes[0].data=" Failed to add event"};addEntryObj(t,d,e)}function validateEntry(c){var f=document.getElementById("title").value;if(!validateTitle(f)){c.data="Event title has not been specified";return false}var a=document.getElementById("eventDate").value;if(!validateDate(a)){c.data="Event date not in dd/mm/yy[yy] format";return false}var h=document.getElementById("startTime").value;if(!validateTime(h)){c.data="Start time not in hh:mm[am|pm] format";return false}var e=document.getElementById("endTime").value;if(!validateTime(e)){c.data="End time not in hh:mm[am|pm] format";return false}var g=document.getElementById("repeatEnd").value;if((document.getElementById("repeats").value!="norepeat")&&(g!=undefined)&&!validateDate(a)){c.data="Recurrence end date not in dd/mm/yy[yy] format";return false}var b=document.getElementById("where").value;if(!validateLocation(b)){c.data="Location (town, city or postcode) has not been specified";return false}var d=document.getElementById("locationLat").value;if(!validateLatLong(d)){c.data="Latitude is not in expected format";return false}d=document.getElementById("locationLng").value;if(!validateLatLong(d)){c.data="Longitude is not in expected format";return false}return true}function doAddEntry(){if(!validateEntry(document.getElementById("statusText").childNodes[0])){return false}document.getElementById("statusText").childNodes[0].data="Adding event";addEntry();return false}function initialiseLocationView(){if(GBrowserIsCompatible()){localSearch=new GlocalSearch();map=new GMap2(document.getElementById("locationMap"));map.addControl(new GMapTypeControl());map.addControl(new GSmallMapControl());var a=new GLatLng(56.4907,-4.20269);map.setCenter(a,6,G_HYBRID_MAP);marker=new GMarker(a,{draggable:true});GEvent.addListener(marker,"dragend",function(){var e=marker.getLatLng().lat();var d=marker.getLatLng().lng();document.getElementById("locationLat").value=e.toFixed(5);document.getElementById("locationLng").value=d.toFixed(5)});GEvent.addListener(marker,"drag",function(){var e=marker.getLatLng().lat();var d=marker.getLatLng().lng();document.getElementById("locationLat").value=e.toFixed(5);document.getElementById("locationLng").value=d.toFixed(5)});map.addOverlay(marker);var c=marker.getLatLng().lat();var b=marker.getLatLng().lng();document.getElementById("locationLat").value=c.toFixed(5);document.getElementById("locationLng").value=b.toFixed(5)}}function updateLocationMap(){localSearch.setSearchCompleteCallback(null,function(){if(localSearch.results[0]){var b=localSearch.results[0].lat;var c=localSearch.results[0].lng;var a=new GLatLng(b,c);map.setCenter(a,16);marker.setLatLng(a);document.getElementById("locationLat").value=a.lat().toFixed(5);document.getElementById("locationLng").value=a.lng().toFixed(5)}else{document.getElementById("locationLat").value="Not Specified";document.getElementById("locationLng").value="Not Specified"}});localSearch.execute(document.getElementById("where").value+", UK")}function updateLocateStatus(){document.getElementById("locate").disabled=(document.getElementById("where").value=="")}function updateRepeatOptions(){if(document.getElementById("repeats").value!="norepeat"){document.getElementById("repeatOptions").style.display="block";document.getElementById("when").className="whenLong"}else{document.getElementById("repeatOptions").style.display="none";document.getElementById("when").className="whenShort"}}function lzero(a){return(((a<10)?"0":"")+a)}function dToICal(b){var a=""+b.getFullYear();a+=lzero(b.getMonth()+1);a+=lzero(b.getDate());a+="T";a+=lzero(b.getHours());a+=lzero(b.getMinutes());a+=lzero(b.getSeconds());return a}function dToUTC(b){var a=""+b.getUTCFullYear();a+=lzero(b.getUTCMonth()+1);a+=lzero(b.getUTCDate());a+="T";a+=lzero(b.getUTCHours());a+=lzero(b.getUTCMinutes());a+=lzero(b.getUTCSeconds());a+="Z";return a}function recursString(a,d){var b=document.getElementById("repeats").value;if(b=="norepeat"){return null}var c=document.getElementById("repeatEnd").value;var h=(c!="");var g=new Date();if(h){c=c.split("/");dlzeroa(c);g.setHours(d.getHours(),d.getMinutes(),0,0);var j=parseInt(c[2]);if(j<100){j+=2000}g.setFullYear(j,parseInt(c[1])-1,parseInt(c[0]))}var f="\r\n";var e="DTSTART;TZID=Europe/London:"+dToICal(a)+f;e+="DTEND;TZID=Europe/London:"+dToICal(d)+f;if(b=="weekly"){e+="RRULE:FREQ=WEEKLY;"}if(b=="monthly"){e+="RRULE:FREQ=MONTHLY;"}if(h){e+="UNTIL="+dToUTC(g)+";"}return e}function dlzero(b){var a=0;while((a<b.length)&&(b.charAt(a)=="0")){++a}if(a==0){return b}if(a==b.length){return"0"}return b.substr(a)}function dlzeroa(b){for(var a=0;a<b.length;++a){b[a]=dlzero(b[a])}return b}function latLongDist(j,h){var g=6371;var e=h.latRadians()-j.latRadians();var f=h.lngRadians()-j.lngRadians();var b=Math.sin(e/2)*Math.sin(e/2)+Math.cos(j.latRadians())*Math.cos(h.latRadians())*Math.sin(f/2)*Math.sin(f/2);var m=2*Math.atan2(Math.sqrt(b),Math.sqrt(1-b));var l=g*m;return l}function kmToM(a){return a*0.62150403978}function getExtProp(c,a){var b=null;var e=c.getExtendedProperties();if(e){for(var d=0;d<e.length;++d){if(e[d].getName()==a){b=e[d].getValue();break}}}return b}function distanceFilter(a,b){this.point=a;this.distance=b;this.acceptEntry=function(f){var e=getExtProp(f,"latLong");if(!e){return false}e=e.split(",");var c=new GLatLng(parseFloat(e[0]),parseFloat(e[1]));var d=kmToM(latLongDist(this.point,c));if(d>this.distance){return false}return true}}function dateFilter(a,b){this.date=a;this.earlier=b;if(b){a.setHours(23,59,59,999)}else{a.setHours(0,0,0,0)}this.acceptEntry=function(d){var e=d.getTimes();if(!e||(e.length==0)){return false}var c,f;if(this.earlier){if(e[0].getEndTime()!=null){c=e[0].getEndTime().getDate();f=this.date}else{return false}}else{if(e[0].getStartTime()!=null){c=this.date;f=e[0].getStartTime().getDate()}else{return false}}return(c<=f)}}function calendarFilter(a){this.calendars=a;this.acceptEntry=function(c){var b=getExtProp(c,"calendar");if(!b){return false}for(var d=0;d<this.calendars.length;++d){if(b==this.calendars[d]){return true}}return false}}function applyFilters(a,f){var d=new Array();for(var e=0;e<a.length;++e){var b=true;var c=0;while(b&&(c<f.length)){b&=f[c++].acceptEntry(a[e])}if(b){d.push(a[e])}}return d}var calsSelected=9;function setCalCheck(a){for(var b=0;b<9;++b){document.getElementById("calSel"+b).checked=a}calsSelected=a?9:0;updateSearchApply()}function calClick(a){if(a.checked){++calsSelected}else{--calsSelected}updateSearchApply()}function updateDateEntry(){var a=document.getElementById("allDates").checked;document.getElementById("after").disabled=a;document.getElementById("before").disabled=a}function resetAll(){setCalCheck(true);document.getElementById("allDates").checked=true;updateDateEntry();document.getElementById("allLocations").checked=true;updateLocationEntry();applyFilter(mEventEntries,filterComplete)}function updateLocationEntry(){var a=document.getElementById("allLocations").checked;document.getElementById("location").disabled=a;document.getElementById("plusDist").disabled=a}function distanceFilterObject(a,b,d,c){this.filters=b;this.distance=d;this.entries=a;this.callback=c}function withDistanceFunc(){if(localSearch.results[0]){var b=localSearch.results[0].lat;var c=localSearch.results[0].lng;var a=new GLatLng(b,c);this.filters.push(new distanceFilter(a,this.distance))}if(this.filters.length>0){gEventEntries=applyFilters(this.entries,this.filters)}else{geventEntries=this.entries}this.callback()}distanceFilterObject.prototype.withDistance=withDistanceFunc;function applyFilter(j,p){var d=new Array();var o=new Array();for(var c=0;c<9;++c){var l=document.getElementById("calSel"+c);if(l.checked){o.push(l.value)}}if(o.length!=9){d.push(new calendarFilter(o))}var m;var h=document.getElementById("after");if((!(h.disabled))&&(h.value!="")){var g=h.value.split("/");dlzeroa(g);var b=new Date();m=parseInt(g[2]);if(m<100){m+=2000}b.setFullYear(m,parseInt(g[1])-1,parseInt(g[0]));d.push(new dateFilter(b,false))}var f=document.getElementById("before");if((!(f.disabled))&&(f.value!="")){var e=f.value.split("/");dlzeroa(e);var n=new Date();m=parseInt(e[2]);if(m<100){m+=2000}n.setFullYear(m,parseInt(e[1])-1,parseInt(e[0]));d.push(new dateFilter(n,true))}var q=document.getElementById("location");if((!(q.disabled))&&(q.value!="")){var a=new distanceFilterObject(j,d,parseInt(document.getElementById("plusDist").value),p);localSearch.setSearchCompleteCallback(a,distanceFilterObject.prototype.withDistance);localSearch.execute(q.value+", UK")}else{if(d.length>0){gEventEntries=applyFilters(j,d)}else{gEventEntries=j}p()}}function updateSearchApply(){document.getElementById("apply").disabled=(calsSelected==0)}function initialiseSearchView(){localSearch=new GlocalSearch()}function showPopup(b,a){document.getElementById("popup").style.left=b[0];document.getElementById("popup").style.top=b[1];document.getElementById("embedCode").childNodes[0].data=a;$("#popup").show()}function findPos(c,d){var b=0;var a=0;if(d){b+=(c.offsetWidth/2);a+=(c.offsetHeight/2)}if(c.offsetParent){do{b+=c.offsetLeft;a+=c.offsetTop}while(c=c.offsetParent)}return[b,a]}function EmbeddedHTML(){this.master='<iframe src="http://www.bikeeventsscotland.com/v1/wp-content/themes/bikeeventsscotlandv1/iframegeneralcalendar.php" style="border: 0" width="825" height="650" frameborder="0" scrolling="auto"></iframe>';this.beginner='<iframe src="http://www.google.com/calendar/embed?src=nqdnrrvifhtfqqud0jdbnu74vg%40group.calendar.google.com&ctz=Europe/London" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>';this.fairs='<iframe src="http://www.google.com/calendar/embed?src=g95f9hm3cehevki2eh3a60h8jk%40group.calendar.google.com&ctz=Europe/London" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>';this.training='<iframe src="http://www.google.com/calendar/embed?src=0d5a392kd25lrtrfuca25pvq4k%40group.calendar.google.com&ctz=Europe/London" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>';this.family='<iframe src="http://www.google.com/calendar/embed?src=r30k55j246hnaa5tiurmns1dc0%40group.calendar.google.com&ctz=Europe/London" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>';this.fundraising='<iframe src="http://www.google.com/calendar/embed?src=4bikblopk9r17n4gooe71m4q10%40group.calendar.google.com&ctz=Europe/London" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>';this.group='<iframe src="http://www.google.com/calendar/embed?src=jvq5g7f9qfgpvptbb3qvcmtr0g%40group.calendar.google.com&ctz=Europe/London" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>';this.mass='<iframe src="http://www.google.com/calendar/embed?src=k3c52st89jcb433d5stmr7qpfo%40group.calendar.google.com&ctz=Europe/London" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>';this.mountain='<iframe src="http://www.google.com/calendar/embed?src=spcftuqkolb8snm82u6rb10dvo%40group.calendar.google.com&ctz=Europe/London" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>';this.road='<iframe src="http://www.google.com/calendar/embed?src=3d6964vf2vt8mhc969nshmlrrk%40group.calendar.google.com&ctz=Europe/London" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>'}var embeddedHTML=new EmbeddedHTML();function makeCategoryCol(c){var b=document.createElement("div");b.className="listCategory";var a=document.createElement("div");a.className="listCategoryInner";a.style.backgroundColor=c.color;b.appendChild(a);return b}function makeTitleCol(c){var b=document.createElement("div");b.className="listTitle";var a=document.createElement("span");a.className="listText";var d=c.getTitle().getText();if(BrowserDetect.browser=="Explorer"){a.appendChild(document.createTextNode(d.substr(0,42)))}else{a.appendChild(document.createTextNode(d))}b.appendChild(a);return b}function makeDateCol(e){var d=document.createElement("div");d.className="listDate";var c=document.createElement("span");c.className="listText";var b="";var f=e.getTimes();if(f&&(f.length!=0)){var g=f[0].getStartTime();var a=f[0].getEndTime();if(g){g=g.getDate();b+=g.format("fullDate");b+=" - "+g.getHours()+":"+lzero(g.getMinutes());if(a){a=a.getDate();b+=" to "+a.getHours()+":"+lzero(a.getMinutes())}}}c.appendChild(document.createTextNode(b));d.appendChild(c);return d}function makeLocationCol(d){var c=document.createElement("div");c.className="listLocation";var b=document.createElement("span");b.className="listText";var e="";var a=d.getLocations();if(a&&(a.length!=0)){e+=a[0].getValueString()}if(BrowserDetect.browser=="Explorer"){b.appendChild(document.createTextNode(e.substr(0,29)))}else{b.appendChild(document.createTextNode(e))}c.appendChild(b);return c}function makeTableRow(a,b){var c=document.createElement("div");c.className=b?"listOddRow":"listEvenRow";c.appendChild(makeCategoryCol(a));c.appendChild(makeTitleCol(a));c.appendChild(makeDateCol(a));c.appendChild(makeLocationCol(a));c.event=a;c.onclick=function(){displayEvent(this.event)};return c}var sortFunctions=[eventSortTitle,eventSortDate,eventSortLocation];var lastSort;var sortMult=-1;function drawListView(d){if(lastSort==undefined){lastSort=1}if(d==undefined){d=lastSort}if(lastSort==d){sortMult*=-1}else{sortMult=1}lastSort=d;var a=document.getElementById("listContent");var b=[];var c;for(c=0;c<gEventEntries.length;++c){b.push(gEventEntries[c])}b.sort(sortFunctions[d]);while(a.childNodes[0]){a.removeChild(a.childNodes[0])}for(c=0;c<gEventEntries.length;++c){a.appendChild(makeTableRow(b[c],(c&1)==1))}}function eventSortTitle(a,d){var b=a.getTitle();if(b){b=b.getText()}var c=d.getTitle();if(c){c=c.getText()}if(b==c){return 0}if(b&&(!c||(c==""))){return -sortMult}if(c&&(!b||(b==""))){return sortMult}if(ltrim(b)<ltrim(c)){return -sortMult}return sortMult}function eventSortDate(c,f){var d=c.getTimes();var a=f.getTimes();var e;var b;if(d){if(d[0]){if(d[0].getStartTime()){e=d[0].getStartTime().getDate()}}}if(a){if(a[0]){if(a[0].getStartTime()){b=a[0].getStartTime().getDate()}}}if(!e&&!b){return 0}if(e&&!b){return -sortMult}if(b&&!e){return sortMult}if(e<b){return -sortMult}return sortMult}function eventSortLocation(a,f){var c=a.getLocations();var e=f.getLocations();var d;var b;if(c&&(c.length!=0)){d=c[0].getValueString()}if(e&&(e.length!=0)){b=e[0].getValueString()}if(!d&&!b){return 0}if(d&&!b){return -sortMult}if(!d&&b){return sortMult}if(ltrim(d)<ltrim(b)){return -sortMult}return sortMult}function disableEntryForm(){var a=document.getElementById("eventEntry").elements;for(var b=0;b<a.length;++b){a[b].disabled=true}}var daysOfMonth=[31,28,31,30,31,30,31,31,30,31,30,31];function isLeapYear(a){return((((a%4)==0)&&((a%100)!=0))||((a%400)==0))}function validateDate(c){if(c==undefined){return false}c=c.split("/");if(c.length!=3){return false}var b=parseInt(dlzero(c[0]));var e=parseInt(dlzero(c[1]));var d=parseInt(dlzero(c[2]));var a=false;if((e<1)||(e>12)){return false}if(d==0){return false}if(d<100){d+=2000}a=isLeapYear(d);var f;if(e==2){f=a?29:28}else{f=daysOfMonth[e-1]}if((b<1)||(b>f)){return false}return true}function validateLocation(a){return((a!=undefined)&&(a.length!=0))}function validateTitle(a){return((a!=undefined)&&(a.length!=0))}function validateTime(e){if(e==undefined){return false}e=e.split(":");var f=false;if(e.length!=2){return false}if(e[1].length>2){var c=e[1].charAt(e[1].length-1);var d=e[1].charAt(e[1].length-2);if(((c=="m")||(c=="M"))&&((d=="p")||(d=="P")||(d=="a")||(d=="A"))){f=true}else{return false}}var a=parseInt(dlzero(e[0]));if(f&&((a<1)||(a>12))){return false}if(!f&&((a<0)||(a>23))){return false}var b=f?parseInt(dlzero(e[1].substr(0,e[1].length-2))):parseInt(dlzero(e[1]));if((b<0)||(b>59)){return false}return true}function validateLatLong(a){if(a==undefined){return false}return !(isNaN(parseFloat(a)))}function isValidSearchDate(){if(!document.getElementById("allDates").checked){var a=document.getElementById("after")&&document.getElementById("after").value&&(document.getElementById("after").value.length>0);if(a&&!validateDate(document.getElementById("after").value)){alert("The 'After Date' must be in the format 'dd/mm/yy'");return false}var b=document.getElementById("before")&&document.getElementById("before").value&&(document.getElementById("before").value.length>0);if(b&&!validateDate(document.getElementById("before").value)){alert("The 'Before Date' must be in the format 'dd/mm/yy'");return false}if((!a)&&(!b)){alert("An After or Before Date has not been specified");return false}}return true}function trim(b,a){return ltrim(rtrim(b,a),a)}function ltrim(b,a){a=a||"\\s";return b.replace(new RegExp("^["+a+"]+","g"),"")}function rtrim(b,a){a=a||"\\s";return b.replace(new RegExp("["+a+"]+$","g"),"")};
