
//-------- ÇÃ·¡½Ã ¸ÞÀÎºñÁê¾ó(·Î±×ÀÎ/¸®¾Æ Æ÷ÇÔ)ÇÔ¼ö ½ÃÀÛ
	function SWFLoader(width,height,dir,num1,num2,num3,url1,url2,url3,url4,url5,id) {

		var FlashVar = "mmenu="+num1+"&smenu="+num2+"&tmenu="+num3+"&url1="+url1+"&url2="+url2+"&url3="+url3+"&url4="+url4+"&url5="+url5

		if (id =="")
		{
			id = 'wmode';
		}
		if (navigator.appName.indexOf("Microsoft") > -1 )
		{
		gnbflashStr = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"' id='"+id+"' >"+
			"<param name='allowScriptAccess' value='always'>"+
			"<param name='allowFullScreen' value='false'>"+
			"<param name='movie' value='"+dir+"'>"+
			"<param name='quality' value='high'>"+
			"<param name='wmode' value='transparent'>"+
			"<param name='base' value='.'>"+
			"<param name=FlashVars value='mmenu="+num1+"&smenu="+num2+"&tmenu="+num3+"&url1="+url1+"&url2="+url2+"&url3="+url3+"&url4="+url4+"&url5="+url5+"' />"+
			"<embed name='"+id+"' base='.' src='"+dir+"' FlashVars='mmenu="+num1+"&smenu="+num2+"&tmenu="+num3+"url1="+url1+"&url2="+url2+"&url3="+url3+"&url4="+url4+"&url5="+url5+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' wmode='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>"+
			"</object>";
		}
		else
		{
		gnbflashStr = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"'>"+
			"<param name='allowScriptAccess' value='always'>"+
			"<param name='allowFullScreen' value='false'>"+
			"<param name='movie' value='"+dir+"'>"+
			"<param name='quality' value='high'>"+
			"<param name='wmode' value='transparent'>"+
			"<param name='base' value='.'>"+
			"<embed name='"+id+"' src='"+dir+"?"+FlashVar+"'  quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' wmode='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>"+
			"</object>";
		}


		document.write(gnbflashStr);
	}

	function flashLoader(width,height,dir,mainPos,subPos,id){
		if (dir.indexOf("swf") > 0) {
			document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"' id='"+id+"'>");
			document.write("<param name='movie' value='"+dir+"?mmenu="+mainPos+"&smenu="+subPos+"'>");
			document.write("<param name='quality' value='high'>");
			document.write("<param name='wmode' value='transparent'>");
			document.write("<param name='base' value='.'>");
			document.write("<param name=FlashVars value='mmenu="+mainPos+"&smenu="+subPos+"' />");
			document.write("<embed name='"+id+"' base='.' FlashVars='mmenu="+mainPos+"&smenu="+subPos+"' src='"+dir+"?mmenu="+mainPos+"&smenu="+subPos+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"' wmode='transparent'></embed>");
			document.write("</object>");
		}
		else {
			document.write("<img src='"+dir+"' width='"+width+"' height='"+height+"'  border='0'>");
		}
	}


//-------- ÇÃ·¡½Ã ¸ÞÀÎºñÁê¾ó½Ã°è ÇÔ¼ö
	function flashLoader_MainClock(width,height,dir,mainPos,subPos,id){
		if (dir.indexOf("swf") > 0) {
			document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"' id='"+id+"'>");
			document.write("<param name='movie' value='"+dir+"'>");
			document.write("<param name='quality' value='high'>");
			document.write("<param name='wmode' value='transparent'>");
			document.write("<param name='base' value='.'>");
			document.write("<param name=FlashVars value='mmenu="+mainPos+"&smenu="+subPos+"' />");
			document.write("<embed name='"+id+"' base='.' FlashVars='mmenu="+mainPos+"&smenu="+subPos+"' src='"+dir+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"' wmode='transparent'></embed>");
			document.write("</object>");
		}
		else {
			document.write("<img src='"+dir+"' width='"+width+"' height='"+height+"'  border='0'>");
		}
	}


	function SWFLoader_event(dir,width,height,url1,id) {
		document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"' id='"+id+"' >");
		document.write("<param name='movie' value='"+dir+"'>");
		document.write("<param name='allowScriptAccess' value='always'>");
		document.write("<param name='allowFullScreen' value='false'>");
		document.write("<param name='quality' value='high'>");
		document.write("<param name='bgcolor' value='#000000'>");
		document.write("<param name='scale' value='noscale'>");
		document.write("<param name='menu' value='false'>");
		document.write("<param name='align' value='middle'>");
		document.write("<param name='salign' value='t'>");
		document.write("<param name='wmode' value='transparent'>");
		document.write("<param name=FlashVars value='xmlUrl="+url1+"' />");
		document.write("<embed name='"+id+"' base='.' src='"+dir+"' FlashVars='xmlUrl="+url1+"' quality='high' width='"+width+"' height='"+height+"' align='middle'	allowScriptAccess='sameDomain' allowFullScreen='false' name='wmode' value='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
		document.write("</object>");
	}


