sfHover = function() {
    var sfEls_lang = document.getElementById("drop_lang").getElementsByTagName("LI");
    for (var i=0; i<sfEls_lang.length; i++) {
        sfEls_lang[i].onmouseover=function() {
            this.className+=" sfhover";
        }
        sfEls_lang[i].onmouseout=function() {
            this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
        }
    }	
    var sfEls = document.getElementById("drop_cate").getElementsByTagName("LI");
    for (var i=0; i<sfEls.length; i++) {
        sfEls[i].onmouseover=function() {
            this.className+=" sfhover";
        }
        sfEls[i].onmouseout=function() {
            this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
        }
    }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


//the next 3 lines are browser detection for user-agent DOMS
ns4 = (document.layers) ? true:false //required for Functions to work
ie4 = (document.all) ? true:false //required for Functions to work
ng5 = (document.getElementById) ? true:false //required for Functions to work

function hideCart(obj,status) {
	if ( (status==1) ||  (status=="1") ) 
	   obj.className = 'cart_view_on';
	else   
	   obj.className = 'cart_view';
if (ng5) document.getElementById('cart_box').style.visibility = "hidden"
else if (ns4) document.cart_box.visibility = "hide"
else if (ie4) cart_box.style.visibility ="hidden"
}

function showCart(obj) {
hideCart(obj,1);
//alert(obj.className);
if (ng5) document.getElementById('cart_box').style.visibility = "visible";
else if (ns4) document.layers["cart_box"].visibility = "show";
else if (ie4) document.all["cart_box"].style.visibility = "visible";


}