

	function getNewPostScore(postID)
	{
		if ( isScrolledIntoView('#post'+postID) )
		{
			$.get("getpostscore.php", { post: postID },
				function(resp){	
				
					var deets = resp.split(',');
					if ( deets[0] == '' && deets[1] == '' ) 
					{ fadeAndReplacePost(postID); }
					else
					{
						currentup = $("#post"+postID+"up").text();
						if ( deets[0] != currentup ) 
						{ 
							setNewScoreText("#post"+postID+"up",deets[0]);
							setNewScoreText("#score"+postID,deets[2]);
						}
						
						currentdown = $("#post"+postID+"down").text();
						if ( deets[1] != currentdown ) 
						{ 
							setNewScoreText("#post"+postID+"down",deets[1]); 
							setNewScoreText("#score"+postID,deets[2]);
						}
						
						currentcomments = $("#post"+postID+"comments").text();
						if ( deets[3] != currentcomments ) 
						{ 
							setNewScoreText("#post"+postID+"comments",deets[3]);
						}
					}
					
			});	
		}
	}
	
	function setNewScoreText(where,what)
	{	
		$(where).animate( { opacity: 0 }, blinkSpeed);
		$(where).html(what);
		//setTimeout( '$("'+where+'").html("'+what+'");' , blinkSpeed);
		setTimeout( '$("'+where+'").animate( { opacity: 100 }, blinkSpeed)' , blinkSpeed*2);
	}
	
	
	function fadeAndReplacePost( postToFade )
	{
		$("#post"+postToFade).fadeOut(1000);
	}