	// flash version check
	function flashDownSite(){
		alert("플래쉬 최신버전이 설치되어있지 않습니다.");
		document.location.href = "http://get.adobe.com/kr/flashplayer/";
	//	window.open('http://get.adobe.com/kr/flashplayer/','_blank');	// 새창으로 띄우기
	}

	function fnVersion(ver)
	{
		var strReturnVal;
		// 모질라 버전 체크
		if(navigator.appName=="Netscape"){ 
			try{

				var objN = navigator.plugins["Shockwave Flash"].description; 
				var endIdx = objN.indexOf(".");
				var startIdx = objN.indexOf(".") -3;
				var strNVer = objN.substring(startIdx, endIdx);	// 버전값 10 가져오기
				
				if(strNVer >= ver){ 
					return;
				}else{ 
					flashDownSite();	// site 이동
				}
			}catch(e) {
				flashDownSite();	// site 이동
			}

		}else{ 
		// 익스플로어 버전 체크
			try{
				var objE = new ActiveXObject('ShockwaveFlash.ShockwaveFlash'); 
				var strEVer = objE.GetVariable("$version");	// 버전 가져오기
				var endIdx = strEVer.indexOf(",");
				var startIdx = strEVer.indexOf(",") -3;
				var strEVerRe = strEVer.substring(startIdx, endIdx);	// 버전값 10 가져오기

				if(strEVerRe >= ver){ 
					return;
				}else{ 
					flashDownSite();	// site 이동
				}
			}catch(e) {   
				flashDownSite();	// site 이동
			}
		}
	}

	// Flash Object 설정
	function flashString2(mID, mUrl, mWidth, mHeight, mParams, mBGcolor, mWmode) {
		var buff = [];
		buff.push("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=11,0,0,0' width='" + mWidth + "' height='" + mHeight + "' id='" + mID + "' align='middle'>");
		buff.push("<param name='allowScriptAccess' value='always' />");
		buff.push("<param name='menu' value='false' />");
		buff.push("<param name='allowFullScreen' value='false' />");
		buff.push("<param name='movie' value='" + mUrl + "' />");
		buff.push("<param name='FlashVars' value='" + mParams + "' />");
		buff.push("<param name='quality' value='high' />");
		buff.push("<param name='wmode' value='" + mWmode + "' />");
		buff.push("<param name='bgcolor' value='" + mBGcolor + "' />");
		buff.push("<embed src='" + mUrl + "' FlashVars='" + mParams + "' quality='high' wmode='" + mWmode + "' bgcolor='" + mBGcolor + "' width='" + mWidth + "' height='" + mHeight + "' name='" + mID + "' align='middle' allowScriptAccess='always' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
		buff.push("</object>");
		
		return buff.join("");
	}

	// Flash String 출력
	function flashObject(mID, mUrl, mWidth, mHeight, mParam, mBGcolor, mWmode) {
		// version 체크
		fnVersion(10);
		// version=10
		document.write(flashString2(mID, mUrl, mWidth, mHeight, mParam, mBGcolor, mWmode));
	}
