//############### »ó´Ü ÇÃ·¡½¬ ¸ÞÀÎ ¸Þ´º
// È¸»ç¼Ò°³
function flash_top_menu1(flag){
	if (flag == 0) {document.location.href = '/service/company/company_introduce.php?flash=company01';}
	if (flag == 1) {document.location.href = '/service/company/company_history.php?flash=company02';}
	if (flag == 2) {document.location.href = '/service/company/company_business.php?flash=company03';}
	if (flag == 3) {document.location.href = '/service/company/company_post.php?flash=company04';}
	if (flag == 4) {document.location.href = '/service/company/company_partner.php?flash=company05';}
	if (flag == 5) {document.location.href = '/service/company/company_incruit.php?flash=company06';}
	if (flag == 6) {document.location.href = '/service/company/company_map.php?flash=company07'}
}
// ceo °æ¿µ³ëÇÏ¿ì
function flash_top_menu2(flag){
	if (flag == 0) {document.location.href = '/service/ceo/ceo_info.php?flash=ceo01';}
	if (flag == 1) {document.location.href = '/service/ceo/ceo_notice_list.php?flash=ceo02';}
	if (flag == 2) {document.location.href = '/service/ceo/ceo_qna_list.php?flash=ceo03';}
}
// Æ÷ÅäÆú¸®¿À
function flash_top_menu3(flag){
	if (flag == 0) {document.location.href = '/service/portfolio/portfolio_event.php?flash=portfolio01';}
	if (flag == 1) {document.location.href = '/service/portfolio/portfolio_marketing.php?flash=portfolio02';}
}
// ºÎ¼­º° °Ô½ÃÆÇ
function flash_top_menu4(flag){
	if (flag == 0) {document.location.href = '/service/post/post_notice_list.php?flash=post01';}
	if (flag == 1) {document.location.href = '/service/post/post_webplan_list.php?flash=post02';}
	if (flag == 2) {document.location.href = '/service/post/post_admin_list.php?flash=post03';}
	if (flag == 3) {document.location.href = '/service/post/post_trade_list.php?flash=post04';}
	if (flag == 4) {document.location.href = '/service/post/post_webdesign_list.php?flash=post05';}
}
// Á¦ÈÞ¹®ÀÇ
function flash_top_menu5(flag){
	if (flag == 0) {document.location.href = '/service/contact/contact_info.php?flash=contact01';}
	if (flag == 1) {document.location.href = '/service/contact/contact_process.php?flash=contact02';}
}
// Ä¿¹Â´ÏÆ¼
function flash_top_menu6(flag){
	if (flag == 0) {document.location.href = '/service/community/community_notice_list.php?flash=community01';}
	if (flag == 1) {document.location.href = '/service/community/community_westory_list.php?flash=community02';}
	if (flag == 2) {document.location.href = '/service/community/community_exhibition_list.php?flash=community03';}
}


//############### ¿ÞÂÊ ÇÃ·¡½¬ ¸Þ´º
// È¸»ç¼Ò°³
function flash_left_menu1(flag){
	if (flag == 1) {document.location.href = '/service/company/company_introduce.php?flash=company01';}
	if (flag == 2) {document.location.href = '/service/company/company_history.php?flash=company02';}
	if (flag == 3) {document.location.href = '/service/company/company_business.php?flash=company03';}
	if (flag == 4) {document.location.href = '/service/company/company_post.php?flash=company04';}
	if (flag == 5) {document.location.href = '/service/company/company_partner.php?flash=company05';}
	if (flag == 6) {document.location.href = '/service/company/company_incruit.php?flash=company06';}
	if (flag == 7) {document.location.href = '/service/company/company_map.php?flash=company07'}
}
//  ceo °æ¿µ³ëÇÏ¿ì
function flash_left_menu2(flag){
	if (flag == 1) {document.location.href = '/service/ceo/ceo_info.php?flash=ceo01';}
	if (flag == 2) {document.location.href = '/service/ceo/ceo_notice_list.php?flash=ceo02';}
	if (flag == 3) {document.location.href = '/service/ceo/ceo_qna_list.php?flash=ceo03';}
}
// Æ÷ÅäÆú¸®¿À
function flash_left_menu3(flag){
	if (flag == 1) {document.location.href = '/service/portfolio/portfolio_event.php?flash=portfolio01';}
	if (flag == 2) {document.location.href = '/service/portfolio/portfolio_marketing.php?flash=portfolio02';}
}
// ºÎ¼­º° °Ô½ÃÆÇ
function flash_left_menu4(flag){
	if (flag == 1) {document.location.href = '/service/post/post_notice_list.php?flash=post01';}
	if (flag == 2) {document.location.href = '/service/post/post_webplan_list.php?flash=post02';}
	if (flag == 3) {document.location.href = '/service/post/post_admin_list.php?flash=post03';}
	if (flag == 4) {document.location.href = '/service/post/post_trade_list.php?flash=post04';}
	if (flag == 5) {document.location.href = '/service/post/post_webdesign_list.php?flash=post05';}
}
// Á¦ÈÞ¹®ÀÇ
function flash_left_menu5(flag){
	if (flag == 1) {document.location.href = '/service/contact/contact_info.php?flash=contact01';}
	if (flag == 2) {document.location.href = '/service/contact/contact_process.php?flash=contact02';}
}
// Ä¿¹Â´ÏÆ¼
function flash_left_menu6(flag){
	if (flag == 1) {document.location.href = '/service/community/community_notice_list.php?flash=community01';}
	if (flag == 2) {document.location.href = '/service/community/community_westory_list.php?flash=community02';}
	if (flag == 3) {document.location.href = '/service/community/community_exhibition_list.php?flash=community03';}
}


