function getCompanies(element, category_id) {
	$('#category li.selected').each( function() {
		$(this).removeClass();
		$(this).children("img").attr("src", "/site_media/images/arrow_off.gif")
	})
	$(element).parent().addClass("selected");
	$(element).parent().children("img").attr("src", "/site_media/images/menu_arrow.gif")
	$("#product").html("<li class='categoryheader'>Product</li>")
	$("#productdetail").html("")
	$.get("/gearguide/companies/" + category_id + "/", function(data){
		$("#company").html(data);
		$('#onecolumncontent').append("<img id='onecolumnbackgroundbottom' src='/site_media/images/onecolumn_background_bottom.jpg' />")
		$('#contentbackground img:last').replaceWith("<img id='contentbackgroundbottom' src='/site_media/images/container_background.jpg' />")
	});
}

function getProducts(element, category_id, company_id) {
	$('#company li.selected').each( function() {
		$(this).removeClass();
		$(this).children("img").attr("src", "/site_media/images/arrow_off.gif")
	})
	$(element).parent().addClass("selected");
	$(element).parent().children("img").attr("src", "/site_media/images/menu_arrow.gif")
	$("#productdetail").html("")
	$.get("/gearguide/products/" + category_id + "/" + company_id + "/", function(data){
		$("#product").html(data);
	});
}

function getProduct(element, product_id) {
	$('#product li.selected').each( function() {
		$(this).removeClass();
		$(this).children("img").attr("src", "/site_media/images/arrow_off.gif")
	})
	$(element).parent().addClass("selected");
	$(element).parent().children("img").attr("src", "/site_media/images/menu_arrow.gif")
	$.get("/gearguide/product/" + product_id + "/", function(data){
		$("#productdetail").html(data);
	});
}