
function ShowFlash(url, width, height){
var TmpProtocol = location.protocol.split(":");
        document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+TmpProtocol[0]+'://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '" VIEWASTEXT>');
        document.write('<param name="movie" value="' + url + '">');
        document.write('<param name="quality" value="high">');
        document.write('<param name="wmode" value="transparent">');
        document.write('<param name="menu" value="false">');		
        document.write('<embed src="' + url + '" quality="high" wmode="transparent" menu="false" pluginspage="'+TmpProtocol[0]+'://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>');
        document.write('</object>');
}

var bgmStatus = 0;
function bgmStopPlay(obj0) {
	if(bgmStatus == 0) {
		bgmStatus = 1;
		parent.frame_bgm.method_StopButtonPush();
		obj0.src="/2010img/main/topmenu_btn02.gif";
	} else {
		bgmStatus = 0;
		parent.frame_bgm.method_PlayButtonPush();
		obj0.src="/2010img/main/topmenu_btn04.gif";
	}
	bgmSubject();
}

function bgmPrevious() {
	parent.frame_bgm.method_PreviousButtonPush();
	bgmSubject();
}

function bgmNext() {
	parent.frame_bgm.method_NextButtonPush();
	bgmSubject();
}

function bgmSubject() {
	if(parent.frame_bgm) {
		document.all.bgmSubjectText.innerHTML = "<marquee scrollamount=1>" + parent.frame_bgm.temp + "</marquee>";
		bgmState();
	}
}

function bgmState() {
	if(parent.frame_bgm.private_GetObjectState() == 2 )	{
		document.getElementById('imgStopPlay').src="/2010img/main/topmenu_btn04.gif";
	}
}

