// ÇÃ·¡½¬ »ç¿ë°¡´É¿©ºÎ Ã¼Å©
var _FLADISABLED = false;

function FLA() {
	var check = null;

	document.getElementById("FLACHECK").innerHTML = "<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='0' height='0' id='CHECK'><param name='movie' value='http://www.adobe.com/swf/software/flash/about/ko/mini_FMA_01.swf' /></object>";

	try {
		var check = document.getElementById("CHECK").movie;

		if (typeof check == "undefined") {
			_FLADISABLED = true;
		}
	} catch (e) {
		_FLADISABLED = true;
	}
}

function ck(n) {
	for (var i = 1; i <= 6; i++) {
		document.getElementById("menu" + i).style.display = i == n ? "" : "none";
		document.getElementById("m" + i).src = _TOPDIR + "/images/main_menu0" + i + (i == n ? "a" : "") + ".gif";
	}
}

function ch(n, s) {
	for (var i = 1; i <= 6; i++) {
		if (i != s) {
			document.getElementById("m" + i).src = _TOPDIR + "/images/main_menu0" + i + (i == n ? "a" : "") + ".gif";
		}
	}
}

// flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î, ¾ÆÀÌµð, ¹è°æ»ö, À©µµ¿ì¸ðµå)
function flashWrite(s,w,h,d,bg,t,f,l){

    var keys = new Array();
    var values = new Array();
    if(f != null && f.length > 0){keys.push("nfreq");values.push(f);}
    for(var i = 0; l != null && i < l.length; i++){
        var clkid = i + 1;
        keys.push(clkid);values.push(encode(l[i]));
    }

 var flashvars = "";
    if(keys != null && values != null && keys.length > 0 && keys.length == values.length){
        for(var i = 0; i < keys.length; i++){
            if(i > 0){ flashvars += "&"; }
            flashvars += keys[i] + "=" + values[i];
        }
    }

    var code = "";
    code  = "<object type=\"application/x-shockwave-flash\" ";
    code +=         "classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" ";
    code +=         "codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" ";
    code +=         "width=\""+w+"\" height=\""+h+"\" id=\""+d+"\">";
    code += "<param name=\"movie\" value=\""+s+"\" />";
    code += "<param name=\"quality\" value=\"high\" />";
    //code += "<param name=\"bgcolor\" value=\"#ffffff\" />";
    code += "<param name=\"wmode\" value=\""+t+"\" />";
    code += "<param name=\"menu\" value=\"false\" />";
    code += "<param name=\"allowScriptAccess\" value=\"always\" />";
    code += "<param name=\"swliveconnect\" value=\"true\" />";

    if(flashvars.length > 0){
        code += "<param name=\"FlashVars\" value=\""+flashvars+"\" />";
    }

    code += "<embed src=\""+s+"\" quality=\"high\" "
    //code +=        "bgcolor=\"#ffffff\" "
    code +=        "wmode=\""+t+"\" "
    code +=        "menu=\"false\" width=\""+w+"\" height=\""+h+"\" "
    code +=        "type=\"application/x-shockwave-flash\" "

    if(flashvars.length > 0){
        code +=    "FlashVars=\""+flashvars+"\" ";
    }

    code +=        "pluginspage=\"http://www.macromedia.com/go/getflashplayer\"> "
    code += "</embed>"
    code += "</object>"

	document.write (code);
 }

