function OpenMenu( num ) {

			if (num==1) location.href = '/index.html';             				            //¸ÞÀÎ È¨
            if (num==2) location.href = 'mailto:webmaster@aas.co.kr';      		//¸ÞÀÏ
			if (num==3) location.href = '/sitemap.html';                                   //»çÀÌÆ®¸Ê
			if (num==4) location.href = '/admin';                 						    //°ü¸®ÀÚ
//	        if (num==5) window.open('http:// ','','');           						//sbs¹æ¼Û

//¼ÛÈÆ¼®ÀÔ´Ï´Ù
 //        *if (num==101) window.open('/system_work.swf','flash','width=960,height=650,top=0,left=0');*/
			if (num==101) location.href = '/about/sub01.html'; 						//
			if (num==102) location.href = '/about/sub02.html';					//
			if (num==103) location.href = '/about/sub03.html';                    //
			if (num==104) location.href = '/html/?code=SCH';                    //

//¿©ÀÇµµ¿¡¼­
			if (num==201) location.href = '/html/?code=B01';						//
			if (num==202) location.href = '/html/?code=B02';						//
			if (num==203) location.href = '/html/?code=B03';						//
			if (num==204) location.href = '/html/?code=B04';						//
			if (num==205) location.href = '/html/?code=B05';						//
			if (num==206) location.href = '/html/?code=B06';						//
			if (num==207) location.href = '/html/?code=B07';						//
			if (num==208) location.href = '/html/?code=B17';						//
			if (num==209) location.href = '/html/?code=B19';						//


//¼ÛÈÆ¼® ´º½º
            if (num==301) location.href = '/html/?code=B08';						//
            if (num==302) location.href = '/html/?code=B09';;						//
            if (num==303) location.href = '/html/?code=B10';						//
            if (num==304) location.href = '/html/?code=B15';						//
            if (num==305) location.href = '/html/?code=B20';						//ÀÇ¿ø¿Ü±³È°µ¿


//³»»ç¶û ¼ÓÃÊ, °í¼º, ¾ç¾ç
            if (num==406) location.href = '/town/sub06.html';							    //¼ÛÈÆ¼®ÀÇ¾à¼Ó
            if (num==407) location.href = '/html/?code=B16';							    //							//°ø¾àÃßÁøÇöÈ²
			if (num==401) location.href = '/html/?code=B11';							    //
            if (num==402) location.href = '/html/?code=B11';							    //
            if (num==403) location.href = '/town/sub03.html';							    //
            if (num==4031) location.href = '/town/sub03_01.html';							    //
            if (num==4032) location.href = '/town/sub03_02.html';							    //
            if (num==4033) location.href = '/town/sub03_03.html';							    //
            if (num==4034) location.href = '/town/sub03_04.html';							    //
            if (num==4035) location.href = '/town/sub03_05.html';							    //
            if (num==404) location.href = '/town/sub04.html';							    //
            if (num==4041) location.href = '/town/sub04_01.html';							    //
            if (num==4042) location.href = '/town/sub04_02.html';							    //
            if (num==4043) location.href = '/town/sub04_03.html';							    //
            if (num==4044) location.href = '/town/sub04_04.html';							    //
            if (num==4045) location.href = '/town/sub04_05.html';							    //
            if (num==4046) location.href = '/town/sub04_06.html';							    //
            if (num==405) location.href = '/town/sub05.html';							    //
            if (num==4051) location.href = '/town/sub05_01.html';							    //
            if (num==4052) location.href = '/town/sub05_02.html';							    //
            if (num==4053) location.href = '/town/sub05_03.html';							    //
            if (num==4054) location.href = '/town/sub05_04.html';							    //
            if (num==4055) location.href = '/town/sub05_05.html';							    //
            if (num==4056) location.href = '/town/sub05_06.html';							    //



//¿­¸°¸¶´ç
            if (num==501) location.href = '/html/?code=B121';								    //
            if (num==502) location.href = '/html/?code=B13';								    //
           if (num==503)  location.href = '/cm/sub02.html';						    //
           if (num==5031) location.href = '/html/?code=B18';								    //


//ÇÔ²²ÇÏ´Â Á¤Ä¡
            if (num==601) location.href = '/support/sub01.html';								    //
            if (num==602) location.href = '/support/sub02.html';								    //
            if (num==6021) location.href = '/support/sub02_01.html';								    //
 //           if (num==603) location.href = '/html/?code=B14';							    //

//È¸¿ø
	if (num==701) location.href = '/member/?code=agree';								    //È¸¿ø°¡ÀÔ
	if (num==702) location.href = '/member/?code=loginform';								    //È¸¿ø·Î±×ÀÎ
	if (num==703) location.href = '/member/?code=modify';								    //È¸¿øÁ¤º¸¼öÁ¤
	if (num==704) location.href = '/member/?code=withdraw';							    //È¸¿øÅ»Åð
	if (num==705) location.href = '/member/?code=search';								    //¾ÆÀÌµð,ºñ¹øÃ£±â
	if (num==706) location.href = '/member/?code=logout';								    //·Î±×¾Æ¿ô


//ÀÇÁ¤º¸°í¼­
            if (num==801) location.href = '/book/200901_01.html';								    //
            if (num==802) location.href = '/book/200901_02.html';								    //
            if (num==803) location.href = '/book/200901_03.html';								    //
            if (num==804) location.href = '/book/200901_04.html';								    //
            if (num==805) location.href = '/book/200901_05.html';								    //
            if (num==806) location.href = '/book/200901_06.html';								    //
            if (num==807) location.href = '/book/200901_07.html';								    //
            if (num==808) location.href = '/book/200901_08.html';								    //

			if (num==8801) location.href = '/book/book2/200901_01.html';								    //
            if (num==8802) location.href = '/book/book2/200901_02.html';								    //
            if (num==8803) location.href = '/book/book2/200901_03.html';								    //
            if (num==8804) location.href = '/book/book2/200901_04.html';								    //
            if (num==8805) location.href = '/book/book2/200901_05.html';								    //
            if (num==8806) location.href = '/book/book2/200901_06.html';								    //
            if (num==8807) location.href = '/book/book2/200901_07.html';								    //
            if (num==8808) location.href = '/book/book2/200901_08.html';								    //

			if (num==9801) location.href = '/book/book_2010/201002_01.html';								    //
            if (num==9802) location.href = '/book/book_2010/201002_02.html';								    //
            if (num==9803) location.href = '/book/book_2010/201002_03.html';								    //
            if (num==9804) location.href = '/book/book_2010/201002_04.html';								    //
            if (num==9805) location.href = '/book/book_2010/201002_05.html';								    //
            if (num==9806) location.href = '/book/book_2010/201002_06.html';								    //
            if (num==9807) location.href = '/book/book_2010/201002_07.html';								    //
            if (num==9808) location.href = '/book/book_2010/201002_08.html';								    //
			
			if (num==10801) location.href = '/book/book_2011/201101_01.html';								    //
            if (num==10802) location.href = '/book/book_2011/201101_02.html';								    //
            if (num==10803) location.href = '/book/book_2011/201101_03.html';								    //
            if (num==10804) location.href = '/book/book_2011/201101_04.html';								    //
            if (num==10805) location.href = '/book/book_2011/201101_05.html';								    //
            if (num==10806) location.href = '/book/book_2011/201101_06.html';								    //
            if (num==10807) location.href = '/book/book_2011/201101_07.html';								    //
            if (num==10808) location.href = '/book/book_2011/201101_08.html';								    //
            if (num==10809) location.href = '/book/book_2011/201101_09.html';								    //
            if (num==10810) location.href = '/book/book_2011/201101_10.html';								    //
            if (num==10811) location.href = '/book/book_2011/201101_11.html';								    //
            if (num==10812) location.href = '/book/book_2011/201101_12.html';								    //

			if (num==11801) location.href = '/book/book_2012/201201_01.html';								    //
            if (num==11802) location.href = '/book/book_2012/201201_02.html';								    //
            if (num==11803) location.href = '/book/book_2012/201201_03.html';								    //
            if (num==11804) location.href = '/book/book_2012/201201_04.html';								    //
            if (num==11805) location.href = '/book/book_2012/201201_05.html';								    //
            if (num==11806) location.href = '/book/book_2012/201201_06.html';								    //
            if (num==11807) location.href = '/book/book_2012/201201_07.html';								    //
            if (num==11808) location.href = '/book/book_2012/201201_08.html';								    //
            if (num==11809) location.href = '/book/book_2012/201201_09.html';								    //
            if (num==11810) location.href = '/book/book_2012/201201_10.html';								    //
            if (num==11811) location.href = '/book/book_2012/201201_11.html';								    //
            if (num==11812) location.href = '/book/book_2012/201201_12.html';								    //
            if (num==11813) location.href = '/book/book_2012/201201_13.html';								    //
            if (num==11814) location.href = '/book/book_2012/201201_14.html';								    //
            if (num==11815) location.href = '/book/book_2012/201201_15.html';								    //
            if (num==11816) location.href = '/book/book_2012/201201_16.html';								    //

	//if (num==501) window.open('http://www.e-mg.co.kr','','');
	//if (num == 504) alert("¿ÀÇÂ ÀüÀÔ´Ï´Ù.");

}


