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_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_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.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_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
function MenOver(cmd,cmd1)
{
	eval("document.all."+cmd+".src='main_img/"+cmd1+"'");
}


/*
      var tobjDoc = new ActiveXObject("Microsoft.XMLDOM");
      tobjDoc.async=false;
      var objVideo;
      tobjDoc.load("video.xml");
      objVideo = tobjDoc.documentElement;
      */                   
      function NextTrack() {
        CuttingDemoReader.location.reload();
        /*
	      WMPlayer.Stop();      
        var rand = Math.ceil(Math.random() * 17);
        rand = (rand < 17) ? rand + 1 : 0;
        videoTitle.innerHTML = objVideo.childNodes(rand).childNodes(0).text;
        videoImage.src = "/data/main/video_img/" + objVideo.childNodes(rand).childNodes(1).text.replace(".wmv",".jpg");
        WMPlayer.Filename = "/data/main/video/" + objVideo.childNodes(rand).childNodes(1).text;
        videoUrl.href = objVideo.childNodes(rand).childNodes(2).text;
        */
        

      }

      function TogglePlay() {
        if (WMPlayer.PlayState == 0 || WMPlayer.PlayState == 1) {
          document.all.btn_play.src = "images/b_pause.gif";
          WMPlayer.Play();
        } else if (WMPlayer.PlayState == 2) {
          document.all.btn_play.src = "images/b_play.gif";
          WMPlayer.Pause();
        }
      }

      function Togglestop() {
          document.all.btn_play.src = "images/b_play.gif";
          WMPlayer.Stop();
      }

      function Togglenext() {
          document.all.btn_play.src = "images/b_play.gif";
          NextTrack();
      }

      // DEXT File Download		
      function goFileDown(tPath,tFile){	//DEXT File Download
        location.href= "/common/download.asp?tPath=" + tPath + "&tFile=" + tFile;
        //location.href= "http://www.domss.co.kr:8888/dealer/download.php?tPath=" + tPath + "&tFile=" + tFile;
        return;
      }



      function goFileDown1(tPath,tFile){	//DEXT File Download
        location.href= "/main/company/presentation/video/download.asp?tPath=" + tPath + "&tFile=" + tFile;
        //location.href= "http://www.domss.co.kr:8888/dealer/download.php?tPath=" + tPath + "&tFile=" + tFile;
        return;
      }



	  function SearchSubmit(form) {
        if(form.search.value == "") {
          window.alert("Search needs a word to search for. Please try again.");
          return false;
        }
        return true;
      }
      function selectWorld(world) {
        if ( world == "-") { alert('Please, select a country'); }
        else { window.location.href = world; }
      }
    function showWorld(bool) {
        if (bool) {
          WORLDSUB.style.visibility='visible';
          //document.all.SelectAarrow.src = '/main/images/select_arrow_o.gif';
        }
        else {
          WORLDSUB.style.visibility='hidden';
          //document.all.SelectAarrow.src = '/main/images/select_arrow.gif';
        }
      }
      function goWorld(world) {
        switch(world) {
          case "China":
            window.location.href = "http://cn.domss.com";
            break;
          case "USA":
            window.location.href = "http://domss.dhiac.com";
            break;
          case "Canada":
            window.location.href = "http://domss.dhiac.com";
            break;
          case "Korea":
            window.location.href = "http://www.daewoomachinetool.com";
            break;
          default:
            window.location.href = "http://www.domss.com";
            break;
        }
      }
      function go_url(cmd)
      {
	    if (cmd!="")
	    {
			window.open(cmd);
		}
      }
function GoUrl(n)
 
{
 
	if(n==3){location.href="/customer/product/index.asp";}
	if(n==2){location.href="/dealer/marketing/ad.asp?page=1";}
  if(n==1){location.href="/theme/theme6.asp";}
 
	//if(n==3){window.open('company/osc/index.asp','','toolbar=no,menubar=no,location=no,height=700,width=860,scrollbars=yes,resizable=yes')}
}

function MenuCh1(a,b)
{	
	document.all.imageview1.src  = "/main/images/"+a;
	document.all.imageview2.src  = "/main/images/"+b;
	
	
	document.all["answer_1"].style.display="";
	document.all["answer_2"].style.display="none";
	
}
function MenuCh2(a,b)
{
	document.all.imageview1.src  = "/main/images/"+a;
	document.all.imageview2.src  = "/main/images/"+b;
	
	
	document.all["answer_1"].style.display="none";
	document.all["answer_2"].style.display="";
}


/* go country 20070913***************************************** */
function GOTO(menuNum) {
  switch(menuNum) {  
	case '1': // 
      window.location.href = "/customer/product/model/model.asp?model=1011"
      break;

  }
}