//////////////////////////
function setTab(m,n){//setTab For Maihoo!
 var tli=document.getElementById("settab"+m).getElementsByTagName("a");
 var mli=document.getElementById("settabcont"+m).getElementsByTagName("div");
 for(i=0;i<tli.length;i++){
  tli[i].className=i==n?"hover":"";
  mli[i].style.display=i==n?"block":"none";
 }
}
function setTab2(m,n){
 var tli=document.getElementById("settab2"+m).getElementsByTagName("a");
 var mli=document.getElementById("settabcont2"+m).getElementsByTagName("dd");
 for(i=0;i<tlih.lengt;i++){
  tli[i].className=i==n?"hover":"";
  mli[i].style.display=i==n?"block":"none";
 }
}
////////////////////////////////shezhiimgtoumingdu
/*
$('.indexabout2 img').each(function(){
    $(this).css('opacity', '1');
}).hover(function(){
    $(this).animate({opacity:0.8});
}, function(){
    $(this).animate({opacity:1});
});
$('.table img').each(function(){
    $(this).css('opacity', '1');
}).hover(function(){
    $(this).animate({opacity:0.8});
}, function(){
    $(this).animate({opacity:1});
});
$('.indexprojectlist img').each(function(){
    $(this).css('opacity', '1');
}).hover(function(){
    $(this).animate({opacity:0.8});
}, function(){
    $(this).animate({opacity:1});
});
//////////////////////////////
if (window.jQuery) {
    jQuery(function() { (function() {
            jQuery('div.divbox1').bind('click',
            function(event, ui) {
                var target = jQuery('div.divbox2');
                target.toggle('slide', {
                    direction: 'up'
                },
                500);
                var target = jQuery('div.divbox1');
                target.toggleClass('div3')
            });
        })();
    })
};
*/
//
//奇偶变色，添加样式
$('.fairslist li').addClass('odd');
$('.fairslist li:even').addClass('even');
//设置首页作品图片奇偶边框s
/*
$('.indexprojectlist li').addClass('odd');
$('.indexprojectlist li:even').addClass('even');
*/



//返回顶部return_top///////////////////////////////
//<div id="full" style="width:50px; height:95px; position:fixed; left:50%; top:425px; margin-left:493px;  z-index:100; text-align:center; cursor:pointer;"><a><img src="img/return_top.gif" border=0 alt="返回顶部"></a></div>
/*
var isie6 = window.XMLHttpRequest ? false: true;
function newtoponload() {
    var c = document.getElementById("full");
    function b() {
        var a = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
        if (a > 0) {
            if (isie6) {
                c.style.display = "none";//none
                clearTimeout(window.show);
                window.show = setTimeout(function() {
                    var d = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
                    if (d > 0) {
                        c.style.display = "block";
                        c.style.top = (400 + d) + "px"
                    }
                },
                300)
            } else {
                c.style.display = "block"
            }
        } else {
            c.style.display = "none"//none
        }
    }
    if (isie6) {
        c.style.position = "absolute"
    }
    window.onscroll = b;
    b()
}
if (window.attachEvent) {
    window.attachEvent("onload", newtoponload)
} else {
    window.addEventListener("load", newtoponload, false)
}
document.getElementById("full").onclick = function() {
    window.scrollTo(0, 0)
};

*/

