/*-------------------------------------------------------------*/
//flash activeX 적용시 라인 제거2008-06-17
//--------------------------------------------------------------
//NF_fm(src,id,w,h,t,m)		→ Flash Movie. src:파일 경로, id:플래시 무비 아이디, w:너비, h:높이, t:배경 투명여부(Y:투명, N:불투명), m:메뉴 표시여부(Y:표시, N:미표시)
/*-------------------------------------------------------------*/
var root = "/";
document.title = "그루젠 ::: 첫번째로 떠오르는 신뢰받는 시스템 인프라 통합 공급회사";	

function NF_fm(src, id, w, h, t, m) {	
	var s = '';
	var s_id = '';
	var s_t = '';
	(id == "") ? s_id="swf" : s_id = id;
	(t == "Y") ? s_t = '<param name="wmode" value="transparent">' : s_t='';
	(m == "Y") ? m = 'true' : m = 'false';

	s += '<object type="application/x-shockwave-flash" ';
	s += 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';
	s += 'codebase="http://fpdownload.macromedia.com/';
	s += 'pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"';
	s += 'id="'+s_id+'" width="'+w+'" height="'+h+'">';

	s += '<param name="movie" value="'+root+src+'">';
	s += '<param name="quality" value="high">';	
	s += s_t;
	s += '<param name="menu" value="'+m+'">';
	s += '<param name="swliveconnect" value="true">';

	s += '<embed src="'+root+src+'" quality="high" menu="'+m+'" ';
	s += 'width="'+w+'" height="'+h+'" swliveconnect="true" ';
	s += 'id="'+s_id+'" name="'+s_id+'" type="application/x-shockwave-flash" ';
	s += 'pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';

	s += '<\/object>';
	document.write(s);
}

function NF_fm2(src, id, w, h, t, m) {	
	var s = '';
	var s_id = '';
	var s_t = '';
	(id == "") ? s_id="swf" : s_id = id;
	(t == "Y") ? s_t = '<param name="wmode" value="transparent">' : s_t='';
	(m == "Y") ? m = 'true' : m = 'false';

	s += '<object type="application/x-shockwave-flash" ';
	s += 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';
	s += 'codebase="http://fpdownload.macromedia.com/';
	s += 'pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"';
	s += 'id="'+s_id+'" width="'+w+'" height="'+h+'">';

	s += '<param name="movie" value="'+root+src+'">';
	s += '<param name="quality" value="high">';	
	s += s_t;
	s += '<param name="menu" value="'+m+'">';
	s += '<param name="swliveconnect" value="true">';
	s += '<param name="loop" value="false">';


	s += '<embed src="'+root+src+'" quality="high" menu="'+m+'" ';
	s += 'width="'+w+'" height="'+h+'" swliveconnect="true" loop="false" ';
	s += 'id="'+s_id+'" name="'+s_id+'" type="application/x-shockwave-flash" ';
	s += 'pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';

	s += '<\/object>';
	document.write(s);
}

//
// 네비게이션 링크함수
//

function mainMenuLink1() { location.href = root + "company/ceomessage.asp?mm=1&sm=1"; } 
function mainMenuLink1_1() { location.href = root + "company/ceomessage.asp?mm=1&sm=1"; }
function mainMenuLink1_2() { location.href = root + "company/overview.asp?mm=1&sm=2"; }
function mainMenuLink1_3() { location.href = root + "company/history.asp?mm=1&sm=3"; }
function mainMenuLink1_4() { location.href = root + "company/organization.asp?mm=1&sm=4"; }
function mainMenuLink1_5() { location.href = root + "company/partnership.asp?mm=1&sm=5"; }
function mainMenuLink1_6() { location.href = root + "company/contact.asp?mm=1&sm=6"; }

function mainMenuLink2() { location.href = root + "business/portfolio.asp?mm=2&sm=1"; }
function mainMenuLink2_1() { location.href = root + "business/portfolio.asp?mm=2&sm=1"; }
function mainMenuLink2_2() { location.href = root + "business/business0101.asp?mm=2&sm=2"; }
function mainMenuLink2_3() { location.href = root + "business/business0201.asp?mm=2&sm=3"; }
function mainMenuLink2_4() { location.href = root + "business/business0301.asp?mm=2&sm=4"; }

function mainMenuLink3() { location.href = root + "recruit/recruit.asp?mm=3&sm=1"; }
function mainMenuLink3_1() { location.href = root + "recruit/recruit.asp?mm=3&sm=1"; }

function mainMenuLink4() { location.href = root + "customer/customer.asp?mm=4&sm=1"; }
function mainMenuLink4_1() { location.href = root + "customer/customer.asp?mm=4&sm=1"; }

//
// Logo
//

function goHome(){
	//alert(documnet.location);
	//location.href = root + "/";
	location.href = root;
}

//
// 헤더영역 : 로고 및 탑 네비게이션
//

function writeHeader(chkLogon) {
	var s = '';

	if (chkLogon){
		s = s + '	 <table width="855" border="0" cellspacing="0" cellpadding="0">';
		s = s + '      <tr>';
		s = s + '        <td width="694"><img src="/images/intro/top_bg.jpg" width="694" height="30"></td>';
		s = s + '        <td width="40"><a href="#" onClick="nfLogout()"><img src="/images/common/btn_logout.gif" width="40" height="30"></a></td>';
		s = s + '        <td width="68"><a href="/intro/contact.asp?mm_selected=1&sm_selected=6"><img src="/images/main/contact__btu.jpg" width="68" height="30"></a></td>';
		s = s + '        <td width="53"><a href="/sitemap.asp"><img src="/images/main/sitemap_btu.jpg" width="53" height="30"></a></td>';
		s = s + '      </tr>';
		s = s + '    </table>';	
	} else {
		s = s + '	 <table width="855" border="0" cellspacing="0" cellpadding="0">';
		s = s + '      <tr>';
		s = s + '        <td width="694"><img src="/images/intro/top_bg.jpg" width="694" height="30"></td>';
		s = s + '        <td width="40"><a href="#" onClick="window.open(\'/member/login.asp\',\'\',\'width=380,height=300,toolbar=no,location=no,status=no,resizable=no\')"><img src="/images/main/login_btu.jpg" width="40" height="30"></a></td>';
		s = s + '        <td width="68"><a href="/intro/contact.asp?mm_selected=1&sm_selected=6"><img src="/images/main/contact__btu.jpg" width="68" height="30"></a></td>';
		s = s + '        <td width="53"><a href="/sitemap.asp"><img src="/images/main/sitemap_btu.jpg" width="53" height="30"></a></td>';
		s = s + '      </tr>';
		s = s + '    </table>';
	}

	document.write(s);
}

//로그아웃
function nfLogout(){
	parent.classFrame.location.href = "/common/member_common_exec.asp?mode=logout&to_url=/main.asp";
}


