function writeConfigFlash()
{
/*
	// var disabledContainer = document.getElementById("disabledContainer");
	var mainFlashContainer = document.getElementById("mainFlashContainer");
	var linkclose = document.getElementById("linkclose");
	var objectHTML = "";
	
	// disabledContainer.style.display = "";
	
	objectHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="865" height="419" id="NV_OPC_Web" align="middle" VIEWASTEXT>';
	objectHTML += '<param name="wmode" value="opaque" />';
	objectHTML += '<param name="allowScriptAccess" value="sameDomain" />';
	objectHTML += '<param name="allowFullScreen" value="false" />';
	objectHTML += '<param name="movie" value="/docs/IO/53345/NV_OPC_Web_kr.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" />	<embed src="/docs/IO/53345/NV_OPC_Web_kr.swf" quality="high" bgcolor="#000000" width="865" height="419" name="NV_OPC_Web" align="middle" wmode="opaque" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	objectHTML += '</object>';
	
	mainFlashContainer.innerHTML = objectHTML;
	
	linkclose.style.display = "";
*/
	openPopup("/content/opc/v3/OPC/configurator.asp?lang=kr", 834, 645, "BalancedPCConfigurator");

}

function closeConfigFlash()
{

/*	var disabledContainer = document.getElementById("disabledContainer");
	var flashContainer = document.getElementById("flashContainer");
	var flashMovie = document.getElementById("flashMovie");
	
	flashMovie.innerHTML = "";

*/

	// var disabledContainer = document.getElementById("disabledContainer");
	
	// disabledContainer.style.display = "none";

	var linkclose = document.getElementById("linkclose");

	writeMainFlash();

	linkclose.style.display = "none";
}


function writeMainFlash()
{

	var mainFlashContainer = document.getElementById("mainFlashContainer");
	var objectHTML = "";
	

	objectHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="865" height="419" id="OPC_Header2" align="middle" VIEWASTEXT>';
	objectHTML += '<param name="wmode" value="opaque" />';
	objectHTML += '<param name="allowScriptAccess" value="sameDomain" />';
	objectHTML += '<param name="allowFullScreen" value="false" />';
	objectHTML += '<param name="movie" value="/docs/IO/53345/OPC_Header_kr.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" />	<embed src="/docs/IO/53345/OPC_Header_kr.swf" quality="high" bgcolor="#000000" width="865" height="419" name="OPC_Header2" align="middle" wmode="opaque" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	objectHTML += '</object>';
	
	mainFlashContainer.innerHTML = objectHTML;
	
}

function openPopup(url, width, height, name)
{
	var x = (document.body.clientWidth/2) - (width/2);
  	var y = (document.body.clientHeight/2) - (height/2);
	if (screen) {
        	y = (screen.availHeight - height)/2;
        	x = (screen.availWidth - width)/2;
	}


	window.open(url,name,"width=" + width + ",height=" + height + ",resizable=no,toolbar=no,location=no,scrollbars=no,top=" + y + ",left="+ x +",screenX=" + x + ",screenY="+ y);
}