	function jsonFile()
	{
		xmlHttp=null;
		this.jsonData=null;
		this.fileName=null;
		this.returnFunction=null;
		intreturnFunction=null;
		this.loadFile=function()
		{
			try
			{
				xmlHttp=new XMLHttpRequest();
			}
			catch (e)
			{
				try
				{
					xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
				} 
				catch (e)
				{
					try
					{
						xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
					} 
					catch (failed)
					{
						xmlHttp=null;
					}
				}  
			}	
			if (xmlHttp!=null) 
			{
				intreturnFunction=this.returnFunction;
				xmlHttp.open("GET",this.fileName,true);
				xmlHttp.onreadystatechange=fetchJsonData;
				xmlHttp.send(null);
			}
		}
		function fetchJsonData()
		{
			if (xmlHttp.readyState==4) 
			{
				this.jsonData=xmlHttp.responseText;
				this.jsonData=eval("("+this.jsonData+")");
				window[intreturnFunction](this.jsonData);
			}
		}
	}