// When the DOM is ready
if (document.getElementById) { window.onload = swap };
function swap() {
var numimages=2;
rndimg = new Array("images/basco-random3.png", "images/basco-random2.png"); 
x=(Math.floor(Math.random()*numimages));
randomimage=(rndimg[x]);
document.getElementById("random-image").style.backgroundImage = "url("+ randomimage +")"; 
}

$(function() {
	
	$("nav a, .date").append("<span>&nbsp</span>");
	
	$("nav a").hover(function(e) {
	
		$(this)
			.hoverFlow(e.type, { width: 300 }, 200)
			.css('overflow', 'visible')
			.find('span')
			.hoverFlow(e.type, { width: 15 }, 200)
		
	}, function(e) {
		
		$(this)
			.hoverFlow(e.type, { width: 270 }, 200)
			.css('overflow', 'visible')
			.find('span')
			.hoverFlow(e.type, { width: 20 }, 200)
		
	});
	
})
