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_da=w_d;function w_h(a){try{w_a(a)}catch(b){w_ea(b)}}function w_ea(a,b){b="Javascript exception: "+(b?b:"")+" "+a;if(w_i("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_fa(w_ea.caller);w_ga(b+"\n"+c,1)}var w_ha=/function (\w+)/;function w_ia(a){if(a=w_ha.exec(String(a)))return a[1];return""}
function w_fa(a){try{if(!(w_i("msie")&&!window.opera)&&!(w_i("safari")||w_i("konqueror"))&&w_i("mozilla"))return Error().stack;if(!a)return"";for(var b="- "+w_ia(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_fa(a.caller);return b}catch(e){return"[Cannot get stack trace]: "+e+"\n"}}var w_ja,w_j=w_c,w_k=w_d;
function w_ka(){if((w_j==w_c||w_j.closed)&&!w_k)try{w_k=w_b;w_j=window.open("","debug","width=700,height=500,toolbar=no,resizable=yes,scrollbars=yes,left=16,top=16,screenx=16,screeny=16");w_j.blur();w_j.document.open();w_k=w_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_la(a)}catch(b){}}
function w_ga(a,b){if(w_da){try{var c=(new Date).getTime()-w_ja,d="["+c+"] "+w_ma(a).replace(/\n/g,"<br>")+"<br>";if(b==1){d="<font color=#ff0000><b>Error: "+d+"</b></font>";w_j.focus()}}catch(e){}w_la(d)}else typeof w_l!="undefined"&&w_l(w_ma(a))}function w_la(a){if(w_da)try{w_ka();w_j.document.write(a);w_j.scrollTo(0,1000000)}catch(b){}};function w_i(a){if(a in w_m)return w_m[a];return w_m[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}var w_m={};function w_na(a){if(typeof Error!="undefined")w_a(new Error(a||"Assertion Failed"));else w_a(a)}function w_oa(a){a=a||"Assertion failed";typeof w_h!="undefined"&&w_h(a+"\n");w_na(a)}function w_n(a,b){if(!a){b=b||"Assertion failed";w_oa(b)}}function w_o(a,b){a.style.display=b?"":"none"}function w_pa(a,b){a.style.display=b?"block":"none"}
function w_qa(a,b){a.style.display=b?"inline":"none"}function w_p(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_q(a,b){w_p(a,b)||(a.className+=" "+b)}function w_r(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_ra(a,b){var c=[];for(a=a.firstChild;a;a=a.nextSibling)w_sa(a,b,c);return c}function w_sa(a,b,c){b.select(a)&&c.push(a);for(a=a.firstChild;a;a=a.nextSibling)w_sa(a,b,c)}var w_ta=/&/g,w_ua=/</g,w_va=/>/g;function w_ma(a){if(!a)return"";return a.replace(w_ta,"&amp;").replace(w_ua,"&lt;").replace(w_va,"&gt;").replace(w_wa,"&quot;")}var w_wa=/\"/g;function w_xa(a){return document.getElementById(a)}function w_ya(a){return document.all[a]}var w_za=document.getElementById?w_xa:w_ya;
function w_l(a){try{if(window.parent!=window&&window.parent.log){window.parent.log(window.name+"::"+a);return}}catch(b){}var c=w_za("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_s(){}w_s.raise=function(a){if(typeof Error!="undefined")w_a(new Error(a||"Assertion Failed"));else w_a(a)};w_s.fail=function(a){a=a||"Assertion failed";typeof w_h=="undefined"||w_h(a+"\n");w_s.raise(a)};w_s.isTrue=function(a,b){if(!a){if(b===undefined)b="Assertion failed";w_s.fail(b)}};w_s.equals=function(a,b,c){if(a!=b){if(c===undefined)c="AS_Assert.equals failed: <"+a+"> != <"+b+">";w_s.fail(c)}};
w_s.typeOf=function(a,b,c){if(!(typeof a==b)){if(a||a=="")try{if(b==w_s.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_s.fail(c)}};w_s.TYPE_MAP={string:String,number:Number,"boolean":Boolean};
w_s.numArgs=function(a,b){var c=w_s.numArgs.caller;if(c&&c.arguments.length!=a){if(b===undefined)b=c.name+" expected "+a+" arguments  but received "+c.arguments.length;w_s.fail(b)}};var w_t;function w_Aa(){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_t=c;break}catch(d){}}if(!w_t)w_a(Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed."))}}w_Aa();function w_Ba(a,b,c){a.open("GET",b,w_b);a.onreadystatechange=c;w_Ca(a,w_c)}
function w_Da(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_Ca(a,c)}function w_Ca(a,b){try{a.send(b)}catch(c){w_l("XMLHttpSend failed "+c.toString()+"<br>"+c.stack);w_a(c)}};var w_Ea=0,w_u=0;if("undefined"==typeof w_l)w_l=function(){};function w_v(a){var b=-1;try{b=a.status}catch(c){}return b}function w_Fa(a){var b=w_c;try{b=a.statusText}catch(c){}return b}
function w_Ga(a,b,c,d){if(a.readyState==4)try{var e=w_b;if(d)try{e=!(w_d===d(a))}catch(f){w_l("Message ("+b+") handling failed: "+f);w_a(f)}var g=w_v(a);if(200===g){w_l("Message ("+b+") received after "+((new Date).getTime()-c)+" ms");try{var h=(new Date).getTime();e&&a.responseText.length&&eval(a.responseText);w_l("Message ("+b+") processing took "+((new Date).getTime()-h)+" ms")}catch(i){w_l("Message ("+b+") processing failed: "+i);alert(i+"\n"+i.stack+"\n\n"+a.responseText);w_a(i)}}else 204==g?
w_l("Message ("+b+") received after "+((new Date).getTime()-c)+" ms"):w_l("Message ("+b+") failed with response "+g+" "+w_Fa(a)+" after "+((new Date).getTime()-c)+" ms.")}finally{--w_u}}
function w_Ha(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_Ea,j=w_t?new ActiveXObject(w_t):new XMLHttpRequest,l=(new Date).getTime();b=function(){w_Ga(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_l("Message ("+k+") sent: "+
e+" <tt>"+f+"</tt>.");++w_u;c!==undefined?w_Da(j,a,c.toString(),b):w_Ba(j,a,b)}
function w_Ia(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_Ea,k=w_t?new ActiveXObject(w_t):new XMLHttpRequest,j=(new Date).getTime();b=function(){w_Ga(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_l("Message ("+i+") sent: POST <tt>"+e+"</tt>.");++w_u;w_Da(k,a,d,b)};var w_Ja=this;String.prototype.Fc=function(a){return this.indexOf(a)==0};String.prototype.td=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_Ja);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_w(a,b){var c=a.fd||[];c=c.concat(Array.prototype.slice.call(arguments,2));if(typeof a.cc!="undefined")b=a.cc;if(typeof a.bc!="undefined")a=a.bc;var d=function(){var e=c.concat(Array.prototype.slice.call(arguments));return a.apply(b,e)};d.fd=c;d.cc=b;d.bc=a;return d}Function.prototype.bind=function(a){return w_w.apply(w_c,[this,a].concat(Array.prototype.slice.call(arguments,1)))};Function.prototype.partial=function(){return w_w.apply(w_c,[this,w_c].concat(Array.prototype.slice.call(arguments)))};
Function.prototype.inherits=function(a){var b=function(){};this.Hc=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_x(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.Yf=f;if(!w_x.IsValidDisplayMode(f))w_a("bad display mode: "+f)}else this.Yf=w_x.DISPLAY_MODE_NONE;this.isNew=w_d}w_x.IsValidDisplayMode=function(a){return a==w_x.DISPLAY_MODE_SNIPPET||a==w_x.DISPLAY_MODE_FULL||a==w_x.DISPLAY_MODE_LAYOUT||a==w_x.DISPLAY_MODE_NONE};w_x.DISPLAY_MODE_FULL="displayModeFull";w_x.DISPLAY_MODE_SNIPPET="displayModeSnippet";
w_x.DISPLAY_MODE_LAYOUT="displayModeLayout";w_x.DISPLAY_MODE_NONE="displayModeNone";function w_y(a){this.ai=w_b;this.ze=new w_z(this);this.e=a;this.lb=w_c}w_y.DATA_NAMESPACE_PREFIX="data";w_y.ACTION_NAMESPACE_PREFIX="b";w_y.INTERPRET_ATTR_NAMESPACE_PREFIX="expr";w_y.prototype.Ie=function(){var a=this.e.rootElement;a.innerHTML="";this.pb()==w_x.DISPLAY_MODE_LAYOUT?a.appendChild(this.Vb("layout")):a.appendChild(this.Vb("main"));return a};w_y.prototype.mf=function(a){this.lb=a};w_y.prototype.s=function(){return this.e};
w_y.prototype.Y=function(a){return document.getElementById(this.e.instanceId+"_"+a)};w_y.prototype.M=function(a){var b=this.Y(a);if(!b)w_a("did not find element for id "+a);return b};w_y.prototype.n=function(){return this.e.data};w_y.prototype.$c=function(a){return this.e.data=a};w_y.prototype.Ze=function(){return this.e.isNew};w_y.prototype.kf=function(a){return this.e.isNew=a};
w_y.prototype.Vb=function(a,b){(b=b)||(b=this.n());b||(b={});var c=new w_A;c.nb("widget",this.Oe());c.Be(b);a=this.Rc(a,c,w_A.DEFAULT_DICTIONARY_KEY);return this.Qc(a,document)};w_y.prototype.Oe=function(){var a={};a.type=this.lb.d();a.instanceId=this.e.instanceId;a.sectionId=this.e.sectionId;a.actionUrl=w_B.hd;var b=w_B.$f+"&widgetType="+this.lb.d()+"&widgetId="+this.e.instanceId+"&action="+w_B.EDIT_WIDGET_ACTION;a.quickEditUrl=b;return a};
w_y.prototype.Rc=function(a,b,c){var d=this.Te(a);w_s.isTrue(d!=w_c,"Markup chunk not found for "+a);a=d.varName?d.varName:"";var e=b.n(c);w_s.isTrue(e!=w_c,"No data found for call: "+c);b.nb(a,e);c=this.sb(d.rootNode,b);b.Wc(a);return c};
w_y.prototype.sb=function(a,b){w_s.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.ef(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_y.ACTION_NAMESPACE_PREFIX)c=this.Xe(a,b);else if(a.prefix==w_y.DATA_NAMESPACE_PREFIX)c=this.We(a,b);if(a.hasChildNodes()){for(d=a.ownerDocument.createDocumentFragment();a.hasChildNodes();){e=
a.firstChild;f=this.sb(e,b);d.appendChild(f);e!=f&&a.removeChild(e)}c.appendChild(d)}return c};w_y.prototype.ef=function(a,b){if(a.prefix==w_y.INTERPRET_ATTR_NAMESPACE_PREFIX){var c=a.ownerDocument.createAttribute(a.localName||a.baseName);a=this.ze.Nc(a.nodeValue,b);c.nodeValue=a;return c}return a};w_y.prototype.Xe=function(a,b){var c=a.localName||a.baseName;a=this.Yc(c,a,b);return this.uf(a)};
w_y.prototype.uf=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_y.prototype.Sb=function(a,b){a=this.tb(a);return b.n(a[1])};
w_y.prototype.We=function(a,b){w_s.isTrue(a!=w_c,"Null element");w_s.isTrue(b!=w_c,"Null data");if(a.prefix!=w_y.DATA_NAMESPACE_PREFIX)return a;b=this.Sb(a.tagName,b);b=""+(b==w_c?"":b);var c=document.createElement("DIV");c.innerHTML=b;b=this.qb(c);return this.Qc(b,a.ownerDocument,w_b)};w_y.prototype.tb=function(a){a=a.split(":",2);a.length==1&&a.unshift("");a[0]=a[0].toLowerCase();return a};
w_y.prototype.Yc=function(a,b,c){var d="_WidgetBinding_"+a;if(this.ze[d])return this.ze[d](b,c);if(this.lb[d])return this.lb[d](b,c);w_s.isTrue(w_d,"could not find binding "+a);return w_c};
w_y.prototype.df=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_s.raise("Unable to find XML parser");return b.documentElement};
w_y.prototype.qb=function(a){for(var b=a.ownerDocument.createDocumentFragment();a.hasChildNodes();)b.appendChild(a.firstChild);return b};
w_y.prototype.Qc=function(a,b,c){w_s.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.qb(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_s.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_y.prototype.ra=function(a,b,c,d){w_B.ra(a,b,this.e.instanceId,this.lb.d(),c,d)};w_y.prototype.pb=function(){return this.e.Yf};w_y.prototype.Te=function(a){if(!a)return w_c;var b=w_B.ue[a];b||(b=this.e.markups[a]);if(!b)return w_c;if(!b.parsedTemplate||!b.parsedTemplate.ownerDocument)this.cf(b);b.parsedTemplate||w_s.raise("Parsing failed for "+a);b.rootNode=b.parsedTemplate.cloneNode(w_b);return b};
w_y.prototype.cf=function(a){if(!a)return w_c;var b="<?xml version='1.0'?><markuproot xmlns:"+w_y.DATA_NAMESPACE_PREFIX+"='urn:ns1'  xmlns:"+w_y.ACTION_NAMESPACE_PREFIX+"='urn:ns2' xmlns:"+w_y.INTERPRET_ATTR_NAMESPACE_PREFIX+"='urn:ns3'  xmlns='http://www.w3.org/1999/xhtml'>"+a.template+"</markuproot>\n";b=this.df(b);a.parsedTemplate=this.qb(b);return a};
w_y.ConfigureWidget=function(a,b){b||(b="config");var c=document.forms[b].widgetId.value,d=document.forms[b].widgetType.value;a=w_C.ProcessForm(document.forms[b],a);a.success&&w_B.SaveWidget(a.values,c,d)};function w_B(){}w_B.Init=function(a,b,c){w_B.mb={};w_B.$f=a;w_B.hd=b;w_B.Vi=c;w_B.Rd=[];if(!w_B.ue)w_B.ue={}};w_B.TrapClicks=function(a){a=w_B.CreateTransparentClickTrappingDiv(a.document);document.body.appendChild(a)};w_B._SetupPreview=function(){w_B.TrapClicks(window)};
w_B.NEW_WIDGET_WINDOW_NAME="chooseWidget";w_B.CHOOSE_WIDGET_ACTION="chooseWidget";w_B.EDIT_WIDGET_ACTION="editWidget";w_B.GetCallbackUrl=function(){return w_B.hd};w_B.SetPageActionUrl=function(a,b){w_B.ie=a;w_B.ti=b};w_B.GetPageActionUrl=function(){return w_B.ie};w_B.SetWidgetRefreshUrl=function(a){w_B.Pi=a};w_B.GetWidgetRefreshUrl=function(){return w_B.Pi};w_B._SetDataContext=function(a){w_B.Rd=a};w_B._SetSystemMarkup=function(a){w_B.ue=a};
w_B._RegisterWidget=function(a,b,c){var d=new w_y(b);c||(c=window[a]);a=new c(d);d.mf(a);w_B.mb[b.instanceId]=a;w_B.DisplayWidget(a);return a};w_B._RegisterNewWidget=function(a,b,c){a=w_B._RegisterWidget(a,b,c);b=a.b();b.kf(w_b);return a};w_B.DisplayWidget=function(a,b){var c=a.b();if(!(c.pb()==w_x.DISPLAY_MODE_NONE)){if(b||a.h&&a.h())c.Ie();c.pb()==w_x.DISPLAY_MODE_FULL&&a.j&&a.j();a.b().ai=w_d}};w_B.GetWidget=function(a){if(w_B.mb)return w_B.mb[a];return w_c};
w_B._PopupPaneFromParams=function(a,b,c,d,e){var f="";if(d)f="&widgetId="+d;a=w_B.$f+"&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_B._PopupConfig=function(a){var b=a.getAttribute("id"),c=w_B.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_B._PopupPaneFromParams(w_B.EDIT_WIDGET_ACTION,a.parentNode.getAttribute("id"),a.getAttribute("widgetType"),b,d);if(c)c.b().configWin=a;return w_d};
w_B._PopupToolbox=function(a){w_B._PopupPaneFromParams(w_B.CHOOSE_WIDGET_ACTION,a.parentNode.getAttribute("id"),a.getAttribute("widgetType"),a.getAttribute("id"),w_B.NEW_WIDGET_WINDOW_NAME);return w_d};w_B.DeleteWidgetFromPage=function(a,b,c){w_B.N(c,c.LayoutsMessages.DELETING,w_B.STATUS_MESSAGE_PENDING_CLASS);w_B.RunPageAction("delete",{},a,b)};w_y.prototype.hf=function(a,b){w_B.N(b,b.LayoutsMessages.SAVING,w_B.STATUS_MESSAGE_PENDING_CLASS);this.ra("configure",a)};
w_B.SaveNewWidget=function(a,b,c){var d=document.getElementById("sectionId").value;a.sectionid=d;w_B.N(c,c.LayoutsMessages.SAVING,w_B.STATUS_MESSAGE_PENDING_CLASS);w_B.RunPageAction("addnew",a,"",b)};w_B.SaveWidget=function(a,b,c){w_n(c!=w_c,"no type");var d=_WidgetManager._GetWidget(b);w_n(d!=w_c,"no widget for "+b);d.b().Ze()?w_B.SaveNewWidget(a,c,window):d.a.hf(a,window)};w_B._RunInitialAction=function(a){(a=w_B._GetWidget(a))&&a.b().ra("initial")};
w_B.ra=function(a,b,c,d,e,f){w_B.RunAction(w_B.hd,a,b,c,d,e,f)};w_B.RunPageAction=function(a,b,c,d,e){if(w_B.ie){b.pageToken=w_B.ti;w_B.RunAction(w_B.ie,a,b,c,d,e)}else w_l("RunPageAction error: pageActionUrl_ is undefined.  widgetid: "+c+" action: "+a)};
w_B.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_Ha(a,b,undefined,f||new w_Ka):w_Ia(a,b,f||new w_Ka)};w_B.SetConfigWin=function(a,b){if(a)if(a=w_B.GetWidget(a))a.b().configWin=b};
w_B.CloseIfNoPendingMessages=function(a,b){w_u==0?window.setTimeout(function(){a.close()},b):window.setTimeout(function(){w_B.CloseIfNoPendingMessages(a,b)},200)};w_B._KillPopupDelay=function(a,b){if(a){w_B.CloseIfNoPendingMessages(a,100);w_B.UpdateEditorStatus(a,b)}};w_B.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_B.c=function(a,b,c){var d=w_B.mb[a];if(c.errors!=w_c){(a=d?d.b().configWin:w_c)||(a=window);w_B.N(a,c.errors,w_B.STATUS_MESSAGE_BAD_CLASS);d&&d.za?d.za(b,c):w_B.za(c,a)}else{w_n(d!=w_c,"no widget for "+a);if(b=="initial"){d.b().$c(c);w_B.DisplayWidget(d,w_b)}else d.c(b,c)}};w_B.za=function(a,b){a=a["error-details"];for(var c in a)w_C.SetError(c,a[c],b.document)};
w_y.prototype.k=function(a){w_B.N(this.configWin,a["status-message"],w_B.STATUS_MESSAGE_GOOD_CLASS);w_B.FinishPopupWork(this.e.instanceId,"_OnWidgetConfigured",function(b){window.opener._WidgetManager._OnWidgetConfigured(b,a)})};w_B._OnWidgetConfigured=function(a,b){if(window.parent&&window.parent.editor&&b)w_B.OnWidgetConfiguredWithData(a,b);else{b=w_B.GetWidget(a);b.Ba&&b.Ba()?window.location.replace(window.location.href):w_B._RunInitialAction(a)}};
w_B.OnWidgetConfiguredWithData=function(a,b){a=w_B._GetWidget(a);a.b().$c(b.data);w_B.DisplayWidget(a,w_b);a.b().configWin=w_c};
w_B.HandlePageActionResult=function(a,b,c){var d=c["status-message"];if(c.errors!=w_c){w_B.N(window,c.errors,w_B.STATUS_MESSAGE_BAD_CLASS);w_B.za(c,window)}else if(b=="addnew"){var e;if(w_B.IsOpenerReachable(window)){if(window.opener&&window.opener.parent)e=window.opener.parent;e&&e.editor&&e.editor._HandleAddNewWidget(c)}w_B.N(window,d,w_B.STATUS_MESSAGE_GOOD_CLASS);if(window.opener==w_c)window.location="/rearrange?blogID="+c.blogID;else e&&e._WidgetManager?e._WidgetManager._KillPopupDelay(window):
w_B.CloseIfNoPendingMessages(window,100)}else{c=w_B.mb[a];w_n(c!=w_c);if(b=="delete"){w_B.N(c.b().configWin,d,w_B.STATUS_MESSAGE_GOOD_CLASS);w_B.FinishPopupWork(a,"_OnWidgetDeleted")}}};w_B._OnWidgetDeleted=function(a){var b=w_B.GetWidget(a);if(b){if(b.b().pb()==w_x.DISPLAY_MODE_LAYOUT)top.editor._HandleDeleteWidget(b.b().e.rootElement);else{b=b.b().e.rootElement;b.parentNode.removeChild(b)}delete w_B.mb[a]}};
w_B.FinishPopupWork=function(a,b,c){if(w_B.IsOpenerReachable(window)){var d=window.opener;c||(c=d._WidgetManager[b]);c(a);d._WidgetManager?d._WidgetManager._KillPopupDelay(window,a):w_B.CloseIfNoPendingMessages(window,100)}else{a=w_B.GetWidgetRefreshUrl()+"?widgetId="+a;a+="&func="+encodeURIComponent(b);window.location.replace(a)}};w_B.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_B.STATUS_MESSAGE_GOOD_CLASS="status-msg status-msg-yellow-on-white";
w_B.STATUS_MESSAGE_PENDING_CLASS=w_B.STATUS_MESSAGE_GOOD_CLASS;w_B.STATUS_MESSAGE_BAD_CLASS=w_B.STATUS_MESSAGE_GOOD_CLASS;w_B.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_B.MaybePrependHttp=function(a){if(a&&a.length>0&&a.substring(0,4)!="http")a="http://"+a;return a};
w_B.GetFirstElementInElementWithClass=function(a,b){if(w_p(a,b))return a;if(a)for(var c=a.childNodes.length,d=0;d<c;d++){var e=w_B.GetFirstElementInElementWithClass(a.childNodes.item(d),b);if(e)return e}return w_c};
w_B.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_B.Tc;b.onmousedown=w_B.Tc;b.onmouseup=w_B.Tc;b.style.background="white";b.style.filter="alpha(opacity=1)";b.style.opacity=".01";b.innerHTML="&nbsp;";return b};
w_B.Tc=function(a){a=a;if(!a)a=window.event;if(a){a.cancelBubble=w_b;a.stopPropagation&&a.stopPropagation()}return w_d};function w_z(a){this.ha=a}w_z.prototype._WidgetBinding_include=function(a,b){var c=a.getAttribute("name");a=a.getAttribute("data");return this.ha.Rc(c,b,a)};w_z.prototype._WidgetBinding_call=w_z.prototype._WidgetBinding_include;
w_z.prototype._WidgetBinding_loop=function(a,b){var c=a.getAttribute("values");c=this.ha.tb(c);c=this.ha.Sb(c[1],b);var d=a.getAttribute("var");d||w_s.raise("Invalid var= attribute on b:loop");var e=this.ha.qb(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.nb(d,g);g=this.ha.sb(h,b);b.Wc(d);a.appendChild(g)}return a};
w_z.prototype._WidgetBinding_if=function(a,b){for(var c=this.Nc(a.getAttribute("cond"),b),d=a.ownerDocument.createDocumentFragment(),e=w_d;a.firstChild!=w_c;){var f=a.firstChild;if("else"==this.ha.tb(f.nodeName)[1].toLowerCase())e=w_b;else if(c&&!e||!c&&e){var g=this.ha.sb(f,b);d.appendChild(g)}f.parentNode==a&&a.removeChild(f)}return d};
w_z.prototype.Nc=function(a,b){w_s.isTrue(a!=w_c,"null expression");b=this.of(a,b);try{var c=eval(b);return c}catch(d){w_l("expression=["+a+"] error="+d+" eval=["+b+"]")}return""};
w_z.prototype.of=function(a,b){for(var c=new RegExp("\\b(?:"+w_y.DATA_NAMESPACE_PREFIX+"|"+w_y.ACTION_NAMESPACE_PREFIX+"):[^ ]*\\b","gi"),d="",e=0,f=c.exec(a);f;){var g=f[0];if(!this.Ye(a,c.lastIndex)){var h,i=this.ha.tb(g);if(i[0]==w_y.ACTION_NAMESPACE_PREFIX)h=this.ha.Yc(i[1],w_c,b);else if(i[0]==w_y.DATA_NAMESPACE_PREFIX){(h=this.ha.Sb(g,b))||(h="");h=h+""}else w_s.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_z.prototype.Ye=function(a,b){w_s.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_C(){}w_C.ERROR_MSG_ACTIVE_CLASS="errorbox-bad errormsg";w_C.ERROR_MSG_INACTIVE_CLASS="errorbox-good";
w_C.ProcessForm=function(a,b){var c={};c.success=w_b;c.values={};c.errors={};for(var d in b){var e=w_C.GetFieldValue(a[d]),f=b[d];w_C.ClearError(d);if(f)if(f=f(e)){w_C.SetError(d,f);c.success=w_d;c.errors[d]=f}c.values[d]=e}return c};
w_C.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_C.Se=function(a,b){b||(b=document);a="errormessage_"+a;return b.getElementById(a)};w_C.ClearError=function(a){if(a=w_C.Se(a)){a.innerHTML="";a.className=w_C.ERROR_MSG_INACTIVE_CLASS}};
w_C.SetError=function(a,b,c){if(a=w_C.Se(a,c)){a.innerHTML=b;a.className=w_C.ERROR_MSG_ACTIVE_CLASS}};w_C.GetRequiredStringFilter=function(){return function(a){a=a.replace(/^\s+/,"").replace(/\s+$/,"");if(a.length==0)return LayoutsMessages.FIELD_CANNOT_BE_BLANK;return undefined}};
w_C.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_A(){this.O=[];for(var a=0;a<w_B.Rd.length;++a){var b=w_B.Rd[a];this.O[this.O.length]=b}}w_A.DEFAULT_DICTIONARY_KEY="";w_A.MAX_DICTIONARY_DEPTH=50;w_A.SEPARATOR_CHAR=".";
w_A.prototype.nb=function(a,b){this.O.length>=w_A.MAX_DICTIONARY_DEPTH&&w_s.raise("Cannot add another dictionary: "+a);a.indexOf(w_A.SEPARATOR_CHAR)>-1&&w_s.raise("Cannot add dictionary name containing '.': "+a);var c={};c.name=a;c.data=b;this.O[this.O.length]=c};w_A.prototype.Wc=function(a){var b=this.O[this.O.length-1];b.name!=a&&w_s.raise("Dictionary "+a+" is not the last one, and can't be deleted: "+b.name);this.O.splice(this.O.length-1,1)};
w_A.prototype.Tb=function(a){if(a==w_c)a=w_A.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_A.prototype.Oc=function(){return this.Tb(w_A.DEFAULT_DICTIONARY_KEY)};w_A.prototype.Be=function(a){this.nb(w_A.DEFAULT_DICTIONARY_KEY,a)};
w_A.prototype.n=function(a){var b=this.Tb(a);if(b)return b;var c=a.split(w_A.SEPARATOR_CHAR);if(c.length==1){b=this.Oc();return b[a]}b=this.Tb(c[0]);a=0;if(b)a=1;else b=this.Oc();for(a=a;a<c.length;a++){if(b==w_c)return w_c;b=b[c[a]]}return b};function w_La(){}w_La.prototype.c=function(){w_a(new Error("Unimplemented"))};var _WidgetManager=w_B;_WidgetManager.prototype=w_B.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_x;_WidgetInfo.prototype=w_x.prototype;function w_D(a){this.Si=w_d;this.Gc=a;this.jc=window.document}w_D.DISABLED_BUTTON_CLASS="disabled-button";w_D.HIDDEN_MESSAGE_CLASS="status-msg-hidden";w_D.prototype.Lc=function(){this.jc.getElementById(this.Gc+"-inner").innerHTML="&nbsp;";w_q(this.jc.getElementById(this.Gc),w_D.HIDDEN_MESSAGE_CLASS)};w_D.prototype.N=function(a){this.jc.getElementById(this.Gc+"-inner").innerHTML=a;w_r(this.jc.getElementById(this.Gc),w_D.HIDDEN_MESSAGE_CLASS)};function w_Ka(a){return function(b){var c=w_v(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_E(a){this.a=a}w_E.WIDGET_TYPE_NAME="AdSense";w_E.prototype.d=function(){return w_E.WIDGET_TYPE_NAME};w_E.prototype.b=function(){return this.a};w_E.prototype.c=function(a,b){this.a.k(b)};w_E.prototype.Ba=function(){return w_b};var _AdSenseView=w_E;function w_F(a){this.a=a;this.e=a.s()}w_F.WIDGET_TYPE_NAME="BlogArchive";w_F.POST_LIST_CLASS="posts";w_F.INTERVAL_EXPANDED_VALUE="expanded";w_F.INTERVAL_COLLAPSED_VALUE="collapsed";w_F.LOADING_MSG="loading...";w_F.POST_COUNT_CLASS="post-count";w_F.POST_COUNT_LINK_CLASS="post-count-link";w_F.MENU_ROOT_ID="ArchiveMenu";w_F.TOGGLE_OPEN_CLASS="toggle-open";w_F.Mh="&#9660;&nbsp;";w_F.cg="&#9658;&nbsp;";w_F.prototype.d=function(){return w_F.WIDGET_TYPE_NAME};w_F.prototype.b=function(){return this.a};
w_F.prototype.h=function(){return w_d};w_F.prototype.c=function(a,b){if(a=="configure")this.a.k(b);else if(a=="getTitles")this.tf(b);else{this.widgetInfo.data=b;w_B.DisplayWidget(this)}};
w_F.prototype.j=function(){var a={};a.select=function(e){return e&&w_p(e,"toggle")};var b=this.a.Y("ArchiveList");if(b){b=w_ra(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.qf.bind(this);if(c)d.style.color=c}if(c=this.a.Y(w_F.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.Ue.bind(this)}if(this.b().n().languageDirection==
"rtl")w_F.cg="&#9668;&nbsp;"}};w_F.prototype.Ue=function(){var a=this.a.Y(w_F.MENU_ROOT_ID);if(a)if(!(a.value==""))window.location.href=a.value};
w_F.prototype.qf=function(a){a=a||window.event;var b=a.currentTarget||a.srcElement;if(b&&!w_p(b,"toggle"))b=b.parentNode;a=w_B.GetFirstElementInElementWithClass(b,"zippy");b=b.parentNode;if(w_p(b,w_F.INTERVAL_EXPANDED_VALUE)){w_r(b,w_F.INTERVAL_EXPANDED_VALUE);w_q(b,w_F.INTERVAL_COLLAPSED_VALUE);a.innerHTML=w_F.cg;w_r(a,w_F.TOGGLE_OPEN_CLASS);return w_d}else{w_r(b,w_F.INTERVAL_COLLAPSED_VALUE);w_q(b,w_F.INTERVAL_EXPANDED_VALUE);a.innerHTML=w_F.Mh;w_q(a,w_F.TOGGLE_OPEN_CLASS)}if(this.af(b)){a=this.Pc(b);
if(!a){a=document.createElement("UL");b.appendChild(a);w_q(a,w_F.POST_LIST_CLASS)}a.appendChild(document.createTextNode(w_F.LOADING_MSG));this.a.ra("getTitles",{path:this.Qe(b)},w_c,"GET")}return w_d};w_F.prototype.Pc=function(a){return w_B.GetFirstElementInElementWithClass(a,w_F.POST_LIST_CLASS)};w_F.prototype.Qe=function(a){a=w_B.GetFirstElementInElementWithClass(a,w_F.POST_COUNT_LINK_CLASS);return a.href};
w_F.prototype.Re=function(a){a=w_B.GetFirstElementInElementWithClass(a,w_F.POST_COUNT_CLASS);return parseInt(a.innerHTML.match(/\d+/),10)};w_F.prototype.tf=function(a){var b=a.path;b=this.Pc(this.Pe(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_F.prototype.Pe=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_F.prototype.af=function(a){var b=a.getElementsByTagName("UL");if(!(b.length>0&&!w_p(b[0],"posts"))){b=this.Re(a);a=a.getElementsByTagName("LI");a=a.length;return a<b}};var _BlogArchiveView=w_F;var w_=w_||{};w_.global=this;w_.DEBUG=w_b;w_.LOCALE="en_US";w_.kc=w_c;w_.provide=function(a){w_.dg(a)};w_.dg=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.ji||(a.ji=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_.xi=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_.Wi=function(a,b){return a instanceof Object?Object.prototype.propertyIsEnumerable.call(a,b):w_.xi(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_.ya))return a[w_.ya];a[w_.ya]||(a[w_.ya]=++w_.gi);return a[w_.ya]};w_.removeHashCode=function(a){"removeAttribute"in a&&a.removeAttribute(w_.ya);try{delete a[w_.ya]}catch(b){}};w_.ya="closure_hashCode_"+Math.floor(Math.random()*2147483648).toString(36);w_.gi=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=a.fd;if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);c&&d.unshift.apply(d,c);c=d}b=a.cc||b;a=a.bc||a;var e=b||w_.global;d=c?function(){var f=Array.prototype.slice.call(arguments);f.unshift.apply(f,c);return a.apply(e,f)}:function(){return a.apply(e,arguments)};d.fd=c;d.cc=b;d.bc=a;return d};w_.partial=function(a){var b=Array.prototype.slice.call(arguments,1);b.unshift(a,w_c);return w_.bind.apply(w_c,b)};w_.mixin=function(a,b){for(var c in b)a[c]=b[c]};
w_.now=Date.now||function(){return(new Date).getTime()};w_.globalEval=function(a){if(w_.global.execScript)w_.global.execScript(a,"JavaScript");else if(w_.global.eval){if(w_.kc==w_c){w_.global.eval("var _et_ = 1;");if(typeof w_.global._et_!="undefined"){delete w_.global._et_;w_.kc=w_b}else w_.kc=w_d}if(w_.kc)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_.od&&a in w_.od?w_.od[a]:a};w_.setCssNameMapping=function(a){w_.od=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_.dg(a,b,c)};w_.exportProperty=function(a,b,c){a[b]=c};w_.inherits=function(a,b){function c(){}c.prototype=b.prototype;a.Hc=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.z=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.z=function(){return!this.area()};
w_.math.Size.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};w_.math.Size.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};w_.math.Size.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};w_.math.Size.prototype.scale=function(a){this.width*=a;this.height*=a;return this};w_.object={};w_.object.forEach=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};w_.object.filter=function(a,b,c){var d={};for(var e in a)if(b.call(c,a[e],e,a))d[e]=a[e];return d};w_.object.map=function(a,b,c){var d={};for(var e in a)d[e]=b.call(c,a[e],e,a);return d};w_.object.some=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return w_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.ia(a,b)};w_.object.o=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.u=function(a,b){return b in a};w_.object.ia=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.z=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.bf=["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.bf.length;e++){b=w_.object.bf[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.Fc=function(a,b){return a.indexOf(b)==0};w_.string.td=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.z=function(a){return/^[\s\xa0]*$/.test(a)};w_.string.isEmptySafe=function(a){return w_.string.z(w_.string.makeSafe(a))};w_.string.isBreakingWhitespace=function(a){return!/[^\t\n\r ]/.test(a)};w_.string.isAlpha=function(a){return!/[^a-zA-Z]/.test(a)};
w_.string.isNumeric=function(a){return!/[^0-9]/.test(a)};w_.string.isAlphaNumeric=function(a){return!/[^a-zA-Z0-9]/.test(a)};w_.string.isSpace=function(a){return a==" "};w_.string.isUnicodeChar=function(a){return a.length==1&&a>=" "&&a<="~"||a>="\u0080"&&a<="\ufffd"};w_.string.stripNewlines=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};w_.string.canonicalizeNewlines=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")};w_.string.normalizeWhitespace=function(a){return a.replace(/\xa0|\s/g," ")};
w_.string.normalizeSpaces=function(a){return a.replace(/\xa0|[ \t]+/g," ")};w_.string.trim=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};w_.string.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};w_.string.trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};w_.string.caseInsensitiveCompare=function(a,b){a=String(a).toLowerCase();b=String(b).toLowerCase();return a<b?-1:a==b?0:1};w_.string.Xg=/(\.\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.Xg),d=b.toLowerCase().match(w_.string.Xg),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.ei=/^[a-zA-Z0-9\-_.!~*'()]*$/;
w_.string.urlEncode=function(a){a=String(a);if(!w_.string.ei.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.zf,"&amp;").replace(w_.string.Sg,"&lt;").replace(w_.string.wg,"&gt;").replace(w_.string.eh,"&quot;");else{if(!w_.string.Ih.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(w_.string.zf,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(w_.string.Sg,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(w_.string.wg,"&gt;");if(a.indexOf('"')!=-1)a=a.replace(w_.string.eh,"&quot;");return a}};w_.string.zf=/&/g;w_.string.Sg=/</g;w_.string.wg=/>/g;
w_.string.eh=/\"/g;w_.string.Ih=/[&<>\"]/;w_.string.unescapeEntities=function(a){if(w_.string.contains(a,"&"))return"document"in w_.global&&!w_.string.contains(a,"<")?w_.string.Li(a):w_.string.Mi(a);return a};w_.string.Li=function(a){var b=w_.global.document.createElement("a");b.innerHTML=a;b[w_.string.$e]&&b[w_.string.$e]();a=b.firstChild.nodeValue;b.innerHTML="";return a};
w_.string.Mi=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.$e="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.ae={"\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.ae)return w_.string.ae[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.ae[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.ld(c,l)||w_.string.ld(k[2].length==0,j[2].length==
0)||w_.string.ld(k[2],j[2])}while(c==0)}return c};w_.string.ld=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};w_.string.Eh=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.Eh}return b};w_.string.Oi=w_.now();w_.string.createUniqueString=function(){return"goog_"+w_.string.Oi++};w_.string.toNumber=function(a){var b=Number(a);if(b==0&&w_.string.z(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.xa=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.db=function(){w_.userAgent.vb=w_d;w_.userAgent.Uf=w_d;w_.userAgent.hc=w_d;w_.userAgent.Wf=w_d;w_.userAgent.qd=w_d;w_.userAgent.ub=w_d;var a;if(!w_.userAgent.xa&&(a=w_.userAgent.getUserAgentString())){var b=w_.userAgent.getNavigator();w_.userAgent.vb=a.indexOf("Opera")==0;w_.userAgent.Uf=!w_.userAgent.vb&&a.indexOf("MSIE")!=-1;w_.userAgent.hc=!w_.userAgent.vb&&a.indexOf("WebKit")!=-1;w_.userAgent.Wf=w_.userAgent.hc&&a.indexOf("Mobile")!=-1;w_.userAgent.qd=!w_.userAgent.vb&&!w_.userAgent.hc&&
b.product=="Gecko";w_.userAgent.ub=w_.userAgent.qd&&b.vendor=="Camino"}};w_.userAgent.xa||w_.userAgent.db();w_.userAgent.OPERA=w_.userAgent.xa?w_.userAgent.ASSUME_OPERA:w_.userAgent.vb;w_.userAgent.IE=w_.userAgent.xa?w_.userAgent.ASSUME_IE:w_.userAgent.Uf;w_.userAgent.GECKO=w_.userAgent.xa?w_.userAgent.ASSUME_GECKO||w_.userAgent.ASSUME_CAMINO:w_.userAgent.qd;w_.userAgent.CAMINO=w_.userAgent.xa?w_.userAgent.ASSUME_CAMINO:w_.userAgent.ub;
w_.userAgent.WEBKIT=w_.userAgent.xa?w_.userAgent.ASSUME_WEBKIT||w_.userAgent.ASSUME_MOBILE_WEBKIT:w_.userAgent.hc;w_.userAgent.MOBILE=w_.userAgent.ASSUME_MOBILE_WEBKIT||w_.userAgent.Wf;w_.userAgent.SAFARI=w_.userAgent.WEBKIT;w_.userAgent.Zh=function(){var a=w_.userAgent.getNavigator();return a&&a.platform||""};w_.userAgent.PLATFORM=w_.userAgent.Zh();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.rb=w_.userAgent.ASSUME_MAC||w_.userAgent.ASSUME_WINDOWS||w_.userAgent.ASSUME_LINUX||w_.userAgent.ASSUME_X11;w_.userAgent.hi=function(){w_.userAgent.Wh=w_.string.contains(w_.userAgent.PLATFORM,"Mac");w_.userAgent.Xh=w_.string.contains(w_.userAgent.PLATFORM,"Win");w_.userAgent.Vh=w_.string.contains(w_.userAgent.PLATFORM,"Linux");w_.userAgent.Yh=!!w_.userAgent.getNavigator()&&w_.string.contains(w_.userAgent.getNavigator().appVersion||"","X11")};w_.userAgent.rb||w_.userAgent.hi();
w_.userAgent.MAC=w_.userAgent.rb?w_.userAgent.ASSUME_MAC:w_.userAgent.Wh;w_.userAgent.WINDOWS=w_.userAgent.rb?w_.userAgent.ASSUME_WINDOWS:w_.userAgent.Xh;w_.userAgent.LINUX=w_.userAgent.rb?w_.userAgent.ASSUME_LINUX:w_.userAgent.Vh;w_.userAgent.X11=w_.userAgent.rb?w_.userAgent.ASSUME_X11:w_.userAgent.Yh;
w_.userAgent.$h=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.$h();w_.userAgent.compare=function(a,b){return w_.string.compareVersions(a,b)};w_.userAgent.Mg={};
w_.userAgent.isVersion=function(a){return w_.userAgent.Mg[a]||(w_.userAgent.Mg[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.yf(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.jh(b,c);a.className=b.join(" ");return c};
w_.dom.classes.yf=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.jh=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.jh(d,b);if(w_.isString(c)&&!w_.array.contains(d,c))d.push(c);else w_.isArray(c)&&w_.dom.classes.yf(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.yh=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.w(a)):w_.dom.Th||(w_.dom.Th=new w_.dom.DomHelper)};w_.dom.Ga=function(){return document};
w_.dom.xb=function(a){return w_.isString(a)?document.getElementById(a):a};w_.dom.Kc=w_.dom.xb;w_.dom.sa=function(a,b,c){return w_.dom.pg(document,a,b,c)};
w_.dom.pg=function(a,b,c,d){d=d||a;b=b&&b!="*"?b.toLowerCase():"";if(d.querySelectorAll&&(b||c)&&(!w_.userAgent.WEBKIT||w_.dom.eb(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.X=w_.dom.sa;w_.dom.Nb=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.Ge)a.setAttribute(w_.dom.Ge[d],c);else a[d]=c})};w_.dom.Ge={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder",type:"type"};
w_.dom.Cb=function(a){return w_.dom.vg(a||window)};w_.dom.vg=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.eb(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.mg=function(){return w_.dom.ng(window)};w_.dom.ng=function(a){var b=a.document,c=0;if(b){a=w_.dom.vg(a).height;c=b.body;var d=b.documentElement;if(w_.dom.eb(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).ab()};w_.dom.ab=function(){return w_.dom.og(document)};
w_.dom.og=function(a){a=w_.dom.Bd(a);return new w_.math.Coordinate(a.scrollLeft,a.scrollTop)};w_.dom.Ad=function(){return w_.dom.Bd(document)};w_.dom.Bd=function(a){return!w_.userAgent.WEBKIT&&w_.dom.eb(a)?a.documentElement:a.body};w_.dom.cb=function(a){return a?w_.dom.Qd(a):window};
w_.dom.Qd=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.r=function(){return w_.dom.Pf(document,arguments)};
w_.dom.Pf=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.Nb(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.zc(c)?
w_.array.forEach(w_.dom.isNodeList(c)?w_.array.clone(c):c,f):f(c)}}return e};w_.dom.Ae=w_.dom.r;w_.dom.createElement=function(a){return document.createElement(a)};w_.dom.createTextNode=function(a){return document.createTextNode(a)};w_.dom.Eg=function(a){return w_.dom.Fg(document,a)};w_.dom.Fg=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.kg=function(){return w_.dom.pa()?"CSS1Compat":"BackCompat"};w_.dom.pa=function(){return w_.dom.eb(document)};w_.dom.eb=function(a){if(w_.dom.yh)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.Hb=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};w_.dom.yc=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b)};w_.dom.Zd=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.yd=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.Cd=function(a){return w_.dom.sc(a.firstChild,w_b)};w_.dom.Ed=function(a){return w_.dom.sc(a.lastChild,w_d)};w_.dom.Gd=function(a){return w_.dom.sc(a.nextSibling,w_b)};w_.dom.Ld=function(a){return w_.dom.sc(a.previousSibling,w_d)};
w_.dom.sc=function(a,b){for(;a&&a.nodeType!=w_.dom.NodeType.ELEMENT;)a=b?a.nextSibling:a.previousSibling;return a};w_.dom.zc=function(a){return w_.isObject(a)&&a.nodeType>0};w_.dom.xh=w_.userAgent.WEBKIT&&w_.userAgent.isVersion("522");
w_.dom.contains=function(a,b){if(typeof a.contains!="undefined"&&!w_.dom.xh&&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.Of(a,b);if(!c&&w_.dom.contains(e,b))return-1*w_.dom.Nf(a,b);if(!d&&w_.dom.contains(f,a))return w_.dom.Nf(b,a);return(c?a.sourceIndex:
e.sourceIndex)-(d?b.sourceIndex:f.sourceIndex)}}d=w_.dom.w(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.Nf=function(a,b){var c=a.parentNode;if(c==b)return-1;for(b=b;b.parentNode!=c;)b=b.parentNode;return w_.dom.Of(b,a)};w_.dom.Of=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.w=function(a){return a.nodeType==w_.dom.NodeType.DOCUMENT?a:a.ownerDocument||a.document};
w_.dom.oc=function(a){return a=w_.userAgent.WEBKIT?a.document||a.contentWindow.document:a.contentDocument||a.contentWindow.document};w_.dom.Dd=function(a){return a.contentWindow||w_.dom.Qd(w_.dom.oc(a))};w_.dom.re=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.Hb(a);var c=w_.dom.w(a);a.appendChild(c.createTextNode(b))}};
w_.dom.getOuterHtml=function(a){if("outerHTML"in a)return a.outerHTML;else{var b=w_.dom.w(a);b=b.createElement("div");b.appendChild(a.cloneNode(w_b));return b.innerHTML}};w_.dom.vd=function(a,b){var c=[];return(a=w_.dom.xd(a,b,c,w_b))?c[0]:undefined};w_.dom.wd=function(a,b){var c=[];w_.dom.xd(a,b,c,w_d);return c};w_.dom.xd=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.xd(f,b,c,d))return w_b}return w_d};
w_.dom.pf={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};w_.dom.Xb={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.Bb=function(a){if(w_.userAgent.IE&&"innerText"in a)a=w_.string.canonicalizeNewlines(a.innerText);else{var b=[];w_.dom.Od(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.Od(a,b,w_d);return b.join("")};
w_.dom.Od=function(a,b,c){if(!(a.nodeName in w_.dom.pf))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.Xb)b.push(w_.dom.Xb[a.nodeName]);else for(a=a.firstChild;a;){w_.dom.Od(a,b,c);a=a.nextSibling}};w_.dom.Hd=function(a){return w_.dom.Bb(a).length};
w_.dom.Jd=function(a,b){b=b||w_.dom.w(a).body;for(var c=[];a&&a!=b;){for(var d=a;d=d.previousSibling;)c.unshift(w_.dom.Bb(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.pf))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.Xb)d+=w_.dom.Xb[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.zd=function(a,b,c){return w_.dom.mc(a,function(d){return(!b||d.nodeName==b)&&(!c||w_.dom.classes.has(d,c))},w_b)};w_.dom.mc=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.$=a||w_.global.document||document};w_.dom.DomHelper.prototype.V=w_.dom.V;w_.dom.DomHelper.prototype.Ga=function(){return this.$};w_.dom.DomHelper.prototype.xb=function(a){return w_.isString(a)?this.$.getElementById(a):a};w_.dom.DomHelper.prototype.Kc=w_.dom.DomHelper.prototype.xb;w_.dom.DomHelper.prototype.sa=function(a,b,c){return w_.dom.pg(this.$,a,b,c)};w_.dom.DomHelper.prototype.X=w_.dom.DomHelper.prototype.sa;w_.dom.DomHelper.prototype.Nb=w_.dom.Nb;
w_.dom.DomHelper.prototype.Cb=function(a){return w_.dom.Cb(a||this.cb())};w_.dom.DomHelper.prototype.mg=function(){return w_.dom.ng(this.cb())};w_.dom.DomHelper.prototype.r=function(){return w_.dom.Pf(this.$,arguments)};w_.dom.DomHelper.prototype.Ae=w_.dom.DomHelper.prototype.r;w_.dom.DomHelper.prototype.createElement=function(a){return this.$.createElement(a)};w_.dom.DomHelper.prototype.createTextNode=function(a){return this.$.createTextNode(a)};
w_.dom.DomHelper.prototype.Eg=function(a){return w_.dom.Fg(this.$,a)};w_.dom.DomHelper.prototype.kg=function(){return this.pa()?"CSS1Compat":"BackCompat"};w_.dom.DomHelper.prototype.pa=function(){return w_.dom.eb(this.$)};w_.dom.DomHelper.prototype.cb=function(){return w_.dom.Qd(this.$)};w_.dom.DomHelper.prototype.Ad=function(){return w_.dom.Bd(this.$)};w_.dom.DomHelper.prototype.ab=function(){return w_.dom.og(this.$)};w_.dom.DomHelper.prototype.appendChild=w_.dom.appendChild;
w_.dom.DomHelper.prototype.Hb=w_.dom.Hb;w_.dom.DomHelper.prototype.yc=w_.dom.yc;w_.dom.DomHelper.prototype.Zd=w_.dom.Zd;w_.dom.DomHelper.prototype.removeNode=w_.dom.removeNode;w_.dom.DomHelper.prototype.replaceNode=w_.dom.replaceNode;w_.dom.DomHelper.prototype.yd=w_.dom.yd;w_.dom.DomHelper.prototype.Cd=w_.dom.Cd;w_.dom.DomHelper.prototype.Ed=w_.dom.Ed;w_.dom.DomHelper.prototype.Gd=w_.dom.Gd;w_.dom.DomHelper.prototype.Ld=w_.dom.Ld;w_.dom.DomHelper.prototype.zc=w_.dom.zc;
w_.dom.DomHelper.prototype.contains=w_.dom.contains;w_.dom.DomHelper.prototype.w=w_.dom.w;w_.dom.DomHelper.prototype.oc=w_.dom.oc;w_.dom.DomHelper.prototype.Dd=w_.dom.Dd;w_.dom.DomHelper.prototype.re=w_.dom.re;w_.dom.DomHelper.prototype.vd=w_.dom.vd;w_.dom.DomHelper.prototype.wd=w_.dom.wd;w_.dom.DomHelper.prototype.Bb=w_.dom.Bb;w_.dom.DomHelper.prototype.Hd=w_.dom.Hd;w_.dom.DomHelper.prototype.Jd=w_.dom.Jd;w_.dom.DomHelper.prototype.zd=w_.dom.zd;w_.dom.DomHelper.prototype.mc=w_.dom.mc;w_.debug={};w_.debug.errorHandlerWeakDep={protectEntryPoint:function(a){return a}};w_.Disposable=function(){};w_.Disposable.prototype.sd=w_d;w_.Disposable.prototype.dispose=function(){if(!this.sd){this.sd=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.Tg=b;this.Fa=[];this.Qf(a)};w_.inherits(w_.structs.SimplePool,w_.Disposable);w_.structs.SimplePool.prototype.fc=w_c;w_.structs.SimplePool.prototype.ic=w_c;w_.structs.SimplePool.prototype.gb=function(a){this.fc=a};w_.structs.SimplePool.prototype.ne=function(a){this.ic=a};w_.structs.SimplePool.prototype.na=function(){if(this.Fa.length)return this.Fa.pop();return this.md()};
w_.structs.SimplePool.prototype.Qa=function(a){this.Fa.length<this.Tg?this.Fa.push(a):this.rd(a)};w_.structs.SimplePool.prototype.Qf=function(a){if(a>this.Tg)w_a(Error("[goog.structs.SimplePool] Initial cannot be greater than max"));for(var b=0;b<a;b++)this.Fa.push(this.md())};w_.structs.SimplePool.prototype.md=function(){return this.fc?this.fc():{}};w_.structs.SimplePool.prototype.rd=function(a){if(this.ic)this.ic(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.Hc.L.call(this);for(var a=this.Fa;a.length;)this.rd(a.pop());delete this.Fa};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.qa=w_d;w_.events.Event.prototype.Ra=w_b;w_.events.Event.prototype.stopPropagation=function(){this.qa=w_b};w_.events.Event.prototype.preventDefault=function(){this.Ra=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.Ri=[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.ea=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.ea=a;delete this.Ra;delete this.qa};w_.events.BrowserEvent.prototype.stopPropagation=function(){this.qa=w_b;if(this.ea.stopPropagation)this.ea.stopPropagation();else this.ea.cancelBubble=w_b};
w_.events.BrowserEvent.prototype.preventDefault=function(){this.Ra=w_d;if(this.ea.preventDefault)this.ea.preventDefault();else{this.ea.returnValue=w_d;try{this.ea.keyCode=-1}catch(a){}}};w_.events.BrowserEvent.prototype.L=function(){w_.events.BrowserEvent.Hc.L.call(this);this.ea=w_c};w_.events.Listener=function(){};w_.events.Listener.Nh=0;w_.events.Listener.prototype.key=0;w_.events.Listener.prototype.removed=w_d;w_.events.Listener.prototype.dc=w_d;
w_.events.Listener.prototype.init=function(a,b,c,d,e,f){if(w_.isFunction(a))this.Jg=w_b;else if(a&&a.handleEvent&&w_.isFunction(a.handleEvent))this.Jg=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.dc=w_d;this.key=++w_.events.Listener.Nh;this.removed=w_d};
w_.events.Listener.prototype.handleEvent=function(a){if(this.Jg)return this.listener.call(this.handler||this.src,a);return this.listener.handleEvent.call(this.listener,a)};w_.events.ta={};w_.events.C={};w_.events.ga={};w_.events.OBJECT_POOL_INITIAL_COUNT=0;w_.events.OBJECT_POOL_MAX_COUNT=600;w_.events.fb=new w_.structs.SimplePool(w_.events.OBJECT_POOL_INITIAL_COUNT,w_.events.OBJECT_POOL_MAX_COUNT);w_.events.fb.gb(function(){return{g:0,ca:0}});w_.events.fb.ne(function(a){a.g=0});w_.events.ARRAY_POOL_INITIAL_COUNT=0;w_.events.ARRAY_POOL_MAX_COUNT=600;w_.events.Ca=new w_.structs.SimplePool(w_.events.ARRAY_POOL_INITIAL_COUNT,w_.events.ARRAY_POOL_MAX_COUNT);w_.events.Ca.gb(function(){return[]});
w_.events.Ca.ne(function(a){a.length=0;delete a.Eb;delete a.ge});w_.events.HANDLE_EVENT_PROXY_POOL_INITIAL_COUNT=0;w_.events.HANDLE_EVENT_PROXY_POOL_MAX_COUNT=600;w_.events.xg=new w_.structs.SimplePool(w_.events.HANDLE_EVENT_PROXY_POOL_INITIAL_COUNT,w_.events.HANDLE_EVENT_PROXY_POOL_MAX_COUNT);w_.events.xg.gb(function(){var a=function(b){return w_.events.Sd.call(a.src,a.key,b)};return a});w_.events.LISTENER_POOL_INITIAL_COUNT=0;w_.events.LISTENER_POOL_MAX_COUNT=600;w_.events.Qh=function(){return new w_.events.Listener};
w_.events.ce=new w_.structs.SimplePool(w_.events.LISTENER_POOL_INITIAL_COUNT,w_.events.LISTENER_POOL_MAX_COUNT);w_.events.ce.gb(w_.events.Qh);w_.events.EVENT_POOL_INITIAL_COUNT=0;w_.events.EVENT_POOL_MAX_COUNT=600;w_.events.Oh=function(){return new w_.events.BrowserEvent};w_.events.Ph=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.gb(w_.events.Oh)}return a};w_.events.bg=w_.events.Ph();w_.events.si="on";
w_.events.he={};w_.events.Ui="_";
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.C;b in g||(g[b]=w_.events.fb.na());g=g[b];if(!(d in g)){g[d]=w_.events.fb.na();g.g++}g=g[d];var h=w_.getHashCode(a),i;g.ca++;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.Ca.na();g.g++}f=w_.events.xg.na();f.src=a;g=w_.events.ce.na();g.init(c,f,a,b,d,e);
c=g.key;f.key=c;i.push(g);w_.events.ta[c]=g;w_.events.ga[h]||(w_.events.ga[h]=w_.events.Ca.na());w_.events.ga[h].push(g);if(a.addEventListener){if(a==w_.global||!a.pd)a.addEventListener(b,f,d)}else a.attachEvent(w_.events.sg(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.ta[a];b.dc=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.Fd(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.ta[a])return w_d;var b=w_.events.ta[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.pd)c.removeEventListener(d,e,f)}else c.detachEvent&&c.detachEvent(w_.events.sg(d),e);c=w_.getHashCode(c);e=w_.events.C[d][f][c];if(w_.events.ga[c]){var g=w_.events.ga[c];w_.array.remove(g,b);g.length==0&&delete w_.events.ga[c]}b.removed=w_b;e.ge=w_b;w_.events.Kf(d,f,c,e);delete w_.events.ta[a];return w_b};
w_.events.Kf=function(a,b,c,d){if(!d.Eb)if(d.ge){for(var e=0,f=0;e<d.length;e++)if(d[e].removed)w_.events.ce.Qa(d[e]);else{if(e!=f)d[f]=d[e];f++}d.length=f;d.ge=w_d;if(f==0){w_.events.Ca.Qa(d);delete w_.events.C[a][b][c];w_.events.C[a][b].g--;if(w_.events.C[a][b].g==0){w_.events.fb.Qa(w_.events.C[a][b]);delete w_.events.C[a][b];w_.events.C[a].g--}if(w_.events.C[a].g==0){w_.events.fb.Qa(w_.events.C[a]);delete w_.events.C[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.ga,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.ga[a]){a=w_.events.ga[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.Fd(a,b,c)||[]};
w_.events.Fd=function(a,b,c){var d=w_.events.C;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.Fd(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.ga[a];if(d){var e=w_.isDef(b),f=w_.isDef(c);if(e&&f){d=w_.events.C[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.sg=function(a){if(a in w_.events.he)return w_.events.he[a];return w_.events.he[a]=w_.events.si+a};w_.events.fireListeners=function(a,b,c,d){var e=w_.events.C;if(b in e){e=e[b];if(c in e)return w_.events.Za(e[c],a,b,c,d)}return w_b};
w_.events.Za=function(a,b,c,d,e){var f=1;b=w_.getHashCode(b);if(a[b]){a.ca--;a=a[b];if(a.Eb)a.Eb++;else a.Eb=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.Eb--;w_.events.Kf(c,d,b,a)}}return Boolean(f)};w_.events.fireListener=function(a,b){b=a.handleEvent(b);a.dc&&w_.events.unlistenByKey(a.key);return b};w_.events.getTotalListenerCount=function(){return w_.object.T(w_.events.ta)};
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.C;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.Kd())d.push(g);g=f[w_b];g.ca=g.g;for(var h=d.length-1;!b.qa&&h>=0&&g.ca;h--){b.currentTarget=d[h];c&=w_.events.Za(g,d[h],b.type,w_b,b)&&b.Ra!=w_d}}if(g=w_d in f){g=f[w_d];g.ca=g.g;if(e)for(h=
0;!b.qa&&h<d.length&&g.ca;h++){b.currentTarget=d[h];c&=w_.events.Za(g,d[h],b.type,w_d,b)&&b.Ra!=w_d}else for(a=a;!b.qa&&a&&g.ca;a=a.Kd()){b.currentTarget=a;c&=w_.events.Za(g,a,b.type,w_d,b)&&b.Ra!=w_d}}return Boolean(c)};w_.events.protectBrowserEventEntryPoint=function(a,b){w_.events.Sd=a.protectEntryPoint(w_.events.Sd,b)};
w_.events.Sd=function(a,b){if(!w_.events.ta[a])return w_b;a=w_.events.ta[a];var c=a.type,d=w_.events.C;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.ki(e))return w_b;w_.events.ni(e)}var h=w_.events.bg.na();h.init(e,this);e=w_b;try{if(b){for(var i=w_.events.Ca.na(),k=h.currentTarget;k;k=k.parentNode)i.push(k);f=d[w_b];f.ca=f.g;for(var j=i.length-1;!h.qa&&j>=0&&f.ca;j--){h.currentTarget=i[j];e&=w_.events.Za(f,
i[j],c,w_b,h)}if(g){f=d[w_d];f.ca=f.g;for(j=0;!h.qa&&j<i.length&&f.ca;j++){h.currentTarget=i[j];e&=w_.events.Za(f,i[j],c,w_d,h)}}}else e=w_.events.fireListener(a,h)}finally{if(i){i.length=0;w_.events.Ca.Qa(i)}h.dispose();w_.events.bg.Qa(h)}return e}f=new w_.events.BrowserEvent(b,this);try{e=w_.events.fireListener(a,f)}finally{f.dispose()}return e};w_.events.ni=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.ki=function(a){return a.keyCode<0||a.returnValue!=undefined};w_.events.Ni=0;w_.events.getUniqueId=function(a){return a+"_"+w_.events.Ni++};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.gd=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.gd=function(a,b){if(!a||!b)return w_c;a=a.clone();a.gd(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.Nd=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.Aa=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.db=function(){w_.userAgent.product.Tf=w_d;w_.userAgent.product.ub=w_d;w_.userAgent.product.Vf=w_d;w_.userAgent.product.Rf=w_d;w_.userAgent.product.Sf=w_d;w_.userAgent.product.Xf=w_d;var a=w_.userAgent.getUserAgentString();if(a)if(a.indexOf("Firefox")!=-1)w_.userAgent.product.Tf=w_b;else if(a.indexOf("Camino")!=-1)w_.userAgent.product.ub=w_b;else if(a.indexOf("iPhone")!=-1||a.indexOf("iPod")!=-1)w_.userAgent.product.Vf=w_b;else if(a.indexOf("Android")!=-1)w_.userAgent.product.Rf=
w_b;else if(a.indexOf("Chrome")!=-1)w_.userAgent.product.Sf=w_b;else if(a.indexOf("Safari")!=-1)w_.userAgent.product.Xf=w_b};w_.userAgent.product.Aa||w_.userAgent.product.db();w_.userAgent.product.OPERA=w_.userAgent.OPERA;w_.userAgent.product.IE=w_.userAgent.IE;w_.userAgent.product.FIREFOX=w_.userAgent.product.Aa?w_.userAgent.product.ASSUME_FIREFOX:w_.userAgent.product.Tf;w_.userAgent.product.CAMINO=w_.userAgent.product.Aa?w_.userAgent.product.ASSUME_CAMINO:w_.userAgent.product.ub;
w_.userAgent.product.IPHONE=w_.userAgent.product.Aa?w_.userAgent.product.ASSUME_IPHONE:w_.userAgent.product.Vf;w_.userAgent.product.ANDROID=w_.userAgent.product.Aa?w_.userAgent.product.ASSUME_ANDROID:w_.userAgent.product.Rf;w_.userAgent.product.CHROME=w_.userAgent.product.Aa?w_.userAgent.product.ASSUME_CHROME:w_.userAgent.product.Sf;w_.userAgent.product.SAFARI=w_.userAgent.product.Aa?w_.userAgent.product.ASSUME_SAFARI:w_.userAgent.product.Xf;w_.style={};w_.style.setStyle=function(a,b,c){w_.isString(b)?w_.style.oh(a,c,b):w_.object.forEach(b,w_.partial(w_.style.oh,a))};w_.style.oh=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.w(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.aa=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.aa(a,"position")};w_.style.getBackgroundColor=function(a){return w_.style.aa(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.w(a):w_.dom.Ga();if(w_.userAgent.IE&&!w_.dom.V(a).pa())return a.body;return a.documentElement};w_.style.ig=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.w(a),c=w_.style.aa(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode){c=w_.style.aa(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.Ad(),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.aa(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.Cb();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.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.w(a),d=w_.style.aa(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.ig(a);a=w_.dom.V(c).ab();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.cb(w_.dom.w(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.Ga()!=c.Ga()){var d=b.Ga().body;c=w_.style.getFramedPageOffset(d,c.cb());c=w_.math.Coordinate.difference(c,w_.style.getPageOffset(d));if(w_.userAgent.IE&&!b.pa())c=w_.math.Coordinate.difference(c,b.ab());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.ig(a);b.x=c.left;b.y=c.top}else{c=w_.dom.V(a).ab();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.Nd=function(a){var b=w_.userAgent.OPERA&&!w_.userAgent.isVersion("10");if(w_.style.aa(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.Nd(a);return new w_.math.Rect(b.x,b.y,a.width,a.height)};w_.style.sh={};w_.style.toCamelCase=function(a){return w_.style.sh[a]||(w_.style.sh[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.Ga().createStyleSheet();w_.style.setStyles(c,a)}else{var d=b.sa("head")[0];if(!d){c=b.sa("body")[0];d=b.r("head");c.parentNode.insertBefore(d,c)}c=b.r("style");w_.style.setStyles(c,a);b.appendChild(d,c)}return c};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.aa(a,"direction")};w_.style.xe=w_.userAgent.GECKO?"MozUserSelect":w_.userAgent.WEBKIT?"WebkitUserSelect":w_c;w_.style.isUnselectable=function(a){if(w_.style.xe)return a.style[w_.style.xe].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.xe;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.w(a),d=w_.dom.V(c).pa();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.nh(a,b,"border-box")};
w_.style.getContentBoxSize=function(a){var b=w_.dom.w(a),c=w_.userAgent.IE&&a.currentStyle;if(c&&w_.dom.V(b).pa()&&c.width!="auto"&&c.height!="auto"&&!c.boxSizing){b=w_.style.bb(a,c.width,"width","pixelWidth");a=w_.style.bb(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.w(a),d=w_.dom.V(c).pa();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.nh(a,b,"content-box")};
w_.style.nh=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.bb=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.rc=function(a,b){return w_.style.bb(a,w_.style.getCascadedStyle(a,b),"left","pixelLeft")};
w_.style.jg=function(a,b){if(w_.userAgent.IE){var c=w_.style.rc(a,b+"Left"),d=w_.style.rc(a,b+"Right"),e=w_.style.rc(a,b+"Top");a=w_.style.rc(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.jg(a,"padding")};
w_.style.getMarginBox=function(a){return w_.style.jg(a,"margin")};w_.style.Gg={thin:2,medium:4,thick:6};w_.style.qc=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.Gg)return w_.style.Gg[b];return w_.style.bb(a,b,"left","pixelLeft")};
w_.style.getBorderBox=function(a){if(w_.userAgent.IE){var b=w_.style.qc(a,"borderLeft"),c=w_.style.qc(a,"borderRight"),d=w_.style.qc(a,"borderTop");a=w_.style.qc(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.w(a),c="";if(b.createTextRange){c=b.body.createTextRange();c.moveToElementText(a);c=c.queryCommandValue("FontName")}if(!c){c=w_.style.aa(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.getLengthUnits=function(a){return(a=a.match(/[^\d]+$/))&&a[0]||w_c};w_.style.wh={cm:1,"in":1,mm:1,pc:1,pt:1};w_.style.zh={em:1,ex:1};
w_.style.getFontSize=function(a){var b=w_.style.aa(a,"fontSize"),c=w_.style.getLengthUnits(b);if(b&&"px"==c)return parseInt(b,10);if(w_.userAgent.IE)if(c in w_.style.wh)return w_.style.bb(a,b,"left","pixelLeft");else if(a.parentNode&&a.parentNode.nodeType==w_.dom.NodeType.ELEMENT&&c in w_.style.zh){a=a.parentNode;c=w_.style.aa(a,"fontSize");return w_.style.bb(a,b==c?"1em":b,"left","pixelLeft")}c=w_.dom.r("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_G={};w_G.ui={};w_G.ui.DelayManager=function(a,b){this.ii=a;this.wi=b;this.Rh="delayLoad";this.xc={};this.ib=0;this.ye=[];this.Cc=[];var c=this;this.vh=function(){c.ah()}};w_G.ui.DelayManager.prototype.init=function(){this.qh(this.Rh,this.ii,this.xc);if(!(this.ib==0)){this.Ff();this.ke()}};
w_G.ui.DelayManager.prototype.qh=function(a,b,c){a=w_.dom.sa("img",a);for(var d=0;d<a.length;d++){if(a[d].style.display=="none")a[d].style.display="";if(d<b)this.ee(a[d]);else{var e=a[d].id;if(e=="")e="av-delay-tempId-"+d;c[e]={el:a[d],key:e};this.ib++}}};w_G.ui.DelayManager.prototype.Ff=function(){this.Fi=w_.events.listen(window,w_.events.EventType.SCROLL,this.vh);this.Di=w_.events.listen(window,w_.events.EventType.RESIZE,this.vh)};
w_G.ui.DelayManager.prototype.ah=function(){this.Mf();var a=this;this.we=window.setTimeout(function(){a.we=w_c;a.ke()},100)};w_G.ui.DelayManager.prototype.Mf=function(){this.we&&window.clearTimeout(this.we)};w_G.ui.DelayManager.prototype.ke=function(){if(!(this.ib<0))if(this.ib==0)this.uh();else{var a=w_d;for(var b in this.xc){var c=this.xc[b];if(this.Jf(c,this.wi,w_.dom.Cb().height))a=w_b}a&&this.bh()}};
w_G.ui.DelayManager.prototype.uh=function(){w_.events.unlistenByKey(this.Fi);w_.events.unlistenByKey(this.Di);this.ib=-1};w_G.ui.DelayManager.prototype.Jf=function(a,b,c){var d=w_.style.getClientPosition(a.el).y;if(0<=d&&d<=c)this.ye.push(a);else if(0<d&&d<Math.round((b+1)*c))this.Cc.push(a);else if(d<0&&d>Math.round(-1*b*c))this.Cc.push(a);else return w_d;return w_b};
w_G.ui.DelayManager.prototype.bh=function(){this.li=w_b;for(var a=this.ye.concat(this.Cc),b=0;b<a.length;b++){this.ee(a[b].el);this.ib--;delete this.xc[a[b].key]}this.ye=[];this.Cc=[];this.li=w_d};w_G.ui.DelayManager.prototype.ee=function(a){if(!(a.longDesc==""))a.src=a.longDesc};function w_H(a){this.a=a;this.kb=a.s();if(this.kb.data)this.Wg=this.kb.data.showBacklinks}w_H.BACKLINKS_ROOT="backlinks-container";w_H.BACKLINKS_CHUNK="backlinks";w_H.BACKLINK_ITEM_ROOT_CLASS="backlink-control";w_H.BACKLINK_EXPANDED_CLASS="expanded-backlink";w_H.BACKLINK_COLLAPSED_CLASS="collapsed-backlink";w_H.BACKLINK_ZIPPY_CLASS="backlink-toggle-zippy";w_H.WIDGET_TYPE_NAME="Blog";w_H.prototype.d=function(){return w_H.WIDGET_TYPE_NAME};w_H.prototype.b=function(){return this.a};
w_H.prototype.c=function(a,b){if(a=="initial"){this.kb.data=b;w_B.DisplayWidget(this,w_b)}else if(a=="nextposts")this.Ke(b);else if(a=="configure")this.a.k(b);else a=="backlinks"&&this.sf(b)};w_H.prototype.Ke=function(a){a=a.renderedData;var b=this.kb.rootElement;if(a&&b){b.innerHTML=a;window.scroll(0,0);this.j()}};
w_H.prototype.sf=function(a){this.Wg=w_d;a=this.a.Vb(w_H.BACKLINKS_CHUNK,a);var b=this.a.Y(w_H.BACKLINKS_ROOT);if(b){b.innerHTML="";b.appendChild(a)}a=w_ra(this.kb.rootElement,w_H.Df);for(b=0;b<a.length;b++){var c=a[b];c.onclick=this.rf.bind(this)}a=this.a.Y("backlinks-create-link");if(a!=w_c)a.onclick=this.Ee.bind(this,a.href)};w_H.Df={};w_H.Df.select=function(a){return a&&w_p(a,w_H.BACKLINK_ZIPPY_CLASS)};w_H.prototype.rf=function(a){a=a||window.event;this.Le(a.srcElement||a.target)};
w_H.prototype.Le=function(a){for(a=a.parentNode;a&&!w_p(a,w_H.BACKLINK_ITEM_ROOT_CLASS);)a=a.parentNode;if(a)if(w_p(a,w_H.BACKLINK_EXPANDED_CLASS)){w_r(a,w_H.BACKLINK_EXPANDED_CLASS);w_q(a,w_H.BACKLINK_COLLAPSED_CLASS)}else{w_q(a,w_H.BACKLINK_EXPANDED_CLASS);w_r(a,w_H.BACKLINK_COLLAPSED_CLASS)}};
w_H.prototype.j=function(){var a=this.a.Y("blog-pager-newer-link");if(a&&this.Sc(a))a.onclick=this.Uc.bind(this);if((a=this.a.Y("blog-pager-older-link"))&&this.Sc(a))a.onclick=this.Uc.bind(this);if(this.Wg){var b=this;this.a.ra("backlinks",{postID:this.kb.data.postId},function(c){return b.De(c)},"GET")}this.Uh=new w_G.ui.DelayManager(5,1.25);this.Uh.init()};
w_H.prototype.De=function(a){var b=w_v(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_H.prototype.Sc=function(a){a=a.href;return a.indexOf("/search?")>-1};w_H.prototype.Uc=function(a){a=a||window.event;a=a.target||a.srcElement;this.a.ra("nextposts",{path:a.href});return w_d};
w_H.prototype.Ee=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_H;function w_I(a){this.a=a;this.e=a.s()}w_I.Id={BLOGS:"blogs",SHOW_ALL:"show-all",SHOW_N:"show-n"};w_I.Action={CONFIGURE:"configure"};w_I.Fields={NUM_ITEMS_TO_SHOW:"numItemsToShow",TOTAL_ITEMS:"totalItems"};w_I.WIDGET_TYPE_NAME="BlogList";w_I.prototype.Jc=w_c;w_I.prototype.Fb=w_c;w_I.prototype.d=function(){return w_I.WIDGET_TYPE_NAME};w_I.prototype.b=function(){return this.a};w_I.prototype.h=function(){return w_d};w_I.prototype.c=function(a,b){a==w_I.Action.CONFIGURE&&this.a.k(b)};
w_I.prototype.j=function(){var a=this.a.n();this.Jc=a[w_I.Fields.TOTAL_ITEMS];this.Fb=a[w_I.Fields.NUM_ITEMS_TO_SHOW];if(this.Fb!=0&&this.Jc>this.Fb){a=this.a.M(w_I.Id.SHOW_ALL);a.onclick=this.ve.bind(this);a=this.a.M(w_I.Id.SHOW_N);a.onclick=this.ve.bind(this)}a=this.eg.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_I.prototype.ve=function(){var a=this.a.M(w_I.Id.BLOGS);a=a.getElementsByTagName("li");for(var b=this.Fb;b<this.Jc;b++){var c=a[b];w_pa(c,c.style.display=="none")}a=this.a.M(w_I.Id.SHOW_ALL);w_qa(a,a.style.display=="none");a=this.a.M(w_I.Id.SHOW_N);w_qa(a,a.style.display=="none")};w_I.prototype.eg=function(){var a=this.a.M(w_I.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.xf.bind(d,c);d.src=c.value}};
w_I.prototype.xf=function(a){this.onload=function(){};this.alt="";this.width=this.height="16";var b=a.parentNode;b.replaceChild(this,a)};var _BlogListView=w_I;_BlogListView._Configure=_BlogListView.Configure;function w_J(a){this.a=a}w_J.WIDGET_TYPE_NAME="CustomSearch";w_J.ANCHOR_NAME="uds-search-results";w_J.prototype.d=function(){return w_J.WIDGET_TYPE_NAME};w_J.prototype.b=function(){return this.a};w_J.prototype.h=function(){return w_d};w_J.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};
w_J.prototype.j=function(){var a=this.b(),b=new w_A;google.load("search","1",{callback:w_Ma.bind(a),language:b.n("blog.locale")});a=document.getElementById("uds-searchControl");if(!a){a=document.createElement("DIV");a.id="uds-searchControl";b=document.createElement("A");b.name=w_J.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_Ma(){var a=new GSearchControl,b=this.n();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.M("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_w(w_Na,w_c,b,a));document.getElementById("uds-searchClearResults").onclick=w_w(w_Oa,w_c,a);w_K(w_d)}
function w_Na(a,b){a=a.input.value;if(!a){w_Oa(b);return w_d}b.execute(a);w_K(w_b);b=window.location.href;a=b.indexOf("#");if(a>=0)b=b.substring(0,a);window.location.href=b+"#"+w_J.ANCHOR_NAME;return w_b}function w_Oa(a){a.clearAllResults();w_K(w_d)}function w_K(a){document.getElementById("uds-searchClearResults").style.display=a?"block":"none"}var _CustomSearchView=w_J;_CustomSearchView._Configure=_CustomSearchView.Configure;function w_L(a){this.a=a;this.e=a.s()}w_L.WIDGET_TYPE_NAME="Image";w_L.prototype.b=function(){return this.a};w_L.prototype.d=function(){return w_L.WIDGET_TYPE_NAME};w_L.prototype.h=function(){return w_d};
w_L.prototype.j=function(){if(!(this.e.data.resize!="true")){var a=this.a.Y(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_L.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};var _ImageView=w_L;function w_M(a,b,c,d,e,f,g,h){this.J=a;this.Gf=b!="null"?b:w_c;this.Pg=c;this.Ng=d;this.Og=e;this.mh=f;this.Qg=g;this.Gi=h;this.Ja=this.oa=-1;this.Ka=w_c;this.Gb=300;this.fe="200px";this.W=document.getElementById(this.J+"_picImg");this.ec=document.getElementById(this.J+"_changeImageLink");this.wc=document.getElementById(this.J+"_imageChoiceTable");this.Hg=document.getElementById(this.J+"_imgSrcFromPCRadio");this.Ig=document.getElementById(this.J+"_imgSrcFromWebRadio");this.m=document.getElementById(this.J+
"_imgFileNameInput");this.Db=document.getElementById(this.J+"_imgUrlTextInput");this.Cf=window.frames[this.J+"_asynchronousFileUploadIframe"];this.Wd=0;this.D=new Image;this.D.onload=this.hitch(this,this.Zg);this.D.onerror=this.hitch(this,this.Yg);this.fg=w_d;this.Ya=this.F=this.be=w_c;this.le=w_d}w_M.prototype.$d=function(){return this.Hg.checked};
w_M.prototype.Zg=function(){this.Wd=0;w_C.ClearError(this.J+"_imgUrlTextError");w_C.ClearError(this.J+"_imgFileNameError");if(!this.$d()||this.oa==0){this.oa=this.D.width;this.Ja=this.D.height;this.Ka=this.D.src}var a=1,b=1;if(this.D.width>this.Gb)a=this.Gb/this.D.width;if(this.D.height>this.Gb)b=this.Gb/this.D.height;a=Math.min(a,b);this.W.style.width=Math.round(this.D.width*a)+"px";this.W.style.height=Math.round(this.D.height*a)+"px";this.W.src=this.D.src;this.W.style.display="";this.wc.style.display=
"none";this.ec.style.display="";this.m.disabled=w_b;this.Pg&&this.Pg.call({},this.W.src,this.Ka,this.oa,this.Ja)};w_M.prototype.hb=function(a,b,c,d){if(a){w_C.SetError(this.J+"_imgFileNameError",b);w_C.ClearError(this.J+"_imgUrlTextError")}else{w_C.SetError(this.J+"_imgUrlTextError",b);w_C.ClearError(this.J+"_imgFileNameError")}this.W.style.display="none";this.wc.style.display="";this.ec.style.display="none";this.m.disabled=w_d;this.Ng&&this.Ng.call({},c,d)};
w_M.prototype.Yg=function(){if(this.Wd<2){this.Wd++;var a=this.D.src;this.D.src="";this.Ma(a)}else this.hb(this.$d(),WidgetMessages.SIV_INVALID_URL,this.W.src)};w_M.prototype.hitch=function(a,b){return function(){b.apply(a,arguments)}};w_M.prototype.Ma=function(a){this.se();this.D.src=a};
w_M.prototype.kd=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.ec.style.display="none";this.wc.style.display="";this.m.disabled=w_d;this.Db.value="";this.me();this.le=w_b;this.Og&&this.Og.call({})};w_M.prototype.Xd=function(){this.Hg.checked="true";this.Db.value="";this.se();this.Vg();this.fg=w_b;try{this.F.submit()}catch(a){this.hb(w_b,WidgetMessages.SIV_INVALID_URL,this.F.value)}this.Ug()};
w_M.prototype.Ta=function(){var a=this.Cf.document.result;a||this.hb(w_b,WidgetMessages.SIV_INVALID_URL,this.m.value);if(a.hasErrors)a.errors.length>0?this.hb(w_b,a.errors[0].message,this.m.value,a.fi):this.hb(w_b,WidgetMessages.SIV_INVALID_URL,this.m.value,a.fi);else{var b=Math.max(a.origWidth,a.origHeight),c=this.Pd();if(this.oa!=0&&c!=-1&&b>c){b=c/b;this.oa=Math.round(a.origWidth*b);this.Ja=Math.round(a.origHeight*b)}else{this.oa=a.origWidth;this.Ja=a.origHeight}this.Ka=a.mainSrc;this.Ma(a.thumbSrc)}};
w_M.prototype.Yd=function(a){a=a||window.event;if(!(a.keyCode==9)){this.Ig.checked="true";this.be!=w_c&&window.clearTimeout(this.be);a=this.hitch(this,function(){if(this.le||this.D.src!=this.Db.value){this.me();this.Ma(this.Db.value)}this.le=w_d});this.be=window.setTimeout(a,1000)}};w_M.prototype.de=function(a){this.Ig.checked=w_b;this.Db.value=a;this.Ma(a)};
w_M.prototype.se=function(){this.W.src="img/icon_inprogress.gif";this.W.style.width=this.fe;this.W.style.height=this.fe;this.W.style.display="";this.wc.style.display="none";this.ec.style.display="none"};
w_M.prototype.Vg=function(){if(!this.F){this.F=document.createElement("form");this.F.action="imageUpload.do";this.F.method="POST";this.F.target=this.Cf.name;this.F.encoding="multipart/form-data";this.F.style.display="none";if(this.Gf){var a=document.createElement("input");a.type="hidden";a.name="blogID";a.value=this.Gf;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.Gi;this.F.appendChild(a);document.body.appendChild(this.F)}a=this.Pd();if(a==-1)a=1600;document.getElementById("sectionWidth").value=a;this.Ya={parent:this.m.parentNode,nextSibling:this.m.nextSibling};this.m.parentNode.removeChild(this.m);this.F.appendChild(this.m)};w_M.prototype.oe=function(a){this.Gb=a;this.fe=a+"px"};
w_M.prototype.Ug=function(){this.F.removeChild(this.m);this.Ya&&this.Ya.nextSibling?this.Ya.parent.insertBefore(this.m,this.Ya.nextSibling):this.Ya.parent.appendChild(this.m)};w_M.prototype.me=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_M.prototype.Pd=function(){return this.mh==-1&&this.Qg?this.Qg():this.mh};function w_N(){this.usiContainers=[]}var w_Pa=new w_N;w_N.prototype.nd=function(a,b,c,d,e,f,g,h){this.usiContainers[a]=new w_M(a,b,eval(c),eval(d),eval(e),f,eval(g),h);return this.usiContainers[a]};w_N.prototype.vc=function(a){return this.usiContainers[a]};w_N.prototype.Ta=function(a){(a=this.vc(a))&&a.fg&&a.Ta()};var _UploadSimpleImage=w_Pa;w_N.prototype._createUsiContainer=w_N.prototype.nd;
w_N.prototype._getUsiContainer=w_N.prototype.vc;w_N.prototype._channelResultArrived=w_N.prototype.Ta;w_M.prototype._changeImage=w_M.prototype.kd;w_M.prototype._imgUrlFileOnChange=w_M.prototype.Xd;w_M.prototype._imgUrlTextOnKeyUp=w_M.prototype.Yd;w_M.prototype._loadInitialUrl=w_M.prototype.de;w_M.prototype._loadImageFromUrl=w_M.prototype.Ma;w_M.prototype._setPreviewSize=w_M.prototype.oe;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_B.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_B.N(window,WidgetMessages.SIV_NO_IMAGE,w_B.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_B.SaveWidget(b,a,w_L.WIDGET_TYPE_NAME)}};function w_O(a){this.a=a;this.e=a.s()}w_O.successfulUploadCallback=function(a,b,c,d){w_O.Ii=a;w_O.Ka=b;w_O.oa=c;w_O.Ja=d;if(a=document.getElementById("shrinkToFitRow"))a.style.visibility="hidden";if(a=document.getElementById("shrinkToFitMessageRow"))a.style.visibility="hidden"};w_O.resetCallback=function(){w_O.Ka=w_c;var a=document.getElementById("shrinkToFitRow");if(a)a.style.visibility="visible";if(a=document.getElementById("shrinkToFitMessageRow"))a.style.visibility="visible"};
w_O.getScaledContainerWidth=function(){return document.getElementById("checkShrink").checked?w_O.getContainerWidth():-1};w_O.getContainerWidth=function(){var a=document.getElementById("sectionId").value,b=600;if(w_B.IsOpenerReachable(window)&&window.opener.document.getElementById(a))b=window.opener.document.getElementById(a).clientWidth;return b};w_O.WIDGET_TYPE_NAME="Header";w_O.prototype.d=function(){return w_O.WIDGET_TYPE_NAME};w_O.prototype.h=function(){return w_d};w_O.prototype.b=function(){return this.a};
w_O.prototype.c=function(a,b){this.a.k(b)};w_O.FilterMap={title:w_C.GetRequiredStringFilter(),description:w_c,imagePlacement:w_c,useImage:w_c,securityToken:w_c};
w_O.ConfigureWidget=function(){var a=document.forms.config.widgetId.value,b=document.forms.config.widgetType.value,c=w_C.ProcessForm(document.forms.config,w_O.FilterMap),d=w_O.getContainerWidth();if(c.success){if(w_O.Ka){var e=w_O.oa,f=w_O.Ja,g=document.getElementById("checkShrink").checked;if(g){var h=1;if(e>d){h=d/e;e=d;f=Math.round(f*h)}}c.values.originalUrl=w_O.Ka;c.values.originalWidth=w_O.oa;c.values.originalHeight=w_O.Ja;c.values.displayUrl=w_O.Ii;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_B.SaveWidget(c.values,a,b);return w_b}else return w_d};w_O.hideImageOptions=function(){document.getElementById("imageOptions").style.display="none";return w_d};w_O.showImageOptions=function(){document.getElementById("imageOptions").style.display="";return w_d};var _HeaderView=w_O;_HeaderView.prototype=w_O.prototype;_HeaderView._ConfigureWidget=_HeaderView.ConfigureWidget;
_HeaderView._hideImageOptions=_HeaderView.hideImageOptions;_HeaderView._showImageOptions=_HeaderView.showImageOptions;_HeaderView._successfulUploadCallback=_HeaderView.successfulUploadCallback;_HeaderView._resetCallback=_HeaderView.resetCallback;_HeaderView._getScaledContainerWidth=_HeaderView.getScaledContainerWidth;_HeaderView._getContainerWidth=_HeaderView.getContainerWidth;function w_P(a,b){this.a=a;this.e=a.s();this.Ki=b}w_P.prototype.b=function(){return this.a};w_P.prototype.d=function(){return this.Ki};w_P.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};
w_P.ConfigureWidget=function(a){setFormAndSubmit();var b=document.forms.stuffform.widgetId.value,c=document.forms.stuffform.securityToken.value,d=document.getElementById("textarea"),e=document.getElementById("title");d=d.value;if(a=="Text")d=d.replace(/\n/g,"<br/>");c={content:d,title:e.value,securityToken:c};w_B.SaveWidget(c,b,a)};function w_Q(a){w_P.call(this,a,"Text")}w_Q.inherits(w_P);w_Q.ConfigureWidget=function(){w_P.ConfigureWidget("Text")};function w_R(a){w_P.call(this,a,"HTML")}w_R.inherits(w_P);
w_R.ConfigureWidget=function(){w_P.ConfigureWidget("HTML")};var _TextView=w_Q;_TextView.prototype=w_Q.prototype;_TextView._ConfigureWidget=_TextView.ConfigureWidget;var _HTMLView=w_R;_HTMLView.prototype=w_R.prototype;_HTMLView._ConfigureWidget=_HTMLView.ConfigureWidget;function w_S(a){this.a=a}w_S.WIDGET_TYPE_NAME="VideoBar";w_S.prototype.d=function(){return w_S.WIDGET_TYPE_NAME};w_S.prototype.b=function(){return this.a};w_S.prototype.h=function(){return w_d};w_S.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};w_S.prototype.j=function(){var a=this.b();google.load("search","1",{callback:w_Qa.bind(a)});a=a.M("bar");w_q(a,"videoBar-container")};
function w_Qa(){var a=this.M("bar"),b=this.n().format,c,d,e=this.n().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_S;_VideoBarView._Configure=_VideoBarView.Configure;function w_T(a){this.a=a}w_T.WIDGET_TYPE_NAME="NewsBar";w_T.prototype.d=function(){return w_T.WIDGET_TYPE_NAME};w_T.prototype.b=function(){return this.a};w_T.prototype.h=function(){return w_d};w_T.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};w_T.prototype.j=function(){var a=this.b();google.load("search","1",{callback:w_Ra.bind(a)});window._uds_nbw_donotrepair=w_b};
function w_Ra(){var a=this.M("bar"),b,c=this.n().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.n().expression;var d=this.n().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_T;_NewsBarView._Configure=_NewsBarView.Configure;function w_U(a){this.a=a}w_U.WIDGET_TYPE_NAME="Slideshow";w_U.prototype.d=function(){return w_U.WIDGET_TYPE_NAME};w_U.prototype.b=function(){return this.a};w_U.prototype.h=function(){return w_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("feeds","1",{callback:w_Sa.bind(a)})};
function w_Sa(){var a=this.M("slideshow"),b=this.n().computedFeed,c=this.n().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.n().speed};if(b.indexOf("http://api.flickr.com")==0)c.thumbnailUrlResolver=w_U.FlickrThumbResolver;if(this.n().randomizeFeed)c.feedLoadCallback=w_U.FeedRandomizer;new GFslideShow(b,a,c)}
w_U.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_U.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_U;_SlideshowView._Configure=_SlideshowView.Configure;function w_V(a){this.a=a;this.e=a.s()}w_V.WIDGET_TYPE_NAME="Label";w_V.prototype.d=function(){return w_V.WIDGET_TYPE_NAME};w_V.prototype.b=function(){return this.a};w_V.prototype.c=function(a,b){this.a.k(b)};var _LabelView=w_V;function w_W(a){this.a=a;this.e=a.s()}w_W.WIDGET_TYPE_NAME="TextList";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)};var _TextListView=w_W;function w_X(a){this.a=a;this.e=a.s()}w_X.WIDGET_TYPE_NAME="LinkList";w_X.prototype.d=function(){return w_X.WIDGET_TYPE_NAME};w_X.prototype.h=function(){return w_d};w_X.prototype.b=function(){return this.a};w_X.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};var _LinkListView=w_X;_LinkListView.prototype=w_X.prototype;function w_Y(a){this.a=a;this.e=a.s()}w_Y.prototype.d=function(){return"BloggerButton"};w_Y.prototype.b=function(){return this.a};w_Y.prototype.c=function(a,b){this.a.k(b)};var _BloggerButtonView=w_Y;var w_Z=function(a){this.a=a;this.e=a.s()};w_Z.prototype.d=function(){return"Poll"};w_Z.prototype.b=function(){return this.a};w_Z.prototype.c=function(a,b){if(a=="configure"){this.savePending=w_d;this.a.k(b)}};w_Z.prototype.za=function(a,b){if(a=="configure")this.savePending=w_d;w_B.za(b,window)};
w_Z.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_Z.adjustFrameHeight,500);var _PollView=w_Z;function w__(a){this.a=a;this.e=a.s()}w__.WIDGET_TYPE_NAME="Navbar";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){this.a.k(b)};w__.FilterMap={navbartype:w_c,securityToken:w_c};w__.ConfigureWidget=function(){w_y.ConfigureWidget(w__.FilterMap)};var _NavbarView=w__;_NavbarView.prototype=w__.prototype;_NavbarView._ConfigureWidget=_NavbarView.ConfigureWidget;function w_0(a){this.a=a;this.e=a.s()}w_0.WIDGET_TYPE_NAME="Profile";w_0.prototype.h=function(){return w_d};w_0.prototype.d=function(){return w_0.WIDGET_TYPE_NAME};w_0.prototype.b=function(){return this.a};w_0.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};w_0.prototype.j=function(){this.e.rootElement.style.display=this.a.n().isDisplayable==w_d?"none":""};var _ProfileView=w_0;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.o=function(a){if(typeof a.o=="function")return a.o();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.o(a)};
w_.structs.l=function(a){if(typeof a.l=="function")return a.l();if(typeof a.o=="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.ia=="function")return a.ia(b);if(w_.isArrayLike(a)||w_.isString(a))return w_.array.contains(a,b);return w_.object.ia(a,b)};
w_.structs.z=function(a){if(typeof a.z=="function")return a.z();if(w_.isArrayLike(a)||w_.isString(a))return w_.array.z(a);return w_.object.z(a)};w_.structs.clear=function(a){if(typeof a.clear=="function")a.clear();else w_.isArrayLike(a)?w_.array.clear(a):w_.object.clear(a)};
w_.structs.forEach=function(a,b,c){if(typeof a.forEach=="function")a.forEach(b,c);else if(w_.isArrayLike(a)||w_.isString(a))w_.array.forEach(a,b,c);else for(var d=w_.structs.l(a),e=w_.structs.o(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.o(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.o(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.o(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.o(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.H={};this.p=[];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.wf(a)};w_.structs.Map.prototype.g=0;w_.structs.Map.prototype.jb=0;w_.structs.Map.prototype.T=function(){return this.g};w_.structs.Map.prototype.o=function(){this.Ua();for(var a=[],b=0;b<this.p.length;b++){var c=this.p[b];a.push(this.H[c])}return a};w_.structs.Map.prototype.l=function(){this.Ua();return this.p.concat()};
w_.structs.Map.prototype.u=function(a){return w_.structs.Map.Ia(this.H,a)};w_.structs.Map.prototype.ia=function(a){for(var b=0;b<this.p.length;b++){var c=this.p[b];if(w_.structs.Map.Ia(this.H,c)&&this.H[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.Ua();for(var c,d=0;c=this.p[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.z=function(){return this.g==0};w_.structs.Map.prototype.clear=function(){this.H={};this.jb=this.g=this.p.length=0};w_.structs.Map.prototype.remove=function(a){if(w_.structs.Map.Ia(this.H,a)){delete this.H[a];this.g--;this.jb++;this.p.length>2*this.g&&this.Ua();return w_b}return w_d};
w_.structs.Map.prototype.Ua=function(){if(this.g!=this.p.length){for(var a=0,b=0;a<this.p.length;){var c=this.p[a];if(w_.structs.Map.Ia(this.H,c))this.p[b++]=c;a++}this.p.length=b}if(this.g!=this.p.length){var d={};for(b=a=0;a<this.p.length;){c=this.p[a];if(!w_.structs.Map.Ia(d,c)){this.p[b++]=c;d[c]=1}a++}this.p.length=b}};w_.structs.Map.prototype.get=function(a,b){if(w_.structs.Map.Ia(this.H,a))return this.H[a];return b};
w_.structs.Map.prototype.set=function(a,b){if(!w_.structs.Map.Ia(this.H,a)){this.g++;this.p.push(a);this.jb++}this.H[a]=b};w_.structs.Map.prototype.wf=function(a){var b;if(a instanceof w_.structs.Map){b=a.l();a=a.o()}else{b=w_.object.l(a);a=w_.object.o(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.p.length;b++){var c=this.p[b],d=this.H[c];a.set(d,c)}return a};w_.structs.Map.prototype.__iterator__=function(a){this.Ua();var b=0,c=this.p,d=this.H,e=this.jb,f=this,g=new w_.iter.Iterator;g.next=function(){for(;1;){if(e!=f.jb)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.Ia=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};w_.structs.Map.T=function(a){return w_.structs.T(a)};w_.structs.Map.o=function(a){return w_.structs.o(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.u=function(a,b){if(typeof a.u=="function")return a.u(b);if(w_.isArrayLike(a))return Number(b)<a.length;return w_.object.u(a,b)};
w_.structs.Map.ia=function(a,b){return w_.structs.contains(a,b)};w_.structs.Map.z=function(a){return w_.structs.z(a)};w_.structs.Map.clear=function(a){w_.structs.clear(a)};w_.structs.Map.remove=function(a,b){if(typeof a.remove=="function")return a.remove(b);if(w_.isArrayLike(a))return w_.array.removeAt(a,Number(b));return w_.object.remove(a,b)};
w_.structs.Map.add=function(a,b,c){if(typeof a.add=="function")a.add(b,c);else if(w_.structs.Map.u(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.u(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_.uri={};w_.uri.utils={};w_.uri.utils.ob={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.Hi=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([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.Hi)};w_.uri.utils.gc=function(a){return a&&decodeURIComponent(a)};w_.uri.utils.$a=function(a,b){return w_.uri.utils.split(b)[a]||w_c};w_.uri.utils.tc=function(a){return w_.uri.utils.$a(w_.uri.utils.ComponentIndex.SCHEME,a)};w_.uri.utils.getUserInfoEncoded=function(a){return w_.uri.utils.$a(w_.uri.utils.ComponentIndex.USER_INFO,a)};
w_.uri.utils.uc=function(a){return w_.uri.utils.gc(w_.uri.utils.getUserInfoEncoded(a))};w_.uri.utils.getDomainEncoded=function(a){return w_.uri.utils.$a(w_.uri.utils.ComponentIndex.DOMAIN,a)};w_.uri.utils.la=function(a){return w_.uri.utils.gc(w_.uri.utils.getDomainEncoded(a))};w_.uri.utils.zb=function(a){return Number(w_.uri.utils.$a(w_.uri.utils.ComponentIndex.PORT,a))||w_c};w_.uri.utils.getPathEncoded=function(a){return w_.uri.utils.$a(w_.uri.utils.ComponentIndex.PATH,a)};w_.uri.utils.Ha=function(a){return w_.uri.utils.gc(w_.uri.utils.getPathEncoded(a))};
w_.uri.utils.Md=function(a){return w_.uri.utils.$a(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.nc=function(a){return w_.uri.utils.gc(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.Bf=function(a){if(w_.DEBUG&&a.indexOf("#")>=0)w_a(Error("goog.uri.utils: Fragment identifiers are not supported: ["+a+"]"))};
w_.uri.utils.Jh=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.ed=function(a){w_.uri.utils.Bf(a[0]);if(a[1]){var b=a[0].indexOf("?");if(b<0)a[1]="?";else if(b==a[0].length-1)a[1]=""}return a.join("")};w_.uri.utils.Af=function(a,b,c){if(w_.isArray(b)){b=b;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.If=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.Af(b[c],b[c+1],a);return a};w_.uri.utils.buildQueryData=function(a,b){a=w_.uri.utils.If([],a,b);a[0]="";return a.join("")};w_.uri.utils.Hf=function(a,b){for(var c in b)w_.uri.utils.Af(c,b[c],a);return a};w_.uri.utils.buildQueryDataFromMap=function(a){a=w_.uri.utils.Hf([],a);a[0]="";return a.join("")};
w_.uri.utils.appendParams=function(a){return w_.uri.utils.ed(w_.uri.utils.If([a],arguments,1))};w_.uri.utils.appendParamsFromMap=function(a,b){return w_.uri.utils.ed(w_.uri.utils.Hf([a],b))};w_.uri.utils.appendParam=function(a,b,c){return w_.uri.utils.ed([a,"&",b,"=",w_.string.urlEncode(c)])};
w_.uri.utils.lc=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.ob.AMPERSAND||f==w_.uri.utils.ob.QUESTION){f=a.charCodeAt(b+e);if(!f||f==w_.uri.utils.ob.EQUAL||f==w_.uri.utils.ob.AMPERSAND||f==w_.uri.utils.ob.HASH)return b}b+=e+1}return-1};w_.uri.utils.Vd=/#|$/;w_.uri.utils.hasParam=function(a,b){return w_.uri.utils.lc(a,0,b,a.search(w_.uri.utils.Vd))>=0};
w_.uri.utils.getParamValue=function(a,b){var c=a.search(w_.uri.utils.Vd),d=w_.uri.utils.lc(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.Vd),d=0,e,f=[];(e=w_.uri.utils.lc(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.Ji=/[?&]$/;
w_.uri.utils.removeParam=function(a,b){w_.uri.utils.Bf(a);for(var c=a.length,d=0,e,f=[];(e=w_.uri.utils.lc(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.Ji,"")};w_.uri.utils.appendPath=function(a,b){w_.uri.utils.Jh(a);if(w_.string.td(a,"/"))a=a.substr(0,a.length-1);if(w_.string.Fc(b,"/"))b=b.substr(1);return w_.string.buildString(a,"/",b)};w_.Uri=function(a,b){var c;if(a instanceof w_.Uri){this.wa(b==w_c?a.rg():b);this.Ob(a.tc());this.Pb(a.uc());this.Jb(a.la());this.Mb(a.zb());this.Lb(a.Ha());this.Ec(a.Md().clone());this.Kb(a.nc())}else if(a&&(c=w_.uri.utils.split(String(a)))){this.wa(!!b);this.Ob(c[w_.uri.utils.ComponentIndex.SCHEME]||"",w_b);this.Pb(c[w_.uri.utils.ComponentIndex.USER_INFO]||"",w_b);this.Jb(c[w_.uri.utils.ComponentIndex.DOMAIN]||"",w_b);this.Mb(c[w_.uri.utils.ComponentIndex.PORT]);this.Lb(c[w_.uri.utils.ComponentIndex.PATH]||
"",w_b);this.pe(c[w_.uri.utils.ComponentIndex.QUERY_DATA]||"",w_b);this.Kb(c[w_.uri.utils.ComponentIndex.FRAGMENT]||"",w_b)}else{this.wa(!!b);this.G=new w_.Uri.QueryData(w_c,this,this.ba)}};w_.Uri.RANDOM_PARAM="zx";w_.Uri.prototype.fa="";w_.Uri.prototype.Sa="";w_.Uri.prototype.ja="";w_.Uri.prototype.Pa=w_c;w_.Uri.prototype.Oa="";w_.Uri.prototype.Ea="";w_.Uri.prototype.Kg=w_d;w_.Uri.prototype.ba=w_d;
w_.Uri.prototype.toString=function(){if(this.Z)return this.Z;var a=[];this.fa&&a.push(w_.Uri.wb(this.fa,w_.Uri.fh),":");if(this.ja){a.push("//");this.Sa&&a.push(w_.Uri.wb(this.Sa,w_.Uri.fh),"@");a.push(w_.Uri.di(this.ja));this.Pa!=w_c&&a.push(":",String(this.zb()))}this.Oa&&a.push(w_.Uri.wb(this.Oa,w_.Uri.Ai));var b=String(this.G);b&&a.push("?",b);this.Ea&&a.push("#",w_.Uri.wb(this.Ea,w_.Uri.zi));return this.Z=a.join("")};
w_.Uri.prototype.resolve=function(a){var b=this.clone(),c=a.Bg();if(c)b.Ob(a.tc());else c=a.Cg();if(c)b.Pb(a.uc());else c=a.Td();if(c)b.Jb(a.la());else c=a.zg();var d=a.Ha();if(c)b.Mb(a.zb());else if(c=a.Ud()){if(d.charAt(0)!="/")if(this.Td()&&!this.Ud())d="/"+d;else{var e=b.Ha().lastIndexOf("/");if(e!=-1)d=b.Ha().substr(0,e+1)+d}d=w_.Uri.removeDotSegments(d)}if(c)b.Lb(d);else c=a.Ag();if(c)b.pe(a.lg());else c=a.yg();c&&b.Kb(a.nc());return b};
w_.Uri.prototype.clone=function(){return w_.Uri.create(this.fa,this.Sa,this.ja,this.Pa,this.Oa,this.G.clone(),this.Ea,this.ba)};w_.Uri.prototype.tc=function(){return this.fa};w_.Uri.prototype.Ob=function(a,b){this.da();delete this.Z;if(this.fa=b?w_.Uri.Va(a):a)this.fa=this.fa.replace(/:$/,"");return this};w_.Uri.prototype.Bg=function(){return!!this.fa};w_.Uri.prototype.uc=function(){return this.Sa};w_.Uri.prototype.Pb=function(a,b){this.da();delete this.Z;this.Sa=b?w_.Uri.Va(a):a;return this};
w_.Uri.prototype.Cg=function(){return!!this.Sa};w_.Uri.prototype.la=function(){return this.ja};w_.Uri.prototype.Jb=function(a,b){this.da();delete this.Z;this.ja=b?w_.Uri.Va(a):a;return this};w_.Uri.prototype.Td=function(){return!!this.ja};w_.Uri.prototype.zb=function(){return this.Pa};w_.Uri.prototype.Mb=function(a){this.da();delete this.Z;if(a){a=Number(a);if(isNaN(a)||a<0)w_a(Error("Bad port number "+a));this.Pa=a}else this.Pa=w_c;return this};w_.Uri.prototype.zg=function(){return this.Pa!=w_c};
w_.Uri.prototype.Ha=function(){return this.Oa};w_.Uri.prototype.Lb=function(a,b){this.da();delete this.Z;this.Oa=b?w_.Uri.Va(a):a;return this};w_.Uri.prototype.Ud=function(){return!!this.Oa};w_.Uri.prototype.Ag=function(){return this.G.toString()!==""};w_.Uri.prototype.Ec=function(a,b){this.da();delete this.Z;if(a instanceof w_.Uri.QueryData){this.G=a;this.G.Qb=this;this.G.wa(this.ba)}else{b||(a=w_.Uri.wb(a,w_.Uri.Bi));this.G=new w_.Uri.QueryData(a,this,this.ba)}return this};
w_.Uri.prototype.pe=function(a,b){return this.Ec(a,b)};w_.Uri.prototype.qg=function(){return this.G.toString()};w_.Uri.prototype.lg=function(){return this.G.th()};w_.Uri.prototype.Md=function(){return this.G};w_.Uri.prototype.Ab=function(){return this.qg()};w_.Uri.prototype.Dc=function(a,b){this.da();delete this.Z;w_.isArray(b)||(b=[String(b)]);this.G.ph(a,b);return this};w_.Uri.prototype.tg=function(a){return this.G.get(a)};w_.Uri.prototype.nc=function(){return this.Ea};
w_.Uri.prototype.Kb=function(a,b){this.da();delete this.Z;this.Ea=b?w_.Uri.Va(a):a;return this};w_.Uri.prototype.yg=function(){return!!this.Ea};w_.Uri.prototype.removeParameter=function(a){this.da();this.G.remove(a);return this};w_.Uri.prototype.da=function(){if(this.Kg)w_a(Error("Tried to modify a read-only Uri"))};w_.Uri.prototype.wa=function(a){this.ba=a;this.G&&this.G.wa(a)};w_.Uri.prototype.rg=function(){return this.ba};
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.Ob(a);b&&h.Pb(b);c&&h.Jb(c);d&&h.Mb(d);e&&h.Lb(e);f&&h.Ec(f);g&&h.Kb(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.Fc(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.Va=function(a){return a?decodeURIComponent(a):""};
w_.Uri.di=function(a){if(w_.isString(a))return encodeURIComponent(a);return w_c};w_.Uri.ci=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/;w_.Uri.wb=function(a,b){var c=w_c;if(w_.isString(a)){c=a;w_.Uri.ci.test(c)||(c=encodeURI(a));if(c.search(b)>=0)c=c.replace(b,w_.Uri.bi)}return c};w_.Uri.bi=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};w_.Uri.fh=/[#\/\?@]/g;w_.Uri.Ai=/[\#\?]/g;w_.Uri.Bi=/[\#\?@]/g;w_.Uri.zi=/#/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.ka=a||w_c;this.Qb=b||w_c;this.ba=!!c};
w_.Uri.QueryData.prototype.R=function(){if(!this.i){this.i=new w_.structs.Map;if(this.ka)for(var a=this.ka.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.ma(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.o(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.Da=w_c;
w_.Uri.QueryData.prototype.T=function(){this.R();return this.g};w_.Uri.QueryData.prototype.add=function(a,b){this.R();this.La();a=this.ma(a);if(this.u(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.ma(a);if(this.i.u(a)){this.La();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.La();this.i&&this.i.clear();this.g=0};w_.Uri.QueryData.prototype.z=function(){this.R();return this.g==0};w_.Uri.QueryData.prototype.u=function(a){this.R();a=this.ma(a);return this.i.u(a)};w_.Uri.QueryData.prototype.ia=function(a){var b=this.o();return w_.array.contains(b,a)};
w_.Uri.QueryData.prototype.l=function(){this.R();for(var a=this.i.o(),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.o=function(a){this.R();if(a){a=this.ma(a);if(this.u(a)){var b=this.i.get(a);if(w_.isArray(b))return b;else{a=[];a.push(b)}}else a=[]}else{b=this.i.o();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.La();a=this.ma(a);if(this.u(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.ma(a);if(this.u(a)){a=this.i.get(a);return w_.isArray(a)?a[0]:a}else return b};
w_.Uri.QueryData.prototype.ph=function(a,b){this.R();this.La();a=this.ma(a);if(this.u(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.ka)return this.ka;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.ka=a.join("")};w_.Uri.QueryData.prototype.th=function(){if(!this.Da)this.Da=w_.Uri.Va(this.toString());return this.Da};
w_.Uri.QueryData.prototype.La=function(){delete this.Da;delete this.ka;this.Qb&&delete this.Qb.Z};w_.Uri.QueryData.prototype.clone=function(){var a=new w_.Uri.QueryData;if(this.Da)a.Da=this.Da;if(this.ka)a.ka=this.ka;if(this.i)a.i=this.i.clone();return a};w_.Uri.QueryData.prototype.ma=function(a){a=String(a);if(this.ba)a=a.toLowerCase();return a};
w_.Uri.QueryData.prototype.wa=function(a){var b=a&&!this.ba;if(b){this.R();this.La();w_.structs.forEach(this.i,function(c,d){var e=d.toLowerCase();if(d!=e){this.remove(d);this.add(e,c)}},this)}this.ba=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.Qb=new w_.Uri(a);this.Lh=b?b:"callback";this.Ic=5000};w_.net.Jsonp.CALLBACKS="_callbacks_";w_.net.Jsonp.Ei=0;w_.net.Jsonp.prototype.qe=function(a){this.Ic=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.Ei++).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.Ic>0){f=w_.net.Jsonp.qi(d,e,a,c);f=w_.global.setTimeout(f,this.Ic)}c=this.Qb.clone();w_.net.Jsonp.Hh(a,c);if(b){a=w_.net.Jsonp.ri(d,e,b,f);w_.global[w_.net.Jsonp.CALLBACKS][d]=a;c.Dc(this.Lh,w_.net.Jsonp.CALLBACKS+
"."+d)}w_.dom.Nb(e,{type:"text/javascript",id:d,charset:"UTF-8",src:c.toString()});w_.dom.appendChild(document.getElementsByTagName("head")[0],e);return{Ti:d,Ic:f}};w_.net.Jsonp.qi=function(a,b,c,d){return function(){w_.net.Jsonp.Lf(a,b,w_d);d&&d(c)}};w_.net.Jsonp.ri=function(a,b,c,d){return function(){w_.global.clearTimeout(d);w_.net.Jsonp.Lf(a,b,w_b);c.apply(undefined,arguments)}};
w_.net.Jsonp.Lf=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.Hh=function(a,b){for(var c in a)if(!a.hasOwnProperty||a.hasOwnProperty(c))b.Dc(c,a[c]);return b};var w_1=function(a){this.a=a};w_1.prototype.b=function(){return this.a};w_1.prototype.d=function(){return"Feed"};w_1.prototype.c=function(a,b){this.a.k(b)};w_1.prototype.j=function(){if(this.Xa=this.a.Y("feedItemListDisplay")){var a=this.b().n();a=new w_2(a.feedUrl,this.Xa,{numItemsShow:a.numItemsShow,showItemAuthor:a.showItemAuthor,showItemDate:a.showItemDate,linkTarget:"_self"});a.Zb()}};
w_1.Ch={moduleTitle:w_c,feedUrl:w_C.GetRequiredStringFilter(),numItemsShow:w_C.GetNumberFilter(1,5),showItemDate:w_c,showItemAuthor:w_c,securityToken:w_c};w_1.setConfigurationOptions=function(){w_y.ConfigureWidget(w_1.Ch)};var w_2=function(a,b,c){this.ud=a;this.Xa=b;this.K=c};w_2.Fh=200;w_2.Bh="http://ajax.googleapis.com/ajax/services/feed/load";w_2.prototype.Zb=function(){var a=new w_.net.Jsonp(w_2.Bh);a.qe(-1);a.send({q:this.ud,num:this.K.numItemsShow,output:"json",v:"1.0"},w_w(this.ff,this))};
w_2.prototype.ff=function(a){w_.dom.Hb(this.Xa);if(a.responseStatus==w_2.Fh){var b=w_.dom.createElement("ul");this.Xa.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.r("a",{href:d.link},d.title);f.target=this.K.linkTarget;e.appendChild(w_.dom.r("span",{"class":"item-title"},f));if(this.K.showItemDate){f=w_.dom.r("span",{"class":"item-date"},"\u00a0-\u00a0"+(new Date(d.publishedDate)).toLocaleDateString());
e.appendChild(f)}if(this.K.showItemAuthor){d=w_.dom.r("span",{"class":"item-author"},"\u00a0-\u00a0"+d.author);e.appendChild(d)}}this.jd&&this.jd(a.responseData.feed)}else{this.Xa.appendChild(w_.dom.r("span",w_c,"Error loading feed."));this.ag&&this.ag()}};w_2.prototype.jf=function(a){this.jd=a};w_2.prototype.Fe=function(){this.jd=this.ag=w_c};w_2.prototype.ad=function(a){this.ud=a};w_2.prototype.Zc=function(a){this.K=a};var _FeedView=w_1;_FeedView._setConfigurationOptions=w_1.setConfigurationOptions;var w_3=function(a,b,c){this.oi=b;this.Ac=c;this.ih=w_d;this.te=new w_D("status-message");this.K={linkTarget:"_blank"};this.va=new w_2(this.ud,a,this.K)};w_3.Ah="moduleTitle";w_3.Qi="feedUrl";w_3.Me="step1";w_3.Ne="step2";w_3.Rb="feedUrl";w_3.prototype.Je=function(a,b){this.te.Lc();w_C.ClearError(w_3.Rb);if(a){a=document.getElementById(w_3.Ah);a.value=b.title;this.Yb(b.title)}this.Ve()};w_3.prototype.nf=function(){this.te.Lc();w_C.SetError(w_3.Rb,this.Ac._invalidFeedUrl);this.Ub()};
w_3.prototype.Ub=function(){w_o(document.getElementById(w_3.Me),w_b);w_o(document.getElementById(w_3.Ne),w_d)};w_3.prototype.Ve=function(){w_o(document.getElementById(w_3.Me),w_d);w_o(document.getElementById(w_3.Ne),w_b)};w_3.prototype.Yb=function(a){this.oi.innerHTML=a};w_3.prototype.cd=function(a){this.K.showItemAuthor=a;this.$b()};w_3.prototype.dd=function(a){this.K.showItemDate=a;this.$b()};w_3.prototype.bd=function(a){this.K.numItemsShow=a;this.$b()};
w_3.prototype.$b=function(){this.va.Zc(this.K);this.va.Fe();this.va.Zb()};w_3.prototype.Xc=function(a,b,c,d){if(!a||a=="")w_C.SetError(w_3.Rb,this.Ac._missingFeedUrl);else if(a.length>2083)w_C.SetError(w_3.Rb,this.Ac._feedUrlTooLong);else{this.te.N(this.Ac._retrievingFeed);this.lf(a,b,c);this.ih=d;this.He(a,w_w(this.Ce,this))}};w_3.prototype.He=function(a,b){if(a.indexOf("http://")!=0)a="http://"+a;var c=new w_.net.Jsonp("http://www.google.com/uds/GlookupFeed");c.qe(-1);c.send({q:a,v:"1.0"},b)};
w_3.prototype.Ce=function(a){if(a.responseStatus==200){document.getElementById("feedUrl").value=a.responseData.url;this.va.ad(a.responseData.url);this.va.jf(w_w(this.Je,this,this.ih));this.va.Zb()}else this.nf()};w_3.prototype.lf=function(a,b){this.K=b;this.va.ad(a);this.va.Zc(this.K)};w_3.prototype._GoToStep1=w_3.prototype.Ub;w_3.prototype._RetrieveFeedAndGoToStep2=w_3.prototype.Xc;w_3.prototype._RefreshModuleTitle=w_3.prototype.Yb;w_3.prototype._SetShowItemAuthor=w_3.prototype.cd;
w_3.prototype._SetShowItemDate=w_3.prototype.dd;w_3.prototype._SetNumItemsShow=w_3.prototype.bd;var _FeedConfig=w_3;function w_4(a){this.a=a;this.e=a.s()}w_4.WIDGET_TYPE_NAME="Followers";w_4.prototype.h=function(){return w_d};w_4.prototype.d=function(){return w_4.WIDGET_TYPE_NAME};w_4.prototype.b=function(){return this.a};w_4.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};w_4._openPopup=function(a){a=a.indexOf("?")>0?a+"&":a+"?";a=a+"loginTemplateDirectory=FOLLOWING";window.open(a,"_blank","height=600, width=640, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no")};
w_4.prototype.Ba=function(){return w_b};var _FollowersView=w_4;function w_5(a){this.a=a;this.e=a.s()}w_5.prototype.d=function(){return"Gadget"};w_5.prototype.b=function(){return this.a};w_5.prototype.c=function(a,b){this.a.k(b)};w_5.prototype.gf=function(a){var b=document.getElementById(this.f);if(b)b.style.height=a+"px"};w_5.prototype.Vc=function(){gadgets.rpc.register("resize_iframe",this.gf);gadgets.rpc.register("set_pref",function(){})};
w_5.prototype.j=function(){if(!w_5.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.Vc()};a.onreadystatechange=function(){if(this.readyState=="loaded"||this.readyState=="complete")b.Vc()};document.getElementsByTagName("body")[0].appendChild(a);w_5.InitializedRpc=function(){}}};w_5.prototype.Ba=function(){return w_b};var _GadgetView=w_5;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_6(a){this.a=a;this.e=a.s()}w_6.WIDGET_TYPE_NAME="Subscribe";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)};var _SubscribeView=w_6;function w_7(){}w_7.Dh={title:w_c,adLocation:w_c,publisherId:w_c,securityToken:w_c};w_7.Configure=function(){w_y.ConfigureWidget(w_7.Dh)};w_7.toggleAdLocation=function(a){var b=document.getElementById("publisher-id-note");b.style.display=a.value!="ReSearchAdLocation.NONE"?"block":"none"};var _ReSearchConfig=w_7;_ReSearchConfig._Configure=_ReSearchConfig.Configure;_ReSearchConfig._toggleAdLocation=_ReSearchConfig.toggleAdLocation;w_G.research={};w_G.research.SearchEngineInfo=function(a,b,c){this.pi=a;this.ja=b;this.yi=c};w_G.research.SearchEngineInfo.prototype.yb=function(){return this.pi};w_G.research.SearchEngineInfo.prototype.la=function(){return this.ja};w_G.research.SearchEngineInfo.prototype.ug=function(){return this.yi};w_G.research.ParsedReferrer=function(a){this.hh=new w_.Uri(a);this.Ib=w_c;this.dh="";this.db()};w_G.research.ParsedReferrer.SearchEngineInfos=[new w_G.research.SearchEngineInfo("AOL","search.aol.com","query"),new w_G.research.SearchEngineInfo("Ask","www.ask.com","q"),new w_G.research.SearchEngineInfo("Bing","www.bing.com","q"),new w_G.research.SearchEngineInfo("Google","www.google.com","q"),new w_G.research.SearchEngineInfo("Yahoo","search.yahoo.com","p")];
w_G.research.ParsedReferrer.prototype.$g=function(){var a=this.Ib.ug();a=this.hh.tg(a);return this.hg(a?a:"")};w_G.research.ParsedReferrer.prototype.hg=function(a){return a.replace("+"," ")};w_G.research.ParsedReferrer.prototype.db=function(){for(var a=w_G.research.ParsedReferrer.SearchEngineInfos.length,b=0;b<a;b++){var c=w_G.research.ParsedReferrer.SearchEngineInfos[b];if(this.hh.la().indexOf(c.la())!=-1){this.Ib=c;this.dh=this.$g();break}}};
w_G.research.ParsedReferrer.prototype.Lg=function(){return this.Ib!=w_c};w_G.research.ParsedReferrer.prototype.yb=function(){return this.Ib!=w_c?this.Ib.yb():""};w_G.research.ParsedReferrer.prototype.Ab=function(){return this.dh};w_G.research.ReSearch=function(a,b,c,d,e,f,g,h){this.ac=a;this.Kh=b;this.vf=c;this.Gh=d;this.Bc=new w_G.research.ParsedReferrer(e);this.vi=f;this.ua=w_.dom.Kc(g);this.lh=h};w_G.research.ReSearch.MAX_RESULTS=3;w_G.research.ReSearch.AdLocation={NONE:"NONE",LEFT:"LEFT",RIGHT:"RIGHT"};w_G.research.ReSearch.prototype.gg=function(a){a=a.replace("&amp;"," & ");return a=a.replace("&#39;","'")};
w_G.research.ReSearch.prototype.rh=function(){var a=w_.dom.X(w_.dom.TagName.UL,"re-search-posts",this.ua)[0];a=w_.dom.X(w_.dom.TagName.LI,w_c,a);for(var b=0;b<a.length;b++){var c=a[b];c.style.display="list-item"}w_.dom.X(w_.dom.TagName.A,"show-more-link",this.ua)[0];if(a=w_.dom.X(w_.dom.TagName.DIV,"re-search-ad",this.ua)[0]){b=w_.dom.X(w_.dom.TagName.DIV,"re-search-results",this.ua)[0];b=b.offsetHeight+5+"px";c=w_.dom.X(w_.dom.TagName.DIV,"re-search",this.ua)[0];c.style.height=b;a.style.height=b}};
w_G.research.ReSearch.prototype.Zf=function(){var a=this.ac.results;if(a&&a.length>0){var b=w_c;if(this.vf!=w_G.research.ReSearch.AdLocation.NONE){b=w_.dom.r(w_.dom.TagName.IFRAME,{src:this.Gh,width:"125",height:"125",scrolling:"no",frameborder:"0",marginheight:"0",marginwidth:"0"});var c,d="float: none;";switch(this.vf){case w_G.research.ReSearch.AdLocation.LEFT:c="float: left;";d="float: right;";if(this.lh=="main")d=d+"padding-left: 15px;";break;case w_G.research.ReSearch.AdLocation.RIGHT:c="float: right;";
d="float: left;";break;default:w_a(Error("Unsupported ad location."))}b=w_.dom.r(w_.dom.TagName.DIV,{"class":"re-search-ad",style:c},b)}var e="You searched "+(this.Bc.yb()+(' for <span>"'+(this.Bc.Ab()+'"</span>. Here are some other posts that might be relevant:')));c=w_.dom.r(w_.dom.TagName.DIV,{"class":"re-search-message"});c.innerHTML=e;e=w_d;for(var f=w_.dom.r(w_.dom.TagName.UL,{"class":"re-search-posts"}),g=0,h=0;g<a.length;g++){var i=a[g],k=this.gg(String(i.titleNoFormatting));if(!(k.indexOf(this.vi)!=
-1)){i=i.postUrl;k=w_.dom.r(w_.dom.TagName.A,{href:i,target:"_blank"},k);k=w_.dom.r(w_.dom.TagName.LI,{"class":"re-search-post-item"},k);if(h>=w_G.research.ReSearch.MAX_RESULTS){k.style.display="none";e=w_b}else h++;w_.dom.appendChild(f,k)}}a=w_.dom.r(w_.dom.TagName.DIV,{"class":"re-search-results",style:d},c,f);if(e){d=w_.dom.r(w_.dom.TagName.A,{"class":"show-more-link",href:"javascript:void(0)",onclick:this.rh},"Show more results..");w_.dom.appendChild(a,d)}d=w_.dom.X(w_.dom.TagName.DIV,"re-search",
this.ua)[0];w_.dom.appendChild(d,a);b!=w_c&&w_.dom.yc(b,d.firstChild);a=w_.dom.X(w_.dom.TagName.DIV,"re-search-container",this.ua)[0];a.style.display="block";if(b!=w_c&&this.lh=="main"){a=w_.dom.X(w_.dom.TagName.DIV,"re-search-results",this.ua)[0];b=a.offsetWidth;b=b-140+"px";a.style.width=b}}};w_G.research.ReSearch.prototype.kh=function(){this.ac.setSiteRestriction(this.Kh);this.ac.setSearchCompleteCallback(this,this.Zf,w_c);this.ac.execute(this.Bc.Ab())};
w_G.research.ReSearch.prototype.run=function(){this.Bc.Lg()&&this.kh()};function w_8(a){this.a=a}w_8.WIDGET_TYPE_NAME="ReSearch";w_8.prototype.d=function(){return w_8.WIDGET_TYPE_NAME};w_8.prototype.b=function(){return this.a};w_8.prototype.h=function(){return w_d};w_8.prototype.c=function(a,b){a=="configure"&&this.a.k(b)};
function w_Ta(){var a=this.n(),b=new google.search.BlogSearch,c=a.blogHomepageUrl,d=a.adLocation,e=a.adCodeUri,f=document.referrer;a=a.postTitleFilter;var g=this.s().instanceId,h=this.s().sectionId;b=new w_G.research.ReSearch(b,c,d,e,f,a,g,h);b.run()}w_8.prototype.j=function(){var a=this.b();google.load("search","1");google.setOnLoadCallback(w_Ta.bind(a))};var _ReSearchView=w_8;_ReSearchView._Configure=_ReSearchView.Configure;function w_9(a){this.a=a;this.e=a.s()}w_9.WIDGET_TYPE_NAME="ThumbnailArchive";w_9.TABLE_NAME="thumbnailarchive-container";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)};var _ThumbnailArchiveView=w_9;_ThumbnailArchiveView._Configure=_ThumbnailArchiveView.Configure;if(window.jstiming){window.jstiming.Ef={};window.jstiming.Ci=1;function w_$(a,b,c){var d=a.t[b];if(!d)return undefined;d=a.t[b][0];if(c!=undefined)a=c;else a=a.t.start[0];return d-a}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}catch(e){}if(a.Sh)d+="&"+a.Sh;var f=a.t,g=f.start,h=[],i=[],k=[];for(var j in f)if(!(j=="start"))if(!(j.indexOf("_")==
0)){var l=f[j][1];if(l){if(f[l]){i.push(j+"."+w_$(a,j,f[l][0]));k.push(w_$(a,j))}}else g&&h.push(j+"."+w_$(a,j))}delete f.start;if(b)for(var m in b)d+="&"+m+"="+b[m];a=[c?c:"http://csi.gstatic.com/csi","?v=3","&s="+(window.jstiming.sn||"blogger")+"&action=",a.name,i.length?"&it="+i.join(","):"",k.length?"&irt="+k.join(","):"",d,"&rt=",h.join(",")].join("");b=new Image;var n=window.jstiming.Ci++;window.jstiming.Ef[n]=b;b.onload=b.onerror=function(){delete window.jstiming.Ef[n]};b.src=a;b=w_c;return a}};w_.events.EventTarget=function(){};w_.inherits(w_.events.EventTarget,w_.Disposable);w_.events.EventTarget.prototype.pd=w_b;w_.events.EventTarget.prototype.je=w_c;w_.events.EventTarget.prototype.Kd=function(){return this.je};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.Hc.L.call(this);w_.events.removeAll(this);this.je=w_c};w_G.util={};w_G.util.logging={};w_G.util.logging.PROD_BLOGGER_HOST_URL="www.blogger.com";w_G.util.logging.Dg=w_G.util.logging.PROD_BLOGGER_HOST_URL;w_G.util.logging.setHostPort=function(a){w_G.util.logging.Dg=a};w_G.util.logging.Rg="/nc";w_G.util.logging.setLoggingPath=function(a){w_G.util.logging.Rg=a};w_G.util.logging.ParamKey={EVENT_TYPE:"e",SOURCE_PAGE:"pg",DURATION:"dur"};w_G.util.logging.EventType={UNLOAD_PAGE:"u",CLICK:"c"};w_G.util.logging.SourcePage={EXPLORE:"be",BLOG:"blog",POST:"post"};
w_G.util.logging.formatId=function(a,b){if(a)return b?a+":"+b:a;return""};w_G.util.logging.gh=w_d;w_G.util.logging.setReferredFromExplore=function(a){w_G.util.logging.gh=a};w_G.util.logging.isReferredFromExplore=function(){return w_G.util.logging.gh};w_G.util.logging.mi=function(a,b,c){if(a){var d=w_.Uri.parse(a);a=d.la().toLowerCase();d=d.Ha();if(d==c){if(a==w_G.util.logging.PROD_BLOGGER_HOST_URL)return w_b;if(b.indexOf(w_G.util.logging.PROD_BLOGGER_HOST_URL)<0)return w_b}}return w_d};
w_G.util.logging.log=function(a){var b=w_G.util.logging.Dg+w_G.util.logging.Rg;b=w_.Uri.parse(b);var c=w_d;for(var d in a){c=w_b;b.Dc(d,a[d])}if(c){(new Image).src=b.toString();return b}return w_c};w_G.util.logging.logWithParameterMap=function(a){if(!w_G.util.logging.Na[a])return w_c;return w_G.util.logging.log(w_G.util.logging.Na[a])};w_G.util.logging.Na={};
w_G.util.logging.addParametersToMap=function(a,b){var c=w_G.util.logging.Na[a];if(c)for(var d in b){if(c[d])return w_c}else{c={};w_G.util.logging.Na[a]=c}for(d in b)c[d]=b[d];return w_G.util.logging.Na[a]};w_G.util.logging.clearParameterMap=function(a){delete w_G.util.logging.Na[a]};w_G.util.logging.Wb="paramMapPageUnload_InternalUseOnly";w_G.util.logging.addToPageUnloadParameterMap=function(a){return w_G.util.logging.addParametersToMap(w_G.util.logging.Wb,a)};w_G.util.logging.Wa={};
w_G.util.logging.registerEvent=function(a){if(w_G.util.logging.Wa[a])return-1;w_G.util.logging.Wa[a]=w_.now();return w_G.util.logging.Wa[a]};w_G.util.logging.getEventElapse=function(a){if(!w_G.util.logging.Wa[a])return-1;return w_.now()-w_G.util.logging.Wa[a]};w_G.util.logging.clearEvent=function(a){delete w_G.util.logging.Wa[a]};w_G.util.logging.Mc="eventPageLoading_InternalUseOnly";w_G.util.logging.getDurationMillis=function(){return w_G.util.logging.getEventElapse(w_G.util.logging.Mc)};
w_G.util.logging.pageOnBeforeUnload=function(){if(w_G.util.logging.Na[w_G.util.logging.Wb]==undefined)return w_c;var a={};a[w_G.util.logging.ParamKey.DURATION]=w_G.util.logging.getDurationMillis();w_G.util.logging.addToPageUnloadParameterMap(a);return w_G.util.logging.logWithParameterMap(w_G.util.logging.Wb)};
w_G.util.logging.initialize=function(a,b,c){w_G.util.logging.setHostPort(a);w_G.util.logging.setReferredFromExplore(w_G.util.logging.mi(b,a,"/explore"));w_G.util.logging.clearEvent(w_G.util.logging.Mc);w_G.util.logging.registerEvent(w_G.util.logging.Mc);w_G.util.logging.clearParameterMap(w_G.util.logging.Wb);c&&w_.events.listen(window,"beforeunload",function(){w_G.util.logging.pageOnBeforeUnload()})};

