var comments=[];var hcb={extend:function(o1,o2){for(var i in o2){if(typeof o1[i]==='undefined'){o1[i]=o2[i]}}return o1}};if(typeof hcb_user==="undefined"){hcb_user={}}hcb_user=hcb.extend(hcb_user,{comments_header:'Comments',name_label:'name',content_label:'enter your comment here',submit:'comment',logout_link:'[logout]',admin_link:'[login]',no_comments_msg:'

No one has commented yet. Be the first!

',add:'(+) Add your comment',rss:'rss ',said:'said:',prev_page:'[prev]',next_page:'[next]',showing:'showing',to:'to',website_label:'website (optional)',email_label:'email',anonymous:'Anonymous',mod_label:'(mod)',subscribe:'email me replies',msg_thankyou:'Thank you for commenting!',msg_approval:'(this comment is not published until you approve it)',msg_approval_required:'Thank you for commenting! Your comment will appear once approved by a moderator.',err_bad_html:'Your comment contained bad html.',err_bad_email:'Please enter a valid email address.',err_too_frequent:'You must wait a few seconds between posting comments.',err_comment_empty:'Your comment was not posted because it was empty!',MAX_CHARS:2048,PAGE:'',RELATIVE_DATES:true});hcb.extend(hcb,{OPTS:{'opt_approve':8,'opt_pfilter':16,'opt_watermark':256,'opt_email_required':4096,'opt_field_website':1024,'opt_date':4,'opt_editit':32,'opt_field_email':512,'opt_top':2,'opt_email':64,'opt_stop':8192,'opt_replies':16384,'opt_collapse':1,'opt_rss':128,'opt_querystring':2048},opts:150,pagenum:0,host:'http://www.htmlcommentbox.com',msg:'',mod:'',user:{name:'',email:'',is_mod:false,subscribed:false},removed_backlink:false,auth_link:'',page_link:'http://www.htmlcommentbox.com/jread?page=http%3A//www.aast-journeys.com/main_site/subsite/roof.htm&opts=150&num=10',requires_approval:0,pagination:''});hcb.page=hcb_user.PAGE||window.location+'';hcb.extend(hcb,{collapsed_link:'
'+hcb_user.add+'
',rss_link:''+hcb_user.rss+'',shadow_start:'
',shadow_end:'
',head:document.getElementsByTagName("head")[0],elem:function(id){return(document.all&&document.all[id])||document.getElementById(id)},remove:function(node){if(node){node.parentNode.removeChild(node)}},instr:function(search,find){return search.indexOf(find)!==-1},script:function(src){s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src",src);hcb.head.appendChild(s)},textfield:function(name,value){return'
'+((hcb.OPTS.opt_watermark&hcb.opts)?'':' ')+hcb.shadow_start+'':'/>')+hcb.shadow_end+'
'},hiddenfield:function(name,value){return''},o:function(name){return hcb.opts&hcb.OPTS['opt_'+name]},post:function(strURL,query){hcb.script(strURL+"?"+query)},rsp_cb:function(){if(!(hcb.rsp&&hcb.rsp.success)){alert("Failed to delete comment.")}},watermark:{blur:function(e){el=e.srcElement||e.target;if(hcb.o('watermark')&&el){el.className="text-blur text hcb-shadow-r";if(el.value===""){el.value=hcb_user[el.name+'_label']}}},focus:function(e){el=e.srcElement||e.target;if(hcb.o('watermark')&&el){el.className="text-focus text hcb-shadow-r";if(el.value===hcb_user[el.name+'_label']){el.value=""}}}},approve:function(key){comment=hcb.elem('comment_'+key);for(i=0;ihcb_user.MAX_CHARS){el.value=el.value.substr(0,hcb_user.MAX_CHARS)}},now:(new Date()).valueOf()/1000,months:['Jan','Feb','Mar','Apr','May','June','July','Aug','Sept','Oct','Nov','Dec'],render_date:function(timestamp){var diff=hcb.now-timestamp;if(diff>24*3600*7||!hcb_user.RELATIVE_DATES){var d=new Date(timestamp*1000);return this.months[d.getMonth()]+' '+d.getDate()+', '+d.getFullYear()}if(diff>24*3600)return Math.floor(diff/(24*3600))+' days ago';if(diff>3600)return Math.floor(diff/3600)+' hours ago';if(diff>60)return Math.floor(diff/60)+' minutes ago';return"within the last minute"},make_comment_form:function(){var f='
';f+=hcb.hiddenfield('page',hcb.page)+''+hcb.hiddenfield("opts",hcb.opts)+hcb.hiddenfield("mod",hcb.mod)+hcb.hiddenfield("replies_to","");f+=hcb.textfield('name',hcb.user.name);if(hcb.o('field_website'))f+=hcb.textfield('website','');if(hcb.o('field_email'))f+=hcb.textfield('email',hcb.user.email);f+='
'+hcb.shadow_start+''+hcb.shadow_end+'
'+'
 ';if(!hcb.removed_backlink){f+=' by HTML Comment Box';if(hcb.user.is_mod){f+=' remove link '}}if(hcb.user.is_mod){f+=' account'}if(hcb.o('replies')&&(hcb.o('field_email')||hcb.user.email)){f+=''+hcb_user.subscribe+''}if(hcb.auth_link){f+='
'+(hcb.user.name?hcb_user.logout_link:hcb_user.admin_link)+' 
'}f+='
';hcb.elem("HCB_comment_form_box").innerHTML=f;hcb.watermark.blur({target:hcb.elem('hcb_form_content')});hcb.watermark.blur({target:hcb.elem('hcb_form_name')});hcb.watermark.blur({target:hcb.elem('hcb_form_email')});hcb.watermark.blur({target:hcb.elem('hcb_form_website')})},reply:function(key){hcb.elem('hcb_form_replies_to').value=key;var ta=hcb.elem('hcb_form_content');hcb.watermark.focus({target:ta});ta.value='@'+hcb.by[key].replace(" (mod)","")+',\n'+ta.value},stop:function(){return hcb.o('stop')&&!hcb.user.is_mod},changepage:function(rel){hcb.script(hcb.page_link+"&pagenum="+(hcb.pagenum+rel))},init:function(){var i,C,p=hcb.hcb=hcb.elem('HCB_comment_box');while(p.parentNode&&p.tagName!=='HTML'){p=p.parentNode;if(p.tagName==='FORM'){alert("Warning: The HTML Comment Box code is inside a form element. Comments won't be submitted.")}}if(hcb.page.indexOf('opensocial.googleusercontent')>-1){alert("Warning: It looks like you are using HTML Comment Box with Google Sites but didn't specify the page before copying your code. Re-copy your code with the correct options from http://htmlcommentbox.com.")}hcb.width=hcb.hcb.offsetWidth;var h='

'+(hcb_user.comments_header||'Comments')+'

'+'';h+='

'+hcb.msg+'

';if(hcb.o('top')&&!hcb.stop()){h+=hcb.collapsed_link}if(comments.length===0){h+=hcb_user.no_comments_msg}else{for(var ii=0;ii';if(hcb.user.is_mod){h+='[delete] ';if(!C.approved&&hcb.requires_approval){h+='[approve] '}}if(C.date)h+='('+hcb.render_date(C.date)+') ';h+=''+(C.website?'':'')+C.author.replace('(mod)',hcb_user.mod_label)+(C.website?' ':' ')+(C.email?''+C.email+'':'')+' '+hcb_user.said+'
'+C.comment.replace(/((?:ht|f)tp:\/\/\S{3}\S+)/g,"$1")+'
';if(!C.approved&&hcb.requires_approval)h+='

'+hcb_user.msg_approval+'

';if(hcb.o('replies'))h+='

reply

';hcb.by[C.key]=C.author;hcb.by[C.author]=C.key;h+=''}}if(!hcb.o('top')&&!hcb.stop()){h+=hcb.collapsed_link}h+=hcb.pagination;if(hcb.o('rss'))h+=hcb.rss_link;hcb.hcb.innerHTML=h},by:{}});hcb.init();if(!hcb.o('collapse')&&!hcb.stop()){hcb.make_comment_form()}