// JavaScript Document
// - Microsoft Internet Explorer Æ¯Çã ¼Ò¼Û°ú °ü·ÃÇÏ¿© Ãß°¡ÇÔ
	
   	// »ç¿ëÀÚ È­¸é¿¡¼­ ÇÃ·¡½Ã ÇÃ·¹ÀÌ¾î ÄÁÆ®·Ñ Ç¥½Ã¿ë ÀÚ¹Ù½ºÅ©¸³Æ®
	var objIFrame;
	var nWebBrowser, nWidth, nHeight;
	var strFlashCodebase, strFlashFN, strBGColor;
	
	// º¯¼ö ÃÊ±âÈ­
	objIFrame = null;
	nWebBrowser = nWidth = nHeight = -1;
	strFlashCodebase = strFlashFN = strBGColor = "";
	
	
/* ---------------------------------------------------------------------------------------------------------------- */
	// Flash player¹öÀü¿¡ µû¸¥ ¼³Ä¡º» ÆÄÀÏ URL ÁÖ¼Ò
	strFlashCodebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0";
	
	// Ç¥½Ã ÇÒ Flash data Á¤º¸ ¼³Á¤
	nWidth     = 130;
	nHeight    = 16;
	strBGColor = "#000000";
	
	strFlashFN = "/images/main_images/notice_title.swf";
/* ---------------------------------------------------------------------------------------------------------------- */
	
	// ºê¶ó¿ìÀú È®ÀÎ
	function GetBrowser()
	{
		var agt = navigator.userAgent.toLowerCase();
		
		if( ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)) )
			return 1;    // "IE"
		else if( ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
			&& (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
			&& (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1)) )
			return 2;    // "Netscape";
		else
			return 0;    // "unknown";
	}
	
	// Flash data¸¦ ºê¶ó¿ìÀú¿¡ Ç¥½ÃÇÏ±â
	function ShowFlashData()
	{
		var objElement;
		var objParaElement1, objParaElement2, objParaElement3, objParaElement4, objParaElement5, objParaElement6;
		
		objElement = "";
		objParaElement1 = objParaElement2 = objParaElement3 = objParaElement4 = objParaElement5 = objParaElement6 = "";
		
		// Æ¯Çã ¼Ò¼Û°ú °ü·ÃÇÑ ÀÛ¾÷
/*		if (1 == nWebBrowser)
		{
			objElement = document.createElement('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="' + strFlashCodebase + ' width="' + nWidth + '" height="' + nHeight + '"></object>');
			
			//objParaElement1 = document.createElement('<param name="allowScriptAccess" value="sameDomain" />');
			//objParaElement2 = document.createElement('<param name="menu" value="false">');
			objParaElement3 = document.createElement('<param name="movie" value="' + strFlashFN + '">');
			objParaElement4 = document.createElement('<param name="quality" value="high">');
			//objParaElement5 = document.createElement('<param name="bgcolor" value="' + strBGColor + '" />');
			objParaElement6 = document.createElement('<param name="wmode" value="transparent">');
			
			//objElement.appendChild(objParaElement1);
			//objElement.appendChild(objParaElement2);
			objElement.appendChild(objParaElement3);
			objElement.appendChild(objParaElement4);
			//objElement.appendChild(objParaElement5);
			objElement.appendChild(objParaElement6);
			
			objFlashArea02.appendChild(objElement);
			
			return;
		} */
		
		// Microsoft Windows Internet Explorer ÇÁ·Î±×·¥ÀÌ ¾Æ´Ñ °æ¿ì
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="' + strFlashCodebase + '" width="' + nWidth + '" height="' + nHeight + '">');
		//document.write('<param name="allowScriptAccess" value="sameDomain" />');
		//document.write('<param name="menu" value="false">');
		document.write('<param name="movie" value="' + strFlashFN + '">');
		document.write('<param name="quality" value="high">');
		//document.write('<param name="bgcolor" value="' + strBGColor + '" />');
		document.write('<param name="wmode" value="transparent">');
		document.write('<embed src="' + strFlashFN + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + nWidth + '" height="' + nHeight + '"></embed>');
		document.write('</object>');
		
		return;
	}
	
	
	// ºê¶ó¿ìÀú È®ÀÎ
	nWebBrowser = GetBrowser();
	
	// ·£´ýÇÏ°Ô ÇÃ·¡½Ã ÀÚ·á¸¦ È­¸é¿¡ Ç¥½ÃÇÏ±â
	ShowFlashData();
