var pb_design_Rulers = Class.create({
	initialize: function() {
		
	},

	setPosition: function(top,left) {
		
	},
	
	showRules: function() {
		
	},
	
	hideRules: function() {
		
	}
});

var pb_design_DesignWindow = Class.create({
	getWhiteBackground: function() {
		var whiteBackground = $('designerWindow_whiteBackground');
		if (!whiteBackground) {
			this.createWhiteBackground();
			return $('designerWindow_whiteBackground');
		}
		return whiteBackground;
	},

	createWhiteBackground: function() {
		var whiteBackground = document.createElement('div');
		whiteBackground.id = 'designerWindow_whiteBackground';
		whiteBackground.style.backgroundImage = 'url(' + pb.core.system.getLibraryPath() + 'plasticbriqFramework/interfaceFiles/design/white_transparent_bkg.png)';
		whiteBackground.style.position = 'fixed';
		whiteBackground.style.top = '0px';
		whiteBackground.style.left = '0px';
		whiteBackground.style.right = '0px';
		whiteBackground.style.bottom = '0px';
		whiteBackground.style.zIndex = '99';
		document.body.appendChild(whiteBackground);
	},
	
	showWhiteBackground: function() {
		var whiteBackground = $('designerWindow_whiteBackground');
		if (!whiteBackground) {
			this.createWhiteBackground();
		}
		else {
			whiteBackground.show();
		}
	},
	
	hideWhiteBackground: function() {
		var whiteBackground = $('designerWindow_whiteBackground');
		if (whiteBackground) {
			whiteBackground.hide();
		}
	}
});

var pb_design = Class.create({
	rulers: new pb_design_Rulers(),
	designWindow: new pb_design_DesignWindow()
});