function w_a(a){throw a;}var w_b=true,w_c=null,w_d=false;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_d):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_c}function w_ba(){window.jstiming.load.tick("prt");window.tickAboveFold&&window.tickAboveFold(this)}
function w_ca(a){window.jstiming.load.tick("widgetJsEnd");window.jstiming.load.tick("prt");a=a+"blogspot";window.jstiming.load.name=a;a=document.getElementsByTagName("img");for(var b=0;b<a.length;b++)a[b].complete||w_f(a[b],"post")!=w_c&&w_e(a[b],w_ba);w_e(window,w_aa);window.addEventListener?window.addEventListener("beforeunload",w_g,w_d):window.attachEvent("onbeforeunload",w_g)}function w_g(){window.jstiming.report(window.jstiming.load)}var _attachCsiOnload=w_ca;var w_h=w_d;function w_i(a){try{w_a(a)}catch(b){w_j(b)}}function w_j(a,b){b="Javascript exception: "+(b?b:"")+" "+a;if(w_k("msie")&&!window.opera)b+=" "+a.name+": "+a.message+" ("+a.number+")";var c="";if(typeof a=="string")c=a+"\n";else for(var d in a)try{c+=d+": "+a[d]+"\n"}catch(e){}c+=w_da(w_j.caller);w_ea(b+"\n"+c,1)}var w_fa=/function (\w+)/;function w_ga(a){if(a=w_fa.exec(String(a)))return a[1];return""}
function w_da(a){try{if(!(w_k("msie")&&!window.opera)&&!(w_k("safari")||w_k("konqueror"))&&w_k("mozilla"))return Error().stack;if(!a)return"";for(var b="- "+w_ga(a)+"(",c=0;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_da(a.caller);return b}catch(e){return"[Cannot get stack trace]: "+e+"\n"}}var w_ha,w_l=w_c,w_m=w_d;
function w_ia(){if((w_l==w_c||w_l.closed)&&!w_m)try{w_m=w_b;w_l=window.open("","debug","width=700,height=500,toolbar=no,resizable=yes,scrollbars=yes,left=16,top=16,screenx=16,screeny=16");w_l.blur();w_l.document.open();w_m=w_d;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_ja(a)}catch(b){}}
function w_ea(a,b){if(w_h){try{var c=(new Date).getTime()-w_ha,d="["+c+"] "+w_ka(a).replace(/\n/g,"<br>")+"<br>";if(b==1){d="<font color=#ff0000><b>Error: "+d+"</b></font>";w_l.focus()}}catch(e){}w_ja(d)}else typeof w_n!="undefined"&&w_n(w_ka(a))}function w_ja(a){if(w_h)try{w_ia();w_l.document.write(a);w_l.scrollTo(0,1000000)}catch(b){}};function w_k(a){if(a in w_o)return w_o[a];return w_o[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}var w_o={};function w_la(a){if(typeof Error!="undefined")w_a(new Error(a||"Assertion Failed"));else w_a(a)}function w_ma(a){a=a||"Assertion failed";typeof w_i!="undefined"&&w_i(a+"\n");w_la(a)}function w_p(a,b){if(!a){b=b||"Assertion failed";w_ma(b)}}function w_q(a,b){a.style.display=b?"":"none"}function w_na(a,b){a.style.display=b?"block":"none"}
function w_oa(a,b){a.style.display=b?"inline":"none"}function w_r(a,b){if(a==w_c||a.className==w_c)return w_d;if(a.className==b)return w_b;a=a.className.split(" ");for(var c=0;c<a.length;c++)if(a[c]==b)return w_b;return w_d}function w_s(a,b){w_r(a,b)||(a.className+=" "+b)}function w_t(a,b){if(a.className!=w_c)if(a.className==b)a.className="";else{for(var c=a.className.split(" "),d=[],e=w_d,f=0;f<c.length;f++)if(c[f]!=b)c[f]&&d.push(c[f]);else e=w_b;if(e)a.className=d.join(" ")}}
function w_pa(a,b){var c=[];for(a=a.firstChild;a;a=a.nextSibling)w_qa(a,b,c);return c}function w_qa(a,b,c){b.select(a)&&c.push(a);for(a=a.firstChild;a;a=a.nextSibling)w_qa(a,b,c)}var w_ra=/&/g,w_sa=/</g,w_ta=/>/g;function w_ka(a){if(!a)return"";return a.replace(w_ra,"&amp;").replace(w_sa,"&lt;").replace(w_ta,"&gt;").replace(w_ua,"&quot;")}var w_ua=/\"/g;function w_va(a){return document.getElementById(a)}function w_wa(a){return document.all[a]}var w_xa=document.getElementById?w_va:w_wa;
function w_n(a){try{if(window.parent!=window&&window.parent.log){window.parent.log(window.name+"::"+a);return}}catch(b){}var c=w_xa("log");if(c){a="<p class=logentry><span class=logdate>"+new Date+"</span><span class=logmsg>"+a+"</span></p>";c.innerHTML=a+c.innerHTML}else window.status=a};function w_u(){}w_u.raise=function(a){if(typeof Error!="undefined")w_a(new Error(a||"Assertion Failed"));else w_a(a)};w_u.fail=function(a){a=a||"Assertion failed";typeof w_i!="undefined"&&w_i(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")if(c=b.toString().match(/^\s*function\s+([^\s\{]+)/))b=c[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_ya(){var a=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"];if(typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){for(var b=0;b<a.length;b++){var c=a[b];try{new ActiveXObject(c);w_v=c;break}catch(d){}}if(!w_v)w_a(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed."))}}w_ya();function w_za(a,b,c){a.open("GET",b,w_b);a.onreadystatechange=c;w_Aa(a,w_c)}
function w_Ba(a,b,c,d){a.open("POST",b,w_b);a.onreadystatechange=d;a.setRequestHeader("Content-Type","application/x-www-form-urlencoded");a.setRequestHeader("Content-Length",c.length);w_Aa(a,c)}function w_Aa(a,b){try{a.send(b)}catch(c){w_n("XMLHttpSend failed "+c.toString()+"<br>"+c.stack);w_a(c)}};var w_Ca=0,w_w=0;if("undefined"==typeof w_n)w_n=function(){};function w_x(a){var b=-1;try{b=a.status}catch(c){}return b}function w_Da(a){var b=w_c;try{b=a.statusText}catch(c){}return b}
function w_Ea(a,b,c,d){if(a.readyState==4)try{var e=w_b;if(d)try{e=w_d!==d(a)}catch(f){w_n("Message ("+b+") handling failed: "+f);w_a(f)}var g=w_x(a);if(200===g){w_n("Message ("+b+") received after "+((new Date).getTime()-c)+" ms");try{var h=(new Date).getTime();e&&a.responseText.length&&eval(a.responseText);w_n("Message ("+b+") processing took "+((new Date).getTime()-h)+" ms")}catch(i){w_n("Message ("+b+") processing failed: "+i);alert(i+"\n"+i.stack+"\n\n"+a.responseText);w_a(i)}}else 204==g?w_n("Message ("+
b+") received after "+((new Date).getTime()-c)+" ms"):w_n("Message ("+b+") failed with response "+g+" "+w_Da(a)+" after "+((new Date).getTime()-c)+" ms.")}finally{--w_w}}
function w_Fa(a,b,c,d){var e="";if(b)for(var f="",g=0;g<b.length;){var h=b[g++],i=b[g++];e+=f+encodeURIComponent(h);f="&";if(w_c!==i&&undefined!==i)e+="="+encodeURIComponent(i.toString())}var k=++w_Ca,j=w_v?new ActiveXObject(w_v):new XMLHttpRequest,l=(new Date).getTime();b=function(){w_Ea(j,k,l,d)};f=a.indexOf("?")>=0?"&":"?";a=e.length?a+f+e:a;e=c!==undefined?"POST":"GET";f=a;for(g=f.length+1;(g=f.lastIndexOf("&",g-1))>=0;)f=f.substring(0,g)+"&amp;"+f.substring(g+1);w_n("Message ("+k+") sent: "+
e+" <tt>"+f+"</tt>.");++w_w;c!==undefined?w_Ba(j,a,c.toString(),b):w_za(j,a,b)}
function w_Ga(a,b,c){var d="";if(b)for(var e="",f=0;f<b.length;){var g=b[f++],h=b[f++];d+=e+encodeURIComponent(g);e="&";if(w_c!==h&&undefined!==h)d+="="+encodeURIComponent(h.toString())}var i=++w_Ca,k=w_v?new ActiveXObject(w_v):new XMLHttpRequest,j=(new Date).getTime();b=function(){w_Ea(k,i,j,c)};e=a;for(f=e.length+1;(f=e.lastIndexOf("&",f-1))>=0;)e=e.substring(0,f)+"&amp;"+e.substring(f+1);w_n("Message ("+i+") sent: POST <tt>"+e+"</tt>.");++w_w;w_Ba(k,a,d,b)};var w_Ha=this;String.prototype.uc=function(a){return this.indexOf(a)==0};String.prototype.fd=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(){for(var a=this,b=0;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=[];a||(a=w_Ha);b=b||[];for(var d=0;d<b.length;d++)c[d]="args["+d+"]";c="oScope.__applyTemp__.peek()("+c.join(",")+");";if(!a.__applyTemp__)a.__applyTemp__=[];a.__applyTemp__.push(this);c=eval(c);a.__applyTemp__.pop();return c};if(!Array.prototype.push)Array.prototype.push=function(){for(var a=0;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){for(var a=this[0],b=0;b<this.length-1;b++)this[b]=this[b+1];this.length--;return a}};
if(!Array.prototype.unshift)Array.prototype.unshift=function(){for(var a=arguments.length,b=this.length-1;b>=0;b--)this[b+a]=this[b];for(b=0;b<a;b++)this[b]=arguments[b];return this.length};if(!Array.prototype.forEach)Array.prototype.forEach=function(a,b){for(var c=0;c<this.length;c++)a.call(b,this[c],c,this)};
function w_y(a,b){var c=a.oh||[];c=c.concat(Array.prototype.slice.call(arguments,2));if(typeof a.yf!="undefined")b=a.yf;if(typeof a.xf!="undefined")a=a.xf;var d=function(){var e=c.concat(Array.prototype.slice.call(arguments));return a.apply(b,e)};d.oh=c;d.yf=b;d.xf=a;return d}Function.prototype.bind=function(a){return w_y.apply(w_c,[this,a].concat(Array.prototype.slice.call(arguments,1)))};Function.prototype.partial=function(){return w_y.apply(w_c,[this,w_c].concat(Array.prototype.slice.call(arguments)))};
Function.prototype.inherits=function(a){var b=function(){};this.wc=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_z(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.Qf=f;if(!w_z.IsValidDisplayMode(f))w_a("bad display mode: "+f)}else this.Qf=w_z.DISPLAY_MODE_NONE;this.isNew=w_d}w_z.IsValidDisplayMode=function(a){return a==w_z.DISPLAY_MODE_SNIPPET||a==w_z.DISPLAY_MODE_FULL||a==w_z.DISPLAY_MODE_LAYOUT||a==w_z.DISPLAY_MODE_NONE};w_z.DISPLAY_MODE_FULL="displayModeFull";w_z.DISPLAY_MODE_SNIPPET="displayModeSnippet";
w_z.DISPLAY_MODE_LAYOUT="displayModeLayout";w_z.DISPLAY_MODE_NONE="displayModeNone";function w_A(a){this.Fh=w_b;this.oe=new w_B(this);this.e=a;this.hb=w_c}w_A.DATA_NAMESPACE_PREFIX="data";w_A.ACTION_NAMESPACE_PREFIX="b";w_A.INTERPRET_ATTR_NAMESPACE_PREFIX="expr";w_A.prototype.ze=function(){var a=this.e.rootElement;a.innerHTML="";this.lb()==w_z.DISPLAY_MODE_LAYOUT?a.appendChild(this.Pb("layout")):a.appendChild(this.Pb("main"));return a};w_A.prototype.cf=function(a){this.hb=a};w_A.prototype.r=function(){return this.e};
w_A.prototype.X=function(a){return document.getElementById(this.e.instanceId+"_"+a)};w_A.prototype.D=function(a){var b=this.X(a);if(!b)w_a("did not find element for id "+a);return b};w_A.prototype.p=function(){return this.e.data};w_A.prototype.Oc=function(a){return this.e.data=a};w_A.prototype.Qe=function(){return this.e.isNew};w_A.prototype.af=function(a){return this.e.isNew=a};
w_A.prototype.Pb=function(a,b){(b=b)||(b=this.p());b||(b={});var c=new w_C;c.jb("widget",this.Fe());c.se(b);a=this.Fc(a,c,w_C.DEFAULT_DICTIONARY_KEY);return this.Ec(a,document)};w_A.prototype.Fe=function(){var a={};a.type=this.hb.d();a.instanceId=this.e.instanceId;a.sectionId=this.e.sectionId;a.actionUrl=w_D.Vc;var b=w_D.Rf+"&widgetType="+this.hb.d()+"&widgetId="+this.e.instanceId+"&action="+w_D.EDIT_WIDGET_ACTION;a.quickEditUrl=b;return a};
w_A.prototype.Fc=function(a,b,c){var d=this.Ke(a);w_u.isTrue(d!=w_c,"Markup chunk not found for "+a);a=d.varName?d.varName:"";var e=b.p(c);w_u.isTrue(e!=w_c,"No data found for call: "+c);b.jb(a,e);c=this.ob(d.rootNode,b);b.Kc(a);return c};
w_A.prototype.ob=function(a,b){w_u.isTrue(a!=w_c,"Null node");var c=a;if(a.attributes){for(var d=[],e=[],f=0;f<a.attributes.length;f++){var g=a.attributes.item(f),h=this.We(g,b);if(g!=h){e[e.length]=g.nodeName;d[d.length]=h}}for(f=0;f<e.length;f++)a.attributes.removeNamedItem(e[f]);for(f=0;f<d.length;f++)a.attributes.setNamedItem(d[f])}if(a.nodeType==1)if(a.prefix==w_A.ACTION_NAMESPACE_PREFIX)c=this.Oe(a,b);else if(a.prefix==w_A.DATA_NAMESPACE_PREFIX)c=this.Ne(a,b);if(a.hasChildNodes()){for(d=a.ownerDocument.createDocumentFragment();a.hasChildNodes();){e=
a.firstChild;f=this.ob(e,b);d.appendChild(f);e!=f&&a.removeChild(e)}c.appendChild(d)}return c};w_A.prototype.We=function(a,b){if(a.prefix==w_A.INTERPRET_ATTR_NAMESPACE_PREFIX){var c=a.ownerDocument.createAttribute(a.localName||a.baseName);a=this.oe.Bc(a.nodeValue,b);c.nodeValue=a;return c}return a};w_A.prototype.Oe=function(a,b){var c=a.localName||a.baseName;a=this.Mc(c,a,b);return this.lf(a)};
w_A.prototype.lf=function(a){var b=a;if(!a)return document.createDocumentFragment();a.nodeType||(b=document.createTextNode(a));if(b.nodeType==3){a=document.createDocumentFragment();a.appendChild(b);b=a}return b};w_A.prototype.Mb=function(a,b){a=this.pb(a);return b.p(a[1])};
w_A.prototype.Ne=function(a,b){w_u.isTrue(a!=w_c,"Null element");w_u.isTrue(b!=w_c,"Null data");if(a.prefix!=w_A.DATA_NAMESPACE_PREFIX)return a;b=this.Mb(a.tagName,b);b=""+(b==w_c?"":b);var c=document.createElement("DIV");c.innerHTML=b;b=this.mb(c);return this.Ec(b,a.ownerDocument,w_b)};w_A.prototype.pb=function(a){a=a.split(":",2);a.length==1&&a.unshift("");a[0]=a[0].toLowerCase();return a};
w_A.prototype.Mc=function(a,b,c){var d="_WidgetBinding_"+a;if(this.oe[d])return this.oe[d](b,c);if(this.hb[d])return this.hb[d](b,c);w_u.isTrue(w_d,"could not find binding "+a);return w_c};
w_A.prototype.Ve=function(a){if(a==w_c)return w_c;var b;if(window.ActiveXObject){b=new ActiveXObject("Microsoft.XMLDOM");b.async="false";if(!b.loadXML(a))w_a(new Error(b.parseError))}else if(window.DOMParser){b=new DOMParser;b=b.parseFromString(a,"text/xml");if(b.documentElement.nodeName=="parsererror")w_a(new Error(b.documentElement.textContent))}else w_u.raise("Unable to find XML parser");return b.documentElement};
w_A.prototype.mb=function(a){for(var b=a.ownerDocument.createDocumentFragment();a.hasChildNodes();)b.appendChild(a.firstChild);return b};
w_A.prototype.Ec=function(a,b,c){w_u.isTrue(a!=w_c);if(b.importNode)if(a.nodeType==11){c=b.createDocumentFragment();for(a=a.firstChild;a!=w_c;a=a.nextSibling)c.appendChild(b.importNode(a,w_b));return c}else return b.importNode(a,w_b);if(!c){c=b.createElement("DIV");a=a.innerHTML||a.xml;c.innerHTML=a;return this.mb(c)}var d=function(e){var f;if(e.nodeType==1){if(e.nodeName=="SCRIPT")return document.createTextNode("");f=b.createElement(e.nodeName);e.style&&f.setAttribute("style",e.style.cssText);e.currentStyle.height&&
f.setAttribute("height",e.currentStyle.height);e.currentStyle.width&&f.setAttribute("width",e.currentStyle.width);for(var g=0;g<e.attributes.length;g++){var h=e.attributes[g];h.value&&h.value!="null"&&h.value!="false"&&h.value!="0"&&f.setAttribute(h.name,h.value)}}else if(e.nodeType==3)f=b.createTextNode(e.nodeValue);else if(e.nodeType==11)f=b.createDocumentFragment();else w_u.raise("unexpected node type "+e.nodeType);if(e.hasChildNodes())for(g=0;g<e.childNodes.length;g++)f.appendChild(d(e.childNodes[g]));
return f};return d(a)};w_A.prototype.oa=function(a,b,c,d){w_D.oa(a,b,this.e.instanceId,this.hb.d(),c,d)};w_A.prototype.lb=function(){return this.e.Qf};w_A.prototype.Ke=function(a){if(!a)return w_c;var b=w_D.je[a];b||(b=this.e.markups[a]);if(!b)return w_c;if(!b.parsedTemplate||!b.parsedTemplate.ownerDocument)this.Ue(b);b.parsedTemplate||w_u.raise("Parsing failed for "+a);b.rootNode=b.parsedTemplate.cloneNode(w_b);return b};
w_A.prototype.Ue=function(a){if(!a)return w_c;var b="<?xml version='1.0'?><markuproot xmlns:"+w_A.DATA_NAMESPACE_PREFIX+"='urn:ns1'  xmlns:"+w_A.ACTION_NAMESPACE_PREFIX+"='urn:ns2' xmlns:"+w_A.INTERPRET_ATTR_NAMESPACE_PREFIX+"='urn:ns3'  xmlns='http://www.w3.org/1999/xhtml'>"+a.template+"</markuproot>\n";b=this.Ve(b);a.parsedTemplate=this.mb(b);return a};
w_A.ConfigureWidget=function(a,b){b||(b="config");var c=document.forms[b].widgetId.value,d=document.forms[b].widgetType.value;a=w_E.ProcessForm(document.forms[b],a);a.success&&w_D.SaveWidget(a.values,c,d)};function w_D(){}w_D.Init=function(a,b,c){w_D.ib={};w_D.Rf=a;w_D.Vc=b;w_D.xi=c;w_D.Dd=[];if(!w_D.je)w_D.je={}};w_D.TrapClicks=function(a){a=w_D.CreateTransparentClickTrappingDiv(a.document);document.body.appendChild(a)};w_D._SetupPreview=function(){w_D.TrapClicks(window)};
w_D.NEW_WIDGET_WINDOW_NAME="chooseWidget";w_D.CHOOSE_WIDGET_ACTION="chooseWidget";w_D.EDIT_WIDGET_ACTION="editWidget";w_D.GetCallbackUrl=function(){return w_D.Vc};w_D.SetPageActionUrl=function(a,b){w_D.Yd=a;w_D.Yh=b};w_D.GetPageActionUrl=function(){return w_D.Yd};w_D.SetWidgetRefreshUrl=function(a){w_D.qi=a};w_D.GetWidgetRefreshUrl=function(){return w_D.qi};w_D._SetDataContext=function(a){w_D.Dd=a};w_D._SetSystemMarkup=function(a){w_D.je=a};
w_D._RegisterWidget=function(a,b,c){var d=new w_A(b);c||(c=window[a]);a=new c(d);d.cf(a);w_D.ib[b.instanceId]=a;w_D.DisplayWidget(a);return a};w_D._RegisterNewWidget=function(a,b,c){a=w_D._RegisterWidget(a,b,c);b=a.b();b.af(w_b);return a};w_D.DisplayWidget=function(a,b){var c=a.b();if(c.lb()!=w_z.DISPLAY_MODE_NONE){if(b||a.h&&a.h())c.ze();c.lb()==w_z.DISPLAY_MODE_FULL&&a.j&&a.j();a.b().Fh=w_d}};w_D.GetWidget=function(a){if(w_D.ib)return w_D.ib[a];return w_c};
w_D._PopupPaneFromParams=function(a,b,c,d,e){var f="";if(d)f="&widgetId="+d;a=w_D.Rf+"&action="+a+"&sectionId="+b+"&widgetType="+c+f;if(window.name==e){window.location.replace(a);window.focus();return window}e=window.open(a,e,"width=570,height=600,left=75,top=20,resizable=yes,scrollbars=yes");e.focus();return e};
w_D._PopupConfig=function(a){var b=a.getAttribute("id"),c=w_D.GetWidget(b);if(c){var d=c.b().configWin;if(d!=w_c&&!d.closed){d.focus();return w_d}}d="config"+b;a=w_D._PopupPaneFromParams(w_D.EDIT_WIDGET_ACTION,a.parentNode.getAttribute("id"),a.getAttribute("widgetType"),b,d);if(c)c.b().configWin=a;return w_d};
w_D._PopupToolbox=function(a){w_D._PopupPaneFromParams(w_D.CHOOSE_WIDGET_ACTION,a.parentNode.getAttribute("id"),a.getAttribute("widgetType"),a.getAttribute("id"),w_D.NEW_WIDGET_WINDOW_NAME);return w_d};w_D.DeleteWidgetFromPage=function(a,b,c){w_D.N(c,c.LayoutsMessages.DELETING,w_D.STATUS_MESSAGE_PENDING_CLASS);w_D.RunPageAction("delete",{},a,b)};w_A.prototype.Ze=function(a,b){w_D.N(b,b.LayoutsMessages.SAVING,w_D.STATUS_MESSAGE_PENDING_CLASS);this.oa("configure",a)};
w_D.SaveNewWidget=function(a,b,c){var d=document.getElementById("sectionId").value;a.sectionid=d;w_D.N(c,c.LayoutsMessages.SAVING,w_D.STATUS_MESSAGE_PENDING_CLASS);w_D.RunPageAction("addnew",a,"",b)};w_D.SaveWidget=function(a,b,c){w_p(c!=w_c,"no type");var d=_WidgetManager._GetWidget(b);w_p(d!=w_c,"no widget for "+b);d.b().Qe()?w_D.SaveNewWidget(a,c,window):d.a.Ze(a,window)};w_D._RunInitialAction=function(a){(a=w_D._GetWidget(a))&&a.b().oa("initial")};
w_D.oa=function(a,b,c,d,e,f){w_D.RunAction(w_D.Vc,a,b,c,d,e,f)};w_D.RunPageAction=function(a,b,c,d,e){if(w_D.Yd){b.pageToken=w_D.Yh;w_D.RunAction(w_D.Yd,a,b,c,d,e)}else w_n("RunPageAction error: pageActionUrl_ is undefined.  widgetid: "+c+" action: "+a)};
w_D.RunAction=function(a,b,c,d,e,f,g){b=["action",b,"widgetId",d,"widgetType",e,"responseType","js"];for(var h in c)if(typeof c[h]=="object")for(d=0;d<c[h].length;++d){b[b.length]=h;b[b.length]=c[h][d]}else{b[b.length]=h;b[b.length]=c[h]}g=="GET"?w_Fa(a,b,undefined,f||new w_Ia):w_Ga(a,b,f||new w_Ia)};w_D.SetConfigWin=function(a,b){if(a)if(a=w_D.GetWidget(a))a.b().configWin=b};
w_D.CloseIfNoPendingMessages=function(a,b){w_w==0?window.setTimeout(function(){a.close()},b):window.setTimeout(function(){w_D.CloseIfNoPendingMessages(a,b)},200)};w_D._KillPopupDelay=function(a,b){if(a){w_D.CloseIfNoPendingMessages(a,100);w_D.UpdateEditorStatus(a,b)}};w_D.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_D.c=function(a,b,c){var d=w_D.ib[a];if(c.errors!=w_c){(a=d?d.b().configWin:w_c)||(a=window);w_D.N(a,c.errors,w_D.STATUS_MESSAGE_BAD_CLASS);d&&d.va?d.va(b,c):w_D.va(c,a)}else{w_p(d!=w_c,"no widget for "+a);if(b=="initial"){d.b().Oc(c);w_D.DisplayWidget(d,w_b)}else d.c(b,c)}};w_D.va=function(a,b){a=a["error-details"];for(var c in a)w_E.SetError(c,a[c],b.document)};
w_A.prototype.k=function(a){w_D.N(this.configWin,a["status-message"],w_D.STATUS_MESSAGE_GOOD_CLASS);w_D.FinishPopupWork(this.e.instanceId,"_OnWidgetConfigured",function(b){window.opener._WidgetManager._OnWidgetConfigured(b,a)})};w_D._OnWidgetConfigured=function(a,b){if(window.parent&&window.parent.editor&&b)w_D.OnWidgetConfiguredWithData(a,b);else{b=w_D.GetWidget(a);b.xa&&b.xa()?window.location.replace(window.location.href):w_D._RunInitialAction(a)}};
w_D.OnWidgetConfiguredWithData=function(a,b){a=w_D._GetWidget(a);a.b().Oc(b.data);w_D.DisplayWidget(a,w_b);a.b().configWin=w_c};
w_D.HandlePageActionResult=function(a,b,c){var d=c["status-message"];if(c.errors!=w_c){w_D.N(window,c.errors,w_D.STATUS_MESSAGE_BAD_CLASS);w_D.va(c,window)}else if(b=="addnew"){var e;if(w_D.IsOpenerReachable(window)){if(window.opener&&window.opener.parent)e=window.opener.parent;e&&e.editor&&e.editor._HandleAddNewWidget(c)}w_D.N(window,d,w_D.STATUS_MESSAGE_GOOD_CLASS);if(window.opener==w_c)window.location="/rearrange?blogID="+c.blogID;else e&&e._WidgetManager?e._WidgetManager._KillPopupDelay(window):
w_D.CloseIfNoPendingMessages(window,100)}else{c=w_D.ib[a];w_p(c!=w_c);if(b=="delete"){w_D.N(c.b().configWin,d,w_D.STATUS_MESSAGE_GOOD_CLASS);w_D.FinishPopupWork(a,"_OnWidgetDeleted")}}};w_D._OnWidgetDeleted=function(a){var b=w_D.GetWidget(a);if(b){if(b.b().lb()==w_z.DISPLAY_MODE_LAYOUT)top.editor._HandleDeleteWidget(b.b().e.rootElement);else{b=b.b().e.rootElement;b.parentNode.removeChild(b)}delete w_D.ib[a]}};
w_D.FinishPopupWork=function(a,b,c){if(w_D.IsOpenerReachable(window)){var d=window.opener;c||(c=d._WidgetManager[b]);c(a);d._WidgetManager?d._WidgetManager._KillPopupDelay(window,a):w_D.CloseIfNoPendingMessages(window,100)}else{a=w_D.GetWidgetRefreshUrl()+"?widgetId="+a;a+="&func="+encodeURIComponent(b);window.location.replace(a)}};w_D.IsOpenerReachable=function(a){var b=w_d;try{if(a.opener){var c="X"+a.opener.document.domain;if(c&&c!="X")b=w_b}}catch(d){}return b};w_D.STATUS_MESSAGE_GOOD_CLASS="status-msg status-msg-yellow-on-white";
w_D.STATUS_MESSAGE_PENDING_CLASS=w_D.STATUS_MESSAGE_GOOD_CLASS;w_D.STATUS_MESSAGE_BAD_CLASS=w_D.STATUS_MESSAGE_GOOD_CLASS;w_D.N=function(a,b,c){a||(a=self);var d=a.document.getElementById("status-message-inner");if(d)d.innerHTML=b;if(a=a.document.getElementById("status-message"))a.className=c};w_D.MaybePrependHttp=function(a){if(a&&a.length>0&&a.substring(0,4)!="http")a="http://"+a;return a};
w_D.GetFirstElementInElementWithClass=function(a,b){if(w_r(a,b))return a;if(a)for(var c=a.childNodes.length,d=0;d<c;d++){var e=w_D.GetFirstElementInElementWithClass(a.childNodes.item(d),b);if(e)return e}return w_c};
w_D.CreateTransparentClickTrappingDiv=function(a){var b=a.createElement("div");a=a.body.scrollHeight;b.style.position="absolute";b.style.top="0px";b.style.left="0px";b.style.width="100%";b.style.height=a+"px";b.style.zIndex="10";b.style.cursor="default";b.onclick=w_D.Hc;b.onmousedown=w_D.Hc;b.onmouseup=w_D.Hc;b.style.background="white";b.style.filter="alpha(opacity=1)";b.style.opacity=".01";b.innerHTML="&nbsp;";return b};
w_D.Hc=function(a){a=a;if(!a)a=window.event;if(a){a.cancelBubble=w_b;a.stopPropagation&&a.stopPropagation()}return w_d};function w_B(a){this.ga=a}w_B.prototype._WidgetBinding_include=function(a,b){var c=a.getAttribute("name");a=a.getAttribute("data");return this.ga.Fc(c,b,a)};w_B.prototype._WidgetBinding_call=w_B.prototype._WidgetBinding_include;
w_B.prototype._WidgetBinding_loop=function(a,b){var c=a.getAttribute("values");c=this.ga.pb(c);c=this.ga.Mb(c[1],b);var d=a.getAttribute("var");d||w_u.raise("Invalid var= attribute on b:loop");var e=this.ga.mb(a);a=a.ownerDocument.createDocumentFragment();if(!c)return a;for(var f=0;f<c.length;f++){var g=c[f],h=e.cloneNode(w_b);b.jb(d,g);g=this.ga.ob(h,b);b.Kc(d);a.appendChild(g)}return a};
w_B.prototype._WidgetBinding_if=function(a,b){for(var c=this.Bc(a.getAttribute("cond"),b),d=a.ownerDocument.createDocumentFragment(),e=w_d;a.firstChild!=w_c;){var f=a.firstChild;if("else"==this.ga.pb(f.nodeName)[1].toLowerCase())e=w_b;else if(c&&!e||!c&&e){var g=this.ga.ob(f,b);d.appendChild(g)}f.parentNode==a&&a.removeChild(f)}return d};
w_B.prototype.Bc=function(a,b){w_u.isTrue(a!=w_c,"null expression");b=this.ef(a,b);try{var c=eval(b);return c}catch(d){w_n("expression=["+a+"] error="+d+" eval=["+b+"]")}return""};
w_B.prototype.ef=function(a,b){for(var c=new RegExp("\\b(?:"+w_A.DATA_NAMESPACE_PREFIX+"|"+w_A.ACTION_NAMESPACE_PREFIX+"):[^ ]*\\b","gi"),d="",e=0,f=c.exec(a);f;){var g=f[0];if(!this.Pe(a,c.lastIndex)){var h,i=this.ga.pb(g);if(i[0]==w_A.ACTION_NAMESPACE_PREFIX)h=this.ga.Mc(i[1],w_c,b);else if(i[0]==w_A.DATA_NAMESPACE_PREFIX){(h=this.ga.Mb(g,b))||(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_B.prototype.Pe=function(a,b){w_u.isTrue(b<=a.length,"Invalid index: i="+b+", l="+a.length);for(var c=0,d=0;d<b;d++)if(a.charAt(d)=='"'&&(d==0||a.charAt(d-1)!="\\"))c++;return c%2!=0};function w_E(){}w_E.ERROR_MSG_ACTIVE_CLASS="errorbox-bad errormsg";w_E.ERROR_MSG_INACTIVE_CLASS="errorbox-good";
w_E.ProcessForm=function(a,b){var c={};c.success=w_b;c.values={};c.errors={};for(var d in b){var e=w_E.GetFieldValue(a[d]),f=b[d];w_E.ClearError(d);if(f)if(f=f(e)){w_E.SetError(d,f);c.success=w_d;c.errors[d]=f}c.values[d]=e}return c};
w_E.GetFieldValue=function(a){if(!a)return undefined;if(a.type=="checkbox"){if(a.checked)return a.value;return undefined}if(a.type==w_c){for(var b=[],c=0;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_E.Je=function(a,b){b||(b=document);a="errormessage_"+a;return b.getElementById(a)};w_E.ClearError=function(a){if(a=w_E.Je(a)){a.innerHTML="";a.className=w_E.ERROR_MSG_INACTIVE_CLASS}};
w_E.SetError=function(a,b,c){if(a=w_E.Je(a,c)){a.innerHTML=b;a.className=w_E.ERROR_MSG_ACTIVE_CLASS}};w_E.GetRequiredStringFilter=function(){return function(a){a=a.replace(/^\s+/,"").replace(/\s+$/,"");if(a.length==0)return LayoutsMessages.FIELD_CANNOT_BE_BLANK;return undefined}};
w_E.GetNumberFilter=function(a,b){return function(c){c=parseInt(c,10);if(isNaN(c))return LayoutsMessages.MUST_SPECIFY_A_NUMBER;if(c<a)return LayoutsMessages.NUMBER_TOO_SMALL+" "+a;if(c>b)return LayoutsMessages.NUMBER_TOO_LARGE+" "+b;return undefined}};function w_C(){this.O=[];for(var a=0;a<w_D.Dd.length;++a){var b=w_D.Dd[a];this.O[this.O.length]=b}}w_C.DEFAULT_DICTIONARY_KEY="";w_C.MAX_DICTIONARY_DEPTH=50;w_C.SEPARATOR_CHAR=".";
w_C.prototype.jb=function(a,b){this.O.length>=w_C.MAX_DICTIONARY_DEPTH&&w_u.raise("Cannot add another dictionary: "+a);a.indexOf(w_C.SEPARATOR_CHAR)>-1&&w_u.raise("Cannot add dictionary name containing '.': "+a);var c={};c.name=a;c.data=b;this.O[this.O.length]=c};w_C.prototype.Kc=function(a){var b=this.O[this.O.length-1];b.name!=a&&w_u.raise("Dictionary "+a+" is not the last one, and can't be deleted: "+b.name);this.O.splice(this.O.length-1,1)};
w_C.prototype.Nb=function(a){if(a==w_c)a=w_C.DEFAULT_DICTIONARY_KEY;for(var b=this.O.length-1;b>=0;--b)if(this.O[b].name==a)return this.O[b].data;return w_c};w_C.prototype.Cc=function(){return this.Nb(w_C.DEFAULT_DICTIONARY_KEY)};w_C.prototype.se=function(a){this.jb(w_C.DEFAULT_DICTIONARY_KEY,a)};
w_C.prototype.p=function(a){var b=this.Nb(a);if(b)return b;var c=a.split(w_C.SEPARATOR_CHAR);if(c.length==1){b=this.Cc();return b[a]}b=this.Nb(c[0]);a=0;if(b)a=1;else b=this.Cc();for(a=a;a<c.length;a++){if(b==w_c)return w_c;b=b[c[a]]}return b};function w_Ja(){}w_Ja.prototype.c=function(){w_a(new Error("Unimplemented"))};var _WidgetManager=w_D;_WidgetManager.prototype=w_D.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_z;_WidgetInfo.prototype=w_z.prototype;function w_F(a){this.ti=w_d;this.vc=a;this.ac=window.document}w_F.DISABLED_BUTTON_CLASS="disabled-button";w_F.HIDDEN_MESSAGE_CLASS="status-msg-hidden";w_F.prototype.zc=function(){this.ac.getElementById(this.vc+"-inner").innerHTML="&nbsp;";w_s(this.ac.getElementById(this.vc),w_F.HIDDEN_MESSAGE_CLASS)};w_F.prototype.N=function(a){this.ac.getElementById(this.vc+"-inner").innerHTML=a;w_t(this.ac.getElementById(this.vc),w_F.HIDDEN_MESSAGE_CLASS)};function w_Ia(a){return function(b){var c=w_x(b);if(c>=500){if(b.responseText.length)document.body.innerHTML=b.responseText;else alert(LayoutsMessages.SERVER_ERROR);return w_d}return a?a(b):w_b}};function w_G(a){this.a=a}w_G.WIDGET_TYPE_NAME="AdSense";w_G.prototype.d=function(){return w_G.WIDGET_TYPE_NAME};w_G.prototype.b=function(){return this.a};w_G.prototype.c=function(a,b){this.a.k(b)};w_G.prototype.xa=function(){return w_b};var _AdSenseView=w_G;function w_H(a){this.a=a;this.e=a.r()}w_H.WIDGET_TYPE_NAME="BlogArchive";w_H.POST_LIST_CLASS="posts";w_H.INTERVAL_EXPANDED_VALUE="expanded";w_H.INTERVAL_COLLAPSED_VALUE="collapsed";w_H.LOADING_MSG="loading...";w_H.POST_COUNT_CLASS="post-count";w_H.POST_COUNT_LINK_CLASS="post-count-link";w_H.MENU_ROOT_ID="ArchiveMenu";w_H.TOGGLE_OPEN_CLASS="toggle-open";w_H.qh="&#9660;&nbsp;";w_H.Uf="&#9658;&nbsp;";w_H.prototype.d=function(){return w_H.WIDGET_TYPE_NAME};w_H.prototype.b=function(){return this.a};
w_H.prototype.h=function(){return w_d};w_H.prototype.c=function(a,b){if(a=="configure")this.a.k(b);else if(a=="getTitles")this.kf(b);else{this.widgetInfo.data=b;w_D.DisplayWidget(this)}};
w_H.prototype.j=function(){var a={};a.select=function(e){return e&&w_r(e,"toggle")};var b=this.a.X("ArchiveList");if(b){b=w_pa(this.e.rootElement,a);var c;if(b.length>0&&b[0].currentStyle)c=b[0].parentNode.currentStyle.color;for(a=0;a<b.length;a++){var d=b[a];d.onclick=this.gf.bind(this);if(c)d.style.color=c}if(c=this.a.X(w_H.MENU_ROOT_ID)){for(a=1;a<c.options.length;a++){b=c.options[a].value;if(b==window.location.href||window.location.href.match(b)!=w_c){c.selectedIndex=a;break}}c.onchange=this.Le.bind(this)}if(this.b().p().languageDirection==
"rtl")w_H.Uf="&#9668;&nbsp;"}};w_H.prototype.Le=function(){var a=this.a.X(w_H.MENU_ROOT_ID);if(a)if(a.value!="")window.location.href=a.value};
w_H.prototype.gf=function(a){a=a||window.event;var b=a.currentTarget||a.srcElement;if(b&&!w_r(b,"toggle"))b=b.parentNode;a=w_D.GetFirstElementInElementWithClass(b,"zippy");b=b.parentNode;if(w_r(b,w_H.INTERVAL_EXPANDED_VALUE)){w_t(b,w_H.INTERVAL_EXPANDED_VALUE);w_s(b,w_H.INTERVAL_COLLAPSED_VALUE);a.innerHTML=w_H.Uf;w_t(a,w_H.TOGGLE_OPEN_CLASS);return w_d}else{w_t(b,w_H.INTERVAL_COLLAPSED_VALUE);w_s(b,w_H.INTERVAL_EXPANDED_VALUE);a.innerHTML=w_H.qh;w_s(a,w_H.TOGGLE_OPEN_CLASS)}if(this.Se(b)){a=this.Dc(b);
if(!a){a=document.createElement("UL");b.appendChild(a);w_s(a,w_H.POST_LIST_CLASS)}a.appendChild(document.createTextNode(w_H.LOADING_MSG));this.a.oa("getTitles",{path:this.He(b)},w_c,"GET")}return w_d};w_H.prototype.Dc=function(a){return w_D.GetFirstElementInElementWithClass(a,w_H.POST_LIST_CLASS)};w_H.prototype.He=function(a){a=w_D.GetFirstElementInElementWithClass(a,w_H.POST_COUNT_LINK_CLASS);return a.href};
w_H.prototype.Ie=function(a){a=w_D.GetFirstElementInElementWithClass(a,w_H.POST_COUNT_CLASS);return parseInt(a.innerHTML.match(/\d+/),10)};w_H.prototype.kf=function(a){var b=a.path;b=this.Dc(this.Ge(b));b.innerHTML="";for(var c=0;c<a.posts.length;c++){var d=a.posts[c],e=document.createElement("li");e.innerHTML="<a href="+d.url+">"+d.title+"</a>";b.appendChild(e)}};w_H.prototype.Ge=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_H.prototype.Se=function(a){var b=a.getElementsByTagName("UL");if(!(b.length>0&&!w_r(b[0],"posts"))){b=this.Ie(a);a=a.getElementsByTagName("LI");a=a.length;return a<b}};var _BlogArchiveView=w_H;var w_=w_||{};w_.global=this;w_.DEBUG=w_b;w_.LOCALE="en_US";w_.bc=w_c;w_.provide=function(a){w_.Vf(a)};w_.Vf=function(a,b,c){a=a.split(".");c=c||w_.global;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)if(!a.length&&w_.isDef(b))c[d]=b;else c=c[d]?c[d]:(c[d]={})};w_.getObjectByName=function(a,b){a=a.split(".");b=b||w_.global;for(var c;c=a.shift();)if(b[c])b=b[c];else return w_c;return b};w_.globalize=function(a,b){b=b||w_.global;for(var c in a)b[c]=a[c]};
w_.addDependency=function(){};w_.require=function(){};w_.useStrictRequires=w_d;w_.basePath="";w_.nullFunction=function(){};w_.identityFunction=function(){return arguments[0]};w_.abstractMethod=function(){w_a(Error("unimplemented abstract method"))};w_.addSingletonGetter=function(a){a.getInstance=function(){return a.Oh||(a.Oh=new a)}};
w_.typeOf=function(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof Object)&&Object.prototype.toString.call(a)=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(!(a instanceof Object)&&(Object.prototype.toString.call(a)=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call")))return"function"}else return"null";
else if(b=="function"&&typeof a.call=="undefined")return"object";return b};w_.$h=function(a,b){if(b in a)for(var c in a)if(c==b&&Object.prototype.hasOwnProperty.call(a,b))return w_b;return w_d};w_.yi=function(a,b){return a instanceof Object?Object.prototype.propertyIsEnumerable.call(a,b):w_.$h(a,b)};w_.isDef=function(a){return a!==undefined};w_.isNull=function(a){return a===w_c};w_.isDefAndNotNull=function(a){return a!=w_c};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){a=w_.typeOf(a);return a=="object"||a=="array"||a=="function"};
w_.getHashCode=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(w_.ua))return a[w_.ua];a[w_.ua]||(a[w_.ua]=++w_.Lh);return a[w_.ua]};w_.removeHashCode=function(a){"removeAttribute"in a&&a.removeAttribute(w_.ua);try{delete a[w_.ua]}catch(b){}};w_.ua="closure_hashCode_"+Math.floor(Math.random()*2147483648).toString(36);w_.Lh=0;w_.cloneObject=function(a){var b=w_.typeOf(a);if(b=="object"||b=="array"){if(a.clone)return a.clone.call(a);b=b=="array"?[]:{};for(var c in a)b[c]=w_.cloneObject(a[c]);return b}return a};
w_.bind=function(a,b){var c=b||w_.global;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(c,e)}}else return function(){return a.apply(c,arguments)}};w_.partial=function(a){var b=Array.prototype.slice.call(arguments,1);return function(){var c=Array.prototype.slice.call(arguments);c.unshift.apply(c,b);return a.apply(this,c)}};
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_.bc==w_c){w_.global.eval("var _et_ = 1;");if(typeof w_.global._et_!="undefined"){delete w_.global._et_;w_.bc=w_b}else w_.bc=w_d}if(w_.bc)w_.global.eval(a);else{var b=w_.global.document,c=b.createElement("script");c.type="text/javascript";c.defer=w_d;c.appendChild(b.createTextNode(a));b.body.appendChild(c);b.body.removeChild(c)}}else w_a(Error("goog.globalEval not available"))};
w_.typedef=w_b;w_.getCssName=function(a,b){a=a+(b?"-"+b:"");return w_.ad&&a in w_.ad?w_.ad[a]:a};w_.setCssNameMapping=function(a){w_.ad=a};w_.getMsg=function(a,b){b=b||{};for(var c in b)a=a.replace(new RegExp("\\{\\$"+c+"\\}","gi"),b[c]);return a};w_.exportSymbol=function(a,b,c){w_.Vf(a,b,c)};w_.exportProperty=function(a,b,c){a[b]=c};w_.inherits=function(a,b){function c(){}c.prototype=b.prototype;a.wc=b.prototype;a.prototype=new c;a.prototype.constructor=a};w_.MODIFY_FUNCTION_PROTOTYPES=w_b;
if(w_.MODIFY_FUNCTION_PROTOTYPES){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_c,b)}else return w_.bind(this,a)};Function.prototype.partial=function(){var a=Array.prototype.slice.call(arguments);a.unshift(this,w_c);return w_.bind.apply(w_c,a)};Function.prototype.inherits=function(a){w_.inherits(this,a)};Function.prototype.mixin=function(a){w_.mixin(this.prototype,a)}};w_.array={};w_.array.ArrayLike=w_.typedef;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);for(c=c=c==w_c?0:c<0?Math.max(0,a.length+c):c;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
w_.array.lastIndexOf=function(a,b,c){c=c==w_c?a.length-1:c;if(a.lastIndexOf)return a.lastIndexOf(b,c);if(Array.lastIndexOf)return Array.lastIndexOf(a,b,c);if(c<0)c=Math.max(0,a.length+c);for(c=c;c>=0;c--)if(c in a&&a[c]===b)return c;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 for(var d=a.length,e=w_.isString(a)?a.split(""):a,f=0;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;for(d=d-1;d>=0;--d)d in e&&b.call(c,e[d],d,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);for(var d=a.length,e=[],f=0,g=w_.isString(a)?a.split(""):a,h=0;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);for(var d=a.length,e=[],f=0,g=w_.isString(a)?a.split(""):a,h=0;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);for(var d=a.length,e=w_.isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return w_b;return w_d};
w_.array.every=function(a,b,c){if(a.every)return a.every(b,c);if(Array.every)return Array.every(a,b,c);for(var d=a.length,e=w_.isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return w_d;return w_b};w_.array.find=function(a,b,c){b=w_.array.findIndex(a,b,c);return b<0?w_c:w_.isString(a)?a.charAt(b):a[b]};w_.array.findIndex=function(a,b,c){for(var d=a.length,e=w_.isString(a)?a.split(""):a,f=0;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){b=w_.array.findIndexRight(a,b,c);return b<0?w_c:w_.isString(a)?a.charAt(b):a[b]};w_.array.findIndexRight=function(a,b,c){var d=a.length,e=w_.isString(a)?a.split(""):a;for(d=d-1;d>=0;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};w_.array.contains=function(a,b){if(a.contains)return a.contains(b);return w_.array.indexOf(a,b)>-1};w_.array.w=function(a){return a.length==0};
w_.array.clear=function(a){if(!w_.isArray(a))for(var b=a.length-1;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_c,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){b=w_.array.indexOf(a,b);var c;if(c=b!=-1)w_.array.removeAt(a,b);return c};w_.array.removeAt=function(a,b){return Array.prototype.splice.call(a,b,1).length==1};w_.array.removeIf=function(a,b,c){b=w_.array.findIndex(a,b,c);if(b>=0){w_.array.removeAt(a,b);return w_b}return w_d};w_.array.clone=function(a){if(w_.isArray(a))return a.concat();else{for(var b=[],c=0,d=a.length;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){for(var b=1;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){b=b||a;for(var c={},d=0,e=0;e<a.length;){var f=a[e++],g=w_.isObject(f)?w_.getHashCode(f):f;if(!Object.prototype.hasOwnProperty.call(c,g)){c[g]=w_b;b[d++]=f}}b.length=d};w_.array.binarySearch=function(a,b,c){var d=0,e=a.length-1;for(c=c||w_.array.defaultCompare;d<=e;){var f=d+e>>1,g=c(b,a[f]);if(g>0)d=f+1;else if(g<0)e=f-1;else return f}return-(d+1)};w_.array.sort=function(a,b){Array.prototype.sort.call(a,b||w_.array.defaultCompare)};
w_.array.stableSort=function(a,b){for(var c=0;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);for(c=0;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.equals=function(a,b,c){if(!w_.isArrayLike(a)||!w_.isArrayLike(b)||a.length!=b.length)return w_d;var d=a.length;c=c||w_.array.defaultCompareEquality;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return w_d;return w_b};w_.array.compare=function(a,b,c){return w_.array.equals(a,b,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){c=w_.array.binarySearch(a,b,c);if(c<0){w_.array.insertAt(a,b,-(c+1));return w_b}return w_d};w_.array.binaryRemove=function(a,b,c){b=w_.array.binarySearch(a,b,c);return b>=0?w_.array.removeAt(a,b):w_d};w_.array.bucket=function(a,b){for(var c={},d=0;d<a.length;d++){var e=a[d],f=b(e,d,a);if(w_.isDef(f)){f=c[f]||(c[f]=[]);f.push(e)}}return c};w_.array.repeat=function(a,b){for(var c=[],d=0;d<b;d++)c[d]=a;return c};
w_.array.flatten=function(){for(var a=[],b=0;b<arguments.length;b++){var c=arguments[b];w_.isArray(c)?a.push.apply(a,w_.array.flatten.apply(w_c,c)):a.push(c)}return a};w_.array.rotate=function(a,b){if(a.length){b%=a.length;if(b>0)Array.prototype.unshift.apply(a,a.splice(-b,b));else b<0&&Array.prototype.push.apply(a,a.splice(0,-b))}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_b;if(!a||!b)return w_d;return a.x==b.x&&a.y==b.y};w_.math.Coordinate.distance=function(a,b){var c=a.x-b.x;a=a.y-b.y;return Math.sqrt(c*c+a*a)};
w_.math.Coordinate.squaredDistance=function(a,b){var c=a.x-b.x;a=a.y-b.y;return c*c+a*a};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_b;if(!a||!b)return w_d;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.w=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_b;return w_d};w_.object.every=function(a,b,c){for(var d in a)if(!b.call(c,a[d],d,a))return w_d;return w_b};
w_.object.T=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.ha(a,b)};w_.object.n=function(a){var b=[],c=0;for(var d in a)b[c++]=a[d];return b};w_.object.l=function(a){var b=[],c=0;for(var d in a)b[c++]=d;return b};w_.object.s=function(a,b){return b in a};w_.object.ha=function(a,b){for(var c in a)if(a[c]==b)return w_b;return w_d};
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){return(b=w_.object.findKey(a,b,c))&&a[b]};w_.object.w=function(a){for(var b in a)return w_d;return w_b};w_.object.clear=function(a){for(var b=w_.object.l(a),c=b.length-1;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_a(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={};for(var c in a)b[a[c]]=c;return b};
w_.object.Te=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];w_.object.extend=function(a){for(var b,c,d=1;d<arguments.length;d++){c=arguments[d];for(b in c)a[b]=c[b];for(var e=0;e<w_.object.Te.length;e++){b=w_.object.Te[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_c,arguments[0]);if(a%2)w_a(Error("Uneven number of arguments"));for(var b={},c=0;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_c,arguments[0]);for(var b={},c=0;c<a;c++)b[arguments[c]]=w_b;return b};w_.string={};w_.string.Unicode={NBSP:"\u00a0"};w_.string.uc=function(a,b){return a.indexOf(b)==0};w_.string.fd=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){for(var b=1;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.w=function(a){return/^[\s\xa0]*$/.test(a)};w_.string.isEmptySafe=function(a){return w_.string.w(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){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1};w_.string.Ig=/(\.\d+)|(\d+)|(\D+)/g;
w_.string.numerateCompare=function(a,b){if(a==b)return 0;if(!a)return-1;if(!b)return 1;for(var c=a.toLowerCase().match(w_.string.Ig),d=b.toLowerCase().match(w_.string.Ig),e=Math.min(c.length,d.length),f=0;f<e;f++){var g=c[f],h=d[f];if(g!=h){a=parseInt(g,10);if(!isNaN(a)){b=parseInt(h,10);if(!isNaN(b)&&a-b)return a-b}return g<h?-1:1}}if(c.length!=d.length)return c.length-d.length;return a<b?-1:1};w_.string.Jh=/^[a-zA-Z0-9\-_.!~*'()]*$/;
w_.string.urlEncode=function(a){a=String(a);if(!w_.string.Jh.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.pf,"&amp;").replace(w_.string.Dg,"&lt;").replace(w_.string.ig,"&gt;").replace(w_.string.Ng,"&quot;");else{if(!w_.string.mh.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(w_.string.pf,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(w_.string.Dg,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(w_.string.ig,"&gt;");if(a.indexOf('"')!=-1)a=a.replace(w_.string.Ng,"&quot;");return a}};w_.string.pf=/&/g;w_.string.Dg=/</g;w_.string.ig=/>/g;
w_.string.Ng=/\"/g;w_.string.mh=/[&<>\"]/;w_.string.unescapeEntities=function(a){if(w_.string.contains(a,"&"))return"document"in w_.global&&!w_.string.contains(a,"<")?w_.string.mi(a):w_.string.ni(a);return a};w_.string.mi=function(a){var b=w_.global.document.createElement("a");b.innerHTML=a;b[w_.string.Re]&&b[w_.string.Re]();a=b.firstChild.nodeValue;b.innerHTML="";return a};
w_.string.ni=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)=="#"){c=Number("0"+c.substr(1));if(!isNaN(c))return String.fromCharCode(c)}return b}})};w_.string.Re="normalize";w_.string.whitespaceEscape=function(a,b){return w_.string.newLineToBr(a.replace(/  /g," &#160;"),b)};
w_.string.stripQuotes=function(a,b){for(var c=b.length,d=0;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.Qd={"\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{for(var b=['"'],c=0;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.Qd)return w_.string.Qd[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.Qd[a]=b};
w_.string.toMap=function(a){for(var b={},c=0;c<a.length;c++)b[a.charAt(c)]=w_b;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){b=new RegExp(w_.string.regExpEscape(b),"");return a.replace(b,"")};w_.string.removeAll=function(a,b){b=new RegExp(w_.string.regExpEscape(b),"g");return a.replace(b,"")};
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){a=w_.isDef(c)?a.toFixed(c):String(a);c=a.indexOf(".");if(c==-1)c=a.length;return w_.string.repeat("0",Math.max(0,b-c))+a};w_.string.makeSafe=function(a){return a==w_c?"":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;a=w_.string.trim(String(a)).split(".");b=w_.string.trim(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&e<d;e++){var f=a[e]||"",g=b[e]||"",h=new RegExp("(\\d*)(\\D*)","g"),i=new RegExp("(\\d*)(\\D*)","g");do{var k=h.exec(f)||["","",""],j=i.exec(g)||["","",""];if(k[0].length==0&&j[0].length==0)break;c=k[1].length==0?0:parseInt(k[1],10);var l=j[1].length==0?0:parseInt(j[1],10);c=w_.string.Yc(c,l)||w_.string.Yc(k[2].length==0,j[2].length==
0)||w_.string.Yc(k[2],j[2])}while(c==0)}return c};w_.string.Yc=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};w_.string.jh=4294967296;w_.string.hashCode=function(a){for(var b=0,c=0;c<a.length;++c){b=31*b+a.charCodeAt(c);b%=w_.string.jh}return b};w_.string.pi=w_.now();w_.string.createUniqueString=function(){return"goog_"+w_.string.pi++};w_.string.toNumber=function(a){var b=Number(a);if(b==0&&w_.string.w(a))return NaN;return b};w_.userAgent={};w_.userAgent.ASSUME_IE=w_d;w_.userAgent.ASSUME_GECKO=w_d;w_.userAgent.ASSUME_CAMINO=w_d;w_.userAgent.ASSUME_WEBKIT=w_d;w_.userAgent.ASSUME_MOBILE_WEBKIT=w_d;w_.userAgent.ASSUME_OPERA=w_d;w_.userAgent.ta=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_c};
w_.userAgent.getNavigator=function(){return w_.global.navigator};
w_.userAgent.Md=function(){w_.userAgent.rb=w_d;w_.userAgent.Mf=w_d;w_.userAgent.Zb=w_d;w_.userAgent.Of=w_d;w_.userAgent.cd=w_d;w_.userAgent.qb=w_d;var a;if(!w_.userAgent.ta&&(a=w_.userAgent.getUserAgentString())){var b=w_.userAgent.getNavigator();w_.userAgent.rb=a.indexOf("Opera")==0;w_.userAgent.Mf=!w_.userAgent.rb&&a.indexOf("MSIE")!=-1;w_.userAgent.Zb=!w_.userAgent.rb&&a.indexOf("WebKit")!=-1;w_.userAgent.Of=w_.userAgent.Zb&&a.indexOf("Mobile")!=-1;w_.userAgent.cd=!w_.userAgent.rb&&!w_.userAgent.Zb&&
b.product=="Gecko";w_.userAgent.qb=w_.userAgent.cd&&b.vendor=="Camino"}};w_.userAgent.ta||w_.userAgent.Md();w_.userAgent.OPERA=w_.userAgent.ta?w_.userAgent.ASSUME_OPERA:w_.userAgent.rb;w_.userAgent.IE=w_.userAgent.ta?w_.userAgent.ASSUME_IE:w_.userAgent.Mf;w_.userAgent.GECKO=w_.userAgent.ta?w_.userAgent.ASSUME_GECKO||w_.userAgent.ASSUME_CAMINO:w_.userAgent.cd;w_.userAgent.CAMINO=w_.userAgent.ta?w_.userAgent.ASSUME_CAMINO:w_.userAgent.qb;
w_.userAgent.WEBKIT=w_.userAgent.ta?w_.userAgent.ASSUME_WEBKIT||w_.userAgent.ASSUME_MOBILE_WEBKIT:w_.userAgent.Zb;w_.userAgent.MOBILE=w_.userAgent.ASSUME_MOBILE_WEBKIT||w_.userAgent.Of;w_.userAgent.SAFARI=w_.userAgent.WEBKIT;w_.userAgent.Dh=function(){var a=w_.userAgent.getNavigator();return a&&a.platform||""};w_.userAgent.PLATFORM=w_.userAgent.Dh();w_.userAgent.ASSUME_MAC=w_d;w_.userAgent.ASSUME_WINDOWS=w_d;w_.userAgent.ASSUME_LINUX=w_d;w_.userAgent.ASSUME_X11=w_d;
w_.userAgent.nb=w_.userAgent.ASSUME_MAC||w_.userAgent.ASSUME_WINDOWS||w_.userAgent.ASSUME_LINUX||w_.userAgent.ASSUME_X11;w_.userAgent.Mh=function(){w_.userAgent.Ah=w_.string.contains(w_.userAgent.PLATFORM,"Mac");w_.userAgent.Bh=w_.string.contains(w_.userAgent.PLATFORM,"Win");w_.userAgent.zh=w_.string.contains(w_.userAgent.PLATFORM,"Linux");w_.userAgent.Ch=!!w_.userAgent.getNavigator()&&w_.string.contains(w_.userAgent.getNavigator().appVersion||"","X11")};w_.userAgent.nb||w_.userAgent.Mh();
w_.userAgent.MAC=w_.userAgent.nb?w_.userAgent.ASSUME_MAC:w_.userAgent.Ah;w_.userAgent.WINDOWS=w_.userAgent.nb?w_.userAgent.ASSUME_WINDOWS:w_.userAgent.Bh;w_.userAgent.LINUX=w_.userAgent.nb?w_.userAgent.ASSUME_LINUX:w_.userAgent.zh;w_.userAgent.X11=w_.userAgent.nb?w_.userAgent.ASSUME_X11:w_.userAgent.Ch;
w_.userAgent.Eh=function(){var a="",b;if(w_.userAgent.OPERA&&w_.global.opera){a=w_.global.opera.version;a=typeof a=="function"?a():a}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)a=(a=b.exec(w_.userAgent.getUserAgentString()))?a[1]:""}return a};w_.userAgent.VERSION=w_.userAgent.Eh();w_.userAgent.compare=function(a,b){return w_.string.compareVersions(a,b)};w_.userAgent.xg={};
w_.userAgent.isVersion=function(a){return w_.userAgent.xg[a]||(w_.userAgent.xg[a]=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){return(a=a.className)&&typeof a.split=="function"?a.split(" "):[]};w_.dom.classes.add=function(a){var b=w_.dom.classes.get(a),c=w_.array.slice(arguments,1);c=w_.dom.classes.of(b,c);a.className=b.join(" ");return c};w_.dom.classes.remove=function(a){var b=w_.dom.classes.get(a),c=w_.array.slice(arguments,1);c=w_.dom.classes.Rg(b,c);a.className=b.join(" ");return c};
w_.dom.classes.of=function(a,b){for(var c=0,d=0;d<b.length;d++)if(!w_.array.contains(a,b[d])){a.push(b[d]);c++}return c==b.length};w_.dom.classes.Rg=function(a,b){for(var c=0,d=0;d<a.length;d++)if(w_.array.contains(b,a[d])){w_.array.splice(a,d--,1);c++}return c==b.length};w_.dom.classes.swap=function(a,b,c){for(var d=w_.dom.classes.get(a),e=w_d,f=0;f<d.length;f++)if(d[f]==b){w_.array.splice(d,f--,1);e=w_b}if(e){d.push(c);a.className=d.join(" ")}return e};
w_.dom.classes.addRemove=function(a,b,c){var d=w_.dom.classes.get(a);if(w_.isString(b))w_.array.remove(d,b);else w_.isArray(b)&&w_.dom.classes.Rg(d,b);if(w_.isString(c)&&!w_.array.contains(d,c))d.push(c);else w_.isArray(c)&&w_.dom.classes.of(d,c);a.className=d.join(" ")};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_d;w_.dom.ASSUME_STANDARDS_MODE=w_d;w_.dom.eh=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.V=function(a){return a?new w_.dom.DomHelper(w_.dom.u(a)):w_.dom.xh||(w_.dom.xh=new w_.dom.DomHelper)};w_.dom.Da=function(){return document};
w_.dom.ub=function(a){return w_.isString(a)?document.getElementById(a):a};w_.dom.pe=w_.dom.ub;w_.dom.pa=function(a,b,c){return w_.dom.eg(document,a,b,c)};
w_.dom.eg=function(a,b,c,d){d=d||a;b=b&&b!="*"?b.toLowerCase():"";if(d.querySelectorAll&&(b||c)&&(!w_.userAgent.WEBKIT||w_.dom.ab(a)||w_.userAgent.isVersion("528"))){c=b+(c?"."+c:"");return d.querySelectorAll(c)}if(c&&d.getElementsByClassName){a=d.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,g;g=a[f];f++)if(b==g.nodeName.toLowerCase())d[e++]=g;d.length=e;return d}else return a}a=d.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;g=a[f];f++){b=g.className;if(typeof b.split=="function"&&w_.array.contains(b.split(" "),
c))d[e++]=g}d.length=e;return d}else return a};w_.dom.qe=w_.dom.pa;w_.dom.Hb=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.xe)a.setAttribute(w_.dom.xe[d],c);else a[d]=c})};w_.dom.xe={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"};
w_.dom.xb=function(a){return w_.dom.hg(a||window)};w_.dom.hg=function(a){var b=a.document;if(w_.userAgent.WEBKIT&&!w_.userAgent.isVersion("500")&&!w_.userAgent.MOBILE){if(typeof a.innerHeight=="undefined")a=window;b=a.innerHeight;var c=a.document.documentElement.scrollHeight;if(a==a.top)if(c<b)b-=15;return new w_.math.Size(a.innerWidth,b)}a=w_.dom.ab(b)&&(!w_.userAgent.OPERA||w_.userAgent.OPERA&&w_.userAgent.isVersion("9.50"))?b.documentElement:b.body;return new w_.math.Size(a.clientWidth,a.clientHeight)};
w_.dom.bg=function(){return w_.dom.cg(window)};w_.dom.cg=function(a){var b=a.document,c=0;if(b){a=w_.dom.hg(a).height;c=b.body;var d=b.documentElement;if(w_.dom.ab(b)&&d.scrollHeight)c=d.scrollHeight!=a?d.scrollHeight:d.offsetHeight;else{b=d.scrollHeight;var e=d.offsetHeight;if(d.clientHeight!=e){b=c.scrollHeight;e=c.offsetHeight}c=b>a?b>e?b:e:b<e?b:e}}return c};w_.dom.getPageScroll=function(a){a=a||w_.global||window;return w_.dom.V(a.document).Ya()};w_.dom.Ya=function(){return w_.dom.dg(document)};
w_.dom.dg=function(a){a=w_.dom.od(a);return new w_.math.Coordinate(a.scrollLeft,a.scrollTop)};w_.dom.nd=function(){return w_.dom.od(document)};w_.dom.od=function(a){return!w_.userAgent.WEBKIT&&w_.dom.ab(a)?a.documentElement:a.body};w_.dom.$a=function(a){return a?w_.dom.Cd(a):window};
w_.dom.Cd=function(a){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.K=function(){return w_.dom.Hf(document,arguments)};
w_.dom.Hf=function(a,b){var c=b[0],d=b[1];if(w_.userAgent.IE&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',w_.string.htmlEscape(d.name),'"');if(d.type){c.push(' type="',w_.string.htmlEscape(d.type),'"');d=w_.cloneObject(d);delete d.type}c.push(">");c=c.join("")}var e=a.createElement(c);if(d)if(w_.isString(d))e.className=d;else w_.dom.Hb(e,d);if(b.length>2){function f(g){if(g)e.appendChild(w_.isString(g)?a.createTextNode(g):g)}for(d=2;d<b.length;d++){c=b[d];w_.isArrayLike(c)&&!w_.dom.oc(c)?
w_.array.forEach(w_.dom.isNodeList(c)?w_.array.clone(c):c,f):f(c)}}return e};w_.dom.re=w_.dom.K;w_.dom.createElement=function(a){return document.createElement(a)};w_.dom.createTextNode=function(a){return document.createTextNode(a)};w_.dom.qg=function(a){return w_.dom.rg(document,a)};w_.dom.rg=function(a,b){var c=a.createElement("div");c.innerHTML=b;if(c.childNodes.length==1)return c.firstChild;else{for(a=a.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);return a}};
w_.dom.$f=function(){return w_.dom.ma()?"CSS1Compat":"BackCompat"};w_.dom.ma=function(){return w_.dom.ab(document)};w_.dom.ab=function(a){if(w_.dom.eh)return w_.dom.ASSUME_STANDARDS_MODE;return a.compatMode=="CSS1Compat"};w_.dom.canHaveChildren=function(a){if(a.nodeType!=w_.dom.NodeType.ELEMENT)return w_d;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_d}return w_b};
w_.dom.appendChild=function(a,b){a.appendChild(b)};w_.dom.Cb=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};w_.dom.Od=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b)};w_.dom.Nd=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_c};w_.dom.replaceNode=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};
w_.dom.ld=function(a){var b,c=a.parentNode;if(c&&c.nodeType!=w_.dom.NodeType.DOCUMENT_FRAGMENT)if(a.removeNode)return a.removeNode(w_d);else{for(;b=a.firstChild;)c.insertBefore(b,a);return w_.dom.removeNode(a)}};w_.dom.pd=function(a){return w_.dom.ic(a.firstChild,w_b)};w_.dom.rd=function(a){return w_.dom.ic(a.lastChild,w_d)};w_.dom.td=function(a){return w_.dom.ic(a.nextSibling,w_b)};w_.dom.xd=function(a){return w_.dom.ic(a.previousSibling,w_d)};
w_.dom.ic=function(a,b){for(;a&&a.nodeType!=w_.dom.NodeType.ELEMENT;)a=b?a.nextSibling:a.previousSibling;return a};w_.dom.oc=function(a){return w_.isObject(a)&&a.nodeType>0};w_.dom.dh=w_.userAgent.WEBKIT&&w_.userAgent.isVersion("522");
w_.dom.contains=function(a,b){if(typeof a.contains!="undefined"&&!w_.dom.dh&&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.Gf(a,b);if(!c&&w_.dom.contains(e,b))return-1*w_.dom.Ff(a,b);if(!d&&w_.dom.contains(f,a))return w_.dom.Ff(b,a);return(c?a.sourceIndex:
e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}}d=w_.dom.u(a);c=d.createRange();c.selectNode(a);c.collapse(w_b);a=d.createRange();a.selectNode(b);a.collapse(w_b);return c.compareBoundaryPoints(w_.global.Range.START_TO_END,a)};w_.dom.Ff=function(a,b){var c=a.parentNode;if(c==b)return-1;for(b=b;b.parentNode!=c;)b=b.parentNode;return w_.dom.Gf(b,a)};w_.dom.Gf=function(a,b){for(b=b;b=b.previousSibling;)if(b==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_c;var c=[],d=Infinity;for(a=0;a<b;a++){for(var e=[],f=arguments[a];f;){e.unshift(f);f=f.parentNode}c.push(e);d=Math.min(d,e.length)}e=w_c;for(a=0;a<d;a++){f=c[0][a];for(var g=1;g<b;g++)if(f!=c[g][a])return e;e=f}return e};w_.dom.u=function(a){return a.nodeType==w_.dom.NodeType.DOCUMENT?a:a.ownerDocument||a.document};
w_.dom.fc=function(a){return a=w_.userAgent.WEBKIT?a.document||a.contentWindow.document:a.contentDocument||a.contentWindow.document};w_.dom.qd=function(a){return a.contentWindow||w_.dom.Cd(w_.dom.fc(a))};w_.dom.ge=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.Cb(a);var c=w_.dom.u(a);a.appendChild(c.createTextNode(b))}};
w_.dom.getOuterHtml=function(a){if("outerHTML"in a)return a.outerHTML;else{var b=w_.dom.u(a);b=b.createElement("div");b.appendChild(a.cloneNode(w_b));return b.innerHTML}};w_.dom.hd=function(a,b){var c=[];return(a=w_.dom.kd(a,b,c,w_b))?c[0]:undefined};w_.dom.jd=function(a,b){var c=[];w_.dom.kd(a,b,c,w_d);return c};w_.dom.kd=function(a,b,c,d){if(a!=w_c)for(var e=0,f;f=a.childNodes[e];e++){if(b(f)){c.push(f);if(d)return w_b}if(w_.dom.kd(f,b,c,d))return w_b}return w_d};
w_.dom.ff={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};w_.dom.Rb={IMG:" ",BR:"\n"};w_.dom.isFocusableTabIndex=function(a){var b=a.getAttributeNode("tabindex");if(b&&b.specified){a=a.tabIndex;return w_.isNumber(a)&&a>=0}return w_d};w_.dom.setFocusableTabIndex=function(a,b){if(b)a.tabIndex=0;else a.removeAttribute("tabIndex")};
w_.dom.wb=function(a){if(w_.userAgent.IE&&"innerText"in a)a=w_.string.canonicalizeNewlines(a.innerText);else{var b=[];w_.dom.Ad(a,b,w_b);a=b.join("")}a=a.replace(/\xAD/g,"");a=a.replace(/ +/g," ");if(a!=" ")a=a.replace(/^\s*/,"");return a};w_.dom.getRawTextContent=function(a){var b=[];w_.dom.Ad(a,b,w_d);return b.join("")};
w_.dom.Ad=function(a,b,c){if(!(a.nodeName in w_.dom.ff))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.Rb)b.push(w_.dom.Rb[a.nodeName]);else for(a=a.firstChild;a;){w_.dom.Ad(a,b,c);a=a.nextSibling}};w_.dom.ud=function(a){return w_.dom.wb(a).length};
w_.dom.vd=function(a,b){b=b||w_.dom.u(a).body;for(var c=[];a&&a!=b;){for(var d=a;d=d.previousSibling;)c.unshift(w_.dom.wb(d));a=a.parentNode}return w_.string.trimLeft(c.join("")).replace(/ +/g," ").length};
w_.dom.getNodeAtOffset=function(a,b,c){a=[a];for(var d=0,e;a.length>0&&d<b;){e=a.pop();if(!(e.nodeName in w_.dom.ff))if(e.nodeType==w_.dom.NodeType.TEXT){var f=e.nodeValue.replace(/(\r\n|\r|\n)/g,"").replace(/ +/g," ");d+=f.length}else if(e.nodeName in w_.dom.Rb)d+=w_.dom.Rb[e.nodeName].length;else for(f=e.childNodes.length-1;f>=0;f--)a.push(e.childNodes[f])}if(w_.isObject(c)){c.remainder=e?e.nodeValue.length+b-d-1:0;c.node=e}return e};
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_d};w_.dom.md=function(a,b,c){return w_.dom.dc(a,function(d){return(!b||d.nodeName==b)&&(!c||w_.dom.classes.has(d,c))},w_b)};w_.dom.dc=function(a,b,c,d){if(!c)a=a.parentNode;c=d==w_c;for(var e=0;a&&(c||e<=d);){if(b(a))return a;a=a.parentNode;e++}return w_c};
w_.dom.DomHelper=function(a){this.Z=a||w_.global.document||document};w_.dom.DomHelper.prototype.V=w_.dom.V;w_.dom.DomHelper.prototype.Da=function(){return this.Z};w_.dom.DomHelper.prototype.ub=function(a){return w_.isString(a)?this.Z.getElementById(a):a};w_.dom.DomHelper.prototype.pe=w_.dom.DomHelper.prototype.ub;w_.dom.DomHelper.prototype.pa=function(a,b,c){return w_.dom.eg(this.Z,a,b,c)};w_.dom.DomHelper.prototype.qe=w_.dom.DomHelper.prototype.pa;w_.dom.DomHelper.prototype.Hb=w_.dom.Hb;
w_.dom.DomHelper.prototype.xb=function(a){return w_.dom.xb(a||this.$a())};w_.dom.DomHelper.prototype.bg=function(){return w_.dom.cg(this.$a())};w_.dom.DomHelper.prototype.K=function(){return w_.dom.Hf(this.Z,arguments)};w_.dom.DomHelper.prototype.re=w_.dom.DomHelper.prototype.K;w_.dom.DomHelper.prototype.createElement=function(a){return this.Z.createElement(a)};w_.dom.DomHelper.prototype.createTextNode=function(a){return this.Z.createTextNode(a)};
w_.dom.DomHelper.prototype.qg=function(a){return w_.dom.rg(this.Z,a)};w_.dom.DomHelper.prototype.$f=function(){return this.ma()?"CSS1Compat":"BackCompat"};w_.dom.DomHelper.prototype.ma=function(){return w_.dom.ab(this.Z)};w_.dom.DomHelper.prototype.$a=function(){return w_.dom.Cd(this.Z)};w_.dom.DomHelper.prototype.nd=function(){return w_.dom.od(this.Z)};w_.dom.DomHelper.prototype.Ya=function(){return w_.dom.dg(this.Z)};w_.dom.DomHelper.prototype.appendChild=w_.dom.appendChild;
w_.dom.DomHelper.prototype.Cb=w_.dom.Cb;w_.dom.DomHelper.prototype.Od=w_.dom.Od;w_.dom.DomHelper.prototype.Nd=w_.dom.Nd;w_.dom.DomHelper.prototype.removeNode=w_.dom.removeNode;w_.dom.DomHelper.prototype.replaceNode=w_.dom.replaceNode;w_.dom.DomHelper.prototype.ld=w_.dom.ld;w_.dom.DomHelper.prototype.pd=w_.dom.pd;w_.dom.DomHelper.prototype.rd=w_.dom.rd;w_.dom.DomHelper.prototype.td=w_.dom.td;w_.dom.DomHelper.prototype.xd=w_.dom.xd;w_.dom.DomHelper.prototype.oc=w_.dom.oc;
w_.dom.DomHelper.prototype.contains=w_.dom.contains;w_.dom.DomHelper.prototype.u=w_.dom.u;w_.dom.DomHelper.prototype.fc=w_.dom.fc;w_.dom.DomHelper.prototype.qd=w_.dom.qd;w_.dom.DomHelper.prototype.ge=w_.dom.ge;w_.dom.DomHelper.prototype.hd=w_.dom.hd;w_.dom.DomHelper.prototype.jd=w_.dom.jd;w_.dom.DomHelper.prototype.wb=w_.dom.wb;w_.dom.DomHelper.prototype.ud=w_.dom.ud;w_.dom.DomHelper.prototype.vd=w_.dom.vd;w_.dom.DomHelper.prototype.md=w_.dom.md;w_.dom.DomHelper.prototype.dc=w_.dom.dc;w_.debug={};w_.debug.errorHandlerWeakDep={protectEntryPoint:function(a){return a}};w_.Disposable=function(){};w_.Disposable.prototype.ed=w_d;w_.Disposable.prototype.dispose=function(){if(!this.ed){this.ed=w_b;this.L()}};w_.Disposable.prototype.L=function(){};w_.dispose=function(a){a&&typeof a.dispose=="function"&&a.dispose()};w_.structs={};w_.structs.SimplePool=function(a,b){w_.Disposable.call(this);this.Eg=b;this.Ca=[];this.If(a)};w_.inherits(w_.structs.SimplePool,w_.Disposable);w_.structs.SimplePool.prototype.Xb=w_c;w_.structs.SimplePool.prototype.$b=w_c;w_.structs.SimplePool.prototype.cb=function(a){this.Xb=a};w_.structs.SimplePool.prototype.ce=function(a){this.$b=a};w_.structs.SimplePool.prototype.ka=function(){if(this.Ca.length)return this.Ca.pop();return this.Zc()};
w_.structs.SimplePool.prototype.Na=function(a){this.Ca.length<this.Eg?this.Ca.push(a):this.dd(a)};w_.structs.SimplePool.prototype.If=function(a){if(a>this.Eg)w_a(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var b=0;b<a;b++)this.Ca.push(this.Zc())};w_.structs.SimplePool.prototype.Zc=function(){return this.Xb?this.Xb():{}};w_.structs.SimplePool.prototype.dd=function(a){if(this.$b)this.$b(a);else if(w_.isFunction(a.dispose))a.dispose();else for(var b in a)delete a[b]};
w_.structs.SimplePool.prototype.L=function(){w_.structs.SimplePool.wc.L.call(this);for(var a=this.Ca;a.length;)this.dd(a.pop());delete this.Ca};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.L=function(){delete this.type;delete this.target;delete this.currentTarget};w_.events.Event.prototype.na=w_d;w_.events.Event.prototype.Oa=w_b;w_.events.Event.prototype.stopPropagation=function(){this.na=w_b};w_.events.Event.prototype.preventDefault=function(){this.Oa=w_d};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.si=[1,4,2];w_.events.BrowserEvent.prototype.type=w_c;w_.events.BrowserEvent.prototype.target=w_c;w_.events.BrowserEvent.prototype.relatedTarget=w_c;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_d;w_.events.BrowserEvent.prototype.altKey=w_d;w_.events.BrowserEvent.prototype.shiftKey=w_d;w_.events.BrowserEvent.prototype.metaKey=w_d;w_.events.BrowserEvent.prototype.da=w_c;
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_c;this.offsetX=typeof a.layerX=="number"?a.layerX:a.offsetX;this.offsetY=typeof a.layerY=="number"?a.layerY:a.offsetY;this.clientX=typeof a.clientX=="number"?a.clientX:a.pageX;this.clientY=typeof a.clientY=="number"?
a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;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.da=a;delete this.Oa;delete this.na};w_.events.BrowserEvent.prototype.stopPropagation=function(){this.na=w_b;if(this.da.stopPropagation)this.da.stopPropagation();else this.da.cancelBubble=w_b};
w_.events.BrowserEvent.prototype.preventDefault=function(){this.Oa=w_d;if(this.da.preventDefault)this.da.preventDefault();else{this.da.returnValue=w_d;try{this.da.keyCode=-1}catch(a){}}};w_.events.BrowserEvent.prototype.L=function(){w_.events.BrowserEvent.wc.L.call(this);this.da=w_c};w_.events.Listener=function(){};w_.events.Listener.rh=0;w_.events.Listener.prototype.key=0;w_.events.Listener.prototype.removed=w_d;w_.events.Listener.prototype.Vb=w_d;
w_.events.Listener.prototype.init=function(a,b,c,d,e,f){if(w_.isFunction(a))this.vg=w_b;else if(a&&a.handleEvent&&w_.isFunction(a.handleEvent))this.vg=w_d;else w_a(Error("Invalid listener argument"));this.listener=a;this.proxy=b;this.src=c;this.type=d;this.capture=!!e;this.handler=f;this.Vb=w_d;this.key=++w_.events.Listener.rh;this.removed=w_d};
w_.events.Listener.prototype.handleEvent=function(a){if(this.vg)return this.listener.call(this.handler||this.src,a);return this.listener.handleEvent.call(this.listener,a)};w_.events.qa={};w_.events.z={};w_.events.fa={};w_.events.OBJECT_POOL_INITIAL_COUNT=0;w_.events.OBJECT_POOL_MAX_COUNT=600;w_.events.bb=new w_.structs.SimplePool(w_.events.OBJECT_POOL_INITIAL_COUNT,w_.events.OBJECT_POOL_MAX_COUNT);w_.events.bb.cb(function(){return{g:0,ba:0}});w_.events.bb.ce(function(a){a.g=0});w_.events.ARRAY_POOL_INITIAL_COUNT=0;w_.events.ARRAY_POOL_MAX_COUNT=600;w_.events.ya=new w_.structs.SimplePool(w_.events.ARRAY_POOL_INITIAL_COUNT,w_.events.ARRAY_POOL_MAX_COUNT);w_.events.ya.cb(function(){return[]});
w_.events.ya.ce(function(a){a.length=0;delete a.zb;delete a.Wd});w_.events.HANDLE_EVENT_PROXY_POOL_INITIAL_COUNT=0;w_.events.HANDLE_EVENT_PROXY_POOL_MAX_COUNT=600;w_.events.jg=new w_.structs.SimplePool(w_.events.HANDLE_EVENT_PROXY_POOL_INITIAL_COUNT,w_.events.HANDLE_EVENT_PROXY_POOL_MAX_COUNT);w_.events.jg.cb(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.uh=function(){return new w_.events.Listener};
w_.events.Sd=new w_.structs.SimplePool(w_.events.LISTENER_POOL_INITIAL_COUNT,w_.events.LISTENER_POOL_MAX_COUNT);w_.events.Sd.cb(w_.events.uh);w_.events.EVENT_POOL_INITIAL_COUNT=0;w_.events.EVENT_POOL_MAX_COUNT=600;w_.events.sh=function(){return new w_.events.BrowserEvent};w_.events.th=function(){var a=w_c;if(w_.userAgent.IE){a=new w_.structs.SimplePool(w_.events.EVENT_POOL_INITIAL_COUNT,w_.events.EVENT_POOL_MAX_COUNT);a.cb(w_.events.sh)}return a};w_.events.Tf=w_.events.th();w_.events.Xh="on";
w_.events.Xd={};w_.events.wi="_";
w_.events.listen=function(a,b,c,d,e){if(b)if(w_.isArray(b)){for(var f=0;f<b.length;f++)w_.events.listen(a,b[f],c,d,e);return w_c}else{d=!!d;var g=w_.events.z;b in g||(g[b]=w_.events.bb.ka());g=g[b];if(!(d in g)){g[d]=w_.events.bb.ka();g.g++}g=g[d];var h=w_.getHashCode(a),i;g.ba++;if(g[h]){i=g[h];for(f=0;f<i.length;f++){g=i[f];if(g.listener==c&&g.handler==e){if(g.removed)break;return i[f].key}}}else{i=g[h]=w_.events.ya.ka();g.g++}f=w_.events.jg.ka();f.src=a;g=w_.events.Sd.ka();g.init(c,f,a,b,d,e);
c=g.key;f.key=c;i.push(g);w_.events.qa[c]=g;w_.events.fa[h]||(w_.events.fa[h]=w_.events.ya.ka());w_.events.fa[h].push(g);if(a.addEventListener){if(a==w_.global||!a.bd)a.addEventListener(b,f,d)}else a.attachEvent(w_.events.gg(b),f);return c}else w_a(Error("Invalid event type"))};w_.events.listenOnce=function(a,b,c,d,e){if(w_.isArray(b)){for(var f=0;f<b.length;f++)w_.events.listenOnce(a,b[f],c,d,e);return w_c}a=w_.events.listen(a,b,c,d,e);b=w_.events.qa[a];b.Vb=w_b;return a};
w_.events.unlisten=function(a,b,c,d,e){if(w_.isArray(b)){for(var f=0;f<b.length;f++)w_.events.unlisten(a,b[f],c,d,e);return w_c}d=!!d;a=w_.events.sd(a,b,d);if(!a)return w_d;for(f=0;f<a.length;f++)if(a[f].listener==c&&a[f].capture==d&&a[f].handler==e)return w_.events.unlistenByKey(a[f].key);return w_d};
w_.events.unlistenByKey=function(a){if(!w_.events.qa[a])return w_d;var b=w_.events.qa[a];if(b.removed)return w_d;var c=b.src,d=b.type,e=b.proxy,f=b.capture;if(c.removeEventListener){if(c==w_.global||!c.bd)c.removeEventListener(d,e,f)}else c.detachEvent&&c.detachEvent(w_.events.gg(d),e);c=w_.getHashCode(c);e=w_.events.z[d][f][c];if(w_.events.fa[c]){var g=w_.events.fa[c];w_.array.remove(g,b);g.length==0&&delete w_.events.fa[c]}b.removed=w_b;e.Wd=w_b;w_.events.Cf(d,f,c,e);delete w_.events.qa[a];return w_b};
w_.events.Cf=function(a,b,c,d){if(!d.zb)if(d.Wd){for(var e=0,f=0;e<d.length;e++)if(d[e].removed)w_.events.Sd.Na(d[e]);else{if(e!=f)d[f]=d[e];f++}d.length=f;d.Wd=w_d;if(f==0){w_.events.ya.Na(d);delete w_.events.z[a][b][c];w_.events.z[a][b].g--;if(w_.events.z[a][b].g==0){w_.events.bb.Na(w_.events.z[a][b]);delete w_.events.z[a][b];w_.events.z[a].g--}if(w_.events.z[a].g==0){w_.events.bb.Na(w_.events.z[a]);delete w_.events.z[a]}}}};
w_.events.removeAll=function(a,b,c){var d=0,e=a==w_c,f=b==w_c,g=c==w_c;c=!!c;if(e)w_.object.forEach(w_.events.fa,function(i){for(var k=i.length-1;k>=0;k--){var j=i[k];if((f||b==j.type)&&(g||c==j.capture)){w_.events.unlistenByKey(j.key);d++}}});else{a=w_.getHashCode(a);if(w_.events.fa[a]){a=w_.events.fa[a];for(e=a.length-1;e>=0;e--){var h=a[e];if((f||b==h.type)&&(g||c==h.capture)){w_.events.unlistenByKey(h.key);d++}}}}return d};w_.events.getListeners=function(a,b,c){return w_.events.sd(a,b,c)||[]};
w_.events.sd=function(a,b,c){var d=w_.events.z;if(b in d){d=d[b];if(c in d){d=d[c];a=w_.getHashCode(a);if(d[a])return d[a]}}return w_c};w_.events.getListener=function(a,b,c,d,e){d=!!d;if(a=w_.events.sd(a,b,d))for(b=0;b<a.length;b++)if(a[b].listener==c&&a[b].capture==d&&a[b].handler==e)return a[b];return w_c};
w_.events.hasListener=function(a,b,c){a=w_.getHashCode(a);var d=w_.events.fa[a];if(d){var e=w_.isDef(b),f=w_.isDef(c);if(e&&f){d=w_.events.z[b];return!!d&&!!d[c]&&a in d[c]}else return e||f?w_.array.some(d,function(g){return e&&g.type==b||f&&g.capture==c}):w_b}return w_d};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.gg=function(a){if(a in w_.events.Xd)return w_.events.Xd[a];return w_.events.Xd[a]=w_.events.Xh+a};w_.events.fireListeners=function(a,b,c,d){var e=w_.events.z;if(b in e){e=e[b];if(c in e)return w_.events.Wa(e[c],a,b,c,d)}return w_b};
w_.events.Wa=function(a,b,c,d,e){var f=1;b=w_.getHashCode(b);if(a[b]){a.ba--;a=a[b];if(a.zb)a.zb++;else a.zb=1;try{for(var g=a.length,h=0;h<g;h++){var i=a[h];if(i&&!i.removed)f&=w_.events.fireListener(i,e)!==w_d}}finally{a.zb--;w_.events.Cf(c,d,b,a)}}return Boolean(f)};w_.events.fireListener=function(a,b){b=a.handleEvent(b);a.Vb&&w_.events.unlistenByKey(a.key);return b};w_.events.getTotalListenerCount=function(){return w_.object.T(w_.events.qa)};
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)}c=1;var d,e=b.type,f=w_.events.z;if(!(e in f))return w_b;f=f[e];e=w_b in f;var g;if(e){d=[];for(g=a;g;g=g.wd())d.push(g);g=f[w_b];g.ba=g.g;for(var h=d.length-1;!b.na&&h>=0&&g.ba;h--){b.currentTarget=d[h];c&=w_.events.Wa(g,d[h],b.type,w_b,b)&&b.Oa!=w_d}}if(g=w_d in f){g=f[w_d];g.ba=g.g;if(e)for(h=
0;!b.na&&h<d.length&&g.ba;h++){b.currentTarget=d[h];c&=w_.events.Wa(g,d[h],b.type,w_d,b)&&b.Oa!=w_d}else for(a=a;!b.na&&a&&g.ba;a=a.wd()){b.currentTarget=a;c&=w_.events.Wa(g,a,b.type,w_d,b)&&b.Oa!=w_d}}return Boolean(c)};w_.events.protectBrowserEventEntryPoint=function(a,b){w_.events.Ed=a.protectEntryPoint(w_.events.Ed,b)};
w_.events.Ed=function(a,b){if(!w_.events.qa[a])return w_b;a=w_.events.qa[a];var c=a.type,d=w_.events.z;if(!(c in d))return w_b;d=d[c];var e,f;if(w_.userAgent.IE){e=b||w_.getObjectByName("window.event");b=w_b in d;var g=w_d in d;if(b){if(w_.events.Ph(e))return w_b;w_.events.Th(e)}var h=w_.events.Tf.ka();h.init(e,this);e=w_b;try{if(b){for(var i=w_.events.ya.ka(),k=h.currentTarget;k;k=k.parentNode)i.push(k);f=d[w_b];f.ba=f.g;for(var j=i.length-1;!h.na&&j>=0&&f.ba;j--){h.currentTarget=i[j];e&=w_.events.Wa(f,
i[j],c,w_b,h)}if(g){f=d[w_d];f.ba=f.g;for(j=0;!h.na&&j<i.length&&f.ba;j++){h.currentTarget=i[j];e&=w_.events.Wa(f,i[j],c,w_d,h)}}}else e=w_.events.fireListener(a,h)}finally{if(i){i.length=0;w_.events.ya.Na(i)}h.dispose();w_.events.Tf.Na(h)}return e}f=new w_.events.BrowserEvent(b,this);try{e=w_.events.fireListener(a,f)}finally{f.dispose()}return e};w_.events.Th=function(a){var b=w_d;if(a.keyCode==0)try{a.keyCode=-1;return}catch(c){b=w_b}if(b||a.returnValue==undefined)a.returnValue=w_b};
w_.events.Ph=function(a){return a.keyCode<0||a.returnValue!=undefined};w_.events.oi=0;w_.events.getUniqueId=function(a){return a+"_"+w_.events.oi++};w_.math.Box=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};w_.math.Box.boundingBox=function(){for(var a=new w_.math.Box(arguments[0].y,arguments[0].x,arguments[0].y,arguments[0].x),b=1;b<arguments.length;b++){var c=arguments[b];a.top=Math.min(a.top,c.y);a.right=Math.max(a.right,c.x);a.bottom=Math.max(a.bottom,c.y);a.left=Math.min(a.left,c.x)}return a};w_.math.Box.prototype.clone=function(){return new w_.math.Box(this.top,this.right,this.bottom,this.left)};
if(w_.DEBUG)w_.math.Box.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};w_.math.Box.prototype.contains=function(a){return w_.math.Box.contains(this,a)};w_.math.Box.prototype.expand=function(a,b,c,d){if(w_.isObject(a)){this.top-=a.top;this.right+=a.right;this.bottom+=a.bottom;this.left-=a.left}else{this.top-=a;this.right+=b;this.bottom+=c;this.left-=d}return this};
w_.math.Box.equals=function(a,b){if(a==b)return w_b;if(!a||!b)return w_d;return a.top==b.top&&a.right==b.right&&a.bottom==b.bottom&&a.left==b.left};w_.math.Box.contains=function(a,b){if(!a||!b)return w_d;if(b instanceof w_.math.Box)return b.left>=a.left&&b.right<=a.right&&b.top>=a.top&&b.bottom<=a.bottom;return b.x>=a.left&&b.x<=a.right&&b.y>=a.top&&b.y<=a.bottom};
w_.math.Box.distance=function(a,b){if(b.x>=a.left&&b.x<=a.right){if(b.y>=a.top&&b.y<=a.bottom)return 0;return b.y<a.top?a.top-b.y:b.y-a.bottom}if(b.y>=a.top&&b.y<=a.bottom)return b.x<a.left?a.left-b.x:b.x-a.right;return w_.math.Coordinate.distance(b,new w_.math.Coordinate(b.x<a.left?a.left:a.right,b.y<a.top?a.top:a.bottom))};w_.math.Rect=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};w_.math.Rect.prototype.clone=function(){return new w_.math.Rect(this.left,this.top,this.width,this.height)};w_.math.Rect.createFromBox=function(a){return new w_.math.Rect(a.left,a.top,a.right-a.left,a.bottom-a.top)};if(w_.DEBUG)w_.math.Rect.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};
w_.math.Rect.equals=function(a,b){if(a==b)return w_b;if(!a||!b)return w_d;return a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height};w_.math.Rect.prototype.intersection=function(a){var b=Math.max(this.left,a.left),c=Math.min(this.left+this.width,a.left+a.width);if(b<=c){var d=Math.max(this.top,a.top);a=Math.min(this.top+this.height,a.top+a.height);if(d<=a){this.left=b;this.top=d;this.width=c-b;this.height=a-d;return w_b}}return w_d};
w_.math.Rect.intersection=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top);a=Math.min(a.top+a.height,b.top+b.height);if(e<=a)return new w_.math.Rect(c,e,d-c,a-e)}return w_c};w_.math.Rect.intersects=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){c=Math.max(a.top,b.top);a=Math.min(a.top+a.height,b.top+b.height);if(c<=a)return w_b}return w_d};
w_.math.Rect.prototype.intersects=function(a){return w_.math.Rect.intersects(this,a)};
w_.math.Rect.difference=function(a,b){var c=w_.math.Rect.intersection(a,b);if(!c||!c.height||!c.width)return[a.clone()];c=[];var d=a.top,e=a.height,f=a.left+a.width,g=a.top+a.height,h=b.left+b.width,i=b.top+b.height;if(b.top>a.top){c.push(new w_.math.Rect(a.left,a.top,a.width,b.top-a.top));d=b.top;e-=b.top-a.top}if(i<g){c.push(new w_.math.Rect(a.left,i,a.width,g-i));e=i-d}b.left>a.left&&c.push(new w_.math.Rect(a.left,d,b.left-a.left,e));h<f&&c.push(new w_.math.Rect(h,d,f-h,e));return c};
w_.math.Rect.prototype.difference=function(a){return w_.math.Rect.difference(this,a)};w_.math.Rect.prototype.Uc=function(a){var b=Math.max(this.left+this.width,a.left+a.width),c=Math.max(this.top+this.height,a.top+a.height);this.left=Math.min(this.left,a.left);this.top=Math.min(this.top,a.top);this.width=b-this.left;this.height=c-this.top};w_.math.Rect.Uc=function(a,b){if(!a||!b)return w_c;a=a.clone();a.Uc(b);return a};
w_.math.Rect.prototype.contains=function(a){return a instanceof w_.math.Rect?this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height:a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height};w_.math.Rect.prototype.zd=function(){return new w_.math.Size(this.width,this.height)};w_.userAgent.product={};w_.userAgent.product.ASSUME_FIREFOX=w_d;w_.userAgent.product.ASSUME_CAMINO=w_d;w_.userAgent.product.ASSUME_IPHONE=w_d;w_.userAgent.product.ASSUME_ANDROID=w_d;w_.userAgent.product.ASSUME_CHROME=w_d;w_.userAgent.product.ASSUME_SAFARI=w_d;
w_.userAgent.product.wa=w_.userAgent.ASSUME_IE||w_.userAgent.ASSUME_OPERA||w_.userAgent.product.ASSUME_FIREFOX||w_.userAgent.product.ASSUME_CAMINO||w_.userAgent.product.ASSUME_IPHONE||w_.userAgent.product.ASSUME_ANDROID||w_.userAgent.product.ASSUME_CHROME||w_.userAgent.product.ASSUME_SAFARI;
w_.userAgent.product.Md=function(){w_.userAgent.product.Lf=w_d;w_.userAgent.product.qb=w_d;w_.userAgent.product.Nf=w_d;w_.userAgent.product.Jf=w_d;w_.userAgent.product.Kf=w_d;w_.userAgent.product.Pf=w_d;var a=w_.userAgent.getUserAgentString();if(a)if(a.indexOf("Firefox")!=-1)w_.userAgent.product.Lf=w_b;else if(a.indexOf("Camino")!=-1)w_.userAgent.product.qb=w_b;else if(a.indexOf("iPhone")!=-1||a.indexOf("iPod")!=-1)w_.userAgent.product.Nf=w_b;else if(a.indexOf("Android")!=-1)w_.userAgent.product.Jf=
w_b;else if(a.indexOf("Chrome")!=-1)w_.userAgent.product.Kf=w_b;else if(a.indexOf("Safari")!=-1)w_.userAgent.product.Pf=w_b};w_.userAgent.product.wa||w_.userAgent.product.Md();w_.userAgent.product.OPERA=w_.userAgent.OPERA;w_.userAgent.product.IE=w_.userAgent.IE;w_.userAgent.product.FIREFOX=w_.userAgent.product.wa?w_.userAgent.product.ASSUME_FIREFOX:w_.userAgent.product.Lf;w_.userAgent.product.CAMINO=w_.userAgent.product.wa?w_.userAgent.product.ASSUME_CAMINO:w_.userAgent.product.qb;
w_.userAgent.product.IPHONE=w_.userAgent.product.wa?w_.userAgent.product.ASSUME_IPHONE:w_.userAgent.product.Nf;w_.userAgent.product.ANDROID=w_.userAgent.product.wa?w_.userAgent.product.ASSUME_ANDROID:w_.userAgent.product.Jf;w_.userAgent.product.CHROME=w_.userAgent.product.wa?w_.userAgent.product.ASSUME_CHROME:w_.userAgent.product.Kf;w_.userAgent.product.SAFARI=w_.userAgent.product.wa?w_.userAgent.product.ASSUME_SAFARI:w_.userAgent.product.Pf;w_.style={};w_.style.setStyle=function(a,b,c){w_.isString(b)?w_.style.Ug(a,c,b):w_.object.forEach(b,w_.partial(w_.style.Ug,a))};w_.style.Ug=function(a,b,c){a.style[w_.style.toCamelCase(c)]=b};w_.style.getStyle=function(a,b){return a.style[w_.style.toCamelCase(b)]};w_.style.getComputedStyle=function(a,b){var c=w_.dom.u(a);if(c.defaultView&&c.defaultView.getComputedStyle)if(a=c.defaultView.getComputedStyle(a,""))return a[b];return w_c};
w_.style.getCascadedStyle=function(a,b){return a.currentStyle?a.currentStyle[b]:w_c};w_.style.$=function(a,b){return w_.style.getComputedStyle(a,b)||w_.style.getCascadedStyle(a,b)||a.style[b]};w_.style.getComputedPosition=function(a){return w_.style.$(a,"position")};w_.style.getBackgroundColor=function(a){return w_.style.$(a,"backgroundColor")};
w_.style.setPosition=function(a,b,c){var d,e=w_.userAgent.GECKO&&(w_.userAgent.MAC||w_.userAgent.X11)&&w_.userAgent.isVersion("1.9");if(b instanceof w_.math.Coordinate){d=b.x;b=b.y}else{d=b;b=c}a.style.left=typeof d=="number"?(e?Math.round(d):d)+"px":d;a.style.top=typeof b=="number"?(e?Math.round(b):b)+"px":b};w_.style.getPosition=function(a){return new w_.math.Coordinate(a.offsetLeft,a.offsetTop)};
w_.style.getClientViewportElement=function(a){a=a?a.nodeType==w_.dom.NodeType.DOCUMENT?a:w_.dom.u(a):w_.dom.Da();if(w_.userAgent.IE&&!w_.dom.V(a).ma())return a.body;return a.documentElement};w_.style.Yf=function(a){var b=a.getBoundingClientRect();if(w_.userAgent.IE){a=a.ownerDocument;b.left-=a.documentElement.clientLeft+a.body.clientLeft;b.top-=a.documentElement.clientTop+a.body.clientTop}return b};
w_.style.getOffsetParent=function(a){if(w_.userAgent.IE)return a.offsetParent;var b=w_.dom.u(a),c=w_.style.$(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode){c=w_.style.$(a,"position");d=d&&c=="static"&&a!=b.documentElement&&a!=b.body;if(!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"))return a}return w_c};
w_.style.getVisibleRectForElement=function(a){var b=new w_.math.Box(0,Infinity,Infinity,0),c=w_.dom.V(a),d=c.nd(),e;for(a=a;a=w_.style.getOffsetParent(a);)if((!w_.userAgent.IE||a.clientWidth!=0)&&(a.scrollWidth!=a.clientWidth||a.scrollHeight!=a.clientHeight)&&w_.style.$(a,"overflow")!="visible"){var f=w_.style.getPageOffset(a),g=w_.style.getClientLeftTop(a);f.x+=g.x;f.y+=g.y;b.top=Math.max(b.top,f.y);b.right=Math.min(b.right,f.x+a.clientWidth);b.bottom=Math.min(b.bottom,f.y+a.clientHeight);b.left=
Math.max(b.left,f.x);e=e||a!=d}a=d.scrollLeft;d=d.scrollTop;if(w_.userAgent.WEBKIT){b.left+=a;b.top+=d}else{b.left=Math.max(b.left,a);b.top=Math.max(b.top,d)}if(!e||w_.userAgent.WEBKIT){b.right+=a;b.bottom+=d}c=c.xb();b.right=Math.min(b.right,a+c.width);b.bottom=Math.min(b.bottom,d+c.height);return b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:w_c};
w_.style.scrollIntoContainerView=function(a,b,c){var d=w_.style.getPageOffset(a),e=w_.style.getPageOffset(b),f=w_.style.getBorderBox(b),g=d.x-e.x-f.left;d=d.y-e.y-f.top;e=b.clientWidth-a.offsetWidth;a=b.clientHeight-a.offsetHeight;if(c){b.scrollLeft+=g-e/2;b.scrollTop+=d-a/2}else{b.scrollLeft+=Math.min(g,Math.max(g-e,0));b.scrollTop+=Math.min(d,Math.max(d-a,0))}};
w_.style.getClientLeftTop=function(a){if(w_.userAgent.GECKO&&!w_.userAgent.isVersion("1.9")){var b=parseFloat(w_.style.getComputedStyle(a,"borderLeftWidth"));if(w_.style.isRightToLeft(a)){var c=a.offsetWidth-a.clientWidth-b-parseFloat(w_.style.getComputedStyle(a,"borderRightWidth"));b+=c}return new w_.math.Coordinate(b,parseFloat(w_.style.getComputedStyle(a,"borderTopWidth")))}return new w_.math.Coordinate(a.clientLeft,a.clientTop)};
w_.style.getPageOffset=function(a){var b,c=w_.dom.u(a),d=w_.style.$(a,"position"),e=w_.userAgent.GECKO&&c.getBoxObjectFor&&!a.getBoundingClientRect&&d=="absolute"&&(b=c.getBoxObjectFor(a))&&(b.screenX<0||b.screenY<0),f=new w_.math.Coordinate(0,0),g=w_.style.getClientViewportElement(c);if(a==g)return f;if(a.getBoundingClientRect){b=w_.style.Yf(a);a=w_.dom.V(c).Ya();f.x=b.left+a.x;f.y=b.top+a.y}else if(c.getBoxObjectFor&&!e){b=c.getBoxObjectFor(a);a=c.getBoxObjectFor(g);f.x=b.screenX-a.screenX;f.y=
b.screenY-a.screenY}else{b=a;do{f.x+=b.offsetLeft;f.y+=b.offsetTop;if(b!=a){f.x+=b.clientLeft||0;f.y+=b.clientTop||0}if(w_.userAgent.WEBKIT&&w_.style.getComputedPosition(b)=="fixed"){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(w_.userAgent.OPERA||w_.userAgent.WEBKIT&&d=="absolute")f.y-=c.body.offsetTop;for(b=a;(b=w_.style.getOffsetParent(b))&&b!=c.body&&b!=g;){f.x-=b.scrollLeft;if(!w_.userAgent.OPERA||b.tagName!="TR")f.y-=b.scrollTop}}return f};
w_.style.getPageOffsetLeft=function(a){return w_.style.getPageOffset(a).x};w_.style.getPageOffsetTop=function(a){return w_.style.getPageOffset(a).y};w_.style.getFramedPageOffset=function(a,b){var c=new w_.math.Coordinate(0,0),d=w_.dom.$a(w_.dom.u(a));a=a;do{var e=d==b?w_.style.getPageOffset(a):w_.style.getClientPosition(a);c.x+=e.x;c.y+=e.y}while(d&&d!=b&&(a=d.frameElement)&&(d=d.parent));return c};
w_.style.translateRectForAnotherFrame=function(a,b,c){if(b.Da()!=c.Da()){var d=b.Da().body;c=w_.style.getFramedPageOffset(d,c.$a());c=w_.math.Coordinate.difference(c,w_.style.getPageOffset(d));if(w_.userAgent.IE&&!b.ma())c=w_.math.Coordinate.difference(c,b.Ya());a.left+=c.x;a.top+=c.y}};w_.style.getRelativePosition=function(a,b){a=w_.style.getClientPosition(a);b=w_.style.getClientPosition(b);return new w_.math.Coordinate(a.x-b.x,a.y-b.y)};
w_.style.getClientPosition=function(a){var b=new w_.math.Coordinate;if(a.nodeType==w_.dom.NodeType.ELEMENT)if(a.getBoundingClientRect){var c=w_.style.Yf(a);b.x=c.left;b.y=c.top}else{c=w_.dom.V(a).Ya();a=w_.style.getPageOffset(a);b.x=a.x-c.x;b.y=a.y-c.y}else{b.x=a.clientX;b.y=a.clientY}return b};w_.style.setPageOffset=function(a,b,c){var d=w_.style.getPageOffset(a);if(b instanceof w_.math.Coordinate){c=b.y;b=b.x}b=b-d.x;c=c-d.y;w_.style.setPosition(a,a.offsetLeft+b,a.offsetTop+c)};
w_.style.setSize=function(a,b,c){if(b instanceof w_.math.Size){c=b.height;b=b.width}else{if(c==undefined)w_a(Error("missing height argument"));c=c}a.style.width=typeof b=="number"?Math.round(b)+"px":b;a.style.height=typeof c=="number"?Math.round(c)+"px":c};
w_.style.zd=function(a){var b=w_.userAgent.OPERA&&!w_.userAgent.isVersion("10");if(w_.style.$(a,"display")!="none")return b?new w_.math.Size(a.offsetWidth||a.clientWidth,a.offsetHeight||a.clientHeight):new w_.math.Size(a.offsetWidth,a.offsetHeight);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";if(b){b=a.offsetWidth||a.clientWidth;a=a.offsetHeight||a.clientHeight}else{b=a.offsetWidth;a=a.offsetHeight}c.display=d;c.position=f;c.visibility=
e;return new w_.math.Size(b,a)};w_.style.getBounds=function(a){var b=w_.style.getPageOffset(a);a=w_.style.zd(a);return new w_.math.Rect(b.x,b.y,a.width,a.height)};w_.style.Yg={};w_.style.toCamelCase=function(a){return w_.style.Yg[a]||(w_.style.Yg[a]=String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()}))};w_.style.toSelectorCase=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};
w_.style.getOpacity=function(a){var b=a.style;a="";if("opacity"in b)a=b.opacity;else if("MozOpacity"in b)a=b.MozOpacity;else if("filter"in b)if(b=b.filter.match(/alpha\(opacity=([\d.]+)\)/))a=String(b[1]/100);return a==""?a:Number(a)};w_.style.setOpacity=function(a,b){a=a.style;if("opacity"in a)a.opacity=b;else if("MozOpacity"in a)a.MozOpacity=b;else if("filter"in a)a.filter=b===""?"":"alpha(opacity="+b*100+")"};
w_.style.setTransparentBackgroundImage=function(a,b){a=a.style;if(w_.userAgent.IE&&!w_.userAgent.isVersion("8"))a.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+b+'", sizingMethod="crop")';else{a.backgroundImage="url("+b+")";a.backgroundPosition="top left";a.backgroundRepeat="no-repeat"}};w_.style.clearTransparentBackgroundImage=function(a){a=a.style;if("filter"in a)a.filter="";else a.backgroundImage="none"};w_.style.showElement=function(a,b){a.style.display=b?"":"none"};
w_.style.isElementShown=function(a){return a.style.display!="none"};w_.style.installStyles=function(a,b){b=w_.dom.V(b);var c=w_c;if(w_.userAgent.IE){c=b.Da().createStyleSheet();w_.style.setStyles(c,a)}else{var d=b.pa("head")[0];if(!d){c=b.pa("body")[0];d=b.K("head");c.parentNode.insertBefore(d,c)}c=b.K("style");w_.style.setStyles(c,a);b.appendChild(d,c)}return c};w_.style.uninstallStyles=function(a){a=a.ownerNode||a.owningElement||a;w_.dom.removeNode(a)};
w_.style.setStyles=function(a,b){if(w_.userAgent.IE)a.cssText=b;else{var c=w_.userAgent.WEBKIT?"innerText":"innerHTML";a[c]=b}};w_.style.setPreWrap=function(a){a=a.style;if(w_.userAgent.IE&&!w_.userAgent.isVersion("8")){a.whiteSpace="pre";a.wordWrap="break-word"}else a.whiteSpace=w_.userAgent.GECKO?"-moz-pre-wrap":w_.userAgent.OPERA?"-o-pre-wrap":"pre-wrap"};
w_.style.setInlineBlock=function(a){a=a.style;a.position="relative";if(w_.userAgent.IE&&!w_.userAgent.isVersion("8")){a.zoom="1";a.display="inline"}else a.display=w_.userAgent.GECKO?w_.userAgent.isVersion("1.9a")?"inline-block":"-moz-inline-box":"inline-block"};w_.style.isRightToLeft=function(a){return"rtl"==w_.style.$(a,"direction")};w_.style.me=w_.userAgent.GECKO?"MozUserSelect":w_.userAgent.WEBKIT?"WebkitUserSelect":w_c;
w_.style.isUnselectable=function(a){if(w_.style.me)return a.style[w_.style.me].toLowerCase()=="none";else if(w_.userAgent.IE||w_.userAgent.OPERA)return a.getAttribute("unselectable")=="on";return w_d};
w_.style.setUnselectable=function(a,b,c){c=!c?a.getElementsByTagName("*"):w_c;var d=w_.style.me;if(d){b=b?"none":"";a.style[d]=b;if(c){a=0;for(var e;e=c[a];a++)e.style[d]=b}}else if(w_.userAgent.IE||w_.userAgent.OPERA){b=b?"on":"";a.setAttribute("unselectable",b);if(c)for(a=0;e=c[a];a++)e.setAttribute("unselectable",b)}};w_.style.getBorderBoxSize=function(a){return new w_.math.Size(a.offsetWidth,a.offsetHeight)};
w_.style.setBorderBoxSize=function(a,b){var c=w_.dom.u(a),d=w_.dom.V(c).ma();if(w_.userAgent.IE&&(!d||!w_.userAgent.isVersion("8"))){c=a.style;if(d){d=w_.style.getPaddingBox(a);a=w_.style.getBorderBox(a);c.pixelWidth=b.width-a.left-d.left-d.right-a.right;c.pixelHeight=b.height-a.top-d.top-d.bottom-a.bottom}else{c.pixelWidth=b.width;c.pixelHeight=b.height}}else w_.style.Tg(a,b,"border-box")};
w_.style.getContentBoxSize=function(a){var b=w_.dom.u(a),c=w_.userAgent.IE&&a.currentStyle;if(c&&w_.dom.V(b).ma()&&c.width!="auto"&&c.height!="auto"&&!c.boxSizing){b=w_.style.Za(a,c.width,"width","pixelWidth");a=w_.style.Za(a,c.height,"height","pixelHeight");return new w_.math.Size(b,a)}else{c=w_.style.getBorderBoxSize(a);b=w_.style.getPaddingBox(a);a=w_.style.getBorderBox(a);return new w_.math.Size(c.width-a.left-b.left-b.right-a.right,c.height-a.top-b.top-b.bottom-a.bottom)}};
w_.style.setContentBoxSize=function(a,b){var c=w_.dom.u(a),d=w_.dom.V(c).ma();if(w_.userAgent.IE&&(!d||!w_.userAgent.isVersion("8"))){c=a.style;if(d){c.pixelWidth=b.width;c.pixelHeight=b.height}else{d=w_.style.getPaddingBox(a);a=w_.style.getBorderBox(a);c.pixelWidth=b.width+a.left+d.left+d.right+a.right;c.pixelHeight=b.height+a.top+d.top+d.bottom+a.bottom}}else w_.style.Tg(a,b,"content-box")};
w_.style.Tg=function(a,b,c){a=a.style;if(w_.userAgent.GECKO)a.MozBoxSizing=c;else if(w_.userAgent.WEBKIT)a.WebkitBoxSizing=c;else if(w_.userAgent.OPERA&&!w_.userAgent.isVersion("9.50"))c?a.setProperty("box-sizing",c):a.removeProperty("box-sizing");else a.boxSizing=c;a.width=b.width+"px";a.height=b.height+"px"};
w_.style.Za=function(a,b,c,d){if(/^\d+px?$/.test(b))return parseInt(b,10);else{var e=a.style[c],f=a.runtimeStyle[c];a.runtimeStyle[c]=a.currentStyle[c];a.style[c]=b;b=a.style[d];a.style[c]=e;a.runtimeStyle[c]=f;return b}};w_.style.hc=function(a,b){return w_.style.Za(a,w_.style.getCascadedStyle(a,b),"left","pixelLeft")};
w_.style.Zf=function(a,b){if(w_.userAgent.IE){var c=w_.style.hc(a,b+"Left"),d=w_.style.hc(a,b+"Right"),e=w_.style.hc(a,b+"Top");a=w_.style.hc(a,b+"Bottom");return new w_.math.Box(e,d,a,c)}else{c=w_.style.getComputedStyle(a,b+"Left");d=w_.style.getComputedStyle(a,b+"Right");e=w_.style.getComputedStyle(a,b+"Top");a=w_.style.getComputedStyle(a,b+"Bottom");return new w_.math.Box(parseFloat(e),parseFloat(d),parseFloat(a),parseFloat(c))}};w_.style.getPaddingBox=function(a){return w_.style.Zf(a,"padding")};
w_.style.getMarginBox=function(a){return w_.style.Zf(a,"margin")};w_.style.sg={thin:2,medium:4,thick:6};w_.style.gc=function(a,b){if(w_.style.getCascadedStyle(a,b+"Style")=="none")return 0;b=w_.style.getCascadedStyle(a,b+"Width");if(b in w_.style.sg)return w_.style.sg[b];return w_.style.Za(a,b,"left","pixelLeft")};
w_.style.getBorderBox=function(a){if(w_.userAgent.IE){var b=w_.style.gc(a,"borderLeft"),c=w_.style.gc(a,"borderRight"),d=w_.style.gc(a,"borderTop");a=w_.style.gc(a,"borderBottom");return new w_.math.Box(d,c,a,b)}else{b=w_.style.getComputedStyle(a,"borderLeftWidth");c=w_.style.getComputedStyle(a,"borderRightWidth");d=w_.style.getComputedStyle(a,"borderTopWidth");a=w_.style.getComputedStyle(a,"borderBottomWidth");return new w_.math.Box(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}};
w_.style.getFontFamily=function(a){var b=w_.dom.u(a),c="";if(b.createTextRange){c=b.body.createTextRange();c.moveToElementText(a);c=c.queryCommandValue("FontName")}if(!c){c=w_.style.$(a,"fontFamily");if(w_.userAgent.OPERA&&w_.userAgent.LINUX)c=c.replace(/ \[[^\]]*\]/,"")}a=c.split(",");if(a.length>1)c=a[0];return w_.string.stripQuotes(c,"\"'")};w_.style.Sh=/[^\d]+$/;w_.style.getLengthUnits=function(a){return(a=a.match(w_.style.Sh))&&a[0]||w_c};w_.style.bh={cm:1,"in":1,mm:1,pc:1,pt:1};
w_.style.fh={em:1,ex:1};
w_.style.getFontSize=function(a){var b=w_.style.$(a,"fontSize"),c=w_.style.getLengthUnits(b);if(b&&"px"==c)return parseInt(b,10);if(w_.userAgent.IE)if(c in w_.style.bh)return w_.style.Za(a,b,"left","pixelLeft");else if(a.parentNode&&a.parentNode.nodeType==w_.dom.NodeType.ELEMENT&&c in w_.style.fh){a=a.parentNode;c=w_.style.$(a,"fontSize");return w_.style.Za(a,b==c?"1em":b,"left","pixelLeft")}c=w_.dom.K("span",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});w_.dom.appendChild(a,
c);b=c.offsetHeight;w_.dom.removeNode(c);return b};w_.style.parseStyleAttribute=function(a){var b={};w_.array.forEach(a.split(/\s*;\s*/),function(c){c=c.split(/\s*:\s*/);if(c.length==2)b[w_.style.toCamelCase(c[0].toLowerCase())]=c[1]});return b};w_.style.toStyleAttribute=function(a){var b=[];w_.object.forEach(a,function(c,d){b.push(w_.style.toSelectorCase(d),":",c,";")});return b.join("")};w_.style.setFloat=function(a,b){a.style[w_.userAgent.IE?"styleFloat":"cssFloat"]=b};
w_.style.getFloat=function(a){return a.style[w_.userAgent.IE?"styleFloat":"cssFloat"]||""};var w_I={};w_I.ui={};w_I.ui.DelayManager=function(a,b){this.Nh=a;this.Zh=b;this.vh="delayLoad";this.nc={};this.eb=0;this.ne=[];this.rc=[];var c=this;this.ah=function(){c.Lg()}};w_I.ui.DelayManager.prototype.init=function(){this.Wg(this.vh,this.Nh,this.nc);if(this.eb!=0){this.vf();this.$d()}};
w_I.ui.DelayManager.prototype.Wg=function(a,b,c){a=w_.dom.pa("img",a);for(var d=0;d<a.length;d++){if(a[d].style.display=="none")a[d].style.display="";if(d<b)this.Ud(a[d]);else{var e=a[d].id;if(e=="")e="av-delay-tempId-"+d;c[e]={el:a[d],key:e};this.eb++}}};w_I.ui.DelayManager.prototype.vf=function(){this.gi=w_.events.listen(window,w_.events.EventType.SCROLL,this.ah);this.ei=w_.events.listen(window,w_.events.EventType.RESIZE,this.ah)};
w_I.ui.DelayManager.prototype.Lg=function(){this.Ef();var a=this;this.le=window.setTimeout(function(){a.le=w_c;a.$d()},100)};w_I.ui.DelayManager.prototype.Ef=function(){this.le&&window.clearTimeout(this.le)};w_I.ui.DelayManager.prototype.$d=function(){if(!(this.eb<0))if(this.eb==0)this.$g();else{var a=w_d;for(var b in this.nc){var c=this.nc[b];if(this.Bf(c,this.Zh,w_.dom.xb().height))a=w_b}a&&this.Mg()}};
w_I.ui.DelayManager.prototype.$g=function(){w_.events.unlistenByKey(this.gi);w_.events.unlistenByKey(this.ei);this.eb=-1};w_I.ui.DelayManager.prototype.Bf=function(a,b,c){var d=w_.style.getClientPosition(a.el).y;if(0<=d&&d<=c)this.ne.push(a);else if(0<d&&d<Math.round((b+1)*c))this.rc.push(a);else if(d<0&&d>Math.round(-1*b*c))this.rc.push(a);else return w_d;return w_b};
w_I.ui.DelayManager.prototype.Mg=function(){this.Qh=w_b;for(var a=this.ne.concat(this.rc),b=0;b<a.length;b++){this.Ud(a[b].el);this.eb--;delete this.nc[a[b].key]}this.ne=[];this.rc=[];this.Qh=w_d};w_I.ui.DelayManager.prototype.Ud=function(a){if(a.longDesc!="")a.src=a.longDesc};function w_J(a){this.a=a;this.gb=a.r();if(this.gb.data)this.Hg=this.gb.data.showBacklinks}w_J.BACKLINKS_ROOT="backlinks-container";w_J.BACKLINKS_CHUNK="backlinks";w_J.BACKLINK_ITEM_ROOT_CLASS="backlink-control";w_J.BACKLINK_EXPANDED_CLASS="expanded-backlink";w_J.BACKLINK_COLLAPSED_CLASS="collapsed-backlink";w_J.BACKLINK_ZIPPY_CLASS="backlink-toggle-zippy";w_J.WIDGET_TYPE_NAME="Blog";w_J.prototype.d=function(){return w_J.WIDGET_TYPE_NAME};w_J.prototype.b=function(){return this.a};
w_J.prototype.c=function(a,b){if(a=="initial"){this.gb.data=b;w_D.DisplayWidget(this,w_b)}else if(a=="nextposts")this.Be(b);else if(a=="configure")this.a.k(b);else a=="backlinks"&&this.jf(b)};w_J.prototype.Be=function(a){a=a.renderedData;var b=this.gb.rootElement;if(a&&b){b.innerHTML=a;window.scroll(0,0);this.j()}};
w_J.prototype.jf=function(a){this.Hg=w_d;a=this.a.Pb(w_J.BACKLINKS_CHUNK,a);var b=this.a.X(w_J.BACKLINKS_ROOT);if(b){b.innerHTML="";b.appendChild(a)}a=w_pa(this.gb.rootElement,w_J.tf);for(b=0;b<a.length;b++){var c=a[b];c.onclick=this.hf.bind(this)}a=this.a.X("backlinks-create-link");if(a!=w_c)a.onclick=this.ve.bind(this,a.href)};w_J.tf={};w_J.tf.select=function(a){return a&&w_r(a,w_J.BACKLINK_ZIPPY_CLASS)};w_J.prototype.hf=function(a){a=a||window.event;this.Ce(a.srcElement||a.target)};
w_J.prototype.Ce=function(a){for(a=a.parentNode;a&&!w_r(a,w_J.BACKLINK_ITEM_ROOT_CLASS);)a=a.parentNode;if(a)if(w_r(a,w_J.BACKLINK_EXPANDED_CLASS)){w_t(a,w_J.BACKLINK_EXPANDED_CLASS);w_s(a,w_J.BACKLINK_COLLAPSED_CLASS)}else{w_s(a,w_J.BACKLINK_EXPANDED_CLASS);w_t(a,w_J.BACKLINK_COLLAPSED_CLASS)}};
w_J.prototype.j=function(){var a=this.a.X("blog-pager-newer-link");if(a&&this.Gc(a))a.onclick=this.Ic.bind(this);if((a=this.a.X("blog-pager-older-link"))&&this.Gc(a))a.onclick=this.Ic.bind(this);if(this.Hg){var b=this;this.a.oa("backlinks",{postID:this.gb.data.postId},function(c){return b.ue(c)},"GET")}this.yh=new w_I.ui.DelayManager(5,1.25);this.yh.init()};
w_J.prototype.ue=function(a){var b=w_x(a);if(b>=500){if(window.console&&console.log){b=/bX-\w*/;a=a.responseText.match(b)[0];console.log("Error loading backlinks: "+a)}return w_d}else return w_b};w_J.prototype.Gc=function(a){a=a.href;return a.indexOf("/search?")>-1};w_J.prototype.Ic=function(a){a=a||window.event;a=a.target||a.srcElement;this.a.oa("nextposts",{path:a.href});return w_d};
w_J.prototype.ve=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_d};var _BlogView=w_J;function w_K(a){this.a=a;this.e=a.r()}w_K.Id={BLOGS:"blogs",SHOW_ALL:"show-all",SHOW_N:"show-n"};w_K.Action={CONFIGURE:"configure"};w_K.Fields={NUM_ITEMS_TO_SHOW:"numItemsToShow",TOTAL_ITEMS:"totalItems"};w_K.WIDGET_TYPE_NAME="BlogList";w_K.prototype.yc=w_c;w_K.prototype.Ab=w_c;w_K.prototype.d=function(){return w_K.WIDGET_TYPE_NAME};w_K.prototype.b=function(){return this.a};w_K.prototype.h=function(){return w_d};w_K.prototype.c=function(a,b){a==w_K.Action.CONFIGURE&&this.a.k(b)};
w_K.prototype.j=function(){var a=this.a.p();this.yc=a[w_K.Fields.TOTAL_ITEMS];this.Ab=a[w_K.Fields.NUM_ITEMS_TO_SHOW];if(this.Ab!=0&&this.yc>this.Ab){a=this.a.D(w_K.Id.SHOW_ALL);a.onclick=this.ke.bind(this);a=this.a.D(w_K.Id.SHOW_N);a.onclick=this.ke.bind(this)}a=this.Wf.bind(this);var b=window;if(b.addEventListener)b.addEventListener("load",a,w_d);else if(b.attachEvent)b.attachEvent("onload",a);else b.onload=a};
w_K.prototype.ke=function(){var a=this.a.D(w_K.Id.BLOGS);a=a.getElementsByTagName("li");for(var b=this.Ab;b<this.yc;b++){var c=a[b];w_na(c,c.style.display=="none")}a=this.a.D(w_K.Id.SHOW_ALL);w_oa(a,a.style.display=="none");a=this.a.D(w_K.Id.SHOW_N);w_oa(a,a.style.display=="none")};w_K.prototype.Wf=function(){var a=this.a.D(w_K.Id.BLOGS);a=a.getElementsByTagName("input");for(var b=0;b<a.length;b++){var c=a[b],d=document.createElement("img");d.onload=this.nf.bind(d,c);d.src=c.value}};
w_K.prototype.nf=function(a){this.onload=function(){};this.alt="";this.width=this.height="16";var b=a.parentNode;b.replaceChild(this,a)};var _BlogListView=w_K;_BlogListView._Configure=_BlogListView.Configure;function w_L(a){this.a=a}w_L.WIDGET_TYPE_NAME="CustomSearch";w_L.ANCHOR_NAME="uds-search-results";w_L.prototype.d=function(){return w_L.WIDGET_TYPE_NAME};w_L.prototype.b=function(){return this.a};w_L.prototype.h=function(){return w_d};w_L.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};
w_L.prototype.j=function(){var a=this.b(),b=new w_C;google.load("search","1",{callback:w_Ka.bind(a),language:b.p("blog.locale")});a=document.getElementById("uds-searchControl");if(!a){a=document.createElement("DIV");a.id="uds-searchControl";b=document.createElement("A");b.name=w_L.ANCHOR_NAME;a.appendChild(b);b=document.createElement("DIV");b.id="uds-searchResults";a.appendChild(b);b=document.createElement("DIV");b.id="uds-searchClearResults";b.className="gsc-clear-button";b.innerHTML="&nbsp;";a.appendChild(b);
(b=document.getElementById("main"))||(b=document.getElementsByTagName("body")[0]);b.insertBefore(a,b.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){c=new GwebSearch;c.setUserDefinedLabel(b.linkedFromHereMsg);c.setSiteRestriction({crefUrl:b.blogUrl+"cse.xml"});a.addSearcher(c)}c=b.linkLists;for(var d=0;d<c.length;d++){var e=new GwebSearch;e.setSiteRestriction({crefUrl:b.blogUrl+"cse.xml"},c[d].id.toLowerCase());e.setUserDefinedLabel(c[d].title);
a.addSearcher(e)}if(b.includeWeb){c=new GwebSearch;c.setUserDefinedLabel(b.theWebMsg);a.addSearcher(c)}b=new GSearchForm(w_d,this.D("form"));c=new GdrawOptions;c.setDrawMode(GSearchControl.DRAW_MODE_TABBED);c.setInput(b.input);a.setNoResultsString(GSearchControl.NO_RESULTS_DEFAULT_STRING);a.draw(document.getElementById("uds-searchResults"),c);b.input.onkeyup=b.input.onpaste=w_c;b.setOnSubmitCallback(w_c,w_y(w_La,w_c,b,a));document.getElementById("uds-searchClearResults").onclick=w_y(w_Ma,w_c,a);w_M(w_d)}
function w_La(a,b){a=a.input.value;if(!a){w_Ma(b);return w_d}b.execute(a);w_M(w_b);b=window.location.href;a=b.indexOf("#");if(a>=0)b=b.substring(0,a);window.location.href=b+"#"+w_L.ANCHOR_NAME;return w_b}function w_Ma(a){a.clearAllResults();w_M(w_d)}function w_M(a){document.getElementById("uds-searchClearResults").style.display=a?"block":"none"}var _CustomSearchView=w_L;_CustomSearchView._Configure=_CustomSearchView.Configure;function w_N(a){this.a=a;this.e=a.r()}w_N.WIDGET_TYPE_NAME="Image";w_N.prototype.b=function(){return this.a};w_N.prototype.d=function(){return w_N.WIDGET_TYPE_NAME};w_N.prototype.h=function(){return w_d};
w_N.prototype.j=function(){if(this.e.data.resize=="true"){var a=this.a.X(this.e.instanceId+"_img"),b=this.e.rootElement;if(a&&b){if(document.defaultView)b=parseInt(document.defaultView.getComputedStyle(b,w_c).width,10);else if(b.currentStyle){a.style.display="none";b=b.offsetWidth;a.style.display=""}else return;if(a.width>b){a.height=Math.round(b/a.width*a.height);a.width=b}a.style.visibility="visible"}}};w_N.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};var _ImageView=w_N;function w_O(a,b,c,d,e,f,g,h){this.H=a;this.wf=b!="null"?b:w_c;this.Ag=c;this.yg=d;this.zg=e;this.Sg=f;this.Bg=g;this.hi=h;this.Ga=this.la=-1;this.Ha=w_c;this.Bb=300;this.Vd="200px";this.W=document.getElementById(this.H+"_picImg");this.Wb=document.getElementById(this.H+"_changeImageLink");this.mc=document.getElementById(this.H+"_imageChoiceTable");this.tg=document.getElementById(this.H+"_imgSrcFromPCRadio");this.ug=document.getElementById(this.H+"_imgSrcFromWebRadio");this.m=document.getElementById(this.H+
"_imgFileNameInput");this.yb=document.getElementById(this.H+"_imgUrlTextInput");this.sf=window.frames[this.H+"_asynchronousFileUploadIframe"];this.Jd=0;this.C=new Image;this.C.onload=this.hitch(this,this.Kg);this.C.onerror=this.hitch(this,this.Jg);this.Xf=w_d;this.Va=this.F=this.Rd=w_c;this.ae=w_d}w_O.prototype.Pd=function(){return this.tg.checked};
w_O.prototype.Kg=function(){this.Jd=0;w_E.ClearError(this.H+"_imgUrlTextError");w_E.ClearError(this.H+"_imgFileNameError");if(!this.Pd()||this.la==0){this.la=this.C.width;this.Ga=this.C.height;this.Ha=this.C.src}var a=1,b=1;if(this.C.width>this.Bb)a=this.Bb/this.C.width;if(this.C.height>this.Bb)b=this.Bb/this.C.height;a=Math.min(a,b);this.W.style.width=Math.round(this.C.width*a)+"px";this.W.style.height=Math.round(this.C.height*a)+"px";this.W.src=this.C.src;this.W.style.display="";this.mc.style.display=
"none";this.Wb.style.display="";this.m.disabled=w_b;this.Ag&&this.Ag.call({},this.W.src,this.Ha,this.la,this.Ga)};w_O.prototype.db=function(a,b,c,d){if(a){w_E.SetError(this.H+"_imgFileNameError",b);w_E.ClearError(this.H+"_imgUrlTextError")}else{w_E.SetError(this.H+"_imgUrlTextError",b);w_E.ClearError(this.H+"_imgFileNameError")}this.W.style.display="none";this.mc.style.display="";this.Wb.style.display="none";this.m.disabled=w_d;this.yg&&this.yg.call({},c,d)};
w_O.prototype.Jg=function(){if(this.Jd<2){this.Jd++;var a=this.C.src;this.C.src="";this.Ja(a)}else this.db(this.Pd(),WidgetMessages.SIV_INVALID_URL,this.W.src)};w_O.prototype.hitch=function(a,b){return function(){b.apply(a,arguments)}};w_O.prototype.Ja=function(a){this.he();this.C.src=a};
w_O.prototype.Xc=function(a){a=a||window.event;if(window.event){a.returnValue=w_d;a.cancelBubble=w_b}else{a.preventDefault();a.stopPropagation()}this.W.style.display="none";this.Wb.style.display="none";this.mc.style.display="";this.m.disabled=w_d;this.yb.value="";this.be();this.ae=w_b;this.zg&&this.zg.call({})};w_O.prototype.Kd=function(){this.tg.checked="true";this.yb.value="";this.he();this.Gg();this.Xf=w_b;try{this.F.submit()}catch(a){this.db(w_b,WidgetMessages.SIV_INVALID_URL,this.F.value)}this.Fg()};
w_O.prototype.Qa=function(){var a=this.sf.document.result;a||this.db(w_b,WidgetMessages.SIV_INVALID_URL,this.m.value);if(a.hasErrors)a.errors.length>0?this.db(w_b,a.errors[0].message,this.m.value,a.Kh):this.db(w_b,WidgetMessages.SIV_INVALID_URL,this.m.value,a.Kh);else{var b=Math.max(a.origWidth,a.origHeight),c=this.Bd();if(this.la!=0&&c!=-1&&b>c){b=c/b;this.la=Math.round(a.origWidth*b);this.Ga=Math.round(a.origHeight*b)}else{this.la=a.origWidth;this.Ga=a.origHeight}this.Ha=a.mainSrc;this.Ja(a.thumbSrc)}};
w_O.prototype.Ld=function(a){a=a||window.event;if(a.keyCode!=9){this.ug.checked="true";this.Rd!=w_c&&window.clearTimeout(this.Rd);a=this.hitch(this,function(){if(this.ae||this.C.src!=this.yb.value){this.be();this.Ja(this.yb.value)}this.ae=w_d});this.Rd=window.setTimeout(a,1000)}};w_O.prototype.Td=function(a){this.ug.checked=w_b;this.yb.value=a;this.Ja(a)};
w_O.prototype.he=function(){this.W.src="img/icon_inprogress.gif";this.W.style.width=this.Vd;this.W.style.height=this.Vd;this.W.style.display="";this.mc.style.display="none";this.Wb.style.display="none"};
w_O.prototype.Gg=function(){if(!this.F){this.F=document.createElement("form");this.F.action="imageUpload.do";this.F.method="POST";this.F.target=this.sf.name;this.F.encoding="multipart/form-data";this.F.style.display="none";if(this.wf){var a=document.createElement("input");a.type="hidden";a.name="blogID";a.value=this.wf;this.F.appendChild(a)}a=document.createElement("input");a.type="hidden";a.name="sectionWidth";a.id="sectionWidth";this.F.appendChild(a);a=document.createElement("input");a.type="hidden";
a.name="photoUploadSecurityToken";a.value=this.hi;this.F.appendChild(a);document.body.appendChild(this.F)}a=this.Bd();if(a==-1)a=1600;document.getElementById("sectionWidth").value=a;this.Va={parent:this.m.parentNode,nextSibling:this.m.nextSibling};this.m.parentNode.removeChild(this.m);this.F.appendChild(this.m)};w_O.prototype.de=function(a){this.Bb=a;this.Vd=a+"px"};
w_O.prototype.Fg=function(){this.F.removeChild(this.m);this.Va&&this.Va.nextSibling?this.Va.parent.insertBefore(this.m,this.Va.nextSibling):this.Va.parent.appendChild(this.m)};w_O.prototype.be=function(){var a=document.createElement("input");a.type="file";a.name=this.m.name;a.id=this.m.id;a.onchange=this.m.onchange;var b=this.m.nextSibling;b==w_c?this.m.parentNode.appendChild(a):this.m.parentNode.insertBefore(a,b);this.m.parentNode.removeChild(this.m);this.m=a};
w_O.prototype.Bd=function(){return this.Sg==-1&&this.Bg?this.Bg():this.Sg};function w_P(){this.usiContainers=[]}var w_Na=new w_P;w_P.prototype.$c=function(a,b,c,d,e,f,g,h){this.usiContainers[a]=new w_O(a,b,eval(c),eval(d),eval(e),f,eval(g),h);return this.usiContainers[a]};w_P.prototype.lc=function(a){return this.usiContainers[a]};w_P.prototype.Qa=function(a){(a=this.lc(a))&&a.Xf&&a.Qa()};var _UploadSimpleImage=w_Na;w_P.prototype._createUsiContainer=w_P.prototype.$c;
w_P.prototype._getUsiContainer=w_P.prototype.lc;w_P.prototype._channelResultArrived=w_P.prototype.Qa;w_O.prototype._changeImage=w_O.prototype.Xc;w_O.prototype._imgUrlFileOnChange=w_O.prototype.Kd;w_O.prototype._imgUrlTextOnKeyUp=w_O.prototype.Ld;w_O.prototype._loadInitialUrl=w_O.prototype.Td;w_O.prototype._loadImageFromUrl=w_O.prototype.Ja;w_O.prototype._setPreviewSize=w_O.prototype.de;function _singleImageConfig_successfulUploadCallback(a,b,c,d){window.singleImageConfig_thumbImageUrl=a;window.singleImageConfig_imageUrl=b;window.singleImageConfig_imageWidth=c;window.singleImageConfig_imageHeight=d;if(a=document.getElementById("shrinkToFitRow"))a.style.visibility="hidden"}function _singleImageConfig_resetCallback(){window.singleImageConfig_imageUrl=w_c;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_D.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_c)w_D.N(window,WidgetMessages.SIV_NO_IMAGE,w_D.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)}}b={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_D.SaveWidget(b,a,w_N.WIDGET_TYPE_NAME)}};function w_Q(a){this.a=a;this.e=a.r()}w_Q.successfulUploadCallback=function(a,b,c,d){w_Q.ji=a;w_Q.Ha=b;w_Q.la=c;w_Q.Ga=d;if(a=document.getElementById("shrinkToFitRow"))a.style.visibility="hidden";if(a=document.getElementById("shrinkToFitMessageRow"))a.style.visibility="hidden"};w_Q.resetCallback=function(){w_Q.Ha=w_c;var a=document.getElementById("shrinkToFitRow");if(a)a.style.visibility="visible";if(a=document.getElementById("shrinkToFitMessageRow"))a.style.visibility="visible"};
w_Q.getScaledContainerWidth=function(){return document.getElementById("checkShrink").checked?w_Q.getContainerWidth():-1};w_Q.getContainerWidth=function(){var a=document.getElementById("sectionId").value,b=600;if(w_D.IsOpenerReachable(window)&&window.opener.document.getElementById(a))b=window.opener.document.getElementById(a).clientWidth;return b};w_Q.WIDGET_TYPE_NAME="Header";w_Q.prototype.d=function(){return w_Q.WIDGET_TYPE_NAME};w_Q.prototype.h=function(){return w_d};w_Q.prototype.b=function(){return this.a};
w_Q.prototype.c=function(a,b){this.a.k(b)};w_Q.FilterMap={title:w_E.GetRequiredStringFilter(),description:w_c,imagePlacement:w_c,useImage:w_c,securityToken:w_c};
w_Q.ConfigureWidget=function(){var a=document.forms.config.widgetId.value,b=document.forms.config.widgetType.value,c=w_E.ProcessForm(document.forms.config,w_Q.FilterMap),d=w_Q.getContainerWidth();if(c.success){if(w_Q.Ha){var e=w_Q.la,f=w_Q.Ga,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_Q.Ha;c.values.originalWidth=w_Q.la;c.values.originalHeight=w_Q.Ga;c.values.displayUrl=w_Q.ji;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_D.SaveWidget(c.values,a,b);return w_b}else return w_d};w_Q.hideImageOptions=function(){document.getElementById("imageOptions").style.display="none";return w_d};w_Q.showImageOptions=function(){document.getElementById("imageOptions").style.display="";return w_d};var _HeaderView=w_Q;_HeaderView.prototype=w_Q.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_R(a,b){this.a=a;this.e=a.r();this.li=b}w_R.prototype.b=function(){return this.a};w_R.prototype.d=function(){return this.li};w_R.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};
w_R.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");d=d.value;if(a=="Text")d=d.replace(/\n/g,"<br/>");c={content:d,title:e.value,securityToken:c};w_D.SaveWidget(c,b,a)};function w_S(a){w_R.call(this,a,"Text")}w_S.inherits(w_R);w_S.ConfigureWidget=function(){w_R.ConfigureWidget("Text")};function w_T(a){w_R.call(this,a,"HTML")}w_T.inherits(w_R);
w_T.ConfigureWidget=function(){w_R.ConfigureWidget("HTML")};var _TextView=w_S;_TextView.prototype=w_S.prototype;_TextView._ConfigureWidget=_TextView.ConfigureWidget;var _HTMLView=w_T;_HTMLView.prototype=w_T.prototype;_HTMLView._ConfigureWidget=_HTMLView.ConfigureWidget;function w_U(a){this.a=a}w_U.WIDGET_TYPE_NAME="VideoBar";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_d};w_U.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};w_U.prototype.j=function(){var a=this.b();google.load("search","1",{callback:w_Oa.bind(a)});a=a.D("bar");w_s(a,"videoBar-container")};
function w_Oa(){var a=this.D("bar"),b=this.p().format,c,d,e=this.p().expression;if(b=="VERTICAL"){c=w_d;d=GSvideoBar.THUMBNAILS_MEDIUM;a.style.width="110px"}else if(b=="HORIZONTAL-SMALL"){c=w_b;d=GSvideoBar.THUMBNAILS_SMALL;a.style.width="232px"}else if(b=="HORIZONTAL-MEDIUM"){c=w_b;d=GSvideoBar.THUMBNAILS_MEDIUM;a.style.width="432px"}b={largeResultSet:w_d,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,b)}var _VideoBarView=w_U;_VideoBarView._Configure=_VideoBarView.Configure;function w_V(a){this.a=a}w_V.WIDGET_TYPE_NAME="NewsBar";w_V.prototype.d=function(){return w_V.WIDGET_TYPE_NAME};w_V.prototype.b=function(){return this.a};w_V.prototype.h=function(){return w_d};w_V.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};w_V.prototype.j=function(){var a=this.b();google.load("search","1",{callback:w_Pa.bind(a)});window._uds_nbw_donotrepair=w_b};
function w_Pa(){var a=this.D("bar"),b,c=this.p().format;if(c=="VERTICAL")b=w_d;else if(c=="HORIZONTAL-SMALL")b=w_b;else if(c=="HORIZONTAL-MEDIUM")b=w_b;c=this.p().expression;var d=this.p().linkNewWindow;d=d==w_b?GSearch.LINK_TARGET_BLANK:GSearch.LINK_TARGET_SELF;c={largeResultSet:w_d,horizontal:b,linkTarget:d,title:" ",autoExecuteList:{executeList:c.split(/,/)}};if(b){c.autoExecuteList.cycleTime=GSnewsBar.CYCLE_TIME_MEDIUM;c.autoExecuteList.cycleMode=GSnewsBar.CYCLE_MODE_RANDOM}b=new GSnewsBar(a,
c);window[a.id]=b}var _NewsBarView=w_V;_NewsBarView._Configure=_NewsBarView.Configure;function w_W(a){this.a=a}w_W.WIDGET_TYPE_NAME="Slideshow";w_W.prototype.d=function(){return w_W.WIDGET_TYPE_NAME};w_W.prototype.b=function(){return this.a};w_W.prototype.h=function(){return w_d};w_W.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};w_W.prototype.j=function(){var a=this.b();google.load("feeds","1",{callback:w_Qa.bind(a)})};
function w_Qa(){var a=this.D("slideshow"),b=this.p().computedFeed,c=this.p().linkNewWindow;c=c?google.feeds.LINK_TARGET_BLANK:google.feeds.LINK_TARGET_SELF;c={linkTarget:c,scaleImages:w_b,fullControlPanel:w_b,fullControlPanelSmallIcons:w_b,pauseOnHover:w_d,displayTime:this.p().speed};if(b.indexOf("http://api.flickr.com")==0)c.thumbnailUrlResolver=w_W.FlickrThumbResolver;if(this.p().randomizeFeed)c.feedLoadCallback=w_W.FeedRandomizer;new GFslideShow(b,a,c)}
w_W.FlickrThumbResolver=function(a){var b=google.feeds.getElementsByTagNameNS(a.xmlNode,"http://search.yahoo.com/mrss/","thumbnail");a=w_c;if(b.length){b=b[0];a=b.getAttribute("url");if(!a)a=b.firstChild.nodeValue;a=a.replace(/^(.*)_[st]\.([a-zA-Z]+)$/,"$1_m.$2")}return a};w_W.FeedRandomizer=function(a){a=a.feed.entries;for(var b=a.length-1;b>0;--b){var c=Math.floor(Math.random()*(b+1)),d=a[b];a[b]=a[c];a[c]=d}};var _SlideshowView=w_W;_SlideshowView._Configure=_SlideshowView.Configure;function w_X(a){this.a=a;this.e=a.r()}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)};var _LabelView=w_X;function w_Y(a){this.a=a;this.e=a.r()}w_Y.WIDGET_TYPE_NAME="TextList";w_Y.prototype.d=function(){return w_Y.WIDGET_TYPE_NAME};w_Y.prototype.b=function(){return this.a};w_Y.prototype.h=function(){return w_d};w_Y.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};var _TextListView=w_Y;function w_Z(a){this.a=a;this.e=a.r()}w_Z.WIDGET_TYPE_NAME="LinkList";w_Z.prototype.d=function(){return w_Z.WIDGET_TYPE_NAME};w_Z.prototype.h=function(){return w_d};w_Z.prototype.b=function(){return this.a};w_Z.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};var _LinkListView=w_Z;_LinkListView.prototype=w_Z.prototype;function w__(a){this.a=a;this.e=a.r()}w__.prototype.d=function(){return"BloggerButton"};w__.prototype.b=function(){return this.a};w__.prototype.c=function(a,b){this.a.k(b)};var _BloggerButtonView=w__;var w_0=function(a){this.a=a;this.e=a.r()};w_0.prototype.d=function(){return"Poll"};w_0.prototype.b=function(){return this.a};w_0.prototype.c=function(a,b){if(a=="configure"){this.savePending=w_d;this.a.k(b)}};w_0.prototype.va=function(a,b){if(a=="configure")this.savePending=w_d;w_D.va(b,window)};
w_0.adjustFrameHeight=function(){for(var a=document.getElementsByTagName("iframe"),b,c=0;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_0.adjustFrameHeight,500);var _PollView=w_0;function w_1(a){this.a=a;this.e=a.r()}w_1.WIDGET_TYPE_NAME="Navbar";w_1.prototype.d=function(){return w_1.WIDGET_TYPE_NAME};w_1.prototype.b=function(){return this.a};w_1.prototype.h=function(){return w_d};w_1.prototype.c=function(a,b){this.a.k(b)};w_1.FilterMap={navbartype:w_c,securityToken:w_c};w_1.ConfigureWidget=function(){w_A.ConfigureWidget(w_1.FilterMap)};var _NavbarView=w_1;_NavbarView.prototype=w_1.prototype;_NavbarView._ConfigureWidget=_NavbarView.ConfigureWidget;function w_2(a){this.a=a;this.e=a.r()}w_2.WIDGET_TYPE_NAME="Profile";w_2.prototype.h=function(){return w_d};w_2.prototype.d=function(){return w_2.WIDGET_TYPE_NAME};w_2.prototype.b=function(){return this.a};w_2.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};w_2.prototype.j=function(){this.e.rootElement.style.display=this.a.p().isDisplayable==w_d?"none":""};var _ProfileView=w_2;w_.iter={};w_.iter.Iterable=w_.typedef;w_.iter.StopIteration="StopIteration"in w_.global?w_.global.StopIteration:Error("StopIteration");w_.iter.Iterator=function(){};w_.iter.Iterator.prototype.next=function(){w_a(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_d);if(w_.isArrayLike(a)){var b=0,c=new w_.iter.Iterator;c.next=function(){for(;1;){if(b>=a.length)w_a(w_.iter.StopIteration);if(b in a)return a[b++];else b++}};return c}w_a(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_a(d)}else{a=w_.iter.toIterator(a);try{for(;1;)b.call(c,a.next(),undefined,a)}catch(e){if(e!==w_.iter.StopIteration)w_a(e)}}};w_.iter.filter=function(a,b,c){a=w_.iter.toIterator(a);var d=new w_.iter.Iterator;d.next=function(){for(;1;){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_a(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_a(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(;1;){var e=a.next();return b.call(c,e,undefined,a)}};return d};
w_.iter.reduce=function(a,b,c,d){var e=c;w_.iter.forEach(a,function(f){e=b.call(d,e,f)});return e};w_.iter.some=function(a,b,c){a=w_.iter.toIterator(a);try{for(;1;)if(b.call(c,a.next(),undefined,a))return w_b}catch(d){if(d!==w_.iter.StopIteration)w_a(d)}return w_d};w_.iter.every=function(a,b,c){a=w_.iter.toIterator(a);try{for(;1;)if(!b.call(c,a.next(),undefined,a))return w_d}catch(d){if(d!==w_.iter.StopIteration)w_a(d)}return w_b};
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_a(w_.iter.StopIteration);var e=w_.iter.toIterator(a[c]);return e.next()}catch(f){if(f!==w_.iter.StopIteration||c>=b)w_a(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_b;d.next=function(){for(;1;){var f=a.next();if(!(e&&b.call(c,f,undefined,a))){e=w_d;return f}}};return d};
w_.iter.takeWhile=function(a,b,c){a=w_.iter.toIterator(a);var d=new w_.iter.Iterator,e=w_b;d.next=function(){for(;1;)if(e){var f=a.next();if(b.call(c,f,undefined,a))return f;else e=w_d}else w_a(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(;1;){c=d=w_d;var e=a.next();c=w_b;var f=b.next();d=w_b;if(e!=f)return w_d}}catch(g){if(g!==w_.iter.StopIteration)w_a(g);else{if(c&&!d)return w_d;if(!d)try{b.next();return w_d}catch(h){if(h!==w_.iter.StopIteration)w_a(h);return w_b}}}return w_d};w_.iter.nextOrValue=function(a,b){try{return w_.iter.toIterator(a).next()}catch(c){if(c!=w_.iter.StopIteration)w_a(c);return b}};w_.structs.T=function(a){if(typeof a.T=="function")return a.T();if(w_.isArrayLike(a)||w_.isString(a))return a.length;return w_.object.T(a)};w_.structs.n=function(a){if(typeof a.n=="function")return a.n();if(w_.isString(a))return a.split("");if(w_.isArrayLike(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return w_.object.n(a)};
w_.structs.l=function(a){if(typeof a.l=="function")return a.l();if(typeof a.n=="function")return undefined;if(w_.isArrayLike(a)||w_.isString(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return w_.object.l(a)};w_.structs.contains=function(a,b){if(typeof a.contains=="function")return a.contains(b);if(typeof a.ha=="function")return a.ha(b);if(w_.isArrayLike(a)||w_.isString(a))return w_.array.contains(a,b);return w_.object.ha(a,b)};
w_.structs.w=function(a){if(typeof a.w=="function")return a.w();if(w_.isArrayLike(a)||w_.isString(a))return w_.array.w(a);return w_.object.w(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 for(var d=w_.structs.l(a),e=w_.structs.n(a),f=e.length,g=0;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.l(a),f=w_.structs.n(a),g=f.length;if(e){d={};for(var h=0;h<g;h++)if(b.call(c,f[h],e[h],a))d[e[h]]=f[h]}else{d=[];for(h=0;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.l(a),f=w_.structs.n(a),g=f.length;if(e){d={};for(var h=0;h<g;h++)d[e[h]]=b.call(c,f[h],e[h],a)}else{d=[];for(h=0;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);for(var d=w_.structs.l(a),e=w_.structs.n(a),f=e.length,g=0;g<f;g++)if(b.call(c,e[g],d&&d[g],a))return w_b;return w_d};
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);for(var d=w_.structs.l(a),e=w_.structs.n(a),f=e.length,g=0;g<f;g++)if(!b.call(c,e[g],d&&d[g],a))return w_d;return w_b};w_.structs.Map=function(a){this.G={};this.o=[];var b=arguments.length;if(b>1){if(b%2)w_a(Error("Uneven number of arguments"));for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.mf(a)};w_.structs.Map.prototype.g=0;w_.structs.Map.prototype.fb=0;w_.structs.Map.prototype.T=function(){return this.g};w_.structs.Map.prototype.n=function(){this.Ra();for(var a=[],b=0;b<this.o.length;b++){var c=this.o[b];a.push(this.G[c])}return a};w_.structs.Map.prototype.l=function(){this.Ra();return this.o.concat()};
w_.structs.Map.prototype.s=function(a){return w_.structs.Map.Fa(this.G,a)};w_.structs.Map.prototype.ha=function(a){for(var b=0;b<this.o.length;b++){var c=this.o[b];if(w_.structs.Map.Fa(this.G,c)&&this.G[c]==a)return w_b}return w_d};w_.structs.Map.prototype.equals=function(a,b){if(this===a)return w_b;if(this.g!=a.T())return w_d;b=b||w_.structs.Map.defaultEquals;this.Ra();for(var c,d=0;c=this.o[d];d++)if(!b(this.get(c),a.get(c)))return w_d;return w_b};
w_.structs.Map.defaultEquals=function(a,b){return a===b};w_.structs.Map.prototype.w=function(){return this.g==0};w_.structs.Map.prototype.clear=function(){this.G={};this.fb=this.g=this.o.length=0};w_.structs.Map.prototype.remove=function(a){if(w_.structs.Map.Fa(this.G,a)){delete this.G[a];this.g--;this.fb++;this.o.length>2*this.g&&this.Ra();return w_b}return w_d};
w_.structs.Map.prototype.Ra=function(){if(this.g!=this.o.length){for(var a=0,b=0;a<this.o.length;){var c=this.o[a];if(w_.structs.Map.Fa(this.G,c))this.o[b++]=c;a++}this.o.length=b}if(this.g!=this.o.length){var d={};for(b=a=0;a<this.o.length;){c=this.o[a];if(!w_.structs.Map.Fa(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.Fa(this.G,a))return this.G[a];return b};
w_.structs.Map.prototype.set=function(a,b){if(!w_.structs.Map.Fa(this.G,a)){this.g++;this.o.push(a);this.fb++}this.G[a]=b};w_.structs.Map.prototype.mf=function(a){var b;if(a instanceof w_.structs.Map){b=a.l();a=a.n()}else{b=w_.object.l(a);a=w_.object.n(a)}for(var c=0;c<b.length;c++)this.set(b[c],a[c])};w_.structs.Map.prototype.clone=function(){return new w_.structs.Map(this)};
w_.structs.Map.prototype.transpose=function(){for(var a=new w_.structs.Map,b=0;b<this.o.length;b++){var c=this.o[b],d=this.G[c];a.set(d,c)}return a};w_.structs.Map.prototype.__iterator__=function(a){this.Ra();var b=0,c=this.o,d=this.G,e=this.fb,f=this,g=new w_.iter.Iterator;g.next=function(){for(;1;){if(e!=f.fb)w_a(Error("The map has changed since the iterator was created"));if(b>=c.length)w_a(w_.iter.StopIteration);var h=c[b++];return a?h:d[h]}};return g};
w_.structs.Map.Fa=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};w_.structs.Map.T=function(a){return w_.structs.T(a)};w_.structs.Map.n=function(a){return w_.structs.n(a)};w_.structs.Map.l=function(a){if(typeof a.l=="function")return a.l();var b=[];if(w_.isArrayLike(a))for(var c=0;c<a.length;c++)b.push(c);else return w_.object.l(a);return b};w_.structs.Map.s=function(a,b){if(typeof a.s=="function")return a.s(b);if(w_.isArrayLike(a))return Number(b)<a.length;return w_.object.s(a,b)};
w_.structs.Map.ha=function(a,b){return w_.structs.contains(a,b)};w_.structs.Map.w=function(a){return w_.structs.w(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.s(a,b))w_a(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.s(a,b))return a[b];return c};w_.structs.Map.set=function(a,b,c){if(typeof a.set=="function")a.set(b,c);else a[b]=c};w_.asserts={};w_.asserts.assert=function(a,b){if(w_.DEBUG&&!a)w_a(Error("Assertion failed"+(b?": "+b:"")))};w_.asserts.fail=function(a){if(w_.DEBUG)w_a(Error("Failure"+(a?": "+a:"")))};w_.asserts.assertNumber=function(a,b){w_.asserts.assert(w_.isNumber(a),b)};w_.asserts.assertString=function(a,b){w_.asserts.assert(w_.isString(a),b)};w_.asserts.assertFunction=function(a,b){w_.asserts.assert(w_.isFunction(a),b)};w_.asserts.assertObject=function(a,b){w_.asserts.assert(w_.isObject(a),b)};
w_.asserts.assertInstanceof=function(a,b,c){w_.asserts.assert(a instanceof b,c)};w_.uri={};w_.uri.utils={};w_.uri.utils.kb={AMPERSAND:38,EQUAL:61,HASH:35,QUESTION:63};w_.uri.utils.buildFromEncodedParts=function(a,b,c,d,e,f,g){var h=[];a&&h.push(a,":");if(c){h.push("//");b&&h.push(b,"@");h.push(c);d&&h.push(":",d)}e&&h.push(e);f&&h.push("?",f);g&&h.push("#",g);return h.join("")};w_.uri.utils.ii=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([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.ii)};w_.uri.utils.Yb=function(a){return a&&decodeURIComponent(a)};w_.uri.utils.Xa=function(a,b){return w_.uri.utils.split(b)[a]||w_c};w_.uri.utils.jc=function(a){return w_.uri.utils.Xa(w_.uri.utils.ComponentIndex.SCHEME,a)};w_.uri.utils.getUserInfoEncoded=function(a){return w_.uri.utils.Xa(w_.uri.utils.ComponentIndex.USER_INFO,a)};
w_.uri.utils.kc=function(a){return w_.uri.utils.Yb(w_.uri.utils.getUserInfoEncoded(a))};w_.uri.utils.getDomainEncoded=function(a){return w_.uri.utils.Xa(w_.uri.utils.ComponentIndex.DOMAIN,a)};w_.uri.utils.tb=function(a){return w_.uri.utils.Yb(w_.uri.utils.getDomainEncoded(a))};w_.uri.utils.vb=function(a){return Number(w_.uri.utils.Xa(w_.uri.utils.ComponentIndex.PORT,a))||w_c};w_.uri.utils.getPathEncoded=function(a){return w_.uri.utils.Xa(w_.uri.utils.ComponentIndex.PATH,a)};w_.uri.utils.Ea=function(a){return w_.uri.utils.Yb(w_.uri.utils.getPathEncoded(a))};
w_.uri.utils.yd=function(a){return w_.uri.utils.Xa(w_.uri.utils.ComponentIndex.QUERY_DATA,a)};w_.uri.utils.getFragmentEncoded=function(a){var b=a.indexOf("#");return b<0?w_c:a.substr(b+1)};w_.uri.utils.ec=function(a){return w_.uri.utils.Yb(w_.uri.utils.getFragmentEncoded(a))};w_.uri.utils.getHost=function(a){a=w_.uri.utils.split(a);return w_.uri.utils.buildFromEncodedParts(a[w_.uri.utils.ComponentIndex.SCHEME],a[w_.uri.utils.ComponentIndex.USER_INFO],a[w_.uri.utils.ComponentIndex.DOMAIN],a[w_.uri.utils.ComponentIndex.PORT])};
w_.uri.utils.getPathAndAfter=function(a){a=w_.uri.utils.split(a);return w_.uri.utils.buildFromEncodedParts(w_c,w_c,w_c,w_c,a[w_.uri.utils.ComponentIndex.PATH],a[w_.uri.utils.ComponentIndex.QUERY_DATA],a[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){a=w_.uri.utils.split(a);b=w_.uri.utils.split(b);return a[w_.uri.utils.ComponentIndex.DOMAIN]==b[w_.uri.utils.ComponentIndex.DOMAIN]&&a[w_.uri.utils.ComponentIndex.SCHEME]==b[w_.uri.utils.ComponentIndex.SCHEME]&&a[w_.uri.utils.ComponentIndex.PORT]==b[w_.uri.utils.ComponentIndex.PORT]};w_.uri.utils.rf=function(a){if(w_.DEBUG&&a.indexOf("#")>=0)w_a(Error("goog.uri.utils: Fragment identifiers are not supported: ["+a+"]"))};
w_.uri.utils.nh=function(a){if(w_.DEBUG&&(a.indexOf("#")>=0||a.indexOf("?")>=0))w_a(Error("goog.uri.utils: Fragment or query identifiers are not supported: ["+a+"]"))};w_.uri.utils.Tc=function(a){w_.uri.utils.rf(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.qf=function(a,b,c){if(w_.isArray(b)){b=b;for(var d=0;d<b.length;d++)c.push("&",a,"=",w_.string.urlEncode(b[d]))}else b!=w_c&&c.push("&",a,"=",w_.string.urlEncode(b))};
w_.uri.utils.Af=function(a,b,c){w_.asserts.assert(Math.max(b.length-(c||0),0)%2==0,"goog.uri.utils: Key/value lists must be even in length.");for(c=c||0;c<b.length;c+=2)w_.uri.utils.qf(b[c],b[c+1],a);return a};w_.uri.utils.buildQueryData=function(a,b){a=w_.uri.utils.Af([],a,b);a[0]="";return a.join("")};w_.uri.utils.zf=function(a,b){for(var c in b)w_.uri.utils.qf(c,b[c],a);return a};w_.uri.utils.buildQueryDataFromMap=function(a){a=w_.uri.utils.zf([],a);a[0]="";return a.join("")};
w_.uri.utils.appendParams=function(a){return w_.uri.utils.Tc(w_.uri.utils.Af([a],arguments,1))};w_.uri.utils.appendParamsFromMap=function(a,b){return w_.uri.utils.Tc(w_.uri.utils.zf([a],b))};w_.uri.utils.appendParam=function(a,b,c){return w_.uri.utils.Tc([a,"&",b,"=",w_.string.urlEncode(c)])};
w_.uri.utils.cc=function(a,b,c,d){b=b;for(var e=c.length;(b=a.indexOf(c,b))>=0&&b<d;){var f=a.charCodeAt(b-1);if(f==w_.uri.utils.kb.AMPERSAND||f==w_.uri.utils.kb.QUESTION){f=a.charCodeAt(b+e);if(!f||f==w_.uri.utils.kb.EQUAL||f==w_.uri.utils.kb.AMPERSAND||f==w_.uri.utils.kb.HASH)return b}b+=e+1}return-1};w_.uri.utils.Hd=/#|$/;w_.uri.utils.hasParam=function(a,b){return w_.uri.utils.cc(a,0,b,a.search(w_.uri.utils.Hd))>=0};
w_.uri.utils.getParamValue=function(a,b){var c=a.search(w_.uri.utils.Hd),d=w_.uri.utils.cc(a,0,b,c);if(d<0)return w_c;else{var e=a.indexOf("&",d);if(e<0||e>c)e=c;d+=b.length+1;return w_.string.urlDecode(a.substr(d,e-d))}};w_.uri.utils.getParamValues=function(a,b){for(var c=a.search(w_.uri.utils.Hd),d=0,e,f=[];(e=w_.uri.utils.cc(a,d,b,c))>=0;){d=a.indexOf("&",e);if(d<0||d>c)d=c;e+=b.length+1;f.push(w_.string.urlDecode(a.substr(e,d-e)))}return f};w_.uri.utils.ki=/[?&]$/;
w_.uri.utils.removeParam=function(a,b){w_.uri.utils.rf(a);for(var c=a.length,d=0,e,f=[];(e=w_.uri.utils.cc(a,d,b,c))>=0;){f.push(a.substring(d,e));d=a.indexOf("&",e)+1||c}f.push(a.substr(d));return f.join("").replace(w_.uri.utils.ki,"")};w_.uri.utils.appendPath=function(a,b){w_.uri.utils.nh(a);if(w_.string.fd(a,"/"))a=a.substr(0,a.length-1);if(w_.string.uc(b,"/"))b=b.substr(1);return w_.string.buildString(a,"/",b)};w_.Uri=function(a,b){var c;if(a instanceof w_.Uri){this.sa(b==w_c?a.fg():b);this.Ib(a.jc());this.Jb(a.kc());this.Db(a.tb());this.Gb(a.vb());this.Fb(a.Ea());this.tc(a.yd().clone());this.Eb(a.ec())}else if(a&&(c=w_.uri.utils.split(String(a)))){this.sa(!!b);this.Ib(c[w_.uri.utils.ComponentIndex.SCHEME]||"",w_b);this.Jb(c[w_.uri.utils.ComponentIndex.USER_INFO]||"",w_b);this.Db(c[w_.uri.utils.ComponentIndex.DOMAIN]||"",w_b);this.Gb(c[w_.uri.utils.ComponentIndex.PORT]);this.Fb(c[w_.uri.utils.ComponentIndex.PATH]||
"",w_b);this.ee(c[w_.uri.utils.ComponentIndex.QUERY_DATA]||"",w_b);this.Eb(c[w_.uri.utils.ComponentIndex.FRAGMENT]||"",w_b)}else{this.sa(!!b);this.M=new w_.Uri.QueryData(w_c,this,this.aa)}};w_.Uri.RANDOM_PARAM="zx";w_.Uri.prototype.ea="";w_.Uri.prototype.Pa="";w_.Uri.prototype.Aa="";w_.Uri.prototype.Ma=w_c;w_.Uri.prototype.La="";w_.Uri.prototype.Ba="";w_.Uri.prototype.wg=w_d;w_.Uri.prototype.aa=w_d;
w_.Uri.prototype.toString=function(){if(this.Y)return this.Y;var a=[];this.ea&&a.push(w_.Uri.sb(this.ea,w_.Uri.Og),":");if(this.Aa){a.push("//");this.Pa&&a.push(w_.Uri.sb(this.Pa,w_.Uri.Og),"@");a.push(w_.Uri.Ih(this.Aa));this.Ma!=w_c&&a.push(":",String(this.vb()))}this.La&&a.push(w_.Uri.sb(this.La,w_.Uri.bi));var b=String(this.M);b&&a.push("?",b);this.Ba&&a.push("#",w_.Uri.sb(this.Ba,w_.Uri.ai));return this.Y=a.join("")};
w_.Uri.prototype.resolve=function(a){var b=this.clone(),c=a.ng();if(c)b.Ib(a.jc());else c=a.og();if(c)b.Jb(a.kc());else c=a.Fd();if(c)b.Db(a.tb());else c=a.lg();var d=a.Ea();if(c)b.Gb(a.vb());else if(c=a.Gd()){if(d.charAt(0)!="/")if(this.Fd()&&!this.Gd())d="/"+d;else{var e=b.Ea().lastIndexOf("/");if(e!=-1)d=b.Ea().substr(0,e+1)+d}d=w_.Uri.removeDotSegments(d)}if(c)b.Fb(d);else c=a.mg();if(c)b.ee(a.ag());else c=a.kg();c&&b.Eb(a.ec());return b};
w_.Uri.prototype.clone=function(){return w_.Uri.create(this.ea,this.Pa,this.Aa,this.Ma,this.La,this.M.clone(),this.Ba,this.aa)};w_.Uri.prototype.jc=function(){return this.ea};w_.Uri.prototype.Ib=function(a,b){this.ca();delete this.Y;if(this.ea=b?w_.Uri.Sa(a):a)this.ea=this.ea.replace(/:$/,"");return this};w_.Uri.prototype.ng=function(){return!!this.ea};w_.Uri.prototype.kc=function(){return this.Pa};w_.Uri.prototype.Jb=function(a,b){this.ca();delete this.Y;this.Pa=b?w_.Uri.Sa(a):a;return this};
w_.Uri.prototype.og=function(){return!!this.Pa};w_.Uri.prototype.tb=function(){return this.Aa};w_.Uri.prototype.Db=function(a,b){this.ca();delete this.Y;this.Aa=b?w_.Uri.Sa(a):a;return this};w_.Uri.prototype.Fd=function(){return!!this.Aa};w_.Uri.prototype.vb=function(){return this.Ma};w_.Uri.prototype.Gb=function(a){this.ca();delete this.Y;if(a){a=Number(a);if(isNaN(a)||a<0)w_a(Error("Bad port number "+a));this.Ma=a}else this.Ma=w_c;return this};w_.Uri.prototype.lg=function(){return this.Ma!=w_c};
w_.Uri.prototype.Ea=function(){return this.La};w_.Uri.prototype.Fb=function(a,b){this.ca();delete this.Y;this.La=b?w_.Uri.Sa(a):a;return this};w_.Uri.prototype.Gd=function(){return!!this.La};w_.Uri.prototype.mg=function(){return this.M.toString()!==""};w_.Uri.prototype.tc=function(a,b){this.ca();delete this.Y;if(a instanceof w_.Uri.QueryData){this.M=a;this.M.Kb=this;this.M.sa(this.aa)}else{b||(a=w_.Uri.sb(a,w_.Uri.ci));this.M=new w_.Uri.QueryData(a,this,this.aa)}return this};
w_.Uri.prototype.ee=function(a,b){return this.tc(a,b)};w_.Uri.prototype.ag=function(){return this.M.Zg()};w_.Uri.prototype.yd=function(){return this.M};w_.Uri.prototype.sc=function(a,b){this.ca();delete this.Y;w_.isArray(b)||(b=[String(b)]);this.M.Vg(a,b);return this};w_.Uri.prototype.ec=function(){return this.Ba};w_.Uri.prototype.Eb=function(a,b){this.ca();delete this.Y;this.Ba=b?w_.Uri.Sa(a):a;return this};w_.Uri.prototype.kg=function(){return!!this.Ba};
w_.Uri.prototype.removeParameter=function(a){this.ca();this.M.remove(a);return this};w_.Uri.prototype.ca=function(){if(this.wg)w_a(Error("Tried to modify a read-only Uri"))};w_.Uri.prototype.sa=function(a){this.aa=a;this.M&&this.M.sa(a)};w_.Uri.prototype.fg=function(){return this.aa};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){h=new w_.Uri(w_c,h);a&&h.Ib(a);b&&h.Jb(b);c&&h.Db(c);d&&h.Gb(d);e&&h.Fb(e);f&&h.tc(f);g&&h.Eb(g);return h};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.removeDotSegments=function(a){if(a==".."||a==".")return"";else if(!w_.string.contains(a,"./")&&!w_.string.contains(a,"/."))return a;else{var b=w_.string.uc(a,"/");a=a.split("/");for(var c=[],d=0;d<a.length;){var e=a[d++];if(e==".")b&&d==a.length&&c.push("");else if(e==".."){if(c.length>1||c.length==1&&c[0]!="")c.pop();b&&d==a.length&&c.push("")}else{c.push(e);b=w_b}}return c.join("/")}};w_.Uri.Sa=function(a){return a?decodeURIComponent(a):""};
w_.Uri.Ih=function(a){if(w_.isString(a))return encodeURIComponent(a);return w_c};w_.Uri.Hh=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/;w_.Uri.sb=function(a,b){var c=w_c;if(w_.isString(a)){c=a;w_.Uri.Hh.test(c)||(c=encodeURI(a));if(c.search(b)>=0)c=c.replace(b,w_.Uri.Gh)}return c};w_.Uri.Gh=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};w_.Uri.Og=/[#\/\?@]/g;w_.Uri.bi=/[\#\?]/g;w_.Uri.ci=/[\#\?@]/g;w_.Uri.ai=/#/g;
w_.Uri.haveSameDomain=function(a,b){a=w_.uri.utils.split(a);b=w_.uri.utils.split(b);return a[w_.uri.utils.ComponentIndex.DOMAIN]==b[w_.uri.utils.ComponentIndex.DOMAIN]&&a[w_.uri.utils.ComponentIndex.PORT]==b[w_.uri.utils.ComponentIndex.PORT]};w_.Uri.QueryData=function(a,b,c){this.ia=a||w_c;this.Kb=b||w_c;this.aa=!!c};
w_.Uri.QueryData.prototype.R=function(){if(!this.i){this.i=new w_.structs.Map;if(this.ia)for(var a=this.ia.split("&"),b=0;b<a.length;b++){var c=a[b].indexOf("="),d=w_c,e=w_c;if(c>=0){d=a[b].substring(0,c);e=a[b].substring(c+1)}else d=a[b];d=w_.string.urlDecode(d);d=this.ja(d);this.add(d,e?w_.string.urlDecode(e):"")}}};
w_.Uri.QueryData.createFromMap=function(a,b,c){var d=w_.structs.l(a);if(typeof d=="undefined")w_a(Error("Keys are undefined"));return w_.Uri.QueryData.createFromKeysValues(d,w_.structs.n(a),b,c)};w_.Uri.QueryData.createFromKeysValues=function(a,b,c,d){if(a.length!=b.length)w_a(Error("Mismatched lengths for keys/values"));c=new w_.Uri.QueryData(w_c,c,d);for(d=0;d<a.length;d++)c.add(a[d],b[d]);return c};w_.Uri.QueryData.prototype.i=w_c;w_.Uri.QueryData.prototype.g=w_c;w_.Uri.QueryData.za=w_c;
w_.Uri.QueryData.prototype.T=function(){this.R();return this.g};w_.Uri.QueryData.prototype.add=function(a,b){this.R();this.Ia();a=this.ja(a);if(this.s(a)){var c=this.i.get(a);w_.isArray(c)?c.push(b):this.i.set(a,[c,b])}else this.i.set(a,b);this.g++;return this};w_.Uri.QueryData.prototype.remove=function(a){this.R();a=this.ja(a);if(this.i.s(a)){this.Ia();var b=this.i.get(a);if(w_.isArray(b))this.g-=b.length;else this.g--;return this.i.remove(a)}return w_d};
w_.Uri.QueryData.prototype.clear=function(){this.Ia();this.i&&this.i.clear();this.g=0};w_.Uri.QueryData.prototype.w=function(){this.R();return this.g==0};w_.Uri.QueryData.prototype.s=function(a){this.R();a=this.ja(a);return this.i.s(a)};w_.Uri.QueryData.prototype.ha=function(a){var b=this.n();return w_.array.contains(b,a)};
w_.Uri.QueryData.prototype.l=function(){this.R();for(var a=this.i.n(),b=this.i.l(),c=[],d=0;d<b.length;d++){var e=a[d];if(w_.isArray(e))for(var f=0;f<e.length;f++)c.push(b[d]);else c.push(b[d])}return c};w_.Uri.QueryData.prototype.n=function(a){this.R();if(a){a=this.ja(a);if(this.s(a)){var b=this.i.get(a);if(w_.isArray(b))return b;else{a=[];a.push(b)}}else a=[]}else{b=this.i.n();a=[];for(var c=0;c<b.length;c++){var d=b[c];w_.isArray(d)?w_.array.extend(a,d):a.push(d)}}return a};
w_.Uri.QueryData.prototype.set=function(a,b){this.R();this.Ia();a=this.ja(a);if(this.s(a)){var c=this.i.get(a);if(w_.isArray(c))this.g-=c.length;else this.g--}this.i.set(a,b);this.g++;return this};w_.Uri.QueryData.prototype.get=function(a,b){this.R();a=this.ja(a);if(this.s(a)){a=this.i.get(a);return w_.isArray(a)?a[0]:a}else return b};
w_.Uri.QueryData.prototype.Vg=function(a,b){this.R();this.Ia();a=this.ja(a);if(this.s(a)){var c=this.i.get(a);if(w_.isArray(c))this.g-=c.length;else this.g--}if(b.length>0){this.i.set(a,b);this.g+=b.length}};
w_.Uri.QueryData.prototype.toString=function(){if(this.ia)return this.ia;if(!this.i)return"";for(var a=[],b=0,c=this.i.l(),d=0;d<c.length;d++){var e=c[d],f=w_.string.urlEncode(e);e=this.i.get(e);if(w_.isArray(e))for(var g=0;g<e.length;g++){b>0&&a.push("&");a.push(f,"=",w_.string.urlEncode(e[g]));b++}else{b>0&&a.push("&");a.push(f,"=",w_.string.urlEncode(e));b++}}return this.ia=a.join("")};w_.Uri.QueryData.prototype.Zg=function(){if(!this.za)this.za=w_.Uri.Sa(this.toString());return this.za};
w_.Uri.QueryData.prototype.Ia=function(){delete this.za;delete this.ia;this.Kb&&delete this.Kb.Y};w_.Uri.QueryData.prototype.clone=function(){var a=new w_.Uri.QueryData;if(this.za)a.za=this.za;if(this.ia)a.ia=this.ia;if(this.i)a.i=this.i.clone();return a};w_.Uri.QueryData.prototype.ja=function(a){a=String(a);if(this.aa)a=a.toLowerCase();return a};
w_.Uri.QueryData.prototype.sa=function(a){var b=a&&!this.aa;if(b){this.R();this.Ia();w_.structs.forEach(this.i,function(c,d){var e=d.toLowerCase();if(d!=e){this.remove(d);this.add(e,c)}},this)}this.aa=a};w_.Uri.QueryData.prototype.extend=function(){for(var a=0;a<arguments.length;a++){var b=arguments[a];w_.structs.forEach(b,function(c,d){this.add(d,c)},this)}};w_.net={};w_.net.Jsonp=function(a,b){this.Kb=new w_.Uri(a);this.ph=b?b:"callback";this.xc=5000};w_.net.Jsonp.CALLBACKS="_callbacks_";w_.net.Jsonp.fi=0;w_.net.Jsonp.prototype.fe=function(a){this.xc=a};
w_.net.Jsonp.prototype.send=function(a,b,c,d){if(!document.documentElement.firstChild){c&&c(a);return w_c}d=d||"_"+(w_.net.Jsonp.fi++).toString(36)+w_.now().toString(36);w_.global[w_.net.Jsonp.CALLBACKS]||(w_.global[w_.net.Jsonp.CALLBACKS]={});var e=w_.dom.createElement("script"),f=w_c;if(this.xc>0){f=w_.net.Jsonp.Vh(d,e,a,c);f=w_.global.setTimeout(f,this.xc)}c=this.Kb.clone();w_.net.Jsonp.lh(a,c);if(b){a=w_.net.Jsonp.Wh(d,e,b,f);w_.global[w_.net.Jsonp.CALLBACKS][d]=a;c.sc(this.ph,w_.net.Jsonp.CALLBACKS+
"."+d)}w_.dom.Hb(e,{type:"text/javascript",id:d,charset:"UTF-8",src:c.toString()});w_.dom.appendChild(document.getElementsByTagName("head")[0],e);return{vi:d,xc:f}};w_.net.Jsonp.Vh=function(a,b,c,d){return function(){w_.net.Jsonp.Df(a,b,w_d);d&&d(c)}};w_.net.Jsonp.Wh=function(a,b,c,d){return function(){w_.global.clearTimeout(d);w_.net.Jsonp.Df(a,b,w_b);c.apply(undefined,arguments)}};
w_.net.Jsonp.Df=function(a,b,c){w_.global.setTimeout(function(){w_.dom.removeNode(b)},0);if(w_.global[w_.net.Jsonp.CALLBACKS][a])if(c)delete w_.global[w_.net.Jsonp.CALLBACKS][a];else w_.global[w_.net.Jsonp.CALLBACKS][a]=w_.nullFunction};w_.net.Jsonp.lh=function(a,b){for(var c in a)if(!a.hasOwnProperty||a.hasOwnProperty(c))b.sc(c,a[c]);return b};var w_3=function(a){this.a=a};w_3.prototype.b=function(){return this.a};w_3.prototype.d=function(){return"Feed"};w_3.prototype.c=function(a,b){this.a.k(b)};w_3.prototype.j=function(){if(this.Ua=this.a.X("feedItemListDisplay")){var a=this.b().p();a=new w_4(a.feedUrl,this.Ua,{numItemsShow:a.numItemsShow,showItemAuthor:a.showItemAuthor,showItemDate:a.showItemDate,linkTarget:"_self"});a.Tb()}};
w_3.ih={moduleTitle:w_c,feedUrl:w_E.GetRequiredStringFilter(),numItemsShow:w_E.GetNumberFilter(1,5),showItemDate:w_c,showItemAuthor:w_c,securityToken:w_c};w_3.setConfigurationOptions=function(){w_A.ConfigureWidget(w_3.ih)};var w_4=function(a,b,c){this.gd=a;this.Ua=b;this.J=c};w_4.kh=200;w_4.hh="http://ajax.googleapis.com/ajax/services/feed/load";w_4.prototype.Tb=function(){var a=new w_.net.Jsonp(w_4.hh);a.fe(-1);a.send({q:this.gd,num:this.J.numItemsShow,output:"json",v:"1.0"},w_y(this.Xe,this))};
w_4.prototype.Xe=function(a){w_.dom.Cb(this.Ua);if(a.responseStatus==w_4.kh){var b=w_.dom.createElement("ul");this.Ua.appendChild(b);for(var c=0;c<a.responseData.feed.entries.length;c++){var d=a.responseData.feed.entries[c],e=w_.dom.createElement("li");b.appendChild(e);var f=w_.dom.K("a",{href:d.link},d.title);f.target=this.J.linkTarget;e.appendChild(w_.dom.K("span",{"class":"item-title"},f));if(this.J.showItemDate){f=w_.dom.K("span",{"class":"item-date"},"\u00a0-\u00a0"+(new Date(d.publishedDate)).toLocaleDateString());
e.appendChild(f)}if(this.J.showItemAuthor){d=w_.dom.K("span",{"class":"item-author"},"\u00a0-\u00a0"+d.author);e.appendChild(d)}}this.Wc&&this.Wc(a.responseData.feed)}else{this.Ua.appendChild(w_.dom.K("span",w_c,"Error loading feed."));this.Sf&&this.Sf()}};w_4.prototype.$e=function(a){this.Wc=a};w_4.prototype.we=function(){this.Wc=this.Sf=w_c};w_4.prototype.Pc=function(a){this.gd=a};w_4.prototype.Nc=function(a){this.J=a};var _FeedView=w_3;_FeedView._setConfigurationOptions=w_3.setConfigurationOptions;var w_5=function(a,b,c){this.Uh=b;this.qc=c;this.Qg=w_d;this.ie=new w_F("status-message");this.J={linkTarget:"_blank"};this.ra=new w_4(this.gd,a,this.J)};w_5.gh="moduleTitle";w_5.ri="feedUrl";w_5.De="step1";w_5.Ee="step2";w_5.Lb="feedUrl";w_5.prototype.Ae=function(a,b){this.ie.zc();w_E.ClearError(w_5.Lb);if(a){a=document.getElementById(w_5.gh);a.value=b.title;this.Sb(b.title)}this.Me()};w_5.prototype.df=function(){this.ie.zc();w_E.SetError(w_5.Lb,this.qc._invalidFeedUrl);this.Ob()};
w_5.prototype.Ob=function(){w_q(document.getElementById(w_5.De),w_b);w_q(document.getElementById(w_5.Ee),w_d)};w_5.prototype.Me=function(){w_q(document.getElementById(w_5.De),w_d);w_q(document.getElementById(w_5.Ee),w_b)};w_5.prototype.Sb=function(a){this.Uh.innerHTML=a};w_5.prototype.Rc=function(a){this.J.showItemAuthor=a;this.Ub()};w_5.prototype.Sc=function(a){this.J.showItemDate=a;this.Ub()};w_5.prototype.Qc=function(a){this.J.numItemsShow=a;this.Ub()};
w_5.prototype.Ub=function(){this.ra.Nc(this.J);this.ra.we();this.ra.Tb()};w_5.prototype.Lc=function(a,b,c,d){if(!a||a=="")w_E.SetError(w_5.Lb,this.qc._missingFeedUrl);else if(a.length>2083)w_E.SetError(w_5.Lb,this.qc._feedUrlTooLong);else{this.ie.N(this.qc._retrievingFeed);this.bf(a,b,c);this.Qg=d;this.ye(a,w_y(this.te,this))}};w_5.prototype.ye=function(a,b){if(a.indexOf("http://")!=0)a="http://"+a;var c=new w_.net.Jsonp("http://www.google.com/uds/GlookupFeed");c.fe(-1);c.send({q:a,v:"1.0"},b)};
w_5.prototype.te=function(a){if(a.responseStatus==200){document.getElementById("feedUrl").value=a.responseData.url;this.ra.Pc(a.responseData.url);this.ra.$e(w_y(this.Ae,this,this.Qg));this.ra.Tb()}else this.df()};w_5.prototype.bf=function(a,b){this.J=b;this.ra.Pc(a);this.ra.Nc(this.J)};w_5.prototype._GoToStep1=w_5.prototype.Ob;w_5.prototype._RetrieveFeedAndGoToStep2=w_5.prototype.Lc;w_5.prototype._RefreshModuleTitle=w_5.prototype.Sb;w_5.prototype._SetShowItemAuthor=w_5.prototype.Rc;
w_5.prototype._SetShowItemDate=w_5.prototype.Sc;w_5.prototype._SetNumItemsShow=w_5.prototype.Qc;var _FeedConfig=w_5;function w_6(a){this.a=a;this.e=a.r()}w_6.WIDGET_TYPE_NAME="Followers";w_6.prototype.h=function(){return w_d};w_6.prototype.d=function(){return w_6.WIDGET_TYPE_NAME};w_6.prototype.b=function(){return this.a};w_6.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};w_6._openPopup=function(a){a+=a.indexOf("?")>0?"&":"?";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_6.prototype.xa=function(){return w_b};var _FollowersView=w_6;function w_7(a){this.a=a;this.e=a.r()}w_7.prototype.d=function(){return"Gadget"};w_7.prototype.b=function(){return this.a};w_7.prototype.c=function(a,b){this.a.k(b)};w_7.prototype.Ye=function(a){var b=document.getElementById(this.f);if(b)b.style.height=a+"px"};w_7.prototype.Jc=function(){gadgets.rpc.register("resize_iframe",this.Ye);gadgets.rpc.register("set_pref",function(){})};
w_7.prototype.j=function(){if(!w_7.InitializedRpc&&!window.gadgets){var a=document.createElement("script");a.src="http://blogger.gmodules.com/gadgets/js/rpc.js?c=1&container=blogger";a.type="text/javascript";var b=this;a.onload=function(){b.Jc()};a.onreadystatechange=function(){if(this.readyState=="loaded"||this.readyState=="complete")b.Jc()};document.getElementsByTagName("body")[0].appendChild(a);w_7.InitializedRpc=function(){}}};w_7.prototype.xa=function(){return w_b};var _GadgetView=w_7;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_b;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_d}function _SW_hideReaderList(a){var b=document.getElementById("SW_READER_LIST_"+a);a=document.getElementById("SW_READER_LIST_UNDER"+a);b.style.display="none";a.style.visibility="visible"}function w_8(a){this.a=a;this.e=a.r()}w_8.WIDGET_TYPE_NAME="Subscribe";w_8.prototype.h=function(){return w_d};
w_8.prototype.d=function(){return w_8.WIDGET_TYPE_NAME};w_8.prototype.b=function(){return this.a};w_8.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};var _SubscribeView=w_8;function w_9(a){this.a=a}w_9.WIDGET_TYPE_NAME="RelatedPosts";w_9.prototype.d=function(){return w_9.WIDGET_TYPE_NAME};w_9.prototype.b=function(){return this.a};w_9.prototype.h=function(){return w_d};w_9.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};w_9.prototype.Xg=function(){var a=this.a.D("posts");a=a.getElementsByTagName("li");for(var b=0;b<a.length;b++){var c=a[b];if(c.style.display=="none")c.style.display="list-item"}a=this.a.D("show-more");a.style.display="none"};
w_9.prototype.j=function(){var a=this.a.D("show-more");a.onclick=this.Xg.bind(this)};var _RelatedPostsView=w_9;_RelatedPostsView._Configure=_RelatedPostsView.Configure;function w_$(a){this.a=a;this.e=a.r()}w_$.WIDGET_TYPE_NAME="ThumbnailArchive";w_$.prototype.d=function(){return w_$.WIDGET_TYPE_NAME};w_$.prototype.b=function(){return this.a};w_$.prototype.h=function(){return w_d};w_$.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};var _ThumbnailArchiveView=w_$;_ThumbnailArchiveView._Configure=_ThumbnailArchiveView.Configure;if(window.jstiming){window.jstiming.uf={};window.jstiming.di=1;function w_Ra(a,b,c){var d=a.t[b],e=a.t.start;if(!d||!(e||c))return undefined;d=a.t[b][0];e=c!=undefined?c:e[0];return d-e}window.jstiming.report=function(a,b,c){var d="";if(window.jstiming.pt){d+="&srt="+window.jstiming.pt;delete window.jstiming.pt}try{if(window.external&&window.external.tran)d+="&tran="+window.external.tran;else if(window.gtbExternal&&window.gtbExternal.tran)d+="&tran="+window.gtbExternal.tran()}catch(e){}if(a.wh)d+=
"&"+a.wh;var f=a.t,g=f.start,h=[],i=[];for(var k in f)if(k!="start")if(k.indexOf("_")!=0){var j=f[k][1];if(j)f[j]&&i.push(k+"."+w_Ra(a,k,f[j][0]));else g&&h.push(k+"."+w_Ra(a,k))}delete f.start;if(b)for(var l in b)d+="&"+l+"="+b[l];a=[c?c:"http://csi.gstatic.com/csi","?v=3","&s="+(window.jstiming.sn||"blogger")+"&action=",a.name,i.length?"&it="+i.join(","):"",d,"&rt=",h.join(",")].join("");b=new Image;var m=window.jstiming.di++;window.jstiming.uf[m]=b;b.onload=b.onerror=function(){delete window.jstiming.uf[m]};
b.src=a;b=w_c;return a}};w_.events.EventTarget=function(){};w_.inherits(w_.events.EventTarget,w_.Disposable);w_.events.EventTarget.prototype.bd=w_b;w_.events.EventTarget.prototype.Zd=w_c;w_.events.EventTarget.prototype.wd=function(){return this.Zd};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.L=function(){w_.events.EventTarget.wc.L.call(this);w_.events.removeAll(this);this.Zd=w_c};w_I.util={};w_I.util.logging={};w_I.util.logging.PROD_BLOGGER_HOST_URL="www.blogger.com";w_I.util.logging.pg=w_I.util.logging.PROD_BLOGGER_HOST_URL;w_I.util.logging.setHostPort=function(a){w_I.util.logging.pg=a};w_I.util.logging.Cg="/nc";w_I.util.logging.setLoggingPath=function(a){w_I.util.logging.Cg=a};w_I.util.logging.ParamKey={EVENT_TYPE:"e",SOURCE_PAGE:"pg",DURATION:"dur"};w_I.util.logging.EventType={UNLOAD_PAGE:"u",CLICK:"c"};w_I.util.logging.SourcePage={EXPLORE:"be",BLOG:"blog",POST:"post"};
w_I.util.logging.formatId=function(a,b){if(a)return b?a+":"+b:a;return""};w_I.util.logging.Pg=w_d;w_I.util.logging.setReferredFromExplore=function(a){w_I.util.logging.Pg=a};w_I.util.logging.isReferredFromExplore=function(){return w_I.util.logging.Pg};w_I.util.logging.Rh=function(a,b,c){if(a){var d=w_.Uri.parse(a);a=d.tb().toLowerCase();d=d.Ea();if(d==c){if(a==w_I.util.logging.PROD_BLOGGER_HOST_URL)return w_b;if(b.indexOf(w_I.util.logging.PROD_BLOGGER_HOST_URL)<0)return w_b}}return w_d};
w_I.util.logging.log=function(a){var b=w_I.util.logging.pg+w_I.util.logging.Cg;b=w_.Uri.parse(b);var c=w_d;for(var d in a){c=w_b;b.sc(d,a[d])}if(c){(new Image).src=b.toString();return b}return w_c};w_I.util.logging.logWithParameterMap=function(a){if(!w_I.util.logging.Ka[a])return w_c;return w_I.util.logging.log(w_I.util.logging.Ka[a])};w_I.util.logging.Ka={};
w_I.util.logging.addParametersToMap=function(a,b){var c=w_I.util.logging.Ka[a];if(c)for(var d in b){if(c[d])return w_c}else{c={};w_I.util.logging.Ka[a]=c}for(d in b)c[d]=b[d];return w_I.util.logging.Ka[a]};w_I.util.logging.clearParameterMap=function(a){delete w_I.util.logging.Ka[a]};w_I.util.logging.Qb="paramMapPageUnload_InternalUseOnly";w_I.util.logging.addToPageUnloadParameterMap=function(a){return w_I.util.logging.addParametersToMap(w_I.util.logging.Qb,a)};w_I.util.logging.Ta={};
w_I.util.logging.registerEvent=function(a){if(w_I.util.logging.Ta[a])return-1;w_I.util.logging.Ta[a]=w_.now();return w_I.util.logging.Ta[a]};w_I.util.logging.getEventElapse=function(a){if(!w_I.util.logging.Ta[a])return-1;return w_.now()-w_I.util.logging.Ta[a]};w_I.util.logging.clearEvent=function(a){delete w_I.util.logging.Ta[a]};w_I.util.logging.Ac="eventPageLoading_InternalUseOnly";w_I.util.logging.getDurationMillis=function(){return w_I.util.logging.getEventElapse(w_I.util.logging.Ac)};
w_I.util.logging.pageOnBeforeUnload=function(){if(w_I.util.logging.Ka[w_I.util.logging.Qb]==undefined)return w_c;var a={};a[w_I.util.logging.ParamKey.DURATION]=w_I.util.logging.getDurationMillis();w_I.util.logging.addToPageUnloadParameterMap(a);return w_I.util.logging.logWithParameterMap(w_I.util.logging.Qb)};
w_I.util.logging.initialize=function(a,b,c){w_I.util.logging.setHostPort(a);w_I.util.logging.setReferredFromExplore(w_I.util.logging.Rh(b,a,"/explore"));w_I.util.logging.clearEvent(w_I.util.logging.Ac);w_I.util.logging.registerEvent(w_I.util.logging.Ac);w_I.util.logging.clearParameterMap(w_I.util.logging.Qb);c&&w_.events.listen(window,"beforeunload",function(){w_I.util.logging.pageOnBeforeUnload()})};
