var w_a=false,w_b=null,w_c=true;function w_d(a){throw a;}window.jstiming&&window.jstiming.load.tick("widgetJsStart");function w_aa(){window.jstiming.load.tick("ol")}function w_ba(a,b){a.addEventListener?a.addEventListener("load",b,w_a):a.attachEvent("onload",b)}function w_ca(a,b){return a.className&&a.className.indexOf(b)!=-1?a:a.parentNode?w_ca(a.parentNode,b):w_b}function w_da(){window.jstiming.load.tick("prt");window.tickAboveFold&&window.tickAboveFold(this)}
function w_ea(a){a||(a={});window.jstiming.load.tick("widgetJsEnd");window.jstiming.load.tick("prt");var b="blogspot";for(var c in a)b+="-"+c;window.jstiming.load.name=b;var d=document.getElementsByTagName("img"),e=0;for(;e<d.length;e++)d[e].complete||w_ca(d[e],"post")!=w_b&&w_ba(d[e],w_da);w_ba(window,w_aa);window.addEventListener?window.addEventListener("beforeunload",w_fa,w_a):window.attachEvent("onbeforeunload",w_fa)}function w_fa(){window.jstiming.report(window.jstiming.load)}
var _attachCsiOnload=w_ea;var w_ga=w_a;function w_e(a){try{w_d(a)}catch(b){w_ha(b)}}function w_ha(a,b){var c="Javascript exception: "+(b?b:"")+" "+a;if(w_ia())c+=" "+a.name+": "+a.message+" ("+a.number+")";var d="";if(typeof a=="string")d=a+"\n";else for(var e in a)try{d+=e+": "+a[e]+"\n"}catch(f){}d+=w_ja(w_ha.caller);w_ka(c+"\n"+d,1)}var w_la=/function (\w+)/;function w_ma(a){var b=w_la.exec(String(a));if(b)return b[1];return""}
function w_ja(a){try{if(!w_ia()&&!(w_f("safari")||w_f("konqueror"))&&w_f("mozilla"))return Error().stack;if(!a)return"";var b="- "+w_ma(a)+"(",c=0;for(;c<a.arguments.length;c++){if(c>0)b+=", ";var d=String(a.arguments[c]);if(d.length>40)d=d.substr(0,40)+"...";b+=d}b+=")\n";b+=w_ja(a.caller);return b}catch(e){return"[Cannot get stack trace]: "+e+"\n"}}var w_na,w_g=w_b,w_h=w_a;
function w_oa(){if((w_g==w_b||w_g.closed)&&!w_h)try{w_h=w_c;w_g=window.open("","debug","width=700,height=500,toolbar=no,resizable=yes,scrollbars=yes,left=16,top=16,screenx=16,screeny=16");w_g.blur();w_g.document.open();w_h=w_a;var a="<font color=#ff0000><b>To turn off this debugging window,hit 'D' inside the main caribou window, then close this window.</b></font><br>";w_pa(a)}catch(b){}}
function w_ka(a,b){if(w_ga){try{var c=(new Date).getTime()-w_na,d="["+c+"] "+w_qa(a).replace(/\n/g,"<br>")+"<br>";if(b==1){d="<font color=#ff0000><b>Error: "+d+"</b></font>";w_g.focus()}}catch(e){}w_pa(d)}else typeof w_i!="undefined"&&w_i(w_qa(a))}function w_pa(a){if(!!w_ga)try{w_oa();w_g.document.write(a);w_g.scrollTo(0,1000000)}catch(b){}};function w_f(a){if(a in w_j)return w_j[a];return w_j[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}var w_j={};function w_ia(){return w_f("msie")&&!window.opera}function w_ra(a){if(typeof Error!="undefined")w_d(new Error(a||"Assertion Failed"));else w_d(a)}function w_sa(a){a=a||"Assertion failed";typeof w_e!="undefined"&&w_e(a+"\n");w_ra(a)}function w_k(a,b){if(!a){b=b||"Assertion failed";w_sa(b)}}function w_l(a,b){a.style.display=b?"":"none"}
function w_ta(a,b){a.style.display=b?"block":"none"}function w_m(a,b){a.style.display=b?"inline":"none"}function w_n(a,b){if(a==w_b||a.className==w_b)return w_a;if(a.className==b)return w_c;var c=a.className.split(" "),d=0;for(;d<c.length;d++)if(c[d]==b)return w_c;return w_a}function w_o(a,b){w_n(a,b)||(a.className+=" "+b)}
function w_p(a,b){if(!(a.className==w_b))if(a.className==b)a.className="";else{var c=a.className.split(" "),d=[],e=w_a,f=0;for(;f<c.length;f++)if(c[f]!=b)c[f]&&d.push(c[f]);else e=w_c;if(e)a.className=d.join(" ")}}function w_q(a,b){var c=[],d=a.firstChild;for(;d;d=d.nextSibling)w_ua(d,b,c);return c}function w_ua(a,b,c){b.select(a)&&c.push(a);var d=a.firstChild;for(;d;d=d.nextSibling)w_ua(d,b,c)}var w_va=/&/g,w_wa=/</g,w_xa=/>/g;
function w_qa(a){if(!a)return"";return a.replace(w_va,"&amp;").replace(w_wa,"&lt;").replace(w_xa,"&gt;").replace(w_ya,"&quot;")}var w_ya=/\"/g;function w_za(a){return document.getElementById(a)}function w_Aa(a){return document.all[a]}var w_Ba=document.getElementById?w_za:w_Aa;
function w_i(a){try{if(window.parent!=window&&window.parent.log){window.parent.log(window.name+"::"+a);return}}catch(b){}var c=w_Ba("log");if(c){var d="<p class=logentry><span class=logdate>"+new Date+"</span><span class=logmsg>"+a+"</span></p>";c.innerHTML=d+c.innerHTML}else window.status=a};function w_r(){}w_r.raise=function(a){if(typeof Error!="undefined")w_d(new Error(a||"Assertion Failed"));else w_d(a)};w_r.fail=function(a){a=a||"Assertion failed";typeof w_e=="undefined"||w_e(a+"\n");w_r.raise(a)};w_r.isTrue=function(a,b){if(!a){if(b===undefined)b="Assertion failed";w_r.fail(b)}};w_r.equals=function(a,b,c){if(a!=b){if(c===undefined)c="AS_Assert.equals failed: <"+a+"> != <"+b+">";w_r.fail(c)}};
w_r.typeOf=function(a,b,c){if(!(typeof a==b)){if(a||a=="")try{if(b==w_r.TYPE_MAP[typeof a]||a instanceof b)return}catch(d){}if(c===undefined){if(typeof b=="function"){var e=b.toString().match(/^\s*function\s+([^\s\{]+)/);if(e)b=e[1]}c="AS_Assert.typeOf failed: <"+a+"> not typeof "+b}w_r.fail(c)}};w_r.TYPE_MAP={string:String,number:Number,"boolean":Boolean};
w_r.numArgs=function(a,b){var c=w_r.numArgs.caller;if(c&&c.arguments.length!=a){if(b===undefined)b=c.name+" expected "+a+" arguments  but received "+c.arguments.length;w_r.fail(b)}};var w_s;function w_Ca(){var a=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];if(typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){var b=0;for(;b<a.length;b++){var c=a[b];try{new ActiveXObject(c);w_s=c;break}catch(d){}}if(!w_s)w_d(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed."))}}w_Ca();
function w_Da(a,b,c,d){a.open("POST",b,w_c);a.onreadystatechange=d;a.setRequestHeader("Content-Type","application/x-www-form-urlencoded");a.setRequestHeader("Content-Length",c.length);w_Ea(a,c)}function w_Ea(a,b){try{a.send(b)}catch(c){w_i("XMLHttpSend failed "+c.toString()+"<br>"+c.stack);w_d(c)}};var w_Fa=0,w_t=0;if("undefined"==typeof w_i)w_i=function(){};function w_Ga(a){var b=-1;try{b=a.status}catch(c){}return b}function w_Ha(a){var b=w_b;try{b=a.statusText}catch(c){}return b}
function w_Ia(a,b,c,d){if(a.readyState==4)try{var e=w_c;if(d)try{e=!(w_a===d(a))}catch(f){w_i("Message ("+b+") handling failed: "+f);w_d(f)}var g=w_Ga(a);if(200===g){w_i("Message ("+b+") received after "+((new Date).getTime()-c)+" ms");try{var h=(new Date).getTime();e&&a.responseText.length&&eval(a.responseText);w_i("Message ("+b+") processing took "+((new Date).getTime()-h)+" ms")}catch(i){w_i("Message ("+b+") processing failed: "+i);alert(i+"\n"+i.stack+"\n\n"+a.responseText);w_d(i)}}else 204==
g?w_i("Message ("+b+") received after "+((new Date).getTime()-c)+" ms"):w_i("Message ("+b+") failed with response "+g+" "+w_Ha(a)+" after "+((new Date).getTime()-c)+" ms.")}finally{--w_t}}
function w_Ja(a,b,c){var d="";if(b){var e="",f=0;for(;f<b.length;){var g=b[f++],h=b[f++];d+=e+encodeURIComponent(g);e="&";if(w_b!==h&&undefined!==h)d+="="+encodeURIComponent(h.toString())}}var i=++w_Fa,j=w_s?new ActiveXObject(w_s):new XMLHttpRequest,k=(new Date).getTime(),l=function(){w_Ia(j,i,k,c)},m=a,n=m.length+1;for(;(n=m.lastIndexOf("&",n-1))>=0;)m=m.substring(0,n)+"&amp;"+m.substring(n+1);w_i("Message ("+i+") sent: POST <tt>"+m+"</tt>.");++w_t;w_Da(j,a,d,l)};var w_Ka=this;String.prototype.Xd=function(a){return this.indexOf(a)==0};String.prototype.tf=function(a){var b=this.length-a.length;return b>=0&&this.lastIndexOf(a,b)==b};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.subs=function(){var a=this,b=0;for(;b<arguments.length;b++)a=a.replace(/\%s/,String(arguments[b]));return a};
if(!Function.prototype.apply)Function.prototype.apply=function(a,b){var c=[],d,e;a||(a=w_Ka);var f=b||[],g=0;for(;g<f.length;g++)c[g]="args["+g+"]";e="oScope.__applyTemp__.peek()("+c.join(",")+");";if(!a.__applyTemp__)a.__applyTemp__=[];a.__applyTemp__.push(this);d=eval(e);a.__applyTemp__.pop();return d};if(!Array.prototype.push)Array.prototype.push=function(){var a=0;for(;a<arguments.length;a++)this[this.length]=arguments[a];return this.length};
if(!Array.prototype.pop)Array.prototype.pop=function(){if(!!this.length){var a=this[this.length-1];this.length--;return a}};Array.prototype.peek=function(){return this[this.length-1]};if(!Array.prototype.shift)Array.prototype.shift=function(){if(!(this.length==0)){var a=this[0],b=0;for(;b<this.length-1;b++)this[b]=this[b+1];this.length--;return a}};
if(!Array.prototype.unshift)Array.prototype.unshift=function(){var a=arguments.length,b=this.length-1;for(;b>=0;b--)this[b+a]=this[b];var c=0;for(;c<a;c++)this[c]=arguments[c];return this.length};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,b){var c=0;for(;c<this.length;c++)a.call(b,this[c],c,this)};
function w_u(a,b){var c=a.Sc||[];c=c.concat(Array.prototype.slice.call(arguments,2));if(typeof a.Pb!="undefined")b=a.Pb;if(typeof a.Ob!="undefined")a=a.Ob;var d=function(){var e=c.concat(Array.prototype.slice.call(arguments));return a.apply(b,e)};d.Sc=c;d.Pb=b;d.Ob=a;return d}Function.prototype.bind=function(a){return w_u.apply(w_b,[this,a].concat(Array.prototype.slice.call(arguments,1)))};Function.prototype.partial=function(){return w_u.apply(w_b,[this,w_b].concat(Array.prototype.slice.call(arguments)))};
Function.prototype.inherits=function(a){var b=function(){};this.uc=b.prototype=a.prototype;this.prototype=new b};Function.prototype.mixin=function(a){for(var b in a)this.prototype[b]=a[b];if(typeof a.toString=="function"&&a.toString!=this.prototype.toString)this.prototype.toString=a.toString};function w_v(a,b,c,d,e,f){this.instanceId=a;this.sectionId=b;this.markups=c;if(d)this.rootElement=d;if(e)this.data=e;if(f){this.rf=f;if(!w_v.IsValidDisplayMode(f))w_d("bad display mode: "+f)}else this.rf=w_v.DISPLAY_MODE_NONE;this.isNew=w_a}w_v.IsValidDisplayMode=function(a){return a==w_v.DISPLAY_MODE_SNIPPET||a==w_v.DISPLAY_MODE_FULL||a==w_v.DISPLAY_MODE_LAYOUT||a==w_v.DISPLAY_MODE_NONE};w_v.DISPLAY_MODE_FULL="displayModeFull";w_v.DISPLAY_MODE_SNIPPET="displayModeSnippet";
w_v.DISPLAY_MODE_LAYOUT="displayModeLayout";w_v.DISPLAY_MODE_NONE="displayModeNone";function w_w(a){this.Pg=w_c;this.ae=new w_x(this);this.g=a;this.Ja=w_b}w_w.DATA_NAMESPACE_PREFIX="data";w_w.ACTION_NAMESPACE_PREFIX="b";w_w.INTERPRET_ATTR_NAMESPACE_PREFIX="expr";w_w.prototype.le=function(){var a=this.g.rootElement;a.innerHTML="";this.eb()==w_v.DISPLAY_MODE_LAYOUT?a.appendChild(this.Hb("layout")):a.appendChild(this.Hb("main"));return a};w_w.prototype.Pe=function(a){this.Ja=a};w_w.prototype.u=function(){return this.g};
w_w.prototype.X=function(a){return document.getElementById(this.g.instanceId+"_"+a)};w_w.prototype.K=function(a){var b=this.X(a);if(!b)w_d("did not find element for id "+a);return b};w_w.prototype.s=function(){return this.g.data};w_w.prototype.Mc=function(a){return this.g.data=a};w_w.prototype.Ce=function(){return this.g.isNew};w_w.prototype.Ne=function(a){return this.g.isNew=a};
w_w.prototype.Hb=function(a,b){var c=b;c||(c=this.s());c||(c={});var d=new w_y;d.cb("widget",this.re());d.ee(c);var e=this.Dc(a,d,w_y.DEFAULT_DICTIONARY_KEY);return this.Cc(e,document)};w_w.prototype.re=function(){var a={};a.type=this.Ja.e();a.instanceId=this.g.instanceId;a.sectionId=this.g.sectionId;a.actionUrl=w_z.Tc;var b=w_z.sf+"&widgetType="+this.Ja.e()+"&widgetId="+this.g.instanceId+"&action="+w_z.EDIT_WIDGET_ACTION;a.quickEditUrl=b;return a};
w_w.prototype.Dc=function(a,b,c){var d=this.we(a);w_r.isTrue(d!=w_b,"Markup chunk not found for "+a);var e=d.varName?d.varName:"",f=b.s(c);w_r.isTrue(f!=w_b,"No data found for call: "+c);b.cb(e,f);var g=this.gb(d.rootNode,b);b.Ic(e);return g};
w_w.prototype.gb=function(a,b){w_r.isTrue(a!=w_b,"Null node");var c=a;if(a.attributes){var d=[],e=[],f=0;for(;f<a.attributes.length;f++){var g=a.attributes.item(f),h=this.Ie(g,b);if(g!=h){e[e.length]=g.nodeName;d[d.length]=h}}var f=0;for(;f<e.length;f++)a.attributes.removeNamedItem(e[f]);var f=0;for(;f<d.length;f++)a.attributes.setNamedItem(d[f])}if(a.nodeType==1)if(a.prefix==w_w.ACTION_NAMESPACE_PREFIX)c=this.Ae(a,b);else if(a.prefix==w_w.DATA_NAMESPACE_PREFIX)c=this.ze(a,b);if(a.hasChildNodes()){var i=
a.ownerDocument.createDocumentFragment();for(;a.hasChildNodes();){var j=a.firstChild,k=this.gb(j,b);i.appendChild(k);j!=k&&a.removeChild(j)}c.appendChild(i)}return c};w_w.prototype.Ie=function(a,b){if(a.prefix==w_w.INTERPRET_ATTR_NAMESPACE_PREFIX){var c=a.ownerDocument.createAttribute(a.localName||a.baseName),d=this.ae.zc(a.nodeValue,b);c.nodeValue=d;return c}return a};w_w.prototype.Ae=function(a,b){var c=a.localName||a.baseName,d=this.Kc(c,a,b);return this.Xe(d)};
w_w.prototype.Xe=function(a){var b=a;if(!a)return document.createDocumentFragment();a.nodeType||(b=document.createTextNode(a));if(b.nodeType==3){var c=document.createDocumentFragment();c.appendChild(b);b=c}return b};w_w.prototype.Eb=function(a,b){var c=this.hb(a);return b.s(c[1])};
w_w.prototype.ze=function(a,b){w_r.isTrue(a!=w_b,"Null element");w_r.isTrue(b!=w_b,"Null data");if(a.prefix!=w_w.DATA_NAMESPACE_PREFIX)return a;var c=this.Eb(a.tagName,b),d=""+(c==w_b?"":c),e=document.createElement("DIV");e.innerHTML=d;var f=this.fb(e);return this.Cc(f,a.ownerDocument,w_c)};w_w.prototype.hb=function(a){var b=a.split(":",2);b.length==1&&b.unshift("");b[0]=b[0].toLowerCase();return b};
w_w.prototype.Kc=function(a,b,c){var d="_WidgetBinding_"+a;if(this.ae[d])return this.ae[d](b,c);if(this.Ja[d])return this.Ja[d](b,c);w_r.isTrue(w_a,"could not find binding "+a);return w_b};
w_w.prototype.He=function(a){if(a==w_b)return w_b;var b;if(window.ActiveXObject){b=new ActiveXObject("Microsoft.XMLDOM");b.async="false";if(!b.loadXML(a))w_d(new Error(b.parseError))}else if(window.DOMParser){var c=new DOMParser;b=c.parseFromString(a,"text/xml");if(b.documentElement.nodeName=="parsererror")w_d(new Error(b.documentElement.textContent))}else w_r.raise("Unable to find XML parser");return b.documentElement};
w_w.prototype.fb=function(a){var b=a.ownerDocument.createDocumentFragment();for(;a.hasChildNodes();)b.appendChild(a.firstChild);return b};
w_w.prototype.Cc=function(a,b,c){w_r.isTrue(a!=w_b);if(b.importNode)if(a.nodeType==11){var d=b.createDocumentFragment(),e=a.firstChild;for(;e!=w_b;e=e.nextSibling)d.appendChild(b.importNode(e,w_c));return d}else return b.importNode(a,w_c);if(!c){var f=b.createElement("DIV"),g=a.innerHTML||a.xml;f.innerHTML=g;return this.fb(f)}var h=function(i){var j;if(i.nodeType==1){if(i.nodeName=="SCRIPT")return document.createTextNode("");j=b.createElement(i.nodeName);i.style&&j.setAttribute("style",i.style.cssText);
i.currentStyle.height&&j.setAttribute("height",i.currentStyle.height);i.currentStyle.width&&j.setAttribute("width",i.currentStyle.width);var k=0;for(;k<i.attributes.length;k++){var l=i.attributes[k];l.value&&l.value!="null"&&l.value!="false"&&l.value!="0"&&j.setAttribute(l.name,l.value)}}else if(i.nodeType==3)j=b.createTextNode(i.nodeValue);else if(i.nodeType==11)j=b.createDocumentFragment();else w_r.raise("unexpected node type "+i.nodeType);if(i.hasChildNodes()){var k=0;for(;k<i.childNodes.length;k++)j.appendChild(h(i.childNodes[k]))}return j};
return h(a)};w_w.prototype.ka=function(a,b){var c=this.Ja,d=function(e){return c.bb?c.bb(e):w_c};w_z.ka(a,b,this.g.instanceId,this.Ja.e(),d)};w_w.prototype.eb=function(){return this.g.rf};w_w.prototype.we=function(a){if(!a)return w_b;var b=w_z.Zd[a];b||(b=this.g.markups[a]);if(!b)return w_b;if(!b.parsedTemplate||!b.parsedTemplate.ownerDocument)this.Ge(b);b.parsedTemplate||w_r.raise("Parsing failed for "+a);b.rootNode=b.parsedTemplate.cloneNode(w_c);return b};
w_w.prototype.Ge=function(a){if(!a)return w_b;var b="<?xml version='1.0'?><markuproot xmlns:"+w_w.DATA_NAMESPACE_PREFIX+"='urn:ns1'  xmlns:"+w_w.ACTION_NAMESPACE_PREFIX+"='urn:ns2' xmlns:"+w_w.INTERPRET_ATTR_NAMESPACE_PREFIX+"='urn:ns3'  xmlns='http://www.w3.org/1999/xhtml'>"+a.template+"</markuproot>\n",c=this.He(b);a.parsedTemplate=this.fb(c);return a};
w_w.ConfigureWidget=function(a,b){b||(b="config");var c=document.forms[b].widgetId.value,d=document.forms[b].widgetType.value,e=w_A.ProcessForm(document.forms[b],a);e.success&&w_z.SaveWidget(e.values,c,d)};function w_z(){}w_z.Init=function(a,b,c){w_z.ab={};w_z.sf=a;w_z.Tc=b;w_z.Hh=c;w_z.xd=w_b;if(!w_z.Zd)w_z.Zd={}};w_z.TrapClicks=function(a){var b=w_z.CreateTransparentClickTrappingDiv(a.document);document.body.appendChild(b)};w_z._SetupPreview=function(){w_z.TrapClicks(window)};
w_z.NEW_WIDGET_WINDOW_NAME="chooseWidget";w_z.CHOOSE_WIDGET_ACTION="chooseWidget";w_z.EDIT_WIDGET_ACTION="editWidget";w_z.GetCallbackUrl=function(){return w_z.Tc};w_z.SetPageActionUrl=function(a,b){w_z.Qd=a;w_z.ih=b};w_z.GetPageActionUrl=function(){return w_z.Qd};w_z.SetWidgetRefreshUrl=function(a){w_z.Bh=a};w_z.GetWidgetRefreshUrl=function(){return w_z.Bh};w_z._SetDataContext=function(a){w_z.xd=a};w_z._SetSystemMarkup=function(a){w_z.Zd=a};
w_z._RegisterWidget=function(a,b,c){var d=new w_w(b);c||(c=window[a]);var e=new c(d);d.Pe(e);w_z.ab[b.instanceId]=e;w_z.DisplayWidget(e);return e};w_z._RegisterNewWidget=function(a,b,c){var d=w_z._RegisterWidget(a,b,c),e=d.b();e.Ne(w_c);return d};w_z.DisplayWidget=function(a,b){var c=a.b();if(!(c.eb()==w_v.DISPLAY_MODE_NONE)){if(b||a.i&&a.i())c.le();c.eb()==w_v.DISPLAY_MODE_FULL&&a.j&&a.j();a.b().Pg=w_a}};w_z.GetWidget=function(a){if(w_z.ab)return w_z.ab[a];return w_b};
w_z._PopupPaneFromParams=function(a,b,c,d,e){var f="";if(d)f="&widgetId="+d;var g=w_z.sf+"&action="+a+"&sectionId="+b+"&widgetType="+c+f;if(window.name==e){window.location.replace(g);window.focus();return window}var h=window.open(g,e,"width=570,height=600,left=75,top=20,resizable=yes,scrollbars=yes");h.focus();return h};
w_z._PopupConfig=function(a){var b=a.getAttribute("id"),c=w_z.GetWidget(b);if(c){var d=c.b().configWin;if(d!=w_b&&!d.closed){d.focus();return w_a}}var e="config"+b,f=w_z._PopupPaneFromParams(w_z.EDIT_WIDGET_ACTION,a.parentNode.getAttribute("id"),a.getAttribute("widgetType"),b,e);if(c)c.b().configWin=f;return w_a};
w_z._PopupToolbox=function(a){w_z._PopupPaneFromParams(w_z.CHOOSE_WIDGET_ACTION,a.parentNode.getAttribute("id"),a.getAttribute("widgetType"),a.getAttribute("id"),w_z.NEW_WIDGET_WINDOW_NAME);return w_a};w_z.DeleteWidgetFromPage=function(a,b){w_z.N(b,b.LayoutsMessages.DELETING,w_z.STATUS_MESSAGE_PENDING_CLASS);w_z.RunPageAction("delete",{},a,b)};w_w.prototype.Le=function(a,b){w_z.N(b,b.LayoutsMessages.SAVING,w_z.STATUS_MESSAGE_PENDING_CLASS);this.ka("configure",a)};
w_z.SaveNewWidget=function(a,b,c){var d=document.getElementById("sectionId").value;a.sectionid=d;w_z.N(c,c.LayoutsMessages.SAVING,w_z.STATUS_MESSAGE_PENDING_CLASS);w_z.RunPageAction("addnew",a,"",b)};w_z.SaveWidget=function(a,b,c){w_k(c!=w_b,"no type");var d=_WidgetManager._GetWidget(b);w_k(d!=w_b,"no widget for "+b);d.b().Ce()?w_z.SaveNewWidget(a,c,window):d.a.Le(a,window)};w_z._RunInitialAction=function(a){var b=w_z._GetWidget(a);b&&b.b().ka("initial")};
w_z.ka=function(a,b,c,d,e){w_z.RunAction(w_z.Tc,a,b,c,d,e)};w_z.RunPageAction=function(a,b,c,d,e){if(w_z.Qd){b.pageToken=w_z.ih;w_z.RunAction(w_z.Qd,a,b,c,d,e)}else w_i("RunPageAction error: pageActionUrl_ is undefined.  widgetid: "+c+" action: "+a)};
w_z.RunAction=function(a,b,c,d,e,f){var g=["action",b,"widgetId",d,"widgetType",e,"responseType","js"];for(var h in c)if(typeof c[h]=="object"){var i=0;for(;i<c[h].length;++i){g[g.length]=h;g[g.length]=c[h][i]}}else{g[g.length]=h;g[g.length]=c[h]}w_Ja(a,g,new w_La(f))};w_z.SetConfigWin=function(a,b){if(!!a){var c=w_z.GetWidget(a);if(!!c)c.b().configWin=b}};
w_z.CloseIfNoPendingMessages=function(a,b){w_t==0?window.setTimeout(function(){a.close()},b):window.setTimeout(function(){w_z.CloseIfNoPendingMessages(a,b)},200)};w_z._KillPopupDelay=function(a,b){if(!!a){w_z.CloseIfNoPendingMessages(a,100);w_z.UpdateEditorStatus(a,b)}};w_z.UpdateEditorStatus=function(a,b){if(!!a){var c=a.document.getElementById("status-message-inner");if(c)c=c.innerHTML;c&&a&&a.opener.parent&&a.opener.parent.editor&&a.opener.parent.editor._SetSaveMessage(c,b)}};
w_z.d=function(a,b,c){var d=w_z.ab[a];if(c.errors!=w_b){var e=d?d.b().configWin:w_b;e||(e=window);w_z.N(e,c.errors,w_z.STATUS_MESSAGE_BAD_CLASS);d&&d.ra?d.ra(b,c):w_z.ra(c,e)}else{w_k(d!=w_b,"no widget for "+a);if(b=="initial"){d.b().Mc(c);w_z.DisplayWidget(d,w_c)}else d.d(b,c)}};w_z.ra=function(a,b){var c=a["error-details"];for(var d in c)w_A.SetError(d,c[d],b.document)};
w_w.prototype.l=function(a){w_z.N(this.configWin,a["status-message"],w_z.STATUS_MESSAGE_GOOD_CLASS);w_z.FinishPopupWork(this.g.instanceId,"_OnWidgetConfigured",function(b){window.opener._WidgetManager._OnWidgetConfigured(b,a)})};w_z._OnWidgetConfigured=function(a,b){window.parent&&window.parent.editor&&b?w_z.OnWidgetConfiguredWithData(a,b):w_z._RunInitialAction(a)};w_z.OnWidgetConfiguredWithData=function(a,b){var c=w_z._GetWidget(a);c.b().Mc(b.data);w_z.DisplayWidget(c,w_c);c.b().configWin=w_b};
w_z.HandlePageActionResult=function(a,b,c){var d=c["status-message"];if(c.errors!=w_b){w_z.N(window,c.errors,w_z.STATUS_MESSAGE_BAD_CLASS);w_z.ra(c,window)}else if(b=="addnew"){var e;if(w_z.IsOpenerReachable(window)){if(window.opener&&window.opener.parent)e=window.opener.parent;e&&e.editor&&e.editor._HandleAddNewWidget(c)}w_z.N(window,d,w_z.STATUS_MESSAGE_GOOD_CLASS);if(window.opener==w_b)window.location="/rearrange?blogID="+c.blogID;else e&&e._WidgetManager?e._WidgetManager._KillPopupDelay(window):
w_z.CloseIfNoPendingMessages(window,100)}else{var f=w_z.ab[a];w_k(f!=w_b);if(b=="delete"){w_z.N(f.b().configWin,d,w_z.STATUS_MESSAGE_GOOD_CLASS);w_z.FinishPopupWork(a,"_OnWidgetDeleted")}}};w_z._OnWidgetDeleted=function(a){var b=w_z.GetWidget(a);if(!!b){if(b.b().eb()==w_v.DISPLAY_MODE_LAYOUT)top.editor._HandleDeleteWidget(b.b().g.rootElement);else{var c=b.b().g.rootElement;c.parentNode.removeChild(c)}delete w_z.ab[a]}};
w_z.FinishPopupWork=function(a,b,c){if(w_z.IsOpenerReachable(window)){var d=window.opener;c||(c=d._WidgetManager[b]);c(a);d._WidgetManager?d._WidgetManager._KillPopupDelay(window,a):w_z.CloseIfNoPendingMessages(window,100)}else{var e=w_z.GetWidgetRefreshUrl()+"?widgetId="+a;e+="&func="+encodeURIComponent(b);window.location.replace(e)}};w_z.IsOpenerReachable=function(a){var b=w_a;try{if(a.opener){var c="X"+a.opener.document.domain;if(c&&c!="X")b=w_c}}catch(d){}return b};
w_z.STATUS_MESSAGE_GOOD_CLASS="status-msg status-msg-yellow-on-white";w_z.STATUS_MESSAGE_PENDING_CLASS=w_z.STATUS_MESSAGE_GOOD_CLASS;w_z.STATUS_MESSAGE_BAD_CLASS=w_z.STATUS_MESSAGE_GOOD_CLASS;w_z.N=function(a,b,c){a||(a=self);var d=a.document.getElementById("status-message-inner");if(d)d.innerHTML=b;var e=a.document.getElementById("status-message");if(e)e.className=c};w_z.MaybePrependHttp=function(a){if(a&&a.length>0&&a.substring(0,4)!="http")a="http://"+a;return a};
w_z.GetFirstElementInElementWithClass=function(a,b){if(w_n(a,b))return a;if(a){var c=a.childNodes.length,d=0;for(;d<c;d++){var e=w_z.GetFirstElementInElementWithClass(a.childNodes.item(d),b);if(e)return e}}return w_b};
w_z.CreateTransparentClickTrappingDiv=function(a){var b=a.createElement("div"),c=a.body.scrollHeight;b.style.position="absolute";b.style.top="0px";b.style.left="0px";b.style.width="100%";b.style.height=c+"px";b.style.zIndex="10";b.style.cursor="default";b.onclick=w_z.Fc;b.onmousedown=w_z.Fc;b.onmouseup=w_z.Fc;b.style.background="white";b.style.filter="alpha(opacity=1)";b.style.opacity=".01";b.innerHTML="&nbsp;";return b};
w_z.Fc=function(a){var b=a;if(!b)b=window.event;if(b){b.cancelBubble=w_c;b.stopPropagation&&b.stopPropagation()}return w_a};function w_x(a){this.ca=a}w_x.prototype._WidgetBinding_include=function(a,b){var c=a.getAttribute("name"),d=a.getAttribute("data");return this.ca.Dc(c,b,d)};w_x.prototype._WidgetBinding_call=w_x.prototype._WidgetBinding_include;
w_x.prototype._WidgetBinding_loop=function(a,b){var c=a.getAttribute("values"),d=this.ca.hb(c),e=this.ca.Eb(d[1],b),f=a.getAttribute("var");f||w_r.raise("Invalid var= attribute on b:loop");var g=this.ca.fb(a),h=a.ownerDocument.createDocumentFragment();if(!e)return h;var i=0;for(;i<e.length;i++){var j=e[i],k=g.cloneNode(w_c);b.cb(f,j);var l=this.ca.gb(k,b);b.Ic(f);h.appendChild(l)}return h};
w_x.prototype._WidgetBinding_if=function(a,b){var c=this.zc(a.getAttribute("cond"),b),d=a.ownerDocument.createDocumentFragment(),e=w_a;for(;a.firstChild!=w_b;){var f=a.firstChild;if("else"==this.ca.hb(f.nodeName)[1].toLowerCase())e=w_c;else if(c&&!e||!c&&e){var g=this.ca.gb(f,b);d.appendChild(g)}f.parentNode==a&&a.removeChild(f)}return d};
w_x.prototype.zc=function(a,b){w_r.isTrue(a!=w_b,"null expression");var c=this.Re(a,b);try{var d=eval(c);return d}catch(e){w_i("expression=["+a+"] error="+e+" eval=["+c+"]")}return""};
w_x.prototype.Re=function(a,b){var c=new RegExp("\\b(?:"+w_w.DATA_NAMESPACE_PREFIX+"|"+w_w.ACTION_NAMESPACE_PREFIX+"):[^ ]*\\b","gi"),d="",e=0,f=c.exec(a);for(;f;){var g=f[0];if(!this.Be(a,c.lastIndex)){var h,i=this.ca.hb(g);if(i[0]==w_w.ACTION_NAMESPACE_PREFIX)h=this.ca.Kc(i[1],w_b,b);else if(i[0]==w_w.DATA_NAMESPACE_PREFIX){(h=this.ca.Eb(g,b))||(h="");h=h+""}else w_r.raise("Unrecognized prefix '"+i[0]+"'");h=h.replace(/"/g,"&quot;");h='"'+h+'"';d+=a.substring(e,f.index);d+=h;e=c.lastIndex}f=c.exec(a)}d+=
a.substring(e,a.length);return d};w_x.prototype.Be=function(a,b){w_r.isTrue(b<=a.length,"Invalid index: i="+b+", l="+a.length);var c=0,d=0;for(;d<b;d++)if(a.charAt(d)=='"'&&(d==0||a.charAt(d-1)!="\\"))c++;return c%2!=0};function w_A(){}w_A.ERROR_MSG_ACTIVE_CLASS="errorbox-bad errormsg";w_A.ERROR_MSG_INACTIVE_CLASS="errorbox-good";
w_A.ProcessForm=function(a,b){var c={};c.success=w_c;c.values={};c.errors={};for(var d in b){var e=w_A.GetFieldValue(a[d]),f=b[d];w_A.ClearError(d);if(f){var g=f(e);if(g){w_A.SetError(d,g);c.success=w_a;c.errors[d]=g}}c.values[d]=e}return c};
w_A.GetFieldValue=function(a){if(!a)return undefined;if(a.type=="checkbox"){if(a.checked)return a.value;return undefined}if(a.type==w_b){var b=[],c=0;for(;c<a.length;c++)if(a[c].checked)b[b.length]=a[c].value;switch(b.length){case 0:return undefined;case 1:return b[0];default:return b}}return a.value};w_A.ve=function(a,b){b||(b=document);var c="errormessage_"+a;return b.getElementById(c)};w_A.ClearError=function(a){var b=w_A.ve(a);if(b){b.innerHTML="";b.className=w_A.ERROR_MSG_INACTIVE_CLASS}};
w_A.SetError=function(a,b,c){var d=w_A.ve(a,c);if(d){d.innerHTML=b;d.className=w_A.ERROR_MSG_ACTIVE_CLASS}};w_A.GetRequiredStringFilter=function(){return function(a){a=a.replace(/^\s+/,"").replace(/\s+$/,"");if(a.length==0)return LayoutsMessages.FIELD_CANNOT_BE_BLANK;return undefined}};
w_A.GetNumberFilter=function(a,b){return function(c){var d=parseInt(c,10);if(isNaN(d))return LayoutsMessages.MUST_SPECIFY_A_NUMBER;if(d<a)return LayoutsMessages.NUMBER_TOO_SMALL+" "+a;if(d>b)return LayoutsMessages.NUMBER_TOO_LARGE+" "+b;return undefined}};function w_y(){this.O=[];var a=0;for(;a<w_z.xd.length;++a){var b=w_z.xd[a];this.O[this.O.length]=b}}w_y.DEFAULT_DICTIONARY_KEY="";w_y.MAX_DICTIONARY_DEPTH=50;w_y.SEPARATOR_CHAR=".";
w_y.prototype.cb=function(a,b){this.O.length>=w_y.MAX_DICTIONARY_DEPTH&&w_r.raise("Cannot add another dictionary: "+a);a.indexOf(w_y.SEPARATOR_CHAR)>-1&&w_r.raise("Cannot add dictionary name containing '.': "+a);var c={};c.name=a;c.data=b;this.O[this.O.length]=c};w_y.prototype.Ic=function(a){var b=this.O[this.O.length-1];b.name!=a&&w_r.raise("Dictionary "+a+" is not the last one, and can't be deleted: "+b.name);this.O.splice(this.O.length-1,1)};
w_y.prototype.Fb=function(a){if(a==w_b)a=w_y.DEFAULT_DICTIONARY_KEY;var b=this.O.length-1;for(;b>=0;--b)if(this.O[b].name==a)return this.O[b].data;return w_b};w_y.prototype.Ac=function(){return this.Fb(w_y.DEFAULT_DICTIONARY_KEY)};w_y.prototype.ee=function(a){this.cb(w_y.DEFAULT_DICTIONARY_KEY,a)};
w_y.prototype.s=function(a){var b=this.Fb(a);if(b)return b;var c=a.split(w_y.SEPARATOR_CHAR);if(c.length==1){b=this.Ac();return b[a]}b=this.Fb(c[0]);var d=0;if(b)d=1;else b=this.Ac();var e=d;for(;e<c.length;e++){if(b==w_b)return w_b;b=b[c[e]]}return b};function w_Ma(){}w_Ma.prototype.d=function(){w_d(new Error("Unimplemented"))};var _WidgetManager=w_z;_WidgetManager.prototype=w_z.prototype;_WidgetManager._Init=_WidgetManager.Init;_WidgetManager._SetPageActionUrl=_WidgetManager.SetPageActionUrl;
_WidgetManager._GetPageActionUrl=_WidgetManager.GetPageActionUrl;_WidgetManager._SetWidgetRefreshUrl=_WidgetManager.SetWidgetRefreshUrl;_WidgetManager._GetWidgetRefreshUrl=_WidgetManager.GetWidgetRefreshUrl;_WidgetManager._GetCallbackUrl=_WidgetManager.GetCallbackUrl;_WidgetManager._DeleteWidgetFromPage=_WidgetManager.DeleteWidgetFromPage;_WidgetManager._DisplayWidget=_WidgetManager.DisplayWidget;_WidgetManager._GetWidget=_WidgetManager.GetWidget;_WidgetManager._HandleControllerResult=_WidgetManager.d;
_WidgetManager._HandlePageActionResult=_WidgetManager.HandlePageActionResult;_WidgetManager._IsOpenerReachable=_WidgetManager.IsOpenerReachable;_WidgetManager._SetConfigWin=_WidgetManager.SetConfigWin;var _WidgetInfo=w_v;_WidgetInfo.prototype=w_v.prototype;function w_B(a){this.Eh=w_a;this.tc=a;this.Wb=window.document}w_B.DISABLED_BUTTON_CLASS="disabled-button";w_B.HIDDEN_MESSAGE_CLASS="status-msg-hidden";w_B.prototype.xc=function(){this.Wb.getElementById(this.tc+"-inner").innerHTML="&nbsp;";w_o(this.Wb.getElementById(this.tc),w_B.HIDDEN_MESSAGE_CLASS)};w_B.prototype.N=function(a){this.Wb.getElementById(this.tc+"-inner").innerHTML=a;w_p(this.Wb.getElementById(this.tc),w_B.HIDDEN_MESSAGE_CLASS)};function w_La(a){return function(b){var c=w_Ga(b);if(c>=500){if(b.responseText.length)document.body.innerHTML=b.responseText;else alert(LayoutsMessages.SERVER_ERROR);return w_a}return a?a(b):w_c}};function w_C(a){this.a=a}w_C.WIDGET_TYPE_NAME="AdSense";w_C.prototype.e=function(){return w_C.WIDGET_TYPE_NAME};w_C.prototype.b=function(){return this.a};w_C.prototype.d=function(a,b){this.a.l(b)};var _AdSenseView=w_C;function w_D(a){this.a=a;this.g=a.u()}w_D.WIDGET_TYPE_NAME="BlogArchive";w_D.POST_LIST_CLASS="posts";w_D.INTERVAL_EXPANDED_VALUE="expanded";w_D.INTERVAL_COLLAPSED_VALUE="collapsed";w_D.LOADING_MSG="loading...";w_D.POST_COUNT_CLASS="post-count";w_D.POST_COUNT_LINK_CLASS="post-count-link";w_D.MENU_ROOT_ID="ArchiveMenu";w_D.TOGGLE_OPEN_CLASS="toggle-open";w_D.Eg="&#9660;&nbsp;";w_D.wf="&#9658;&nbsp;";w_D.prototype.e=function(){return w_D.WIDGET_TYPE_NAME};w_D.prototype.b=function(){return this.a};
w_D.prototype.i=function(){return w_a};w_D.prototype.d=function(a,b){if(a=="configure")this.a.l(b);else if(a=="getTitles")this.We(b);else{this.widgetInfo.data=b;w_z.DisplayWidget(this)}};
w_D.prototype.j=function(){var a={};a.select=function(i){return i&&w_n(i,"toggle")};var b=this.a.X("ArchiveList");if(!!b){var c=w_q(this.g.rootElement,a),d;if(c.length>0&&c[0].currentStyle)d=c[0].parentNode.currentStyle.color;var e=0;for(;e<c.length;e++){var f=c[e];f.onclick=this.Te.bind(this);if(d)f.style.color=d}var g=this.a.X(w_D.MENU_ROOT_ID);if(g){var e=1;for(;e<g.options.length;e++){var h=g.options[e].value;if(h==window.location.href||window.location.href.match(h)!=w_b){g.selectedIndex=e;break}}g.onchange=
this.xe.bind(this)}if(this.b().s().languageDirection=="rtl")w_D.wf="&#9668;&nbsp;"}};w_D.prototype.xe=function(){var a=this.a.X(w_D.MENU_ROOT_ID);if(!!a)if(!(a.value==""))window.location.href=a.value};
w_D.prototype.Te=function(a){a=a||window.event;var b=a.currentTarget||a.srcElement;if(b&&!w_n(b,"toggle"))b=b.parentNode;var c=w_z.GetFirstElementInElementWithClass(b,"zippy"),d=b.parentNode;if(w_n(d,w_D.INTERVAL_EXPANDED_VALUE)){w_p(d,w_D.INTERVAL_EXPANDED_VALUE);w_o(d,w_D.INTERVAL_COLLAPSED_VALUE);c.innerHTML=w_D.wf;w_p(c,w_D.TOGGLE_OPEN_CLASS);return w_a}else{w_p(d,w_D.INTERVAL_COLLAPSED_VALUE);w_o(d,w_D.INTERVAL_EXPANDED_VALUE);c.innerHTML=w_D.Eg;w_o(c,w_D.TOGGLE_OPEN_CLASS)}if(this.Ee(d)){var e=
this.Bc(d);if(!e){e=document.createElement("UL");d.appendChild(e);w_o(e,w_D.POST_LIST_CLASS)}e.appendChild(document.createTextNode(w_D.LOADING_MSG));this.a.ka("getTitles",{path:this.te(d)})}return w_a};w_D.prototype.Bc=function(a){return w_z.GetFirstElementInElementWithClass(a,w_D.POST_LIST_CLASS)};w_D.prototype.te=function(a){var b=w_z.GetFirstElementInElementWithClass(a,w_D.POST_COUNT_LINK_CLASS);return b.href};
w_D.prototype.ue=function(a){var b=w_z.GetFirstElementInElementWithClass(a,w_D.POST_COUNT_CLASS);return parseInt(b.innerHTML.match(/\d+/),10)};w_D.prototype.We=function(a){var b=a.path,c=this.Bc(this.se(b));c.innerHTML="";var d=0;for(;d<a.posts.length;d++){var e=a.posts[d],f=document.createElement("li");f.innerHTML="<a href="+e.url+">"+e.title+"</a>";c.appendChild(f)}};w_D.prototype.se=function(a){var b=this.g.rootElement.getElementsByTagName("A");for(var c in b){var d=b[c];if(d.href==a)return d.parentNode}};
w_D.prototype.Ee=function(a){var b=a.getElementsByTagName("UL");if(!(b.length>0&&!w_n(b[0],"posts"))){var c=this.ue(a),d=a.getElementsByTagName("LI"),e=d.length;return e<c}};var _BlogArchiveView=w_D;function w_E(a){this.a=a;this.$a=a.u();if(this.$a.data)this.dg=this.$a.data.showBacklinks}w_E.BACKLINKS_ROOT="backlinks-container";w_E.BACKLINKS_CHUNK="backlinks";w_E.BACKLINK_ITEM_ROOT_CLASS="backlink-control";w_E.BACKLINK_EXPANDED_CLASS="expanded-backlink";w_E.BACKLINK_COLLAPSED_CLASS="collapsed-backlink";w_E.BACKLINK_ZIPPY_CLASS="backlink-toggle-zippy";w_E.WIDGET_TYPE_NAME="Blog";w_E.prototype.e=function(){return w_E.WIDGET_TYPE_NAME};w_E.prototype.b=function(){return this.a};
w_E.prototype.d=function(a,b){if(a=="initial"){this.$a.data=b;w_z.DisplayWidget(this,w_c)}else if(a=="nextposts")this.ne(b);else if(a=="configure")this.a.l(b);else a=="backlinks"&&this.Ve(b)};w_E.prototype.ne=function(a){var b=a.renderedData,c=this.$a.rootElement;if(!(!b||!c)){c.innerHTML=b;window.scroll(0,0);this.j()}};
w_E.prototype.Ve=function(a){this.dg=w_a;var b=this.a.Hb(w_E.BACKLINKS_CHUNK,a),c=this.a.X(w_E.BACKLINKS_ROOT);if(c){c.innerHTML="";c.appendChild(b)}var d=w_q(this.$a.rootElement,w_E.df),e=0;for(;e<d.length;e++){var f=d[e];f.onclick=this.Ue.bind(this)}var g=this.a.X("backlinks-create-link");if(g!=w_b)g.onclick=this.ge.bind(this,g.href)};w_E.df={};w_E.df.select=function(a){return a&&w_n(a,w_E.BACKLINK_ZIPPY_CLASS)};w_E.prototype.Ue=function(a){a=a||window.event;this.oe(a.srcElement||a.target)};
w_E.prototype.oe=function(a){var b=a.parentNode;for(;b&&!w_n(b,w_E.BACKLINK_ITEM_ROOT_CLASS);)b=b.parentNode;if(!!b)if(w_n(b,w_E.BACKLINK_EXPANDED_CLASS)){w_p(b,w_E.BACKLINK_EXPANDED_CLASS);w_o(b,w_E.BACKLINK_COLLAPSED_CLASS)}else{w_o(b,w_E.BACKLINK_EXPANDED_CLASS);w_p(b,w_E.BACKLINK_COLLAPSED_CLASS)}};
w_E.prototype.j=function(){var a=this.a.X("blog-pager-newer-link");if(a&&this.Ec(a))a.onclick=this.Gc.bind(this);var b=this.a.X("blog-pager-older-link");if(b&&this.Ec(b))b.onclick=this.Gc.bind(this);this.dg&&this.a.ka("backlinks",{postID:this.$a.data.postId})};w_E.prototype.Ec=function(a){var b=a.href;return b.indexOf("/search?")>-1};w_E.prototype.Gc=function(a){a=a||window.event;var b=a.target||a.srcElement;this.a.ka("nextposts",{path:b.href});return w_a};
w_E.prototype.ge=function(a){var b="";if(document.selection)b=document.selection.createRange().text;else if(window.getSelection)b=window.getSelection();else if(document.getSelection)b=document.getSelection();window.open(a+"?t="+encodeURIComponent(b)+"&u="+encodeURIComponent(window.location.href)+"&n="+encodeURIComponent(document.title),"bloggerForm","scrollbars=no,width=475,height=300,top=175,left=75,status=yes,resizable=yes");return w_a};var _BlogView=w_E;var w_=w_||{};w_.global=this;w_.DEBUG=w_c;w_.LOCALE="en_US";w_.Yb=w_b;w_.provide=function(a){w_.xf(a)};w_.xf=function(a,b,c){var d=a.split("."),e=c||w_.global,f;!(d[0]in e)&&e.execScript&&e.execScript("var "+d[0]);for(;d.length&&(f=d.shift());)if(!d.length&&w_.isDef(b))e[f]=b;else e=e[f]?e[f]:(e[f]={})};w_.getObjectByName=function(a,b){var c=a.split("."),d=b||w_.global,e;for(;e=c.shift();)if(d[e])d=d[e];else return w_b;return d};w_.globalize=function(a,b){var c=b||w_.global;for(var d in a)c[d]=a[d]};
w_.addDependency=function(){};w_.require=function(){};w_.useStrictRequires=w_a;w_.basePath="";w_.nullFunction=function(){};w_.identityFunction=function(){return arguments[0]};w_.abstractMethod=function(){w_d(Error("unimplemented abstract method"))};w_.addSingletonGetter=function(a){a.getInstance=function(){return a.Zg||(a.Zg=new a)}};
w_.typeOf=function(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof Object)&&Object.prototype.toString.call(a)=="[object Array]")return"array";if(typeof a.call!="undefined")return"function"}else return"null";else if(b=="function"&&typeof a.call=="undefined")return"object";return b};w_.ig=function(a,b){if(b in a)for(var c in a)if(c==b&&Object.prototype.hasOwnProperty.call(a,b))return w_c;return w_a};
w_.Ih=Object.prototype.propertyIsEnumerable?function(a,b){return a instanceof Object?Object.prototype.propertyIsEnumerable.call(a,b):w_.ig(a,b)}:w_.ig;w_.isDef=function(a){return typeof a!="undefined"};w_.isNull=function(a){return a===w_b};w_.isDefAndNotNull=function(a){return w_.isDef(a)&&!w_.isNull(a)};w_.isArray=function(a){return w_.typeOf(a)=="array"};w_.isArrayLike=function(a){var b=w_.typeOf(a);return b=="array"||b=="object"&&typeof a.length=="number"};
w_.isDateLike=function(a){return w_.isObject(a)&&typeof a.getFullYear=="function"};w_.isString=function(a){return typeof a=="string"};w_.isBoolean=function(a){return typeof a=="boolean"};w_.isNumber=function(a){return typeof a=="number"};w_.isFunction=function(a){return w_.typeOf(a)=="function"};w_.isObject=function(a){var b=w_.typeOf(a);return b=="object"||b=="array"||b=="function"};
w_.getHashCode=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(w_.qa)){var b=a[w_.qa];if(b)return b}a[w_.qa]||(a[w_.qa]=++w_.Wg);return a[w_.qa]};w_.removeHashCode=function(a){"removeAttribute"in a&&a.removeAttribute(w_.qa);try{delete a[w_.qa]}catch(b){}};w_.qa="closure_hashCode_";w_.Wg=0;w_.cloneObject=function(a){var b=w_.typeOf(a);if(b=="object"||b=="array"){if(a.clone)return a.clone.call(a);var c=b=="array"?[]:{};for(var d in a)c[d]=w_.cloneObject(a[d]);return c}return a};
w_.bind=function(a,b){var c=a.Sc;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);c&&d.unshift.apply(d,c);c=d}b=a.Pb||b;a=a.Ob||a;var e,f=b||w_.global;e=c?function(){var g=Array.prototype.slice.call(arguments);g.unshift.apply(g,c);return a.apply(f,g)}:function(){return a.apply(f,arguments)};e.Sc=c;e.Pb=b;e.Ob=a;return e};w_.partial=function(a){var b=Array.prototype.slice.call(arguments,1);b.unshift(a,w_b);return w_.bind.apply(w_b,b)};
w_.mixin=function(a,b){for(var c in b)a[c]=b[c]};w_.now=Date.now||function(){return(new Date).getTime()};
w_.globalEval=function(a){if(w_.global.execScript)w_.global.execScript(a,"JavaScript");else if(w_.global.eval){if(w_.Yb==w_b){w_.global.eval("var _et_ = 1;");if(typeof w_.global._et_!="undefined"){delete w_.global._et_;w_.Yb=w_c}else w_.Yb=w_a}if(w_.Yb)w_.global.eval(a);else{var b=w_.global.document,c=b.createElement("script");c.type="text/javascript";c.defer=w_a;c.appendChild(b.createTextNode(a));b.body.appendChild(c);b.body.removeChild(c)}}else w_d(Error("goog.globalEval not available"))};
w_.declareType=function(){};w_.typedef=w_c;w_.getCssName=function(a,b){return a+(b?"-"+b:"")};w_.getMsg=function(a,b){var c=b||{};for(var d in c)a=a.replace(new RegExp("\\{\\$"+d+"\\}","gi"),c[d]);return a};w_.exportSymbol=function(a,b,c){w_.xf(a,b,c)};w_.exportProperty=function(a,b,c){a[b]=c};w_.inherits=function(a,b){function c(){}c.prototype=b.prototype;a.uc=b.prototype;a.prototype=new c;a.prototype.constructor=a};
if(w_.MODIFY_FUNCTION_PROTOTYPES=w_c){Function.prototype.bind=function(a){if(arguments.length>1){var b=Array.prototype.slice.call(arguments,1);b.unshift(this,a);return w_.bind.apply(w_b,b)}else return w_.bind(this,a)};Function.prototype.partial=function(){var a=Array.prototype.slice.call(arguments);a.unshift(this,w_b);return w_.bind.apply(w_b,a)};Function.prototype.inherits=function(a){w_.inherits(this,a)};Function.prototype.mixin=function(a){w_.mixin(this.prototype,a)}};w_.string={};w_.string.Unicode={NBSP:"\u00a0"};w_.string.Xd=function(a,b){return a.indexOf(b)==0};w_.string.tf=function(a,b){var c=a.length-b.length;return c>=0&&a.lastIndexOf(b,c)==c};w_.string.caseInsensitiveStartsWith=function(a,b){return w_.string.caseInsensitiveCompare(b,a.substr(0,b.length))==0};w_.string.caseInsensitiveEndsWith=function(a,b){return w_.string.caseInsensitiveCompare(b,a.substr(a.length-b.length,b.length))==0};
w_.string.subs=function(a){var b=1;for(;b<arguments.length;b++){var c=String(arguments[b]).replace(/\$/g,"$$$$");a=a.replace(/\%s/,c)}return a};w_.string.collapseWhitespace=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};w_.string.z=function(a){return/^[\s\xa0]*$/.test(a)};w_.string.isEmptySafe=function(a){return w_.string.z(w_.string.makeSafe(a))};w_.string.isBreakingWhitespace=function(a){return!/[^\t\n\r ]/.test(a)};w_.string.isAlpha=function(a){return!/[^a-zA-Z]/.test(a)};
w_.string.isNumeric=function(a){return!/[^0-9]/.test(a)};w_.string.isAlphaNumeric=function(a){return!/[^a-zA-Z0-9]/.test(a)};w_.string.isSpace=function(a){return a==" "};w_.string.isUnicodeChar=function(a){return a.length==1&&a>=" "&&a<="~"||a>="\u0080"&&a<="\ufffd"};w_.string.stripNewlines=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};w_.string.canonicalizeNewlines=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")};w_.string.normalizeWhitespace=function(a){return a.replace(/\xa0|\s/g," ")};
w_.string.normalizeSpaces=function(a){return a.replace(/\xa0|[ \t]+/g," ")};w_.string.trim=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};w_.string.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};w_.string.trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};w_.string.caseInsensitiveCompare=function(a,b){var c=String(a).toLowerCase(),d=String(b).toLowerCase();return c<d?-1:c==d?0:1};w_.string.eg=/(\.\d+)|(\d+)|(\D+)/g;
w_.string.numerateCompare=function(a,b){if(a==b)return 0;if(!a)return-1;if(!b)return 1;var c=a.toLowerCase().match(w_.string.eg),d=b.toLowerCase().match(w_.string.eg),e=Math.min(c.length,d.length),f=0;for(;f<e;f++){var g=c[f],h=d[f];if(g!=h){var i=parseInt(g,10);if(!isNaN(i)){var j=parseInt(h,10);if(!isNaN(j)&&i-j)return i-j}return g<h?-1:1}}if(c.length!=d.length)return c.length-d.length;return a<b?-1:1};w_.string.Tg=/^[a-zA-Z0-9\-_.!~*'()]*$/;
w_.string.urlEncode=function(a){a=String(a);if(!w_.string.Tg.test(a))return encodeURIComponent(a);return a};w_.string.urlDecode=function(a){return decodeURIComponent(a.replace(/\+/g," "))};w_.string.newLineToBr=function(a,b){return a.replace(/(\r\n|\r|\n)/g,b?"<br />":"<br>")};
w_.string.htmlEscape=function(a,b){if(b)return a.replace(w_.string.$e,"&amp;").replace(w_.string.$f,"&lt;").replace(w_.string.Jf,"&gt;").replace(w_.string.jg,"&quot;");else{if(!w_.string.Cg.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(w_.string.$e,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(w_.string.$f,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(w_.string.Jf,"&gt;");if(a.indexOf('"')!=-1)a=a.replace(w_.string.jg,"&quot;");return a}};w_.string.$e=/&/g;w_.string.$f=/</g;w_.string.Jf=/>/g;
w_.string.jg=/\"/g;w_.string.Cg=/[&<>\"]/;w_.string.unescapeEntities=function(a){if(w_.string.contains(a,"&"))return"document"in w_.global&&!w_.string.contains(a,"<")?w_.string.yh(a):w_.string.zh(a);return a};w_.string.yh=function(a){var b=w_.global.document.createElement("a");b.innerHTML=a;b[w_.string.De]&&b[w_.string.De]();a=b.firstChild.nodeValue;b.innerHTML="";return a};
w_.string.zh=function(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if(c.charAt(0)=="#"){var d=Number("0"+c.substr(1));if(!isNaN(d))return String.fromCharCode(d)}return b}})};w_.string.De="normalize";w_.string.whitespaceEscape=function(a,b){return w_.string.newLineToBr(a.replace(/  /g," &#160;"),b)};
w_.string.stripQuotes=function(a,b){var c=b.length,d=0;for(;d<c;d++){var e=c==1?b:b.charAt(d);if(a.charAt(0)==e&&a.charAt(a.length-1)==e)return a.substring(1,a.length-1)}return a};w_.string.truncate=function(a,b,c){if(c)a=w_.string.unescapeEntities(a);if(a.length>b)a=a.substring(0,b-3)+"...";if(c)a=w_.string.htmlEscape(a);return a};
w_.string.truncateMiddle=function(a,b,c){if(c)a=w_.string.unescapeEntities(a);if(a.length>b){var d=Math.floor(b/2),e=a.length-d;d+=b%2;a=a.substring(0,d)+"..."+a.substring(e)}if(c)a=w_.string.htmlEscape(a);return a};w_.string.Kd={"\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\x0B",'"':'\\"',"'":"\\'","\\":"\\\\"};
w_.string.quote=function(a){a=String(a);if(a.quote)return a.quote();else{var b=['"'],c=0;for(;c<a.length;c++)b[c+1]=w_.string.escapeChar(a.charAt(c));b.push('"');return b.join("")}};w_.string.escapeChar=function(a){if(a in w_.string.Kd)return w_.string.Kd[a];var b=a,c=a.charCodeAt(0);if(c>31&&c<127)b=a;else{if(c<256){b="\\x";if(c<16||c>256)b+="0"}else{b="\\u";if(c<4096)b+="0"}b+=c.toString(16).toUpperCase()}return w_.string.Kd[a]=b};
w_.string.toMap=function(a){var b={},c=0;for(;c<a.length;c++)b[a.charAt(c)]=w_c;return b};w_.string.contains=function(a,b){return a.indexOf(b)!=-1};w_.string.removeAt=function(a,b,c){var d=a;if(b>=0&&b<a.length&&c>0)d=a.substr(0,b)+a.substr(b+c,a.length-b-c);return d};w_.string.remove=function(a,b){var c=new RegExp(w_.string.regExpEscape(b),"");return a.replace(c,"")};w_.string.removeAll=function(a,b){var c=new RegExp(w_.string.regExpEscape(b),"g");return a.replace(c,"")};
w_.string.regExpEscape=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};w_.string.repeat=function(a,b){return(new Array(b+1)).join(a)};w_.string.padNumber=function(a,b,c){var d=w_.isDef(c)?a.toFixed(c):String(a),e=d.indexOf(".");if(e==-1)e=d.length;return w_.string.repeat("0",Math.max(0,b-e))+d};w_.string.makeSafe=function(a){return a==w_b?"":String(a)};w_.string.buildString=function(){return Array.prototype.join.call(arguments,"")};
w_.string.getRandomString=function(){return Math.floor(Math.random()*2147483648).toString(36)+(Math.floor(Math.random()*2147483648)^(new Date).getTime()).toString(36)};
w_.string.compareVersions=function(a,b){var c=0,d=w_.string.trim(String(a)).split("."),e=w_.string.trim(String(b)).split("."),f=Math.max(d.length,e.length),g=0;for(;c==0&&g<f;g++){var h=d[g]||"",i=e[g]||"",j=new RegExp("(\\d*)(\\D*)","g"),k=new RegExp("(\\d*)(\\D*)","g");do{var l=j.exec(h)||["","",""],m=k.exec(i)||["","",""];if(l[0].length==0&&m[0].length==0)break;var n=l[1].length==0?0:parseInt(l[1],10),o=m[1].length==0?0:parseInt(m[1],10);c=w_.string.Wc(n,o)||w_.string.Wc(l[2].length==0,m[2].length==
0)||w_.string.Wc(l[2],m[2])}while(c==0)}return c};w_.string.Wc=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};w_.string.wg=4294967296;w_.string.hashCode=function(a){var b=0,c=0;for(;c<a.length;++c){b=31*b+a.charCodeAt(c);b%=w_.string.wg}return b};w_.string.Ah=w_.now();w_.string.createUniqueString=function(){return"goog_"+w_.string.Ah++};w_.string.toNumber=function(a){var b=Number(a);if(b==0&&w_.string.z(a))return NaN;return b};w_.date={};w_.date.weekDay={MON:0,TUE:1,WED:2,THU:3,FRI:4,SAT:5,SUN:6};w_.date.weekDayNarrowName={0:"M",1:"T",2:"W",3:"T",4:"F",5:"S",6:"S"};w_.date.weekDayShortName={0:"Mon",1:"Tue",2:"Wed",3:"Thu",4:"Fri",5:"Sat",6:"Sun"};w_.date.weekDayLongName={0:"Monday",1:"Tuesday",2:"Wednesday",3:"Thursday",4:"Friday",5:"Saturday",6:"Sunday"};w_.date.month={JAN:0,FEB:1,MAR:2,APR:3,MAY:4,JUN:5,JUL:6,AUG:7,SEP:8,OCT:9,NOV:10,DEC:11};
w_.date.monthShortName={0:"Jan",1:"Feb",2:"Mar",3:"Apr",4:"May",5:"Jun",6:"Jul",7:"Aug",8:"Sep",9:"Oct",10:"Nov",11:"Dec"};w_.date.monthName={0:"January",1:"February",2:"March",3:"April",4:"May",5:"June",6:"July",7:"August",8:"September",9:"October",10:"November",11:"December"};w_.date.formatMonthAndYear=function(a,b){var c=a+(" "+b);return c};w_.date.rh=/^([0-9]{4})((-?([0-9]{2})(-?([0-9]{2}))?)|(-?([0-9]{3}))|(-?W([0-9]{2})(-?([1-7]))?))?$/;w_.date.th=/^([0-9]{2})(:?([0-9]{2})(:?([0-9]{2})(\.([0-9]+))?)?)?$/;
w_.date.uh=/Z|(([-+])([0-9]{2})(:?([0-9]{2}))?)$/;w_.date.isLeapYear=function(a){return a%4==0&&(a%100!=0||a%400==0)};w_.date.isLongIsoYear=function(a){var b=5*a+12-4*(Math.floor(a/100)-Math.floor(a/400));b+=Math.floor((a-100)/400)-Math.floor((a-102)/400);b+=Math.floor((a-200)/400)-Math.floor((a-199)/400);return b%28<5};w_.date.fc=function(a,b){switch(b){case w_.date.month.FEB:return w_.date.isLeapYear(a)?29:28;case w_.date.month.JUN:case w_.date.month.SEP:case w_.date.month.NOV:case w_.date.month.APR:return 30}return 31};
w_.date.vd=function(a,b,c,d,e){var f=new Date(a,b,c),g=d||w_.date.weekDay.THU,h=e||w_.date.weekDay.MON,i=86400000,j=(f.getDay()+6)%7,k=(j-h+7)%7,l=(g-h+7)%7,m=f.valueOf()+(l-k)*i,n=(new Date((new Date(m)).getFullYear(),0,1)).valueOf();return Math.floor(Math.round((m-n)/i)/7)+1};w_.date.fromIsoString=function(a){var b=w_.date.setIso8601DateTime(new w_.date.DateTime(2000),a);return b};
w_.date.setIso8601DateTime=function(a,b){b=w_.string.trim(b);var c=b.indexOf("T")==-1?" ":"T",d=b.split(c);a=w_.date.ph(a,d[0]);if(d.length==2)a=w_.date.qh(a,d[1]);return a};w_.date.ph=function(a,b){if(!a)return w_b;var c=b.match(w_.date.rh);if(!c)return w_b;var d=c[1],e=c[4],f=c[6],g=c[8],h=c[10],i=c[12]?c[12]:1;a.setFullYear(d);if(g){a.setDate(1);a.setMonth(0);var j=g-1;a.add(new w_.date.Interval(w_.date.Interval.DAYS,j))}else if(h)w_.date.oh(a,h,i);else{if(e){a.setDate(1);a.setMonth(e-1)}f&&a.setDate(f)}return a};
w_.date.oh=function(a,b,c){a.setMonth(0);a.setDate(1);var d=a.getDay(),e=d||7,f=4;if(e<=f)var g=1-e;else g=8-e;var h=Number(c)+7*(Number(b)-1),i=g+h-1,j=new w_.date.Interval(w_.date.Interval.DAYS,i);a.add(j)};
w_.date.qh=function(a,b){if(!a)return w_b;var c=b.match(w_.date.uh),d=0;if(c){if(c[0]!="Z"){d=c[3]*60+Number(c[5]);d*=c[2]=="-"?1:-1}d-=a.getTimezoneOffset();b=b.substr(0,b.length-c[0].length)}c=b.match(w_.date.th);if(!c)return w_b;var e=c[1],f=c[3]||0,g=c[5]||0,h=c[7]?("0."+c[7])*1000:0;a.setHours(e);a.setMinutes(f);a.setSeconds(g);a.setMilliseconds(h);d!=0&&a.setTime(a.getTime()+d*60000);return a};
w_.date.Interval=function(a,b,c,d,e,f){if(w_.isString(a)){var g=a,h=b;this.years=g==w_.date.Interval.YEARS?h:0;this.months=g==w_.date.Interval.MONTHS?h:0;this.days=g==w_.date.Interval.DAYS?h:0;this.hours=g==w_.date.Interval.HOURS?h:0;this.minutes=g==w_.date.Interval.MINUTES?h:0;this.seconds=g==w_.date.Interval.SECONDS?h:0}else{this.years=a||0;this.months=b||0;this.days=c||0;this.hours=d||0;this.minutes=e||0;this.seconds=f||0}};
w_.date.Interval.fromIsoString=function(a){var b=a.match(/^(-)?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)D)?(T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+(?:\.\d+)?)S)?)?$/);if(!b)return w_b;var c=!(b[6]||b[7]||b[8]),d=c&&!(b[2]||b[3]||b[4]);if(d||c&&b[5])return w_b;var e=b[1],f=parseInt(b[2],10)||0,g=parseInt(b[3],10)||0,h=parseInt(b[4],10)||0,i=parseInt(b[6],10)||0,j=parseInt(b[7],10)||0,k=parseFloat(b[8])||0;return e?new w_.date.Interval(-f,-g,-h,-i,-j,-k):new w_.date.Interval(f,g,h,i,j,k)};
w_.date.Interval.prototype.ja=function(a){var b=Math.min(this.years,this.months,this.days,this.hours,this.minutes,this.seconds),c=Math.max(this.years,this.months,this.days,this.hours,this.minutes,this.seconds);if(b<0&&c>0)return w_b;if(!a&&b==0&&c==0)return"PT0S";var d=[];b<0&&d.push("-");d.push("P");if(this.years||a)d.push(Math.abs(this.years)+"Y");if(this.months||a)d.push(Math.abs(this.months)+"M");if(this.days||a)d.push(Math.abs(this.days)+"D");if(this.hours||this.minutes||this.seconds||a){d.push("T");
if(this.hours||a)d.push(Math.abs(this.hours)+"H");if(this.minutes||a)d.push(Math.abs(this.minutes)+"M");if(this.seconds||a)d.push(Math.abs(this.seconds)+"S")}return d.join("")};w_.date.Interval.prototype.equals=function(a){return a.years==this.years&&a.months==this.months&&a.days==this.days&&a.hours==this.hours&&a.minutes==this.minutes&&a.seconds==this.seconds};w_.date.Interval.prototype.clone=function(){return new w_.date.Interval(this.years,this.months,this.days,this.hours,this.minutes,this.seconds)};
w_.date.Interval.YEARS="y";w_.date.Interval.MONTHS="m";w_.date.Interval.DAYS="d";w_.date.Interval.HOURS="h";w_.date.Interval.MINUTES="n";w_.date.Interval.SECONDS="s";w_.date.Interval.prototype.add=function(a){this.years+=a.years;this.months+=a.months;this.days+=a.days;this.hours+=a.hours;this.minutes+=a.minutes;this.seconds+=a.seconds};
w_.date.Date=function(a,b,c){if(!this.c)if(w_.isNumber(a)){this.c=new Date(a,b||0,c||1);this.pc(c||1)}else if(w_.isObject(a)){this.c=new Date(a.getFullYear(),a.getMonth(),a.getDate());this.pc(a.getDate())}else{this.c=new Date;this.c.setHours(0);this.c.setMinutes(0);this.c.setSeconds(0);this.c.setMilliseconds(0)}this.kb=w_.date.weekDay.MON;this.lb=w_.date.weekDay.THU};w_.date.Date.prototype.clone=function(){var a=new w_.date.Date(this.c);a.kb=this.kb;a.lb=this.lb;return a};
w_.date.Date.prototype.getFullYear=function(){return this.c.getFullYear()};w_.date.Date.prototype.Ta=function(){return this.getFullYear()};w_.date.Date.prototype.getMonth=function(){return this.c.getMonth()};w_.date.Date.prototype.getDate=function(){return this.c.getDate()};w_.date.Date.prototype.getTime=function(){return this.c.getTime()};w_.date.Date.prototype.getDay=function(){return this.c.getDay()};w_.date.Date.prototype.getUTCFullYear=function(){return this.c.getUTCFullYear()};
w_.date.Date.prototype.getUTCMonth=function(){return this.c.getUTCMonth()};w_.date.Date.prototype.getUTCDate=function(){return this.c.getUTCDate()};w_.date.Date.prototype.getUTCDay=function(){return this.c.getDay()};w_.date.Date.prototype.getUTCHours=function(){return this.c.getUTCHours()};w_.date.Date.prototype.getUTCMinutes=function(){return this.c.getUTCMinutes()};w_.date.Date.prototype.fc=function(){return w_.date.fc(this.getFullYear(),this.getMonth())};
w_.date.Date.prototype.vd=function(){return w_.date.vd(this.getFullYear(),this.getMonth(),this.getDate(),this.lb,this.kb)};w_.date.Date.prototype.getTimezoneOffset=function(){return this.c.getTimezoneOffset()};w_.date.Date.prototype.jc=function(){var a,b=this.getTimezoneOffset();if(b==0)a="Z";else{var c=Math.abs(b)/60,d=Math.floor(c),e=(c-d)*60;a=(b>0?"-":"+")+w_.string.padNumber(d,2)+":"+w_.string.padNumber(e,2)}return a};
w_.date.Date.prototype.set=function(a){this.c=new Date(a.getFullYear(),a.getMonth(),a.getDate())};w_.date.Date.prototype.setFullYear=function(a){this.c.setFullYear(a)};w_.date.Date.prototype.setMonth=function(a){this.c.setMonth(a)};w_.date.Date.prototype.setDate=function(a){this.c.setDate(a)};w_.date.Date.prototype.setTime=function(a){this.c.setTime(a)};w_.date.Date.prototype.setUTCFullYear=function(a){this.c.setUTCFullYear(a)};w_.date.Date.prototype.setUTCMonth=function(a){this.c.setUTCMonth(a)};
w_.date.Date.prototype.setUTCDate=function(a){this.c.setUTCDate(a)};
w_.date.Date.prototype.add=function(a){if(a.years||a.months){var b=this.getMonth()+a.months+a.years*12,c=this.Ta()+Math.floor(b/12);b%=12;if(b<0)b+=12;var d=w_.date.fc(c,b),e=Math.min(d,this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(e)}if(a.days){var f=new Date(this.Ta(),this.getMonth(),this.getDate(),12),g=new Date(f.getTime()+a.days*86400000);this.setDate(1);this.setFullYear(g.getFullYear());this.setMonth(g.getMonth());this.setDate(g.getDate());this.pc(g.getDate())}};
w_.date.Date.prototype.ja=function(a,b){var c=[this.getFullYear(),w_.string.padNumber(this.getMonth()+1,2),w_.string.padNumber(this.getDate(),2)];return c.join(a?"-":"")+(b?this.jc():"")};w_.date.Date.prototype.equals=function(a){return this.Ta()==a.Ta()&&this.getMonth()==a.getMonth()&&this.getDate()==a.getDate()};w_.date.Date.prototype.toString=function(){return this.ja()};
w_.date.Date.prototype.pc=function(a){if(this.getDate()!=a){var b=this.getDate()<a?1:-1;this.c.setUTCHours(this.c.getUTCHours()+b)}};w_.date.Date.prototype.valueOf=function(){return this.c.valueOf()};w_.date.DateTime=function(a,b,c,d,e,f,g){this.c=w_.isNumber(a)?new Date(a,b||0,c||1,d||0,e||0,f||0,g||0):new Date(a?a.getTime():w_.now());w_.date.Date.call(this)};w_.inherits(w_.date.DateTime,w_.date.Date);w_.date.DateTime.prototype.getHours=function(){return this.c.getHours()};
w_.date.DateTime.prototype.getMinutes=function(){return this.c.getMinutes()};w_.date.DateTime.prototype.getSeconds=function(){return this.c.getSeconds()};w_.date.DateTime.prototype.getMilliseconds=function(){return this.c.getMilliseconds()};w_.date.DateTime.prototype.getUTCDay=function(){return this.c.getUTCDay()};w_.date.DateTime.prototype.getUTCHours=function(){return this.c.getUTCHours()};w_.date.DateTime.prototype.getUTCMinutes=function(){return this.c.getUTCMinutes()};
w_.date.DateTime.prototype.getUTCSeconds=function(){return this.c.getUTCSeconds()};w_.date.DateTime.prototype.getUTCMilliseconds=function(){return this.c.getUTCMilliseconds()};w_.date.DateTime.prototype.setHours=function(a){this.c.setHours(a)};w_.date.DateTime.prototype.setMinutes=function(a){this.c.setMinutes(a)};w_.date.DateTime.prototype.setSeconds=function(a){this.c.setSeconds(a)};w_.date.DateTime.prototype.setMilliseconds=function(a){this.c.setMilliseconds(a)};
w_.date.DateTime.prototype.setUTCHours=function(a){this.c.setUTCHours(a)};w_.date.DateTime.prototype.setUTCMinutes=function(a){this.c.setUTCMinutes(a)};w_.date.DateTime.prototype.setUTCSeconds=function(a){this.c.setUTCSeconds(a)};w_.date.DateTime.prototype.setUTCMilliseconds=function(a){this.c.setUTCMilliseconds(a)};
w_.date.DateTime.prototype.add=function(a){w_.date.Date.prototype.add.call(this,a);a.hours&&this.setHours(this.c.getHours()+a.hours);a.minutes&&this.setMinutes(this.c.getMinutes()+a.minutes);a.seconds&&this.setSeconds(this.c.getSeconds()+a.seconds)};
w_.date.DateTime.prototype.ja=function(a,b){var c=w_.date.Date.prototype.ja.call(this,a);if(a)return c+" "+w_.string.padNumber(this.getHours(),2)+":"+w_.string.padNumber(this.getMinutes(),2)+":"+w_.string.padNumber(this.getSeconds(),2)+(b?this.jc():"");return c+"T"+w_.string.padNumber(this.getHours(),2)+w_.string.padNumber(this.getMinutes(),2)+w_.string.padNumber(this.getSeconds(),2)+(b?this.jc():"")};w_.date.DateTime.prototype.equals=function(a){return this.getTime()==a.getTime()};
w_.date.DateTime.prototype.toString=function(){return this.ja()};w_.date.DateTime.prototype.clone=function(){var a=new w_.date.DateTime(this.c);a.kb=this.kb;a.lb=this.lb;return a};w_.array={};w_.array.peek=function(a){return a[a.length-1]};w_.array.indexOf=function(a,b,c){if(a.indexOf)return a.indexOf(b,c);if(Array.indexOf)return Array.indexOf(a,b,c);var d=c==w_b?0:c<0?Math.max(0,a.length+c):c,e=d;for(;e<a.length;e++)if(e in a&&a[e]===b)return e;return-1};
w_.array.lastIndexOf=function(a,b,c){var d=c==w_b?a.length-1:c;if(a.lastIndexOf)return a.lastIndexOf(b,d);if(Array.lastIndexOf)return Array.lastIndexOf(a,b,d);if(d<0)d=Math.max(0,a.length+d);var e=d;for(;e>=0;e--)if(e in a&&a[e]===b)return e;return-1};w_.array.forEach=function(a,b,c){if(a.forEach)a.forEach(b,c);else if(Array.forEach)Array.forEach(a,b,c);else{var d=a.length,e=w_.isString(a)?a.split(""):a,f=0;for(;f<d;f++)f in e&&b.call(c,e[f],f,a)}};
w_.array.forEachRight=function(a,b,c){var d=a.length,e=w_.isString(a)?a.split(""):a,f=d-1;for(;f>=0;--f)f in e&&b.call(c,e[f],f,a)};w_.array.filter=function(a,b,c){if(a.filter)return a.filter(b,c);if(Array.filter)return Array.filter(a,b,c);var d=a.length,e=[],f=0,g=w_.isString(a)?a.split(""):a,h=0;for(;h<d;h++)if(h in g){var i=g[h];if(b.call(c,i,h,a))e[f++]=i}return e};
w_.array.map=function(a,b,c){if(a.map)return a.map(b,c);if(Array.map)return Array.map(a,b,c);var d=a.length,e=[],f=0,g=w_.isString(a)?a.split(""):a,h=0;for(;h<d;h++)if(h in g)e[f++]=b.call(c,g[h],h,a);return e};w_.array.reduce=function(a,b,c,d){if(a.reduce)return d?a.reduce(w_.bind(b,d),c):a.reduce(b,c);var e=c;w_.array.forEach(a,function(f,g){e=b.call(d,e,f,g,a)});return e};
w_.array.reduceRight=function(a,b,c,d){if(a.reduceRight)return d?a.reduceRight(w_.bind(b,d),c):a.reduceRight(b,c);var e=c;w_.array.forEachRight(a,function(f,g){e=b.call(d,e,f,g,a)});return e};w_.array.some=function(a,b,c){if(a.some)return a.some(b,c);if(Array.some)return Array.some(a,b,c);var d=a.length,e=w_.isString(a)?a.split(""):a,f=0;for(;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return w_c;return w_a};
w_.array.every=function(a,b,c){if(a.every)return a.every(b,c);if(Array.every)return Array.every(a,b,c);var d=a.length,e=w_.isString(a)?a.split(""):a,f=0;for(;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return w_a;return w_c};w_.array.find=function(a,b,c){var d=w_.array.findIndex(a,b,c);return d<0?w_b:w_.isString(a)?a.charAt(d):a[d]};w_.array.findIndex=function(a,b,c){var d=a.length,e=w_.isString(a)?a.split(""):a,f=0;for(;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
w_.array.findRight=function(a,b,c){var d=w_.array.findIndexRight(a,b,c);return d<0?w_b:w_.isString(a)?a.charAt(d):a[d]};w_.array.findIndexRight=function(a,b,c){var d=a.length,e=w_.isString(a)?a.split(""):a,f=d-1;for(;f>=0;f--)if(f in e&&b.call(c,e[f],f,a))return f;return-1};w_.array.contains=function(a,b){if(a.contains)return a.contains(b);return w_.array.indexOf(a,b)>-1};w_.array.z=function(a){return a.length==0};
w_.array.clear=function(a){if(!w_.isArray(a)){var b=a.length-1;for(;b>=0;b--)delete a[b]}a.length=0};w_.array.insert=function(a,b){w_.array.contains(a,b)||a.push(b)};w_.array.insertAt=function(a,b,c){w_.array.splice(a,c,0,b)};w_.array.insertArrayAt=function(a,b,c){w_.partial(w_.array.splice,a,c,0).apply(w_b,b)};w_.array.insertBefore=function(a,b,c){var d;arguments.length==2||(d=w_.array.indexOf(a,c))==-1?a.push(b):w_.array.insertAt(a,b,d)};
w_.array.remove=function(a,b){var c=w_.array.indexOf(a,b),d;if(d=c!=-1)w_.array.removeAt(a,c);return d};w_.array.removeAt=function(a,b){return Array.prototype.splice.call(a,b,1).length==1};w_.array.removeIf=function(a,b,c){var d=w_.array.findIndex(a,b,c);if(d>=0){w_.array.removeAt(a,d);return w_c}return w_a};w_.array.clone=function(a){if(w_.isArray(a))return a.concat();else{var b=[],c=0,d=a.length;for(;c<d;c++)b[c]=a[c];return b}};w_.array.toArray=function(a){if(w_.isArray(a))return a.concat();return w_.array.clone(a)};
w_.array.extend=function(a){var b=1;for(;b<arguments.length;b++){var c=arguments[b];if(w_.isArrayLike(c)){c=w_.array.toArray(c);a.push.apply(a,c)}else a.push(c)}};w_.array.splice=function(a){return Array.prototype.splice.apply(a,w_.array.slice(arguments,1))};w_.array.slice=function(a,b,c){return arguments.length<=2?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
w_.array.removeDuplicates=function(a,b){var c=b||a,d={},e=0,f=0;for(;f<a.length;){var g=a[f++],h=w_.isObject(g)?w_.getHashCode(g):g;if(!(h in d)){d[h]=w_c;c[e++]=g}}c.length=e};w_.array.binarySearch=function(a,b,c){var d=0,e=a.length-1,f=c||w_.array.defaultCompare;for(;d<=e;){var g=d+e>>1,h=f(b,a[g]);if(h>0)d=g+1;else if(h<0)e=g-1;else return g}return-(d+1)};w_.array.sort=function(a,b){Array.prototype.sort.call(a,b||w_.array.defaultCompare)};
w_.array.stableSort=function(a,b){var c=0;for(;c<a.length;c++)a[c]={index:c,value:a[c]};var d=b||w_.array.defaultCompare;function e(f,g){return d(f.value,g.value)||f.index-g.index}w_.array.sort(a,e);var c=0;for(;c<a.length;c++)a[c]=a[c].value};w_.array.sortObjectsByKey=function(a,b,c){var d=c||w_.array.defaultCompare;w_.array.sort(a,function(e,f){return d(e[b],f[b])})};
w_.array.compare=function(a,b,c){if(!w_.isArrayLike(a)||!w_.isArrayLike(b)||a.length!=b.length)return w_a;var d=a.length,e=c||w_.array.defaultCompareEquality,f=0;for(;f<d;f++)if(!e.call(w_b,a[f],b[f]))return w_a;return w_c};w_.array.defaultCompare=function(a,b){return a>b?1:a<b?-1:0};w_.array.defaultCompareEquality=function(a,b){return a===b};w_.array.binaryInsert=function(a,b,c){var d=w_.array.binarySearch(a,b,c);if(d<0){w_.array.insertAt(a,b,-(d+1));return w_c}return w_a};
w_.array.binaryRemove=function(a,b,c){var d=w_.array.binarySearch(a,b,c);return d>=0?w_.array.removeAt(a,d):w_a};w_.array.bucket=function(a,b){var c={},d=0;for(;d<a.length;d++){var e=a[d],f=b(e,d,a);if(w_.isDef(f)){var g=c[f]||(c[f]=[]);g.push(e)}}return c};w_.array.repeat=function(a,b){var c=[],d=0;for(;d<b;d++)c[d]=a;return c};w_.array.flatten=function(){var a=[],b=0;for(;b<arguments.length;b++){var c=arguments[b];w_.isArray(c)?a.push.apply(a,w_.array.flatten.apply(w_b,c)):a.push(c)}return a};w_.math={};w_.math.Coordinate=function(a,b){this.x=w_.isDef(a)?a:0;this.y=w_.isDef(b)?b:0};w_.math.Coordinate.prototype.clone=function(){return new w_.math.Coordinate(this.x,this.y)};if(w_.DEBUG)w_.math.Coordinate.prototype.toString=function(){return"("+this.x+", "+this.y+")"};w_.math.Coordinate.equals=function(a,b){if(a==b)return w_c;if(!a||!b)return w_a;return a.x==b.x&&a.y==b.y};w_.math.Coordinate.distance=function(a,b){var c=a.x-b.x,d=a.y-b.y;return Math.sqrt(c*c+d*d)};
w_.math.Coordinate.squaredDistance=function(a,b){var c=a.x-b.x,d=a.y-b.y;return c*c+d*d};w_.math.Coordinate.difference=function(a,b){return new w_.math.Coordinate(a.x-b.x,a.y-b.y)};w_.math.Coordinate.sum=function(a,b){return new w_.math.Coordinate(a.x+b.x,a.y+b.y)};w_.math.Size=function(a,b){this.width=a;this.height=b};w_.math.Size.equals=function(a,b){if(a==b)return w_c;if(!a||!b)return w_a;return a.width==b.width&&a.height==b.height};w_.math.Size.prototype.clone=function(){return new w_.math.Size(this.width,this.height)};if(w_.DEBUG)w_.math.Size.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};w_.math.Size.prototype.area=function(){return this.width*this.height};w_.math.Size.prototype.z=function(){return!this.area()};
w_.math.Size.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};w_.math.Size.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};w_.math.Size.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};w_.math.Size.prototype.scale=function(a){this.width*=a;this.height*=a;return this};w_.object={};w_.object.forEach=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};w_.object.filter=function(a,b,c){var d={};for(var e in a)if(b.call(c,a[e],e,a))d[e]=a[e];return d};w_.object.map=function(a,b,c){var d={};for(var e in a)d[e]=b.call(c,a[e],e,a);return d};w_.object.some=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return w_c;return w_a};w_.object.every=function(a,b,c){for(var d in a)if(!b.call(c,a[d],d,a))return w_a;return w_c};
w_.object.R=function(a){var b=0;for(var c in a)b++;return b};w_.object.getAnyKey=function(a){for(var b in a)return b};w_.object.getAnyValue=function(a){for(var b in a)return a[b]};w_.object.contains=function(a,b){return w_.object.da(a,b)};w_.object.n=function(a){var b=[],c=0;for(var d in a)b[c++]=a[d];return b};w_.object.k=function(a){var b=[],c=0;for(var d in a)b[c++]=d;return b};w_.object.w=function(a,b){return b in a};w_.object.da=function(a,b){for(var c in a)if(a[c]==b)return w_c;return w_a};
w_.object.findKey=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d;return undefined};w_.object.findValue=function(a,b,c){var d=w_.object.findKey(a,b,c);return d&&a[d]};w_.object.z=function(a){for(var b in a)return w_a;return w_c};w_.object.clear=function(a){var b=w_.object.k(a),c=b.length-1;for(;c>=0;c--)w_.object.remove(a,b[c])};w_.object.remove=function(a,b){var c;if(c=b in a)delete a[b];return c};
w_.object.add=function(a,b,c){if(b in a)w_d(Error('The object already contains the key "'+b+'"'));w_.object.set(a,b,c)};w_.object.get=function(a,b,c){if(b in a)return a[b];return c};w_.object.set=function(a,b,c){a[b]=c};w_.object.setIfUndefined=function(a,b,c){return b in a?a[b]:(a[b]=c)};w_.object.clone=function(a){var b={};for(var c in a)b[c]=a[c];return b};w_.object.transpose=function(a){var b={},c=w_.object.k(a),d=0,e=c.length;for(;d<e;d++){var f=c[d];b[a[f]]=f}return b};
w_.object.Fe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];w_.object.extend=function(a){var b,c,d=1;for(;d<arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];var e=0;for(;e<w_.object.Fe.length;e++){b=w_.object.Fe[e];if(Object.prototype.hasOwnProperty.call(c,b))a[b]=c[b]}}};
w_.object.create=function(){var a=arguments.length;if(a==1&&w_.isArray(arguments[0]))return w_.object.create.apply(w_b,arguments[0]);if(a%2)w_d(Error("Uneven number of arguments"));var b={},c=0;for(;c<a;c+=2)b[arguments[c]]=arguments[c+1];return b};w_.object.createSet=function(){var a=arguments.length;if(a==1&&w_.isArray(arguments[0]))return w_.object.createSet.apply(w_b,arguments[0]);var b={},c=0;for(;c<a;c++)b[arguments[c]]=w_c;return b};w_.userAgent={};w_.userAgent.ASSUME_IE=w_a;w_.userAgent.ASSUME_GECKO=w_a;w_.userAgent.ASSUME_CAMINO=w_a;w_.userAgent.ASSUME_WEBKIT=w_a;w_.userAgent.ASSUME_MOBILE_WEBKIT=w_a;w_.userAgent.ASSUME_OPERA=w_a;w_.userAgent.pa=w_.userAgent.ASSUME_IE||w_.userAgent.ASSUME_GECKO||w_.userAgent.ASSUME_CAMINO||w_.userAgent.ASSUME_MOBILE_WEBKIT||w_.userAgent.ASSUME_WEBKIT||w_.userAgent.ASSUME_OPERA;w_.userAgent.getUserAgentString=function(){return w_.global.navigator?w_.global.navigator.userAgent:w_b};
w_.userAgent.getNavigator=function(){return w_.global.navigator};
w_.userAgent.Yg=function(){w_.userAgent.jb=w_a;w_.userAgent.pf=w_a;w_.userAgent.Ub=w_a;w_.userAgent.qf=w_a;w_.userAgent.$c=w_a;w_.userAgent.of=w_a;var a;if(!w_.userAgent.pa&&(a=w_.userAgent.getUserAgentString())){var b=w_.userAgent.getNavigator();w_.userAgent.jb=a.indexOf("Opera")==0;w_.userAgent.pf=!w_.userAgent.jb&&a.indexOf("MSIE")!=-1;w_.userAgent.Ub=!w_.userAgent.jb&&a.indexOf("WebKit")!=-1;w_.userAgent.qf=w_.userAgent.Ub&&a.indexOf("Mobile")!=-1;w_.userAgent.$c=!w_.userAgent.jb&&!w_.userAgent.Ub&&
b.product=="Gecko";w_.userAgent.of=w_.userAgent.$c&&b.vendor=="Camino"}};w_.userAgent.pa||w_.userAgent.Yg();w_.userAgent.OPERA=w_.userAgent.pa?w_.userAgent.ASSUME_OPERA:w_.userAgent.jb;w_.userAgent.IE=w_.userAgent.pa?w_.userAgent.ASSUME_IE:w_.userAgent.pf;w_.userAgent.GECKO=w_.userAgent.pa?w_.userAgent.ASSUME_GECKO||w_.userAgent.ASSUME_CAMINO:w_.userAgent.$c;w_.userAgent.CAMINO=w_.userAgent.pa?w_.userAgent.ASSUME_CAMINO:w_.userAgent.of;
w_.userAgent.WEBKIT=w_.userAgent.pa?w_.userAgent.ASSUME_WEBKIT||w_.userAgent.ASSUME_MOBILE_WEBKIT:w_.userAgent.Ub;w_.userAgent.MOBILE=w_.userAgent.ASSUME_MOBILE_WEBKIT||w_.userAgent.qf;w_.userAgent.SAFARI=w_.userAgent.WEBKIT;w_.userAgent.Ng=function(){var a=w_.userAgent.getNavigator();return a&&a.platform||""};w_.userAgent.PLATFORM=w_.userAgent.Ng();w_.userAgent.ASSUME_MAC=w_a;w_.userAgent.ASSUME_WINDOWS=w_a;w_.userAgent.ASSUME_LINUX=w_a;
w_.userAgent.Jb=w_.userAgent.ASSUME_MAC||w_.userAgent.ASSUME_WINDOWS||w_.userAgent.ASSUME_LINUX;w_.userAgent.Xg=function(){w_.userAgent.Lg=w_.string.contains(w_.userAgent.PLATFORM,"Mac");w_.userAgent.Mg=w_.string.contains(w_.userAgent.PLATFORM,"Win");w_.userAgent.Kg=w_.string.contains(w_.userAgent.PLATFORM,"Linux")};w_.userAgent.Jb||w_.userAgent.Xg();w_.userAgent.MAC=w_.userAgent.Jb?w_.userAgent.ASSUME_MAC:w_.userAgent.Lg;w_.userAgent.WINDOWS=w_.userAgent.Jb?w_.userAgent.ASSUME_WINDOWS:w_.userAgent.Mg;
w_.userAgent.LINUX=w_.userAgent.Jb?w_.userAgent.ASSUME_LINUX:w_.userAgent.Kg;w_.userAgent.Og=function(){var a="",b;if(w_.userAgent.OPERA&&w_.global.opera){var c=w_.global.opera.version;a=typeof c=="function"?c():c}else{if(w_.userAgent.GECKO)b=/rv\:([^\);]+)(\)|;)/;else if(w_.userAgent.IE)b=/MSIE\s+([^\);]+)(\)|;)/;else if(w_.userAgent.WEBKIT)b=/WebKit\/(\S+)/;if(b){var d=b.exec(w_.userAgent.getUserAgentString());a=d?d[1]:""}}return a};w_.userAgent.VERSION=w_.userAgent.Og();
w_.userAgent.compare=function(a,b){return w_.string.compareVersions(a,b)};w_.userAgent.isVersion=function(a){return w_.string.compareVersions(w_.userAgent.VERSION,a)>=0};w_.dom={};w_.dom.classes={};w_.dom.classes.set=function(a,b){a.className=b};w_.dom.classes.get=function(a){var b=a.className;return b&&typeof b.split=="function"?b.split(" "):[]};w_.dom.classes.add=function(a){var b=w_.dom.classes.get(a),c=1,d=1;for(;d<arguments.length;d++)if(w_.array.contains(b,arguments[d]))c&=0;else{b.push(arguments[d]);c&=1}a.className=b.join(" ");return Boolean(c)};
w_.dom.classes.remove=function(a){var b=w_.dom.classes.get(a),c=w_.array.slice(arguments,1),d=0,e=0;for(;e<b.length;e++)if(w_.array.contains(c,b[e])){w_.array.splice(b,e--,1);d++}a.className=b.join(" ");return d==c.length};w_.dom.classes.swap=function(a,b,c){var d=w_.dom.classes.get(a),e=w_a,f=0;for(;f<d.length;f++)if(d[f]==b){w_.array.splice(d,f--,1);e=w_c}if(e){d.push(c);a.className=d.join(" ")}return e};w_.dom.classes.has=function(a,b){return w_.array.contains(w_.dom.classes.get(a),b)};
w_.dom.classes.enable=function(a,b,c){c?w_.dom.classes.add(a,b):w_.dom.classes.remove(a,b)};w_.dom.classes.toggle=function(a,b){var c=!w_.dom.classes.has(a,b);w_.dom.classes.enable(a,b,c);return c};w_.dom.TagName={A:"A",ABBR:"ABBR",ACRONYM:"ACRONYM",ADDRESS:"ADDRESS",APPLET:"APPLET",AREA:"AREA",B:"B",BASE:"BASE",BASEFONT:"BASEFONT",BDO:"BDO",BIG:"BIG",BLOCKQUOTE:"BLOCKQUOTE",BODY:"BODY",BR:"BR",BUTTON:"BUTTON",CAPTION:"CAPTION",CENTER:"CENTER",CITE:"CITE",CODE:"CODE",COL:"COL",COLGROUP:"COLGROUP",DD:"DD",DEL:"DEL",DFN:"DFN",DIR:"DIR",DIV:"DIV",DL:"DL",DT:"DT",EM:"EM",FIELDSET:"FIELDSET",FONT:"FONT",FORM:"FORM",FRAME:"FRAME",FRAMESET:"FRAMESET",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6",
HEAD:"HEAD",HR:"HR",HTML:"HTML",I:"I",IFRAME:"IFRAME",IMG:"IMG",INPUT:"INPUT",INS:"INS",ISINDEX:"ISINDEX",KBD:"KBD",LABEL:"LABEL",LEGEND:"LEGEND",LI:"LI",LINK:"LINK",MAP:"MAP",MENU:"MENU",META:"META",NOFRAMES:"NOFRAMES",NOSCRIPT:"NOSCRIPT",OBJECT:"OBJECT",OL:"OL",OPTGROUP:"OPTGROUP",OPTION:"OPTION",P:"P",PARAM:"PARAM",PRE:"PRE",Q:"Q",S:"S",SAMP:"SAMP",SCRIPT:"SCRIPT",SELECT:"SELECT",SMALL:"SMALL",SPAN:"SPAN",STRIKE:"STRIKE",STRONG:"STRONG",STYLE:"STYLE",SUB:"SUB",SUP:"SUP",TABLE:"TABLE",TBODY:"TBODY",
TD:"TD",TEXTAREA:"TEXTAREA",TFOOT:"TFOOT",TH:"TH",THEAD:"THEAD",TITLE:"TITLE",TR:"TR",TT:"TT",U:"U",UL:"UL",VAR:"VAR"};w_.dom.ASSUME_QUIRKS_MODE=w_a;w_.dom.ASSUME_STANDARDS_MODE=w_a;w_.dom.he=w_.dom.ASSUME_QUIRKS_MODE||w_.dom.ASSUME_STANDARDS_MODE;w_.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};w_.dom.Ra=function(){return w_.dom.Jg||(w_.dom.Jg=new w_.dom.DomHelper)};w_.dom.Sa=function(a){return a?new w_.dom.DomHelper(w_.dom.T(a)):w_.dom.Ra()};w_.dom.Bf=function(){return document};
w_.dom.nb=function(a){return w_.isString(a)?document.getElementById(a):a};w_.dom.be=w_.dom.nb;w_.dom.wa=function(a,b,c){return w_.dom.Ra().wa(a,b,c)};w_.dom.ce=w_.dom.wa;w_.dom.yb=function(a,b){w_.object.forEach(b,function(c,d){if(d=="style")a.style.cssText=c;else if(d=="class")a.className=c;else if(d=="for")a.htmlFor=c;else if(d in w_.dom.je)a.setAttribute(w_.dom.je[d],c);else a[d]=c})};
w_.dom.je={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"};
w_.dom.ud=function(a){var b=a||w_.global||window,c=b.document;if(w_.userAgent.WEBKIT&&!w_.userAgent.isVersion("500")&&!w_.userAgent.MOBILE){if(typeof b.innerHeight=="undefined")b=window;var d=b.innerHeight,e=b.document.documentElement.scrollHeight;if(b==b.top)if(e<d)d-=15;return new w_.math.Size(b.innerWidth,d)}var f=w_.dom.Sa(c),g=f.la()&&(!w_.userAgent.OPERA||w_.userAgent.OPERA&&w_.userAgent.isVersion("9.50"))?c.documentElement:c.body;return new w_.math.Size(g.clientWidth,g.clientHeight)};
w_.dom.getPageScroll=function(a){var b=a||w_.global||window;return w_.dom.Sa(b.document).ac()};w_.dom.ac=function(){return w_.dom.Ra().ac()};w_.dom.qb=function(a){return w_.dom.Sa(a).qb()};w_.dom.r=function(){var a=w_.dom.Ra();return a.r.apply(a,arguments)};w_.dom.de=w_.dom.r;w_.dom.createElement=function(a){return document.createElement(a)};w_.dom.createTextNode=function(a){return document.createTextNode(a)};w_.dom.Cd=function(a){return w_.dom.Ra().Cd(a)};
w_.dom.Af=function(){return w_.dom.la()?"CSS1Compat":"BackCompat"};w_.dom.la=function(){return w_.dom.he?w_.dom.ASSUME_STANDARDS_MODE:w_.dom.Ra().la()};w_.dom.canHaveChildren=function(a){if(a.nodeType!=w_.dom.NodeType.ELEMENT)return w_a;if("canHaveChildren"in a)return a.canHaveChildren;switch(a.tagName){case w_.dom.TagName.APPLET:case w_.dom.TagName.AREA:case w_.dom.TagName.BR:case w_.dom.TagName.COL:case w_.dom.TagName.FRAME:case w_.dom.TagName.HR:case w_.dom.TagName.IMG:case w_.dom.TagName.INPUT:case w_.dom.TagName.IFRAME:case w_.dom.TagName.ISINDEX:case w_.dom.TagName.LINK:case w_.dom.TagName.NOFRAMES:case w_.dom.TagName.NOSCRIPT:case w_.dom.TagName.META:case w_.dom.TagName.OBJECT:case w_.dom.TagName.PARAM:case w_.dom.TagName.SCRIPT:case w_.dom.TagName.STYLE:return w_a}return w_c};
w_.dom.appendChild=function(a,b){a.appendChild(b)};w_.dom.ub=function(a){var b;for(;b=a.firstChild;)a.removeChild(b)};w_.dom.Hd=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b)};w_.dom.Gd=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)};w_.dom.removeNode=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):w_b};w_.dom.replaceNode=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};
w_.dom.gd=function(a){var b,c=a.parentNode;if(c&&c.nodeType!=w_.dom.NodeType.DOCUMENT_FRAGMENT)if(a.removeNode)return a.removeNode(w_a);else{for(;b=a.firstChild;)c.insertBefore(b,a);return w_.dom.removeNode(a)}};w_.dom.jd=function(a){return w_.dom.ec(a.firstChild,w_c)};w_.dom.ld=function(a){return w_.dom.ec(a.lastChild,w_a)};w_.dom.od=function(a){return w_.dom.ec(a.nextSibling,w_c)};w_.dom.sd=function(a){return w_.dom.ec(a.previousSibling,w_a)};
w_.dom.ec=function(a,b){for(;a&&a.nodeType!=w_.dom.NodeType.ELEMENT;)a=b?a.nextSibling:a.previousSibling;return a};w_.dom.oc=function(a){return w_.isObject(a)&&a.nodeType>0};w_.dom.sg=w_.userAgent.WEBKIT&&w_.userAgent.compare(w_.userAgent.VERSION,"521")<=0;
w_.dom.contains=function(a,b){if(typeof a.contains!="undefined"&&!w_.dom.sg&&b.nodeType==w_.dom.NodeType.ELEMENT)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
w_.dom.compareNodeOrder=function(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=a.nodeType==w_.dom.NodeType.ELEMENT,d=b.nodeType==w_.dom.NodeType.ELEMENT;if(c&&d)return a.sourceIndex-b.sourceIndex;else{var e=a.parentNode,f=b.parentNode;if(e==f)return w_.dom.mf(a,b);if(!c&&w_.dom.contains(e,b))return-1*w_.dom.lf(a,b);if(!d&&w_.dom.contains(f,a))return w_.dom.lf(b,a);return(c?a.sourceIndex:
e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}}var g=w_.dom.T(a),h,i;h=g.createRange();h.selectNode(a);h.collapse(w_c);i=g.createRange();i.selectNode(b);i.collapse(w_c);return h.compareBoundaryPoints(w_.global.Range.START_TO_END,i)};w_.dom.lf=function(a,b){var c=a.parentNode;if(c==b)return-1;var d=b;for(;d.parentNode!=c;)d=d.parentNode;return w_.dom.mf(d,a)};w_.dom.mf=function(a,b){var c=b;for(;c=c.previousSibling;)if(c==a)return-1;return 1};
w_.dom.findCommonAncestor=function(){var a,b=arguments.length;if(b){if(b==1)return arguments[0]}else return w_b;var c=[],d=Infinity;a=0;for(;a<b;a++){var e=[],f=arguments[a];for(;f;){e.unshift(f);f=f.parentNode}c.push(e);d=Math.min(d,e.length)}var g=w_b;a=0;for(;a<d;a++){var h=c[0][a],i=1;for(;i<b;i++)if(h!=c[i][a])return g;g=h}return g};w_.dom.T=function(a){return a.nodeType==w_.dom.NodeType.DOCUMENT?a:a.ownerDocument||a.document};
w_.dom.cc=function(a){var b;return b=w_.userAgent.WEBKIT?a.document||a.contentWindow.document:a.contentDocument||a.contentWindow.document};w_.dom.kd=function(a){return a.contentWindow||w_.dom.qb(w_.dom.cc(a))};w_.dom.Vd=function(a,b){if("textContent"in a)a.textContent=b;else if(a.firstChild&&a.firstChild.nodeType==w_.dom.NodeType.TEXT){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else{w_.dom.ub(a);var c=w_.dom.T(a);a.appendChild(c.createTextNode(b))}};
w_.dom.getOuterHtml=function(a){if("outerHTML"in a)return a.outerHTML;else{var b=w_.dom.T(a),c=b.createElement("div");c.appendChild(a.cloneNode(w_c));return c.innerHTML}};w_.dom.dd=function(a,b){var c=[];w_.dom.fd(a,b,c,w_c);return c.length?c[0]:undefined};w_.dom.ed=function(a,b){var c=[];w_.dom.fd(a,b,c,w_a);return c};w_.dom.fd=function(a,b,c,d){if(a!=w_b){var e=0,f;for(;f=a.childNodes[e];e++){if(b(f)){c.push(f);if(d)return}w_.dom.fd(f,b,c,d)}}};w_.dom.Se={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};
w_.dom.Kb={IMG:" ",BR:"\n"};w_.dom.isFocusableTabIndex=function(a){var b=a.getAttributeNode("tabindex");if(b&&b.specified){var c=a.tabIndex;return w_.isNumber(c)&&c>=0}return w_a};w_.dom.setFocusableTabIndex=function(a,b){if(b)a.tabIndex=0;else a.removeAttribute("tabIndex")};
w_.dom.pb=function(a){var b;if(w_.userAgent.IE&&"innerText"in a)b=w_.string.canonicalizeNewlines(a.innerText);else{var c=[];w_.dom.td(a,c,w_c);b=c.join("")}b=b.replace(/\xAD/g,"");b=b.replace(/ +/g," ");if(b!=" ")b=b.replace(/^\s*/,"");return b};w_.dom.getRawTextContent=function(a){var b=[];w_.dom.td(a,b,w_a);return b.join("")};
w_.dom.td=function(a,b,c){if(!(a.nodeName in w_.dom.Se))if(a.nodeType==w_.dom.NodeType.TEXT)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in w_.dom.Kb)b.push(w_.dom.Kb[a.nodeName]);else{var d=a.firstChild;for(;d;){w_.dom.td(d,b,c);d=d.nextSibling}}};w_.dom.pd=function(a){return w_.dom.pb(a).length};
w_.dom.qd=function(a,b){var c=b||w_.dom.T(a).body,d=[];for(;a&&a!=c;){var e=a;for(;e=e.previousSibling;)d.unshift(w_.dom.pb(e));a=a.parentNode}return w_.string.trimLeft(d.join("")).replace(/ +/g," ").length};
w_.dom.getNodeAtOffset=function(a,b,c){var d=[a],e=0,f;for(;d.length>0&&e<b;){f=d.pop();if(!(f.nodeName in w_.dom.Se))if(f.nodeType==w_.dom.NodeType.TEXT){var g=f.nodeValue.replace(/(\r\n|\r|\n)/g,"").replace(/ +/g," ");e+=g.length}else if(f.nodeName in w_.dom.Kb)e+=w_.dom.Kb[f.nodeName].length;else{var h=f.childNodes.length-1;for(;h>=0;h--)d.push(f.childNodes[h])}}if(w_.isObject(c)){c.remainder=f?f.nodeValue.length+b-e-1:0;c.node=f}return f};
w_.dom.isNodeList=function(a){if(a&&typeof a.length=="number")if(w_.isObject(a))return typeof a.item=="function"||typeof a.item=="string";else if(w_.isFunction(a))return typeof a.item=="function";return w_a};w_.dom.hd=function(a,b,c){return w_.dom.$b(a,function(d){return(!b||d.nodeName==b)&&(!c||w_.dom.classes.has(d,c))},w_c)};w_.dom.$b=function(a,b,c,d){if(!c)a=a.parentNode;var e=d==w_b,f=0;for(;a&&(e||f<=d);){if(b(a))return a;a=a.parentNode;f++}return w_b};
w_.dom.DomHelper=function(a){this.Z=a||w_.global.document||document};w_.dom.DomHelper.prototype.Sa=w_.dom.Sa;w_.dom.DomHelper.prototype.Bf=function(){return this.Z};w_.dom.DomHelper.prototype.nb=function(a){return w_.isString(a)?this.Z.getElementById(a):a};w_.dom.DomHelper.prototype.be=w_.dom.DomHelper.prototype.nb;
w_.dom.DomHelper.prototype.wa=function(a,b,c){var d=c||this.Z,e=a&&a!="*"?a.toLowerCase():"";if(d.querySelectorAll&&(e||b)&&(!w_.userAgent.WEBKIT||this.la()||w_.userAgent.isVersion("528"))){var f=e+(b?"."+b:""),g=d.querySelectorAll(f);return w_.userAgent.IE&&w_.userAgent.isVersion("8")?w_.array.toArray(g):g}if(b&&d.getElementsByClassName){var h=d.getElementsByClassName(b);if(e){var i=[],j=0,k;for(;k=h[j];j++)e==k.nodeName.toLowerCase()&&i.push(k);return i}else return h}var h=d.getElementsByTagName(e||
"*");if(b){var i=[],j=0,k;for(;k=h[j];j++){var l=k.className;typeof l.split=="function"&&w_.array.contains(l.split(" "),b)&&i.push(k)}return i}else return h};w_.dom.DomHelper.prototype.ce=w_.dom.DomHelper.prototype.wa;w_.dom.DomHelper.prototype.yb=w_.dom.yb;w_.dom.DomHelper.prototype.ud=function(a){return w_.dom.ud(a||this.qb())};
w_.dom.DomHelper.prototype.r=function(a,b){if(w_.userAgent.IE&&b&&(b.name||b.type)){var c=["<",a];b.name&&c.push(' name="',w_.string.htmlEscape(b.name),'"');if(b.type){c.push(' type="',w_.string.htmlEscape(b.type),'"');b=w_.cloneObject(b);delete b.type}c.push(">");a=c.join("")}var d=this.createElement(a);b&&w_.dom.yb(d,b);if(arguments.length>2){function e(h){if(h)this.appendChild(d,w_.isString(h)?this.createTextNode(h):h)}var f=2;for(;f<arguments.length;f++){var g=arguments[f];w_.isArrayLike(g)&&
!w_.dom.oc(g)?w_.array.forEach(w_.dom.isNodeList(g)?w_.array.clone(g):g,e,this):e.call(this,g)}}return d};w_.dom.DomHelper.prototype.de=w_.dom.DomHelper.prototype.r;w_.dom.DomHelper.prototype.createElement=function(a){return this.Z.createElement(a)};w_.dom.DomHelper.prototype.createTextNode=function(a){return this.Z.createTextNode(a)};
w_.dom.DomHelper.prototype.Cd=function(a){var b=this.Z.createElement("div");b.innerHTML=a;if(b.childNodes.length==1)return b.firstChild;else{var c=this.Z.createDocumentFragment();for(;b.firstChild;)c.appendChild(b.firstChild);return c}};w_.dom.DomHelper.prototype.Af=function(){return this.la()?"CSS1Compat":"BackCompat"};
w_.dom.DomHelper.prototype.la=function(){if(w_.dom.he)return w_.dom.ASSUME_STANDARDS_MODE;var a=this.Z;if(a.compatMode)return a.compatMode=="CSS1Compat";if(w_.userAgent.WEBKIT){var b=a.createElement("div");b.style.cssText="position:absolute;width:0;height:0;width:1";var c=b.style.width=="1px"?"BackCompat":"CSS1Compat";return(a.compatMode=c)=="CSS1Compat"}return w_a};
w_.dom.DomHelper.prototype.qb=function(){var a=this.Z;if(a.parentWindow)return a.parentWindow;if(w_.userAgent.WEBKIT&&!w_.userAgent.isVersion("500")&&!w_.userAgent.MOBILE){var b=a.createElement("script");b.innerHTML="document.parentWindow=window";var c=a.documentElement;c.appendChild(b);c.removeChild(b);return a.parentWindow}return a.defaultView};w_.dom.DomHelper.prototype.Cf=function(){var a=this.Z;return!w_.userAgent.WEBKIT&&this.la()?a.documentElement:a.body};
w_.dom.DomHelper.prototype.ac=function(){var a=this.Cf();return new w_.math.Coordinate(a.scrollLeft,a.scrollTop)};w_.dom.DomHelper.prototype.appendChild=w_.dom.appendChild;w_.dom.DomHelper.prototype.ub=w_.dom.ub;w_.dom.DomHelper.prototype.Hd=w_.dom.Hd;w_.dom.DomHelper.prototype.Gd=w_.dom.Gd;w_.dom.DomHelper.prototype.removeNode=w_.dom.removeNode;w_.dom.DomHelper.prototype.replaceNode=w_.dom.replaceNode;w_.dom.DomHelper.prototype.gd=w_.dom.gd;w_.dom.DomHelper.prototype.jd=w_.dom.jd;
w_.dom.DomHelper.prototype.ld=w_.dom.ld;w_.dom.DomHelper.prototype.od=w_.dom.od;w_.dom.DomHelper.prototype.sd=w_.dom.sd;w_.dom.DomHelper.prototype.oc=w_.dom.oc;w_.dom.DomHelper.prototype.contains=w_.dom.contains;w_.dom.DomHelper.prototype.T=w_.dom.T;w_.dom.DomHelper.prototype.cc=w_.dom.cc;w_.dom.DomHelper.prototype.kd=w_.dom.kd;w_.dom.DomHelper.prototype.Vd=w_.dom.Vd;w_.dom.DomHelper.prototype.dd=w_.dom.dd;w_.dom.DomHelper.prototype.ed=w_.dom.ed;w_.dom.DomHelper.prototype.pb=w_.dom.pb;
w_.dom.DomHelper.prototype.pd=w_.dom.pd;w_.dom.DomHelper.prototype.qd=w_.dom.qd;w_.dom.DomHelper.prototype.hd=w_.dom.hd;w_.dom.DomHelper.prototype.$b=w_.dom.$b;w_.dom.xml={};w_.dom.xml.createDocument=function(a,b){if(b&&!a)w_d(Error("Can't create document with namespace and no root tag"));if(document.implementation&&document.implementation.createDocument)return document.implementation.createDocument(b||"",a||"",w_b);else if(typeof ActiveXObject!="undefined"){var c=new ActiveXObject("MSXML2.DOMDocument");if(c){if(a)c.appendChild(c.createNode(w_.dom.NodeType.ELEMENT,a,b||""));return c}}w_d(Error("Your browser does not support creating new documents"))};
w_.dom.xml.loadXml=function(a){if(typeof DOMParser!="undefined")return(new DOMParser).parseFromString(a,"application/xml");else{var b=new ActiveXObject("MSXML2.DOMDocument");b.loadXML(a);return b}};w_.dom.xml.serialize=function(a){if(typeof XMLSerializer!="undefined")return(new XMLSerializer).serializeToString(a);var b=a.xml;if(b)return b;w_d(Error("Your browser does not support serializing XML documents"))};
w_.dom.xml.selectSingleNode=function(a,b){if(typeof a.selectSingleNode!="undefined"){var c=w_.dom.T(a);typeof c.setProperty!="undefined"&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}else if(document.implementation.hasFeature("XPath","3.0")){var c=w_.dom.T(a),d=c.createNSResolver(c.documentElement),e=c.evaluate(b,a,d,XPathResult.FIRST_ORDERED_NODE_TYPE,w_b);return e.singleNodeValue}return w_b};
w_.dom.xml.selectNodes=function(a,b){if(typeof a.selectNodes!="undefined"){var c=w_.dom.T(a);typeof c.setProperty!="undefined"&&c.setProperty("SelectionLanguage","XPath");return a.selectNodes(b)}else if(document.implementation.hasFeature("XPath","3.0")){var c=w_.dom.T(a),d=c.createNSResolver(c.documentElement),e=c.evaluate(b,a,d,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,w_b),f=[],g=e.snapshotLength,h=0;for(;h<g;h++)f.push(e.snapshotItem(h));return f}else return[]};w_.iter={};w_.iter.StopIteration="StopIteration"in w_.global?w_.global.StopIteration:Error("StopIteration");w_.iter.Iterator=function(){};w_.iter.Iterator.prototype.next=function(){w_d(w_.iter.StopIteration)};w_.iter.Iterator.prototype.__iterator__=function(){return this};
w_.iter.toIterator=function(a){if(a instanceof w_.iter.Iterator)return a;if(typeof a.__iterator__=="function")return a.__iterator__(w_a);if(w_.isArrayLike(a)){var b=0,c=new w_.iter.Iterator;c.next=function(){for(;w_c;){if(b>=a.length)w_d(w_.iter.StopIteration);if(b in a)return a[b++];else b++}};return c}w_d(Error("Not implemented"))};
w_.iter.forEach=function(a,b,c){if(w_.isArrayLike(a))try{w_.array.forEach(a,b,c)}catch(d){if(d!==w_.iter.StopIteration)w_d(d)}else{a=w_.iter.toIterator(a);try{for(;w_c;)b.call(c,a.next(),undefined,a)}catch(e){if(e!==w_.iter.StopIteration)w_d(e)}}};w_.iter.filter=function(a,b,c){a=w_.iter.toIterator(a);var d=new w_.iter.Iterator;d.next=function(){for(;w_c;){var e=a.next();if(b.call(c,e,undefined,a))return e}};return d};
w_.iter.range=function(a,b,c){var d=0,e=a,f=c||1;if(arguments.length>1){d=a;e=b}if(f==0)w_d(Error("Range step argument must not be zero"));var g=new w_.iter.Iterator;g.next=function(){if(f>0&&d>=e||f<0&&d<=e)w_d(w_.iter.StopIteration);var h=d;d+=f;return h};return g};w_.iter.join=function(a,b){return w_.iter.toArray(a).join(b)};w_.iter.map=function(a,b,c){a=w_.iter.toIterator(a);var d=new w_.iter.Iterator;d.next=function(){for(;w_c;){var e=a.next();return b.call(c,e,undefined,a)}};return d};
w_.iter.reduce=function(a,b,c,d){var e=c;w_.iter.forEach(a,function(f){e=b.call(d,e,f)});return e};w_.iter.some=function(a,b,c){a=w_.iter.toIterator(a);try{for(;w_c;)if(b.call(c,a.next(),undefined,a))return w_c}catch(d){if(d!==w_.iter.StopIteration)w_d(d)}return w_a};w_.iter.every=function(a,b,c){a=w_.iter.toIterator(a);try{for(;w_c;)if(!b.call(c,a.next(),undefined,a))return w_a}catch(d){if(d!==w_.iter.StopIteration)w_d(d)}return w_c};
w_.iter.chain=function(){var a=arguments,b=a.length,c=0,d=new w_.iter.Iterator;d.next=function(){try{if(c>=b)w_d(w_.iter.StopIteration);var e=w_.iter.toIterator(a[c]);return e.next()}catch(f){if(f!==w_.iter.StopIteration||c>=b)w_d(f);else{c++;return this.next()}}};return d};w_.iter.dropWhile=function(a,b,c){a=w_.iter.toIterator(a);var d=new w_.iter.Iterator,e=w_c;d.next=function(){for(;w_c;){var f=a.next();if(!(e&&b.call(c,f,undefined,a))){e=w_a;return f}}};return d};
w_.iter.takeWhile=function(a,b,c){a=w_.iter.toIterator(a);var d=new w_.iter.Iterator,e=w_c;d.next=function(){for(;w_c;)if(e){var f=a.next();if(b.call(c,f,undefined,a))return f;else e=w_a}else w_d(w_.iter.StopIteration)};return d};w_.iter.toArray=function(a){if(w_.isArrayLike(a))return w_.array.toArray(a);a=w_.iter.toIterator(a);var b=[];w_.iter.forEach(a,function(c){b.push(c)});return b};
w_.iter.equals=function(a,b){a=w_.iter.toIterator(a);b=w_.iter.toIterator(b);var c,d;try{for(;w_c;){c=d=w_a;var e=a.next();c=w_c;var f=b.next();d=w_c;if(e!=f)return w_a}}catch(g){if(g!==w_.iter.StopIteration)w_d(g);else{if(c&&!d)return w_a;if(!d)try{b.next();return w_a}catch(h){if(h!==w_.iter.StopIteration)w_d(h);return w_c}}}return w_a};w_.iter.nextOrValue=function(a,b){try{return w_.iter.toIterator(a).next()}catch(c){if(c!=w_.iter.StopIteration)w_d(c);return b}};w_.structs={};w_.structs.R=function(a){if(typeof a.R=="function")return a.R();if(w_.isArrayLike(a)||w_.isString(a))return a.length;return w_.object.R(a)};w_.structs.n=function(a){if(typeof a.n=="function")return a.n();if(w_.isString(a))return a.split("");if(w_.isArrayLike(a)){var b=[],c=a.length,d=0;for(;d<c;d++)b.push(a[d]);return b}return w_.object.n(a)};
w_.structs.k=function(a){if(typeof a.k=="function")return a.k();if(typeof a.n=="function")return undefined;if(w_.isArrayLike(a)||w_.isString(a)){var b=[],c=a.length,d=0;for(;d<c;d++)b.push(d);return b}return w_.object.k(a)};w_.structs.contains=function(a,b){if(typeof a.contains=="function")return a.contains(b);if(typeof a.da=="function")return a.da(b);if(w_.isArrayLike(a)||w_.isString(a))return w_.array.contains(a,b);return w_.object.da(a,b)};
w_.structs.z=function(a){if(typeof a.z=="function")return a.z();if(w_.isArrayLike(a)||w_.isString(a))return w_.array.z(a);return w_.object.z(a)};w_.structs.clear=function(a){if(typeof a.clear=="function")a.clear();else w_.isArrayLike(a)?w_.array.clear(a):w_.object.clear(a)};
w_.structs.forEach=function(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(w_.isArrayLike(a)||w_.isString(a))w_.array.forEach(a,b,c);else{var d=w_.structs.k(a),e=w_.structs.n(a),f=e.length,g=0;for(;g<f;g++)b.call(c,e[g],d&&d[g],a)}};
w_.structs.filter=function(a,b,c){if(typeof a.filter=="function")return a.filter(b,c);if(w_.isArrayLike(a)||w_.isString(a))return w_.array.filter(a,b,c);var d,e=w_.structs.k(a),f=w_.structs.n(a),g=f.length;if(e){d={};var h=0;for(;h<g;h++)if(b.call(c,f[h],e[h],a))d[e[h]]=f[h]}else{d=[];var h=0;for(;h<g;h++)b.call(c,f[h],undefined,a)&&d.push(f[h])}return d};
w_.structs.map=function(a,b,c){if(typeof a.map=="function")return a.map(b,c);if(w_.isArrayLike(a)||w_.isString(a))return w_.array.map(a,b,c);var d,e=w_.structs.k(a),f=w_.structs.n(a),g=f.length;if(e){d={};var h=0;for(;h<g;h++)d[e[h]]=b.call(c,f[h],e[h],a)}else{d=[];var h=0;for(;h<g;h++)d[h]=b.call(c,f[h],undefined,a)}return d};
w_.structs.some=function(a,b,c){if(typeof a.some=="function")return a.some(b,c);if(w_.isArrayLike(a)||w_.isString(a))return w_.array.some(a,b,c);var d=w_.structs.k(a),e=w_.structs.n(a),f=e.length,g=0;for(;g<f;g++)if(b.call(c,e[g],d&&d[g],a))return w_c;return w_a};
w_.structs.every=function(a,b,c){if(typeof a.every=="function")return a.every(b,c);if(w_.isArrayLike(a)||w_.isString(a))return w_.array.every(a,b,c);var d=w_.structs.k(a),e=w_.structs.n(a),f=e.length,g=0;for(;g<f;g++)if(!b.call(c,e[g],d&&d[g],a))return w_a;return w_c};w_.structs.Map=function(a){this.H={};this.p=[];var b=arguments.length;if(b>1){if(b%2)w_d(Error("Uneven number of arguments"));var c=0;for(;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.Ye(a)};w_.structs.Map.prototype.h=0;w_.structs.Map.prototype.Za=0;w_.structs.Map.prototype.R=function(){return this.h};w_.structs.Map.prototype.n=function(){this.La();var a=[],b=0;for(;b<this.p.length;b++){var c=this.p[b];a.push(this.H[c])}return a};w_.structs.Map.prototype.k=function(){this.La();return this.p.concat()};
w_.structs.Map.prototype.w=function(a){return w_.structs.Map.ya(this.H,a)};w_.structs.Map.prototype.da=function(a){var b=0;for(;b<this.p.length;b++){var c=this.p[b];if(w_.structs.Map.ya(this.H,c)&&this.H[c]==a)return w_c}return w_a};w_.structs.Map.prototype.equals=function(a,b){if(this===a)return w_c;if(this.h!=a.R())return w_a;var c=b||w_.structs.Map.defaultEquals;this.La();var d,e=0;for(;d=this.p[e];e++)if(!c(this.get(d),a.get(d)))return w_a;return w_c};
w_.structs.Map.defaultEquals=function(a,b){return a===b};w_.structs.Map.prototype.z=function(){return this.h==0};w_.structs.Map.prototype.clear=function(){this.H={};this.Za=this.h=this.p.length=0};w_.structs.Map.prototype.remove=function(a){if(w_.structs.Map.ya(this.H,a)){delete this.H[a];this.h--;this.Za++;this.p.length>2*this.h&&this.La();return w_c}return w_a};
w_.structs.Map.prototype.La=function(){if(this.h!=this.p.length){var a=0,b=0;for(;a<this.p.length;){var c=this.p[a];if(w_.structs.Map.ya(this.H,c))this.p[b++]=c;a++}this.p.length=b}if(this.h!=this.p.length){var d={},a=0,b=0;for(;a<this.p.length;){var c=this.p[a];if(!w_.structs.Map.ya(d,c)){this.p[b++]=c;d[c]=1}a++}this.p.length=b}};w_.structs.Map.prototype.get=function(a,b){if(w_.structs.Map.ya(this.H,a))return this.H[a];return b};
w_.structs.Map.prototype.set=function(a,b){if(!w_.structs.Map.ya(this.H,a)){this.h++;this.p.push(a);this.Za++}this.H[a]=b};w_.structs.Map.prototype.Ye=function(a){var b,c;if(a instanceof w_.structs.Map){b=a.k();c=a.n()}else{b=w_.object.k(a);c=w_.object.n(a)}var d=0;for(;d<b.length;d++)this.set(b[d],c[d])};w_.structs.Map.prototype.clone=function(){return new w_.structs.Map(this)};
w_.structs.Map.prototype.transpose=function(){var a=new w_.structs.Map,b=0;for(;b<this.p.length;b++){var c=this.p[b],d=this.H[c];a.set(d,c)}return a};w_.structs.Map.prototype.__iterator__=function(a){this.La();var b=0,c=this.p,d=this.H,e=this.Za,f=this,g=new w_.iter.Iterator;g.next=function(){for(;w_c;){if(e!=f.Za)w_d(Error("The map has changed since the iterator was created"));if(b>=c.length)w_d(w_.iter.StopIteration);var h=c[b++];return a?h:d[h]}};return g};
w_.structs.Map.ya=Object.prototype.hasOwnProperty?function(a,b){return Object.prototype.hasOwnProperty.call(a,b)}:function(a,b){return b in a&&a[b]!==Object.prototype[b]};w_.structs.Map.R=function(a){return w_.structs.R(a)};w_.structs.Map.n=function(a){return w_.structs.n(a)};w_.structs.Map.k=function(a){if(typeof a.k=="function")return a.k();var b=[];if(w_.isArrayLike(a)){var c=0;for(;c<a.length;c++)b.push(c)}else return w_.object.k(a);return b};
w_.structs.Map.w=function(a,b){if(typeof a.w=="function")return a.w(b);if(w_.isArrayLike(a))return Number(b)<a.length;return w_.object.w(a,b)};w_.structs.Map.da=function(a,b){return w_.structs.contains(a,b)};w_.structs.Map.z=function(a){return w_.structs.z(a)};w_.structs.Map.clear=function(a){w_.structs.clear(a)};w_.structs.Map.remove=function(a,b){if(typeof a.remove=="function")return a.remove(b);if(w_.isArrayLike(a))return w_.array.removeAt(a,Number(b));return w_.object.remove(a,b)};
w_.structs.Map.add=function(a,b,c){if(typeof a.add=="function")a.add(b,c);else if(w_.structs.Map.w(a,b))w_d(Error('The collection already contains the key "'+b+'"'));else w_.structs.Map.set(a,b,c)};w_.structs.Map.get=function(a,b,c){if(typeof a.get=="function")return a.get(b,c);if(w_.structs.Map.w(a,b))return a[b];return c};w_.structs.Map.set=function(a,b,c){if(typeof a.set=="function")a.set(b,c);else a[b]=c};w_.asserts={};w_.asserts.assert=function(a,b){if(w_.DEBUG&&!a)w_d(Error("Assertion failed"+(b?": "+b:"")))};w_.asserts.fail=function(a){if(w_.DEBUG)w_d(Error("Failure"+(a?": "+a:"")))};w_.uri={};w_.uri.utils={};w_.uri.utils.db={AMPERSAND:38,EQUAL:61,HASH:35,QUESTION:63};w_.uri.utils.buildFromEncodedParts=function(a,b,c,d,e,f,g){var h=[];a&&h.push(a,":");if(c){h.push("//");b&&h.push(b,"@");h.push(c);d&&h.push(":",d)}e&&h.push(e);f&&h.push("?",f);g&&h.push("#",g);return h.join("")};w_.uri.utils.sh=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;
w_.uri.utils.ComponentIndex={SCHEME:1,USER_INFO:2,DOMAIN:3,PORT:4,PATH:5,QUERY_DATA:6,FRAGMENT:7};w_.uri.utils.split=function(a){return a.match(w_.uri.utils.sh)};w_.uri.utils.Tb=function(a){return a&&decodeURIComponent(a)};w_.uri.utils.Qa=function(a,b){return w_.uri.utils.split(b)[a]||w_b};w_.uri.utils.hc=function(a){return w_.uri.utils.Qa(w_.uri.utils.ComponentIndex.SCHEME,a)};w_.uri.utils.getUserInfoEncoded=function(a){return w_.uri.utils.Qa(w_.uri.utils.ComponentIndex.USER_INFO,a)};
w_.uri.utils.kc=function(a){return w_.uri.utils.Tb(w_.uri.utils.getUserInfoEncoded(a))};w_.uri.utils.getDomainEncoded=function(a){return w_.uri.utils.Qa(w_.uri.utils.ComponentIndex.DOMAIN,a)};w_.uri.utils.mb=function(a){return w_.uri.utils.Tb(w_.uri.utils.getDomainEncoded(a))};w_.uri.utils.ob=function(a){return Number(w_.uri.utils.Qa(w_.uri.utils.ComponentIndex.PORT,a))||w_b};w_.uri.utils.getPathEncoded=function(a){return w_.uri.utils.Qa(w_.uri.utils.ComponentIndex.PATH,a)};w_.uri.utils.xa=function(a){return w_.uri.utils.Tb(w_.uri.utils.getPathEncoded(a))};
w_.uri.utils.gc=function(a){return w_.uri.utils.Qa(w_.uri.utils.ComponentIndex.QUERY_DATA,a)};w_.uri.utils.getFragmentEncoded=function(a){var b=a.indexOf("#");return b<0?w_b:a.substr(b+1)};w_.uri.utils.bc=function(a){return w_.uri.utils.Tb(w_.uri.utils.getFragmentEncoded(a))};w_.uri.utils.getHost=function(a){var b=w_.uri.utils.split(a);return w_.uri.utils.buildFromEncodedParts(b[w_.uri.utils.ComponentIndex.SCHEME],b[w_.uri.utils.ComponentIndex.USER_INFO],b[w_.uri.utils.ComponentIndex.DOMAIN],b[w_.uri.utils.ComponentIndex.PORT])};
w_.uri.utils.getPathAndAfter=function(a){var b=w_.uri.utils.split(a);return w_.uri.utils.buildFromEncodedParts(w_b,w_b,w_b,w_b,b[w_.uri.utils.ComponentIndex.PATH],b[w_.uri.utils.ComponentIndex.QUERY_DATA],b[w_.uri.utils.ComponentIndex.FRAGMENT])};w_.uri.utils.removeFragment=function(a){var b=a.indexOf("#");return b<0?a:a.substr(0,b)};
w_.uri.utils.haveSameDomain=function(a,b){var c=w_.uri.utils.split(a),d=w_.uri.utils.split(b);return c[w_.uri.utils.ComponentIndex.DOMAIN]==d[w_.uri.utils.ComponentIndex.DOMAIN]&&c[w_.uri.utils.ComponentIndex.SCHEME]==d[w_.uri.utils.ComponentIndex.SCHEME]&&c[w_.uri.utils.ComponentIndex.PORT]==d[w_.uri.utils.ComponentIndex.PORT]};w_.uri.utils.bf=function(){};w_.uri.utils.Rc=function(a){w_.uri.utils.bf(a[0]);if(a[1]){var b=a[0].indexOf("?");if(b<0)a[1]="?";else if(b==a[0].length-1)a[1]=""}return a.join("")};
w_.uri.utils.af=function(a,b,c){if(w_.isArray(b)){b=b;var d=0;for(;d<b.length;d++)c.push("&",a,"=",w_.string.urlEncode(b[d]))}else b!=w_b&&c.push("&",a,"=",w_.string.urlEncode(b))};w_.uri.utils.hf=function(a,b,c){w_.asserts.assert((b.length-(c||0))%2==0,"goog.uri.utils: Key/value lists must be even in length.");var d=c||0;for(;d<b.length;d+=2)w_.uri.utils.af(b[d],b[d+1],a);return a};w_.uri.utils.buildQueryData=function(a,b){var c=w_.uri.utils.hf([],a,b);c[0]="";return c.join("")};
w_.uri.utils.gf=function(a,b){for(var c in b)w_.uri.utils.af(c,b[c],a);return a};w_.uri.utils.buildQueryDataFromMap=function(a){var b=w_.uri.utils.gf([],a);b[0]="";return b.join("")};w_.uri.utils.appendParams=function(a){return w_.uri.utils.Rc(w_.uri.utils.hf([a],arguments,1))};w_.uri.utils.appendParamsFromMap=function(a,b){return w_.uri.utils.Rc(w_.uri.utils.gf([a],b))};w_.uri.utils.appendParam=function(a,b,c){return w_.uri.utils.Rc([a,"&",b,"=",w_.string.urlEncode(c)])};
w_.uri.utils.Zb=function(a,b,c,d){var e=b,f=c.length;for(;(e=a.indexOf(c,e))>=0&&e<d;){var g=a.charCodeAt(e-1);if(g==w_.uri.utils.db.AMPERSAND||g==w_.uri.utils.db.QUESTION){var h=a.charCodeAt(e+f);if(!h||h==w_.uri.utils.db.EQUAL||h==w_.uri.utils.db.AMPERSAND||h==w_.uri.utils.db.HASH)return e}e+=f+1}return-1};w_.uri.utils.Bd=/#|$/;w_.uri.utils.hasParam=function(a,b){return w_.uri.utils.Zb(a,0,b,a.search(w_.uri.utils.Bd))>=0};
w_.uri.utils.getParamValue=function(a,b){var c=a.search(w_.uri.utils.Bd),d=w_.uri.utils.Zb(a,0,b,c);if(d<0)return w_b;else{var e=a.indexOf("&",d);if(e<0||e>c)e=c;d+=b.length+1;return w_.string.urlDecode(a.substr(d,e-d))}};w_.uri.utils.getParamValues=function(a,b){var c=a.search(w_.uri.utils.Bd),d=0,e,f=[];for(;(e=w_.uri.utils.Zb(a,d,b,c))>=0;){d=a.indexOf("&",e);if(d<0||d>c)d=c;e+=b.length+1;f.push(w_.string.urlDecode(a.substr(e,d-e)))}return f};w_.uri.utils.wh=/[?&]$/;
w_.uri.utils.removeParam=function(a,b){w_.uri.utils.bf(a);var c=a.length,d=0,e,f=[];for(;(e=w_.uri.utils.Zb(a,d,b,c))>=0;){f.push(a.substring(d,e));d=a.indexOf("&",e)+1||c}f.push(a.substr(d));return f.join("").replace(w_.uri.utils.wh,"")};w_.Uri=function(a,b){var c;if(a instanceof w_.Uri){this.oa(b==w_b?a.Df():b);this.Ab(a.hc());this.Bb(a.kc());this.vb(a.mb());this.xb(a.ob());this.Xa(a.xa());this.zb(a.gc().clone());this.wb(a.bc())}else if(a&&(c=w_.uri.utils.split(String(a)))){this.oa(!!b);this.Ab(c[w_.uri.utils.ComponentIndex.SCHEME],w_c);this.Bb(c[w_.uri.utils.ComponentIndex.USER_INFO],w_c);this.vb(c[w_.uri.utils.ComponentIndex.DOMAIN],w_c);this.xb(c[w_.uri.utils.ComponentIndex.PORT]);this.Xa(c[w_.uri.utils.ComponentIndex.PATH],w_c);
this.zb(c[w_.uri.utils.ComponentIndex.QUERY_DATA]);this.wb(c[w_.uri.utils.ComponentIndex.FRAGMENT],w_c)}else{this.oa(!!b);this.W=new w_.Uri.QueryData(w_b,this,this.Y)}};w_.Uri.RANDOM_PARAM="zx";w_.Uri.prototype.aa="";w_.Uri.prototype.Ia="";w_.Uri.prototype.ta="";w_.Uri.prototype.Fa=w_b;w_.Uri.prototype.Ea="";w_.Uri.prototype.ua="";w_.Uri.prototype.Uf=w_a;w_.Uri.prototype.Y=w_a;
w_.Uri.prototype.toString=function(){if(this.F)return this.F;var a=[];this.aa&&a.push(w_.Uri.Xb(this.aa,w_.Uri.kg),":");if(this.ta){a.push("//");this.Ia&&a.push(w_.Uri.Xb(this.Ia,w_.Uri.kg),"@");a.push(w_.Uri.Sg(this.ta));this.Fa!=w_b&&a.push(":",String(this.ob()))}this.Ea&&a.push(w_.Uri.Xb(this.Ea,w_.Uri.kh));var b=String(this.W);b&&a.push("?",b);this.ua&&a.push("#",w_.Uri.Xb(this.ua,w_.Uri.jh));return this.F=a.join("")};
w_.Uri.prototype.resolve=function(a){var b=this.clone(),c=a.Pf();if(c)b.Ab(a.hc());else c=a.Qf();if(c)b.Bb(a.kc());else c=a.zd();if(c)b.vb(a.mb());else c=a.Nf();var d=a.xa();if(c)b.xb(a.ob());else if(c=a.Ad()){if(d.charAt(0)!="/")if(this.zd()&&!this.Ad())d="/"+d;else{var e=b.xa().lastIndexOf("/");if(e!=-1)d=b.xa().substr(0,e+1)+d}d=w_.Uri.lh(d)}if(c)b.Xa(d);else c=a.Of();if(c)b.zb(a.Gf());else c=a.Mf();c&&b.wb(a.bc());return b};
w_.Uri.prototype.clone=function(){return w_.Uri.create(this.aa,this.Ia,this.ta,this.Fa,this.Ea,this.W.clone(),this.ua,this.Y)};w_.Uri.prototype.hc=function(){return this.aa};w_.Uri.prototype.Ab=function(a,b){this.ea();delete this.F;if(this.aa=b?w_.Uri.ib(a):a)this.aa=this.aa.replace(/:$/,"");return this};w_.Uri.prototype.Pf=function(){return!!this.aa};w_.Uri.prototype.kc=function(){return this.Ia};w_.Uri.prototype.Bb=function(a,b){this.ea();delete this.F;this.Ia=b?w_.Uri.ib(a):a;return this};
w_.Uri.prototype.Qf=function(){return!!this.Ia};w_.Uri.prototype.mb=function(){return this.ta};w_.Uri.prototype.vb=function(a,b){this.ea();delete this.F;this.ta=b?w_.Uri.ib(a):a;return this};w_.Uri.prototype.zd=function(){return!!this.ta};w_.Uri.prototype.ob=function(){return this.Fa};w_.Uri.prototype.xb=function(a){this.ea();delete this.F;if(a){a=Number(a);if(isNaN(a)||a<0)w_d(Error("Bad port number "+a));this.Fa=a}else this.Fa=w_b;return this};w_.Uri.prototype.Nf=function(){return this.Fa!=w_b};
w_.Uri.prototype.xa=function(){return this.Ea};w_.Uri.prototype.Xa=function(a,b){this.ea();delete this.F;this.Ea=b?w_.Uri.ib(a):a;return this};w_.Uri.prototype.Ad=function(){return!!this.Ea};w_.Uri.prototype.Of=function(){return this.W.toString()!==""};w_.Uri.prototype.zb=function(a){this.ea();delete this.F;if(a instanceof w_.Uri.QueryData){this.W=a;this.W.Cb=this;this.W.oa(this.Y)}else this.W=new w_.Uri.QueryData(a,this,this.Y);return this};w_.Uri.prototype.Gf=function(){return this.W.toString()};
w_.Uri.prototype.gc=function(){return this.W};w_.Uri.prototype.rc=function(a,b){this.ea();delete this.F;w_.isArray(b)||(b=[String(b)]);this.W.qg(a,b);return this};w_.Uri.prototype.bc=function(){return this.ua};w_.Uri.prototype.wb=function(a,b){this.ea();delete this.F;this.ua=b?w_.Uri.ib(a):a;return this};w_.Uri.prototype.Mf=function(){return!!this.ua};w_.Uri.prototype.ea=function(){if(this.Uf)w_d(Error("Tried to modify a read-only Uri"))};w_.Uri.prototype.oa=function(a){this.Y=a;this.W&&this.W.oa(a)};
w_.Uri.prototype.Df=function(){return this.Y};w_.Uri.parse=function(a,b){return a instanceof w_.Uri?a.clone():new w_.Uri(a,b)};w_.Uri.create=function(a,b,c,d,e,f,g,h){var i=new w_.Uri(w_b,h);a&&i.Ab(a);b&&i.Bb(b);c&&i.vb(c);d&&i.xb(d);e&&i.Xa(e);f&&i.zb(f);g&&i.wb(g);return i};w_.Uri.resolve=function(a,b){a instanceof w_.Uri||(a=w_.Uri.parse(a));b instanceof w_.Uri||(b=w_.Uri.parse(b));return a.resolve(b)};
w_.Uri.lh=function(a){if(a==".."||a==".")return"";else if(!w_.string.contains(a,"./")&&!w_.string.contains(a,"/."))return a;else{var b=w_.string.Xd(a,"/"),c=a.split("/"),d=[],e=0;for(;e<c.length;){var f=c[e++];if(f==".")b&&e==c.length&&d.push("");else if(f==".."){if(d.length>1||d.length==1&&d[0]!="")d.pop();b&&e==c.length&&d.push("")}else{d.push(f);b=w_c}}return d.join("/")}};w_.Uri.ib=function(a){return a?decodeURIComponent(a):""};
w_.Uri.Sg=function(a){if(w_.isString(a))return encodeURIComponent(a);return w_b};w_.Uri.Rg=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/;w_.Uri.Xb=function(a,b){var c=w_b;if(w_.isString(a)){c=a;w_.Uri.Rg.test(c)||(c=encodeURI(a));if(c.search(b)>=0)c=c.replace(b,w_.Uri.Qg)}return c};w_.Uri.Qg=function(a){var b=a.charCodeAt(0);return"%"+(b>>4&15).toString(16)+(b&15).toString(16)};w_.Uri.kg=/[#\/\?@]/g;w_.Uri.kh=/[\#\?]/g;w_.Uri.jh=/#/g;
w_.Uri.haveSameDomain=function(a,b){var c=w_.uri.utils.split(a),d=w_.uri.utils.split(b);return c[w_.uri.utils.ComponentIndex.DOMAIN]==d[w_.uri.utils.ComponentIndex.DOMAIN]&&c[w_.uri.utils.ComponentIndex.PORT]==d[w_.uri.utils.ComponentIndex.PORT]};
w_.Uri.QueryData=function(a,b,c){this.o=new w_.structs.Map;this.Cb=b||w_b;this.Y=!!c;if(a){var d=a.split("&"),e=0;for(;e<d.length;e++){var f=d[e].indexOf("="),g=w_b,h=w_b;if(f>=0){g=d[e].substring(0,f);h=d[e].substring(f+1)}else g=d[e];g=w_.string.urlDecode(g);g=this.fa(g);this.add(g,h?w_.string.urlDecode(h):"")}}};w_.Uri.QueryData.createFromMap=function(a,b,c){return w_.Uri.QueryData.createFromKeysValues(w_.structs.k(a),w_.structs.n(a),b,c)};
w_.Uri.QueryData.createFromKeysValues=function(a,b,c,d){if(a.length!=b.length)w_d(Error("Mismatched lengths for keys/values"));var e=new w_.Uri.QueryData(w_b,c,d),f=0;for(;f<a.length;f++)e.add(a[f],b[f]);return e};w_.Uri.QueryData.prototype.h=0;w_.Uri.QueryData.prototype.R=function(){return this.h};w_.Uri.QueryData.prototype.add=function(a,b){this.Ba();a=this.fa(a);if(this.w(a)){var c=this.o.get(a);w_.isArray(c)?c.push(b):this.o.set(a,[c,b])}else this.o.set(a,b);this.h++;return this};
w_.Uri.QueryData.prototype.remove=function(a){a=this.fa(a);if(this.o.w(a)){this.Ba();var b=this.o.get(a);if(w_.isArray(b))this.h-=b.length;else this.h--;return this.o.remove(a)}return w_a};w_.Uri.QueryData.prototype.clear=function(){this.Ba();this.o.clear();this.h=0};w_.Uri.QueryData.prototype.z=function(){return this.h==0};w_.Uri.QueryData.prototype.w=function(a){a=this.fa(a);return this.o.w(a)};w_.Uri.QueryData.prototype.da=function(a){var b=this.n();return w_.array.contains(b,a)};
w_.Uri.QueryData.prototype.k=function(){var a=this.o.n(),b=this.o.k(),c=[],d=0;for(;d<b.length;d++){var e=a[d];if(w_.isArray(e)){var f=0;for(;f<e.length;f++)c.push(b[d])}else c.push(b[d])}return c};w_.Uri.QueryData.prototype.n=function(a){var b;if(a){var c=this.fa(a);if(this.w(c)){var d=this.o.get(c);if(w_.isArray(d))return d;else{b=[];b.push(d)}}else b=[]}else{var e=this.o.n();b=[];var f=0;for(;f<e.length;f++){var g=e[f];w_.isArray(g)?w_.array.extend(b,g):b.push(g)}}return b};
w_.Uri.QueryData.prototype.set=function(a,b){this.Ba();a=this.fa(a);if(this.w(a)){var c=this.o.get(a);if(w_.isArray(c))this.h-=c.length;else this.h--}this.o.set(a,b);this.h++;return this};w_.Uri.QueryData.prototype.get=function(a,b){a=this.fa(a);if(this.w(a)){var c=this.o.get(a);return w_.isArray(c)?c[0]:c}else return b};
w_.Uri.QueryData.prototype.qg=function(a,b){this.Ba();a=this.fa(a);if(this.w(a)){var c=this.o.get(a);if(w_.isArray(c))this.h-=c.length;else this.h--}if(b.length>0){this.o.set(a,b);this.h+=b.length}};
w_.Uri.QueryData.prototype.toString=function(){if(this.F)return this.F;var a=[],b=0,c=this.o.k(),d=0;for(;d<c.length;d++){var e=c[d],f=w_.string.urlEncode(e),g=this.o.get(e);if(w_.isArray(g)){var h=0;for(;h<g.length;h++){b>0&&a.push("&");a.push(f,"=",w_.string.urlEncode(g[h]));b++}}else{b>0&&a.push("&");a.push(f,"=",w_.string.urlEncode(g));b++}}return this.F=a.join("")};w_.Uri.QueryData.prototype.Ba=function(){delete this.F;this.Cb&&delete this.Cb.F};
w_.Uri.QueryData.prototype.clone=function(){var a=new w_.Uri.QueryData;a.o=this.o.clone();return a};w_.Uri.QueryData.prototype.fa=function(a){var b=String(a);if(this.Y)b=b.toLowerCase();return b};w_.Uri.QueryData.prototype.oa=function(a){var b=a&&!this.Y;if(b){this.Ba();w_.structs.forEach(this.o,function(c,d){var e=d.toLowerCase();if(d!=e){this.remove(d);this.add(e,c)}},this)}this.Y=a};
w_.Uri.QueryData.prototype.extend=function(){var a=0;for(;a<arguments.length;a++){var b=arguments[a];w_.structs.forEach(b,function(c,d){this.add(d,c)},this)}};w_.net={};w_.net.Jsonp=function(a,b){this.Cb=new w_.Uri(a);this.Dg=b?b:"callback";this.vc=5000};w_.net.Jsonp.CALLBACKS="_callbacks_";w_.net.Jsonp.mh=0;w_.net.Jsonp.prototype.sc=function(a){this.vc=a};
w_.net.Jsonp.prototype.send=function(a,b,c,d){if(!document.documentElement.firstChild){c&&c(a);return w_b}var e=d||"_"+(w_.net.Jsonp.mh++).toString(36)+w_.now().toString(36);w_.global[w_.net.Jsonp.CALLBACKS]||(w_.global[w_.net.Jsonp.CALLBACKS]={});var f=w_.dom.createElement("script"),g=w_b;if(this.vc>0){var h=w_.net.Jsonp.eh(e,f,a,c);g=w_.global.setTimeout(h,this.vc)}var i=this.Cb.clone();w_.net.Jsonp.zg(a,i);if(b){var j=w_.net.Jsonp.fh(e,f,b,g);w_.global[w_.net.Jsonp.CALLBACKS][e]=j;i.rc(this.Dg,
w_.net.Jsonp.CALLBACKS+"."+e)}w_.dom.yb(f,{type:"text/javascript",id:e,charset:"UTF-8",src:i.toString()});w_.dom.appendChild(document.getElementsByTagName("head")[0],f);return{Fh:e,vc:g}};w_.net.Jsonp.eh=function(a,b,c,d){return function(){w_.net.Jsonp.kf(a,b,w_a);d&&d(c)}};w_.net.Jsonp.fh=function(a,b,c,d){return function(){w_.global.clearTimeout(d);w_.net.Jsonp.kf(a,b,w_c);c.apply(undefined,arguments)}};
w_.net.Jsonp.kf=function(a,b,c){w_.global.setTimeout(function(){w_.dom.removeNode(b)},0);if(w_.global[w_.net.Jsonp.CALLBACKS][a])if(c)delete w_.global[w_.net.Jsonp.CALLBACKS][a];else w_.global[w_.net.Jsonp.CALLBACKS][a]=w_.nullFunction};w_.net.Jsonp.zg=function(a,b){for(var c in a)if(!a.hasOwnProperty||a.hasOwnProperty(c))b.rc(c,a[c]);return b};w_F.Id={BLOGS:"blogs",CONTAINER:"container",SHOW_ALL:"show-all",SHOW_N:"show-n"};function w_F(a){this.a=a;this.g=a.u()}w_F.WIDGET_TYPE_NAME="BlogList";w_F.prototype.wc=w_b;w_F.prototype.tb=w_b;w_F.prototype.e=function(){return w_F.WIDGET_TYPE_NAME};w_F.prototype.b=function(){return this.a};w_F.prototype.i=function(){return w_a};w_F.prototype.d=function(a,b){a=="configure"&&this.a.l(b)};
w_F.prototype.j=function(){var a=this.a.s();this.wc=a.totalItems;this.tb=a.numItemsToShow;if(a.ajaxVersion){var b=0;for(;b<a.items.length;b++){var c=this.a.K("container"),d=w_.dom.wa("div","item-content",c),e=a.items[b].feedUrl,f=new w_.net.Jsonp("http://ajax.googleapis.com/ajax/services/feed/load");f.sc(-1);f.send({q:e,num:1,output:"json_xml",v:"1.0"},w_u(this.ng,this,d[b]))}}if(this.tb!=0&&this.wc>this.tb){var g=this.a.K(w_F.Id.SHOW_ALL);g.onclick=this.$d.bind(this);var h=this.a.K(w_F.Id.SHOW_N);
h.onclick=this.$d.bind(this)}var i=this.yf.bind(this),j=window;if(j.addEventListener)j.addEventListener("load",i,w_a);else if(j.attachEvent)j.attachEvent("onload",i);else j.onload=i};
w_F.prototype.ng=function(a,b){if(!b.error){var c=this.a.s(),d=new w_G(b.responseData.xmlString),e=d.Ef();if(e){var f=a.parentNode.parentNode.getElementsByTagName("input")[0];f.value=d.Pa()+"/favicon.ico";c.showItemThumbnail&&e.thumbnail&&a.appendChild(w_Na(e.thumbnail,e.link));if(c.showItemTitle)e.link?a.appendChild(w_Oa(e.title,e.link)):a.appendChild(w_Pa(e.title));if(c.showItemSnippet){c.showItemTitle&&a.appendChild(w_.dom.createTextNode(" - "));a.appendChild(w_Qa(e.snippet));c.showTimePeriodSinceLastUpdate&&
e.date&&a.appendChild(w_Ra(e.date.toLocaleDateString()))}}}};w_F.prototype.$d=function(){var a=this.a.K(w_F.Id.BLOGS),b=a.getElementsByTagName("li"),c=this.tb;for(;c<this.wc;c++){var d=b[c];w_ta(d,d.style.display=="none")}var e=this.a.K(w_F.Id.SHOW_ALL);w_m(e,e.style.display=="none");var f=this.a.K(w_F.Id.SHOW_N);w_m(f,f.style.display=="none")};
w_F.prototype.yf=function(){var a=this.a.K(w_F.Id.BLOGS),b=a.getElementsByTagName("input"),c=0;for(;c<b.length;c++){var d=b[c],e=document.createElement("img");e.onload=this.Ze.bind(e,d);e.src=d.value}};w_F.prototype.Ze=function(a){this.onload=function(){};this.alt="";this.width=this.height="16";var b=a.parentNode;b.replaceChild(this,a)};var _BlogListView=w_F;_BlogListView._Configure=_BlogListView.Configure;function w_Pa(a){var b=w_.dom.r("span",{"class":"item-title"});b.innerHTML=a;return b}
function w_Oa(a,b){var c=w_.dom.r("span",{"class":"item-title"}),d=w_.dom.r("a",{href:b,target:"_blank"});d.innerHTML=a;c.appendChild(d);return c}function w_Qa(a){var b=w_.dom.r("span",{"class":"item-snippet"});b.innerHTML=a;return b}function w_Ra(a){var b=w_.dom.r("div",{"class":"item-time"});b.innerHTML=a;return b}
function w_Na(a,b){var c=w_.dom.r("div",{"class":"item-thumbnail"}),d=w_.dom.r("a",{target:"_blank",href:b}),e=w_.dom.r("img",{src:a.url,height:a.height,width:a.width,alt:"",border:0});d.appendChild(e);c.appendChild(d);return c};function w_G(a){this.Kf(w_.dom.xml.loadXml(a))}w_G.prototype.Pa=function(){return this.blogDomain};w_G.prototype.Ef=function(){if(!this.latestEntry)return w_b;return{link:this.extractor.dc(this.latestEntry),title:this.extractor.If(this.latestEntry),thumbnail:this.extractor.Hf(this.latestEntry),snippet:this.extractor.ic(this.latestEntry),date:this.extractor.getDate(this.latestEntry)}};
w_G.prototype.Kf=function(a){var b=0;for(;b<w_G.HINTS.length;b+=1){var c=w_G.HINTS[b],d=w_Sa(a,c.namespace,c.itemElem);if(d.length>0){this.latestEntry=d[0];this.extractor=new c.extractor;this.blogDomain=this.extractor.Pa(a);return}}this.blogDomain=(new w_H).Pa(a)};function w_H(){}w_H.MAX_SNIPPET_LENGTH=160;w_H.MAX_THUMBNAIL_SIZE=75;
w_H.prototype.Pa=function(a){var b=a.getElementsByTagName("link"),c=this.md(b);if(!c){b=w_Sa(a,"","link");c=b[0].firstChild.nodeValue}var d=w_.Uri.parse(c);d.gc().clear();d.Xa("");return d.toString()};w_H.prototype.If=function(a){return a.getElementsByTagName("title")[0].firstChild.nodeValue};
w_H.prototype.Hf=function(a){var b=w_Sa(a,"http://search.yahoo.com/mrss/","thumbnail");if(b.length>0){var c={url:b[0].getAttribute("url"),width:parseInt(b[0].getAttribute("width")),height:parseInt(b[0].getAttribute("height"))},d=Math.max(c.width/w_H.MAX_THUMBNAIL_SIZE,c.height/w_H.MAX_THUMBNAIL_SIZE);if(d>1){c.width=Math.round(c.width/d);c.height=Math.round(c.height/d)}return c}return w_b};
w_H.prototype.normalize=function(a){if(a!=w_b){a=w_.string.normalizeWhitespace(this.rg(a.firstChild.nodeValue));a=w_.string.trim(a);a=w_.string.normalizeSpaces(a);if(a.length>w_H.MAX_SNIPPET_LENGTH)a=a.substring(0,w_H.MAX_SNIPPET_LENGTH)+"..."}return a};w_H.prototype.rg=function(a){return a.replace(/<\/?\w[^>]*>/g,"")};w_H.prototype.md=function(a){var b=0;for(;b<a.length;b++)if(a[b].getAttribute("rel")=="alternate")return a[b].getAttribute("href");return w_b};function w_I(){}w_.inherits(w_I,w_H);
w_I.prototype.dc=function(a){var b=a.getElementsByTagName("link");return b.length==0?w_b:w_.string.trim(b[0].firstChild.nodeValue)};w_I.prototype.ic=function(a){return this.normalize(a.getElementsByTagName("description")[0])};w_I.prototype.getDate=function(a){var b=a.getElementsByTagName("pubDate")[0];return b.length==0?w_b:new Date(b.firstChild.nodeValue)};function w_J(){}w_.inherits(w_J,w_H);
w_J.prototype.dc=function(a){var b=a.getElementsByTagName("link"),c=this.md(b);if(c)return c;return b.length==0?w_b:b[0].getAttribute("href")};w_J.prototype.ic=function(a){return this.normalize(a.getElementsByTagName("content")[0]||a.getElementsByTagName("summary")[0])};
w_J.prototype.getDate=function(a){var b=a.getElementsByTagName("updated")[0]||a.getElementsByTagName("date")[0];if(b){var c=w_.date.fromIsoString(b.firstChild.nodeValue);return new Date(c.Ta(),c.getMonth(),c.getDay(),c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds())}return w_b};
w_G.HINTS=[{itemElem:"entry",namespace:"http://www.w3.org/2005/Atom",extractor:w_J,hint:"atom"},{itemElem:"entry",namespace:"http://purl.org/atom/ns#",extractor:w_J,hint:"atom"},{itemElem:"entry",namespace:"",extractor:w_J,hint:"atom"},{itemElem:"item",namespace:"http://purl.org/rss/1.0/",extractor:w_I,hint:"rss"},{itemElem:"item",namespace:"http://my.netscape.com/rdf/simple/0.9/",extractor:w_I,hint:"rss"},{itemElem:"item",namespace:"",extractor:w_I,hint:"rss"}];
function w_Sa(a,b,c){var d;if(b==w_b)b="";if(a.getElementsByTagNameNS)d=a.getElementsByTagNameNS(b,c);else{var e=a.getElementsByTagName("*");d=[];var f=0;for(;f<e.length;f++){var g=e[f].tagName;g=g.substring(g.lastIndexOf(":")+1);g==c&&e[f].namespaceURI==b&&d.push(e[f])}}return d};function w_K(a){this.a=a}w_K.WIDGET_TYPE_NAME="CustomSearch";w_K.ANCHOR_NAME="uds-search-results";w_K.prototype.e=function(){return w_K.WIDGET_TYPE_NAME};w_K.prototype.b=function(){return this.a};w_K.prototype.i=function(){return w_a};w_K.prototype.d=function(a,b){a=="configure"&&this.a.l(b)};
w_K.prototype.j=function(){var a=this.b(),b=new w_y;google.load("search","1",{callback:w_Ta.bind(a),language:b.s("blog.locale")});var c=document.getElementById("uds-searchControl");if(!c){c=document.createElement("DIV");c.id="uds-searchControl";var d=document.createElement("A");d.name=w_K.ANCHOR_NAME;c.appendChild(d);var e=document.createElement("DIV");e.id="uds-searchResults";c.appendChild(e);var f=document.createElement("DIV");f.id="uds-searchClearResults";f.className="gsc-clear-button";f.innerHTML=
"&nbsp;";c.appendChild(f);var g=document.getElementById("main");g||(g=document.getElementsByTagName("body")[0]);g.insertBefore(c,g.firstChild)}};
function w_Ta(){var a=new GSearchControl,b=this.s();if(b.includeBlog){var c=new GblogSearch;c.setUserDefinedLabel(b.thisBlogMsg);c.setSiteRestriction(b.blogUrl);a.addSearcher(c)}if(b.includePostLinks){var d=new GwebSearch;d.setUserDefinedLabel(b.linkedFromHereMsg);d.setSiteRestriction({crefUrl:b.blogUrl+"cse.xml"});a.addSearcher(d)}var e=b.linkLists,f=0;for(;f<e.length;f++){var g=new GwebSearch;g.setSiteRestriction({crefUrl:b.blogUrl+"cse.xml"},e[f].id.toLowerCase());g.setUserDefinedLabel(e[f].title);
a.addSearcher(g)}if(b.includeWeb){var h=new GwebSearch;h.setUserDefinedLabel(b.theWebMsg);a.addSearcher(h)}var i=new GSearchForm(w_a,this.K("form")),j=new GdrawOptions;j.setDrawMode(GSearchControl.DRAW_MODE_TABBED);j.setInput(i.input);a.setNoResultsString(GSearchControl.NO_RESULTS_DEFAULT_STRING);a.draw(document.getElementById("uds-searchResults"),j);i.input.onkeyup=i.input.onpaste=w_b;i.setOnSubmitCallback(w_b,w_u(w_Ua,w_b,i,a));document.getElementById("uds-searchClearResults").onclick=w_u(w_Va,
w_b,a);w_Wa(w_a)}function w_Ua(a,b){var c=a.input.value;if(!c){w_Va(b);return w_a}b.execute(c);w_Wa(w_c);var d=window.location.href,e=d.indexOf("#");if(e>=0)d=d.substring(0,e);window.location.href=d+"#"+w_K.ANCHOR_NAME;return w_c}function w_Va(a){a.clearAllResults();w_Wa(w_a)}function w_Wa(a){document.getElementById("uds-searchClearResults").style.display=a?"block":"none"}var _CustomSearchView=w_K;_CustomSearchView._Configure=_CustomSearchView.Configure;function w_L(a){this.a=a;this.g=a.u()}w_L.WIDGET_TYPE_NAME="Image";w_L.prototype.b=function(){return this.a};w_L.prototype.e=function(){return w_L.WIDGET_TYPE_NAME};w_L.prototype.i=function(){return w_a};
w_L.prototype.j=function(){if(!(this.g.data.resize!="true")){var a=this.a.X(this.g.instanceId+"_img"),b=this.g.rootElement;if(!(!a||!b)){var c;if(document.defaultView)c=parseInt(document.defaultView.getComputedStyle(b,w_b).width,10);else if(b.currentStyle){a.style.display="none";c=b.offsetWidth;a.style.display=""}else return;if(a.width>c){a.height=Math.round(c/a.width*a.height);a.width=c}a.style.visibility="visible"}}};w_L.prototype.d=function(a,b){a=="configure"&&this.a.l(b)};var _ImageView=w_L;function w_M(a,b,c,d,e,f,g,h){this.J=a;this.ff=b!="null"?b:w_b;this.Xf=c;this.Vf=d;this.Wf=e;this.pg=f;this.Yf=g;this.nh=h;this.za=this.ha=-1;this.Aa=w_b;this.V=document.getElementById(this.J+"_picImg");this.Rb=document.getElementById(this.J+"_changeImageLink");this.mc=document.getElementById(this.J+"_imageChoiceTable");this.Sf=document.getElementById(this.J+"_imgSrcFromPCRadio");this.Tf=document.getElementById(this.J+"_imgSrcFromWebRadio");this.m=document.getElementById(this.J+"_imgFileNameInput");
this.rb=document.getElementById(this.J+"_imgUrlTextInput");this.cf=window.frames[this.J+"_asynchronousFileUploadIframe"];this.Dd=0;this.D=new Image;this.D.onload=this.hitch(this,this.gg);this.D.onerror=this.hitch(this,this.fg);this.zf=w_a;this.Oa=this.G=this.Ld=w_b;this.Sd=w_a}w_M.prototype.Jd=function(){return this.Sf.checked};
w_M.prototype.gg=function(){this.Dd=0;w_A.ClearError(this.J+"_imgUrlTextError");w_A.ClearError(this.J+"_imgFileNameError");if(!this.Jd()||this.ha==0){this.ha=this.D.width;this.za=this.D.height;this.Aa=this.D.src}var a=1,b=1;if(this.D.width>300)a=300/this.D.width;if(this.D.height>300)b=300/this.D.height;var c=Math.min(a,b);this.V.style.width=Math.round(this.D.width*c)+"px";this.V.style.height=Math.round(this.D.height*c)+"px";this.V.src=this.D.src;this.V.style.display="";this.mc.style.display="none";
this.Rb.style.display="";this.m.disabled=w_c;this.Xf&&this.Xf.call({},this.V.src,this.Aa,this.ha,this.za)};w_M.prototype.Ya=function(a,b,c,d){if(a){w_A.SetError(this.J+"_imgFileNameError",b);w_A.ClearError(this.J+"_imgUrlTextError")}else{w_A.SetError(this.J+"_imgUrlTextError",b);w_A.ClearError(this.J+"_imgFileNameError")}this.V.style.display="none";this.mc.style.display="";this.Rb.style.display="none";this.m.disabled=w_a;this.Vf&&this.Vf.call({},c,d)};
w_M.prototype.fg=function(){if(this.Dd<2){this.Dd++;var a=this.D.src;this.D.src="";this.Ca(a)}else this.Ya(this.Jd(),WidgetMessages.SIV_INVALID_URL,this.V.src)};w_M.prototype.hitch=function(a,b){return function(){b.apply(a,arguments)}};w_M.prototype.Ca=function(a){this.Wd();this.D.src=a};
w_M.prototype.Vc=function(a){var b=a||window.event;if(window.event){b.returnValue=w_a;b.cancelBubble=w_c}else{b.preventDefault();b.stopPropagation()}this.V.style.display="none";this.Rb.style.display="none";this.mc.style.display="";this.m.disabled=w_a;this.rb.value="";this.Td();this.Sd=w_c;this.Wf&&this.Wf.call({})};w_M.prototype.Ed=function(){this.Sf.checked="true";this.rb.value="";this.Wd();this.cg();this.zf=w_c;try{this.G.submit()}catch(a){this.Ya(w_c,WidgetMessages.SIV_INVALID_URL,this.G.value)}this.bg()};
w_M.prototype.Ka=function(){var a=this.cf.document.result;a||this.Ya(w_c,WidgetMessages.SIV_INVALID_URL,this.m.value);if(a.hasErrors)a.errors.length>0?this.Ya(w_c,a.errors[0].message,this.m.value,a.Ug):this.Ya(w_c,WidgetMessages.SIV_INVALID_URL,this.m.value,a.Ug);else{var b=Math.max(a.origWidth,a.origHeight),c=this.wd();if(this.ha!=0&&c!=-1&&b>c){var d=c/b;this.ha=Math.round(a.origWidth*d);this.za=Math.round(a.origHeight*d)}else{this.ha=a.origWidth;this.za=a.origHeight}this.Aa=a.mainSrc;this.Ca(a.thumbSrc)}};
w_M.prototype.Fd=function(a){var b=a||window.event;if(!(b.keyCode==9)){this.Tf.checked="true";this.Ld!=w_b&&window.clearTimeout(this.Ld);var c=this.hitch(this,function(){if(this.Sd||this.D.src!=this.rb.value){this.Td();this.Ca(this.rb.value)}this.Sd=w_a});this.Ld=window.setTimeout(c,1000)}};w_M.prototype.Nd=function(a){this.Tf.checked=w_c;this.rb.value=a;this.Ca(a)};
w_M.prototype.Wd=function(){this.V.src="img/icon_inprogress.gif";this.V.style.width="200px";this.V.style.height="200px";this.V.style.display="";this.mc.style.display="none";this.Rb.style.display="none"};
w_M.prototype.cg=function(){if(!this.G){this.G=document.createElement("form");this.G.action="imageUpload.do";this.G.method="POST";this.G.target=this.cf.name;this.G.encoding="multipart/form-data";this.G.style.display="none";if(this.ff){var a=document.createElement("input");a.type="hidden";a.name="blogID";a.value=this.ff;this.G.appendChild(a)}var b=document.createElement("input");b.type="hidden";b.name="sectionWidth";b.id="sectionWidth";this.G.appendChild(b);var c=document.createElement("input");c.type=
"hidden";c.name="photoUploadSecurityToken";c.value=this.nh;this.G.appendChild(c);document.body.appendChild(this.G)}var d=this.wd();if(d==-1)d=1600;document.getElementById("sectionWidth").value=d;this.Oa={parent:this.m.parentNode,nextSibling:this.m.nextSibling};this.m.parentNode.removeChild(this.m);this.G.appendChild(this.m)};w_M.prototype.bg=function(){this.G.removeChild(this.m);this.Oa&&this.Oa.nextSibling?this.Oa.parent.insertBefore(this.m,this.Oa.nextSibling):this.Oa.parent.appendChild(this.m)};
w_M.prototype.Td=function(){var a=document.createElement("input");a.type="file";a.name=this.m.name;a.id=this.m.id;a.onchange=this.m.onchange;var b=this.m.nextSibling;b==w_b?this.m.parentNode.appendChild(a):this.m.parentNode.insertBefore(a,b);this.m.parentNode.removeChild(this.m);this.m=a};w_M.prototype.wd=function(){return this.pg==-1&&this.Yf?this.Yf():this.pg};function w_N(){this.usiContainers=[]}var w_Xa=new w_N;
w_N.prototype.Yc=function(a,b,c,d,e,f,g,h){this.usiContainers[a]=new w_M(a,b,eval(c),eval(d),eval(e),f,eval(g),h);return this.usiContainers[a]};w_N.prototype.lc=function(a){return this.usiContainers[a]};w_N.prototype.Ka=function(a){var b=this.lc(a);b&&b.zf&&b.Ka()};var _UploadSimpleImage=w_Xa;w_N.prototype._createUsiContainer=w_N.prototype.Yc;w_N.prototype._getUsiContainer=w_N.prototype.lc;w_N.prototype._channelResultArrived=w_N.prototype.Ka;w_M.prototype._changeImage=w_M.prototype.Vc;
w_M.prototype._imgUrlFileOnChange=w_M.prototype.Ed;w_M.prototype._imgUrlTextOnKeyUp=w_M.prototype.Fd;w_M.prototype._loadInitialUrl=w_M.prototype.Nd;w_M.prototype._loadImageFromUrl=w_M.prototype.Ca;function _singleImageConfig_successfulUploadCallback(a,b,c,d){window.singleImageConfig_thumbImageUrl=a;window.singleImageConfig_imageUrl=b;window.singleImageConfig_imageWidth=c;window.singleImageConfig_imageHeight=d;var e=document.getElementById("shrinkToFitRow");if(e)e.style.visibility="hidden"}function _singleImageConfig_resetCallback(){window.singleImageConfig_imageUrl=w_b;var a=document.getElementById("shrinkToFitRow");if(a)a.style.visibility="visible"}
function _SIV_getScaledContainerWidth(){return document.getElementById("checkShrink").checked?_SIV_getContainerWidth():-1}function _SIV_getContainerWidth(){var a=document.getElementById("sectionId").value,b=150;if(w_z.IsOpenerReachable(window)&&window.opener.document.getElementById(a)&&window.opener.document.getElementById(a).clientWidth>0)b=window.opener.document.getElementById(a).clientWidth;return b}
function _SIV_setConfigurationOptions(){if(window.singleImageConfig_imageUrl==w_b)w_z.N(window,WidgetMessages.SIV_NO_IMAGE,w_z.STATUS_MESSAGE_BAD_CLASS);else{var a=document.forms.config.widgetId.value,b=_SIV_getContainerWidth(),c=document.getElementById("checkShrink").checked,d=window.singleImageConfig_imageWidth,e=window.singleImageConfig_imageHeight;if(c){var f=1;if(d>b){f=b/d;d=b;e=Math.round(e*f)}}var g={originalUrl:window.singleImageConfig_imageUrl,originalWidth:window.singleImageConfig_imageWidth,
originalHeight:window.singleImageConfig_imageHeight,displayUrl:window.singleImageConfig_thumbImageUrl,displayWidth:d,displayHeight:e,sectionWidth:b,shrinkToFit:c,title:document.getElementById("title").value,caption:document.getElementById("imageCaption").value,link:document.getElementById("link").value,securityToken:document.forms.config.securityToken.value};w_z.SaveWidget(g,a,w_L.WIDGET_TYPE_NAME)}};function w_O(a){this.a=a;this.g=a.u()}w_O.successfulUploadCallback=function(a,b,c,d){w_O.vh=a;w_O.Aa=b;w_O.ha=c;w_O.za=d;var e=document.getElementById("shrinkToFitRow");if(e)e.style.visibility="hidden";if(e=document.getElementById("shrinkToFitMessageRow"))e.style.visibility="hidden"};w_O.resetCallback=function(){w_O.Aa=w_b;var a=document.getElementById("shrinkToFitRow");if(a)a.style.visibility="visible";if(a=document.getElementById("shrinkToFitMessageRow"))a.style.visibility="visible"};
w_O.getScaledContainerWidth=function(){return document.getElementById("checkShrink").checked?w_O.getContainerWidth():-1};w_O.getContainerWidth=function(){var a=document.getElementById("sectionId").value,b=600;if(w_z.IsOpenerReachable(window)&&window.opener.document.getElementById(a))b=window.opener.document.getElementById(a).clientWidth;return b};w_O.WIDGET_TYPE_NAME="Header";w_O.prototype.e=function(){return w_O.WIDGET_TYPE_NAME};w_O.prototype.i=function(){return w_a};w_O.prototype.b=function(){return this.a};
w_O.prototype.d=function(a,b){this.a.l(b)};w_O.FilterMap={title:w_A.GetRequiredStringFilter(),description:w_b,imagePlacement:w_b,useImage:w_b,securityToken:w_b};
w_O.ConfigureWidget=function(){var a=document.forms.config.widgetId.value,b=document.forms.config.widgetType.value,c=w_A.ProcessForm(document.forms.config,w_O.FilterMap),d=w_O.getContainerWidth();if(c.success){if(w_O.Aa){var e=w_O.ha,f=w_O.za,g=document.getElementById("checkShrink").checked;if(g){var h=1;if(e>d){h=d/e;e=d;f=Math.round(f*h)}}c.values.originalUrl=w_O.Aa;c.values.originalWidth=w_O.ha;c.values.originalHeight=w_O.za;c.values.displayUrl=w_O.vh;c.values.displayWidth=e;c.values.displayHeight=
f;c.values.sectionWidth=d;c.values.shrinkToFit=g}c.values.securityToken=document.forms.config.securityToken.value;w_z.SaveWidget(c.values,a,b);return w_c}else return w_a};w_O.hideImageOptions=function(){document.getElementById("imageOptions").style.display="none";return w_a};w_O.showImageOptions=function(){document.getElementById("imageOptions").style.display="";return w_a};var _HeaderView=w_O;_HeaderView.prototype=w_O.prototype;_HeaderView._ConfigureWidget=_HeaderView.ConfigureWidget;
_HeaderView._hideImageOptions=_HeaderView.hideImageOptions;_HeaderView._showImageOptions=_HeaderView.showImageOptions;_HeaderView._successfulUploadCallback=_HeaderView.successfulUploadCallback;_HeaderView._resetCallback=_HeaderView.resetCallback;_HeaderView._getScaledContainerWidth=_HeaderView.getScaledContainerWidth;_HeaderView._getContainerWidth=_HeaderView.getContainerWidth;function w_P(a,b){this.a=a;this.g=a.u();this.xh=b}w_P.prototype.b=function(){return this.a};w_P.prototype.e=function(){return this.xh};w_P.prototype.d=function(a,b){a=="configure"&&this.a.l(b)};
w_P.ConfigureWidget=function(a){setFormAndSubmit();var b=document.forms.stuffform.widgetId.value,c=document.forms.stuffform.securityToken.value,d=document.getElementById("textarea"),e=document.getElementById("title"),f=d.value;if(a=="Text")f=f.replace(/\n/g,"<br/>");var g={content:f,title:e.value,securityToken:c};w_z.SaveWidget(g,b,a)};function w_Q(a){w_P.call(this,a,"Text")}w_Q.inherits(w_P);w_Q.ConfigureWidget=function(){w_P.ConfigureWidget("Text")};function w_R(a){w_P.call(this,a,"HTML")}w_R.inherits(w_P);
w_R.ConfigureWidget=function(){w_P.ConfigureWidget("HTML")};var _TextView=w_Q;_TextView.prototype=w_Q.prototype;_TextView._ConfigureWidget=_TextView.ConfigureWidget;var _HTMLView=w_R;_HTMLView.prototype=w_R.prototype;_HTMLView._ConfigureWidget=_HTMLView.ConfigureWidget;function w_S(a){this.a=a}w_S.WIDGET_TYPE_NAME="VideoBar";w_S.prototype.e=function(){return w_S.WIDGET_TYPE_NAME};w_S.prototype.b=function(){return this.a};w_S.prototype.i=function(){return w_a};w_S.prototype.d=function(a,b){a=="configure"&&this.a.l(b)};w_S.prototype.j=function(){var a=this.b();google.load("search","1",{callback:w_Ya.bind(a)});var b=a.K("bar");w_o(b,"videoBar-container")};
function w_Ya(){var a=this.K("bar"),b=this.s().format,c,d,e=this.s().expression;if(b=="VERTICAL"){c=w_a;d=GSvideoBar.THUMBNAILS_MEDIUM;a.style.width="110px"}else if(b=="HORIZONTAL-SMALL"){c=w_c;d=GSvideoBar.THUMBNAILS_SMALL;a.style.width="232px"}else if(b=="HORIZONTAL-MEDIUM"){c=w_c;d=GSvideoBar.THUMBNAILS_MEDIUM;a.style.width="432px"}var f={largeResultSet:w_a,horizontal:c,autoExecuteList:{cycleTime:GSvideoBar.CYCLE_TIME_LONG,cycleMode:GSvideoBar.CYCLE_MODE_RANDOM,executeList:e.split(/,/)},thumbnailSize:d};
new GSvideoBar(a,GSvideoBar.PLAYER_ROOT_FLOATING,f)}var _VideoBarView=w_S;_VideoBarView._Configure=_VideoBarView.Configure;function w_T(a){this.a=a}w_T.WIDGET_TYPE_NAME="NewsBar";w_T.prototype.e=function(){return w_T.WIDGET_TYPE_NAME};w_T.prototype.b=function(){return this.a};w_T.prototype.i=function(){return w_a};w_T.prototype.d=function(a,b){a=="configure"&&this.a.l(b)};w_T.prototype.j=function(){var a=this.b();google.load("search","1",{callback:w_Za.bind(a)});window._uds_nbw_donotrepair=w_c};
function w_Za(){var a=this.K("bar"),b,c=this.s().format;if(c=="VERTICAL")b=w_a;else if(c=="HORIZONTAL-SMALL")b=w_c;else if(c=="HORIZONTAL-MEDIUM")b=w_c;var d=this.s().expression,e=this.s().linkNewWindow,f;f=e==w_c?GSearch.LINK_TARGET_BLANK:GSearch.LINK_TARGET_SELF;var g={largeResultSet:w_a,horizontal:b,linkTarget:f,title:" ",autoExecuteList:{executeList:d.split(/,/)}};if(b){g.autoExecuteList.cycleTime=GSnewsBar.CYCLE_TIME_MEDIUM;g.autoExecuteList.cycleMode=GSnewsBar.CYCLE_MODE_RANDOM}var h=new GSnewsBar(a,
g);window[a.id]=h}var _NewsBarView=w_T;_NewsBarView._Configure=_NewsBarView.Configure;function w__a(a){document.write('<script src="'+a+'" type="text/javascript"><\/script>')}function w_0a(a){var b=window;if(b.addEventListener)b.addEventListener("load",a,w_a);else if(b.attachEvent)b.attachEvent("onload",a);else b.onload=a}function w_U(a){this.a=a}w_U.WIDGET_TYPE_NAME="Slideshow";w_U.prototype.e=function(){return w_U.WIDGET_TYPE_NAME};w_U.prototype.b=function(){return this.a};w_U.prototype.i=function(){return w_a};w_U.prototype.d=function(a,b){a=="configure"&&this.a.l(b)};
w_U.prototype.j=function(){if(!window._UDS_jsapi_bootstrapped){w__a("http://www.google.com/jsapi?source=uds-afspe");window._UDS_jsapi_bootstrapped=w_c}if(!window._UDS_fs_bootstrapped){w__a("http://www.google.com/uds/solutions/slideshow/gfslideshow.js?mode=new");window._UDS_fs_bootstrapped=w_c}var a=this.b(),b=w_1a.bind(a);!window.google||!window.google.feeds?w_2a(b):window.setTimeout(b,0)};function w_2a(a){w_0a(function(){google.load("feeds","1",{callback:a})})}
function w_1a(){var a=this.K("slideshow"),b=this.s().computedFeed,c=this.s().linkNewWindow,d=c?google.feeds.LINK_TARGET_BLANK:google.feeds.LINK_TARGET_SELF,e={linkTarget:d,scaleImages:w_c,fullControlPanel:w_c,fullControlPanelSmallIcons:w_c,pauseOnHover:w_a};if(b.indexOf("http://api.flickr.com")==0)e.thumbnailUrlResolver=w_U.flickrThumbResolver;new GFslideShow(b,a,e)}
w_U.flickrThumbResolver=function(a){var b=google.feeds.getElementsByTagNameNS(a.xmlNode,"http://search.yahoo.com/mrss/","thumbnail"),c=w_b;if(b.length){var d=b[0];c=d.getAttribute("url");if(!c)c=d.firstChild.nodeValue;c=c.replace(/^(.*)_[st]\.([a-zA-Z]+)$/,"$1_m.$2")}return c};var _SlideshowView=w_U;_SlideshowView._Configure=_SlideshowView.Configure;function w_V(){}w_V.Vg={title:w_b,showStyle:w_b,showPosts:w_b,chronological:w_b,frequency:w_b,yearPattern:w_b,monthPattern:w_b,weekPattern:w_b,showWeekEnd:w_b,dayPattern:w_b,securityToken:w_b};w_V.ACTIVE_PREVIEW_CLASS="active-preview";w_V.PREVIEW_CLASS="preview";w_V._SetConfigurationOptions=function(){w_w.ConfigureWidget(w_V.Vg)};
w_V.UpdateFrequency=function(){var a=w_A.GetFieldValue(document.forms.config.showStyle),b={year:a=="HIERARCHY",week:0,month:0,day:0},c=w_A.GetFieldValue(document.forms.config.frequency);if(c=="WEEKLY")b.week=1;else if(c=="MONTHLY")b.month=1;else if(c=="DAILY"){b.month=a=="HIERARCHY";b.day=1}var d=document.forms.config.showPosts;d.disabled=a=="HIERARCHY"?w_a:w_c;for(var e in b){var f=e+"pattern-wrap";w_ta(document.getElementById(f),b[e])}w_V.SelectPreview()};
w_V._Init=function(a){w_V.og=a;w_V.Va=document.getElementById("archive-previews");w_V.hg=w_W(w_V.Va,w_V.PREVIEW_CLASS);w_V.UpdateFrequency();w_V.Reformat("yearly",document.forms.config.yearPattern);w_V.Reformat("monthly",document.forms.config.monthPattern);w_V.Reformat("weekly",document.forms.config.weekPattern);w_V.Reformat("daily",document.forms.config.dayPattern);w_V.UpdateWeekEnd();w_V.UpdatePreviewPostTitles();document.forms.config.chronological.checked&&w_V.ToggleDirection()};
w_V.SelectPreview=function(){var a=w_A.GetFieldValue(document.forms.config.showStyle),b=w_A.GetFieldValue(document.forms.config.frequency),c=0;for(;c<w_V.hg.length;c++){var d=w_V.hg[c];if(w_n(d,a)&&w_n(d,b)){w_o(d,w_V.ACTIVE_PREVIEW_CLASS);w_n(d,"MENU")&&w_V.yg(d)}else{w_p(d,w_V.ACTIVE_PREVIEW_CLASS);w_n(d,"MENU")&&w_V.xg(d)}}};w_V.xg=function(a){var b=a.getElementsByTagName("select"),c=0;for(;c<b.length;c++)b[c].style.display="none"};
w_V.yg=function(a){var b=a.getElementsByTagName("select"),c=0;for(;c<b.length;c++)b[c].style.display="block"};w_V.Reformat=function(a,b){var c=w_V.og[a];for(var d in c){var e=c[d][b.selectedIndex];e&&w_V.ReplaceSample(d,e)}a=="weekly"&&w_V.UpdateWeekEnd()};w_V.ReplaceSample=function(a,b){var c=w_W(w_V.Va,a),d=0;for(;d<c.length;d++){var e=c[d];e.innerHTML=b}};
w_V.UpdateWeekEnd=function(){w_3a(w_V.Va,document.forms.config.showWeekEnd.checked,"weekend");var a=w_V.og.weekly,b=document.getElementById("weekly-menu-select"),c=0,d=document.forms.config.weekPattern.selectedIndex,e=0;for(;e<b.options.length;e++){var f=b.options[e],g=a["weekly"+c][d];c++;var h=a["weekly"+c][d],i=g;if(document.forms.config.showWeekEnd.checked)i=i+" - "+h;f.text=i}};w_V.UpdatePreviewPostTitles=function(){w_3a(w_V.Va,document.forms.config.showPosts.checked,"preview-posts")};
w_V.ToggleDirection=function(){var a=w_V.Va.getElementsByTagName("UL"),b=0;for(;b<a.length;b++){var c=a[b],d=c.ownerDocument.createDocumentFragment();for(;c.hasChildNodes();)d.appendChild(c.lastChild);c.appendChild(d)}var e=w_V.Va.getElementsByTagName("SELECT"),b=0;for(;b<e.length;b++){var f=e[b],g=f.options.length,h=0;for(;h<=g/2;h++){var i=f.options[h].innerHTML,j=g-h-1;f.options[h].innerHTML=f.options[j].innerHTML;f.options[j].innerHTML=i}f.options[0].selected=0}};
function w_3a(a,b,c){var d=w_W(a,c),e=0;for(;e<d.length;e++){var f=d[e];w_m(f,b)}}function w_W(a,b){var c={};c.select=function(d){return d&&w_n(d,b)};return w_q(a,c)}var _ArchiveConfig=w_V;_ArchiveConfig._UpdateFrequency=_ArchiveConfig.UpdateFrequency;_ArchiveConfig._Reformat=_ArchiveConfig.Reformat;_ArchiveConfig._UpdateWeekEnd=_ArchiveConfig.UpdateWeekEnd;_ArchiveConfig._UpdatePreviewPostTitles=_ArchiveConfig.UpdatePreviewPostTitles;_ArchiveConfig._ToggleDirection=_ArchiveConfig.ToggleDirection;function w_X(a){this.a=a;this.g=a.u()}w_X.WIDGET_TYPE_NAME="Label";w_X.prototype.e=function(){return w_X.WIDGET_TYPE_NAME};w_X.prototype.b=function(){return this.a};w_X.prototype.d=function(a,b){this.a.l(b)};function w_Y(){}w_Y.vg={sorting:w_b,title:w_b,securityToken:w_b};w_Y._Configure=function(){w_w.ConfigureWidget(w_Y.vg)};w_Y.HIDDEN_CLASS="hidden";w_Y.PREVIEW_ROOT_ID="preview-wrap";w_Y.PREVIEW_CLASS="preview";
w_Y._ShowPreview=function(a){var b=document.getElementById(w_Y.PREVIEW_ROOT_ID),c=w_W(b,w_Y.PREVIEW_CLASS),d=0;for(;d<c.length;d++)w_o(c[d],w_Y.HIDDEN_CLASS);w_p(document.getElementById(a),w_Y.HIDDEN_CLASS)};var _LabelView=w_X,_LabelConfig=w_Y;function w_Z(a){this.a=a;this.g=a.u()}w_Z.WIDGET_TYPE_NAME="TextList";w_Z.prototype.e=function(){return w_Z.WIDGET_TYPE_NAME};w_Z.prototype.b=function(){return this.a};w_Z.prototype.i=function(){return w_a};w_Z.prototype.d=function(a,b){a=="configure"&&this.a.l(b)};var _TextListView=w_Z;function w__(a){this.a=a;this.g=a.u()}w__.WIDGET_TYPE_NAME="LinkList";w__.prototype.e=function(){return w__.WIDGET_TYPE_NAME};w__.prototype.i=function(){return w_a};w__.prototype.b=function(){return this.a};w__.prototype.d=function(a,b){a=="configure"&&this.a.l(b)};var _LinkListView=w__;_LinkListView.prototype=w__.prototype;function w_0(a){this.a=a;this.g=a.u()}w_0.prototype.e=function(){return"BloggerButton"};w_0.prototype.b=function(){return this.a};w_0.prototype.d=function(a,b){this.a.l(b)};var _BloggerButtonView=w_0;var w_1=function(a){this.a=a;this.g=a.u()};w_1.prototype.e=function(){return"Poll"};w_1.prototype.b=function(){return this.a};w_1.prototype.d=function(a,b){if(a=="configure"){this.savePending=w_a;this.a.l(b)}};w_1.prototype.ra=function(a,b){if(a=="configure")this.savePending=w_a;w_z.ra(b,window)};
w_1.adjustFrameHeight=function(){var a=document.getElementsByTagName("iframe"),b,c=0;for(;b=a[c];c++)if(b.name.indexOf("poll-widget")==0)try{if(window.frames[b.name]&&window.frames[b.name].frames[0]){var d=window.frames[b.name].frames[0].location.hash,e=Number(d.replace("#",""));if(e)b.style.height=e+(document.all?10:0)+"px"}}catch(f){}};window.setInterval(w_1.adjustFrameHeight,500);var _PollView=w_1;function w_2(a){this.a=a;this.g=a.u()}w_2.WIDGET_TYPE_NAME="Navbar";w_2.prototype.e=function(){return w_2.WIDGET_TYPE_NAME};w_2.prototype.b=function(){return this.a};w_2.prototype.i=function(){return w_a};w_2.prototype.d=function(a,b){this.a.l(b)};w_2.FilterMap={navbartype:w_b,securityToken:w_b};w_2.ConfigureWidget=function(){w_w.ConfigureWidget(w_2.FilterMap)};var _NavbarView=w_2;_NavbarView.prototype=w_2.prototype;_NavbarView._ConfigureWidget=_NavbarView.ConfigureWidget;function w_3(a){this.a=a;this.g=a.u()}w_3.WIDGET_TYPE_NAME="Profile";w_3.prototype.i=function(){return w_a};w_3.prototype.e=function(){return w_3.WIDGET_TYPE_NAME};w_3.prototype.b=function(){return this.a};w_3.prototype.d=function(a,b){a=="configure"&&this.a.l(b)};w_3.prototype.j=function(){this.g.rootElement.style.display=this.a.s().isDisplayable==w_a?"none":""};var _ProfileView=w_3;function w_4(a){this.a=a}w_4.prototype.b=function(){return this.a};w_4.prototype.e=function(){return"Feed"};w_4.prototype.d=function(a,b){this.a.l(b)};w_4.prototype.bb=function(){document.location.reload()};w_4.prototype.j=function(){if(this.Na=this.a.X("feedItemListDisplay")){var a=this.b().s(),b=new w_5(a.feedUrl,this.Na,{numItemsShow:a.numItemsShow,showItemAuthor:a.showItemAuthor,showItemDate:a.showItemDate,linkTarget:"_self"});b.Mb()}};
w_4.ug={moduleTitle:w_b,feedUrl:w_A.GetRequiredStringFilter(),numItemsShow:w_A.GetNumberFilter(1,5),showItemDate:w_b,showItemAuthor:w_b,securityToken:w_b};w_4.setConfigurationOptions=function(){w_w.ConfigureWidget(w_4.ug)};function w_5(a,b,c){this.cd=a;this.Na=b;this.L=c}w_5.HTTP_OK=200;w_5.FEED_URL="http://ajax.googleapis.com/ajax/services/feed/load";
w_5.prototype.Mb=function(){var a=new w_.net.Jsonp(w_5.FEED_URL);a.sc(-1);a.send({q:this.cd,num:this.L.numItemsShow,output:"json",v:"1.0"},w_u(this.Je,this))};
w_5.prototype.Je=function(a){w_.dom.ub(this.Na);if(a.responseStatus==w_5.HTTP_OK){var b=w_.dom.r("ul",w_b);this.Na.appendChild(b);var c=0;for(;c<a.responseData.feed.entries.length;c++){var d=a.responseData.feed.entries[c],e=w_.dom.r("li",w_b);b.appendChild(e);var f=w_.dom.r("a",{href:d.link},d.title);f.target=this.L.linkTarget;e.appendChild(w_.dom.r("span",{"class":"item-title"},f));if(this.L.showItemDate){var g=w_.dom.r("span",{"class":"item-date"});g.innerHTML="&nbsp;-&nbsp;"+(new Date(d.publishedDate)).toLocaleDateString();
e.appendChild(g)}if(this.L.showItemAuthor){var h=w_.dom.r("span",{"class":"item-author"});h.innerHTML="&nbsp;-&nbsp;"+d.author;e.appendChild(h)}}this.Uc&&this.Uc(a.responseData.feed)}else{this.Na.appendChild(w_.dom.r("span",w_b,"Error loading feed."));this.uf&&this.uf()}};w_5.prototype.Me=function(a){this.Uc=a};w_5.prototype.ie=function(){this.Uc=this.uf=w_b};w_5.prototype.Nc=function(a){this.cd=a};w_5.prototype.Lc=function(a){this.L=a};var _FeedView=w_4;_FeedView._setConfigurationOptions=w_4.setConfigurationOptions;function w_6(a,b,c){this.dh=b;this.qc=c;this.mg=w_a;this.Yd=new w_B("status-message");this.L={linkTarget:"_blank"};this.na=new w_5(this.cd,a,this.L)}w_6.tg="moduleTitle";w_6.Ch="feedUrl";w_6.pe="step1";w_6.qe="step2";w_6.Db="feedUrl";w_6.prototype.me=function(a,b){this.Yd.xc();w_A.ClearError(w_6.Db);if(a){var c=document.getElementById(w_6.tg);c.value=b.title;this.Lb(b.title)}this.ye()};w_6.prototype.Qe=function(){this.Yd.xc();w_A.SetError(w_6.Db,this.qc._invalidFeedUrl);this.Gb()};
w_6.prototype.Gb=function(){w_l(document.getElementById(w_6.pe),w_c);w_l(document.getElementById(w_6.qe),w_a)};w_6.prototype.ye=function(){w_l(document.getElementById(w_6.pe),w_a);w_l(document.getElementById(w_6.qe),w_c)};w_6.prototype.Lb=function(a){this.dh.innerHTML=a};w_6.prototype.Pc=function(a){this.L.showItemAuthor=a;this.Nb()};w_6.prototype.Qc=function(a){this.L.showItemDate=a;this.Nb()};w_6.prototype.Oc=function(a){this.L.numItemsShow=a;this.Nb()};
w_6.prototype.Nb=function(){this.na.Lc(this.L);this.na.ie();this.na.Mb()};w_6.prototype.Jc=function(a,b,c,d){if(!a||a=="")w_A.SetError(w_6.Db,this.qc._missingFeedUrl);else if(a.length>2083)w_A.SetError(w_6.Db,this.qc._feedUrlTooLong);else{this.Yd.N(this.qc._retrievingFeed);this.Oe(a,b,c);this.mg=d;this.ke(a,w_u(this.fe,this))}};w_6.prototype.ke=function(a,b){if(a.indexOf("http://")!=0)a="http://"+a;var c=new w_.net.Jsonp("http://www.google.com/uds/GlookupFeed");c.sc(-1);c.send({q:a,v:"1.0"},b)};
w_6.prototype.fe=function(a){if(a.responseStatus==200){document.getElementById("feedUrl").value=a.responseData.url;this.na.Nc(a.responseData.url);this.na.Me(w_u(this.me,this,this.mg));this.na.Mb()}else this.Qe()};w_6.prototype.Oe=function(a,b){this.L=b;this.na.Nc(a);this.na.Lc(this.L)};w_6.prototype._GoToStep1=w_6.prototype.Gb;w_6.prototype._RetrieveFeedAndGoToStep2=w_6.prototype.Jc;w_6.prototype._RefreshModuleTitle=w_6.prototype.Lb;w_6.prototype._SetShowItemAuthor=w_6.prototype.Pc;
w_6.prototype._SetShowItemDate=w_6.prototype.Qc;w_6.prototype._SetNumItemsShow=w_6.prototype.Oc;var _FeedConfig=w_6;function w_7(a){this.a=a;this.g=a.u()}w_7.WIDGET_TYPE_NAME="Followers";w_7.prototype.i=function(){return w_a};w_7.prototype.e=function(){return w_7.WIDGET_TYPE_NAME};w_7.prototype.b=function(){return this.a};w_7.prototype.d=function(a,b){if(a=="configure"){this.a.l(b);window.close()}};w_7._openPopup=function(a){a=a.indexOf("?")>0?a+"&":a+"?";a=a+"loginTemplateDirectory=FOLLOWING";window.open(a,"_blank","height=600, width=640, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no")};
w_7.prototype.bb=function(){document.location.reload()};var _FollowersView=w_7;function w_8(a){this.a=a;this.g=a.u()}w_8.prototype.e=function(){return"Gadget"};w_8.prototype.b=function(){return this.a};w_8.prototype.d=function(a,b){this.a.l(b)};w_8.prototype.Ke=function(a){var b=document.getElementById(this.f);if(b)b.style.height=a+"px"};w_8.prototype.Hc=function(){gadgets.rpc.register("resize_iframe",this.Ke);gadgets.rpc.register("set_pref",function(){})};
w_8.prototype.j=function(){if(!w_8.InitializedRpc&&!window.gadgets){var a=document.createElement("script");a.src="http://www.gmodules.com/gadgets/js/rpc.js?c=1";a.type="text/javascript";var b=this;a.onload=function(){b.Hc()};a.onreadystatechange=function(){if(this.readyState=="loaded"||this.readyState=="complete")b.Hc()};document.getElementsByTagName("body")[0].appendChild(a);w_8.InitializedRpc=function(){}}};var _GadgetView=w_8;function _SW_toggleReaderList(a,b){var c=document.getElementById("SW_READER_LIST_"+b),d=document.getElementById("SW_READER_LIST_CLOSED_"+b);if(!a)a=window.event;a.cancelBubble=w_c;a.stopPropagation&&a.stopPropagation();var e=document.onclick;if(window.oldSubscribePopup&&window.oldSubscribePopup!=c){window.oldSubscribePopup.style.display="none";window.oldSubscribePopupUnder.style.visibility="visible"}if(c.style.display=="none"){c.style.display="";window.oldSubscribePopup=c;window.oldSubscribePopupUnder=
d;d.style.visibility="hidden";document.onclick=function(){c.style.display="none";d.style.visibility="visible";if(e)document.onclick=e}}else{c.style.display="none";d.style.visibility="visible";if(e)document.onclick=e}return w_a}function _SW_hideReaderList(a){var b=document.getElementById("SW_READER_LIST_"+a),c=document.getElementById("SW_READER_LIST_UNDER"+a);b.style.display="none";c.style.visibility="visible"}function w_9(a){this.a=a;this.g=a.u()}w_9.WIDGET_TYPE_NAME="Subscribe";w_9.prototype.i=function(){return w_a};
w_9.prototype.e=function(){return w_9.WIDGET_TYPE_NAME};w_9.prototype.b=function(){return this.a};w_9.prototype.d=function(a,b){a=="configure"&&this.a.l(b)};var _SubscribeView=w_9;if(window.jstiming){window.jstiming.ef={};window.jstiming.gh=1;window.jstiming.report=function(a,b,c){var d="";if(window.jstiming.pt){d+="&srt="+window.jstiming.pt;delete window.jstiming.pt}try{d+="&tran="+window.external.tran}catch(e){}var f=a.t,g=f.start;delete f.start;var h=[],i=[];for(var j in f)if(!(j.indexOf("_")==0)){var k=f[j][1];if(k)f[k]&&i.push(j+"."+(f[j][0]-f[k][0]));else g&&h.push(j+"."+(f[j][0]-g[0]))}if(b)for(var l in b)d+="&"+l+"="+b[l];var m=new Image,n=window.jstiming.gh++;window.jstiming.ef[n]=
m;m.onload=m.onerror=function(){delete window.jstiming.ef[n]};m.src=[c?c:"http://csi.gstatic.com/csi","?v=3","&s="+(window.jstiming.sn?window.jstiming.sn:"blogger")+"&action=",a.name,i.length?"&it="+i.join(",")+d:d,"&rt=",h.join(",")].join("");m=w_b}};w_.debug={};w_.debug.errorHandlerWeakDep={protectEntryPoint:function(a){return a}};w_.Disposable=function(){};w_.Disposable.prototype.bd=w_a;w_.Disposable.prototype.dispose=function(){if(!this.bd){this.bd=w_c;this.M()}};w_.Disposable.prototype.M=function(){};w_.dispose=function(a){typeof a.dispose=="function"&&a.dispose()};w_.structs.SimplePool=function(a,b){w_.Disposable.call(this);this.ag=b;this.va=[];this.nf(a)};w_.inherits(w_.structs.SimplePool,w_.Disposable);w_.structs.SimplePool.prototype.Sb=w_b;w_.structs.SimplePool.prototype.Vb=w_b;w_.structs.SimplePool.prototype.Wa=function(a){this.Sb=a};w_.structs.SimplePool.prototype.Ud=function(a){this.Vb=a};w_.structs.SimplePool.prototype.ga=function(){if(this.va.length)return this.va.pop();return this.Xc()};
w_.structs.SimplePool.prototype.Ga=function(a){this.va.length<this.ag?this.va.push(a):this.ad(a)};w_.structs.SimplePool.prototype.nf=function(a){if(a>this.ag)w_d(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));var b=0;for(;b<a;b++)this.va.push(this.Xc())};w_.structs.SimplePool.prototype.Xc=function(){return this.Sb?this.Sb():{}};w_.structs.SimplePool.prototype.ad=function(a){if(this.Vb)this.Vb(a);else if(w_.isFunction(a.dispose))a.dispose();else for(var b in a)delete a[b]};
w_.structs.SimplePool.prototype.M=function(){w_.structs.SimplePool.uc.M.call(this);var a=this.va;for(;a.length;)this.ad(a.pop());delete this.va};w_.events={};w_.events.Event=function(a,b){this.type=a;this.currentTarget=this.target=b};w_.inherits(w_.events.Event,w_.Disposable);w_.events.Event.prototype.M=function(){delete this.type;delete this.target;delete this.currentTarget};w_.events.Event.prototype.ia=w_a;w_.events.Event.prototype.Ha=w_c;w_.events.Event.prototype.stopPropagation=function(){this.ia=w_c};w_.events.Event.prototype.preventDefault=function(){this.Ha=w_a};w_.events.BrowserEvent=function(a,b){a&&this.init(a,b)};w_.inherits(w_.events.BrowserEvent,w_.events.Event);w_.events.BrowserEvent.MouseButton={LEFT:0,MIDDLE:1,RIGHT:2};w_.events.BrowserEvent.Dh=[1,4,2];w_.events.BrowserEvent.prototype.type=w_b;w_.events.BrowserEvent.prototype.target=w_b;w_.events.BrowserEvent.prototype.relatedTarget=w_b;w_.events.BrowserEvent.prototype.offsetX=0;w_.events.BrowserEvent.prototype.offsetY=0;w_.events.BrowserEvent.prototype.clientX=0;
w_.events.BrowserEvent.prototype.clientY=0;w_.events.BrowserEvent.prototype.screenX=0;w_.events.BrowserEvent.prototype.screenY=0;w_.events.BrowserEvent.prototype.button=0;w_.events.BrowserEvent.prototype.keyCode=0;w_.events.BrowserEvent.prototype.charCode=0;w_.events.BrowserEvent.prototype.ctrlKey=w_a;w_.events.BrowserEvent.prototype.altKey=w_a;w_.events.BrowserEvent.prototype.shiftKey=w_a;w_.events.BrowserEvent.prototype.metaKey=w_a;w_.events.BrowserEvent.prototype.$=w_b;
w_.events.BrowserEvent.prototype.init=function(a,b){this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;this.relatedTarget=a.relatedTarget?a.relatedTarget:this.type==w_.events.EventType.MOUSEOVER?a.fromElement:this.type==w_.events.EventType.MOUSEOUT?a.toElement:w_b;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;this.keyCode=a.keyCode||0;this.charCode=a.charCode||(this.type==w_.events.EventType.KEYPRESS?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.$=a;delete this.Ha;delete this.ia};w_.events.BrowserEvent.prototype.stopPropagation=function(){this.ia=w_c;if(this.$.stopPropagation)this.$.stopPropagation();else this.$.cancelBubble=w_c};
w_.events.BrowserEvent.prototype.preventDefault=function(){this.Ha=w_a;if(this.$.preventDefault)this.$.preventDefault();else{this.$.returnValue=w_a;try{this.$.keyCode=-1}catch(a){}}};w_.events.BrowserEvent.prototype.M=function(){w_.events.BrowserEvent.uc.M.call(this);this.$=w_b};w_.events.Listener=function(){};w_.events.Listener.Fg=0;w_.events.Listener.prototype.nc=w_b;w_.events.Listener.prototype.listener=w_b;w_.events.Listener.prototype.proxy=w_b;w_.events.Listener.prototype.src=w_b;w_.events.Listener.prototype.type=w_b;w_.events.Listener.prototype.capture=w_b;w_.events.Listener.prototype.handler=w_b;w_.events.Listener.prototype.key=0;w_.events.Listener.prototype.removed=w_a;w_.events.Listener.prototype.Qb=w_a;
w_.events.Listener.prototype.init=function(a,b,c,d,e,f){if(w_.isFunction(a))this.nc=w_c;else if(a&&a.handleEvent&&w_.isFunction(a.handleEvent))this.nc=w_a;else w_d(Error("Invalid listener argument"));this.listener=a;this.proxy=b;this.src=c;this.type=d;this.capture=!!e;this.handler=f;this.Qb=w_a;this.key=++w_.events.Listener.Fg;this.removed=w_a};
w_.events.Listener.prototype.handleEvent=function(a){if(this.nc)return this.listener.call(this.handler||this.src,a);return this.listener.handleEvent.call(this.listener,a)};w_.events.ma={};w_.events.C={};w_.events.ba={};w_.events.OBJECT_POOL_INITIAL_COUNT=0;w_.events.OBJECT_POOL_MAX_COUNT=600;w_.events.Ua=new w_.structs.SimplePool(w_.events.OBJECT_POOL_INITIAL_COUNT,w_.events.OBJECT_POOL_MAX_COUNT);w_.events.Ua.Wa(function(){return{h:0}});w_.events.Ua.Ud(function(a){a.h=0});w_.events.ARRAY_POOL_INITIAL_COUNT=0;w_.events.ARRAY_POOL_MAX_COUNT=600;w_.events.sa=new w_.structs.SimplePool(w_.events.ARRAY_POOL_INITIAL_COUNT,w_.events.ARRAY_POOL_MAX_COUNT);w_.events.sa.Wa(function(){return[]});
w_.events.sa.Ud(function(a){a.length=0;delete a.sb;delete a.Od});w_.events.HANDLE_EVENT_PROXY_POOL_INITIAL_COUNT=0;w_.events.HANDLE_EVENT_PROXY_POOL_MAX_COUNT=600;w_.events.Lf=new w_.structs.SimplePool(w_.events.HANDLE_EVENT_PROXY_POOL_INITIAL_COUNT,w_.events.HANDLE_EVENT_PROXY_POOL_MAX_COUNT);w_.events.Lf.Wa(function(){var a=function(b){return w_.events.yd.call(a.src,a.key,b)};return a});w_.events.LISTENER_POOL_INITIAL_COUNT=0;w_.events.LISTENER_POOL_MAX_COUNT=600;w_.events.Ig=function(){return new w_.events.Listener};
w_.events.Md=new w_.structs.SimplePool(w_.events.LISTENER_POOL_INITIAL_COUNT,w_.events.LISTENER_POOL_MAX_COUNT);w_.events.Md.Wa(w_.events.Ig);w_.events.EVENT_POOL_INITIAL_COUNT=0;w_.events.EVENT_POOL_MAX_COUNT=600;w_.events.Gg=function(){return new w_.events.BrowserEvent};w_.events.Hg=function(){var a=w_b;if(w_.userAgent.IE){a=new w_.structs.SimplePool(w_.events.EVENT_POOL_INITIAL_COUNT,w_.events.EVENT_POOL_MAX_COUNT);a.Wa(w_.events.Gg)}return a};w_.events.vf=w_.events.Hg();w_.events.hh="on";
w_.events.Pd={};w_.events.Gh="_";
w_.events.listen=function(a,b,c,d,e){if(b)if(w_.isArray(b)){var f=0;for(;f<b.length;f++)w_.events.listen(a,b[f],c,d,e);return w_b}else{var g=!!d,h=w_.events.C;b in h||(h[b]=w_.events.Ua.ga());h=h[b];if(!(g in h)){h[g]=w_.events.Ua.ga();h.h++}h=h[g];var i=w_.getHashCode(a),j,k;if(h[i]){j=h[i];var f=0;for(;f<j.length;f++){k=j[f];if(k.listener==c&&k.handler==e){if(k.removed)break;return j[f].key}}}else{j=h[i]=w_.events.sa.ga();h.h++}var l=w_.events.Lf.ga();l.src=a;k=w_.events.Md.ga();k.init(c,l,a,b,
g,e);var m=k.key;l.key=m;j.push(k);w_.events.ma[m]=k;w_.events.ba[i]||(w_.events.ba[i]=w_.events.sa.ga());w_.events.ba[i].push(k);if(a.addEventListener){if(a==w_.global||!a.Zc)a.addEventListener(b,l,g)}else a.attachEvent(w_.events.Ff(b),l);return m}else w_d(Error("Invalid event type"))};w_.events.listenOnce=function(a,b,c,d,e){if(w_.isArray(b)){var f=0;for(;f<b.length;f++)w_.events.listenOnce(a,b[f],c,d,e);return w_b}var g=w_.events.listen(a,b,c,d,e),h=w_.events.ma[g];h.Qb=w_c;return g};
w_.events.unlisten=function(a,b,c,d,e){if(w_.isArray(b)){var f=0;for(;f<b.length;f++)w_.events.unlisten(a,b[f],c,d,e);return w_b}var g=!!d,h=w_.events.nd(a,b,g);if(!h)return w_a;var f=0;for(;f<h.length;f++)if(h[f].listener==c&&h[f].capture==g&&h[f].handler==e)return w_.events.unlistenByKey(h[f].key);return w_a};
w_.events.unlistenByKey=function(a){if(!w_.events.ma[a])return w_a;var b=w_.events.ma[a];if(b.removed)return w_a;var c=b.src,d=b.type,e=b.proxy,f=b.capture;if(c.removeEventListener){if(c==w_.global||!c.Zc)c.removeEventListener(d,e,f)}else c.detachEvent&&c.detachEvent(w_.events.Ff(d),e);var g=w_.getHashCode(c),h=w_.events.C[d][f][g];if(w_.events.ba[g]){var i=w_.events.ba[g];w_.array.remove(i,b);i.length==0&&delete w_.events.ba[g]}b.removed=w_c;h.Od=w_c;w_.events.jf(d,f,g,h);delete w_.events.ma[a];
return w_c};w_.events.jf=function(a,b,c,d){if(!d.sb)if(d.Od){var e=0,f=0;for(;e<d.length;e++)if(d[e].removed)w_.events.Md.Ga(d[e]);else{if(e!=f)d[f]=d[e];f++}d.length=f;d.Od=w_a;if(f==0){w_.events.sa.Ga(d);delete w_.events.C[a][b][c];w_.events.C[a][b].h--;if(w_.events.C[a][b].h==0){w_.events.Ua.Ga(w_.events.C[a][b]);delete w_.events.C[a][b];w_.events.C[a].h--}if(w_.events.C[a].h==0){w_.events.Ua.Ga(w_.events.C[a]);delete w_.events.C[a]}}}};
w_.events.removeAll=function(a,b,c){var d=0,e=a==w_b,f=b==w_b,g=c==w_b;c=!!c;if(e)w_.object.forEach(w_.events.ba,function(l){var m=l.length-1;for(;m>=0;m--){var n=l[m];if((f||b==n.type)&&(g||c==n.capture)){w_.events.unlistenByKey(n.key);d++}}});else{var h=w_.getHashCode(a);if(w_.events.ba[h]){var i=w_.events.ba[h],j=i.length-1;for(;j>=0;j--){var k=i[j];if((f||b==k.type)&&(g||c==k.capture)){w_.events.unlistenByKey(k.key);d++}}}}return d};
w_.events.getListeners=function(a,b,c){return w_.events.nd(a,b,c)||[]};w_.events.nd=function(a,b,c){var d=w_.events.C;if(b in d){d=d[b];if(c in d){d=d[c];var e=w_.getHashCode(a);if(d[e])return d[e]}}return w_b};w_.events.getListener=function(a,b,c,d,e){var f=!!d,g=w_.events.nd(a,b,f);if(g){var h=0;for(;h<g.length;h++)if(g[h].listener==c&&g[h].capture==f&&g[h].handler==e)return g[h]}return w_b};
w_.events.hasListener=function(a,b,c){var d=w_.getHashCode(a),e=w_.events.ba[d];if(e){var f=w_.isDef(b),g=w_.isDef(c);if(f&&g){var h=w_.events.C[b];return!!h&&!!h[c]&&d in h[c]}else return f||g?w_.array.some(e,function(i){return f&&i.type==b||g&&i.capture==c}):w_c}return w_a};w_.events.expose=function(a){var b=[];for(var c in a)a[c]&&a[c].id?b.push(c+" = "+a[c]+" ("+a[c].id+")"):b.push(c+" = "+a[c]);return b.join("\n")};
w_.events.EventType={CLICK:"click",DBLCLICK:"dblclick",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEMOVE:"mousemove",SELECTSTART:"selectstart",KEYPRESS:"keypress",KEYDOWN:"keydown",KEYUP:"keyup",BLUR:"blur",FOCUS:"focus",DEACTIVATE:"deactivate",FOCUSIN:w_.userAgent.IE?"focusin":"DOMFocusIn",FOCUSOUT:w_.userAgent.IE?"focusout":"DOMFocusOut",CHANGE:"change",SELECT:"select",SUBMIT:"submit",LOAD:"load",UNLOAD:"unload",ERROR:"error",HELP:"help",RESIZE:"resize",
SCROLL:"scroll",READYSTATECHANGE:"readystatechange",CONTEXTMENU:"contextmenu"};w_.events.Ff=function(a){if(a in w_.events.Pd)return w_.events.Pd[a];return w_.events.Pd[a]=w_.events.hh+a};w_.events.fireListeners=function(a,b,c,d){var e=1,f=w_.events.C;if(b in f){f=f[b];if(c in f){f=f[c];var g=w_.getHashCode(a);if(f[g]){var h=f[g];if(h.sb)h.sb++;else h.sb=1;try{var i=h.length,j=0;for(;j<i;j++){var k=h[j];if(k&&!k.removed)e&=w_.events.fireListener(k,d)!==w_a}}finally{h.sb--;w_.events.jf(b,c,g,h)}}}}return Boolean(e)};
w_.events.fireListener=function(a,b){var c=a.handleEvent(b);a.Qb&&w_.events.unlistenByKey(a.key);return c};w_.events.getTotalListenerCount=function(){return w_.object.R(w_.events.ma)};
w_.events.dispatchEvent=function(a,b){if(w_.isString(b))b=new w_.events.Event(b,a);else if(b instanceof w_.events.Event)b.target=b.target||a;else{var c=b;b=new w_.events.Event(b.type,a);w_.object.extend(b,c)}var d=1,e,f=b.type,g=w_.events.C;if(!(f in g))return w_c;g=g[f];var h=w_c in g,i=w_a in g;if(h){e=[];var j=a;for(;j;j=j.rd())e.push(j);var k=e.length-1;for(;!b.ia&&k>=0;k--){b.currentTarget=e[k];d&=w_.events.fireListeners(e[k],b.type,w_c,b)&&b.Ha!=w_a}}if(i)if(h){var k=0;for(;!b.ia&&k<e.length;k++){b.currentTarget=
e[k];d&=w_.events.fireListeners(e[k],b.type,w_a,b)&&b.Ha!=w_a}}else{var l=a;for(;!b.ia&&l;l=l.rd()){b.currentTarget=l;d&=w_.events.fireListeners(l,b.type,w_a,b)&&b.Ha!=w_a}}return Boolean(d)};w_.events.protectBrowserEventEntryPoint=function(a,b){w_.events.yd=a.protectEntryPoint(w_.events.yd,b)};
w_.events.yd=function(a,b){if(!w_.events.ma[a])return w_c;var c=w_.events.ma[a],d=c.type,e=w_.events.C;if(!(d in e))return w_c;e=e[d];var f;if(w_.userAgent.IE){var g=b||w_.getObjectByName("window.event"),h=w_c in e;if(h){if(w_.events.$g(g))return w_c;w_.events.bh(g)}w_.getHashCode(c.src);var i=w_.events.vf.ga();i.init(g,this);f=w_c;try{if(h){var j=w_.events.sa.ga(),k=i.currentTarget;for(;k;k=k.parentNode)j.push(k);var l=j.length-1;for(;!i.ia&&l>=0;l--){i.currentTarget=j[l];f&=w_.events.fireListeners(j[l],
d,w_c,i)}var l=0;for(;!i.ia&&l<j.length;l++){i.currentTarget=j[l];f&=w_.events.fireListeners(j[l],d,w_a,i)}}else f=w_.events.fireListener(c,i)}finally{if(j){j.length=0;w_.events.sa.Ga(j)}i.dispose();w_.events.vf.Ga(i)}return f}var m=new w_.events.BrowserEvent(b,this);try{f=w_.events.fireListener(c,m)}finally{m.dispose()}return f};w_.events.bh=function(a){var b=w_a;if(a.keyCode==0)try{a.keyCode=-1;return}catch(c){b=w_c}if(b||a.returnValue==undefined)a.returnValue=w_c};
w_.events.$g=function(a){return a.keyCode<0||a.returnValue!=undefined};w_.events.EventTarget=function(){};w_.inherits(w_.events.EventTarget,w_.Disposable);w_.events.EventTarget.prototype.Zc=w_c;w_.events.EventTarget.prototype.Rd=w_b;w_.events.EventTarget.prototype.rd=function(){return this.Rd};w_.events.EventTarget.prototype.addEventListener=function(a,b,c,d){w_.events.listen(this,a,b,c,d)};w_.events.EventTarget.prototype.removeEventListener=function(a,b,c,d){w_.events.unlisten(this,a,b,c,d)};
w_.events.EventTarget.prototype.dispatchEvent=function(a){return w_.events.dispatchEvent(this,a)};w_.events.EventTarget.prototype.M=function(){w_.events.EventTarget.uc.M.call(this);w_.events.removeAll(this);this.Rd=w_b};var w_$={};w_$.util={};w_$.util.logging={};w_$.util.logging.PROD_BLOGGER_HOST_URL="www.blogger.com";w_$.util.logging.Rf=w_$.util.logging.PROD_BLOGGER_HOST_URL;w_$.util.logging.setHostPort=function(a){w_$.util.logging.Rf=a};w_$.util.logging.Zf="/nc";w_$.util.logging.setLoggingPath=function(a){w_$.util.logging.Zf=a};w_$.util.logging.ParamKey={EVENT_TYPE:"e",SOURCE_PAGE:"pg",DURATION:"dur"};w_$.util.logging.EventType={UNLOAD_PAGE:"u",CLICK:"c"};w_$.util.logging.SourcePage={EXPLORE:"be",BLOG:"blog",POST:"post"};
w_$.util.logging.formatId=function(a,b){if(a)return b?a+":"+b:a;return""};w_$.util.logging.lg=w_a;w_$.util.logging.setReferredFromExplore=function(a){w_$.util.logging.lg=a};w_$.util.logging.isReferredFromExplore=function(){return w_$.util.logging.lg};w_$.util.logging.ah=function(a,b,c){if(a){var d=w_.Uri.parse(a),e=d.mb().toLowerCase(),f=d.xa();if(f==c){if(e==w_$.util.logging.PROD_BLOGGER_HOST_URL)return w_c;if(b.indexOf(w_$.util.logging.PROD_BLOGGER_HOST_URL)<0)return w_c}}return w_a};
w_$.util.logging.log=function(a){var b=w_$.util.logging.Rf+w_$.util.logging.Zf,c=w_.Uri.parse(b),d=w_a;for(var e in a){d=w_c;c.rc(e,a[e])}if(d){(new Image).src=c.toString();return c}return w_b};w_$.util.logging.logWithParameterMap=function(a){if(!w_$.util.logging.Da[a])return w_b;return w_$.util.logging.log(w_$.util.logging.Da[a])};w_$.util.logging.Da={};
w_$.util.logging.addParametersToMap=function(a,b){var c=w_$.util.logging.Da[a];if(c)for(var d in b){if(c[d])return w_b}else{c={};w_$.util.logging.Da[a]=c}for(var d in b)c[d]=b[d];return w_$.util.logging.Da[a]};w_$.util.logging.clearParameterMap=function(a){delete w_$.util.logging.Da[a]};w_$.util.logging.Ib="paramMapPageUnload_InternalUseOnly";w_$.util.logging.addToPageUnloadParameterMap=function(a){return w_$.util.logging.addParametersToMap(w_$.util.logging.Ib,a)};w_$.util.logging.Ma={};
w_$.util.logging.registerEvent=function(a){if(w_$.util.logging.Ma[a])return-1;w_$.util.logging.Ma[a]=w_.now();return w_$.util.logging.Ma[a]};w_$.util.logging.getEventElapse=function(a){if(!w_$.util.logging.Ma[a])return-1;return w_.now()-w_$.util.logging.Ma[a]};w_$.util.logging.clearEvent=function(a){delete w_$.util.logging.Ma[a]};w_$.util.logging.yc="eventPageLoading_InternalUseOnly";w_$.util.logging.getDurationMillis=function(){return w_$.util.logging.getEventElapse(w_$.util.logging.yc)};
w_$.util.logging.pageOnBeforeUnload=function(){if(w_$.util.logging.Da[w_$.util.logging.Ib]==undefined)return w_b;var a={};a[w_$.util.logging.ParamKey.DURATION]=w_$.util.logging.getDurationMillis();w_$.util.logging.addToPageUnloadParameterMap(a);return w_$.util.logging.logWithParameterMap(w_$.util.logging.Ib)};
w_$.util.logging.initialize=function(a,b,c){w_$.util.logging.setHostPort(a);w_$.util.logging.setReferredFromExplore(w_$.util.logging.ah(b,a,"/explore"));w_$.util.logging.clearEvent(w_$.util.logging.yc);w_$.util.logging.registerEvent(w_$.util.logging.yc);w_$.util.logging.clearParameterMap(w_$.util.logging.Ib);c&&w_.events.listen(window,"beforeunload",function(){w_$.util.logging.pageOnBeforeUnload()})};w_$.explore={};w_$.explore.loggingcommons={};w_$.explore.loggingcommons.ParamKey={POSITION:"pos",LIST_ID:"fid",LIST_SIZE:"lsz",EXPERIMENT:"ex",ITEM_ID:"iid",ITEM_URL:"url",ITEM_SCORE:"sco",ITEM_DTIME:"dt"};
w_$.explore.loggingcommons.addToPageUnloadParameterMap=function(a,b,c,d,e){var f={};f[w_$.util.logging.ParamKey.EVENT_TYPE]=w_$.util.logging.EventType.UNLOAD_PAGE;f[w_$.util.logging.ParamKey.SOURCE_PAGE]=a;if(b)f[w_$.explore.loggingcommons.ParamKey.LIST_ID]=b;if(c)f[w_$.explore.loggingcommons.ParamKey.EXPERIMENT]=c;var g=w_$.util.logging.formatId(d,e);if(g)f[w_$.explore.loggingcommons.ParamKey.ITEM_ID]=g;return w_$.util.logging.addToPageUnloadParameterMap(f)};w_$.explore.blogpostpages={};w_$.explore.blogpostpages.logging={};w_$.explore.blogpostpages.logging.initForExploreLogging=function(a,b,c,d,e){w_$.util.logging.initialize(c,b,w_c);if(w_$.util.logging.isReferredFromExplore()){var f=w_b,g=w_b;a?w_$.explore.blogpostpages.logging.Bg(f,g,d,e):w_$.explore.blogpostpages.logging.Ag(f,g,d)}};w_$.explore.blogpostpages.logging.Ag=function(a,b,c){return w_$.explore.loggingcommons.addToPageUnloadParameterMap(w_$.util.logging.SourcePage.BLOG,a,b,c,w_b)};
w_$.explore.blogpostpages.logging.Bg=function(a,b,c,d){return w_$.explore.loggingcommons.addToPageUnloadParameterMap(w_$.util.logging.SourcePage.POST,a,b,c,d)};w_.exportSymbol("BLOG_InitExploreLoggingOnBlogPostPages",w_$.explore.blogpostpages.logging.initForExploreLogging);
