<!--
/*
1. Å¸ÀÌÆ²Á¦¾î½ºÅ©¸³Æ®
2. ÇÃ·¡½¬ ½ºÅ©¸³Æ® Flash(id,url,w,h,bg,t)
3. ÆäÀÌÁöÀÌµ¿½ºÅ©¸³Æ® TmPgMove(one, two, three)
4. °Ô½ÃÆÇ À¯ÇØ¼Ò½º Áö¿ì±â chk()
5. »çÀÌÆ®¿¡¼­ µå·¹±× ±ÝÁö ¼Ò½ºÀÔ´Ï´Ù

*/

//Å¸ÀÌÆ² Á¦¾î ½ºÅ©¸³Æ®
document.title = "´õ¹ÂÁöÄÃ";

//ºê¶ó¿ìÀúº° ¼³Á¤
var IE  = (navigator.appName.indexOf("Microsoft")>-1);
var IE6 = (navigator.appName.indexOf("Microsoft")>-1)&&(navigator.userAgent.indexOf("MSIE 6")>-1);
var IE7 = (navigator.appName.indexOf("Microsoft")>-1)&&(navigator.userAgent.indexOf("MSIE 7")>-1);

function TmLoginCheck()
{
	location.href = "/mem/login.aspx?url="+location.href;
}

//ÇÃ·¡½¬ ½ºÅ©¸³Æ®
function Flash(id,url,w,h,bg,t){
	document.write("\
		<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width="+w+" height="+h+" id="+id+" align='middle'>\
		<param name='movie' value="+url+" />\
		<param name='wmode' value="+t+" />\
		<param name='bgcolor' value="+bg+" />\
		<param name='allowScriptAccess' value='sameDomain' />\
		<param name='quality' value='high' />\
		<param name='menu' value='false' />\
		<embed src="+url+" wmode="+t+" width="+w+" height="+h+" name="+id+" bgcolor="+bg+" allowScriptAccess='sameDomain' quality='high' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\
		</object>\
	");
}

//intermission ¿¡ ¸ÞÀÎ¸µÅ©½Ã
function pgMove(_url, _part)
{
     if(document.URL.indexOf("/feature/" ) > -1 )
	 {
		number = _url.split("num=");
		if(document.URL.indexOf("/feature/Feature_main_081111.aspx" ) > -1 ) window.location.href = "/feature/Feature_sub_081111.aspx?part="+ _part +"&num="+ number[1];
		else window.location.href = "/feature/Feature_sub_081111.aspx?part="+ lbl_part.innerText +"&num="+ number[1];
	 }
	 else if(document.URL.indexOf("/KBexport/" ) > -1 )
	 {
		number = _url.split("num=");
		if(document.URL.indexOf("/KBexport/KB_news.aspx" ) > -1 )window.location.href = "/KBexport/KB_infosub.aspx?part=12&num="+ number[1];
		else window.location.href = "/KBexport/KB_infosub.aspx?part="+ lbl_part.innerText +"&num="+ number[1];
	 }
	  else if(document.URL.indexOf("/themusical_main_090525.aspx" ) > -1)
	  {
		  number = _url.split("num=");
	      window.location.href = "/intermission/notice_081030.aspx?num="+ number[1];
	  }
	
	 else if(document.URL.indexOf("/world/worldnews_081111.aspx" ) > -1)
	 {
		number = _url.split("num=");
		window.location.href = "/feature/Feature_sub_081111.aspx?part="+ lbl_part.innerText +"&num="+ number[1];
	 }
	 else if(document.URL.indexOf("/magazine/" ) > -1)
	 {
		number = _url.split("num=");
		window.location.href = "/magazine/magzine_sub_090526.aspx?part="+ lbl_part.innerText +"&num="+ number[1];
	 }
	 else window.location.href = _url;
}

function pgMove1(_url)
{
	  if(document.URL.indexOf("themusical_main_090525.aspx" ) > -1)
	  {
		  number = _url.split("num=");
		   window.location.href = "/intermission/notice_081030.aspx?num="+ number[1];
	  }
	  else window.location.href = _url;
}

function TMMove(_url)
{
	if(location.href ="/community/news_picture_sub.aspx")
	{
		
		number = _url.split("num=");
		window.location.href = "/feature/Feature_sub_081111.aspx?part="+ lbl_part.innerText +"&num="+ number[1];
	} 
	else
	{
		number = _url.split("num=");
		window.location.href = _url;
	}
}

function TMMove1(_url)
{	
	number = _url.split("num=");
	window.location.href = _url;
}

function TMMove_URL(_part, _num)
{
	//_part | 3 = ÀÎÅÍºä, 17= ÇÇÃ³, 14 = ½ºÆä¼È
	//_part | 16 = ¸®ºä, 18= ¿ùµå
	if(_part == "3" || _part == "16" || _part == "23" ||_part == "18") location.href = "/magazine/magzine_sub_090526.aspx?part="+ _part +"&num="+ _num;
	else if(_part == "15"  || _part == "21" || _part == "22" )  location.href = "/feature/Feature_sub_081111.aspx?part="+ _part +"&num="+ _num;
}

