
function ShowFlash(url, width, height, vars){
                document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://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="FlashVars" value="' + vars + '">');
        document.write('<param name="wmode" value="transparent">');
        document.write('<embed src="' + url + '" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" FlashVars="' + vars + '"></embed>');
        document.write('</object>');
}


//  
function gf_goUrl( pUrl ) {
 switch(pUrl) {
		
  
  //MENU-1.
  case "1"  : location.href="/assocition/greeting.php"; break;
  
  case "11"  : location.href="/assocition/greeting.php"; break;
  case "12"  : location.href="/assocition/history.php"; break;
  case "13"  : location.href="/assocition/articles.php"; break;
  case "14"  : location.href="/assocition/association.php"; break;
  case "15"  : location.href="/assocition/map.php"; break;
  case "16"  : location.href="/assocition/people.php"; break;

  
  //MENU-2.
  case "2"  : location.href="/guide/news.php"; break;
  
  case "21"  : location.href="/guide/news.php"; break;
  case "22"  : location.href="/guide/schedule.php"; break;
  case "23"  : location.href="/guide/notice.php"; break;
 
 
 //MENU-3.
  case "3"  : location.href="/company/company.php"; break;

  case "31" : location.href="/company/company.php"; break;
  case "32" : location.href="/company/recommend.php"; break;
  
  
  //MENU-4.
  case "4"  : location.href="/gallary/gallary.php"; break;
  
  case "41"  : location.href="/gallary/gallary.php"; break;
  case "42"  : location.href="/gallary/gallary2011.php"; break;
  
  
  //MENU-5.
  case "5"  : location.href="/community/webzin.php"; break;
  
  case "51"  : location.href="/community/webzin.php"; break;
  case "52"  : location.href="/community/board.php"; break;
  case "53"  : location.href="/community/board.php"; break;

 
 //MENU-6.
  case "6"  : location.href="/organization/organization.php"; break;
  
  case "61"  : location.href="/organization/organization.php"; break;
  case "62"  : location.href="/organization/list.php"; break;
  
  
  //MENU-7.
  case "7"  : location.href="/membership/membership.php"; break;
  
  case "71"  : location.href="/membership/membership.php"; break;
  case "72"  : location.href="/membership/board.php"; break;
  case "73"  : location.href="/membership/login.php"; break;
  case "74"  : location.href="/membership/join.php"; break;
  
  
  //MENU-8.
  case "8"  : location.href="/index2.php"; break;
  
    
  //MENU-9.
  case "9"  : location.href="/english/index.php"; break;
  
  
  //MENU-10.
  case "10"  : location.href="/admin/login.php"; break;
  
  case "101"  : location.href="/admin/join.php"; break;
  
  
  //MENU-11.
  case "111"  : location.href="/sitemap/sitemap.php"; break;
  

 }
}


 //link 점선없애기
function bluring(){ 
        if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 
        document.body.focus(); 
} 
document.onfocusin=bluring; 


 //tab 룰오버
function tab(n) {
	for(var i = 1; i <= 2; i++) { 
		latest_obj = document.getElementById('tab'+i);
		img = document.getElementById('tab_btn'+i);
		if ( n == i ) {
			latest_obj.style.display = "block";
			img.src = "//images/tab"+i+"_on.gif";
		} else {
			latest_obj.style.display = "none";
			img.src = "//images/tab"+i+"_off.gif";
		}
	}
}

 //플레쉬 활성화
function flash(c,d,e) {
var flash_tag = "";
flash_tag = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
flash_tag +='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ';
flash_tag +='WIDTH="'+c+'" HEIGHT="'+d+'" >';
flash_tag +='<param name="movie" value="'+e+'">';
flash_tag +='<param name="quality" value="high">';
flash_tag +='<embed src="'+e+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
flash_tag +='type="application/x-shockwave-flash" WIDTH="'+c+'" HEIGHT="'+d+'"></embed></object>'
flash_tag +='<param name="wmode" value="transparent">';
document.write(flash_tag);
}

//iframe 자동조절
function resizeHeight(id) { 
var the_height = document.getElementById(id).contentWindow.document.body.scrollHeight; 
document.getElementById(id).height = the_height + 30; 
} 




