// Àü¿ªº¯¼ö
var cast = 11;						

//¸ÞÀÎ»ó´Ü
function mainTop(){
	document.write('<h1><a href="http://www.imbc.com/broad/tv/ent/highkick2/index.html"><b>ÁöºØ¶Õ°í ÇÏÀÌÅ±2</b></a></h1>');
	number = Math.floor(Math.random()*5)+1;
	document.write('<div style="position:absolute; left:180px; top:0px; width:635px; height:195px; background:url(http://img.imbc.com/broad/tv/ent/highkick2/images/visual_'+number+'.jpg);"></div>');
	document.write('<div style="position:absolute; left:627px; top:0px; width:184px; height:30px; margin-top:10px;"><img src="http://img.imbc.com/broad/tv/ent/highkick2/images/program_info.png" class="png24"/></div>');
}

//ÁÂÃø¸Þ´º
function leftMenu(){
	writeSwf('http://swf.imbc.com/broad/tv/ent/highkick2/subMenu_091123.swf',180,600,false);
}

//ÁÂÃø¸Þ´º2(Áñ°ÜÃ£±â Ãß°¡µÊ)
function snb() {
	document.write('<div>');
	writeSwf('http://swf.imbc.com/broad/tv/ent/highkick2/subMenu_091123.swf',180,600,false);
	document.write('</div>');
	document.write('<a href="http://onemore.imbc.com/" target="_blank" style="display:block; margin:0 auto"><img src="http://img.imbc.com/broad/tv/ent/highkick2/images2/banner_onemoretv.jpg" alt="ÇÏ³ª´õTV ÁöºØ¶Õ°íÇÏÀÌÅ±ÀÇ ÇÏÀÌ¶óÀÌÆ® Å¬¸³À» ¹«·á·Î °¨»óÇÏ¼¼¿ä" title="" /></a>');
	document.write('<a href="http://www.tvian.com/tviews/tagSearch.aspx?tagname=%uBCA0%uC5B4" style="display:block; margin:5px auto" target="_blank"><img src="http://img.imbc.com/broad/tv/ent/highkick2/images2/couple_bear.jpg" alt="ÁöºØ¶Õ°íÇÏÀÌÅ± ÇöÀå´º½º" /></a>');
	document.write('<div style="margin:0px auto 5px auto; text-align:center;">');
function goLastProgURL(strUrl)
{
	if (strUrl != "0")
	{
		if (strUrl.lastIndexOf("::") > 0)
		{
			strMoveUrl = strUrl.split("::");
			window.open(strMoveUrl[0],"LastProgWin","toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,width=750,height=577");
		}
		else
		{
			window.location.href = strUrl;			
		}
	}
}


document.writeln("<select onChange=goLastProgURL(selLastProg.value) name=selLastProg class=poll style='HEIGHT: 22px; WIDTH: 132px'>");
document.writeln("<option value=0 selected>ÇÁ·Î±×·¥¹Ù·Î°¡±â</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/bigparty/index.html>MBC °¡¿äÅ«ÀÜÄ¡</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/mbcani/index.html>MBC ¸¸È­¸¶´ç</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/surprise/index.html>TV Æ¯Á¾! ³î¶ó¿î ¼¼»ó</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/kisskiss/eng>[»Ç»Ç»Ç] ¾Å¾Å¾Å Æ÷ÄÚ¿ä ¿µ...</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/gag/index.html>°³±×¾ß</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/thatman/index.html>±×ºÐÀÌ ¿À½Å´Ù</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/yoonkim/index.html>³î·¯¿Í</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/mbcani/index.html>·¹Ä«ß²ÏÐò¤ - MBC¸¸È­¸¶´ç</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/loginnews/index.html>·Î±×ÀÎ ½Ì½Ì´º½º</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/hero/>¸í¶û È÷¾î·Î</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/challenge/main.html>¹«ÇÑµµÀü</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/kisskiss/index.html>»Ç»Ç»Ç ¾ÆÀÌÁ¶¾Æ</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/mbcani/vodlist/world/vod/index.html>¼¼°è¸¦ ºû³½ ¾î¸°À§ÀÎµé - ...</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/sectiontv/index.html>¼½¼ÇTV ¿¬¿¹Åë½Å</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/musiccore/index.html>¼î! À½¾ÇÁß½É</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/meeting/index.html>½ºÅ¸ÀÇ Ä£±¸¸¦ ¼Ò°³ÇÕ´Ï´Ù</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/mystery/index.html>½ÅºñÇÑ TV ¼­ÇÁ¶óÀÌÁî</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/mbcani/index.html>À§´ëÇÑ ¿Õ ¼¼Á¾ - MBC¸¸...</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/sundaynight/index.html>ÀÏ¿äÀÏ ÀÏ¿äÀÏ ¹ã¿¡</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/mbcmovietotal/index.html>ÁÖ¸»ÀÇ ¸íÈ­ - MBC¿µÈ­¸¶...</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/delicious/index.html>Ã£¾Æ¶ó! ¸ÀÀÖ´Â TV</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/video/index.html>Ãâ¹ß! ºñµð¿À ¿©Çà</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/science/index.html>Å°Áî»çÀÌ¾ð½º ¸¶¹ýÀº ¾ø¾î</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/thj/index.html>ÅÂÈñÇý±³ÁöÇöÀÌ</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/h_jumong/index.html>ÇÑÀÚ¿Õ ÁÖ¸ù</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/happytime/index.html>ÇØÇÇÅ¸ÀÓ</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/couple/index.html>È¯»óÀÇ Â¦²á</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/goldfish/index.html>È²±Ý¾îÀå</option>");
document.writeln("");
document.writeln("<option value=http://www.imbc.com/broad/tv/ent/mbcani/index.html>ÈæÀå¹Ì ºÎÀÎÀÇ ¹®¹æ±¸ - M...</option>");
document.writeln("");
document.writeln("</select>");
	document.write('</div>');
	document.write('<div class="w_131 m_0a" style="width:131px; text-align:center;">');
	/* Áñ°ÜÃ£±â Ãß°¡ */
	writeMyFav('ENTER00002298');
	document.write('</div>');
}


/* 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 castView(num) {
	if(num >= 9) {
		if(cast == 11) {
			document.getElementById("castImg").innerHTML = '<img src="http://img.imbc.com/broad/tv/ent/highkick2/images2/cast_img' + num + '.jpg" useMap="#Map'+ num +'">';
		} else {
			document.getElementById("list"+cast).className = "list" + cast;
			document.getElementById("castImg").innerHTML = '<img src="http://img.imbc.com/broad/tv/ent/highkick2/images2/cast_img' + num + '.jpg" useMap="#Map'+ num +'">';
		}		
	} else {
		if(cast == 11) {
			document.getElementById("list"+num).className = "list" + num + "_on";
			document.getElementById("castImg").innerHTML = '<img src="http://img.imbc.com/broad/tv/ent/highkick2/images2/cast_img' + num + '.jpg" useMap="#Map'+ num +'">';
			cast = num;
		} else {
			document.getElementById("list"+cast).className = "list" + cast;
			document.getElementById("list"+num).className = "list" + num + "_on";
			document.getElementById("castImg").innerHTML = '<img src="http://img.imbc.com/broad/tv/ent/highkick2/images2/cast_img' + num + '.jpg" useMap="#Map'+ num +'">';
			cast = num;
		}
		
	}
	
}
