
/*var ispane  	= '{$data.form.pane}';
var ispaneidx 	= {$data.form.paneidx};*/
var iscatid 	= -1;
$(function() {

	// this initializes scollpanes on the page.
	$('#scroller').jScrollPane({showArrows:true, scrollbarWidth:23, dragMaxHeight:65});
	//$('#scrollea').jScrollPane({showArrows:true, scrollbarWidth:23, dragMaxHeight:65});
	//$('#scrolleb').jScrollPane({showArrows:true, scrollbarWidth:23, dragMaxHeight:65});

	reInitScroller = function () { $('#scroller').jScrollPane({showArrows:true, scrollbarWidth:23, dragMaxHeight:65}); }
	reInitScrollea = function () { $('#scrollea').jScrollPane({showArrows:true, scrollbarWidth:23, dragMaxHeight:65}); }
	reInitScrolleb = function () { $('#scrolleb').jScrollPane({showArrows:true, scrollbarWidth:23, dragMaxHeight:65}); }
/*
	// Query Categories and put them into the proper containers
	$.ajax({
		url: cat_jq_url,
		data: "do=build&pane=BRAND&categoryid="+iscatid,
		success: function(html) { $("#scroller").append(html); }
	});
	$.ajax({
		url: cat_jq_url,
		data: "do=build&pane=CATEGORY&categoryid="+iscatid,
		success: function(html) { $("#scrollea").append(html); }
	});
	$.ajax({
		url: cat_jq_url,
		data: "do=build&pane=TREND&categoryid="+iscatid,
		success: function(html) { $("#scrolleb").append(html); }
	});
	$.ajax({
		url: scart_url,
		data: "do=getcount",
		success: function(html) { $("#cart_count").append(html); }
	});*/
});