addComment={moveForm:function(d,f,i,c){var m=this,a,h=m.I(d),b=m.I(i),l=m.I("cancel-comment-reply-link"),j=m.I("comment_parent"),k=m.I("comment_post_ID");if(!h||!b||!l||!j){return}m.respondId=i;c=c||false;if(!m.I("wp-temp-form-div")){a=document.createElement("div");a.id="wp-temp-form-div";a.style.display="none";b.parentNode.insertBefore(a,b)}h.parentNode.insertBefore(b,h.nextSibling);if(k&&c){k.value=c}j.value=f;l.style.display="";l.onclick=function(){var n=addComment,e=n.I("wp-temp-form-div"),o=n.I(n.respondId);if(!e||!o){return}n.I("comment_parent").value="0";e.parentNode.insertBefore(o,e);e.parentNode.removeChild(e);this.style.display="none";this.onclick=null;return false};try{m.I("comment").focus()}catch(g){}return false},I:function(a){return document.getElementById(a)}};;if(window.ActiveXObject&&!window.XMLHttpRequest){window.XMLHttpRequest=function(){var msxmls=new Array('Msxml2.XMLHTTP.5.0','Msxml2.XMLHTTP.4.0','Msxml2.XMLHTTP.3.0','Msxml2.XMLHTTP','Microsoft.XMLHTTP');for(var i=0;i<msxmls.length;i++){try{return new ActiveXObject(msxmls[i]);}catch(e){}}
return null;};}
if(window.opera&&!window.XMLHttpRequest){window.XMLHttpRequest=function(){this.readyState=0;this.status=0;this.statusText='';this._headers=[];this._aborted=false;this._async=true;this._defaultCharset='ISO-8859-1';this._getCharset=function(){var charset=_defaultCharset;var contentType=this.getResponseHeader('Content-type').toUpperCase();val=contentType.indexOf('CHARSET=');if(val!=-1){charset=contentType.substring(val);}
val=charset.indexOf(';');if(val!=-1){charset=charset.substring(0,val);}
val=charset.indexOf(',');if(val!=-1){charset=charset.substring(0,val);}
return charset;};this.abort=function(){this._aborted=true;};this.getAllResponseHeaders=function(){return this.getAllResponseHeader('*');};this.getAllResponseHeader=function(header){var ret='';for(var i=0;i<this._headers.length;i++){if(header=='*'||this._headers[i].h==header){ret+=this._headers[i].h+': '+this._headers[i].v+'\n';}}
return ret;};this.getResponseHeader=function(header){var ret=getAllResponseHeader(header);var i=ret.indexOf('\n');if(i!=-1){ret=ret.substring(0,i);}
return ret;};this.setRequestHeader=function(header,value){this._headers[this._headers.length]={h:header,v:value};};this.open=function(method,url,async,user,password){this.method=method;this.url=url;this._async=true;this._aborted=false;this._headers=[];if(arguments.length>=3){this._async=async;}
if(arguments.length>3){opera.postError('XMLHttpRequest.open() - user/password not supported');}
this.readyState=1;if(this.onreadystatechange){this.onreadystatechange();}};this.send=function(data){if(!navigator.javaEnabled()){alert("XMLHttpRequest.send() - Java must be installed and enabled.");return;}
if(this._async){setTimeout(this._sendasync,0,this,data);}else{this._sendsync(data);}}
this._sendasync=function(req,data){if(!req._aborted){req._sendsync(data);}};this._sendsync=function(data){this.readyState=2;if(this.onreadystatechange){this.onreadystatechange();}
var url=new java.net.URL(new java.net.URL(window.location.href),this.url);var conn=url.openConnection();for(var i=0;i<this._headers.length;i++){conn.setRequestProperty(this._headers[i].h,this._headers[i].v);}
this._headers=[];if(this.method=='POST'){conn.setDoOutput(true);var wr=new java.io.OutputStreamWriter(conn.getOutputStream(),this._getCharset());wr.write(data);wr.flush();wr.close();}
var gotContentEncoding=false;var gotContentLength=false;var gotContentType=false;var gotDate=false;var gotExpiration=false;var gotLastModified=false;for(var i=0;;i++){var hdrName=conn.getHeaderFieldKey(i);var hdrValue=conn.getHeaderField(i);if(hdrName==null&&hdrValue==null){break;}
if(hdrName!=null){this._headers[this._headers.length]={h:hdrName,v:hdrValue};switch(hdrName.toLowerCase()){case'content-encoding':gotContentEncoding=true;break;case'content-length':gotContentLength=true;break;case'content-type':gotContentType=true;break;case'date':gotDate=true;break;case'expires':gotExpiration=true;break;case'last-modified':gotLastModified=true;break;}}}
var val;val=conn.getContentEncoding();if(val!=null&&!gotContentEncoding)this._headers[this._headers.length]={h:'Content-encoding',v:val};val=conn.getContentLength();if(val!=-1&&!gotContentLength)this._headers[this._headers.length]={h:'Content-length',v:val};val=conn.getContentType();if(val!=null&&!gotContentType)this._headers[this._headers.length]={h:'Content-type',v:val};val=conn.getDate();if(val!=0&&!gotDate)this._headers[this._headers.length]={h:'Date',v:(new Date(val)).toUTCString()};val=conn.getExpiration();if(val!=0&&!gotExpiration)this._headers[this._headers.length]={h:'Expires',v:(new Date(val)).toUTCString()};val=conn.getLastModified();if(val!=0&&!gotLastModified)this._headers[this._headers.length]={h:'Last-modified',v:(new Date(val)).toUTCString()};var reqdata='';var stream=conn.getInputStream();if(stream){var reader=new java.io.BufferedReader(new java.io.InputStreamReader(stream,this._getCharset()));var line;while((line=reader.readLine())!=null){if(this.readyState==2){this.readyState=3;if(this.onreadystatechange){this.onreadystatechange();}}
reqdata+=line+'\n';}
reader.close();this.status=200;this.statusText='OK';this.responseText=reqdata;this.readyState=4;if(this.onreadystatechange){this.onreadystatechange();}
if(this.onload){this.onload();}}else{this.status=404;this.statusText='Not Found';this.responseText='';this.readyState=4;if(this.onreadystatechange){this.onreadystatechange();}
if(this.onerror){this.onerror();}}};};}
if(!window.ActiveXObject&&window.XMLHttpRequest){window.ActiveXObject=function(type){switch(type.toLowerCase()){case'microsoft.xmlhttp':case'msxml2.xmlhttp':case'msxml2.xmlhttp.3.0':case'msxml2.xmlhttp.4.0':case'msxml2.xmlhttp.5.0':return new XMLHttpRequest();}
return null;};};function WindowOnload(f)
{var prev=window.onload;window.onload=function(){if(prev)prev();f();}}
function ec3()
{WindowOnload(function()
{var prev=document.getElementById('ec3_prev');var next=document.getElementById('ec3_next');if(prev&&next)
{var xCat=new RegExp('&cat=[0-9]+$');var match=xCat.exec(prev.href);if(match)
ec3.catClause=match[0];prev.href='javascript:ec3.go_prev()';next.href='javascript:ec3.go_next()';ec3.imgwait=new Image(14,14);ec3.imgwait.src=ec3.myfiles+'/ec_load.gif';ec3.viewpostsfor=unencode(ec3.viewpostsfor);for(var i=0;i<ec3.month_of_year.length;i++)
ec3.month_of_year[i]=unencode(ec3.month_of_year[i]);for(var j=0;j<ec3.month_abbrev.length;j++)
ec3.month_abbrev[j]=unencode(ec3.month_abbrev[j]);}});function unencode(text)
{if(!ec3.unencodeDiv)
ec3.unencodeDiv=document.createElement('div');ec3.unencodeDiv.innerHTML=text;return(ec3.unencodeDiv.innerText||ec3.unencodeDiv.firstChild.nodeValue);}
function get_child_by_tag_name(element,tag_name)
{var results=element.getElementsByTagName(tag_name);if(results)
for(var i=0;i<results.length;i++)
if(results[i].parentNode==element)
return results[i];return 0;}
ec3.get_child_by_tag_name=get_child_by_tag_name;function calc_day_id(day_num,month_num,year_num)
{if(ec3.today_day_num==day_num&&ec3.today_month_num==month_num&&ec3.today_year_num==year_num)
{return'today';}
else
{return'ec3_'+year_num+'_'+month_num+'_'+day_num;}}
function create_calendar(table_cal,month_num,year_num)
{var table=table_cal.cloneNode(1);var month_num0=month_num-1;var caption=get_child_by_tag_name(table,'caption');if(caption)
{var c=get_child_by_tag_name(caption,'a');var caption_text=ec3.month_of_year[month_num0]+' '+year_num;if(c&&c.firstChild&&c.firstChild.nodeType==ec3.TEXT_NODE)
{if(month_num<10)
{c.href=ec3.home+'/?m='+year_num+'0'+month_num;}
else
{c.href=ec3.home+'/?m='+year_num+month_num;}
if(ec3.catClause)
c.href+=ec3.catClause;c.title=ec3.viewpostsfor;c.title=c.title.replace(/%1\$s/,ec3.month_of_year[month_num0]);c.title=c.title.replace(/%2\$s/,year_num);c.firstChild.data=caption_text;}}
if(caption&&caption.firstChild&&caption.firstChild.nodeType==ec3.TEXT_NODE)
caption.firstChild.data=ec3.month_of_year[month_num0]+' '+year_num;var tbody=get_child_by_tag_name(table,'tbody');while(tbody.lastChild)
tbody.removeChild(tbody.lastChild);var date=new Date(year_num,month_num0,1,12,00,00);var tr=document.createElement('tr');var td,div;tbody.appendChild(tr);var day_count=0
var col=0;while(date.getMonth()==month_num0&&day_count<40)
{var day=(date.getDay()+7-ec3.start_of_week)%7;if(col>6)
{tr=document.createElement('tr');tbody.appendChild(tr);col=0;}
if(col<day)
{td=document.createElement('td');td.colSpan=day-col;td.className='pad';tr.appendChild(td);col=day;}
td=document.createElement('td');td.appendChild(document.createTextNode(date.getDate()));td.id=calc_day_id(date.getDate(),month_num,year_num);tr.appendChild(td);col++;day_count++;date.setDate(date.getDate()+1);}
if(col<7)
{td=document.createElement('td');td.colSpan=7-col;td.className='pad';tr.appendChild(td);}
if((7-col)>1&&!ec3.hide_logo)
{a=document.createElement('a');a.href='http://blog.firetree.net/?ec3_version='+ec3.version;a.title='Event Calendar '+ec3.version;td.style.verticalAlign='bottom';td.appendChild(a);div=document.createElement('div');div.className='ec3_ec';div.align='right';a.appendChild(div);}
table.id='ec3_'+year_num+'_'+month_num;return table;}
function loadDates(month_num,year_num)
{var req=new XMLHttpRequest();if(req)
{ec3.reqs.push(req);req.onreadystatechange=process_xml;req.open("GET",ec3.home+'/?ec3_xml='+year_num+'_'+month_num,true);set_spinner(1);req.send(null);}}
function get_calendars()
{var div=document.getElementById('wp-calendar');var result=new Array();for(var i=0;i<div.childNodes.length;i++)
{var c=div.childNodes[i];if(c.id&&c.id.search('ec3_[0-9]')==0&&c.style.display!='none')
result.push(div.childNodes[i]);}
if(result.length>0)
return result;else
return 0;}
ec3.get_calendars=get_calendars;function rewrite_controls(prev_month0,next_month0)
{var prev=document.getElementById('ec3_prev');if(prev&&prev.firstChild&&prev.firstChild.nodeType==ec3.TEXT_NODE)
prev.firstChild.data='\u00ab\u00a0'+ec3.month_abbrev[prev_month0%12];var next=document.getElementById('ec3_next');if(next&&next.firstChild&&next.firstChild.nodeType==ec3.TEXT_NODE)
next.firstChild.data=ec3.month_abbrev[next_month0%12]+'\u00a0\u00bb';}
function set_spinner(on)
{var spinner=document.getElementById('ec3_spinner');var publish=document.getElementById('ec3_publish');if(spinner)
{if(on)
{spinner.style.display='inline';if(publish)
publish.style.display='none';}
else
{spinner.style.display='none';if(publish)
publish.style.display='inline';}}}
function go_prev()
{var calendars=get_calendars();if(!calendars)
return;var pn=calendars[0].parentNode;var id_array=calendars[0].id.split('_');if(id_array.length<3)
return;var year_num=parseInt(id_array[1]);var month_num=parseInt(id_array[2])-1;if(month_num==0)
{month_num=12;year_num--;}
var newcal=document.getElementById('ec3_'+year_num+'_'+month_num);if(newcal)
{newcal.style.display=ec3.calendar_display;}
else
{newcal=create_calendar(calendars[0],month_num,year_num);pn.insertBefore(newcal,calendars[0]);loadDates(month_num,year_num);}
ec3.calendar_display=calendars[calendars.length-1].style.display;calendars[calendars.length-1].style.display='none';rewrite_controls(month_num+10,month_num+calendars.length-1);}
ec3.go_prev=go_prev;function go_next()
{var calendars=get_calendars();if(!calendars)
return;var pn=calendars[0].parentNode;var last_cal=calendars[calendars.length-1];var id_array=last_cal.id.split('_');if(id_array.length<3)
return;var year_num=parseInt(id_array[1]);var month_num=1+parseInt(id_array[2]);if(month_num==13)
{month_num=1;year_num++;}
var newcal=document.getElementById('ec3_'+year_num+'_'+month_num);if(newcal)
{newcal.style.display=ec3.calendar_display;}
else
{newcal=create_calendar(calendars[0],month_num,year_num);if(last_cal.nextSibling)
pn.insertBefore(newcal,last_cal.nextSibling);else
pn.appendChild(newcal);loadDates(month_num,year_num);}
ec3.calendar_display=calendars[0].style.display;calendars[0].style.display='none';rewrite_controls(month_num-calendars.length+11,month_num);}
ec3.go_next=go_next;function process_xml()
{var busy=0;for(var i=0;i<ec3.reqs.length;i++)
{var req=ec3.reqs[i];if(req)
{if(req.readyState==4)
{ec3.reqs[i]=0;if(req.status==200)
update_days(req.responseXML.documentElement);}
else
busy=1;}}
if(!busy)
{while(ec3.reqs.shift&&ec3.reqs.length&&!ec3.reqs[0])
ec3.reqs.shift();set_spinner(0);}}
function update_days(month_xml)
{var days=month_xml.getElementsByTagName('day');if(!days)
return;for(var i=0;i<days.length;i++)
{var td=document.getElementById(days[i].getAttribute('id'));if(td&&td.firstChild&&td.firstChild.nodeType==ec3.TEXT_NODE)
{td.className='ec3_postday';var txt=td.removeChild(td.firstChild);var a=document.createElement('a');a.href=days[i].getAttribute('link');a.title=days[i].getAttribute('titles');if(days[i].getAttribute('is_event'))
{td.className+=' ec3_eventday';a.className='eventday';}
a.appendChild(txt);td.appendChild(a);}}
if(typeof ec3_Popup!='undefined')
{var month=document.getElementById(month_xml.childNodes[0].getAttribute('id'));if(month)
ec3_Popup.add_tbody(get_child_by_tag_name(month,'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';