//<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">


// ·Î±×ÀÎ ¿µ¿ª BG (IEÀü¿ë)
function LoginBgChange() {
	var ThisInput = event.srcElement;
	ThisInput.style.backgroundImage = "none";
}

// °Ô½ÃÆÇ »ó´Ü ¿î¿µ Á¤Ã¥ : num = 12
// °ÔÀÓ È¨ ¿î¿µ Á¤Ã¥ : num = 0
function openbbspolicy( num )
{
	open_win('http://file.pmang.kr/images/pmang/gamepub/police/nbaso.html#'+num, 'nbasopolicy', 670, 550);
}



// ÅÇµ¿Àå
function TabMove(name,num) {
	if(!document.getElementsByName(name)) return;
	
	var TabGroup = document.getElementsByName(name);
	var TabThis = num-1;
	
	for(i=0; i<TabGroup.length; i++) {
		var TabName = name+(i+1);
		var TabContents = document.getElementById(TabName);
		if (TabContents) {
			if(i==TabThis) {
				TabGroup[TabThis].className = "on";
				TabContents.style.display = "block";
			}
			else {
				TabGroup[i].className = "";
				TabContents.style.display = "none";
			}
		}
	}
}


// 2006³â 2¿ù 15ÀÏ Windows Updater°ü·Ã ÇÃ·¹½¬ object »ý¼ºÀ» À§ÇÑ Æã¼Ç
function printFlashObject(flash_src,name,width,height,option_param_tag)/*{{{*/
{
  obj_html = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+width+"' height='"+height+"' id='"+name+"' align='middle'>\
  <param name='allowScriptAccess' value='always' />\
  <param name='movie' value='"+flash_src+"' />\
  <param name='quality' value='high' />\
  <param name='bgcolor' value='#ffffff' />\
  <param name='wmode' value='transparent'>\
  <param name='menu' value='false'>";

  obj_html = obj_html + option_param_tag;

  obj_html = obj_html + "<embed src='"+flash_src+"' wmode='transparent' quality='high' bgcolor='#ffffff' width='"+width+"' height='"+height+"' name='"+name+"' align='middle' allowscriptaccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\
  </object>";

  document.write(obj_html);
}/*}}}*/


// ¹Ìµð¾îÇÃ·¹ÀÌ¾î ½ºÅ©¸³Æ®
function printPlayerObject(file_src,name,width,height,file_start,option_param_tag){
  obj_html = "<object CLASSID=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 width='"+width+"' height='"+height+"' id='"+name+"' />\
  <param name='URL' value='"+file_src+"' />\
  <param name='AutoStart' value='"+file_start+"'>";
  obj_html = obj_html + option_param_tag;
  obj_html = obj_html + "</object>";
  document.write(obj_html);
}

function openCommunityPopup()
{
 window.open('http://file.pmang.kr/images/pmang/gamepub/police/community.html', '_policy', 'width=670,height=495,resizable=no,scrollbars=no,scrolling=no' );
}

function go_searchengine_request()
{
  var oAjax = new Ajax();
  var arrParam = new Array();
  arrParam['order_type'] = "search_engine";
  arrParam['nhn'] = 1;
  oAjax.sendRequest("http://www.pmang.com/nbaso/event/ez_request.nwz", arrParam, "GET", "go_searchengine_request.result", "JSON", false);

  function go_searchengine_request.result( obj )
  {
    var arrParam = new Array();
    arrParam['url'] = "http://www.pmang.com/gamepub/gamepub_modal_pop.nwz";
    var ucheck = false;

    switch( obj.msg_type )
    {
      case "confirm" :
        ucheck = pub_confirm( obj.msg, arrParam );
        break;
      case "alert" :
        pub_alert( obj.msg, arrParam );
        ucheck = true;
        break;
      default :
        ucheck = true;
    }

    if( ucheck )
    {
      var type = obj.nurl_type.split(":");
      switch( type[0] )
      {
        case "blank" :
          open_window( obj.nurl, type[0], "" );
          break;
        case "popup" :
          open_win( obj.nurl, type[0], type[1], type[2] );
          break;
        case "javascriptreload" :
          location.href = location.href;
          break;
        case "javascriptclose" :
          self.close();
          break;
      }
    }
  }
}

