function $(s) { return document.getElementById(s) }
function print_swf(file,width,height,id)
{
if(!id) id = "swf_"+width;
var str = '';
str += '';
document.write(str);
}
function setPngImg(obj)
{
obj.width=obj.height=1;
obj.className=obj.className.replace(/\bpngimg\b/i,'');
obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
obj.src='';
return '';
}
// ÇÁ¸°Æ®Çϱâ
function popPrint()
{
url = "/_comm/pop_print.php";
window.open(url,'dmb_print','status=1,scrollbars=1,width=620,height=500');
}
/**
param : °øÅë¾ÆÀ̵ð,Àüü°¹¼ö,óÀ½ Ȱ¼ºÈ,óÀ½ ½ÃÀÛ ¹øÈ£
id : img_{°øÅë¾ÆÀ̵ð}_1, div_{°øÅë¾ÆÀ̵ð}_1
À̹ÌÁö:{°øÅë¾ÆÀ̵ð}1.gif, {°øÅë¾ÆÀ̵ð}1_on.gif
*/
function TabMenu(id,num,over,snum)
{
if(!over) over=1;
if(!snum) snum=1;
this.id=id;
this.num=num;
this.snum=snum;
this.over(over);
//À̹ÌÁö·Ñ¿À¹öÀ̺¥Æ®
var self=this;
var k=0;
for(var i=1; i<=this.num; i++)
{
k = i-1+this.snum;
$("img_"+this.id+"_"+k).n = k;
$("img_"+this.id+"_"+k).onmouseover = function() {
self.over(this.n);
};
}
}
TabMenu.prototype.allout = function(n)
{
var k=0;
for(var i=1; i<=this.num; i++)
{
k = i-1+this.snum;
$("img_"+this.id+"_"+k).src="/img/comm/"+this.id+k+".gif";
$("div_"+this.id+"_"+k).style.display="none";
}
}
TabMenu.prototype.over = function(n)
{
this.allout();
$("img_"+this.id+"_"+n).src="/img/comm/"+this.id+n+"_on.gif";
$("div_"+this.id+"_"+n).style.display="";
}
// ±â»çº»¹® ÅØ½ºÆ® Å©±â º¯°æ
orisize = 16;
function textSizeChange(n)
{
if(n == 1)
{
if(orisize == 20) return;
orisize = orisize + 1;
$("d_content").style.fontSize = orisize+"px";
}
if(n == 2)
{
if(orisize == 11) return;
orisize = orisize - 1;
$("d_content").style.fontSize = orisize+"px";
}
setCookie("textsize",orisize,1);
}
//cookie
function get_cookie(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){
var end = document.cookie.indexOf(";",j);
if(end == -1)
end = document.cookie.length;
return unescape(document.cookie.substring(j,end));
}
i=document.cookie.indexOf(" ",i)+1;
if (i==0) break;
}
return null;
}
// Äí۸¸µé±â
function setCookie(cookiename, value, expiredays)
{
var todayDate = new Date();
todayDate.setDate(todayDate.getDate() + expiredays);
document.cookie = cookiename + "= " + value + "; path=/; expires=" + todayDate.toGMTString() +1+ ";";
}
//µ¿¿µ»ó Ç÷¹ÀÌ
function movPlay(m, k) // m(ÇÁ·Î±×·¥ID), k(±â»çÄÚµå)
{
var str = k+"||"+m;
$("dViewwmv").style.display = "none";
$("zindex").style.display = "none";
$("vod_div").style.display = "block";
$("vod_player").play();
movLog.location.href = "/_comm/clog.php?m="+m+"&s=M&u="+escape(document.URL)+"&r="+escape(document.referrer);
// Àαâ VOD
movLog1.location.href = "/_comm/log_print.php?log_str="+str+"&mode=manyvod";
}
// ³»¿ëâ
function popLive()
{
var live = window.open('/_comm/fmlive.php', 'ytnfm_live', 'width=360,height=250,status=yes');
live.moveTo(200, 300)
}
// °øÁö»çÇ× µ¿¿µ»ó Ç÷¹ÀÌ
function movPlay2()
{
$("dViewwmv").style.display = "none";
$("zindex").style.display = "none";
$("vod_div").style.display = "block";
$("vod_player").play();
}
//À©¹ÌÇÃÃÖ´ëÈ
function setFullSize(id)
{
try{
document[id].DisplaySize = 3;
}catch(e){
document[id].DisplaySize = 3;
}
}
//·Î±×Âï±â
function _L(m,s)
{
var _u = "/_comm/blog.php?m="+m+"&s="+s+"&u="+escape(document.URL)+"&r="+escape(document.referrer);
document.write('');
}
function chkSearch(f)
{
if(f.q.value=="")
{
alert("°Ë»ö¾î¸¦ Àû¾îÁÖ¼¼¿ä!");
f.q.focus();
return false;
}
return true;
}
//ytndmblog = new Image(1,1);
//ytndmblog.src = "/_comm/dmblog.php?u="+escape(document.URL);