try {document.execCommand("BackgroundImageCache", false, true);} catch(e) {}

var global_cast = 1;

// png ½ºÅ©¸³Æ®
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 bg_rolling(){
	number = Math.floor(Math.random()*4)+1;
	document.body.style.background="#000 url(http://img.imbc.com/broad/tv/drama/pink/images/bg_sub"+number+".jpg) no-repeat center 150px";
}

// spot
function spot(obj) {
	document.write('<h1><a href="http://www.imbc.com/broad/tv/drama/pink/index.html" title="¸ÞÀÎÆäÀÌÁö·Î ÀÌµ¿"><span>MBC ÀÏÀÏ ¾ÆÄ§µå¶ó¸¶ ºÐÈ«¸³½ºÆ½</span></a></h1>');
	document.write('<div class="program_info"></div>');
	if(!obj) {
		document.write('<div class="lnb">');
		writeSwf('http://swf.imbc.com/broad/tv/drama/dramatop/dramaTop.swf?Dcode=pink',705,108,false);
		document.write('</div>');
	}
	//document.write('<div class="ads_layer"><A HREF="http://ads.imbc.com/RealMedia/ads/click_nx.ads/www.imbc.com/sub@x12" target="_blank"><img src="http://ads.imbc.com/RealMedia/ads/adstream_nx.ads/www.imbc.com/sub@x12" alt="±¤°í" /></a></div>');
	document.write('<div class="ads_layer"><iframe width="160" height="80" noresize scrolling="no" frameborder="0" marginheight="0" marginwidth="0" src="http://ads.imbc.com/RealMedia/ads/adstream_sx.ads/www.imbc.com/sub@x13"></iframe></div>');
}

// snb
function snb() {
	writeSwf('http://swf.imbc.com/broad/tv/drama/pink/subMenu.swf',180,650,false);
	document.write('<p style="margin:-15px 0 5px 0;">');
	fDramaProgramGo();
	document.write('</p>');
	document.write('<div style="overflow:hidden; width:131px; margin:0 auto">');
	writeMyFav('DRAMA00004165');
	document.write('</div>');		
}

// µîÀåÀÎ¹°
function cast(num) {
	document.getElementById("cast"+global_cast).className = "cast" + global_cast;
	document.getElementById("cast"+num).className = "cast" + num + "_on";
	document.getElementById("i_cast"+global_cast).className = "blind";		
	document.getElementById("i_cast"+num).className = "display_block";
	global_cast = num;
}