window['WebPageBase'] = function(){
	this['__externalParams'] = {};
	this['__config'] = window['webPageConfig'];
};

window['WebPageBase'].prototype['config'] = function() {
	return this['__config'];
};

window.WebPageBase.prototype.param = function(name, value) {
	if (undefined !== value) {
		this['__externalParams'][name] = value;
	}
	return this['__externalParams'][name];
};

window.WebPageBase.prototype.deleteParam = function(name) {
	delete this['__externalParams'][name];
};

window.WebPageBase.prototype.start = function() {
	if (undefined !== this['init']) {
		this['init']();
	} else {
		alert("`WebPage::init()` method is not defined");
	}
	if (undefined !== this['bindEvents']) {
		this['bindEvents']();
	} else {
		alert("`WebPage::bindEvents()` method is not defined");
	}
	if (undefined !== this['attachPlugins']) {
		this['attachPlugins']();
	} else {
		alert("`WebPage::attachPlugins()` method is not defined");
	}
};

