﻿// JScript 파일
//mplayer
function wmplayer_play() {	
	parent.mplayer.document.getElementById('WMPlay').Play();
}

//mplayer
function wmplayer_stop() {
	parent.mplayer.document.getElementById('WMPlay').Stop();
}
//MenuNavigation
function CallAction(sCategoryId) {
    switch (sCategoryId) {
        case 'home' :
            document.location.href = "index.html";
            break;
        case 'bio' :
            document.location.href = "biography.html";
            break;
        case 'disco' :
            document.location.href = "newrelease.html";
            break;
        case 'photos' :
            document.location.href = "photos.html";
            break;
        case 'videos' :
            document.location.href = "videos.aspx";
            break;
        case 'extras' :
            document.location.href = "extras.html";
            break;
        case 'link' :
            document.location.href = "link.html";
            break;            
        case 'news' :
            document.location.href = "news.aspx";
            break;         
        case 'board' :
            document.location.href = "message.aspx";
            break;
        case 'schedule':
            document.location.href = "schedule.aspx";
            break;         
        case 'myspace' :
            window.open("http://www.myspace.com/boamusicusa");
            break;      
        case 'facebook' :
            window.open("http://www.facebook.com/pages/BoA/28159122771");
            break;                   
        default:
            document.location.href="index.html";
    }
}

//Flash Load
function loadFlash(filename,width,height)
{
                document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ width +'" height="'+ height +'">');
                document.write('<param name="movie" value="'+ filename +'" />');
                document.write('<param name="quality" value="high" /><param name="wmode" value="transparent" />');
                document.write('<param name="swfversion" value="8.0.35.0" />');
                document.write('<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->');
                document.write('<param name="expressinstall" value="Scripts/expressInstall.swf" />');
                document.write('<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->');
                document.write('<!--[if !IE]>-->');
                document.write('<object type="application/x-shockwave-flash" data="'+ filename +'" width="'+ width +'" height="'+ height +'">');
                document.write('<!--<![endif]-->');
                document.write('<param name="quality" value="high" /><param name="wmode" value="transparent" />');
                document.write('<param name="swfversion" value="8.0.35.0" />');
                document.write('<param name="expressinstall" value="Scripts/expressInstall.swf" />');
                document.write('<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->');
                document.write('<div><h4> Content on this page requires a newer version of Adobe Flash Player.</h4><p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p></div>');
                document.write('<!--[if !IE]>-->');
                document.write('</object>');
                document.write('<!--<![endif]-->');
                document.write('</object>');
}

function footer()
{
    document.write('<div id="etc">');
    document.write('<script language="javascript" type="text/javascript">loadFlash("comm/sub_logos.swf", "373", "31");</script>');
    document.write('</div>');
    document.write('<img src="images/footer.jpg" width="270" height="26" border="1" usemap="#Map" alt="" />');
    document.write('<div style="margin: -26px 0 0 280px;">');
    document.write('<select name="prev" onchange="if(this.selectedIndex >0)location.href=this.value;" class="selectbox">');
    document.write('<option selected="selected">PREVIOUS SITE</option>');
    document.write('<option value="ver02/main.html">The First Album</option>');
    document.write('<option value="ver01/main.htm">Eat You Up</option>');
    document.write('</select></div>');
    document.write('<map name="Map">');
    document.write('<area shape="rect" coords="178,2,193,13" href="javascript:wmplayer_play();" alt="play" />');
    document.write('<area shape="rect" coords="195,2,214,14" href="javascript:wmplayer_stop();" alt="stop" />');
    document.write('</map>');
}