function GNB(num) {
	switch (num) {
		case 0 : // HOME
			document.location.href = _TOPDIR + "/";
			break;
		case 011 : // ·Î±×ÀÎ
			document.location.href = _TOPDIR + "/Member/?s=LOGIN&r=" + (location.pathname.substr(_TOPDIR.length + 1, 6) == "Member" ? _TOPDIR + "/" : escape(location.pathname + location.search));
			break;

		case 'Post' : // q&a ¸®½ºÆ®¿¡¼­ ·Î±×ÀÎ½Ã
			document.location.href = _TOPDIR + "/Member/?s=LOGIN&r=" + escape(location.pathname + location.search+"&m=Post");
			break;

		case 012 : // ·Î±×¾Æ¿ô
			if (confirm(" Log Out ? ") == true) {
				document.location.href = _TOPDIR + "/Member/?s=LOGOUT&r=" + (location.pathname.substr(_TOPDIR.length + 1, 6) == "Member" ? _TOPDIR + "/" : escape(location.pathname + location.search));
			}
			break;
		case 021 :
			document.location.href = _TOPDIR + "/Member/?s=JOIN";// È¸¿ø°¡ÀÔ
			break;
		case 022 :
			document.location.href = _TOPDIR + "/Member/?s=MODIFY";// È¸¿ø¼öÁ¤
			break;
		case 023 :
			document.location.href = _TOPDIR + "/Member/?s=SEARCH";// ¾ÆÀÌµð/ÆÐ½º¿öµå Ã£±â
			break;
		case 024 :
			document.location.href = _TOPDIR + "/Member/?s=FRSEARCH";// ¾ÆÀÌµð/ÆÐ½º¿öµå Ã£±â (µðÁöÅÐÁõ°ÅºÐ¼®¼Ö·ç¼Ç)
			break;
		case 025 :
			document.location.href = _TOPDIR + "/Member/?s=MEMBEROUT";// È¸¿øÅ»Åð
			break;

		case 031 :
			document.location.href = _TOPDIR + "/ETC/?s=CONTACTUS";// Contact US
			break;
		case 041 :
			document.location.href = "http://121.125.79.162/";// ±¹¹®
			//window.alert("ÁØºñÁßÀÔ´Ï´Ù.");
			break;
		case 051 :
			document.location.href = _TOPDIR + "/ETC/?s=PROTECTION";// °³ÀÎÁ¤º¸º¸È£Á¤Ã¥
			break;
		case 061 :
			document.location.href = _TOPDIR + "/ETC/?s=AGREEMENT";// ÀÌ¿ë¾à°ü
			break;
		case 071 :
			document.location.href = _TOPDIR + "/ETC/?s=SITEMAP";// »çÀÌÆ®¸Ê
			break;
		
		case 072 :
			window.open('http://www.finaldata.us/');// usa
			break;
		case 073 :
			window.open('http://www.finaldata.co.kr/');// usa
			break;
		case 074 :
			window.open('http://www.finaldata.jp/');// usa
			break;

        // ¸ÞÀÎ »óÇ° ºÒ·¯ ¿À´Â ÀÌ¹ÌÁö ¸µÅ©
		case '091' :
			document.location.href = _TOPDIR + "/Products/?s=PRD&c=6";// 
			break;
		case '092' :
			document.location.href = _TOPDIR + "/Company/?s=COM.CEO";// 
			break;
		case '093' :
			document.location.href = _TOPDIR + "/Products/?s=PRD&c=18";// 
			break;
        // ¸ÞÀÎ »óÇ° ºÒ·¯ ¿À´Â ÀÌ¹ÌÁö ¸µÅ© 2
		case '291' :
			document.location.href = _TOPDIR + "/Forum/?s=FRM.FF3";// 
			break;
		case '292' :
			document.location.href = _TOPDIR + "/Forum2/?s=PRD&c=18&n=41";// 
			break;
		case '293' :
			document.location.href = _TOPDIR + "/Products/?s=FRM.FF1";// 
			break;
			
        // ¸ÞÀÎ »óÇ° ºÒ·¯ ¿À´Â ÀÌ¹ÌÁö ¸µÅ© 2
		case 291 :
			document.location.href = _TOPDIR + "/Products/?s=PRD&c=18&n=42";// 
			break;
		case 292 :
			document.location.href = _TOPDIR + "/Products/?s=PRD&c=18&n=41";// 
			break;
		case 293 :
			document.location.href = _TOPDIR + "/Products/?s=FRM.FF1";// 
			break;

	}
}


//***** sub01 company(È¸»ç¼Ò°³)
function company(num) {
	switch (num) {
		case 10 :
			document.location.href = _TOPDIR + "/Company/?s=COM.CEO";	//INTRODUCTION
			break;
		case 20 :
			document.location.href = _TOPDIR + "/Company/?s=COM.CPV";//Competitiveness (CEO ÀÎ»ç¸» ?s=COM.CEO)
			break;
		case 30 :
			document.location.href = _TOPDIR + "/Company/?s=COM.CPP";//Company Principle
			break;
		case 40 :
			document.location.href = _TOPDIR + "/Company/?s=COM.ORG";//Organization
			break;
		case 50 :
			document.location.href = _TOPDIR + "/Company/?s=COM.PRT";//Partnership
			break;
		case 60 :
			document.location.href = _TOPDIR + "/Company/?s=COM.CAR";//Award & Records
			break;
		case 70 :
			document.location.href = _TOPDIR + "/Company/?s=COM.HST";//History
			break;
		case 80 :
			document.location.href = _TOPDIR + "/Company/?s=NEWS.ENG";//News & Press
			break;
		case 90 :
			document.location.href = _TOPDIR + "/Buy/?s=PURCHASE";//News & Press
			break;
	}
}

