/*
 * @(#)menu.js
 *
 * ¸Þ´º
 *
 * Copyright (C) 2005 D.TRIBE, Inc. All rights reserved.
 *
 * THIS SOFTWARE IS THE PROPRIETARY INFORMATION OF D.TRIBE, INC.
 * USE IS SUBJECT TO LICENSE TERMS.
 *
 * @author	±è°æ¹Î
 * @version	$Revision: 1.1 $, $Date: 2007/07/11 08:34:38 $
 */

// set base dir from request
function _baseDir() {
	var b = document.location.href;
	if(b.indexOf("/eng") >= 0) return "/eng";
	else return "/kor";
}


/*
function objectTagWrite(strObjectTag) {
   document.write(strObjectTag);
   strObjectTag ="";
}  
*/

// Company/Cyber
function go_comp_cyber() {
	pop1( _baseDir() + '/company/cyber_pop.html','his','600','440')
}

// Company/Cyber/Prnews
function go_comp_cyber_img1() {
	document.location.href="/servlet/download?filePath=/images/file/wallpaper_01.jpg&fileName=wallpaper_01.jpg";
}
// Company/Cyber/Prnews
function go_comp_cyber_img2() {
	document.location.href="/servlet/download?filePath=/images/file/wallpaper_02.jpg&fileName=wallpaper_02.jpg";
}
// Company/Cyber/Prnews
function go_comp_cyber_screen1() {
	document.location.href="/servlet/download?filePath=/images/file/NamsungScreenSaver01.zip&fileName=NamsungScreenSaver01.zip";
}
// Company/Cyber/Prnews
function go_comp_cyber_screen2() {
	document.location.href="/servlet/download?filePath=/images/file/NamsungScreenSaver02.zip&fileName=NamsungScreenSaver02.zip";
}
// Company/Cyber/Prnews
function go_comp_cyber_movie_kor() {
	document.location.href="/images/file/namsung_kor.wmv";
}
// Company/Cyber/Prnews
function go_comp_cyber_movie_eng() {
	document.location.href="/images/file/namsung_eng.wmv";
}
// Business/Portmap
function go_bsns_portmap() {
	document.location.href= _baseDir() + "/business/";
}

// eºê·Î¼Å
function go_ebrochure() {
	win1 = window.open(  _baseDir() + '/ebrochure.html','brochure','width=700,height=525,left=0,top=0,resizable=no,scrollbars=no');
	win1.focus();
}

// Business/Portmap popup
function portmap(pageid) {
	win1 = window.open('/kor/business/portmap_'+pageid+'.html',"portmap",'width=652,height=474,left=0,top=0,resizable=no,scrollbars=no');
	win1.focus();
}

// Business/Spec
function go_bsns_spec() {
	document.location.href= _baseDir() + "/business/equipment.ns.tsp";
}

// Business/Fleet
function go_bsns_fleet() {
	document.location.href= _baseDir() + "/business/fleet.ns.tsp";
}

// Eservice/Exchange
function go_exchange() {
	document.location.href= _baseDir() + "/eservice/exchange.ns.tsp";
}

// Community/Q&A
function go_comm_qna() {
	document.location.href= _baseDir() + "/communication/bbsList.do?boardID=comm_qna";
}

// Community/Thank U
function go_comm_thanku() {
	document.location.href= _baseDir() + "/communication/bbsList.do?boardID=comm_thanku";
}

// Community/½Ç¿ë ÇØ¿î ¿ë¾î
function go_comm_terms() {
	pop1('termsList.do','dic',550,523);
}

//------------------- footer

// ÆÄÆ®³Ê»ç
function go_foot_partner() {
	document.location.href= _baseDir() + "/company/company_express.ns.tsp";
}

// °³ÀÎÁ¤º¸
function go_foot_personal() {
	document.location.href= _baseDir() + "/utility/personal.ns.tsp";
}

// contact us
function go_foot_contactus() {

	if(_baseDir() == "/eng")
		document.location.href= _baseDir() + "/company/map.ns.tsp";
	else
		document.location.href= _baseDir() + "/communication/contact.ns.tsp";
}
