/*-------------------------------------------------------------*/
//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 mainMenuLink1() { location.href = root + "company/company.asp?id=greetings&mm=1&sm=1"; } 
function mainMenuLink1_1() { location.href = root + "company/company.asp?id=greetings&mm=1&sm=1"; }
function mainMenuLink1_2() { location.href = root + "company/company.asp?id=history&mm=1&sm=2"; }
function mainMenuLink1_3() { location.href = root + "company/company.asp?id=organization&mm=1&sm=3"; }
function mainMenuLink1_4() { location.href = root + "company/company.asp?id=field&mm=1&sm=4"; }
function mainMenuLink1_5() { location.href = root + "company/company.asp?id=certification&mm=1&sm=5"; }
function mainMenuLink1_6() { location.href = root + "company/company.asp?id=client&mm=1&sm=6"; }
function mainMenuLink1_7() { location.href = root + "company/company.asp?id=pr&mm=1&sm=7"; }
function mainMenuLink1_8() { location.href = root + "company/company.asp?id=rnd&mm=1&sm=8"; }
function mainMenuLink1_9() { location.href = root + "company/company.asp?id=map&mm=1&sm=9"; }

function mainMenuLink2() { location.href = root + "product/product.asp?id=rfid&mm=2&sm=1"; }
function mainMenuLink2_1() { location.href = root + "product/product.asp?id=rfid&mm=2&sm=1"; }
function mainMenuLink2_2() { location.href = root + "product/product.asp?id=infoprint&mm=2&sm=2"; }
function mainMenuLink2_3() { location.href = root + "product/product.asp?id=laser&mm=2&sm=3"; }
function mainMenuLink2_4() { location.href = root + "product/product.asp?id=drawing&mm=2&sm=4"; }
function mainMenuLink2_5() { location.href = root + "product/product.asp?id=gp&mm=2&sm=5"; }
function mainMenuLink2_6() { location.href = root + "product/product.asp?id=supplies&mm=2&sm=6"; }
function mainMenuLink2_7() { location.href = root + "product/product.asp?id=maintenance&mm=2&sm=7"; }
function mainMenuLink2_8() { location.href = root + "product/product.asp?id=software&mm=2&sm=8"; }

function mainMenuLink3() { location.href = root + "service/service.asp?id=notice&mm=3&sm=1"; }
function mainMenuLink3_1() { location.href = root + "service/service.asp?id=notice&mm=3&sm=1"; }
function mainMenuLink3_2() { location.href = root + "service/service.asp?id=event&mm=3&sm=2"; }
function mainMenuLink3_3() { location.href = root + "service/service.asp?id=inquiry&mm=3&sm=3"; }
function mainMenuLink3_4() { location.href = root + "service/service.asp?id=qna&mm=3&sm=4"; }
function mainMenuLink3_5() { location.href = root + "service/service.asp?id=as&mm=3&sm=5"; }

function mainMenuLink4() { location.href = root + "library/library.asp?id=catalog&mm=4&sm=1"; }
function mainMenuLink4_1() { location.href = root + "library/library.asp?id=catalog&mm=4&sm=1"; }
function mainMenuLink4_2() { location.href = root + "library/library.asp?id=manual&mm=4&sm=2"; }
function mainMenuLink4_3() { location.href = root + "library/library.asp?id=driver&mm=4&sm=3"; }
function mainMenuLink4_4() { location.href = root + "library/library.asp?id=program&mm=4&sm=4"; }

//
// 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";
}

