var Bcdw = {
	Framework: {
	},
	
	Window: {
		chrome: {
			dWidth: 0,
			dHeight: 0,
			dLeft: 0,
			dTop: 0
		},
		
		width: function() {
			return $(window).width();
		},

		height: function() {
			return $(window).height();
		},
		
		left: function() {
			var winX = document.all ? window.screenLeft : window.screenX;

			return parseInt(winX);
		},
		
		top: function() {
			var winY = document.all ? window.screenTop : window.screenY;

			return parseInt(winY);
		},
		
		init: function(l, t, w, h) {
			this.initExpectedSize(w, h);
			this.initExpectedPosition(l, t);
			
			this.moveTo(l, t);
			this.resizeTo(w, h);
		},
		
		initExpectedSize: function(w, h) {
			this.resizeToSystem(w, h);

			this.chrome.dWidth = w - this.width();
			this.chrome.dHeight = h - this.height();
		},

		initExpectedPosition: function(l, t) {
			this.moveToSystem(l, t);

			this.chrome.dLeft = l - this.left();
			this.chrome.dTop = t - this.top();
		},
		
		resizeToSystem: function(w, h) {
			window.resizeTo(w, h);
		},
		
		resizeTo: function(w, h) {
			window.resizeTo(w + this.chrome.dWidth, h + this.chrome.dHeight);
		},
		
		moveToSystem: function(l, t) {
			window.moveTo(l, t);
		},
		
		moveTo: function(l, t) {
			window.moveTo(l + this.chrome.dLeft, t + this.chrome.dTop);
		}
	}
};
