/**
 * Setup the syntax highlighter.
 * The following dependancies should be loaded first:
 *
 *	http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js
 *	http://yui.yahooapis.com/3.0.0/build/loader/loader-min.js
 *
 *	shCore.js
 *	brushes/shBrushXml.js
 *	brushes/shBrushBash.js
 *	themes/shCore.css
 *	themes/shThemeDefault.css
 */

YUI().use('event', function(Y)
{
	Y.on("domready", function(e)
	{
		// The SyntaxHighligher.all(...) method binds the SyntaxHighligher.highlight(...) method to window.load event.
		// Here we bind to domready instead.

		SyntaxHighlighter.config['clipboardSwf'] = '/js/sh/themes/clipboard.swf';
		SyntaxHighlighter.defaults['wrap-lines'] = false;
		SyntaxHighlighter.defaults['collapse'] = true;
		SyntaxHighlighter.highlight();
	});
});
