$(document).ready(function(){
	$('.main_body_left_vote_list_icon_line [title]').qtip({ 
content: { 
text: false
}, 
style: 'light' 
}); 
   $("body").append("<div id='preview' style='display:none; position:absolute;z-index:9999999'></div>");
	 xOffset = 5;
	 yOffset = 5;
	 myclick=false;
	$(".main_body_left_vote_list_icon_line div").click(function(e){
		if(myclick){
			var oid = $("#preview div").attr('id');
			var strs = oid.split("_");
			if(strs[0]=='vote'){ 
				$("#"+oid).addClass("feel_left_f"+strs[1]);//hide() 
				$("#"+oid).removeClass("feel_left_f_drag");//hide()
			 }else{
				 if(strs[0]=='other'){
					 strs[1]=parseInt(strs[1])+3;
				 }
				$("#"+oid).addClass("share_"+strs[1]);//hide()
				$("#"+oid).removeClass("share_drag");//hide()
			}
		}
		icon_x=$(this).offset().left;
		icon_y=$(this).offset().top; 
		var str; 
		var id=$(this).attr('id');
		var strs = id.split("_");
		    var myclass =$(this).attr('class');
	 		if(strs[0]=='vote'){ 
				$("#"+id).removeClass("feel_left_f"+strs[1]);//hide() 
				$("#"+id).addClass("feel_left_f_drag");//hide()
			 }else{
				 if(strs[0]=='other'){
					 strs[1]=parseInt(strs[1])+3;
				 }
				$("#"+id).removeClass("share_"+strs[1]);//hide()
				$("#"+id).addClass("share_drag");//hide()
			}
	  str='<div class="'+myclass+'" id="'+id+'" ><a></a></div>';
	   $("#preview").html(str);        
	   $("#preview")
		.css("top",(e.pageY - yOffset) + "px")
		.css("left",(e.pageX + xOffset) + "px")
		.show(); 
		myclick=true;
		e.stopPropagation();  
	}); 
	$(document).mousemove(function(e){
		if(myclick){
	   $("#preview")
		.css("top",(e.pageY - yOffset) + "px")
		.css("left",(e.pageX + xOffset) + "px");
		}
	}).click(function(){
		if(myclick){
			myclick=false;
			$("#preview").animate({"top":icon_y,"left":icon_x}, 1000); 
			var oid = $("#preview div").attr('id');
			var strs = oid.split("_");
			setTimeout(function() { 
			$("#preview").hide();
			if(strs[0]=='vote'){ 
				$("#"+oid).addClass("feel_left_f"+strs[1]);//hide() 
				$("#"+oid).removeClass("feel_left_f_drag");//hide()
			 }else{
				 if(strs[0]=='other'){
					 strs[1]=parseInt(strs[1])+3;
				 }
				$("#"+oid).addClass("share_"+strs[1]);//hide()
				$("#"+oid).removeClass("share_drag");//hide()
			}
			},1000);
		}
	 });
	 $(".main_body_right_content_box_div").mouseover(function(){
		if(myclick){
		$("#"+this.id+" .main_body_right_content_box_foot").addClass("main_body_right_content_box_foot_over");
		$("#"+this.id+" .main_body_right_content_box_top").addClass("main_body_right_content_box_top_over");
		$("#"+this.id+" .main_body_right_content_box_middle").addClass("main_body_right_content_box_middle_over");
		$("#"+this.id+" .main_body_right_content_box_over").addClass("main_body_right_content_box_over_on");	
		}
		
    }).mouseout(function(){
		if(myclick){
		$("#"+this.id+" .main_body_right_content_box_foot").removeClass("main_body_right_content_box_foot_over");
		$("#"+this.id+" .main_body_right_content_box_top").removeClass("main_body_right_content_box_top_over");
		$("#"+this.id+" .main_body_right_content_box_middle").removeClass("main_body_right_content_box_middle_over");
		$("#"+this.id+" .main_body_right_content_box_over").removeClass("main_body_right_content_box_over_on");	
		}
		
    }).click(function(e){
		 var id = $("#preview div").attr('id');
		var pid=this.id;
		var pstrs = pid.split("_");
	   if(myclick){
		myclick=false;
		//$("#comment_link_"+pstrs[1]).attr('href','javascript:void(0);');
   		$("#preview").fadeOut("slow");
			var strs = id.split("_");
						 //丟開時 還原 css
						if(strs[0]=='vote'){
							$("#"+pid+" .main_body_right_content_box_vote").show();
							vote(this.id,strs[1]);
							$("#"+id).addClass("feel_left_f"+strs[1]);//hide() 
							$("#"+id).removeClass("feel_left_f_drag");//hide(
						}else if (strs[0]=='share'){
							if(strs[1]==1)
							{
								facebook(this.id);	 
								}
							if(strs[1]==2)
							{
								twitter(this.id);
								}
							if(strs[1]==3)
							{
								sendmail(this.id);
								}
							$("#"+id).addClass("share_"+strs[1]);//hide()
							$("#"+id).removeClass("share_drag");//hid
						}else if (strs[0]=='other'){
							if(strs[1]==1)
							{
								jubao(this.id);
								}
							if(strs[1]==2)
							{
								vote(this.id,20);
								}
							if(strs[1]==3)
							{
								shoucang(this.id);
								}
							var other=parseInt(strs[1])+3;
							$("#"+id).addClass("share_"+other);//hide()
							$("#"+id).removeClass("share_drag");//hid
						}
						$("#"+pid+" .main_body_right_content_box_foot").removeClass("main_body_right_content_box_foot_over");
						$("#"+pid+" .main_body_right_content_box_top").removeClass("main_body_right_content_box_top_over");
						$("#"+pid+" .main_body_right_content_box_middle").removeClass("main_body_right_content_box_middle_over");
						$("#"+pid+" .main_body_right_content_box_over").removeClass("main_body_right_content_box_over_on");	
						return false;
	   }
		e.stopPropagation();   
    }); 
	
	$(".main_body_left_vote_list_icon_line div").draggable({
	containment: 'document',
	opacity: 6,//透明度
	revert: 'invalid',
	helper: 'clone',
	cursor: "move",top:5,left:5,
	zIndex: 100
	});
	
	$(".main_body_right_content_box_div").droppable({
		  activate: function(event, ui) { 
		  if(myclick){
			var oid = $("#preview div").attr('id');
			var strs = oid.split("_");
			if(strs[0]=='vote'){ 
				$("#"+oid).addClass("feel_left_f"+strs[1]);//hide() 
				$("#"+oid).removeClass("feel_left_f_drag");//hide()
			 }else{
				 if(strs[0]=='other'){
					 strs[1]=parseInt(strs[1])+3;
				 }
				$("#"+oid).addClass("share_"+strs[1]);//hide()
				$("#"+oid).removeClass("share_drag");//hide()
			}
		    $("#preview").hide();	 
		    myclick=false;
		  }	 
		  var id = $(ui.draggable).attr('id');
		  var strs = id.split("_");
		  	if(strs[0]=='vote'){ 
			$("#"+id).removeClass("feel_left_f"+strs[1]);//hide() 
			$("#"+id).addClass("feel_left_f_drag");//hide()
			 }else{
				 if(strs[0]=='other'){
					 strs[1]=parseInt(strs[1])+3;
				 }
				$("#"+id).removeClass("share_"+strs[1]);//hide()
				$("#"+id).addClass("share_drag");//hide()
			}
		  
		   },
		   deactivate: function(event, ui) { 
		   var id = $(ui.draggable).attr('id');
		   var strs = id.split("_");
			 //丟開時 還原 css
			if(strs[0]=='vote'){
				 
            setTimeout(function() {  
            $("#"+id).removeClass("feel_left_f_drag");//hide()
			$("#"+id).addClass("feel_left_f"+strs[1]);//hide()
        	}, 500);
			 }else{
				 if(strs[0]=='other'){
					 strs[1]=parseInt(strs[1])+3;
				 }
				$("#"+id).removeClass("share_drag");//hide()
				$("#"+id).addClass("share_"+strs[1]);//hide()
			}
		   },
			over: function(event, ui) { 
				 var id = $(ui.draggable).attr('id');
				 var pid=this.id;
				 var strs = id.split("_");
		$("#"+pid+" .main_body_right_content_box_foot").addClass("main_body_right_content_box_foot_over");
		$("#"+pid+" .main_body_right_content_box_top").addClass("main_body_right_content_box_top_over");
		$("#"+pid+" .main_body_right_content_box_middle").addClass("main_body_right_content_box_middle_over");
		$("#"+pid+" .main_body_right_content_box_over").addClass("main_body_right_content_box_over_on");	
			 
			 },
			 out: function(event, ui) { 			 
				 var id = $(ui.draggable).attr('id');
				 var pid=this.id;
				 var strs = id.split("_");
				  $("#"+pid+" .main_body_right_content_box_foot").removeClass("main_body_right_content_box_foot_over");
		$("#"+pid+" .main_body_right_content_box_top").removeClass("main_body_right_content_box_top_over");
		$("#"+pid+" .main_body_right_content_box_middle").removeClass("main_body_right_content_box_middle_over");
		$("#"+pid+" .main_body_right_content_box_over").removeClass("main_body_right_content_box_over_on");	
			 },
			drop:
				function(e, ui)
				{
						var id = $(ui.draggable).attr('id');
						 var pid=this.id;
						var strs = id.split("_");
						 //丟開時 還原 css
						if(strs[0]=='vote'){
							$("#"+pid+" .main_body_right_content_box_vote").show();
							vote(this.id,strs[1]);

						}else if (strs[0]=='share'){
							if(strs[1]==1)
							{
								facebook(this.id);	 
								}
							if(strs[1]==2)
							{
								twitter(this.id);
								}
							if(strs[1]==3)
							{
								sendmail(this.id);
								}
							
						}else if (strs[0]=='other'){
							if(strs[1]==1)
							{
								jubao(this.id);
								}
							if(strs[1]==2)
							{
								vote(this.id,20);
								}
							if(strs[1]==3)
							{
								shoucang(this.id);
								}
							
						}
						 $("#"+pid+" .main_body_right_content_box_foot").removeClass("main_body_right_content_box_foot_over");
		$("#"+pid+" .main_body_right_content_box_top").removeClass("main_body_right_content_box_top_over");
		$("#"+pid+" .main_body_right_content_box_middle").removeClass("main_body_right_content_box_middle_over");
		$("#"+pid+" .main_body_right_content_box_over").removeClass("main_body_right_content_box_over_on");	
				
				}
	
	});
	
	$(".content_list_left_content_list").droppable({

			drop:
				function(e, ui)
				{
						var id = $(ui.draggable).attr('id');
						var strs = id.split("_");
						 //丟開時 還原 css
			           $('.content_list_left_img').css('opacity',1);
						if(strs[0]=='vote'){
							vote(this.id,strs[1]);
						}else if (strs[0]=='share'){
							if(strs[1]==1)
							{
								facebook(this.id);	 
								}
							if(strs[1]==2)
							{
								twitter(this.id);
								}
							if(strs[1]==3)
							{
								sendmail(this.id);
								}
							
						}else if (strs[0]=='other'){
							if(strs[1]==1)
							{
								jubao(this.id);
								}
							if(strs[1]==2)
							{
								vote(this.id,20);
								}
							if(strs[1]==3)
							{
								shoucang(this.id);
								}
							
						}
						
				
				}
	
	});

});
//faceboo share
function facebook(id){
	var strs = id.split("_");
	//加积分
		$.ajax({
				type: "post",
				url:  "function/add_score_share.php",
				data: "" ,
				cache: false,
				beforeSend: function(XMLHttpRequest){
					//$("#login").html('<font style="color:#7C7C7C; font-size:12px;" >&nbsp;&nbsp;数据载入中，请稍后...</font>');
				},
				success: function(html){
					//alert(html);
					
				},
				complete: function(XMLHttpRequest, textStatus){
					//$("#subbutton").val("Submit"); 
				},
				error: function(){
					//alert("error");
				}
			}); 
	//加积分完成
	if(strs[0]=='product')
	{		
		var url='http://www.wazzai.com/item.php?id='+strs[1];	
	    var t=$("#title_"+strs[1]).html();		//如果是 产品 则 分享该产品
		window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(url)+'&t='+encodeURIComponent(t)); 	
		}
	
	if(strs[0]=='comment')
	{		
		var url='http://www.wazzai.com/item.php?id='+strs[1];	
	    var t=$("#title_"+strs[1]).html();		//如果是 产品 则 分享该产品
		window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(url)+'&t='+encodeURIComponent(t)); 	
		}
	if(strs[0]=='replay')
	{		
		var url='http://www.wazzai.com/item.php?id='+strs[1];	
	    var t=$("#title_"+strs[1]).html();		//如果是 产品 则 分享该产品
		window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(url)+'&t='+encodeURIComponent(t)); 	
		}
	

}
//twitter share
function twitter(id){
	var strs = id.split("_");
	
	//加积分
		$.ajax({
				type: "post",
				url:  "function/add_score_share.php",
				data: "" ,
				cache: false,
				beforeSend: function(XMLHttpRequest){
					//$("#login").html('<font style="color:#7C7C7C; font-size:12px;" >&nbsp;&nbsp;数据载入中，请稍后...</font>');
				},
				success: function(html){
					//alert(html);
					
				},
				complete: function(XMLHttpRequest, textStatus){
					//$("#subbutton").val("Submit"); 
				},
				error: function(){
					//alert("error");
				}
			}); 
	//加积分完成
	if(strs[0]=='product')
	{
		var url='http://www.wazzai.com/item.php?id='+strs[1];	
	    var t=$("#title_"+strs[1]).html();
		
		//如果是 产品 则 分享该产品
		//window.open('http://twitter.com/home?status='+encodeURIComponent(url)+' '+encodeURIComponent(t));
		window.open('http://www.plurk.com/?qualifier=shares&status=' .concat(encodeURIComponent(url)) .concat(' ') .concat('&#40;') .concat(encodeURIComponent(t)) .concat('&#41;'));
		}

    if(strs[0]=='comment')
	{		
		var url='http://www.wazzai.com/item.php?id='+strs[1];	
	    var t=$("#title_"+strs[1]).html();		//如果是 产品 则 分享该产品
		//window.open('http://twitter.com/home?status='+encodeURIComponent(url)+' '+encodeURIComponent(t));
		window.open('http://www.plurk.com/?qualifier=shares&status=' .concat(encodeURIComponent(location.href)) .concat(' ') .concat('&#40;') .concat(encodeURIComponent(document.title)) .concat('&#41;'));
		}
	if(strs[0]=='replay')
	{		
		var url='http://www.wazzai.com/item.php?id='+strs[1];	
	    var t=$("#title_"+strs[1]).html();		//如果是 产品 则 分享该产品
		//alert(location.href);
		//window.open('http://twitter.com/home?status='+encodeURIComponent(url)+' '+encodeURIComponent(t));
		window.open('http://www.plurk.com/?qualifier=shares&status=' .concat(encodeURIComponent(location.href)) .concat(' ') .concat('&#40;') .concat(encodeURIComponent(document.title)) .concat('&#41;'));
		}
}

