﻿var Wiki = {
    hover : function(editID, contentID, className) {
        $show(editID);
        Wiki.highlight(contentID, className);
    },
    out : function(editID, contentID, className) {
        $hide(editID);
        Wiki.highlight(contentID, className);
    },
    highlight : function(divID, className) {
        var div = $get(divID);
        div.className = className;
    },
    edit : function(viewID, updateID) {
        $hide(viewID);
        $show(updateID);
    },
    cancel : function(editID, viewID, updateID) {
        $hide(editID);
        $show(viewID);
        $hide(updateID);
    }
};


