<!--
 SiteUrl = 'http://hosting.astnetworks.jp';
//Ast Networks hosting 2010.02.17 edit by park bo-su


url_list = new Array();
newwin_list = new Array();
window_list = new Array()
fullwin_list = new Array()


// flash link guide
// javascript:go_site(1);


url_list[100] = '/index.html';                         								//main

//################[company]

url_list[111] = '/company/introduce.html';             								//introduce
url_list[112] = '/company/vision.html';                								//vision
url_list[113] = '/company/business.html';              								//business
url_list[114] = '/company/map.html';                   								//map

//################[Rental Server]

url_list[211] = '/rental/service_info.html';           								//service info
url_list[212] = '/rental/server_chapter.html';         								//server chapter
url_list[213] = '/rental/optional_service.html';       								//other service
url_list[214] = '/rental/management.html';             								//management
url_list[215] = '/rental/service_contract.html';       								//Contract
url_list[216] = '/rental/service_table.html';    								    //service table

//################[Exclusive Server]

url_list[311] = '/exclusive/service_info.html';        								//service info
url_list[312] = '/exclusive/server_chapter.html';      								//server chapter
url_list[313] = '/exclusive/optional_service.html';       							//optional_service
url_list[314] = '/exclusive/management.html';          								//management
url_list[315] = '/exclusive/service_contract.html';    								//Contract
url_list[316] = '/exclusive/service_b2s.html';    								    //B2S service
url_list[317] = '/exclusive/b2s_contract.html';    								    //B2S service contract
url_list[318] = '/exclusive/service_table.html';    								//service table

//################[FAQ]

url_list[411] = '/board.php?bo_id=hfaq';                       						//faq  /faq/faq.html
url_list[412] = '#';                                   								//Rental Server
url_list[413] = '#';                                   								//Exclusive Server
url_list[414] = '#';                                   								//Contract

//################[customer center]

url_list[511] = '/board.php?bo_id=hnotice';				   							//notice /cs/notice_list.html
url_list[512] = '/board.php?bo_id=hnew';				   							//news /cs/news_list.html
url_list[513] = '/board.php?bo_id=hqna&mode=write&subpage=inq_write.html';			//form mail qna /cs/inquiry_mail.html
url_list[514] = '/board.php?bo_id=hpds';                  							//pds /cs/file_list.html

//################[other menu]

url_list[611] = '/company/sitemap.html';                                   			//sitemap
url_list[612] = '/company/agreement1.html';                                   		//agreement1
url_list[613] = '/company/agreement2.html';                                   		//agreement2
url_list[614] = 'http://webeasy.astnetworks.jp/index.html';                         //astagency

//################[popup]
url_list[711] = '/popup/idc.html';                                   			    //idc
url_list[712] = '/popup/merit.html';                                   			    //ast merit
url_list[713] = '/popup/cpu.html';                                   			    //cpu
url_list[714] = '/popup/memory.html';                                   		    //memory
url_list[715] = '/popup/sas.html';                                   			    //sas vs sata
url_list[716] = '/popup/line.html';                                   			    //line
url_list[717] = '/popup/ssl.html';                                   			    //ssl
url_list[718] = '/popup/guide.html';												//guide
url_list[719] = '/popup/exc_detail.html';    								//service table detail
url_list[720] = '/popup/premium_detail.html';    								//service table detail


//################[idc]
url_list[811] = '/idc/idcinfo.html';                                   			    //idc info
url_list[812] = '/idc/center.html';                                   			    //idc center


//##############################   page definition   ###############################

// new windows

newwin_list[614] = 'true';

// open windows

window_list[711] = 'width=620 height=500 resizable=no scrollbars=no';
window_list[712] = 'width=620 height=500 resizable=no scrollbars=no';
window_list[713] = 'width=620 height=500 resizable=no scrollbars=no';
window_list[714] = 'width=620 height=300 resizable=no scrollbars=no';
window_list[715] = 'width=620 height=500 resizable=no scrollbars=no';
window_list[716] = 'width=620 height=500 resizable=no scrollbars=no';
window_list[717] = 'width=620 height=500 resizable=no scrollbars=no';
window_list[718] = 'width=620 height=700 resizable=no scrollbars=yes';
window_list[719] = 'width=712 height=700 resizable=no scrollbars=yes';
window_list[720] = 'width=680 height=720 resizable=no scrollbars=yes';
//window_list[512] = 'width=685 height=560 resizable=no scrollbars=no';
//window_list[215] = 'width=600 height=480 resizable=no';
//window_list[515] = 'width=600 height=480 resizable=no';

