//// Global Menu - Self Frame

home =						"../freesm/"; // HOME - ÇØ´çÆäÀÌÁö ¿¬°á

m_cool_01 =					"http://dslrbusan.co.kr/bbs/zboard.php?id=cool&category=1";
m_cool_02 =					"http://dslrbusan.co.kr/bbs/zboard.php?id=cool&category=2";
m_cool_03 =					"http://dslrbusan.co.kr/bbs/zboard.php?id=cool&category=3";

//// Category
//// 01 : Category 1-1
s01 =						"../freesm/gallery.php"; // Top¿¡¼­ Á¤ÀÇÇÒ ¶§
s01_101 =					"../bbs/zboard.php?id=photo_test"; // 
s01_102 =					"../xe/g_01";//"../bbs/zboard.php?id=cool"; // 
s01_103 =					"../xe/g_02";//"../bbs/zboard.php?id=landscape"; // 
s01_104 =					"../xe/g_03";//"../bbs/zboard.php?id=people"; // 
s01_105 =					"../xe/g_04";//"../bbs/zboard.php?id=free"; // 
s01_106 =					"../xe/g_06";//"../bbs/zboard.php?id=gallery"; // Ç°Æò
s01_107 =					"../xe/g_07";//"../bbs/zboard.php?id=old_theme"; // ÁÖÁ¦
s01_108 =					"../xe/g_05";//"../bbs/zboard.php?id=essay"; // ¿¡¼¼ÀÌ
s01_109 =					"../bbs/zboard.php?id=column"; // 

//// 02 : Category 2-1
s02 =						"../freesm/comm.php"; // 
s02_101 =					"../xe/c_01";//"../bbs/zboard.php?id=notice"; // 
s02_102 =					"../xe/c_02";//"../bbs/zboard.php?id=freeboard"; // 
s02_103 =					"../xe/c_03";//"../bbs/zboard.php?id=join"; // °¡ÀÔÀÎ»ç
s02_104 =					"../xe/c_04";//"../bbs/zboard.php?id=info"; // Çà»ç°ø¸ðÀü
s02_105 =					"../xe/c_05";//"../bbs/zboard.php?id=qna"; // 
s02_106 =					"../bbs/zboard.php?id="; // 
s02_107 =					"../bbs/zboard.php?id="; // 
s02_108 =					"../bbs/zboard.php?id="; // 
s02_109 =					""; // 

//// 03 : Category 3-1
s03 =						"../freesm/offline.php"; // 
s03_101 =					"../xe/o_01";//"../bbs/zboard.php?id=offline"; // 
s03_102 =					"../xe/o_02";//"../bbs/zboard.php?id=offline2"; // ¹ø°³¾Ë¸²
s03_103 =					"../xe/o_03";//"../bbs/zboard.php?id=offafter"; // Á¤¸ð/¹ø°³ÈÄ±â
s03_104 =					"../bbs/zboard.php?id=offafter2"; // 
s03_105 =					"../bbs/zboard.php?id="; // 
s03_106 =					"../xe/o_04_1";//"../bbs/zboard.php?id=member"; // 
s03_107 =					"../bbs/zboard.php?id="; // 
s03_108 =					"../bbs/zboard.php?id="; // 
s03_109 =					"../bbs/zboard.php?id="; // 

//// 04 : Category 4-1
s04 =							"../freesm/info.php"; // 
s04_101 =					"../xe/i_01";//"../bbs/zboard.php?id=lecture"; // °­ÁÂ
s04_102 =					"../xe/i_02";//"../bbs/zboard.php?id=forum"; // »ç¿ë±â,Á¦Ç°Á¤º¸
//s04_101 =					""; // °­ÁÂ
//s04_102 =					""; // »ç¿ë±â,Á¦Ç°Á¤º¸
s04_103 =					"../xe/i_03";//"../bbs/zboard.php?id=tip"; // ÃÔ¿µ TIP
s04_104 =					"../xe/i_04";//"../bbs/zboard.php?id=offinfo"; // Ãâ»çÁöÁ¤º¸
s04_105 =					"../xe/i_05";//"../bbs/zboard.php?id=bbs"; // ÀÚ·á½Ç
s04_106 =					"../xe/i_06";//"../bbs/zboard.php?id=link"; // Link
s04_107 =					"../bbs/zboard.php?id="; // 
s04_108 =					"../bbs/zboard.php?id="; // 
s04_109 =					"../bbs/zboard.php?id="; // 


