//ÆÞ¹÷Àç´Ü¿µ¹®»çÀÌÆ®ÀÔ´Ï´Ù.

function OpenMenu( num ) {

			if (num==1) location.href = '/eng/index.html';             				            //¸ÞÀÎ È¨
            if (num==2) location.href = 'mailto:psbfk@paran.com';      		      //¸ÞÀÏ
			if (num==3) location.href = '/eng/sitemap.html';                                   //»çÀÌÆ®¸Ê
//			if (num==4) location.href = '/admin';                 						    //°ü¸®ÀÚ
			if (num==5) location.href = '/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 = '/eng/psbik/mission.html';						//
			if (num==102) location.href = '/eng/psbik/history.html';					//
			if (num==1020) location.href = '/eng/psbik/history_2010.html';					//history_flash
			if (num==1021) location.href = '/eng/psbik/history_2006.html';					//
			if (num==1022) location.href = '/eng/psbik/history_2007.html';					//
			if (num==1023) location.href = '/eng/psbik/history_2008.html';					//
			if (num==1024) location.href = '/eng/psbik/history_2009.html';					//
			if (num==1025) location.href = '/eng/psbik/history_2010.html';					//
			if (num==103) location.href = '/eng/psbik/greeting.html';                    //
			if (num==104) location.href = '/eng/psbik/board.html';                    //
			if (num==105) location.href = '/eng/psbik/staff.html';                    //
			if (num==106) location.href = '/eng/psbik/direction.html';                    //

//»ç¾÷¼Ò°³
			if (num==201) location.href = '/eng/programs/helpprogram.html';						//
			if (num==202) location.href = '/eng/html/?code=SC2';


//ÈÄ¿ø¾È³»
            if (num==301) location.href = '/eng/sponsorship/donation.html';						//	 ÈÄ¿ø¾È³»

//	ÀÚ·á½Ç
            if (num==401) location.href = '/eng/databank/pearlsbuck.html';							    //
            if (num==402) location.href = '/eng/html/?code=G01';							    //
							    //

//»ó´ã½Ç
            if (num==501) location.href = 'mailto:psbfk@paran.com';  								    //


	//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>
}