//ÇÃ·¡½Ã
function swf(flashURL,flashWidth,flashHeight,flashMain,flashSub)
{
		var sTag = ''
		+ '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width='+flashWidth+' height='+flashHeight+'>'
		+ '<param name="movie" value='+flashURL+'?pageNum='+flashMain+'&subNum='+flashSub+' />'
		+ '<param name="menu" value="false" />'
		+ '<param name="quality" value="high" />'
		+ '<param name="wmode" value="transparent" />'
		+ '<embed src='+flashURL+' menu="false" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+flashWidth+' height='+flashHeight+'></embed>'
		+ '</object>'
		+ '';
	document.write (sTag);
}


//png24
function setPng24(obj)
{ 
	obj.width=obj.height=1; 
	obj.className=obj.className.replace(/\bpng24\b/i,''); 
	obj.style.filter = 
	"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
	obj.src='';  
	return ''; 
}



//tab
function tab(none1,none2){
	document.getElementById(none1).style.display='none';
	document.getElementById(none2).style.display='';
}


//·Ñ¿À¹ö ÀÌ¹ÌÁö
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];}
}


//tab1

function show_div(obj) {
	MM_findObj('notice1_1').style.display='none';
	MM_findObj('notice1_2').style.display='none';
	MM_findObj('notice1_3').style.display='none';
	MM_findObj('notice1_4').style.display='none';
	MM_findObj('notice1_5').style.display='none';
	MM_findObj(obj).style.display='';
	lastest_form.bbs_code.value=obj;
}
notice_chk=false;

notice_val=0;

function loop_notice()
{
	if(!notice_chk) {
		if(notice_val==0) {
			MM_swapImgRestore();MM_swapImage('Image26','','/img/community/img_00_1_1C.gif',1);show_div('notice1_1');
			notice_val=1;
		} else if(notice_val==1) {
			MM_swapImgRestore();MM_swapImage('Image27','','/img/community/img_00_1_2C.gif',1);show_div('notice1_2');
			notice_val=2;
		} else if(notice_val==2) {
			MM_swapImgRestore();MM_swapImage('Image28','','/img/community/img_00_1_3C.gif',1);show_div('notice1_3');
			notice_val=3;
		} else if(notice_val==3) {
			MM_swapImgRestore();MM_swapImage('Image29','','/img/community/img_00_1_4C.gif',1);show_div('notice1_4');
			notice_val=4;
		} else if(notice_val==4) {
			MM_swapImgRestore();MM_swapImage('Image30','','/img/community/img_00_1_5C.gif',1);show_div('notice1_5');
			notice_val=0;
		}
	}
}
//window.setInterval("loop_notice()",3000);

//tab2
function show_div2(obj) {
	MM_findObj('notice2_1').style.display='none';
	MM_findObj('notice2_2').style.display='none';
	MM_findObj('notice2_3').style.display='none';
	MM_findObj(obj).style.display='';
	lastest_form2.bbs_code2.value=obj;
}
notice_chk2=false;

notice2_val=0;

function loop_notice2()
{
	if(!notice_chk2) {
		if(notice2_val==0) {
			MM_swapImgRestore();MM_swapImage('Image31','','/img/community/img_00_2_1C.gif',1);show_div2('notice2_1');
			notice2_val=1;
		} else if(notice2_val==1) {
			MM_swapImgRestore();MM_swapImage('Image32','','/img/community/img_00_2_2C.gif',1);show_div2('notice2_2');
			notice2_val=2;
		} else if(notice2_val==2) {
			MM_swapImgRestore();MM_swapImage('Image33','','/img/community/img_00_2_3C.gif',1);show_div2('notice2_3');
			notice2_val=0;
		}
	}
}
//window.setInterval("loop_notice2()",3000);



// °æ°í¸Þ½ÃÁö
function msg(){ 
alert ('ÁØºñÁßÀÔ´Ï´Ù.'); 
} 

//»õÃ¢¿­±â
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


//·¹ÀÌ¾îÆË¾÷
var x =0
var y=0
drag = 0
move = 0
window.document.onmousemove = mouseMove
window.document.onmousedown = mouseDown
window.document.onmouseup = mouseUp
window.document.ondragstart = mouseStop
function mouseUp() {
move = 0
}
function mouseDown() {
if (drag) {
clickleft = window.event.x - parseInt(dragObj.style.left)
clicktop = window.event.y - parseInt(dragObj.style.top)
dragObj.style.zIndex += 1
move = 1
}
}
function mouseMove() {
if (move) {
dragObj.style.left = window.event.x - clickleft
dragObj.style.top = window.event.y - clicktop
}
}
function mouseStop() {
window.event.returnValue = false
}
function Show(divid)
{
divid.filters.blendTrans.apply();
divid.style.visibility = "visible";
divid.filters.blendTrans.play();
}
function Hide(divid) {
divid.filters.blendTrans.apply();
divid.style.visibility = "hidden";
divid.filters.blendTrans.play();
}


