﻿DottedSeperator_Horizontal = function (width, className) {
    if (!top.SI) {
        var ipPath = top.document.getElementById("ipPath").value;
        top.SI = new SiteImages(ipPath);
    }

    var MainTable = document.createElement("table");
    MainTable.border = "0";
    MainTable.cellSpacing = "0";
    MainTable.cellPadding = "0";
    MainTable.style.width = (width ? width : "100%");
    MainTable.style.height = "1px";

    var MainTR = document.createElement("tr");

    var MainTD = document.createElement("td");
    MainTD.style.height = "1px";
    if (className) {
        MainTD.className = className;
    }
    else {
        MainTD.className = "DottedSeperator_Horizontal";
    }

    top.SI.src("sep_Dotted_Horizontal.png", MainTD, top.SiteImagesType.BaseColorShade);

    if (DetermineBrowser() != Browsers.IE) {
        MainTD.innerHTML = "&nbsp;"; //for Safari and Google Chrome
    }

    MainTR.appendChild(MainTD);

    if (DetermineBrowser() == Browsers.IE) {
        var MainTBody = document.createElement("tbody");

        MainTBody.appendChild(MainTR);

        MainTable.appendChild(MainTBody);
    }
    else {
        MainTable.appendChild(MainTR);
    }

    return MainTable;
}

DottedSeperator_Vertical = function(height) {
    var MainTable = document.createElement("table");
    MainTable.border = "0";
    MainTable.cellSpacing = "0";
    MainTable.cellPadding = "0";
    MainTable.style.height = (height ? parseInt(height) + "px" : "100%");
    MainTable.style.width = "1px";

    var MainTR = document.createElement("tr");

    var MainTD = document.createElement("td");
    MainTD.style.width = "1px";
    MainTD.className = "DottedSeperator_Vertical";
    top.SI.src("sep_Dotted_Vertical.png", MainTD, top.SiteImagesType.BaseColorShade);

    if (DetermineBrowser() != Browsers.IE) {
        MainTD.innerHTML = "&nbsp;"; //for Safari and Google Chrome
    }

    MainTR.appendChild(MainTD);

    if (DetermineBrowser() == Browsers.IE) {
        var MainTBody = document.createElement("tbody");

        MainTBody.appendChild(MainTR);

        MainTable.appendChild(MainTBody);
    }
    else {
        MainTable.appendChild(MainTR);
    }

    return MainTable;
}
