//******************************************************************************************************
// Eexplanation : ÄíÅ°»ý¼º/»èÁ¦
//******************************************************************************************************
//setCookie(ÄíÅ°ÀÌ¸§, ÄíÅ°°ª, ÄíÅ°À¯È¿½Ã°£); 
function setCookie( cookieName, cookieValue, expires, name )
{
  var today = new Date();
	var expiry = new Date(today.getTime() + expires * 24 * 60 * 60 * 1000);
	document.cookie=cookieName + "=" + toUTF8(cookieValue) +
   ((expires)? "; expires=" + expiry.toGMTString() : ""); 
	 
	if(cookieValue == 'linklist1'){
		alert("[À¥/¹®È­]À¸·Î ÃÊ±âÈ­¸éÀÌ ÀúÀåµÇ¾ú½À´Ï´Ù!");
	}else if(cookieValue == 'linklist2'){
		alert("[»ýÈ°/°æÁ¦]À¸·Î ÃÊ±âÈ­¸éÀÌ ÀúÀåµÇ¾ú½À´Ï´Ù!");
	}else if(cookieValue == 'linklist3'){
		alert("[ÀÚ¿¬/°Ç°­]À¸·Î ÃÊ±âÈ­¸éÀÌ ÀúÀåµÇ¾ú½À´Ï´Ù!");
	}else if(cookieValue == 'linklist4'){
		alert("[¾ð·Ð/ÀÌ½´]À¸·Î ÃÊ±âÈ­¸éÀÌ ÀúÀåµÇ¾ú½À´Ï´Ù!");
	}else if(cookieValue == 'linklist5'){
		alert("[¿µ¼º/½É·É]À¸·Î ÃÊ±âÈ­¸éÀÌ ÀúÀåµÇ¾ú½À´Ï´Ù!");	
	}
}

function delete_cookie(expires){
	form = document.searchform;
	for(i=0;i<10;i++){
			form.keyword[i].value = '';
			setCookie('multiSearch_'+i , form.keyword[i].value, expires);
		}
}
/*
for(i=0;i<10;i++){
    setCookie('multiSearch_'+i , form.keyword[i].value, 365);
  }	
*/	
//******************************************************************************************************
// Eexplanation : ¿À´ÃÀÇ Å¸·ÎÄ«µå
//******************************************************************************************************
function tarot(theme)
 {
 window.open('http://link.digitaltarot.com/3d/go/free.asp?content='+theme,'tarot','width=100%, height=100%, menubar=no, toolbar=no, scrollbars=no, resizable=no');
 return;
 }
