// 플래쉬 메뉴 링크 TOP
// main : 메인메뉴순번
// sub  : 서브메뉴순번

function FlashLink(main,sub){
var FLink = new Array();

FLink = [
		[ //a_site : 11
			"/company/company1.html",					   // 1 
			"/company/company1.html",			  	       // 1
			"/company/company2.html",					   // 2
			"/company/company2_2.html",					   // 3
			"/company/company3.html",					   // 4
			"/company/company4.html",					   // 5
			"/company/company5.html",					   // 6
			"/company/company7.html",					   // 6
			"/company/company6.html",					   // 6
										
		],

		[ //a_site : 21
			"/product/product1.html",	 // 2 제품소개
			"/product/product1.html",  	 //
			"/product/product2.html",	 //
			"/product/product3.html",	 //
			"/product/product4.html",	 //
			"/product/product5.html",	 //
			"/product/product6.html",	 //
			"/product/product7.html",	 //
			"/product/product8.html",	 //

			


		],

		[ //a_site : 31
			"/ellipsometry/ellipsometry1.html",		       	                      // 1contactUs
		    "/ellipsometry/ellipsometry1.html",                                   //1
			"#",                                    //2
			"#",   //3dataroom
			"#",                                    //4
			"#",                                    //5
			"/ellipsometry/ellipsometry5.html",                            //6inquiry
			
		],

		[ //a_site : 41
		    "/support/support3.html",	
			"/support/support3.html",	                                                        //,				    // Q&A
			"/support/dataroom.html",				                                                                // dataroom
			"/support/support4.html",				                                                                // sample
			"http://www.gobizkorea.com/popup/newhm_pop_inquiry_eng.jsp?co_code=2009-00772&co_lang=1",				// inquiry
			//"http://nano-view.koreasme.com/fsbClientUtf/ezboard.jsp?bm_seq=11611",				//4 qa
			//"http://nano-view.koreasme.com/fsbClientUtf/ezboard.jsp?bm_seq=11612",				//5 board

			
		],

		[ //a_site : 51
			"/news/news.html",			           	// 5 news
			"/news/news.html",	                	// 
			"",	          	// 
			"",			       	// 
			"",				 	// 
			"",			                             	// 
			 
		],

	];




// SUPPORT/ INQUIRY
if(FLink[main-1][sub]!="") {

if((main== "4"&& sub=="4") || (main== "4"&& sub=="4")){
window.open(FLink[main-1][sub],'','');
}
else {
window.location.href = FLink[main-1][sub];
}
}









} 







// 통합메뉴
function all(main){
var FLink = new Array();
FLink = [
			"http://www.nano-view.com/",//home
			"http://kr.gobizkorea.com/",//2gobiz
			"mailto:ellipsometry@nano-view.com?bcc=webmaster@smipc.or.kr", //3email
			"http://www.gobizkorea.com/popup/newhm_pop_inquiry_eng.jsp?co_code=2009-00772&co_lang=2",//4inquiry_en   /나노뷰
			"/sitemap/sitemap.html",//5sitemap
			"http://www.nano-view.com/en/",//6 
			"mailto:sw.park@nano-view.com?bcc=webmaster@smipc.or.kr", //7email
			"mailto:js.kyoung@nano-view.com?bcc=webmaster@smipc.or.kr", //8email
			"mailto:na0.kim@nano-view.com?bcc=webmaster@smipc.or.kr", //9email

		];

	if(main== "2" || main== "4" || main== "6"|| main== "7") {
		top.window.open(FLink[main-1]);
	}else{
		parent.window.location.href = FLink[main-1];
	}
};





// 언어선택
	function lang(main){
		var FLink = new Array();
		FLink = [
					 //sm : 회사소개
		                "#",	//한국어
		                "#",	//영어
		            
				];

			top.window.location.href = FLink[main-1];

	};



function calcHeight() 
{ 

//find the height of the internal page 
var the_height=document.getElementById('main_content').contentWindow.document.body.scrollHeight;

//change the height of the iframe 
document.getElementById('main_content').height=the_height; 



} 