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/overview.asp?nCat=352";
}
function goto_more_2(){
		self.location="/products/overview.asp?nCat=353";
}
function goto_more_3(){
		self.location="/products/products.asp?nCat=354&idx=29316"; //midas GTS
}
function goto_more_4(){
		self.location="/products/overview.asp?nCat=355";
}


//¸ÞÀÎ ¹× ¼­ºê top¸Þ´º util ¸µÅ© -----------------------------------------------------------------------------------------//


function goto_util_1(){
		self.location="/index.asp";
}
//Sign in ¸µÅ©
function goto_util_2(){
		self.location="/membership/login.asp";
}
//Sign up ¸µÅ©
function goto_util_3(){
		window.open("http://www.midasuser.com/membership/agreement_en.asp");
}
//Sign out ¸µÅ©
function goto_util_4(){
		self.location="/membership/login_out.asp";
}
//Membership ¸µÅ©
function goto_util_5(){
		window.open("http://www.midasuser.com/membership/reglogin_en.asp");
}
function goto_util_6(){
		self.location="/Purchase/Purchase.asp";
}
function goto_util_7(){
		self.location="/news/news.asp";
}
function goto_util_8(){
		self.location="/sitemap/sitemap.asp";
}


//¼­ºê left¸Þ´º ¸µÅ© -----------------------------------------------------------------------------------------------------//



//¼­ºê left 1¹ø¸Þ´º ¸µÅ© --------------------------------------------------------------------------------------------------------------------------//

//left menu 1-1 Bridge--------------------------------------------------------//
function goto_left_1_1(){
		self.location="/products/overview.asp?nCat=352";
}
function goto_left1_11(){
		self.location="/products/overview.asp?nCat=352";
}
function goto_left1_12(){
		self.location="/products/products.asp?nCat=352&idx=29133";
}
function goto_left1_13(){
		self.location="/products/products.asp?nCat=352&idx=29134";
}
function goto_left1_14(){
		self.location="/products/products.asp?nCat=352&idx=29233";
}
function goto_left1_15(){
		self.location="/products/products.asp?nCat=352&idx=29234";
}


//left menu 1-2 building--------------------------------------------------------//
function goto_left_1_2(){
		self.location="/products/overview.asp?nCat=353";
}
function goto_left1_21(){
		self.location="/products/overview.asp?nCat=353";
}
function goto_left1_22(){
		self.location="/products/products.asp?nCat=353&idx=29235";
}
function goto_left1_23(){
		self.location="/products/products.asp?nCat=353&idx=29256";
}
function goto_left1_24(){
		self.location="/products/products.asp?nCat=353&idx=29258";
}
function goto_left1_25(){
		self.location="/products/products.asp?nCat=353&idx=29259";
}
function goto_left1_26(){
		self.location="/products/products.asp?nCat=353&idx=29260";
}



//left menu 1-3  Geotechnical--------------------------------------------------------//
function goto_left_1_3(){
		self.location="/products/products.asp?nCat=354&idx=29316";
}
function goto_left1_31(){
		self.location="/products/products.asp?nCat=354&idx=29316";
}


//left menu 1-4 Mechanical--------------------------------------------------------//
function goto_left_1_4(){
		self.location="/products/overview.asp?nCat=355";
}
function goto_left1_41(){
		self.location="/products/overview.asp?nCat=355";
}
function goto_left1_42(){
		self.location="/products/products.asp?nCat=355&idx=29318";
}
function goto_left1_43(){
		self.location="/products/products.asp?nCat=355&idx=29330";
}



//left menu 1-5 gallery--------------------------------------------------------//
function goto_left_1_5(){
		self.location="/products/gallery.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 ¸Þ´º ¸µÅ© ------------------------------------------------------------------------------------------------------//


function goto_url(navinum){
    
	//Products --------------------------------------------------------//
	if (navinum == "menu1"){
		self.location="/products/overview.asp?nCat=352";   //Bridge Overview
	}else if (navinum == "sub1_1" ){
		self.location="/products/overview.asp?nCat=352";   //Bridge Overview
	}else if (navinum == "sub1_2" ){
		self.location="/products/overview.asp?nCat=353";   //Building Overview
	}else if (navinum == "sub1_3" ){
		self.location="/products/products.asp?nCat=354&idx=29316";  //midas GTS
	}else if (navinum == "sub1_4" ){
		self.location="/products/overview.asp?nCat=355";  //Nastran FX
	}else if (navinum == "sub1_5" ){
		self.location="/products/gallery.asp";  //ÇÁ·ÎÁ§Æ® °¶·¯¸®

	
	//Support ---------------------------------------------------------//
	}else if (navinum == "menu2" ){
		self.location="/support/tech_papers.asp";
	}else if (navinum == "sub2_1" ){
		self.location="/support/tech_papers.asp";
	}else if (navinum == "sub2_2" ){
		self.location="/support/qna.asp";

		

	//Training --------------------------------------------------------//
	}else if (navinum == "menu3" ){
	   self.location="/training/etraining.asp";
	}else if (navinum == "sub3_1" ){
	   self.location="/training/etraining.asp";
	}else if (navinum == "sub3_2" ){
	   self.location="/training/training.asp";		
	

	//Downloads -------------------------------------------------------//
	}else if (navinum == "menu4" ){
	   self.location="/downloads/programs.asp";
	}else if (navinum == "sub4_1" ){
		self.location="/downloads/programs.asp";
	}else if (navinum == "sub4_2" ){
		self.location="/downloads/Tutorials.asp";
	}else if (navinum == "sub4_3" ){
		self.location="/downloads/Verification.asp";
			
			
			
	//Evaluation ------------------------------------------------------//
	}else if (navinum == "menu5" ){
		self.location="/evaluation/evaluation.asp";
	

	//MQCS ------------------------------------------------------------//
	}else if (navinum == "menu6" ){
	   self.location="/MQCS/iso.asp";
	}else if (navinum == "sub6_1" ){
		self.location="/MQCS/iso.asp";
	}else if (navinum == "sub6_2" ){
		self.location="/MQCS/MQCS.asp";
	}else if (navinum == "sub6_3" ){
		self.location="/MQCS/bug.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="#";

	}
}