


var xmlHttp;
var tout;

function getXmlHttpObject()
{
	var objxmlHttp=null;
	if (window.XMLHttpRequest)     // Object of the current windows
	{
		objxmlHttp = new XMLHttpRequest();     // Firefox, Safari, ...
	}
	else if (window.ActiveXObject)   // ActiveX version
	{
		objxmlHttp = new ActiveXObject('Microsoft.XMLHTTP');  // Internet Explorer
	}
	return objxmlHttp;
}

function refreshFlashInterval(){
	if(xmlHttp.readyState == 4 || xmlHttp.readyState == 'complete'){
		var xmlFileName = "/slide.xml";
		if(window.ActiveXObject){
			var xml = new ActiveXObject("Microsoft.XMLDOM");
			xml.async = false;
			xml.validateOnParse=true;
			xml.load(xmlFileName);

		}else{
			//var xml = document.implementation.createDocument("","",null);
			//xml.async = false;
			//xml.load(xmlFileName);		
			var xml = new XMLHttpRequest();
			xml.open("GET", xmlFileName, false);
			xml.send(null);
			
		}
		document.getElementById('gallery').innerHTML = document.getElementById('gallery').innerHTML;
        
        console.log( document.getElementById('gallery') );
	}
}
	
//Accordian Initializer
function Accordian(xmlFileName){

	
	xmlHttp = getXmlHttpObject();
	var url= "/xmlCopier.php?index=" + xmlFileName;
	//alert(url);
	xmlHttp.onreadystatechange=refreshFlashInterval;
	xmlHttp.open('GET', url, true);
	xmlHttp.send(null);

}

function playVid(){
	var wind = window.open ("video.php?id=1", "VideoPlayer","location=0,toolbar=0,directories=0,status=0,menubar=0,scrollbars=0,width=420,height=350");
}

function playMedicalVid(){
	var wind = window.open ("video.php?id=2", "VideoPlayer","location=0,toolbar=0,directories=0,status=0,menubar=0,scrollbars=0,width=420,height=350");
}

function playCampDream(){
	var wind = window.open ("video.php?id=3", "VideoPlayer","location=0,toolbar=0,directories=0,status=0,menubar=0,scrollbars=0,width=420,height=350");
}

function listJob(){
	var wind = window.open ("jobs.php", "VideoPlayer","location=0,toolbar=0,directories=0,status=0,menubar=0,scrollbars=1,width=845,height=450");
}