//mail share
function sendmail(id){
	var strs = id.split("_");
	//加积分
		$.ajax({
				type: "post",
				url:  "function/add_score_share.php",
				data: "" ,
				cache: false,
				beforeSend: function(XMLHttpRequest){
					//$("#login").html('<font style="color:#7C7C7C; font-size:12px;" >&nbsp;&nbsp;数据载入中，请稍后...</font>');
				},
				success: function(html){
					//alert(html);
					
				},
				complete: function(XMLHttpRequest, textStatus){
					//$("#subbutton").val("Submit"); 
				},
				error: function(){
					//alert("error");
				}
			}); 
	//加积分完成
	if(strs[0]=='product')
	{
		var url='http://www.wazzai.com/item.php?id='+strs[1];
	    var t=$("#title_"+strs[1]).html();
		
		window.open("mailto:?subject="+url+"&cc=&body="+url);
		
		}

    if(strs[0]=='comment')
	{		
		var url='http://www.wazzai.com/item.php?id='+strs[1];
	    var t=$("#title_"+strs[1]).html();		//如果是 产品 则 分享该产品
		
		window.open("mailto:?subject="+url+"&cc=&body="+url);
		}
	if(strs[0]=='replay')
	{		
		var url='http://www.wazzai.com/item.php?id='+strs[1];
	    var t=$("#title_"+strs[1]).html();		//如果是 产品 则 分享该产品
		t=encodeURIComponent(t);
		window.open("mailto:?subject="+url+"&cc=&body="+url);
		}
}

