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) {
	if(divid == "divAll") {
		divWidth = ""+document.body.scrollWidth + "px";
		divHeight = ""+document.body.scrollHeight + "px";
	} 
	
	var objDiv = document.getElementById(divid);
	if(objDiv != null) {
		objDiv.style.width = divWidth;
		objDiv.style.height = divHeight;
	}
	else if(divid == "apDiv2") {
		var objDiv = document.getElementById(divid+"_6");
		if(objDiv != null) {
			objDiv.style.width = divWidth;
			objDiv.style.height = divHeight;
		}
	}

	//alert(divWidth+", "+divHeight);
}


function modalScreen (flag) {
	var objDiv = document.getElementById("divAll");

	var height = Math.max(document.body.offsetHeight, document.body.scrollHeight);
	if(typeof dhtmlwindow != "undefined") {
		var d=dhtmlwindow;
		d.getviewpoint();
		height = (d.standardbody.offsetHeight>d.standardbody.scrollHeight)? d.standardbody.offsetHeight : d.standardbody.scrollHeight;
	}

	if (flag == 'y') {
		if(objDiv != null) {
			//document.body.style.overflowX = 'hidden';
			//document.body.style.overflowY = 'hidden';
			
			//var width = document.body.scrollWidth;
			//var height = document.body.scrollHeight * 2;
			
			//alert2(width);
			
			objDiv.style.position = "absolute";
			objDiv.style.left = "0px";
			objDiv.style.top = "0px";
			objDiv.style.width = document.body.scrollWidth + 'px';
			objDiv.style.height = height + 'px';
			objDiv.style.visibility = 'visible';
			//alert(document.body.scrollLeft+"," +document.body.scrollWidth);
			//alert2(window.innerHeight);
			//document.body.style.backgroundColor = "#AEAEAE";
		}
	} else {
		if(objDiv != null) {
			//document.body.style.overflowX = 'visible';
			//document.body.style.overflowY = 'visible';
			objDiv.style.visibility = 'hidden';
			//document.body.style.backgroundColor = "white";
		}
	}
}


function reAndModal(divid, divWidth, divHeight, flag) {
	resizeDiv (divid, divWidth, divHeight);
	modalScreen (flag);
}


window.onresize = function() {

	var height = Math.max(document.body.offsetHeight, document.body.scrollHeight);
	if(typeof dhtmlwindow != "undefined") {
		var d=dhtmlwindow;
		d.getviewpoint();
		height = (d.standardbody.offsetHeight>d.standardbody.scrollHeight)? d.standardbody.offsetHeight : d.standardbody.scrollHeight;      
	}

	var objDiv = document.getElementById("divAll");
	if(objDiv != null) {
		objDiv.style.width = document.body.scrollWidth + 'px';
		objDiv.style.height = height + 'px';
	}

	try { updateQuickBar(); } catch(e) { ; }
}
  