//-------- ·Ñ¸µ ½ºÅ©¸³Æ®
	var tv_iMainTimer;
	var tv_iSubTimer;

	var new_iMainTimer;
	var new_iSubTimer;

	var week_iSubTimer;
	var week_iSubTimer;

	var tv_beforescrollTop = 0;
	var new_beforescrollTop = 0;
	var week_beforescrollTop = 0;

	function week_makeMainTimer(){
	  	week_iMainTimer=setInterval('week_scrollIt_main()',4000);
	}

	function tv_makeMainTimer(){
	  	tv_iMainTimer=setInterval('tv_scrollIt_main()',2000);
	}

	function new_makeMainTimer(){
	  	new_iMainTimer=setInterval('new_scrollIt_main()',4000);
	}

	function week_makeSubTimer(){
	  	week_iSubTimer=setInterval('week_scrollIt_sub()',10);
	}

	function tv_makeSubTimer(){
	  	tv_iSubTimer=setInterval('tv_scrollIt_sub()',10);
	}

	function new_makeSubTimer(){
	  	new_iSubTimer=setInterval('new_scrollIt_sub()',10);
	}

	function week_scrollIt_main(){
		clearInterval(week_iMainTimer);
		week_makeSubTimer();
	}

	function tv_scrollIt_main(){
		clearInterval(tv_iMainTimer);
		tv_makeSubTimer();
	}

	function new_scrollIt_main(){
		clearInterval(new_iMainTimer);
		new_makeSubTimer();
	}

	function week_scrollIt_sub(){
		week_beforescrollTop = week_update.scrollTop;

		if(((week_update.scrollTop+1) % 22 == 0) && week_update.scrollTop != 0 ){
			clearInterval(week_iSubTimer);
			week_makeMainTimer();
			week_update.scrollTop = week_update.scrollTop + 1;
		}else{
			week_update.scrollTop = week_update.scrollTop + 1;
		}

		if(week_beforescrollTop == week_update.scrollTop){
			week_update.scrollTop = 0;
			clearInterval(week_iSubTimer);
			week_makeMainTimer();
		}
	}
	//20080730 º¯°æ
	function tv_scrollIt_sub(){
		tv_beforescrollTop = tv_update.scrollTop;

		if((tv_update.scrollTop % 18 == 0) && tv_update.scrollTop != 0 ){
			clearInterval(tv_iSubTimer);
			tv_makeMainTimer();
			tv_update.scrollTop = tv_update.scrollTop + 1;
		}else{
	  		tv_update.scrollTop = tv_update.scrollTop + 1;
	  	}

	  	if(tv_beforescrollTop == tv_update.scrollTop){
  			tv_update.scrollTop = 0;
  			clearInterval(tv_iSubTimer);
			tv_makeMainTimer();
  		}
	}
	//20080730 º¯°æ

	function new_scrollIt_sub(){
		new_beforescrollTop = new_update.scrollTop;

		if((new_update.scrollTop % 20 == 0) && new_update.scrollTop != 0 ){
			clearInterval(new_iSubTimer);
			new_makeMainTimer();
			new_update.scrollTop = new_update.scrollTop + 1;
		}else{
	  		new_update.scrollTop = new_update.scrollTop + 1;
	  	}

	  	if(new_beforescrollTop == new_update.scrollTop){
  			new_update.scrollTop = 0;
  			clearInterval(new_iSubTimer);
			new_makeMainTimer();
  		}
	}

	function weekUpdateScrollDisplay(cmd){
		if(cmd == "stop"){
			clearInterval(week_iMainTimer);
			clearInterval(week_iSubTimer);
		}else{
			week_makeMainTimer();
		}
	}

	function tvUpdateScrollDisplay(cmd){
		if(cmd == "stop"){
			clearInterval(tv_iMainTimer);
			clearInterval(tv_iSubTimer);
		}else{
			tv_makeMainTimer();
		}
	}

	function newUpdateScrollDisplay(cmd){
		if(cmd == "stop"){
			clearInterval(new_iMainTimer);
			clearInterval(new_iSubTimer);
		}else{
			new_makeMainTimer();
		}
	}

	function weekUpdateScrollNext(){
		week_beforescrollTop = week_update.scrollTop;
		week_update.scrollTop = week_update.scrollTop + 80;
		if(week_beforescrollTop == week_update.scrollTop){
			week_update.scrollTop = 0;
		}
	}

	function weekUpdateScrollPre(){
		week_beforescrollTop = week_update.scrollTop;
		week_update.scrollTop = week_update.scrollTop - 80;
		if(week_beforescrollTop == week_update.scrollTop){
			week_update.scrollTop = 0;
		}
	}

	function tvUpdateScrollNext(){
		tv_beforescrollTop = tv_update.scrollTop;
		tv_update.scrollTop = tv_update.scrollTop + 80;
		if(tv_beforescrollTop == tv_update.scrollTop){
			tv_update.scrollTop = 0;
		}
	}

	function tvUpdateScrollPre(){
		tv_beforescrollTop = tv_update.scrollTop;
		tv_update.scrollTop = tv_update.scrollTop - 80;
		if(tv_beforescrollTop == tv_update.scrollTop){
			tv_update.scrollTop = 0;
		}
	}

	function newUpdateScrollNext(){
		new_beforescrollTop = new_update.scrollTop;
		new_update.scrollTop = new_update.scrollTop + 80;
		if(new_beforescrollTop == new_update.scrollTop){
			new_update.scrollTop = 0;
		}
	}

	function newUpdateScrollPre(){
		new_beforescrollTop = new_update.scrollTop;
		new_update.scrollTop = new_update.scrollTop - 80;
		if(new_beforescrollTop == new_update.scrollTop){
			new_update.scrollTop = 0;
		}
	}


