$(document).ready(function(){        
$(document).pngFix();     }); 


m00_00="/product.asp?c1_idx=1"
m00_01="/product.asp?c1_idx=2"
m00_02="/product.asp?c1_idx=3"
m00_03="/product.asp?c1_idx=4"
m00_04="/product.asp?c1_idx=5"

m01_00="/about/about01.asp"
m01_01="/about/about02.asp"
m01_02="/about/about03.asp"
m01_03="/about/about04.asp"


m02_00="/board/list.asp"
m02_01="/board_faq/list.asp"
m02_02="/board_qna/list.asp"

m01_04="/about/vod_page.asp"
sitemap="/sitemap.asp"
contatc="/contact_us/contact.asp"

m03_00="/company/com01.asp"
m03_01="/company/com02.asp"
m03_02="/company/com03.asp"
m03_03="/company/com04.asp"
m03_04="/company/com05.asp"

gomain="/index.asp"
login="/login.asp"
logout="/logout.asp"
joinus="/member/member_step1.asp"
mypage="/member/mypage.asp"
cart="/order/cart.asp"


	function showhide(idn) {
					
 
					if(eval(idn).style.display == 'none')   
					   eval(idn).style.display = 'block';
					 else eval(idn).style.display = 'none';
 
 
				}


function link(name,win) {    


	try{

		if (eval(name) == "") {

			alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.");

			return;    


		} else if (name == "pop_layer") { 	
      
			var intWidth = 1003;
   			var intHeight = 1020;
   			//var height = screen.height; 
   			//var width = screen.width; 
   			//var intWidth = width 
   			//var intHeight = height;  
			window.open('/pop_detail.html','1234','width='+intWidth+',height='+intHeight+',top=0,left=0,scrollbars=no,resizable=yes');void(0);
			
		} 
		

		else {

            if (win == "opener") {		//ÆË¾÷¿¡¼­ ºÎ¸ðÃ¢À¸·Î ¸µÅ© ÀÌµ¿

			    opener.document.location.href = eval(name);
			    self.close();

		    } else {
			    document.location.href = eval(name);

		    }

		}

	} catch(e) {

		alert(name+"°¡ Á¤ÀÇ µÇÁö ¾Ê¾Ò½À´Ï´Ù");
		//alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.");

	}



}


	function hide_layer(lname)

	{

		
		var obj = document.getElementById(lname);
		obj.style.display = "none"; 
	

	}


function pagetop() {
window.scrollTo(0,0);
}


function needlogin() {
alert ("·Î±×ÀÎÀÌ ÇÊ¿äÇÕ´Ï´Ù.");
pagetop();
}

function check_mem() {
alert ("º»ÀÎÀÌ ÀÛ¼ºÇÑ Áú¹®¸¸ º¸½Ç¼ö ÀÖ½À´Ï´Ù.");
pagetop();
}




function nodata() {
alert ("µ¿¿µ»ó ÆÄÀÏÀÌ ¼±ÅÃµÇÁö ¾Ê¾Ò½À´Ï´Ù.");
}

