// JavaScript Document
var prevChg = '';
function chgText(imgField, newImg, region) {
    if (document.images) {
        if (prevChg) { document.getElementById(prevChg).style.display = "none"; prevChg = ''; }
        document[imgField].src = eval(newImg + ".src");
        if (region) {
            document.getElementById(region).style.display = "block";
            prevChg = region;
        }
    }
}



var prevChg = '';
function noticeToggle(notice) {
    if (prevChg) { document.getElementById(prevChg).style.display = "none"; prevChg = ''; }
    if (notice) {
        document.getElementById(notice).style.display = "block";
        prevChg = notice;
    }
}




function startList() {
    if (document.all && document.getElementById) {
        primaryRoot = document.getElementById("primary");

        for (x = 0; x < primaryRoot.childNodes.length; x++) {
            node = primaryRoot.childNodes[x];
            if (node.nodeName == "LI") {
                node.onmouseover = function() {
                    this.className += " over";
                }
                node.onmouseout = function() {
                    this.className = this.className.replace(" over", "");
                }
            }
        }
    }

}

function openWin(windowURL, windowName, windowFeatures) {

    return window.open(windowURL, windowName, windowFeatures);

}
function SetCopyright() {
    var CurDateTime = new Date();
    var CurYear = CurDateTime.getFullYear();
    var CopyrightElement = document.getElementById("copyright");
    CopyrightElement.innerHTML = '&copy; Copyright 2007-' + CurYear + ' Power Climber Wind&reg;';
}
function TestBreak() {
    var Content = document.getElementById("ContentColumn");
    var SplitRow = document.getElementById("LowerSplit");
    if (Content.clientHeight < 717)
        SplitRow.style.display = "none";
}
function onBodyLoad() {
    SetCopyright();
    TestBreak();
}