<!--
//home¿¡¼­ main menu navigation (mouse roll over ±â´É)
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_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_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; }
}



//select box¿¡¼­ ´Ù¸¥ ÆäÀÌÁö·Î ÀÌµ¿
function change1(form) {
    if(form.select2.selectedIndex != 0) 
        window.open(form.select2.options[form.select2.selectedIndex].value, target="_blank"); 
}

function change2(form,url) {
		var value = null;
//		alert(form.select2.value);
	    if(form.select2.selectedIndex != 0) 
	    {	
//			value = form.select2.value;
			value = url + "/ViewMainSect-Start?SectID=" + form.select2.value;
	        window.open(value, target="_top");

//			parent.window.location.href = url + "/ViewMainSect-Start?SectID=" + value;
//    		document.location = url + "/ViewMainSect-Start?SectID=" + value;
//    		alert("¸ÅÀå:" + url + "/ViewMainSect-Start?SectID=" + value);
    	}
}

function brand_change(form,url,sectid) {
		var value = null;
		var valCheck = null;
//		alert(form.select2.value);
	    if(form.brand.selectedIndex != 0) 
	    {	
//			value = form.select2.value;
			valCheck = form.brand.value;
			if(valCheck == "0962"){
				value = "http://image.hmall.com/static/html/lancome/new.html";	
			}else if(valCheck == "0055"){
				value = "http://image.hmall.com/static/html/event/dior/dior_event.html";
			}else if(valCheck == "1223"){
				value = "http://image.hmall.com/static/html/event/clinique/clinique_event12.html";
			}else if(valCheck == "0444"){
				value = "http://image.hmall.com/static/image/brandshop/guerlain/guerlain_event.html";
			}else{
				value = url + "/ViewBrandShop-MainSect?SectID=" +sectid+ "&MakeCoCode=" + form.brand.value;
			}
	        window.open(value, target="_top");

//			parent.window.location.href = url + "/ViewMainSect-Start?SectID=" + value;
//    		document.location = url + "/ViewMainSect-Start?SectID=" + value;
//    		alert("¸ÅÀå:" + url + "/ViewMainSect-Start?SectID=" + value);
    	}
}

function brand_change2(form,url,sectid) {
		var value = null;
		var valCheck = null;
//		alert(form.select2.value);
	    if(form.brand.selectedIndex != 0) 
	    {	
//			value = form.select2.value;
			valCheck = form.brand.value;
			if(valCheck == "0962"){
				value = "http://image.hmall.com/static/html/lancome/new.html";	
			}else if(valCheck == "0055"){
				value = "http://image.hmall.com/static/html/event/dior/dior_event.html";
			}else if(valCheck == "1223"){
				value = "http://image.hmall.com/static/html/event/clinique/clinique_event12.html";
			}else if(valCheck == "0444"){
				value = "http://image.hmall.com/static/image/brandshop/guerlain/guerlain_event.html";
			}else{
				value = url + "/ViewBrandShop-MainSect?SectID=" +sectid+ "&MakeCoCode=" + form.brand.value;
			}	
	        window.open(value, target="_top");

//			parent.window.location.href = url + "/ViewMainSect-Start?SectID=" + value;
//    		document.location = url + "/ViewMainSect-Start?SectID=" + value;
//    		alert("¸ÅÀå:" + url + "/ViewMainSect-Start?SectID=" + value);
    	}
}


