
function getIcon(obj,category,size){

	if(size=="90"){
		switch(category){
			case "100001":eval("document.all."+obj+".src='/images/service2006/thumb_icons/design_photo_90.jpg'");break;
			case "100002":eval("document.all."+obj+".src='/images/service2006/thumb_icons/multi_vr_90.jpg'");break;
			case "100003":eval("document.all."+obj+".src='/images/service2006/thumb_icons/audio_music_90.jpg'");break;
			case "100004":eval("document.all."+obj+".src='/images/service2006/thumb_icons/document_90.jpg'");break;
			case "100005":eval("document.all."+obj+".src='/images/service2006/thumb_icons/design_illust_90.jpg'");break;
			case "100006":eval("document.all."+obj+".src='/images/service2006/thumb_icons/design_photo_90.jpg'");break;
			case "100007":eval("document.all."+obj+".src='/images/service2006/thumb_icons/design_pattern_90.jpg'");break;
			case "100008":eval("document.all."+obj+".src='/images/service2006/thumb_icons/multi_vr_90.jpg'");break;
			case "100009":eval("document.all."+obj+".src='/images/service2006/thumb_icons/multi_vod_90.jpg'");break;
			case "100010":eval("document.all."+obj+".src='/images/service2006/thumb_icons/multi_flash_90.jpg'");break;
			case "100011":eval("document.all."+obj+".src='/images/service2006/thumb_icons/multi_cell_90.jpg'");break;
			case "100012":eval("document.all."+obj+".src='/images/service2006/thumb_icons/audio_music_90.jpg'");break;
			case "100013":eval("document.all."+obj+".src='/images/service2006/thumb_icons/audio_effect_90.jpg'");break;
			case "100014":eval("document.all."+obj+".src='/images/service2006/thumb_icons/audio_source_90.jpg'");break;
			case "100015":eval("document.all."+obj+".src='/images/service2006/thumb_icons/document_90.jpg'");break;
			case "100016":eval("document.all."+obj+".src='/images/service2006/thumb_icons/document_90.jpg'");break;
			case "100017":eval("document.all."+obj+".src='/images/service2006/thumb_icons/document_90.jpg'");break;
			case "100018":eval("document.all."+obj+".src='/images/service2006/thumb_icons/document_90.jpg'");break;
			case "100019":eval("document.all."+obj+".src='/images/service2006/thumb_icons/document_90.jpg'");break;
			case "100020":eval("document.all."+obj+".src='/images/service2006/thumb_icons/document_90.jpg'");break;
			case "100080":eval("document.all."+obj+".src='/images/service2006/thumb_icons/document_90.jpg'");break;
			case "100183":eval("document.all."+obj+".src='/images/service2006/thumb_icons/design_font_90.jpg'");break;
			case "100184":eval("document.all."+obj+".src='/images/service2006/thumb_icons/design_font_90.jpg'");break;
			default :eval("document.all."+obj+".src='/images/service2006/thumb_icons/document_90.jpg'");break;
		}
	}else{
		switch(category){
			case "100001":eval("document.all."+obj+".src='/images/service2006/thumb_icons/design_photo.jpg'");break;
			case "100002":eval("document.all."+obj+".src='/images/service2006/thumb_icons/multi_vr.jpg'");break;
			case "100003":eval("document.all."+obj+".src='/images/service2006/thumb_icons/audio_music.jpg'");break;
			case "100004":eval("document.all."+obj+".src='/images/service2006/thumb_icons/document.jpg'");break;
			case "100005":eval("document.all."+obj+".src='/images/service2006/thumb_icons/design_illust.jpg'");break;
			case "100006":eval("document.all."+obj+".src='/images/service2006/thumb_icons/design_photo.jpg'");break;
			case "100007":eval("document.all."+obj+".src='/images/service2006/thumb_icons/design_pattern.jpg'");break;
			case "100008":eval("document.all."+obj+".src='/images/service2006/thumb_icons/multi_vr.jpg'");break;
			case "100009":eval("document.all."+obj+".src='/images/service2006/thumb_icons/multi_vod.jpg'");break;
			case "100010":eval("document.all."+obj+".src='/images/service2006/thumb_icons/multi_flash.jpg'");break;
			case "100011":eval("document.all."+obj+".src='/images/service2006/thumb_icons/multi_cell.jpg'");break;
			case "100012":eval("document.all."+obj+".src='/images/service2006/thumb_icons/audio_music.jpg'");break;
			case "100013":eval("document.all."+obj+".src='/images/service2006/thumb_icons/audio_effect.jpg'");break;
			case "100014":eval("document.all."+obj+".src='/images/service2006/thumb_icons/audio_source.jpg'");break;
			case "100015":eval("document.all."+obj+".src='/images/service2006/thumb_icons/document.jpg'");break;
			case "100016":eval("document.all."+obj+".src='/images/service2006/thumb_icons/document.jpg'");break;
			case "100017":eval("document.all."+obj+".src='/images/service2006/thumb_icons/document.jpg'");break;
			case "100018":eval("document.all."+obj+".src='/images/service2006/thumb_icons/document.jpg'");break;
			case "100019":eval("document.all."+obj+".src='/images/service2006/thumb_icons/document.jpg'");break;
			case "100020":eval("document.all."+obj+".src='/images/service2006/thumb_icons/document.jpg'");break;
			case "100080":eval("document.all."+obj+".src='/images/service2006/thumb_icons/document.jpg'");break;
			case "100183":eval("document.all."+obj+".src='/images/service2006/thumb_icons/design_font_90.jpg'");break;
			case "100184":eval("document.all."+obj+".src='/images/service2006/thumb_icons/design_font_90.jpg'");break;
			default :eval("document.all."+obj+".src='/images/service2006/thumb_icons/document.jpg'");break;
		}

	}
}