// ¸ÞÀÎ ºñÁê¾ó
function visual_object(width,height,dir,mainPos,subPos,subPos2){
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"'><param name='movie' value='"+dir+"?oneD="+mainPos+"&twoD="+subPos+"&threeD="+subPos2+"'><param name='quality' value='high'><param name='wmode' value='transparent'><embed src='"+dir+"?pageNum="+mainPos+"&subNum="+subPos+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed></object>");	
//	document.write("<img src='"+dir+"' width='"+width+"' height='"+height+"'  border='0'>"); //ÀÓ½Ã
}

// ¼­ºê¸Þ´ºÆ®¸®
function sub_menu_object(width,height,dir,mainPos,subPos){
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"'><param name='movie' value='"+dir+"?pageNum="+mainPos+"&subNum="+subPos+"'><param name='quality' value='high'><param name='wmode' value='transparent'><embed src='"+dir+"?pageNum="+mainPos+"&subNum="+subPos+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed></object>");	
//	document.write("<img src='"+dir+"' width='"+width+"' height='"+height+"'  border='0'>"); //ÀÓ½Ã
}

// °øÅë ÇÃ·¡½¬
function common_object(width,height,dir){
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"'><param name='movie' value='"+dir+"'><param name='quality' value='high'><param name='wmode' value='transparent'><embed src='"+dir+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed></object>");	
//	document.write("<img src='"+dir+"' width='"+width+"' height='"+height+"'  border='0'>"); //ÀÓ½Ã
}

function mOver()
{
	this.src = this.src.replace(".gif", "_on.gif");
}
function mOut()
{
	this.src = this.src.replace("_on.gif", ".gif");
}

function initTabMenu(menuContainerID, menuTabName) {
	var tabMenu = document.getElementsByName(menuTabName);
	var i = 0;

	for(i=0; i<tabMenu.length; i++) {
		thismenu = tabMenu.item(i);
		thismenu.menuContainer = document.getElementById(menuContainerID);
		thismenu.targetEl = document.getElementById(tabMenu.item(i).href.split("#")[1]);
		thismenu.targetEl.style.display = "none";
		if (thismenu.getElementsByTagName("img").item(0)) {
			thismenu.getElementsByTagName("img").item(0).onmouseover = mOver;
			thismenu.getElementsByTagName("img").item(0).onmouseout = mOut;
		}
		thismenu.onclick = tabMenuClick;
	}

	initmenu = tabMenu.item(0);
	initmenu.targetEl.style.display = "block";
	if (initmenu.getElementsByTagName("img").item(0)) {
		initmenu.getElementsByTagName("img").item(0).onmouseover();
		initmenu.getElementsByTagName("img").item(0).onmouseover = null;
		initmenu.getElementsByTagName("img").item(0).onmouseout = null;
	}
	initmenu.menuContainer.current = initmenu;
}
function tabMenuClick() {
	currentmenu = this.menuContainer.current;
	if (currentmenu != this) {
		currentmenu.targetEl.style.display = "none";
		if (currentmenu.getElementsByTagName("img").item(0)) {
			currentmenu.getElementsByTagName("img").item(0).onmouseover = mOver;
			currentmenu.getElementsByTagName("img").item(0).onmouseout = mOut;
			currentmenu.getElementsByTagName("img").item(0).onmouseout();
		}
	
		this.targetEl.style.display = "block";
		if (this.getElementsByTagName("img").item(0)) {
			this.getElementsByTagName("img").item(0).onmouseover = null;
			this.getElementsByTagName("img").item(0).onmouseout = null;
		}
		this.menuContainer.current = this;
	}
	return false;
}

// TAB TYPE 2
function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.getElementById(n); return x;
}


function MM_showHideLayers() { //v3.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; }
}

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_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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 goMenu(Val,Sel)
{
	Sel.value = '';
	if (Val) location=Val;
}