//full screen menu

//fullwin_list[10] = 'true'

function go_site(num)
{
  if(url_list[num])
  {
// self windows
    if(newwin_list[num] != 'true' && fullwin_list[num] != 'true' && (window_list[num] == '' || window_list[num] == null))
    {
    	location=url_list[num];
    }

// blank  windows
    if(window_list[num] != '' && window_list[num] != null)
    {
      window.open(url_list[num], 'new_win', window_list[num]);
    }


// fullscreen  windows
    if(fullwin_list[num] == 'true')
    {
      window.open(url_list[num], 'new_win', 'width=1024 height=724 resizable=yes');
    }


// new  windows
    if(newwin_list[num] == 'true')
    {
      window.open(url_list[num], '_blank', 'directories=yes, titlebar=yes, toolbar=yes, menubar=yes, statusbar=yes, scrollbars=yes, resizable=yes, location=yes, status=yes');
    }
  }
}


function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}



function namosw_goto_byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}


var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
var isNS = navigator.appName == "Netscape";

function getRef(id) {
	if (isDOM) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}

function getSty(id) {
	x = getRef(id);
	return (isNS4 ? getRef(id) : getRef(id).style);
}


//**************************************
//flash patch
//**************************************
var flash_width;
var flash_height;
function flash_print(flash_filename, flash_width, flash_height)
{
  if(flash_width != '') var width_str = 'width=' + flash_width;
  if(flash_height != '') var height_str = 'height=' + flash_height ;
	var sTag = ''
		+ '<object classid=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\' codebase=\'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\' ' + width_str + ' ' + height_str + '>'
		+ '        <param name=\'movie\' value=\'' + flash_filename + '\'>'
		+ '        <param name=\'play\' value=\'true\'>'
		+ '        <param name=\'loop\' value=\'true\'>'
	  + '        <param name=\'wmode\' value=\'Transparent\'>'
		+ '        <param name=\'quality\' value=\'high\'>'
		+ '        <param name=\'allowScriptAccess\' value=\'always\' />'
		+ '        <embed src=\'' + flash_filename + '\' play=\'true\' loop=\'true\' wmode=\'Transparent\' allowScriptAccess=\'always\'  quality=\'high\' pluginspage=\'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\' ' + width_str + ' ' + height_str + ' ></embed></object>'
		+ '';
	document.write (sTag);
}



//****************************************
//link line patch
//****************************************

function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring; 

//**************************************
//mouse check patch
//**************************************
/*
var message="";
function clickIE() {
    if (document.all) {(message);return false;}
    }
function clickNS(e) {
    if (document.layers||(document.getElementById&&!document.all)) {
    if (e.which==2||e.which==3) {(message);return false;}}}
    if (document.layers) {
        document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
    else{
        document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
        document.oncontextmenu=new Function("return false")
*/
//**************************************
//png image patch
//**************************************

var clear="../images/clear.gif"; //path to clear.gif

document.write('<script type="text/javascript" id="ct" defer="defer" src="javascript:void(0)"><\/script>');var ct=document.getElementById("ct");ct.onreadystatechange=function(){pngfix()};pngfix=function(){var els=document.getElementsByTagName('*'),ip=/\.png/i,al="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='",i=els.length,uels=new Array(),c=0;while(i-->0){if(els[i].className.match(/unitPng/)){uels[c]=els[i];c++;}}if(uels.length==0)pfx(els);else pfx(uels);function pfx(els){i=els.length;while(i-->0){var el=els[i],es=el.style,elc=el.currentStyle,elb=elc.backgroundImage;if(el.src&&el.src.match(ip)&&!es.filter){es.height=el.height;es.width=el.width;es.filter=al+el.src+"',sizingMethod='crop')";el.src=clear;}else{if(elb.match(ip)){var path=elb.split('"'),rep=(elc.backgroundRepeat=='no-repeat')?'crop':'scale',elkids=el.getElementsByTagName('*'),j=elkids.length;es.filter=al+path[1]+"',sizingMethod='"+rep+"')";es.height=el.clientHeight+'px';es.backgroundImage='none';if(j!=0){if(elc.position!="absolute")es.position='static';while(j-->0)if(!elkids[j].style.position)elkids[j].style.position="relative";}}}}};};

