$(function() {
	$("a[rel~=external]").click(function(event) {
		event.preventDefault();
		window.open(this.href);
	});
	
	var dropDown = {
		init: function(el) {
			var nextList = $(el).find("ul");
			nextList.hide();
			
			$(el).hover(function() {
				$(nextList).show();
			},
			function() {
				$(nextList).hide();
			});
		}
	};
	
	dropDown.init("ul#browse_archives");
	
	var archiveList = {
		parentClass: $(".archive_list"),
		childClass: $(".the_archives"),
		init: function() {
			$(archiveList.childClass).hide();
			archiveList.parentClass.hover(function() {
				$(this).find("ul.the_archives").show();
			}, function() {
				$(this).find("ul.the_archives").hide();
			});
		},   
	};
	
	archiveList.init();
	
});

