﻿$('.rksy1>.h>a').live('mousemove', function () {
    if ($(this).attr("class") != "ac") {
        $('.rksy1>.h>a').removeClass("ac");
        $(this).addClass("ac");
        var i = $('.rksy1>.h>a').index($(this));
        $('.rksy1>.conn>ul:visible').hide();
        // alert(a);
        $('.rksy1>.conn>ul:eq(' + i + ')').show();
    }
}); 
$('.rksy2>.h>a').live('mousemove', function () {
    if ($(this).attr("class") != "ac") {
        $('.rksy2>.h>a').removeClass("ac");
        $(this).addClass("ac");
        var i = $('.rksy2>.h>a').index($(this));
        $('.rksy2>.conn>div:visible').hide(); 
        $('.rksy2>.conn>div:eq(' + i + '):hidden').show();
    }
});
$('.list1>.n>div>a').live('click', function () {
    if ($(this).attr("class")== "w") {
        $('.list1>.v>#nw').attr("style", "display:block;");
        $('.list1>.v>#nm').attr("style", "display:none;");
    }
    else {
        $('.list1>.v>#nm').attr("style", "display:block;");
        $('.list1>.v>#nw').attr("style", "display:none;");
     }
});
  
function setHomePage(obj) {
    var aUrls = document.URL.split("/");
    var vDomainName = "http://" + aUrls[2] + "/";
    try {//IE
        obj.style.behavior = "url(#default#homepage)";
        obj.setHomePage(vDomainName); 
    } catch (e) {//other
        if (window.netscape) {//ff
            try {
                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
            }
            catch (e) {
                alert("此操作被浏览器拒绝！请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为'true'");
            }
            var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
            prefs.setCharPref('browser.startup.homepage', vDomainName);
        }
    }
    if (window.netscape) alert("ff");
}
function addFavorite() {
    var aUrls = document.URL.split("/");
    var vDomainName = "http://" + aUrls[2] + "/";
    var description = document.title;
    try {//IE 
        window.external.AddFavorite(vDomainName, description);
    } catch (e) {//FF
        window.sidebar.addPanel(description, vDomainName, "");
    }
}

function dlok(){
	
	window.location.href="login.asp";
	
	}
