// ¿î¿µ¿ë
    var ISINNER;
	var INNER_HOST   = "hq0414.hq.af.mil";
	var INNER_IP         = "48.2.1.169";

	var OUTER_HOST  = "www.airforce.mil.kr";
                var OUTER_HOST2  = "www.airforce.kr";
                var OUTER_HOST3  = "airforce.mil.kr";
	var OUTER_IP        = "211.252.239.2";
    

    
	var hostname = location.hostname;
	if (hostname.indexOf(INNER_HOST) >= 0 || hostname.indexOf(INNER_IP) >= 0) {        
		ISINNER = true;
	} else if (hostname.indexOf(OUTER_HOST) >= 0 || hostname.indexOf(OUTER_IP) >= 0 || hostname.indexOf(OUTER_HOST2) >= 0 || hostname.indexOf(OUTER_HOST3) >= 0) {        
		ISINNER = false;
	} else {        
		ISINNER = true;
	}


	//target = 1  Á÷Á¢¸µÅ©
	//target = 2  »õÃ¢¸µÅ©
	//target = 3  iframe¿¡¼­ÀÇ ¸µÅ©
	//target = fullscreen	ÃÖ´ëÈ­»çÀÌÁî·Î Ã¢ ¶Ù¿ò
	//type Àº ¸µÅ©Å¸ÀÔ
	//type = 1 ³»ºÎ¸Á ¸µÅ©
	//type = 2 ¿ÜºÎ¸Á ¸µÅ©

	//openWin : target = 2ÀÏ°æ¿ì »õÃ¢¿¡ º°µµÀÇ ÀÌ¸§À» ºÎ¿©ÇÒ°æ¿ì »ç¿ë. 
	//2005-07-05Ãß°¡
	
	function goLink(type, url, target, size,openWin) {
		if (type == "1") { 
			if (!ISINNER) {
				alert("³»ºÎ¸Á »ç¿ëÀÚ¸¸ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
				return;
			}
		} else if (type == "2") { 
			if (ISINNER) {                                
				alert("¿ÜºÎ¸Á »ç¿ëÀÚ¸¸ ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.");
				return;
			}
		} else {
			return;
		}
		
		if (target == "2") {
			size += ",resizable=yes,scrollbars=yes";
			if(openWin !=""){
				window.open(url,openWin,size);
			}else{
				window.open(url,'win',size);
			}
		} else if (target == "3"){
			parent.location.href = url;
		} else if (target == "fullscreen"){
			width	= screen.width;
			height	= screen.height;
			size = "width=" + width + ",height=" + height + ",left=0, top=0,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes";

			if(openWin !=""){
				window.open(url,openWin,size);
			}else{
				window.open(url,'win',size);
			}			
		} else {
			location.href = url;	
		}
	}

	function goLink2(innerURL, outterURL, target, size2,openWin) {
		var url = "";
		if (ISINNER) {
			url = innerURL;
		} else {
			url = outterURL;
		}
		
		if (target == "2") {
			size2 += ",resizable=yes,scrollbars=yes";
			if(openWin !=""){
				window.open(url,openWin,size2);
			}else{
				window.open(url,'win',size2);
			}
		} else if (target == "3"){
			parent.location.href = url;
		} else if (target == "fullscreen"){
			width	= screen.width;
			height	= screen.height;
			size = "width=" + width + ",height=" + height + ",left=0, top=0,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes";

			if(openWin !=""){
				window.open(url,openWin,size);
			}else{
				window.open(url,'win',size);
			}			
		} else {
			location.href = url;	
		}
	}
                
	function MM_openBrWindow(theURL,winName,features) { //v2.0
  		features+= ",resizable=yes";
        window.open(theURL,winName,features);
	} 
 

	function ActiveX_SWF(src,width,height,codebase)
	{
		if(codebase == "")
		{
			classid = 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000';
			codebase = 'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0';
		}
		else if(codebase != "")
		{
			classid = 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000';
			codebase = 'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0';			
		}

		contents = '<object classid="' + classid + '" codebase="' + codebase + '" width=' + width + '" height="' + height + '">';
        contents = contents + '<param name="movie" value="' + src + '">';
        contents = contents + '<param name="quality" value="high">';
        contents = contents + '<param name="wmode" value="transparent">';
        contents = contents + '<embed src="' + src + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>';
        contents = contents + '</object>';

		document.write(contents);

	}<!-- This page is generated by CMS -->