﻿strWWWDir = "http://www.110mu.com/";

function fnGoMenu(strCode) {

    switch (strCode) {
        case 100:
            location.href = strWWWDir + "mz.htm";
            break;
        case 110:
            location.href = strWWWDir + "mz.htm";
            break;			
        case 120:
            location.href = strWWWDir + "sz.htm";
            break;   
        //------------------------------------------------------------------

        case 200:            
            location.href = strWWWDir + "gx.htm";
            break;
        case 210:            
            location.href = strWWWDir + "gx.htm";
            break;
        case 220:
            location.href = strWWWDir + "zq.htm";
            break;
        //------------------------------------------------------------------

        case 300:
            location.href = strWWWDir + "sz.htm";
            break;
        case 310:
            location.href = strWWWDir + "sz.htm";
            break;
        case 320:
            location.href = strWWWDir + "jieda.htm";
            break;
        case 330:
            location.href = strWWWDir + "gx.htm";
            break;
        case 355:
            location.href = strWWWDir + "mz.htm";
            break;
        case 356:
            location.href = strWWWDir + "jieda.htm";
            break;
        case 357:
            location.href = strWWWDir + "down.htm";
            break;
        case 358:
            location.href = strWWWDir + "gametop.asp";
            break;
        case 359:
            location.href = strWWWDir + "zmtop.asp";
            break;
        case 360:
            location.href = strWWWDir + "chgpwd.asp";
            break;
        case 370:
            location.href = strWWWDir + "getpwd.asp";
            break;
        case 380:
            location.href = strWWWDir + "kf.htm";
            break;
        case 390:
            location.href = strWWWDir + "zq.htm";
            break;

        //------------------------------------------------------------------
        case 400:
            location.href = strWWWDir + "gametop.asp";
            break;
        case 410:
            location.href = strWWWDir + "zmtop.asp";
            break;
        case 420:
            //alert("尚未開放，敬請期待.");            
            location.href = strWWWDir + "gametop.asp";
            break;
        case 430:
            //alert("尚未開放，敬請期待.");
            location.href = strWWWDir + "gametop.asp";
            break;
        
        //------------------------------------------------------------------   

        case 500:
            location.href = strWWWDir + "Down.htm";
            break;
        case 510:
            location.href = strWWWDir + "Down.htm";
            break;
        case 520:
            location.href = strWWWDir + "Down.htm";
            break;
        case 530:
            location.href = strWWWDir + "Down.htm";
            break;
        
        //------------------------------------------------------------------  
        case 600:
            location.href = strWWWDir + "cf.htm";
            break;
        case 610:
            location.href = strWWWDir + "cf.htm";
            break;
        case 620:
            location.href = strWWWDir + "jieda.htm";
            break;
        case 630:
            location.href = strWWWDir + "kf.htm";
            break;

        //------------------------------------------------------------------    
        
        case 700:
            location.href = strWWWDir + "idreg.asp";
            break;
        case 710:
            location.href = strWWWDir + "idreg.asp";
            break;
        case 720:
            location.href = strWWWDir + "chgpwd.asp";
            break;
        case 730:
            location.href = strWWWDir + "getpwd.asp";
            break;
        case 740:
            location.href = strWWWDir + "getpwd.asp";
            break;
        case 750:
            //alert("尚未開放，敬請期待.");
            location.href = strWWWDir + "getpwd.asp";
            break;
        case 760:
            //alert("尚未開放，敬請期待.");            
            location.href = strWWWDir + "wgft.asp";
            break;

        //------------------------------------------------------------------
        case 800:
            location.href = strWWWDir + "zz.htm";
            break;
        case 810:
            location.href = strWWWDir + "zz.htm";
            break;
        case 820:
            location.href = strWWWDir + "zbcx.htm";
            break;
    
        //------------------------------------------------------------------   
        case 900:
            location.href = strWWWDir + "index.htm";
            break;

        //------------------------------------------------------------------  
        case 991:
            window.open(strWWWDir + "sz.htm");
            break;
        case 992:
            window.open(strWWWDir + "sz.htm");
            break;
        case 993:
            window.open(strWWWDir + "sz.htm");
            break;
	case 994:
            window.open(strWWWDir + "sz.htm");
            break;

        //------------------------------------------------------------------  
        default:
            location.href = strWWWDir;
    }
}


function fnGoFamilySite(value) {
    if (value != "") {
        window.open(value, 'family', '');
    }
}

function addmylove() {
    window.external.AddFavorite("http://www.110mu.com", "寒光奇迹 - [MuOnline]");
}


function chMapDiv(value) {
    try {
        for (var i = 1; i <= 12; i++) {
            if (i == value) {
                document.getElementById("map" + i).style.display = '';
                chFontColor(value);
            } else {
                document.getElementById("map" + i).style.display = 'none';
            }
        }
    }
    catch (e) { }
}

function chFontColor(value) {
    try {
        for (var j = 2; j <= 12; j++) {
        	wo=document.getElementById("mapBtn" + j);
        	ao=document.createAttribute('style');        	        	
            if (j == value){
            	ao.nodeValue='color:#cc6633';
            	wo.setAttributeNode(ao);
            }else{
            	ao.nodeValue='color:';
            	wo.setAttributeNode(ao);
            }            
        }
    }
    catch (e) { }
}