//-------- ¸µÅ©
	function clickStaticsURL(url, name){
		//alert(name)
		click_event(name);
		location.href = url;
	}

	function clickStaticsURL_New(url, name, mark_id) {
		// click_event(name);
		// location.href = url+"?mark_id="+mark_id;
		//alert(mark_id);
	}

	function goLogout() {

		var img = document.createElement("img");
		img.src="http://join.skbroadband.com/hanarosso/Join_logout.jsp";
		document.getElementsByTagName("head")[0].appendChild(img);

		var Timer = setTimeout(function() {
			clickStaticsURL('/hanarosso/ssologout.asp', '/GNB/·Î±×¾Æ¿ô');
			//alert("·Î±×¾Æ¿ôµÇ¾ú½À´Ï´Ù.");
		}, 100);

	 }

	function clickStaticsURLpopup(url, name, link_type){
		click_event(name);

		if (link_type=='1')			//º»Ã¢
		{
			location.href = url;

		}else if (link_type=='2'){	//»õÃ¢
			window.open(url);

		}else if (link_type=='4'){ //ÆË¾÷Ã¢
			openPopUp(url,'','no','970' ,'660');

		}else if (link_type=='5'){ //ÆË¾÷Ã¢
			openPopUp(url,'win_expr','yes','980' ,'900');
		}else{
			window.open(url);
		}
	}
	function click_event(name) {
		//alert(name);
		eval("try{ _trk_clickTrace( 'EVT', '" + name + "' ); }catch(_e){ }");
	}


