﻿function shadow(el) {
//            if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
//                var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
//            }
        if (navigator.appName == "Microsoft Internet Explorer") {
//                if (ieversion > 6) {
//                    el.childNodes[0].className = "content shadow";
//                    el.childNodes[0].childNodes[0].className = "t shadow";
//                    el.childNodes[1].className = "b shadow";
//                    el.childNodes[1].childNodes[0].className = "shadow";
//                }
        }
        else {
            el.childNodes[1].className = "content shadow";
            el.childNodes[1].childNodes[1].className = "t shadow";
            el.childNodes[3].className = "b shadow";
            el.childNodes[3].childNodes[0].className = "shadow";
            if (el.childNodes[3].childNodes.length > 1) {
                el.childNodes[3].childNodes[1].className = "shadow";    
            }
        }
    }
    function unshadow(el) {
//            if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
//                var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
//            }
        if (navigator.appName == "Microsoft Internet Explorer") {
//                if (ieversion > 6) {
//                    el.childNodes[0].className = "content";
//                    el.childNodes[0].childNodes[0].className = "t";
//                    el.childNodes[1].className = "b";
//                    el.childNodes[1].childNodes[0].className = "non";
//                }
        }
        else {
            el.childNodes[1].className = "content";
            el.childNodes[1].childNodes[1].className = "t";
            el.childNodes[3].className = "b";
            el.childNodes[3].childNodes[0].className = "non";
            if (el.childNodes[3].childNodes.length > 1) {
                el.childNodes[3].childNodes[1].className = "non";
            }
        }
    }
