
yobo_dom_ready(function(){
    try{
        initFanswall();
        new Ajax.Request('/js/update_artist_index/'+singerID, {
            asynchronous:true,
            evalScripts:true
        }); 
    }catch(e){
      // alert(e);
    }

});


	
	

function initFanswall(fond){
    jQuery("#fans_wall_like_button").click(setFansWallLike);
    jQuery("#fans_wall_hate_button").click(setFansWallHate);
    jQuery("#fans_wall_cancellike_button").click(cancelFansWall);
    jQuery("#fans_wall_cancelhate_button").click(cancelFansWall);
    
    //回复时使用
    jQuery("#fans_wall_like_button_2").click(setFansWallLike);
    jQuery("#fans_wall_hate_button_2").click(setFansWallHate);
    jQuery("#fans_wall_cancellike_button_2").click(cancelFansWall);
    jQuery("#fans_wall_cancelhate_button_2").click(cancelFansWall);
    

	if(fondSinger){
	   setFansWallLikeStatus();
	}
	if(unfondSinger){
	   setFansWallHateStatus();
	}
	var textArea = jQuery("#text_area");
	textArea.html();
    yoboInput('text_area', commentArea);
    textArea.focus(function(){
        textArea.css("border","1px solid #FEDD98");
    });
    textArea.blur(function(){
        textArea.css("border","1px solid #CCCCCC");
    });
	jQuery('#comment_review_category').attr('value', fond);
	jQuery('#fans_wall_typee').attr('value', fond); 
}