//------ Tab Display - ÇÑ°³·Î ÅëÇÕ (by sun)
	var slth=0;
	function TabMenu(id,index) {
		var selectObj=document.getElementById(id).getElementsByTagName("li");
		var tabMenu = document.getElementById(id).getElementsByTagName("a");

		for (var i=1; i<=selectObj.length; i++) {
			document.getElementById(id+i).style.display= (index==i)?"":"none";
			var imgEl=tabMenu[i-1].getElementsByTagName("img").item(0);
			imgEl.src = (index==i)? imgEl.src.replace("_off.gif", "_on.gif"):imgEl.src.replace("_on.gif", "_off.gif");
		}
	}


//------ Event Display
	var currentToggle=1;
	function EventMenu(e) {
		oldTd = document.getElementById("evlist"+currentToggle);
		oldTd_on = document.getElementById("evlist"+currentToggle+"_on");
		newTd = document.getElementById("evlist"+e);
		newTd_on = document.getElementById("evlist"+e+"_on");

		if(currentToggle && currentToggle != e) {
			oldTd.style.display = "";
			oldTd_on.style.display = "none";
		}

		newTd.style.display = "none";
		newTd_on.style.display = "";

		currentToggle = e;
	}




//------ ÀÌ¹ÌÁö ·Ñ¿À¹ö by sun
	function menuOver(imgEl) {
		imgEl.src = imgEl.src.replace(".gif", "_on.gif");
	}
	function menuOut(imgEl) {
		imgEl.src = imgEl.src.replace("_on.gif", ".gif");
	}

//------ ¸ÞÀÎ,¼­ºê ·Ñ¿À¹ö½Ã div height°ª ÀÚµ¿À¸·Î ´Ã¾î³ª´Â ÇÔ¼ö
	function mainNavi(e) {
		if(e=="on") {
			document.getElementById("main_navi").className = "on";
		}
		else {
			document.getElementById("main_navi").className = "off";
		}
	}


//------ °øÁö»çÇ× ¿¬°á
	goNotice = function(type, seq){
		var url = "";
		var clickname = "";
		if(type == "S001"){
			url = "/channel/NewNoticeDetail.asp?keyNum=" + seq;
			clickname = "¸ÞÀÎ/ºê·Îµå¾ØTV Ã¤³Î°øÁö"
		}else if (type == "S002"){
			url = "/service/NoticeDetail.asp?keyNum=" + seq;
			clickname = "¸ÞÀÎ/°øÁö»çÇ×"
		}else if (type == "S003"){
			url = "/service/NewsDetail.asp?keynum=" + seq;
			clickname = "¸ÞÀÎ/º¸µµÀÚ·á"
		}
		//alert(clickname)
		clickStaticsURL(url,clickname)
	}
	goNotice2 = function(type, seq, mid_class){
		var url = "";

		if ((type == "S001") && (mid_class =="0004")){
			url = "/channel/NewNoticeDetail.asp?keyNum=" + seq + "&gubun=close";
			clickStaticsURL(url,'¸ÞÀÎ/ºê·Îµå¾ØTV Ã¤³Î°øÁö')
		}else{
			url = "/channel/NewNoticeDetail.asp?keyNum=" + seq;
			clickStaticsURL(url,'¸ÞÀÎ/¸ÞÀÎ/ºê·Îµå¾ØTV Ã¤³Î°øÁö')
			}
	//	location.href = url;
	}





//ÇÁ¸®¹Ì¾î ¸µÅ©
	goHanaBoxDetail = function(con_id, c_menu, link_type, extra){

		var extraValues = extra.split("|");	//¿ÜºÎµðºñ¿©ºÎ¿¡ µû¶ó ÆäÀÌÁö ÀÌµ¿(Back¹öÆ° ¿À·ù·Î Àû¿ë)
		var url;

		if (extraValues[0] == '0') {
			url = '/channel/ChannelExtraDetail.asp?con_id='+ con_id +'&record='+extraValues[1];
		} else {
			url = '/channel/ChannelDetail.asp?con_id='+ con_id ;
		}
	clickStaticsURL(url,'¸ÞÀÎ/ÇÁ¸®¹Ì¾î')
//			if(link_type == "1")
//				url = url + "&sch_menu_info=" + c_menu + "&p_mode=1";
//			else if(link_type== "2" )
//				url = url + "&key_depth1=2400";

		}