function Call_Swf(URL,SizeX,SizeY,Transparent_YN,strConditionAll){


	document.write('			<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');

	document.write(	'				codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ');

	document.write(	'				width="'+SizeX+'" height="'+SizeY+'" id="productXc" align="middle">');

	document.write(	'				<param name="movie" value="'+URL+'" />');

	document.write(	'				<param name="quality" value="high" />');

	document.write(	'				<param name="allowScriptAccess" value="always" />');

	document.write(	'				<param name="allowFullScreen" value="false" />');
	document.write(	'				<param name="menu" value="false" />');
	document.write( '              <param name="FlashVars" value="'+strConditionAll+'" />');

	if(Transparent_YN == 'Y') {

		document.write(	'				<param name="wmode" value="transparent"/>');

	}
	document.write(	'				<embed src="'+URL+'" wmode="transparent" quality="high" allowScriptAccess="always" allowFullScreen="false" ');
	document.write(	'						bgcolor="#ffffff" width="'+SizeX+'" height="'+SizeY+'" name="productXc1"');
	document.write(	'						align="middle" ');
	document.write(	'						type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write(	'		</object>		');

}



function Call_detailv(URL,SizeX,SizeY,Transparent_YN,strConditionAll){

	

	document.write('			<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');

	document.write(	'				codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ');

	document.write(	'				width="'+SizeX+'" height="'+SizeY+'" id="detailv" align="middle">');

	document.write(	'				<param name="movie" value="'+URL+'" />');

	document.write(	'				<param name="quality" value="high" />');

	document.write(	'				<param name="allowScriptAccess" value="always" />');

	document.write(	'				<param name="allowFullScreen" value="false" />');
	document.write(	'				<param name="menu" value="false" />');
	document.write( '              <param name="FlashVars" value="'+strConditionAll+'" />');

	if(Transparent_YN == 'Y') {

		document.write(	'				<param name="wmode" value="transparent"/>');

	}
	document.write(	'				<embed src="'+URL+'" wmode="transparent" quality="high" allowScriptAccess="always" allowFullScreen="false" ');
	document.write(	'						bgcolor="#ffffff" width="'+SizeX+'" height="'+SizeY+'" name="detailv"');
	document.write(	'						align="middle" ');
	document.write(	'						type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write(	'		</object>		');

}




function Call_gall(URL,SizeX,SizeY,Transparent_YN,strConditionAll){

	

	document.write('			<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');

	document.write(	'				codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ');

	document.write(	'				width="'+SizeX+'" height="'+SizeY+'" id="gall" align="middle">');

	document.write(	'				<param name="movie" value="'+URL+'" />');

	document.write(	'				<param name="quality" value="high" />');

	document.write(	'				<param name="allowScriptAccess" value="always" />');

	document.write(	'				<param name="allowFullScreen" value="false" />');
	document.write(	'				<param name="menu" value="false"  />');
	document.write( '              <param name="FlashVars" value="'+strConditionAll+'" />');

	if(Transparent_YN == 'Y') {

		document.write(	'				<param name="wmode" value="transparent"/>');

	}
	document.write(	'				<embed src="'+URL+'" wmode="transparent" quality="high" allowScriptAccess="always" allowFullScreen="false" ');
	document.write(	'						bgcolor="#ffffff" width="'+SizeX+'" height="'+SizeY+'" name="gall"');
	document.write(	'						align="middle" ');
	document.write(	'						type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write(	'		</object>		');

}



function Call_ss(URL,SizeX,SizeY,Transparent_YN,strConditionAll){

	

	document.write('			<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');

	document.write(	'				codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ');

	document.write(	'				width="'+SizeX+'" height="'+SizeY+'" id="ssview" align="middle">');

	document.write(	'				<param name="movie" value="'+URL+'" />');

	document.write(	'				<param name="quality" value="high" />');

	document.write(	'				<param name="allowScriptAccess" value="always" />');

	document.write(	'				<param name="allowFullScreen" value="false" />');
	document.write(	'				<param name="menu" value="false" />');
	document.write( '              <param name="FlashVars" value="'+strConditionAll+'" />');

	if(Transparent_YN == 'Y') {

		document.write(	'				<param name="wmode" value="transparent"/>');

	}
	document.write(	'				<embed src="'+URL+'" wmode="transparent" quality="high" allowScriptAccess="always" allowFullScreen="false" ');
	document.write(	'						bgcolor="#ffffff" width="'+SizeX+'" height="'+SizeY+'" name="ssview"');
	document.write(	'						align="middle" ');
	document.write(	'						type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write(	'		</object>		');

}

function ssview(w,h)

	{
		//·¹ÀÌ¾î ¿Â¿ÀÇÁ ½ºÅ©¸³Æ®
		
		str = "";
	
		
		var obj = document.getElementById("ssview");

		
		obj.style.display = "block"; 
		document.getElementById("ssview").style.height = h+'px';
		document.getElementById("ssview").style.width = w+'px';
		document.getElementById("Sub_Search").style.height = h+'px';
		document.getElementById("Sub_Search").style.width = w+'px';
	
		
		ssview_se(h);
		//alert(serial);
		
	}
	
	

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.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 thisMovie(movieName) {
       if (navigator.appName.indexOf("Microsoft") != -1) {

           return window[movieName];
       } else {
           return document[movieName];
       }
   }
   
   
   function play_flv(value) {
	   
   		if (navigator.appName.indexOf("Microsoft") != -1) {
           thisMovie("detailv").sendToActionScript(value);
       } else {
           thisMovie("detailv").sendToActionScript(value);
       }        
   }
   
   
   
    function qq(value) {
		
   		if (navigator.appName.indexOf("Microsoft") != -1) {
           thisMovie("gall").sendToActionScript2(value);
       } else {
           thisMovie("gall").sendToActionScript2(value);
       }    
	   
	
	   
   }
   


function show_layer(lname,serial)

	{
		//·¹ÀÌ¾î ¿Â¿ÀÇÁ ½ºÅ©¸³Æ®

		var obj = document.getElementById(lname);

		obj.style.display = "block"; 
	}
	
	
function show_detail(serial)

	{
		//·¹ÀÌ¾î ¿Â¿ÀÇÁ ½ºÅ©¸³Æ®
		
		str = "";
	
		
		var obj = document.getElementById("detail");
		var Height= document.body.scrollHeight;
		var Width= document.body.scrollWidth;
		
		obj.style.display = "block"; 
		document.getElementById("detail").style.height = Height+'px';
		document.getElementById("detail").style.width = Width+'px';
		
	
		
		goflash(serial);
		//alert(serial);
		
	}
	
function show_detail2()

	{
		//·¹ÀÌ¾î ¿Â¿ÀÇÁ ½ºÅ©¸³Æ®
		
		str = "";
	
		
		var obj = document.getElementById("detail2");
		var Height= document.body.scrollHeight;
		var Width= document.body.scrollWidth;
		
		obj.style.display = "block"; 
		document.getElementById("detail2").style.height = Height+'px';
		document.getElementById("detail2").style.width = Width+'px';
		
	
		size_detail2(1000,1000)
		
		
	}
	
	
function size_detail2(w,h)

	{
	
		
	var message = document.getElementById("Check_list");
		
	message.style.position = "absolute";
	message.style.display = "block";
	message.style.left = document.body.clientWidth/2 - w/2;
	message.style.top = 140 +'px';
	message.style.height = h+'px';
	message.style.width =  w+'px';

	
	}

function size_detail(w,h)

	{
	
		
	var message = document.getElementById("detail_view");
	var detail_v = document.getElementById("detailv");
		
	message.style.position = "absolute";
	message.style.left = document.body.clientWidth/2 - w/2;
	message.style.top = 140 +'px';
	message.style.height = h+'px';
	message.style.width =  w+'px';
	detailv.style.height = h+'px';
	detailv.style.width =  w+'px';
	
	}



	function hide_detail(lname)

	{

	var obj = document.getElementById("detail");
	var message = document.getElementById("detail_view");
	var detail_v = document.getElementById("detailv");

	message.style.height = 0+'px';
	message.style.width =  0+'px';
	detailv.style.height = 0+'px';
	detailv.style.width =  0+'px';
	document.getElementById("detail").style.height = 0+'px';
	document.getElementById("detail").style.width = 0+'px';
		

	}
	
	
	function hide_detail2(lname)

	{

	var obj = document.getElementById("detail2");
	var message = document.getElementById("Check_list");
	message.style.display = "none"; 
	obj.style.display = "none"; 
		

	}
	
	

	
	


function popwin(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

	
					
	function Resizeview(height,width)

	{

		//¸¶ÄÉÆÃ ¿µ¿ª  '
		
		alert(height);
		alert(width);

		var obj = document.getElementById('gall');

	    obj.style.height = height+'px';;

		obj.style.height += height+'px';;

		

	}
	
	
function gotop() { 
        window.scrollTo(0,0) 
}


function gopage(height) { 
        window.scrollTo(0,height) 
}
 
 
 
 
 
function layer_on_off(id,cnt){

  for(var i = 1; i <= cnt; i++){ /* cnt ÃÑ·¹ÀÌ¾î¼ö ¸¹Å­ ·çÇÁ */
   

   var div_temp = "pro_tab0" + i; /* div ¿Â¾Æ¿ô µÉ ³×ÀÓ °ú id Á¶ÇÕ */
	
  if(i != id){ /* ¼±ÅÃµÇÁö ¾ÊÀº °ÍµéÀÇ ÆäÀÌÁö¸¦ ´Ý±âÀ§ÇØ ¼±¾ð */
    document.getElementById(div_temp).style.display = "none"; /* div¸¦ °¨Ãá´Ù */
	
	
   }else{
    document.getElementById(div_temp).style.display = "block";
	
	
   }
   
   
   
  }
}





function memstep1Check()
{

    if (!document.joinform.agree.checked) {
        alert("¾à°üÀÇ ³»¿ë¿¡ µ¿ÀÇÇØ¾ß È¸¿ø°¡ÀÔ ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
        document.joinform.agree.focus();
        return false;
    }
        

	if (document.joinform.kname.value.length < 2)	{
		alert("ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ½Ê½Ã¿ä.")
	    document.joinform.kname.focus();
		return false;
	}   
	
	
		var chk = 0;
    var yy = document.joinform.juminno1.value.substring(0,2);
	var mm = document.joinform.juminno1.value.substring(2,4);
	var dd = document.joinform.juminno1.value.substring(4,6);
	var sex = document.joinform.juminno2.value.substring(0,1);
	
	if ((document.joinform.juminno1.value.length !=6 )||(yy <25 || mm < 1 || mm>12 || dd < 1))
 	{
    	alert ("ÁÖ¹Îµî·Ï¹øÈ£¸¦ ÀÔ·ÂÇÏ¿© ÁÖ½Ê½Ã¿ä.")
    	document.joinform.juminno1.focus();
		return false;
  	}

  	if ((sex != 1 && sex !=2 && sex !=7 && sex !=8)||(document.joinform.juminno2.value.length != 7 ))
  	{
    	alert ("À¯È¿ÇÏÁö ¾ÊÀº ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù.")
    	document.joinform.juminno2.focus();
		return false;
  	}   

  	//		ÁÖ¹Îµî·Ï¹øÈ£ À¯È¿°ª Ã¼Å© ³¡
  	for (var i = 0; i <=5 ; i++)
  	{ 
		chk = chk + ((i%8+2) * parseInt(document.joinform.juminno1.value.substring(i,i+1)))
 	}

  	for (var i = 6; i <=11 ; i++)
  	{ 
       	chk = chk + ((i%8+2) * parseInt(document.joinform.juminno2.value.substring(i-6,i-5)))
 	}


  	chk = 11 - (chk %11)
  	chk = chk % 10


  	if (chk != document.joinform.juminno2.value.substring(6,7))
  	{
		alert ("À¯È¿ÇÏÁö ¾ÊÀº ÁÖ¹Îµî·Ï¹øÈ£ÀÔ´Ï´Ù")
    	document.joinform.juminno1.focus();
		return false;
  	}
	
	
	
	
	
	return true
}

function chkFocusMove(){
 var frm = document.joinform;
 var str = frm.juminno1.value;
 if(str !=null && str.length ==6)
 frm.juminno2.focus(); 
}


function page_print(lname){
    
                var initBody = document.body.innerHTML;
                window.onbeforeprint = function(){
                    document.body.innerHTML = document.getElementById(lname).innerHTML;
                }
                window.onafterprint = function(){
                    document.body.innerHTML = initBody;
                }
                window.print();     
            }   

	
	
	
	
	//$(function(){
		//var boxtop = $('#Quickmenu').offset().top;
	//	$(window).scroll(function(){ 
	//	 page_h = document.documentElement.clientHeight;

	//	 if (page_h > 650) {
	//	 $('#Quickmenu').stop();
	//	 $('#Quickmenu').animate({"top": document.documentElement.scrollTop  + boxtop}, 500); 

	//	  } else {
	//	 $('#Quickmenu').stop();
	//		
	//	  }
	//	});   
	//});	
	
	
	
	