/*
100005	100001	ÀÏ·¯½ºÆ®	2	1	2006-01-16 ¿ÀÈÄ 4:21:55	2006-01-16 ¿ÀÈÄ 4:21:55	T
100006	100001	Æ÷Åä	2	2	2006-01-16 ¿ÀÈÄ 4:22:00	2006-01-16 ¿ÀÈÄ 4:22:00	T
100007	100001	¹®¾ç	2	3	2006-01-16 ¿ÀÈÄ 4:22:03	2006-01-16 ¿ÀÈÄ 4:22:03	T
100008	100002	VR(°¡»óÃ¼Çè)	2	1	2006-01-16 ¿ÀÈÄ 4:22:16	2006-01-16 ¿ÀÈÄ 4:22:16	T
100009	100002	VOD(µ¿¿µ»ó)	2	2	2006-01-16 ¿ÀÈÄ 4:22:23	2006-01-16 ¿ÀÈÄ 4:22:23	T
100010	100002	Flash Animation	2	3	2006-01-16 ¿ÀÈÄ 4:22:30	2006-01-16 ¿ÀÈÄ 4:22:30	T
100011	100002	Cell Animation	2	4	2006-01-16 ¿ÀÈÄ 4:22:36	2006-01-16 ¿ÀÈÄ 4:22:36	T
100012	100003	À½¾Ç	2	1	2006-01-16 ¿ÀÈÄ 4:22:46	2006-01-16 ¿ÀÈÄ 4:22:46	T
100013	100003	À½Çâ	2	2	2006-01-16 ¿ÀÈÄ 4:22:51	2006-01-16 ¿ÀÈÄ 4:22:51	T
100014	100003	À½¿ø	2	3	2006-01-16 ¿ÀÈÄ 4:22:54	2006-01-16 ¿ÀÈÄ 4:22:54	T
100015	100004	½Ã³ª¸®¿À	2	5	2006-01-16 ¿ÀÈÄ 4:23:02	2006-01-16 ¿ÀÈÄ 4:23:02	T
100016	100004	½Ã³ñ½Ã½º	2	0	2006-01-16 ¿ÀÈÄ 4:23:06	2006-01-16 ¿ÀÈÄ 4:23:06	T
100017	100004	¹ø¿ª¼­	2	1	2006-01-16 ¿ÀÈÄ 4:23:09	2006-01-16 ¿ÀÈÄ 4:23:09	T
100018	100004	ÇØ¼³/ºÐ¼®¼­	2	2	2006-01-16 ¿ÀÈÄ 4:23:13	2006-01-16 ¿ÀÈÄ 4:23:13	T
100019	100004	Ã¢ÀÛ/¼Ò¼³	2	6	2006-01-16 ¿ÀÈÄ 4:23:16	2006-01-16 ¿ÀÈÄ 4:23:16	T
100020	100004	ÀÌ¾ß±â	2	4	2006-01-16 ¿ÀÈÄ 4:23:20	2006-01-16 ¿ÀÈÄ 4:23:20	T
100080	100004	½ÇÈ­/±â·Ï¼­	2	3	2006-01-25 ¿ÀÈÄ 4:52:31	2006-01-25 ¿ÀÈÄ 4:52:31	T
*/



