$(document).ready( function() {

	// navigation rollover code
	// <img src="first.gif" hover="second.gif"  class="rollover"/>
	$('.rollover').hover(function() {
		var currentImg = $(this).attr('src');
		$(this).attr('src', $(this).attr('hover'));
		$(this).attr('hover', currentImg);
	}, function() {
		var currentImg = $(this).attr('src');
		$(this).attr('src', $(this).attr('hover'));
		$(this).attr('hover', currentImg);
	});


	// make all links with 'rel="external"' link in a new window.
	// needed as XHTML strict doesn't allow target="_blank"
	$('A[rel="external"]').click( function() {
		window.open( $(this).attr('href') );
		return false;
	});

	// rounded class gets rounded corners
	$('.rounded').corners();
	
	// scroll the header with the page
	// $('#header').scrollFollow();

});
