// ------------------ 플래시 호출 gotoPage ------------------//
function gotoPage(d1,d2,d3){
	try
	{
		var url = "";
		var link_value = "link";

		if(d1 > -1) { link_value += "_" + d1; }
		if(d2 > -1) { link_value += "_" + d2; }

		url = eval(link_value)[0];

		if(d3 == 1){ // 로그인 필요메뉴
			jQuery.post("/session_chk.asp", function(data){
				if(data == 0){
					alert('로그인 후 이용하실 수 있습니다.'); // 로그인 레이어 띄울거에요
					layer('/pop/membership/login.asp?returnUrl='+url,366,281);
				}else if(data = 1){
					if(url=="") alert("준비중입니다.");
					else top.location.href = url;
				}
			});
		}else{
			if(url=="") alert("준비중입니다.");
			else top.location.href = url;
		}
	}
	catch (e)
	{
		alert(e.message);
	}
}


// ------------------- 링크 설정 ------------------ //

//메인
function main_banner(target){
	if (target=="0") {
		gotoPage(2,0)
	}
	else if(target=="1") {
		gotoPage(3,3)
	}
	else if(target=="2") {
		gotoPage(3,4)
	}
	else if(target=="3") {
		gotoPage(6,2)
	}
	else if(target=="4") {
		gotoPage(7,0)
	}
}

function main_visual(target){
	if (target=="0") {
		gotoPage(1,0)
	}
	else if(target=="1") {
		gotoPage(3,0)
	}
}

// -- HOME --//
link_0 = new Array("/us/index.jsp") // HOME
link_0_0 = new Array("/us/index.jsp") // HOME

// -- PRODUCT --//
link_1 = new Array("/us/product/d-series/index.jsp") // index
link_1_0 = new Array("/us/product/d-series/index.jsp") // hardware
link_1_1 = new Array("/us/product/e-series/index.jsp") // hardware
link_1_2 = new Array("/us/product/software/network-monitor-i-com.jsp") // hardware
link_1_3 = new Array("/us/product/hardware/network-monitor-n1742lp.jsp") // hardware
link_1_4 = new Array("/us/product/hardware/network-monitor-n1642wp.jsp") // hardware
link_1_5 = new Array("/us/product/software/network-monitor-IP-Pro.jsp") // hardware
link_1_6 = new Array("/us/product/software/network-monitor-Multi-Share.jsp") // hardware
link_1_7 = new Array("/us/product/hardware/network-monitor-n1642wp.jsp") // E Series

// -- TECHNOLOGY --//
link_2 = new Array("/us/technology/index.jsp") // technology
link_2_0 = new Array("/us/technology/index.jsp") // technology
//link_2 = new Array("/us/technology/how-it-works-multi-user-computing.jsp") // How it works
//link_2_0 = new Array("/us/technology/how-it-works-multi-user-computing.jsp") // How it works
link_2_1 = new Array("/us/technology/awards.jsp") // awards
link_2_2 = new Array("/us/technology/network-monitor-test-results.jsp") // Test Results
/* link_2_2 = new Array("/us/technology/awards.jsp") // Awards */

// -- BENEFIT --//
link_3 = new Array("/us/benefit/index.jsp") // Minimum Cost
link_3_0 = new Array("/us/benefit/index.jsp") // Minimum Cost
//link_3 = new Array("/us/benefit/minimum-network-monitor-cost.jsp") // Minimum Cost
//link_3_0 = new Array("/us/benefit/minimum-network-monitor-cost.jsp") // Minimum Cost
link_3_1 = new Array("/us/benefit/easy-network-monitor-management.jsp") // Easy Management
link_3_2 = new Array("/us/benefit/green-computing.jsp") // Green Computing
link_3_3 = new Array("/us/benefit/various-software.jsp") // Various Software
link_3_4 = new Array("/us/benefit/high-reliability.jsp") // High Reliability


// -- EDUCATION --//
link_4 = new Array("/us/education/index.jsp") // Education
link_4_0 = new Array("/us/education/index.jsp") // Education
link_4_1 = new Array("/us/education/solution.jsp") // Solution

// -- USAGE & CASE --//
link_5 = new Array("/us/business/index.jsp") // Education
link_5_0 = new Array("/us/business/index.jsp") // Education


// -- ESTIMATE --//
//link_4 = new Array("/us/estimate/acquisition-calculator.jsp") // Acquisition Calculator
//link_4_0 = new Array("/us/estimate/acquisition-calculator.jsp") // Acquisition Calculator
//link_4_1 = new Array("/us/estimate/cost-calculator.jsp") // Maintenance Cost Calculator

// -- USAGE & CASE --//
//link_5 = new Array("/us/usage-case/education.jsp") // Education
//link_5_0 = new Array("/us/usage-case/education.jsp") // Education
link_5_1 = new Array("/us/usage-case/public-access.jsp") // Public Access
link_5_2 = new Array("/us/usage-case/government.jsp") // Government
link_5_3 = new Array("/us/usage-case/business.jsp") // Business

// -- MEDIA CENTER --//
link_6 = new Array("/us/news-events/index.jsp") // Notice
link_6_0 = new Array("/us/news-events/index.jsp") // Notice
link_6_1 = new Array("/us/media-center/press-release-list.jsp") // Press Release
link_6_2 = new Array("/us/media-center/pr-film.jsp") // PR Film
link_6_3 = new Array("/us/media-center/print-ad.jsp") // Print AD

// -- SUPPORT --//
link_7 = new Array("/us/support/user-guide.jsp") // inquiry
link_7_0 = new Array("/us/support/user-guide.jsp") // inquiry
link_7_1 = new Array("/us/support/download.jsp") // Download
//link_7_2 = new Array("/us/support/faq.jsp") // FAQ
link_7_2 = new Array("/us/support/inquiry.jsp") // Q&A
link_7_3 = new Array("/us/support/where-to-buy.jsp?tab=1") // Where to buy
link_7_4 = new Array("/us/support/where-to-buy.jsp?tab=2") // Service Center

// -- ETC --//
link_8 = new Array("/us/etc/poll-research.jsp") // Poll & Research
link_8_0 = new Array("/us/etc/poll-research.jsp") // Poll & Research
link_8_1 = new Array("/us/etc/email-to-partners.jsp") // Email to Partners
// link_8_2 = new Array("/us/etc/register-step1.jsp") // Register your product
link_8_2 = new Array("/us/sitemap.jsp") // Sitemap
//link_8_3 = new Array("/us/etc/contact-us.jsp") // Contact us
link_8_3 = new Array("/us/etc/contact-us.jsp") // Contact us

// ------------------ 상단네비 중간메뉴 ------------------//
function process(d1){
	try
	{
		var url = "";
		var process_value = "process";

		if(d1 > -1) { process_value += "_" + d1; }

		url = eval(process_value)[0];

		if(url=="") alert("준비중입니다.");
		else top.location.href = url;
	}
	catch (e)
	{
		alert(e.message);
	}
}

process_0 = new Array("/us/estimate/acquisition-calculator.jsp") // Quick Estimate
process_1 = new Array("/us/etc/email-to-partners.jsp") // Email to Partner
process_2 = new Array("/us/support/inquiry.jsp") // Q&A
process_3 = new Array("/us/etc/poll-research.jsp") // Poll & Research
process_4 = new Array("/us/etc/register-step1.jsp") // Register your product


function videoDown(){
	location.href = '/us/downloads/test-results/LG-Network-Monitor-Test-results.wmv';
}
