// global shortcuts
var _dom = document.getDocumentById;
var _ie4 = document.all;
var _ie6 = _dom && _ie4 && document.compatMode;
var _ie5 = _dom && !document.compatMode;
var _ie = (_ie6 || _ie5 || _ie4);
var _ns = navigator.product == 'Gecko';
var _ns6 = _ns && !window.find;
var _ns7 = _ns && window.find;

function _el(i) { return document.getElementById(i); }
function _nodes(t) { return document.getElementsByTagName(t); }
function _tvis(id) { var i=_el(id); i.style.visibility != 'visible' ? i.style.visibility = 'collapse' : i.style.visibility = 'visible' }
function _hide(i) { _el(i).style.visibility = 'collapse'; }
function _show(i) { _el(i).style.visibility = 'visible'; }

function toggle(i) { return toggle(i,'block'); }
function toggle(i,def) {
    var e = _el(i);
    if( e.style.display == 'none' || e.style.display == '' ) { 
        e.style.display = def; 
    } else { e.style.display = 'none'; }
}

// ie hover tweak for block elements
/*
function _mkHovTwk(t,c,hc) {
    function() {
        if(_dom) {
            var nodes = _nodes(t);
            for(k=0;k<nodes.length;k++) {
                nodes[i].onmouseover=function() { this.className = hc; }
                nodes[i].onmouseout=function() { this.className = c; }
            }
        }
    }
}
*/
/*
// quick function to do hover tweaks for IE
startList = function() {
    if (document.all&&document.getElementById) {
        navRoot = document.getElementById("navlist");
        for (i=0; i<navRoot.childNodes.length; i++) {
            node = navRoot.childNodes[i];
            if (node.nodeName=="LI") {
                node.onmouseover=function() {
                    this.className+=" over";
                }
                node.onmouseout=function() {
                    this.className=this.className.replace
                    (" over", "");
                }
            }
        }
    }
}
*/
