			/* this script copies the embed code */
			var clip = null;
			
			function init_zero_clipboard(wb,whichField) {
				var clip = new ZeroClipboard.Client();
			
				clip.addEventListener('load', my_load);
				clip.addEventListener('mouseOver', my_mouse_over);
				clip.addEventListener('complete', my_complete);
				clip.glue( wb );
			
				clip.whichField = whichField;
				clip.whichButton = wb;
				return clip;
			}
			
			function my_load(client) {
				debugstr("Flash movie loaded and ready.");
			}
			
			function my_mouse_over(client) {
				// we can cheat a little here -- update the text on mouse over
				clip.setText($("#" + clip.whichField).val());
			}
			
			function my_complete(client, text) {
				debugstr("client is : " + client );
				debugstr("Copied text to clipboard: " + text );
			}
			
			function debugstr(msg) {
				//alert(msg);
			}
			
			/* this script copies the video url */
			var clip_url = null;
				
			function init_clip_url() {
				clip_url = new ZeroClipboard.Client();
				clip_url.setHandCursor( true );
			
				$('a.button').mouseover( function() {
					clip_url.setText( this.innerHTML );
					
					if (clip_url.div) {
						clip_url.receiveEvent('mouseout', null);
						clip_url.reposition(this);
					}
					else clip_url.glue(this);
					
					clip_url.receiveEvent('mouseover', null);
				} );
			}			