function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments;
  document.MM_sr=new Array;
  for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){
	  document.MM_sr[j++]=x;
	  if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];
  }
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

var old='';

function menu(name)
{
submenu=eval("submenu_"+name+".style");
		if(old!=submenu)
	{
		if(old!='')
		{
			old.display='none';
		}
		submenu.display='block';
		old=submenu;
	}
	else
	{
		submenu.display='none';
		old='';
	}
}

function popimg2(url, width, height, opt) {

	if (opt != null && opt != '') opt = ',' + opt;
	str = '<body topmargin=0 leftmargin=0><img src="' + url + '" border=0 onmousedown=" self.close(); "></body>';
	pop = window.open('','zome','width=' + width + ',height=' + height + opt);
	pop.focus();
	pop.document.write(str);
}

//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 '';
}

// flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, º¯¼ö, À©µµ¿ì¸ðµå)
function flashWrite(url,w,h,id,bg,vars,win){

	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	var flashStr=
	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='"+w+"' height='"+h+"' id='"+id+"' align='middle'>"+
	"<param name='allowScriptAccess' value='always' />"+
	"<param name='movie' value='"+url+"' />"+
	"<param name='FlashVars' value='"+vars+"' />"+
	"<param name='wmode' value='"+win+"' />"+
	"<param name='menu' value='false' />"+
	"<param name='quality' value='high' />"+
	"<param name='bgcolor' value='"+bg+"' />"+
	"<embed src='"+url+"' FlashVars='"+vars+"' wmode='"+win+"' menu='false' quality='high' bgcolor='"+bg+"' width='"+w+"' height='"+h+"' name='"+id+"' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
	"</object>";

	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);
	//<script>flashWrite('/img/main.swf','595','450','','','','transparent')</script>
}