// roll off ±â´É
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) { //v3.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); 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 popWin(url,winname,wwidth,wheight)
{
	var conWidth = wwidth; conHeight = wheight;

	if(wwidth == null && wheight == null)
	{
		conWidth = 100;
		wHeight = 150;
	}
//	alert("ÃÊ±â ³Êºñ :" + conWidth + "\n³ôÀÌ :" + conHeight);
	conWidth = (screen.Width) / 2 - conWidth;
	conHeight = (screen.Height) / 2 - conHeight;
//	alert("¼³Á¤ ³Êºñ :" + conWidth + "\n³ôÀÌ :" + conHeight);
	focusWin= window.open(url,winname,'left=' + conWidth + ',top=' + conHeight + ',width=' + wwidth + ',height=' + wheight + ',scrollbars=no,resizable=no');
	focusWin.focus();
}

/// ¸ÞÀÏ À©µµ¿ì ¶ç¿ì±â //////////
function mailwin(URL) {
	var str = "left=0,top=0,width=843,height=600,menubar=0,resizable=1,toolbar=0,location=0,status=1,scrollbars=1,screenx=50,screeny=10";
//	var str = "width=843,height=600";
//	focusWin3=window.open(URL,'mailwin','width=843,height=600,resizable=yes,scrollbars=yes');
    var win = null;
    win = window.open(URL,"mailwin", str);
	win.focus();
}

function outlookwin(URL) {
	focusWin4=window.open(URL,'outlook','resizable=yes, scrollbars=yes,status=0,width=660,height=500');
	focusWin4.focus();
}

////////////////////////// Ã¢Á¶Á¤ÇÏ±â //////////////////////////////////////////////
function popSize(pwidth,pheight)
{
	window.resizeTo(pwidth,pheight);
}




//TV Play,Stop,
   var curspeed	= 200;
   var nowmin		= 0;
   var firstload	= false;
   var encodename	= "encoder2.asx";
 
   function Play()  {
   
      if(		encodename	== "encoder2.asx" ) encodename = "encoder2.asx";
      else  if(	encodename	== "encoder2.asx" ) encodename = "encoder2.asx";
      
      document.WMPlayer.CurrentPosition	= 0;
      document.WMPlayer.FileName			=  "http://live.e-hyundai.com/"+encodename;	

   } 
 
   function Stop()  { 
    
      document.WMPlayer.Stop();
      
      if ( navigator.appName == "Netscape" )   {
         document.WMPlayer.SetCurrentPosition(0);
      }else{
         document.WMPlayer.CurrentPosition = 0;
      }  
         
   }
/*//TV ÀüÃ¼È­¸é
   function fullscreen() { 
   
        document.WMPlayer.DisplaySize = 3; 
        document.WMPlayer.Play(); 
        document.WMPlayer.focus(); 
   } 
*/

   function Play_onclick(speed) {
    
      if(		encodename ==   "encoder2.asx" ) encodename = "encoder2.asx";
      else  if(	encodename ==   "encoder2.asx" ) encodename = "encoder2.asx"; 
      
      document.WMPlayer.CurrentPosition	= 0;     
      document.WMPlayer.FileName			=  "http://live.e-hyundai.com/"+encodename;	
      return true;
   }


//////////////////////////////// ÁÂÃø VOD SHOPµî ¹è³Ê Á¤À§Ä¡ ÇÔ¼ö ½ÃÀÛ ///////////////////////////////////

function WindScroll(){
	AdRightBanner.style.top = document.body.scrollTop;

	if(document.body.scrollTop <= basicTOP)//½ºÅ©·Ñ¹Ù°¡ basicTOPº¸´Ù À§¿¡ÀÖÀ»¶§
	{
			AdRightBanner.style.top = basicTOP;//·¹ÀÌ¾î´Â basicTOP¿¡ À§Ä¡
	}
	else//½ºÅ©·Ñ¹Ù°¡ basicTOPº¸´Ù ¾Æ·¡¿¡ ÀÖÀ»¶§
	{
		if(document.body.scrollTop >= basicBottom)
		{
			AdRightBanner.style.top = basicBottom;
		}
		else
		{

			AdRightBanner.style.top = document.body.scrollTop;
		}
	}
	AdRightBanner.style.visibility = "visible";
}	

function WindReset(){
	AdRightBanner.style.left = 10;
	AdRightBanner.style.top = basicTOP;
}

function SetAd(){
	AdRightBanner.style.left = 10;
	AdRightBanner.style.top = basicTOP;
	window.onscroll = WindScroll;
	window.onresize = WindReset;
	window.onload = WindScroll;
}
function openEashSearch() {
	window.open("http://www.hmall.com/CS/handler/hmall/kr/EashSearch-Start?SectID=Start","es", "width=782, height=730,left=0, top=0");
	}



-->


 

