function WikiHistory(){this.selectVersion=function(b){var a=$("diff-versions-checked");if(!b.checked){a.value=(a.value*1)-1;
return true;}if(a.value<2){a.value=(a.value*1)+1;return true;}return false;};this.doComparison=function(){var a=$("diff-versions-checked").value;
if(a==0){alert("Please select two versions to compare");return false;}if(a==1){alert("Please select a second version to compare against");
return false;}return true;};}function ZillowWiki(){var deleteConfirmationPanel=null;var publishConfirmationPanel=null;
var deleteLink,publishLink;this.getId=function(){return WikiTextConfig.WikiTextAreaId;};this.edit=function(){var id=this.getId();
zillowRichTextManager.getEditor(id).edit();};this.deleteConfirmation=function(link){if(deleteConfirmationPanel==null){deleteConfirmationPanel=new YAHOO.widget.Panel("deleteConfirmation",{width:"30em",fixedcenter:false,constraintoviewport:true,underlay:"none",close:true,visible:false,draggable:true,modal:false});
deleteConfirmationPanel.render();ZillowRichTextEditor.display(deleteConfirmationPanel.id);}deleteLink=link.href.replace(/%20/g," ");
deleteConfirmationPanel.show();return false;};this.deleteConfirmed=function(){eval(deleteLink);};this.deleteCancelled=function(){deleteConfirmationPanel.hide();
};this.publishConfirmation=function(link){if(publishConfirmationPanel==null){publishConfirmationPanel=new YAHOO.widget.Panel("publishConfirmation",{width:"30em",fixedcenter:false,constraintoviewport:true,underlay:"none",close:true,visible:false,draggable:true,modal:false});
publishConfirmationPanel.render();ZillowRichTextEditor.display(publishConfirmationPanel.id);}publishLink=link.href.replace(/%20/g," ");
publishConfirmationPanel.show();return false;};this.publishConfirmed=function(){eval(publishLink);};this.publishCancelled=function(){publishConfirmationPanel.hide();
};}zillowWiki=new ZillowWiki();function evalOnEnter(e,fn){if(window.event){keynum=e.keyCode;}else{if(e.which){keynum=e.which;
}}if(keynum==13){eval(fn);}}