$(document).ready(function() {  $(".lastfm,.tweet").bind("mouseenter",function(){	   $(this).animate({		backgroundColor: "#ffffff"	 }, 'fast');}).bind("mouseleave",function(){	   $(this).animate({		backgroundColor: "#cccccc"	},'fast' );}); var color = $("#comentarios li:first").css("background-color");$(".muro").css({backgroundColor:color}); $(".uno,.dos,.alex").bind("mouseenter",function(){	   	$(this).animate({			opacity: 0.8	 	}, 'fast');	}).bind("mouseleave",function(){	   	$(this).animate({			opacity: 1		},'fast' );			});	$(".foto,.fancyfoto,.vimeo").bind("mouseenter",function(event){		$(this).animate({			opacity: 0.7		}, 'fast');   		}).bind("mouseleave",function(){	   	$(this).animate({			opacity: 1		},'fast' );	});		 $("#comment_form").slideToggle();	$('.comenta').click(function() {	  $('#comment_form').slideToggle('slow', function() {	    // Animation complete.	  });});    //Reply					     $("a.c_reply").click(function() {    $(this).parents("li").css({backgroundColor:"#00e0fa"});    $('#comment_form').slideDown('slow', function() {});  	//Find author name in link						    	var author = $(this).parents("li").find("h2").text();  	//Find comment id  	var authlink = $(this).parents("li").attr("id");  	//Get textarea value  	var text = $("textarea#commentbox").attr("value");  	//Add textarea value to include username and comment link  	$('textarea#commentbox').attr("value",text+"<a href='#"+authlink+"'>@"+author+"</a>").focus();  });  //Quote  $("a.c_quote").click(function() {    $('#comment_form').slideDown('slow', function() {});    	//Find author name in link							     	var author = $(this).parents("li").find("h2").text();  	//Find comment id   	var authlink = $(this).parents("li").attr("id");  	//Get textarea value   	var text = $("textarea#commentbox").attr("value");  	//Get content of comment  	var quote = $(this).parents("li").find('.comentario').text();  	//Get any highlighted text  	if (window.getSelection)  		var selection = window.getSelection();  	else if (document.getSelection)  		var selection = document.getSelection();  	else if (document.selection) {  		var selection = document.selection.createRange().text; }     	//Use highlighted text if anything is highlighted instead of full comment  	if(selection!="") quote = selection;  	//Add quoted text, author, and comment link to textarea   	$('textarea#commentbox').attr("value",text+"<a href='#"+authlink+"'>@"+author+"</a><blockquote>"+quote+"</blockquote>").focus();  });     	});