//mail share
function shoucang(id){
	var strs = id.split("_");
	if(strs[0]=='product')
	{
		
		//处理数据
		$.ajax({
				type: "post",
				url:  "function/add_shoucang.php",
				data: "item_type=1&item_id="+strs[1] ,
				cache: false,
				beforeSend: function(XMLHttpRequest){
				},
				success: function(html){
					
					$("#fav_count_"+strs[1]).load("function/get_fav_number.php?item_id="+strs[1]);
					alert(html);
					
				},
				complete: function(XMLHttpRequest, textStatus){
					//$("#subbutton").val("Submit"); 
				},
				error: function(){
					alert("error");
				}
			}); 
	
		
		}
	//评论
    if(strs[0]=='comment')
	{		
		//处理数据
		$.ajax({
				type: "post",
				url:  "function/add_shoucang.php",
				data: "item_type=2&item_id="+strs[1] ,
				cache: false,
				beforeSend: function(XMLHttpRequest){
					//$("#login").html('<font style="color:#7C7C7C; font-size:12px;" >&nbsp;&nbsp;数据载入中，请稍后...</font>');
				},
				success: function(html){
					alert(html);
				},
				complete: function(XMLHttpRequest, textStatus){
					//$("#subbutton").val("Submit"); 
				},
				error: function(){
					alert("error");
				}
			}); 
		}
	//回复
	if(strs[0]=='replay')
	{		
		//处理数据
		$.ajax({
				type: "post",
				url:  "function/add_shoucang.php",
				data: "item_type=3&item_id="+strs[1] ,
				cache: false,
				beforeSend: function(XMLHttpRequest){
					//$("#login").html('<font style="color:#7C7C7C; font-size:12px;" >&nbsp;&nbsp;数据载入中，请稍后...</font>');
				},
				success: function(html){
					alert(html);
				},
				complete: function(XMLHttpRequest, textStatus){
					//$("#subbutton").val("Submit"); 
				},
				error: function(){
					alert("error");
				}
			}); 
		}
}

