//main
function main()
{
	location.href = "http://www.snet.or.kr/";
}

//snet
function main_01()
{
	location.href = "/about/index_1.asp";
}
     function main_01_01()
     {
	location.href = "/about/index_1.asp";
     }
     function main_01_02()
     {
	location.href = "/about/snet_2.asp";
     }     
	 function main_01_03()
     {
	location.href = "/about/snet_3.asp";
     }
	 function main_01_04()
     {
	location.href = "/about/snet_6_new.asp?code=Foreign";
     }     
	 function main_01_05()
     {
	location.href = "/about/snet_7.asp";
     }

//news
function main_02()
{
	location.href = "/news/default.asp";
}
     function main_02_01()
     {
	location.href = "/news/default.asp";
     }
     function main_02_02()
     {
	location.href = "/news/default.asp?code=PressReleases";
     }     
	 function main_02_03()
     {
	location.href = "/news/default.asp?code=PRVideos";
     }     
	 function main_02_04()
     {
	location.href = "/news/default.asp?code=Album";
     }
	 function main_02_05()
     {
	location.href = "/news/default1.asp?code=movie";
     }

//travel
function main_03()
{
	location.href = "/travel/snet_travel.asp";
}
     function main_03_01()
     {
	location.href = "/travel/h1.asp";
     }
	  function main_03_02()
     {
	location.href = "/travel/m1.asp";
     }
	  function main_03_03()
     {
	location.href = "/travel/g1.asp";
     }

//program
function main_04()
{
	location.href = "/program/program2_1.asp";
}
     function main_04_01()
     {
	location.href = "/program/default.asp";
     }
     function main_04_02()
     {
	location.href = "/program/program2_1.asp";
     }     
	 function main_04_03()
     {
	location.href = "/program/program_12w_1.asp";
     }     
	 function main_04_04()
     {
	location.href = "/program/program_10wAustralia_p1.asp";
     }

//cybersnet
function main_05()
{
	location.href = "http://www.cybersnet.or.kr";
}
     function main_05_01()
     {
	location.href = "http://www.cybersnet.or.kr";
     }

//community
function main_06()
{
	location.href = "/community/default.asp";
}
     function main_06_01()
     {
	location.href = "/community/default.asp";
     }
     function main_06_02()
     {
	location.href = "/community/default.asp?code=ProgramFAQ";
     }
     function main_06_03()
     {
	location.href = "/community/default.asp?code=QNA";
     }
    function main_06_04()
     {
	location.href = "/community/default.asp?code=ForeignMsg";
     }
    function main_06_05()
     {
	location.href = "/community/default.asp?code=STAFF";
     }

//¿Â¶óÀÎÇÐ½À
function main_07_01()
{
    location.href = "http://www.cybersnet.or.kr";	
//window.open('/study/main_list.html','index','width=700, height=750, scrollbars=yes');
}


   //»çÀüÇÐ½À
  function s_menu_9()
   {
	
	location.href = "http://www.cybersnet.or.kr";
   }

   //»çÈÄÇÐ½À
   function s_menu_9_1()
   {
	location.href = "/onlinestudy/onlinestudy_3.asp";
    }  

//È¸¿ø°¡ÀÔ
function s_menu_1()
{
	location.href = "/member/join.asp";
}

//Âü°¡¾È³»
function s_menu_2()
{
	location.href = "/program/program_2.asp";
}

//Âü°¡¾È³»_¿¹¾à/°áÁ¦
function s_menu_2_1()
{
	location.href = "/join/join_2.asp";
}

//·Î±×ÀÎ
function s_menu_3()
{
	location.href = "/member/login.asp";
}

//È¸¿øÁ¤º¸¼öÁ¤
function s_menu_4()
{
	location.href = "/member/joine.asp";
}

//·Î±×¾Æ¿ô
function s_menu_5()
{
	location.href = "/logout.asp";
}

//»çÀÌÆ®¸Ê
function s_menu_6()
{
	location.href = "/sitemap.asp";
}

//ÀÌ¿ë¾à°ü
function s_menu_7()
{
	location.href = "/member/legal.asp";
}

2005-12-20

//°³ÀÎÁ¤º¸ º¸È£Á¤Ã¥
function s_menu_8()
{
	location.href = "/member/privacy.asp";
}

//close window
function close()
{
	window.close();
}

//new window
function sub07_01()
{
	NEWWindow = window.open("/include/go_shop.asp?ret=abn");
}
function sub07_02()
{
	NEWWindow = window.open("/include/go_shop.asp");
}


//ÇÃ·¡½Ã¿ÜºÎ½ºÅ©¸³Æ®
function MakeFlashString(source,id,width,height,wmode, otherParam)

{            

             document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0\" width="+width+" height="+height+" id="+id+"><param name=wmode value="+wmode+" /><param name=movie value="+source+" /><param name=quality value=high />"+otherParam+"<embed src="+source+" quality=high wmode="+wmode+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+width+" height="+height+"></embed></object>");

}

