function shop_categoryCore() {
	this.ident='';
	this.itemtypeid='';
	this.categoryident='';
	this.clear = function(ident) {	
		var data = new Object();	
		data['widget']='shop_category';
		data['ident'] = ident;
		data['action'] = 'clear';

		this.InitializeRequest('POST', '/ajax.php');
        this.Commit(postquery(data));
	}
	
	this.getValues = function() {
		
		
	}
	
	this.switchFilter = function(ident) {
		var data = new Object();	
		data['widget']='shop_category';
		data['action'] = 'switchfilter';
		data['ident'] = ident;
		if(ge("filtercontainer").style.display=='none') {
			ge("filtercontainer").style.display='block';
			data['filter']='1';
		} else {
			ge("filtercontainer").style.display='none';
			data['filter']='0';
		}
		
		this.InitializeRequest('POST', '/ajax.php');		
        this.Commit(postquery(data));		
		
		
	}
	
	this.filtercount = function(ident) {
		var data = new Object();	
		data['widget']='shop_category';
		data['action'] = 'filtercount';
		data['ident'] = ident;
		data['itemtypeid'] = this.itemtypeid;
		data['categoryident'] = this.categoryident;
		data['values'] = this.getValues();
		
		this.InitializeRequest('POST', '/ajax.php');
		
        this.Commit(postquery(data));		
		
	}
	
	this.refresh = function(ident) {
		var data = new Object();	
		data['widget']='shop_category';
		data['action'] = 'refresh';
		data['ident'] = ident;
		
		this.InitializeRequest('POST', '/ajax.php');
        this.Commit(postquery(data));		
	}
	
	
	this.OnSuccess = function() {
		//alert(this.GetResponseText());
      	eval(this.GetResponseText());
    }
	
}
shop_categoryCore.prototype = new ajax();
shop_category= new shop_categoryCore();