//举报 share
function jubao(id){
	var strs = id.split("_");
	if(strs[0]=='product')
	{
		
		//处理数据
		$.ajax({
				type: "post",
				url:  "function/add_jubao.php",
				data: "item_type=1&item_id="+strs[1] ,
				cache: false,
				beforeSend: function(XMLHttpRequest){
					//$("#login").html('<font style="color:#7C7C7C; font-size:12px;" >&nbsp;&nbsp;数据载入中，请稍后...</font>');
				},
				success: function(html){
					alert(html);
				},
				complete: function(XMLHttpRequest, textStatus){
					//$("#subbutton").val("Submit"); 
				},
				error: function(){
					alert("error");
				}
			}); 
	
		
		}
	//评论
    if(strs[0]=='comment')
	{		
		//处理数据
		$.ajax({
				type: "post",
				url:  "function/add_jubao.php",
				data: "item_type=2&item_id="+strs[1] ,
				cache: false,
				beforeSend: function(XMLHttpRequest){
					//$("#login").html('<font style="color:#7C7C7C; font-size:12px;" >&nbsp;&nbsp;数据载入中，请稍后...</font>');
				},
				success: function(html){
					alert(html);
				},
				complete: function(XMLHttpRequest, textStatus){
					//$("#subbutton").val("Submit"); 
				},
				error: function(){
					alert("error");
				}
			}); 
		}
	//回复
	if(strs[0]=='replay')
	{		
		//处理数据
		$.ajax({
				type: "post",
				url:  "function/add_jubao.php",
				data: "item_type=3&item_id="+strs[1] ,
				cache: false,
				beforeSend: function(XMLHttpRequest){
					//$("#login").html('<font style="color:#7C7C7C; font-size:12px;" >&nbsp;&nbsp;数据载入中，请稍后...</font>');
				},
				success: function(html){
					alert(html);
				},
				complete: function(XMLHttpRequest, textStatus){
					//$("#subbutton").val("Submit"); 
				},
				error: function(){
					alert("error");
				}
			}); 
		}
}

