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(a){for(var b=0;b<arguments.length;b++){this[this.length]=arguments[b]}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(a){var b=arguments.length;for(var c=this.length-1;c>=0;c--){this[c+b]=this[c]}for(var d=0;d<b;d++){this[d]=arguments[d]}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_O(a,b){var c=a.Gb||[];c=c.concat(Array.prototype.slice.call(arguments,2));if(typeof a.qb!="undefined"){b=a.qb}if(typeof a.pb!="undefined"){a=a.pb}var d=function(){var e=c.concat(Array.prototype.slice.call(arguments));return a.apply(b,e)};d.Gb=c;d.qb=b;d.pb=a;return d}Function.prototype.bind=function(a){return w_O.apply(null,[this,a].concat(Array.prototype.slice.call(arguments,1)))};Function.prototype.inherits=function(a){var b=
function(){};b.prototype=a.prototype;this.Ub=a.prototype;this.prototype=new b};var w_ga=false;function w_U(a){try{throw a;}catch(b){w_ha(b)}}function w_ha(a,b){var c="Javascript exception: "+(b?b:"")+" "+a;if(w_ca()){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_ea(w_ha.caller);w_Aa(c+"\n"+d,1)}var w_Ya=/function (\w+)/;function w_ya(a){var b=w_Ya.exec(String(a));if(b){return b[1]}return""}function w_ea(a){try{if(!w_ca()&&!(w_S("safari")||w_S("konqueror"))&&w_S("mozilla")){return Error().stack}if(!a)return"";
var b="- "+w_ya(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_ea(a.caller);return b}catch(e){return"[Cannot get stack trace]: "+e+"\n"}}var w_Ba;var w_w=null,w_1=false;function w_za(){if((w_w==null||w_w.closed)&&!w_1){try{w_1=true;w_w=window.open("","debug","width=700,height=500,toolbar=no,resizable=yes,scrollbars=yes,left=16,top=16,screenx=16,screeny=16");w_w.blur();w_w.document.open();w_1=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_fa(a)}catch(b){}}}function w_Aa(a,b){if(!w_ga){if(typeof w_k!="undefined"){w_k(w_ka(a))}return}try{var c=(new Date).getTime()-w_Ba,d="["+c+"] "+w_ka(a).replace(/\n/g,"<br>")+"<br>";if(b==1){d="<font color=#ff0000><b>Error: "+d+"</b></font>";w_w.focus()}}catch(e){}w_fa(d)}function w_fa(a){if(!w_ga){return}try{w_za();w_w.document.write(a);w_w.scrollTo(0,1000000)}catch(b){}}
;function w_S(a){if(a in w__){return w__[a]}return w__[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}var w__={};function w_ca(){return w_S("msie")&&!window.opera}function w_3a(a){if(typeof Error!="undefined"){throw new Error(a||"Assertion Failed");}else{throw a;}}function w_Ha(a){if(a===undefined)a="Assertion failed";if(typeof w_U!="undefined")w_U(a+"\n");w_3a(a)}function w_R(a,b){if(!a){if(b===undefined)b="Assertion failed";w_Ha(b)}};function w_ra(a,b){a.style.display=b?"":"none"}function w_Na(a,
b){a.style.display=b?"block":"none"}function w_Oa(a,b){a.style.display=b?"inline":"none"}function w_l(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_q(a,b){if(w_l(a,b))return;a.className+=" "+b}function w_z(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_3(a,b){var c=[];for(var d=a.firstChild;d;d=d.nextSibling){w_ba(d,b,c)}return c}function w_ba(a,b,c){if(b.select(a)){c.push(a)}for(var d=a.firstChild;d;d=d.nextSibling){w_ba(d,b,c)}};var w_Ua=/&/g,w_1a=/</g,w_0a=/>/g;function w_ka(a){if(!a)return"";return a.replace(w_Ua,"&amp;").replace(w_1a,"&lt;").replace(w_0a,"&gt;").replace(w_2a,"&quot;")}var w_2a=/\"/g;function w_Wa(a){return document.getElementById(a)}function w_Xa(a){return document.all[a]}var w_Va=
document.getElementById?w_Wa:w_Xa;function w_k(a){try{if(window.parent!=window&&window.parent.log){window.parent.log(window.name+"::"+a);return}}catch(b){}var c=w_Va("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_g(){}w_g.raise=function(a){if(typeof Error!="undefined"){throw new Error(a||"Assertion Failed");}else{throw a;}};w_g.fail=function(a){if(a===undefined)a="Assertion failed";if(!(w_U===undefined))w_U(a+"\n");w_g.raise(a)};w_g.isTrue=function(a,b){if(!a){if(b===undefined)b="Assertion failed";w_g.fail(b)}};w_g.equals=function(a,b,c){if(a!=b){if(c===undefined){c="AS_Assert.equals failed: <"+a+"> != <"+b+">"}w_g.fail(c)}};w_g.typeOf=function(a,b,c){if(typeof a==b)return;if(a||a==""){try{if(b==
w_g.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_g.fail(c)};w_g.TYPE_MAP={string:String,number:Number,"boolean":Boolean};w_g.numArgs=function(a,b){var c=w_g.numArgs.caller;if(c&&c.arguments.length!=a){if(b===undefined){b=c.name+" expected "+a+" arguments  but received "+c.arguments.length}w_g.fail(b)}};var w_Z;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_Z=c;break}catch(d){}}if(!w_Z){throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed.");}}}w_Ra();function w_Qa(){if(w_Z){return new ActiveXObject(w_Z)}else{return new XMLHttpRequest}}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_k("XMLHttpSend failed "+c.toString()+"<br>"+c.stack);throw c;}};var w__a=0,w_aa=0;if("undefined"==typeof w_k){w_k=function(){}}function w_Ia(a){var b=-1;try{b=a.status}catch(c){}return b}function w_Ja(a){var b=null;try{b=a.statusText}catch(c){}return b}function w_Ka(a,b,c,d){if(a.readyState==4){try{var e=true;if(d){try{e=!(false===d(a))}catch(f){w_k("Message ("+b+") handling failed: "+f);throw f;}}var g=w_Ia(a);if(200===g){w_k("Message ("+b+") received after "+((new Date).getTime()-c)+" ms");try{var h=(new Date).getTime();if(e&&a.responseText.length){eval(a.responseText)}w_k("Message ("+
b+") processing took "+((new Date).getTime()-h)+" ms")}catch(f){w_k("Message ("+b+") processing failed: "+f);alert(f+"\n"+f.stack+"\n\n"+a.responseText);throw f;}}else if(204==g){w_k("Message ("+b+") received after "+((new Date).getTime()-c)+" ms")}else{w_k("Message ("+b+") failed with response "+g+" "+w_Ja(a)+" after "+((new Date).getTime()-c)+" ms.")}}finally{--w_aa}}}function w_La(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__a,j=w_Qa(),l=(new Date).getTime(),k=function(){w_Ka(j,i,l,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_k("Message ("+i+") sent: POST <tt>"+m+"</tt>.");++w_aa;w_Sa(j,a,d,k)};function w_j(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.q=f;if(!w_j.IsValidDisplayMode(f)){throw"bad display mode: "+f;}}else{this.q=w_j.DISPLAY_MODE_NONE}this.isNew=false}w_j.IsValidDisplayMode=function(a){return a==w_j.DISPLAY_MODE_SNIPPET||a==w_j.DISPLAY_MODE_FULL||a==w_j.DISPLAY_MODE_LAYOUT||a==w_j.DISPLAY_MODE_NONE};w_j.DISPLAY_MODE_FULL="displayModeFull";w_j.DISPLAY_MODE_SNIPPET="displayModeSnippet";w_j.DISPLAY_MODE_LAYOUT=
"displayModeLayout";w_j.DISPLAY_MODE_NONE="displayModeNone";function w_b(a){this.Ib=true;this.xa=new w_u(this);this.e=a;this.r=null}w_b.DATA_NAMESPACE_PREFIX="data";w_b.ACTION_NAMESPACE_PREFIX="b";w_b.INTERPRET_ATTR_NAMESPACE_PREFIX="expr";w_b.prototype.Ca=function(){var a=this.e.rootElement;a.innerHTML="";if(this.w()==w_j.DISPLAY_MODE_LAYOUT){a.appendChild(this.K("layout"))}else{a.appendChild(this.K("main"))}return a};w_b.prototype.hb=function(a){this.r=a};w_b.prototype.j=function(){return this.e};
w_b.prototype.m=function(a){return document.getElementById(this.e.instanceId+"_"+a)};w_b.prototype.z=function(a){var b=this.m(a);if(!b){throw"did not find element for id "+a;}return b};w_b.prototype.i=function(){return this.e.data};w_b.prototype.ha=function(a){return this.e.data=a};w_b.prototype.Ua=function(){return this.e.isNew};w_b.prototype.gb=function(a){return this.e.isNew=a};w_b.prototype.K=function(a,b){var c=b;if(!c){c=this.i()}if(!c){c={}}var d=new w_i;d.v("widget",this.Ja());d.ya(c);var e=
this.Y(a,d,w_i.DEFAULT_DICTIONARY_KEY);return this.X(e,document)};w_b.prototype.Ja=function(){var a={};a.type=this.r.d();a.instanceId=this.e.instanceId;a.sectionId=this.e.sectionId;a.actionUrl=w_.pa;var b=w_.rb+"&widgetType="+this.r.d()+"&widgetId="+this.e.instanceId+"&action="+w_.EDIT_WIDGET_ACTION;a.quickEditUrl=b;return a};w_b.prototype.Y=function(a,b,c){var d=this.Oa(a);w_g.isTrue(d!=null,"Markup chunk not found for "+a);var e=d.varName?d.varName:"",f=b.i(c);w_g.isTrue(f!=null,"No data found for call: "+
c);b.v(e,f);var g=this.C(d.rootNode,b);b.ea(e);return g};w_b.prototype.C=function(a,b){w_g.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.Ya(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_b.ACTION_NAMESPACE_PREFIX){c=this.Sa(a,b)}else if(a.prefix==
w_b.DATA_NAMESPACE_PREFIX){c=this.Ra(a,b)}}if(a.hasChildNodes()){var i=a.ownerDocument.createDocumentFragment();while(a.hasChildNodes()){var j=a.firstChild,l=this.C(j,b);i.appendChild(l);if(j!=l){a.removeChild(j)}}c.appendChild(i)}return c};w_b.prototype.Ya=function(a,b){if(a.prefix==w_b.INTERPRET_ATTR_NAMESPACE_PREFIX){var c=a.ownerDocument.createAttribute(a.localName||a.baseName),d=this.xa.T(a.nodeValue,b);c.nodeValue=d;return c}return a};w_b.prototype.Sa=function(a,b){var c=a.localName||a.baseName,
d=this.ga(c,a,b);return this.nb(d)};w_b.prototype.nb=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_b.prototype.H=function(a,b){var c=this.D(a);return b.i(c[1])};w_b.prototype.Ra=function(a,b){w_g.isTrue(a!=null,"Null element");w_g.isTrue(b!=null,"Null data");if(a.prefix!=w_b.DATA_NAMESPACE_PREFIX){return a}var c=this.H(a.tagName,b),d=""+(c==
null?"":c),e=document.createElement("span");e.innerHTML=d;var f=this.B(e);return this.X(f,a.ownerDocument,true)};w_b.prototype.D=function(a){var b=a.split(":",2);if(b.length==1){b.unshift("")}b[0]=b[0].toLowerCase();return b};w_b.prototype.ga=function(a,b,c){var d="_WidgetBinding_"+a;if(this.xa[d]){return this.xa[d](b,c)}if(this.r[d]){return this.r[d](b,c)}w_g.isTrue(false,"could not find binding "+a);return null};w_b.prototype.Xa=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_g.raise("Unable to find XML parser")}return b.documentElement};w_b.prototype.B=function(a){var b=a.ownerDocument.createDocumentFragment();while(a.hasChildNodes()){b.appendChild(a.firstChild)}return b};w_b.prototype.X=
function(a,b,c){w_g.isTrue(a!=null);if(b.importNode){return b.importNode(a,true)}if(!c){var d=b.createElement("span"),e=a.innerHTML||a.xml;d.innerHTML=e;return this.B(d)}var f=function(g){var h;if(g.nodeType==1){if(g.nodeName=="SCRIPT")return document.createTextNode("");h=b.createElement(g.nodeName);if(g.style){h.setAttribute("style",g.style.cssText)}if(g.currentStyle.height){h.setAttribute("height",g.currentStyle.height)}if(g.currentStyle.width){h.setAttribute("width",g.currentStyle.width)}for(var i=
0;i<g.attributes.length;i++){var j=g.attributes[i];if(j.value&&j.value!="null"&&j.value!="false"&&j.value!="0"){h.setAttribute(j.name,j.value)}}}else if(g.nodeType==3){h=b.createTextNode(g.nodeValue)}else if(g.nodeType==11){h=b.createDocumentFragment()}else{w_g.raise("unexpected node type "+g.nodeType)}if(g.hasChildNodes()){for(var i=0;i<g.childNodes.length;i++){h.appendChild(f(g.childNodes[i]))}}return h};return f(a)};w_b.prototype.p=function(a,b){var c=this.r,d=function(e){if(c.ActionCallback)return c.ActionCallback(e);
else return true};w_.p(a,b,this.e.instanceId,this.r.d(),d)};w_b.prototype.w=function(){return this.e.q};w_b.prototype.Oa=function(a){if(!a)return null;var b=w_.wa[a];if(!b){b=this.e.markups[a]}if(!b)return null;if(!b.parsedTemplate||!b.parsedTemplate.ownerDocument){this.Wa(b)}if(!b.parsedTemplate){w_g.raise("Parsing failed for "+a)}b.rootNode=b.parsedTemplate.cloneNode(true);return b};w_b.prototype.Wa=function(a){if(!a)return null;var b="<?xml version='1.0'?><markuproot xmlns:"+w_b.DATA_NAMESPACE_PREFIX+
"='urn:ns1'  xmlns:"+w_b.ACTION_NAMESPACE_PREFIX+"='urn:ns2' xmlns:"+w_b.INTERPRET_ATTR_NAMESPACE_PREFIX+"='urn:ns3'  xmlns='http://www.w3.org/1999/xhtml'>"+a.template+"</markuproot>\n",c=this.Xa(b);a.parsedTemplate=this.B(c);return a};w_b.ConfigureWidget=function(a,b){if(!b){b="config"}var c=document.forms[b].widgetId.value,d=document.forms[b].widgetType.value,e=w_e.ProcessForm(document.forms[b],a);if(e.success){w_.SaveWidget(e.values,c,d)}};function w_(){}w_.Init=function(a,b,c){w_.u={};w_.rb=a;
w_.pa=b;w_.Tb=c;w_.tb=null;if(!w_.wa){w_.wa={}}};w_.TrapClicks=function(a){var b;try{b=a.document.getElementsByTagName("A")}catch(c){return}for(var d=0;d<b.length;d++){b[d].onclick=w_.A}var e=a.document.getElementsByTagName("FORM");for(var d=0;d<e.length;d++){e[d].onsubmit=w_.A}for(var d=0;d<a.frames.length;d++){w_.TrapClicks(a.frames[d])}};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_.pa};w_.SetPageActionUrl=function(a,b){w_.sa=a;w_.Nb=b};w_.GetPageActionUrl=function(){return w_.sa};w_.SetWidgetRefreshUrl=function(a){w_.Qb=a};w_.GetWidgetRefreshUrl=function(){return w_.Qb};w_._SetDataContext=function(a){w_.tb=a};w_._SetSystemMarkup=function(a){w_.wa=a};w_._RegisterWidget=function(a,b,c){var d=new w_b(b);if(!c)c=window[a];var e=new c(d);d.hb(e);w_.u[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.gb(true);return d};w_.DisplayWidget=function(a,b){var c=a.b();if(c.w()==w_j.DISPLAY_MODE_NONE){return}if(b||a.f&&a.f()){c.Ca()}if(c.w()==w_j.DISPLAY_MODE_FULL){if(a.h){a.h()}}a.b().Ib=false};w_.GetWidget=function(a){if(w_.u){return w_.u[a]}return null};w_._PopupPaneFromParams=function(a,b,c,d,e){var f="";if(d){f="&widgetId="+d}var g=w_.rb+"&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_.l(b,b.LayoutsMessages.DELETING,w_.STATUS_MESSAGE_PENDING_CLASS);w_.RunPageAction("delete",{},a,b)};w_b.prototype.fb=function(a,b){w_.l(b,b.LayoutsMessages.SAVING,w_.STATUS_MESSAGE_PENDING_CLASS);this.p("configure",a)};w_.SaveNewWidget=function(a,b,c){var d=document.getElementById("sectionId").value;a.sectionid=d;w_.l(c,c.LayoutsMessages.SAVING,w_.STATUS_MESSAGE_PENDING_CLASS);
w_.RunPageAction("addnew",a,"",b)};w_.SaveWidget=function(a,b,c){w_R(c!=null,"no type");var d=_WidgetManager._GetWidget(b);w_R(d!=null,"no widget for "+b);if(d.b().Ua()){w_.SaveNewWidget(a,c,window)}else{d.a.fb(a,window)}};w_._RunInitialAction=function(a){var b=w_._GetWidget(a);if(b){b.b().p("initial")}};w_.p=function(a,b,c,d,e){w_.RunAction(w_.pa,a,b,c,d,e)};w_.RunPageAction=function(a,b,c,d,e){if(!w_.sa){w_k("RunPageAction error: pageActionUrl_ is undefined.  widgetid: "+c+" action: "+a);return}b.pageToken=
w_.Nb;w_.RunAction(w_.sa,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_La(a,g,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_aa==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_.u[a];if(c.errors!=null){var e=d?d.b().configWin:null;if(!e)e=window;w_.l(e,c.errors,w_.STATUS_MESSAGE_BAD_CLASS);if(d&&d.HandleControllerFailure){d.HandleControllerFailure(b,
c)}else{w_.HandleControllerFailure(c,e)}return}w_R(d!=null,"no widget for "+a);if(b=="initial"){d.b().ha(c);w_.DisplayWidget(d,true);return}d.c(b,c)};w_.HandleControllerFailure=function(a,b){var c=a["error-details"];for(var d in c){w_e.SetError(d,c[d],b.document)}};w_b.prototype.g=function(a){w_.l(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().ha(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_.l(window,c.errors,w_.STATUS_MESSAGE_BAD_CLASS);w_.HandleControllerFailure(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_.l(window,d,w_.STATUS_MESSAGE_GOOD_CLASS);if(e&&e._WidgetManager){e._WidgetManager._KillPopupDelay(window)}else{w_.CloseIfNoPendingMessages(window,100)}return}var f=w_.u[a];w_R(f!=null);if(b=="delete"){w_.l(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().w()==w_j.DISPLAY_MODE_LAYOUT){top.editor._HandleDeleteWidget(b.b().e.rootElement)}else{var c=
b.b().e.rootElement;c.parentNode.removeChild(c)}delete w_.u[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_.l=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_l(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_.A;b.onmousedown=
w_.A;b.onmouseup=w_.A;b.style.background="white";b.style.filter="alpha(opacity=1)";b.style.opacity=".01";b.innerHTML="&nbsp;";return b};w_.A=function(a){var b=a;if(!b){b=window.event}if(b){b.cancelBubble=true;if(b.stopPropagation){b.stopPropagation()}}return false};function w_u(a){this.n=a}w_u.prototype._WidgetBinding_include=function(a,b){var c=a.getAttribute("name"),d=a.getAttribute("data");return this.n.Y(c,b,d)};w_u.prototype._WidgetBinding_call=w_u.prototype._WidgetBinding_include;w_u.prototype._WidgetBinding_loop=
function(a,b){var c=a.getAttribute("values"),d=this.n.D(c),e=this.n.H(d[1],b),f=a.getAttribute("var");if(!f){w_g.raise("Invalid var= attribute on b:loop")}var g=this.n.B(a),h=a.ownerDocument.createDocumentFragment();if(!e)return h;for(var i=0;i<e.length;i++){var j=e[i],l=g.cloneNode(true);b.v(f,j);var k=this.n.C(l,b);b.ea(f);h.appendChild(k)}return h};w_u.prototype._WidgetBinding_if=function(a,b){var c=this.T(a.getAttribute("cond"),b),d=a.ownerDocument.createDocumentFragment(),e=false;while(a.firstChild!=
null){var f=a.firstChild;if("else"==this.n.D(f.nodeName)[1].toLowerCase()){e=true}else if(c&&!e||!c&&e){var g=this.n.C(f,b);d.appendChild(g)}if(f.parentNode==a){a.removeChild(f)}}return d};w_u.prototype.T=function(a,b){w_g.isTrue(a!=null,"null expression");var c=this.ib(a,b);try{var d=eval(c);return d}catch(e){w_k("expression=["+a+"] error="+e+" eval=["+c+"]")}return""};w_u.prototype.ib=function(a,b){var c=new RegExp("\\b(?:"+w_b.DATA_NAMESPACE_PREFIX+"|"+w_b.ACTION_NAMESPACE_PREFIX+"):[^ ]*\\b",
"gi"),d="",e=0,f=c.exec(a);while(f){var g=f[0];if(!this.Ta(a,c.lastIndex)){var h,i=this.n.D(g);if(i[0]==w_b.ACTION_NAMESPACE_PREFIX){h=this.n.ga(i[1],null,b)}else if(i[0]==w_b.DATA_NAMESPACE_PREFIX){h=this.n.H(g,b);if(!h)h="";h=h+""}else{w_g.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_u.prototype.Ta=function(a,b){w_g.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_e(){}w_e.ERROR_MSG_ACTIVE_CLASS="errorbox-bad errormsg";w_e.ERROR_MSG_INACTIVE_CLASS="errorbox-good";w_e.ProcessForm=function(a,b){var c={};c.success=true;c.values={};c.errors={};for(var d in b){var e=w_e.GetFieldValue(a[d]),f=b[d];w_e.ClearError(d);if(f){var g=f(e);if(g){w_e.SetError(d,g);c.success=false;c.errors[d]=g}}c.values[d]=e}return c};w_e.GetFieldValue=function(a){if(!a)return undefined;
if(a.type=="checkbox"){if(a.checked){return a.value}return undefined}if(a.type==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_e.Na=function(a,b){if(!b)b=document;var c="errormessage_"+a;return b.getElementById(c)};w_e.ClearError=function(a){var b=w_e.Na(a);if(b){b.innerHTML="";b.className=w_e.ERROR_MSG_INACTIVE_CLASS}};w_e.SetError=function(a,b,c){var d=w_e.Na(a,c);
if(d){d.innerHTML=b;d.className=w_e.ERROR_MSG_ACTIVE_CLASS}};w_e.GetRequiredStringFilter=function(){return function(a){a=a.replace(/^\s+/,"").replace(/\s+$/,"");if(a.length==0){return LayoutsMessages.FIELD_CANNOT_BE_BLANK}return undefined}};w_e.GetNumberFilter=function(a,b){return function(c){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_i(){this.k=
[];for(var a in w_.tb){this.k[this.k.length]=a}}w_i.DEFAULT_DICTIONARY_KEY="";w_i.MAX_DICTIONARY_DEPTH=50;w_i.SEPARATOR_CHAR=".";w_i.prototype.v=function(a,b){if(this.k.length>=w_i.MAX_DICTIONARY_DEPTH){w_g.raise("Cannot add another dictionary: "+a)}if(a.indexOf(w_i.SEPARATOR_CHAR)>-1){w_g.raise("Cannot add dictionary name containing '.': "+a)}var c={};c.name=a;c.data=b;this.k[this.k.length]=c};w_i.prototype.ea=function(a){var b=this.k[this.k.length-1];if(b.name!=a){w_g.raise("Dictionary "+a+" is not the last one, and can't be deleted: "+
b.name)}this.k.splice(this.k.length-1,1)};w_i.prototype.I=function(a){if(a==null)a=w_i.DEFAULT_DICTIONARY_KEY;for(var b=this.k.length-1;b>=0;--b){if(this.k[b].name==a){return this.k[b].data}}return null};w_i.prototype.V=function(){return this.I(w_i.DEFAULT_DICTIONARY_KEY)};w_i.prototype.ya=function(a){this.v(w_i.DEFAULT_DICTIONARY_KEY,a)};w_i.prototype.i=function(a){var b=this.I(a);if(b)return b;var c=a.split(w_i.SEPARATOR_CHAR);if(c.length==1){b=this.V();return b[a]}b=this.I(c[0]);var d=0;if(b){d=
1}else{b=this.V()}for(var e=d;e<c.length;e++){if(b==null)return null;b=b[c[e]]}return b};function w_Pa(){}w_Pa.prototype.c=function(a,b){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_j;_WidgetInfo.prototype=w_j.prototype;function w_J(a){this.Sb=false;this.Q=a;this.N=window.document}w_J.DISABLED_BUTTON_CLASS="disabled-button";w_J.HIDDEN_MESSAGE_CLASS="status-msg-hidden";w_J.prototype.R=function(){this.N.getElementById(this.Q+"-inner").innerHTML="&nbsp;";w_q(this.N.getElementById(this.Q),w_J.HIDDEN_MESSAGE_CLASS)};w_J.prototype.l=function(a){this.N.getElementById(this.Q+"-inner").innerHTML=a;w_z(this.N.getElementById(this.Q),w_J.HIDDEN_MESSAGE_CLASS)};function w_L(a){this.a=a}w_L.WIDGET_TYPE_NAME="AdSense";w_L.prototype.d=function(){return w_L.WIDGET_TYPE_NAME};w_L.prototype.b=function(){return this.a};w_L.prototype.c=function(a,b){this.a.g(b)};var _AdSenseView=w_L;function w_d(a){this.a=a;this.e=a.j()}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.Hb="&#9660;&nbsp;";w_d.Jb="&#9658;&nbsp;";w_d.prototype.d=function(){return w_d.WIDGET_TYPE_NAME};w_d.prototype.b=function(){return this.a};w_d.prototype.f=
function(){return false};w_d.prototype.c=function(a,b){if(a=="configure"){this.a.g(b)}else if(a=="getTitles"){this.mb(b)}else{this.widgetInfo.data=b;w_.DisplayWidget(this)}};w_d.prototype.h=function(){var a={};a.select=function(i){return i&&w_l(i,"toggle")};var b=this.a.m("ArchiveList");if(!b)return;var c=w_3(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.jb.bind(this);if(d)f.style.color=d}var g=
this.a.m(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.Pa.bind(this)}};w_d.prototype.Pa=function(){var a=this.a.m(w_d.MENU_ROOT_ID);if(!a)return;if(a.value=="")return;window.location.href=a.value};w_d.prototype.jb=function(a){a=a||window.event;var b=a.currentTarget||a.srcElement;if(b&&!w_l(b,"toggle"))b=b.parentNode;var c=w_.GetFirstElementInElementWithClass(b,
"zippy"),d=b.parentNode;if(w_l(d,w_d.INTERVAL_EXPANDED_VALUE)){w_z(d,w_d.INTERVAL_EXPANDED_VALUE);w_q(d,w_d.INTERVAL_COLLAPSED_VALUE);c.innerHTML=w_d.Jb;w_z(c,w_d.TOGGLE_OPEN_CLASS);return false}else{w_z(d,w_d.INTERVAL_COLLAPSED_VALUE);w_q(d,w_d.INTERVAL_EXPANDED_VALUE);c.innerHTML=w_d.Hb;w_q(c,w_d.TOGGLE_OPEN_CLASS)}if(this.Va(d)){var e=this.W(d);if(!e){e=document.createElement("UL");d.appendChild(e);w_q(e,w_d.POST_LIST_CLASS)}e.appendChild(document.createTextNode(w_d.LOADING_MSG));this.a.p("getTitles",
{path:this.La(d)})}return false};w_d.prototype.W=function(a){return w_.GetFirstElementInElementWithClass(a,w_d.POST_LIST_CLASS)};w_d.prototype.La=function(a){var b=w_.GetFirstElementInElementWithClass(a,w_d.POST_COUNT_LINK_CLASS);return b.href};w_d.prototype.Ma=function(a){var b=w_.GetFirstElementInElementWithClass(a,w_d.POST_COUNT_CLASS);return parseInt(b.innerHTML,10)};w_d.prototype.mb=function(a){var b=a.path,c=this.W(this.Ka(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.Ka=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.Va=function(a){var b=a.getElementsByTagName("UL");if(b.length>0&&!w_l(b[0],"posts")){return}var c=this.Ma(a),d=a.getElementsByTagName("LI"),e=d.length;return e<c};var _BlogArchiveView=w_d;function w_f(a){this.a=a;this.t=a.j();if(this.t.data){this.vb=this.t.data.showBacklinks}}w_f.BACKLINKS_ROOT="backlinks-container";w_f.BACKLINKS_CHUNK="backlinks";w_f.BACKLINK_ITEM_ROOT_CLASS="backlink-control";w_f.BACKLINK_EXPANDED_CLASS="expanded-backlink";w_f.BACKLINK_COLLAPSED_CLASS="collapsed-backlink";w_f.BACKLINK_ZIPPY_CLASS="backlink-toggle-zippy";w_f.WIDGET_TYPE_NAME="Blog";w_f.prototype.d=function(){return w_f.WIDGET_TYPE_NAME};w_f.prototype.b=function(){return this.a};w_f.prototype.c=function(a,
b){if(a=="initial"){this.t.data=b;w_.DisplayWidget(this,true)}else if(a=="nextposts"){this.Da(b)}else if(a=="configure"){this.a.g(b)}else if(a=="backlinks"){this.lb(b)}};w_f.prototype.Da=function(a){var b=a.renderedData,c=this.t.rootElement;if(!b||!c){return}c.innerHTML=b;window.scroll(0,0);this.h()};w_f.prototype.lb=function(a){this.vb=false;var b=this.a.K(w_f.BACKLINKS_CHUNK,a),c=this.a.m(w_f.BACKLINKS_ROOT);if(c){c.innerHTML="";c.appendChild(b)}var d=w_3(this.t.rootElement,w_f.ob);for(var e=0;e<
d.length;e++){var f=d[e];f.onclick=this.kb.bind(this)}var g=this.a.m("backlinks-create-link");if(g!=null){g.onclick=this.Aa.bind(this,g.href)}};w_f.ob={};w_f.ob.select=function(a){return a&&w_l(a,w_f.BACKLINK_ZIPPY_CLASS)};w_f.prototype.kb=function(a){a=a||window.event;this.Ea(a.srcElement||a.target)};w_f.prototype.Ea=function(a){var b=a.parentNode;while(b&&!w_l(b,w_f.BACKLINK_ITEM_ROOT_CLASS)){b=b.parentNode}if(!b)return;if(w_l(b,w_f.BACKLINK_EXPANDED_CLASS)){w_z(b,w_f.BACKLINK_EXPANDED_CLASS);w_q(b,
w_f.BACKLINK_COLLAPSED_CLASS)}else{w_q(b,w_f.BACKLINK_EXPANDED_CLASS);w_z(b,w_f.BACKLINK_COLLAPSED_CLASS)}};w_f.prototype.h=function(){var a=this.a.m("blog-pager-newer-link");if(a&&this.Z(a)){a.onclick=this.$.bind(this)}var b=this.a.m("blog-pager-older-link");if(b&&this.Z(b)){b.onclick=this.$.bind(this)}if(this.vb){this.a.p("backlinks",{postID:this.t.data.postId})}};w_f.prototype.Z=function(a){var b=a.href;return b.indexOf("/search?")>-1};w_f.prototype.$=function(a){a=a||window.event;var b=a.target||
a.srcElement;this.a.p("nextposts",{path:b.href});return false};w_f.prototype.Aa=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_f;function w_v(a){this.a=a}w_v.WIDGET_TYPE_NAME="CustomSearch";w_v.prototype.d=function(){return w_v.WIDGET_TYPE_NAME};w_v.prototype.b=function(){return this.a};w_v.prototype.f=function(){return false};w_v.prototype.c=function(a,b){if(a=="configure"){this.a.g(b)}};w_v.prototype.h=function(){if(!window._UDS_bootstrapped){var a;if(window.location.host.match(/blogger\.com$/)){a="ABQIAAAAVBJEtyJuLxgUs8KlzeA1lRQpkWYODHKIJGlKH8M-8R98XOejsxRkHYkMWejKfPos1RBuAqHID9wA9Q"}else{a=this.a.i().key}w_$("http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-vbpe&key="+
a);w_Y(w_ta);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_9()){w_Y(w_da.bind(f))}else{window.setTimeout(w_da.bind(f),0)}};function w_da(){var a=new GSearchControl,b=this.i();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.z("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_O(w_xa,null,
a));document.getElementById("uds-searchClearResults").onclick=w_O(w_wa,null,a);w_0(false)}function w_xa(a){w_0(true);return a.submit()}function w_wa(a){a.clearAllResults();w_0(false)}function w_0(a){document.getElementById("uds-searchClearResults").style.display=a?"inline":"none"}var _CustomSearchView=w_v;_CustomSearchView._Configure=_CustomSearchView.Configure;function w_s(a){this.a=a;this.e=a.j()}w_s.WIDGET_TYPE_NAME="Image";w_s.prototype.b=function(){return this.a};w_s.prototype.d=function(){return w_s.WIDGET_TYPE_NAME};w_s.prototype.f=function(){return false};w_s.prototype.h=function(){if(this.e.data.resize!="true"){return}var a=this.a.m(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_s.prototype.c=function(a,b){if(a=="configure"){this.a.g(b)}};var _ImageView=w_s;var w_5="changeImageLink",w_Q="imageChoiceTable",w_D="imgUrlText",w_E="picDiv",w_4="bufferImage",w_h=null,w_H,w_F,w_I,w_G,w_A,w_t,_SIV_sectionWidth;function _SIV_setConfigurationOptions(){if(w_h==null){w_e.SetError(w_D,WidgetMessages.SIV_NO_IMAGE);return}var a=document.forms.config.widgetId.value,b=_SIV_createConfigurationOptions(document.getElementById("title").value,document.getElementById("imageCaption").value);w_.SaveWidget(b,a,w_s.WIDGET_TYPE_NAME)}function _SIV_createConfigurationOptions(a,
b){var c=document.forms.config.securityToken.value;if(w_h==null){return}var d=w_h.src;d=w_.MaybePrependHttp(d);var e=w_h.height,f=w_h.width;if(w_F!=""&&w_t==-1){w_t=e}if(w_H!=""&&w_A==-1){if(w_G<w_I){w_A=(w_t*w_I/w_G).toFixed()}else{w_A=w_t}}if(w_.IsOpenerReachable(window)){var g=document.getElementById("sectionId").value;_SIV_sectionWidth=window.opener.document.getElementById(g).clientWidth}var h=document.getElementById("checkShrink").checked;if(h){if(w_F!=""){d=w_F;f=w_G;e=w_t}else{if(f>_SIV_sectionWidth){e=
(e*_SIV_sectionWidth/f).toFixed();f=_SIV_sectionWidth}}}else{if(w_H!=""){d=w_H;f=w_I;e=w_A}}var i={sourceUrl:d,height:e,width:f,shrinkToFit:h,securityToken:c,uploadedPhotoUrl:w_H,uploadedPhotoWidth:w_I,uploadedPhotoHeight:w_A,resizedPhotoUrl:w_F,resizedPhotoWidth:w_G,resizedPhotoHeight:w_t,sectionWidth:_SIV_sectionWidth};if(a){i.title=a}if(b){i.caption=b}return i}function _SIV_preloadImageFromWeb(){var a=document.getElementById(w_D),b=a.value;if(!b||b.length==0||b=="http://"){return}if(b.substring(0,
4)!="http"){b="http://"+b}_SIV_startAnimation();_SIV_preLoadImage(b)}var w_6,w_7;function _SIV_imgUrlTextOnKeyUp(a,b){var c=a||window.event;if(c.keyCode==9)return;document.getElementById("fromWeb").checked="true";if(w_7!=null){window.clearTimeout(w_7)}w_7=window.setTimeout(function(){var d=document.getElementById(w_D).value;if(w_6!=d.toLowerCase()){_SIV_preloadImageFromWeb();w_6=d.toLowerCase();_SIV_resetUploadedPhotoMetadata()}},1000)}function _SIV_startAnimation(){var a=document.getElementById("picImg");
a.src="img/icon_inprogress.gif";a.style.width="200px";a.style.height="200px";document.getElementById(w_E).style.height=a.style.height;_SIV_makeVisible(w_E);_SIV_makeInvisible(w_Q)}function _SIV_stopAnimation(){_SIV_makeInvisible(w_E);_SIV_makeVisible(w_Q);_SIV_makeInvisible(w_5)}function _SIV_processUploadedImage(a,b,c,d){w_H=a;w_F=b;w_I=c;w_G=d;w_A=-1;w_t=-1;_SIV_preLoadImage(b)}var w_8=0;function _SIV_preLoadImage(a,b){if(typeof b=="undefined")b=true;var c=document.getElementById(w_4),d;if(b){d=
c.onLoad}c.onload=function(){_SIV_imgOnLoad(d)};c.onerror=_SIV_imgOnError;c.src=a}function _SIV_changeImage(a){_SIV_makeVisible(w_Q);_SIV_makeInvisible(w_E);a.style.display="none";document.getElementById(w_D).value="http://";w_h=null;var b=document.getElementById("uploadFrame").contentWindow;b.location.href=b.location.href}function _SIV_imgOnLoad(a){w_8=0;w_h=document.getElementById(w_4);w_e.ClearError(w_D);var b=document.getElementById("picImg");if(w_h.width<300&&w_h.height<300){b.style.height=_SIV_px(w_h.height);
b.style.width=_SIV_px(w_h.width)}else if(w_h.height>w_h.width){b.style.height=_SIV_px(300);b.style.width=_SIV_px(300*w_h.width/w_h.height)}else{b.style.width=_SIV_px(300);b.style.height=_SIV_px(300*w_h.height/w_h.width)}b.margin=5;document.getElementById(w_E).style.height=_SIV_px(b.height);b.src=w_h.src;_SIV_makeVisible(w_E);_SIV_makeInvisible(w_Q);_SIV_makeVisible(w_5);if(typeof a=="function"){a()}}function _SIV_imgOnError(){if(w_8++<2){window.setTimeout(function(){_SIV_preLoadImage(document.getElementById(w_4).src,
false)},2000);return}w_8=0;w_e.SetError(w_D,WidgetMessages.SIV_INVALID_URL);_SIV_makeInvisible(w_E);_SIV_makeVisible(w_Q);_SIV_makeInvisible(w_5)}function _SIV_initializeWindow(a,b,c,d,e,f,g){w_H=a;w_I=b;w_A=c;w_F=d;w_G=e;w_t=f;_SIV_sectionWidth=g;var h=document.getElementById(w_D);if(h.value!=""){_SIV_preloadImageFromWeb();w_6=h.value;document.getElementById("title").focus()}}function _SIV_initFrame(){var a=document.getElementById("uploadFrame");a.height=a.contentWindow.document.body.scrollHeight;
a.allowTransparency=true}function _SIV_px(a){return Math.round(a)+"px"}function _SIV_makeVisible(a){document.getElementById(a).style.display="block"}function _SIV_makeInvisible(a){document.getElementById(a).style.display="none"}function _SIV_resetUploadedPhotoMetadata(){w_H="";w_F="";w_I=-1;w_G=-1;w_A=-1;w_t=-1}function _SIV_hasLoadedImage(){return w_h}function _SIV_fromPCTabHandler(a){var b=a||window.event;if(b.keyCode==9&&!b.shiftKey){w_qa(document.getElementById("uploadFrame")).getElementById("imageFileName").focus();
return false}return true}function _SIV_fromWebTabHandler(a){var b=a||window.event;if(b.keyCode==9&&b.shiftKey){w_qa(document.getElementById("uploadFrame")).getElementById("imageFileName").focus();return false}return true}function w_qa(a){var b=a.contentWindow||a.contentDocument;if(b.document){b=b.document}return b};function w_m(a){this.a=a;this.e=a.j()}w_m.WIDGET_TYPE_NAME="Header";w_m.prototype.d=function(){return w_m.WIDGET_TYPE_NAME};w_m.prototype.f=function(){return false};w_m.prototype.b=function(){return this.a};w_m.prototype.c=function(a,b){this.a.g(b)};w_m.FilterMap={title:w_e.GetRequiredStringFilter(),description:null,imagePlacement:null,useImage:null,securityToken:null};w_m.ConfigureWidget=function(){var a;if(_SIV_hasLoadedImage()){a=_SIV_createConfigurationOptions()}var b=document.forms.config.widgetId.value,
c=document.forms.config.widgetType.value,d=w_e.ProcessForm(document.forms.config,w_m.FilterMap);if(d.success){for(var e in a){d.values[e]=a[e]}w_.SaveWidget(d.values,b,c);return true}else{return false}};w_m.hideImageOptions=function(){document.getElementById("imageOptions").style.display="none";return false};w_m.showImageOptions=function(){document.getElementById("imageOptions").style.display="";return false};w_m.removeImage=function(a){_SIV_makeInvisible("imagePlacementTable");_SIV_changeImage(a);
_SIV_resetUploadedPhotoMetadata()};var _HeaderView=w_m;_HeaderView.prototype=w_m.prototype;_HeaderView._ConfigureWidget=_HeaderView.ConfigureWidget;_HeaderView._hideImageOptions=_HeaderView.hideImageOptions;_HeaderView._showImageOptions=_HeaderView.showImageOptions;_HeaderView._removeImage=_HeaderView.removeImage;function w_p(a,b){this.a=a;this.e=a.j();this.Pb=b}w_p.prototype.b=function(){return this.a};w_p.prototype.d=function(){return this.Pb};w_p.prototype.c=function(a,b){if(a=="configure"){this.a.g(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_X(a){w_p.call(this,a,"Text")}w_X.inherits(w_p);w_X.ConfigureWidget=function(){w_p.ConfigureWidget("Text")};function w_W(a){w_p.call(this,a,"HTML")}w_W.inherits(w_p);w_W.ConfigureWidget=function(){w_p.ConfigureWidget("HTML")};var _TextView=w_X;_TextView.prototype=w_X.prototype;_TextView._ConfigureWidget=_TextView.ConfigureWidget;var _HTMLView=w_W;_HTMLView.prototype=w_W.prototype;_HTMLView._ConfigureWidget=_HTMLView.ConfigureWidget;function w_$(a){document.write('<script src="'+a+'" type="text/javascript"><\/script>')}function w_va(a){document.write('<style type="text/css"> @import url( "'+a+'" );</style>')}function w_Y(a){if(w_9()){w_k("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_ta(){window._UDS_loaded=true}function w_9(){return window._UDS_loaded}function w_B(a){this.a=
a}w_B.WIDGET_TYPE_NAME="VideoBar";w_B.prototype.d=function(){return w_B.WIDGET_TYPE_NAME};w_B.prototype.b=function(){return this.a};w_B.prototype.f=function(){return false};w_B.prototype.c=function(a,b){if(a=="configure"){this.a.g(b)}};w_B.prototype.h=function(){if(!window._UDS_bootstrapped){var a;if(window.location.host.match(/blogger\.com$/)){a="ABQIAAAAVBJEtyJuLxgUs8KlzeA1lRQpkWYODHKIJGlKH8M-8R98XOejsxRkHYkMWejKfPos1RBuAqHID9wA9Q"}else{a=this.a.i().key}w_$("http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-vbpe&key="+
a);w_va("http://www.google.com/uds/css/gsearch.css");w_Y(w_ta);window._UDS_bootstrapped=true}if(!window._UDS_vb_bootstrapped){window._uds_vbw_donotrepair=true;w_$("http://www.google.com/uds/solutions/videobar/gsvideobar.js?mode=new");w_va("http://www.google.com/uds/solutions/videobar/gsvideobar.css");window._UDS_vb_bootstrapped=true}var b=document.getElementById("videoBar-player");if(!b){b=document.createElement("DIV");b.id="videoBar-player";b.innerHTML='<span class="videoBar-status">Loading...</span>';
var c=document.getElementById("main");if(!c){c=document.getElementsByTagName("body")[0]}c.insertBefore(b,c.firstChild)}var d=this.b();if(!w_9()){w_Y(w_ua.bind(d))}else{window.setTimeout(w_ua.bind(d),0)}};function w_ua(){var a=this.z("bar"),b=this.i().format,c,d,e=this.i().expression;if(b=="VERTICAL"){c=false;d=GSvideoBar.THUMBNAILS_MEDIUM}else if(b=="HORIZONTAL-SMALL"){c=true;d=GSvideoBar.THUMBNAILS_SMALL}else if(b=="HORIZONTAL-MEDIUM"){c=true;d=GSvideoBar.THUMBNAILS_MEDIUM}var f={largeResultSet:false,
horizontal:c,autoExecuteList:{cycleTime:GSvideoBar.CYCLE_TIME_LONG,cycleMode:GSvideoBar.CYCLE_MODE_RANDOM,executeList:e.split(/,/)},thumbnailSize:d},g;if(window._UDS_vb_master!=null){g=null;f.master=window._UDS_vb_master}else{g=document.getElementById("videoBar-player")}var h=new GSvideoBar(a,g,f);if(g!=null){window._UDS_vb_master=h}window[a.id]=h}var _VideoBarView=w_B;_VideoBarView._Configure=_VideoBarView.Configure;function w_oa(a){document.write('<script src="'+a+'" type="text/javascript"><\/script>')}function w_pa(a){document.write('<style type="text/css"> @import url( "'+a+'" );</style>')}function w_ma(a){if(w_la()){w_k("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_Ma(){window._UDS_loaded=true}function w_la(){return window._UDS_loaded}function w_y(a){this.a=
a}w_y.WIDGET_TYPE_NAME="NewsBar";w_y.prototype.d=function(){return w_y.WIDGET_TYPE_NAME};w_y.prototype.b=function(){return this.a};w_y.prototype.f=function(){return false};w_y.prototype.c=function(a,b){if(a=="configure"){this.a.g(b)}};w_y.prototype.h=function(){if(!window._UDS_bootstrapped){var a;if(window.location.host.match(/blogger\.com$/)){a="ABQIAAAAVBJEtyJuLxgUs8KlzeA1lRQpkWYODHKIJGlKH8M-8R98XOejsxRkHYkMWejKfPos1RBuAqHID9wA9Q"}else{a=this.a.i().key}w_oa("http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-nbpe&key="+
a);w_pa("http://www.google.com/uds/css/gsearch.css");w_ma(w_Ma);window._UDS_bootstrapped=true}if(!window._UDS_nb_bootstrapped){window._uds_nbw_donotrepair=true;w_oa("http://www.google.com/uds/solutions/newsbar/gsnewsbar.js?mode=new");w_pa("http://www.google.com/uds/solutions/newsbar/gsnewsbar.css");window._UDS_nb_bootstrapped=true}var b=this.b();if(!w_la()){w_ma(w_na.bind(b))}else{window.setTimeout(w_na.bind(b),0)}};function w_na(){var a=this.z("bar"),b,c=this.i().format;if(c=="VERTICAL"){b=false}else if(c==
"HORIZONTAL-SMALL"){b=true}else if(c=="HORIZONTAL-MEDIUM"){b=true}var d=this.i().expression,e=this.i().linkNewWindow,f;if(e==true){f=GSearch.LINK_TARGET_BLANK}else{f=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_y;_NewsBarView._Configure=
_NewsBarView.Configure;function w_c(){}w_c.Kb={title:null,showStyle:null,showPosts:null,chronological:null,frequency:null,yearPattern:null,monthPattern:null,weekPattern:null,showWeekEnd:null,dayPattern:null,securityToken:null};w_c.ACTIVE_PREVIEW_CLASS="active-preview";w_c.PREVIEW_CLASS="preview";w_c._SetConfigurationOptions=function(){w_b.ConfigureWidget(w_c.Kb)};w_c.UpdateFrequency=function(){var a=w_e.GetFieldValue(document.forms.config.showStyle),b={year:a=="HIERARCHY",week:0,month:0,day:0},c=w_e.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;if(a=="HIERARCHY"){d.disabled=false}else{d.disabled=true}for(var e in b){var f=e+"pattern-wrap";w_Na(document.getElementById(f),b[e])}w_c.SelectPreview()};w_c._Init=function(a){w_c.yb=a;w_c.s=document.getElementById("archive-previews");w_c.xb=w_V(w_c.s,w_c.PREVIEW_CLASS);w_c.UpdateFrequency();w_c.Reformat("yearly",document.forms.config.yearPattern);w_c.Reformat("monthly",
document.forms.config.monthPattern);w_c.Reformat("weekly",document.forms.config.weekPattern);w_c.Reformat("daily",document.forms.config.dayPattern);w_c.UpdateWeekEnd();w_c.UpdatePreviewPostTitles();if(document.forms.config.chronological.checked){w_c.ToggleDirection()}};w_c.SelectPreview=function(){var a=w_e.GetFieldValue(document.forms.config.showStyle),b=w_e.GetFieldValue(document.forms.config.frequency);for(var c=0;c<w_c.xb.length;c++){var d=w_c.xb[c];if(w_l(d,a)&&w_l(d,b)){w_q(d,w_c.ACTIVE_PREVIEW_CLASS);
if(w_l(d,"MENU")){w_c.Fb(d)}}else{w_z(d,w_c.ACTIVE_PREVIEW_CLASS);if(w_l(d,"MENU")){w_c.Cb(d)}}}};w_c.Cb=function(a){var b=a.getElementsByTagName("select");for(var c=0;c<b.length;c++){b[c].style.display="none"}};w_c.Fb=function(a){var b=a.getElementsByTagName("select");for(var c=0;c<b.length;c++){b[c].style.display="block"}};w_c.Reformat=function(a,b){var c=w_c.yb[a];for(var d in c){var e=c[d][b.selectedIndex];if(e)w_c.ReplaceSample(d,e)}if(a=="weekly"){w_c.UpdateWeekEnd()}};w_c.ReplaceSample=function(a,
b){var c=w_V(w_c.s,a);for(var d=0;d<c.length;d++){var e=c[d];e.innerHTML=b}};w_c.UpdateWeekEnd=function(){w_sa(w_c.s,document.forms.config.showWeekEnd.checked,"weekend");var a=w_c.yb.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_c.UpdatePreviewPostTitles=function(){w_sa(w_c.s,
document.forms.config.showPosts.checked,"preview-posts")};w_c.ToggleDirection=function(){var a=w_c.s.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_c.s.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_sa(a,b,c){var d=w_V(a,c);for(var e=0;e<d.length;e++){var f=d[e];w_Oa(f,b)}}function w_V(a,b){var c={};c.select=function(d){return d&&w_l(d,b)};return w_3(a,c)}var _ArchiveConfig=w_c;_ArchiveConfig._UpdateFrequency=_ArchiveConfig.UpdateFrequency;_ArchiveConfig._Reformat=_ArchiveConfig.Reformat;_ArchiveConfig._UpdateWeekEnd=_ArchiveConfig.UpdateWeekEnd;_ArchiveConfig._UpdatePreviewPostTitles=_ArchiveConfig.UpdatePreviewPostTitles;_ArchiveConfig._ToggleDirection=
_ArchiveConfig.ToggleDirection;function w_M(a){this.a=a;this.e=a.j()}w_M.WIDGET_TYPE_NAME="Label";w_M.prototype.d=function(){return w_M.WIDGET_TYPE_NAME};w_M.prototype.b=function(){return this.a};w_M.prototype.c=function(a,b){this.a.g(b)};function w_n(){}w_n.Bb={sorting:null,title:null,securityToken:null};w_n._Configure=function(){w_b.ConfigureWidget(w_n.Bb)};w_n.HIDDEN_CLASS="hidden";w_n.PREVIEW_ROOT_ID="preview-wrap";w_n.PREVIEW_CLASS="preview";w_n._ShowPreview=function(a){var b=document.getElementById(w_n.PREVIEW_ROOT_ID),c=
w_V(b,w_n.PREVIEW_CLASS);for(var d=0;d<c.length;d++){w_q(c[d],w_n.HIDDEN_CLASS)}w_z(document.getElementById(a),w_n.HIDDEN_CLASS)};var _LabelView=w_M,_LabelConfig=w_n;function w_K(a){this.a=a;this.e=a.j()}w_K.WIDGET_TYPE_NAME="TextList";w_K.prototype.d=function(){return w_K.WIDGET_TYPE_NAME};w_K.prototype.b=function(){return this.a};w_K.prototype.f=function(){return false};w_K.prototype.c=function(a,b){if(a=="configure"){this.a.g(b)}};var _TextListView=w_K;function w_x(a){this.a=a;this.e=a.j()}w_x.WIDGET_TYPE_NAME="LinkList";w_x.prototype.d=function(){return w_x.WIDGET_TYPE_NAME};w_x.prototype.f=function(){return false};w_x.prototype.b=function(){return this.a};w_x.prototype.c=function(a,b){if(a=="configure"){this.a.g(b)}};var _LinkListView=w_x;_LinkListView.prototype=w_x.prototype;function w_T(a){this.a=a;this.e=a.j()}w_T.prototype.d=function(){return"BloggerButton"};w_T.prototype.b=function(){return this.a};w_T.prototype.c=function(a,b){this.a.g(b)};var _BloggerButtonView=w_T;var w_N=function(a){this.a=a;this.e=a.j()};w_N.prototype.d=function(){return"Poll"};w_N.prototype.b=function(){return this.a};w_N.prototype.c=function(a,b){if(a=="configure"){this.a.g(b)}};w_N.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_N.adjustFrameHeight,500);var _PollView=w_N;function w_o(a){this.a=a;this.e=a.j()}w_o.WIDGET_TYPE_NAME="Navbar";w_o.prototype.d=function(){return w_o.WIDGET_TYPE_NAME};w_o.prototype.b=function(){return this.a};w_o.prototype.f=function(){return false};w_o.prototype.c=function(a,b){this.a.g(b)};w_o.FilterMap={navbartype:null,securityToken:null};w_o.ConfigureWidget=function(){w_b.ConfigureWidget(w_o.FilterMap)};var _NavbarView=w_o;_NavbarView.prototype=w_o.prototype;_NavbarView._ConfigureWidget=_NavbarView.ConfigureWidget;function w_C(a){this.a=a;this.e=a.j()}w_C.WIDGET_TYPE_NAME="Profile";w_C.prototype.f=function(){return false};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){if(a=="configure"){this.a.g(b)}};var _ProfileView=w_C;function w_Fa(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_ia="/feedReaderJson/";function w_Ga(a){w_ia=a}function w_ja(a){return"FW_ScriptElement"+a}function w_P(){this.requests={};this.currentId=0;this.completed=[]}w_P.prototype.$a=function(a,b){var c=++this.currentId,d={};d.handler=a;d.errorHandler=b;this.requests[c]=d;return c};w_P.prototype.U=function(a){var b=this.requests[a];this.requests[a]=null;this.completed.push(a);return b};w_P.prototype.Ba=function(){while(this.completed.length){var a=this.completed.pop(),b=document.getElementById(w_ja(a));
if(b){b.parentNode.removeChild(b)}}};w_P.prototype.cb=function(a,b,c,d,e,f){this.Ba();var g=this.$a(c,d),h="_FW_getHandler("+g+")",i="_FW_getErrorHandler("+g+")",j=w_ia+"?feedUrl="+encodeURIComponent(a)+"&n="+b+"&callback="+encodeURIComponent(h)+"&errorCallback="+encodeURIComponent(i)+"&locale="+encodeURIComponent(e)+"&timeZone="+encodeURIComponent(f),l=w_ja(g),k=document.createElement("script");k.type="text/javascript";k.charset="utf-8";k.src=j;k.id=l;document.getElementsByTagName("head")[0].appendChild(k)};
var w_2=new w_P;function w_Da(a){return w_2.U(a).handler}function w_Ca(a){return w_2.U(a).errorHandler}function w_Ea(a,b,c,d,e,f){w_2.cb(a,b,c,d,e,f)}var _FW_setFeedReaderJsonBaseUrl=w_Ga,_FW_getHandler=w_Da,_FW_getErrorHandler=w_Ca;function w_a(a,b,c,d){this.q=a;this.qa=b;this.Mb=c;this.P=d;this.va=new w_J("status-message");this.O="";this.ub=false}w_a.Db=5;w_a.zb="moduleTitle";w_a.Rb="feedUrl";w_a.Fa="step1";w_a.Ga="step1Buttons";w_a.Ha="step2";w_a.Ia="preview";w_a.Eb="item-title";w_a.eb="item-date";w_a.db="item-author";w_a.G="feedUrl";w_a.prototype.S=function(a){this.va.R();w_e.ClearError(w_a.G);if((!a.items||a.items.length===0)&&a.title===""){this.M()}else{var b=document.getElementById(w_a.zb);if(b.value===""||this.ub){b.value=
a.title;this.ra=a.title}this.F(a);this.Qa();this.Za(b)}};w_a.prototype.Za=function(a){a.style.display="none";a.style.display=""};w_a.prototype.M=function(){this.va.R();w_e.SetError(w_a.G,this.P._invalidFeedUrl);this.J()};w_a.prototype.na=function(){};w_a.prototype.F=function(a){this.ab(this.qa);for(var b=0;b<a.items.length;b++){var c=a.items[b];this.za(c,this.qa)}this.da();this.aa();this.ba();this.ca()};w_a.prototype.J=function(){this.o(w_a.Fa,true);this.o(w_a.Ga,true);this.o(w_a.Ha,false);this.o(w_a.Ia,
false)};w_a.prototype.Qa=function(){this.o(w_a.Fa,false);this.o(w_a.Ga,false);this.o(w_a.Ha,true);this.o(w_a.Ia,true)};w_a.prototype.o=function(a,b){w_ra(document.getElementById(a),b)};w_a.prototype.sb=function(a){return a?"":"none"};w_a.prototype.oa=function(a,b){if(this.q){return}var c=w_Fa(a);c.style.display=this.sb(b)};w_a.prototype.ia=function(a){this.ra=a;this.ca()};w_a.prototype.ca=function(){if(this.q){return}this.Mb.innerHTML=this.ra};w_a.prototype.la=function(a){this.ta=a;this.aa()};w_a.prototype.aa=
function(){this.oa(w_a.db,this.ta)};w_a.prototype.ma=function(a){this.ua=a;this.ba()};w_a.prototype.ba=function(){this.oa(w_a.eb,this.ua)};w_a.prototype.ja=function(a){this.wb=a;this.da()};w_a.prototype.da=function(){var a=this.qa.getElementsByTagName("li");for(var b=0;b<a.length;b++){w_ra(a[b],b<this.wb)}};w_a.prototype.za=function(a,b){var c=document.createElement("li");b.appendChild(c);var d=document.createElement("span");d.className=w_a.Eb;c.appendChild(d);var e=document.createElement("a");d.appendChild(e);
e.href=a.alternate.href;if(this.q){e.target="_self"}else{e.target="_blank"}e.innerHTML=a.title;if(!this.q||this.ua){var f=document.createElement("span");f.className=w_a.eb;f.innerHTML="&nbsp;-&nbsp;"+a.str_published;c.appendChild(f)}if(!this.q||this.ta){var g=document.createElement("span");g.className=w_a.db;g.innerHTML="&nbsp;-&nbsp;"+a.author;c.appendChild(g)}};w_a.prototype.ab=function(a){while(a.firstChild){a.removeChild(a.firstChild)}};w_a.prototype.fa=function(a,b,c,d,e,f,g){if(!a||a===""){w_e.SetError(w_a.G,
this.P._missingFeedUrl);return}if(a.length>2083){w_e.SetError(w_a.G,this.P._feedUrlTooLong);return}this.va.l(this.P._retrievingFeed);this.ka(a,b,c,d,e,f,g);this.L(w_a.prototype.S,w_a.prototype.M)};w_a.prototype.bb=function(a,b,c,d,e,f,g){this.ka(a,b,c,d,null,e,f);var h=w_O(w_a.prototype.L,this,w_a.prototype.F,w_a.prototype.na);window.setInterval(h,g*1000)};w_a.prototype.L=function(a,b){var c=w_O(a,this),d=w_O(b,this);w_Ea(this.O,w_a.Db,c,d,this.Lb,this.Ob)};w_a.prototype.ka=function(a,b,c,d,e,f,g){this.ub=
this.O!=""&&this.O!=a;this.O=a;this.wb=b;this.ua=c;this.ta=d;this.ra=e;this.Lb=f;this.Ob=g};w_a.prototype._GoToStep1=w_a.prototype.J;w_a.prototype._RetrieveFeedAndGoToStep2=w_a.prototype.fa;w_a.prototype._SetModuleTitleAndRefresh=w_a.prototype.ia;w_a.prototype._SetShowItemAuthorAndRefresh=w_a.prototype.la;w_a.prototype._SetShowItemDateAndRefresh=w_a.prototype.ma;w_a.prototype._SetNumItemsShowAndRefresh=w_a.prototype.ja;var _FW_FeedController=w_a;function w_r(a){this.a=a}w_r.prototype.b=function(){return this.a};w_r.prototype.d=function(){return"Feed"};w_r.prototype.c=function(a,b){this.a.g(b)};w_r.prototype.h=function(){var a=this.a.z("feedItemListDisplay"),b=new w_a(true,a,null,null),c=this.a.j().data;b.bb(c.feedUrl,c.numItemsShow,c.showItemDate,c.showItemAuthor,c.locale,c.timeZone,c.feedWidgetRefreshIntervalSec)};w_r.Ab={moduleTitle:null,feedUrl:w_e.GetRequiredStringFilter(),numItemsShow:w_e.GetNumberFilter(1,5),showItemDate:null,showItemAuthor:null,
securityToken:null};w_r.setConfigurationOptions=function(){w_b.ConfigureWidget(w_r.Ab)};var _FeedView=w_r;_FeedView._setConfigurationOptions=w_r.setConfigurationOptions;
