function writeConfigFlash()
{
/*
	var flashContainer = document.getElementById("flashContainer");
	var flashMovie = document.getElementById("flashMovie");
	var flexContainer = document.getElementById("flexContainer");
	
	flashContainer.innerHTML = "<img src='/content/opc/images/opc_main.jpg'/>";
	
	swfobject.embedSWF("/content/opc/v2/OptimalPlatform.swf", "flexApp", "834", "645", "9.0.0", "/content/flash/SWFs/flash_resources/expressInstall.swf", {}, {flashvars:"opcLanguage=la",loop:"false",play:"true",align:"middle",quality:"high",bgcolor:"#ffffff",allowScriptAccess:"sameDomain",allowFullScreen:"true",wmode:"opaque"}, {});
	
	flexContainer.style.display = "";
*/


	openPopup("/content/opc/v2/configurator.asp?lang=la", 834, 645, "BalancedPCConfigurator");
}

function closeConfigFlash()
{
	var flexContainer = document.getElementById("flexContainer");
	var flexApp = document.getElementById("flexApp");

	flexContainer.style.display = "none";
	
	writeMainFlash();
}

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_Header_LA" align="middle" VIEWASTEXT>';
	objectHTML += '<param name="allowScriptAccess" value="sameDomain" />';
	objectHTML += '<param name="allowFullScreen" value="false" />';
	objectHTML += '<param name="movie" value="/docs/IO/53265/OPC_Header_LA.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" />	<embed src="/docs/IO/53265/OPC_Header_LA.swf" quality="high" bgcolor="#000000" width="865" height="419" name="OPC_Header_LA" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	objectHTML += '</object>';
	
	mainFlashContainer.innerHTML = objectHTML;
	
}

/*
function writeMainFlash()
{
	var flashContainer = document.getElementById("flashContainer");
	
	flashContainer.innerHTML = "<div id='flashMovie'></div>";
	swfobject.embedSWF("/content/opc/OPC_Header2.swf", "flashMovie", "865", "419", "8.0.0", "/content/flash/SWFs/flash_resources/expressInstall.swf", {}, {loop:"false",play:"true",align:"middle",quality:"high",bgcolor:"#ffffff",allowScriptAccess:"sameDomain",allowFullScreen:"true",wmode:"opaque"}, {});
}
*/
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);
}