//投票
function vote(id,vote_id){
	var strs = id.split("_");
	//alert(id);
	//alert(vote_id);
	if(strs[0]=='product')
	{
		
		//处理数据
		$.ajax({
				type: "post",
				url:  "function/add_vote.php",
				data: "item_type=1&item_id="+strs[1]+"&vote_id="+vote_id ,
				cache: false,
				beforeSend: function(XMLHttpRequest){
				},
				success: function(html){
					var html_arr = html.split(":");
					if(html_arr[0]=='ok')
					{
					$("#product_vote_number_"+strs[1]).removeClass().addClass("main_body_right_content_box_vote_feel_img vote_feel"+html_arr[1]); 
					reply_reload(strs[1]);
					//結果的
					$("#total_vote_"+strs[1]).load("function/get_vote_number.php?item_id="+strs[1]); 
					$('.main_body_left_loginin_points span').load("function/get_user_points.php");
					}
					else
					{
					if("請先登錄" == html_arr[0] )
					{
					load_login();
					}
					else
					{
					alert(html_arr[0]);	
						}
					
						}
				},
				complete: function(XMLHttpRequest, textStatus){
					//$("#subbutton").val("Submit"); 
				},
				error: function(){
					alert("error");
				}
			}); 
	
		
		}
	//评论
    if(strs[0]=='comment')
	{		
		//处理数据
		$.ajax({
				type: "post",
				url:  "function/add_vote.php",
				data: "item_type=2&item_id="+strs[1]+"&vote_id="+vote_id ,
				cache: false,
				beforeSend: function(XMLHttpRequest){
					//$("#login").html('<font style="color:#7C7C7C; font-size:12px;" >&nbsp;&nbsp;数据载入中，请稍后...</font>');
				},
				success: function(html){
					var html_arr = html.split(":");
					
					if(html_arr[0]=='ok')
					{
					
					 //alert(html_arr[0]);
					$("#conmments_list_bg_"+strs[1]).removeClass().addClass("content_list_left_conmments_list_text_div conmments_list_bg"+html_arr[1]); 
					$("#conmments_list_bg2_"+strs[1]).removeClass().addClass("content_list_left_conmments_feel_line conmments_list_bg"+html_arr[1]); 
					$("#vote_small_feel_"+strs[1]).removeClass().addClass("main_body_right_content_box_vote_feel_img_small vote_small_feel"+html_arr[1]); 
					$("#vote_small_text_"+strs[1]).removeClass().addClass("main_body_right_content_box_vote_feel_text_small vote_small_text"+html_arr[1]); 
					$("#vote_small_text_"+strs[1]).load("function/get_vote_number_comment.php?item_id="+strs[1]); 
					//$("#product_vote_number_text"+strs[1]).removeClass().addClass("main_body_right_content_box_vote_feel_text vote_text"+html_arr[1]);
					//結果的
					//$("#boxvote_"+strs[1]).removeClass().addClass("main_body_right_content_box_foot box_foot"+html_arr[1]); 
					//$("#product_vote_number_text"+strs[1]).load("function/get_vote_number.php?item_id="+strs[1]); 
					}
					else
					{
					if("請先登錄" == html_arr[0] )
					{
					load_login();
					}
					else
					{
					alert(html_arr[0]);	
						}
					
					
					//$("#boxvote_"+strs[1]).removeClass().addClass("main_body_right_content_box_foot box_foot"+html_arr[1]); 
					
						}
				},
				complete: function(XMLHttpRequest, textStatus){
					//$("#subbutton").val("Submit"); 
				},
				error: function(){
					alert("error");
				}
			}); 
		}
	//回复
	if(strs[0]=='replay')
	{		
		//处理数据
		$.ajax({
				type: "post",
				url:  "function/add_vote.php",
				data: "item_type=3&item_id="+strs[1]+"&vote_id="+vote_id ,
				cache: false,
				beforeSend: function(XMLHttpRequest){
					//$("#login").html('<font style="color:#7C7C7C; font-size:12px;" >&nbsp;&nbsp;数据载入中，请稍后...</font>');
				},
				success: function(html){
					var html_arr = html.split(":");
					
					if(html_arr[0]=='ok')
					{
					$("#conmments_list_bgr_"+strs[1]).removeClass().addClass("content_list_left_conmments_list_text_div conmments_list_bg"+html_arr[1]); 
					$("#conmments_list_bgr2_"+strs[1]).removeClass().addClass("content_list_left_conmments_feel_line conmments_list_bg"+html_arr[1]); 
					$("#vote_small_feelr_"+strs[1]).removeClass().addClass("main_body_right_content_box_vote_feel_img_small vote_small_feel"+html_arr[1]); 
					$("#vote_small_textr_"+strs[1]).removeClass().addClass("main_body_right_content_box_vote_feel_text_small vote_small_text"+html_arr[1]); 
					$("#vote_small_textr_"+strs[1]).load("function/get_vote_number_replay.php?item_id="+strs[1]); 
					}
					else
					{
					if("請先登錄" == html_arr[0] )
					{
					load_login();
					}
					else
					{
					alert(html_arr[0]);	
						}
					//$("#boxvote_"+strs[1]).removeClass().addClass("main_body_right_content_box_foot box_foot"+html_arr[1]); 
					
						}
				},
				complete: function(XMLHttpRequest, textStatus){
					//$("#subbutton").val("Submit"); 
				},
				error: function(){
					alert("error");
				}
			}); 
		}
}



