// Áö¿ªº»ºÎ ¿¬¶ôÃ³
function toggleView(target)
{
	var sTarget = target.href.split("#");
	var aTarget = document.getElementById(sTarget[sTarget.length-1]);
	if(aTarget.style.display == "none") aTarget.style.display = "block";
	else aTarget.style.display = "none";
}


// ÇÃ·¡½Ã È°¼ºÈ­
function showFlash(flaFile, widths, heights, btrans)
{ 
  var strings = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="' + widths + '"  height="' + heights + '"><param name="movie" value="' + flaFile + '"><param name="quality" value="high">';
  strings += '<embed src="' + flaFile + '" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + widths + '" height="' + heights + '"></embed> </object>';
  document.write(strings);
  return;
}


// eyeÁÁ¾Æ
function eyeFlash(flaFile, widths, heights, btrans)
{ 
  var strings = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="' + widths + '"  height="' + heights + '"><param name="movie" value="' + flaFile + '"><param name="quality" value="high">';
  strings += '<embed src="' + flaFile + '" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + widths + '" height="' + heights + '"></embed> </object>';
  return strings;
}


// Åõ¸í¹è°æ ÇÃ·¡½Ã È°¼ºÈ­
function TransFlash(flaFile, widths, heights, btrans)
{ 
  var strings = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="' + widths + '"  height="' + heights + '"><param name="movie" value="' + flaFile + '"><param name="quality" value="high"><param name="wmode" value="transparent">';
  strings += '<embed src="' + flaFile + '" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + widths + '" height="' + heights + '"></embed></object>';
  document.write(strings);
  return;
}



// Áñ°ÜÃ£±â Ãß°¡
function favor()
{
window.external.AddFavorite('http://www.dailian.co.kr','µ¥ÀÏ¸®¾È')
}


// ÆË¾÷
function MM_openBrWindow(theURL,winName,features)
{ //v2.0
  window.open(theURL,winName,features);
}


// ³ÝÆ÷ÅÍ »çÁø ¸¸µé±â
function makelist(no){
	var str ="";
	tmp =  document.getElementById("fnum").value;
	if(no==""){no=0;}
	else{no = no-1;}

	for(i=0;i<tmp;i++){
		j=i+1+no
		str = str + "<p style=margin-top:5px;>" + j +") <input type='file' name='img[" + j +"]' size=25 class='npt_write_box' onchange=\"_imgload(this.value, "+j+", this);\"><br>&nbsp;&nbsp;&nbsp;ÀúÀÛ±ÇÀÚ/ÃâÃ³ : <input type='text' name='owner[" + j +"]' size=25 value='¨Ï ' maxlength=40 class='npt_write_box'>&nbsp;&nbsp;&nbsp;À§Ä¡ : <input type=radio name='align[" + j +"]' value='L'> ¿ÞÂÊ&nbsp;&nbsp;<input type=radio name='align[" + j +"]' value='C' checked> °¡¿îµ¥&nbsp;&nbsp;<input type=radio name='align[" + j +"]' value='R'> ¿À¸¥ÂÊ<br> &nbsp;&nbsp;&nbsp;¼³¸í : <input type='text' name='img_c[" + j +"]' size=90 maxlength=200 class='npt_write_box'><p style=margin-top:5px;>";
	}
	divimg.innerHTML =str;
}


// ·¹ÀÌ¾î ÇÃ·ÎÆÃ ¹è³Ê
function closePopLayer(lname){
 eval(lname + ".style.display = \"none\"");
}
function getPopCookie(name){
	var nameOfCookie1 = name + "=";
	var x = 0;
	while(x<=document.cookie.length){
		var y = (x+nameOfCookie1.length);
		if (document.cookie.substring(x,y) == nameOfCookie1){
			if ((endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
				endOfCookie = document.cookie.length;
			return unescape( document.cookie.substring( y, endOfCookie ) );
		}
		x = document.cookie.indexOf( " ", x ) + 1;
		if ( x == 0 )
			break;
	}
	return "";
}
function setPopCookie(name,value,expiredays){
	var todayDate1 = new Date();
	todayDate1.setDate( todayDate1.getDate() + expiredays );
	document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate1.toGMTString() + ";"
}
function cPopClose(name){
    setPopCookie(name,"done",1);
	eval(name + ".style.display = \"none\"");
}
function chkPopLayer(name){
    if (getPopCookie(name)!="done"){
        eval(name + ".style.display = \"\"");
    }
}
function goPopUrl(goUrl,name,goType){
    if(goType == 1) {
        top.location = goUrl;
    } else {

		var url = goUrl;
		var tt = window.open(goUrl,"Event","height=100,width=100,scrollbars=yes,resizable=no");

    }
}


// ½ºÅ©·Ñ¸µ ¹è³Ê
function addEvent(obj,evt,fnc)
{if(document.all)
{obj.attachEvent(evt,fnc);}
else
{evt=evt.replace('on','');obj.addEventListener(evt,fnc,true)}}