var cndCatalog_WebSettings = null;
function CndCatalog_WebSettings() {

	this.ajax = new CndCatalog_AjaxWebSettings();
	
	this.onProductOrderChange = function(evt) {
		var src = (evt.target) ? evt.target : evt.srcElement;
		var srcValue = src.options[src.selectedIndex].value;
		
		this.startProcessing();
		this.ajax.setProductOrder(srcValue, 'async');
		this.stopProcessing();
	}
}

	

CndCatalog_WebSettings.getInstance = function () {
	if (!cndCatalog_WebSettings) {
		cndCatalog_WebSettings = new CndCatalog_WebSettings();
	}
	return cndCatalog_WebSettings;
}

CndCatalog_WebSettings.registerProductOrderListener = function(elem) {
	elem.onchange=function(event){var evt = (event) ? event : window.event;CndCatalog_WebSettings.getInstance().onProductOrderChange(evt);}
}

CndCatalog_WebSettings.prototype.startProcessing = function(){};
CndCatalog_WebSettings.prototype.stopProcessing = function(){};