function movieWrite(url,w,h,id,bg,vars,win){

	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	var movieStr= '<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="'+id+'" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" width="'+w+'" height="'+h+'" loop=true">'+
    '<param name="Filename" value="'+url+'">'+
    '<param name="AudioStream" value="-1">'+
    '<param name="AutoSize" value="false">'+
    '<param name="displaysize" value="false">'+
    '<PARAM NAME="ShowControls" VALUE="0">'+
    '<PARAM NAME="ShowStatusBar" VALUE="0">'+
    '<PARAM NAME="AutoRewind" VALUE="true">'+
    '<PARAM NAME="ShowDisplay" VALUE="0">'+
    '<PARAM NAME="PlayCount" VALUE="100">'+
    '<PARAM NAME="DefaultFrame" VALUE="Slide">'+
    '<PARAM NAME="Autostart" VALUE="1">'+
    '<PARAM NAME="SendMouseClickEvents" VALUE="1">'+
    '<PARAM NAME="EnableContextMenu" value="false">'+
    '<PARAM NAME="TransparentAtStart" value="-1">'+
    '<PARAM NAME="AnimationAtStart" value="0">'+
	'<param name="displaybackcolor" value="black">'+
    '<Embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/download/default.asp" Autostart="1" ShowControls="0" ShowDisplay="0" ShowStatusBar="0" DefaultFrame="Slide" width="'+w+'" height="'+h+'" AutoRewind="0" SendMouseClickEvents="1" EnableContextMenu="false" TransparentAtStart="-1" AnimationAtStart="0" loop="-1">'+
    '</OBJECT>' ;

	/*
	var movieStr=
	"<object classid='CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95' type='application/x-oleobject' standby='Loading Microsoft Windows Media Player components...' width='"+w+"' height='"+h+"' id='"+id+"' name='"+id+"' align='middle'>"+
	"<param name='FileName' value='" + url + "'>"
    "<param name='ANIMATIONATSTART' value='-1'>"+
    "<param name='AutoStart' value='-1'>"+
    "<param name='BALANCE' value='0'>"+
    "<param name='CURRENTMARKER' value='0'>"+
    "<param name='CURRENTPOSITION' value='0'>"+
    "<param name='DISPLAYMODE' value='1'>"+
    "<param name='ENABLECONTEXTMENU' value='0'>"+
    "<param name='ENABLED' value='0'>"+
    "<param name='FULLSCREEN' value='0'>"+
    "<param name='INVOKEURLS' value='0'>"+
    "<param name='PLAYCOUNT' value='0'>"+
    "<param name='RATE' value='0'>"+
    "<param name='SHOWCONTROLS' value='0'>"+
    "<param name='SHOWSTATUSBAR' value='0'>"+
    "<param name='STRETCHTOFIT' value='0'>"+
    "<param name='TRANSPARENTATSTART' value='0'>"+
    "<param name='UIMODE' value='0'>"+
    "<param name='displaybackcolor' value='0'>"+
    "<param name='SendMouseClickEvents' value='0'>"+
    "<param name='SendPlayStateChangeEvents' value='0'>"+
	"<Embed type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/download/default.asp' src='" + url + "' Name='"+id+"' Autostart='0' ShowControls='0' ShowDisplay='0' ShowStatusBar='0' DefaultFrame='Slide' width='"+w+"' height='"+h+"' AutoRewind='0' SendMouseClickEvents='1' EnableContextMenu='-1' TransparentAtStart='-1' AnimationAtStart='0' loop='-1'></embed>"+
	"</object>";
	*/

	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(movieStr);

}

