function ShowInfo(obj, inde) {
    var strorList = new Array("story_0", "story_1");
    var count = jQuery("#story li").size();
    var obj1 = jQuery("#story li");
    for (var i = 0; i < count; i++) {
        document.getElementById(strorList[i]).style.display = "none";
        obj1[i].className = "";
    }
    document.getElementById(strorList[inde]).style.display = "";
    obj.className = "cick";

}

function ShowImgInfo() {
    var showLi = jQuery("#showLi li");
    var showDiv = jQuery("#showLi div");
    var showA = jQuery("#showLi li > a");
    jQuery("#showImg").html(showDiv.eq(0).html());
    showLi.each(function(i) {
        var _this = showLi.eq(i);
        var _thisDiv = showDiv.eq(i);
        var _thisA = showA.eq(i);
        _this.bind("mouseover",
            function() {
                showA.each(function(j) {
                    showA.eq(j).removeClass();
                    _thisA.addClass("cick");
                });

                jQuery("#showImg").html(_thisDiv.html());
            }
        )
    })
}


function contSwitch(obj, inde) {
    var fList = new Array("con_0", "con_1", "con_2", "con_3");
    var count = jQuery("#f_Info li").size();
    var obj1 = jQuery("#f_Info li");
    for (var i = 0; i < count; i++) {
        document.getElementById(fList[i]).style.display = "none";
        obj1[i].className = "";
    }
    document.getElementById(fList[inde]).style.display = "";
    obj.className = "k1";
}
function showRoll(obj, type) {
    jQuery("ul[showType]").hide();
    jQuery("ul[showType=" + type + "]").show();
    jQuery(obj).siblings().each(function(i) {
        jQuery(this).removeClass();
    });
    jQuery(obj).addClass("ck");
}

function getFocus(obj) {
    jQuery(obj).addClass("hover");
}
function lostFocus(obj) {
    jQuery(obj).removeClass("hover");
}

function ScollFeedback() {
    var top = document.body.parentNode.scrollTop;
    document.getElementById("regene").style.top = top + 122 + "px";
}

function getSearchFocus(obj) {
    jQuery(obj).addClass("dropover");
}
function lostSearchFocus(obj) {
    jQuery(obj).removeClass("dropover");
    jQuery(obj).addClass("drop");
}

function getSelectFocus(obj) {

    jQuery(obj).addClass("over");
}
function lostSelectFocus(obj) {
    jQuery(obj).removeClass("over");

}
function SelectDivShow() {
    var h;
    jQuery("#SelectDiv").bind(
        'mousemove', function() {
            clearInterval(h);
        });

    jQuery("#SelectDiv").bind("mouseout", function() {
        h = setInterval(function() {
            jQuery("#SelectType").hide();
        }, 1000);
    });

}
function AdTotal(obj, areaName) {//广告点击统计
    jQuery.get("http://www.518ad.com/ADTotal/", { U: obj.href + "&N=" + areaName });
}

if (window.addEventListener) {
    window.addEventListener('scroll', ScollFeedback, false);
}
else {
    window.attachEvent("onscroll", ScollFeedback);
}


