new ScrollUtils();   // This is needed to declare the static variables
function ScrollUtils()
{
	//-----------------------------------------------------------------------------------------------------------
	// Static functions
	//-----------------------------------------------------------------------------------------------------------

	ScrollUtils.init = init;
	
	//-----------------------------------------------------------------------------------------------------------
	// Functions
	//-----------------------------------------------------------------------------------------------------------
	
	function init(contentDiv, showArrows)
	{
		if (showArrows == null)
		{
			showArrows = true;
		}
		
		var selector = '.jScroll';
		
		if (contentDiv != null && (typeof contentDiv == "string"))
		{
			selector = '#' + contentDiv + ' ' + selector;
		}
		else if(contentDiv != null && (typeof contentDiv != "string"))
		{
			selector = '#' + contentDiv.attr('id') + ' ' + selector;
		}
		
		if (typeof $(selector).jScrollPane == 'function')
		{
			$(selector).jScrollPane(
			{
				showArrows: showArrows,
				scrollbarWidth: 15
			});
		}
	}
}
