function WindowOnload(c){var b=window.onload;window.onload=function(){if(b){b()}c()}}function ec3(){WindowOnload(function(){var r=document.getElementById("ec3_prev");var q=document.getElementById("ec3_next");if(r&&q){var s=new RegExp("&cat=[0-9]+$");var o=s.exec(r.href);if(o){ec3.catClause=o[0]}r.href="javascript:ec3.go_prev()";q.href="javascript:ec3.go_next()";ec3.imgwait=new Image(14,14);ec3.imgwait.src=ec3.myfiles+"/ec_load.gif";ec3.viewpostsfor=c(ec3.viewpostsfor);for(var p=0;p<ec3.month_of_year.length;p++){ec3.month_of_year[p]=c(ec3.month_of_year[p])}for(var n=0;n<ec3.month_abbrev.length;n++){ec3.month_abbrev[n]=c(ec3.month_abbrev[n])}}});function c(n){if(!ec3.unencodeDiv){ec3.unencodeDiv=document.createElement("div")}ec3.unencodeDiv.innerHTML=n;return(ec3.unencodeDiv.innerText||ec3.unencodeDiv.firstChild.nodeValue)}function h(p,q){var o=p.getElementsByTagName(q);if(o){for(var n=0;n<o.length;n++){if(o[n].parentNode==p){return o[n]}}}return 0}ec3.get_child_by_tag_name=h;function k(n,o,p){if(ec3.today_day_num==n&&ec3.today_month_num==o&&ec3.today_year_num==p){return"today"}else{return"ec3_"+p+"_"+o+"_"+n}}function m(z,p,w){var B=z.cloneNode(1);var v=p-1;var C=h(B,"caption");if(C){var y=h(C,"a");var r=ec3.month_of_year[v]+" "+w;if(y&&y.firstChild&&y.firstChild.nodeType==ec3.TEXT_NODE){if(p<10){y.href=ec3.home+"/?m="+w+"0"+p}else{y.href=ec3.home+"/?m="+w+p}if(ec3.catClause){y.href+=ec3.catClause}y.title=ec3.viewpostsfor;y.title=y.title.replace(/%1\$s/,ec3.month_of_year[v]);y.title=y.title.replace(/%2\$s/,w);y.firstChild.data=r}}if(C&&C.firstChild&&C.firstChild.nodeType==ec3.TEXT_NODE){C.firstChild.data=ec3.month_of_year[v]+" "+w}var u=h(B,"tbody");while(u.lastChild){u.removeChild(u.lastChild)}var s=new Date(w,v,1,12,0,0);var x=document.createElement("tr");var t,o;u.appendChild(x);var n=0;var q=0;while(s.getMonth()==v&&n<40){var A=(s.getDay()+7-ec3.start_of_week)%7;if(q>6){x=document.createElement("tr");u.appendChild(x);q=0}if(q<A){t=document.createElement("td");t.colSpan=A-q;t.className="pad";x.appendChild(t);q=A}t=document.createElement("td");t.appendChild(document.createTextNode(s.getDate()));t.id=k(s.getDate(),p,w);x.appendChild(t);q++;n++;s.setDate(s.getDate()+1)}if(q<7){t=document.createElement("td");t.colSpan=7-q;t.className="pad";x.appendChild(t)}if((7-q)>1&&!ec3.hide_logo){a=document.createElement("a");a.href="http://blog.firetree.net/?ec3_version="+ec3.version;a.title="Event Calendar "+ec3.version;t.style.verticalAlign="bottom";t.appendChild(a);o=document.createElement("div");o.className="ec3_ec";o.align="right";a.appendChild(o)}B.id="ec3_"+w+"_"+p;return B}function l(n,p){var o=new XMLHttpRequest();if(o){ec3.reqs.push(o);o.onreadystatechange=i;o.open("GET",ec3.home+"/?ec3_xml="+p+"_"+n,true);g(1);o.send(null)}}function f(){var q=document.getElementById("wp-calendar");var n=new Array();for(var o=0;o<q.childNodes.length;o++){var p=q.childNodes[o];if(p.id&&p.id.search("ec3_[0-9]")==0&&p.style.display!="none"){n.push(q.childNodes[o])}}if(n.length>0){return n}else{return 0}}ec3.get_calendars=f;function d(p,q){var o=document.getElementById("ec3_prev");if(o&&o.firstChild&&o.firstChild.nodeType==ec3.TEXT_NODE){o.firstChild.data="\u00ab\u00a0"+ec3.month_abbrev[p%12]}var n=document.getElementById("ec3_next");if(n&&n.firstChild&&n.firstChild.nodeType==ec3.TEXT_NODE){n.firstChild.data=ec3.month_abbrev[q%12]+"\u00a0\u00bb"}}function g(n){var p=document.getElementById("ec3_spinner");var o=document.getElementById("ec3_publish");if(p){if(n){p.style.display="inline";if(o){o.style.display="none"}}else{p.style.display="none";if(o){o.style.display="inline"}}}}function b(){var s=f();if(!s){return}var n=s[0].parentNode;var p=s[0].id.split("_");if(p.length<3){return}var r=parseInt(p[1]);var o=parseInt(p[2])-1;if(o==0){o=12;r--}var q=document.getElementById("ec3_"+r+"_"+o);if(q){q.style.display=ec3.calendar_display}else{q=m(s[0],o,r);n.insertBefore(q,s[0]);l(o,r)}ec3.calendar_display=s[s.length-1].style.display;s[s.length-1].style.display="none";d(o+10,o+s.length-1)}ec3.go_prev=b;function e(){var t=f();if(!t){return}var o=t[0].parentNode;var n=t[t.length-1];var q=n.id.split("_");if(q.length<3){return}var s=parseInt(q[1]);var p=1+parseInt(q[2]);if(p==13){p=1;s++}var r=document.getElementById("ec3_"+s+"_"+p);if(r){r.style.display=ec3.calendar_display}else{r=m(t[0],p,s);if(n.nextSibling){o.insertBefore(r,n.nextSibling)}else{o.appendChild(r)}l(p,s)}ec3.calendar_display=t[0].style.display;t[0].style.display="none";d(p-t.length+11,p)}ec3.go_next=e;function i(){var p=0;for(var n=0;n<ec3.reqs.length;n++){var o=ec3.reqs[n];if(o){if(o.readyState==4){ec3.reqs[n]=0;if(o.status==200){j(o.responseXML.documentElement)}}else{p=1}}}if(!p){while(ec3.reqs.shift&&ec3.reqs.length&&!ec3.reqs[0]){ec3.reqs.shift()}g(0)}}function j(q){var t=q.getElementsByTagName("day");if(!t){return}for(var p=0;p<t.length;p++){var s=document.getElementById(t[p].getAttribute("id"));if(s&&s.firstChild&&s.firstChild.nodeType==ec3.TEXT_NODE){s.className="ec3_postday";var n=s.removeChild(s.firstChild);var o=document.createElement("a");o.href=t[p].getAttribute("link");o.title=t[p].getAttribute("titles");if(t[p].getAttribute("is_event")){s.className+=" ec3_eventday";o.className="eventday"}o.appendChild(n);s.appendChild(o)}}if(typeof ec3_Popup!="undefined"){var r=document.getElementById(q.childNodes[0].getAttribute("id"));if(r){ec3_Popup.add_tbody(h(r,"tbody"))}}}}ec3();ec3.today=new Date();ec3.today_day_num=ec3.today.getDate();ec3.today_month_num=1+ec3.today.getMonth();ec3.today_year_num=ec3.today.getFullYear();ec3.reqs=new Array();ec3.ELEMENT_NODE=1;ec3.TEXT_NODE=3;ec3.version="3.1.4";