﻿
//var _c = _h = 0;
//$(document).ready(function() {
//    $('#play > li').click(function() {
//        var i = $(this).attr('alt') - 1;
//        clearInterval(_h);
//        _c = i;
//        //play();
//        change(i);
//    })
//    $("#pic img").hover(function() { clearInterval(_h) }, function() { play() });
//    play();

//    changeMenu(1);
//})
//function play() {
//    _h = setInterval("auto()", 5000);

//}
//function change(i) {
//    $('#play > li').css('background-image', 'url(/images/swf_nav-link.gif)').eq(i).css('background-image', 'url(/images/swf_nav-hover.gif)').blur();
//    $("#pic img").fadeOut('slow').eq(i).fadeIn('slow');
//}
//function auto() {
//    _c = _c > 2 ? 0 : _c + 1;

//    change(_c);
//}


//function changeMenu(i) {
//    var one = find("one");
//    var two = find("two");
//    var three = find("three");
//    var lione = find("lione");
//    var litwo = find("litwo");
//    var lithree = find("lithree");
//    var aone = find("aone");
//    var atwo = find("atwo");
//    var athree = find("athree");
//    if (i == 1) {
//        lione.style.backgroundImage = "url(/images/case_top_btn01.gif)";
//        litwo.style.backgroundImage = "url(/images/case_top_btn02.gif)";
//        lithree.style.backgroundImage = "url(/images/case_top_btn02.gif)";
//        aone.style.color = "#fff";
//        atwo.style.color = "#666";
//        athree.style.color = "#666";
//        one.style.display = 'block';
//        two.style.display = 'none';
//        three.style.display = 'none';
//    }
//    if (i == 2) {
//        lione.style.backgroundImage = "url(/images/case_top_btn02.gif)";
//        litwo.style.backgroundImage = "url(/images/case_top_btn01.gif)";
//        lithree.style.backgroundImage = "url(/images/case_top_btn02.gif)";
//        aone.style.color = "#666";
//        atwo.style.color = "#fff";
//        athree.style.color = "#666";
//        one.style.display = 'none';
//        two.style.display = 'block';
//        three.style.display = 'none';
//    }
//    if (i == 3) {
//        lione.style.backgroundImage = "url(/images/case_top_btn02.gif)";
//        litwo.style.backgroundImage = "url(/images/case_top_btn02.gif)";
//        lithree.style.backgroundImage = "url(/images/case_top_btn01.gif)";
//        aone.style.color = "#666";
//        atwo.style.color = "#666";
//        athree.style.color = "#fff";
//        one.style.display = 'none';
//        two.style.display = 'none';
//        three.style.display = 'block';
//    }
//}
//function find(id) {
//    return document.getElementById(id);
//}
//
//

/*****左侧菜单*******/
function mouseFocus(obj, id) {
    try {
        var objul = document.getElementById(id);


        objul.style.top = obj.offsetTop + "px";
        objul.style.left = obj.offsetLeft + obj.offsetWidth - 50 + "px";

        objul.style.display = "block";
    } catch (e) { }

}

function mouseblur(id) {
    try {
        var objul = document.getElementById(id);
        objul.style.display = "none";
    } catch (e) { }
}

/*****左侧菜单结束*******/


/*****头部菜单*******/
function mouseFocus_Top(obj, id) {
    try {
        var objul = document.getElementById(id);


        objul.style.top = obj.offsetTop + obj.scrollHeight + "px";
        objul.style.left = obj.offsetLeft + "px";

        var listli = objul.getElementsByTagName("li");

//        var len = 0;
//        alert(listli.length);
//        for (var i = 0; i < listli.length; i++) {
//            alert(listli[i].scrollWidth);
//            len = len + listli[i].scrollWidth;
//            //alert(len)
//        }
        objul.style.width = listli.length * 62 + "px";
        
       // objul.style.width = obj.scrollWidth + "px";
        objul.style.display = "block";
    } catch (e) { }

}

//function mouseblur(id) {
//    try {
//        var objul = document.getElementById(id);
//        objul.style.display = "none";
//    } catch (e) { }
//}

/*****头部菜单结束*******/
