// JavaScript Document

	Event.observe(window, "load", function() {

		if (getQueryVariable('category') > 0)
        {			   
		    getCategory(getQueryVariable('category'));
        }
        else
        {
            getCategory();
        }
        
    });
    
	function getCategory(id) {
    
		showLoading('categorycontrols');
		
		var url = 'ajax/categorycontrols.php';
		var pars = 'category=' + id; //+ id;
		var target = 'categorycontrols';
		var myAjax = new Ajax.Updater(target, url, {method: 'get',	parameters: pars});
	
	}
	

