function RolloverButton(outImg, ovrImg, url, style, claz) {
    var styleString = "style='cursor:pointer;";
    if (style != null) {
        styleString += style;
    }
    styleString += "'"
    var markup = "<img src='" + outImg + "' border='0' ";
    markup += " onMouseOver='this.src=\"" + ovrImg + "\"' ";
    markup += " onMouseOut='this.src=\"" + outImg + "\"' ";
    markup += " onClick='document.location.href=\"" + url + "\";' ";
    markup += " " + styleString + " ";
    markup += "/>";
    document.write(markup);
}

function SubMenu(title, items, selectedItem) {
    //var menuStyle1 = "border:1px solid #ff0000;background-color:#A5A5A5;width:627px;height:65px;padding-left:0px;padding-top:0px;font-weight:bold;font-family:\"Levenim MT\",verdana,arial;color:#ffffff;font-size:18px;";
    var menuStyle1 = "background-color:#A5A5A5;height:65px;font-weight:bold;font-family:\"Levenim MT\",verdana,arial;color:#ffffff;font-size:18px;";
    var menuStyle2 = "background-color:#A5A5A5;height:25px;padding-left:15px;"
    var itemStyle =  "height:25px;padding-left:20px;padding-right:20px;font-family:\"Levenim MT\",verdana,arial;font-weight:bold;color:#444444;font-size:12px;";

    var markup = "<div style='" + menuStyle1 + "'><span style='padding-left:20px;padding-top:15px;display:block;'>" + title + "</span></div>";
    markup += "<div style='" + menuStyle2 + "'>";
    markup += "<table cellpadding='0' cellspacing='0' border='0' height='100%'><tr>";
    for (var i = 0; i < items.length; i++) {
        if (items[i][0] == selectedItem) {
            itemStyle += "background-color:#ffffff;";
            markup += "<td id='" + items[i][0] + "' align='center' style='" + itemStyle + "'>" + items[i][1] + "</td>";
        } else {
            itemStyle += "background-color:#A5A5A5;";
            markup += "<td id='" + items[i][0] + "' align='center' style='" + itemStyle + "' onMouseOver='this.style.backgroundColor=\"#676767\"' onMouseOut='this.style.backgroundColor=\"#A5A5A5\"'><a href='" + items[i][2] + "' class='subMeniItem'>" + items[i][1] + "</a></td>";
        }
    }
    markup += "</tr></table>";
    markup += "</div>";

    document.write(markup);
}