function initSiteCredit(){
	$("#initLink").fadeOut("normal");
	$("#CreditsLink").animate( { left:"0" }, { duration:1000 } );
	setTimeout("revertSiteCredit()",7000);
}

function revertSiteCredit(){
	$("#CreditsLink").animate( { left:"900" }, 1000, "linear", function(){$("#initLink").fadeIn("normal");} );
}

var dropDownIsBusy = false;
var currDropDown = "";

var blogArchiveHeader = '<a style="font-weight:bold; cursor:pointer;" class="nav0">Archive</a>';

	
$(document).ready(function() {
	/*var url = "http://twitter.com/statuses/user_timeline/tazachocolate.json?count=1&callback=?"; 
	$.getJSON(url, 
	function(data){ 
		$.each(data, function(i, item) { 
			$("#twitterContainer p").prepend(item.text.linkText()
				  + " via "  
				  + item.source); 
		}); 
	});
	
	String.prototype.linkText = function() {																		 
		return this.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/, function(m) {
			return m.link(m);
		});
	}*/
	
	/*var blogArchive = $('#blogArchive');
	var blogDropDown = $('#MainDD_blog .dropDownBody');
	blogDropDown.html(blogDropDown.html() + blogArchiveHeader + blogArchive.html());*/
	
	var setDropDownAction = setTimeout(function(){
		$('.mainDropDowns').mouseout(function(event){
			$(document).everyTime(5000, function(i){closeAllDropDowns();});
		});
		$('.mainDropDowns a').mouseover(function(){$(document).stopTime();});
		
		$('[dropDown]').hover(navHoverIn, navHoverOut);
	}, 1000);
});

function navHoverIn(ddID)
{
	
		
	var thisObj = $(this);
	var thisDropDown = $('#' + thisObj.attr("dropDown"));
	if ($('#' + thisObj.attr("dropDown") + ' .dropDownBody').html().trim()){
	
		closeAllDropDowns(thisObj.attr("dropDown"));
		
		currDropDown = thisObj.attr("dropDown");
		dropDownIsBusy = true;
		
		thisDropDown.fadeIn(300, function(){
			dropDownIsBusy = false;
			$(document).one("click", function(){closeAllDropDowns();})
		});
		$(document).stopTime();
	}
}

function navHoverOut(ddID)
{
	var thisObj = $(this);
	var thisDropDown = $('#' + thisObj.attr("dropDown"));
	
	$(document).everyTime(233, function(i){closeAllDropDowns();});
}

function closeAllDropDowns(this_dropDown)
{
	if(this_dropDown){
		$('.mainDropDowns[id != "' + this_dropDown + '"]').hide();
	}
	else{
		$('.mainDropDowns').fadeOut(300);
		dropDownIsBusy = false;
		currDropDown = "";
	}
}









