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_e(a,b){a.addEventListener?a.addEventListener("load",b,w_a):a.attachEvent("onload",b)}function w_f(a,b){return a.className&&a.className.indexOf(b)!=-1?a:a.parentNode?w_f(a.parentNode,b):w_b}function w_ba(){window.jstiming.load.tick("prt");window.tickAboveFold&&window.tickAboveFold(this)}
function w_ca(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_f(d[e],"post")!=w_b&&w_e(d[e],w_ba);w_e(window,w_aa);window.addEventListener?window.addEventListener("beforeunload",w_g,w_a):window.attachEvent("onbeforeunload",w_g)}function w_g(){window.jstiming.report(window.jstiming.load)}
var _attachCsiOnload=w_ca;var w_da=w_a;function w_h(a){try{w_d(a)}catch(b){w_ea(b)}}function w_ea(a,b){var c="Javascript exception: "+(b?b:"")+" "+a;if(w_fa())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_ga(w_ea.caller);w_ha(c+"\n"+d,1)}var w_ia=/function (\w+)/;function w_ja(a){var b=w_ia.exec(String(a));if(b)return b[1];return""}
function w_ga(a){try{if(!w_fa()&&!(w_i("safari")||w_i("konqueror"))&&w_i("mozilla"))return Error().stack;if(!a)return"";var b="- "+w_ja(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_ga(a.caller);return b}catch(e){return"[Cannot get stack trace]: "+e+"\n"}}var w_ka,w_j=w_b,w_k=w_a;
function w_la(){if((w_j==w_b||w_j.closed)&&!w_k)try{w_k=w_c;w_j=window.open("","debug","width=700,height=500,toolbar=no,resizable=yes,scrollbars=yes,left=16,top=16,screenx=16,screeny=16");w_j.blur();w_j.document.open();w_k=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_ma(a)}catch(b){}}
function w_ha(a,b){if(w_da){try{var c=(new Date).getTime()-w_ka,d="["+c+"] "+w_na(a).replace(/\n/g,"<br>")+"<br>";if(b==1){d="<font color=#ff0000><b>Error: "+d+"</b></font>";w_j.focus()}}catch(e){}w_ma(d)}else typeof w_l!="undefined"&&w_l(w_na(a))}function w_ma(a){if(!!w_da)try{w_la();w_j.document.write(a);w_j.scrollTo(0,1000000)}catch(b){}};function w_i(a){if(a in w_m)return w_m[a];return w_m[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}var w_m={};function w_fa(){return w_i("msie")&&!window.opera}function w_oa(a){if(typeof Error!="undefined")w_d(new Error(a||"Assertion Failed"));else w_d(a)}function w_pa(a){a=a||"Assertion failed";typeof w_h!="undefined"&&w_h(a+"\n");w_oa(a)}function w_n(a,b){if(!a){b=b||"Assertion failed";w_pa(b)}}function w_o(a,b){a.style.display=b?"":"none"}
function w_qa(a,b){a.style.display=b?"block":"none"}function w_p(a,b){a.style.display=b?"inline":"none"}function w_q(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_r(a,b){w_q(a,b)||(a.className+=" "+b)}
function w_s(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_t(a,b){var c=[],d=a.firstChild;for(;d;d=d.nextSibling)w_ra(d,b,c);return c}function w_ra(a,b,c){b.select(a)&&c.push(a);var d=a.firstChild;for(;d;d=d.nextSibling)w_ra(d,b,c)}var w_sa=/&/g,w_ta=/</g,w_ua=/>/g;
function w_na(a){if(!a)return"";return a.replace(w_sa,"&amp;").replace(w_ta,"&lt;").replace(w_ua,"&gt;").replace(w_va,"&quot;")}var w_va=/\"/g;function w_wa(a){return document.getElementById(a)}function w_xa(a){return document.all[a]}var w_ya=document.getElementById?w_wa:w_xa;
function w_l(a){try{if(window.parent!=window&&window.parent.log){window.parent.log(window.name+"::"+a);return}}catch(b){}var c=w_ya("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_u(){}w_u.raise=function(a){if(typeof Error!="undefined")w_d(new Error(a||"Assertion Failed"));else w_d(a)};w_u.fail=function(a){a=a||"Assertion failed";typeof w_h=="undefined"||w_h(a+"\n");w_u.raise(a)};w_u.isTrue=function(a,b){if(!a){if(b===undefined)b="Assertion failed";w_u.fail(b)}};w_u.equals=function(a,b,c){if(a!=b){if(c===undefined)c="AS_Assert.equals failed: <"+a+"> != <"+b+">";w_u.fail(c)}};
w_u.typeOf=function(a,b,c){if(!(typeof a==b)){if(a||a=="")try{if(b==w_u.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_u.fail(c)}};w_u.TYPE_MAP={string:String,number:Number,"boolean":Boolean};
w_u.numArgs=function(a,b){var c=w_u.numArgs.caller;if(c&&c.arguments.length!=a){if(b===undefined)b=c.name+" expected "+a+" arguments  but received "+c.arguments.length;w_u.fail(b)}};var w_v;function w_za(){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_v=c;break}catch(d){}}if(!w_v)w_d(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed."))}}w_za();
function w_Aa(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_Ba(a,c)}function w_Ba(a,b){try{a.send(b)}catch(c){w_l("XMLHttpSend failed "+c.toString()+"<br>"+c.stack);w_d(c)}};var w_Ca=0,w_w=0;if("undefined"==typeof w_l)w_l=function(){};function w_Da(a){var b=-1;try{b=a.status}catch(c){}return b}function w_Ea(a){var b=w_b;try{b=a.statusText}catch(c){}return b}
function w_Fa(a,b,c,d){if(a.readyState==4)try{var e=w_c;if(d)try{e=!(w_a===d(a))}catch(f){w_l("Message ("+b+") handling failed: "+f);w_d(f)}var g=w_Da(a);if(200===g){w_l("Message ("+b+") received after "+((new Date).getTime()-c)+" ms");try{var h=(new Date).getTime();e&&a.responseText.length&&eval(a.responseText);w_l("Message ("+b+") processing took "+((new Date).getTime()-h)+" ms")}catch(f){w_l("Message ("+b+") processing failed: "+f);alert(f+"\n"+f.stack+"\n\n"+a.responseText);w_d(f)}}else 204==
g?w_l("Message ("+b+") received after "+((new Date).getTime()-c)+" ms"):w_l("Message ("+b+") failed with response "+g+" "+w_Ea(a)+" after "+((new Date).getTime()-c)+" ms.")}finally{--w_w}}
function w_Ga(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_Ca,j=w_v?new ActiveXObject(w_v):new XMLHttpRequest,k=(new Date).getTime(),l=function(){w_Fa(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_l("Message ("+i+") sent: POST <tt>"+m+"</tt>.");++w_w;w_Aa(j,a,d,l)};var w_Ha=this;String.prototype.Cd=function(a){return this.indexOf(a)==0};String.prototype.Ye=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_Ha);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_x(a,b){var c=a.Ac||[];c=c.concat(Array.prototype.slice.call(arguments,2));if(typeof a.Gb!="undefined")b=a.Gb;if(typeof a.Fb!="undefined")a=a.Fb;var d=function(){var e=c.concat(Array.prototype.slice.call(arguments));return a.apply(b,e)};d.Ac=c;d.Gb=b;d.Fb=a;return d}Function.prototype.bind=function(a){return w_x.apply(w_b,[this,a].concat(Array.prototype.slice.call(arguments,1)))};Function.prototype.partial=function(){return w_x.apply(w_b,[this,w_b].concat(Array.prototype.slice.call(arguments)))};
Function.prototype.inherits=function(a){var b=function(){};this.ec=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_y(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.We=f;if(!w_y.IsValidDisplayMode(f))w_d("bad display mode: "+f)}else this.We=w_y.DISPLAY_MODE_NONE;this.isNew=w_a}w_y.IsValidDisplayMode=function(a){return a==w_y.DISPLAY_MODE_SNIPPET||a==w_y.DISPLAY_MODE_FULL||a==w_y.DISPLAY_MODE_LAYOUT||a==w_y.DISPLAY_MODE_NONE};w_y.DISPLAY_MODE_FULL="displayModeFull";w_y.DISPLAY_MODE_SNIPPET="displayModeSnippet";
w_y.DISPLAY_MODE_LAYOUT="displayModeLayout";w_y.DISPLAY_MODE_NONE="displayModeNone";function w_z(a){this.mg=w_c;this.Hd=new w_A(this);this.e=a;this.Ea=w_b}w_z.DATA_NAMESPACE_PREFIX="data";w_z.ACTION_NAMESPACE_PREFIX="b";w_z.INTERPRET_ATTR_NAMESPACE_PREFIX="expr";w_z.prototype.Rd=function(){var a=this.e.rootElement;a.innerHTML="";this.Ya()==w_y.DISPLAY_MODE_LAYOUT?a.appendChild(this.yb("layout")):a.appendChild(this.yb("main"));return a};w_z.prototype.xe=function(a){this.Ea=a};w_z.prototype.q=function(){return this.e};
w_z.prototype.R=function(a){return document.getElementById(this.e.instanceId+"_"+a)};w_z.prototype.J=function(a){var b=this.R(a);if(!b)w_d("did not find element for id "+a);return b};w_z.prototype.p=function(){return this.e.data};w_z.prototype.vc=function(a){return this.e.data=a};w_z.prototype.he=function(){return this.e.isNew};w_z.prototype.ve=function(a){return this.e.isNew=a};
w_z.prototype.yb=function(a,b){var c=b;c||(c=this.p());c||(c={});var d=new w_B;d.Xa("widget",this.Xd());d.Md(c);var e=this.mc(a,d,w_B.DEFAULT_DICTIONARY_KEY);return this.lc(e,document)};w_z.prototype.Xd=function(){var a={};a.type=this.Ea.d();a.instanceId=this.e.instanceId;a.sectionId=this.e.sectionId;a.actionUrl=w_C.Bc;var b=w_C.Xe+"&widgetType="+this.Ea.d()+"&widgetId="+this.e.instanceId+"&action="+w_C.EDIT_WIDGET_ACTION;a.quickEditUrl=b;return a};
w_z.prototype.mc=function(a,b,c){var d=this.be(a);w_u.isTrue(d!=w_b,"Markup chunk not found for "+a);var e=d.varName?d.varName:"",f=b.p(c);w_u.isTrue(f!=w_b,"No data found for call: "+c);b.Xa(e,f);var g=this.$a(d.rootNode,b);b.rc(e);return g};
w_z.prototype.$a=function(a,b){w_u.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.oe(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_z.ACTION_NAMESPACE_PREFIX)c=this.fe(a,b);else if(a.prefix==w_z.DATA_NAMESPACE_PREFIX)c=this.ee(a,b);if(a.hasChildNodes()){var i=
a.ownerDocument.createDocumentFragment();for(;a.hasChildNodes();){var j=a.firstChild,k=this.$a(j,b);i.appendChild(k);j!=k&&a.removeChild(j)}c.appendChild(i)}return c};w_z.prototype.oe=function(a,b){if(a.prefix==w_z.INTERPRET_ATTR_NAMESPACE_PREFIX){var c=a.ownerDocument.createAttribute(a.localName||a.baseName),d=this.Hd.ic(a.nodeValue,b);c.nodeValue=d;return c}return a};w_z.prototype.fe=function(a,b){var c=a.localName||a.baseName,d=this.tc(c,a,b);return this.Fe(d)};
w_z.prototype.Fe=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_z.prototype.vb=function(a,b){var c=this.ab(a);return b.p(c[1])};
w_z.prototype.ee=function(a,b){w_u.isTrue(a!=w_b,"Null element");w_u.isTrue(b!=w_b,"Null data");if(a.prefix!=w_z.DATA_NAMESPACE_PREFIX)return a;var c=this.vb(a.tagName,b),d=""+(c==w_b?"":c),e=document.createElement("DIV");e.innerHTML=d;var f=this.Za(e);return this.lc(f,a.ownerDocument,w_c)};w_z.prototype.ab=function(a){var b=a.split(":",2);b.length==1&&b.unshift("");b[0]=b[0].toLowerCase();return b};
w_z.prototype.tc=function(a,b,c){var d="_WidgetBinding_"+a;if(this.Hd[d])return this.Hd[d](b,c);if(this.Ea[d])return this.Ea[d](b,c);w_u.isTrue(w_a,"could not find binding "+a);return w_b};
w_z.prototype.ne=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_u.raise("Unable to find XML parser");return b.documentElement};
w_z.prototype.Za=function(a){var b=a.ownerDocument.createDocumentFragment();for(;a.hasChildNodes();)b.appendChild(a.firstChild);return b};
w_z.prototype.lc=function(a,b,c){w_u.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.Za(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_u.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_z.prototype.fa=function(a,b){var c=this.Ea,d=function(e){return c.Wa?c.Wa(e):w_c};w_C.fa(a,b,this.e.instanceId,this.Ea.d(),d)};w_z.prototype.Ya=function(){return this.e.We};w_z.prototype.be=function(a){if(!a)return w_b;var b=w_C.Ed[a];b||(b=this.e.markups[a]);if(!b)return w_b;if(!b.parsedTemplate||!b.parsedTemplate.ownerDocument)this.me(b);b.parsedTemplate||w_u.raise("Parsing failed for "+a);b.rootNode=b.parsedTemplate.cloneNode(w_c);return b};
w_z.prototype.me=function(a){if(!a)return w_b;var b="<?xml version='1.0'?><markuproot xmlns:"+w_z.DATA_NAMESPACE_PREFIX+"='urn:ns1'  xmlns:"+w_z.ACTION_NAMESPACE_PREFIX+"='urn:ns2' xmlns:"+w_z.INTERPRET_ATTR_NAMESPACE_PREFIX+"='urn:ns3'  xmlns='http://www.w3.org/1999/xhtml'>"+a.template+"</markuproot>\n",c=this.ne(b);a.parsedTemplate=this.Za(c);return a};
w_z.ConfigureWidget=function(a,b){b||(b="config");var c=document.forms[b].widgetId.value,d=document.forms[b].widgetType.value,e=w_D.ProcessForm(document.forms[b],a);e.success&&w_C.SaveWidget(e.values,c,d)};function w_C(){}w_C.Init=function(a,b,c){w_C.Va={};w_C.Xe=a;w_C.Bc=b;w_C.Ug=c;w_C.kf=w_b;if(!w_C.Ed)w_C.Ed={}};w_C.TrapClicks=function(a){var b=w_C.CreateTransparentClickTrappingDiv(a.document);document.body.appendChild(b)};w_C._SetupPreview=function(){w_C.TrapClicks(window)};
w_C.NEW_WIDGET_WINDOW_NAME="chooseWidget";w_C.CHOOSE_WIDGET_ACTION="chooseWidget";w_C.EDIT_WIDGET_ACTION="editWidget";w_C.GetCallbackUrl=function(){return w_C.Bc};w_C.SetPageActionUrl=function(a,b){w_C.vd=a;w_C.Cg=b};w_C.GetPageActionUrl=function(){return w_C.vd};w_C.SetWidgetRefreshUrl=function(a){w_C.Pg=a};w_C.GetWidgetRefreshUrl=function(){return w_C.Pg};w_C._SetDataContext=function(a){w_C.kf=a};w_C._SetSystemMarkup=function(a){w_C.Ed=a};
w_C._RegisterWidget=function(a,b,c){var d=new w_z(b);c||(c=window[a]);var e=new c(d);d.xe(e);w_C.Va[b.instanceId]=e;w_C.DisplayWidget(e);return e};w_C._RegisterNewWidget=function(a,b,c){var d=w_C._RegisterWidget(a,b,c),e=d.b();e.ve(w_c);return d};w_C.DisplayWidget=function(a,b){var c=a.b();if(!(c.Ya()==w_y.DISPLAY_MODE_NONE)){if(b||a.h&&a.h())c.Rd();c.Ya()==w_y.DISPLAY_MODE_FULL&&a.i&&a.i();a.b().mg=w_a}};w_C.GetWidget=function(a){if(w_C.Va)return w_C.Va[a];return w_b};
w_C._PopupPaneFromParams=function(a,b,c,d,e){var f="";if(d)f="&widgetId="+d;var g=w_C.Xe+"&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_C._PopupConfig=function(a){var b=a.getAttribute("id"),c=w_C.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_C._PopupPaneFromParams(w_C.EDIT_WIDGET_ACTION,a.parentNode.getAttribute("id"),a.getAttribute("widgetType"),b,e);if(c)c.b().configWin=f;return w_a};
w_C._PopupToolbox=function(a){w_C._PopupPaneFromParams(w_C.CHOOSE_WIDGET_ACTION,a.parentNode.getAttribute("id"),a.getAttribute("widgetType"),a.getAttribute("id"),w_C.NEW_WIDGET_WINDOW_NAME);return w_a};w_C.DeleteWidgetFromPage=function(a,b){w_C.K(b,b.LayoutsMessages.DELETING,w_C.STATUS_MESSAGE_PENDING_CLASS);w_C.RunPageAction("delete",{},a,b)};w_z.prototype.re=function(a,b){w_C.K(b,b.LayoutsMessages.SAVING,w_C.STATUS_MESSAGE_PENDING_CLASS);this.fa("configure",a)};
w_C.SaveNewWidget=function(a,b,c){var d=document.getElementById("sectionId").value;a.sectionid=d;w_C.K(c,c.LayoutsMessages.SAVING,w_C.STATUS_MESSAGE_PENDING_CLASS);w_C.RunPageAction("addnew",a,"",b)};w_C.SaveWidget=function(a,b,c){w_n(c!=w_b,"no type");var d=_WidgetManager._GetWidget(b);w_n(d!=w_b,"no widget for "+b);d.b().he()?w_C.SaveNewWidget(a,c,window):d.a.re(a,window)};w_C._RunInitialAction=function(a){var b=w_C._GetWidget(a);b&&b.b().fa("initial")};
w_C.fa=function(a,b,c,d,e){w_C.RunAction(w_C.Bc,a,b,c,d,e)};w_C.RunPageAction=function(a,b,c,d,e){if(w_C.vd){b.pageToken=w_C.Cg;w_C.RunAction(w_C.vd,a,b,c,d,e)}else w_l("RunPageAction error: pageActionUrl_ is undefined.  widgetid: "+c+" action: "+a)};
w_C.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_Ga(a,g,new w_Ia(f))};w_C.SetConfigWin=function(a,b){if(!!a){var c=w_C.GetWidget(a);if(!!c)c.b().configWin=b}};
w_C.CloseIfNoPendingMessages=function(a,b){w_w==0?window.setTimeout(function(){a.close()},b):window.setTimeout(function(){w_C.CloseIfNoPendingMessages(a,b)},200)};w_C._KillPopupDelay=function(a,b){if(!!a){w_C.CloseIfNoPendingMessages(a,100);w_C.UpdateEditorStatus(a,b)}};w_C.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_C.c=function(a,b,c){var d=w_C.Va[a];if(c.errors!=w_b){var e=d?d.b().configWin:w_b;e||(e=window);w_C.K(e,c.errors,w_C.STATUS_MESSAGE_BAD_CLASS);d&&d.na?d.na(b,c):w_C.na(c,e)}else{w_n(d!=w_b,"no widget for "+a);if(b=="initial"){d.b().vc(c);w_C.DisplayWidget(d,w_c)}else d.c(b,c)}};w_C.na=function(a,b){var c=a["error-details"];for(var d in c)w_D.SetError(d,c[d],b.document)};
w_z.prototype.k=function(a){w_C.K(this.configWin,a["status-message"],w_C.STATUS_MESSAGE_GOOD_CLASS);w_C.FinishPopupWork(this.e.instanceId,"_OnWidgetConfigured",function(b){window.opener._WidgetManager._OnWidgetConfigured(b,a)})};w_C._OnWidgetConfigured=function(a,b){window.parent&&window.parent.editor&&b?w_C.OnWidgetConfiguredWithData(a,b):w_C._RunInitialAction(a)};w_C.OnWidgetConfiguredWithData=function(a,b){var c=w_C._GetWidget(a);c.b().vc(b.data);w_C.DisplayWidget(c,w_c);c.b().configWin=w_b};
w_C.HandlePageActionResult=function(a,b,c){var d=c["status-message"];if(c.errors!=w_b){w_C.K(window,c.errors,w_C.STATUS_MESSAGE_BAD_CLASS);w_C.na(c,window)}else if(b=="addnew"){var e;if(w_C.IsOpenerReachable(window)){if(window.opener&&window.opener.parent)e=window.opener.parent;e&&e.editor&&e.editor._HandleAddNewWidget(c)}w_C.K(window,d,w_C.STATUS_MESSAGE_GOOD_CLASS);if(window.opener==w_b)window.location="/rearrange?blogID="+c.blogID;else e&&e._WidgetManager?e._WidgetManager._KillPopupDelay(window):
w_C.CloseIfNoPendingMessages(window,100)}else{var f=w_C.Va[a];w_n(f!=w_b);if(b=="delete"){w_C.K(f.b().configWin,d,w_C.STATUS_MESSAGE_GOOD_CLASS);w_C.FinishPopupWork(a,"_OnWidgetDeleted")}}};w_C._OnWidgetDeleted=function(a){var b=w_C.GetWidget(a);if(!!b){if(b.b().Ya()==w_y.DISPLAY_MODE_LAYOUT)top.editor._HandleDeleteWidget(b.b().e.rootElement);else{var c=b.b().e.rootElement;c.parentNode.removeChild(c)}delete w_C.Va[a]}};
w_C.FinishPopupWork=function(a,b,c){if(w_C.IsOpenerReachable(window)){var d=window.opener;c||(c=d._WidgetManager[b]);c(a);d._WidgetManager?d._WidgetManager._KillPopupDelay(window,a):w_C.CloseIfNoPendingMessages(window,100)}else{var e=w_C.GetWidgetRefreshUrl()+"?widgetId="+a;e+="&func="+encodeURIComponent(b);window.location.replace(e)}};w_C.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_C.STATUS_MESSAGE_GOOD_CLASS="status-msg status-msg-yellow-on-white";w_C.STATUS_MESSAGE_PENDING_CLASS=w_C.STATUS_MESSAGE_GOOD_CLASS;w_C.STATUS_MESSAGE_BAD_CLASS=w_C.STATUS_MESSAGE_GOOD_CLASS;w_C.K=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_C.MaybePrependHttp=function(a){if(a&&a.length>0&&a.substring(0,4)!="http")a="http://"+a;return a};
w_C.GetFirstElementInElementWithClass=function(a,b){if(w_q(a,b))return a;if(a){var c=a.childNodes.length,d=0;for(;d<c;d++){var e=w_C.GetFirstElementInElementWithClass(a.childNodes.item(d),b);if(e)return e}}return w_b};
w_C.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_C.oc;b.onmousedown=w_C.oc;b.onmouseup=w_C.oc;b.style.background="white";b.style.filter="alpha(opacity=1)";b.style.opacity=".01";b.innerHTML="&nbsp;";return b};
w_C.oc=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_A(a){this.Y=a}w_A.prototype._WidgetBinding_include=function(a,b){var c=a.getAttribute("name"),d=a.getAttribute("data");return this.Y.mc(c,b,d)};w_A.prototype._WidgetBinding_call=w_A.prototype._WidgetBinding_include;
w_A.prototype._WidgetBinding_loop=function(a,b){var c=a.getAttribute("values"),d=this.Y.ab(c),e=this.Y.vb(d[1],b),f=a.getAttribute("var");f||w_u.raise("Invalid var= attribute on b:loop");var g=this.Y.Za(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.Xa(f,j);var l=this.Y.$a(k,b);b.rc(f);h.appendChild(l)}return h};
w_A.prototype._WidgetBinding_if=function(a,b){var c=this.ic(a.getAttribute("cond"),b),d=a.ownerDocument.createDocumentFragment(),e=w_a;for(;a.firstChild!=w_b;){var f=a.firstChild;if("else"==this.Y.ab(f.nodeName)[1].toLowerCase())e=w_c;else if(c&&!e||!c&&e){var g=this.Y.$a(f,b);d.appendChild(g)}f.parentNode==a&&a.removeChild(f)}return d};
w_A.prototype.ic=function(a,b){w_u.isTrue(a!=w_b,"null expression");var c=this.ze(a,b);try{var d=eval(c);return d}catch(e){w_l("expression=["+a+"] error="+e+" eval=["+c+"]")}return""};
w_A.prototype.ze=function(a,b){var c=new RegExp("\\b(?:"+w_z.DATA_NAMESPACE_PREFIX+"|"+w_z.ACTION_NAMESPACE_PREFIX+"):[^ ]*\\b","gi"),d="",e=0,f=c.exec(a);for(;f;){var g=f[0];if(!this.ge(a,c.lastIndex)){var h,i=this.Y.ab(g);if(i[0]==w_z.ACTION_NAMESPACE_PREFIX)h=this.Y.tc(i[1],w_b,b);else if(i[0]==w_z.DATA_NAMESPACE_PREFIX){(h=this.Y.vb(g,b))||(h="");h=h+""}else w_u.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_A.prototype.ge=function(a,b){w_u.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_D(){}w_D.ERROR_MSG_ACTIVE_CLASS="errorbox-bad errormsg";w_D.ERROR_MSG_INACTIVE_CLASS="errorbox-good";
w_D.ProcessForm=function(a,b){var c={};c.success=w_c;c.values={};c.errors={};for(var d in b){var e=w_D.GetFieldValue(a[d]),f=b[d];w_D.ClearError(d);if(f){var g=f(e);if(g){w_D.SetError(d,g);c.success=w_a;c.errors[d]=g}}c.values[d]=e}return c};
w_D.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_D.ae=function(a,b){b||(b=document);var c="errormessage_"+a;return b.getElementById(c)};w_D.ClearError=function(a){var b=w_D.ae(a);if(b){b.innerHTML="";b.className=w_D.ERROR_MSG_INACTIVE_CLASS}};
w_D.SetError=function(a,b,c){var d=w_D.ae(a,c);if(d){d.innerHTML=b;d.className=w_D.ERROR_MSG_ACTIVE_CLASS}};w_D.GetRequiredStringFilter=function(){return function(a){a=a.replace(/^\s+/,"").replace(/\s+$/,"");if(a.length==0)return LayoutsMessages.FIELD_CANNOT_BE_BLANK;return undefined}};
w_D.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_B(){this.L=[];for(var a in w_C.kf)this.L[this.L.length]=a}w_B.DEFAULT_DICTIONARY_KEY="";w_B.MAX_DICTIONARY_DEPTH=50;w_B.SEPARATOR_CHAR=".";
w_B.prototype.Xa=function(a,b){this.L.length>=w_B.MAX_DICTIONARY_DEPTH&&w_u.raise("Cannot add another dictionary: "+a);a.indexOf(w_B.SEPARATOR_CHAR)>-1&&w_u.raise("Cannot add dictionary name containing '.': "+a);var c={};c.name=a;c.data=b;this.L[this.L.length]=c};w_B.prototype.rc=function(a){var b=this.L[this.L.length-1];b.name!=a&&w_u.raise("Dictionary "+a+" is not the last one, and can't be deleted: "+b.name);this.L.splice(this.L.length-1,1)};
w_B.prototype.wb=function(a){if(a==w_b)a=w_B.DEFAULT_DICTIONARY_KEY;var b=this.L.length-1;for(;b>=0;--b)if(this.L[b].name==a)return this.L[b].data;return w_b};w_B.prototype.jc=function(){return this.wb(w_B.DEFAULT_DICTIONARY_KEY)};w_B.prototype.Md=function(a){this.Xa(w_B.DEFAULT_DICTIONARY_KEY,a)};
w_B.prototype.p=function(a){var b=this.wb(a);if(b)return b;var c=a.split(w_B.SEPARATOR_CHAR);if(c.length==1){b=this.jc();return b[a]}b=this.wb(c[0]);var d=0;if(b)d=1;else b=this.jc();var e=d;for(;e<c.length;e++){if(b==w_b)return w_b;b=b[c[e]]}return b};function w_Ja(){}w_Ja.prototype.c=function(){w_d(new Error("Unimplemented"))};var _WidgetManager=w_C;_WidgetManager.prototype=w_C.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.c;
_WidgetManager._HandlePageActionResult=_WidgetManager.HandlePageActionResult;_WidgetManager._IsOpenerReachable=_WidgetManager.IsOpenerReachable;_WidgetManager._SetConfigWin=_WidgetManager.SetConfigWin;var _WidgetInfo=w_y;_WidgetInfo.prototype=w_y.prototype;function w_E(a){this.Sg=w_a;this.dc=a;this.Nb=window.document}w_E.DISABLED_BUTTON_CLASS="disabled-button";w_E.HIDDEN_MESSAGE_CLASS="status-msg-hidden";w_E.prototype.gc=function(){this.Nb.getElementById(this.dc+"-inner").innerHTML="&nbsp;";w_r(this.Nb.getElementById(this.dc),w_E.HIDDEN_MESSAGE_CLASS)};w_E.prototype.K=function(a){this.Nb.getElementById(this.dc+"-inner").innerHTML=a;w_s(this.Nb.getElementById(this.dc),w_E.HIDDEN_MESSAGE_CLASS)};function w_Ia(a){return function(b){var c=w_Da(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_F(a){this.a=a}w_F.WIDGET_TYPE_NAME="AdSense";w_F.prototype.d=function(){return w_F.WIDGET_TYPE_NAME};w_F.prototype.b=function(){return this.a};w_F.prototype.c=function(a,b){this.a.k(b)};var _AdSenseView=w_F;function w_G(a){this.a=a;this.e=a.q()}w_G.WIDGET_TYPE_NAME="BlogArchive";w_G.POST_LIST_CLASS="posts";w_G.INTERVAL_EXPANDED_VALUE="expanded";w_G.INTERVAL_COLLAPSED_VALUE="collapsed";w_G.LOADING_MSG="loading...";w_G.POST_COUNT_CLASS="post-count";w_G.POST_COUNT_LINK_CLASS="post-count-link";w_G.MENU_ROOT_ID="ArchiveMenu";w_G.TOGGLE_OPEN_CLASS="toggle-open";w_G.bg="&#9660;&nbsp;";w_G.$e="&#9658;&nbsp;";w_G.prototype.d=function(){return w_G.WIDGET_TYPE_NAME};w_G.prototype.b=function(){return this.a};
w_G.prototype.h=function(){return w_a};w_G.prototype.c=function(a,b){if(a=="configure")this.a.k(b);else if(a=="getTitles")this.Ee(b);else{this.widgetInfo.data=b;w_C.DisplayWidget(this)}};
w_G.prototype.i=function(){var a={};a.select=function(i){return i&&w_q(i,"toggle")};var b=this.a.R("ArchiveList");if(!!b){var c=w_t(this.e.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.Be.bind(this);if(d)f.style.color=d}var g=this.a.R(w_G.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.ce.bind(this)}if(this.b().p().languageDirection=="rtl")w_G.$e="&#9668;&nbsp;"}};w_G.prototype.ce=function(){var a=this.a.R(w_G.MENU_ROOT_ID);if(!!a)if(!(a.value==""))window.location.href=a.value};
w_G.prototype.Be=function(a){a=a||window.event;var b=a.currentTarget||a.srcElement;if(b&&!w_q(b,"toggle"))b=b.parentNode;var c=w_C.GetFirstElementInElementWithClass(b,"zippy"),d=b.parentNode;if(w_q(d,w_G.INTERVAL_EXPANDED_VALUE)){w_s(d,w_G.INTERVAL_EXPANDED_VALUE);w_r(d,w_G.INTERVAL_COLLAPSED_VALUE);c.innerHTML=w_G.$e;w_s(c,w_G.TOGGLE_OPEN_CLASS);return w_a}else{w_s(d,w_G.INTERVAL_COLLAPSED_VALUE);w_r(d,w_G.INTERVAL_EXPANDED_VALUE);c.innerHTML=w_G.bg;w_r(c,w_G.TOGGLE_OPEN_CLASS)}if(this.ke(d)){var e=
this.kc(d);if(!e){e=document.createElement("UL");d.appendChild(e);w_r(e,w_G.POST_LIST_CLASS)}e.appendChild(document.createTextNode(w_G.LOADING_MSG));this.a.fa("getTitles",{path:this.Zd(d)})}return w_a};w_G.prototype.kc=function(a){return w_C.GetFirstElementInElementWithClass(a,w_G.POST_LIST_CLASS)};w_G.prototype.Zd=function(a){var b=w_C.GetFirstElementInElementWithClass(a,w_G.POST_COUNT_LINK_CLASS);return b.href};
w_G.prototype.$d=function(a){var b=w_C.GetFirstElementInElementWithClass(a,w_G.POST_COUNT_CLASS);return parseInt(b.innerHTML.match(/\d+/),10)};w_G.prototype.Ee=function(a){var b=a.path,c=this.kc(this.Yd(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_G.prototype.Yd=function(a){var b=this.e.rootElement.getElementsByTagName("A");for(var c in b){var d=b[c];if(d.href==a)return d.parentNode}};
w_G.prototype.ke=function(a){var b=a.getElementsByTagName("UL");if(!(b.length>0&&!w_q(b[0],"posts"))){var c=this.$d(a),d=a.getElementsByTagName("LI"),e=d.length;return e<c}};var _BlogArchiveView=w_G;function w_H(a){this.a=a;this.Ua=a.q();if(this.Ua.data)this.Ff=this.Ua.data.showBacklinks}w_H.BACKLINKS_ROOT="backlinks-container";w_H.BACKLINKS_CHUNK="backlinks";w_H.BACKLINK_ITEM_ROOT_CLASS="backlink-control";w_H.BACKLINK_EXPANDED_CLASS="expanded-backlink";w_H.BACKLINK_COLLAPSED_CLASS="collapsed-backlink";w_H.BACKLINK_ZIPPY_CLASS="backlink-toggle-zippy";w_H.WIDGET_TYPE_NAME="Blog";w_H.prototype.d=function(){return w_H.WIDGET_TYPE_NAME};w_H.prototype.b=function(){return this.a};
w_H.prototype.c=function(a,b){if(a=="initial"){this.Ua.data=b;w_C.DisplayWidget(this,w_c)}else if(a=="nextposts")this.Td(b);else if(a=="configure")this.a.k(b);else a=="backlinks"&&this.De(b)};w_H.prototype.Td=function(a){var b=a.renderedData,c=this.Ua.rootElement;if(!(!b||!c)){c.innerHTML=b;window.scroll(0,0);this.i()}};
w_H.prototype.De=function(a){this.Ff=w_a;var b=this.a.yb(w_H.BACKLINKS_CHUNK,a),c=this.a.R(w_H.BACKLINKS_ROOT);if(c){c.innerHTML="";c.appendChild(b)}var d=w_t(this.Ua.rootElement,w_H.Le),e=0;for(;e<d.length;e++){var f=d[e];f.onclick=this.Ce.bind(this)}var g=this.a.R("backlinks-create-link");if(g!=w_b)g.onclick=this.Nd.bind(this,g.href)};w_H.Le={};w_H.Le.select=function(a){return a&&w_q(a,w_H.BACKLINK_ZIPPY_CLASS)};w_H.prototype.Ce=function(a){a=a||window.event;this.Ud(a.srcElement||a.target)};
w_H.prototype.Ud=function(a){var b=a.parentNode;for(;b&&!w_q(b,w_H.BACKLINK_ITEM_ROOT_CLASS);)b=b.parentNode;if(!!b)if(w_q(b,w_H.BACKLINK_EXPANDED_CLASS)){w_s(b,w_H.BACKLINK_EXPANDED_CLASS);w_r(b,w_H.BACKLINK_COLLAPSED_CLASS)}else{w_r(b,w_H.BACKLINK_EXPANDED_CLASS);w_s(b,w_H.BACKLINK_COLLAPSED_CLASS)}};
w_H.prototype.i=function(){var a=this.a.R("blog-pager-newer-link");if(a&&this.nc(a))a.onclick=this.pc.bind(this);var b=this.a.R("blog-pager-older-link");if(b&&this.nc(b))b.onclick=this.pc.bind(this);this.Ff&&this.a.fa("backlinks",{postID:this.Ua.data.postId})};w_H.prototype.nc=function(a){var b=a.href;return b.indexOf("/search?")>-1};w_H.prototype.pc=function(a){a=a||window.event;var b=a.target||a.srcElement;this.a.fa("nextposts",{path:b.href});return w_a};
w_H.prototype.Nd=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_H;w_I.Id={BLOGS:"blogs",CONTAINER:"container",SHOW_ALL:"show-all",SHOW_N:"show-n"};function w_I(a){this.a=a;this.e=a.q()}w_I.WIDGET_TYPE_NAME="BlogList";w_I.prototype.fc=w_b;w_I.prototype.kb=w_b;w_I.prototype.d=function(){return w_I.WIDGET_TYPE_NAME};w_I.prototype.b=function(){return this.a};w_I.prototype.h=function(){return w_a};w_I.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};
w_I.prototype.i=function(){var a=this.a.p();this.fc=a.totalItems;this.kb=a.numItemsToShow;if(this.kb!=0&&this.fc>this.kb){var b=this.a.J(w_I.Id.SHOW_ALL);b.onclick=this.Fd.bind(this);var c=this.a.J(w_I.Id.SHOW_N);c.onclick=this.Fd.bind(this)}var d=this.bf.bind(this),e=window;if(e.addEventListener)e.addEventListener("load",d,w_a);else if(e.attachEvent)e.attachEvent("onload",d);else e.onload=d};
w_I.prototype.Fd=function(){var a=this.a.J(w_I.Id.BLOGS),b=a.getElementsByTagName("li"),c=this.kb;for(;c<this.fc;c++){var d=b[c];w_qa(d,d.style.display=="none")}var e=this.a.J(w_I.Id.SHOW_ALL);w_p(e,e.style.display=="none");var f=this.a.J(w_I.Id.SHOW_N);w_p(f,f.style.display=="none")};w_I.prototype.bf=function(){var a=this.a.J(w_I.Id.BLOGS),b=a.getElementsByTagName("input"),c=0;for(;c<b.length;c++){var d=b[c],e=document.createElement("img");e.onload=this.He.bind(e,d);e.src=d.value}};
w_I.prototype.He=function(a){this.onload=function(){};this.alt="";this.width=this.height="16";var b=a.parentNode;b.replaceChild(this,a)};var _BlogListView=w_I;_BlogListView._Configure=_BlogListView.Configure;function w_J(a){this.a=a}w_J.WIDGET_TYPE_NAME="CustomSearch";w_J.ANCHOR_NAME="uds-search-results";w_J.prototype.d=function(){return w_J.WIDGET_TYPE_NAME};w_J.prototype.b=function(){return this.a};w_J.prototype.h=function(){return w_a};w_J.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};
w_J.prototype.i=function(){var a=this.b();google.load("search","1",{callback:w_Ka.bind(a)});var b=document.getElementById("uds-searchControl");if(!b){b=document.createElement("DIV");b.id="uds-searchControl";var c=document.createElement("A");c.name=w_J.ANCHOR_NAME;b.appendChild(c);var d=document.createElement("DIV");d.id="uds-searchResults";b.appendChild(d);var e=document.createElement("DIV");e.id="uds-searchClearResults";e.className="gsc-clear-button";e.innerHTML="&nbsp;";b.appendChild(e);var f=document.getElementById("main");
f||(f=document.getElementsByTagName("body")[0]);f.insertBefore(b,f.firstChild)}};
function w_Ka(){var a=new GSearchControl,b=this.p();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.J("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.onpaste=w_b;i.input.onkeyup=i.input.onpaste;i.setOnSubmitCallback(w_b,w_x(w_La,w_b,a));document.getElementById("uds-searchClearResults").onclick=
w_x(w_Ma,w_b,a);w_K(w_a)}function w_La(a){w_K(w_c);var b=window.location.href,c=b.indexOf("#");if(c>=0)b=b.substring(0,c);window.location.href=b+"#"+w_J.ANCHOR_NAME;return a.submit()}function w_Ma(a){a.clearAllResults();w_K(w_a)}function w_K(a){document.getElementById("uds-searchClearResults").style.display=a?"block":"none"}var _CustomSearchView=w_J;_CustomSearchView._Configure=_CustomSearchView.Configure;function w_L(a){this.a=a;this.e=a.q()}w_L.WIDGET_TYPE_NAME="Image";w_L.prototype.b=function(){return this.a};w_L.prototype.d=function(){return w_L.WIDGET_TYPE_NAME};w_L.prototype.h=function(){return w_a};
w_L.prototype.i=function(){if(!(this.e.data.resize!="true")){var a=this.a.R(this.e.instanceId+"_img"),b=this.e.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.c=function(a,b){a=="configure"&&this.a.k(b)};var _ImageView=w_L;function w_M(a,b,c,d,e,f,g,h){this.D=a;this.Me=b!="null"?b:w_b;this.yf=c;this.wf=d;this.xf=e;this.Pf=f;this.zf=g;this.Hg=h;this.ua=this.ca=-1;this.va=w_b;this.N=document.getElementById(this.D+"_picImg");this.Ib=document.getElementById(this.D+"_changeImageLink");this.Zb=document.getElementById(this.D+"_imageChoiceTable");this.tf=document.getElementById(this.D+"_imgSrcFromPCRadio");this.uf=document.getElementById(this.D+"_imgSrcFromWebRadio");this.l=document.getElementById(this.D+"_imgFileNameInput");
this.ib=document.getElementById(this.D+"_imgUrlTextInput");this.Ke=window.frames[this.D+"_asynchronousFileUploadIframe"];this.jd=0;this.v=new Image;this.v.onload=this.hitch(this,this.If);this.v.onerror=this.hitch(this,this.Hf);this.cf=w_a;this.Ka=this.z=this.qd=w_b;this.xd=w_a}w_M.prototype.od=function(){return this.tf.checked};
w_M.prototype.If=function(){this.jd=0;w_D.ClearError(this.D+"_imgUrlTextError");w_D.ClearError(this.D+"_imgFileNameError");if(!this.od()||this.ca==0){this.ca=this.v.width;this.ua=this.v.height;this.va=this.v.src}var a=1,b=1;if(this.v.width>300)a=300/this.v.width;if(this.v.height>300)b=300/this.v.height;var c=Math.min(a,b);this.N.style.width=Math.round(this.v.width*c)+"px";this.N.style.height=Math.round(this.v.height*c)+"px";this.N.src=this.v.src;this.N.style.display="";this.Zb.style.display="none";
this.Ib.style.display="";this.l.disabled=w_c;this.yf&&this.yf.call({},this.N.src,this.va,this.ca,this.ua)};w_M.prototype.Sa=function(a,b,c,d){if(a){w_D.SetError(this.D+"_imgFileNameError",b);w_D.ClearError(this.D+"_imgUrlTextError")}else{w_D.SetError(this.D+"_imgUrlTextError",b);w_D.ClearError(this.D+"_imgFileNameError")}this.N.style.display="none";this.Zb.style.display="";this.Ib.style.display="none";this.l.disabled=w_a;this.wf&&this.wf.call({},c,d)};
w_M.prototype.Hf=function(){if(this.jd<2){this.jd++;var a=this.v.src;this.v.src="";this.xa(a)}else this.Sa(this.od(),WidgetMessages.SIV_INVALID_URL,this.N.src)};w_M.prototype.hitch=function(a,b){return function(){b.apply(a,arguments)}};w_M.prototype.xa=function(a){this.Bd();this.v.src=a};
w_M.prototype.Dc=function(a){var b=a||window.event;if(window.event){b.returnValue=w_a;b.cancelBubble=w_c}else{b.preventDefault();b.stopPropagation()}this.N.style.display="none";this.Ib.style.display="none";this.Zb.style.display="";this.l.disabled=w_a;this.ib.value="";this.yd();this.xd=w_c;this.xf&&this.xf.call({})};w_M.prototype.kd=function(){this.tf.checked="true";this.ib.value="";this.Bd();this.Ef();this.cf=w_c;try{this.z.submit()}catch(a){this.Sa(w_c,WidgetMessages.SIV_INVALID_URL,this.z.value)}this.Df()};
w_M.prototype.Ga=function(){var a=this.Ke.document.result;a||this.Sa(w_c,WidgetMessages.SIV_INVALID_URL,this.l.value);if(a.hasErrors)a.errors.length>0?this.Sa(w_c,a.errors[0].message,this.l.value,a.rg):this.Sa(w_c,WidgetMessages.SIV_INVALID_URL,this.l.value,a.rg);else{var b=Math.max(a.origWidth,a.origHeight),c=this.dd();if(this.ca!=0&&c!=-1&&b>c){var d=c/b;this.ca=Math.round(a.origWidth*d);this.ua=Math.round(a.origHeight*d)}else{this.ca=a.origWidth;this.ua=a.origHeight}this.va=a.mainSrc;this.xa(a.thumbSrc)}};
w_M.prototype.ld=function(a){var b=a||window.event;if(!(b.keyCode==9)){this.uf.checked="true";this.qd!=w_b&&window.clearTimeout(this.qd);var c=this.hitch(this,function(){if(this.xd||this.v.src!=this.ib.value.toLowerCase()){this.yd();this.xa(this.ib.value.toLowerCase())}this.xd=w_a});this.qd=window.setTimeout(c,1000)}};w_M.prototype.sd=function(a){this.uf.checked=w_c;this.ib.value=a;this.xa(a)};
w_M.prototype.Bd=function(){this.N.src="img/icon_inprogress.gif";this.N.style.width="200px";this.N.style.height="200px";this.N.style.display="";this.Zb.style.display="none";this.Ib.style.display="none"};
w_M.prototype.Ef=function(){if(!this.z){this.z=document.createElement("form");this.z.action="imageUpload.do";this.z.method="POST";this.z.target=this.Ke.name;this.z.encoding="multipart/form-data";this.z.style.display="none";if(this.Me){var a=document.createElement("input");a.type="hidden";a.name="blogID";a.value=this.Me;this.z.appendChild(a)}var b=document.createElement("input");b.type="hidden";b.name="sectionWidth";b.id="sectionWidth";this.z.appendChild(b);var c=document.createElement("input");c.type=
"hidden";c.name="photoUploadSecurityToken";c.value=this.Hg;this.z.appendChild(c);document.body.appendChild(this.z)}var d=this.dd();if(d==-1)d=1600;document.getElementById("sectionWidth").value=d;this.Ka={parent:this.l.parentNode,nextSibling:this.l.nextSibling};this.l.parentNode.removeChild(this.l);this.z.appendChild(this.l)};w_M.prototype.Df=function(){this.z.removeChild(this.l);this.Ka&&this.Ka.nextSibling?this.Ka.parent.insertBefore(this.l,this.Ka.nextSibling):this.Ka.parent.appendChild(this.l)};
w_M.prototype.yd=function(){var a=document.createElement("input");a.type="file";a.name=this.l.name;a.id=this.l.id;a.onchange=this.l.onchange;var b=this.l.nextSibling;b==w_b?this.l.parentNode.appendChild(a):this.l.parentNode.insertBefore(a,b);this.l.parentNode.removeChild(this.l);this.l=a};w_M.prototype.dd=function(){return this.Pf==-1&&this.zf?this.zf():this.Pf};function w_N(){this.usiContainers=[]}var w_Na=new w_N;
w_N.prototype.Gc=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.Yb=function(a){return this.usiContainers[a]};w_N.prototype.Ga=function(a){var b=this.Yb(a);b&&b.cf&&b.Ga()};var _UploadSimpleImage=w_Na;w_N.prototype._createUsiContainer=w_N.prototype.Gc;w_N.prototype._getUsiContainer=w_N.prototype.Yb;w_N.prototype._channelResultArrived=w_N.prototype.Ga;w_M.prototype._changeImage=w_M.prototype.Dc;
w_M.prototype._imgUrlFileOnChange=w_M.prototype.kd;w_M.prototype._imgUrlTextOnKeyUp=w_M.prototype.ld;w_M.prototype._loadInitialUrl=w_M.prototype.sd;w_M.prototype._loadImageFromUrl=w_M.prototype.xa;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_C.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_C.K(window,WidgetMessages.SIV_NO_IMAGE,w_C.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_C.SaveWidget(g,a,w_L.WIDGET_TYPE_NAME)}};function w_O(a){this.a=a;this.e=a.q()}w_O.successfulUploadCallback=function(a,b,c,d){w_O.Jg=a;w_O.va=b;w_O.ca=c;w_O.ua=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.va=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_C.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.d=function(){return w_O.WIDGET_TYPE_NAME};w_O.prototype.h=function(){return w_a};w_O.prototype.b=function(){return this.a};
w_O.prototype.c=function(a,b){this.a.k(b)};w_O.FilterMap={title:w_D.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_D.ProcessForm(document.forms.config,w_O.FilterMap),d=w_O.getContainerWidth();if(c.success){if(w_O.va){var e=w_O.ca,f=w_O.ua,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.va;c.values.originalWidth=w_O.ca;c.values.originalHeight=w_O.ua;c.values.displayUrl=w_O.Jg;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_C.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.e=a.q();this.Lg=b}w_P.prototype.b=function(){return this.a};w_P.prototype.d=function(){return this.Lg};w_P.prototype.c=function(a,b){a=="configure"&&this.a.k(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_C.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.d=function(){return w_S.WIDGET_TYPE_NAME};w_S.prototype.b=function(){return this.a};w_S.prototype.h=function(){return w_a};w_S.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};w_S.prototype.i=function(){var a=this.b();google.load("search","1",{callback:w_Oa.bind(a)});var b=a.J("bar");w_r(b,"videoBar-container")};
function w_Oa(){var a=this.J("bar"),b=this.p().format,c,d,e=this.p().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.d=function(){return w_T.WIDGET_TYPE_NAME};w_T.prototype.b=function(){return this.a};w_T.prototype.h=function(){return w_a};w_T.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};w_T.prototype.i=function(){var a=this.b();google.load("search","1",{callback:w_Pa.bind(a)});window._uds_nbw_donotrepair=w_c};
function w_Pa(){var a=this.J("bar"),b,c=this.p().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.p().expression,e=this.p().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_Qa(a){document.write('<script src="'+a+'" type="text/javascript"><\/script>')}function w_Ra(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.d=function(){return w_U.WIDGET_TYPE_NAME};w_U.prototype.b=function(){return this.a};w_U.prototype.h=function(){return w_a};w_U.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};
w_U.prototype.i=function(){if(!window._UDS_jsapi_bootstrapped){w_Qa("http://www.google.com/jsapi?source=uds-afspe");window._UDS_jsapi_bootstrapped=w_c}if(!window._UDS_fs_bootstrapped){w_Qa("http://www.google.com/uds/solutions/slideshow/gfslideshow.js?mode=new");window._UDS_fs_bootstrapped=w_c}var a=this.b(),b=w_Sa.bind(a);!window.google||!window.google.feeds?w_Ta(b):window.setTimeout(b,0)};function w_Ta(a){w_Ra(function(){google.load("feeds","1",{callback:a})})}
function w_Sa(){var a=this.J("slideshow"),b=this.p().computedFeed,c=this.p().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.sg={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_z.ConfigureWidget(w_V.sg)};
w_V.UpdateFrequency=function(){var a=w_D.GetFieldValue(document.forms.config.showStyle),b={year:a=="HIERARCHY",week:0,month:0,day:0},c=w_D.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_qa(document.getElementById(f),b[e])}w_V.SelectPreview()};
w_V._Init=function(a){w_V.Of=a;w_V.Qa=document.getElementById("archive-previews");w_V.Jf=w_W(w_V.Qa,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_D.GetFieldValue(document.forms.config.showStyle),b=w_D.GetFieldValue(document.forms.config.frequency),c=0;for(;c<w_V.Jf.length;c++){var d=w_V.Jf[c];if(w_q(d,a)&&w_q(d,b)){w_r(d,w_V.ACTIVE_PREVIEW_CLASS);w_q(d,"MENU")&&w_V.Yf(d)}else{w_s(d,w_V.ACTIVE_PREVIEW_CLASS);w_q(d,"MENU")&&w_V.Xf(d)}}};w_V.Xf=function(a){var b=a.getElementsByTagName("select"),c=0;for(;c<b.length;c++)b[c].style.display="none"};
w_V.Yf=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.Of[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.Qa,a),d=0;for(;d<c.length;d++){var e=c[d];e.innerHTML=b}};
w_V.UpdateWeekEnd=function(){w_Ua(w_V.Qa,document.forms.config.showWeekEnd.checked,"weekend");var a=w_V.Of.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_Ua(w_V.Qa,document.forms.config.showPosts.checked,"preview-posts")};
w_V.ToggleDirection=function(){var a=w_V.Qa.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.Qa.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_Ua(a,b,c){var d=w_W(a,c),e=0;for(;e<d.length;e++){var f=d[e];w_p(f,b)}}function w_W(a,b){var c={};c.select=function(d){return d&&w_q(d,b)};return w_t(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.e=a.q()}w_X.WIDGET_TYPE_NAME="Label";w_X.prototype.d=function(){return w_X.WIDGET_TYPE_NAME};w_X.prototype.b=function(){return this.a};w_X.prototype.c=function(a,b){this.a.k(b)};function w_Y(){}w_Y.Vf={sorting:w_b,title:w_b,securityToken:w_b};w_Y._Configure=function(){w_z.ConfigureWidget(w_Y.Vf)};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_r(c[d],w_Y.HIDDEN_CLASS);w_s(document.getElementById(a),w_Y.HIDDEN_CLASS)};var _LabelView=w_X,_LabelConfig=w_Y;function w_Z(a){this.a=a;this.e=a.q()}w_Z.WIDGET_TYPE_NAME="TextList";w_Z.prototype.d=function(){return w_Z.WIDGET_TYPE_NAME};w_Z.prototype.b=function(){return this.a};w_Z.prototype.h=function(){return w_a};w_Z.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};var _TextListView=w_Z;function w__(a){this.a=a;this.e=a.q()}w__.WIDGET_TYPE_NAME="LinkList";w__.prototype.d=function(){return w__.WIDGET_TYPE_NAME};w__.prototype.h=function(){return w_a};w__.prototype.b=function(){return this.a};w__.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};var _LinkListView=w__;_LinkListView.prototype=w__.prototype;function w_0(a){this.a=a;this.e=a.q()}w_0.prototype.d=function(){return"BloggerButton"};w_0.prototype.b=function(){return this.a};w_0.prototype.c=function(a,b){this.a.k(b)};var _BloggerButtonView=w_0;var w_1=function(a){this.a=a;this.e=a.q()};w_1.prototype.d=function(){return"Poll"};w_1.prototype.b=function(){return this.a};w_1.prototype.c=function(a,b){if(a=="configure"){this.savePending=w_a;this.a.k(b)}};w_1.prototype.na=function(a,b){if(a=="configure")this.savePending=w_a;w_C.na(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.e=a.q()}w_2.WIDGET_TYPE_NAME="Navbar";w_2.prototype.d=function(){return w_2.WIDGET_TYPE_NAME};w_2.prototype.b=function(){return this.a};w_2.prototype.h=function(){return w_a};w_2.prototype.c=function(a,b){this.a.k(b)};w_2.FilterMap={navbartype:w_b,securityToken:w_b};w_2.ConfigureWidget=function(){w_z.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.e=a.q()}w_3.WIDGET_TYPE_NAME="Profile";w_3.prototype.h=function(){return w_a};w_3.prototype.d=function(){return w_3.WIDGET_TYPE_NAME};w_3.prototype.b=function(){return this.a};w_3.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};w_3.prototype.i=function(){this.e.rootElement.style.display=this.a.p().isDisplayable==w_a?"none":""};var _ProfileView=w_3;var w_=w_||{};w_.global=this;w_.DEBUG=w_c;w_.Pb=w_b;w_.provide=function(a){w_.af(a)};w_.af=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 if(e[f])e=e[f];else{e[f]={};e=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.wg||(a.wg=new a)}};
w_.typeOf=function(a){var b=typeof a;if(b=="object")if(a){if(typeof a.length=="number"&&typeof a.splice!="undefined"&&!w_.Dg(a,"length"))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_.Kf=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_.Dg=Object.prototype.propertyIsEnumerable?function(a,b){return a instanceof Object?Object.prototype.propertyIsEnumerable.call(a,b):w_.Kf(a,b)}:w_.Kf;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_.ma)){var b=a[w_.ma];if(b)return b}a[w_.ma]||(a[w_.ma]=++w_.tg);return a[w_.ma]};w_.removeHashCode=function(a){"removeAttribute"in a&&a.removeAttribute(w_.ma);try{delete a[w_.ma]}catch(b){}};w_.ma="closure_hashCode_";w_.tg=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.Ac;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);c&&d.unshift.apply(d,c);c=d}b=a.Gb||b;a=a.Fb||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.Ac=c;e.Gb=b;e.Fb=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_.Pb==w_b){w_.global.eval("var _et_ = 1;");if(typeof w_.global._et_!="undefined"){delete w_.global._et_;w_.Pb=w_c}else w_.Pb=w_a}if(w_.Pb)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_.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_.af(a,b,c)};w_.exportProperty=function(a,b,c){a[b]=c};w_.inherits=function(a,b){function c(){}c.prototype=b.prototype;a.ec=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_.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=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 e[f];return w_b};w_.array.contains=function(a,b){if(a.contains)return a.contains(b);return w_.array.indexOf(a,b)>-1};w_.array.s=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.s=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.M=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.Z(a,b)};w_.object.m=function(a){var b=[],c=0;for(var d in a)b[c++]=a[d];return b};w_.object.j=function(a){var b=[],c=0;for(var d in a)b[c++]=d;return b};w_.object.r=function(a,b){return b in a};w_.object.Z=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.s=function(a){for(var b in a)return w_a;return w_c};w_.object.clear=function(a){var b=w_.object.j(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.j(a),d=0,e=c.length;for(;d<e;d++){var f=c[d];b[a[f]]=f}return b};
w_.object.le=["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.le.length;e++){b=w_.object.le[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_.string={};w_.string.Unicode={NBSP:"\u00a0"};w_.string.Cd=function(a,b){return a.indexOf(b)==0};w_.string.Ye=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.s=function(a){return/^[\s\xa0]*$/.test(a)};w_.string.isEmptySafe=function(a){return w_.string.s(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.Gf=/(\.\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.Gf),d=b.toLowerCase().match(w_.string.Gf),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.qg=/^[a-zA-Z0-9\-_.!~*'()]*$/;
w_.string.urlEncode=function(a){a=String(a);if(!w_.string.qg.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.Ie,"&amp;").replace(w_.string.Bf,"&lt;").replace(w_.string.lf,"&gt;").replace(w_.string.Lf,"&quot;");else{if(!w_.string.ag.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(w_.string.Ie,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(w_.string.Bf,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(w_.string.lf,"&gt;");if(a.indexOf('"')!=-1)a=a.replace(w_.string.Lf,"&quot;");return a}};w_.string.Ie=/&/g;w_.string.Bf=/</g;w_.string.lf=/>/g;
w_.string.Lf=/\"/g;w_.string.ag=/[&<>\"]/;w_.string.unescapeEntities=function(a){if(w_.string.contains(a,"&"))return"document"in w_.global&&!w_.string.contains(a,"<")?w_.string.Mg(a):w_.string.Ng(a);return a};w_.string.Mg=function(a){var b=w_.global.document.createElement("a");b.innerHTML=a;b[w_.string.je]&&b[w_.string.je]();a=b.firstChild.nodeValue;b.innerHTML="";return a};
w_.string.Ng=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.je="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.pd={"\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.pd)return w_.string.pd[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.pd[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.Ec(n,o)||w_.string.Ec(l[2].length==0,m[2].length==
0)||w_.string.Ec(l[2],m[2])}while(c==0)}return c};w_.string.Ec=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};w_.string.Wf=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.Wf}return b};w_.string.Og=w_.now();w_.string.createUniqueString=function(){return"goog_"+w_.string.Og++};w_.string.toNumber=function(a){var b=Number(a);if(b==0&&w_.string.s(a))return NaN;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.la=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.vg=function(){w_.userAgent.cb=w_a;w_.userAgent.Ue=w_a;w_.userAgent.Lb=w_a;w_.userAgent.Ve=w_a;w_.userAgent.Ic=w_a;w_.userAgent.Te=w_a;var a;if(!w_.userAgent.la&&(a=w_.userAgent.getUserAgentString())){var b=w_.userAgent.getNavigator();w_.userAgent.cb=a.indexOf("Opera")==0;w_.userAgent.Ue=!w_.userAgent.cb&&a.indexOf("MSIE")!=-1;w_.userAgent.Lb=!w_.userAgent.cb&&a.indexOf("WebKit")!=-1;w_.userAgent.Ve=w_.userAgent.Lb&&a.indexOf("Mobile")!=-1;w_.userAgent.Ic=!w_.userAgent.cb&&!w_.userAgent.Lb&&
b.product=="Gecko";w_.userAgent.Te=w_.userAgent.Ic&&b.vendor=="Camino"}};w_.userAgent.la||w_.userAgent.vg();w_.userAgent.OPERA=w_.userAgent.la?w_.userAgent.ASSUME_OPERA:w_.userAgent.cb;w_.userAgent.IE=w_.userAgent.la?w_.userAgent.ASSUME_IE:w_.userAgent.Ue;w_.userAgent.GECKO=w_.userAgent.la?w_.userAgent.ASSUME_GECKO||w_.userAgent.ASSUME_CAMINO:w_.userAgent.Ic;w_.userAgent.CAMINO=w_.userAgent.la?w_.userAgent.ASSUME_CAMINO:w_.userAgent.Te;
w_.userAgent.WEBKIT=w_.userAgent.la?w_.userAgent.ASSUME_WEBKIT||w_.userAgent.ASSUME_MOBILE_WEBKIT:w_.userAgent.Lb;w_.userAgent.MOBILE=w_.userAgent.ASSUME_MOBILE_WEBKIT||w_.userAgent.Ve;w_.userAgent.SAFARI=w_.userAgent.WEBKIT;w_.userAgent.kg=function(){var a=w_.userAgent.getNavigator();return a&&a.platform||""};w_.userAgent.PLATFORM=w_.userAgent.kg();w_.userAgent.ASSUME_MAC=w_a;w_.userAgent.ASSUME_WINDOWS=w_a;w_.userAgent.ASSUME_LINUX=w_a;
w_.userAgent.Ab=w_.userAgent.ASSUME_MAC||w_.userAgent.ASSUME_WINDOWS||w_.userAgent.ASSUME_LINUX;w_.userAgent.ug=function(){w_.userAgent.ig=w_.string.contains(w_.userAgent.PLATFORM,"Mac");w_.userAgent.jg=w_.string.contains(w_.userAgent.PLATFORM,"Win");w_.userAgent.hg=w_.string.contains(w_.userAgent.PLATFORM,"Linux")};w_.userAgent.Ab||w_.userAgent.ug();w_.userAgent.MAC=w_.userAgent.Ab?w_.userAgent.ASSUME_MAC:w_.userAgent.ig;w_.userAgent.WINDOWS=w_.userAgent.Ab?w_.userAgent.ASSUME_WINDOWS:w_.userAgent.jg;
w_.userAgent.LINUX=w_.userAgent.Ab?w_.userAgent.ASSUME_LINUX:w_.userAgent.hg;w_.userAgent.lg=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.lg();
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.Od=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.Ma=function(){return w_.dom.gg||(w_.dom.gg=new w_.dom.DomHelper)};w_.dom.Na=function(a){return a?new w_.dom.DomHelper(w_.dom.ga(a)):w_.dom.Ma()};w_.dom.ef=function(){return document};
w_.dom.eb=function(a){return w_.isString(a)?document.getElementById(a):a};w_.dom.Jd=w_.dom.eb;w_.dom.Oa=function(a,b,c){return w_.dom.Ma().Oa(a,b,c)};w_.dom.Kd=w_.dom.Oa;w_.dom.cc=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.Qd)a.setAttribute(w_.dom.Qd[d],c);else a[d]=c})};
w_.dom.Qd={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"};
w_.dom.cd=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.Na(c),g=f.ha()&&(!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.Na(b.document).Sb()};w_.dom.Sb=function(){return w_.dom.Ma().Sb()};w_.dom.hb=function(a){return w_.dom.Na(a).hb()};w_.dom.G=function(){var a=w_.dom.Ma();return a.G.apply(a,arguments)};w_.dom.Ld=w_.dom.G;w_.dom.createElement=function(a){return document.createElement(a)};w_.dom.createTextNode=function(a){return document.createTextNode(a)};w_.dom.hd=function(a){return w_.dom.Ma().hd(a)};
w_.dom.df=function(){return w_.dom.ha()?"CSS1Compat":"BackCompat"};w_.dom.ha=function(){return w_.dom.Od?w_.dom.ASSUME_STANDARDS_MODE:w_.dom.Ma().ha()};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.lb=function(a){var b;for(;b=a.firstChild;)a.removeChild(b)};w_.dom.nd=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b)};w_.dom.md=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.Qc=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.Sc=function(a){return w_.dom.Vb(a.firstChild,w_c)};w_.dom.Uc=function(a){return w_.dom.Vb(a.lastChild,w_a)};w_.dom.Wc=function(a){return w_.dom.Vb(a.nextSibling,w_c)};w_.dom.$c=function(a){return w_.dom.Vb(a.previousSibling,w_a)};
w_.dom.Vb=function(a,b){for(;a&&a.nodeType!=w_.dom.NodeType.ELEMENT;)a=b?a.nextSibling:a.previousSibling;return a};w_.dom.ac=function(a){return w_.isObject(a)&&a.nodeType>0};w_.dom.Sf=w_.userAgent.WEBKIT&&w_.userAgent.compare(w_.userAgent.VERSION,"521")<=0;
w_.dom.contains=function(a,b){if(typeof a.contains!="undefined"&&!w_.dom.Sf&&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.Re(a,b);if(!c&&w_.dom.contains(e,b))return-1*w_.dom.Qe(a,b);if(!d&&w_.dom.contains(f,a))return w_.dom.Qe(b,a);return(c?a.sourceIndex:
e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}}var g=w_.dom.ga(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.Qe=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.Re(d,a)};w_.dom.Re=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.ga=function(a){return a.nodeType==w_.dom.NodeType.DOCUMENT?a:a.ownerDocument||a.document};
w_.dom.Ub=function(a){var b;return b=w_.userAgent.WEBKIT?a.document||a.contentWindow.document:a.contentDocument||a.contentWindow.document};w_.dom.Tc=function(a){return a.contentWindow||w_.dom.hb(w_.dom.Ub(a))};w_.dom.Ad=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.lb(a);var c=w_.dom.ga(a);a.appendChild(c.createTextNode(b))}};
w_.dom.getOuterHtml=function(a){if("outerHTML"in a)return a.outerHTML;else{var b=w_.dom.ga(a),c=b.createElement("div");c.appendChild(a.cloneNode(w_c));return c.innerHTML}};w_.dom.Nc=function(a,b){var c=[];w_.dom.Pc(a,b,c,w_c);return c.length?c[0]:undefined};w_.dom.Oc=function(a,b){var c=[];w_.dom.Pc(a,b,c,w_a);return c};w_.dom.Pc=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.Pc(f,b,c,d)}}};w_.dom.Ae={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};
w_.dom.Bb={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.gb=function(a){var b;if(w_.userAgent.IE&&"innerText"in a)b=w_.string.canonicalizeNewlines(a.innerText);else{var c=[];w_.dom.bd(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.bd(a,b,w_a);return b.join("")};
w_.dom.bd=function(a,b,c){if(!(a.nodeName in w_.dom.Ae))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.Bb)b.push(w_.dom.Bb[a.nodeName]);else{var d=a.firstChild;for(;d;){w_.dom.bd(d,b,c);d=d.nextSibling}}};w_.dom.Xc=function(a){return w_.dom.gb(a).length};
w_.dom.Yc=function(a,b){var c=b||w_.dom.ga(a).body,d=[];for(;a&&a!=c;){var e=a;for(;e=e.previousSibling;)d.unshift(w_.dom.gb(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.Ae))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.Bb)e+=w_.dom.Bb[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.Rc=function(a,b,c){return w_.dom.Rb(a,function(d){return(!b||d.nodeName==b)&&(!c||w_.dom.classes.has(d,c))},w_c)};w_.dom.Rb=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.V=a||w_.global.document||document};w_.dom.DomHelper.prototype.Na=w_.dom.Na;w_.dom.DomHelper.prototype.ef=function(){return this.V};w_.dom.DomHelper.prototype.eb=function(a){return w_.isString(a)?this.V.getElementById(a):a};w_.dom.DomHelper.prototype.Jd=w_.dom.DomHelper.prototype.eb;
w_.dom.DomHelper.prototype.Oa=function(a,b,c){var d=c||this.V,e=a&&a!="*"?a.toLowerCase():"";if(d.querySelectorAll&&(e||b)&&(!w_.userAgent.WEBKIT||this.ha()||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.Kd=w_.dom.DomHelper.prototype.Oa;w_.dom.DomHelper.prototype.cc=w_.dom.cc;w_.dom.DomHelper.prototype.cd=function(a){return w_.dom.cd(a||this.hb())};
w_.dom.DomHelper.prototype.G=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.cc(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.ac(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.Ld=w_.dom.DomHelper.prototype.G;w_.dom.DomHelper.prototype.createElement=function(a){return this.V.createElement(a)};w_.dom.DomHelper.prototype.createTextNode=function(a){return this.V.createTextNode(a)};
w_.dom.DomHelper.prototype.hd=function(a){var b=this.V.createElement("div");b.innerHTML=a;if(b.childNodes.length==1)return b.firstChild;else{var c=this.V.createDocumentFragment();for(;b.firstChild;)c.appendChild(b.firstChild);return c}};w_.dom.DomHelper.prototype.df=function(){return this.ha()?"CSS1Compat":"BackCompat"};
w_.dom.DomHelper.prototype.ha=function(){if(w_.dom.Od)return w_.dom.ASSUME_STANDARDS_MODE;var a=this.V;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.hb=function(){var a=this.V;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.ff=function(){var a=this.V;return!w_.userAgent.WEBKIT&&this.ha()?a.documentElement:a.body};
w_.dom.DomHelper.prototype.Sb=function(){var a=this.ff();return new w_.math.Coordinate(a.scrollLeft,a.scrollTop)};w_.dom.DomHelper.prototype.appendChild=w_.dom.appendChild;w_.dom.DomHelper.prototype.lb=w_.dom.lb;w_.dom.DomHelper.prototype.nd=w_.dom.nd;w_.dom.DomHelper.prototype.md=w_.dom.md;w_.dom.DomHelper.prototype.removeNode=w_.dom.removeNode;w_.dom.DomHelper.prototype.replaceNode=w_.dom.replaceNode;w_.dom.DomHelper.prototype.Qc=w_.dom.Qc;w_.dom.DomHelper.prototype.Sc=w_.dom.Sc;
w_.dom.DomHelper.prototype.Uc=w_.dom.Uc;w_.dom.DomHelper.prototype.Wc=w_.dom.Wc;w_.dom.DomHelper.prototype.$c=w_.dom.$c;w_.dom.DomHelper.prototype.ac=w_.dom.ac;w_.dom.DomHelper.prototype.contains=w_.dom.contains;w_.dom.DomHelper.prototype.ga=w_.dom.ga;w_.dom.DomHelper.prototype.Ub=w_.dom.Ub;w_.dom.DomHelper.prototype.Tc=w_.dom.Tc;w_.dom.DomHelper.prototype.Ad=w_.dom.Ad;w_.dom.DomHelper.prototype.Nc=w_.dom.Nc;w_.dom.DomHelper.prototype.Oc=w_.dom.Oc;w_.dom.DomHelper.prototype.gb=w_.dom.gb;
w_.dom.DomHelper.prototype.Xc=w_.dom.Xc;w_.dom.DomHelper.prototype.Yc=w_.dom.Yc;w_.dom.DomHelper.prototype.Rc=w_.dom.Rc;w_.dom.DomHelper.prototype.Rb=w_.dom.Rb;function w_4(a,b,c){this.Ag=b;this.bc=c;this.Dd=new w_E("status-message");this.F={linkTarget:"_blank"};this.ja=new w_5(this.Mc,a,this.F)}w_4.Tf="moduleTitle";w_4.Qg="feedUrl";w_4.Vd="step1";w_4.Wd="step2";w_4.ub="feedUrl";w_4.prototype.Sd=function(a,b){this.Dd.gc();w_D.ClearError(w_4.ub);if(a){var c=document.getElementById(w_4.Tf);c.value=b.title;this.Cb(b.title)}this.de()};w_4.prototype.ye=function(){this.Dd.gc();w_D.SetError(w_4.ub,this.bc._invalidFeedUrl);this.xb()};
w_4.prototype.xb=function(){w_o(document.getElementById(w_4.Vd),w_c);w_o(document.getElementById(w_4.Wd),w_a)};w_4.prototype.de=function(){w_o(document.getElementById(w_4.Vd),w_a);w_o(document.getElementById(w_4.Wd),w_c)};w_4.prototype.Cb=function(a){this.Ag.innerHTML=a};w_4.prototype.xc=function(a){this.F.showItemAuthor=a;this.Eb()};w_4.prototype.yc=function(a){this.F.showItemDate=a;this.Eb()};w_4.prototype.wc=function(a){this.F.numItemsShow=a;this.Eb()};
w_4.prototype.Eb=function(){this.ja.uc(this.F);this.ja.Pd();this.ja.Db()};w_4.prototype.sc=function(a,b,c,d){if(!a||a=="")w_D.SetError(w_4.ub,this.bc._missingFeedUrl);else if(a.length>2083)w_D.SetError(w_4.ub,this.bc._feedUrlTooLong);else{this.Dd.K(this.bc._retrievingFeed);this.we(a,b,c);this.ja.se(w_x(this.Sd,this,d));this.ja.te(w_x(this.ye,this));this.ja.Db()}};w_4.prototype.we=function(a,b){this.F=b;this.ja.ue(a);this.ja.uc(this.F)};w_4.prototype._GoToStep1=w_4.prototype.xb;
w_4.prototype._RetrieveFeedAndGoToStep2=w_4.prototype.sc;w_4.prototype._RefreshModuleTitle=w_4.prototype.Cb;w_4.prototype._SetShowItemAuthor=w_4.prototype.xc;w_4.prototype._SetShowItemDate=w_4.prototype.yc;w_4.prototype._SetNumItemsShow=w_4.prototype.wc;var _FeedConfig=w_4;function w_6(a){this.a=a}w_6.prototype.b=function(){return this.a};w_6.prototype.d=function(){return"Feed"};w_6.prototype.c=function(a,b){this.a.k(b)};w_6.prototype.Wa=function(){document.location.reload()};w_6.prototype.i=function(){(this.Ja=this.a.R("feedItemListDisplay"))&&google.load("feeds","1",{callback:w_x(this.ie,this)})};
w_6.prototype.ie=function(){var a=this.b().p(),b=new w_5(a.feedUrl,this.Ja,{numItemsShow:a.numItemsShow,showItemAuthor:a.showItemAuthor,showItemDate:a.showItemDate,linkTarget:"_self"});b.Db()};w_6.Uf={moduleTitle:w_b,feedUrl:w_D.GetRequiredStringFilter(),numItemsShow:w_D.GetNumberFilter(1,5),showItemDate:w_b,showItemAuthor:w_b,securityToken:w_b};w_6.setConfigurationOptions=function(){w_z.ConfigureWidget(w_6.Uf)};function w_5(a,b,c){this.Mc=a;this.Ja=b;this.F=c}
w_5.prototype.Db=function(){var a=new google.feeds.Feed(this.Mc);a.setNumEntries(this.F.numItemsShow);a.load(w_x(this.pe,this))};
w_5.prototype.pe=function(a){w_.dom.lb(this.Ja);if(a.error){this.Ja.appendChild(w_.dom.G("span",w_b,"Error"));this.Lc&&this.Lc()}else{var b=w_.dom.G("ul",w_b);this.Ja.appendChild(b);var c=0;for(;c<a.feed.entries.length;c++){var d=a.feed.entries[c],e=w_.dom.G("li",w_b);b.appendChild(e);var f=w_.dom.G("a",{href:d.link},d.title);f.target=this.F.linkTarget;e.appendChild(w_.dom.G("span",{"class":"item-title"},f));if(this.F.showItemDate){var g=w_.dom.G("span",{"class":"item-date"});g.innerHTML="&nbsp;-&nbsp;"+
(new Date(d.publishedDate)).toLocaleDateString();e.appendChild(g)}if(this.F.showItemAuthor){var h=w_.dom.G("span",{"class":"item-date"});h.innerHTML="&nbsp;-&nbsp;"+d.author;e.appendChild(h)}}this.Cc&&this.Cc(a.feed)}};w_5.prototype.se=function(a){this.Cc=a};w_5.prototype.te=function(a){this.Lc=a};w_5.prototype.Pd=function(){this.Cc=this.Lc=w_b};w_5.prototype.ue=function(a){this.Mc=a};w_5.prototype.uc=function(a){this.F=a};var _FeedView=w_6;_FeedView._setConfigurationOptions=w_6.setConfigurationOptions;function w_7(a){this.a=a;this.e=a.q()}w_7.WIDGET_TYPE_NAME="Followers";w_7.prototype.h=function(){return w_a};w_7.prototype.d=function(){return w_7.WIDGET_TYPE_NAME};w_7.prototype.b=function(){return this.a};w_7.prototype.c=function(a,b){if(a=="configure"){this.a.k(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.Wa=function(){document.location.reload()};var _FollowersView=w_7;function w_8(a){this.a=a;this.e=a.q()}w_8.prototype.d=function(){return"Gadget"};w_8.prototype.b=function(){return this.a};w_8.prototype.c=function(a,b){this.a.k(b)};w_8.prototype.qe=function(a){var b=document.getElementById(this.f);if(b)b.style.height=a+"px"};w_8.prototype.qc=function(){gadgets.rpc.register("resize_iframe",this.qe)};
w_8.prototype.i=function(){if(!w_8.InitializedRpc){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.qc()};a.onreadystatechange=function(){if(this.readyState=="loaded"||this.readyState=="complete")b.qc()};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.e=a.q()}w_9.WIDGET_TYPE_NAME="Subscribe";w_9.prototype.h=function(){return w_a};
w_9.prototype.d=function(){return w_9.WIDGET_TYPE_NAME};w_9.prototype.b=function(){return this.a};w_9.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};var _SubscribeView=w_9;if(window.jstiming)window.jstiming.report=function(a,b){var c="";if(window.jstiming.pt){c+="&srt="+window.jstiming.pt;delete window.jstiming.pt}if(window.external&&window.external.tran)c+="&tran="+window.external.tran;var d=a.t,e=d.start;delete d.start;var f=[],g=[];for(var h in d)if(!(h.indexOf("_")==0)){var i=d[h][1];if(i)d[i]&&g.push(h+"."+(d[h][0]-d[i][0]));else e&&f.push(h+"."+(d[h][0]-e[0]))}if(b)for(var j in b)c+="&"+j+"="+b[j];(new Image).src=["http://csi.gstatic.com/csi?v=3","&s=blogger&action=",
a.name,g.length?"&it="+g.join(",")+c:c,"&rt=",f.join(",")].join("")};w_.debug={};w_.debug.errorHandlerWeakDep={protectEntryPoint:function(a){return a}};w_.Disposable=function(){};w_.Disposable.prototype.Kc=w_a;w_.Disposable.prototype.dispose=function(){if(!this.Kc){this.Kc=w_c;this.H()}};w_.Disposable.prototype.H=function(){};w_.dispose=function(a){typeof a.dispose=="function"&&a.dispose()};w_.structs={};w_.structs.SimplePool=function(a,b){w_.Disposable.call(this);this.Cf=b;this.ra=[];this.Se(a)};w_.inherits(w_.structs.SimplePool,w_.Disposable);w_.structs.SimplePool.prototype.Jb=w_b;w_.structs.SimplePool.prototype.Mb=w_b;w_.structs.SimplePool.prototype.Ra=function(a){this.Jb=a};w_.structs.SimplePool.prototype.zd=function(a){this.Mb=a};w_.structs.SimplePool.prototype.ba=function(){if(this.ra.length)return this.ra.pop();return this.Fc()};
w_.structs.SimplePool.prototype.Ba=function(a){this.ra.length<this.Cf?this.ra.push(a):this.Jc(a)};w_.structs.SimplePool.prototype.Se=function(a){if(a>this.Cf)w_d(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));var b=0;for(;b<a;b++)this.ra.push(this.Fc())};w_.structs.SimplePool.prototype.Fc=function(){return this.Jb?this.Jb():{}};w_.structs.SimplePool.prototype.Jc=function(a){if(this.Mb)this.Mb(a);else if(w_.isFunction(a.dispose))a.dispose();else for(var b in a)delete a[b]};
w_.structs.SimplePool.prototype.H=function(){w_.structs.SimplePool.ec.H.call(this);var a=this.ra;for(;a.length;)this.Jc(a.pop());delete this.ra};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.H=function(){delete this.type;delete this.target;delete this.currentTarget};w_.events.Event.prototype.da=w_a;w_.events.Event.prototype.Ca=w_c;w_.events.Event.prototype.stopPropagation=function(){this.da=w_c};w_.events.Event.prototype.preventDefault=function(){this.Ca=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.Rg=[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=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.W=a;delete this.Ca;delete this.da};w_.events.BrowserEvent.prototype.stopPropagation=function(){this.da=w_c;if(this.W.stopPropagation)this.W.stopPropagation();else this.W.cancelBubble=w_c};
w_.events.BrowserEvent.prototype.preventDefault=function(){this.Ca=w_a;if(this.W.preventDefault)this.W.preventDefault();else{this.W.returnValue=w_a;try{this.W.keyCode=-1}catch(a){}}};w_.events.BrowserEvent.prototype.H=function(){w_.events.BrowserEvent.ec.H.call(this);this.W=w_b};w_.events.Listener=function(){};w_.events.Listener.cg=0;w_.events.Listener.prototype.$b=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.Hb=w_a;
w_.events.Listener.prototype.init=function(a,b,c,d,e,f){if(w_.isFunction(a))this.$b=w_c;else if(a&&a.handleEvent&&w_.isFunction(a.handleEvent))this.$b=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.Hb=w_a;this.key=++w_.events.Listener.cg;this.removed=w_a};
w_.events.Listener.prototype.handleEvent=function(a){if(this.$b)return this.listener.call(this.handler||this.src,a);return this.listener.handleEvent.call(this.listener,a)};w_.events.ia={};w_.events.u={};w_.events.ea={};w_.events.OBJECT_POOL_INITIAL_COUNT=0;w_.events.OBJECT_POOL_MAX_COUNT=600;w_.events.Pa=new w_.structs.SimplePool(w_.events.OBJECT_POOL_INITIAL_COUNT,w_.events.OBJECT_POOL_MAX_COUNT);w_.events.Pa.Ra(function(){return{g:0}});w_.events.Pa.zd(function(a){a.g=0});w_.events.ARRAY_POOL_INITIAL_COUNT=0;w_.events.ARRAY_POOL_MAX_COUNT=600;w_.events.oa=new w_.structs.SimplePool(w_.events.ARRAY_POOL_INITIAL_COUNT,w_.events.ARRAY_POOL_MAX_COUNT);w_.events.oa.Ra(function(){return[]});
w_.events.oa.zd(function(a){a.length=0;delete a.jb;delete a.td});w_.events.HANDLE_EVENT_PROXY_POOL_INITIAL_COUNT=0;w_.events.HANDLE_EVENT_PROXY_POOL_MAX_COUNT=600;w_.events.mf=new w_.structs.SimplePool(w_.events.HANDLE_EVENT_PROXY_POOL_INITIAL_COUNT,w_.events.HANDLE_EVENT_PROXY_POOL_MAX_COUNT);w_.events.mf.Ra(function(){var a=function(b){return w_.events.ed.call(a.src,a.key,b)};return a});w_.events.LISTENER_POOL_INITIAL_COUNT=0;w_.events.LISTENER_POOL_MAX_COUNT=600;w_.events.fg=function(){return new w_.events.Listener};
w_.events.rd=new w_.structs.SimplePool(w_.events.LISTENER_POOL_INITIAL_COUNT,w_.events.LISTENER_POOL_MAX_COUNT);w_.events.rd.Ra(w_.events.fg);w_.events.EVENT_POOL_INITIAL_COUNT=0;w_.events.EVENT_POOL_MAX_COUNT=600;w_.events.dg=function(){return new w_.events.BrowserEvent};w_.events.eg=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.Ra(w_.events.dg)}return a};w_.events.Ze=w_.events.eg();w_.events.Bg="on";
w_.events.ud={};w_.events.Tg="_";
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.u;b in h||(h[b]=w_.events.Pa.ba());h=h[b];if(!(g in h)){h[g]=w_.events.Pa.ba();h.g++}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{h[i]=w_.events.oa.ba();j=h[i];h.g++}var l=w_.events.mf.ba();l.src=a;k=w_.events.rd.ba();k.init(c,l,
a,b,g,e);var m=k.key;l.key=m;j.push(k);w_.events.ia[m]=k;w_.events.ea[i]||(w_.events.ea[i]=w_.events.oa.ba());w_.events.ea[i].push(k);if(a.addEventListener){if(a==w_.global||!a.Hc)a.addEventListener(b,l,g)}else a.attachEvent(w_.events.hf(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.ia[g];h.Hb=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.Vc(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.ia[a])return w_a;var b=w_.events.ia[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.Hc)c.removeEventListener(d,e,f)}else c.detachEvent&&c.detachEvent(w_.events.hf(d),e);var g=w_.getHashCode(c),h=w_.events.u[d][f][g];if(w_.events.ea[g]){var i=w_.events.ea[g];w_.array.remove(i,b);i.length==0&&delete w_.events.ea[g]}b.removed=w_c;h.td=w_c;w_.events.Pe(d,f,g,h);delete w_.events.ia[a];
return w_c};w_.events.Pe=function(a,b,c,d){if(!d.jb)if(d.td){var e=0,f=0;for(;e<d.length;e++)if(d[e].removed)w_.events.rd.Ba(d[e]);else{if(e!=f)d[f]=d[e];f++}d.length=f;d.td=w_a;if(f==0){w_.events.oa.Ba(d);delete w_.events.u[a][b][c];w_.events.u[a][b].g--;if(w_.events.u[a][b].g==0){w_.events.Pa.Ba(w_.events.u[a][b]);delete w_.events.u[a][b];w_.events.u[a].g--}if(w_.events.u[a].g==0){w_.events.Pa.Ba(w_.events.u[a]);delete w_.events.u[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.ea,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.ea[h]){var i=w_.events.ea[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.Vc(a,b,c)||[]};w_.events.Vc=function(a,b,c){var d=w_.events.u;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.Vc(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_.events.u;if(b in d){d=d[b];if(c in d){d=d[c];var e=w_.getHashCode(a);if(d[e])return 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.hf=function(a){if(a in w_.events.ud)return w_.events.ud[a];return w_.events.ud[a]=w_.events.Bg+a};w_.events.fireListeners=function(a,b,c,d){var e=1,f=w_.events.u;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.jb)h.jb++;else h.jb=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.jb--;w_.events.Pe(b,c,g,h)}}}}return Boolean(e)};
w_.events.fireListener=function(a,b){var c=a.handleEvent(b);a.Hb&&w_.events.unlistenByKey(a.key);return c};w_.events.getTotalListenerCount=function(){return w_.object.M(w_.events.ia)};
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.u;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.Zc())e.push(j);var k=e.length-1;for(;!b.da&&k>=0;k--){b.currentTarget=e[k];d&=w_.events.fireListeners(e[k],b.type,w_c,b)&&b.Ca!=w_a}}if(i)if(h){var k=0;for(;!b.da&&k<e.length;k++){b.currentTarget=
e[k];d&=w_.events.fireListeners(e[k],b.type,w_a,b)&&b.Ca!=w_a}}else{var l=a;for(;!b.da&&l;l=l.Zc()){b.currentTarget=l;d&=w_.events.fireListeners(l,b.type,w_a,b)&&b.Ca!=w_a}}return Boolean(d)};w_.events.protectBrowserEventEntryPoint=function(a,b){w_.events.ed=a.protectEntryPoint(w_.events.ed,b)};
w_.events.ed=function(a,b){if(!w_.events.ia[a])return w_c;var c=w_.events.ia[a],d=c.type,e=w_.events.u;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.xg(g))return w_c;w_.events.zg(g)}w_.getHashCode(c.src);var i=w_.events.Ze.ba();i.init(g,this);f=w_c;try{if(h){var j=w_.events.oa.ba(),k=i.currentTarget;for(;k;k=k.parentNode)j.push(k);var l=j.length-1;for(;!i.da&&l>=0;l--){i.currentTarget=j[l];f&=w_.events.fireListeners(j[l],
d,w_c,i)}var l=0;for(;!i.da&&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.oa.Ba(j)}i.dispose();w_.events.Ze.Ba(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.zg=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.xg=function(a){return a.keyCode<0||a.returnValue!=undefined};w_.events.EventTarget=function(){};w_.inherits(w_.events.EventTarget,w_.Disposable);w_.events.EventTarget.prototype.Hc=w_c;w_.events.EventTarget.prototype.wd=w_b;w_.events.EventTarget.prototype.Zc=function(){return this.wd};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.H=function(){w_.events.EventTarget.ec.H.call(this);w_.events.removeAll(this);this.wd=w_b};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(d){if(d!==w_.iter.StopIteration)w_d(d)}}};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.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(g){if(g!==w_.iter.StopIteration)w_d(g);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.M=function(a){if(typeof a.M=="function")return a.M();if(w_.isArrayLike(a)||w_.isString(a))return a.length;return w_.object.M(a)};w_.structs.m=function(a){if(typeof a.m=="function")return a.m();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.m(a)};
w_.structs.j=function(a){if(typeof a.j=="function")return a.j();if(typeof a.m=="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.j(a)};w_.structs.contains=function(a,b){if(typeof a.contains=="function")return a.contains(b);if(typeof a.Z=="function")return a.Z(b);if(w_.isArrayLike(a)||w_.isString(a))return w_.array.contains(a,b);return w_.object.Z(a,b)};
w_.structs.s=function(a){if(typeof a.s=="function")return a.s();if(w_.isArrayLike(a)||w_.isString(a))return w_.array.s(a);return w_.object.s(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.j(a),e=w_.structs.m(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.j(a),f=w_.structs.m(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.j(a),f=w_.structs.m(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.j(a),e=w_.structs.m(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.j(a),e=w_.structs.m(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.C={};this.o=[];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.Ge(a)};w_.structs.Map.prototype.g=0;w_.structs.Map.prototype.Ta=0;w_.structs.Map.prototype.M=function(){return this.g};w_.structs.Map.prototype.m=function(){this.Ha();var a=[],b=0;for(;b<this.o.length;b++){var c=this.o[b];a.push(this.C[c])}return a};w_.structs.Map.prototype.j=function(){this.Ha();return this.o.concat()};
w_.structs.Map.prototype.r=function(a){return w_.structs.Map.ta(this.C,a)};w_.structs.Map.prototype.Z=function(a){var b=0;for(;b<this.o.length;b++){var c=this.o[b];if(w_.structs.Map.ta(this.C,c)&&this.C[c]==a)return w_c}return w_a};w_.structs.Map.prototype.equals=function(a,b){if(this===a)return w_c;if(this.g!=a.M())return w_a;var c=b||w_.structs.Map.defaultEquals;this.Ha();var d,e=0;for(;d=this.o[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.s=function(){return this.g==0};w_.structs.Map.prototype.clear=function(){this.C={};this.Ta=this.g=this.o.length=0};w_.structs.Map.prototype.remove=function(a){if(w_.structs.Map.ta(this.C,a)){delete this.C[a];this.g--;this.Ta++;this.o.length>2*this.g&&this.Ha();return w_c}return w_a};
w_.structs.Map.prototype.Ha=function(){if(this.g!=this.o.length){var a=0,b=0;for(;a<this.o.length;){var c=this.o[a];if(w_.structs.Map.ta(this.C,c))this.o[b++]=c;a++}this.o.length=b}if(this.g!=this.o.length){var d={},a=0,b=0;for(;a<this.o.length;){var c=this.o[a];if(!w_.structs.Map.ta(d,c)){this.o[b++]=c;d[c]=1}a++}this.o.length=b}};w_.structs.Map.prototype.get=function(a,b){if(w_.structs.Map.ta(this.C,a))return this.C[a];return b};
w_.structs.Map.prototype.set=function(a,b){if(!w_.structs.Map.ta(this.C,a)){this.g++;this.o.push(a);this.Ta++}this.C[a]=b};w_.structs.Map.prototype.Ge=function(a){var b,c;if(a instanceof w_.structs.Map){b=a.j();c=a.m()}else{b=w_.object.j(a);c=w_.object.m(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.o.length;b++){var c=this.o[b],d=this.C[c];a.set(d,c)}return a};w_.structs.Map.prototype.__iterator__=function(a){this.Ha();var b=0,c=this.o,d=this.C,e=this.Ta,f=this,g=new w_.iter.Iterator;g.next=function(){for(;w_c;){if(e!=f.Ta)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.ta=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.M=function(a){return w_.structs.M(a)};w_.structs.Map.m=function(a){return w_.structs.m(a)};w_.structs.Map.j=function(a){if(typeof a.j=="function")return a.j();var b=[];if(w_.isArrayLike(a)){var c=0;for(;c<a.length;c++)b.push(c)}else return w_.object.j(a);return b};
w_.structs.Map.r=function(a,b){if(typeof a.r=="function")return a.r(b);if(w_.isArrayLike(a))return Number(b)<a.length;return w_.object.r(a,b)};w_.structs.Map.Z=function(a,b){return w_.structs.contains(a,b)};w_.structs.Map.s=function(a){return w_.structs.s(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.r(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.r(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(){};w_.uri={};w_.uri.utils={};w_.uri.utils.tb={AMPERSAND:38,EQUAL:61,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.Ig=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([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.Ig)};w_.uri.utils.Kb=function(a){return a&&decodeURIComponent(a)};w_.uri.utils.La=function(a,b){return w_.uri.utils.split(b)[a]||w_b};w_.uri.utils.Wb=function(a){return w_.uri.utils.La(w_.uri.utils.ComponentIndex.SCHEME,a)};w_.uri.utils.getUserInfoEncoded=function(a){return w_.uri.utils.La(w_.uri.utils.ComponentIndex.USER_INFO,a)};w_.uri.utils.Xb=function(a){return w_.uri.utils.Kb(w_.uri.utils.getUserInfoEncoded(a))};
w_.uri.utils.getDomainEncoded=function(a){return w_.uri.utils.La(w_.uri.utils.ComponentIndex.DOMAIN,a)};w_.uri.utils.db=function(a){return w_.uri.utils.Kb(w_.uri.utils.getDomainEncoded(a))};w_.uri.utils.fb=function(a){return Number(w_.uri.utils.La(w_.uri.utils.ComponentIndex.PORT,a))||w_b};w_.uri.utils.getPathEncoded=function(a){return w_.uri.utils.La(w_.uri.utils.ComponentIndex.PATH,a)};w_.uri.utils.sa=function(a){return w_.uri.utils.Kb(w_.uri.utils.getPathEncoded(a))};
w_.uri.utils.ad=function(a){return w_.uri.utils.La(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.Tb=function(a){return w_.uri.utils.Kb(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.Fa=function(){};w_.uri.utils.zc=function(a){w_.uri.utils.Fa(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.Je=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.Oe=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.Je(b[d],b[d+1],a);return a};w_.uri.utils.buildQueryData=function(a,b){var c=w_.uri.utils.Oe([],a,b);c[0]="";return c.join("")};
w_.uri.utils.Ne=function(a,b){for(var c in b)w_.uri.utils.Je(c,b[c],a);return a};w_.uri.utils.buildQueryDataFromMap=function(a){var b=w_.uri.utils.Ne([],a);b[0]="";return b.join("")};w_.uri.utils.appendParams=function(a){return w_.uri.utils.zc(w_.uri.utils.Oe([a],arguments,1))};w_.uri.utils.appendParamsFromMap=function(a,b){return w_.uri.utils.zc(w_.uri.utils.Ne([a],b))};w_.uri.utils.appendParam=function(a,b,c){return w_.uri.utils.zc([a,"&",b,"=",w_.string.urlEncode(c)])};
w_.uri.utils.Qb=function(a,b,c){var d=b,e=c.length;w_.uri.utils.Fa(a);for(;(d=a.indexOf(c,d))>=0;){var f=a.charCodeAt(d-1);if(f==w_.uri.utils.tb.AMPERSAND||f==w_.uri.utils.tb.QUESTION){var g=a.charCodeAt(d+e);if(!g||g==w_.uri.utils.tb.EQUAL||g==w_.uri.utils.tb.AMPERSAND)return d}d+=e+1}return-1};w_.uri.utils.hasParam=function(a,b){w_.uri.utils.Fa(a);return w_.uri.utils.Qb(a,0,b)>0};
w_.uri.utils.getParamValue=function(a,b){w_.uri.utils.Fa(a);var c=w_.uri.utils.Qb(a,0,b);if(c<0)return w_b;else{var d=a.indexOf("&",c);if(d<0)d=a.length;c+=b.length+1;return w_.string.urlDecode(a.substr(c,d-c))}};w_.uri.utils.getParamValues=function(a,b){w_.uri.utils.Fa(a);var c=0,d,e=[];for(;(d=w_.uri.utils.Qb(a,c,b))>=0;){c=a.indexOf("&",d);if(c<0)c=a.length;d+=b.length+1;e.push(w_.string.urlDecode(a.substr(d,c-d)))}return e};w_.uri.utils.Kg=/[?&]$/;
w_.uri.utils.removeParam=function(a,b){w_.uri.utils.Fa(a);var c=0,d,e=[];for(;(d=w_.uri.utils.Qb(a,c,b))>=0;){e.push(a.substring(c,d));c=a.indexOf("&",d)+1||a.length}e.push(a.substr(c));return e.join("").replace(w_.uri.utils.Kg,"")};w_.Uri=function(a,b){var c;if(a instanceof w_.Uri){this.ka(b==w_b?a.gf():b);this.rb(a.Wb());this.sb(a.Xb());this.mb(a.db());this.pb(a.fb());this.ob(a.sa());this.qb(a.ad().clone());this.nb(a.Tb())}else if(a&&(c=w_.uri.utils.split(String(a)))){this.ka(!!b);this.rb(c[w_.uri.utils.ComponentIndex.SCHEME],w_c);this.sb(c[w_.uri.utils.ComponentIndex.USER_INFO],w_c);this.mb(c[w_.uri.utils.ComponentIndex.DOMAIN],w_c);this.pb(c[w_.uri.utils.ComponentIndex.PORT]);this.ob(c[w_.uri.utils.ComponentIndex.PATH],w_c);
this.qb(c[w_.uri.utils.ComponentIndex.QUERY_DATA]);this.nb(c[w_.uri.utils.ComponentIndex.FRAGMENT],w_c)}else{this.ka(!!b);this.O=new w_.Uri.QueryData(w_b,this,this.T)}};w_.Uri.RANDOM_PARAM="zx";w_.Uri.prototype.X="";w_.Uri.prototype.Da="";w_.Uri.prototype.pa="";w_.Uri.prototype.Aa=w_b;w_.Uri.prototype.za="";w_.Uri.prototype.qa="";w_.Uri.prototype.vf=w_a;w_.Uri.prototype.T=w_a;
w_.Uri.prototype.toString=function(){if(this.w)return this.w;var a=[];this.X&&a.push(w_.Uri.Ob(this.X,w_.Uri.Mf),":");if(this.pa){a.push("//");this.Da&&a.push(w_.Uri.Ob(this.Da,w_.Uri.Mf),"@");a.push(w_.Uri.pg(this.pa));this.Aa!=w_b&&a.push(":",String(this.fb()))}this.za&&a.push(w_.Uri.Ob(this.za,w_.Uri.Fg));var b=String(this.O);b&&a.push("?",b);this.qa&&a.push("#",w_.Uri.Ob(this.qa,w_.Uri.Eg));return this.w=a.join("")};
w_.Uri.prototype.resolve=function(a){var b=this.clone(),c=a.qf();if(c)b.rb(a.Wb());else c=a.rf();if(c)b.sb(a.Xb());else c=a.fd();if(c)b.mb(a.db());else c=a.of();var d=a.sa();if(c)b.pb(a.fb());else if(c=a.gd()){if(d.charAt(0)!="/")if(this.fd()&&!this.gd())d="/"+d;else{var e=b.sa().lastIndexOf("/");if(e!=-1)d=b.sa().substr(0,e+1)+d}d=w_.Uri.Gg(d)}if(c)b.ob(d);else c=a.pf();if(c)b.qb(a.jf());else c=a.nf();c&&b.nb(a.Tb());return b};
w_.Uri.prototype.clone=function(){return w_.Uri.create(this.X,this.Da,this.pa,this.Aa,this.za,this.O.clone(),this.qa,this.T)};w_.Uri.prototype.Wb=function(){return this.X};w_.Uri.prototype.rb=function(a,b){this.$();delete this.w;if(this.X=b?w_.Uri.bb(a):a)this.X=this.X.replace(/:$/,"");return this};w_.Uri.prototype.qf=function(){return!!this.X};w_.Uri.prototype.Xb=function(){return this.Da};w_.Uri.prototype.sb=function(a,b){this.$();delete this.w;this.Da=b?w_.Uri.bb(a):a;return this};
w_.Uri.prototype.rf=function(){return!!this.Da};w_.Uri.prototype.db=function(){return this.pa};w_.Uri.prototype.mb=function(a,b){this.$();delete this.w;this.pa=b?w_.Uri.bb(a):a;return this};w_.Uri.prototype.fd=function(){return!!this.pa};w_.Uri.prototype.fb=function(){return this.Aa};w_.Uri.prototype.pb=function(a){this.$();delete this.w;if(a){a=Number(a);if(isNaN(a)||a<0)w_d(Error("Bad port number "+a));this.Aa=a}else this.Aa=w_b;return this};w_.Uri.prototype.of=function(){return this.Aa!=w_b};
w_.Uri.prototype.sa=function(){return this.za};w_.Uri.prototype.ob=function(a,b){this.$();delete this.w;this.za=b?w_.Uri.bb(a):a;return this};w_.Uri.prototype.gd=function(){return!!this.za};w_.Uri.prototype.pf=function(){return this.O.toString()!==""};w_.Uri.prototype.qb=function(a){this.$();delete this.w;if(a instanceof w_.Uri.QueryData){this.O=a;this.O.Gd=this;this.O.ka(this.T)}else this.O=new w_.Uri.QueryData(a,this,this.T);return this};w_.Uri.prototype.jf=function(){return this.O.toString()};
w_.Uri.prototype.ad=function(){return this.O};w_.Uri.prototype.Qf=function(a,b){this.$();delete this.w;w_.isArray(b)||(b=[String(b)]);this.O.Rf(a,b);return this};w_.Uri.prototype.Tb=function(){return this.qa};w_.Uri.prototype.nb=function(a,b){this.$();delete this.w;this.qa=b?w_.Uri.bb(a):a;return this};w_.Uri.prototype.nf=function(){return!!this.qa};w_.Uri.prototype.$=function(){if(this.vf)w_d(Error("Tried to modify a read-only Uri"))};w_.Uri.prototype.ka=function(a){this.T=a;this.O&&this.O.ka(a)};
w_.Uri.prototype.gf=function(){return this.T};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.rb(a);b&&i.sb(b);c&&i.mb(c);d&&i.pb(d);e&&i.ob(e);f&&i.qb(f);g&&i.nb(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.Gg=function(a){if(a==".."||a==".")return"";else if(!w_.string.contains(a,"./")&&!w_.string.contains(a,"/."))return a;else{var b=w_.string.Cd(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.bb=function(a){return a?decodeURIComponent(a):""};
w_.Uri.pg=function(a){if(w_.isString(a))return encodeURIComponent(a);return w_b};w_.Uri.og=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/;w_.Uri.Ob=function(a,b){var c=w_b;if(w_.isString(a)){c=a;w_.Uri.og.test(c)||(c=encodeURI(a));if(c.search(b)>=0)c=c.replace(b,w_.Uri.ng)}return c};w_.Uri.ng=function(a){var b=a.charCodeAt(0);return"%"+(b>>4&15).toString(16)+(b&15).toString(16)};w_.Uri.Mf=/[#\/\?@]/g;w_.Uri.Fg=/[\#\?]/g;w_.Uri.Eg=/#/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.n=new w_.structs.Map;this.Gd=b||w_b;this.T=!!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.aa(g);this.add(g,h?w_.string.urlDecode(h):"")}}};w_.Uri.QueryData.createFromMap=function(a,b,c){return w_.Uri.QueryData.createFromKeysValues(w_.structs.j(a),w_.structs.m(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.g=0;w_.Uri.QueryData.prototype.M=function(){return this.g};w_.Uri.QueryData.prototype.add=function(a,b){this.wa();a=this.aa(a);if(this.r(a)){var c=this.n.get(a);w_.isArray(c)?c.push(b):this.n.set(a,[c,b])}else this.n.set(a,b);this.g++;return this};
w_.Uri.QueryData.prototype.remove=function(a){a=this.aa(a);if(this.n.r(a)){this.wa();var b=this.n.get(a);if(w_.isArray(b))this.g-=b.length;else this.g--;return this.n.remove(a)}return w_a};w_.Uri.QueryData.prototype.clear=function(){this.wa();this.n.clear();this.g=0};w_.Uri.QueryData.prototype.s=function(){return this.g==0};w_.Uri.QueryData.prototype.r=function(a){a=this.aa(a);return this.n.r(a)};w_.Uri.QueryData.prototype.Z=function(a){var b=this.m();return w_.array.contains(b,a)};
w_.Uri.QueryData.prototype.j=function(){var a=this.n.m(),b=this.n.j(),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.m=function(a){var b;if(a){var c=this.aa(a);if(this.r(c)){var d=this.n.get(c);if(w_.isArray(d))return d;else{b=[];b.push(d)}}else b=[]}else{var e=this.n.m();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.wa();a=this.aa(a);if(this.r(a)){var c=this.n.get(a);if(w_.isArray(c))this.g-=c.length;else this.g--}this.n.set(a,b);this.g++;return this};w_.Uri.QueryData.prototype.get=function(a,b){a=this.aa(a);if(this.r(a)){var c=this.n.get(a);return w_.isArray(c)?c[0]:c}else return b};
w_.Uri.QueryData.prototype.Rf=function(a,b){this.wa();a=this.aa(a);if(this.r(a)){var c=this.n.get(a);if(w_.isArray(c))this.g-=c.length;else this.g--}if(b.length>0){this.n.set(a,b);this.g+=b.length}};
w_.Uri.QueryData.prototype.toString=function(){if(this.w)return this.w;var a=[],b=0,c=this.n.j(),d=0;for(;d<c.length;d++){var e=c[d],f=w_.string.urlEncode(e),g=this.n.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.w=a.join("")};w_.Uri.QueryData.prototype.wa=function(){delete this.w;this.Gd&&delete this.Gd.w};
w_.Uri.QueryData.prototype.clone=function(){var a=new w_.Uri.QueryData;a.n=this.n.clone();return a};w_.Uri.QueryData.prototype.aa=function(a){var b=String(a);if(this.T)b=b.toLowerCase();return b};w_.Uri.QueryData.prototype.ka=function(a){var b=a&&!this.T;if(b){this.wa();w_.structs.forEach(this.n,function(c,d){var e=d.toLowerCase();if(d!=e){this.remove(d);this.add(e,c)}},this)}this.T=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)}};var w_$={};w_$.util={};w_$.util.logging={};w_$.util.logging.PROD_BLOGGER_HOST_URL="www.blogger.com";w_$.util.logging.sf=w_$.util.logging.PROD_BLOGGER_HOST_URL;w_$.util.logging.setHostPort=function(a){w_$.util.logging.sf=a};w_$.util.logging.Af="/nc";w_$.util.logging.setLoggingPath=function(a){w_$.util.logging.Af=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.Nf=w_a;w_$.util.logging.setReferredFromExplore=function(a){w_$.util.logging.Nf=a};w_$.util.logging.isReferredFromExplore=function(){return w_$.util.logging.Nf};w_$.util.logging.yg=function(a,b,c){if(a){var d=w_.Uri.parse(a),e=d.db().toLowerCase(),f=d.sa();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.sf+w_$.util.logging.Af,c=w_.Uri.parse(b),d=w_a;for(var e in a){d=w_c;c.Qf(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.ya[a])return w_b;return w_$.util.logging.log(w_$.util.logging.ya[a])};w_$.util.logging.ya={};
w_$.util.logging.addParametersToMap=function(a,b){var c=w_$.util.logging.ya[a];if(c)for(var d in b){if(c[d])return w_b}else{c={};w_$.util.logging.ya[a]=c}for(var d in b)c[d]=b[d];return w_$.util.logging.ya[a]};w_$.util.logging.clearParameterMap=function(a){delete w_$.util.logging.ya[a]};w_$.util.logging.zb="paramMapPageUnload_InternalUseOnly";w_$.util.logging.addToPageUnloadParameterMap=function(a){return w_$.util.logging.addParametersToMap(w_$.util.logging.zb,a)};w_$.util.logging.Ia={};
w_$.util.logging.registerEvent=function(a){if(w_$.util.logging.Ia[a])return-1;w_$.util.logging.Ia[a]=w_.now();return w_$.util.logging.Ia[a]};w_$.util.logging.getEventElapse=function(a){if(!w_$.util.logging.Ia[a])return-1;return w_.now()-w_$.util.logging.Ia[a]};w_$.util.logging.clearEvent=function(a){delete w_$.util.logging.Ia[a]};w_$.util.logging.hc="eventPageLoading_InternalUseOnly";w_$.util.logging.getDurationMillis=function(){return w_$.util.logging.getEventElapse(w_$.util.logging.hc)};
w_$.util.logging.pageOnBeforeUnload=function(){if(w_$.util.logging.ya[w_$.util.logging.zb]==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.zb)};
w_$.util.logging.initialize=function(a,b,c){w_$.util.logging.setHostPort(a);w_$.util.logging.setReferredFromExplore(w_$.util.logging.yg(b,a,"/explore"));w_$.util.logging.clearEvent(w_$.util.logging.hc);w_$.util.logging.registerEvent(w_$.util.logging.hc);w_$.util.logging.clearParameterMap(w_$.util.logging.zb);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.$f(f,g,d,e):w_$.explore.blogpostpages.logging.Zf(f,g,d)}};w_$.explore.blogpostpages.logging.Zf=function(a,b,c){return w_$.explore.loggingcommons.addToPageUnloadParameterMap(w_$.util.logging.SourcePage.BLOG,a,b,c,w_b)};
w_$.explore.blogpostpages.logging.$f=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);