//IPTV Ã¤³Î ¸µÅ©
goIPTVList = function(key_depth1, key_depth2,key_depth3,key_chno,key_depth2_name){

			var tr_str	= "";
			tr_str = tr_str + "<form name='linkForm' id='linkForm' method='post'>";
			tr_str = tr_str + "<input type='hidden'  name='key_depth2'>";
			tr_str = tr_str + "<input type='hidden'  name='key_depth3'>";
			tr_str = tr_str + "<input type='hidden'  name='key_depth2_name'>";
			tr_str = tr_str + "<input type='hidden'  name='key_chno'>";
			tr_str = tr_str + "</form>";

			document.getElementById("div_live_str").innerHTML = tr_str;

			if(key_depth1 == 0)
			return;

			document.linkForm.key_depth2.value = key_depth2;
			document.linkForm.key_depth3.value  = key_depth3;
			document.linkForm.key_depth2_name.value  = key_depth2_name;
			document.linkForm.key_chno.value		 = key_chno;
			//linkForm.action = "/channel/ChannelLiveList.asp?key_depth1=" + key_depth1; //+ "&key_depth2=" + key_depth2+"&key_depth3=" + key_depth3;
			//linkForm.submit();

			$("#linkForm").attr("action", "/channel/ChannelLiveList.asp?key_depth1=" + key_depth1);
			$("#linkForm").submit();


	}
	goUpdateDetail = function(record,update_date){

		var url="/channel/UpdatePreViewDetail.asp?record=" + record + "&update_date="+update_date;

		if(record == 0)
			return;

		location.href = url;
	}

//¸ÞÀÎ¼îÇÎ
goMainShoppingDetail = function(con_id, c_menu, link_type){
		var url="/channel/ChannelDetail.asp?con_id=" + con_id

		url = url + "&key_depth1=2400";

		clickStaticsURL(url,'¸ÞÀÎ/ºê·Îµå¾ØTV ¼îÇÎ')

	}


changeImg = function(img){
	document.getElementById("channel_notice_img").src = img;
}

