startList = function() 
{
    if (document.all && document.getElementById) 
    {
        navRoot = document.getElementById("topMenu");
        if(!navRoot) return;
        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", "");  }
            }
        }
    }
}
window.onload=startList;

function showProd(obj)
{
    window.open(obj.href, null, 'width=720,height=650,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1');    
    
}

function add2Fav() 
{
    ie = document.all?true:false;
    if(ie) window.external.AddFavorite(document.location.href, document.title); 
    else window.sidebar.addPanel(document.title,location.href,''); 
}

function checkCanCompare(frm)
{
    chkBoxesChecked = 0;
    chkBoxes = frm.getElementsByTagName('input');
    chkBoxesCount = chkBoxes.length;
    for(i = 0; i < chkBoxesCount; i++)
        if(chkBoxes[i].checked)
            if(++chkBoxesChecked > 1) return true;
    alert(' Необходимо выбрать хотя бы 2 продукта! ')
    return false;
}
