	
	function createRequestObject() {
    
		var tmpXmlHttpObject;
    
		//depending on what the browser supports, use the right way to create the XMLHttpRequest object
		if (window.XMLHttpRequest) { 
			// Mozilla, Safari would use this method ...
			tmpXmlHttpObject = new XMLHttpRequest();
		
		} else if (window.ActiveXObject) { 
			// IE would use this method ...
			tmpXmlHttpObject = new ActiveXObject("Microsoft.XMLHTTP");
		}
		
		return tmpXmlHttpObject;
	}

	//call the above function to create the XMLHttpRequest object
	var http = createRequestObject();
	
	function makeClientRequest(ID)
	{
				switch (ID) {
            	
				case 1:
				http.open('get', 'templates/clients.html');		
				//assign a handler for the response
				http.onreadystatechange = clientResponse;
				//actually send the request to the server
				http.send(null);
				break;
				case 2:
				http.open('get', 'templates/clients2.html');		
				//assign a handler for the response
				http.onreadystatechange = clientResponse;
				//actually send the request to the server
				http.send(null);
				break;
				
				}
				
	}
	
	function clientResponse() {
		//check if the response has been received from the server

		if(http.readyState != 4)
		{
			var req = '<img src="images/ajax-loader.gif" alt="Requesting Content.." />&nbsp;&nbsp;Processing Request..';
			document.getElementById('clientdetails').innerHTML = req;
		}

		if(http.readyState == 4){
		
			//read and assign the response from the server
			var response = http.responseText;
			
			//do additional parsing of the response, if needed
			
			//in this case simply assign the response to the contents of the <div> on the page. 
			document.getElementById('clientdetails').innerHTML = response;
			
			//If the server returned an error message like a 404 error, that message would be shown within the div tag!!. 
			//So it may be worth doing some basic error before setting the contents of the <div>
		}
		
		
	}
	
	
	function makePracticeRequest(ID)
	{
		switch (ID) {
            	
				case 1:
                http.open('get', 'templates/ecm.html');		
				//assign a handler for the response
				http.onreadystatechange = practiceResponse;
				//actually send the request to the server
				http.send(null);
                break;
                case 2:
                http.open('get', 'templates/bpm.html');		
				//assign a handler for the response
				http.onreadystatechange = practiceResponse;
				//actually send the request to the server
				http.send(null);
                break;
                case 3:
                http.open('get', 'templates/eai.html');		
				//assign a handler for the response
				http.onreadystatechange = practiceResponse;
				//actually send the request to the server
				http.send(null);
                break;
				
			}
	}
	
	function makeGetRequest(ID) {
		//make a connection to the server ... specifying that you intend to make a GET request 
		//to the server. Specifiy the page name and the URL parameters to send
		
		switch (ID) {
            	
				case 0:
                http.open('get', 'indexcontent.html');		
				//assign a handler for the response
				http.onreadystatechange = processResponse;
				//actually send the request to the server
				http.send(null);
                break;
                case 1:
                http.open('get', 'about.html');		
				//assign a handler for the response
				http.onreadystatechange = processResponse;
				//actually send the request to the server
				http.send(null);
                break;
                case 2:
                http.open('get', 'services.html');		
				//assign a handler for the response
				http.onreadystatechange = processResponse;
				//actually send the request to the server
				http.send(null);
                break;
                case 3:
                http.open('get', 'practice.html');		
				//assign a handler for the response
				http.onreadystatechange = processResponse;
				//actually send the request to the server
				http.send(null);
                break;
                case 4:
                http.open('get', 'alliances.html');		
				//assign a handler for the response
				http.onreadystatechange = processResponse;
				//actually send the request to the server
				http.send(null);
                break;
                case 5:
                http.open('get', 'clients.html');		
				//assign a handler for the response
				http.onreadystatechange = processResponse;
				//actually send the request to the server
				http.send(null);
                break;
				case 6:
                http.open('get', 'careers.html');		
				//assign a handler for the response
				http.onreadystatechange = processResponse;
				//actually send the request to the server
				http.send(null);
                break;
				case 7:
                http.open('get', 'contact.html');		
				//assign a handler for the response
				http.onreadystatechange = processResponse;
				//actually send the request to the server
				http.send(null);
                break;
            
			}
	}
	
	function processResponse() {
		//check if the response has been received from the server
		
		if(http.readyState != 4)
		{
			var req = '<img src="images/ajax-loader.gif" alt="Requesting Content.." />&nbsp;&nbsp;Processing Request..';
			document.getElementById('newscontent').innerHTML = req;
		}		

		
		if(http.readyState == 4){
		
			//read and assign the response from the server
			var response = http.responseText;
			
			//do additional parsing of the response, if needed
			
			//in this case simply assign the response to the contents of the <div> on the page. 
			document.getElementById('newscontent').innerHTML = response;
			
			//If the server returned an error message like a 404 error, that message would be shown within the div tag!!. 
			//So it may be worth doing some basic error before setting the contents of the <div>
		}
		
	}
	
	function practiceResponse() {
		//check if the response has been received from the server
		
		
		if(http.readyState != 4)
		{
			var req = '<img src="images/ajax-loader.gif" alt="Requesting Content.." />&nbsp;&nbsp;Processing Request..';
			document.getElementById('practiceContent').innerHTML = req;
		}		

		if(http.readyState == 4){
		
			//read and assign the response from the server
			var response = http.responseText;
			
			//do additional parsing of the response, if needed
			
			//in this case simply assign the response to the contents of the <div> on the page. 
			document.getElementById('practiceContent').innerHTML = response;
			
			//If the server returned an error message like a 404 error, that message would be shown within the div tag!!. 
			//So it may be worth doing some basic error before setting the contents of the <div>
		}
	
	}
	
	
	function makePartnersRequest(ID) {
		//make a connection to the server ... specifying that you intend to make a GET request 
		//to the server. Specifiy the page name and the URL parameters to send
		
		switch (ID) {
            	
				case 0:
                http.open('get', 'templates/p0.html');		
				//assign a handler for the response
				http.onreadystatechange = partnerResponse;
				//actually send the request to the server
				http.send(null);
                break;
				case 1:
                http.open('get', 'templates/p1.html');		
				//assign a handler for the response
				http.onreadystatechange = partnerResponse;
				//actually send the request to the server
				http.send(null);
                break;
                case 2:
                http.open('get', 'templates/p2.html');		
				//assign a handler for the response
				http.onreadystatechange = partnerResponse;
				//actually send the request to the server
				http.send(null);
                break;
                case 3:
                http.open('get', 'templates/p3.html');		
				//assign a handler for the response
				http.onreadystatechange = partnerResponse;
				//actually send the request to the server
				http.send(null);
                break;
                case 4:
                http.open('get', 'templates/p4.html');		
				//assign a handler for the response
				http.onreadystatechange = partnerResponse;
				//actually send the request to the server
				http.send(null);
                break;
                case 5:
                http.open('get', 'templates/p5.html');		
				//assign a handler for the response
				http.onreadystatechange = partnerResponse;
				//actually send the request to the server
				http.send(null);
                break;
				case 6:
                http.open('get', 'templates/p6.html');		
				//assign a handler for the response
				http.onreadystatechange = partnerResponse;
				//actually send the request to the server
				http.send(null);
                break;
				case 7:
                http.open('get', 'templates/p7.html');		
				//assign a handler for the response
				http.onreadystatechange = partnerResponse;
				//actually send the request to the server
				http.send(null);
                break;
            
			}
	}
	
	function partnerResponse() {
		//check if the response has been received from the server


		
		if(http.readyState != 4)
		{
			var req = '<img src="images/ajax-loader.gif" alt="Requesting Content.." />&nbsp;&nbsp;Processing Request..';
			document.getElementById('navcontentright').innerHTML = req;
		}		

		if(http.readyState == 4){
		
			//read and assign the response from the server
			var response = http.responseText;
			
			//do additional parsing of the response, if needed
			
			//in this case simply assign the response to the contents of the <div> on the page. 
			document.getElementById('navcontentright').innerHTML = response;
			
			//If the server returned an error message like a 404 error, that message would be shown within the div tag!!. 
			//So it may be worth doing some basic error before setting the contents of the <div>
		}
		
	}

function getparams() {
	
	 var url = window.location.toString(); //get the parameters 
	 url.match(/\?(.+)$/); var params = RegExp.$1; // split up the query string and store in an // associative array 
	 var params = params.split("&"); 
	 var queryStringList = {};  
	 	for(var i=0;i<params.length;i++) 
	 	{     
			var tmp = params[i].split("=");     
			queryStringList[tmp[0]] = unescape(tmp[1]); 
			if(queryStringList[tmp[0]]== 0) makeGetRequest(0);
			if(queryStringList[tmp[0]]== 1) makeGetRequest(1);
			if(queryStringList[tmp[0]]== 2) makeGetRequest(2);
			if(queryStringList[tmp[0]]== 3) makeGetRequest(3);
			if(queryStringList[tmp[0]]== 4) makeGetRequest(4);
			if(queryStringList[tmp[0]]== 5) makeGetRequest(5);
			if(queryStringList[tmp[0]]== 6) makeGetRequest(6);
			if(queryStringList[tmp[0]]== 7) makeGetRequest(7);
		}  
	 
	}