// JavaScript Document

var timer;
var timerOffset;
var heightTo;
$(document).ready(function() {
	getSearch();
});
	 
function getSearch(){
	clearTimeout(timer);
	clearTimeout(timerOffset);
	$.post("http://chronicles.visualmerc.com/skepsis/wp-content/themes/vismerc/twit_search.php", function(data){
	   $("#tweetResult_tweets").html(data);
	   
	 });
	timer = setTimeout('getSearch()', 10000);
	timerOffset = setTimeout('setHeight()', 1000);
}

function setHeight(){
	
	if(isOpen == true){
		 heightTo = $("#tweetResult_tweets").height()+$("#tweetResult_title").height();
		 $('#tweetContainer').animate({
			height: heightTo,
			}, 500, 'linear', function() {
			  //
		});
	   } 
}