//¹è³Ê ½½¶óÀÌµå
				var slide_dirc = 'LEFT' ;
				var slideSpeed_ = 1;
				var dealy_ = 2500;
				var SlideH_=125;			// ³ô~ÀÌ.
				var html_ = '' ;
				var total_area_=0;
				var wait_flag_=true;
				var mouseEvent_= 1;
				var s_tmp_ = 0
				var s_amount_ = 125;  // s_amount ´Â ÇÑ¹ø¿¡ ½½¶óÀÌµù µÇ´Â ³ôÀÌÀÔ´Ï´Ù.
				var myNews_group_=new Array();
				var startPanel_= 0
				var n_panel_=0
				var i_=0;
				function startscroll_()
				{

					i_=0;
					for (i_ in myNews_group_)
						n_panel_++;

					n_panel_ = n_panel_ -1 ;
				//	startPanel_ = Math.round(Math.random()*n_panel_);
					startPanel_ = 0 ;
					if(startPanel_ == 0)
					{
						i_=0;
						for (i_ in myNews_group_)
							insert_area_(total_area_, total_area_++);
					}
					else if(startPanel_ == n_panel_)
					{
						insert_area_(startPanel_, total_area_);
						total_area_++;
						for (i_=0; i_<startPanel_; i_++)
						{
							insert_area_(i_, total_area_);
							total_area_++;
						}
					}
					else if((startPanel_ > 0) || (startPanel_ < n_panel_))
					{
						insert_area_(startPanel_, total_area_);
						total_area_++;
						for (i_=startPanel_+1; i_<=n_panel_; i_++)
						{
							insert_area_(i_, total_area_);
							total_area_++;
						}
						for (i_=0; i_<startPanel_; i_++)
						{
							insert_area_(i_, total_area_);
							total_area_++;
						}
					}
					window.setTimeout("scrolling_()",dealy_);
				}
				function scrolling_(){
					if (mouseEvent_ && wait_flag_)
					{
						for (i_=0;i_<total_area_;i_++){
							tmp_ = document.getElementById('scroll_area_'+i_).style;
							if ( slide_dirc == 'LEFT' )
							{
								tmp_.left = parseInt(tmp_.left)-slideSpeed_;
								if (parseInt(tmp_.left) <= -SlideH_){
									tmp_.left = SlideH_*(total_area_-1);
								}
							}
							else
							{
								tmp_.left = parseInt(tmp_.left)+slideSpeed_;
								if ( i_ == (total_area_ -1 )) t_i_ = 0 ;
								else t_i_ = i_ + 1 ;
								if ( document.getElementById('scroll_area_' + t_i_ ).style.left.substring(0, document.getElementById('scroll_area_' + t_i_ ).style.left.indexOf('px')) >= 0 ) {
									tmp_.left = document.getElementById('scroll_area_' + t_i_ ).style.left.substring(0, document.getElementById('scroll_area_' + t_i_ ).style.left.indexOf('px')) - SlideH_ + 1;
									//tmp_.left = document.getElementById('scroll_area_' + t_i_ ).style.left.substring(0, document.getElementById('scroll_area_' + t_i_ ).style.left.indexOf('px')) - SlideH_ ;
								}
							}
							if (s_tmp_++ > (s_amount_-1)*myNews_group_.length){
								//wait_flag_=false;
								window.setTimeout("wait_flag_=true;s_tmp_=0;",dealy_);
							}
						}
					}
					window.setTimeout("scrolling_()",1);
				}
				function insert_area_(idx, n){
					html='<div style="width: 100%; position: absolute; left:'+parseInt(SlideH_*n)+'px;" id="scroll_area_'+n+'" >';
					html+=myNews_group_[idx];
					html+='</div>';
					document.write(html);
				}

//¹è³Ê ½½¶óÀÌµåe