//Áß¾Ó ÆË¾÷
//pop_win('win', 'http://', 0, 0, 300, 200, 0, 0, 0, 0, 0);
function pop_win(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
	toolbar_str = toolbar ? 'yes' : 'no';
	menubar_str = menubar ? 'yes' : 'no';
	statusbar_str = statusbar ? 'yes' : 'no';
	scrollbar_str = scrollbar ? 'yes' : 'no';
	resizable_str = resizable ? 'yes' : 'no';

	var left = (screen.width - width) / 2;
	var top  = (screen.height - height) / 2;
	winprops = 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str
	win = window.open(url, name, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}





//ÀÌ¹ÌÁöÀÇ ³ÐÀÌ°¡ Å¬°æ¿ì ÀÛ°Ôº¯°æÇÔ.
function resize_photo(obj,size){
	if(obj.width > size){
			obj.width = size;
	}
}


function resize_photo2(obj,w,h){
	//alert(obj.width);
	if(obj.width > w){
			obj.width = w;
	}
	if(obj.height > h){
			obj.height = h;
	}
}

//¾ÆÀÌÇÁ·¹ÀÓ ¸®»çÀÌÁî 2006-03-05 Á¶±Ô½Ä Ãß°¡
function reSizeIframe(FrameName) {
	var objFrame = FrameName.document.body;
	var objBody = document.FrameName;
	ifrmHeight = objFrame.scrollHeight + (objFrame.offsetHeight - objFrame.clientHeight);
	objBody.style.height = ifrmHeight
}

//ÀÌ¹ÌÁö¸¦ »õÃ¢¿¡¼­º¸±â.
function ViewPhoto(url,title,coi) {
	if (!coi)
	{
		coi = "<span style='font-family: µ¸¿ò; font-size: 11px; letter-spacing: -1;'>UCI ½Äº°¹øÈ£ ¾øÀ½</span>";
	}
var imgwin = window.open("",'WIN','scrollbars=0,status=0,toolbar=0,resizable=1,location=no,menu=no,width=10,height=10');
imgwin.focus();
imgwin.document.open();
imgwin.document.write("<title>"+title+"</title>\n");
imgwin.document.write("<sc"+"ript>\n");
imgwin.document.write('function WindowReSize(){\n');
imgwin.document.write(' 	useragent = navigator.userAgent;\n');
imgwin.document.write('	if(useragent.indexOf("Windows NT 5.1")>0){\n');
imgwin.document.write('		window.resizeTo(BodyContent.offsetWidth+10, BodyContent.offsetHeight+60);\n');
imgwin.document.write('	}\n');
imgwin.document.write('	else{\n');
imgwin.document.write('		window.resizeTo(BodyContent.offsetWidth+10, BodyContent.offsetHeight+32);\n');
imgwin.document.write('	}\n');

imgwin.document.write("  var height = screen.height;\n");
imgwin.document.write("  var width = screen.width;\n");
imgwin.document.write("pic = document.il;\n");
imgwin.document.write("  if (name == 'Microsoft Internet Explorer') { myHeight = eval(pic).height + 20; myWidth = eval(pic).width + 2;\n");
imgwin.document.write("  } else { myHeight = eval(pic).height ; myWidth = eval(pic).width; }\n");
imgwin.document.write("  var leftpos = width / 2 - myWidth / 2;\n");
imgwin.document.write("  var toppos = height / 2 - myHeight / 2; \n");
imgwin.document.write("  self.moveTo(leftpos, toppos);\n");
imgwin.document.write('}\n');
imgwin.document.write('function imgerror(obj){\n');
imgwin.document.write('	obj.src="/images/service2006/thumb_icons/design_photo.jpg";\n');
imgwin.document.write('}\n');
imgwin.document.write("</sc"+"ript>\n");
imgwin.document.write('<body topmargin="0" leftmargin="0" onload="WindowReSize();">\n');
imgwin.document.write('<table id="BodyContent" cellpadding="1" cellspacing="1" bgcolor="#DDDDDD">\n');
imgwin.document.write('<tr><td valign="top" bgcolor="#F1F1F1" style="padding: 10 10 10 10;">\n');
imgwin.document.write('	<table cellpadding="0" cellspacing="0" width="100%">\n');
imgwin.document.write('	<tr><td width="100%" align="center">\n');
imgwin.document.write('		<table cellpadding="10" cellspacing="0" bgcolor="white">\n');
imgwin.document.write('		<tr><td align="center">\n');
imgwin.document.write('			<img src="'+url+'" border="0" xwidth=100 xheight=10 name=il onclick="self.close()" style="cursor:hand;" title="ÀÌ¹ÌÁö¸¦ Å¬¸¯ÇÏ½Ã¸é ´ÝÈü´Ï´Ù" onerror="imgerror(this)"></td></tr></table></td></tr>\n');
imgwin.document.write('		<tr><td height="5"></td></tr>\n');
imgwin.document.write('		<tr><td align="center">\n');
imgwin.document.write('			<table cellpadding="0" cellspacing="0" width="100%">\n');
imgwin.document.write('			<tr><td bgcolor="#F9F9F9" style="font-family: µ¸¿ò; font-size: 12px; padding: 10 10 10 10;">\n');
imgwin.document.write('				Á¦¸ñ :&nbsp;&nbsp;'+title+'<br/>\n');
imgwin.document.write('				<img width="20" height="10" src="/images/service2006/common/coi_blue.gif" align="absMiddle">&nbsp;&nbsp;<span style=" font-family: Tahoma; font-size: 10px; color:#AAAAAA;">'+coi+'</span></td></tr>\n');
imgwin.document.write('			</table></td></tr></table>\n');
imgwin.document.write('		</td></tr></table>\n');
imgwin.document.write('</body>\n');
imgwin.document.close();
}




//À¯Åë´ÜÀ§ ÀÌ¹ÌÁö¸¦ »õÃ¢¿¡¼­º¸±â.
function ViewSetPhoto(url,title,service) {
var imgwin = window.open("",'WIN','scrollbars=0,status=0,toolbar=0,resizable=1,location=no,menu=no,width=10,height=10');
imgwin.focus();
imgwin.document.open();
imgwin.document.write("<title>"+title+"</title>\n");
imgwin.document.write("<sc"+"ript>\n");
imgwin.document.write('function WindowReSize(){\n');
imgwin.document.write(' 	useragent = navigator.userAgent;\n');
imgwin.document.write('	if(useragent.indexOf("Windows NT 5.1")>0){\n');
imgwin.document.write('		window.resizeTo(BodyContent.offsetWidth+10, BodyContent.offsetHeight+60);\n');
imgwin.document.write('	}\n');
imgwin.document.write('	else{\n');
imgwin.document.write('		window.resizeTo(BodyContent.offsetWidth+10, BodyContent.offsetHeight+32);\n');
imgwin.document.write('	}\n');
imgwin.document.write("  var height = screen.height;\n");
imgwin.document.write("  var width = screen.width;\n");
imgwin.document.write("pic = document.il;\n");
imgwin.document.write("  if (name == 'Microsoft Internet Explorer') { myHeight = eval(pic).height + 20; myWidth = eval(pic).width + 2;\n");
imgwin.document.write("  } else { myHeight = eval(pic).height ; myWidth = eval(pic).width; }\n");
imgwin.document.write("  var leftpos = width / 2 - myWidth / 2;\n");
imgwin.document.write("  var toppos = height / 2 - myHeight / 2; \n");
imgwin.document.write("  self.moveTo(leftpos, toppos);\n");
imgwin.document.write('}\n');
imgwin.document.write("</sc"+"ript>\n");
imgwin.document.write('<body topmargin="0" leftmargin="0" onload="WindowReSize();">\n');
imgwin.document.write('<table id="BodyContent" cellpadding="1" cellspacing="1" bgcolor="#DDDDDD">\n');
imgwin.document.write('<tr><td valign="top" bgcolor="#F1F1F1" style="padding: 10 10 10 10;">\n');
imgwin.document.write('	<table cellpadding="0" cellspacing="0" width="100%">\n');
imgwin.document.write('	<tr><td width="100%" align="center">\n');
imgwin.document.write('		<table cellpadding="10" cellspacing="0" bgcolor="white">\n');
imgwin.document.write('		<tr><td align="center">\n');
imgwin.document.write('			<img src="'+url+'" border="0" xwidth=100 xheight=10 name=il onclick="self.close()" style="cursor:hand;" title="ÀÌ¹ÌÁö¸¦ Å¬¸¯ÇÏ½Ã¸é ´ÝÈü´Ï´Ù"></td></tr></table></td></tr>\n');
imgwin.document.write('		<tr><td height="5"></td></tr>\n');
imgwin.document.write('		<tr><td align="center">\n');
imgwin.document.write('			<table cellpadding="0" cellspacing="0" width="100%">\n');
imgwin.document.write('			<tr><td bgcolor="#F9F9F9" style="font-family: µ¸¿ò; font-size: 12px; padding: 10 10 10 10;">\n');
imgwin.document.write('				Á¦¸ñ :&nbsp;&nbsp;'+title+'<br/>\n');
imgwin.document.write('				¼­ºñ½º¸í :&nbsp;&nbsp;'+service+'</span></td></tr>\n');
imgwin.document.write('			</table></td></tr></table>\n');
imgwin.document.write('		</td></tr></table>\n');
imgwin.document.write('</body>\n');
imgwin.document.close();
}


function TextCheckByte(newText, maxbyte, txtbox, sizebox) {
    var tmpStr;
    var temp=0;
    var oneChar;
    var newCount;
		var txtboxinput		//TEXTAREA °³Ã¼(½ÇÁ¦³»¿ëÀÔ·ÂÇÊµå)
		var sizeboxinput  //SPAN °³Ã¼ (»çÀÌÁîÇ¥½Ã)

    newCount = 0;

    tmpStr = new String(newText);
    temp = tmpStr.length;

    for (k=0;k<temp;k++)
    {
        oneChar = tmpStr.charAt(k);

        if (escape(oneChar).length > 4) {
            newCount += 2;
        }
        else if (oneChar!='\r') {
            newCount++;
        }
    }

   	//ÀÔ·Â¹Ú½º(TEXTAREA)
		txtboxinput = eval("document.all."+txtbox);

		//»çÀÌÁîÇ¥½Ã¹Ú½º (SPAN)
		sizeboxinput = eval("document.all."+sizebox);

    sizeboxinput.innerHTML = '(' + newCount + '/'+ maxbyte + ')Byte';

    if(newCount>maxbyte) {
        reserve = newCount-maxbyte;
        alert("º» °Ô½ÃÆÇ¿¡´Â " + maxbyte + "¹ÙÀÌÆ® ÀÌ»óÀ» ¾²½Ç¼ö ¾ø½À´Ï´Ù.");
				txtboxinput.value = oldText;
				sizeboxinput.innerHTML = '(' + oldCount + '/' + maxbyte + ')Byte';
        return;
    }else{
		oldText = newText;
		oldCount = newCount;
		}
}


////////////////////////////////////////
///////// RollOver ÇÔ¼ö ½ÃÀÛ
////////////////////////////////////////

	function RollOver(Obj, a){
		Obj.src=a;		//Obj=ÀÌ¹ÌÁö °´Ã¼, a´Â º¯°æÇÒ ÀÌ¹ÌÁö
	}

////////////////////////////////////////
///////// RollOver ÇÔ¼ö ³¡
////////////////////////////////////////


function WindowReSize(){
 	useragent = navigator.userAgent;
 	//alert(useragent);
 	//Window XPÀÇ °æ¿ì »óÅÂÇ¥½ÃÁÙ ¿µ¿ª±îÁö Å°¿öÁØ´Ù.
 	//alert(BodyContent.offsetWidth);
	if(useragent.indexOf("Windows NT 5.1")>0){
		window.resizeTo(BodyContent.offsetWidth+10, BodyContent.offsetHeight+45);
	}
	else{
		window.resizeTo(BodyContent.offsetWidth+10, BodyContent.offsetHeight+40);
	}
}

// ¼ýÀÚ¸¸ ÀÔ·Â¹Þ±â
function fnOnlyNumber()
{
	if(event.keyCode < 48 || event.keyCode > 57)
	event.keyCode = null;
}


// Ctrl+C & Ctrl+V ¹æÁö..
function fnChkNumber(arg)
{
	var val;
	val = arg.value;

	for(i = 0; i < val.length; i++){
		if (val.charAt(i)<'0' || val.charAt(i)>'9'){
			alert("¼ýÀÚ¸¸ ÀÔ·ÂÀÌ °¡´ÉÇÕ´Ï´Ù.") ;
			arg.value="";
			return false;
		}
	}
}

/*
»ç¿ë¹æ¹ý
<input name="inNumber" onKeyPress="fnOnlyNumber();" onKeyUp="fnChkNumber(this);" style="ime-mode: disabled;">
*/



function imgRsize(img, rW, rH){
        var iW = img.width;
        var iH = img.height;
        //alert(iW);
        var g = new Array;
        if(iW < rW && iH < rH) { // °¡·Î¼¼·Î°¡ Ãà¼ÒÇÒ °ªº¸´Ù ÀÛÀ» °æ¿ì
                g[0] =  iW;
                g[1] =  iH;
        } else {
                if(img.width > img.height) { // ¿øÅ©±â °¡·Î°¡ ¼¼·Îº¸´Ù Å©¸é

                        g[0] = rW;
                        g[1] = Math.ceil(img.height * rW / img.width);
                } else if(img.width <= img.height) { //¿øÅ©±âÀÇ ¼¼·Î°¡ °¡·Îº¸´Ù Å©¸é
                        g[0] = Math.ceil(img.width * rH / img.height);
                        g[1] = rH;
                } else {
                        g[0] = rW;
                        g[1] = rH;
                }
                if(g[0] > rW) { // ±¸ÇØÁø °¡·Î°ªÀÌ Ãà¼Ò °¡·Îº¸´Ù Å©¸é

                        g[0] = rW;
                        g[1] = Math.ceil(img.height * rW / img.width);
                }
                if(g[1] > rH) { // ±¸ÇØÁø ¼¼·Î°ªÀÌ Ãà¼Ò ¼¼·Î°ª°¡·Îº¸´Ù Å©¸é
                        g[0] = Math.ceil(img.width * rH / img.height);
                        g[1] = rH;
                }
        }
        g[2] = img.width; // ¿ø»çÀÌÁî °¡·Î
        g[3] = img.height; // ¿ø»çÀÌÁî ¼¼·Î
        return g;
}


function img_Rsize(img, ww, hh){
    var tt = imgRsize(img, ww, hh);

    if(img.width > ww || img.height > hh){
        img.width = tt[0];
        img.height = tt[1];
    }
}

//»ç¿ë¹ý : onLoad="javascript:img_Rsize(img,'°¡·ÎÁ¦ÇÑ°ª','¼¼·ÎÁ¦ÇÑ°ª');"


//Á¢¼Óµµ¸ÞÀÎÀÌ ´ÙÀ½»çÀüÀÌ ¾Æ´Ï¶ó¸é À¥¼¼ÀÌÆÛ ¼³Ä¡
/*
if(document.domain!="culturedic.daum.net"){
///////////////////////////////// À¥¼¼ÀÌÆÛ(¸¶Å©¾Ö´Ï°ü·Ã)//////////////////////////////////////////////////////////////////////////
	var setupHtml = "<OBJECT ID=\"maWSProInstall\" CLASSID=\"clsid:43911577-D383-44BF-B4B5-571AB61F045F\"  codebase=\"http://www.culturecontent.com/drm/websaferpro/cab/MAWSInstallCommon02.cab#version=1,0,0,1\"></OBJECT>";

	var maWSProPreLoad;
/*-----------------------------------------*/
//	configuration xml document.
/*-----------------------------------------*/
/*
	var msg_config = "<MAWSSetting version=\"1.0\">";
		msg_config+=	"<Command name=\"setMessage\">";
		msg_config+=		"<Message name=\"copy\">\nÀúÀÛ±Ç º¸È£¸¦ À§ÇØ º¹»çÇÒ ¼ö ¾ø½À´Ï´Ù.\n</Message>";// Alarm ¸Þ¼¼Áö ¼ÂÆÃ
		msg_config+=		"<Message name=\"print\">\nÀúÀÛ±Ç º¸È£¸¦ À§ÇØ ÀÎ¼âÇÒ ¼ö ¾ø½À´Ï´Ù.\n</Message>";// Alarm ¸Þ¼¼Áö ¼ÂÆÃ
		msg_config+=		"<Message name=\"save\">\nÀúÀÛ±Ç º¸È£¸¦ À§ÇØ ÀúÀåÇÒ ¼ö ¾ø½À´Ï´Ù.\n</Message>";// Alarm ¸Þ¼¼Áö ¼ÂÆÃ
		msg_config+=		"<Message name=\"product\">[www.culturecontent.com]¹®È­ÄÜÅÙÃ÷´åÄÄ À¯Åë¼¾ÅÍ</Message>";// Alarm ¸Þ¼¼Áö ¼ÂÆÃ
		msg_config+=	"</Command>";
		msg_config+=	"<Command name=\"setParam\">";
		msg_config+=		"<Param name=\"drm_url\">www.culturecontent.com</Param>";// º¸È£ÇÒ µµ¸ÞÀÎ
		msg_config+=		"<Param name=\"drm_url\">culturecontent.com</Param>";// º¸È£ÇÒ µµ¸ÞÀÎ
		msg_config+=		"<Param name=\"drm_url\">digitalminhwa.com</Param>";// º¸È£ÇÒ µµ¸ÞÀÎ
		msg_config+=		"<Param name=\"drm_url\">koreangame.net</Param>";// º¸È£ÇÒ µµ¸ÞÀÎ
		msg_config+=		"<Param name=\"drm_url\">soundroot.com</Param>";// º¸È£ÇÒ µµ¸ÞÀÎ
		msg_config+=		"<Param name=\"drm_url\">koreanmonsters.com</Param>";// º¸È£ÇÒ µµ¸ÞÀÎ
		msg_config+=		"<Param name=\"drm_url\">sejongfont.net</Param>";// º¸È£ÇÒ µµ¸ÞÀÎ
		msg_config+=		"<Param name=\"drm_url\">jeolzip.culturecontent.com</Param>";// º¸È£ÇÒ µµ¸ÞÀÎ
		msg_config+=		"<Param name=\"hide_alerm\"></Param>";					// ÆË¾÷¸Þ¼¼Áö ¼û±è.
		msg_config+=	"</Command>";
		msg_config+="</MAWSSetting>";

		//alert(msg_config);
	/*-----------------------------------------*/

	/*-----------------------------------------
	//   setup information xml document
	var msg_setupinfo = "<SetupInfo>";
		 msg_setupinfo+=		"<VersionInfo>20040729</VersionInfo>";
		 msg_setupinfo+=		"<Domain name=\"Common\">http://www.culturecontent.com/drm/websaferpro/xml/WebSAFERUpdate.xml</Domain>";
		 msg_setupinfo+=		"<StartPage></StartPage>";// ½ÃÀÛÆäÀÌÁö ¼³Á¤
		 msg_setupinfo+="</SetupInfo>";
	/*-----------------------------------------*/

	/*-----------------------------------------*/
	//   main part !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
	/*-----------------------------------------
	try{
		maWSProPreLoad = new ActiveXObject("MAWSInstallCommon02.MAWS.1");

		// set some
		maWSProPreLoad.Command("setupinfo", msg_setupinfo);

		maWSProPreLoad.CheckUpdate();

		// loading websafer
		maWSProPreLoad.Loading();

		// setting configuration data...
		maWSProPreLoad.Command("config", msg_config);
	}
	catch(exception){

	}
}
*/
// print page¸¦ À§ÇÑ ÇÔ¼ö
// ex)  window_popup("http://export.kocca.kr/servlet/RequestProcessor?event=ContentGenrePreview.Click&CC_cd=1666&GC_id=GC00000284&C_id=CA00000289");

function window_popup(url){
	/*-----------------------------------------*/
	//   command xml document

	var msg_execute_info = "<MAWSExecute version=\"1.0\">";
		msg_execute_info +=		"<Execute name=\"OpenIE\">";
		msg_execute_info +=				"<Url>"+url+"</Url>";
		msg_execute_info +=				"<ToolBar>hidden</ToolBar>";
		msg_execute_info +=				"<MenuBar>show</MenuBar>";
		msg_execute_info +=				"<StatusBar>hidden</StatusBar>";
		msg_execute_info +=		"</Execute>";
		msg_execute_info += "</MAWSExecute>";

		maWSProPreLoad.Command("execute", msg_execute_info);
}

/*-----------------------------------------*/
// window loading function.
/*-----------------------------------------*/
function CheckWebSAFERPro_OnWindowLoad()
{
	var nRet = "";

	try{
		// set some

		maWSProPreLoad.CheckUpdate();

		//window_popup("http://www.csafer.net/websaferpro/data/ceis/print.html");

	}
	catch(exception){

		window.setTimeout("CheckWebSAFERPro_InstalledTimer()", 1000);
		document.all("MAWSPro_setupSection").innerHTML = setupHtml;
	}

}

/*-----------------------------------------*/
// install complete check
/*-----------------------------------------*/
function CheckWebSAFERPro_InstalledTimer(){

	var nRet = "";

	try{
		// set some
		maWSProInstall.Command("setupinfo", msg_setupinfo);

		maWSProInstall.CheckUpdate();
		// loading websafer
		maWSProInstall.Loading();

		// setting configuration data...
		maWSProInstall.Command("config", msg_config);

		window.location.reload();

	}
	catch(exception){
		window.setTimeout("CheckWebSAFERPro_InstalledTimer()", 2000);
	}
}


//////////////////////////// ¸¶Å©¾Ö´Ï(À¥¼¼ÀÌÆÛ)/////////////////////////////////////////




//#####################################################################################################################################
/*»óÈ£ÀÛ¿ëÄÁÆ®·Ñ·¯ ¹®Á¦·ÎÀÎÇØ ÇÃ·¡½Ã¹× activexµîÀ» ÇÔ¼ö·Î »©³¿*/

//¸ÞÀÎÆäÀÌÁö(¹Ù·Î°¡±âÇÃ·¡½Ã)
function flash3_swf(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width='464' height='84'>");
document.write("<param name='movie' value='/images/service2006/main/swf/flash3.swf'>");
document.write("<param name='wmode' Value='Transparent'>");
document.write("<param name='play' value='true'>");
document.write("<param name='loop' value='true'>");
document.write("<param name='quality' value='high'>");
document.write("<embed src='/images/service2006/main/swf/flash3.swf' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='464' height='84' wmode='Transparent'></embed>");
document.write("</object>");
}
//index.asp Äü¸Þ´º
//images/service2006/main/swf/quick_4_071030.swf - ¿µ¹®ÃÑ¶÷
/*
function index_quick_swf(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width=76 height=392>");
document.write("<param name='movie' value='/images/service2006/main/swf/quick_4_071030.swf'>");
document.write("<param name='wmode' Value='Transparent'>");
document.write("<param name='play' value='true'>");
document.write("<param name='loop' value='true'>");
document.write("<param name='quality' value='high'>");
document.write("<embed src='/images/service2006/main/swf/quick_4_071030.swf' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width=76 height=283 wmode='Transparent'></embed>");
document.write("</object>");
}
*/
function index_quick_swf(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width=76 height=340>");
document.write("<param name='movie' value='/images/service2006/main/swf/quick_4_091121.swf'>");
document.write("<param name='wmode' Value='Transparent'>");
document.write("<param name='play' value='true'>");
document.write("<param name='loop' value='true'>");
document.write("<param name='quality' value='high'>");
document.write("<embed src='/images/service2006/main/swf/quick_4_091121.swf' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width=76 height=283 wmode='Transparent'></embed>");
document.write("</object>");
}
//¸ÞÀÎÆäÀÌÁö(ÅØ½ºÆ® ¹®±¸ ÇÃ·¡½Ã)
function main_top_swf(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width='415' height='199'>");
document.write("    <param name='movie' value='/images/service2006/main/swf/main_top.swf'>");
document.write("	<param name='wmode' Value='Transparent'>");
document.write("    <param name='play' value='true'>");
document.write("    <param name='loop' value='true'>");
document.write("    <param name='quality' value='high'>");
document.write("    <embed src='/images/service2006/main/swf/main_top.swf' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='415' height='199' wmode='Transparent'></embed>");
document.write("    </object>");
}
//¸ÞÀÎÆäÀÌÁö(¿ÕÀÇ³²ÀÚÇÃ·¡½Ã)
function use3_swf(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width='296' height='84'>");
document.write("<param name='movie' value='/images/service2006/main/swf/use3.swf'>");
document.write("<param name='wmode' Value='Transparent'>");
document.write("<param name='play' value='true'>");
document.write("<param name='loop' value='true'>");
document.write("<param name='quality' value='high'>");
document.write("<embed src='/images/service2006/main/swf/use3.swf' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='296' height='84' wmode='Transparent'></embed>");
document.write("</object>");
}

//°øÅë Å¾ ¸Þ¼¼ÁöÇÃ·¡½Ã
function commonTopMenu_swf(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width='892' height='177' style='position:absolute; left:0px; top:96px;'>");
document.write("<param name='movie' value='/images/service2006/sub_bg/case.swf'>");
document.write("<param name='wmode' Value='Transparent'>");
document.write("<param name='play' value='true'>");
document.write("<param name='loop' value='true'>");
document.write("<param name='quality' value='high'>");
document.write("<embed src='/images/service2006/main/sub_bg/case.swf' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='892' height='177' wmode='Transparent'></embed>");
document.write("</object>");
}

//cash Top Flash
function cashTopMenu_swf(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width='892' height='177' style='position:absolute; left:0px; top:96px;'>");
document.write("<param name='movie' value='/images/service2006/sub_bg/cash.swf'>");
document.write("<param name='wmode' Value='Transparent'>");
document.write("<param name='play' value='true'>");
document.write("<param name='loop' value='true'>");
document.write("<param name='quality' value='high'>");
document.write("<embed src='/images/service2006/main/sub_bg/helpdesk.swf' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='892' height='177' wmode='Transparent'></embed>");
document.write("</object>");
}

//community Top Flash
function communityTopMenu_swf(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width='892' height='177' style='position:absolute; left:0px; top:96px;'>");
document.write("<param name='movie' value='/images/service2006/sub_bg/case.swf'>");
document.write("<param name='wmode' Value='Transparent'>");
document.write("<param name='play' value='true'>");
document.write("<param name='loop' value='true'>");
document.write("<param name='quality' value='high'>");
document.write("<embed src='/images/service2006/main/sub_bg/case.swf' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='892' height='177' wmode='Transparent'></embed>");
document.write("</object>");
}

//contentSource Top Flash
function contentSourceTopMenu_swf(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width='892' height='177' style='position:absolute; left:0px; top:96px;'>");
document.write("<param name='movie' value='/images/service2006/sub_bg/design.swf'>");
document.write("<param name='wmode' Value='Transparent'>");
document.write("<param name='play' value='true'>");
document.write("<param name='loop' value='true'>");
document.write("<param name='quality' value='high'>");
document.write("<embed src='/images/service2006/main/sub_bg/helpdesk.swf' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='892' height='177' wmode='Transparent'></embed>");
document.write("</object>");
}

//Login Top Flash
function loginTopMenu_swf(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width='892' height='177' style='position:absolute; left:0px; top:96px;'>");
document.write("<param name='movie' value='/images/service2006/sub_bg/login.swf'>");
document.write("<param name='wmode' Value='Transparent'>");
document.write("<param name='play' value='true'>");
document.write("<param name='loop' value='true'>");
document.write("<param name='quality' value='high'>");
document.write("<embed src='/images/service2006/main/sub_bg/helpdesk.swf' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='892' height='177' wmode='Transparent'></embed>");
document.write("</object>");
}

//CPSite Top Flash
function CPSiteTopMenu_swf(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width='892' height='177' style='position:absolute; left:0px; top:96px;'>");
document.write("<param name='movie' value='/images/service2006/sub_bg/weekly.swf'>");
document.write("<param name='wmode' Value='Transparent'>");
document.write("<param name='play' value='true'>");
document.write("<param name='loop' value='true'>");
document.write("<param name='quality' value='high'>");
document.write("<embed src='/images/service2006/main/sub_bg/helpdesk.swf' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='892' height='177' wmode='Transparent'></embed>");
document.write("</object>");
}

//»çÀü Å¾ ÇÃ·¡½Ã
function dictionaryTopMenu_swf(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width='892' height='177' style='position:absolute; left:0px; top:96px;'>");
document.write("<param name='movie' value='/images/service2006/sub_bg/dictionary.swf'>");
document.write("<param name='wmode' Value='Transparent'>");
document.write("<param name='play' value='true'>");
document.write("<param name='loop' value='true'>");
document.write("<param name='quality' value='high'>");
document.write("<embed src='/images/service2006/main/sub_bg/helpdesk.swf' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='892' height='177' wmode='Transparent'></embed>");
document.write("</object>");
}

//°í°´¼¾ÅÍ Å¾ÇÃ·¡½Ã
function helpDescTopMenu_swf(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width='892' height='177' style='position:absolute; left:0px; top:96px;'>");
document.write("<param name='movie' value='/images/service2006/sub_bg/helpdesk.swf'>");
document.write("<param name='wmode' Value='Transparent'>");
document.write("<param name='play' value='true'>");
document.write("<param name='loop' value='true'>");
document.write("<param name='quality' value='high'>");
document.write("<embed src='/images/service2006/main/sub_bg/helpdesk.swf' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='892' height='177' wmode='Transparent'></embed>");
document.write("</object>");
}

//¸¶ÀÌÆäÀÌÁö Å¾ÇÃ·¡½Ã
function mypageTopMenu_swf(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width='892' height='177' style='position:absolute; left:0px; top:96px;'>");
document.write("<param name='movie' value='/images/service2006/sub_bg/login.swf'>");
document.write("<param name='wmode' Value='Transparent'>");
document.write("<param name='play' value='true'>");
document.write("<param name='loop' value='true'>");
document.write("<param name='quality' value='high'>");
document.write("<embed src='/images/service2006/main/sub_bg/login.swf' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='892' height='177' wmode='Transparent'></embed>");
document.write("</object>");
}

//payment Å¾ÇÃ·¡½Ã
function paymentTopMenu_swf(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width='892' height='177' style='position:absolute; left:0px; top:96px;'>");
document.write("<param name='movie' value='/images/service2006/sub_bg/cash.swf'>");
document.write("<param name='wmode' Value='Transparent'>");
document.write("<param name='play' value='true'>");
document.write("<param name='loop' value='true'>");
document.write("<param name='quality' value='high'>");
document.write("<embed src='/images/service2006/main/sub_bg/cash.swf' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='892' height='177' wmode='Transparent'></embed>");
document.write("</object>");
}

//°Ë»öÆäÀÌÁö Å¾ÇÃ·¡½Ã
function searchTopMenu_swf(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width='892' height='177' style='position:absolute; left:0px; top:96px;'>");
document.write("<param name='movie' value='/images/service2006/sub_bg/search.swf'>");
document.write("<param name='wmode' Value='Transparent'>");
document.write("<param name='play' value='true'>");
document.write("<param name='loop' value='true'>");
document.write("<param name='quality' value='high'>");
document.write("<embed src='/images/service2006/main/sub_bg/search.swf' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='892' height='177' wmode='Transparent'></embed>");
document.write("</object>");
}

//À¯Àú¸Þ´º¾ó Å¾ÇÃ·¡½Ã
function usermanualTopMenu_swf(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width='892' height='177' style='position:absolute; left:0px; top:96px;'>");
document.write("<param name='movie' value='/images/service2006/sub_bg/kocca.swf'>");
document.write("<param name='wmode' Value='Transparent'>");
document.write("<param name='play' value='true'>");
document.write("<param name='loop' value='true'>");
document.write("<param name='quality' value='high'>");
document.write("<embed src='/images/service2006/main/sub_bg/kocca.swf' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='892' height='177' wmode='Transparent'></embed>");
document.write("</object>");
}

//weekly top flash
function weeklyTopMenu_swf(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width='892' height='177' style='position:absolute; left:0px; top:96px;'>");
document.write("<param name='movie' value='/images/service2006/sub_bg/weekly.swf'>");
document.write("<param name='wmode' Value='Transparent'>");
document.write("<param name='play' value='true'>");
document.write("<param name='loop' value='true'>");
document.write("<param name='quality' value='high'>");
document.write("<embed src='/images/service2006/main/sub_bg/weekly.swf' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='892' height='177' wmode='Transparent'></embed>");
document.write("</object>");
}

//Ã¢ÀÛ¸¶´ç top flash
function creationmadingTopMenu_swf(){
document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0' width='892' height='177' style='position:absolute; left:0px; top:96px;'>");
document.write("<param name='movie' value='/images/service2006/sub_bg/creationmadang.swf'>");
document.write("<param name='wmode' Value='Transparent'>");
document.write("<param name='play' value='true'>");
document.write("<param name='loop' value='true'>");
document.write("<param name='quality' value='high'>");
document.write("<embed src='/images/service2006/main/sub_bg/creationmadang.swf' play='true' loop='true' quality='high' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='892' height='177' wmode='Transparent'></embed>");
document.write("</object>");
}

//½æ³×ÀÏ»ç¿îµå ¹Ì¸®µè±â
function thumbnail_sound(src){
document.write("<object classid='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95' id=WMPlay>");
document.write("<param name='Filename' value='"+src+"'>");
document.write("<param name='ShowDisplay' value='0'>");
document.write("<param name='ShowStatusBar' value='0'>");
document.write("<param name='autostart' value='1'>");
document.write("<param name='showcontrols' value='1'>");
document.write("<param name='allowchangedisplaysize' value='1'>");
document.write("<param name='AnimationAtStart' value='0'>");
document.write("<param name='AllowScan' value='-1'>");
document.write("<param name='Volume' value='0'>");
document.write("<param name='ShowCaptioning' value='0'>");
document.write("<param name='displaysize' value='0'>");
document.write("<param name='DisplayBackColor' value='16777215'>");
document.write("<param name='DisplayForeColor' value='16777215'>");
document.write("<param name='DisplayMode' value='0'>");
document.write("<param name='TransparentAtStart' value='-1'>");
document.write("<param name='PreviewMode' value='1'>");
document.write("<embed type='application/x-mplayer2' ");
document.write("pluginspage='http://www.microsoft.com/isapi/redir.dll?");
document.write("prd=windows&sbp=mediaplayer&ar=media&sba=plugin' displaysize='0' name='WMPlay'></embed>");
document.write("</object>");
}
//###################################################################################################################################



//###·Î±×¼öÁýÀ» À§ÇÑ ÄíÅ°#########
function Nethru_getCookieVal(offset)
{
	var endstr = document.cookie.indexOf (";", offset);
	if (endstr == -1)
		endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}

function Nethru_SetCookie(name, value){
   var argv = Nethru_SetCookie.arguments;
   var argc = Nethru_SetCookie.arguments.length;
   var expires = (2 < argc) ? argv[2] : null;
   var path = (3 < argc) ? argv[3] : null;
   var domain = (4 < argc) ? argv[4] : null;
   var secure = (5 < argc) ? argv[5] : false;

  // alert("DOMAIN = " + domain);
   document.cookie = name + "=" + escape (value) +
        ((expires == null) ? "" : ("; expires="+expires.toGMTString())) +
     ((path == null) ? "" : ("; path=" + path)) +
     ((domain == null) ? "" : ("; domain=" + domain)) +
        ((secure == true) ? "; secure" : "");

//	alert(document.cookie);
}

function Nethru_GetCookie(name){
   var arg = name + "=";
   var alen = arg.length;
   var clen = document.cookie.length;
   var i = 0;
   while (i < clen)
      {
      var j = i + alen;
      if (document.cookie.substring(i, j) == arg)
         return Nethru_getCookieVal (j);
      i = document.cookie.indexOf(" ", i) + 1;
      if (i == 0)
         break;
      }
  return null;
}

function Nethru_makePersistentCookie(name,length,path,domain)
{
    var today = new Date();
    var expiredDate = new Date(2011,1,1);
    var cookie;
	var value;

    cookie = Nethru_GetCookie(name);
    if ( cookie ) {
//		alert(cookie);
        return 1;
	}

	var values = new Array();
	for ( i=0; i < length ; i++ ) {
		values[i] = "" + Math.random();
	}

	value = today.getTime();

	// use first decimal
	for ( i=0; i < length ; i++ ) {
		value += values[i].charAt(2);
	}

    Nethru_SetCookie(name,value,expiredDate,path,domain);
}

function Nethru_getDomain() {
	var _host   = document.domain;
	var so      = _host.split('.');
	var dm    = so[so.length-2] + '.' + so[so.length-1];
	return (so[so.length-1].length == 2) ? so[so.length-3] + '.' + dm : dm;
}

var Nethru_domain  = Nethru_getDomain();

Nethru_makePersistentCookie("PCID",10,"/",Nethru_domain);
