﻿// JavaScript Document
//function submenu_down() {
//    if ($(">a", this).attr("to") == "open") {
//        $(">a", this).attr("to", "close");
//        $(">div", this).slideDown(200);
//    }
//    $(this).addClass('current');
//}

//function submenu_up() {
//    if ($(">a", this).attr("to") == "close") {
//        $(">a", this).attr("to", "open");
//        $(">div", this).slideUp(200);
//    }
//    $(this).removeClass('current');
//}

//$(function() {
//    $(".menu_left .gomenu").hover(
//				submenu_down, submenu_up
//				);
//});



//function click(e) {
//    if (document.all) {
//        if (event.button == 1 || event.button == 2 || event.button == 3) {
//            oncontextmenu = 'return false';
//            onselectstart = 'return false'; 
//        }
//    }
//    if (document.layers) {
//        if (e.which == 3) {
//            oncontextmenu = 'return false';
//            onselectstart = 'return false';
//        }
//    }
//}
//if (document.layers) {
//    document.captureEvents(Event.MOUSEDOWN);
//}
//document.onmousedown = click;
//document.oncontextmenu = new Function("return false;")

//var travel = true
//var hotkey = 17   /* hotkey即为热键的键值,是ASII码,这里99代表c键 */
//if (document.layers)
//    document.captureEvents(Event.KEYDOWN)
//function gogo(e) {
//    if (document.layers) {
//        if (e.which == hotkey && travel) {
//            alert("操作错误.禁止复制!");
//        } 
//    }
//    else if (document.all) {
//    if (event.keyCode == hotkey && travel) { alert("操作错误.禁止复制!"); } 
//    }
//}

//document.onkeydown = gogo


document.onselectstart = function() { return false; } 


function switchmodTag(modtag, modcontent, modk) {
    for (i = 1; i < 4; i++) {
        if (i == modk) {
            document.getElementById(modtag + i).className = "menuOn"; document.getElementById(modcontent + i).className = "slidingList";
        }
        else {
            document.getElementById(modtag + i).className = "menuNo"; document.getElementById(modcontent + i).className = "slidingList_none";
        }
    }
}


