///////////////////////////////////////////////////////////////////////////////////////////////


function goTwitter() {
  var msg = document.title;
  var url = document.URL;
  var href = "http://twitter.com/home?status=" + encodeURIComponent(msg) + " " + encodeURIComponent(url);
  var twitter = window.open(href, 'twitter', '');
  twitter.focus();
}
function goFaceBook() {
  var msg = document.title;
  var url = document.URL;
  var href = "http://www.facebook.com/sharer.php?u=" + url + "&t=" + encodeURIComponent(msg);
  var facebook = window.open(href, 'facebook', '');
  facebook.focus();
}
function goMe2Day() {
  var msg = document.title;
  var url = document.URL;
  var tag = "";
  var href = "http://me2day.net/posts/new?new_post[body]=" + encodeURIComponent(msg) + " " + encodeURIComponent(url);// + "&new_post[tags]=" + encodeURIComponent(tag);
  var me2Day = window.open(href, 'me2Day', '');
  me2Day.focus();
}



    function main()	
    { self.location.href = '/index.php'; } 
	function en()	
    {window.open("/en");} 
	function jp()	
    {window.open("/jp");} 
	function ch()	
    {window.open("/ch");} 
	
	function full_menu01()
    { showHideLayer(true) }	
 	function full_menu02()
    { showHideLayer(false)}
	
function showHideLayer(stat){
//alert(stat);
        if(stat){
                document.all.sitemap02.style.visibility="visible";
                document.all.sitemap01.style.visibility="hidden";

        }else{
                document.all.sitemap02.style.visibility="hidden";
                document.all.sitemap01.style.visibility="visible";
        }
}




	function full_2menu01()
    { showHide2Layer(true) }	
 	function full_2menu02()
    { showHide2Layer(false)}
	
