function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}


// flash document ½ºÅ©¸³Æ®..
function f_flash_src(s,d,w,h,t){
// s: source url
// d: flash id
// w: source width
// h: source height
// t: wmode ("" for none, transparent, opaque ...)	
	return "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" width="+w+" height="+h+" id="+d+"><param name=wmode value="+t+"  /><param name=movie value="+s+" /><param name=quality value=high /><embed src="+s+" quality=high wmode="+t+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+w+" height="+h+"></embed></object>";
}

// write document contents
function f_document_write(src){
	document.write(src);
}


//home ¸µÅ© -------------------------------------------------------------------------------------------------------------//
function goto_home(){		self.location="/index.asp";}


//¸ÞÀÎ 'more' infomation ¸µÅ© --------------------------------------------------------------------------------------//
function goto_more_1(){		self.location="/products/products.asp?nCat=352&idx=29133";}
function goto_more_2(){		self.location="/products/products.asp?nCat=353&idx=29235";}
function goto_more_3(){		self.location="/products/products.asp?nCat=354&idx=29316";}					//midas GTS
function goto_more_4(){		self.location="/products/products.asp?nCat=355&idx=29318";}


//top¸Þ´º util ¸µÅ© -----------------------------------------------------------------------------------------//
function goto_util_1(){		self.location="/index.asp";}
function goto_util_2(){		self.location="/membership/login.asp";}										//·Î±×ÀÎ ¸µÅ©
function goto_util_3(){		window.open("http://www.midasuser.com/membership/agreement_en.asp");}		//È¸¿ø°¡ÀÔ ¸µÅ©
function goto_util_4(){		self.location="/membership/login_out.asp";}									//·Î±×¾Æ¿ô ¸µÅ©
function goto_util_5(){		window.open("http://www.midasuser.com/membership/reglogin_en.asp");}		//°³ÀÎÁ¤º¸¼öÁ¤ ¸µÅ©
function goto_util_6(){		self.location="/sales/Purchase.asp";}
function goto_util_7(){		self.location="/news/news.asp";}
function goto_util_8(){		self.location="/contactus/contactus.asp";}
function goto_util_9(){		self.location="/sitemap/sitemap.asp";}


//left menu Product ¸µÅ© (¡Ø3µª½º°¡ ÀÖ´Â ¸Þ´º¸¸)--------------------------------------------------------------------------------------------------------------------------//

//left menu 1-1 Product > Bridge Engineering--//
function goto_left_1_1(){	self.location="/products/overview.asp";	}		//Product
function goto_left1_11(){	self.location="/products/products.asp?nCat=352&idx=29133";	}		//civil
function goto_left1_12(){	self.location="/products/products.asp?nCat=352&idx=29134";	}		//FEA
function goto_left1_13(){	self.location="/products/products.asp?nCat=352&idx=29233";	}		//midas FX+ Modeler

//left menu 1-2 Product > Building Engineering--//
function goto_left_1_2(){	self.location="/products/products.asp?nCat=353&idx=29235";	}		//gen
function goto_left1_21(){	self.location="/products/products.asp?nCat=353&idx=29235";	}		//gen
function goto_left1_22(){	self.location="/products/products.asp?nCat=353&idx=29258";	}		//Set
function goto_left1_23(){	self.location="/products/products.asp?nCat=353&idx=29256";	}		//Dshop
function goto_left1_24(){	self.location="/products/products.asp?nCat=353&idx=29260";	}		//midas FX+ Modeler

//left menu 1-3  Product > Geotechnical Engineering--//
function goto_left_1_3(){	self.location="/products/products.asp?nCat=354&idx=29316";	}		//GTS
function goto_left1_31(){	self.location="/products/products.asp?nCat=354&idx=29316";	}		//GTS
function goto_left1_32(){	self.location="/products/products.asp?nCat=354&idx=101475";	}				//Soilworks

//left menu 1-4 Product > Mechanical Engineering--//
function goto_left_1_4(){	self.location="/products/products.asp?nCat=355&idx=29318";	}				//NastranFX
function goto_left1_41(){	self.location="/products/products.asp?nCat=355&idx=29318";	}				//NastranFX
function goto_left1_42(){	self.location="/products/products.asp?nCat=355&idx=29330";	}		//midasFX+

//left menu 1-5 Product > Project Gallery--//
function goto_left_1_5(){	self.location="/products/gallery.asp";	}


//left menu 2-1 Learning > Online Training--//
function goto_left_2_1(){	self.location="/learning/webinar.asp";	}		//Online Training > Webinar Service
function goto_left2_11(){	self.location="/learning/webinar.asp";	}		//Webinar Service
function goto_left2_12(){	self.location="/learning/eTraining.asp";	}		//Webinar Schedule
function goto_left2_13(){	self.location="/learning/Customize.asp";	}		//Customize Your Webinar
function goto_left2_14(){	self.location="/learning/Resources.asp";	}		//Webinar Resources
function goto_left_2_2(){	self.location="/learning/tutorials.asp";	}
function goto_left_2_3(){	self.location="/learning/tech_papers.asp";	}
function goto_left_2_4(){	self.location="/learning/news.asp";	}

//left menu 3-1 support--//
function goto_left_3_1(){	self.location="/support/qna.asp";	}

function goto_left_3_2(){	self.location="/support/Verification.asp";	}
function goto_left_3_3(){	self.location="/support/iso.asp";	}
function goto_left3_31(){	self.location="/support/iso.asp";	}
function goto_left3_32(){	self.location="/support/mqcs.asp";	}
function goto_left3_33(){	self.location="/support/bug.asp";	}

