var xmlhttp;
var opt;
function loadIntro(val)
{
	opt=val;
	xmlhttp=GetXmlHttpObject();
	if (xmlhttp==null)
	{
		alert ("Your browser does not support AJAX!");
		return;
	}
	var url="public/ajax/loadIntro.php";
	url=url+"?val="+val;
	url=url+"&sid="+Math.random();
	xmlhttp.onreadystatechange=showIntro;
	xmlhttp.open("GET",url,true);
	xmlhttp.send(null);
}

function showIntro()
{	
	if (xmlhttp.readyState==4)
	{
		document.getElementById("intro_text").innerHTML=xmlhttp.responseText;
		
		if(opt=='one')
		{
			document.getElementById("intro_text").className="product_development_text";
		}
		if(opt=='two')
		{
			document.getElementById("intro_text").className="publishing_text";
		}
		if(opt=='three')
		{
			document.getElementById("intro_text").className="enterprise_solution_text";
		}
		if(opt=='four')
		{
			document.getElementById("intro_text").className="customer_portal_text";
		}
	}
}

function GetXmlHttpObject()
{
	if (window.XMLHttpRequest)
	{
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject)
	{
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}
