 jQuery.noConflict();
 jQuery(document).ready(function(){
   jQuery('#comments').jScrollPane({showArrows:true, scrollbarWidth: 15, arrowSize: 16});
   jQuery('.copy').click(function(){
     alert('Код в буфере');
   });
 });

 //-----------------------------------------------------------------------------
 // Работа с буфером
 //
 var clip = null;

	function init() {
		// setup single ZeroClipboard object for all our elements
		clip = new ZeroClipboard.Client();
		clip.setHandCursor( true );
;
		// assign a common mouseover function for all elements using jQuery
		jQuery('div.copy').mouseover( function() {

			var text=jQuery(this).text();
			clip.setText(text);

			// reposition the movie over our element
			// or create it if this is the first time
			if (clip.div) {
				clip.receiveEvent('mouseout', null);
				clip.reposition(this);
			}
			else clip.glue(this);

			// gotta force these events due to the Flash movie
			// moving all around.  This insures the CSS effects
			// are properly updated.
			clip.receiveEvent('mouseover', null);
		} );
	}





