var opacity = -1;
var bb=Object;
var o=Object ;
function nTabss(thisObjj, Num, types) {
    var decss, changcss, contentname;
    switch (types) {
        case 1:
            changcss = "active";
            contentname = "warpzhonghe";
            break;
        case 2:
            changcss = "active";
            contentname = "warpzhonghes";
            break;
        case 3:
            changcss = "active";
            contentname = "PhotoContent";
            break;
        default:
            changcss = "active"; //  befor css
            contentname = "Myinfos"; //  contents id
            break;
    }
    if (thisObjj.className == changcss) return;
    var tabObjj = thisObjj.parentNode.id;
    var tabList = $$(tabObjj).getElementsByTagName("li");
    for (i = 0; i < tabList.length; i++) {
        if (i == Num) {
            //if (bb != clearTimeout(bb) && opacity != -1) {
                //opacity = 1;
                //cs();
            //}
            
            o = $$(contentname);
            opacity = 0;
            //var browser = navigator.userAgent;
            //if (browser.indexOf("MSIE") > 0) {
                //o.style.filter = "alpha(opacity=" + opacity + ")";
                //o.filters.alpha.opacity = opacity;
           // } else {
            //o.style.opacity = opacity;
            //}
            thisObjj.className = changcss;
            $$(tabObjj + "_" + i).style.display = "block";
            //chang();
        } else {
            tabList[i].className = "";
            $$(tabObjj + "_" + i).style.display = "none";
        }
    }
    window.scroll(0, document.documentElement.scrollTop + 1); 
}

function cs() {
    var browser = navigator.userAgent;
    if (browser.indexOf("MSIE") > 0) {
        o.style.filter = "alpha(opacity=" + (opacity * 100) + ");";
        //o.filters.alpha.opacity = opacity * 100;
    } else {
        o.style.opacity = opacity;
    }
    opacity = Math.round(opacity * 10) / 10;
    opacity = opacity + 0.3;
    if (opacity >= 1) {
        opacity = 1;
        bb = clearTimeout(bb);
        return;
    }
    bb=setTimeout("cs()", 30);
}

function chang() {
    cs();
}

