/*
Special thanks to the most excellent syntax highlighter
http://code.google.com/p/syntaxhighlighter/
Modified by Chris Blankenship (www.dscoduc.com) for use with jQuery
Updated Sept 26, 2008-discovered the replacement of c# was not working correctly.  Fixed it.
Updated Sept 27th-found that calling SyntaxHighlightAll more than once was BAD.  Fixed it.
Updated search for class names that included additional instructions ex. xml:nogutter*/
$j = jQuery.noConflict();
$j(document).ready(function() {
if ($j("pre").length > 0) {
$j("pre").each(function() {
$j(this).attr('class', $j(this).attr('class').replace(new RegExp("c\#", "g"), 'csharp'));});
var shBasePath = 'dp.SyntaxHighlighter/';
var shScriptPath = '/'+shBasePath+'Scripts/';
$j.getScript(shScriptPath+'shCore.js', function() {
dp.SyntaxHighlighter.ClipboardSwf = shScriptPath+'clipboard.swf';
$j('head').append('<link href="/css.axd?name='+shBasePath+'Styles/SyntaxHighlighter.css" rel="stylesheet" type="text/css" />');
if ($j('pre[class^=xml]').length > 0) { shAddScript('shBrushXml.js') };
if ($j('pre[class^=js]').length > 0) { shAddScript('shBrushJScript.js') };
if ($j('pre[class^=csharp]').length > 0) { shAddScript('shBrushCSharp.js') };
if ($j('pre[class^=delphi]').length > 0) { shAddScript('shBrushDelphi.js') };
if ($j('pre[class^=java]').length > 0) { shAddScript('shBrushJava.js') };
if ($j('pre[class^=php]').length > 0) { shAddScript('shBrushPhp.js') };
if ($j('pre[class^=python]').length > 0) { shAddScript('shBrushPython.js') };
if ($j('pre[class^=ruby]').length > 0) { shAddScript('shBrushRuby.js') };
if ($j('pre[class^=sql]').length > 0) { shAddScript('shBrushSql.js') };
if ($j('pre[class^=vb]').length > 0) { shAddScript('shBrushVb.js') };
if ($j('pre[class^=css]').length > 0) { shAddScript('shBrushCss.js') };
if ($j('pre.c').length > 0 || $j('pre[class^=c:]').length > 0) { shAddScript('shBrushCpp.js') };
shAddScript('highlightall.js');
function shAddScript(source) {
$j.getScript(shScriptPath+source, function() {});};});};});