//left menu 4-1 Download--//
function goto_left_4_1(){	self.location="/Downloads/Trial.asp";	}
function goto_left4_11(){	self.location="/Downloads/Trial.asp";	}
function goto_left4_12(){	self.location="/Downloads/Extension.asp";	}
function goto_left_4_2(){	self.location="/Downloads/programs.asp";	}
function goto_left_4_3(){	self.location="/Downloads/Updates.asp";	}

//left menu 5-1 Download--//
function goto_left_5_1(){	self.location="/sales/sales.asp";	}
function goto_left_5_2(){	self.location="/sales/Purchase.asp";	}

//¸ÞÀÎ ºñÁê¾ó ¸µÅ© ------------------------------------------------------------------------------------------------------//
//BRIDGE ENGINEERING --//
function goto_menu1_1(){		self.location="/products/products.asp?nCat=352&idx=29133";}
function goto_menu1_2(){		self.location="/products/products.asp?nCat=352&idx=29134";}
function goto_menu1_3(){		self.location="/products/products.asp?nCat=352&idx=29233";}
function goto_menu1_4(){		self.location="/products/products.asp?nCat=352&idx=29234";}

//BUILDING ENGINEERING --//
function goto_menu2_1(){		self.location="/products/products.asp?nCat=353&idx=29235";}
function goto_menu2_2(){		self.location="/products/products.asp?nCat=353&idx=29256";}
function goto_menu2_3(){		self.location="/products/products.asp?nCat=353&idx=29258";}
function goto_menu2_4(){		self.location="/products/products.asp?nCat=353&idx=29259";}
function goto_menu2_5(){		self.location="/products/products.asp?nCat=353&idx=29260";}			 //midas FX+ Modeler

//GEOTECHNICAL ENGINEERING --//
function goto_menu3_1(){		self.location="/products/products.asp?nCat=354&idx=29316";}

//MECHANICAL ENGINEERING --//
function goto_menu4_1(){		self.location="/products/products.asp?nCat=355&idx=29318";}			//Nastran FX 
function goto_menu4_2(){		self.location="/products/products.asp?nCat=355&idx=29330";}			//midas FX+


//¸ÞÀÎ top ¸Þ´º ¹× ¼­ºê top ¸Þ´º ¸µÅ© ------------------------------------------------------------------------------------------------------//2011-06-04
function goto_url(navinum){
    
	//Products --------------------------------------------------------//
	if (navinum == "menu1"){
		self.location="/products/overview.asp";   //Product
	}else if (navinum == "sub1_1" ){
		self.location="/products/products.asp?nCat=352&idx=29133";   //civil
	}else if (navinum == "sub1_2" ){
		self.location="/products/products.asp?nCat=353&idx=29235";   //Gen
	}else if (navinum == "sub1_3" ){
		self.location="/products/products.asp?nCat=354&idx=29316";	 //GTS
	}else if (navinum == "sub1_4" ){
		self.location="/products/products.asp?nCat=355&idx=29318";  //Nastran FX
	}else if (navinum == "sub1_5" ){
		self.location="/products/gallery.asp";  //ÇÁ·ÎÁ§Æ® °¶·¯¸®


	//TOP MENU : learning ---------------------------------------------------------//
	}else if (navinum == "menu2" ){
		self.location="/learning/webinar.asp";		//Online Training
	}else if (navinum == "sub2_1" ){
		self.location="/learning/webinar.asp";		//Online Training
	}else if (navinum == "sub2_2" ){
		self.location="/learning/tutorials.asp";				//Product Tutorials
	}else if (navinum == "sub2_3" ){
		self.location="/learning/tech_papers.asp";			//Technical Papers
	}else if (navinum == "sub2_4" ){
		self.location="/learning/news.asp";					//Training News


	//Support --------------------------------------------------------//
	}else if (navinum == "menu3" ){
	   self.location="/support/overview.asp";
	}else if (navinum == "sub3_1" ){
	   self.location="/support/qna.asp";
	}else if (navinum == "sub3_2" ){
	   self.location="/support/Verification.asp";
	}else if (navinum == "sub3_3" ){
	   self.location="/support/iso.asp";	   

	//Downloads -------------------------------------------------------//
	}else if (navinum == "menu4" ){
	   self.location="/downloads/download.asp";
	}else if (navinum == "sub4_1" ){
		self.location="/downloads/Trial.asp";
	}else if (navinum == "sub4_2" ){
		self.location="/downloads/programs.asp";
	}else if (navinum == "sub4_3" ){
		self.location="/Downloads/Updates.asp";
			
			
			
	//Sales ------------------------------------------------------//
	}else if (navinum == "menu5" ){
		self.location="/sales/sales.asp";
	}else if (navinum == "sub5_1" ){
		self.location="/sales/sales.asp";
	}else if (navinum == "sub5_2" ){
		self.location="/sales/Purchase.asp";
	

	//Partnership ------------------------------------------------------------//
	}else if (navinum == "menu6" ){
//		window.open("http://en.midasit.com");
		self.location="/Partnership/Partnership.asp";
//	}else if (navinum == "sub6_1" ){
//		window.open("http://en.midasit.com");
//		self.location="/Partnership/Partnership.asp";
//	}else if (navinum == "sub6_2" ){
//		self.location="/contactus/contactus.asp";

	//Purchase ------------------------------------------------------//
	}else if (navinum == "menu11" ){
		self.location="#";

	//News ------------------------------------------------------//
	}else if (navinum == "menu12" ){
		self.location="#";

	//Sitemap ------------------------------------------------------//
	}else if (navinum == "menu13" ){
		self.location="#";

	//Contact us ------------------------------------------------------//
	}else if (navinum == "menu14" ){
		self.location="#";

	//Catalogs ------------------------------------------------------//
	}else if (navinum == "menu15" ){
		self.location="#";

	}
}
