//Begin URL Browser
function Browser()
{
	//Browser Functions;
	this.GetScreen = bGetScreen;
	this.getType = browserType;


	//Browser Type Constants
	this.N4 = 1;
	this.N5 = 2;
	this.IE = 4;
	this.type = this.getType();
}
//------------------------------------
function browserType()
/*
Out: the browser type, as specified above
*/
{
	if(document.all){
		return this.IE;
	}else if(document.layers){
		return this.N4;
	}else{
		return this.N5;
	}
	return 0;
}
//------------------------------------

function bGetScreen()
{
	var ret = new XY();

	switch(this.type){
		case this.N4:
			ret.x = window.innerWidth;
			ret.y = window.innerHeight;
			break;
		case this.N5: case this.IE:
			ret.x = document.body.clientWidth;
			ret.y = document.body.clientHeight;
			break;
		default:
			ret.x=0;
			ret.y=0;
	}

	return ret;
}
function XY(x, y)
{
	this.x = x;
	this.y = y;
}
