/*
 *	To make CSS menu working in IE6
 */
function cssmenuhover() {

    if (!document.getElementById("nav"))
        return;

    var lis = document.getElementById("nav").getElementsByTagName("LI");
    
    for (var i=0;i<lis.length;i++)
    {
            lis[i].onmouseover=function(){this.className+=" iehover";}
            lis[i].onmouseout=function() {this.className=this.className.replace(new RegExp(" iehover\\b"), "");}
    }

    var cart_button = document.getElementById("cart_button");
    if (cart_button) 
    {
        cart_button.onmouseover = function() { this.className += " iehover"; }
        cart_button.onmouseout = function() { this.className = this.className.replace(new RegExp(" iehover\\b"), ""); }
    }
}

if (window.attachEvent)
    window.attachEvent("onload", cssmenuhover);

function doPostBack(id, url) {
    var theForm = document.forms[id];
    if (theForm) {
        theForm.action = url;
        theForm.submit();
    }
}        