s4106_01 =					"../bbs/zboard.php?id=link&category=1"; // 
s4106_02 =					"../bbs/zboard.php?id=link&category=2"; // 
s4106_03 =					"../bbs/zboard.php?id=link&category=3"; // 
s4106_04 =					"../bbs/zboard.php?id=link&category=4"; // 
s4106_05 =					"../bbs/zboard.php?id=link&category=5"; // 
s4106_06 =					"../bbs/zboard.php?id=link&category=6"; // 
s4106_07 =					"../bbs/zboard.php?id=link&category=7"; // 
s4106_08 =					"../bbs/zboard.php?id=link&category=8"; // 
s4106_09 =					"../bbs/zboard.php?id=link&category=9"; // 
s4106_11 =					"../bbs/zboard.php?id=link2"; // 





//// 05 : Category 5-1
s05 =							"../xe/e_01";//"../bbs/zboard.php?id=mart"; // 
s05_101 =					"../xe/e_01";//"../bbs/zboard.php?id=mart"; // 
s05_102 =					"../xe/e_02";//"../bbs/zboard.php?id=book"; // 
s05_103 =					"../bbs/zboard.php?id="; // 
s05_104 =					"../bbs/zboard.php?id="; // 
s05_105 =					"../bbs/zboard.php?id=qna"; // 
s05_106 =					"../bbs/zboard.php?id="; // 
s05_107 =					"../bbs/zboard.php?id="; // 
s05_108 =					"../bbs/zboard.php?id="; // 
s05_109 =					"../bbs/zboard.php?id="; // 

//// 06 : Category 6-1
s06 =							"../xe/e_03";//"../bbs/zboard.php?id=mship"; // 
s06_101 =					"../xe/e_03";//"../bbs/zboard.php?id=mship"; // 
s06_102 =					"../bbs/zboard.php?id="; // 
s06_103 =					"../bbs/zboard.php?id="; // 
s06_104 =					"../bbs/zboard.php?id="; // 
s06_105 =					"../bbs/zboard.php?id="; // 
s06_106 =					"../bbs/zboard.php?id="; // 
s06_107 =					"../bbs/zboard.php?id="; // 
s06_108 =					"../bbs/zboard.php?id="; // 
s06_109 =					"../bbs/zboard.php?id="; // 

//// 07 : Category 7-1
s07 =						"../freesm/7_info.php"; // 
s07_101 =					"../freesm/7_info.php"; // 
s07_10102 =					"../freesm/7_info2_2008.php"; // 
s07_1010204 =				"../freesm/7_info2_2004.php"; // 
s07_1010205 =				"../freesm/7_info2_2005.php"; // 
s07_1010206 =				"../freesm/7_info2_2006.php"; // 
s07_1010207 =				"../freesm/7_info2_2007.php"; // 
s07_1010208 =				"../freesm/7_info2_2008.php"; // 
s07_10103 =					"../freesm/7_info3.php"; // 
s07_10104 =					"../freesm/7_info4.php"; // 
s07_102 =					"../freesm/7_office_200902.php"; // 
s07_10204 =					"../freesm/7_office_2004.php"; // 
s07_10205 =					"../freesm/7_office_2005.php"; // 
s07_10206 =					"../freesm/7_office_2006.php"; // 
s07_10207 =					"../freesm/7_office_2007.php"; // 
s07_1020702 =				"../freesm/7_office_200702.php"; // 
s07_10208 =					"../freesm/7_office_2008.php"; //
s07_10209 =					"../freesm/7_office_2009.php"; // 
s07_1020902 =				"../freesm/7_office_200902.php"; //
s07_103 =					"../freesm/7_policy.php"; // 
s07_104 =					"../freesm/7_guide.php"; // 
s07_10401 =					"../freesm/7_guide.php"; // 
s07_10402 =					"../freesm/7_guide.php#g2"; // 
s07_10403 =					"../freesm/7_guide.php#g3"; // 
s07_10404 =					"../freesm/7_guide.php#g5"; // 
s07_10405 =					"../freesm/7_guide.php#g5"; // 
s07_105 =					"../freesm/test7.php"; // 
s07_106 =					"../freesm/test7.php"; // 
s07_107 =					"../freesm/test7.php"; // 
s07_108 =					"../freesm/test7.php"; // 
s07_109 =					"../freesm/test7.php"; // 