function showHide2Layer(stat){
//alert(stat);
        if(stat){
                document.all.site2map02.style.visibility="visible";
                document.all.site2map01.style.visibility="hidden";

        }else{
                document.all.site2map02.style.visibility="hidden";
                document.all.site2map01.style.visibility="visible";
        }
}



 


	function banner041_01()	
    { self.location.href = '/index.php?control=html&mg=sub01&p_id=010101';}	
	function banner041_02()	
    { self.location.href = '/index.php?control=html&mg=sub01&p_id=010101';}	
	function banner041_03()	
    { self.location.href = '/index.php?control=html&mg=sub01&p_id=010101';}	
	function banner041_04()	
    { self.location.href = '/index.php?control=html&mg=sub01&p_id=010101';}	
	function banner041_05()	
    { self.location.href = '/index.php?control=html&mg=sub01&p_id=010101';}	
	function banner041_06()	
    { self.location.href = '/index.php?control=html&mg=sub01&p_id=010101';}	
	

	
	function banner04_01()	
    { self.location.href = '/index.php?control=bbs&md=list&bo_table=notice_01&mg=sub08&p_id=080801';}	
	function banner04_02()	
    { self.location.href = '/index.php?control=bbs&md=list&bo_table=online_qna&mg=sub08&p_id=080101';}	
	function banner04_03()	
    { self.location.href = '/index.php?control=bbs&md=calendar&bo_table=op_res&mg=sub08&p_id=080201';}	
	function banner04_04()	
    { self.location.href = '/index.php?control=bbs&md=list&bo_table=review&mg=sub08&p_id=080601';}	
	function banner04_05()	
    { self.location.href = '/index.php?control=bbs&md=list&bo_table=real_story&mg=sub08&p_id=080901';}	
	function banner04_06()	
    { self.location.href = '/index.php?control=html&mg=sub01&p_id=010701';}	
	
	

 
	function link_bbs(param)
    { self.location.href = param;}	
	function menu010101()	
    { self.location.href = '/index.php?control=html&mg=sub01&p_id=010101';}	
	function menu010201()	
    { self.location.href = '/index.php?control=html&mg=sub01&p_id=010201';} 	
	function menu010301()	
    { self.location.href = '/index.php?control=html&mg=sub01&p_id=010301';} 	
	function menu010401()	
    { self.location.href = '/index.php?control=html&mg=sub01&p_id=010401';} 
		function menu010402()	
		{ self.location.href = '/index.php?control=html&mg=sub01&p_id=010402';}
	function menu010501()	
    { self.location.href = '/index.php?control=html&mg=sub01&p_id=010501';} 	
	function menu010601()	
    { self.location.href = '/index.php?control=html&mg=sub01&p_id=010601';} 	
	function menu010701()	
    { self.location.href = '/index.php?control=html&mg=sub01&p_id=010701';} 
	
	
	function menu020001()	
    { self.location.href = '/index.php?control=html&mg=sub02&p_id=020001'; }
 	
    function menu020101()	
    { self.location.href = '/index.php?control=html&mg=sub02&p_id=020101'; }	
	function menu020201()	
    { self.location.href = '/index.php?control=html&mg=sub02&p_id=020201'; }
	function menu020301()	
    { self.location.href = '/index.php?control=html&mg=sub02&p_id=020301'; }
	function menu020401()	
    { self.location.href = '/index.php?control=html&mg=sub02&p_id=020401'; }
	function menu020501()	
    { self.location.href = '/index.php?control=html&mg=sub02&p_id=020501'; }
	function menu020601()	
    { self.location.href = '/index.php?control=html&mg=sub02&p_id=020601'; }
	function menu020701()	
    { self.location.href = '/index.php?control=html&mg=sub02&p_id=020701'; }
	function menu020801()	
    { self.location.href = '/index.php?control=html&mg=sub02&p_id=020801'; }
	function menu020901()	
    { self.location.href = '/index.php?control=html&mg=sub02&p_id=020901'; }
	function menu021001()	
    { self.location.href = '/index.php?control=html&mg=sub02&p_id=021001'; }
	function menu021101()	
    { self.location.href = '/index.php?control=html&mg=sub02&p_id=021101'; }
	function menu021201()	
    { self.location.href = '/index.php?control=html&mg=sub02&p_id=021201'; }
	function menu021301()	
    { self.location.href = '/index.php?control=bbs&md=list&bo_table=mment_01&mg=sub02&p_id=021301'; }
	//{ self.location.href = '/index.php?control=html&mg=sub02&p_id=021301'; }


 
 	function menu030001()	
    { self.location.href = '/index.php?control=html&mg=sub03&p_id=030001'; }
	
	function menu030101()	
    { self.location.href = '/index.php?control=html&mg=sub03&p_id=030101'; }
		function menu030102()	
	    { self.location.href = '/index.php?control=html&mg=sub03&p_id=030102'; }
	function menu030201()	
    { self.location.href = '/index.php?control=html&mg=sub03&p_id=030201'; }
		function menu030202()	
    	{ self.location.href = '/index.php?control=html&mg=sub03&p_id=030202'; }
		function menu030203()	
    	{ self.location.href = '/index.php?control=html&mg=sub03&p_id=030203'; }
	function menu030301()	
    { self.location.href = '/index.php?control=html&mg=sub03&p_id=030301'; }
		function menu030302()	
		{ self.location.href = '/index.php?control=html&mg=sub03&p_id=030302'; }
	function menu030401()	
    { self.location.href = '/index.php?control=html&mg=sub03&p_id=030401'; }
		function menu030402()	
		{ self.location.href = '/index.php?control=html&mg=sub03&p_id=030402'; }
	function menu030501()	
    { self.location.href = '/index.php?control=html&mg=sub03&p_id=030501'; }
		function menu030502()	
		{ self.location.href = '/index.php?control=html&mg=sub03&p_id=030502'; }
		function menu030503()	
		{ self.location.href = '/index.php?control=html&mg=sub03&p_id=030503'; }
		function menu030504()	
		{ self.location.href = '/index.php?control=html&mg=sub03&p_id=030504'; }
	function menu030601()	
    { self.location.href = '/index.php?control=html&mg=sub03&p_id=030601'; }
	function menu030701()	
    { self.location.href = '/index.php?control=html&mg=sub03&p_id=030701'; }
	function menu030801()	
    { self.location.href = '/index.php?control=bbs&md=list&bo_table=mment_02&mg=sub03&p_id=030801'; }
	//{ self.location.href = '/index.php?control=html&mg=sub03&p_id=030801'; }
	
	function menu030901()	
    { self.location.href = '/index.php?control=html&mg=sub03&p_id=030901'; }
		 
		 


	function menu040001()	
    { self.location.href = '/index.php?control=html&mg=sub04&p_id=040001'; }
	
	function menu040101()	
    { self.location.href = '/index.php?control=html&mg=sub04&p_id=040101'; }
	function menu040201()	
    { self.location.href = '/index.php?control=html&mg=sub04&p_id=040201'; }
	function menu040301()	
    { self.location.href = '/index.php?control=html&mg=sub04&p_id=040301'; }
	function menu040401()	
    { self.location.href = '/index.php?control=html&mg=sub04&p_id=040401'; }
	function menu040501()	
    { self.location.href = '/index.php?control=html&mg=sub04&p_id=040501'; }
	function menu040601()	
    { self.location.href = '/index.php?control=html&mg=sub04&p_id=040601'; }
	function menu040701()	
    { self.location.href = '/index.php?control=html&mg=sub04&p_id=040701'; }
	function menu040801()	
    { self.location.href = '/index.php?control=html&mg=sub04&p_id=040801'; }
		function menu040802()	
 	    { self.location.href = '/index.php?control=html&mg=sub04&p_id=040802'; }
		function menu040803()	
 	    { self.location.href = '/index.php?control=html&mg=sub04&p_id=040803'; }	
	function menu040901()	
    { self.location.href = '/index.php?control=html&mg=sub04&p_id=040901'; }
		function menu040902()	
    	{ self.location.href = '/index.php?control=html&mg=sub04&p_id=040902'; }	
	function menu041001()	
    { self.location.href = '/index.php?control=html&mg=sub04&p_id=041001'; }
	function menu041101()	
    { self.location.href = '/index.php?control=html&mg=sub04&p_id=041101'; }
	function menu041201()	
    { self.location.href = '/index.php?control=bbs&md=list&bo_table=mment_03&mg=sub04&p_id=041201'; }
	//{ self.location.href = '/index.php?control=html&mg=sub04&p_id=041201'; }





	function menu050001()	
    { self.location.href = '/index.php?control=html&mg=sub05&p_id=050001'; }
	
	function menu050101()	
    { self.location.href = '/index.php?control=html&mg=sub05&p_id=050101'; }
	function menu050201()	
    { self.location.href = '/index.php?control=html&mg=sub05&p_id=050201'; }
	function menu050301()	
    { self.location.href = '/index.php?control=html&mg=sub05&p_id=050301'; }
	function menu050401()	
    { self.location.href = '/index.php?control=html&mg=sub05&p_id=050401'; }
	function menu050501()	
    { self.location.href = '/index.php?control=html&mg=sub05&p_id=050501'; }
	function menu050601()	
    { self.location.href = '/index.php?control=html&mg=sub05&p_id=050601'; }
	function menu050701()	
    { self.location.href = '/index.php?control=html&mg=sub05&p_id=050701'; }
	function menu050801()	
    { self.location.href = '/index.php?control=html&mg=sub05&p_id=050801'; }
	function menu050901()	
    { self.location.href = '/index.php?control=html&mg=sub05&p_id=050901'; }
	function menu051001()	
    { self.location.href = '/index.php?control=html&mg=sub05&p_id=051001'; }
	function menu051101()	
    { self.location.href = '/index.php?control=html&mg=sub05&p_id=051101'; }
		function menu051102()	
    	{ self.location.href = '/index.php?control=html&mg=sub05&p_id=051102'; }
	function menu051201()	
    { self.location.href = '/index.php?control=html&mg=sub05&p_id=051201'; }
	function menu051301()	
    { self.location.href = '/index.php?control=html&mg=sub05&p_id=051301'; }
	function menu051401()	
    { self.location.href = '/index.php?control=html&mg=sub05&p_id=051401'; }
	function menu051501()	
    { self.location.href = '/index.php?control=html&mg=sub05&p_id=051501'; }
	
	

	 function menu060001()	
    { self.location.href = '/index.php?control=html&mg=sub06&p_id=060001'; }
	
	
	function menu060101()	
    { self.location.href = '/index.php?control=html&mg=sub06&p_id=060101'; }	
	function menu060201()	
    { self.location.href = '/index.php?control=html&mg=sub06&p_id=060201'; }
	function menu060301()	
    { self.location.href = '/index.php?control=html&mg=sub06&p_id=060301'; }
	function menu060401()	
    { self.location.href = '/index.php?control=html&mg=sub06&p_id=060401'; }
	function menu060501()	
    { self.location.href = '/index.php?control=html&mg=sub06&p_id=060501'; }
	function menu060601()	
    { self.location.href = '/index.php?control=html&mg=sub06&p_id=060601'; }
	function menu060701()	
    { self.location.href = '/index.php?control=html&mg=sub06&p_id=060701'; }
	function menu060801()	
    { self.location.href = '/index.php?control=html&mg=sub06&p_id=060801'; }
	function menu060901()	
    { self.location.href = '/index.php?control=html&mg=sub06&p_id=060901'; }
	function menu061001()	
    { self.location.href = '/index.php?control=html&mg=sub06&p_id=061001'; }
	function menu061101()	
    { self.location.href = '/index.php?control=html&mg=sub06&p_id=061101'; }
	function menu061201()	
	{ self.location.href = '/index.php?control=html&mg=sub06&p_id=061201'; }
	//{ self.location.href = '/index.php?control=bbs&md=list&bo_table=mment_04&mg=sub06&p_id=061201'; }
	function menu061301()	
    { self.location.href = '/index.php?control=bbs&md=list&bo_table=mment_04&mg=sub06&p_id=061301'; }
	//{ self.location.href = '/index.php?control=html&mg=sub06&p_id=061301'; }
	
	
	
	
	function menu070001()	
    { self.location.href = '/index.php?control=html&mg=sub07&p_id=070001'; }
	
	function menu070101()	
    { self.location.href = '/index.php?control=html&mg=sub07&p_id=070101'; }
		function menu070102()	
    	{ self.location.href = '/index.php?control=html&mg=sub07&p_id=070102'; }	
	function menu070201()	
    { self.location.href = '/index.php?control=html&mg=sub07&p_id=070201'; }
	function menu070301()	
    { self.location.href = '/index.php?control=html&mg=sub07&p_id=070301'; }
		function menu070302()	
  	    { self.location.href = '/index.php?control=html&mg=sub07&p_id=070302'; }
	function menu070401()	
    { self.location.href = '/index.php?control=html&mg=sub07&p_id=070401'; }
	function menu070501()	
    { self.location.href = '/index.php?control=html&mg=sub07&p_id=070501'; }	
	function menu070601()	
    { self.location.href = '/index.php?control=html&mg=sub07&p_id=070601'; }	
	function menu070701()	
    { self.location.href = '/index.php?control=html&mg=sub07&p_id=070701'; }
	function menu070801()	
    { self.location.href = '/index.php?control=html&mg=sub07&p_id=070801'; }
	function menu070901()	
    { self.location.href = '/index.php?control=html&mg=sub07&p_id=070901'; }
	function menu071001()	
    { self.location.href = '/index.php?control=html&mg=sub07&p_id=071001'; }
	function menu071101()	
    { self.location.href = '/index.php?control=html&mg=sub07&p_id=071101'; }
	
	
	
	
	
	
	function menu080101()	
    { self.location.href = '/index.php?control=bbs&md=list&bo_table=online_qna&mg=sub08&p_id=080101'; }
	function menu080201()	
    { self.location.href = '/index.php?control=bbs&md=calendar&bo_table=op_res&mg=sub08&p_id=080201'; }
	function menu080301()	
	{ self.location.href = '/index.php?control=bbs&md=list&bo_table=promotions&mg=sub08&p_id=080301'; }
	//{ self.location.href = '/index.php?control=bbs&md=list&bo_table=real_story&mg=sub08&p_id=080301'; }
	function menu080401()	
    { self.location.href = '/index.php?control=bbs&md=list&bo_table=befor_after&mg=sub08&p_id=080401'; }
	function menu080501()	
    { self.location.href = '/index.php?control=bbs&md=list&bo_table=virtual_plastic&mg=sub08&p_id=080501'; }
	function menu080601()	
    { self.location.href = '/index.php?control=bbs&md=list&bo_table=review&mg=sub08&p_id=080601'; }
	function menu080701()	
    { self.location.href = '/index.php?control=bbs&md=list&bo_table=live_tv&mg=sub08&p_id=080701'; }
	function menu080801()	
    { self.location.href = '/index.php?control=bbs&md=list&bo_table=notice_01&mg=sub08&p_id=080801'; }
	function menu080901()	
	{ self.location.href = '/index.php?control=bbs&md=list&bo_table=real_story&mg=sub08&p_id=080901'; }
	//{ self.location.href = '/index.php?control=bbs&md=list&bo_table=promotions&mg=sub08&p_id=080901'; }
	function menu081001()	
    { self.location.href = '/index.php?control=bbs&md=list&bo_table=faq&mg=sub08&p_id=081001'; }
	
 
	
	
	
	
	function menu090101()	
    { self.location.href = '/index.php?control=member&md=login&mg=sub09&p_id=090101'; }
	function menu090201()	
    { self.location.href = '/index.php?control=member&md=join&mg=sub09&p_id=090201'; }
	function menu090301()	
    { self.location.href = '/index.php?control=member&md=modify&mg=sub09&p_id=090401'; }
    //{ self.location.href = '/index.php?control=member&md=modify&mg=sub09&p_id=090301'; }
	function menu090401()	
	{ self.location.href = '/module/member/logout.php'; }
 	function menu090501()	
	{ self.location.href = '/index.php?control=member&md=out&mg=sub09&p_id=090501'; } 
