// src   : source url
// fid   : flash id
// width : source width
// height: source height
// mode  : wmode ("" for none, transparent, opaque ...)
function flash(src,fid,width,height,mode){
	document.writeln("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'");
    document.writeln("codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0'");
    document.writeln("width=" + width + " height=" + height + " id=" + fid + ">");
    document.writeln("<param name=wmode value=" + mode + " />");
    document.writeln("<param name=movie value=" + src + " />");
    document.writeln("<param name=quality value=high />");
    document.writeln("<embed src='" + src + "' quality='high' wmode='" + mode + "' ");
    document.writeln("type='application/x-shockwave-flash' ");
    document.writeln("pluginspage='http://www.macromedia.com/shockwave/download/index.cgi");
    document.writeln("?p1_prod_version=shockwaveflash' width=" + width + " height=" + height + ">");
    document.writeln("</embed>");
    document.writeln("</object>");
}

// write document contents
function print(src){
  //document.write(src);
}

function bgm_off() {
	var temp_img_name = document.images["btn_bgm"].src;
	var current_img_name = temp_img_name.split("/");
	if (current_img_name[5]=="btn_bgm_off.gif")
	{
		document.images["btn_bgm"].src = "/img/common/btn_bgm_on.gif";
		parent.hidden.location="/nobgm.html";
	} else {
		document.images["btn_bgm"].src = "/img/common/btn_bgm_off.gif";
		parent.hidden.location="/bgm.html";
	}
}

<!--
  function go_menu(main, sub)
  {
//MENU NAVI Link
 var m_menu;
 var s_menu;
 m_menu = "";
 s_menu = "";
//  alert(main);
  //alert(sub);
  var goUrl;
    if (main == 0)
    {
// 00. 메인페이지
      if(sub==1) goUrl = '#';
	  if(sub==2) goUrl = '#';
	  if(sub==3) goUrl = '#';
    }

// 01. 
   else if (main == 1)
    {
      if(sub==0) goUrl = 'http://www.mirsungrc.com/intro/intro01.php';                 		
      else if(sub==10) goUrl = 'http://www.mirsungrc.com/intro/intro02.php';          
	  else if(sub==20) goUrl = 'http://www.mirsungrc.com/intro/intro03.php';
	  else if(sub==30) goUrl = 'include.php?inc=sub01_4';
           

    }

// 02. 
    else if (main == 2)
    {
     if(sub==0) goUrl = 'http://www.mirsungrc.com/history/history01.php';     
	  else if(sub==10) goUrl = 'http://www.mirsungrc.com/history/history02.php';        
	  else if(sub==20) goUrl = 'http://www.mirsungrc.com/history/history03.php';      
	  else if(sub==30) goUrl = 'include.php?inc=sub02_4'; 
	  else if(sub==40) goUrl =  'include.php?inc=sub02_5';
	  else if(sub==50) goUrl =  'include.php?inc=sub02_6';  
	  
	}

// 03. 
    else if (main == 3)
    {
      if(sub==0) goUrl = 'http://www.mirsungrc.com/organization/organization01.php';	         
	  else if(sub==10) goUrl = 'http://www.mirsungrc.com/organization/organization02.php';	
	  else if(sub==20) goUrl = 'http://www.mirsungrc.com/organization/organization03.php';
	  else if(sub==30) goUrl = 'http://www.mirsungrc.com/organization/organization04.php';
	  else if(sub==40) goUrl = 'http://www.mirsungrc.com/organization/organization06.php';
	  else if(sub==50) goUrl = 'http://www.mirsungrc.com/organization/organization05.php';
	}

// 04. 
    else if (main == 4)
    {
      if(sub==0) goUrl = 'http://www.mirsungrc.com/bbs/index.php?code=bbs_007';	
	  else if(sub==10) goUrl = 'http://www.mirsungrc.com/bbs/index.php?code=bbs_008';
      else if(sub==20) goUrl = 'http://www.mirsungrc.com/mem/mem02.php';
	  else if(sub==30) goUrl = 'include.php?inc=sub04_4';
    }
	
// 05. 
    else if (main == 5)
    {
      if(sub==0) goUrl = 'http://www.mirsungrc.com/new/main/home/main/bbs.php?id=bo05_1';
	  else if(sub==10) goUrl = 'http://www.mirsungrc.com/new/main/home/main/bbs.php?id=bo05_2';
	  else if(sub==20) goUrl = 'http://www.mirsungrc.com/new/main/home/main/bbs/index.php?code=bbs_002';
	  else if(sub==30) goUrl = '';
	  else if(sub==40) goUrl = '';
    }

	
// 06.
    else if (main == 6)
    {
      if(sub==0) goUrl = 'http://www.mirsungrc.com/business/business01.php';
	  else if(sub==10) goUrl = 'http://www.mirsungrc.com/new/main/home/main/bbs/index.php?code=bbs_004';
	  else if(sub==20) goUrl = 'http://www.mirsungrc.com/new/main/home/main/bbs/index.php?code=bbs_005';
	  else if(sub==30) goUrl = 'http://www.mirsungrc.com/new/main/home/main/bbs/index.php?code=bbs_006';
	  else if(sub==40) goUrl = 'bbs.php?table=board05';
	  else if(sub==50) goUrl = 'bbs.php?table=board06';
	  else if(sub==60) goUrl = 'bbs.php?table=board07';
    }


// 07. 
    else if (main == 7)
    {
      if(sub==0) goUrl = 'http://www.mirsungrc.com/new/main/home/main/bbs.php?id=bo07_1';
	  else if(sub==10) goUrl = 'http://www.mirsungrc.com/new/main/home/main/bbs.php?id=bo07_2';
	  else if(sub==20) goUrl = 'http://www.mirsungrc.com/new/main/home/main/bbs.php?id=bo07_3';
	  else if(sub==30) goUrl = 'http://www.mirsungrc.com/new/main/home/main/bbs.php?id=bo07_44';
    }

	location.href = goUrl;
  }

//-->
