function oBrowser()
{

	this.createXMLObject = createXMLObject;

	this.gotoURL = gotoURL;

	this.getPos = getPos;
	this.getWidth = getWidth;
	this.getHeight = getHeight;


	/**
		Maak een nieuw XMLHttpRequest-object

		Mogelijke states:
			0 – uninitialized (before the XMLHttpRequest begins)
			1 – loading (once the XMLHttpRequest has been initialized)
			2 – loaded (once the XMLHttpRequest has gotten a response from the server)
			3 – interactive (while the XMLHttpRequest object is connected to the server)
			4 – complete (after the XMLHttpRequest has done everything it was told to and is finished working)
	**/
	function createXMLObject()
	{
		if(window.XMLHttpRequest)
			return new XMLHttpRequest();
		else if(window.ActiveXObject)
			return new ActiveXObject("Microsoft.XMLHTTP");
		else
		  return;
	}

	/**
		Ga naar de opgegeven URL
	**/
	function gotoURL(url)
	{
		document.location.href = url;
	}


	/**
		Geef de x- en y-coordinaten van een object terug
	**/
	function getPos(object)
	{
		x=0; 
		y=0; 
		var el, temp;
		el = object;
		if(el.offsetParent)
		{
			temp = el;
			while(temp.offsetParent)
			{ //Looping parent elements to get the offset of them as well
				temp=temp.offsetParent; 
				x += temp.offsetLeft;
				y += temp.offsetTop;
			}
			x += el.offsetLeft;
			y += el.offsetTop;
		}
		
		//Returning the x and y as an array
		return [x,y];
	}

	/**
		Geef de breedte van een object terug
	**/
	function getWidth(object)
	{
		return object.offsetWidth;
	}

	/**
		Geef de hoogte van een object terug
	**/
	function getHeight(object)
	{
		return object.offsetHeight;
	}




}