/*
 * AJAX functions for PaulWurth Website
 *  
*/

var language;

// Get the right page for the entities (companies) selected in the flash
function getOperationalEntities( nodeID )
{
	$("#content-response").html('Loading ...');	
	$.ajax({
		type: 'POST',  
		dataType: 'json',
		url: '/' + language + '/layout/set/ajax/paulwurth/getOperationalEntities/' + nodeID,
		success: function( data )
		{
			if( data.success)
			{
				$("#breadcrum").html( data.breadcrumb );
				$("#content-response").html( data.content );
				$("#colRight").html( data.right );

			} else {
				$("#content-response").html( data.error_msg );
			}
		}
	});
}

//Get the right page for the company history selected in the flash
function getCompanyHistory( nodeID )
{
	
	$("#content-response").html('Loading ...');	
	$.ajax({
		type: 'POST',  
		url: '/' + language + '/layout/set/ajax/paulwurth/getCompanyHistory/' + nodeID,
		success: function( data )
		{
			$("#content-response").html( data );
		}
	});
}