//***** sub02 products(Á¦Ç°¼Ò°³)
function products(num, c, n) {
	var add = "";

	if (c) {
		add += "&c=" + c;
	}

	if (n) {
		add += "&n=" + n;
	}

	if (add != "") {
		document.location.href = _TOPDIR + "/Products/?s=PRD" + add;//Á¦Ç°¼Ò°³
	} else {
		switch (num) {
			case 10 :
				document.location.href = _TOPDIR + "/Products/?s=FRM.FF1";//Á¦Ç°¼Ò°³
				break;
			case 20 :
				document.location.href = _TOPDIR + "/Products/?s=PRD&c=7";//Á¦Ç°¼Ò°³
				break;
			case 30 :
				document.location.href = _TOPDIR + "/Products/?s=PRD&c=8";//Á¦Ç°¼Ò°³
				break;
			case 40 :
				document.location.href = _TOPDIR + "/Products/?s=PRD&c=9";//Á¦Ç°¼Ò°³
				break;
			case 50 :
				document.location.href = _TOPDIR + "/Products/?s=PRD&c=10";//Á¦Ç°¼Ò°³
				break;
			case 60 :
				document.location.href = _TOPDIR + "/Products/?s=PRD&c=11";//Á¦Ç°¼Ò°³
				break;
			case 70 :
				document.location.href = _TOPDIR + "/Products/?s=PRD.WHY";//Why FINALDATA
				break;
			case 71 :
				document.location.href = _TOPDIR + "/Products/?s=PRD.WHY&c=1";//ÇÊ¿ä¼º
				break;
			case 72 :
				document.location.href = _TOPDIR + "/Products/?s=PRD.WHY&c=2";//ÀåÁ¡
				break;
			case 73 :
				document.location.href = _TOPDIR + "/Products/?s=PRD.WHY&c=3";//¼­¹ö¿î¿µ/°ü¸®ÀÇ ÇÊ¼ö¿ä¼Ò
				break;
			case 74 :
				document.location.href = _TOPDIR + "/Products/?s=PRD.WHY&c=4";//¹é¾÷/µ¥ÀÌÅÍº¹±¸
				break;
			case 75 :
				document.location.href = _TOPDIR + "/Products/?s=PRD.WHY&c=5";//ÁÖ¿äÈ°¿ë¹æ¾È
				break;
			case 76 :
				document.location.href = _TOPDIR + "/Products/?s=PRD.WHY&c=6";//µµÀÔ±â¾÷
				break;
			case 77 :
				document.location.href = _TOPDIR + "/Products/?s=PRD.WHY&c=7";//º¹±¸»ç·Ê
				break;
			case 78 :
				document.location.href = _TOPDIR + "/Products/?s=PRD.WHY&c=8";//ÀÀ¿ë»ç·Ê
				break;
		}
	}
}



//***** sub02 products(Á¦Ç°¼Ò°³)       *****************************************   Forum2 Ãß°¡ ¼­ÈÆ 20080807
function products2(num, c, n) {
	var add = "";

	if (c) {
		add += "&c=" + c;
	}

	if (n) {
		add += "&n=" + n;
	}

	if (add != "") {
		document.location.href = _TOPDIR + "/Forum2/?s=PRD" + add;//Á¦Ç°¼Ò°³
	} else {
		switch (num) {
			case 10 :
				document.location.href = _TOPDIR + "/Forum2/?s=PRD&c=18";//Á¦Ç°¼Ò°³
				break;
		}
	}
}


