﻿$(document).ready(function() {

    $("[id^='litype']").attr("class", "p_nav_nohover_bj");

   

    $("#goindex").click(function() {
        window.location.href = "/Index/Index";
    });


    //    $("a[id^='type']").click(function() {
    //        var id = $(this).attr("id").substring(4);



    //        if (id == 1) {
    //            //            $(this).attr("location", "/Index/Index");
    //            window.location = "/Index/Index";

    //            $("[id^='litype']").attr("class", "p_nav_nohover_bj");
    //            $("#litype" + id).attr("class", "p_nav_hover_bj");

    //        }
    //        else if (id == 2) {

    //            $(this).attr("location", "/Details/DetailsByMoName?moduleType=1");
    //        }
    //        else if (id == 3) {
    //            $(this).attr("location", "/Details/DetailsByMoName?moduleType=2");
    //        }
    //        else if (id == 4) {
    //            $(this).attr("href", "/Details/DetailsByMoName?moduleType=3");
    //        }
    //        else {
    //            $(this).attr("href", "/Details/DetailsByMoName?moduleType=4");
    //        }
    //        return false;

    //    });
});




//function show(a) {
//    for (i = 1; i <= 5; i++) {
//        if (a == i) {
//            document.getElementById("top_nav" + i).className = "p_nav_hover_bj";

//        }
//        else {
//            document.getElementById("top_nav" + i).className = "p_nav_nohover_bj";
//        }
//    }
//}



//function getQueStr(ref) {
//    var url = location.href;
//    if (url.indexOf('?') == -1) { return ""; }
//    var str = url.substr(url.indexOf('?') + 1);
//    if (str.indexOf('&') != -1) {
//        var arr = str.split('&');
//        for (i in arr) {

//            if (arr[i].split('=')[0] == ref)
//                return arr[i].split('=')[1];
//        }
//    } else {
//        return url.substr(url.indexOf('=') + 1)
//    }
//}

//window.onload = function() {
//var index = getQueStr("pd");
//  
//    if (index == "") { index = "1"; }
//    show(index);
//}

//function linkclick() {
//    var obj = parent.document.getElementById("divlink");
//    if (obj.style.display == "none") {
//        obj.style.display = "";
//    }
//    else {
//        obj.style.display = "none";
//    }
//}
