function winSize(){
	/*
	isIE = (document.all); // Internet Explorer?
	isNC = (document.layers); // Netscape?
	isOpera = (document.getElementById);
	*/
}

winSize.prototype = {
	
	getWidth: function(){
		return window.innerWidth ? window.innerWidth:document.body.clientWidth;
	},
	
	getHeight: function(){
		return window.innerHeight ? window.innerHeight:document.body.clientHeight;
	},
	
	topOffset: function(){
		return document.body.scrollTop;
	},
	
	leftOffset: function(){
		return document.body.scrollLeft;
	},
	
	getFullWidth: function(){
		if(document.body.scrollWidth) // IE
			return document.body.scrollWidth;
		else
		return document.width;
	},
	
	getFullHeight: function(){
		if(document.body.scrollHeight) // IE
			return document.body.scrollHeight;
		else{
			return document.height;
		}
	},
	
	getObjectX: function(ob){
		
		var v = parseInt(ob.offsetLeft);
		if(isNaN(v))
			v = 0;
		if(ob.parentNode){
			v += winsize_o.getObjectX(ob.parentNode);
		}
		return v;	
		
	},
	
	getObjectY: function(ob){
		
		var v = parseInt(ob.offsetTop);
		if(isNaN(v))
			v = 0;
		if(ob.parentNode){
			v += winsize_o.getObjectX(ob.parentNode);
		}
		return v;	
		
	}
	
}

var winsize_o = new winSize();