//***** sub03 µðÁöÅÐÁõ°ÅºÐ¼® ¼Ö·ç¼Ç Forum
function forum(num) {
	switch (num) {
		case 10 :
			//document.location.href = _TOPDIR + "/Forum/?s=FRM.FF2";//¿î¿µÀÚ ÀÎ»ç¸»
			//document.location.href = _TOPDIR + "/Forum2/?s=PRD&c=18";//¿î¿µÀÚ ÀÎ»ç¸»
			document.location.href = _TOPDIR + "/Forum/?s=FRM.FF3";//¿î¿µÀÚ ÀÎ»ç¸»
			break;
		case 11 :
			document.location.href = _TOPDIR + "/Forum/?s=FRM.FF2";//Forensics ¼Ò°³
			break;
		case 12 :
			document.location.href = _TOPDIR + "/Forum/?s=DOWNLOAD.FF.ENG";//´Ù¿î·Îµå
			break;
		case 13 :
			document.location.href = _TOPDIR + "/Forum/?s=QNA.FF.ENG";//Q/A
			break;
		case 20 :
			document.location.href = _TOPDIR + "/Forum/?s=FRM.MF1";//¿î¿µÀÚ ÀÎ»ç¸»
			break;
		case 21 :
			document.location.href = _TOPDIR + "/Forum/?s=MOBILETRAND.ENG";//ÇÚµåÆù ÃÖ±Ù µ¿Çâ Á¤º¸
			break;
		case 22 :
			document.location.href = _TOPDIR + "/Forum/?s=FRM.MF2";//Mobile Forensics ¼Ò°³
			break;
		case 23 :
			document.location.href = _TOPDIR + "/Forum/?t=S&s=SUPPORT";//ÅëÇÕ Áö¿ø ¸®½ºÆ® ¹× ´Ù¿î·Îµå
			break;
		case 231 :
			document.location.href = _TOPDIR + "/Forum/?t=S&s=SUPPORT";// Official Release Download
			break;
		case 232 :
			document.location.href = _TOPDIR + "/Forum/?t=I&s=SUPPORT";// All Download
			break;
		case 24 :
			document.location.href = _TOPDIR + "/Forum/?s=QNA.MF.ENG";//Q/A
			break;
		case 25 :
			document.location.href = _TOPDIR + "/Forum/?s=TECHNICALINFO.ENG";//Technical Infomation
			break;
	}
}


//***** sub04 Á¦Ç°±¸¸Å
function buy(num) {
	switch (num) {
		case 10 :
			document.location.href = _TOPDIR + "/Buy/?s=BUY.INT";
			break;
		case 20 :
			document.location.href = _TOPDIR + "/Buy/?s=BUY.GUI";
			break;
		//case 20 :
		//	document.location.href = _TOPDIR + "/Buy/?s=BUY.USA";
		//	break;
		case 30 :
			document.location.href = _TOPDIR + "/Buy/?s=BUY.WWF";
			break;
		case 40 :
			document.location.href = _TOPDIR + "/Buy/?s=BUY.WWE";
			break;
		case 50 :
			document.location.href = _TOPDIR + "/Buy/?s=PURCHASE";
			break;
	}
}

//***** sub05 ´Ù¿î·Îµå
function download(num, c) {
	var add = "";

	if (c) {
		add += "&c=" + c;
	}

	switch (num) {
		case 10 :
			document.location.href = _TOPDIR + "/Download/?s=DEMO" + add;//µ¥¸ð¹öÀü ´Ù¿î·Îµå
			break;
		case 20 :
			document.location.href = _TOPDIR + "/Download/?s=MANUAL" + add;//¸Å´º¾ó ´Ù¿î·Îµå
			break;
		case 30 :
			document.location.href = _TOPDIR + "/Download/?s=PATCH" + add;//WEBW@CHER ´Ù¿î·Îµå
			break;
	}
}

//***** sub06 °í°´Áö¿ø
function customer(num, c) {
	var add = "";

	if (c) {
		add += "&c=" + c;
	}

	switch (num) {
		case 10 :
			document.location.href = _TOPDIR + "/Customer/?s=FAQ.NRM" + add;//FD DOCTOR
			//document.location.href = _TOPDIR + "/Customer/?s=FAQ.MYF&c=17" + add;//FD DOCTOR
			break;
		case 11 :
			document.location.href = _TOPDIR + "/Customer/?s=FAQ.MYF&c=17" + add;//FAQ
			break;
		case 12 :
			document.location.href = _TOPDIR + "/Customer/?s=QNA.CS.ENG";//Q/A
			break;
		case 20 :
			document.location.href = _TOPDIR + "/Customer/?s=FAQ.NRM" + add;//FAQ
			break;
		case 30 :
			document.location.href = _TOPDIR + "/Customer/?s=CUS.RCV";//Q/A
			break;

		case 31 :
			document.location.href = _TOPDIR + "/Customer/?s=CUS.RCV&c=2";//µ¥ÀÌÅÍ ¼Õ½ÇÀÇ ¿øÀÎ
			break;
		case 32 :
			document.location.href = _TOPDIR + "/Customer/?s=CUS.RCV&c=3";//µ¥ÀÌÅÍ ¼Õ½ÇÀÇ ÇÇÇØ
			break;
		case 33 :
			document.location.href = _TOPDIR + "/Customer/?s=CUS.RCV&c=4";//FINALDATAÀÇ ÀåÁ¡
			break;
		case 34 :
			document.location.href = _TOPDIR + "/Customer/?s=CUS.RCV&c=5";//¼­¹ö¿î¿µ / °ü¸®ÀÇ ÇÊ¼ö¿ä¼Ò
			break;
		case 35 :
			document.location.href = _TOPDIR + "/Customer/?s=CUS.RCV&c=6";//¹é¾÷ / µ¥ÀÌÅÍ º¹±¸
			break;
		case 36 :
			document.location.href = _TOPDIR + "/Customer/?s=CUS.RCV&c=7";//FINALDATAÀÇ ÁÖ¿ä È°¿ë¹æ¾È
			break;
		case 37 :
			document.location.href = _TOPDIR + "/Customer/?s=CUS.RCV&c=8";//µµÀÔ±â¾÷ ¸®½ºÆ®
			break;
		case 38 :
			document.location.href = _TOPDIR + "/Customer/?s=CUS.RCV&c=9";//º¹±¸»ç·Ê
			break;
		case 39 :
			document.location.href = _TOPDIR + "/Customer/?s=CUS.RCV&c=10";//ÀÀ¿ë»ç·Ê
			break;

		case 40 :
			document.location.href = _TOPDIR + "/Customer/?s=CUS.TEC";//License
			break;
			
		case 41 :
			document.location.href = _TOPDIR + "/Customer/?s=REPORT.CS.ENG";//License
			break;
	}			
}