//// 08 : Category 7-1
//s08 =						"../freesm/test7.php"; // 
s08_101 =					"../freesm/noemail.php"; // 
s08_102 =					"../xe/e_07";//"../bbs/zboard.php?id=faq"; // 
s08_103 =					"../freesm/.php"; // 
s08_104 =					"../freesm/sitemap.php"; // 
s08_105 =					"mailto:soochoi@koreanair.com"; // 
s08_106 =					"../xe/e_04";//"../bbs/zboard.php?id=admin"; // 
s08_107 =					"../xe/e_05";//"../bbs/zboard.php?id=adminjoin"; // 
s08_108 =					"../xe/e_06";//"../bbs/zboard.php?id=wastebasket"; // 


beopen="";

function GoMenu(name) {	
	var LeftPosition = (screen.width) ?		(screen.width-400)/2 : 0;
	var TopPosition = (screen.height) ?		(screen.height-200)/2 : 0;	

	if (eval(name) == "") {
		alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.");
		return;	
	}
	 else 
	{
//		document.location.replace(eval(name));
		document.location.href = eval(name);
	}
}

function MM_openBrWindow(theURL,winName,features) {
	window.open(theURL,winName,features);
	}

function noemail() {
	window.open('/freesm/noemail.php', '', 'status=no, scrollbars=no, menubar=no, width=480, height=300');
	}

function member_list() {
	window.open('/bbs/robot_rankmember.php', '', 'status=no, scrollbars=yes, menubar=no, width=820, height=600');
	}

function member_ftp() {
	window.open('/freesm/ftp.php', '', 'status=no, scrollbars=no, menubar=no, width=600, height=450');
	}

//// Flash


function writeSwf(flsName,flsWidth,flsHeigt) {
	var writeTxt = " <object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width="+flsWidth+" height="+flsHeigt+" id=\"sub_menu_2\" align=\"middle\">"
				+ " <param name=\"movie\" value="+flsName+" />"
				+ " <param name=\"quality\" value=\"high\" />"
				+ " <param name=\"wmode\" value=\"transparent\" />"
				+ " <embed src="+flsName+" wmode=\"transparent\" quality=\"high\" width="+flsWidth+" height="+flsHeigt+" name=\"sub_menu_2\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />"
				+ " </object>"
	document.write(writeTxt);
	}

function writeDoc(flsName,flsWidth,flsHeigt) {
	var wirtTxt = " <object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width="+flsWidth+" height="+flsHeigt+" id=\"sub_menu_2\" align=\"middle\">"
				+ " <param name=\"movie\" value="+flsName+" />"
				+ " <param name=\"quality\" value=\"high\" />"
				+ " <param name=\"wmode\" value=\"transparent\" />"
				+ " <embed src="+flsName+" quality=\"high\" width="+flsWidth+" height="+flsHeigt+" name=\"sub_menu_2\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />"
				+ " </object>"
	document.write(wirtTxt);
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);



//// Flash 2

function openflash(width,height,src){
    return "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width="+width+" height="+height+"><param name=movie value="+src+"><param name=quality value=high ><embed src="+src+" quality=high  pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width="+width+" height="+height+"></embed></object>";
}

function writeflash(src){
	document.write(src);
}


//// Over Images ////

function bt(name,after)
{
eval(name+'.filters.blendTrans.stop();');
eval(name+'.filters.blendTrans.Apply();');
eval(name+'.src="'+after+'";');
eval(name+'.filters.blendTrans.Play();');
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  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 && document.getElementById) x=document.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_nbGroup(event, grpName) { //v3.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    if ((nbArr = document[grpName]) != null)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = args[i+1];
      nbArr[nbArr.length] = img;
  } }
}

<!-- Over Images //-->


<!-- IMG Change Gallery_01 //-->
function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
<!-- IMG Change Gallery_01 //-->




function popUp(L,e) {
	if(ns4) {
		var obj = document.layers[L]
		obj.left = e.pageX
		obj.top = e.pageY + 5
		obj.visibility = "visible"
	}
	else if(ie4) {
		var obj = document.all[L]
		obj.style.pixelLeft = event.clientX + document.body.scrollLeft
		obj.style.pixelTop = event.clientY + document.body.scrollTop + 5
		obj.style.visibility = "visible"
	}
}

function popDown(L) {
		if(ns4) document.layers[L].visibility = "hidden"
		else if(ie4) document.all[L].style.visibility = "hidden"
}