//**************************************
//popup  : javascript: CloselayerPop1();
//**************************************

function ViewlayerPop1(){
      document.getElementById("pop").style.display='inline'
     }

     function CloselayerPop1(){
      document.getElementById("pop").style.display='none';

  }


function getCookie( name ){
        var nameOfCookie = name + "=";
        var x = 0;
        while ( x <= document.cookie.length )
        {
                var y = (x+nameOfCookie.length);
                if ( document.cookie.substring( x, y ) == nameOfCookie ) {
                        if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
                                endOfCookie = document.cookie.length;
                        return unescape( document.cookie.substring( y, endOfCookie ) );
                }
                x = document.cookie.indexOf( " ", x ) + 1;
                if ( x == 0 )
                        break;
        }
        return "";
}


function setCookie( name, value, expiredays ) 
{ 
        var todayDate = new Date(); 
        todayDate.setDate( todayDate.getDate() + expiredays ); 
        document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
 } 

// 체크후 닫기버튼을 눌렀을때 쿠키를 만들고 창을 닫습니다

function closeWin() 
{ 

        if (document.pop_form.popchk.checked == true){
			setCookie( "Notice", "main_pop" , 1);  // 오른쪽 숫자는 쿠키를 유지할 기간을 설정합니다
		}
       document.getElementById("pop").style.display='none';

} 


function pop_up(){

	if ( getCookie( "Notice" ) != "main_pop" ) {  //   메인 팝업

		document.getElementById("pop").style.display='block';

	}else{
		document.getElementById("pop").style.display='none';

	}
}



function maxwin()
  { 
self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight); 
  }

// SP2 강제 팝업 띄우기

function popup_open(url, target, flag)
{

 try
 {
  x_popup_launcher.DOM.Script.execScript('window.open("'+url+'","'+target+'","'+flag+'")');
  maxwin();
 }
 catch (e)
 {
  window.open(url, target, flag);
 }
}

//**************************************
//btn layer
//**************************************

function btntab(menu) {
 if(menu==1) {
  document.getElementById("btntab1").style.display = '';
  document.getElementById("btntab2").style.display = 'none';
  document.getElementById("btntab3").style.display = 'none';
  document.getElementById("btntab4").style.display = 'none';
 } else if(menu==2) {
  document.getElementById("btntab1").style.display = 'none';
  document.getElementById("btntab2").style.display = '';
  document.getElementById("btntab3").style.display = 'none';
  document.getElementById("btntab4").style.display = 'none';  
 } else if(menu==3) {
  document.getElementById("btntab1").style.display = 'none';
  document.getElementById("btntab2").style.display = 'none';
  document.getElementById("btntab3").style.display = '';
  document.getElementById("btntab4").style.display = 'none';
 } else if(menu==4) {
  document.getElementById("btntab1").style.display = 'none';
  document.getElementById("btntab2").style.display = 'none';
  document.getElementById("btntab3").style.display = 'none';
  document.getElementById("btntab4").style.display = '';
 } else {
  document.getElementById("btntab1").style.display = 'none';
  document.getElementById("btntab2").style.display = 'none';
  document.getElementById("btntab3").style.display = 'none';
  document.getElementById("btntab4").style.display = 'none';
 }
}

//**************************************
//btn layer_header
//**************************************
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.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];}
}

//**************************************
//popup page
//**************************************

//milove 신규 접속 창을 항상 최대로!

function maxwin()
  { 
self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight); 
  }

// SP2 강제 팝업 띄우기

function popup_open33(url, target, flag)
{

 try
 {
  x_popup_launcher.DOM.Script.execScript('window.open("'+url+'","'+target+'","'+flag+'")');
  maxwin();
 }
 catch (e)
 {
  window.open(url, target, flag);
 }
}

 //전체 화면 크기로 


 var popUpWin=0;
function popWindow( winName, URLStr, left, top, width, height )
{
	if(popUpWin)
	{
		if(!popUpWin.closed) popUpWin.close();
	}
	popUpWin = open(URLStr, winName, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
	popUpWin.focus();
}