//ÆäÀÌÁö ÀÌµ¿½ºÅ©¸³Æ®
function TmPgMove(one, two, three)
{
	//ÁÖ¼º¸µÅ© »èÁ¦±ÝÁö
	if(one =="0" && two == "0" && three == "0") location.href = "/themusical.aspx";
	if(one =="0" && two == "1" && three == "0") location.href = "/member/pay.aspx";
	
	//NEWS & REVIEW
	
	if(one =="1" && two == "0" && three == "0") location.href = "/feature/Feature_main_081111.aspx";
	if(one =="1" && two == "1" && three == "0") location.href = "/feature/news_081111.aspx";
	if(one =="1" && two == "2" && three == "0") location.href = "/feature/review_081111.aspx";
	if(one =="1" && two == "3" && three == "0") alert("ÁØºñÁßÀÔ´Ï´Ù");
	
	//On Stage
	if(one =="2" && two == "0" && three == "0") location.href = "/onstage/onstage_main_081030.aspx";
	if(one =="2" && two == "1" && three == "0") location.href = "/onstage/onstage_list_081030.aspx";
	if(one =="2" && two == "2" && three == "0") location.href = "/onstage/onstage_detail.aspx";
	
	//multimedia
	if(one =="3" && two == "0" && three == "0") location.href = "/multimedia/multi_main_081125.aspx";
	if(one =="3" && two == "1" && three == "0") location.href = "/multimedia/multi_list.aspx";
	if(one =="3" && two == "2" && three == "0") location.href = "/multimedia/multi_live_081125.aspx";
	if(one =="3" && two == "3" && three == "0") location.href = "/multimedia/multi_photo1.aspx";
	if(one =="3" && two == "4" && three == "0") location.href = "/multimedia/multi_photo.aspx";
	if(one =="3" && two == "5" && three == "0") location.href = "/multimedia/multi_livetv.aspx";
	
	//Magazine
	if(one =="4" && two == "0" && three == "0") location.href = "/magazine/magazine_main.aspx";
	if(one =="4" && two == "1" && three == "0") location.href = "/magazine/interview_090526.aspx";
	if(one =="4" && two == "2" && three == "0") location.href = "/magazine/feature_090526.aspx";	
	if(one =="4" && two == "3" && three == "0") location.href = "/world/worldnews_081111.aspx";
	if(one =="4" && two == "4" && three == "0") location.href = "/magazine/musical_100308.aspx";
	
	//Musical DB
	if(one =="5" && two == "0" && three == "0") location.href = "/musicaldb/musicaldb_list_1_081030.aspx?section=";
	if(one =="5" && two == "1" && three == "0") location.href = "/musicaldb/musicaldb_list_1_081030.aspx?section=";
	if(one =="5" && two == "2" && three == "0") location.href = "/musicaldb/musicaldb_list_2_081030.aspx?section=";
	
	//Intermission
	if(one =="6" && two == "0" && three == "0") location.href = "/intermission/intermission_main_081030.aspx";
	if(one =="6" && two == "1" && three == "0") location.href = "/intermission/reviewer_081030.aspx";
	if(one =="6" && two == "2" && three == "0") location.href = "/intermission/topic_081030.aspx";
	if(one =="6" && two == "3" && three == "0") location.href = "/intermission/pr_081030.aspx";
	if(one =="6" && two == "4" && three == "0") location.href = "/intermission/notice_081030.aspx";
	if(one =="6" && two == "5" && three == "0") location.href = "/intermission/tm_090526.aspx";
	if(one =="6" && two == "6" && three == "0") location.href = "/intermission/event_110511.aspx";
	
	if(one =="7" && two == "1" && three == "0") alert("ÁØºñÁßÀÔ´Ï´Ù");
	if(one =="7" && two == "3" && three == "0") location.href = "/mem/id_search.aspx?url="+location.href;
	if(one =="7" && two == "4" && three == "0") location.href = "/mem/join_1.aspx?url="+location.href;
	if(one =="7" && two == "5" && three == "0") location.href = "/mem/modify.aspx?url="+location.href;
	if(one =="7" && two == "6" && three == "0") location.href = "/member/secession_110530.aspx";
	
	if(one =="8" && two == "1" && three == "0") location.href = "/information/about.aspx";
	if(one =="8" && two == "2" && three == "0") location.href = "/mem/join_1.aspx?url="+location.href;
	if(one =="8" && two == "3" && three == "0") location.href = "/information/business.aspx";
	if(one =="8" && two == "4" && three == "0") location.href = "/information/sitemap.aspx";
	if(one =="8" && two == "5" && three == "0") location.href = "mailto:isea@themusical.co.kr";
	if(one =="8" && two == "6" && three == "0") location.href = "/information/helpdesk.aspx";
	if(one =="8" && two == "7" && three == "0") location.href = "/information/cooper.aspx";
}

