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];}
}




function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}







<!--
var printpp

function bp() {
  printpp = document.body.innerHTML;
  document.body.innerHTML = print_this.innerHTML;
}

function ap() {
  document.body.innerHTML = printpp; 
}

function pp() {
  window.print();
}

window.onbeforeprint = bp;
window.onafterprint = ap;
//-->






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 '';
  }



  	function flashToJS(objectWidth,objectHeight,objSrc,objOption)
{
	var docWrite = "";
	var tmpobjOption,objCount,i;
	if(objOption)
	{
		tmpobjOption 	= objOption.split("|");
		objCount			=	(tmpobjOption.length - 1);
		for(i=0;i<objCount;i++)
		{
			psi = (i+1);
			docWrite	= docWrite + "<PARAM name=\""+tmpobjOption[i]+"\" value=\""+tmpobjOption[psi]+"\">\n";
			i +=1;
		}
	}
	document.write("<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ");2009-05-06
	document.write("codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" ");
	document.write("width=\""+objectWidth+"\" height=\""+objectHeight+"\">\n");
	document.write("<PARAM name=\"quality\" value=\"high\">\n");
	document.write("<PARAM name=\"movie\" value=\""+objSrc+"\">\n");
	document.write("<PARAM name=\"wmode\" value=\"transparent\">\n");
	document.write("<PARAM name=\"allowScriptAccess\" value=\"always\">\n");
	document.write(docWrite);
	document.write("<EMBED src=\""+objSrc+"\" quality=\"high\" ");
	document.write("pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" ");
	document.write("type=\"application/x-shockwave-flash\" 	wmode=\"transparent\"  width=\""+objectWidth+"\" height=\""+objectHeight+"\">\n");
	document.write("</EMBED>\n");
	document.write("</OBJECT>\n");
}





function ShowTable(stat) {
	var stat;
	//alert(stat);
	if(stat==1) {
		document.all['Menu'].style.visibility = 'visible';
	} else {
		document.all['Menu'].style.visibility = 'hidden';
	}
}





	var backName;
	function toggleOneFolder(name){
		var listElement = document.all(name);

		if (listElement.style.display == ''){
			listElement.style.display = 'none';
		}else	{
			listElement.style.display = '';
		}

		var backE = document.all(backName);
		var backImgE = document.all('IMG_'+backName);

		if (backName != null && backName != name){
			backE.style.display = 'none';
		}

		if (name != backName) backName = name;
	}










if (document.getElementById){
document.write('<style type="text/css">')
//document.write('.submenu{display: none;}')
document.write('</style>')
}

function SwitchMenu(obj){
        if(document.getElementById){
        var el = document.getElementById(obj);
        var ar = document.getElementById("maindiv").getElementsByTagName("span"); 
                if(el.style.display != "block"){
                        for (var i=0; i<ar.length; i++){
                                if (ar[i].className=="submenu") 
                                ar[i].style.display = "none";
                        }
                        el.style.display = "block";
                }else{
                        el.style.display = "none";
                }
        }
}


function move(PAGE,URL)
{
	var f = document.forms['navigation'];
	f.page.value=PAGE;
	f.action=URL;
	f.submit();
}

function move_cmt(PAGE,URL)
{
	var f = document.forms['navigation'];
	f.cmt_page.value=PAGE;
	f.action=URL;
	f.submit();
}


function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}




function Pview(id){
    var html_src = id.outerHTML;  
    var new_win = window.open('','pageprint','resizable=no,width=725,height=700,scrollbars=1'); 
	 new_win.document.open();
	 new_win.document.writeln(html_src);
	 new_win.document.writeln("<link rel = StyleSheet HREF='/js/style.css' type='text/css' title='thehigh CSS'>");
	
	 new_win.window.print();
	 new_win.document.close();
}

function logout()
{
	var f = document.forms['loginFrm'];
	f.p_rmode.value='logout';
	f.submit();
}

function search()
{
	var f = document.forms['search'];
	f.submit();
}

function totalSearch()
{
	var f = document.forms['total_search'];
	if(!f.total_search_word.value) {
		alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
		f.total_search_word.focus();
		return;
	}
	f.p_rmode.value = 'totalSearch';
	f.submit();
}

function search_channel()
{
	var f = document.forms['search'];
	f.action='/schedule/channel_all.php';
	f.target='';
	f.method='GET';
	f.p_rmode.value='';
	f.submit();
}

function move(PAGE,URL)
{
	var f = document.forms['navigation'];
	f.page.value=PAGE;
	f.action=URL;
	f.submit();
}

function moveV(PAGE,URL)
{
	var f = document.forms['navigation'];
	f.vpage.value=PAGE;
	f.action=URL;
	f.submit();
}

function moveG(PAGE,URL)
{
	var f = document.forms['navigation1'];
	f.gpage.value=PAGE;
	f.action=URL;
	f.submit();
}

function selAll(totalItem)
{
	for(i=0;i<totalItem;i++) {
		if(document.getElementById('idArr['+i+']').value) {
			document.getElementById('idArr['+i+']').checked = true;
		}
	}
}

function deSelAll(totalItem)
{
	for(i=0;i<totalItem;i++) {
		if(typeof document.getElementById('idArr['+i+']') != 'null') {
			document.getElementById('idArr['+i+']').checked = false;
		}
	}
}

function selAll1(totalItem)
{
	for(i=0;i<totalItem;i++) {
		if(document.getElementById('idArr1['+i+']').value) {
			document.getElementById('idArr1['+i+']').checked = true;
		}
	}
}

function deSelAll1(totalItem)
{
	for(i=0;i<totalItem;i++) {
		if(typeof document.getElementById('idArr1['+i+']') != 'null') {
			document.getElementById('idArr1['+i+']').checked = false;
		}
	}
}

function myvodClear(totalItem,deltype,no)
{
	if(deltype == 'm') {
		var checkCount = 0;
		for(i=0;i<totalItem;i++) {
			if(typeof document.getElementById('idArr['+i+']') != 'undefined') {
				if(document.getElementById('idArr['+i+']').checked == true) checkCount++;
			}
		}
		if(checkCount == 0) {
			alert('»èÁ¦ÇÒ MY VOD°¡ ¼±ÅÃµÇÁö ¾Ê¾Ò½À´Ï´Ù.');
			return;
		}
	}
	var f = document.forms['vod'];
	if(no) {
		f.delno.value = no;
		f.deltype.value = 'a';
	}
	else {
		f.deltype.value = 'm';
	}
	if(!confirm('Á¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?')) { return;}
	f.p_rmode.value = 'myvodClear';
	f.submit();
}

function myprogramClear(totalItem,deltype,no)
{
	if(deltype == 'm') {
		var checkCount = 0;
		for(i=0;i<totalItem;i++) {
			if(typeof document.getElementById('idArr['+i+']') != 'undefined') {
				if(document.getElementById('idArr['+i+']').checked == true) checkCount++;
			}
		}
		if(checkCount == 0) {
			alert('»èÁ¦ÇÒ °ü½É ÇÁ·Î±×·¥ÀÌ ¼±ÅÃµÇÁö ¾Ê¾Ò½À´Ï´Ù.');
			return;
		}
	}
	var f = document.forms['program'];
	if(no) {
		f.delno.value = no;
		f.deltype.value = 'a';
	}
	else {
		f.deltype.value = 'm';
	}
	if(!confirm('Á¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?')) { return;}
	f.p_rmode.value = 'myprogramClear';
	f.submit();
}

function vodOriClear(totalItem,deltype,no)
{
	if(deltype == 'm') {
		var checkCount = 0;
		for(i=0;i<totalItem;i++) {
			if(typeof document.getElementById('idArr['+i+']') != 'undefined') {
				if(document.getElementById('idArr['+i+']').checked == true) checkCount++;
			}
		}
		if(checkCount == 0) {
			alert('»èÁ¦ÇÒ VOD°¡ ¼±ÅÃµÇÁö ¾Ê¾Ò½À´Ï´Ù.');
			return;
		}
	}
	var f = document.forms['vodOri'];
	if(no) {
		f.delno.value = no;
		f.deltype.value = 'a';
	}
	else {
		f.deltype.value = 'm';
	}
	if(!confirm('Á¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?')) { return;}
	f.p_rmode.value = 'vodOriClear';
	f.submit();
}

function vodClear1(totalItem,deltype,no)
{
	if(deltype == 'm') {
		var checkCount = 0;
		for(i=0;i<totalItem;i++) {
			if(typeof document.getElementById('idArr['+i+']') != 'undefined') {
				if(document.getElementById('idArr['+i+']').checked == true) checkCount++;
			}
		}
		if(checkCount == 0) {
			alert('»èÁ¦ÇÒ VOD°¡ ¼±ÅÃµÇÁö ¾Ê¾Ò½À´Ï´Ù.');
			return;
		}
	}
	var f = document.forms['vod'];
	if(no) {
		f.delno.value = no;
		f.deltype.value = 'a';
	}
	else {
		f.deltype.value = 'm';
	}
	if(!confirm('Á¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?')) { return;}
	f.p_rmode.value = 'vodClear1';
	f.submit();
}

function pGalleryClear(totalItem,deltype,no)
{
	if(deltype == 'm') {
		var checkCount = 0;
		for(i=0;i<totalItem;i++) {
			if(typeof document.getElementById('idArr1['+i+']') != 'undefined') {
				if(document.getElementById('idArr1['+i+']').checked == true) checkCount++;
			}
		}
		if(checkCount == 0) {
			alert('»èÁ¦ÇÒ ÀÌ¹ÌÁö°¡ ¼±ÅÃµÇÁö ¾Ê¾Ò½À´Ï´Ù.');
			return;
		}
	}
	var f = document.forms['gallery'];
	if(no) {
		f.delno.value = no;
		f.deltype.value = 'a';
	}
	else {
		f.deltype.value = 'm';
	}
	if(!confirm('Á¤¸» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?')) { return;}
	f.p_rmode.value = 'pGalleryClear';
	f.submit();
}




<!--

//ÅëÇÕ¹öÀü
function sendSNS(snstype,title,url,tag,thumbnail,summary) {
	title2 = title;
	title = encodeURIComponent(title);
	url2 = url;
	url = encodeURIComponent(url);

	if(typeof tag != 'undefined')	tag = encodeURIComponent(tag);
	else tag = '';
	if(typeof thumbnail != 'undefined') thumbnail = encodeURIComponent(thumbnail);
	else thumbnail = '';
	if(typeof summary != 'undefined') summary = encodeURIComponent(summary);
	else summary = '';

	switch(snstype) {
		case 'T' :
			var wp = window.open("http://twitter.com/share?text=" + title + " " + url, 'twitter', '');
		break;
		case 'F' :
			var wp = window.open("http://www.facebook.com/sharer.php?u=" + url + "&t=" + title, 'facebook', '');
		break;
		case 'M' :
	    var wp = window.open("http://me2day.net/posts/new?new_post[body]=" + title + " " + url + "&new_post[tags]=" + tag, 'me2Day', '');
		break;
		case 'C' :
			var wp = window.open("http://csp.cyworld.com/bi/bi_recommend_pop.php?url="+url+"&title="+title+"&thumbnail="+thumbnail+"&summary="+summary,"xu","width=400px,height=364px");
		break;
	}
	if(wp) wp.focus();
}


//-->



function sendTwitter(title,url) {
    var wp = window.open("http://twitter.com/home?status=" + encodeURIComponent(title) + " " + encodeURIComponent(url), 'twitter', '');
    if ( wp ) {
        wp.focus();
    }
}
function sendMe2Day(title,url,tag) {
    var wp = window.open("http://me2day.net/posts/new?new_post[body]=" + encodeURIComponent(title) + " " + encodeURIComponent(url) + "&new_post[tags]=" + encodeURIComponent(tag), 'me2Day', '');
    if ( wp ) {
        wp.focus();
    }
}
function sendFaceBook(title,url) {
    var wp = window.open("http://www.facebook.com/sharer.php?u=" + url + "&t=" + encodeURIComponent(title), 'facebook', '');
    if ( wp ) {
        wp.focus();
    }
}
 function goYozmDaum(link,prefix,parameter) {
                    var href = "http://yozm.daum.net/api/popup/prePost?link=" + encodeURIComponent(link) + "&prefix=" + encodeURIComponent(prefix) + "&parameter=" + encodeURIComponent(parameter);
                    var a = window.open(href, 'yozmSend', 'width=466, height=356');
                    if ( a ) {
                        a.focus();
                    }
    }
function sendCyWorld(url,title,thumbnail,summary) 
{
	
	var wp = window.open("http://csp.cyworld.com/bi/bi_recommend_pop.php?url="+encodeURIComponent(url)+"&title="+encodeURIComponent(title)+"&thumbnail="+encodeURIComponent(thumbnail)+"&summary="+encodeURIComponent(summary),"xu","width=400px,height=364px")
	if ( wp ) {
	wp.focus();
	}
}









// µå¶ó¸Æ½º šîÆ¼ÇåÅÍ ÀÌº¥Æ®¿ë º¹»ç ¼Ò½º
function copy_data(){
	window.clipboardData.setData("Text",'<a href="http://www.cu-media.co.kr/community/event_view.php?no=55" target="_blank"><img src="http://dramax.cu-media.co.kr/event_img/cityhunter/cityhunter.jpg" border="0"></a>');	alert('                          º¹»çµÇ¾ú½À´Ï´Ù.\nºí·Î±×³ª Ä«Æäµî¿¡ µî·Ï½Ã¿¡´Â html·Î ¼±ÅÃ ÈÄ ºÙ¿©³Ö±â¸¦ ÇÏ¼¼¿ä!');
}





// Å³¸µÀÌº¥Æ®¿ë º¹»ç ¼Ò½º
function copy_data_killing(){
	window.clipboardData.setData("Text",'<a href="http://www.cu-media.co.kr/community/event_view.php?no=68" target="_blank"><img src="http://www.cu-media.co.kr/event_img/axn_killing/killing_event.jpg" border="0"></a>');	alert('                          º¹»çµÇ¾ú½À´Ï´Ù.\nºí·Î±×³ª Ä«Æäµî¿¡ µî·Ï½Ã¿¡´Â html·Î ¼±ÅÃ ÈÄ ºÙ¿©³Ö±â¸¦ ÇÏ¼¼¿ä!');
}


// °øÁÖÀÇ ³²ÀÚ ÀÌº¥Æ®¿ë º¹»ç ¼Ò½º
function copy_data_princess(){
	window.clipboardData.setData("Text",'<a href="http://www.cu-media.co.kr/community/event_view.php?no=74" target="_blank"><img src="http://www.cu-media.co.kr/event_img/princess/img/princess_ch_event.jpg" border="0"></a>');	alert('                          º¹»çµÇ¾ú½À´Ï´Ù.\nºí·Î±×³ª Ä«Æäµî¿¡ µî·Ï½Ã¿¡´Â html·Î ¼±ÅÃ ÈÄ ºÙ¿©³Ö±â¸¦ ÇÏ¼¼¿ä!');
}
