// script.js
// Christian Losari
// 6/14/2007
// v 1.0. Initial Creation

// dynamic select: http://www.quirksmode.org/js/options.html

// maximize windows
try
{
	top.window.moveTo(0,0); 
	top.window.resizeTo(screen.availWidth,screen.availHeight); 
}
catch (err)
{
}



function CreateRequest()
{
	if(window.ActiveXObject)
	{
 		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
 	}
	else if(window.XMLHttpRequest)
 	{
		xmlHttp = new XMLHttpRequest();
 
	}
}

function TampilkanFlash()
{
	var iBrowserWidth;
	var iBrowserHeight
	if(window.ActiveXObject)
	{
		iBrowserWidth =  document.body.clientWidth;
		iBrowserHeight =  document.body.clientHeight;
	}
	else
	{
		iBrowserWidth = window.innerWidth;
		iBrowserHeight = window.innerHeight;
	}

	if(iBrowserWidth < 1100 || iBrowserHeight < 750)
	{

	}
	else
	{
		var iFlashWidth = 1050 - 73;
		var iFlashHeight = 650 + 63;

		var iLeft = (iBrowserWidth - iFlashWidth) / 2;
		var iTop = (iBrowserHeight - iFlashHeight) / 2;
		
		var oPreloader = document.getElementById('preloader');
		oPreloader.style.top = iTop;
		oPreloader.style.left = iLeft;
	}
}

function  StateChange()
{
	if(xmlHttp.readyState == 4)
	{
		//alert(xmlHttp.responseText);
		document.getElementById('ObjectContainer').innerHTML = xmlHttp.responseText;
 	}
}


 

