function CH_cafe(obj){
	if( obj == "1" ){
	    community1.style.display = 'block';
	    community2.style.display = 'none';
		community3.style.display = 'none';
		community4.style.display = 'none';
//	    cafelist3.style.display = 'none';
//		cafelist4.style.display = 'none';
	    document.com01.src = "images/hk_tab01_on.gif";
	    document.com02.src = "images/hk_tab02_off.gif";
		document.com03.src = "images/hk_tab03_off.gif";
	    document.com04.src = "images/hk_tab04_off.gif";

	}else if( obj == "2" ){
	    community1.style.display = 'none';
	    community2.style.display = 'block';
		community3.style.display = 'none';
		community4.style.display = 'none';
//	    cafelist3.style.display = 'none';
//		cafelist4.style.display = 'none';
	    document.com01.src = "images/hk_tab01_off.gif";
	    document.com02.src = "images/hk_tab02_on.gif";
		document.com03.src = "images/hk_tab03_off.gif";
	    document.com04.src = "images/hk_tab04_off.gif";


	}else if( obj == "3" ){
	    community1.style.display = 'none';
	    community2.style.display = 'none';
		community3.style.display = 'block';
		community4.style.display = 'none';
//	    cafelist3.style.display = 'none';
//		cafelist4.style.display = 'none';
	    document.com01.src = "images/hk_tab01_off.gif";
	    document.com02.src = "images/hk_tab02_off.gif";
		document.com03.src = "images/hk_tab03_on.gif";
	    document.com04.src = "images/hk_tab04_off.gif";


	}else if( obj == "4" ){
	    community1.style.display = 'none';
	    community2.style.display = 'none';
		community3.style.display = 'none';
		community4.style.display = 'block';
//	    cafelist3.style.display = 'none';
//		cafelist4.style.display = 'none';
	    document.com01.src = "images/hk_tab01_off.gif";
	    document.com02.src = "images/hk_tab02_off.gif";
		document.com03.src = "images/hk_tab03_off.gif";
	    document.com04.src = "images/hk_tab04_on.gif";
	}


}

/* »b¾÷ ¶Ù¿ì±â */
function openPop(url, name, width, height, noOption) {
	if ( ! noOption ) {
		var pop = window.open(url, name, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=1,top=0,left=0,width="+ width +",height="+ height);
	} else {
		var pop = window.open(url, name);
	}
	try { pop.focus(); } catch(e) {}
}

function openPop02(url, name, width, height, noOption) {
	if ( ! noOption ) {
		var pop = window.open(url, name, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=1,top=0,left=0,width="+ width +",height="+ height);
            pop.location.href=url;

	} else {
		var pop = window.open(url, name);
	}
	try { pop.focus(); } catch(e) {}
}
	function resizeHeight(fr) {
	fr = typeof fr == 'string' ? document.getElementById(fr) : fr;
	fr.setExpression('height',livebar.document.body.scrollHeight);
	}


/* flash È°¼ºÈ­ */
// flash °ßº»(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, º¯¼öÀ©µµ¿ì¸ðµå(transparent, opaque), º¸¾È»çÇ×(sameDomain, always))
function flashrule(url,w,h,id,bg,vars,win,allow){

 // ÇÃ·¡½Ã Á¤ÀÇ
 var flashStr=
 "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
 "<param name='allowScriptAccess' value='"+allow+"' />"+
 "<param name='movie' value='"+url+"' />"+
 "<param name='FlashVars' value='"+vars+"' />"+
 "<param name='wmode' value='"+win+"' />"+
 "<param name='menu' value='false' />"+
 "<param name='quality' value='high' />"+
 "<param name='bgcolor' value='"+bg+"' />"+
 "<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='"+allow+"' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
 "</object>";

 // ÇÃ·¡½Ã Ãâ·Â
 document.write(flashStr);
}

// flash Àû¿ë(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, º¯¼öÀ©µµ¿ì¸ðµå(transparent, opaque))
function flash(url,w,h,win){

 // ÇÃ·¡½Ã Á¤ÀÇ
 var flashStr=
 "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"'>"+
 "<param name='movie' value='"+url+"' />"+
 "<param name='quality' value='high' />"+
 "<param name='menu' value='false' />"+
 "<param name='wmode' value='"+win+"' />"+
 "<embed src='"+url+"' quality='high' wmode='"+win+"' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'  width='"+w+"' height='"+h+"'  />"+
 "</object>";


 // ÇÃ·¡½Ã Ãâ·Â
 document.write(flashStr);
}



