//Flash
function hamfs(src,width,height) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="'+width+'" height="'+height+'"><param name="wmode" value="transparent"><param name=movie value="'+src+'"><param name=quality value=high><embed src="'+src+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" wmode="transparent"></embed></object>');
}

function getflash(URL,wid,hei,mode, dp1, dp2){
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+wid+"' height='"+hei+"'>");
	document.write("<param name='movie' value='"+URL+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='WMODE' value='"+mode+"'>");
	document.write("<embed src='"+URL+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+wid+"' height='"+hei+"'></embed>");
	document.write("</object>");
}
function openWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//Side Bar Rollover
function menuOn(imgEl) {
	imgEl.src = imgEl.src.replace(".gif", "_over.gif");
}

function menuOut(imgEl) {
	imgEl.src = imgEl.src.replace("_over.gif", ".gif");
}


  function index_best1(){
	document.all.index_best_img1.src='/images/main/prod_tab_skin_over.gif';
	document.all.index_best_img2.src='/images/main/prod_tab_health_out.gif';
	document.all.index_best_img3.src='/images/main/prod_tab_living_out.gif';
	document.getElementById("index_best_1").style.display='';
	document.getElementById("index_best_2").style.display='none';
	document.getElementById("index_best_3").style.display='none';
  }
  function index_best2(){
	document.all.index_best_img1.src='/images/main/prod_tab_skin_out.gif';
	document.all.index_best_img2.src='/images/main/prod_tab_health_over.gif';
	document.all.index_best_img3.src='/images/main/prod_tab_living_out.gif';
	document.getElementById("index_best_1").style.display='none';
	document.getElementById("index_best_2").style.display='';
	document.getElementById("index_best_3").style.display='none';
  }
  function index_best3(){
	document.all.index_best_img1.src='/images/main/prod_tab_skin_out.gif';
	document.all.index_best_img2.src='/images/main/prod_tab_health_out.gif';
	document.all.index_best_img3.src='/images/main/prod_tab_living_over.gif';
	document.getElementById("index_best_1").style.display='none';
	document.getElementById("index_best_2").style.display='none';
	document.getElementById("index_best_3").style.display='';
  }

  function index_notice1(){
	document.all.index_notice_img1.src='/images/main/board_notice_tab_over.gif';
	document.all.index_notice_img2.src='/images/main/board_info_tab_out.gif';
	document.getElementById("index_notice_1").style.display='';
	document.getElementById("index_notice_2").style.display='none';
  }
  function index_notice2(){
	document.all.index_notice_img1.src='/images/main/board_notice_tab_out.gif';
	document.all.index_notice_img2.src='/images/main/board_info_tab_over.gif';
	document.getElementById("index_notice_1").style.display='none';
	document.getElementById("index_notice_2").style.display='';
  }

  function contact_site(){
	if(document.all.contact_site.style.display=='none'){
	  document.all.contact_site.style.display='';	
	}else{
	  document.all.contact_site.style.display='none';
	}
  }
  function contact_site_link(v){
	document.all.contact_site.value=v;
	document.all.contact_site.style.display='none';
	window.open(v);
  }

  function go_url(url){
	location.href=url;
  }

  function select_div(select_id){
	var select_id = document.getElementById(select_id);
	if(select_id.style.display=="none"){
	  select_id.style.display='';	
	}else{
	  select_id.style.display='none';
	}
  }

  function select_div_value(input_name,v,select_id,view_id){
	var input_name = eval("document.all."+ input_name);
	input_name.value=v;
	document.getElementById(select_id).style.display='none';
	document.getElementById(view_id).innerHTML=v;
  } 

  function product_srch_chk() {
	with (document.product_search) {
	  if (!product_srch_str.value) {
		alert("검색 상품명을 입력해주세요."); 
		product_srch_str.focus(); 
		return false;
	  }
	}
	document.product_search.submit();
  }


  function showInvWin(url){
	window.open(url,'invwin','left=0,top=0,width=800,height=600,scrollbars=yes');
  }