/*
function top02()	
{ self.location.href = '/index.php?control=member&md=login&mg=sub10&p_id=100101'; } 
function top03()	
{ self.location.href = '/index.php?control=member&md=join&mg=sub10&p_id=100201'; }
function top04()	
{ self.location.href = '/module/member/logout.php'; }
function top05()	
{ self.location.href = '/index.php?control=member&md=modify&mg=sub11&p_id=110101'; }
function top06()	
{ self.location.href = '/index.php?control=html&mg=sub09&p_id=090101'; }
*/



/*
 	function menu090501()	
    //{ self.location.href = '/index.php?control=html&mg=sub09&p_id=090501'; }
	{ self.location.href = '/index.php?control=member&md=out&mg=sub09&p_id=090501'; } 
 */
 
 
	
	
 
    
    

  
	/*-------------------------------------------------------------------------------------------------------------
	DDDDD    EEEEEE  SSSSSS   IIIIII   GGGGG   NN   NN
	DD   D   EE      SS         II    GG       N N  NN
	DD    D  EEEEEE   SSSSS     II    GG  GGG  NN N NN
	DD   D   EE           SS    II    GG   GG  NN  N N
	DDDDD    EEEEEE  SSSSSS   IIIIII   GGGGG   NN   NN
-------------------------------------------------------------------------------------------------------------*/

