var no_close=0;

function pop_inter()
{
	parent.ct_action('pop_inter');
	window.open('http://service.skbroadband.com/internetphone/popupnational.asp','pop_inter','width=810,height=600,scrollbars=yes');
}
function pop_phone()
{
	parent.ct_action('pop_phone');
	window.open('internet_phone.htm','pop_phone','width=790,height=600,scrollbars=yes');
}

function pop_local()
{
	//window.open("pop_local.htm","pop_local","width=756,height=700,scrollbars=no,resizable=no");	
}

function pop_phone_modem()
{
	parent.ct_action('pop_pmodem');
	window.open('phone_modem.htm','pop_pmodem','width=800,height=600,scrollbars=yes');
}
	function pop_board()
	{
		ct_action('board');
	
		var mainc=document.getElementById('main_contents');
		var mainb=document.getElementById('main_board');
		var csboard=document.getElementById('cs_board');
		
		csboard.innerHTML="<iframe src='/1giga' width=950 height=540 frameborder=0 allowtransparency=yes></iframe>";
				
		mainc.style.display="none";
		mainb.style.display="block";
	}
	function close_board()
	{
//		ct_action('board_cl');
//		var mainc=document.getElementById('main_contents');
//		var mainb=document.getElementById('main_board');
				
//		mainc.style.display="block";
//		mainb.style.display="none";
	}

	function ImageOver(i_id,flag)
	{
		if (flag==1) i_id.style.filter="Alpha(Opacity=100,finishOpacity=50,style=3)";


		else i_id.style.filter="alpha(opacity=100)";
		
		i_id.style.cursor="hand";
	}

	function bookmark(){
		ct_action('bookmark');		
		window.external.AddFavorite('http://www.1gb.co.kr/skbroadband/?loc=bookmark', 'SKºê·Îµå¹êµå 1599-3622')
	}	
	function unload_cmd()
	{
		ct_action('--CLOSE--');
		
		if (no_close==0)
		{
		if (confirm("Á¤È®ÇÑ ¿ä±Ý¾È³», °úÀå±¤°í¾ø´Â ½Å·ÚÀÇ °¡ÀÔ¼¾ÅÍ\n\n´Ù½Ã ¹æ¹®ÇØÁÖ½Ã¸é °¨»çÇÏ°Ú½À´Ï´Ù.\n\nÁñ°ÜÃ£±â ÇÏ½Ã°Ú½À´Ï±î?\n"))
		{
			ct_action('Áñ°ÜÃ£±â(Á¾·á)');
			window.external.AddFavorite('http://www.1gb.co.kr/skbroadband/?loc=bookmark', 'SKºê·Îµå¹êµå 1599-3622')
		}
		}
	}
	function family_site(_link)
	{
		
		if (_link=="xpeed") { alert('»çÀÌÆ®¸¦ ¸®´º¾óÁßÀÔ´Ï´Ù.'); return; }
		no_close=1;
		window.onunload = test;
		
		switch(_link)
		{
			case "qook":
				location.href="/qook/?loc=fa";			
			break;
			case "broadn":
				location.href="/skbroadband/?loc=fa";
			break;
		}
		
	}
	function test()
	{
	}
	

	function ch_pop()
	{
		parent.ct_action('channel_live');
		window.open('channel/pop_channel.htm','ch_pop','width=742,height=715');
	}
	function vod_pop()
	{
		parent.ct_action('channel_vod');
		window.open('channel/pop_vod.htm','ch_vod','width=742,height=715');
	}	
	function call24()
	{
		document.call24.submit();
	}	
	function showFlash(o,w,h,m)
	{
		var IE = (navigator.appVersion.indexOf("MSIE")>-1)? true : false;
		var s="";
		if (IE){
			s = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ";
			s += "codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\""+w+"\" height=\""+h+"\">";
			s += "<param name=\"movie\" value=\""+o+"\">";
			s += "<param name=\"quality\" value=\"high\">";
			s += "<param name=\"wmode\" value=\"transparent\">";
			s += "<param name=\"wmode\" value=\""+m+"\"></object>";
		}
		else
		{
			s = "<embed src=\""+o+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" ";
			s +="width=\""+w+"\" height=\""+h+"\" wmode=\"transparent\" />";
		}
		document.write(s);
	}
