/* 업동이가 쓰는 스크립트 소스 */
var OnModule = 1;
/* public */
	function fnAddOnLoad(Proc)										{ return addOnLoad(Proc);									}
	function fnExeOnLoad()											{ return exeOnLoad();										}

	function fnChkVal(Obj, Mes)										{ return chkVal(Obj, Mes);									}
	function fnChkLen(Obj, Len, Mes)								{ return chkLen(Obj, Len, Mes);								}
	function fnChkVarLen(Obj, Len, Mes)								{ return chkVarLen(Obj, Len, Mes);							}
	function fnChkCmp(sObj, dObj, Mes)								{ return chkCmp(sObj, dObj, Mes);							}

	function fnChkJumin(sObj, dObj, Mes)							{ return chkJumin(sObj, dObj, Mes);							}
	function fnChkBizno(Obj, Mes)									{ return chkBizno(Obj, Mes);								}
	function fnChkEmail(Obj)										{ return chkEmail(Obj);										}
	function fnChkHangul(value)										{ return chkHangul(value);									}
	function fnChkByte(Obj)											{ return chkByte(Obj);										}
	function fnLeft(Value, cLen)									{ return Left(Value, cLen);									}
	function fnChkCharacter(Obj, Mes)								{ return chkCharacter(Obj, Mes);							}

	function fnSetCopyText(Obj, N)									{ return setCopyText(Obj, N);								}
	function fnSetNextFocus(Obj, N)									{ return setNextFocus(Obj, N);								}

	function fnExeReplace(Value)									{ return exeReplace(Value);									}
	function fnExeScript(Value)										{ return exeScript(Value);									}

	function fnUrlEncode(Url)										{ return urlEncode(Url);									}
	function fnUrlDecode(Url)										{ return urlDecode(Url);									}

	function fnShowForm(Src, Name, Left, Top, Width, Height)		{ return shwForm(Src, Name, Left, Top, Width, Height);		}
	function fnShowModal(Src)										{ return shwModal(Src);										}
	function fnShowModeless(Src)									{ return shwModeless(Src);									}
	function fnShowModalAdjustable(Src, Width, Height)				{ return shwModalAdjustable(Src, Width, Height);			}
	function fnShowModelessAdjustable(Src, Width, Height)			{ return shwModelessAdjustable(Src, Width, Height);			}
	function fnShowModalAllAdjustable(Src, Width, Height)			{ return shwModalAllAdjustable(Src, Width, Height);			}
	function fnShowModelessAllAdjustable(Src, Width, Height)		{ return shwModelessAllAdjustable(Src, Width, Height);		}

	//event control...
	function OnCheckNumber() 										{ return chkNumber() 										}
/* End public */