/// design.js 로 이동~~~~~~~~~
/*
<!--
// flashWrite(파일경로, 가로, 세로, 아이디, 배경색, 변수, 윈도우모드)
function flashWrite(url,w,h,id,bg,vars,win,zin){

 // 플래시 코드 정의
 var flashStr=
 "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' style='z-index:"+zin+";' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
 "<param name='allowScriptAccess' value='always' />"+
 "<param name='movie' value='"+url+"' />"+
 "<param name='FlashVars' value='"+vars+"' />"+
 "<param name='wmode' value='"+win+"' />"+
 "<param name='menu' value='false' />"+
 "<param name='quality' value='high' />"+
 "<param name='bgcolor' value='"+bg+"' />"+
 "<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' style='z-index:"+zin+";' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
 "</object>";

 // 플래시 코드 출력
 document.write(flashStr);

}
function flashWrite2(url,w,h,id,bg,vars,win){

 // 플래시 코드 정의
 var flashStr=
 "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
 "<param name='allowScriptAccess' value='always' />"+
 "<param name='movie' value='"+url+"' />"+
 "<param name='FlashVars' value='"+vars+"' />"+
 "<param name='menu' value='false' />"+
 "<param name='bgcolor' value='"+bg+"' />"+
 "<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
 "</object>";

 // 플래시 코드 출력
 document.write(flashStr);

}
//동영상
function aviPlay(src,w,h) {
document.write('<embed src="'+src+'" width='+w+' height='+h+'>')
}





function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
*/







