YUI.add("remarkbox",function(G){G.namespace("Remarkbox");var D="http://www.remarkbox.com/remark";var B="";var A={};var F="";var E="";var C={};var H=function(K,J,I,L){var M='<li class="remarkbox-commententry"><dl>';if(J==="http://Anonymous"||J===""||J===null||J==="null"){if(J===null||J==="null"){M+='<dt>Anonymous <span class="date">'+I+"</span></dt>";}else{M+="<dt>"+K+' <span class="date">'+I+"</span></dt>";}}else{M+='<dt><a href="'+J+'"> '+K+'</a> <span class="date">'+I+"</span></dt>";}M+='<dd><div style="text-align:left;display:inline;border:0;">'+L+"</div></dd>";M+="</dl></li>";return M;};G.Remarkbox=function(){var N=G.Node.create("<div id='remarkbox-commentoverlay-head'></div>");N.set("innerHTML",'Remarks by Remark box <span class="remarkbox-commentoverlay-close remarkbox-commentoverlay-close-cross">X</span>');var T=G.Node.create("<div id='remarkbox-commentoverlay-body'></div>");T.set("innerHTML",'<div id="remarkbox-commentoverlay-body-tabviews"><ul><li class="remarkbox-commentoverlay-tab remarkbox-commentoverlay-tab-selected"><a class="remarkbox-commentoverlay-tablink remarkbox-commentoverlay-tablink-selected" href="#remarkbox-commenttab-form"><em>Remark</em></a></li><li class="remarkbox-commentoverlay-tab"><a class="remarkbox-commentoverlay-tablink" href="#remarkbox-commenttab-singleblock"><em>Remarks on this section</em></a></li><li class="remarkbox-commentoverlay-tab"><a class="remarkbox-commentoverlay-tablink" href="#remarkbox-commenttab-singlepage"><em>Remarks on this page</em></a></li><li class="remarkbox-commentoverlay-tab"><a class="remarkbox-commentoverlay-tablink" href="#remarkbox-commenttab-help"><em>Help/About</em></a></li></ul><div><div class="remarkbox-commentoverlay-tabpanel remarkbox-commentoverlay-tabpanel-selected" id="remarkbox-commenttab-form"><!-- Tab Panel Content Here  --><form method="post" id="remarkbox-commenttab-formtag"><div style="text-align:left;display:inline;border:0;"><input type="text" size="25" id="remarkbox-commentformfield-authorname"/> <input type="text" size="25" id="remarkbox-commentformfield-authorwebsite"/> </div><div style="text-align:left;display:inline;border:0;"><input type="text" size="25" id="remarkbox-commentformfield-authoremail"/> <span id="remarkbox-anonymouspostselector-span" class="grayText"> <input type="checkbox" name="anonymouspost" id="remarkbox-anonymouspostselector"> Post as Anonymous</span></div><div style="text-align:left;display:inline;border:0;"><textarea rows="6" cols="" style="width:100%;" wrap="virtual" id="remarkbox-commentformfield-authorcomment"/></textarea><span id="remarkbox-commentformfield-authorcomment-counter" class="grayText">500 characters left</span></div></form></div><div class="remarkbox-commentoverlay-tabpanel" id="remarkbox-commenttab-singleblock"><!-- Tab Panel Content Here  --></div><div class="remarkbox-commentoverlay-tabpanel" id="remarkbox-commenttab-singlepage"><!-- Tab Panel Content Here  --></div><div class="remarkbox-commentoverlay-tabpanel" id="remarkbox-commenttab-help"><!-- Tab Panel Content Here  --><h4 style="text-align:left">Help</h4> <div style="text-align:left;display:inline;border:0;">To post a remark, just click on the remark box next to the section you want to provide feedback on.</div><h4 style="text-align:left">About this remark system</h4><div style="text-align:left;display:inline;border:0;">Contextual remarks allow an author to gather targeted feedback on a web page\'s content.</div><div style="text-align:left;padding-top:2em;display:inline;border:0;">This software is designed by <a href="http://www.remarkbox.com/" target="_blank"> Remark box </a></div></div></div> <!-- Containment --></div> <!-- Tabview remarkbox-commentoverlay-body-tabviews --></div>');var W=G.Node.create("<div id='remarkbox-commentoverlay-footer'></div>");W.set("innerHTML",'<div id="remarkbox-commentoverlay-footer-message"></div><div id="remarkbox-commentoverlay-footer-submit-wrapper"><input type="button" id="remarkbox-commentoverlay-preview" value="Preview comment"></input><input type="button" id="remarkbox-commentoverlay-submit" value="Post comment"></input><input type="button" class="remarkbox-commentoverlay-close" value="Close"></input></div>');var K=G.Node.create("<div id='remarkbox-formvalidator-alerthead'></div>");K.set("innerHTML",'Alert <span class="remarkbox-formvalidator-alertclose remarkbox-commentoverlay-close-cross">X</span>');var J=G.Node.create("<div id='remarkbox-formvalidator-alertbody'></div>");J.set("innerHTML","");var O=new G.Overlay({contentBox:G.Node.create('<div class="yui-reset" id="remarkbox-commentoverlay-default"></div>'),headerContent:N,bodyContent:T,footerContent:W,width:"600px",height:"400px",visible:false,zIndex:10,fillHeight:"footer"});var V=new G.Overlay({contentBox:G.Node.create('<div class="yui-reset" id="remarkbox-formvalidator-alert"></div>'),headerContent:K,bodyContent:J,visible:false,zIndex:15});var U=new G.Overlay({contentBox:G.Node.create('<div class="yui-reset" id="remarkbox-bubbletooltip-default"></div>'),bodyContent:"Click to post a remark",visible:false,zIndex:15});var S=function(){if(F!==""){var X=G.one("#"+F+"").get("parentNode");X.removeClass("remarkbox-block-highlight");}};var R=function(){var d=new G.StyleSheet(".remarkbox-bubble-markup {background: transparent;float:left;font-size:67%;width:30px;position: absolute;left:"+A.offsetx+";top:"+A.offsety+";}"+".remarkbox-bubble-markup span.s1 {display:block; width:0; height:0; color:"+A.strongcolor+"; overflow:hidden;border-top:12px solid #fff; border-left:0px dotted transparent; border-right:0px dotted transparent; margin-left:20px;}/** border-left:2px border-right: 10:px */"+".remarkbox-bubble-markup span.s2 {display:none; width:0; height:0;overflow:hidden;border-top:12px solid "+A.strongcolor+"; border-left:14px dotted transparent; border-right:1px dotted transparent; margin-left:13px; margin-top:-18px;} "+".remarkbox-bubble-markup span.s3 {display:none; width:0; height:0;overflow:hidden;border-top:12px solid "+A.strongcolor+"; border-left:1px dotted transparent; border-right:14px dotted transparent; margin-left:5px; margin-top:-18px;} "+".remarkbox-bubble-markup span.s4 {display:none; width:0; height:0;overflow:hidden;border-top:12px solid "+A.strongcolor+"; border-left:7px dotted transparent; border-right:7px dotted transparent; margin-left:9px; margin-top:-18px;} "+".remarkbox-bubble-markup .b1, .remarkbox-bubble-markup .b2, .remarkbox-bubble-markup .b3, .remarkbox-bubble-markup .b4, .remarkbox-bubble-markup .b5, .remarkbox-bubble-markup .b6, .remarkbox-bubble-markup .b7 {display:block; overflow:hidden; font-size:0;} "+".remarkbox-bubble-markup .b1, .remarkbox-bubble-markup .b2, .remarkbox-bubble-markup .b3, .remarkbox-bubble-markup .b4, .remarkbox-bubble-markup .b5, .remarkbox-bubble-markup .b6 {height:1px;} "+".remarkbox-bubble-markup .b4, .remarkbox-bubble-markup .b5, .remarkbox-bubble-markup .b6, .remarkbox-bubble-markup .b7 {background:transparent;} "+".remarkbox-bubble-markup .b1 {margin:0 8px; } "+".remarkbox-bubble-markup .b2 {margin:0 6px; } "+".remarkbox-bubble-markup .b3 {margin:0 4px; } "+".remarkbox-bubble-markup .b4 {margin:0 3px; background:transparent; border-width:0 5px;} "+".remarkbox-bubble-markup .b5 {margin:0 2px; background:transparent; border-width:0 4px;} "+".remarkbox-bubble-markup .b6 {margin:0 2px; background:transparent; border-width:0 3px;} "+".remarkbox-bubble-markup .b7 {margin:0 1px; background:transparent; border-width:0 3px; height:2px;} "+".remarkbox-bubble-markup .remarkbox-bubble-markup-content {display:block; background: transparent; border-width:0 3px;color: "+A.strongcolortext+";text-align:center;line-height:1.5em} "+".grayText { color:#999999; } "+".blackTextBold { color:#000000; } "+".remarkbox-comment { position: relative; } "+".remarkbox-block-highlight { background-color:"+A.lightcolor+";border:1px solid "+A.strongcolor+";opacity:0.9;color:"+A.lightcolortext+" } "+".remarkbox-block-has-comments { } "+"#remarkbox-commentoverlay-default { padding: 0;border: 1px #999 solid;left: 3em;top:0; position: absolute;z-index: 10; background-color: "+A.lightcolor+";width: 600px; height: 400px;color: black; } "+"#remarkbox-bubbletooltip-default { display:block;position:absolute;top:-3.5em; left:-6em;width:10em;border:1px solid "+A.strongcolor+"; background-color: "+A.lightcolor+";color:"+A.lightcolortext+";text-align:center;font-size:77%} "+".remarkbox-commentoverlay-close-cross { border:black;height:1em;margin:0;overflow:hidden;padding:0;position:absolute;right:6px;top:0px;width:17px;line-height:1em} "+"#remarkbox-commentoverlay-head { background-color: "+A.strongcolor+"; color: "+A.strongcolortext+"; padding: 0px 4px; font-weight: bold; margin: 0 0 6px 0; position: relative;text-align:left;} "+"#remarkbox-commentoverlay-body { border: 1px #999 solid; } "+"#remarkbox-commentoverlay-footer { overflow:hidden;} "+"#remarkbox-commentoverlay-footer-message  { clear:none;float:left;font-size:90%;padding-left:20px;} "+"#remarkbox-commentoverlay-footer-submit-wrapper { clear:none;float:right;text-align:right;white-space:nowrap;} "+"#remarkbox-commenttab-form { overflow:auto;text-align:left;} "+"#remarkbox-commenttab-singleblock  { overflow:auto;text-align:left;} "+"#remarkbox-commenttab-singlepage  { overflow:auto;text-align:left;} "+"#remarkbox-commenttab-help  { overflow:auto;text-align:left;} "+".remarkbox-commentoverlay-tabview { margin: 10px; } "+".remarkbox-commentoverlay-tabview div { border: solid 1px #000; } "+".remarkbox-commentoverlay-tabview div div { border: solid 1px #999;height:250px; } "+".remarkbox-commentoverlay-tabview ul { list-style-type: none;margin: 0;padding: 0;zoom: 1;	/* Clear the floated <LI> elements in IE */} "+'.remarkbox-commentoverlay-tabview ul:after {  /* Clear the floated <LI> elements in Webkit, Opera and Gecko */content: ".";display: block;clear: both;visibility: hidden;height: 0;line-height: 0;} '+".remarkbox-commentoverlay-tabview .remarkbox-commentoverlay-tab { list-style-type: none;margin: 0;padding: 0;float: left;border: solid 1px #000;margin: 0 -1px -1px 0;background-color: "+A.strongcolor+";position: relative;	/* Necessary to get negative margins in IE */*bottom: -1px;} "+".remarkbox-commentoverlay-tabview .remarkbox-commentoverlay-tab a { display: block;text-decoration: none;color: "+A.strongcolortext+";background-color: "+A.strongcolor+";border: solid 1px #ccc;cursor: hand;	/* Needed for IE 8, which by default renders the text selection cursor. */ } "+".remarkbox-commentoverlay-tabview .remarkbox-commentoverlay-tab a em { font-weight:bold;font-style: normal;display: block;padding: 2px 10px;font-size:77% } "+".remarkbox-commentoverlay-tabview .remarkbox-commentoverlay-tab-focus a { border-color: #fff;color:#000} "+".remarkbox-commentoverlay-tabview .remarkbox-commentoverlay-tab-focus a:focus { outline: 0;	/* Suppress default browser focus */ } "+".remarkbox-commentoverlay-tabview .remarkbox-commentoverlay-tab-selected a { background-color: #999;border-color: #999;border-bottom-width: 2px;margin-bottom: -1px;*position: relative;	/* Necessary to get negative margins in IE */} "+".remarkbox-commentoverlay-tabview .remarkbox-commentoverlay-tab-selected a em { color:#000;background-color: #fff;border-bottom: 3px solid #fff;margin-bottom: -3px;*position: relative;/* Necessary to get negative margins in IE */} "+".remarkbox-commentoverlay-tabview .remarkbox-commentoverlay-tab-focus a em {color:#000;background-color: #fff;border-color: #fff;_display: inline-block;	/* Necessary fix the disappearing background color bug in IE 6 */} "+".remarkbox-commentoverlay-tabview .remarkbox-commentoverlay-tabpanel { background-color: #fff;display: none;} "+".remarkbox-commentoverlay-tabview .remarkbox-commentoverlay-tabpanel-selected { display: block;padding: 10px;} "+"#remarkbox-formvalidator-alert { padding: 0;border: 1px #999 solid;top:0; position: absolute;z-index: 20; background-color: "+A.lightcolor+";width: 200px; height:100px;color: black; } "+"#remarkbox-formvalidator-alerthead { background-color: "+A.strongcolor+"; color: "+A.strongcolortext+"; padding: 0px 4px; font-weight: bold; margin: 0 0 6px 0; position: relative;} "+"#remarkbox-formvalidator-alertbody { font-size:77%; text-align:center;color:"+A.lightcolortext+"} "+".remarkbox-commentlist { padding-left:30px; list-style-image:none; list-style-position:outside; list-style-type:none; } "+".remarkbox-commententry { border-bottom:1px solid "+A.lightcolor+"; }"+".remarkbox-commententry dl { margin-top:0.6em; padding-bottom:0.1em; } "+".remarkbox-commententry dt { font-size:1.1em; font-weight:bold; margin-top:0.5em; } "+".remarkbox-commententry dd { margin-left:15px; } "+".remarkbox-commententry dt .date { color: "+A.strongcolor+";font-size:90%;font-weight:normal; } "+"#remarkbox-commenttab-help h4 { font-size:1.1em; font-weight:bold; margin-top:0.5em; } "+"#remarkbox-commenttab-help p { margin-top:0.5em;} "+"#remarkbox-commenttab-formpreview {  } "+"#remarkbox-commenttab-formpreview h4 {  text-align:center; text-decoration:underline; } "+"#remarkbox-commenttab-formsuccess {  } "+"#remarkbox-commenttab-formsuccess h4 {  text-align:center; text-decoration:underline; } "+".remarkbox-commenttab-moderationmessage { width: 90%; text-align: center; background-color:#DDDDDD; margin-left: 2em; } "+"#remarkbox-commentformfield-authorcomment-counter {  font-size:77% float:left; }");
G.on("domready",function(){var f=G.get("#remarkbox-commentformfield-authorname");var g=G.get("#remarkbox-commentformfield-authorwebsite");var h=G.get("#remarkbox-commentformfield-authoremail");var e=G.get("#remarkbox-commentformfield-authorcomment");f.set("value","Name (Required)");f.addClass("grayText");g.set("value","Website (Optional)");g.addClass("grayText");h.set("value","Email (Required;never displayed)");h.addClass("grayText");e.set("value","Remark (Max.500 characters)");e.addClass("grayText");G.on("focus",function(){if(this.get("value")==="Name (Required)"){this.set("value","");this.removeClass("grayText");}if(this.get("value")==="Anonymous"){this.blur();}},f);G.on("blur",function(){if(this.get("value")===""){this.set("value","Name (Required)");this.addClass("grayText");}},f);G.on("focus",function(){if(this.get("value")==="Website (Optional)"){this.set("value","");this.removeClass("grayText");}if(this.get("value")==="Anonymous"){this.blur();}},g);G.on("blur",function(){if(this.get("value")===""){this.set("value","Website (Optional)");this.addClass("grayText");}},g);G.on("focus",function(){if(this.get("value")==="Email (Required;never displayed)"){this.set("value","");this.removeClass("grayText");}if(this.get("value")==="Anonymous"){this.blur();}},h);G.on("blur",function(){if(this.get("value")===""){this.set("value","Email (Required;never displayed)");this.addClass("grayText");}},h);G.on("focus",function(){if(this.get("value")==="Remark (Max.500 characters)"){this.set("value","");this.removeClass("grayText");}},e);G.on("blur",function(){if(this.get("value")===""){this.set("value","Remark (Max.500 characters)");this.addClass("grayText");}},e);G.on("keyup",function(){var i=this.get("value").length;G.one("#remarkbox-commentformfield-authorcomment-counter").set("innerHTML",500-i+" characters left");if(i>500){G.one("#remarkbox-commentformfield-authorcomment").set("value",this.get("value").substring(0,500));}},e);G.on("change",function(i){if(i.currentTarget.get("checked")===true){f.set("value","Anonymous");f.addClass("blackTextBold");g.set("value","Anonymous");g.addClass("blackTextBold");h.set("value","Anonymous");h.addClass("blackTextBold");}else{f.set("value","Name (Required)");f.removeClass("blackTextBold");g.set("value","Website (Optional)");g.removeClass("blackTextBold");h.set("value","Email (Required;never displayed)");h.removeClass("blackTextBold");}},"#remarkbox-anonymouspostselector");G.Remarkbox.webservices.commentCount();});function c(j){var k=G.one("#remarkbox-commentformfield-authorname").get("value");var h=G.one("#remarkbox-commentformfield-authoremail").get("value");var l=G.one("#remarkbox-commentformfield-authorcomment").get("value");if(k=="Anonymous"){}else{if(k=="Name (Required)"||k===""){var g=j.currentTarget.get("parentNode").getXY();G.one("#remarkbox-formvalidator-alertbody").set("innerHTML","Please provide your name");V.move(g[0]-75,g[1]-200);V.show();return false;}}if(h=="Anonymous"){}else{if(h=="Email (Required;never displayed)"||h===""){var f=j.currentTarget.get("parentNode").getXY();G.one("#remarkbox-formvalidator-alertbody").set("innerHTML","Please provide your email");V.move(f[0]-75,f[1]-200);V.show();return false;}}var i=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;if(h=="Anonymous"){}else{if(i.test(h)===false){var n=j.currentTarget.get("parentNode").getXY();G.one("#remarkbox-formvalidator-alertbody").set("innerHTML","Please provide a valid email<br/>it doesn't appear correct");V.move(n[0]-75,n[1]-200);V.show();return false;}}if(l=="Remark (Max.500 characters)"||l===""){var m=j.currentTarget.get("parentNode").getXY();G.one("#remarkbox-formvalidator-alertbody").set("innerHTML","Please provide a remark");V.move(m[0]-75,m[1]-200);V.show();return false;}}O.render();V.render();U.render();G.on("click",function(f){O.hide();S();},".remarkbox-commentoverlay-close");G.on("click",function(f){V.hide();},".remarkbox-formvalidator-alertclose");G.on("click",function(f){f.preventDefault();if(c(f)!==false){G.Remarkbox.webservices.commentsCreate();}},"#remarkbox-commentoverlay-submit");G.on("click",function(k){k.preventDefault();if(c(k)!==false){var i=G.one("#remarkbox-commentformfield-authorname").get("value");var j=G.one("#remarkbox-commentformfield-authorcomment").get("value");var h=G.one("#remarkbox-commentformfield-authorwebsite").get("value");if(h=="Website (Optional)"){h="";}if(!h.startsWith("http://")&&h!==""){h="http://"+h;}var g=new Date();g=g.toString().split("GMT")[0];var f=H(i,h,g,j);if(G.one("#remarkbox-commentoverlay-preview").get("value")=="Edit comment"){G.one("#remarkbox-commentoverlay-preview").set("value","Preview comment");G.one("#remarkbox-commenttab-formpreview").setStyle("display","none");G.one("#remarkbox-commenttab-formtag").setStyle("display","block");}else{G.one("#remarkbox-commenttab-formtag").setStyle("display","none");var l=G.one("#remarkbox-commenttab-form");if(G.one("#remarkbox-commenttab-formpreview")===null){l.append(G.Node.create('<div id="remarkbox-commenttab-formpreview"><h4>PREVIEW</h4><ol class="remarkbox-commentlist">'+f+"</ol></div>"));}else{G.one("#remarkbox-commenttab-formpreview").setStyle("display","block");G.one("#remarkbox-commenttab-formpreview").set("innerHTML",'<div id="remarkbox-commenttab-formpreview"><h4>PREVIEW</h4><ol class="remarkbox-commentlist">'+f+"</ol></div>");}G.one("#remarkbox-commentoverlay-preview").set("value","Edit comment");}}},"#remarkbox-commentoverlay-preview");var b=G.one("#remarkbox-commentoverlay-body-tabviews"),X=b.one("ul"),a=b.one("a.remarkbox-commentoverlay-tablink-selected"),Y=((G.UA.gecko||G.UA.ie)&&navigator.userAgent.indexOf("Windows")>-1),Z={};b.addClass("remarkbox-commentoverlay-tabview");X.setAttrs({"aria-labelledby":"tabview-heading",role:"tablist"});b.one("div").set("role","presentation");b.plug(G.Plugin.NodeFocusManager,{descendants:"a.remarkbox-commentoverlay-tablink",focusClass:{className:"remarkbox-commentoverlay-tab-focus",fn:function(e){return e.get("parentNode");}},circular:true});
b.focusManager.after("focusedChange",function(e){if(!e.newVal){this.set("activeDescendant",a);}});b.all("a.remarkbox-commentoverlay-tablink").each(function(g){var h=g.getAttribute("href",2),f=h.split("#")[1],e;g.set("role","tab");g.get("parentNode").set("role","presentation");if(Y){g.removeAttribute("href");}Z[g.get("id")]=f;e=G.one("#"+f);e.setAttrs({role:"tabpanel","aria-labelledby":g.get("id")});});b.delegate("click",function(f){var g,e=this.get("id");if(a){a.get("parentNode").removeClass("remarkbox-commentoverlay-tab-selected");G.one("#"+Z[a.get("id")]).removeClass("remarkbox-commentoverlay-tabpanel-selected");}a=this;a.get("parentNode").addClass("remarkbox-commentoverlay-tab-selected");g=G.one("#"+Z[e]);g.addClass("remarkbox-commentoverlay-tabpanel-selected");f.preventDefault();if(Z[e]!="remarkbox-commenttab-form"){G.one("#remarkbox-commentoverlay-submit").setStyle("display","none");G.one("#remarkbox-commentoverlay-preview").setStyle("display","none");}else{G.one("#remarkbox-commentoverlay-preview").setStyle("display","block");G.one("#remarkbox-commentoverlay-preview").setStyle("float","left");G.one("#remarkbox-commentoverlay-submit").setStyle("display","block");G.one("#remarkbox-commentoverlay-submit").setStyle("float","left");G.one("#remarkbox-commenttab-formtag").setStyle("display","block");if(G.one("#remarkbox-commenttab-formpreview")!==null){G.one("#remarkbox-commenttab-formpreview").setStyle("display","none");}if(G.one("#remarkbox-commenttab-formsuccess")!==null){G.one("#remarkbox-commenttab-formsuccess").setStyle("display","none");}if(G.one("#remarkbox-commentoverlay-preview").get("value")=="Edit comment"){G.one("#remarkbox-commentoverlay-preview").set("value","Preview comment");}}if(Z[e]=="remarkbox-commenttab-singleblock"){G.Remarkbox.webservices.commentsOnBlock();}if(Z[e]=="remarkbox-commenttab-singlepage"){G.Remarkbox.webservices.commentsOnPage();}},"a");if(Y){b.delegate("keydown",function(e){if(e.charCode===13){this.simulate("click");}},">ul>li>a");}};var P=function(Y){var Z=Y.currentTarget.getXY();U.move(Z[0]+30,Z[1]+15);U.show();if(!Y.currentTarget.hasClass("remarkbox-block-has-comments")){Y.currentTarget.addClass("remarkbox-block-showempty-comments");var X=G.one("#"+Y.currentTarget.get("id")).get("children");X.filter("div[class='remarkbox-bubble-markup-content'],b[class='b7'],b[class='b6'],b[class='b5'],b[class='b4']").setStyle("background",A.strongcolor);X.filter("span[class='s1']").setStyle("color",A.strongcolor);if(A.pointer==="center"){X.filter("span[class='s4']").setStyle("display","block");}else{if(A.pointer==="left"){X.filter("span[class='s3']").setStyle("display","block");}else{X.filter("span[class='s2']").setStyle("display","block");}}}};var L=function(Y){U.hide();if(!Y.currentTarget.hasClass("remarkbox-block-has-comments")){Y.currentTarget.removeClass("remarkbox-block-showempty-comments");var X=G.one("#"+Y.currentTarget.get("id")).get("children");X.filter("div[class='remarkbox-bubble-markup-content'],b[class='b7'],b[class='b6'],b[class='b5'],b[class='b4']").setStyle("background","transparent");X.filter("span[class='s1']").setStyle("color","transparent");if(A.pointer==="center"){X.filter("span[class='s4']").setStyle("display","none");}else{if(A.pointer==="left"){X.filter("span[class='s3']").setStyle("display","none");}else{X.filter("span[class='s2']").setStyle("display","none");}}}};var I=function(X){S();E=X.currentTarget.get("id");X.currentTarget.get("parentNode").addClass("remarkbox-block-highlight");F=E;var Y=X.currentTarget.get("parentNode").getXY();O.move(Y[0],Y[1]);O.show();};var Q=function(X){S();E=X.currentTarget.get("id");X.currentTarget.addClass("remarkbox-block-highlight");F=E;var Y=X.currentTarget.getXY();O.move(Y[0],Y[1]);O.show();};var M=function(){var X=function(f,a){var Z="height:"+f.getComputedStyle("height");var b="width:"+f.getComputedStyle("width");var d=f.getXY();var c=G.Node.create('<div id="remarkbox-blocknumber'+a+'" class="yui-reset remarkbox-bubble-markup"></div>');c.on("click",I);c.on("mouseover",P);c.on("mouseout",L);var h="s2";if(A.pointer==="left"){h="s3";}if(A.pointer==="center"){h="s4";}var g="&nbsp";if(C[a]){g=C[a];}if(A.alwaysvisible==="true"||/^\d*$/.test(g)){c.addClass("remarkbox-block-has-comments");c.set("innerHTML",'<b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4" style="background:'+A.strongcolor+'"></b><b class="b5" style="background:'+A.strongcolor+'"></b><b class="b6" style="background:'+A.strongcolor+'"></b><b class="b7" style="background:'+A.strongcolor+'"></b><div class="remarkbox-bubble-markup-content" style="background:'+A.strongcolor+'">'+g+'</div><b class="b7" style="background:'+A.strongcolor+'"></b><b class="b6" style="background:'+A.strongcolor+'"></b><b class="b5" style="background:'+A.strongcolor+'"></b><b class="b4" style="background:'+A.strongcolor+'"></b><b class="b3"></b><b class="b2"></b><b class="b1"></b><span class="s1" style="color:'+A.strongcolor+'"></span><span class="'+h+'" style="display:block"></span>');}else{c.set("innerHTML",'<b class="b1"></b><b class="b2"></b><b class="b3"></b><b class="b4"></b><b class="b5"></b><b class="b6"></b><b class="b7"></b><div class="remarkbox-bubble-markup-content">'+g+'</div><b class="b7"></b><b class="b6"></b><b class="b5"></b><b class="b4"></b><b class="b3"></b><b class="b2"></b><b class="b1"></b><span class="s1"></span><span class="'+h+'"></span>');}if(A.allowanonymous!="true"){G.one("#remarkbox-anonymouspostselector-span").setStyle("display","none");}f.appendChild(c);f.addClass("remarkbox-comment");};var Y=G.all(B);Y.each(X);};return{render:function(){if(B===""){B="p";}else{B=B.slice(0,-1);}if(A.pointer===undefined){A.pointer="right";}if(A.strongcolor===undefined){A.strongcolor="#3B5998";}if(A.strongcolortext===undefined){A.strongcolortext="#FFF";}if(A.lightcolor===undefined){A.lightcolor="#EDEFF4";}if(A.lightcolortext===undefined){A.lightcolortext="#000";}if(A.alwaysvisible===undefined){A.alwaysvisible="false";}if(A.offsetx===undefined){A.offsetx="-3.3em";
}if(A.offsety===undefined){A.offsety="-2.5em";}if(A.allowanonymous===undefined){A.allowanonymous="true";}R();},renderRemarkBoxes:function(){M();}};}();G.Remarkbox.remarkson=function(){var I=function(){};return{elements:function(J){G.Remarkbox.remarkson.list+=J;B+=J+",";},ids:function(J){B+="#"+J.replace(",",",#")+",";},classes:function(J){B+="."+J.replace(",",",.")+",";}};}();G.Remarkbox.remarktype=function(){var I=function(){};return{pointer:function(J){A.pointer=J;},strongcolor:function(J){A.strongcolor=J;},strongcolortext:function(J){A.strongcolortext=J;},lightcolor:function(J){A.lightcolor=J;},lightcolortext:function(J){A.lightcolortext=J;},alwaysvisible:function(J){A.alwaysvisible=J;},offsetx:function(J){A.offsetx=J;},offsety:function(J){A.offsety=J;},allowanonymous:function(J){A.allowanonymous=J;}};}();G.Remarkbox.webservices=function(){var M={},O=false,X=null,V=false,N=null,P=false,U=null,Y=false,S=null;RemarkboxNamespaceJSON=YUI.namespace("remarkbox.WebService");var W=function(b){O=false;if(b.tId in M){}else{}};var K=function(b){V=false;if(b.tId in M){}else{}};var I=function(b){P=false;if(b.tId in M){}else{}};var L=function(b){Y=false;if(b.tId in M){}else{}};var R=function(b){};var Q=function(b){};var Z=function(){if(O){return;}O=true;var e=window.location.protocol+"//"+window.location.host;var b=window.location.pathname;var d="originsite="+encodeURIComponent(e)+"&originpage="+encodeURIComponent(b);var c=D+"/counts?"+d;var f=G.Get.script(c,{onSuccess:W,onFailure:R,onTimeout:Q,timeout:20000,context:G});X=f.tId;};var J=function(){if(V){return;}V=true;var e=window.location.protocol+"//"+window.location.host;var b=window.location.pathname;var g=E.replace("remarkbox-blocknumber","");var d="block="+g+"&originsite="+encodeURIComponent(e)+"&originpage="+encodeURIComponent(b);var c=D+"/forblock?"+d;var f=G.Get.script(c,{onSuccess:K,onFailure:R,onTimeout:Q,timeout:20000,context:G});N=f.tId;};var T=function(){if(P){return;}P=true;var e=window.location.protocol+"//"+window.location.host;var b=window.location.pathname;var d="originsite="+encodeURIComponent(e)+"&originpage="+encodeURIComponent(b);var c=D+"/forpage?"+d;var f=G.Get.script(c,{onSuccess:I,onFailure:R,onTimeout:Q,timeout:20000,context:G});U=f.tId;};var a=function(){var d=G.one("#remarkbox-commentformfield-authorname").get("value");var h=G.one("#remarkbox-commentformfield-authoremail").get("value");var c=G.one("#remarkbox-commentformfield-authorcomment").get("value");var e=G.one("#remarkbox-commentformfield-authorwebsite").get("value");if(!e.startsWith("http://")&&e!==""){e="http://"+e;}var k=E.replace("remarkbox-blocknumber","");var b=window.location.protocol+"//"+window.location.host;var i=window.location.pathname;var g="name="+encodeURIComponent(d)+"&email="+encodeURIComponent(h)+"&comment="+encodeURIComponent(c)+"&website="+encodeURIComponent(e)+"&block="+encodeURIComponent(k)+"&originsite="+encodeURIComponent(b)+"&originpage="+encodeURIComponent(i);if(Y){return;}Y=true;var f=D+"/create?"+g;var j=G.Get.script(f,{onSuccess:L,onFailure:R,onTimeout:Q,timeout:20000,context:G});S=j.tId;};RemarkboxNamespaceJSON.remarkcount=function(c){M[X]=true;var d="s2";if(A.pointer==="left"){d="s3";}if(A.pointer==="center"){d="s4";}for(var b=c.remarks.length-1;b>=0;--b){C[c.remarks[b].block]=c.remarks[b].count;}G.Remarkbox.renderRemarkBoxes();};RemarkboxNamespaceJSON.remarksforblock=function(d){M[N]=true;var c='<ol class="remarkbox-commentlist">';for(var b=d.remarks.length-1;b>=0;--b){c+=H(d.remarks[b].name,d.remarks[b].website,d.remarks[b].date,d.remarks[b].remark);}c+="</ol>";G.one("#remarkbox-commenttab-singleblock").set("innerHTML",c);};RemarkboxNamespaceJSON.remarksforpage=function(d){M[U]=true;var c='<ol class="remarkbox-commentlist">';for(var b=d.remarks.length-1;b>=0;--b){c+=H(d.remarks[b].name,d.remarks[b].website,d.remarks[b].date,d.remarks[b].remark);}c+="</ol>";G.one("#remarkbox-commenttab-singlepage").set("innerHTML",c);};RemarkboxNamespaceJSON.remarkscreate=function(c){M[S]=true;if(c.success){var d=G.one("#remarkbox-commenttab-form");var b=H(c.success.name,c.success.website,c.success.date,c.success.remark);if(G.one("#remarkbox-commenttab-formsuccess")===null){if(c.moderation=="True"){d.append(G.Node.create('<div id="remarkbox-commenttab-formsuccess"><h4>SUCCESS</h4><p class="remarkbox-commenttab-moderationmessage">NOTE: The owner of this site has enabled moderation.<br/> Your remark will not appear live until its authorized</p><ol class="remarkbox-commentlist">'+b+"</ol></div>"));}else{d.append(G.Node.create('<div id="remarkbox-commenttab-formsuccess"><h4>SUCCESS</h4><ol class="remarkbox-commentlist">'+b+"</ol></div>"));}}else{if(c.moderation=="True"){G.one("#remarkbox-commenttab-formsuccess").setStyle("display","block");G.one("#remarkbox-commenttab-formsuccess").set("innerHTML",'<div id="remarkbox-commenttab-formsuccess"><h4>SUCCESS</h4><p class="remarkbox-commenttab-moderationmessage">NOTE: The owner of this site has enabled moderation.<br/> Your remark will not appear live until its authorized</p><ol class="remarkbox-commentlist">'+b+"</ol></div>");}else{G.one("#remarkbox-commenttab-formsuccess").setStyle("display","block");G.one("#remarkbox-commenttab-formsuccess").set("innerHTML",'<div id="remarkbox-commenttab-formsuccess"><h4>SUCCESS</h4><ol class="remarkbox-commentlist">'+b+"</ol></div>");}}G.one("#remarkbox-commenttab-formtag").setStyle("display","none");if(G.one("#remarkbox-commenttab-formpreview")!==null){G.one("#remarkbox-commenttab-formpreview").setStyle("display","none");}G.one("#remarkbox-commentoverlay-preview").setStyle("display","none");G.one("#remarkbox-commentoverlay-submit").setStyle("display","none");}else{}};return{commentCount:function(b){Z();},commentsOnBlock:function(b){J();},commentsOnPage:function(b){T();},commentsCreate:function(b){a();}};}();String.prototype.trim=function(){return(this.replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,""));};String.prototype.startsWith=function(I){return(this.match("^"+I)==I);};
String.prototype.endsWith=function(I){return(this.match(I+"$")==I);};},"@VERSION@",{requires:["node","overlay","node-focusmanager","json-parse","dump","stylesheet"]});
