jQuery.fn.fadeToggle = function(speed, easing, callback) {
  return this.animate({opacity: 'toggle'}, speed, easing, callback);  
};

    			$(function() {	
						
				$('.polls').each(function() {	
											
					$(this).cycle({
						fx:     'fade',
						timeout: 4000,
						speed:   500		
					});
				});			
				
				$('a', '.polls').show();
				
				
				var $embedLink=$('.embed_link');
				var $embed=$('.code');
				var $embedClose=$('.embed_close');
				$('.embed_link').click(function() {
					$embed.fadeToggle();
					$('#embed_field').select();
				});
				$embedClose.click(function() {
					$embed.fadeToggle();
				});			
			});
			
			
		
