function flash8(argSRC,argWIDTH,argHEIGHT,argBGCOLOR,argVar,argID,argName,argWMODE){
var strTEMP;
strTEMP ='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ' ;
	if(argID)
	strTEMP = strTEMP + ' ID="' + argID + '" ' ;//ID
	strTEMP = strTEMP + ' width="'+ argWIDTH + '" height="' + argHEIGHT + '">';//가로세로 값//
	strTEMP = strTEMP + '<param name="allowScriptAccess" value="always" />';//통신방법//
	strTEMP = strTEMP + '<param name="movie" value="' + argSRC + '">';//경로//
	strTEMP = strTEMP + '<param name="FlashVars" value="'+argVar+'" />';//페이지 인식//
	strTEMP = strTEMP + '<param name="bgcolor" value="'+argBGCOLOR+'" />';//플래시 배경색갈//
	strTEMP = strTEMP + '<param name="quality" value="high" />';//플래시 퀄리티//
	strTEMP = strTEMP + '<param name="memu" value="false" />';//이름값//
	
	if(argWMODE)
	strTEMP = strTEMP + '<param name="wmode" value="' + argWMODE + '">';
	else
	strTEMP = strTEMP + '<param name="wmode" value="transparent">';
	strTEMP = strTEMP + '<embed src="'+ argSRC +'" FlashVars="'+ argVar +'" ';
	
	if (argWMODE)
	strTEMP = strTEMP + 'wmode="'+ argWMODE +'" ';
	else
	strTEMP = strTEMP + 'wmode="transparent" ';
	strTEMP = strTEMP + 'menu="false" quality="high" bgcolor="'+ argBGCOLOR +'" width="'+ argWIDTH +'" height="'+ argHEIGHT +'" name="'+ argID +'" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	strTEMP = strTEMP + '</object>';
	document.write(strTEMP);
	
}

function resizeDiv (divid, divWidth, divHeight) {
	var objDiv = document.getElementById(divid);
	if(objDiv != null) {
		objDiv.style.width = divWidth;
		objDiv.style.height = divHeight;
	}

	//alert(divWidth+", "+divHeight);
}

function modalScreen (flag) {
	var objDiv = document.getElementById("divAll");
	if (flag == 'y') {
		if(objDiv != null) {
			//document.body.style.overflowX = 'hidden';
			//document.body.style.overflowY = 'hidden';
			objDiv.style.width = (document.body.scrollWidth) + 'px';
			objDiv.style.height = document.body.scrollHeight + 'px';
			objDiv.style.visibility = 'visible';
			//alert(document.body.scrollLeft+"," +document.body.scrollWidth);
		}
	} else {
		if(objDiv != null) {
			//document.body.style.overflowX = 'visible';
			//document.body.style.overflowY = 'visible';
			objDiv.style.visibility = 'hidden';
		}
	}
}


function reAndModal(divid, divWidth, divHeight, flag) {
	resizeDiv (divid, divWidth, divHeight);
	modalScreen (flag);
}


window.onresize = function() {
	var objDiv = document.getElementById("divAll");
	if(objDiv != null) {
		objDiv.style.width = (document.body.scrollWidth - 60) + 'px';
		objDiv.style.height = document.body.scrollHeight + 'px';
	}

	try { updateQuickBar(); } catch(e) { ; }
}