//***** sub07 º¹±¸ ¼­ºñ½º
function service(num, c) {
	var add = "";

	if (c) {
		add += "&c=" + c;
	}

	switch (num) {
		//º¹±¸ ¼­ºñ½º
		case 10 :
			document.location.href = _TOPDIR + "/Service/?s=SVC.RCV&c=1";//º¹±¸ ¼­ºñ½º
			break;
		case 11 :
			document.location.href = _TOPDIR + "/Service/?s=SVC.RCV&c=2";//µ¥ÀÌÅÍ ¼Õ½ÇÀÇ ¿øÀÎ
			break;
		case 12 :
			document.location.href = _TOPDIR + "/Service/?s=SVC.RCV&c=3";//µ¥ÀÌÅÍ ¼Õ½Ç½Ã ÀÀ±ÞÁ¶Ä¡½º
			break;
		case 13 :
			document.location.href = _TOPDIR + "/Service/?s=SVC.RCV&c=4";//ÇÏµåµð½ºÅ© º¹±¸
			break;
		case 14 :
			document.location.href = _TOPDIR + "/Service/?s=SVC.RCV&c=5";//¼­¹ö / RAID ±¸¼º
			break;
		case 15 :
			document.location.href = _TOPDIR + "/Service/?s=SVC.RCV&c=6";//DB º¹±¸
			break;
		case 16 :
			document.location.href = _TOPDIR + "/Service/?s=SVC.RCV&c=7";//ÆÄÀÏ / ¾ÏÈ£ º¹±¸
			break;

		//º¹±¸ ÀÇ·Ú
		case 20 :
			document.location.href = _TOPDIR + "/Service/?s=SVC.REQ&c=1";//µ¥ÀÌÅÍ º¹±¸
			break;
		case 21 :
			document.location.href = _TOPDIR + "/Service/?s=SVC.REQ&c=2";//º¹±¸ ÀÇ·Ú
			break;
		case 22 :
			document.location.href = _TOPDIR + "/Service/?s=SVC.REQ&c=3";//º¹±¸ÇöÈ²Á¶È¸
			break;
		case 30 :
			document.location.href = _TOPDIR + "/Service/?s=SVC.LOC";//º¹±¸¼¾ÅÍ
			break;
		case 40 :
			document.location.href = _TOPDIR + "/Service/?s=FAQ.RCV.ENG" + add;//FAQ
			break;
		case 50 :
			document.location.href = _TOPDIR + "/Service/?s=QNA.RCV.ENG";//Q/A °Ô½ÃÆÇ
			break;
	}
}

//////////////////////
// 2007-05-29 
// ¸ðµç°³Ã¼ °¡Á®¿À±â
// ////////////////////
function GetObject(ObjectId) {
	 if (document.getElementById && document.getElementById(ObjectId)) {
	  return document.getElementById(ObjectId);
	 } else if (document.getElementByName && document.getElementByName(ObjectId)) {
	  return document.getElementByName(ObjectId);
	 } else if (document.all && document.all(ObjectId)) {
	  return document.all(ObjectId);
	 } else if (document.layers && document.layers[ObjectId]) {
	  return document.layers[ObjectId];
	 } else {
	  return false;
	 }
}

