// JavaScript Document
function showVideo() {
	makeRequest("videoShow.html"); 
}

function makeRequest(url) { 
var xmlHttp;
xmlHttp=getXMLhttpObject();
xmlHttp.open("GET", url, true);

xmlHttp.onreadystatechange = function() {
	//Here is where we take the result from the ajax call and do something with it...
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{	
		document.getElementById("videoPlace").innerHTML=xmlHttp.responseText;
	}
};
xmlHttp.send(null);
}

function getXMLhttpObject()
{ 
	//creates xml object, based upon browser
	var objXMLHttp=null

	if (window.XMLHttpRequest)
	{
		objXMLHttp=new XMLHttpRequest()
	}
	else if (window.ActiveXObject)
	{
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
	}
	
	return objXMLHttp
}