function strFlash(sURL, sName, sFeatures)
{

 //ÇÃ·¡½Ã ActiveX ¿ÀºêÁ§Æ®¸¦ »Ñ·ÁÁÝ´Ï´Ù.
 var FLASHCAB = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab";
 var FLASHCID = "CLSID:D27CDB6E-AE6D-11CF-96B8-444553540000";
 var FLASHVER = "8,0,0,0";

 var sFeature;
 var sWidth  = "100%";
 var sHeight  = "100%";
 var pmBoolean = "false";
 var sTempArray;
 var sParamTag = "";
 var retstr="";

 sFeature = sFeatures.split(/\s*,\s*/);
 for (var i=0; i< sFeature.length ; i++)
 {
  sTempArray = sFeature[i].split(/\s*=\s*/);
  if (sTempArray[0].toLowerCase() == "width"){
   //³ÐÀÌ
   sWidth = sTempArray[1];
  }else if (sTempArray[0].toLowerCase() == "height"){
   //³ôÀÌ
   sHeight = sTempArray[1];
  }else{
   //±âÅ¸ ÆÄ¶ó¸ÞÅÍ Ã³¸®
   if (sTempArray[1].toLowerCase() == "yes" || sTempArray[1] == "1" || sTempArray[1].toLowerCase() == "true"){
    pmBoolean = "true";
   }else if (sTempArray[1].toLowerCase() == "no" || sTempArray[1] == "0" || sTempArray[1].toLowerCase() == "false"){
    pmBoolean = "false";
   }else{
    pmBoolean = sTempArray[1]; 
   }
   sParamTag = "<PARAM NAME='"+sTempArray[0]+"'VALUE='" + pmBoolean + "'>\n"+sParamTag;
  }
 }
 retstr+="<OBJECT ID='"+sName+"' NAME='"+sName+"' CLASSID='"+FLASHCID+"' CODEBASE='"+FLASHCAB+"#version="+FLASHVER+"' WIDTH='"+sWidth+"' HEIGHT='"+sHeight+"' >";
 retstr+="<param name=wmode value=transparent><param name='allowScriptAccess' value='always'>";
 retstr+="<PARAM NAME='movie' VALUE='" + sURL + "'>";
 retstr+="sParamTag";
 retstr+="<EMBED  SRC='"+sURL+"' MENU='false' WIDTH='"+sWidth+"' HEIGHT='"+sHeight+"' ID='"+sName+"' NAME='"+sName+"' TYPE='application/x-shockwave-flash' allowScriptAccess='always' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer' />";
 retstr+="</OBJECT>";
 return retstr;
}
	

// Show Modal
function windowOpenModal(sUrl, cw, ch){
  //½ºÅ©¸°ÀÇ Å©±â
  sw=screen.availWidth;
  sh=screen.availHeight;
  //Ã¢ÀÇ À§Ä¡ 
  px=(sw-cw)/2;
  py=(sh-ch)/5;
 //Ã¢À» ¿©´ÂºÎºÐ
 var dWin = window.showModalDialog(sUrl,'','dialogHeight:'+ch+'px;dialogWidth:'+cw+'px;dialogTop:px;dialogLeft:px;center:Yes;help:No;resizable:no;status:no;scroll:no');  
 return dWin;
}
 
// paramÀº ¹è¿­·Î Á¤ÀÇÇÏ¸é »õÃ¢¿¡¼­ ´ÙÀ½°ú °°ÀÌ ¹ÞÀ»¼ö ÀÖ´Ù
//window.dialogArguments[0]	