goStaticsUrl = function(url, name, type){
	click_event(name);

	if(type == 2)
		window.open(url);
	else
		location.href = url;
}

	//ÆË¾÷
	function openPopUp(url,nm,sb,w,h) {
		window.open(url,nm,"toolbar=no,location=no,directory=no,status=no,menubar=no,scrollbars="+sb+",resizable=no,copyhistory=no,width="+w+",height="+h);
	}
	//IPTVÆË¾÷
	function openPopUpIPTV() {
		window.open("/iptv2/index_nl.asp","iptv2","toolbar=no,location=no,directory=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=980,height=700");
	}

	//¼îÇÎ µ¿¿µ»ó º¸±â
	function goPlayShoppingMovie(file, title, ch_no, type) {
		var url = "/popup/PopShoppingMovie.asp?file_name=" + file + "&title=" + escape(title)  + "&ch_no=" + ch_no + "&type_name=" + type;
		openPopUp(url,"pop_movie","n", "565","660");
		//alert(con_id+" µ¿¿µ»óº¸±â");
	}


	function main_img_error(id, img){
		document.getElementById(id).src = img;
	}



	//-----------------------------------------------------------------------
	//----- Quick Menu  -----------------------------------------------------
	//-----------------------------------------------------------------------

	ScroolTop = function(className, id) {
		this.IE = document.all ? 1 : 0;
		this.NN = document.layer ? 1 : 0;
		this.N6 = document.getElementById ? 1 : 0;
		if(this.IE) this.layer = document.all(id);
		else if(this.NN) this.layer = document.layer[id];
		else if(this.N6) this.layer = document.getElementById(id);
		else return;
		this.className = className;
		this.top = this.oldY = parseInt(this.layer.style.top,10);
		setInterval(this.className + ".move()", 10);
	}


	var temp=0;
	var qBG; //´Ã¾î³ª´Â ¶óÀÎ
	//var qLive; //IPTVÆí¼ºÇ¥
	//var qChannel; //Ã¤³Î¹Ù·ÎÃ£±â

	ScroolTop.prototype.move = function() {
		this.IE = document.all ? 1 : 0;
		this.NN = document.layer ? 1 : 0;
		this.N6 = document.getElementById ? 1 : 0;
		if(this.IE) {
			qBG = document.all('q_bg');
		}
		else if(this.NN) {
			qBG = document.layer['q_bg'];
		}
		else if(this.N6) {
			qBG = document.getElementById('q_bg');
		}
		else return;


		var diffY = (this.IE) ? document.documentElement.scrollTop+this.top : self.pageYOffset+this.top; //main

		if(diffY != this.oldY) {
			var percentY = .1 * (diffY - this.oldY);
			percentY = (percentY > 0) ? Math.ceil(percentY) : Math.floor(percentY);

			this.oldY += percentY;


			if (document.documentElement.offsetHeight<this.oldY+(document.documentElement.offsetHeight*0.5)) {
				qBG.style.height = (document.documentElement.offsetHeight-(document.documentElement.offsetHeight*0.5)) + "px";
			}
			else {
				this.layer.style.top = "104px";
				//alert (this.oldY);
				qBG.style.height = (this.oldY-33) + "px";

				//this.layer.style.top = this.oldY + "px";
			}

			//qLive.style.top = qBG.style.height; //IPTVÃ¤³ÎÆí¼ºÇ¥
			//qChannel.style.top = qBG.style.height; //Ã¤³Î¹Ù·ÎÃ£±â

		}

	}

	// ¸ÞÀÎ °øÁö»çÇ× more
	function fMoreLink(url){
		if(url == ''){
			url = '/service/NoticeList.asp';
		}
		document.getElementById("notice_more").innerHTML ="<a href='"+url+"'><img src='/img/main_new2/btn_more.gif' alt='more' /></a>" ;
	}


	//JQUERY POPUP
	//0 means disabled; 1 means enabled;
	var popupStatus = 0;

	//loading popup with jQuery magic!
	function loadPopup(){
		//loads popup only if it is disabled
		if(popupStatus==0){
			$("#backgroundPopup").css({
				"opacity": "0.3",
				"display": "block"
			});
			//$("#backgroundPopup").fadeIn("fast");
			//$(obj).fadeIn("fast");
			popupStatus = 1;

		}
	}

	//disabling popup with jQuery magic!
	function disablePopup(){
		//disables popup only if it is enabled
		if(popupStatus==1){
			$("#backgroundPopup").css({
				"display": "none"
			});
			//$("#backgroundPopup").fadeOut("fast");
			//$(obj).fadeOut("fast");
			popupStatus = 0;
		}
	}

	//------- ½ÃÃ»Ã¤³Î¼øÀ§ ÇÃ·¡½Ã È£Ãâ
	function viewPoster(e, url1) {

		//3¿ù15ÀÏºÎÅÍ click_event ¼³Á¤ ----
		var name = "";
		if (e == 1 )		{
			name="¸ÞÀÎ/VOD½ÃÃ»¼øÀ§ ¿µÈ­";
		}
		else if (e == 2 ) {
			name="¸ÞÀÎ/VOD½ÃÃ»¼øÀ§ Áö»óÆÄ";
		}
		else if (e == 3 ) {
			name="¸ÞÀÎ/VOD½ÃÃ»¼øÀ§ Å°Áî";
		}
		else if (e == 4 ) {
			name="¸ÞÀÎ/VOD½ÃÃ»¼øÀ§ ¾Ö´Ï¸ÞÀÌ¼Ç";
		}
		else if (e == 5 ) {
			name="¸ÞÀÎ/VOD½ÃÃ»¼øÀ§ ÇØ¿Üµå¶ó¸¶";
		}
		click_event(name);
		//-----------------------------------

		layerOff_liveM();
		hiddenChannelM();
		loadPopup(); //modal popup

		//var width = 619;
		//var height = 445;
		var width = 936;
		var height = 492;

		var dir = "/flash/main_new2/hana_poster.swf";
		var type = e;

		html = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"'>";
		html += "<param name='allowScriptAccess' value='always'>";
		html += "<param name='allowFullScreen' value='false'>";
		html += "<param name='movie' value='"+dir+"'>";
		html += "<param name='quality' value='high'>";
		html += "<param name='wmode' value='transparent'>";
		html += "<param name='base' value='.'>";
		html += "<param name=FlashVars value='url1="+url1+"&type="+e+"' />";
		html += "<embed base='.' src='"+dir+"' FlashVars='url1="+url1+"&type="+e+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' name='wmode' value='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>";
		html += "</object>";
		var poster = document.getElementById("poster");
		poster.innerHTML = html;
		poster.style.display = "";
	}

	function hiddenLayer() {
		var poster = document.getElementById("poster");
		poster.style.display = "none";
		poster.innerHTML = "";
		disablePopup(); //modal popup
	}



	//IPTVÃ¤³ÎÆí¼ºÇ¥-¸ÞÀÎ
	//index ÆäÀÌÁö³»¿¡¼­ ±¸Çö

	//Ã¤³Î¹Ù·ÎÃ£±â ½ºÅ©¸³Æ®-¸ÞÀÎ
	function main_channel(){
		channel_selectM(1);click_event('/¸ÞÀÎ/Ã¤³Î¹Ù·ÎÃ£±â')
	}

	//Ã¤³Î¹Ù·ÎÃ£±â ½ºÅ©¸³Æ®-¸ÞÀÎ Äü¸Þ´º
	function channel(){
		channel_selectM(1);click_event('/Äü¸Þ´º/Ã¤³Î¹Ù·ÎÃ£±â')
	}

	//IPTVÃ¤³ÎÆí¼ºÇ¥ ½ºÅ©¸³Æ®-¸ÞÀÎ
	function layerOn_liveM(dir) {
		hiddenChannelM();
		hiddenLayer();

		loadPopup(); //modal popup

		html = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='875' height='500' id='programLog' align='middle'>";
		html += "<param name='allowScriptAccess' value='sameDomain' />";
		html += "<param name='allowFullScreen' value='false' />";
		html += "<param name='movie' value='"+dir+"' />";
		html += "<param name='quality' value='high' /><param name='bgcolor' value='#ffffff' />";
		html += "<param name='wmode' value='transparent'>";
		html += "<embed src='"+dir+"' quality='high' bgcolor='#ffffff' width='875' height='500' name='programLog' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
		html += "</object>";
		var liveTable = document.getElementById("p_liveTableM");
		liveTable.style.display = "";
		liveTable.innerHTML = html;
	}
	function layerOff_liveM() {
		var liveTable = document.getElementById("p_liveTableM");
		liveTable.style.display = "none";
		liveTable.innerHTML = "";
		disablePopup(); //modal popup
	}

	//Ã¤³Î¹Ù·ÎÃ£±â ½ºÅ©¸³Æ®-¸ÞÀÎ
	function channel_selectM(e, url1) {
		layerOff_liveM();
		hiddenLayer();

		loadPopup(); //modal popup

		var width = 589;
		var height = 473;
		var dir = "/flash/main_new2/channel_select_Main.swf";
		url1 = "/main/QuickMenuNew.asp";
		var type = e;

		html = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"'>";
		html += "<param name='allowScriptAccess' value='always'>";
		html += "<param name='allowFullScreen' value='false'>";
		html += "<param name='movie' value='"+dir+"'>";
		html += "<param name='quality' value='high'>";
		html += "<param name='wmode' value='transparent'>";
		html += "<param name='base' value='.'>";
		html += "<param name=FlashVars value='xmlUrl="+url1+"&type="+e+"' />";
		html += "<embed base='.' src='"+dir+"' FlashVars='xmlUrl="+url1+"&type="+e+"' quality='high' width='"+width+"' height='"+height+"' align='middle' allowScriptAccess='sameDomain' allowFullScreen='false' name='wmode' value='transparent' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>";
		html += "</object>";
		var chGo = document.getElementById("channel_goM");
		chGo.style.display = "";
		chGo.innerHTML = html;
	}
	function hiddenChannelM() {
		var chGo = document.getElementById("channel_goM");
		chGo.style.display = "none";
		chGo.innerHTML = "";
		disablePopup(); //modal popup
	}
	//-----------------------------------------------------------------------
	//----- Quick Menu  -----------------------------------------------------
	//-----------------------------------------------------------------------