function url_back()
{
	history.back();
}

function url_back1()
{
	history.back();
}

function chk()
{
 	special = new Array("<html>", "</html>", "<meta>", "<link>" ,"<head>", "</head>", "<body>", "</body>", "<form>", "</form>", "<script>", "</script>", "<style>", "</style>", "<hHTML>","</hHTML>","<hMETA>","<hLink>","<hHEAD>","</hHEAD>","<hBODY>","</hBODY>","<hFORM>","</hFORM>","<hSCRIPT>","<hSCRIPT>","<hSTYLE>","<hSTYLE>","<html", "</html", "<meta", "<link" ,"<head", "</head", "<body", "</body", "<form", "</form", "<script", "</script", "<style", "</style", "script", "cookie", "document.","<hHTML","</hHTML","<hMETA","<hLink","<hHEAD","</hHEAD","<hBODY","</hBODY","<hFORM","</hFORM","<hSCRIPT","<hSCRIPT","<hSTYLE","<hSTYLE","script:","cook!e","d0cument.","&lt;html&gt;", "&lt;/html&gt;", "&lt;meta&gt;", "&lt;link&gt;" ,"&lt;head&gt;", "&lt;/head&gt;", "&lt;body&gt;", "&lt;/body&gt;", "&lt;form&gt;", "&lt;/form&gt;", "&lt;script&gt;", "&lt;/script&gt;", "&lt;style&gt;", "&lt;/style&gt;", "&lt;hHTML&gt;","&lt;/hHTML&gt;","&lt;hMETA&gt;","&lt;hLink&gt;","&lt;hHEAD&gt;","&lt;/hHEAD&gt;","&lt;hBODY&gt;","&lt;/hBO//DY&gt;","&lt;hFORM&gt;","&lt;/hFORM&gt;","&lt;hSCRIPT&gt;","&lt;hSCRIPT&gt;","&lt;hSTYLE&gt;","&lt;hSTYLE&gt;","&lt;html", "&lt;/html", "&lt;meta", "&lt;link" ,"&lt;head", "&lt;/head", "&lt;body", "&lt;/body", "&lt;form", "&lt;/form", "&lt;script", "&lt;/script", "&lt;style", "&lt;/style", "&lt;hHTML","&lt;/hHTML","&lt;hMETA","&lt;hLink","&lt;hHEAD","&lt;/hHEAD","&lt;hBODY","&lt;/hBODY","&lt;hFORM","&lt;/hFORM","&lt;hSCRIPT","&lt;hSCRIPT","&lt;hSTYLE","&lt;hSTYLE", "Script", "sCript", "scRipt", "scrIpt", "scriPt", "scripT", "SCRIPT");
	special_1 = new Array("&lt;STYLE&gt;P, span, body, tr, td, th, select, div, form, center, option, pre, blockquote {background:#ffffff; margin:0;padding:0;font-family:µ¸¿ò, Dotum, Arial, sans-serif;font-size:11px;color:#000000;line-height:16px;}&lt;/STYLE&gt;");
	special_2 = new Array("<STYLE>P, span, body, tr, td, th, select, div, form, center, option, pre, blockquote {background:#ffffff; margin:0;padding:0;font-family:µ¸¿ò, Dotum, Arial, sans-serif;font-size:11px;color:#000000;line-height:16px;}</STYLE>");	
	for(i=0; i< special.length+1; i++)
 	{
		if(document.all.htmlCode.value.indexOf(special[i],0) > -1 || document.all.htmlCode.value.indexOf(special_1[0],0) > -1  || document.all.htmlCode.value.indexOf(special_2[0],0) > -1) 
  		{
			document.all.htmlCode.value = document.all.htmlCode.value.replace(special[i],"").replace(special_1[0],"").replace(special_2[0],"");
			i--;
  		}
 	}
}

//·Î°í 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 topLoginCheck()
{
	//alert(document.cookie);
	if(document.cookie.indexOf("name") > -1) 
	{
		document.all.img_login.style.display = "none";
		document.all.img_logout.style.display = "";
		document.all.img_join.style.display = "none";
		document.all.img_diary.style.display = "";
	}
	else 
	{
		document.all.img_login.style.display = "";
		document.all.img_logout.style.display = "none";
		document.all.img_join.style.display = "";
		document.all.img_diary.style.display = "none";
	}
}

//¸µÅ© - ½Å±Ô
function pgLink(_url, num, part, flag, searchtype, searchstr, page, block)
{
	if(searchtype == "") searchtype = 0;
	window.location.href = _url + "?"+ "num="+ num + "&part="+ part + "&flag="+ flag + "&searchtype="+ searchtype  + "&page=" + page+"&block="+block + "&searchstr=" + searchstr;
}

-->

