function Hashtable()
{
    this._hash        = new Object(); 
    this.add        = function(key,value){
                        if(typeof(key)!="undefined"){
                            if(this.contains(key)==false){
                                this._hash[key]=typeof(value)=="undefined"?null:value;
                                return true;
                            } else {
                                return false;
                            }
                        } else {
                            return false;
                        }
                    }
    this.remove        = function(key){delete this._hash[key];}
    this.count        = function(){var i=0;for(var k in this._hash){i++;} return i;}
    this.items        = function(key){return this._hash[key];}
    this.contains    = function(key){ return typeof(this._hash[key])!="undefined";}
    this.clear        = function(){for(var k in this._hash){delete this._hash[k];}}
}

/****** ¦Ü«ü©w­¶­± *******/
function goToURL(url, page, sub) {

    if (url.toString().indexOf('?') == -1)
        document.location.href = url + "?cateid=" + page + "&subid=" + sub;
    else
        document.location.href = url + "&cateid=" + page + "&subid=" + sub;
}


/****** ¥D¿ï³æ³sµ² *****************/
function menu1() { goToURL("/4th/index.asp", "1", ""); }
function menu2() { goToURL("/4th/index.asp", "2", ""); }
function menu3() { goToURL("/4th/index.asp", "3", ""); }
function menu4() { goToURL("/4th/index.asp", "4", ""); }
function menu5() { goToURL("/4th/index.asp", "5", ""); }
function menu6() { goToURL("/4th/videozone/index.asp", "6", ""); }
function menu7() { window.open('http://shopping.avex.com.tw/avex/','winEC','toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1'); }
//function menu7() { goToURL("/4th/bulletin.asp", "7", ""); }
function menu8() { goToURL("/4th/forum/index.asp", "8", ""); }



/******* È¸µØ»y¬y¦æ *****************/
function menu1sub1() { goToURL("/4th/artist/index.asp", "1", "1"); }
function menu1sub2() { goToURL("/4th/event.asp", "1", "2"); }
function menu1sub3() { goToURL("/4th/news.asp", "1", "3"); }
function menu1sub4() { goToURL("/4th/release.asp", "1", "4"); }
function menu1sub5() { goToURL("/4th/premiere.asp", "1", "5"); }


/******* ªF¬v¬y¦æ *****************/

function menu2sub1() { goToURL("/4th/artist/index.asp", "2", "1"); }
function menu2sub2() { goToURL("/4th/event.asp", "2", "2"); }
function menu2sub3() { goToURL("/4th/news.asp", "2", "3"); }
function menu2sub4() { goToURL("/4th/release.asp", "2", "4"); }
function menu2sub5() { goToURL("/4th/premiere.asp", "2", "5"); }


/******* È«Áú¼Ö¬y¦æ *****************/
function menu3sub1() { goToURL("/4th/artist/index.asp", "3", "1"); }
function menu3sub2() { goToURL("/4th/event.asp", "3", "2"); }
function menu3sub3() { goToURL("/4th/news.asp", "3", "3"); }
function menu3sub4() { goToURL("/4th/release.asp", "3", "4"); }
function menu3sub5() { goToURL("/4th/premiere.asp", "3", "5"); }


/******* ¦è¬v¬y¦æ *****************/
function menu4sub1() { goToURL("/4th/artist/index.asp", "4", "1"); }
function menu4sub2() { goToURL("/4th/event.asp", "4", "2"); }
function menu4sub3() { goToURL("/4th/news.asp", "4", "3"); }
function menu4sub4() { goToURL("/4th/release.asp", "4", "4"); }
function menu4sub5() { goToURL("/4th/premiere.asp", "4", "5"); }


/******* ¥j¨å¬y¦æ *****************/
function menu5sub1() { goToURL("/4th/artist/index.asp", "5", "1"); }
function menu5sub2() { goToURL("/4th/event.asp", "5", "2"); }
function menu5sub3() { goToURL("/4th/news.asp", "5", "3"); }
function menu5sub4() { goToURL("/4th/release.asp", "5", "4"); }
function menu5sub5() { goToURL("/4th/premiere.asp", "5", "5"); }


var queryString = document.location.search.replace("?", "").split('&');
var queryString2;
var hsParams = new Hashtable();
var i = 0;

for(i=0;i<queryString.length;i++)
{
    queryString2 = queryString[i].split("=");
    hsParams.add(queryString2[0].toString().toLowerCase(), queryString2[1]);
}

loadMovie("/4th/menu.swf?main=" + hsParams.items("cateid") + "&sub=" + hsParams.items("subid"), 920, 73, "flase", "flase", "true", "high", "#FFF");