ns4 = (document.layers)?1:0
ie4 = (document.all)?1:0



function adcon() {
document.write("	<div id='divMenu' style='position: absolute;left:expression((document.body.clientWidth) / 2 + 510); top:650; z-index: 15;' align=center> ");
document.write("		<table border=0 cellpadding=0 cellspacing=0> ");
document.write("			<tr> ");
document.write("				<td><a href=javascript:window.scroll(0,0); onfocus=this.blur()><img name=menu_f1 src='/images/goto_top.gif' border=0 alt='TOP'></a></td> ");
document.write("			</tr> ");
document.write("			<tr> ");
document.write("				<td><a href=javascript:history.back() onfocus=this.blur()><img name=menu_f2 src='/images/goto_back.gif' border=0 alt='BACK'></a></td> ");
document.write("			</tr> ");
document.write("		</table> ");
//È¸Àå¼±°Å·Î ÀÓ½ÃÃß°¡
//document.write("		<table border=0 cellpadding=0 cellspacing=0> ");
//document.write("			<tr> ");
//document.write("				<td><a href='/bbs/zboard.php?id=election' onfocus=this.blur()><img src='/bbs/revol_getimg.php?id=admin&no=1241&num=1' width='40' height='182' border='0'></a></td> ");
//document.write("			</tr> ");
//document.write("		</table> ");
//Ãß°¡³¡

document.write("	</div> ");
}

adcon();


var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
function CheckUIElements(){
      var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

      if ( bNetscape4plus ) { 
              yMenuFrom   = document["divMenu"].top;
              yMenuTo     = top.pageYOffset + 140; //³Ý½ºÄÉÀÌÇÁ¿ë ÃÖÃÊ ·¹ÀÌ¾î ÁÂÇ¥ °ª
              //È¸Àå¼±°Å±â°£ ÀÓ½Ãº¯°æ yMenuTo     = top.pageYOffset + 540; //³Ý½ºÄÉÀÌÇÁ¿ë ÃÖÃÊ ·¹ÀÌ¾î ÁÂÇ¥ °ª
      }
      else if ( bExplorer4plus ) {
              yMenuFrom   = parseInt (divMenu.style.top, 10);
              yMenuTo     = document.body.scrollTop + 140; //ÀÍ½ºÇÃ·Î·¯¿ë ÃÖÃÊ ·¹ÀÌ¾î ÁÂÇ¥ °ª
              //È¸Àå¼±°Å±â°£ ÀÓ½Ãº¯°æ yMenuTo     = document.body.scrollTop + 540; //ÀÍ½ºÇÃ·Î·¯¿ë ÃÖÃÊ ·¹ÀÌ¾î ÁÂÇ¥ °ª
      }

      timeoutNextCheck = 500;

      if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
              setTimeout ("CheckUIElements()", timeoutNextCheck);
              return;
      }

      if ( yButtonFrom != yButtonTo ) {
              yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
              if ( yButtonTo < yButtonFrom )
                      yOffset = -yOffset;

              if ( bNetscape4plus )
                      document["divLinkButton"].top += yOffset;
              else if ( bExplorer4plus )
                      divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset;

              timeoutNextCheck = 10;
      }
      if ( yMenuFrom != yMenuTo ) {
              yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
              if ( yMenuTo < yMenuFrom )
                      yOffset = -yOffset;

              if ( bNetscape4plus )
                      document["divMenu"].top += yOffset;
              else if ( bExplorer4plus )
                      divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;

              timeoutNextCheck = 10;
      }

      setTimeout ("CheckUIElements()", timeoutNextCheck);
}

function OnLoad()
{
      var y;
      if ( top.frames.length )
      if ( bNetscape4plus ) {
              document["divMenu"].top = top.pageYOffset + 135; //³Ý½ºÄÉÀÌÇÁ¿ë ·Îµù½Ã ½ÃÀÛ ·¹ÀÌ¾î ÁÂÇ¥ °ª
              document["divMenu"].visibility = "visible";
      }
      else if ( bExplorer4plus ) {
              divMenu.style.top = document.body.scrollTop + 135; //ÀÍ½ºÇÃ·Î·¯¿ë ·Îµù½Ã ½ÃÀÛ ·¹ÀÌ¾î ÁÂÇ¥ °ª
              divMenu.style.visibility = "visible";
      }
      CheckUIElements();
      return true;
}
OnLoad();
