function initZeroClipboard() 
{
	// clip for all coupons top
	clip_all_top = new ZeroClipboard.Client();
	clip_all_top.setHandCursor( true );
	clip_all_top.addEventListener( 'mouseDown', function(client) { 
	clip_all_top.setText( document.getElementById('copy_all_coupons').innerHTML ); // copy the elements contents
	document.getElementById('copy_all_coupons_link_top').style.background = '#ccc';
	setTimeout(document.getElementById('copy_all_coupons_link_top').style.background='',1250);
	} );
	//clip_all_top.glue( 'copy_all_coupons_link_top' );
	document.getElementById('copy_all_coupons_link_top').innerHTML = clip_all_top.getHTML(89,20);

	// clip for all coupons bottom
	clip_all_bottom = new ZeroClipboard.Client();
	clip_all_bottom.setHandCursor( true );
	clip_all_bottom.addEventListener( 'mouseDown', function(client) { 
	clip_all_bottom.setText( document.getElementById('copy_all_coupons').innerHTML ); // copy the elements contents
	document.getElementById('copy_all_coupons_link_bottom').style.background = '#ccc';
	setTimeout(document.getElementById('copy_all_coupons_link_bottom').style.background='',1250);
	} );
	//clip_all_bottom.glue( 'copy_all_coupons_link_bottom' );
	document.getElementById('copy_all_coupons_link_bottom').innerHTML = clip_all_bottom.getHTML(89,20);

	// clip for each coupon
	clip = new ZeroClipboard.Client();
	clip.setHandCursor( true );

	// assign a common mouseover function for all elements using jQuery
	$j('div.bf2copy').mouseover( function() {
	// set the clip text to our innerHTML
	clip.setText( this.innerHTML );

	// 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);
	} );

	// add an event handler which fires after text is copied to the clipboard
	// and change the color of the underlying DOM element
	clip.addEventListener('complete', function(client, text) {
	var div = client.domElement;
	var original = div.style.backgroundColor;
	div.style.backgroundColor = '#ffc';
	setTimeout(div.style.backgroundColor=original,1250);
	} );          

}

