// ±âº» ÇÃ·¡½Ã				
function flashObj(URL,SizeX,SizeY,LnkId,Frm,Flag) // quick
{
    document.write('            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
    document.write('                    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
    document.write('                    width="'+SizeX+'" height="'+SizeY+'"  id="'+LnkId+'" align="middle">');
    document.write('            <param name="movie"     value="'+URL+'" />');
    document.write('            <param name="quality"   value="high" />');
    if ( Flag == null || Flag != 'N' )
    {
        document.write('        <param name="wmode"     value="transparent"/>');
    }
 document.write('   <param name="allowScriptAccess" value="always"/> ');
 document.write('   <param name="base" value="." />');
    document.write('            <embed base="." src="'+URL+'" quality="high" width="'+SizeX+'" height="'+SizeY+'"  align="middle" ');
  if ( Flag == null || Flag != 'N' )
    {
        document.write('         wmode="transparent" ');
    }
    document.write('             type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" swLiveConnect=true name="'+LnkId+'"  />');
    document.write('            </embed></object>');
 if ( Frm == 'Y' ) { // form ÅÂ±× µé¾î°¡´Â ÆäÀÌÁö¿¡ Àû¿ë
  eval("window." + LnkId + " = document.forms[0]."+ LnkId +"; ");
 }
}

//jqurey ¸µÅ© 

// addLoadEvent
function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}

//»çÁø »çÀÌÁî
function autoImgSize(){
	var maxWidth = 595; //ÀÌ¹ÌÁö ÃÖ´ë ³ÐÀÌ
	var c_picpds = $("tr.textarea", ".bbs-view");
	var n_img = $("img", c_picpds); //´ë»ó ÀÌ¹ÌÁö³ëµå
	n_img.each(function(){
		currWidth = this.offsetWidth; //ÀÌ¹ÌÁö »çÀÌÁî ÃßÃâ
		if(currWidth > maxWidth){
			$(this).attr("width", maxWidth); //ÀÌ¹ÌÁö ³ÐÀÌ ÃÖ´ë°ªÀ¸·Î ±³Ã¼
		}
	});
}

//»çÁø »çÀÌÁî - µ¥ÀÏ¸® voc
function autoImgSize2(){
	var maxWidth = 500; //ÀÌ¹ÌÁö ÃÖ´ë ³ÐÀÌ
	var c_picpds = $("dd", "div.daily-list");
	var n_img = $("img", c_picpds); //´ë»ó ÀÌ¹ÌÁö³ëµå
	n_img.each(function(){
		currWidth = this.offsetWidth; //ÀÌ¹ÌÁö »çÀÌÁî ÃßÃâ
		if(currWidth > maxWidth){
			$(this).attr("width", maxWidth); //ÀÌ¹ÌÁö ³ÐÀÌ ÃÖ´ë°ªÀ¸·Î ±³Ã¼
			$(this).css("height","auto");
		}
	});
}


//ÆË¾÷¶ç¿ì±â ½ºÅ©·Ñ ÀÖ´Â °Å
function popsn(url,trgt,w,h) { 
    window.open(url,trgt,'width='+w+',height='+h+',scrollbars=no,resizable=no,copyhistory=no,toolbar=no,status=no'); 
}
//ÆË¾÷¶ç¿ì±â ½ºÅ©·Ñ ¾ø´Â °Å
function popsy(url,trgt,w,h) { 
    window.open(url,trgt,'width='+w+',height='+h+',scrollbars=yes,resizable=no,copyhistory=no,toolbar=no,status=no,left=0,top=0'); 
}

//
function qs() {
	document.getElementById("quickH").style.display = "block";
	document.getElementById("quickS").style.display = "none";
}
function qh() {
	document.getElementById("quickH").style.display = "none";
	document.getElementById("quickS").style.display = "block";
}

//
function ams() {
	document.getElementById("allMenus").style.display = "block";
}
function amh() {
	document.getElementById("allMenus").style.display = "none";
}
//
function fys() {
	document.getElementById("family").style.display = "block";
}
function fyh() {
	document.getElementById("family").style.display = "none";
}


function cs() {
	alert('Chair Story(Á¦Ç°»ç¿ëÈÄ±â)´Â ¾ÆÁ÷ ÁØºñÁßÀÔ´Ï´Ù.');
}
function as() {
	//alert('A/S REQUEST´Â ¾ÆÁ÷ ÁØºñÁßÀÔ´Ï´Ù.');
	location.href="/customer/as_write.asp";
}
function qna() {
	//alert('Q&A´Â ¾ÆÁ÷ ÁØºñÁßÀÔ´Ï´Ù.');
	location.href="/customer/qna_list.asp";
}
function faq() {
	//alert('FAQ´Â ¾ÆÁ÷ ÁØºñÁßÀÔ´Ï´Ù.');
	location.href="/customer/faq_list.asp";
}
function lg() {
	//alert('À¥»çÀÌÆ® ·Î±×ÀÎÀº ¾ÆÁ÷ ÁØºñÁßÀÔ´Ï´Ù.');
	location.href="/member/login.asp";
}
function jo() {
	//alert('À¥»çÀÌÆ® È¸¿ø°¡ÀÔÀº ¾ÆÁ÷ ÁØºñÁßÀÔ´Ï´Ù.');
	location.href="/member/join_agree.asp";
}
function ip() {
	alert('¾ÆÀÌµð/ºñ¹Ð¹øÈ£ Ã£±â´Â ¾ÆÁ÷ ÁØºñÁßÀÔ´Ï´Ù.');
}
function sa() {
	alert('Á¤Ç°µî·ÏÀº ¾ÆÁ÷ ÁØºñÁßÀÔ´Ï´Ù.');
}
function sf() {
	alert('¸ÅÀåÁ¤º¸´Â ÁØºñÁßÀÔ´Ï´Ù.');
}

//faq_list
function faq_list(n) {
	for(i = 1; i <= 10; i++){
		faq = document.getElementById("faq"+i);
		tit = document.getElementById("tit"+i);
		if(i == n){			
			faq.style.display = "block";
			tit.style.fontWeight = "bold";
		}else{
			faq.style.display = "none";	
			tit.style.fontWeight = "";
		}
	}
}

// ÅÇºä1
function tab1(item,num)
{
 var str="";
 for(i=1; i<=num; i++){
  if(i<1) str = "tab1_"+i;
  else str = "tab1_"+i;
  document.getElementById(str).style.display = "none";
 }
 document.getElementById(item).style.display = "";
}

/*
//doment.·¡µð
$(function(){
	autoImgSize();
});

//doment.onload
addLoadEvent(autoImgSize);
*/

//ShowToggle
function ShowToggle(ele){
	var ele = document.getElementById(ele);
	if(ele.style.display != 'block'){
		ele.style.display ="block";
		ele.style.zIndex = "1000";
	}else{
		ele.style.display ="none";
		ele.style.zIndex = "0";
	}
	
	return false;
}


// --- top¸Þ´º¸µÅ© --------
function product00()	//»óÇ°
{   location.href = "/product/ipole_read.asp?seq=22";  }
function brand00()	//°³¹ß¹è°æ
{   location.href = "/brand/orgin.asp";  }
function pr00()	//¾ð·Ðº¸µµ
{   location.href = "/pr/news_list.asp";  }
function customer00()	//°í°´¼¾ÅÍ
{   location.href = "/customer/store_list.asp";  }
function balance00()	//¹ß¶õ½ºÃ¼¾î
{   location.href = "/balance/balance_intro.asp";  }

// --- ¼­ºê¸Þ´º¸µÅ© --------
function product01_1()	//ipole 7_2
{   location.href = "/product/ipole_read.asp?seq=22";  }
function product01_2()	//ipole 7
{   location.href = "/product/ipole_read.asp";  }
function product01_3()	//ipole 5
{   location.href = "/product/ipole_read.asp?seq=21";  }
function product01_4()	//ipole 3
{   location.href = "/product/ipole_read.asp?seq=25";  }
function product01_5()	//ipole 1
{ alert('ºÎÇ° ±³È¯À¸·Î Á¦Ç° ÁÖ¹®ÀÌ Áö¿¬µÇ°í ÀÖ½À´Ï´Ù. \nºü¸¥ ½ÃÀÏ ³»¿¡ ÁÖ¹®ÀÌ °¡´ÉÇÏµµ·Ï Á¶Ä¡ÇÏ°Ú½À´Ï´Ù. \n¾çÇØ ºÎÅ¹µå¸³´Ï´Ù.'); 
  location.href = "/product/ipole_read.asp?seq=24";  }
function product02()	//PRODUCT CONCEPT
{   location.href = "/product/concept.asp";  }
function product03_1()	//Balance Chair-175R
{   location.href = "/product/balance_read.asp?seq=28";  }
function product03_2()	//Balance Chair-165S
{   location.href = "/product/balance_read.asp?seq=29";  }
function product03_3()	//Balance Chair-165R
{   location.href = "/product/balance_read.asp?seq=30";  }

function brand01()	//°³¹ß¹è°æ
{   location.href = "/brand/orgin.asp";  }
function brand02()	//iPole ÀÌ¾ß±â
{   location.href = "/brand/study1.asp";  }

function pr01()	//´º½º
{   location.href = "/pr/news_list.asp";  }
function pr02()	//°øÁö»çÇ×
{   location.href = "/pr/notice_list.asp";  }
function pr03()	//°Ç°­Á¤º¸
{   location.href = "/pr/tip_list.asp";  }
function pr04()	//»ç¿ëÈÄ±â
{   location.href = "/pr/story_list.asp";  }
function pr05()	//±¤°í
{   location.href = "/pr/ad_list.asp";  }
function pr06()	//ÀÌº¥Æ®
{   location.href = "/pr/event_list.asp";  }

function customer01()	//¸ÅÀå¾È³»
{   location.href = "/customer/store_list.asp";  }
function customer02()	//B to B »ó´ã
{   location.href = "/customer/btob.asp";  }
function customer03()	//A/S ½ÅÃ»
{   location.href = "/customer/as_write.asp";  }
function customer04()	//Q&A
{   location.href = "/customer/qna_write.asp";  }
function customer05()	//FAQ
{   location.href = "/customer/faq_list.asp";  }

function member01()	//LOGIN
{   location.href = "/member/login.asp";  }
function member02()	//JOIN
{   location.href = "/member/join_agree.asp";  }
function member03()	//FIND ID/PW
{   location.href = "/member/idpw.asp";  }
function member04()	//PRIVACY
{   location.href = "/member/protect.asp";  }
function member05()	//SERVICE
{   location.href = "/member/clause.asp";  }
function member06()	//EMAIL SPAM
{   location.href = "/member/email.asp";  }

function etc01()	//SITEMAP
{   location.href = "/etc/sitemap.asp";  }

function mypage01()	//LOGOUT
{   location.href = "/member/login_out.asp";  }
function mypage02()	//MYPAGE
{   location.href = "/member/my_modify.asp";  }
function mypage03()	//WITHDRAW
{   location.href = "/member/leave.asp";  }
function mypage04()	//PRIVACY
{   location.href = "/member/protect.asp";  }
function mypage05()	//SERVICE
{   location.href = "/member/clause.asp";  }
function mypage06()	//EMAIL SPAM
{   location.href = "/member/email.asp";  }

function balance01()	//¹ß¶õ½ºÃ¼¾î ¼Ò°³
{   location.href = "/balance/balance_intro.asp";  }
function balance02()	//¸ÅÀå¾È³»
{   location.href = "/balance/balance_zone.asp";  }
function balance03()	//³³Ç°½ÇÀû
{   location.href = "/balance/balance_support.asp";  }

