

function project_getNews(newsID) {

	showElem('loader');
	hideElem('view');

	// Obtain an XMLHttpRequest instance
	var req = newXMLHttpRequest("AjaxHTML.ashx");
	
	// Set the handler function to receive callback notifications
	// from the request object
	var project_printInformation = function(content) {
		document.getElementById('view').innerHTML=content
		
		hideElem('loader');
		showElem('view');
		enablePopupHeaders();
		resizeFog();		
	}
	
	var handlerFunction = getReadyStateHandler(req, project_printInformation);
	req.onreadystatechange = handlerFunction;
	
	//Set parameters for control and ajaxhandler
	req.setRequestHeader("usercontrol", "news_item.ascx");
	
	addHeader(req,"NewsID",newsID);
		
	// Send 
	req.send(null);

}

function project_getPressRelease(pressReleaseID) {

	showElem('loader');
	hideElem('view');

	// Obtain an XMLHttpRequest instance
	var req = newXMLHttpRequest("AjaxHTML.ashx");
	
	// Set the handler function to receive callback notifications
	// from the request object
	var project_printInformation = function(content) {
		document.getElementById('view').innerHTML=content
		
		hideElem('loader');
		showElem('view');
		enablePopupHeaders();
		resizeFog();
	}
	
	var handlerFunction = getReadyStateHandler(req, project_printInformation);
	req.onreadystatechange = handlerFunction;
	
	//Set parameters for control and ajaxhandler
	req.setRequestHeader("usercontrol", "press_release.ascx");
	
	addHeader(req,"PressReleaseID",pressReleaseID);
		
	// Send 
	req.send(null);

}

function project_getLinks(projectID) {

	showElem('loader');
	hideElem('view');

	// Obtain an XMLHttpRequest instance
	var req = newXMLHttpRequest("AjaxHTML.ashx");
	
	// Set the handler function to receive callback notifications
	// from the request object
	var project_printInformation = function(content) {
		document.getElementById('view').innerHTML=content
		
		hideElem('loader');
		showElem('view');
		enablePopupHeaders();
		resizeFog();
	}
	
	var handlerFunction = getReadyStateHandler(req, project_printInformation);
	req.onreadystatechange = handlerFunction;
	
	//Set parameters for control and ajaxhandler
	req.setRequestHeader("usercontrol", "links.ascx");
	
	addHeader(req,"ProjectID",projectID);
		
	// Send 
	req.send(null);
}

function project_getPhotos(projectID) {

	showElem('loader');
	hideElem('view');

	// Obtain an XMLHttpRequest instance
	var req = newXMLHttpRequest("AjaxHTML.ashx");
	
	// Set the handler function to receive callback notifications
	// from the request object
	var project_printInformation = function(content) {
		document.getElementById('view').innerHTML=content
		
		hideElem('loader');
		showElem('view');
		enablePopupHeaders();
		resizeFog();
	}
	
	var handlerFunction = getReadyStateHandler(req, project_printInformation);
	req.onreadystatechange = handlerFunction;
	
	//Set parameters for control and ajaxhandler
	req.setRequestHeader("usercontrol", "project_photos.ascx");
	
	addHeader(req,"ProjectID",projectID);
		
	// Send 
	req.send(null);
}

function project_getPhoto(projectID,pictureID) {

	// Obtain an XMLHttpRequest instance
	var req = newXMLHttpRequest("AjaxHTML.ashx");
	
	// Set the handler function to receive callback notifications
	// from the request object
	var project_printInformation = function(content) {
		document.getElementById('imageview').innerHTML=content
	}
	
	var handlerFunction = getReadyStateHandler(req, project_printInformation);
	req.onreadystatechange = handlerFunction;
	
	//Set parameters for control and ajaxhandler
	req.setRequestHeader("usercontrol", "photo_item.ascx");
	
	addHeader(req,"ProjectID",projectID);
	addHeader(req,"PictureID",pictureID);
		
	// Send 
	req.send(null);

}

function project_getInformation(projectID) {

	showElem('loader');
	hideElem('view');

	// Obtain an XMLHttpRequest instance
	var req = newXMLHttpRequest("AjaxHTML.ashx");
	
	// Set the handler function to receive callback notifications
	// from the request object
	var project_printInformation = function(content) {
		document.getElementById('view').innerHTML=content
		
		hideElem('loader');
		showElem('view');
		enablePopupHeaders();
		resizeFog();
	}
	
	var handlerFunction = getReadyStateHandler(req, project_printInformation);
	req.onreadystatechange = handlerFunction;
	
	//Set parameters for control and ajaxhandler
	req.setRequestHeader("usercontrol", "project_information.ascx");
	
	addHeader(req,"ProjectID",projectID);
		
	// Send 
	req.send(null);

}


function project_getSubItems(projectID) {

	//showProgressbar('Loading...');

	// Obtain an XMLHttpRequest instance
	var req = newXMLHttpRequest("AjaxHTML.ashx");
	
	// Set the handler function to receive callback notifications
	// from the request object
	var project_printSubItems = function(content) {
		document.getElementById(projectID +'.items').innerHTML=content
	}
	
	var handlerFunction = getReadyStateHandler(req, project_printSubItems);
	req.onreadystatechange = handlerFunction;
	
	//Set parameters for control and ajaxhandler
	req.setRequestHeader("usercontrol", "project_subitems.ascx");
	
	addHeader(req,"ProjectID",projectID);
	
	// Send 
	req.send(null);

}