//////////////////////////////////////
// IE Embed patch
//
// @author iezn@iezn.com
// @homepage http://iezn.com
// @create date 2006.04.19
// @last modify 2006.04.26
// @version 0.42
// ¹èÆ÷½Ã À§³»¿ëÀ» Æ÷ÇÔÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù
//////////////////////////////////////
/**
* embed ÆÐÄ¡ Àû¿ë ÄÁÅ×ÀÌ³Ê
* nullÀÎ°æ¿ì document °ªÀ» ±âº»À¸·Î ÇÕ´Ï´Ù
* id°ªÀ» ¼³Á¤ÇÑ°æ¿ì ¼³Á¤¹üÀ§ ³»¿¡¸¸ Àû¿ëÀÌ µË´Ï´Ù
* 
* º»¹®ÀÌ³ª ÀÏºÎ ³ëµå¿¡¸¸ Àû¿ëÇÒ°æ¿ì ÇØ´ç ³ëµåÀÇ id °ªÀ» ÀÔ·ÂÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù
* ¿¹)
* var __embed_target_id = "contents";
* ·Î Ã³¸®ÇÑ°æ¿ì body ³»¿¡ <ÅÂ±× id="contents">ÇÃ·¡½¬,µ¿¿µ»ó...</ÅÂ±×>
* ¾È¿¡ ³»¿ë¿¡¸¸ ÆÐÄ¡°¡ Àû¿ëµË´Ï´Ù
*/
if(typeof(__embed_target_id)=='undefined'){
	var __embed_target_id = null;
}

/**
* embed ÆÐÄ¡¸¦ Àû¿ëÇÒ ÅÂ±×¸¦ ¼³Á¤ÇÕ´Ï´Ù
* ±âº»°ªÀº object,eembed,appelt ÅÂ±×ÀÔ´Ï´Ù
* false °ªÀÎ°æ¿ì ÆÐÄ¡¿¡¼­ Á¦¿ÜµË´Ï´Ù
*/
if(typeof(__embed_tags)=='undefined'){
	var __embed_tags = {object:true,embed:true,applet:false}
}

/**
* ÇÃ·¡½¬ÆÄÀÏÁß flashvars ¸¦ »ç¿ëÇÒ°æ¿ì ÇØ´ç ÇÃ·¡½¬ÀÇ ¿ÀºêÁ§Æ®¾ÆÀÌµð:true °ªÀ¸·Î object¸¦ µî·ÏÇØ ÁÖ¼¼¿ä
*/
var __flash_force_objs = {};

if(document.attachEvent){
	document.write('<style type="text/css">');
	document.write('object,embed{display:none;}');
	document.write('</style>');
	document.attachEvent('onreadystatechange',
		function (){
			
			if(__embed_target_id===null){
				var __target = document;
			}else{
				var __target = document.getElementById(__embed_target_id);
			}
			if (document.readyState == "complete"){
				function _replace(obj){
					var obj_re = document.createElement(obj.outerHTML);					
					obj_re.style.display='inline';
					obj.parentNode.replaceChild(obj_re,obj);
				}
				function _inner(obj){
					obj.style.display='inline';					
					var html = obj.outerHTML;
					var classid = obj.classid.toLowerCase();
					if(classid=='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' && typeof(__flash_force_objs[obj.id])=='undefined'){//flash ÀÎ°æ¿ì
						obj.insertAdjacentHTML('beforeBegin',html);
						obj.parentNode.removeChild(obj);
					}else if(classid=='clsid:02bf25d5-8c17-4b23-bc80-d3488abddc6b'){
						//ÄüÅ¸ÀÓ

					}else{
						//º¯°æÇÏ°íÀÚÇÏ´Â ActiveX classid ¸¦ Ãß°¡ÇÏ½Ã±â ¹Ù¶ø´Ï´Ù
						if(classid=='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6' || //media 7
						classid=='clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95' || //6.4
						classid=='clsid:6bf52a52-394a-11d3-b153-00c04f79faa6' ||
						classid=='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'
						){
							embed_pos = html.indexOf('embed');
							if(embed_pos!=-1){//embed °¡ Á¸ÀçÇÏ´Â°æ¿ì
								var embed = '<'+html.substr(embed_pos);
								embed = embed.substr(0,embed.length-9);
								obj.insertAdjacentHTML('beforeBegin',embed);
								obj.parentNode.removeChild(obj);
							}else{
								//object·Î¸¸ µÇ¾î ÀÖ´Â°æ¿ì µ¿¿µ»ó ºÎºÐ¸¸ ÆÐÄ¡ÇÑ´Ù
								var embed = document.createElement('embed');
								if(obj.id){
									embed.id = obj.id;
								}
								var total = obj.childNodes.length;
								//embed.setAttribute('autostart',0);
								if(obj.width){
									embed.setAttribute('width',obj.width);
								}
								if(obj.height){
									embed.setAttribute('height',obj.height);
								}
								for(var k=0;k<total;k++){
									n = obj.childNodes.item(k).getAttribute("name");
									v = obj.childNodes.item(k).getAttribute("value");
									if(n=='URL' || n=='url' || n=='FileName'){
										n = 'src';
									}
									embed.setAttribute(n,v);
								}
								if(embed.getAttribute('src')){
									embed.style.display = 'inline';
									obj.parentNode.replaceChild(embed,obj);
								}else{
									//ÆÄÀÏ¿¢¼¼½º object°¡ ¾Æ´Ñ°æ¿ì´Â À¯ÁöÇÑ´Ù								
								}
							}
						}
					}
				}

				if(__embed_tags.object===true){
					var objs = __target.getElementsByTagName('object');
					var i = objs.length;
					while(i-->0){
						_inner(objs[i]);
					}
				}
				if(__embed_tags.embed===true){
					var objs = __target.getElementsByTagName('embed');
					var i = objs.length;
					while(i-->0){
						_replace(objs[i])
					}
				}

				if(__embed_tags.applet===true){
					var objs = __target.getElementsByTagName('applet');
					var i = objs.length;
					while(i-->0){
						_replace(objs[i])
					}
				}
			}
		}
	);
}