/* private */
	/* Const */
	var MES_DEFAULT = 101;

	var MES_ERROR_BLANKVARIANT_DEFAULT = 201;
	var MES_ERROR_NOTEQUALENGTH_DEFAULT = 202;
	var MES_ERROR_MINLENGTH_DEFAULT = 203;
	var MES_ERROR_NOTEQUALVALUE_DEFAULT = 204;

	var MES_ERROR_JUMIN_DEFAULT = 501;
	var MES_ERROR_JUMIN_FIRSTVALUE = 502;
	var MES_ERROR_JUMIN_LASTVALUE = 503;
	var MES_ERROR_JUMIN_FALSEVALUE = 504;

	var MES_ERROR_EMAIL_DEFAULT = 601;
	var MES_ERROR_EMAIL_IN_DAUM = 602;
	var MES_ERROR_EMAIL_IN_HANMAIL = 603;
	var MES_ERROR_EMAIL_IN_GAMEPOP = 604;

	var MES_ERROR_BIZNO_FALSE_LENGTH = 701;
	var MES_ERROR_BIZNO_FALSE_DATA = 702;

	var ARR_PROC_ONLOAD_LIST = new Array();

	var rc = /\s+/g;
	/* End Const */

	/* procedure */
	function ShowMessage(Message){
	var EMessage = '확인 후 다시 시도해 주십시요!';
	var SMessage = '                                                                                    ';

		Message = '\n\n' + Message + '\n' + SMessage + '\n\n' + EMessage + '\n';
		alert(Message);

		return 0;
	}

	function getMessage(MessageNo){
	var Message;

		switch (MessageNo) {
			case MES_DEFAULT						: Message = "알수 없는 오류!"; break;

			case MES_ERROR_BLANKVARIANT_DEFAULT		: Message = "빈문자열 오류!"; break;
			case MES_ERROR_NOTEQUALENGTH_DEFAULT	: Message = "허용하는 형식이 아닙니다!"; break;
			case MES_ERROR_MINLENGTH_DEFAULT		: Message = "허용하는 형식이 아닙니다!"; break;
			case MES_ERROR_NOTEQUALVALUE_DEFAULT	: Message = "요청하신 값이 일치 하지 않습니다!"; break;

			case MES_ERROR_JUMIN_DEFAULT			: Message = "주민등록번호 오류!"; break;
			case MES_ERROR_JUMIN_FIRSTVALUE			: Message = "주민등록번호 앞자리 오류!"; break;
			case MES_ERROR_JUMIN_LASTVALUE			: Message = "주민등록번호 뒷자리 오류!"; break;
			case MES_ERROR_JUMIN_FALSEVALUE			: Message = "주민등록번호 입력 오류!"; break;

			case MES_ERROR_EMAIL_DEFAULT			: Message = "옳바른 이메일 주소가 아닙니다!"; break;
			case MES_ERROR_EMAIL_IN_DAUM			: Message = "다음메일은 사용이 불가능합니다!"; break;
			case MES_ERROR_EMAIL_IN_HANMAIL			: Message = "한메일은 사용이 불가능합니다!"; break;
			case MES_ERROR_EMAIL_IN_GAMEPOP			: Message = "게임팝메일은 사용이 불가능합니다!"; break;

			case MES_ERROR_BIZNO_FALSE_LENGTH		: Message = "사업자등록번호 10자리가 아닙니다!"; break;
			case MES_ERROR_BIZNO_FALSE_DATA			: Message = "옳바른 사업자등록번호가 아닙니다!"; break;
		}

		Message = '[ ERRORCODE : ' + MessageNo + ' ] ' + Message;

		return Message;
	}

	function getElementsIndex(UnKnownObj, Obj){
		if (typeof(arguments[0]) == 'undefined') return false;
		if (typeof(arguments[1]) == 'undefined') return false;

	var c;

		for ( c = 0; c < UnKnownObj.length; c++ )
			if (UnKnownObj[c].name.toUpperCase() == Obj.name.toUpperCase()) return c;
	}

	function errProc(Obj, Mes, ReplaceValue, Focus){
		if (typeof(arguments[0]) == 'undefined') return false;
		if (typeof(arguments[1]) == 'undefined') Mes = getMessage(MES_DEFAULT);
		if (typeof(arguments[2]) == 'undefined') ReplaceValue = false;
		if (typeof(arguments[3]) == 'undefined') Focus = false;

		ShowMessage(Mes);

		if (ReplaceValue) Obj.value=Obj.value.replace(rc,'');
		if (Focus) Obj.focus();

		return false;
	}

	function addOnLoad(Proc){
		ARR_PROC_ONLOAD_LIST[ARR_PROC_ONLOAD_LIST.length] = Proc;
	}

	function exeOnLoad(){
		try{
		  for (var i=0; i<ARR_PROC_ONLOAD_LIST.length; i++) {
			eval(ARR_PROC_ONLOAD_LIST[i]);
		  }
		}catch(e){}
	}

	function chkVal(Obj, Mes){
		if (typeof(arguments[0]) == 'undefined') return false;
		if (typeof(arguments[1]) == 'undefined') Mes = getMessage(MES_ERROR_BLANKVARIANT_DEFAULT);

		if (Obj.value.replace(rc,'').length == 0) return errProc(Obj, Mes, true, true);

		return true;
	}

	function chkLen(Obj, Len, Mes){
		if (typeof(arguments[0]) == 'undefined') return false;
		if (typeof(arguments[1]) == 'undefined') return false;
		if (typeof(arguments[2]) == 'undefined') Mes = getMessage(MES_ERROR_NOTEQUALENGTH_DEFAULT);

		if (Obj.value.replace(rc,'').length != Len) return errProc(Obj, Mes, true, true);

		return true;
	}

	function chkVarLen(Obj, Len, Mes){
		if (typeof(arguments[0]) == 'undefined') return false;
		if (typeof(arguments[1]) == 'undefined') return false;
		if (typeof(arguments[2]) == 'undefined') Mes = getMessage(MES_ERROR_MINLENGTH_DEFAULT);

		if (Obj.value.replace(rc,'').length <= Len) return errProc(Obj, Mes, true, true);

		return true;
	}

	function chkCmp(sObj, dObj, Mes){
		if (typeof(arguments[0]) == 'undefined') return false;
		if (typeof(arguments[1]) == 'undefined') return false;
		if (typeof(arguments[2]) == 'undefined') Mes = getMessage(MES_ERROR_NOTEQUALVALUE_DEFAULT);

		if (sObj.value != dObj.value) return errProc(dObj, Mes, false, true);

		return true;
	}

	function chkJumin(sObj, dObj, Mes){
		if (typeof(arguments[0]) == 'undefined') return false;
		if (typeof(arguments[1]) == 'undefined') return false;
		if (typeof(arguments[2]) == 'undefined') Mes = getMessage(MES_ERROR_JUMIN_DEFAULT);

	var	fVal = sObj.value;
	var	lVal = dObj.value;
	var i, t, tmp;

		t=0;
		for (var i=0;i<fVal.length;i++) {
			tmp = fVal.substring(i,i+1);
			if (tmp<'0' || tmp>'9') t++;
		}

		if ((fVal == '') || ( t != 0 )) return errProc(sObj, getMessage(MES_ERROR_JUMIN_FIRSTVALUE), false, true);

		t=0;
		for (var i=0;i<lVal.length;i++)	{
			tmp = lVal.substring(i,i+1);
			if (tmp<'0' || tmp>'9') t++;
		}

		if ((lVal == '') || ( t != 0 )) return errProc(dObj, getMessage(MES_ERROR_JUMIN_LASTVALUE), false, true);

		if (fVal.substring(0,1) < 0) return errProc(sObj, getMessage(MES_ERROR_JUMIN_FIRSTVALUE), false, true);

		if (lVal.substring(0,1) > 2 || lVal.substring(0,1) <= 0) return errProc(dObj, getMessage(MES_ERROR_JUMIN_LASTVALUE), false, true);

		if (fVal.length != 6) return errProc(sObj, getMessage(MES_ERROR_JUMIN_FIRSTVALUE), false, true);
		if (lVal.length != 7) return errProc(dObj, getMessage(MES_ERROR_JUMIN_LASTVALUE), false, true);

		if ((fVal == '72') || ( lVal == '18')) return errProc(sObj, getMessage(MES_ERROR_JUMIN_FALSEVALUE), false, true);

		var f1=fVal.substring(0,1); var f2=fVal.substring(1,2); var f3=fVal.substring(2,3); var f4=fVal.substring(3,4); var f5=fVal.substring(4,5); var f6=fVal.substring(5,6);
		var hap=f1*2+f2*3+f3*4+f4*5+f5*6+f6*7;

		var l1=lVal.substring(0,1); var l2=lVal.substring(1,2); var l3=lVal.substring(2,3); var l4=lVal.substring(3,4); var l5=lVal.substring(4,5); var l6=lVal.substring(5,6); var l7=lVal.substring(6,7);
		hap=hap+l1*8+l2*9+l3*2+l4*3+l5*4+l6*5;
		hap=hap%11;
		hap=11-hap;
		hap=hap%10;

		if (hap != l7) return errProc(sObj, Mes, false, true);

		return true;
	}

	function chkBizno(Obj, Mes){
		if (typeof(arguments[0]) == 'undefined') return false;

	var r = "137137135";
	var val = Obj.value.replace(/-/g, '');
		/*saunaro.com에 추가. 2003.4.16 수요일*/
		Obj.value = val;
		////////////////////////////////////////
		if (val.length!=10) return errProc(Obj, getMessage(MES_ERROR_BIZNO_FALSE_LENGTH), false, true);

	var t1, t2, t3, t4, t5, t6, t7;

		t1 = 0;

		for (var i=0; i<7; i++) t1 = t1 + (val.substring(i, i+1) *r.substring(i, i+1));

		t2 = t1 % 10;
		t3 = (val.substring(7, 8) * r.substring(7, 8))% 10;
		t4 = val.substring(8, 9) * r.substring(8, 9);
		t5 = Math.round(t4 / 10 - 0.5);
		t6 = t4 - (t5 * 10);
		t7 = (10 - ((t2 + t3 + t5 + t6) % 10)) % 10;

		if (val.substring(9, 10) != t7) return errProc(Obj, getMessage(MES_ERROR_BIZNO_FALSE_DATA), false, true);

		return true;
	}

	function chkEmail(Obj){
		if (typeof(arguments[0]) == 'undefined') return false;

	var pos;

		pos = Obj.value.indexOf('@');

//		if (Obj.value.substr(pos+1,8) == 'hanmail.') return errProc(Obj, getMessage(MES_ERROR_EMAIL_IN_HANMAIL), false, true);

//		if (Obj.value.substr(pos+1,5) == 'daum.') return errProc(Obj, getMessage(MES_ERROR_EMAIL_IN_DAUM), false, true);

//		if (Obj.value.substr(pos+1,8) == 'gamepop.') return errProc(Obj, getMessage(MES_ERROR_EMAIL_IN_GAMEPOP), false, true);

		if (pos < 0) {
			return errProc(Obj, getMessage(MES_ERROR_EMAIL_DEFAULT), false, true);
		} else {
			pos = Obj.value.indexOf('@', pos + 1);

			if (pos >= 0) return errProc(Obj, getMessage(MES_ERROR_EMAIL_DEFAULT), false, true);
		}

		pos = Obj.value.indexOf('.');

		if (pos < 0) return errProc(Obj, getMessage(MES_ERROR_EMAIL_DEFAULT), false, true);

		return true;
	}

	function chkHangul(value) {
		if (typeof(arguments[0]) == 'undefined') return false;

		for(i=0;i<value.length;i++) {
			var a=value.charCodeAt(i);
			if (a > 128) return true;
		}
		return false;
	}

	function chkByte(Obj){
		if (typeof(arguments[0]) == 'undefined') return false;

		var s = new String(Obj.value);
		var l = s.length;
		var c = 0;
		var t;

		for (var i = 0; i < l; i++){
			t = s.charAt(i);

			if (chkHangul(t)) {
				c += 2;
			} else {
				c++;
			}
		}

		return c;
	}

	function chkCharacter(Obj, Mes){
		var str =Obj.value;
		var prohibit = new Array(30);
		var chk = 0;
		prohibit[0] = "`";
		prohibit[1] = "~";
		prohibit[2] = "@";
		prohibit[3] = "#";
		prohibit[4] = "$";
		prohibit[5] = "%";
		prohibit[6] = "^";
		prohibit[7] = "&";
		prohibit[8] = "*";
		prohibit[9] = "(";
		prohibit[10] = ")";
		prohibit[11] = "-";
		prohibit[12] = "+";
		prohibit[13] = "=";
		prohibit[14] = "|";
		prohibit[15] = "\\";
		prohibit[16] = "{";
		prohibit[17] = "}";
		prohibit[18] = "[";
		prohibit[19] = "]";
		prohibit[20] = ";";
		prohibit[21] = ":";
		prohibit[22] = "'";
		prohibit[23] = "\"";
		prohibit[24] = "<";
		prohibit[25] = ">";
		prohibit[26] = ",";
		prohibit[27] = ".";
		prohibit[28] = "?";
		prohibit[29] = "/";

		for (var i=0; i < prohibit.length; i++)
			if( str.indexOf(prohibit[i]) != -1)	chk++;

		if( chk > 0 )
			return errProc(Obj, Mes, true, true);

		return true;
	}

	function Left(Value, cLen){
		if (typeof(arguments[0]) == 'undefined') return false;
		if (typeof(arguments[1]) == 'undefined') return false;

		var s = new String(Value);
		var l = s.length;
		var c = 0;
		var t;

		for (var i = 0; i < l; i++){
			t = s.charAt(i);

			if (chkHangul(t)) {
				c += 2;
			} else {
				c++;
			}

			if (c > cLen) {
				s = s.substring(0,i);
				break;
			}
		}

		return s;
	}

	function setCopyText(Obj, N){
		if (typeof(arguments[0]) == 'undefined') return false;
		if (typeof(arguments[1]) == 'undefined') N = 1;

	var UnKnownObj = document.body.getElementsByTagName(Obj.tagName);

		UnKnownObj[parseInt(getElementsIndex(UnKnownObj, Obj)) + N].value = Obj.value;

		return 0;
	}

	function setNextFocus(Obj, N){
		if (typeof(arguments[0]) == 'undefined') return false;
		if (typeof(arguments[1]) == 'undefined') N = 1;

	var UnKnownObj = document.body.getElementsByTagName(Obj.tagName);

		UnKnownObj[parseInt(getElementsIndex(UnKnownObj, Obj)) + N].focus();

		return 0;
	}

	function exeReplace(value) {
	var rc = /\s+/g;
	var s1 = '&{';
	var s2 = '};';
	var s, sc, c1, c2;

		c1 = value.indexOf(s1);
		c2 = value.indexOf(s2);
		sc = value.substring(c1 + s1.length, c2);

		s = sc.split(';');

		for (c=0;c<s.length;c++)
			if ( s[c].replace(rc, '').length != 0 )
				return eval(s[c]);
	}

	function exeScript(value) {
	var rc = /\s+/g;
	var s1 = '&{';
	var s2 = '};';
	var s, sc, c1, c2;

		c1 = value.indexOf(s1);
		c2 = value.indexOf(s2);
		sc = value.substring(c1 + s1.length, c2);

		s = sc.split(';');

		for (c=0;c<s.length;c++)
			if ( s[c].replace(rc, '').length != 0 )
				eval(s[c]);

		return false;
	}

	function urlEncode(Url)
	{
	  var Url = escape(Url.replace(/ /g, '+'));
	  return Url.replace(/\//g, '%2F');
	}

	function urlDecode(Url)
	{
	  var Url = unescape(Url.replace(/\+/g, ' '));
	  return Url.replace(/%2F/g, '\/');
	}

	function shwForm(Src, Name, Left, Top, Width, Height){
		if (typeof(arguments[0]) == 'undefined') return false;
		if (typeof(arguments[1]) == 'undefined') Left = '';
		if (typeof(arguments[2]) == 'undefined') Top = '';
		if (typeof(arguments[3]) == 'undefined') Width = '';
		if (typeof(arguments[4]) == 'undefined') Height = '';

		window.open(Src, Name, 'Left=' + Left + ',Top=' + Top + ',Width=' + Width + ',Height=' + Height + ',menubar=no,directories=no,resizable=no,status=no,scrollbars=no');

		return false;
	}

	function shwModal(Src){
		if (typeof(arguments[0]) == 'undefined') return false;

		window.showModalDialog(Src, [window], 'dialogWidth:600px;dialogHeight:420px;Help:no;Scroll:no;Status:no;');

		return false;
	}

	function shwModeless(Src){
		if (typeof(arguments[0]) == 'undefined') return false;

		window.showModelessDialog(Src, [window], 'dialogWidth:600px;dialogHeight:420px;Help:no;Scroll:no;Status:no;');

		return false;
	}

	function shwModalAdjustable(Src, Width, Height){
		if (typeof(arguments[0]) == 'undefined') return false;
		if (typeof(arguments[1]) == 'undefined') Width = '580';
		if (typeof(arguments[2]) == 'undefined') Height = '400';

		window.showModalDialog(Src, [window], 'dialogWidth:' + Width + 'px;dialogHeight:' + Height + 'px;Help:no;Scroll:no;Status:no;');

		return false;
	}

	function shwModelessAdjustable(Src, Width, Height){
		if (typeof(arguments[0]) == 'undefined') return false;
		if (typeof(arguments[1]) == 'undefined') Width = '580';
		if (typeof(arguments[2]) == 'undefined') Height = '400';

		window.showModelessDialog(Src, [window], 'dialogWidth:' + Width + 'px;dialogHeight:' + Height + 'px;Help:no;Scroll:no;Status:no;');

		return false;
	}

	function shwModalAllAdjustable(Src, Width, Height, Help, Scroll, Status){
		if (typeof(arguments[0]) == 'undefined') return false;
		if (typeof(arguments[1]) == 'undefined') Width = '580';
		if (typeof(arguments[2]) == 'undefined') Height = '400';
		if (typeof(arguments[3]) == 'undefined') Help = 'no';
		if (typeof(arguments[4]) == 'undefined') Scroll = 'no';
		if (typeof(arguments[5]) == 'undefined') Status = 'no';

		window.showModalDialog(Src, [window], 'dialogWidth:' + Width + 'px;dialogHeight:' + Height + 'px;Help:' + Help + ';Scroll:' + Scroll + ';Status:' + Status + ';');

		return false;
	}

	function shwModelessAllAdjustable(Src, Width, Height, Help, Scroll, Status){
		if (typeof(arguments[0]) == 'undefined') return false;
		if (typeof(arguments[1]) == 'undefined') Width = '580';
		if (typeof(arguments[2]) == 'undefined') Height = '400';
		if (typeof(arguments[3]) == 'undefined') Help = 'no';
		if (typeof(arguments[4]) == 'undefined') Scroll = 'no';
		if (typeof(arguments[5]) == 'undefined') Status = 'no';

		window.showModelessDialog(Src, [window], 'dialogWidth:' + Width + 'px;dialogHeight:' + Height + 'px;Help:' + Help + ';Scroll:' + Scroll + ';Status:' + Status + ';');

		return false;
	}

	function chkNumber() { //브라우져.. 이벤트 제어...
	var isKey = false;
		var Key = new Array(8, 9, 16, 35, 36, 37, 39, 46, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105);

		for (var c = 0; c < Key.length; c++) {
			if(Key[c]==event.keyCode)
				isKey = true;
		}

		if(!isKey)
		event.returnValue = false;
	}
	/* End Procedure */

/* End Private */


/* print */
function fnPrint(){

	var pobj = document.all.prt;
	var org = document.body.innerHTML;
	var bcolor = document.body.style.backgroundColor;
	var buffer = document.createElement('div');

	buffer.innerHTML = pobj.innerHTML;
	//buffer.children[0].width = '100%';
	document.body.style.backgroundColor = 'ffffff';
	document.body.innerHTML = buffer.innerHTML;
	self.print();
	document.body.innerHTML = org;
	document.body.style.backgroundColor = bcolor;
}

/* Font Scale */

function setCookie(name,value,expires) { document.cookie=name + "=" + escape(value) + ((expires == null)? "" : (" ; expires=" + expires.toGMTString())); }
function getCookie(name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while(i< clen) { var j = i + alen; if(document.cookie.substring(i,j)==arg){ var end = document.cookie.indexOf(";",j); if(end == -1) end = document.cookie.length; return unescape(document.cookie.substring(j,end)); } i=document.cookie.indexOf(" ",i)+1; if (i==0) break; } return null; }
function getFontCookie() { var cookie = getCookie("news_font_size"); if ( cookie == null ) return 16; if ( cookie.length ) return cookie; else return 16; }
function scaleFont(val) {
var content, lineHeight; content = document.getElementById("content"); if (val > 0) { if (fontSize <= 18) { fontSize = fontSize + val; lineHeight = fontSize+Math.round(1.1*fontSize); content.style.fontSize = fontSize + "px"; } } else { if (fontSize > 12) { fontSize = fontSize + val; lineHeight = fontSize+Math.round(1.1*fontSize); content.style.fontSize = fontSize + "px"; } } var mydate = new Date; mydate.setDate(mydate.getDate()+1000); setCookie("news_font_size", fontSize, mydate); }
var fontSize = parseInt(getFontCookie());



/* flash 패치 */

function JS_viewObj(objhtml) {
	document.write(objhtml);
}

function flash_view(source, o_width, o_height, e_width, e_height){
 var fla ="<OBJECT CLASSID='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' CODEBASE='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.c-ab#version=6,0,29,0' WIDTH='" + o_width + "' HEIGHT='" + o_height + "'>";
  fla = fla + "<PARAM NAME='movie' VALUE='" + source + "'>";
  fla = fla + "<PARAM NAME='play' VALUE='true'>";
  fla = fla + "<PARAM NAME='loop' VALUE='false'>";
  fla = fla + "<PARAM NAME='quality' VALUE='High'>";
  fla = fla + "<PARAM NAME='_cx' VALUE='5080'>";
  fla = fla + "<PARAM NAME='_cy' VALUE='5080'>";
  fla = fla + "<PARAM NAME='src' VALUE='" + source + "'>";
  fla = fla + "<PARAM NAME='WMode' VALUE='transparent'>";
  fla = fla + "<PARAM NAME='Menu' VALUE='false'>";
  fla = fla + "<PARAM NAME='Scale' VALUE='ShowAll'>";
  fla = fla + "<PARAM NAME='DeviceFont' VALUE='false'>";
  fla = fla + "<PARAM NAME='EmbedMovie' VALUE='false'>";
  fla = fla + "<PARAM NAME='SeamlessTabbing' VALUE='true'>";
  fla = fla + "<PARAM NAME='Profile' VALUE='false'>";
  fla = fla + "<PARAM NAME='ProfilePort' VALUE='0'>";
  fla = fla + "<EMBED wmdoe='transparent' WIDTH='" + e_width + "' HEIGHT='" + e_height + "' src='" + source + "' play='true' loop='true' quality='High' WMode='Window' Menu='false' Scale='ShowAll' DeviceFont='false' EmbedMovie='false' SeamlessTabbing='true' Profile='false' ProfilePort='0' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></EMBED>";
  fla = fla + "</OBJECT>";

  document.write (fla);
}

function MakeFlash(Url,Width,Height){
	document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"" + Width + "\" height=\"" + Height + "\">");
	document.writeln("<param name=\"movie\" value=\"" + Url + "\">");
	document.writeln("<param name=\"quality\" value=\"high\" />");
	document.writeln("<param name=\"wmode\" value=\"transparent\">");
	document.writeln("<embed src=\"" + Url + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + Width + "\"  height=\"" + Height + "\" wmode=\"transparent\">");
	document.writeln("</object>");
}