var oFCKeditor;function rowHover(A){if(!A.href&&A.getAttribute){A.href=A.getAttribute("href")}A.oldClassName=A.className;A.className="gridHover";A.onmouseout=function(){this.className=this.oldClassName}}function placeFocus(){if(document.location.hash||document.getElementById("editpageform")||document.getElementById("createpageform")){return }var I="";var A=window.location.search.substring(1);var E=A.split("&");for(var D=0;D<E.length;D++){var J=E[D].split("=")[0];var G=E[D].split("=")[1];if(J=="autofocus"&&(G!=null&&G.length>0)){I="'"+G+"'"}}var C=false;for(var D=0;D<document.forms.length;D++){var H=document.forms[D].elements;if(document.forms[D].id!="quick-search"&&document.forms[D].name!="inlinecommentform"){for(var B=0;B<H.length;B++){if((H[B].type=="text"||H[B].type=="password"||H[B].type=="textarea")&&!H[B].disabled&&!(H[B].style.display=="none")){try{if(I!=null&&I.length>0){if(H[B].id==I){H[B].focus();C=true;break}}else{H[B].focus();C=true;break}}catch(F){}}}}if(C){break}}}function checkAllCheckBoxes(A){for(i=0;i<A.length;i++){A[i].checked=true}}function clearAllCheckBoxes(A){for(i=0;i<A.length;i++){A[i].checked=false}}function openUserPickerWindow(C,B){var A=window.open("openuserpicker.action?key=$key&formName="+C+"&elementName="+B+"&startIndex=0&usersPerPage=10","UserPicker2","status=yes,resizable=yes,top=100,left=200,width=580,height=550,scrollbars=yes");A.opener=self;A.focus()}function getCurrentFormContent(B){var A;if(AJS.params.useWysiwyg&&B.xhtml.value=="true"){return getEditorHTML()}if(B.markupTextarea){return B.markupTextarea.value}}function toggleVisibility(A){var B=document.getElementById(A);if(B.style.display=="none"){B.style.display="block";return true}else{B.style.display="none";return false}}function setCookie(B,G,I,F,H,J,E,A){var D=B+"="+escape(G);if(I){var C=new Date(I,F,H);D+="; expires="+C.toGMTString()}if(J){D+="; path="+escape(J)}else{D+="; path=/"}if(E){D+="; domain="+escape(E)}if(A){D+="; secure"}document.cookie=D}function getCookie(B){var A=document.cookie.match(B+"=(.*?)(;|$)");if(A){return(unescape(A[1]))}else{return null}}function highlight(A){new Effect.Highlight(A,{endcolor:"#f0f0f0"})};