jQuery.noConflict();
var uid = (function(){var id=0;return function(){return id++;};})();
jQuery(function() {
	dp.SyntaxHighlighter.ClipboardSwf = 'http://assets.modxcms.com/assets/docs/syntaxhighlighter/clipboard.swf';
	
	function _hi() {		
		var u = 'code'+uid();
		jQuery(this).attr('name',u);
		jQuery(this).addClass('php');
		jQuery(this).removeClass('code-java');
		
		var p = jQuery(this).parent();
		p.removeClass('codeContent');
		p.removeClass('panelContent');
		p.parent().removeClass('code');
		p.parent().removeClass('panel');
		jQuery(this).children().each(function() { 
			jQuery(this).stripTags(); 
		});
		
		//jQuery('.keyword').remove();
		dp.SyntaxHighlighter.HighlightAll(u);
		
	};
	jQuery('.code-java').each(_hi);
});
jQuery.fn.stripTags = function() {
        return this.replaceWith( this.html().replace(/<\/?[^>]+>/gi, '') );
};