	/* 2010 - Julien Teisseire */
	// Global Ajax XHR Page Cache feature
	
	// Time to prepare global Ajax PAge Memory Buffer
	var gSncGlobalAjaxCacheArray = new Array();
	var gSncObooloVersion = "<span style=\"font-family: arial;font-size: 10px;color: #535353; font-weight:bold;\">&nbsp;v2.4.7</span>";
	
	function SncPageBuffer()
	{
		this.querystring = "";
		this.ajaxkey = "";
		this.pagebuffer = Object("");
	}
	
	// We loop every gCacheGetTimeOut ms after sending the request
	// If we reach the gMaxCheckBeforeRetry in term of loop number, we redo the full job (sending/waiting)
	// We do that max gMaxRetry times

	var gXhr_object_pool 		= new Array();
	var gXhr_object_number		= 10;
	var gXhr_object_index 		= 0;
	var gXhr_object_accessor 	= 0;
	for(gXhr_object_index=0; gXhr_object_index<gXhr_object_number;gXhr_object_index++)
	{
		if(window.XMLHttpRequest) // FIREFOX
		{
			gXhr_object_pool[gXhr_object_index] = new XMLHttpRequest();
		}else if(window.ActiveXObject) // IE
		{
			gXhr_object_pool[gXhr_object_index] = new ActiveXObject("Microsoft.XMLHTTP");
		}else
		{
			alert("Browser not supported");
		}
	}
	// Simple loop function in order to distribute usage of XHR object successively and allow multiple ajax call in the same time
	function sncGetNextXHRObject()
	{
		gXhr_object_accessor++;
		if(gXhr_object_accessor == gXhr_object_number)
		{
			gXhr_object_accessor = 0; // Re init access to object
		}
		
		return gXhr_object_pool[gXhr_object_accessor];
	}


