var w_a=false;function w_b(a){try{throw a;}catch(b){w_c(b)}}function w_c(a,b){var c="Javascript exception: "+(b?b:"")+" "+a;if(w_d())c+=" "+a.name+": "+a.message+" ("+a.number+")";var d="";if(typeof a=="string")d=a+"\n";else for(var e in a)try{d+=e+": "+a[e]+"\n"}catch(f){}d+=w_e(w_c.caller);w_aa(c+"\n"+d,1)}var w_ba=/function (\w+)/;function w_ca(a){var b=w_ba.exec(String(a));if(b)return b[1];return""}function w_e(a){try{if(!w_d()&&!(w_f("safari")||w_f("konqueror"))&&w_f("mozilla"))return Error().stack;
if(!a)return"";var b="- "+w_ca(a)+"(";for(var 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_e(a.caller);return b}catch(e){return"[Cannot get stack trace]: "+e+"\n"}}var w_da,w_g=null,w_h=false;function w_ea(){if((w_g==null||w_g.closed)&&!w_h)try{w_h=true;w_g=window.open("","debug","width=700,height=500,toolbar=no,resizable=yes,scrollbars=yes,left=16,top=16,screenx=16,screeny=16");w_g.blur();w_g.document.open();w_h=
false;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_i(a)}catch(b){}}function w_aa(a,b){if(!w_a){if(typeof w_j!="undefined")w_j(w_k(a));return}try{var c=(new Date).getTime()-w_da,d="["+c+"] "+w_k(a).replace(/\n/g,"<br>")+"<br>";if(b==1){d="<font color=#ff0000><b>Error: "+d+"</b></font>";w_g.focus()}}catch(e){}w_i(d)}function w_i(a){if(!w_a)return;try{w_ea();w_g.document.write(a);w_g.scrollTo(0,1000000)}catch(b){}}
;function w_f(a){if(a in w_l)return w_l[a];return w_l[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}var w_l={};function w_d(){return w_f("msie")&&!window.opera}function w_fa(a){if(typeof Error!="undefined")throw new Error(a||"Assertion Failed");else throw a;}function w_ga(a){a=a||"Assertion failed";if(typeof w_b!="undefined")w_b(a+"\n");w_fa(a)}function w_m(a,b){if(!a){b=b||"Assertion failed";w_ga(b)}}function w_ha(a,b){a.style.display=b?"":"none"}function w_ia(a,b){a.style.display=b?"block":
"none"}function w_n(a,b){a.style.display=b?"inline":"none"}function w_o(a,b){if(a==null||a.className==null)return false;if(a.className==b)return true;var c=a.className.split(" ");for(var d=0;d<c.length;d++)if(c[d]==b)return true;return false}function w_p(a,b){if(w_o(a,b))return;a.className+=" "+b}function w_q(a,b){if(a.className==null)return;if(a.className==b){a.className="";return}var c=a.className.split(" "),d=[],e=false;for(var f=0;f<c.length;f++)if(c[f]!=b){if(c[f])d.push(c[f])}else e=true;if(e)a.className=
d.join(" ")}function w_r(a,b){var c=[];for(var d=a.firstChild;d;d=d.nextSibling)w_ja(d,b,c);return c}function w_ja(a,b,c){if(b.select(a))c.push(a);for(var d=a.firstChild;d;d=d.nextSibling)w_ja(d,b,c)}var w_ka=/&/g,w_la=/</g,w_ma=/>/g;function w_k(a){if(!a)return"";return a.replace(w_ka,"&amp;").replace(w_la,"&lt;").replace(w_ma,"&gt;").replace(w_na,"&quot;")}var w_na=/\"/g;function w_oa(a){return document.getElementById(a)}function w_pa(a){return document.all[a]}var w_qa=document.getElementById?w_oa:
w_pa;function w_j(a){try{if(window.parent!=window&&window.parent.log){window.parent.log(window.name+"::"+a);return}}catch(b){}var c=w_qa("log");if(c){var d="<p class=logentry><span class=logdate>"+new Date+"</span><span class=logmsg>"+a+"</span></p>";c.innerHTML=d+c.innerHTML}else window.status=a};function w_s(){}w_s.raise=function(a){if(typeof Error!="undefined")throw new Error(a||"Assertion Failed");else throw a;};w_s.fail=function(a){a=a||"Assertion failed";if(!(typeof w_b=="undefined"))w_b(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)return;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"){var e=b.toString().match(/^\s*function\s+([^\s\{]+)/);if(e)b=e[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_ra(){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)throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed.");}}w_ra();function w_sa(a,b,c,d){a.open("POST",b,true);a.onreadystatechange=d;a.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
a.setRequestHeader("Content-Length",c.length);w_ta(a,c)}function w_ta(a,b){try{a.send(b)}catch(c){w_j("XMLHttpSend failed "+c.toString()+"<br>"+c.stack);throw c;}};var w_ua=0,w_u=0;if("undefined"==typeof w_j)w_j=function(){};function w_va(a){var b=-1;try{b=a.status}catch(c){}return b}function w_wa(a){var b=null;try{b=a.statusText}catch(c){}return b}function w_xa(a,b,c,d){if(a.readyState==4)try{var e=true;if(d)try{e=!(false===d(a))}catch(f){w_j("Message ("+b+") handling failed: "+f);throw f;}var g=w_va(a);if(200===g){w_j("Message ("+b+") received after "+((new Date).getTime()-c)+" ms");try{var h=(new Date).getTime();if(e&&a.responseText.length)eval(a.responseText);
w_j("Message ("+b+") processing took "+((new Date).getTime()-h)+" ms")}catch(f){w_j("Message ("+b+") processing failed: "+f);alert(f+"\n"+f.stack+"\n\n"+a.responseText);throw f;}}else if(204==g)w_j("Message ("+b+") received after "+((new Date).getTime()-c)+" ms");else w_j("Message ("+b+") failed with response "+g+" "+w_wa(a)+" after "+((new Date).getTime()-c)+" ms.")}finally{--w_u}}function w_ya(a,b,c){var d="";if(b){var e="";for(var f=0;f<b.length;){var g=b[f++],h=b[f++];d+=e+encodeURIComponent(g);
e="&";if(null!==h&&undefined!==h)d+="="+encodeURIComponent(h.toString())}}var i=++w_ua,j=w_t?new ActiveXObject(w_t):new XMLHttpRequest,k=(new Date).getTime(),l=function(){w_xa(j,i,k,c)},m=a;for(var n=m.length+1;(n=m.lastIndexOf("&",n-1))>=0;)m=m.substring(0,n)+"&amp;"+m.substring(n+1);w_j("Message ("+i+") sent: POST <tt>"+m+"</tt>.");++w_u;w_sa(j,a,d,l)};var w_za=this;if(!Function.prototype.apply)Function.prototype.apply=function(a,b){var c=[],d,e;if(!a)a=w_za;var f=b||[];for(var g=0;g<f.length;g++)c[g]="args["+g+"]";e="oScope.__applyTemp__.peek()("+c.join(",")+");";if(!a.__applyTemp__)a.__applyTemp__=[];a.__applyTemp__.push(this);d=eval(e);a.__applyTemp__.pop();return d};if(!Array.prototype.push)Array.prototype.push=function(){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)return;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)return;var a=this[0];for(var b=0;b<this.length-1;b++)this[b]=this[b+1];this.length--;return a};if(!Array.prototype.unshift)Array.prototype.unshift=function(){var a=arguments.length;for(var b=this.length-1;b>=0;b--)this[b+a]=this[b];for(var c=0;c<a;c++)this[c]=arguments[c];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_v(a,b){var c=a.Fc||[];c=c.concat(Array.prototype.slice.call(arguments,2));if(typeof a.bc!="undefined")b=a.bc;if(typeof a.ac!="undefined")a=a.ac;var d=function(){var e=c.concat(Array.prototype.slice.call(arguments));return a.apply(b,e)};d.Fc=c;d.bc=b;d.ac=a;return d}Function.prototype.bind=function(a){return w_v.apply(null,[this,a].concat(Array.prototype.slice.call(arguments,
1)))};Function.prototype.inherits=function(a){var b=function(){};b.prototype=a.prototype;this.Vc=a.prototype;this.prototype=new b};function w_w(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.A=f;if(!w_w.IsValidDisplayMode(f))throw"bad display mode: "+f;}else this.A=w_w.DISPLAY_MODE_NONE;this.isNew=false}w_w.IsValidDisplayMode=function(a){return a==w_w.DISPLAY_MODE_SNIPPET||a==w_w.DISPLAY_MODE_FULL||a==w_w.DISPLAY_MODE_LAYOUT||a==w_w.DISPLAY_MODE_NONE};w_w.DISPLAY_MODE_FULL="displayModeFull";w_w.DISPLAY_MODE_SNIPPET="displayModeSnippet";w_w.DISPLAY_MODE_LAYOUT=
"displayModeLayout";w_w.DISPLAY_MODE_NONE="displayModeNone";function w_x(a){this.Hc=true;this.eb=new w_y(this);this.e=a;this.G=null}w_x.DATA_NAMESPACE_PREFIX="data";w_x.ACTION_NAMESPACE_PREFIX="b";w_x.INTERPRET_ATTR_NAMESPACE_PREFIX="expr";w_x.prototype.jb=function(){var a=this.e.rootElement;a.innerHTML="";if(this.O()==w_w.DISPLAY_MODE_LAYOUT)a.appendChild(this.Z("layout"));else a.appendChild(this.Z("main"));return a};w_x.prototype.Qb=function(a){this.G=a};w_x.prototype.l=function(){return this.e};
w_x.prototype.t=function(a){return document.getElementById(this.e.instanceId+"_"+a)};w_x.prototype.p=function(a){var b=this.t(a);if(!b)throw"did not find element for id "+a;return b};w_x.prototype.k=function(){return this.e.data};w_x.prototype.Ca=function(a){return this.e.data=a};w_x.prototype.Bb=function(){return this.e.isNew};w_x.prototype.Pb=function(a){return this.e.isNew=a};w_x.prototype.Z=function(a,b){var c=b;if(!c)c=this.k();if(!c)c={};var d=new w_z;d.N("widget",this.qb());d.fb(c);var e=this.qa(a,
d,w_z.DEFAULT_DICTIONARY_KEY);return this.pa(e,document)};w_x.prototype.qb=function(){var a={};a.type=this.G.d();a.instanceId=this.e.instanceId;a.sectionId=this.e.sectionId;a.actionUrl=w_.Ka;var b=w_.cc+"&widgetType="+this.G.d()+"&widgetId="+this.e.instanceId+"&action="+w_.EDIT_WIDGET_ACTION;a.quickEditUrl=b;return a};w_x.prototype.qa=function(a,b,c){var d=this.vb(a);w_s.isTrue(d!=null,"Markup chunk not found for "+a);var e=d.varName?d.varName:"",f=b.k(c);w_s.isTrue(f!=null,"No data found for call: "+
c);b.N(e,f);var g=this.Q(d.rootNode,b);b.za(e);return g};w_x.prototype.Q=function(a,b){w_s.isTrue(a!=null,"Null node");var c=a;if(a.attributes){var d=[],e=[];for(var f=0;f<a.attributes.length;f++){var g=a.attributes.item(f),h=this.Fb(g,b);if(g!=h){e[e.length]=g.nodeName;d[d.length]=h}}for(var f=0;f<e.length;f++)a.attributes.removeNamedItem(e[f]);for(var f=0;f<d.length;f++)a.attributes.setNamedItem(d[f])}if(a.nodeType==1)if(a.prefix==w_x.ACTION_NAMESPACE_PREFIX)c=this.zb(a,b);else if(a.prefix==w_x.DATA_NAMESPACE_PREFIX)c=
this.yb(a,b);if(a.hasChildNodes()){var i=a.ownerDocument.createDocumentFragment();while(a.hasChildNodes()){var j=a.firstChild,k=this.Q(j,b);i.appendChild(k);if(j!=k)a.removeChild(j)}c.appendChild(i)}return c};w_x.prototype.Fb=function(a,b){if(a.prefix==w_x.INTERPRET_ATTR_NAMESPACE_PREFIX){var c=a.ownerDocument.createAttribute(a.localName||a.baseName),d=this.eb.la(a.nodeValue,b);c.nodeValue=d;return c}return a};w_x.prototype.zb=function(a,b){var c=a.localName||a.baseName,d=this.Ba(c,a,b);return this.Wb(d)};
w_x.prototype.Wb=function(a){var b=a;if(!a)return document.createDocumentFragment();if(!a.nodeType)b=document.createTextNode(a);if(b.nodeType==3){var c=document.createDocumentFragment();c.appendChild(b);b=c}return b};w_x.prototype.W=function(a,b){var c=this.R(a);return b.k(c[1])};w_x.prototype.yb=function(a,b){w_s.isTrue(a!=null,"Null element");w_s.isTrue(b!=null,"Null data");if(a.prefix!=w_x.DATA_NAMESPACE_PREFIX)return a;var c=this.W(a.tagName,b),d=""+(c==null?"":c),e=document.createElement("DIV");
e.innerHTML=d;var f=this.P(e);return this.pa(f,a.ownerDocument,true)};w_x.prototype.R=function(a){var b=a.split(":",2);if(b.length==1)b.unshift("");b[0]=b[0].toLowerCase();return b};w_x.prototype.Ba=function(a,b,c){var d="_WidgetBinding_"+a;if(this.eb[d])return this.eb[d](b,c);if(this.G[d])return this.G[d](b,c);w_s.isTrue(false,"could not find binding "+a);return null};w_x.prototype.Eb=function(a){if(a==null)return null;var b;if(window.ActiveXObject){b=new ActiveXObject("Microsoft.XMLDOM");b.async=
"false";if(!b.loadXML(a))throw new Error(b.parseError);}else if(window.DOMParser){var c=new DOMParser;b=c.parseFromString(a,"text/xml");if(b.documentElement.nodeName=="parsererror")throw new Error(b.documentElement.textContent);}else w_s.raise("Unable to find XML parser");return b.documentElement};w_x.prototype.P=function(a){var b=a.ownerDocument.createDocumentFragment();while(a.hasChildNodes())b.appendChild(a.firstChild);return b};w_x.prototype.pa=function(a,b,c){w_s.isTrue(a!=null);if(b.importNode)if(a.nodeType==
11){var d=b.createDocumentFragment();for(var e=a.firstChild;e!=null;e=e.nextSibling)d.appendChild(b.importNode(e,true));return d}else return b.importNode(a,true);if(!c){var f=b.createElement("DIV"),g=a.innerHTML||a.xml;f.innerHTML=g;return this.P(f)}var h=function(i){var j;if(i.nodeType==1){if(i.nodeName=="SCRIPT")return document.createTextNode("");j=b.createElement(i.nodeName);if(i.style)j.setAttribute("style",i.style.cssText);if(i.currentStyle.height)j.setAttribute("height",i.currentStyle.height);
if(i.currentStyle.width)j.setAttribute("width",i.currentStyle.width);for(var k=0;k<i.attributes.length;k++){var l=i.attributes[k];if(l.value&&l.value!="null"&&l.value!="false"&&l.value!="0")j.setAttribute(l.name,l.value)}}else if(i.nodeType==3)j=b.createTextNode(i.nodeValue);else if(i.nodeType==11)j=b.createDocumentFragment();else w_s.raise("unexpected node type "+i.nodeType);if(i.hasChildNodes())for(var k=0;k<i.childNodes.length;k++)j.appendChild(h(i.childNodes[k]));return j};return h(a)};w_x.prototype.z=
function(a,b){var c=this.G,d=function(e){return c.ActionCallback?c.ActionCallback(e):true};w_.z(a,b,this.e.instanceId,this.G.d(),d)};w_x.prototype.O=function(){return this.e.A};w_x.prototype.vb=function(a){if(!a)return null;var b=w_.cb[a];if(!b)b=this.e.markups[a];if(!b)return null;if(!b.parsedTemplate||!b.parsedTemplate.ownerDocument)this.Db(b);if(!b.parsedTemplate)w_s.raise("Parsing failed for "+a);b.rootNode=b.parsedTemplate.cloneNode(true);return b};w_x.prototype.Db=function(a){if(!a)return null;
var b="<?xml version='1.0'?><markuproot xmlns:"+w_x.DATA_NAMESPACE_PREFIX+"='urn:ns1'  xmlns:"+w_x.ACTION_NAMESPACE_PREFIX+"='urn:ns2' xmlns:"+w_x.INTERPRET_ATTR_NAMESPACE_PREFIX+"='urn:ns3'  xmlns='http://www.w3.org/1999/xhtml'>"+a.template+"</markuproot>\n",c=this.Eb(b);a.parsedTemplate=this.P(c);return a};w_x.ConfigureWidget=function(a,b){if(!b)b="config";var c=document.forms[b].widgetId.value,d=document.forms[b].widgetType.value,e=w_A.ProcessForm(document.forms[b],a);if(e.success)w_.SaveWidget(e.values,
c,d)};function w_(){}w_.Init=function(a,b,c){w_.M={};w_.cc=a;w_.Ka=b;w_.Uc=c;w_.hc=null;if(!w_.cb)w_.cb={}};w_.TrapClicks=function(a){var b=w_.CreateTransparentClickTrappingDiv(a.document);document.body.appendChild(b)};w_._SetupPreview=function(){w_.TrapClicks(window)};w_.NEW_WIDGET_WINDOW_NAME="chooseWidget";w_.CHOOSE_WIDGET_ACTION="chooseWidget";w_.EDIT_WIDGET_ACTION="editWidget";w_.GetCallbackUrl=function(){return w_.Ka};w_.SetPageActionUrl=function(a,b){w_.Wa=a;w_.Mc=b};w_.GetPageActionUrl=function(){return w_.Wa};
w_.SetWidgetRefreshUrl=function(a){w_.Rc=a};w_.GetWidgetRefreshUrl=function(){return w_.Rc};w_._SetDataContext=function(a){w_.hc=a};w_._SetSystemMarkup=function(a){w_.cb=a};w_._RegisterWidget=function(a,b,c){var d=new w_x(b);if(!c)c=window[a];var e=new c(d);d.Qb(e);w_.M[b.instanceId]=e;w_.DisplayWidget(e);return e};w_._RegisterNewWidget=function(a,b,c){var d=w_._RegisterWidget(a,b,c),e=d.b();e.Pb(true);return d};w_.DisplayWidget=function(a,b){var c=a.b();if(c.O()==w_w.DISPLAY_MODE_NONE)return;if(b||
a.g&&a.g())c.jb();if(c.O()==w_w.DISPLAY_MODE_FULL)if(a.h)a.h();a.b().Hc=false};w_.GetWidget=function(a){if(w_.M)return w_.M[a];return null};w_._PopupPaneFromParams=function(a,b,c,d,e){var f="";if(d)f="&widgetId="+d;var g=w_.cc+"&action="+a+"&sectionId="+b+"&widgetType="+c+f;if(window.name==e){window.location.replace(g);window.focus();return window}var h=window.open(g,e,"width=570,height=600,left=75,top=20,resizable=yes,scrollbars=yes");h.focus();return h};w_._PopupConfig=function(a){var b=a.getAttribute("id"),
c=w_.GetWidget(b);if(c){var d=c.b().configWin;if(d!=null&&!d.closed){d.focus();return false}}var e="config"+b,f=w_._PopupPaneFromParams(w_.EDIT_WIDGET_ACTION,a.parentNode.getAttribute("id"),a.getAttribute("widgetType"),b,e);if(c)c.b().configWin=f;return false};w_._PopupToolbox=function(a){w_._PopupPaneFromParams(w_.CHOOSE_WIDGET_ACTION,a.parentNode.getAttribute("id"),a.getAttribute("widgetType"),a.getAttribute("id"),w_.NEW_WIDGET_WINDOW_NAME);return false};w_.DeleteWidgetFromPage=function(a,b){w_.q(b,
b.LayoutsMessages.DELETING,w_.STATUS_MESSAGE_PENDING_CLASS);w_.RunPageAction("delete",{},a,b)};w_x.prototype.Ob=function(a,b){w_.q(b,b.LayoutsMessages.SAVING,w_.STATUS_MESSAGE_PENDING_CLASS);this.z("configure",a)};w_.SaveNewWidget=function(a,b,c){var d=document.getElementById("sectionId").value;a.sectionid=d;w_.q(c,c.LayoutsMessages.SAVING,w_.STATUS_MESSAGE_PENDING_CLASS);w_.RunPageAction("addnew",a,"",b)};w_.SaveWidget=function(a,b,c){w_m(c!=null,"no type");var d=_WidgetManager._GetWidget(b);w_m(d!=
null,"no widget for "+b);if(d.b().Bb())w_.SaveNewWidget(a,c,window);else d.a.Ob(a,window)};w_._RunInitialAction=function(a){var b=w_._GetWidget(a);if(b)b.b().z("initial")};w_.z=function(a,b,c,d,e){w_.RunAction(w_.Ka,a,b,c,d,e)};w_.RunPageAction=function(a,b,c,d,e){if(!w_.Wa){w_j("RunPageAction error: pageActionUrl_ is undefined.  widgetid: "+c+" action: "+a);return}b.pageToken=w_.Mc;w_.RunAction(w_.Wa,a,b,c,d,e)};w_.RunAction=function(a,b,c,d,e,f){var g=["action",b,"widgetId",d,"widgetType",e,"responseType",
"js"];for(var h in c)if(typeof c[h]=="object")for(var i=0;i<c[h].length;++i){g[g.length]=h;g[g.length]=c[h][i]}else{g[g.length]=h;g[g.length]=c[h]}w_ya(a,g,new w_Aa(f))};w_.SetConfigWin=function(a,b){if(!a)return;var c=w_.GetWidget(a);if(!c)return;c.b().configWin=b};w_.CloseIfNoPendingMessages=function(a,b){if(w_u==0)window.setTimeout(function(){a.close()},b);else window.setTimeout(function(){w_.CloseIfNoPendingMessages(a,b)},200)};w_._KillPopupDelay=function(a,b){if(!a)return;w_.CloseIfNoPendingMessages(a,
100);w_.UpdateEditorStatus(a,b)};w_.UpdateEditorStatus=function(a,b){if(!a)return;var c=a.document.getElementById("status-message-inner");if(c)c=c.innerHTML;if(c)if(a&&a.opener.parent&&a.opener.parent.editor)a.opener.parent.editor._SetSaveMessage(c,b)};w_.c=function(a,b,c){var d=w_.M[a];if(c.errors!=null){var e=d?d.b().configWin:null;if(!e)e=window;w_.q(e,c.errors,w_.STATUS_MESSAGE_BAD_CLASS);if(d&&d.B)d.B(b,c);else w_.B(c,e);return}w_m(d!=null,"no widget for "+a);if(b=="initial"){d.b().Ca(c);w_.DisplayWidget(d,
true);return}d.c(b,c)};w_.B=function(a,b){var c=a["error-details"];for(var d in c)w_A.SetError(d,c[d],b.document)};w_x.prototype.i=function(a){w_.q(this.configWin,a["status-message"],w_.STATUS_MESSAGE_GOOD_CLASS);w_.FinishPopupWork(this.e.instanceId,"_OnWidgetConfigured",function(b){window.opener._WidgetManager._OnWidgetConfigured(b,a)})};w_._OnWidgetConfigured=function(a,b){if(window.parent&&window.parent.editor&&b)w_.OnWidgetConfiguredWithData(a,b);else w_._RunInitialAction(a)};w_.OnWidgetConfiguredWithData=
function(a,b){var c=w_._GetWidget(a);c.b().Ca(b.data);w_.DisplayWidget(c,true);c.b().configWin=null};w_.HandlePageActionResult=function(a,b,c){var d=c["status-message"];if(c.errors!=null){w_.q(window,c.errors,w_.STATUS_MESSAGE_BAD_CLASS);w_.B(c,window);return}if(b=="addnew"){var e;if(w_.IsOpenerReachable(window)){if(window.opener&&window.opener.parent)e=window.opener.parent;if(e&&e.editor)e.editor._HandleAddNewWidget(c)}w_.q(window,d,w_.STATUS_MESSAGE_GOOD_CLASS);if(window.opener==null)window.location=
"/rearrange?blogID="+c.blogID;else if(e&&e._WidgetManager)e._WidgetManager._KillPopupDelay(window);else w_.CloseIfNoPendingMessages(window,100);return}var f=w_.M[a];w_m(f!=null);if(b=="delete"){w_.q(f.b().configWin,d,w_.STATUS_MESSAGE_GOOD_CLASS);w_.FinishPopupWork(a,"_OnWidgetDeleted")}};w_._OnWidgetDeleted=function(a){var b=w_.GetWidget(a);if(!b)return;if(b.b().O()==w_w.DISPLAY_MODE_LAYOUT)top.editor._HandleDeleteWidget(b.b().e.rootElement);else{var c=b.b().e.rootElement;c.parentNode.removeChild(c)}delete w_.M[a]};
w_.FinishPopupWork=function(a,b,c){if(w_.IsOpenerReachable(window)){var d=window.opener;if(!c)c=d._WidgetManager[b];c(a);if(d._WidgetManager)d._WidgetManager._KillPopupDelay(window,a);else w_.CloseIfNoPendingMessages(window,100)}else{var e=w_.GetWidgetRefreshUrl()+"?widgetId="+a;e+="&func="+encodeURIComponent(b);window.location.replace(e)}};w_.IsOpenerReachable=function(a){var b=false;try{if(a.opener){var c="X"+a.opener.document.domain;if(c&&c!="X")b=true}}catch(d){}return b};w_.STATUS_MESSAGE_GOOD_CLASS=
"status-msg status-msg-yellow-on-white";w_.STATUS_MESSAGE_PENDING_CLASS=w_.STATUS_MESSAGE_GOOD_CLASS;w_.STATUS_MESSAGE_BAD_CLASS=w_.STATUS_MESSAGE_GOOD_CLASS;w_.q=function(a,b,c){if(!a)a=self;var d=a.document.getElementById("status-message-inner");if(d)d.innerHTML=b;var e=a.document.getElementById("status-message");if(e)e.className=c};w_.MaybePrependHttp=function(a){if(a&&a.length>0&&a.substring(0,4)!="http")a="http://"+a;return a};w_.GetFirstElementInElementWithClass=function(a,b){if(w_o(a,b))return a;
if(a){var c=a.childNodes.length;for(var d=0;d<c;d++){var e=w_.GetFirstElementInElementWithClass(a.childNodes.item(d),b);if(e)return e}}return null};w_.CreateTransparentClickTrappingDiv=function(a){var b=a.createElement("div"),c=a.body.scrollHeight;b.style.position="absolute";b.style.top="0px";b.style.left="0px";b.style.width="100%";b.style.height=c+"px";b.style.zIndex="10";b.style.cursor="default";b.onclick=w_.sa;b.onmousedown=w_.sa;b.onmouseup=w_.sa;b.style.background="white";b.style.filter="alpha(opacity=1)";
b.style.opacity=".01";b.innerHTML="&nbsp;";return b};w_.sa=function(a){var b=a;if(!b)b=window.event;if(b){b.cancelBubble=true;if(b.stopPropagation)b.stopPropagation()}return false};function w_y(a){this.u=a}w_y.prototype._WidgetBinding_include=function(a,b){var c=a.getAttribute("name"),d=a.getAttribute("data");return this.u.qa(c,b,d)};w_y.prototype._WidgetBinding_call=w_y.prototype._WidgetBinding_include;w_y.prototype._WidgetBinding_loop=function(a,b){var c=a.getAttribute("values"),d=this.u.R(c),e=
this.u.W(d[1],b),f=a.getAttribute("var");if(!f)w_s.raise("Invalid var= attribute on b:loop");var g=this.u.P(a),h=a.ownerDocument.createDocumentFragment();if(!e)return h;for(var i=0;i<e.length;i++){var j=e[i],k=g.cloneNode(true);b.N(f,j);var l=this.u.Q(k,b);b.za(f);h.appendChild(l)}return h};w_y.prototype._WidgetBinding_if=function(a,b){var c=this.la(a.getAttribute("cond"),b),d=a.ownerDocument.createDocumentFragment(),e=false;while(a.firstChild!=null){var f=a.firstChild;if("else"==this.u.R(f.nodeName)[1].toLowerCase())e=
true;else if(c&&!e||!c&&e){var g=this.u.Q(f,b);d.appendChild(g)}if(f.parentNode==a)a.removeChild(f)}return d};w_y.prototype.la=function(a,b){w_s.isTrue(a!=null,"null expression");var c=this.Rb(a,b);try{var d=eval(c);return d}catch(e){w_j("expression=["+a+"] error="+e+" eval=["+c+"]")}return""};w_y.prototype.Rb=function(a,b){var c=new RegExp("\\b(?:"+w_x.DATA_NAMESPACE_PREFIX+"|"+w_x.ACTION_NAMESPACE_PREFIX+"):[^ ]*\\b","gi"),d="",e=0,f=c.exec(a);while(f){var g=f[0];if(!this.Ab(a,c.lastIndex)){var h,
i=this.u.R(g);if(i[0]==w_x.ACTION_NAMESPACE_PREFIX)h=this.u.Ba(i[1],null,b);else if(i[0]==w_x.DATA_NAMESPACE_PREFIX){h=this.u.W(g,b);if(!h)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_y.prototype.Ab=function(a,b){w_s.isTrue(b<=a.length,"Invalid index: i="+b+", l="+a.length);var c=0;for(var d=0;d<b;d++)if(a.charAt(d)=='"'&&(d==0||a.charAt(d-1)!="\\"))c++;
return c%2!=0};function w_A(){}w_A.ERROR_MSG_ACTIVE_CLASS="errorbox-bad errormsg";w_A.ERROR_MSG_INACTIVE_CLASS="errorbox-good";w_A.ProcessForm=function(a,b){var c={};c.success=true;c.values={};c.errors={};for(var d in b){var e=w_A.GetFieldValue(a[d]),f=b[d];w_A.ClearError(d);if(f){var g=f(e);if(g){w_A.SetError(d,g);c.success=false;c.errors[d]=g}}c.values[d]=e}return c};w_A.GetFieldValue=function(a){if(!a)return undefined;if(a.type=="checkbox"){if(a.checked)return a.value;return undefined}if(a.type==
null){var b=[];for(var 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_A.ub=function(a,b){if(!b)b=document;var c="errormessage_"+a;return b.getElementById(c)};w_A.ClearError=function(a){var b=w_A.ub(a);if(b){b.innerHTML="";b.className=w_A.ERROR_MSG_INACTIVE_CLASS}};w_A.SetError=function(a,b,c){var d=w_A.ub(a,c);if(d){d.innerHTML=b;d.className=w_A.ERROR_MSG_ACTIVE_CLASS}};w_A.GetRequiredStringFilter=
function(){return function(a){a=a.replace(/^\s+/,"").replace(/\s+$/,"");if(a.length==0)return LayoutsMessages.FIELD_CANNOT_BE_BLANK;return undefined}};w_A.GetNumberFilter=function(a,b){return function(c){var d=parseInt(c,10);if(isNaN(d))return LayoutsMessages.MUST_SPECIFY_A_NUMBER;if(d<a)return LayoutsMessages.NUMBER_TOO_SMALL+" "+a;if(d>b)return LayoutsMessages.NUMBER_TOO_LARGE+" "+b;return undefined}};function w_z(){this.r=[];for(var a in w_.hc)this.r[this.r.length]=a}w_z.DEFAULT_DICTIONARY_KEY=
"";w_z.MAX_DICTIONARY_DEPTH=50;w_z.SEPARATOR_CHAR=".";w_z.prototype.N=function(a,b){if(this.r.length>=w_z.MAX_DICTIONARY_DEPTH)w_s.raise("Cannot add another dictionary: "+a);if(a.indexOf(w_z.SEPARATOR_CHAR)>-1)w_s.raise("Cannot add dictionary name containing '.': "+a);var c={};c.name=a;c.data=b;this.r[this.r.length]=c};w_z.prototype.za=function(a){var b=this.r[this.r.length-1];if(b.name!=a)w_s.raise("Dictionary "+a+" is not the last one, and can't be deleted: "+b.name);this.r.splice(this.r.length-
1,1)};w_z.prototype.X=function(a){if(a==null)a=w_z.DEFAULT_DICTIONARY_KEY;for(var b=this.r.length-1;b>=0;--b)if(this.r[b].name==a)return this.r[b].data;return null};w_z.prototype.na=function(){return this.X(w_z.DEFAULT_DICTIONARY_KEY)};w_z.prototype.fb=function(a){this.N(w_z.DEFAULT_DICTIONARY_KEY,a)};w_z.prototype.k=function(a){var b=this.X(a);if(b)return b;var c=a.split(w_z.SEPARATOR_CHAR);if(c.length==1){b=this.na();return b[a]}b=this.X(c[0]);var d=0;if(b)d=1;else b=this.na();for(var e=d;e<c.length;e++){if(b==
null)return null;b=b[c[e]]}return b};function w_Ba(){}w_Ba.prototype.c=function(){throw new Error("Unimplemented");};var _WidgetManager=w_;_WidgetManager.prototype=w_.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_w;_WidgetInfo.prototype=
w_w.prototype;function w_B(a){this.Tc=false;this.ha=a;this.ca=window.document}w_B.DISABLED_BUTTON_CLASS="disabled-button";w_B.HIDDEN_MESSAGE_CLASS="status-msg-hidden";w_B.prototype.ja=function(){this.ca.getElementById(this.ha+"-inner").innerHTML="&nbsp;";w_p(this.ca.getElementById(this.ha),w_B.HIDDEN_MESSAGE_CLASS)};w_B.prototype.q=function(a){this.ca.getElementById(this.ha+"-inner").innerHTML=a;w_q(this.ca.getElementById(this.ha),w_B.HIDDEN_MESSAGE_CLASS)};function w_Aa(a){return function(b){var c=w_va(b);if(c>=500){if(b.responseText.length)document.body.innerHTML=b.responseText;else alert(LayoutsMessages.SERVER_ERROR);return false}return a?a(b):true}};function w_C(a){this.a=a}w_C.WIDGET_TYPE_NAME="AdSense";w_C.prototype.d=function(){return w_C.WIDGET_TYPE_NAME};w_C.prototype.b=function(){return this.a};w_C.prototype.c=function(a,b){this.a.i(b)};var _AdSenseView=w_C;function w_D(a){this.a=a;this.e=a.l()}w_D.WIDGET_TYPE_NAME="BlogArchive";w_D.POST_LIST_CLASS="posts";w_D.INTERVAL_EXPANDED_VALUE="expanded";w_D.INTERVAL_COLLAPSED_VALUE="collapsed";w_D.LOADING_MSG="loading...";w_D.POST_COUNT_CLASS="post-count";w_D.POST_COUNT_LINK_CLASS="post-count-link";w_D.MENU_ROOT_ID="ArchiveMenu";w_D.TOGGLE_OPEN_CLASS="toggle-open";w_D.Gc="&#9660;&nbsp;";w_D.dc="&#9658;&nbsp;";w_D.prototype.d=function(){return w_D.WIDGET_TYPE_NAME};w_D.prototype.b=function(){return this.a};w_D.prototype.g=
function(){return false};w_D.prototype.c=function(a,b){if(a=="configure")this.a.i(b);else if(a=="getTitles")this.Vb(b);else{this.widgetInfo.data=b;w_.DisplayWidget(this)}};w_D.prototype.h=function(){var a={};a.select=function(i){return i&&w_o(i,"toggle")};var b=this.a.t("ArchiveList");if(!b)return;var c=w_r(this.e.rootElement,a),d;if(c.length>0&&c[0].currentStyle)d=c[0].parentNode.currentStyle.color;for(var e=0;e<c.length;e++){var f=c[e];f.onclick=this.Sb.bind(this);if(d)f.style.color=d}var g=this.a.t(w_D.MENU_ROOT_ID);
if(g){for(var e=1;e<g.options.length;e++){var h=g.options[e].value;if(h==window.location.href||window.location.href.match(h)!=null){g.selectedIndex=e;break}}g.onchange=this.wb.bind(this)}if(this.b().k().languageDirection=="rtl")w_D.dc="&#9668;&nbsp;"};w_D.prototype.wb=function(){var a=this.a.t(w_D.MENU_ROOT_ID);if(!a)return;if(a.value=="")return;window.location.href=a.value};w_D.prototype.Sb=function(a){a=a||window.event;var b=a.currentTarget||a.srcElement;if(b&&!w_o(b,"toggle"))b=b.parentNode;var c=
w_.GetFirstElementInElementWithClass(b,"zippy"),d=b.parentNode;if(w_o(d,w_D.INTERVAL_EXPANDED_VALUE)){w_q(d,w_D.INTERVAL_EXPANDED_VALUE);w_p(d,w_D.INTERVAL_COLLAPSED_VALUE);c.innerHTML=w_D.dc;w_q(c,w_D.TOGGLE_OPEN_CLASS);return false}else{w_q(d,w_D.INTERVAL_COLLAPSED_VALUE);w_p(d,w_D.INTERVAL_EXPANDED_VALUE);c.innerHTML=w_D.Gc;w_p(c,w_D.TOGGLE_OPEN_CLASS)}if(this.Cb(d)){var e=this.oa(d);if(!e){e=document.createElement("UL");d.appendChild(e);w_p(e,w_D.POST_LIST_CLASS)}e.appendChild(document.createTextNode(w_D.LOADING_MSG));
this.a.z("getTitles",{path:this.sb(d)})}return false};w_D.prototype.oa=function(a){return w_.GetFirstElementInElementWithClass(a,w_D.POST_LIST_CLASS)};w_D.prototype.sb=function(a){var b=w_.GetFirstElementInElementWithClass(a,w_D.POST_COUNT_LINK_CLASS);return b.href};w_D.prototype.tb=function(a){var b=w_.GetFirstElementInElementWithClass(a,w_D.POST_COUNT_CLASS);return parseInt(b.innerHTML.match(/\d+/),10)};w_D.prototype.Vb=function(a){var b=a.path,c=this.oa(this.rb(b));c.innerHTML="";for(var d=0;d<
a.posts.length;d++){var e=a.posts[d],f=document.createElement("li");f.innerHTML="<a href="+e.url+">"+e.title+"</a>";c.appendChild(f)}};w_D.prototype.rb=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_D.prototype.Cb=function(a){var b=a.getElementsByTagName("UL");if(b.length>0&&!w_o(b[0],"posts"))return;var c=this.tb(a),d=a.getElementsByTagName("LI"),e=d.length;return e<c};var _BlogArchiveView=w_D;function w_E(a){this.a=a;this.L=a.l();if(this.L.data)this.rc=this.L.data.showBacklinks}w_E.BACKLINKS_ROOT="backlinks-container";w_E.BACKLINKS_CHUNK="backlinks";w_E.BACKLINK_ITEM_ROOT_CLASS="backlink-control";w_E.BACKLINK_EXPANDED_CLASS="expanded-backlink";w_E.BACKLINK_COLLAPSED_CLASS="collapsed-backlink";w_E.BACKLINK_ZIPPY_CLASS="backlink-toggle-zippy";w_E.WIDGET_TYPE_NAME="Blog";w_E.prototype.d=function(){return w_E.WIDGET_TYPE_NAME};w_E.prototype.b=function(){return this.a};w_E.prototype.c=function(a,
b){if(a=="initial"){this.L.data=b;w_.DisplayWidget(this,true)}else if(a=="nextposts")this.kb(b);else if(a=="configure")this.a.i(b);else if(a=="backlinks")this.Ub(b)};w_E.prototype.kb=function(a){var b=a.renderedData,c=this.L.rootElement;if(!b||!c)return;c.innerHTML=b;window.scroll(0,0);this.h()};w_E.prototype.Ub=function(a){this.rc=false;var b=this.a.Z(w_E.BACKLINKS_CHUNK,a),c=this.a.t(w_E.BACKLINKS_ROOT);if(c){c.innerHTML="";c.appendChild(b)}var d=w_r(this.L.rootElement,w_E.Zb);for(var e=0;e<d.length;e++){var f=
d[e];f.onclick=this.Tb.bind(this)}var g=this.a.t("backlinks-create-link");if(g!=null)g.onclick=this.hb.bind(this,g.href)};w_E.Zb={};w_E.Zb.select=function(a){return a&&w_o(a,w_E.BACKLINK_ZIPPY_CLASS)};w_E.prototype.Tb=function(a){a=a||window.event;this.lb(a.srcElement||a.target)};w_E.prototype.lb=function(a){var b=a.parentNode;while(b&&!w_o(b,w_E.BACKLINK_ITEM_ROOT_CLASS))b=b.parentNode;if(!b)return;if(w_o(b,w_E.BACKLINK_EXPANDED_CLASS)){w_q(b,w_E.BACKLINK_EXPANDED_CLASS);w_p(b,w_E.BACKLINK_COLLAPSED_CLASS)}else{w_p(b,
w_E.BACKLINK_EXPANDED_CLASS);w_q(b,w_E.BACKLINK_COLLAPSED_CLASS)}};w_E.prototype.h=function(){var a=this.a.t("blog-pager-newer-link");if(a&&this.ra(a))a.onclick=this.ta.bind(this);var b=this.a.t("blog-pager-older-link");if(b&&this.ra(b))b.onclick=this.ta.bind(this);if(this.rc)this.a.z("backlinks",{postID:this.L.data.postId})};w_E.prototype.ra=function(a){var b=a.href;return b.indexOf("/search?")>-1};w_E.prototype.ta=function(a){a=a||window.event;var b=a.target||a.srcElement;this.a.z("nextposts",{path:b.href});
return false};w_E.prototype.hb=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 false};var _BlogView=w_E;w_F.Id={BLOGS:"blogs",CONTAINER:"container",SHOW_ALL:"show-all",SHOW_N:"show-n"};function w_F(a){this.a=a;this.e=a.l()}w_F.WIDGET_TYPE_NAME="BlogList";w_F.prototype.ia=null;w_F.prototype.T=null;w_F.prototype.d=function(){return w_F.WIDGET_TYPE_NAME};w_F.prototype.b=function(){return this.a};w_F.prototype.g=function(){return false};w_F.prototype.c=function(a,b){if(a=="configure")this.a.i(b)};w_F.prototype.h=function(){var a=this.a.k();this.ia=a.totalItems;this.T=a.numItemsToShow;if(this.T!=0&&this.ia>
this.T){var b=this.a.p(w_F.Id.SHOW_ALL);b.onclick=this.db.bind(this);var c=this.a.p(w_F.Id.SHOW_N);c.onclick=this.db.bind(this)}var d=this.ec.bind(this),e=window;if(e.addEventListener)e.addEventListener("load",d,false);else if(e.attachEvent)e.attachEvent("onload",d);else e.onload=d};w_F.prototype.db=function(){var a=this.a.p(w_F.Id.BLOGS),b=a.getElementsByTagName("li");for(var c=this.T;c<this.ia;c++){var d=b[c];w_ia(d,d.style.display=="none")}var e=this.a.p(w_F.Id.SHOW_ALL);w_n(e,e.style.display==
"none");var f=this.a.p(w_F.Id.SHOW_N);w_n(f,f.style.display=="none")};w_F.prototype.ec=function(){var a=this.a.p(w_F.Id.BLOGS),b=a.getElementsByTagName("input");for(var c=0;c<b.length;c++){var d=b[c],e=document.createElement("img");e.onload=this.Xb.bind(e,d);e.src=d.value}};w_F.prototype.Xb=function(a){this.onload=function(){};this.alt="";this.height="16";this.width="16";var b=a.parentNode;b.replaceChild(this,a)};var _BlogListView=w_F;_BlogListView._Configure=_BlogListView.Configure;function w_G(a){this.a=a}w_G.WIDGET_TYPE_NAME="CustomSearch";w_G.prototype.d=function(){return w_G.WIDGET_TYPE_NAME};w_G.prototype.b=function(){return this.a};w_G.prototype.g=function(){return false};w_G.prototype.c=function(a,b){if(a=="configure")this.a.i(b)};w_G.prototype.h=function(){if(!window._UDS_bootstrapped){var a;a=window.location.host.match(/blogger\.com$/)?"ABQIAAAAVBJEtyJuLxgUs8KlzeA1lRQpkWYODHKIJGlKH8M-8R98XOejsxRkHYkMWejKfPos1RBuAqHID9wA9Q":this.a.k().key;w_H("http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-vbpe&key="+
a);w_I(w_Ca);window._UDS_bootstrapped=true}var b=document.getElementById("uds-searchControl");if(!b){b=document.createElement("DIV");b.id="uds-searchControl";var c=document.createElement("DIV");c.id="uds-searchResults";b.appendChild(c);var d=document.createElement("DIV");d.id="uds-searchClearResults";d.className="gsc-clear-button";d.innerHTML="&nbsp;";b.appendChild(d);var e=document.getElementById("main");if(!e)e=document.getElementsByTagName("body")[0];e.insertBefore(b,e.firstChild)}var f=this.b();
if(!w_J())w_I(w_Da.bind(f));else window.setTimeout(w_Da.bind(f),0)};function w_Da(){var a=new GSearchControl,b=this.k();if(b.includeBlog){var c=new GblogSearch;c.setUserDefinedLabel(b.thisBlogMsg);c.setSiteRestriction(b.blogUrl);a.addSearcher(c)}if(b.includePostLinks){var d=new GwebSearch;d.setUserDefinedLabel(b.linkedFromHereMsg);d.setSiteRestriction({crefUrl:b.blogUrl+"cse.xml"});a.addSearcher(d)}var e=b.linkLists;for(var f=0;f<e.length;f++){var g=new GwebSearch;g.setSiteRestriction({crefUrl:b.blogUrl+
"cse.xml"},e[f].id.toLowerCase());g.setUserDefinedLabel(e[f].title);a.addSearcher(g)}if(b.includeWeb){var h=new GwebSearch;h.setUserDefinedLabel(b.theWebMsg);a.addSearcher(h)}var i=new GSearchForm(false,this.p("form")),j=new GdrawOptions;j.setDrawMode(GSearchControl.DRAW_MODE_TABBED);j.setInput(i.input);a.setNoResultsString(GSearchControl.NO_RESULTS_DEFAULT_STRING);a.draw(document.getElementById("uds-searchResults"),j);i.input.onkeyup=i.input.onpaste=null;i.setOnSubmitCallback(null,w_v(w_Ea,null,
a));document.getElementById("uds-searchClearResults").onclick=w_v(w_Fa,null,a);w_K(false)}function w_Ea(a){w_K(true);return a.submit()}function w_Fa(a){a.clearAllResults();w_K(false)}function w_K(a){document.getElementById("uds-searchClearResults").style.display=a?"inline":"none"}var _CustomSearchView=w_G;_CustomSearchView._Configure=_CustomSearchView.Configure;function w_L(a){this.a=a;this.e=a.l()}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.g=function(){return false};w_L.prototype.h=function(){if(this.e.data.resize!="true")return;var a=this.a.t(this.e.instanceId+"_img"),b=this.e.rootElement;if(!a||!b)return;var c;if(document.defaultView)c=parseInt(document.defaultView.getComputedStyle(b,null).width,10);else if(b.currentStyle){a.style.display="none";c=b.offsetWidth;
a.style.display=""}else return;if(a.width>c){a.height=Math.round(c/a.width*a.height);a.width=c}a.style.visibility="visible"};w_L.prototype.c=function(a,b){if(a=="configure")this.a.i(b)};var _ImageView=w_L;function w_M(a,b,c,d,e,f,g,h){this.o=a;this.$b=b!="null"?b:null;this.mc=c;this.kc=d;this.lc=e;this.xc=f;this.nc=g;this.Nc=h;this.w=-1;this.C=-1;this.D=null;this.s=document.getElementById(this.o+"_picImg");this.ba=document.getElementById(this.o+"_changeImageLink");this.fa=document.getElementById(this.o+"_imageChoiceTable");this.ic=document.getElementById(this.o+"_imgSrcFromPCRadio");this.jc=document.getElementById(this.o+"_imgSrcFromWebRadio");this.j=document.getElementById(this.o+"_imgFileNameInput");
this.S=document.getElementById(this.o+"_imgUrlTextInput");this.Yb=window.frames[this.o+"_asynchronousFileUploadIframe"];this.Pa=0;this.m=new Image;this.m.onload=this.hitch(this,this.uc);this.m.onerror=this.hitch(this,this.tc);this.fc=false;this.Ta=null;this.n=null;this.I=null;this.Xa=false}w_M.prototype.Sa=function(){return this.ic.checked};w_M.prototype.uc=function(){this.Pa=0;w_A.ClearError(this.o+"_imgUrlTextError");w_A.ClearError(this.o+"_imgFileNameError");if(!this.Sa()||this.w==0){this.w=this.m.width;
this.C=this.m.height;this.D=this.m.src}var a=1,b=1;if(this.m.width>300)a=300/this.m.width;if(this.m.height>300)b=300/this.m.height;var c=Math.min(a,b);this.s.style.width=Math.round(this.m.width*c)+"px";this.s.style.height=Math.round(this.m.height*c)+"px";this.s.src=this.m.src;this.s.style.display="";this.fa.style.display="none";this.ba.style.display="";this.j.disabled=true;if(this.mc)this.mc.call({},this.s.src,this.D,this.w,this.C)};w_M.prototype.K=function(a,b,c,d){if(a){w_A.SetError(this.o+"_imgFileNameError",
b);w_A.ClearError(this.o+"_imgUrlTextError")}else{w_A.SetError(this.o+"_imgUrlTextError",b);w_A.ClearError(this.o+"_imgFileNameError")}this.s.style.display="none";this.fa.style.display="";this.ba.style.display="none";this.j.disabled=false;if(this.kc)this.kc.call({},c,d)};w_M.prototype.tc=function(){if(this.Pa<2){this.Pa++;var a=this.m.src;this.m.src="";this.F(a)}else this.K(this.Sa(),WidgetMessages.SIV_INVALID_URL,this.s.src)};w_M.prototype.hitch=function(a,b){return function(){b.apply(a,arguments)}};
w_M.prototype.F=function(a){this.ab();this.m.src=a};w_M.prototype.La=function(a){var b=a||window.event;if(window.event){b.returnValue=false;b.cancelBubble=true}else{b.preventDefault();b.stopPropagation()}this.s.style.display="none";this.ba.style.display="none";this.fa.style.display="";this.j.disabled=false;this.S.value="";this.Ya();this.Xa=true;if(this.lc)this.lc.call({})};w_M.prototype.Qa=function(){this.ic.checked="true";this.S.value="";this.ab();this.pc();this.fc=true;try{this.n.submit()}catch(a){this.K(true,
WidgetMessages.SIV_INVALID_URL,this.n.value)}this.oc()};w_M.prototype.H=function(){var a=this.Yb.document.result;if(!a)this.K(true,WidgetMessages.SIV_INVALID_URL,this.j.value);if(a.hasErrors)if(a.errors.length>0)this.K(true,a.errors[0].message,this.j.value,a.Ic);else this.K(true,WidgetMessages.SIV_INVALID_URL,this.j.value,a.Ic);else{var b=Math.max(a.origWidth,a.origHeight),c=this.Oa();if(this.w!=0&&c!=-1&&b>c){var d=c/b;this.w=Math.round(a.origWidth*d);this.C=Math.round(a.origHeight*d)}else{this.w=
a.origWidth;this.C=a.origHeight}this.D=a.mainSrc;this.F(a.thumbSrc)}};w_M.prototype.Ra=function(a){var b=a||window.event;if(b.keyCode==9)return;this.jc.checked="true";if(this.Ta!=null)window.clearTimeout(this.Ta);var c=this.hitch(this,function(){if(this.Xa||this.m.src!=this.S.value.toLowerCase()){this.Ya();this.F(this.S.value.toLowerCase())}this.Xa=false});this.Ta=window.setTimeout(c,1000)};w_M.prototype.Ua=function(a){this.jc.checked=true;this.S.value=a;this.F(a)};w_M.prototype.ab=function(){this.s.src=
"img/icon_inprogress.gif";this.s.style.width="200px";this.s.style.height="200px";this.s.style.display="";this.fa.style.display="none";this.ba.style.display="none"};w_M.prototype.pc=function(){if(!this.n){this.n=document.createElement("form");this.n.action="imageUpload.do";this.n.method="POST";this.n.target=this.Yb.name;this.n.encoding="multipart/form-data";this.n.style.display="none";if(this.$b){var a=document.createElement("input");a.type="hidden";a.name="blogID";a.value=this.$b;this.n.appendChild(a)}var b=
document.createElement("input");b.type="hidden";b.name="sectionWidth";b.id="sectionWidth";this.n.appendChild(b);var c=document.createElement("input");c.type="hidden";c.name="photoUploadSecurityToken";c.value=this.Nc;this.n.appendChild(c);document.body.appendChild(this.n)}var d=this.Oa();if(d==-1)d=1600;document.getElementById("sectionWidth").value=d;this.I={parent:this.j.parentNode,nextSibling:this.j.nextSibling};this.j.parentNode.removeChild(this.j);this.n.appendChild(this.j)};w_M.prototype.oc=function(){this.n.removeChild(this.j);
if(this.I&&this.I.nextSibling)this.I.parent.insertBefore(this.j,this.I.nextSibling);else this.I.parent.appendChild(this.j)};w_M.prototype.Ya=function(){var a=document.createElement("input");a.type="file";a.name=this.j.name;a.id=this.j.id;a.onchange=this.j.onchange;var b=this.j.nextSibling;if(b==null)this.j.parentNode.appendChild(a);else this.j.parentNode.insertBefore(a,b);this.j.parentNode.removeChild(this.j);this.j=a};w_M.prototype.Oa=function(){return this.xc==-1&&this.nc?this.nc():this.xc};function w_N(){this.usiContainers=
[]}var w_Ga=new w_N;w_N.prototype.Ma=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.ea=function(a){return this.usiContainers[a]};w_N.prototype.H=function(a){var b=this.ea(a);if(b&&b.fc)b.H()};var _UploadSimpleImage=w_Ga;w_N.prototype._createUsiContainer=w_N.prototype.Ma;w_N.prototype._getUsiContainer=w_N.prototype.ea;w_N.prototype._channelResultArrived=w_N.prototype.H;w_M.prototype._changeImage=w_M.prototype.La;
w_M.prototype._imgUrlFileOnChange=w_M.prototype.Qa;w_M.prototype._imgUrlTextOnKeyUp=w_M.prototype.Ra;w_M.prototype._loadInitialUrl=w_M.prototype.Ua;w_M.prototype._loadImageFromUrl=w_M.prototype.F;function _singleImageConfig_successfulUploadCallback(a,b,c,d){window.singleImageConfig_thumbImageUrl=a;window.singleImageConfig_imageUrl=b;window.singleImageConfig_imageWidth=c;window.singleImageConfig_imageHeight=d;var e=document.getElementById("shrinkToFitRow");if(e)e.style.visibility="hidden"}function _singleImageConfig_resetCallback(){window.singleImageConfig_imageUrl=null;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_.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==null){w_.q(window,WidgetMessages.SIV_NO_IMAGE,w_.STATUS_MESSAGE_BAD_CLASS);return}var a=document.forms.config.widgetId.value,
b=_SIV_getContainerWidth(),c=document.getElementById("checkShrink").checked,d=window.singleImageConfig_imageWidth,e=window.singleImageConfig_imageHeight;if(c){var f=1;if(d>b){f=b/d;d=b;e=Math.round(e*f)}}var g={originalUrl:window.singleImageConfig_imageUrl,originalWidth:window.singleImageConfig_imageWidth,originalHeight:window.singleImageConfig_imageHeight,displayUrl:window.singleImageConfig_thumbImageUrl,displayWidth:d,displayHeight:e,sectionWidth:b,shrinkToFit:c,title:document.getElementById("title").value,
caption:document.getElementById("imageCaption").value,link:document.getElementById("link").value,securityToken:document.forms.config.securityToken.value};w_.SaveWidget(g,a,w_L.WIDGET_TYPE_NAME)};function w_O(a){this.a=a;this.e=a.l()}w_O.successfulUploadCallback=function(a,b,c,d){w_O.Oc=a;w_O.D=b;w_O.w=c;w_O.C=d;var e=document.getElementById("shrinkToFitRow");if(e)e.style.visibility="hidden";e=document.getElementById("shrinkToFitMessageRow");if(e)e.style.visibility="hidden"};w_O.resetCallback=function(){w_O.D=null;var a=document.getElementById("shrinkToFitRow");if(a)a.style.visibility="visible";a=document.getElementById("shrinkToFitMessageRow");if(a)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_.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.g=function(){return false};w_O.prototype.b=function(){return this.a};w_O.prototype.c=
function(a,b){this.a.i(b)};w_O.FilterMap={title:w_A.GetRequiredStringFilter(),description:null,imagePlacement:null,useImage:null,securityToken:null};w_O.ConfigureWidget=function(){var a=document.forms.config.widgetId.value,b=document.forms.config.widgetType.value,c=w_A.ProcessForm(document.forms.config,w_O.FilterMap),d=w_O.getContainerWidth();if(c.success){if(w_O.D){var e=w_O.w,f=w_O.C,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.D;c.values.originalWidth=w_O.w;c.values.originalHeight=w_O.C;c.values.displayUrl=w_O.Oc;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_.SaveWidget(c.values,a,b);return true}else return false};w_O.hideImageOptions=function(){document.getElementById("imageOptions").style.display="none";return false};w_O.showImageOptions=function(){document.getElementById("imageOptions").style.display=
"";return false};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.l();this.Qc=b}w_P.prototype.b=function(){return this.a};w_P.prototype.d=function(){return this.Qc};w_P.prototype.c=function(a,b){if(a=="configure")this.a.i(b)};w_P.ConfigureWidget=function(a){setFormAndSubmit();var b=document.forms.stuffform.widgetId.value,c=document.forms.stuffform.securityToken.value,d=document.getElementById("textarea"),e=document.getElementById("title"),f=d.value;if(a=="Text")f=f.replace(/\n/g,"<br/>");var g={content:f,title:e.value,securityToken:c};
w_.SaveWidget(g,b,a)};function w_Q(a){w_P.call(this,a,"Text")}w_Q.inherits(w_P);w_Q.ConfigureWidget=function(){w_P.ConfigureWidget("Text")};function w_R(a){w_P.call(this,a,"HTML")}w_R.inherits(w_P);w_R.ConfigureWidget=function(){w_P.ConfigureWidget("HTML")};var _TextView=w_Q;_TextView.prototype=w_Q.prototype;_TextView._ConfigureWidget=_TextView.ConfigureWidget;var _HTMLView=w_R;_HTMLView.prototype=w_R.prototype;_HTMLView._ConfigureWidget=_HTMLView.ConfigureWidget;function w_H(a){document.write('<script src="'+a+'" type="text/javascript"><\/script>')}function w_Ha(a){document.write('<style type="text/css"> @import url( "'+a+'" );</style>')}function w_I(a){if(w_J())w_j("Tried to add an onload after page loaded..");else{var b=window;if(b.addEventListener)b.addEventListener("load",a,false);else if(b.attachEvent)b.attachEvent("onload",a);else b.onload=a}}function w_Ca(){window._UDS_loaded=true}function w_J(){return window._UDS_loaded}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.g=function(){return false};w_S.prototype.c=function(a,b){if(a=="configure")this.a.i(b)};w_S.prototype.h=function(){if(!window._UDS_bootstrapped){var a;a=window.location.host.match(/blogger\.com$/)?"ABQIAAAAVBJEtyJuLxgUs8KlzeA1lRQpkWYODHKIJGlKH8M-8R98XOejsxRkHYkMWejKfPos1RBuAqHID9wA9Q":this.a.k().key;w_H("http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-vbpe&key="+a);
w_Ha("http://www.google.com/uds/css/gsearch.css");w_I(w_Ca);window._UDS_bootstrapped=true}if(!window._UDS_vb_bootstrapped){window._uds_vbw_donotrepair=true;w_H("http://www.google.com/uds/solutions/videobar/gsvideobar.js?mode=new");w_Ha("http://www.google.com/uds/solutions/videobar/gsvideobar.css");window._UDS_vb_bootstrapped=true}var b=this.b(),c=b.p("bar");w_p(c,"videoBar-container");if(!w_J())w_I(w_Ia.bind(b));else window.setTimeout(w_Ia.bind(b),0)};function w_Ia(){var a=this.p("bar"),b=this.k().format,
c,d,e=this.k().expression;if(b=="VERTICAL"){c=false;d=GSvideoBar.THUMBNAILS_MEDIUM;a.style.width="110px"}else if(b=="HORIZONTAL-SMALL"){c=true;d=GSvideoBar.THUMBNAILS_SMALL;a.style.width="232px"}else if(b=="HORIZONTAL-MEDIUM"){c=true;d=GSvideoBar.THUMBNAILS_MEDIUM;a.style.width="432px"}var f={largeResultSet:false,horizontal:c,autoExecuteList:{cycleTime:GSvideoBar.CYCLE_TIME_LONG,cycleMode:GSvideoBar.CYCLE_MODE_RANDOM,executeList:e.split(/,/)},thumbnailSize:d};new GSvideoBar(a,GSvideoBar.PLAYER_ROOT_FLOATING,
f)}var _VideoBarView=w_S;_VideoBarView._Configure=_VideoBarView.Configure;function w_Ja(a){document.write('<script src="'+a+'" type="text/javascript"><\/script>')}function w_Ka(a){document.write('<style type="text/css"> @import url( "'+a+'" );</style>')}function w_La(a){if(w_Ma())w_j("Tried to add an onload after page loaded..");else{var b=window;if(b.addEventListener)b.addEventListener("load",a,false);else if(b.attachEvent)b.attachEvent("onload",a);else b.onload=a}}function w_Na(){window._UDS_loaded=true}function w_Ma(){return window._UDS_loaded}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.g=function(){return false};w_T.prototype.c=function(a,b){if(a=="configure")this.a.i(b)};w_T.prototype.h=function(){if(!window._UDS_bootstrapped){var a;a=window.location.host.match(/blogger\.com$/)?"ABQIAAAAVBJEtyJuLxgUs8KlzeA1lRQpkWYODHKIJGlKH8M-8R98XOejsxRkHYkMWejKfPos1RBuAqHID9wA9Q":this.a.k().key;w_Ja("http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-nbpe&key="+
a);w_Ka("http://www.google.com/uds/css/gsearch.css");w_La(w_Na);window._UDS_bootstrapped=true}if(!window._UDS_nb_bootstrapped){window._uds_nbw_donotrepair=true;w_Ja("http://www.google.com/uds/solutions/newsbar/gsnewsbar.js?mode=new");w_Ka("http://www.google.com/uds/solutions/newsbar/gsnewsbar.css");window._UDS_nb_bootstrapped=true}var b=this.b();if(!w_Ma())w_La(w_Oa.bind(b));else window.setTimeout(w_Oa.bind(b),0)};function w_Oa(){var a=this.p("bar"),b,c=this.k().format;if(c=="VERTICAL")b=false;else if(c==
"HORIZONTAL-SMALL")b=true;else if(c=="HORIZONTAL-MEDIUM")b=true;var d=this.k().expression,e=this.k().linkNewWindow,f;f=e==true?GSearch.LINK_TARGET_BLANK:GSearch.LINK_TARGET_SELF;var g={largeResultSet:false,horizontal:b,linkTarget:f,title:" ",autoExecuteList:{executeList:d.split(/,/)}};if(b){g.autoExecuteList.cycleTime=GSnewsBar.CYCLE_TIME_MEDIUM;g.autoExecuteList.cycleMode=GSnewsBar.CYCLE_MODE_RANDOM}var h=new GSnewsBar(a,g);window[a.id]=h}var _NewsBarView=w_T;_NewsBarView._Configure=_NewsBarView.Configure;function w_Pa(a){document.write('<script src="'+a+'" type="text/javascript"><\/script>')}function w_Qa(a){var b=window;if(b.addEventListener)b.addEventListener("load",a,false);else if(b.attachEvent)b.attachEvent("onload",a);else b.onload=a}function w_U(a){this.a=a}w_U.WIDGET_TYPE_NAME="Slideshow";w_U.prototype.d=function(){return w_U.WIDGET_TYPE_NAME};w_U.prototype.b=function(){return this.a};w_U.prototype.g=function(){return false};w_U.prototype.c=function(a,b){if(a=="configure")this.a.i(b)};w_U.prototype.h=
function(){if(!window._UDS_jsapi_bootstrapped){var a;a=window.location.host.match(/blogger\.com$/)?"ABQIAAAAVBJEtyJuLxgUs8KlzeA1lRQpkWYODHKIJGlKH8M-8R98XOejsxRkHYkMWejKfPos1RBuAqHID9wA9Q":this.a.k().key;w_Pa("http://www.google.com/jsapi?source=uds-afspe&key="+a);window._UDS_jsapi_bootstrapped=true}if(!window._UDS_fs_bootstrapped){w_Pa("http://www.google.com/uds/solutions/slideshow/gfslideshow.js?mode=new");window._UDS_fs_bootstrapped=true}var b=this.b(),c=w_Ra.bind(b);if(!window.google||!window.google.feeds)w_Sa(c);
else window.setTimeout(c,0)};function w_Sa(a){w_Qa(function(){google.load("feeds","1",{callback:a})})}function w_Ra(){var a=this.p("slideshow"),b=this.k().computedFeed,c=this.k().linkNewWindow,d=c?google.feeds.LINK_TARGET_BLANK:google.feeds.LINK_TARGET_SELF,e={linkTarget:d,scaleImages:true,fullControlPanel:true,fullControlPanelSmallIcons:true,pauseOnHover:false};if(b.indexOf("http://api.flickr.com")==0)e.thumbnailUrlResolver=w_U.flickrThumbResolver;new GFslideShow(b,a,e)}w_U.flickrThumbResolver=function(a){var b=
google.feeds.getElementsByTagNameNS(a.xmlNode,"http://search.yahoo.com/mrss/","thumbnail"),c=null;if(b.length){var d=b[0];c=d.getAttribute("url");if(!c)c=d.firstChild.nodeValue;c=c.replace(/^(.*)_[st]\.([a-zA-Z]+)$/,"$1_m.$2")}return c};var _SlideshowView=w_U;_SlideshowView._Configure=_SlideshowView.Configure;function w_V(){}w_V.Jc={title:null,showStyle:null,showPosts:null,chronological:null,frequency:null,yearPattern:null,monthPattern:null,weekPattern:null,showWeekEnd:null,dayPattern:null,securityToken:null};w_V.ACTIVE_PREVIEW_CLASS="active-preview";w_V.PREVIEW_CLASS="preview";w_V._SetConfigurationOptions=function(){w_x.ConfigureWidget(w_V.Jc)};w_V.UpdateFrequency=function(){var a=w_A.GetFieldValue(document.forms.config.showStyle),b={year:a=="HIERARCHY",week:0,month:0,day:0},c=w_A.GetFieldValue(document.forms.config.frequency);
if(c=="WEEKLY")b.week=1;else if(c=="MONTHLY")b.month=1;else if(c=="DAILY"){b.month=a=="HIERARCHY";b.day=1}var d=document.forms.config.showPosts;d.disabled=a=="HIERARCHY"?false:true;for(var e in b){var f=e+"pattern-wrap";w_ia(document.getElementById(f),b[e])}w_V.SelectPreview()};w_V._Init=function(a){w_V.wc=a;w_V.J=document.getElementById("archive-previews");w_V.vc=w_W(w_V.J,w_V.PREVIEW_CLASS);w_V.UpdateFrequency();w_V.Reformat("yearly",document.forms.config.yearPattern);w_V.Reformat("monthly",document.forms.config.monthPattern);
w_V.Reformat("weekly",document.forms.config.weekPattern);w_V.Reformat("daily",document.forms.config.dayPattern);w_V.UpdateWeekEnd();w_V.UpdatePreviewPostTitles();if(document.forms.config.chronological.checked)w_V.ToggleDirection()};w_V.SelectPreview=function(){var a=w_A.GetFieldValue(document.forms.config.showStyle),b=w_A.GetFieldValue(document.forms.config.frequency);for(var c=0;c<w_V.vc.length;c++){var d=w_V.vc[c];if(w_o(d,a)&&w_o(d,b)){w_p(d,w_V.ACTIVE_PREVIEW_CLASS);if(w_o(d,"MENU"))w_V.Ec(d)}else{w_q(d,
w_V.ACTIVE_PREVIEW_CLASS);if(w_o(d,"MENU"))w_V.Bc(d)}}};w_V.Bc=function(a){var b=a.getElementsByTagName("select");for(var c=0;c<b.length;c++)b[c].style.display="none"};w_V.Ec=function(a){var b=a.getElementsByTagName("select");for(var c=0;c<b.length;c++)b[c].style.display="block"};w_V.Reformat=function(a,b){var c=w_V.wc[a];for(var d in c){var e=c[d][b.selectedIndex];if(e)w_V.ReplaceSample(d,e)}if(a=="weekly")w_V.UpdateWeekEnd()};w_V.ReplaceSample=function(a,b){var c=w_W(w_V.J,a);for(var d=0;d<c.length;d++){var e=
c[d];e.innerHTML=b}};w_V.UpdateWeekEnd=function(){w_Ta(w_V.J,document.forms.config.showWeekEnd.checked,"weekend");var a=w_V.wc.weekly,b=document.getElementById("weekly-menu-select"),c=0,d=document.forms.config.weekPattern.selectedIndex;for(var e=0;e<b.options.length;e++){var f=b.options[e],g=a["weekly"+c][d];c++;var h=a["weekly"+c][d],i=g;if(document.forms.config.showWeekEnd.checked)i=i+" - "+h;f.text=i}};w_V.UpdatePreviewPostTitles=function(){w_Ta(w_V.J,document.forms.config.showPosts.checked,"preview-posts")};
w_V.ToggleDirection=function(){var a=w_V.J.getElementsByTagName("UL");for(var b=0;b<a.length;b++){var c=a[b],d=c.ownerDocument.createDocumentFragment();while(c.hasChildNodes())d.appendChild(c.lastChild);c.appendChild(d)}var e=w_V.J.getElementsByTagName("SELECT");for(var b=0;b<e.length;b++){var f=e[b],g=f.options.length;for(var h=0;h<=g/2;h++){var i=f.options[h].innerHTML,j=g-h-1;f.options[h].innerHTML=f.options[j].innerHTML;f.options[j].innerHTML=i}f.options[0].selected=0}};function w_Ta(a,b,c){var d=
w_W(a,c);for(var e=0;e<d.length;e++){var f=d[e];w_n(f,b)}}function w_W(a,b){var c={};c.select=function(d){return d&&w_o(d,b)};return w_r(a,c)}var _ArchiveConfig=w_V;_ArchiveConfig._UpdateFrequency=_ArchiveConfig.UpdateFrequency;_ArchiveConfig._Reformat=_ArchiveConfig.Reformat;_ArchiveConfig._UpdateWeekEnd=_ArchiveConfig.UpdateWeekEnd;_ArchiveConfig._UpdatePreviewPostTitles=_ArchiveConfig.UpdatePreviewPostTitles;_ArchiveConfig._ToggleDirection=_ArchiveConfig.ToggleDirection;function w_X(a){this.a=a;this.e=a.l()}w_X.WIDGET_TYPE_NAME="Label";w_X.prototype.d=function(){return w_X.WIDGET_TYPE_NAME};w_X.prototype.b=function(){return this.a};w_X.prototype.c=function(a,b){this.a.i(b)};function w_Y(){}w_Y.Ac={sorting:null,title:null,securityToken:null};w_Y._Configure=function(){w_x.ConfigureWidget(w_Y.Ac)};w_Y.HIDDEN_CLASS="hidden";w_Y.PREVIEW_ROOT_ID="preview-wrap";w_Y.PREVIEW_CLASS="preview";w_Y._ShowPreview=function(a){var b=document.getElementById(w_Y.PREVIEW_ROOT_ID),c=
w_W(b,w_Y.PREVIEW_CLASS);for(var d=0;d<c.length;d++)w_p(c[d],w_Y.HIDDEN_CLASS);w_q(document.getElementById(a),w_Y.HIDDEN_CLASS)};var _LabelView=w_X,_LabelConfig=w_Y;function w_Z(a){this.a=a;this.e=a.l()}w_Z.WIDGET_TYPE_NAME="TextList";w_Z.prototype.d=function(){return w_Z.WIDGET_TYPE_NAME};w_Z.prototype.b=function(){return this.a};w_Z.prototype.g=function(){return false};w_Z.prototype.c=function(a,b){if(a=="configure")this.a.i(b)};var _TextListView=w_Z;function w__(a){this.a=a;this.e=a.l()}w__.WIDGET_TYPE_NAME="LinkList";w__.prototype.d=function(){return w__.WIDGET_TYPE_NAME};w__.prototype.g=function(){return false};w__.prototype.b=function(){return this.a};w__.prototype.c=function(a,b){if(a=="configure")this.a.i(b)};var _LinkListView=w__;_LinkListView.prototype=w__.prototype;function w_0(a){this.a=a;this.e=a.l()}w_0.prototype.d=function(){return"BloggerButton"};w_0.prototype.b=function(){return this.a};w_0.prototype.c=function(a,b){this.a.i(b)};var _BloggerButtonView=w_0;var w_1=function(a){this.a=a;this.e=a.l()};w_1.prototype.d=function(){return"Poll"};w_1.prototype.b=function(){return this.a};w_1.prototype.c=function(a,b){if(a=="configure"){this.savePending=false;this.a.i(b)}};w_1.prototype.B=function(a,b){if(a=="configure")this.savePending=false;w_.B(b,window)};w_1.adjustFrameHeight=function(){var a=document.getElementsByTagName("iframe");for(var 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_1.adjustFrameHeight,500);var _PollView=w_1;function w_2(a){this.a=a;this.e=a.l()}w_2.WIDGET_TYPE_NAME="Navbar";w_2.prototype.d=function(){return w_2.WIDGET_TYPE_NAME};w_2.prototype.b=function(){return this.a};w_2.prototype.g=function(){return false};w_2.prototype.c=function(a,b){this.a.i(b)};w_2.FilterMap={navbartype:null,securityToken:null};w_2.ConfigureWidget=function(){w_x.ConfigureWidget(w_2.FilterMap)};var _NavbarView=w_2;_NavbarView.prototype=w_2.prototype;_NavbarView._ConfigureWidget=_NavbarView.ConfigureWidget;function w_3(a){this.a=a;this.e=a.l()}w_3.WIDGET_TYPE_NAME="Profile";w_3.prototype.g=function(){return false};w_3.prototype.d=function(){return w_3.WIDGET_TYPE_NAME};w_3.prototype.b=function(){return this.a};w_3.prototype.c=function(a,b){if(a=="configure")this.a.i(b)};w_3.prototype.h=function(){this.e.rootElement.style.display=this.a.k().isDisplayable==false?"none":""};var _ProfileView=w_3;function w_Ua(a){var b=a.toLowerCase();for(var c=0;c<document.styleSheets.length;c++){var d=document.styleSheets[c],e=d.cssRules?d.cssRules:d.rules;for(var f=0;f<e.length;f++){var g=e[f];if(g.selectorText.toLowerCase().indexOf(b)!=-1)return g}return null}};var w_Va="/feedReaderJson/";function w_Wa(a){w_Va=a}function w_4(){this.requests={};this.currentId=0;this.completed=[]}w_4.prototype.Hb=function(a,b){var c=++this.currentId,d={};d.handler=a;d.errorHandler=b;this.requests[c]=d;return c};w_4.prototype.ma=function(a){var b=this.requests[a];this.requests[a]=null;this.completed.push(a);return b};w_4.prototype.ib=function(){while(this.completed.length){var a=this.completed.pop(),b=document.getElementById("FW_ScriptElement"+a);if(b)b.parentNode.removeChild(b)}};
w_4.prototype.Lb=function(a,b,c,d,e,f){this.ib();var g=this.Hb(c,d),h=w_Va+"?feedUrl="+encodeURIComponent(a)+"&n="+b+"&requestId="+encodeURIComponent(g)+"&locale="+encodeURIComponent(e)+"&timeZone="+encodeURIComponent(f),i="FW_ScriptElement"+g,j=document.createElement("script");j.type="text/javascript";j.charset="utf-8";j.src=h;j.id=i;document.getElementsByTagName("head")[0].appendChild(j)};var w_5=new w_4;function w_Xa(a){return w_5.ma(a).handler}function w_Ya(a){return w_5.ma(a).errorHandler}function w_Za(a,
b,c,d,e,f){w_5.Lb(a,b,c,d,e,f)}var _FW_setFeedReaderJsonBaseUrl=w_Wa,_FW_getHandler=w_Xa,_FW_getErrorHandler=w_Ya;function w_6(a,b,c,d){this.A=a;this.Na=b;this.Lc=c;this.ga=d;this.bb=new w_B("status-message");this.da="";this.qc=false}w_6.Cc=5;w_6.yc="moduleTitle";w_6.Sc="feedUrl";w_6.mb="step1";w_6.nb="step1Buttons";w_6.ob="step2";w_6.pb="preview";w_6.Dc="item-title";w_6.Nb="item-date";w_6.Mb="item-author";w_6.V="feedUrl";w_6.prototype.ka=function(a){this.bb.ja();w_A.ClearError(w_6.V);if((!a.items||a.items.length===0)&&a.title==="")this.aa();else{var b=document.getElementById(w_6.yc);if(b.value===""||this.qc){b.value=
a.title;this.Va=a.title}this.U(a);this.xb();this.Gb(b)}};w_6.prototype.Gb=function(a){a.style.display="none";a.style.display=""};w_6.prototype.aa=function(){this.bb.ja();w_A.SetError(w_6.V,this.ga._invalidFeedUrl);this.Y()};w_6.prototype.Ia=function(){};w_6.prototype.U=function(a){this.Ib(this.Na);for(var b=0;b<a.items.length;b++){var c=a.items[b];this.gb(c,this.Na)}this.xa();this.ua();this.va();this.wa()};w_6.prototype.Y=function(){this.v(w_6.mb,true);this.v(w_6.nb,true);this.v(w_6.ob,false);this.v(w_6.pb,
false)};w_6.prototype.xb=function(){this.v(w_6.mb,false);this.v(w_6.nb,false);this.v(w_6.ob,true);this.v(w_6.pb,true)};w_6.prototype.v=function(a,b){w_ha(document.getElementById(a),b)};w_6.prototype.gc=function(a){return a?"":"none"};w_6.prototype.Ja=function(a,b){if(this.A)return;var c=w_Ua(a);c.style.display=this.gc(b)};w_6.prototype.Da=function(a){this.Va=a;this.wa()};w_6.prototype.wa=function(){if(this.A)return;this.Lc.innerHTML=this.Va};w_6.prototype.Ga=function(a){this.Za=a;this.ua()};w_6.prototype.ua=
function(){this.Ja(w_6.Mb,this.Za)};w_6.prototype.Ha=function(a){this.$a=a;this.va()};w_6.prototype.va=function(){this.Ja(w_6.Nb,this.$a)};w_6.prototype.Ea=function(a){this.sc=a;this.xa()};w_6.prototype.xa=function(){var a=this.Na.getElementsByTagName("li");for(var b=0;b<a.length;b++)w_ha(a[b],b<this.sc)};w_6.prototype.gb=function(a,b){var c=document.createElement("li");b.appendChild(c);var d=document.createElement("span");d.className=w_6.Dc;c.appendChild(d);var e=document.createElement("a");d.appendChild(e);
e.href=a.alternate.href;e.target=this.A?"_self":"_blank";e.innerHTML=a.title;if(!this.A||this.$a){var f=document.createElement("span");f.className=w_6.Nb;f.innerHTML="&nbsp;-&nbsp;"+a.str_published;c.appendChild(f)}if(!this.A||this.Za){var g=document.createElement("span");g.className=w_6.Mb;g.innerHTML="&nbsp;-&nbsp;"+a.author;c.appendChild(g)}};w_6.prototype.Ib=function(a){while(a.firstChild)a.removeChild(a.firstChild)};w_6.prototype.Aa=function(a,b,c,d,e,f,g){if(!a||a===""){w_A.SetError(w_6.V,this.ga._missingFeedUrl);
return}if(a.length>2083){w_A.SetError(w_6.V,this.ga._feedUrlTooLong);return}this.bb.q(this.ga._retrievingFeed);this.Fa(a,b,c,d,e,f,g);this.$(w_6.prototype.ka,w_6.prototype.aa)};w_6.prototype.Jb=function(a,b,c,d,e,f,g){this.Fa(a,b,c,d,null,e,f);var h=w_v(w_6.prototype.$,this,w_6.prototype.U,w_6.prototype.Ia);window.setInterval(h,g*1000)};w_6.prototype.$=function(a,b){var c=w_v(a,this),d=w_v(b,this);w_Za(this.da,w_6.Cc,c,d,this.Kc,this.Pc)};w_6.prototype.Fa=function(a,b,c,d,e,f,g){this.qc=this.da!=
""&&this.da!=a;this.da=a;this.sc=b;this.$a=c;this.Za=d;this.Va=e;this.Kc=f;this.Pc=g};w_6.prototype._GoToStep1=w_6.prototype.Y;w_6.prototype._RetrieveFeedAndGoToStep2=w_6.prototype.Aa;w_6.prototype._SetModuleTitleAndRefresh=w_6.prototype.Da;w_6.prototype._SetShowItemAuthorAndRefresh=w_6.prototype.Ga;w_6.prototype._SetShowItemDateAndRefresh=w_6.prototype.Ha;w_6.prototype._SetNumItemsShowAndRefresh=w_6.prototype.Ea;var _FW_FeedController=w_6;function w_7(a){this.a=a}w_7.prototype.b=function(){return this.a};w_7.prototype.d=function(){return"Feed"};w_7.prototype.c=function(a,b){this.a.i(b)};w_7.prototype.h=function(){var a=this.a.p("feedItemListDisplay"),b=new w_6(true,a,null,null),c=this.a.l().data;b.Jb(c.feedUrl,c.numItemsShow,c.showItemDate,c.showItemAuthor,c.locale,c.timeZone,c.feedWidgetRefreshIntervalSec)};w_7.zc={moduleTitle:null,feedUrl:w_A.GetRequiredStringFilter(),numItemsShow:w_A.GetNumberFilter(1,5),showItemDate:null,showItemAuthor:null,
securityToken:null};w_7.setConfigurationOptions=function(){w_x.ConfigureWidget(w_7.zc)};var _FeedView=w_7;_FeedView._setConfigurationOptions=w_7.setConfigurationOptions;function w_8(a){this.a=a;this.e=a.l()}w_8.WIDGET_TYPE_NAME="Followers";w_8.prototype.g=function(){return false};w_8.prototype.d=function(){return w_8.WIDGET_TYPE_NAME};w_8.prototype.b=function(){return this.a};w_8.prototype.c=function(a,b){if(a=="configure")this.a.i(b)};w_8._openPopup=function(a){a=a.indexOf("?")>0?a+"&":a+"?";a=a+"loginTemplateDirectory=FOLLOWING";window.open(a,"_blank","height=600, width=600, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no")};
var _FollowersView=w_8;function w_9(a){this.a=a;this.e=a.l()}w_9.prototype.d=function(){return"Gadget"};w_9.prototype.b=function(){return this.a};w_9.prototype.c=function(a,b){this.a.i(b)};w_9.prototype.Kb=function(a){var b=document.getElementById(this.f);if(b)b.style.height=a+"px"};w_9.prototype.ya=function(){gadgets.rpc.register("resize_iframe",this.Kb)};w_9.prototype.h=function(){if(!w_9.InitializedRpc){var a=document.createElement("script");a.src="http://www.gmodules.com/gadgets/js/rpc.js?c=1";a.type="text/javascript";
var b=this;a.onload=function(){b.ya()};a.onreadystatechange=function(){if(this.readyState=="loaded"||this.readyState=="complete")b.ya()};document.getElementsByTagName("body")[0].appendChild(a);w_9.InitializedRpc=function(){}}};var _GadgetView=w_9;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=true;if(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 false}function _SW_hideReaderList(a){var b=document.getElementById("SW_READER_LIST_"+a),c=document.getElementById("SW_READER_LIST_UNDER"+a);b.style.display="none";c.style.visibility="visible"}function w_$(a){this.a=a;this.e=a.l()}w_$.WIDGET_TYPE_NAME="Subscribe";w_$.prototype.g=
function(){return false};w_$.prototype.d=function(){return w_$.WIDGET_TYPE_NAME};w_$.prototype.b=function(){return this.a};w_$.prototype.c=function(a,b){if(a=="configure")this.a.i(b)};var _SubscribeView=w_$;