//******************************************************************************************************
// Eexplanation : ¾ÆÀÌÇÁ·¹ÀÓ ³»¿ë ¹Ù²Ù±â3 (¿À´Ã ³ªÀÇ Ãµ±â¿¡³ÊÁö)
//******************************************************************************************************
function ChunkiToday()
{
 document.getElementById('chunkiToday').innerHTML = "<iframe scrolling='no' frameborder=0 width=791 height=586 marginwidth=0 marginheight=0 src='/moodangnet/chunki.php' id='chunki'></iframe>";
}
//******************************************************************************************************
// Eexplanation : ¾ÆÀÌÇÁ·¹ÀÓ ³»¿ë ¹Ù²Ù±â (chunkiToday) ½ºÅ©·Ñ¹Ù = yes ÁÖÁ¦º° ¸µÅ© Àü¿ë
//******************************************************************************************************
function iframeNews(url)
{
 document.getElementById('chunkiToday').innerHTML = "<div style='width:791px; height:586px;background-color:#000000;'><iframe scrolling='yes' frameborder='0' src=" + url +" id='chunki'></iframe></div>";
}
//******************************************************************************************************
// Eexplanation : ¾ÆÀÌÇÁ·¹ÀÓ ³»¿ë ¹Ù²Ù±â (chunkiToday) ½ºÅ©·Ñ¹Ù ¿É¼Ç = yes / auto / no
//******************************************************************************************************
function iframeChange(url,scroll_option)
{
 document.getElementById('chunkiToday').innerHTML = "<iframe scrolling=" + scroll_option + " frameborder='0' width='791' height='586' marginwidth='0' marginheight='0' src=" + url +" id='chunki'></iframe>";
}
//******************************************************************************************************
// Eexplanation : ¾ÆÀÌÇÁ·¹ÀÓ ³»¿ë ¹Ù²Ù±â (kbs´º½º¼Óº¸ º¸±â)
//******************************************************************************************************
function kbsNewsTicker()
{
 document.getElementById('kbsNT').innerHTML = "<iframe src='/moodangnet/news/index.php' frameborder='0' scrolling='no'></iframe>";
}
//******************************************************************************************************
// Eexplanation : »õÃ¢ ¶ç¿ì±â
//******************************************************************************************************
function openNewWindow(window) {
open (window,"NewWindow");
}
//******************************************************************************************************
// Eexplanation : Ä«Å×°í¸® ¸Þ´º class ¹Ù²Ù±â (contentList)
//******************************************************************************************************
function Category_Color(obj,linklist_obj) 
{ 

	document.getElementById('Category_1').className= '';
	document.getElementById('Category_2').className= '';
	document.getElementById('Category_3').className= '';
	document.getElementById('Category_4').className= '';
	document.getElementById('Category_5').className= '';
	
	document.getElementById(obj).className = 'select_category';
	
	form = document.content;
	form.ContentList.value = linklist_obj;
}
//******************************************************************************************************
// Eexplanation : Ä«Å×°í¸® ³»¿ë ¹Ù²Ù±â (contentList)
//******************************************************************************************************
function Content_Change(obj)
{

	document.getElementById('linklist1').style.display = 'none';
	document.getElementById('linklist2').style.display = 'none';
	document.getElementById('linklist3').style.display = 'none';
	document.getElementById('linklist4').style.display = 'none';
	document.getElementById('linklist5').style.display = 'none';
	
	document.getElementById(obj).style.display = 'block';
	
	form = document.content;
	form.ContentList.value = obj;
}
//******************************************************************************************************
// Eexplanation : ÇöÀç Ä«Å×°í¸® ±â¾ïÇÏ±â (Category_save)
//******************************************************************************************************
function Category_save()
{
	form = document.content;
	setCookie('ContentList', form.ContentList.value , '365');
}
//******************************************************************************************************
// Eexplanation : linkweb ¼±ÅÃ ¹è°æ»ö ÃÊ±âÈ­½ÃÅ°±â
//******************************************************************************************************
function linkwebBG_d() {
	
	document.getElementById('tool_01').className = 'twinmenu';
	document.getElementById('tool_02').className = 'twinmenu';
	document.getElementById('tool_03').className = 'twinmenu';
	document.getElementById('tool_04').className = 'twinmenu';
	document.getElementById('tool_05').className = 'twinmenu';
	document.getElementById('tool_06').className = 'twinmenu';
	document.getElementById('tool_07').className = 'twinmenu';
	document.getElementById('tool_08').className = 'twinmenu';
}
//******************************************************************************************************
// Eexplanation : moodang_family ¸Þ´º class ¹Ù²Ù±â
//******************************************************************************************************
function moodang_family(obj) 
{ 

	linkwebBG_d();
	
	document.getElementById(obj).className = 'family_select';
}
//******************************************************************************************************
// Eexplanation : linkweb ¼±ÅÃ ¸Þ´º class ¹Ù²Ù±â
//******************************************************************************************************
function Change_class(obj) {

	linkwebBG_d();
	
	document.getElementById(obj).className = 'twinmenu_select';
											 
}
//******************************************************************************************************
// Eexplanation : ¸Ç À§·Î ÀÌµ¿
//******************************************************************************************************
function movetop() { window.scrollTo(0,0) }
//******************************************************************************************************
// Eexplanation : ¸Ç ¾Æ·¡·Î·Î ÀÌµ¿
//******************************************************************************************************
function movebottom() { 
sw=screen.availWidth; //ÇØ»óµµ ³Êºñ
sh=screen.availHeight; // Äü·±Ä¡¸¦ Á¦¿ÜÇÑ ³ôÀÌ

window.scrollTo(0,sh); 
}
