function OpenMenu( num ) {

			if (num==1) location.href = '/index.html';             				            //¸ÞÀÎ È¨
            if (num==2) location.href = 'mailto:psbfk@paran.com';      		      //¸ÞÀÏ
			if (num==3) location.href = '/sitemap.html';                                   //»çÀÌÆ®¸Ê
			if (num==4) location.href = '/admin';                 						    //°ü¸®ÀÚ
			if (num==5) location.href = '/eng/index.html';                 						    //¿µ¹®
			
//	        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 = '/introduce/establishmentgoal.html';						//
			if (num==102) location.href = '/introduce/history_2012.html';					//
			if (num==1021) location.href = '/introduce/history.html';					//
			if (num==1022) location.href = '/introduce/history_2006.html';					//
			if (num==1023) location.href = '/introduce/history_2007.html';					//
			if (num==1024) location.href = '/introduce/history_2008.html';				//
			if (num==1025) location.href = '/introduce/history_2009.html';				//
			if (num==1026) location.href = '/introduce/history_2010.html';						//
			if (num==1027) location.href = '/introduce/history_2011.html';						//
			if (num==1028) location.href = '/introduce/history_2012.html';						//
			if (num==103) location.href = '/introduce/greeting.html';                    //
			if (num==104) location.href = '/introduce/trustees.html';                    //
			if (num==105) location.href = '/introduce/organogram.html';                    //
			if (num==106) location.href = '/html/?code=SC1';                    //
			if (num==107) location.href = '/introduce/contactus.html';                    //

//»ç¾÷¼Ò°³
			if (num==201) location.href = '/business/helpprogram.html';						//H.E.L.PÇÁ·Î±×·¥ ¼Ò°³
			if (num==2011) location.href = '/business/helpprogram.html#ph';						//H.E.L.PÇÁ·Î±×·¥ ¼Ò°³
			if (num==2012) location.href = '/business/helpprogram.html#pe';						//H.E.L.PÇÁ·Î±×·¥ ¼Ò°³
			if (num==2013) location.href = '/business/helpprogram.html#pl';						//H.E.L.PÇÁ·Î±×·¥ ¼Ò°³
			if (num==2014) location.href = '/business/helpprogram.html#pp';						//H.E.L.PÇÁ·Î±×·¥ ¼Ò°³
		
		   
//ÈÄ¿ø¾È³»
            if (num==301) location.href = '/html/?code=DN3';						//	 Q&A
            if (num==3011) location.href = '/html/?code=DN3#a';						//	 Q&A
            if (num==3012) location.href = '/html/?code=DN3#b';						//	 ÈÄ¿øÁ¾·ù ¹× ¹æ¹ý
            if (num==3013) location.href = '/html/?code=DN3#c';						//	 ÈÄ¿øÇÏ±â
			
            //if (num==302) location.href = '/support/volunteer.html';						//	ÀÚ¿øºÀ»ç¾È³»(ÀÓ½Ã·Î¸·¾Æ¿ä)

//	´Ù¹®È­¿¬±¸¼Ò(ÀÌÀü ÀÚ·á½Ç)
            //if (num==401) location.href = '/pds/pearlsbuck.html';							    //ÆÞ¹÷¿©»ç¼Ò°³
            //if (num==402) location.href = '/html/?code=G01';							    //ÇÁ·Î±×·¥»çÁø
            //if (num==403) location.href = '/pds/newsletter.html';							    //Á¤±â°£Çà¹°
			
            if (num==401) location.href = '/pds/pearlsbuck.html';							    //ÆÞ¹÷¿©»ç¼Ò°³(ÀÌÀü ÀÚ·á½Ç)
            if (num==402) location.href = '/pds/lab.html';							    //¿¬±¸¼Ò¼Ò°³
            if (num==403) location.href = '/html/?code=B06';								    //Á¶»ç¿¬±¸
            if (num==404) location.href = '/pds/newsletter.html';							    //Á¤±â°£Çà¹°(ÀÌÀü ÀÚ·á½Ç)
            if (num==405) location.href = '/html/?code=B05';								    //ÀÚ·á½Ç
            if (num==406) location.href = '/html/?code=DN5';							    //ÀÎ±Ç±³À°
            if (num==407) location.href = '/html/?code=SC3';							    //±³À°ÀÏÁ¤

//°Ô½ÃÆÇ
            if (num==501) location.href = '/html/?code=B01';								    //°øÁö»çÇ×
            if (num==502) location.href = '/html/?code=B02';									    //º¸µµÀÚ·á
            if (num==503) location.href = '/html/?code=B03';								    //Á÷¿ø°Ô½ÃÆÇ
            if (num==504) location.href = '/html/?code=B04';								    //ÀÚÀ¯°Ô½ÃÆÇ
            if (num==505) location.href = '/html/?code=G01';							    //ÇÁ·Î±×·¥»çÁø(ÀÌÀü ÀÚ·á½Ç)

//»ó´ã½Ç
            if (num==601) location.href = 'mailto:psbfk@paran.com';  								    //
            if (num==602) location.href = '/html/?code=I02';								    //


//È¸¿ø
         	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 = '/html/?code=DN2';						//	ÀÚ¿øºÀ»ç¾È³»(ÀÌÀü ÈÄ¿ø¾È³»)
            if (num==8011) location.href = '/html/?code=DN2#a';						//	ÀÚ¿øºÀ»ç¾È³»-Q&A
            if (num==8012) location.href = '/html/?code=DN2#b';						//	ÀÚ¿øºÀ»ç¾È³»-½ÅÃ»
            if (num==802) alert("ÁØºñÁßÀÔ´Ï´Ù.")//location.href = '';						//	ºÀ»ç½ÅÃ»
		
		

	//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);
}

// 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>
}
