function DotThis(url, title, category, from, imageUrl, imageWidth, imageHeight) {
    ShowAuthoringDialog("",
                        title,
                        "",
                        "",
                        "0",
                        "",
                        "",
                        category,
                        url,
                        from,
                        imageUrl,
                        imageWidth,
                        imageHeight);
}

function ShowAuthoringDialog(id, 
                             title,
                             note,
                             tags,
                             permissionLevel,
                             groupList,
                             starRating,
                             category,
                             url,
                             from,
                             imageUrl,
                             imageWidth,
                             imageHeight) {

    ShowInlineAuthoringDialog(id,
                              title,
                              note,
                              tags,
                              permissionLevel,
                              groupList,
                              starRating,
                              category,
                              url,
                              from,
                              imageUrl,
                              imageWidth,
                              imageHeight);
}



function ShowInlineAuthoringDialog(id,
                                   title,
                                   note,
                                   tags,
                                   permissionsLevel,
                                   groupList,
                                   starRating,
                                   category,
                                   url,
                                   from,
                                   imageUrl,
                                   imageWidth,
                                   imageHeight) {

        // Show the standard dialog.
        var authoringDialog = new BlueDotAuthoringDialog();

        authoringDialog.setExistingPicture(
            isNullOrEmpty(imageUrl) ? null : unescape(imageUrl),
            imageWidth,
            imageHeight);

        authoringDialog.main();

        // Set elements based on dot values.
        authoringDialog.getElementById("dotId").value = id;
        if (title) {
            authoringDialog.getElementById("title").value = unescape(title);
        }
        if (note) {
            authoringDialog.getElementById("note").value = unescape(note);
        }
        if (tags) {
            authoringDialog.getElementById("tags").value = unescape(tags);
        }
        if (permissionsLevel) {
            authoringDialog.getElementById("permissionsLevel").value = permissionsLevel;
        }
        if (starRating) {
            authoringDialog.setStarRating(starRating);
        }
        if (category) {
            authoringDialog.getElementById("category").value = category;
        }
        if (url) {
            authoringDialog.setUrl(unescape(url));
        }
        if (from) {
            authoringDialog.setDotCreationFlag(from);
        }
    }

/* clickthrough */
function ct(e,u,ls) {
    e.href=u + '&ls=' + ls;
    e.onmousedown="";
    return true;
}


